@juzi/wechaty-grpc 1.0.47 → 1.0.48
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/message_pb.d.ts +0 -12
- package/dist/cjs/out/wechaty/puppet/message_pb.js +5 -45
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +1 -10
- package/dist/cjs/out/wechaty/puppet.swagger.json +1 -13
- package/dist/cjs/proto/wechaty/puppet/message.proto +1 -8
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +0 -12
- package/dist/esm/out/wechaty/puppet/message_pb.js +5 -45
- package/dist/esm/out/wechaty/puppet.openapi.yaml +1 -10
- package/dist/esm/out/wechaty/puppet.swagger.json +1 -13
- package/dist/esm/proto/wechaty/puppet/message.proto +1 -8
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +0 -12
- package/out/wechaty/puppet/message_pb.js +5 -45
- package/out/wechaty/puppet.openapi.yaml +1 -10
- package/out/wechaty/puppet.swagger.json +1 -13
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -949,9 +949,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
949
949
|
setTargetIdsList(value: Array<string>): void;
|
|
950
950
|
addTargetIds(value: string, index?: number): string;
|
|
951
951
|
|
|
952
|
-
getType(): MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap];
|
|
953
|
-
setType(value: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap]): void;
|
|
954
|
-
|
|
955
952
|
hasContent(): boolean;
|
|
956
953
|
clearContent(): void;
|
|
957
954
|
getContent(): wechaty_puppet_post_pb.PostPayloadClient | undefined;
|
|
@@ -970,7 +967,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
970
967
|
export namespace CreateMessageBroadcastRequest {
|
|
971
968
|
export type AsObject = {
|
|
972
969
|
targetIdsList: Array<string>,
|
|
973
|
-
type: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap],
|
|
974
970
|
content?: wechaty_puppet_post_pb.PostPayloadClient.AsObject,
|
|
975
971
|
}
|
|
976
972
|
}
|
|
@@ -1019,11 +1015,3 @@ export interface MessageTypeMap {
|
|
|
1019
1015
|
|
|
1020
1016
|
export const MessageType: MessageTypeMap;
|
|
1021
1017
|
|
|
1022
|
-
export interface MessageBroadcastTargetTypeMap {
|
|
1023
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0;
|
|
1024
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1;
|
|
1025
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
export const MessageBroadcastTargetType: MessageBroadcastTargetTypeMap;
|
|
1029
|
-
|
|
@@ -35,7 +35,6 @@ goog.exportSymbol('proto.wechaty.puppet.CreateMessageBroadcastRequest', null, gl
|
|
|
35
35
|
goog.exportSymbol('proto.wechaty.puppet.CreateMessageBroadcastResponse', null, global);
|
|
36
36
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetResponse', null, global);
|
|
38
|
-
goog.exportSymbol('proto.wechaty.puppet.MessageBroadcastTargetType', null, global);
|
|
39
38
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
|
|
40
39
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
|
|
41
40
|
goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
|
|
@@ -7320,7 +7319,6 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.toObject = function
|
|
|
7320
7319
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.toObject = function(includeInstance, msg) {
|
|
7321
7320
|
var f, obj = {
|
|
7322
7321
|
targetIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
7323
|
-
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7324
7322
|
content: (f = msg.getContent()) && wechaty_puppet_post_pb.PostPayloadClient.toObject(includeInstance, f)
|
|
7325
7323
|
};
|
|
7326
7324
|
|
|
@@ -7363,10 +7361,6 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.deserializeBinaryFromReader =
|
|
|
7363
7361
|
msg.addTargetIds(value);
|
|
7364
7362
|
break;
|
|
7365
7363
|
case 2:
|
|
7366
|
-
var value = /** @type {!proto.wechaty.puppet.MessageBroadcastTargetType} */ (reader.readEnum());
|
|
7367
|
-
msg.setType(value);
|
|
7368
|
-
break;
|
|
7369
|
-
case 3:
|
|
7370
7364
|
var value = new wechaty_puppet_post_pb.PostPayloadClient;
|
|
7371
7365
|
reader.readMessage(value,wechaty_puppet_post_pb.PostPayloadClient.deserializeBinaryFromReader);
|
|
7372
7366
|
msg.setContent(value);
|
|
@@ -7407,17 +7401,10 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.serializeBinaryToWriter = fun
|
|
|
7407
7401
|
f
|
|
7408
7402
|
);
|
|
7409
7403
|
}
|
|
7410
|
-
f = message.getType();
|
|
7411
|
-
if (f !== 0.0) {
|
|
7412
|
-
writer.writeEnum(
|
|
7413
|
-
2,
|
|
7414
|
-
f
|
|
7415
|
-
);
|
|
7416
|
-
}
|
|
7417
7404
|
f = message.getContent();
|
|
7418
7405
|
if (f != null) {
|
|
7419
7406
|
writer.writeMessage(
|
|
7420
|
-
|
|
7407
|
+
2,
|
|
7421
7408
|
f,
|
|
7422
7409
|
wechaty_puppet_post_pb.PostPayloadClient.serializeBinaryToWriter
|
|
7423
7410
|
);
|
|
@@ -7463,30 +7450,12 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.clearTargetIdsList
|
|
|
7463
7450
|
|
|
7464
7451
|
|
|
7465
7452
|
/**
|
|
7466
|
-
* optional
|
|
7467
|
-
* @return {!proto.wechaty.puppet.MessageBroadcastTargetType}
|
|
7468
|
-
*/
|
|
7469
|
-
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getType = function() {
|
|
7470
|
-
return /** @type {!proto.wechaty.puppet.MessageBroadcastTargetType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7471
|
-
};
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
/**
|
|
7475
|
-
* @param {!proto.wechaty.puppet.MessageBroadcastTargetType} value
|
|
7476
|
-
* @return {!proto.wechaty.puppet.CreateMessageBroadcastRequest} returns this
|
|
7477
|
-
*/
|
|
7478
|
-
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.setType = function(value) {
|
|
7479
|
-
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
7480
|
-
};
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
/**
|
|
7484
|
-
* optional PostPayloadClient content = 3;
|
|
7453
|
+
* optional PostPayloadClient content = 2;
|
|
7485
7454
|
* @return {?proto.wechaty.puppet.PostPayloadClient}
|
|
7486
7455
|
*/
|
|
7487
7456
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getContent = function() {
|
|
7488
7457
|
return /** @type{?proto.wechaty.puppet.PostPayloadClient} */ (
|
|
7489
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient,
|
|
7458
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient, 2));
|
|
7490
7459
|
};
|
|
7491
7460
|
|
|
7492
7461
|
|
|
@@ -7495,7 +7464,7 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getContent = functi
|
|
|
7495
7464
|
* @return {!proto.wechaty.puppet.CreateMessageBroadcastRequest} returns this
|
|
7496
7465
|
*/
|
|
7497
7466
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.setContent = function(value) {
|
|
7498
|
-
return jspb.Message.setWrapperField(this,
|
|
7467
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7499
7468
|
};
|
|
7500
7469
|
|
|
7501
7470
|
|
|
@@ -7513,7 +7482,7 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.clearContent = func
|
|
|
7513
7482
|
* @return {boolean}
|
|
7514
7483
|
*/
|
|
7515
7484
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.hasContent = function() {
|
|
7516
|
-
return jspb.Message.getField(this,
|
|
7485
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7517
7486
|
};
|
|
7518
7487
|
|
|
7519
7488
|
|
|
@@ -7672,13 +7641,4 @@ proto.wechaty.puppet.MessageType = {
|
|
|
7672
7641
|
MESSAGE_TYPE_SYSTEM: 18
|
|
7673
7642
|
};
|
|
7674
7643
|
|
|
7675
|
-
/**
|
|
7676
|
-
* @enum {number}
|
|
7677
|
-
*/
|
|
7678
|
-
proto.wechaty.puppet.MessageBroadcastTargetType = {
|
|
7679
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0,
|
|
7680
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1,
|
|
7681
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2
|
|
7682
|
-
};
|
|
7683
|
-
|
|
7684
7644
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.48
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2385,8 +2385,6 @@ definitions:
|
|
|
2385
2385
|
type: array
|
|
2386
2386
|
items:
|
|
2387
2387
|
type: string
|
|
2388
|
-
type:
|
|
2389
|
-
$ref: '#/definitions/puppetMessageBroadcastTargetType'
|
|
2390
2388
|
content:
|
|
2391
2389
|
$ref: '#/definitions/puppetPostPayloadClient'
|
|
2392
2390
|
puppetCreateMessageBroadcastResponse:
|
|
@@ -2605,13 +2603,6 @@ definitions:
|
|
|
2605
2603
|
title: 地址名,例如xx大厦
|
|
2606
2604
|
puppetLogoutResponse:
|
|
2607
2605
|
type: object
|
|
2608
|
-
puppetMessageBroadcastTargetType:
|
|
2609
|
-
type: string
|
|
2610
|
-
enum:
|
|
2611
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2612
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_CONTACT
|
|
2613
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_ROOM
|
|
2614
|
-
default: MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2615
2606
|
puppetMessageChannelResponse:
|
|
2616
2607
|
type: object
|
|
2617
2608
|
properties:
|
|
@@ -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.48",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3514,9 +3514,6 @@
|
|
|
3514
3514
|
"type": "string"
|
|
3515
3515
|
}
|
|
3516
3516
|
},
|
|
3517
|
-
"type": {
|
|
3518
|
-
"$ref": "#/definitions/puppetMessageBroadcastTargetType"
|
|
3519
|
-
},
|
|
3520
3517
|
"content": {
|
|
3521
3518
|
"$ref": "#/definitions/puppetPostPayloadClient"
|
|
3522
3519
|
}
|
|
@@ -3768,15 +3765,6 @@
|
|
|
3768
3765
|
"puppetLogoutResponse": {
|
|
3769
3766
|
"type": "object"
|
|
3770
3767
|
},
|
|
3771
|
-
"puppetMessageBroadcastTargetType": {
|
|
3772
|
-
"type": "string",
|
|
3773
|
-
"enum": [
|
|
3774
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN",
|
|
3775
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_CONTACT",
|
|
3776
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_ROOM"
|
|
3777
|
-
],
|
|
3778
|
-
"default": "MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN"
|
|
3779
|
-
},
|
|
3780
3768
|
"puppetMessageChannelResponse": {
|
|
3781
3769
|
"type": "object",
|
|
3782
3770
|
"properties": {
|
|
@@ -260,12 +260,6 @@ message MessagePreviewResponse {
|
|
|
260
260
|
string file_box = 1;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
enum MessageBroadcastTargetType {
|
|
264
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN = 0;
|
|
265
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT = 1;
|
|
266
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM = 2;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
263
|
message GetMessageBroadcastTargetRequest {}
|
|
270
264
|
|
|
271
265
|
message GetMessageBroadcastTargetResponse {
|
|
@@ -275,8 +269,7 @@ message GetMessageBroadcastTargetResponse {
|
|
|
275
269
|
|
|
276
270
|
message CreateMessageBroadcastRequest {
|
|
277
271
|
repeated string target_ids = 1;
|
|
278
|
-
|
|
279
|
-
PostPayloadClient content = 3;
|
|
272
|
+
PostPayloadClient content = 2;
|
|
280
273
|
}
|
|
281
274
|
|
|
282
275
|
message CreateMessageBroadcastResponse {
|
|
@@ -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.48",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -949,9 +949,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
949
949
|
setTargetIdsList(value: Array<string>): void;
|
|
950
950
|
addTargetIds(value: string, index?: number): string;
|
|
951
951
|
|
|
952
|
-
getType(): MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap];
|
|
953
|
-
setType(value: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap]): void;
|
|
954
|
-
|
|
955
952
|
hasContent(): boolean;
|
|
956
953
|
clearContent(): void;
|
|
957
954
|
getContent(): wechaty_puppet_post_pb.PostPayloadClient | undefined;
|
|
@@ -970,7 +967,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
970
967
|
export namespace CreateMessageBroadcastRequest {
|
|
971
968
|
export type AsObject = {
|
|
972
969
|
targetIdsList: Array<string>,
|
|
973
|
-
type: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap],
|
|
974
970
|
content?: wechaty_puppet_post_pb.PostPayloadClient.AsObject,
|
|
975
971
|
}
|
|
976
972
|
}
|
|
@@ -1019,11 +1015,3 @@ export interface MessageTypeMap {
|
|
|
1019
1015
|
|
|
1020
1016
|
export const MessageType: MessageTypeMap;
|
|
1021
1017
|
|
|
1022
|
-
export interface MessageBroadcastTargetTypeMap {
|
|
1023
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0;
|
|
1024
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1;
|
|
1025
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
export const MessageBroadcastTargetType: MessageBroadcastTargetTypeMap;
|
|
1029
|
-
|
|
@@ -35,7 +35,6 @@ goog.exportSymbol('proto.wechaty.puppet.CreateMessageBroadcastRequest', null, gl
|
|
|
35
35
|
goog.exportSymbol('proto.wechaty.puppet.CreateMessageBroadcastResponse', null, global);
|
|
36
36
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetResponse', null, global);
|
|
38
|
-
goog.exportSymbol('proto.wechaty.puppet.MessageBroadcastTargetType', null, global);
|
|
39
38
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
|
|
40
39
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
|
|
41
40
|
goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
|
|
@@ -7320,7 +7319,6 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.toObject = function
|
|
|
7320
7319
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.toObject = function(includeInstance, msg) {
|
|
7321
7320
|
var f, obj = {
|
|
7322
7321
|
targetIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
7323
|
-
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7324
7322
|
content: (f = msg.getContent()) && wechaty_puppet_post_pb.PostPayloadClient.toObject(includeInstance, f)
|
|
7325
7323
|
};
|
|
7326
7324
|
|
|
@@ -7363,10 +7361,6 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.deserializeBinaryFromReader =
|
|
|
7363
7361
|
msg.addTargetIds(value);
|
|
7364
7362
|
break;
|
|
7365
7363
|
case 2:
|
|
7366
|
-
var value = /** @type {!proto.wechaty.puppet.MessageBroadcastTargetType} */ (reader.readEnum());
|
|
7367
|
-
msg.setType(value);
|
|
7368
|
-
break;
|
|
7369
|
-
case 3:
|
|
7370
7364
|
var value = new wechaty_puppet_post_pb.PostPayloadClient;
|
|
7371
7365
|
reader.readMessage(value,wechaty_puppet_post_pb.PostPayloadClient.deserializeBinaryFromReader);
|
|
7372
7366
|
msg.setContent(value);
|
|
@@ -7407,17 +7401,10 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.serializeBinaryToWriter = fun
|
|
|
7407
7401
|
f
|
|
7408
7402
|
);
|
|
7409
7403
|
}
|
|
7410
|
-
f = message.getType();
|
|
7411
|
-
if (f !== 0.0) {
|
|
7412
|
-
writer.writeEnum(
|
|
7413
|
-
2,
|
|
7414
|
-
f
|
|
7415
|
-
);
|
|
7416
|
-
}
|
|
7417
7404
|
f = message.getContent();
|
|
7418
7405
|
if (f != null) {
|
|
7419
7406
|
writer.writeMessage(
|
|
7420
|
-
|
|
7407
|
+
2,
|
|
7421
7408
|
f,
|
|
7422
7409
|
wechaty_puppet_post_pb.PostPayloadClient.serializeBinaryToWriter
|
|
7423
7410
|
);
|
|
@@ -7463,30 +7450,12 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.clearTargetIdsList
|
|
|
7463
7450
|
|
|
7464
7451
|
|
|
7465
7452
|
/**
|
|
7466
|
-
* optional
|
|
7467
|
-
* @return {!proto.wechaty.puppet.MessageBroadcastTargetType}
|
|
7468
|
-
*/
|
|
7469
|
-
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getType = function() {
|
|
7470
|
-
return /** @type {!proto.wechaty.puppet.MessageBroadcastTargetType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7471
|
-
};
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
/**
|
|
7475
|
-
* @param {!proto.wechaty.puppet.MessageBroadcastTargetType} value
|
|
7476
|
-
* @return {!proto.wechaty.puppet.CreateMessageBroadcastRequest} returns this
|
|
7477
|
-
*/
|
|
7478
|
-
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.setType = function(value) {
|
|
7479
|
-
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
7480
|
-
};
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
/**
|
|
7484
|
-
* optional PostPayloadClient content = 3;
|
|
7453
|
+
* optional PostPayloadClient content = 2;
|
|
7485
7454
|
* @return {?proto.wechaty.puppet.PostPayloadClient}
|
|
7486
7455
|
*/
|
|
7487
7456
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getContent = function() {
|
|
7488
7457
|
return /** @type{?proto.wechaty.puppet.PostPayloadClient} */ (
|
|
7489
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient,
|
|
7458
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient, 2));
|
|
7490
7459
|
};
|
|
7491
7460
|
|
|
7492
7461
|
|
|
@@ -7495,7 +7464,7 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getContent = functi
|
|
|
7495
7464
|
* @return {!proto.wechaty.puppet.CreateMessageBroadcastRequest} returns this
|
|
7496
7465
|
*/
|
|
7497
7466
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.setContent = function(value) {
|
|
7498
|
-
return jspb.Message.setWrapperField(this,
|
|
7467
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7499
7468
|
};
|
|
7500
7469
|
|
|
7501
7470
|
|
|
@@ -7513,7 +7482,7 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.clearContent = func
|
|
|
7513
7482
|
* @return {boolean}
|
|
7514
7483
|
*/
|
|
7515
7484
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.hasContent = function() {
|
|
7516
|
-
return jspb.Message.getField(this,
|
|
7485
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7517
7486
|
};
|
|
7518
7487
|
|
|
7519
7488
|
|
|
@@ -7672,13 +7641,4 @@ proto.wechaty.puppet.MessageType = {
|
|
|
7672
7641
|
MESSAGE_TYPE_SYSTEM: 18
|
|
7673
7642
|
};
|
|
7674
7643
|
|
|
7675
|
-
/**
|
|
7676
|
-
* @enum {number}
|
|
7677
|
-
*/
|
|
7678
|
-
proto.wechaty.puppet.MessageBroadcastTargetType = {
|
|
7679
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0,
|
|
7680
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1,
|
|
7681
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2
|
|
7682
|
-
};
|
|
7683
|
-
|
|
7684
7644
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.48
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2385,8 +2385,6 @@ definitions:
|
|
|
2385
2385
|
type: array
|
|
2386
2386
|
items:
|
|
2387
2387
|
type: string
|
|
2388
|
-
type:
|
|
2389
|
-
$ref: '#/definitions/puppetMessageBroadcastTargetType'
|
|
2390
2388
|
content:
|
|
2391
2389
|
$ref: '#/definitions/puppetPostPayloadClient'
|
|
2392
2390
|
puppetCreateMessageBroadcastResponse:
|
|
@@ -2605,13 +2603,6 @@ definitions:
|
|
|
2605
2603
|
title: 地址名,例如xx大厦
|
|
2606
2604
|
puppetLogoutResponse:
|
|
2607
2605
|
type: object
|
|
2608
|
-
puppetMessageBroadcastTargetType:
|
|
2609
|
-
type: string
|
|
2610
|
-
enum:
|
|
2611
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2612
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_CONTACT
|
|
2613
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_ROOM
|
|
2614
|
-
default: MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2615
2606
|
puppetMessageChannelResponse:
|
|
2616
2607
|
type: object
|
|
2617
2608
|
properties:
|
|
@@ -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.48",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3514,9 +3514,6 @@
|
|
|
3514
3514
|
"type": "string"
|
|
3515
3515
|
}
|
|
3516
3516
|
},
|
|
3517
|
-
"type": {
|
|
3518
|
-
"$ref": "#/definitions/puppetMessageBroadcastTargetType"
|
|
3519
|
-
},
|
|
3520
3517
|
"content": {
|
|
3521
3518
|
"$ref": "#/definitions/puppetPostPayloadClient"
|
|
3522
3519
|
}
|
|
@@ -3768,15 +3765,6 @@
|
|
|
3768
3765
|
"puppetLogoutResponse": {
|
|
3769
3766
|
"type": "object"
|
|
3770
3767
|
},
|
|
3771
|
-
"puppetMessageBroadcastTargetType": {
|
|
3772
|
-
"type": "string",
|
|
3773
|
-
"enum": [
|
|
3774
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN",
|
|
3775
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_CONTACT",
|
|
3776
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_ROOM"
|
|
3777
|
-
],
|
|
3778
|
-
"default": "MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN"
|
|
3779
|
-
},
|
|
3780
3768
|
"puppetMessageChannelResponse": {
|
|
3781
3769
|
"type": "object",
|
|
3782
3770
|
"properties": {
|
|
@@ -260,12 +260,6 @@ message MessagePreviewResponse {
|
|
|
260
260
|
string file_box = 1;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
enum MessageBroadcastTargetType {
|
|
264
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN = 0;
|
|
265
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT = 1;
|
|
266
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM = 2;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
263
|
message GetMessageBroadcastTargetRequest {}
|
|
270
264
|
|
|
271
265
|
message GetMessageBroadcastTargetResponse {
|
|
@@ -275,8 +269,7 @@ message GetMessageBroadcastTargetResponse {
|
|
|
275
269
|
|
|
276
270
|
message CreateMessageBroadcastRequest {
|
|
277
271
|
repeated string target_ids = 1;
|
|
278
|
-
|
|
279
|
-
PostPayloadClient content = 3;
|
|
272
|
+
PostPayloadClient content = 2;
|
|
280
273
|
}
|
|
281
274
|
|
|
282
275
|
message CreateMessageBroadcastResponse {
|
|
@@ -949,9 +949,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
949
949
|
setTargetIdsList(value: Array<string>): void;
|
|
950
950
|
addTargetIds(value: string, index?: number): string;
|
|
951
951
|
|
|
952
|
-
getType(): MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap];
|
|
953
|
-
setType(value: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap]): void;
|
|
954
|
-
|
|
955
952
|
hasContent(): boolean;
|
|
956
953
|
clearContent(): void;
|
|
957
954
|
getContent(): wechaty_puppet_post_pb.PostPayloadClient | undefined;
|
|
@@ -970,7 +967,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
970
967
|
export namespace CreateMessageBroadcastRequest {
|
|
971
968
|
export type AsObject = {
|
|
972
969
|
targetIdsList: Array<string>,
|
|
973
|
-
type: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap],
|
|
974
970
|
content?: wechaty_puppet_post_pb.PostPayloadClient.AsObject,
|
|
975
971
|
}
|
|
976
972
|
}
|
|
@@ -1019,11 +1015,3 @@ export interface MessageTypeMap {
|
|
|
1019
1015
|
|
|
1020
1016
|
export const MessageType: MessageTypeMap;
|
|
1021
1017
|
|
|
1022
|
-
export interface MessageBroadcastTargetTypeMap {
|
|
1023
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0;
|
|
1024
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1;
|
|
1025
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
export const MessageBroadcastTargetType: MessageBroadcastTargetTypeMap;
|
|
1029
|
-
|
|
@@ -35,7 +35,6 @@ goog.exportSymbol('proto.wechaty.puppet.CreateMessageBroadcastRequest', null, gl
|
|
|
35
35
|
goog.exportSymbol('proto.wechaty.puppet.CreateMessageBroadcastResponse', null, global);
|
|
36
36
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.wechaty.puppet.GetMessageBroadcastTargetResponse', null, global);
|
|
38
|
-
goog.exportSymbol('proto.wechaty.puppet.MessageBroadcastTargetType', null, global);
|
|
39
38
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
|
|
40
39
|
goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
|
|
41
40
|
goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
|
|
@@ -7320,7 +7319,6 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.toObject = function
|
|
|
7320
7319
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.toObject = function(includeInstance, msg) {
|
|
7321
7320
|
var f, obj = {
|
|
7322
7321
|
targetIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
7323
|
-
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7324
7322
|
content: (f = msg.getContent()) && wechaty_puppet_post_pb.PostPayloadClient.toObject(includeInstance, f)
|
|
7325
7323
|
};
|
|
7326
7324
|
|
|
@@ -7363,10 +7361,6 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.deserializeBinaryFromReader =
|
|
|
7363
7361
|
msg.addTargetIds(value);
|
|
7364
7362
|
break;
|
|
7365
7363
|
case 2:
|
|
7366
|
-
var value = /** @type {!proto.wechaty.puppet.MessageBroadcastTargetType} */ (reader.readEnum());
|
|
7367
|
-
msg.setType(value);
|
|
7368
|
-
break;
|
|
7369
|
-
case 3:
|
|
7370
7364
|
var value = new wechaty_puppet_post_pb.PostPayloadClient;
|
|
7371
7365
|
reader.readMessage(value,wechaty_puppet_post_pb.PostPayloadClient.deserializeBinaryFromReader);
|
|
7372
7366
|
msg.setContent(value);
|
|
@@ -7407,17 +7401,10 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.serializeBinaryToWriter = fun
|
|
|
7407
7401
|
f
|
|
7408
7402
|
);
|
|
7409
7403
|
}
|
|
7410
|
-
f = message.getType();
|
|
7411
|
-
if (f !== 0.0) {
|
|
7412
|
-
writer.writeEnum(
|
|
7413
|
-
2,
|
|
7414
|
-
f
|
|
7415
|
-
);
|
|
7416
|
-
}
|
|
7417
7404
|
f = message.getContent();
|
|
7418
7405
|
if (f != null) {
|
|
7419
7406
|
writer.writeMessage(
|
|
7420
|
-
|
|
7407
|
+
2,
|
|
7421
7408
|
f,
|
|
7422
7409
|
wechaty_puppet_post_pb.PostPayloadClient.serializeBinaryToWriter
|
|
7423
7410
|
);
|
|
@@ -7463,30 +7450,12 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.clearTargetIdsList
|
|
|
7463
7450
|
|
|
7464
7451
|
|
|
7465
7452
|
/**
|
|
7466
|
-
* optional
|
|
7467
|
-
* @return {!proto.wechaty.puppet.MessageBroadcastTargetType}
|
|
7468
|
-
*/
|
|
7469
|
-
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getType = function() {
|
|
7470
|
-
return /** @type {!proto.wechaty.puppet.MessageBroadcastTargetType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7471
|
-
};
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
/**
|
|
7475
|
-
* @param {!proto.wechaty.puppet.MessageBroadcastTargetType} value
|
|
7476
|
-
* @return {!proto.wechaty.puppet.CreateMessageBroadcastRequest} returns this
|
|
7477
|
-
*/
|
|
7478
|
-
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.setType = function(value) {
|
|
7479
|
-
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
7480
|
-
};
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
/**
|
|
7484
|
-
* optional PostPayloadClient content = 3;
|
|
7453
|
+
* optional PostPayloadClient content = 2;
|
|
7485
7454
|
* @return {?proto.wechaty.puppet.PostPayloadClient}
|
|
7486
7455
|
*/
|
|
7487
7456
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getContent = function() {
|
|
7488
7457
|
return /** @type{?proto.wechaty.puppet.PostPayloadClient} */ (
|
|
7489
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient,
|
|
7458
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient, 2));
|
|
7490
7459
|
};
|
|
7491
7460
|
|
|
7492
7461
|
|
|
@@ -7495,7 +7464,7 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.getContent = functi
|
|
|
7495
7464
|
* @return {!proto.wechaty.puppet.CreateMessageBroadcastRequest} returns this
|
|
7496
7465
|
*/
|
|
7497
7466
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.setContent = function(value) {
|
|
7498
|
-
return jspb.Message.setWrapperField(this,
|
|
7467
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
7499
7468
|
};
|
|
7500
7469
|
|
|
7501
7470
|
|
|
@@ -7513,7 +7482,7 @@ proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.clearContent = func
|
|
|
7513
7482
|
* @return {boolean}
|
|
7514
7483
|
*/
|
|
7515
7484
|
proto.wechaty.puppet.CreateMessageBroadcastRequest.prototype.hasContent = function() {
|
|
7516
|
-
return jspb.Message.getField(this,
|
|
7485
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7517
7486
|
};
|
|
7518
7487
|
|
|
7519
7488
|
|
|
@@ -7672,13 +7641,4 @@ proto.wechaty.puppet.MessageType = {
|
|
|
7672
7641
|
MESSAGE_TYPE_SYSTEM: 18
|
|
7673
7642
|
};
|
|
7674
7643
|
|
|
7675
|
-
/**
|
|
7676
|
-
* @enum {number}
|
|
7677
|
-
*/
|
|
7678
|
-
proto.wechaty.puppet.MessageBroadcastTargetType = {
|
|
7679
|
-
MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0,
|
|
7680
|
-
MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1,
|
|
7681
|
-
MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2
|
|
7682
|
-
};
|
|
7683
|
-
|
|
7684
7644
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.48
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2385,8 +2385,6 @@ definitions:
|
|
|
2385
2385
|
type: array
|
|
2386
2386
|
items:
|
|
2387
2387
|
type: string
|
|
2388
|
-
type:
|
|
2389
|
-
$ref: '#/definitions/puppetMessageBroadcastTargetType'
|
|
2390
2388
|
content:
|
|
2391
2389
|
$ref: '#/definitions/puppetPostPayloadClient'
|
|
2392
2390
|
puppetCreateMessageBroadcastResponse:
|
|
@@ -2605,13 +2603,6 @@ definitions:
|
|
|
2605
2603
|
title: 地址名,例如xx大厦
|
|
2606
2604
|
puppetLogoutResponse:
|
|
2607
2605
|
type: object
|
|
2608
|
-
puppetMessageBroadcastTargetType:
|
|
2609
|
-
type: string
|
|
2610
|
-
enum:
|
|
2611
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2612
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_CONTACT
|
|
2613
|
-
- MESSAGE_BROADCAST_TARGET_TYPE_ROOM
|
|
2614
|
-
default: MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2615
2606
|
puppetMessageChannelResponse:
|
|
2616
2607
|
type: object
|
|
2617
2608
|
properties:
|
|
@@ -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.48",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3514,9 +3514,6 @@
|
|
|
3514
3514
|
"type": "string"
|
|
3515
3515
|
}
|
|
3516
3516
|
},
|
|
3517
|
-
"type": {
|
|
3518
|
-
"$ref": "#/definitions/puppetMessageBroadcastTargetType"
|
|
3519
|
-
},
|
|
3520
3517
|
"content": {
|
|
3521
3518
|
"$ref": "#/definitions/puppetPostPayloadClient"
|
|
3522
3519
|
}
|
|
@@ -3768,15 +3765,6 @@
|
|
|
3768
3765
|
"puppetLogoutResponse": {
|
|
3769
3766
|
"type": "object"
|
|
3770
3767
|
},
|
|
3771
|
-
"puppetMessageBroadcastTargetType": {
|
|
3772
|
-
"type": "string",
|
|
3773
|
-
"enum": [
|
|
3774
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN",
|
|
3775
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_CONTACT",
|
|
3776
|
-
"MESSAGE_BROADCAST_TARGET_TYPE_ROOM"
|
|
3777
|
-
],
|
|
3778
|
-
"default": "MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN"
|
|
3779
|
-
},
|
|
3780
3768
|
"puppetMessageChannelResponse": {
|
|
3781
3769
|
"type": "object",
|
|
3782
3770
|
"properties": {
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED