@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.
@@ -78,8 +78,8 @@ export class ChatHistoryPayload extends jspb.Message {
78
78
  getCorpName(): string;
79
79
  setCorpName(value: string): void;
80
80
 
81
- getTime(): string;
82
- setTime(value: string): void;
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: string,
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 {string} */ (reader.readString());
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.length > 0) {
683
- writer.writeString(
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 string time = 5;
773
- * @return {string}
772
+ * optional int32 time = 5;
773
+ * @return {number}
774
774
  */
775
775
  proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
776
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
776
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
777
777
  };
778
778
 
779
779
 
780
780
  /**
781
- * @param {string} value
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.setProto3StringField(this, 5, value);
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.68
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: string
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.68",
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": "string"
3960
+ "type": "integer",
3961
+ "format": "int32"
3961
3962
  },
3962
3963
  "message": {
3963
3964
  "$ref": "#/definitions/puppetChatHistoryContent"
@@ -37,6 +37,6 @@ message ChatHistoryPayload {
37
37
  string avatar = 2;
38
38
  string sender_name = 3;
39
39
  string corp_name = 4;
40
- string time = 5;
40
+ int32 time = 5;
41
41
  ChatHistoryContent message = 6;
42
42
  }
@@ -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.68",
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(): string;
82
- setTime(value: string): void;
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: string,
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 {string} */ (reader.readString());
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.length > 0) {
683
- writer.writeString(
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 string time = 5;
773
- * @return {string}
772
+ * optional int32 time = 5;
773
+ * @return {number}
774
774
  */
775
775
  proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
776
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
776
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
777
777
  };
778
778
 
779
779
 
780
780
  /**
781
- * @param {string} value
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.setProto3StringField(this, 5, value);
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.68
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: string
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.68",
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": "string"
3960
+ "type": "integer",
3961
+ "format": "int32"
3961
3962
  },
3962
3963
  "message": {
3963
3964
  "$ref": "#/definitions/puppetChatHistoryContent"
@@ -37,6 +37,6 @@ message ChatHistoryPayload {
37
37
  string avatar = 2;
38
38
  string sender_name = 3;
39
39
  string corp_name = 4;
40
- string time = 5;
40
+ int32 time = 5;
41
41
  ChatHistoryContent message = 6;
42
42
  }
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "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(): string;
82
- setTime(value: string): void;
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: string,
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 {string} */ (reader.readString());
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.length > 0) {
683
- writer.writeString(
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 string time = 5;
773
- * @return {string}
772
+ * optional int32 time = 5;
773
+ * @return {number}
774
774
  */
775
775
  proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
776
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
776
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
777
777
  };
778
778
 
779
779
 
780
780
  /**
781
- * @param {string} value
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.setProto3StringField(this, 5, value);
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.68
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: string
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.68",
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": "string"
3960
+ "type": "integer",
3961
+ "format": "int32"
3961
3962
  },
3962
3963
  "message": {
3963
3964
  "$ref": "#/definitions/puppetChatHistoryContent"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.68",
7
+ "version": "1.0.69",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {