@juzi/wechaty-grpc 1.0.45 → 1.0.46
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 +7 -0
- package/dist/cjs/out/wechaty/puppet/post_pb.js +53 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +3 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +4 -1
- package/dist/cjs/proto/wechaty/puppet/post.proto +2 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/post_pb.d.ts +7 -0
- package/dist/esm/out/wechaty/puppet/post_pb.js +53 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +3 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +4 -1
- package/dist/esm/proto/wechaty/puppet/post.proto +2 -0
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/post_pb.d.ts +7 -0
- package/out/wechaty/puppet/post_pb.js +53 -0
- package/out/wechaty/puppet.openapi.yaml +3 -1
- package/out/wechaty/puppet.swagger.json +4 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -6,6 +6,7 @@ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/t
|
|
|
6
6
|
import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
|
|
7
7
|
import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
|
|
8
8
|
import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
|
|
9
|
+
import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
|
|
9
10
|
|
|
10
11
|
export class PostSayable extends jspb.Message {
|
|
11
12
|
getType(): SayableTypeMap[keyof SayableTypeMap];
|
|
@@ -30,6 +31,11 @@ export class PostSayable extends jspb.Message {
|
|
|
30
31
|
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
31
32
|
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
32
33
|
|
|
34
|
+
hasMiniProgram(): boolean;
|
|
35
|
+
clearMiniProgram(): void;
|
|
36
|
+
getMiniProgram(): wechaty_puppet_mini_program_pb.MiniProgramPayload | undefined;
|
|
37
|
+
setMiniProgram(value?: wechaty_puppet_mini_program_pb.MiniProgramPayload): void;
|
|
38
|
+
|
|
33
39
|
clearMentionIdListList(): void;
|
|
34
40
|
getMentionIdListList(): Array<string>;
|
|
35
41
|
setMentionIdListList(value: Array<string>): void;
|
|
@@ -53,6 +59,7 @@ export namespace PostSayable {
|
|
|
53
59
|
fileBox: string,
|
|
54
60
|
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
55
61
|
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
62
|
+
miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject,
|
|
56
63
|
mentionIdListList: Array<string>,
|
|
57
64
|
}
|
|
58
65
|
}
|
|
@@ -23,6 +23,8 @@ var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
|
|
|
23
23
|
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
24
24
|
var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
|
|
25
25
|
goog.object.extend(proto, wechaty_puppet_location_pb);
|
|
26
|
+
var wechaty_puppet_mini$program_pb = require('../../wechaty/puppet/mini-program_pb.js');
|
|
27
|
+
goog.object.extend(proto, wechaty_puppet_mini$program_pb);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
|
|
@@ -291,6 +293,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
|
|
|
291
293
|
fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
292
294
|
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
|
|
293
295
|
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f),
|
|
296
|
+
miniProgram: (f = msg.getMiniProgram()) && wechaty_puppet_mini$program_pb.MiniProgramPayload.toObject(includeInstance, f),
|
|
294
297
|
mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f
|
|
295
298
|
};
|
|
296
299
|
|
|
@@ -354,6 +357,11 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
|
|
|
354
357
|
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
355
358
|
msg.setChannel(value);
|
|
356
359
|
break;
|
|
360
|
+
case 7:
|
|
361
|
+
var value = new wechaty_puppet_mini$program_pb.MiniProgramPayload;
|
|
362
|
+
reader.readMessage(value,wechaty_puppet_mini$program_pb.MiniProgramPayload.deserializeBinaryFromReader);
|
|
363
|
+
msg.setMiniProgram(value);
|
|
364
|
+
break;
|
|
357
365
|
case 13:
|
|
358
366
|
var value = /** @type {string} */ (reader.readString());
|
|
359
367
|
msg.addMentionIdList(value);
|
|
@@ -431,6 +439,14 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
|
|
|
431
439
|
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
432
440
|
);
|
|
433
441
|
}
|
|
442
|
+
f = message.getMiniProgram();
|
|
443
|
+
if (f != null) {
|
|
444
|
+
writer.writeMessage(
|
|
445
|
+
7,
|
|
446
|
+
f,
|
|
447
|
+
wechaty_puppet_mini$program_pb.MiniProgramPayload.serializeBinaryToWriter
|
|
448
|
+
);
|
|
449
|
+
}
|
|
434
450
|
f = message.getMentionIdListList();
|
|
435
451
|
if (f.length > 0) {
|
|
436
452
|
writer.writeRepeatedString(
|
|
@@ -587,6 +603,43 @@ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
|
|
|
587
603
|
};
|
|
588
604
|
|
|
589
605
|
|
|
606
|
+
/**
|
|
607
|
+
* optional MiniProgramPayload mini_program = 7;
|
|
608
|
+
* @return {?proto.wechaty.puppet.MiniProgramPayload}
|
|
609
|
+
*/
|
|
610
|
+
proto.wechaty.puppet.PostSayable.prototype.getMiniProgram = function() {
|
|
611
|
+
return /** @type{?proto.wechaty.puppet.MiniProgramPayload} */ (
|
|
612
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 7));
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @param {?proto.wechaty.puppet.MiniProgramPayload|undefined} value
|
|
618
|
+
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
619
|
+
*/
|
|
620
|
+
proto.wechaty.puppet.PostSayable.prototype.setMiniProgram = function(value) {
|
|
621
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Clears the message field making it undefined.
|
|
627
|
+
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
628
|
+
*/
|
|
629
|
+
proto.wechaty.puppet.PostSayable.prototype.clearMiniProgram = function() {
|
|
630
|
+
return this.setMiniProgram(undefined);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Returns whether this field is set.
|
|
636
|
+
* @return {boolean}
|
|
637
|
+
*/
|
|
638
|
+
proto.wechaty.puppet.PostSayable.prototype.hasMiniProgram = function() {
|
|
639
|
+
return jspb.Message.getField(this, 7) != null;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
|
|
590
643
|
/**
|
|
591
644
|
* repeated string mention_id_list = 13;
|
|
592
645
|
* @return {!Array<string>}
|
|
@@ -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.46
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -3056,6 +3056,8 @@ definitions:
|
|
|
3056
3056
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
3057
3057
|
channel:
|
|
3058
3058
|
$ref: '#/definitions/puppetChannelPayload'
|
|
3059
|
+
miniProgram:
|
|
3060
|
+
$ref: '#/definitions/puppetMiniProgramPayload'
|
|
3059
3061
|
mentionIdList:
|
|
3060
3062
|
type: array
|
|
3061
3063
|
items:
|
|
@@ -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.46",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4325,6 +4325,9 @@
|
|
|
4325
4325
|
"channel": {
|
|
4326
4326
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4327
4327
|
},
|
|
4328
|
+
"miniProgram": {
|
|
4329
|
+
"$ref": "#/definitions/puppetMiniProgramPayload"
|
|
4330
|
+
},
|
|
4328
4331
|
"mentionIdList": {
|
|
4329
4332
|
"type": "array",
|
|
4330
4333
|
"items": {
|
|
@@ -10,6 +10,7 @@ import "google/protobuf/timestamp.proto";
|
|
|
10
10
|
import "wechaty/puppet/url-link.proto";
|
|
11
11
|
import "wechaty/puppet/channel.proto";
|
|
12
12
|
import "wechaty/puppet/location.proto";
|
|
13
|
+
import "wechaty/puppet/mini-program.proto";
|
|
13
14
|
|
|
14
15
|
enum PostType {
|
|
15
16
|
POST_TYPE_UNSPECIFIED = 0;
|
|
@@ -39,6 +40,7 @@ message PostSayable {
|
|
|
39
40
|
string file_box = 4; // FileBox.toJSON()
|
|
40
41
|
UrlLinkPayload url_link = 5;
|
|
41
42
|
ChannelPayload channel = 6;
|
|
43
|
+
MiniProgramPayload mini_program = 7;
|
|
42
44
|
|
|
43
45
|
repeated string mention_id_list = 13; // 文本类型的sayable可传,朋友圈暂不支持
|
|
44
46
|
}
|
|
@@ -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.46",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -6,6 +6,7 @@ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/t
|
|
|
6
6
|
import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
|
|
7
7
|
import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
|
|
8
8
|
import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
|
|
9
|
+
import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
|
|
9
10
|
|
|
10
11
|
export class PostSayable extends jspb.Message {
|
|
11
12
|
getType(): SayableTypeMap[keyof SayableTypeMap];
|
|
@@ -30,6 +31,11 @@ export class PostSayable extends jspb.Message {
|
|
|
30
31
|
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
31
32
|
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
32
33
|
|
|
34
|
+
hasMiniProgram(): boolean;
|
|
35
|
+
clearMiniProgram(): void;
|
|
36
|
+
getMiniProgram(): wechaty_puppet_mini_program_pb.MiniProgramPayload | undefined;
|
|
37
|
+
setMiniProgram(value?: wechaty_puppet_mini_program_pb.MiniProgramPayload): void;
|
|
38
|
+
|
|
33
39
|
clearMentionIdListList(): void;
|
|
34
40
|
getMentionIdListList(): Array<string>;
|
|
35
41
|
setMentionIdListList(value: Array<string>): void;
|
|
@@ -53,6 +59,7 @@ export namespace PostSayable {
|
|
|
53
59
|
fileBox: string,
|
|
54
60
|
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
55
61
|
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
62
|
+
miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject,
|
|
56
63
|
mentionIdListList: Array<string>,
|
|
57
64
|
}
|
|
58
65
|
}
|
|
@@ -23,6 +23,8 @@ var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
|
|
|
23
23
|
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
24
24
|
var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
|
|
25
25
|
goog.object.extend(proto, wechaty_puppet_location_pb);
|
|
26
|
+
var wechaty_puppet_mini$program_pb = require('../../wechaty/puppet/mini-program_pb.js');
|
|
27
|
+
goog.object.extend(proto, wechaty_puppet_mini$program_pb);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
|
|
@@ -291,6 +293,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
|
|
|
291
293
|
fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
292
294
|
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
|
|
293
295
|
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f),
|
|
296
|
+
miniProgram: (f = msg.getMiniProgram()) && wechaty_puppet_mini$program_pb.MiniProgramPayload.toObject(includeInstance, f),
|
|
294
297
|
mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f
|
|
295
298
|
};
|
|
296
299
|
|
|
@@ -354,6 +357,11 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
|
|
|
354
357
|
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
355
358
|
msg.setChannel(value);
|
|
356
359
|
break;
|
|
360
|
+
case 7:
|
|
361
|
+
var value = new wechaty_puppet_mini$program_pb.MiniProgramPayload;
|
|
362
|
+
reader.readMessage(value,wechaty_puppet_mini$program_pb.MiniProgramPayload.deserializeBinaryFromReader);
|
|
363
|
+
msg.setMiniProgram(value);
|
|
364
|
+
break;
|
|
357
365
|
case 13:
|
|
358
366
|
var value = /** @type {string} */ (reader.readString());
|
|
359
367
|
msg.addMentionIdList(value);
|
|
@@ -431,6 +439,14 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
|
|
|
431
439
|
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
432
440
|
);
|
|
433
441
|
}
|
|
442
|
+
f = message.getMiniProgram();
|
|
443
|
+
if (f != null) {
|
|
444
|
+
writer.writeMessage(
|
|
445
|
+
7,
|
|
446
|
+
f,
|
|
447
|
+
wechaty_puppet_mini$program_pb.MiniProgramPayload.serializeBinaryToWriter
|
|
448
|
+
);
|
|
449
|
+
}
|
|
434
450
|
f = message.getMentionIdListList();
|
|
435
451
|
if (f.length > 0) {
|
|
436
452
|
writer.writeRepeatedString(
|
|
@@ -587,6 +603,43 @@ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
|
|
|
587
603
|
};
|
|
588
604
|
|
|
589
605
|
|
|
606
|
+
/**
|
|
607
|
+
* optional MiniProgramPayload mini_program = 7;
|
|
608
|
+
* @return {?proto.wechaty.puppet.MiniProgramPayload}
|
|
609
|
+
*/
|
|
610
|
+
proto.wechaty.puppet.PostSayable.prototype.getMiniProgram = function() {
|
|
611
|
+
return /** @type{?proto.wechaty.puppet.MiniProgramPayload} */ (
|
|
612
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 7));
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @param {?proto.wechaty.puppet.MiniProgramPayload|undefined} value
|
|
618
|
+
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
619
|
+
*/
|
|
620
|
+
proto.wechaty.puppet.PostSayable.prototype.setMiniProgram = function(value) {
|
|
621
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Clears the message field making it undefined.
|
|
627
|
+
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
628
|
+
*/
|
|
629
|
+
proto.wechaty.puppet.PostSayable.prototype.clearMiniProgram = function() {
|
|
630
|
+
return this.setMiniProgram(undefined);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Returns whether this field is set.
|
|
636
|
+
* @return {boolean}
|
|
637
|
+
*/
|
|
638
|
+
proto.wechaty.puppet.PostSayable.prototype.hasMiniProgram = function() {
|
|
639
|
+
return jspb.Message.getField(this, 7) != null;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
|
|
590
643
|
/**
|
|
591
644
|
* repeated string mention_id_list = 13;
|
|
592
645
|
* @return {!Array<string>}
|
|
@@ -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.46
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -3056,6 +3056,8 @@ definitions:
|
|
|
3056
3056
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
3057
3057
|
channel:
|
|
3058
3058
|
$ref: '#/definitions/puppetChannelPayload'
|
|
3059
|
+
miniProgram:
|
|
3060
|
+
$ref: '#/definitions/puppetMiniProgramPayload'
|
|
3059
3061
|
mentionIdList:
|
|
3060
3062
|
type: array
|
|
3061
3063
|
items:
|
|
@@ -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.46",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4325,6 +4325,9 @@
|
|
|
4325
4325
|
"channel": {
|
|
4326
4326
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4327
4327
|
},
|
|
4328
|
+
"miniProgram": {
|
|
4329
|
+
"$ref": "#/definitions/puppetMiniProgramPayload"
|
|
4330
|
+
},
|
|
4328
4331
|
"mentionIdList": {
|
|
4329
4332
|
"type": "array",
|
|
4330
4333
|
"items": {
|
|
@@ -10,6 +10,7 @@ import "google/protobuf/timestamp.proto";
|
|
|
10
10
|
import "wechaty/puppet/url-link.proto";
|
|
11
11
|
import "wechaty/puppet/channel.proto";
|
|
12
12
|
import "wechaty/puppet/location.proto";
|
|
13
|
+
import "wechaty/puppet/mini-program.proto";
|
|
13
14
|
|
|
14
15
|
enum PostType {
|
|
15
16
|
POST_TYPE_UNSPECIFIED = 0;
|
|
@@ -39,6 +40,7 @@ message PostSayable {
|
|
|
39
40
|
string file_box = 4; // FileBox.toJSON()
|
|
40
41
|
UrlLinkPayload url_link = 5;
|
|
41
42
|
ChannelPayload channel = 6;
|
|
43
|
+
MiniProgramPayload mini_program = 7;
|
|
42
44
|
|
|
43
45
|
repeated string mention_id_list = 13; // 文本类型的sayable可传,朋友圈暂不支持
|
|
44
46
|
}
|
|
@@ -6,6 +6,7 @@ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/t
|
|
|
6
6
|
import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
|
|
7
7
|
import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
|
|
8
8
|
import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
|
|
9
|
+
import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
|
|
9
10
|
|
|
10
11
|
export class PostSayable extends jspb.Message {
|
|
11
12
|
getType(): SayableTypeMap[keyof SayableTypeMap];
|
|
@@ -30,6 +31,11 @@ export class PostSayable extends jspb.Message {
|
|
|
30
31
|
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
31
32
|
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
32
33
|
|
|
34
|
+
hasMiniProgram(): boolean;
|
|
35
|
+
clearMiniProgram(): void;
|
|
36
|
+
getMiniProgram(): wechaty_puppet_mini_program_pb.MiniProgramPayload | undefined;
|
|
37
|
+
setMiniProgram(value?: wechaty_puppet_mini_program_pb.MiniProgramPayload): void;
|
|
38
|
+
|
|
33
39
|
clearMentionIdListList(): void;
|
|
34
40
|
getMentionIdListList(): Array<string>;
|
|
35
41
|
setMentionIdListList(value: Array<string>): void;
|
|
@@ -53,6 +59,7 @@ export namespace PostSayable {
|
|
|
53
59
|
fileBox: string,
|
|
54
60
|
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
55
61
|
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
62
|
+
miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject,
|
|
56
63
|
mentionIdListList: Array<string>,
|
|
57
64
|
}
|
|
58
65
|
}
|
|
@@ -23,6 +23,8 @@ var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
|
|
|
23
23
|
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
24
24
|
var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
|
|
25
25
|
goog.object.extend(proto, wechaty_puppet_location_pb);
|
|
26
|
+
var wechaty_puppet_mini$program_pb = require('../../wechaty/puppet/mini-program_pb.js');
|
|
27
|
+
goog.object.extend(proto, wechaty_puppet_mini$program_pb);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
|
|
@@ -291,6 +293,7 @@ proto.wechaty.puppet.PostSayable.toObject = function(includeInstance, msg) {
|
|
|
291
293
|
fileBox: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
292
294
|
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f),
|
|
293
295
|
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f),
|
|
296
|
+
miniProgram: (f = msg.getMiniProgram()) && wechaty_puppet_mini$program_pb.MiniProgramPayload.toObject(includeInstance, f),
|
|
294
297
|
mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f
|
|
295
298
|
};
|
|
296
299
|
|
|
@@ -354,6 +357,11 @@ proto.wechaty.puppet.PostSayable.deserializeBinaryFromReader = function(msg, rea
|
|
|
354
357
|
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
355
358
|
msg.setChannel(value);
|
|
356
359
|
break;
|
|
360
|
+
case 7:
|
|
361
|
+
var value = new wechaty_puppet_mini$program_pb.MiniProgramPayload;
|
|
362
|
+
reader.readMessage(value,wechaty_puppet_mini$program_pb.MiniProgramPayload.deserializeBinaryFromReader);
|
|
363
|
+
msg.setMiniProgram(value);
|
|
364
|
+
break;
|
|
357
365
|
case 13:
|
|
358
366
|
var value = /** @type {string} */ (reader.readString());
|
|
359
367
|
msg.addMentionIdList(value);
|
|
@@ -431,6 +439,14 @@ proto.wechaty.puppet.PostSayable.serializeBinaryToWriter = function(message, wri
|
|
|
431
439
|
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
432
440
|
);
|
|
433
441
|
}
|
|
442
|
+
f = message.getMiniProgram();
|
|
443
|
+
if (f != null) {
|
|
444
|
+
writer.writeMessage(
|
|
445
|
+
7,
|
|
446
|
+
f,
|
|
447
|
+
wechaty_puppet_mini$program_pb.MiniProgramPayload.serializeBinaryToWriter
|
|
448
|
+
);
|
|
449
|
+
}
|
|
434
450
|
f = message.getMentionIdListList();
|
|
435
451
|
if (f.length > 0) {
|
|
436
452
|
writer.writeRepeatedString(
|
|
@@ -587,6 +603,43 @@ proto.wechaty.puppet.PostSayable.prototype.hasChannel = function() {
|
|
|
587
603
|
};
|
|
588
604
|
|
|
589
605
|
|
|
606
|
+
/**
|
|
607
|
+
* optional MiniProgramPayload mini_program = 7;
|
|
608
|
+
* @return {?proto.wechaty.puppet.MiniProgramPayload}
|
|
609
|
+
*/
|
|
610
|
+
proto.wechaty.puppet.PostSayable.prototype.getMiniProgram = function() {
|
|
611
|
+
return /** @type{?proto.wechaty.puppet.MiniProgramPayload} */ (
|
|
612
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 7));
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @param {?proto.wechaty.puppet.MiniProgramPayload|undefined} value
|
|
618
|
+
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
619
|
+
*/
|
|
620
|
+
proto.wechaty.puppet.PostSayable.prototype.setMiniProgram = function(value) {
|
|
621
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Clears the message field making it undefined.
|
|
627
|
+
* @return {!proto.wechaty.puppet.PostSayable} returns this
|
|
628
|
+
*/
|
|
629
|
+
proto.wechaty.puppet.PostSayable.prototype.clearMiniProgram = function() {
|
|
630
|
+
return this.setMiniProgram(undefined);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Returns whether this field is set.
|
|
636
|
+
* @return {boolean}
|
|
637
|
+
*/
|
|
638
|
+
proto.wechaty.puppet.PostSayable.prototype.hasMiniProgram = function() {
|
|
639
|
+
return jspb.Message.getField(this, 7) != null;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
|
|
590
643
|
/**
|
|
591
644
|
* repeated string mention_id_list = 13;
|
|
592
645
|
* @return {!Array<string>}
|
|
@@ -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.46
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -3056,6 +3056,8 @@ definitions:
|
|
|
3056
3056
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
3057
3057
|
channel:
|
|
3058
3058
|
$ref: '#/definitions/puppetChannelPayload'
|
|
3059
|
+
miniProgram:
|
|
3060
|
+
$ref: '#/definitions/puppetMiniProgramPayload'
|
|
3059
3061
|
mentionIdList:
|
|
3060
3062
|
type: array
|
|
3061
3063
|
items:
|
|
@@ -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.46",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4325,6 +4325,9 @@
|
|
|
4325
4325
|
"channel": {
|
|
4326
4326
|
"$ref": "#/definitions/puppetChannelPayload"
|
|
4327
4327
|
},
|
|
4328
|
+
"miniProgram": {
|
|
4329
|
+
"$ref": "#/definitions/puppetMiniProgramPayload"
|
|
4330
|
+
},
|
|
4328
4331
|
"mentionIdList": {
|
|
4329
4332
|
"type": "array",
|
|
4330
4333
|
"items": {
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED