@juzi/wechaty-grpc 1.0.68 → 1.0.69
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/chat-history_pb.d.ts +3 -3
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +9 -9
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +3 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +3 -2
- package/dist/cjs/proto/wechaty/puppet/chat-history.proto +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +3 -3
- package/dist/esm/out/wechaty/puppet/chat-history_pb.js +9 -9
- package/dist/esm/out/wechaty/puppet.openapi.yaml +3 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +3 -2
- package/dist/esm/proto/wechaty/puppet/chat-history.proto +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/chat-history_pb.d.ts +3 -3
- package/out/wechaty/puppet/chat-history_pb.js +9 -9
- package/out/wechaty/puppet.openapi.yaml +3 -2
- package/out/wechaty/puppet.swagger.json +3 -2
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -78,8 +78,8 @@ export class ChatHistoryPayload extends jspb.Message {
|
|
|
78
78
|
getCorpName(): string;
|
|
79
79
|
setCorpName(value: string): void;
|
|
80
80
|
|
|
81
|
-
getTime():
|
|
82
|
-
setTime(value:
|
|
81
|
+
getTime(): number;
|
|
82
|
+
setTime(value: number): void;
|
|
83
83
|
|
|
84
84
|
hasMessage(): boolean;
|
|
85
85
|
clearMessage(): void;
|
|
@@ -102,7 +102,7 @@ export namespace ChatHistoryPayload {
|
|
|
102
102
|
avatar: string,
|
|
103
103
|
senderName: string,
|
|
104
104
|
corpName: string,
|
|
105
|
-
time:
|
|
105
|
+
time: number,
|
|
106
106
|
message?: ChatHistoryContent.AsObject,
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -558,7 +558,7 @@ proto.wechaty.puppet.ChatHistoryPayload.toObject = function(includeInstance, msg
|
|
|
558
558
|
avatar: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
559
559
|
senderName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
560
560
|
corpName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
561
|
-
time: jspb.Message.getFieldWithDefault(msg, 5,
|
|
561
|
+
time: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
562
562
|
message: (f = msg.getMessage()) && proto.wechaty.puppet.ChatHistoryContent.toObject(includeInstance, f)
|
|
563
563
|
};
|
|
564
564
|
|
|
@@ -613,7 +613,7 @@ proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader = function(m
|
|
|
613
613
|
msg.setCorpName(value);
|
|
614
614
|
break;
|
|
615
615
|
case 5:
|
|
616
|
-
var value = /** @type {
|
|
616
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
617
617
|
msg.setTime(value);
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
@@ -679,8 +679,8 @@ proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter = function(messa
|
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
681
|
f = message.getTime();
|
|
682
|
-
if (f
|
|
683
|
-
writer.
|
|
682
|
+
if (f !== 0) {
|
|
683
|
+
writer.writeInt32(
|
|
684
684
|
5,
|
|
685
685
|
f
|
|
686
686
|
);
|
|
@@ -769,20 +769,20 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.setCorpName = function(value)
|
|
|
769
769
|
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
|
-
* optional
|
|
773
|
-
* @return {
|
|
772
|
+
* optional int32 time = 5;
|
|
773
|
+
* @return {number}
|
|
774
774
|
*/
|
|
775
775
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
|
|
776
|
-
return /** @type {
|
|
776
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
|
|
780
780
|
/**
|
|
781
|
-
* @param {
|
|
781
|
+
* @param {number} value
|
|
782
782
|
* @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
|
|
783
783
|
*/
|
|
784
784
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.setTime = function(value) {
|
|
785
|
-
return jspb.Message.
|
|
785
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
786
786
|
};
|
|
787
787
|
|
|
788
788
|
|
|
@@ -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.69
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -2675,7 +2675,8 @@ definitions:
|
|
|
2675
2675
|
corpName:
|
|
2676
2676
|
type: string
|
|
2677
2677
|
time:
|
|
2678
|
-
type:
|
|
2678
|
+
type: integer
|
|
2679
|
+
format: int32
|
|
2679
2680
|
message:
|
|
2680
2681
|
$ref: '#/definitions/puppetChatHistoryContent'
|
|
2681
2682
|
puppetContactAliasResponse:
|
|
@@ -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.69",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3957,7 +3957,8 @@
|
|
|
3957
3957
|
"type": "string"
|
|
3958
3958
|
},
|
|
3959
3959
|
"time": {
|
|
3960
|
-
"type": "
|
|
3960
|
+
"type": "integer",
|
|
3961
|
+
"format": "int32"
|
|
3961
3962
|
},
|
|
3962
3963
|
"message": {
|
|
3963
3964
|
"$ref": "#/definitions/puppetChatHistoryContent"
|
|
@@ -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.69",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -78,8 +78,8 @@ export class ChatHistoryPayload extends jspb.Message {
|
|
|
78
78
|
getCorpName(): string;
|
|
79
79
|
setCorpName(value: string): void;
|
|
80
80
|
|
|
81
|
-
getTime():
|
|
82
|
-
setTime(value:
|
|
81
|
+
getTime(): number;
|
|
82
|
+
setTime(value: number): void;
|
|
83
83
|
|
|
84
84
|
hasMessage(): boolean;
|
|
85
85
|
clearMessage(): void;
|
|
@@ -102,7 +102,7 @@ export namespace ChatHistoryPayload {
|
|
|
102
102
|
avatar: string,
|
|
103
103
|
senderName: string,
|
|
104
104
|
corpName: string,
|
|
105
|
-
time:
|
|
105
|
+
time: number,
|
|
106
106
|
message?: ChatHistoryContent.AsObject,
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -558,7 +558,7 @@ proto.wechaty.puppet.ChatHistoryPayload.toObject = function(includeInstance, msg
|
|
|
558
558
|
avatar: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
559
559
|
senderName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
560
560
|
corpName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
561
|
-
time: jspb.Message.getFieldWithDefault(msg, 5,
|
|
561
|
+
time: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
562
562
|
message: (f = msg.getMessage()) && proto.wechaty.puppet.ChatHistoryContent.toObject(includeInstance, f)
|
|
563
563
|
};
|
|
564
564
|
|
|
@@ -613,7 +613,7 @@ proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader = function(m
|
|
|
613
613
|
msg.setCorpName(value);
|
|
614
614
|
break;
|
|
615
615
|
case 5:
|
|
616
|
-
var value = /** @type {
|
|
616
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
617
617
|
msg.setTime(value);
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
@@ -679,8 +679,8 @@ proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter = function(messa
|
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
681
|
f = message.getTime();
|
|
682
|
-
if (f
|
|
683
|
-
writer.
|
|
682
|
+
if (f !== 0) {
|
|
683
|
+
writer.writeInt32(
|
|
684
684
|
5,
|
|
685
685
|
f
|
|
686
686
|
);
|
|
@@ -769,20 +769,20 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.setCorpName = function(value)
|
|
|
769
769
|
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
|
-
* optional
|
|
773
|
-
* @return {
|
|
772
|
+
* optional int32 time = 5;
|
|
773
|
+
* @return {number}
|
|
774
774
|
*/
|
|
775
775
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
|
|
776
|
-
return /** @type {
|
|
776
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
|
|
780
780
|
/**
|
|
781
|
-
* @param {
|
|
781
|
+
* @param {number} value
|
|
782
782
|
* @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
|
|
783
783
|
*/
|
|
784
784
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.setTime = function(value) {
|
|
785
|
-
return jspb.Message.
|
|
785
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
786
786
|
};
|
|
787
787
|
|
|
788
788
|
|
|
@@ -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.69
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -2675,7 +2675,8 @@ definitions:
|
|
|
2675
2675
|
corpName:
|
|
2676
2676
|
type: string
|
|
2677
2677
|
time:
|
|
2678
|
-
type:
|
|
2678
|
+
type: integer
|
|
2679
|
+
format: int32
|
|
2679
2680
|
message:
|
|
2680
2681
|
$ref: '#/definitions/puppetChatHistoryContent'
|
|
2681
2682
|
puppetContactAliasResponse:
|
|
@@ -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.69",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3957,7 +3957,8 @@
|
|
|
3957
3957
|
"type": "string"
|
|
3958
3958
|
},
|
|
3959
3959
|
"time": {
|
|
3960
|
-
"type": "
|
|
3960
|
+
"type": "integer",
|
|
3961
|
+
"format": "int32"
|
|
3961
3962
|
},
|
|
3962
3963
|
"message": {
|
|
3963
3964
|
"$ref": "#/definitions/puppetChatHistoryContent"
|
|
@@ -78,8 +78,8 @@ export class ChatHistoryPayload extends jspb.Message {
|
|
|
78
78
|
getCorpName(): string;
|
|
79
79
|
setCorpName(value: string): void;
|
|
80
80
|
|
|
81
|
-
getTime():
|
|
82
|
-
setTime(value:
|
|
81
|
+
getTime(): number;
|
|
82
|
+
setTime(value: number): void;
|
|
83
83
|
|
|
84
84
|
hasMessage(): boolean;
|
|
85
85
|
clearMessage(): void;
|
|
@@ -102,7 +102,7 @@ export namespace ChatHistoryPayload {
|
|
|
102
102
|
avatar: string,
|
|
103
103
|
senderName: string,
|
|
104
104
|
corpName: string,
|
|
105
|
-
time:
|
|
105
|
+
time: number,
|
|
106
106
|
message?: ChatHistoryContent.AsObject,
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -558,7 +558,7 @@ proto.wechaty.puppet.ChatHistoryPayload.toObject = function(includeInstance, msg
|
|
|
558
558
|
avatar: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
559
559
|
senderName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
560
560
|
corpName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
561
|
-
time: jspb.Message.getFieldWithDefault(msg, 5,
|
|
561
|
+
time: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
562
562
|
message: (f = msg.getMessage()) && proto.wechaty.puppet.ChatHistoryContent.toObject(includeInstance, f)
|
|
563
563
|
};
|
|
564
564
|
|
|
@@ -613,7 +613,7 @@ proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader = function(m
|
|
|
613
613
|
msg.setCorpName(value);
|
|
614
614
|
break;
|
|
615
615
|
case 5:
|
|
616
|
-
var value = /** @type {
|
|
616
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
617
617
|
msg.setTime(value);
|
|
618
618
|
break;
|
|
619
619
|
case 6:
|
|
@@ -679,8 +679,8 @@ proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter = function(messa
|
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
681
|
f = message.getTime();
|
|
682
|
-
if (f
|
|
683
|
-
writer.
|
|
682
|
+
if (f !== 0) {
|
|
683
|
+
writer.writeInt32(
|
|
684
684
|
5,
|
|
685
685
|
f
|
|
686
686
|
);
|
|
@@ -769,20 +769,20 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.setCorpName = function(value)
|
|
|
769
769
|
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
|
-
* optional
|
|
773
|
-
* @return {
|
|
772
|
+
* optional int32 time = 5;
|
|
773
|
+
* @return {number}
|
|
774
774
|
*/
|
|
775
775
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
|
|
776
|
-
return /** @type {
|
|
776
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
|
|
780
780
|
/**
|
|
781
|
-
* @param {
|
|
781
|
+
* @param {number} value
|
|
782
782
|
* @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
|
|
783
783
|
*/
|
|
784
784
|
proto.wechaty.puppet.ChatHistoryPayload.prototype.setTime = function(value) {
|
|
785
|
-
return jspb.Message.
|
|
785
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
786
786
|
};
|
|
787
787
|
|
|
788
788
|
|
|
@@ -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.69
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -2675,7 +2675,8 @@ definitions:
|
|
|
2675
2675
|
corpName:
|
|
2676
2676
|
type: string
|
|
2677
2677
|
time:
|
|
2678
|
-
type:
|
|
2678
|
+
type: integer
|
|
2679
|
+
format: int32
|
|
2679
2680
|
message:
|
|
2680
2681
|
$ref: '#/definitions/puppetChatHistoryContent'
|
|
2681
2682
|
puppetContactAliasResponse:
|
|
@@ -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.69",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3957,7 +3957,8 @@
|
|
|
3957
3957
|
"type": "string"
|
|
3958
3958
|
},
|
|
3959
3959
|
"time": {
|
|
3960
|
-
"type": "
|
|
3960
|
+
"type": "integer",
|
|
3961
|
+
"format": "int32"
|
|
3961
3962
|
},
|
|
3962
3963
|
"message": {
|
|
3963
3964
|
"$ref": "#/definitions/puppetChatHistoryContent"
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED