@juzi/wechaty-grpc 1.0.51 → 1.0.52

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.
@@ -661,6 +661,16 @@ export class ContactPayloadModifyRequest extends jspb.Message {
661
661
  setTagIdsList(value: Array<string>): void;
662
662
  addTagIds(value: string, index?: number): string;
663
663
 
664
+ hasClearPhones(): boolean;
665
+ clearClearPhones(): void;
666
+ getClearPhones(): boolean;
667
+ setClearPhones(value: boolean): void;
668
+
669
+ hasClearTagIds(): boolean;
670
+ clearClearTagIds(): void;
671
+ getClearTagIds(): boolean;
672
+ setClearTagIds(value: boolean): void;
673
+
664
674
  serializeBinary(): Uint8Array;
665
675
  toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
666
676
  static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
@@ -693,6 +703,8 @@ export namespace ContactPayloadModifyRequest {
693
703
  phonesList: Array<string>,
694
704
  additionalInfo: string,
695
705
  tagIdsList: Array<string>,
706
+ clearPhones: boolean,
707
+ clearTagIds: boolean,
696
708
  }
697
709
  }
698
710
 
@@ -4447,7 +4447,9 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
4447
4447
  coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4448
4448
  phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
4449
4449
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
4450
- tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
4450
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f,
4451
+ clearPhones: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
4452
+ clearTagIds: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
4451
4453
  };
4452
4454
 
4453
4455
  if (includeInstance) {
@@ -4564,6 +4566,14 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
4564
4566
  var value = /** @type {string} */ (reader.readString());
4565
4567
  msg.addTagIds(value);
4566
4568
  break;
4569
+ case 21:
4570
+ var value = /** @type {boolean} */ (reader.readBool());
4571
+ msg.setClearPhones(value);
4572
+ break;
4573
+ case 22:
4574
+ var value = /** @type {boolean} */ (reader.readBool());
4575
+ msg.setClearTagIds(value);
4576
+ break;
4567
4577
  default:
4568
4578
  reader.skipField();
4569
4579
  break;
@@ -4733,6 +4743,20 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
4733
4743
  f
4734
4744
  );
4735
4745
  }
4746
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 21));
4747
+ if (f != null) {
4748
+ writer.writeBool(
4749
+ 21,
4750
+ f
4751
+ );
4752
+ }
4753
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
4754
+ if (f != null) {
4755
+ writer.writeBool(
4756
+ 22,
4757
+ f
4758
+ );
4759
+ }
4736
4760
  };
4737
4761
 
4738
4762
 
@@ -5440,6 +5464,78 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = fun
5440
5464
  };
5441
5465
 
5442
5466
 
5467
+ /**
5468
+ * optional bool clear_phones = 21;
5469
+ * @return {boolean}
5470
+ */
5471
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getClearPhones = function() {
5472
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
5473
+ };
5474
+
5475
+
5476
+ /**
5477
+ * @param {boolean} value
5478
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5479
+ */
5480
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setClearPhones = function(value) {
5481
+ return jspb.Message.setField(this, 21, value);
5482
+ };
5483
+
5484
+
5485
+ /**
5486
+ * Clears the field making it undefined.
5487
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5488
+ */
5489
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearClearPhones = function() {
5490
+ return jspb.Message.setField(this, 21, undefined);
5491
+ };
5492
+
5493
+
5494
+ /**
5495
+ * Returns whether this field is set.
5496
+ * @return {boolean}
5497
+ */
5498
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasClearPhones = function() {
5499
+ return jspb.Message.getField(this, 21) != null;
5500
+ };
5501
+
5502
+
5503
+ /**
5504
+ * optional bool clear_tag_ids = 22;
5505
+ * @return {boolean}
5506
+ */
5507
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getClearTagIds = function() {
5508
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
5509
+ };
5510
+
5511
+
5512
+ /**
5513
+ * @param {boolean} value
5514
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5515
+ */
5516
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setClearTagIds = function(value) {
5517
+ return jspb.Message.setField(this, 22, value);
5518
+ };
5519
+
5520
+
5521
+ /**
5522
+ * Clears the field making it undefined.
5523
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5524
+ */
5525
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearClearTagIds = function() {
5526
+ return jspb.Message.setField(this, 22, undefined);
5527
+ };
5528
+
5529
+
5530
+ /**
5531
+ * Returns whether this field is set.
5532
+ * @return {boolean}
5533
+ */
5534
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasClearTagIds = function() {
5535
+ return jspb.Message.getField(this, 22) != null;
5536
+ };
5537
+
5538
+
5443
5539
 
5444
5540
 
5445
5541
 
@@ -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.51
12
+ version: 1.0.52
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -428,6 +428,15 @@ paths:
428
428
  items:
429
429
  type: string
430
430
  title: 标签(的id)
431
+ clearPhones:
432
+ type: boolean
433
+ description: |-
434
+ *
435
+ The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
436
+ Since protobuf is language-agnostic,
437
+ it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
438
+ clearTagIds:
439
+ type: boolean
431
440
  tags:
432
441
  - Puppet
433
442
  '/conversation/{conversationId}/read':
@@ -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.51",
6
+ "version": "1.0.52",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -626,6 +626,13 @@
626
626
  "type": "string"
627
627
  },
628
628
  "title": "标签(的id)"
629
+ },
630
+ "clearPhones": {
631
+ "type": "boolean",
632
+ "description": "*\n The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])\n Since protobuf is language-agnostic,\n it doesn't understand the conceptual nuance of \"undefined\" versus \"[]\" of Javascript."
633
+ },
634
+ "clearTagIds": {
635
+ "type": "boolean"
629
636
  }
630
637
  }
631
638
  }
@@ -149,9 +149,17 @@ message ContactPayloadModifyRequest {
149
149
  optional string title = 15; // 头衔
150
150
  optional string description = 16; // 描述
151
151
  optional bool coworker = 17; // 是否为同事
152
- repeated string phones = 18; // 电话号码,企微中最多5个
152
+ repeated string phones = 18; // 电话号码,企微中最多5个
153
153
  optional string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
154
- repeated string tag_ids = 20; // 标签(的id)
154
+ repeated string tag_ids = 20; // 标签(的id)
155
+
156
+ /**
157
+ * The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
158
+ * Since protobuf is language-agnostic,
159
+ * it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
160
+ */
161
+ optional bool clear_phones = 21;
162
+ optional bool clear_tag_ids = 22;
155
163
  }
156
164
 
157
165
  message ContactPayloadModifyResponse {}
@@ -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.51",
6
+ "version": "1.0.52",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -661,6 +661,16 @@ export class ContactPayloadModifyRequest extends jspb.Message {
661
661
  setTagIdsList(value: Array<string>): void;
662
662
  addTagIds(value: string, index?: number): string;
663
663
 
664
+ hasClearPhones(): boolean;
665
+ clearClearPhones(): void;
666
+ getClearPhones(): boolean;
667
+ setClearPhones(value: boolean): void;
668
+
669
+ hasClearTagIds(): boolean;
670
+ clearClearTagIds(): void;
671
+ getClearTagIds(): boolean;
672
+ setClearTagIds(value: boolean): void;
673
+
664
674
  serializeBinary(): Uint8Array;
665
675
  toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
666
676
  static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
@@ -693,6 +703,8 @@ export namespace ContactPayloadModifyRequest {
693
703
  phonesList: Array<string>,
694
704
  additionalInfo: string,
695
705
  tagIdsList: Array<string>,
706
+ clearPhones: boolean,
707
+ clearTagIds: boolean,
696
708
  }
697
709
  }
698
710
 
@@ -4447,7 +4447,9 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
4447
4447
  coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4448
4448
  phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
4449
4449
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
4450
- tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
4450
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f,
4451
+ clearPhones: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
4452
+ clearTagIds: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
4451
4453
  };
4452
4454
 
4453
4455
  if (includeInstance) {
@@ -4564,6 +4566,14 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
4564
4566
  var value = /** @type {string} */ (reader.readString());
4565
4567
  msg.addTagIds(value);
4566
4568
  break;
4569
+ case 21:
4570
+ var value = /** @type {boolean} */ (reader.readBool());
4571
+ msg.setClearPhones(value);
4572
+ break;
4573
+ case 22:
4574
+ var value = /** @type {boolean} */ (reader.readBool());
4575
+ msg.setClearTagIds(value);
4576
+ break;
4567
4577
  default:
4568
4578
  reader.skipField();
4569
4579
  break;
@@ -4733,6 +4743,20 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
4733
4743
  f
4734
4744
  );
4735
4745
  }
4746
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 21));
4747
+ if (f != null) {
4748
+ writer.writeBool(
4749
+ 21,
4750
+ f
4751
+ );
4752
+ }
4753
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
4754
+ if (f != null) {
4755
+ writer.writeBool(
4756
+ 22,
4757
+ f
4758
+ );
4759
+ }
4736
4760
  };
4737
4761
 
4738
4762
 
@@ -5440,6 +5464,78 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = fun
5440
5464
  };
5441
5465
 
5442
5466
 
5467
+ /**
5468
+ * optional bool clear_phones = 21;
5469
+ * @return {boolean}
5470
+ */
5471
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getClearPhones = function() {
5472
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
5473
+ };
5474
+
5475
+
5476
+ /**
5477
+ * @param {boolean} value
5478
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5479
+ */
5480
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setClearPhones = function(value) {
5481
+ return jspb.Message.setField(this, 21, value);
5482
+ };
5483
+
5484
+
5485
+ /**
5486
+ * Clears the field making it undefined.
5487
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5488
+ */
5489
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearClearPhones = function() {
5490
+ return jspb.Message.setField(this, 21, undefined);
5491
+ };
5492
+
5493
+
5494
+ /**
5495
+ * Returns whether this field is set.
5496
+ * @return {boolean}
5497
+ */
5498
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasClearPhones = function() {
5499
+ return jspb.Message.getField(this, 21) != null;
5500
+ };
5501
+
5502
+
5503
+ /**
5504
+ * optional bool clear_tag_ids = 22;
5505
+ * @return {boolean}
5506
+ */
5507
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getClearTagIds = function() {
5508
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
5509
+ };
5510
+
5511
+
5512
+ /**
5513
+ * @param {boolean} value
5514
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5515
+ */
5516
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setClearTagIds = function(value) {
5517
+ return jspb.Message.setField(this, 22, value);
5518
+ };
5519
+
5520
+
5521
+ /**
5522
+ * Clears the field making it undefined.
5523
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5524
+ */
5525
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearClearTagIds = function() {
5526
+ return jspb.Message.setField(this, 22, undefined);
5527
+ };
5528
+
5529
+
5530
+ /**
5531
+ * Returns whether this field is set.
5532
+ * @return {boolean}
5533
+ */
5534
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasClearTagIds = function() {
5535
+ return jspb.Message.getField(this, 22) != null;
5536
+ };
5537
+
5538
+
5443
5539
 
5444
5540
 
5445
5541
 
@@ -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.51
12
+ version: 1.0.52
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -428,6 +428,15 @@ paths:
428
428
  items:
429
429
  type: string
430
430
  title: 标签(的id)
431
+ clearPhones:
432
+ type: boolean
433
+ description: |-
434
+ *
435
+ The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
436
+ Since protobuf is language-agnostic,
437
+ it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
438
+ clearTagIds:
439
+ type: boolean
431
440
  tags:
432
441
  - Puppet
433
442
  '/conversation/{conversationId}/read':
@@ -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.51",
6
+ "version": "1.0.52",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -626,6 +626,13 @@
626
626
  "type": "string"
627
627
  },
628
628
  "title": "标签(的id)"
629
+ },
630
+ "clearPhones": {
631
+ "type": "boolean",
632
+ "description": "*\n The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])\n Since protobuf is language-agnostic,\n it doesn't understand the conceptual nuance of \"undefined\" versus \"[]\" of Javascript."
633
+ },
634
+ "clearTagIds": {
635
+ "type": "boolean"
629
636
  }
630
637
  }
631
638
  }
@@ -149,9 +149,17 @@ message ContactPayloadModifyRequest {
149
149
  optional string title = 15; // 头衔
150
150
  optional string description = 16; // 描述
151
151
  optional bool coworker = 17; // 是否为同事
152
- repeated string phones = 18; // 电话号码,企微中最多5个
152
+ repeated string phones = 18; // 电话号码,企微中最多5个
153
153
  optional string additional_info = 19; // 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
154
- repeated string tag_ids = 20; // 标签(的id)
154
+ repeated string tag_ids = 20; // 标签(的id)
155
+
156
+ /**
157
+ * The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
158
+ * Since protobuf is language-agnostic,
159
+ * it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
160
+ */
161
+ optional bool clear_phones = 21;
162
+ optional bool clear_tag_ids = 22;
155
163
  }
156
164
 
157
165
  message ContactPayloadModifyResponse {}
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -661,6 +661,16 @@ export class ContactPayloadModifyRequest extends jspb.Message {
661
661
  setTagIdsList(value: Array<string>): void;
662
662
  addTagIds(value: string, index?: number): string;
663
663
 
664
+ hasClearPhones(): boolean;
665
+ clearClearPhones(): void;
666
+ getClearPhones(): boolean;
667
+ setClearPhones(value: boolean): void;
668
+
669
+ hasClearTagIds(): boolean;
670
+ clearClearTagIds(): void;
671
+ getClearTagIds(): boolean;
672
+ setClearTagIds(value: boolean): void;
673
+
664
674
  serializeBinary(): Uint8Array;
665
675
  toObject(includeInstance?: boolean): ContactPayloadModifyRequest.AsObject;
666
676
  static toObject(includeInstance: boolean, msg: ContactPayloadModifyRequest): ContactPayloadModifyRequest.AsObject;
@@ -693,6 +703,8 @@ export namespace ContactPayloadModifyRequest {
693
703
  phonesList: Array<string>,
694
704
  additionalInfo: string,
695
705
  tagIdsList: Array<string>,
706
+ clearPhones: boolean,
707
+ clearTagIds: boolean,
696
708
  }
697
709
  }
698
710
 
@@ -4447,7 +4447,9 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInst
4447
4447
  coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4448
4448
  phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
4449
4449
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
4450
- tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
4450
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f,
4451
+ clearPhones: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
4452
+ clearTagIds: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
4451
4453
  };
4452
4454
 
4453
4455
  if (includeInstance) {
@@ -4564,6 +4566,14 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = f
4564
4566
  var value = /** @type {string} */ (reader.readString());
4565
4567
  msg.addTagIds(value);
4566
4568
  break;
4569
+ case 21:
4570
+ var value = /** @type {boolean} */ (reader.readBool());
4571
+ msg.setClearPhones(value);
4572
+ break;
4573
+ case 22:
4574
+ var value = /** @type {boolean} */ (reader.readBool());
4575
+ msg.setClearTagIds(value);
4576
+ break;
4567
4577
  default:
4568
4578
  reader.skipField();
4569
4579
  break;
@@ -4733,6 +4743,20 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
4733
4743
  f
4734
4744
  );
4735
4745
  }
4746
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 21));
4747
+ if (f != null) {
4748
+ writer.writeBool(
4749
+ 21,
4750
+ f
4751
+ );
4752
+ }
4753
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 22));
4754
+ if (f != null) {
4755
+ writer.writeBool(
4756
+ 22,
4757
+ f
4758
+ );
4759
+ }
4736
4760
  };
4737
4761
 
4738
4762
 
@@ -5440,6 +5464,78 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = fun
5440
5464
  };
5441
5465
 
5442
5466
 
5467
+ /**
5468
+ * optional bool clear_phones = 21;
5469
+ * @return {boolean}
5470
+ */
5471
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getClearPhones = function() {
5472
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
5473
+ };
5474
+
5475
+
5476
+ /**
5477
+ * @param {boolean} value
5478
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5479
+ */
5480
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setClearPhones = function(value) {
5481
+ return jspb.Message.setField(this, 21, value);
5482
+ };
5483
+
5484
+
5485
+ /**
5486
+ * Clears the field making it undefined.
5487
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5488
+ */
5489
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearClearPhones = function() {
5490
+ return jspb.Message.setField(this, 21, undefined);
5491
+ };
5492
+
5493
+
5494
+ /**
5495
+ * Returns whether this field is set.
5496
+ * @return {boolean}
5497
+ */
5498
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasClearPhones = function() {
5499
+ return jspb.Message.getField(this, 21) != null;
5500
+ };
5501
+
5502
+
5503
+ /**
5504
+ * optional bool clear_tag_ids = 22;
5505
+ * @return {boolean}
5506
+ */
5507
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getClearTagIds = function() {
5508
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
5509
+ };
5510
+
5511
+
5512
+ /**
5513
+ * @param {boolean} value
5514
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5515
+ */
5516
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setClearTagIds = function(value) {
5517
+ return jspb.Message.setField(this, 22, value);
5518
+ };
5519
+
5520
+
5521
+ /**
5522
+ * Clears the field making it undefined.
5523
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5524
+ */
5525
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearClearTagIds = function() {
5526
+ return jspb.Message.setField(this, 22, undefined);
5527
+ };
5528
+
5529
+
5530
+ /**
5531
+ * Returns whether this field is set.
5532
+ * @return {boolean}
5533
+ */
5534
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasClearTagIds = function() {
5535
+ return jspb.Message.getField(this, 22) != null;
5536
+ };
5537
+
5538
+
5443
5539
 
5444
5540
 
5445
5541
 
@@ -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.51
12
+ version: 1.0.52
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -428,6 +428,15 @@ paths:
428
428
  items:
429
429
  type: string
430
430
  title: 标签(的id)
431
+ clearPhones:
432
+ type: boolean
433
+ description: |-
434
+ *
435
+ The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])
436
+ Since protobuf is language-agnostic,
437
+ it doesn't understand the conceptual nuance of "undefined" versus "[]" of Javascript.
438
+ clearTagIds:
439
+ type: boolean
431
440
  tags:
432
441
  - Puppet
433
442
  '/conversation/{conversationId}/read':
@@ -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.51",
6
+ "version": "1.0.52",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -626,6 +626,13 @@
626
626
  "type": "string"
627
627
  },
628
628
  "title": "标签(的id)"
629
+ },
630
+ "clearPhones": {
631
+ "type": "boolean",
632
+ "description": "*\n The protobuf encoding doesn't distinguish between these two cases. (undefined vs [])\n Since protobuf is language-agnostic,\n it doesn't understand the conceptual nuance of \"undefined\" versus \"[]\" of Javascript."
633
+ },
634
+ "clearTagIds": {
635
+ "type": "boolean"
629
636
  }
630
637
  }
631
638
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
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.51",
7
+ "version": "1.0.52",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {