@juzi/wechaty-grpc 1.0.1 → 1.0.2

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.
@@ -460,6 +460,11 @@ export class MessageSendTextRequest extends jspb.Message {
460
460
  setMentionalIdsList(value: Array<string>): void;
461
461
  addMentionalIds(value: string, index?: number): string;
462
462
 
463
+ hasQuoteId(): boolean;
464
+ clearQuoteId(): void;
465
+ getQuoteId(): string;
466
+ setQuoteId(value: string): void;
467
+
463
468
  serializeBinary(): Uint8Array;
464
469
  toObject(includeInstance?: boolean): MessageSendTextRequest.AsObject;
465
470
  static toObject(includeInstance: boolean, msg: MessageSendTextRequest): MessageSendTextRequest.AsObject;
@@ -475,6 +480,7 @@ export namespace MessageSendTextRequest {
475
480
  conversationId: string,
476
481
  text: string,
477
482
  mentionalIdsList: Array<string>,
483
+ quoteId: string,
478
484
  }
479
485
  }
480
486
 
@@ -3791,7 +3791,8 @@ proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance,
3791
3791
  var f, obj = {
3792
3792
  conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3793
3793
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
3794
- mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3794
+ mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
3795
+ quoteId: jspb.Message.getFieldWithDefault(msg, 4, "")
3795
3796
  };
3796
3797
 
3797
3798
  if (includeInstance) {
@@ -3840,6 +3841,10 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
3840
3841
  var value = /** @type {string} */ (reader.readString());
3841
3842
  msg.addMentionalIds(value);
3842
3843
  break;
3844
+ case 4:
3845
+ var value = /** @type {string} */ (reader.readString());
3846
+ msg.setQuoteId(value);
3847
+ break;
3843
3848
  default:
3844
3849
  reader.skipField();
3845
3850
  break;
@@ -3890,6 +3895,13 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
3890
3895
  f
3891
3896
  );
3892
3897
  }
3898
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3899
+ if (f != null) {
3900
+ writer.writeString(
3901
+ 4,
3902
+ f
3903
+ );
3904
+ }
3893
3905
  };
3894
3906
 
3895
3907
 
@@ -3966,6 +3978,42 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.clearMentionalIdsList = fu
3966
3978
  };
3967
3979
 
3968
3980
 
3981
+ /**
3982
+ * optional string quote_id = 4;
3983
+ * @return {string}
3984
+ */
3985
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.getQuoteId = function() {
3986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3987
+ };
3988
+
3989
+
3990
+ /**
3991
+ * @param {string} value
3992
+ * @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
3993
+ */
3994
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.setQuoteId = function(value) {
3995
+ return jspb.Message.setField(this, 4, value);
3996
+ };
3997
+
3998
+
3999
+ /**
4000
+ * Clears the field making it undefined.
4001
+ * @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
4002
+ */
4003
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.clearQuoteId = function() {
4004
+ return jspb.Message.setField(this, 4, undefined);
4005
+ };
4006
+
4007
+
4008
+ /**
4009
+ * Returns whether this field is set.
4010
+ * @return {boolean}
4011
+ */
4012
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.hasQuoteId = function() {
4013
+ return jspb.Message.getField(this, 4) != null;
4014
+ };
4015
+
4016
+
3969
4017
 
3970
4018
 
3971
4019
 
@@ -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.1
12
+ version: 1.0.2
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -559,9 +559,8 @@ paths:
559
559
  type: array
560
560
  items:
561
561
  type: string
562
- title: |-
563
- Huan(202011) FIXME: Issue #99
564
- https://github.com/wechaty/grpc/issues/99
562
+ quoteId:
563
+ type: string
565
564
  tags:
566
565
  - Puppet
567
566
  '/conversations/{conversationId}/url-link':
@@ -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.1",
6
+ "version": "1.0.2",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -829,8 +829,10 @@
829
829
  "type": "array",
830
830
  "items": {
831
831
  "type": "string"
832
- },
833
- "title": "Huan(202011) FIXME: Issue #99\nhttps://github.com/wechaty/grpc/issues/99"
832
+ }
833
+ },
834
+ "quoteId": {
835
+ "type": "string"
834
836
  }
835
837
  }
836
838
  }
@@ -145,10 +145,8 @@ message MessageSendFileResponse {
145
145
  message MessageSendTextRequest {
146
146
  string conversation_id = 1;
147
147
  string text = 2;
148
-
149
- // Huan(202011) FIXME: Issue #99
150
- // https://github.com/wechaty/grpc/issues/99
151
148
  repeated string mentional_ids = 3;
149
+ optional string quote_id = 4;
152
150
  }
153
151
  message MessageSendTextResponse {
154
152
  /**
@@ -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.1",
6
+ "version": "1.0.2",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -460,6 +460,11 @@ export class MessageSendTextRequest extends jspb.Message {
460
460
  setMentionalIdsList(value: Array<string>): void;
461
461
  addMentionalIds(value: string, index?: number): string;
462
462
 
463
+ hasQuoteId(): boolean;
464
+ clearQuoteId(): void;
465
+ getQuoteId(): string;
466
+ setQuoteId(value: string): void;
467
+
463
468
  serializeBinary(): Uint8Array;
464
469
  toObject(includeInstance?: boolean): MessageSendTextRequest.AsObject;
465
470
  static toObject(includeInstance: boolean, msg: MessageSendTextRequest): MessageSendTextRequest.AsObject;
@@ -475,6 +480,7 @@ export namespace MessageSendTextRequest {
475
480
  conversationId: string,
476
481
  text: string,
477
482
  mentionalIdsList: Array<string>,
483
+ quoteId: string,
478
484
  }
479
485
  }
480
486
 
@@ -3791,7 +3791,8 @@ proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance,
3791
3791
  var f, obj = {
3792
3792
  conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3793
3793
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
3794
- mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3794
+ mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
3795
+ quoteId: jspb.Message.getFieldWithDefault(msg, 4, "")
3795
3796
  };
3796
3797
 
3797
3798
  if (includeInstance) {
@@ -3840,6 +3841,10 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
3840
3841
  var value = /** @type {string} */ (reader.readString());
3841
3842
  msg.addMentionalIds(value);
3842
3843
  break;
3844
+ case 4:
3845
+ var value = /** @type {string} */ (reader.readString());
3846
+ msg.setQuoteId(value);
3847
+ break;
3843
3848
  default:
3844
3849
  reader.skipField();
3845
3850
  break;
@@ -3890,6 +3895,13 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
3890
3895
  f
3891
3896
  );
3892
3897
  }
3898
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3899
+ if (f != null) {
3900
+ writer.writeString(
3901
+ 4,
3902
+ f
3903
+ );
3904
+ }
3893
3905
  };
3894
3906
 
3895
3907
 
@@ -3966,6 +3978,42 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.clearMentionalIdsList = fu
3966
3978
  };
3967
3979
 
3968
3980
 
3981
+ /**
3982
+ * optional string quote_id = 4;
3983
+ * @return {string}
3984
+ */
3985
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.getQuoteId = function() {
3986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3987
+ };
3988
+
3989
+
3990
+ /**
3991
+ * @param {string} value
3992
+ * @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
3993
+ */
3994
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.setQuoteId = function(value) {
3995
+ return jspb.Message.setField(this, 4, value);
3996
+ };
3997
+
3998
+
3999
+ /**
4000
+ * Clears the field making it undefined.
4001
+ * @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
4002
+ */
4003
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.clearQuoteId = function() {
4004
+ return jspb.Message.setField(this, 4, undefined);
4005
+ };
4006
+
4007
+
4008
+ /**
4009
+ * Returns whether this field is set.
4010
+ * @return {boolean}
4011
+ */
4012
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.hasQuoteId = function() {
4013
+ return jspb.Message.getField(this, 4) != null;
4014
+ };
4015
+
4016
+
3969
4017
 
3970
4018
 
3971
4019
 
@@ -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.1
12
+ version: 1.0.2
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -559,9 +559,8 @@ paths:
559
559
  type: array
560
560
  items:
561
561
  type: string
562
- title: |-
563
- Huan(202011) FIXME: Issue #99
564
- https://github.com/wechaty/grpc/issues/99
562
+ quoteId:
563
+ type: string
565
564
  tags:
566
565
  - Puppet
567
566
  '/conversations/{conversationId}/url-link':
@@ -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.1",
6
+ "version": "1.0.2",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -829,8 +829,10 @@
829
829
  "type": "array",
830
830
  "items": {
831
831
  "type": "string"
832
- },
833
- "title": "Huan(202011) FIXME: Issue #99\nhttps://github.com/wechaty/grpc/issues/99"
832
+ }
833
+ },
834
+ "quoteId": {
835
+ "type": "string"
834
836
  }
835
837
  }
836
838
  }
@@ -145,10 +145,8 @@ message MessageSendFileResponse {
145
145
  message MessageSendTextRequest {
146
146
  string conversation_id = 1;
147
147
  string text = 2;
148
-
149
- // Huan(202011) FIXME: Issue #99
150
- // https://github.com/wechaty/grpc/issues/99
151
148
  repeated string mentional_ids = 3;
149
+ optional string quote_id = 4;
152
150
  }
153
151
  message MessageSendTextResponse {
154
152
  /**
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -460,6 +460,11 @@ export class MessageSendTextRequest extends jspb.Message {
460
460
  setMentionalIdsList(value: Array<string>): void;
461
461
  addMentionalIds(value: string, index?: number): string;
462
462
 
463
+ hasQuoteId(): boolean;
464
+ clearQuoteId(): void;
465
+ getQuoteId(): string;
466
+ setQuoteId(value: string): void;
467
+
463
468
  serializeBinary(): Uint8Array;
464
469
  toObject(includeInstance?: boolean): MessageSendTextRequest.AsObject;
465
470
  static toObject(includeInstance: boolean, msg: MessageSendTextRequest): MessageSendTextRequest.AsObject;
@@ -475,6 +480,7 @@ export namespace MessageSendTextRequest {
475
480
  conversationId: string,
476
481
  text: string,
477
482
  mentionalIdsList: Array<string>,
483
+ quoteId: string,
478
484
  }
479
485
  }
480
486
 
@@ -3791,7 +3791,8 @@ proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance,
3791
3791
  var f, obj = {
3792
3792
  conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3793
3793
  text: jspb.Message.getFieldWithDefault(msg, 2, ""),
3794
- mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
3794
+ mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
3795
+ quoteId: jspb.Message.getFieldWithDefault(msg, 4, "")
3795
3796
  };
3796
3797
 
3797
3798
  if (includeInstance) {
@@ -3840,6 +3841,10 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
3840
3841
  var value = /** @type {string} */ (reader.readString());
3841
3842
  msg.addMentionalIds(value);
3842
3843
  break;
3844
+ case 4:
3845
+ var value = /** @type {string} */ (reader.readString());
3846
+ msg.setQuoteId(value);
3847
+ break;
3843
3848
  default:
3844
3849
  reader.skipField();
3845
3850
  break;
@@ -3890,6 +3895,13 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
3890
3895
  f
3891
3896
  );
3892
3897
  }
3898
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3899
+ if (f != null) {
3900
+ writer.writeString(
3901
+ 4,
3902
+ f
3903
+ );
3904
+ }
3893
3905
  };
3894
3906
 
3895
3907
 
@@ -3966,6 +3978,42 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.clearMentionalIdsList = fu
3966
3978
  };
3967
3979
 
3968
3980
 
3981
+ /**
3982
+ * optional string quote_id = 4;
3983
+ * @return {string}
3984
+ */
3985
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.getQuoteId = function() {
3986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3987
+ };
3988
+
3989
+
3990
+ /**
3991
+ * @param {string} value
3992
+ * @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
3993
+ */
3994
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.setQuoteId = function(value) {
3995
+ return jspb.Message.setField(this, 4, value);
3996
+ };
3997
+
3998
+
3999
+ /**
4000
+ * Clears the field making it undefined.
4001
+ * @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
4002
+ */
4003
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.clearQuoteId = function() {
4004
+ return jspb.Message.setField(this, 4, undefined);
4005
+ };
4006
+
4007
+
4008
+ /**
4009
+ * Returns whether this field is set.
4010
+ * @return {boolean}
4011
+ */
4012
+ proto.wechaty.puppet.MessageSendTextRequest.prototype.hasQuoteId = function() {
4013
+ return jspb.Message.getField(this, 4) != null;
4014
+ };
4015
+
4016
+
3969
4017
 
3970
4018
 
3971
4019
 
@@ -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.1
12
+ version: 1.0.2
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -559,9 +559,8 @@ paths:
559
559
  type: array
560
560
  items:
561
561
  type: string
562
- title: |-
563
- Huan(202011) FIXME: Issue #99
564
- https://github.com/wechaty/grpc/issues/99
562
+ quoteId:
563
+ type: string
565
564
  tags:
566
565
  - Puppet
567
566
  '/conversations/{conversationId}/url-link':
@@ -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.1",
6
+ "version": "1.0.2",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -829,8 +829,10 @@
829
829
  "type": "array",
830
830
  "items": {
831
831
  "type": "string"
832
- },
833
- "title": "Huan(202011) FIXME: Issue #99\nhttps://github.com/wechaty/grpc/issues/99"
832
+ }
833
+ },
834
+ "quoteId": {
835
+ "type": "string"
834
836
  }
835
837
  }
836
838
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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.1",
7
+ "version": "1.0.2",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {