@juzi/wechaty-grpc 1.0.97 → 1.0.98

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.
@@ -145,6 +145,11 @@ export class RoomAddRequest extends jspb.Message {
145
145
  setQuoteIdsList(value: Array<string>): void;
146
146
  addQuoteIds(value: string, index?: number): string;
147
147
 
148
+ clearContactIdsList(): void;
149
+ getContactIdsList(): Array<string>;
150
+ setContactIdsList(value: Array<string>): void;
151
+ addContactIds(value: string, index?: number): string;
152
+
148
153
  serializeBinary(): Uint8Array;
149
154
  toObject(includeInstance?: boolean): RoomAddRequest.AsObject;
150
155
  static toObject(includeInstance: boolean, msg: RoomAddRequest): RoomAddRequest.AsObject;
@@ -161,6 +166,7 @@ export namespace RoomAddRequest {
161
166
  contactId: string,
162
167
  inviteOnly: boolean,
163
168
  quoteIdsList: Array<string>,
169
+ contactIdsList: Array<string>,
164
170
  }
165
171
  }
166
172
 
@@ -1614,7 +1614,7 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1614
1614
  * @private {!Array<number>}
1615
1615
  * @const
1616
1616
  */
1617
- proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4];
1617
+ proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4,5];
1618
1618
 
1619
1619
 
1620
1620
 
@@ -1650,7 +1650,8 @@ proto.wechaty.puppet.RoomAddRequest.toObject = function(includeInstance, msg) {
1650
1650
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1651
1651
  contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1652
1652
  inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1653
- quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1653
+ quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1654
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
1654
1655
  };
1655
1656
 
1656
1657
  if (includeInstance) {
@@ -1703,6 +1704,10 @@ proto.wechaty.puppet.RoomAddRequest.deserializeBinaryFromReader = function(msg,
1703
1704
  var value = /** @type {string} */ (reader.readString());
1704
1705
  msg.addQuoteIds(value);
1705
1706
  break;
1707
+ case 5:
1708
+ var value = /** @type {string} */ (reader.readString());
1709
+ msg.addContactIds(value);
1710
+ break;
1706
1711
  default:
1707
1712
  reader.skipField();
1708
1713
  break;
@@ -1760,6 +1765,13 @@ proto.wechaty.puppet.RoomAddRequest.serializeBinaryToWriter = function(message,
1760
1765
  f
1761
1766
  );
1762
1767
  }
1768
+ f = message.getContactIdsList();
1769
+ if (f.length > 0) {
1770
+ writer.writeRepeatedString(
1771
+ 5,
1772
+ f
1773
+ );
1774
+ }
1763
1775
  };
1764
1776
 
1765
1777
 
@@ -1854,6 +1866,43 @@ proto.wechaty.puppet.RoomAddRequest.prototype.clearQuoteIdsList = function() {
1854
1866
  };
1855
1867
 
1856
1868
 
1869
+ /**
1870
+ * repeated string contact_ids = 5;
1871
+ * @return {!Array<string>}
1872
+ */
1873
+ proto.wechaty.puppet.RoomAddRequest.prototype.getContactIdsList = function() {
1874
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * @param {!Array<string>} value
1880
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1881
+ */
1882
+ proto.wechaty.puppet.RoomAddRequest.prototype.setContactIdsList = function(value) {
1883
+ return jspb.Message.setField(this, 5, value || []);
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * @param {string} value
1889
+ * @param {number=} opt_index
1890
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1891
+ */
1892
+ proto.wechaty.puppet.RoomAddRequest.prototype.addContactIds = function(value, opt_index) {
1893
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
1894
+ };
1895
+
1896
+
1897
+ /**
1898
+ * Clears the list making it empty but non-null.
1899
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1900
+ */
1901
+ proto.wechaty.puppet.RoomAddRequest.prototype.clearContactIdsList = function() {
1902
+ return this.setContactIdsList([]);
1903
+ };
1904
+
1905
+
1857
1906
 
1858
1907
 
1859
1908
 
@@ -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.97
12
+ version: 1.0.98
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -1783,6 +1783,14 @@ paths:
1783
1783
  items:
1784
1784
  type: string
1785
1785
  collectionFormat: multi
1786
+ - name: contactIds
1787
+ description: 邀请的联系人id列表,优先用这个
1788
+ in: query
1789
+ required: false
1790
+ type: array
1791
+ items:
1792
+ type: string
1793
+ collectionFormat: multi
1786
1794
  tags:
1787
1795
  - Puppet
1788
1796
  /rooms/{id}/announcement:
@@ -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.97",
6
+ "version": "1.0.98",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2670,6 +2670,17 @@
2670
2670
  "type": "string"
2671
2671
  },
2672
2672
  "collectionFormat": "multi"
2673
+ },
2674
+ {
2675
+ "name": "contactIds",
2676
+ "description": "邀请的联系人id列表,优先用这个",
2677
+ "in": "query",
2678
+ "required": false,
2679
+ "type": "array",
2680
+ "items": {
2681
+ "type": "string"
2682
+ },
2683
+ "collectionFormat": "multi"
2673
2684
  }
2674
2685
  ],
2675
2686
  "tags": [
@@ -37,6 +37,7 @@ message RoomAddRequest {
37
37
  string contact_id = 2; // 被邀请联系人id
38
38
  bool invite_only = 3; // 不明确,目前没见到使用这个的地方
39
39
  repeated string quote_ids = 4; // 要附带的聊天消息 id 列表
40
+ repeated string contact_ids = 5; // 邀请的联系人id列表,优先用这个
40
41
  }
41
42
  message RoomAddResponse {}
42
43
 
@@ -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.97",
6
+ "version": "1.0.98",
7
7
  "description": "gRPC for Wechaty",
8
8
  "type": "module",
9
9
  "exports": {
@@ -145,6 +145,11 @@ export class RoomAddRequest extends jspb.Message {
145
145
  setQuoteIdsList(value: Array<string>): void;
146
146
  addQuoteIds(value: string, index?: number): string;
147
147
 
148
+ clearContactIdsList(): void;
149
+ getContactIdsList(): Array<string>;
150
+ setContactIdsList(value: Array<string>): void;
151
+ addContactIds(value: string, index?: number): string;
152
+
148
153
  serializeBinary(): Uint8Array;
149
154
  toObject(includeInstance?: boolean): RoomAddRequest.AsObject;
150
155
  static toObject(includeInstance: boolean, msg: RoomAddRequest): RoomAddRequest.AsObject;
@@ -161,6 +166,7 @@ export namespace RoomAddRequest {
161
166
  contactId: string,
162
167
  inviteOnly: boolean,
163
168
  quoteIdsList: Array<string>,
169
+ contactIdsList: Array<string>,
164
170
  }
165
171
  }
166
172
 
@@ -1614,7 +1614,7 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1614
1614
  * @private {!Array<number>}
1615
1615
  * @const
1616
1616
  */
1617
- proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4];
1617
+ proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4,5];
1618
1618
 
1619
1619
 
1620
1620
 
@@ -1650,7 +1650,8 @@ proto.wechaty.puppet.RoomAddRequest.toObject = function(includeInstance, msg) {
1650
1650
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1651
1651
  contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1652
1652
  inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1653
- quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1653
+ quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1654
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
1654
1655
  };
1655
1656
 
1656
1657
  if (includeInstance) {
@@ -1703,6 +1704,10 @@ proto.wechaty.puppet.RoomAddRequest.deserializeBinaryFromReader = function(msg,
1703
1704
  var value = /** @type {string} */ (reader.readString());
1704
1705
  msg.addQuoteIds(value);
1705
1706
  break;
1707
+ case 5:
1708
+ var value = /** @type {string} */ (reader.readString());
1709
+ msg.addContactIds(value);
1710
+ break;
1706
1711
  default:
1707
1712
  reader.skipField();
1708
1713
  break;
@@ -1760,6 +1765,13 @@ proto.wechaty.puppet.RoomAddRequest.serializeBinaryToWriter = function(message,
1760
1765
  f
1761
1766
  );
1762
1767
  }
1768
+ f = message.getContactIdsList();
1769
+ if (f.length > 0) {
1770
+ writer.writeRepeatedString(
1771
+ 5,
1772
+ f
1773
+ );
1774
+ }
1763
1775
  };
1764
1776
 
1765
1777
 
@@ -1854,6 +1866,43 @@ proto.wechaty.puppet.RoomAddRequest.prototype.clearQuoteIdsList = function() {
1854
1866
  };
1855
1867
 
1856
1868
 
1869
+ /**
1870
+ * repeated string contact_ids = 5;
1871
+ * @return {!Array<string>}
1872
+ */
1873
+ proto.wechaty.puppet.RoomAddRequest.prototype.getContactIdsList = function() {
1874
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * @param {!Array<string>} value
1880
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1881
+ */
1882
+ proto.wechaty.puppet.RoomAddRequest.prototype.setContactIdsList = function(value) {
1883
+ return jspb.Message.setField(this, 5, value || []);
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * @param {string} value
1889
+ * @param {number=} opt_index
1890
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1891
+ */
1892
+ proto.wechaty.puppet.RoomAddRequest.prototype.addContactIds = function(value, opt_index) {
1893
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
1894
+ };
1895
+
1896
+
1897
+ /**
1898
+ * Clears the list making it empty but non-null.
1899
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1900
+ */
1901
+ proto.wechaty.puppet.RoomAddRequest.prototype.clearContactIdsList = function() {
1902
+ return this.setContactIdsList([]);
1903
+ };
1904
+
1905
+
1857
1906
 
1858
1907
 
1859
1908
 
@@ -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.97
12
+ version: 1.0.98
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -1783,6 +1783,14 @@ paths:
1783
1783
  items:
1784
1784
  type: string
1785
1785
  collectionFormat: multi
1786
+ - name: contactIds
1787
+ description: 邀请的联系人id列表,优先用这个
1788
+ in: query
1789
+ required: false
1790
+ type: array
1791
+ items:
1792
+ type: string
1793
+ collectionFormat: multi
1786
1794
  tags:
1787
1795
  - Puppet
1788
1796
  /rooms/{id}/announcement:
@@ -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.97",
6
+ "version": "1.0.98",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2670,6 +2670,17 @@
2670
2670
  "type": "string"
2671
2671
  },
2672
2672
  "collectionFormat": "multi"
2673
+ },
2674
+ {
2675
+ "name": "contactIds",
2676
+ "description": "邀请的联系人id列表,优先用这个",
2677
+ "in": "query",
2678
+ "required": false,
2679
+ "type": "array",
2680
+ "items": {
2681
+ "type": "string"
2682
+ },
2683
+ "collectionFormat": "multi"
2673
2684
  }
2674
2685
  ],
2675
2686
  "tags": [
@@ -37,6 +37,7 @@ message RoomAddRequest {
37
37
  string contact_id = 2; // 被邀请联系人id
38
38
  bool invite_only = 3; // 不明确,目前没见到使用这个的地方
39
39
  repeated string quote_ids = 4; // 要附带的聊天消息 id 列表
40
+ repeated string contact_ids = 5; // 邀请的联系人id列表,优先用这个
40
41
  }
41
42
  message RoomAddResponse {}
42
43
 
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -145,6 +145,11 @@ export class RoomAddRequest extends jspb.Message {
145
145
  setQuoteIdsList(value: Array<string>): void;
146
146
  addQuoteIds(value: string, index?: number): string;
147
147
 
148
+ clearContactIdsList(): void;
149
+ getContactIdsList(): Array<string>;
150
+ setContactIdsList(value: Array<string>): void;
151
+ addContactIds(value: string, index?: number): string;
152
+
148
153
  serializeBinary(): Uint8Array;
149
154
  toObject(includeInstance?: boolean): RoomAddRequest.AsObject;
150
155
  static toObject(includeInstance: boolean, msg: RoomAddRequest): RoomAddRequest.AsObject;
@@ -161,6 +166,7 @@ export namespace RoomAddRequest {
161
166
  contactId: string,
162
167
  inviteOnly: boolean,
163
168
  quoteIdsList: Array<string>,
169
+ contactIdsList: Array<string>,
164
170
  }
165
171
  }
166
172
 
@@ -1614,7 +1614,7 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1614
1614
  * @private {!Array<number>}
1615
1615
  * @const
1616
1616
  */
1617
- proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4];
1617
+ proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4,5];
1618
1618
 
1619
1619
 
1620
1620
 
@@ -1650,7 +1650,8 @@ proto.wechaty.puppet.RoomAddRequest.toObject = function(includeInstance, msg) {
1650
1650
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1651
1651
  contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1652
1652
  inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1653
- quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1653
+ quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1654
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
1654
1655
  };
1655
1656
 
1656
1657
  if (includeInstance) {
@@ -1703,6 +1704,10 @@ proto.wechaty.puppet.RoomAddRequest.deserializeBinaryFromReader = function(msg,
1703
1704
  var value = /** @type {string} */ (reader.readString());
1704
1705
  msg.addQuoteIds(value);
1705
1706
  break;
1707
+ case 5:
1708
+ var value = /** @type {string} */ (reader.readString());
1709
+ msg.addContactIds(value);
1710
+ break;
1706
1711
  default:
1707
1712
  reader.skipField();
1708
1713
  break;
@@ -1760,6 +1765,13 @@ proto.wechaty.puppet.RoomAddRequest.serializeBinaryToWriter = function(message,
1760
1765
  f
1761
1766
  );
1762
1767
  }
1768
+ f = message.getContactIdsList();
1769
+ if (f.length > 0) {
1770
+ writer.writeRepeatedString(
1771
+ 5,
1772
+ f
1773
+ );
1774
+ }
1763
1775
  };
1764
1776
 
1765
1777
 
@@ -1854,6 +1866,43 @@ proto.wechaty.puppet.RoomAddRequest.prototype.clearQuoteIdsList = function() {
1854
1866
  };
1855
1867
 
1856
1868
 
1869
+ /**
1870
+ * repeated string contact_ids = 5;
1871
+ * @return {!Array<string>}
1872
+ */
1873
+ proto.wechaty.puppet.RoomAddRequest.prototype.getContactIdsList = function() {
1874
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * @param {!Array<string>} value
1880
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1881
+ */
1882
+ proto.wechaty.puppet.RoomAddRequest.prototype.setContactIdsList = function(value) {
1883
+ return jspb.Message.setField(this, 5, value || []);
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * @param {string} value
1889
+ * @param {number=} opt_index
1890
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1891
+ */
1892
+ proto.wechaty.puppet.RoomAddRequest.prototype.addContactIds = function(value, opt_index) {
1893
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
1894
+ };
1895
+
1896
+
1897
+ /**
1898
+ * Clears the list making it empty but non-null.
1899
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1900
+ */
1901
+ proto.wechaty.puppet.RoomAddRequest.prototype.clearContactIdsList = function() {
1902
+ return this.setContactIdsList([]);
1903
+ };
1904
+
1905
+
1857
1906
 
1858
1907
 
1859
1908
 
@@ -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.97
12
+ version: 1.0.98
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -1783,6 +1783,14 @@ paths:
1783
1783
  items:
1784
1784
  type: string
1785
1785
  collectionFormat: multi
1786
+ - name: contactIds
1787
+ description: 邀请的联系人id列表,优先用这个
1788
+ in: query
1789
+ required: false
1790
+ type: array
1791
+ items:
1792
+ type: string
1793
+ collectionFormat: multi
1786
1794
  tags:
1787
1795
  - Puppet
1788
1796
  /rooms/{id}/announcement:
@@ -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.97",
6
+ "version": "1.0.98",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2670,6 +2670,17 @@
2670
2670
  "type": "string"
2671
2671
  },
2672
2672
  "collectionFormat": "multi"
2673
+ },
2674
+ {
2675
+ "name": "contactIds",
2676
+ "description": "邀请的联系人id列表,优先用这个",
2677
+ "in": "query",
2678
+ "required": false,
2679
+ "type": "array",
2680
+ "items": {
2681
+ "type": "string"
2682
+ },
2683
+ "collectionFormat": "multi"
2673
2684
  }
2674
2685
  ],
2675
2686
  "tags": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
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.97",
7
+ "version": "1.0.98",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {