@juzi/wechaty-grpc 1.0.9 → 1.0.12

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.
Files changed (81) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -1
  2. package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  3. package/dist/cjs/out/wechaty/puppet/friendship_pb.js +3 -1
  4. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  5. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  6. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +452 -76
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3287 -352
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +323 -331
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +573 -572
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +154 -189
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +283 -357
  12. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  13. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +110 -149
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +66 -147
  16. package/dist/cjs/proto/wechaty/puppet/friendship.proto +2 -0
  17. package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
  18. package/dist/cjs/proto/wechaty/puppet/tag.proto +99 -29
  19. package/dist/cjs/proto/wechaty/puppet.proto +28 -43
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/src/package-json.js.map +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.js +11 -21
  24. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  25. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
  26. package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  27. package/dist/esm/out/wechaty/puppet/friendship_pb.js +3 -1
  28. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
  29. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  30. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +452 -76
  31. package/dist/esm/out/wechaty/puppet/tag_pb.js +3287 -352
  32. package/dist/esm/out/wechaty/puppet.openapi.yaml +323 -331
  33. package/dist/esm/out/wechaty/puppet.swagger.json +573 -572
  34. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +154 -189
  35. package/dist/esm/out/wechaty/puppet_grpc_pb.js +283 -357
  36. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  37. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  38. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +110 -149
  39. package/dist/esm/out/wechaty/puppet_pb_service.js +66 -147
  40. package/dist/esm/proto/wechaty/puppet/friendship.proto +2 -0
  41. package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
  42. package/dist/esm/proto/wechaty/puppet/tag.proto +99 -29
  43. package/dist/esm/proto/wechaty/puppet.proto +28 -43
  44. package/dist/esm/src/package-json.js +1 -1
  45. package/dist/esm/src/package-json.js.map +1 -1
  46. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  47. package/dist/esm/tests/puppet-server-impl.js +11 -21
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/friendship_pb.d.ts +2 -0
  50. package/out/wechaty/puppet/friendship_pb.js +3 -1
  51. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  52. package/out/wechaty/puppet/room_pb.js +58 -2
  53. package/out/wechaty/puppet/tag_pb.d.ts +452 -76
  54. package/out/wechaty/puppet/tag_pb.js +3287 -352
  55. package/out/wechaty/puppet.openapi.yaml +323 -331
  56. package/out/wechaty/puppet.swagger.json +573 -572
  57. package/out/wechaty/puppet_grpc_pb.d.ts +154 -189
  58. package/out/wechaty/puppet_grpc_pb.js +283 -357
  59. package/out/wechaty/puppet_pb.d.ts +0 -1
  60. package/out/wechaty/puppet_pb.js +0 -2
  61. package/out/wechaty/puppet_pb_service.d.ts +110 -149
  62. package/out/wechaty/puppet_pb_service.js +66 -147
  63. package/package.json +1 -1
  64. package/src/package-json.ts +1 -1
  65. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  66. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  67. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  68. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  69. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  70. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
  71. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  72. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  73. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  74. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  75. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  76. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
  77. package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  78. package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  79. package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  80. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  81. package/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
@@ -38,7 +38,6 @@ export * from '../../out/wechaty/puppet/room-member_pb.js'
38
38
  export * from '../../out/wechaty/puppet/tag_pb.js'
39
39
  export * from '../../out/wechaty/puppet/url-link_pb.js'
40
40
  export * from '../../out/wechaty/puppet/channel_pb.js'
41
- export * from '../../out/wechaty/puppet/corp-tag_pb.js'
42
41
 
43
42
  export * from '../../out/wechaty/puppet_grpc_pb.js'
44
43
  export * from '../../out/wechaty/puppet_pb.js'
@@ -270,6 +270,8 @@ export interface FriendshipTypeMap {
270
270
  FRIENDSHIP_TYPE_CONFIRM: 1;
271
271
  FRIENDSHIP_TYPE_RECEIVE: 2;
272
272
  FRIENDSHIP_TYPE_VERIFY: 3;
273
+ FRIENDSHIP_TYPE_DELETE: 4;
274
+ FRIENDSHIP_TYPE_REMOVED: 5;
273
275
  }
274
276
 
275
277
  export const FriendshipType: FriendshipTypeMap;
@@ -2036,7 +2036,9 @@ proto.wechaty.puppet.FriendshipType = {
2036
2036
  FRIENDSHIP_TYPE_UNSPECIFIED: 0,
2037
2037
  FRIENDSHIP_TYPE_CONFIRM: 1,
2038
2038
  FRIENDSHIP_TYPE_RECEIVE: 2,
2039
- FRIENDSHIP_TYPE_VERIFY: 3
2039
+ FRIENDSHIP_TYPE_VERIFY: 3,
2040
+ FRIENDSHIP_TYPE_DELETE: 4,
2041
+ FRIENDSHIP_TYPE_REMOVED: 5
2040
2042
  };
2041
2043
 
2042
2044
  /**
@@ -251,6 +251,11 @@ export class RoomDelRequest extends jspb.Message {
251
251
  getContactId(): string;
252
252
  setContactId(value: string): void;
253
253
 
254
+ clearContactIdsList(): void;
255
+ getContactIdsList(): Array<string>;
256
+ setContactIdsList(value: Array<string>): void;
257
+ addContactIds(value: string, index?: number): string;
258
+
254
259
  serializeBinary(): Uint8Array;
255
260
  toObject(includeInstance?: boolean): RoomDelRequest.AsObject;
256
261
  static toObject(includeInstance: boolean, msg: RoomDelRequest): RoomDelRequest.AsObject;
@@ -265,6 +270,7 @@ export namespace RoomDelRequest {
265
270
  export type AsObject = {
266
271
  id: string,
267
272
  contactId: string,
273
+ contactIdsList: Array<string>,
268
274
  }
269
275
  }
270
276
 
@@ -258,7 +258,7 @@ if (goog.DEBUG && !COMPILED) {
258
258
  * @constructor
259
259
  */
260
260
  proto.wechaty.puppet.RoomDelRequest = function(opt_data) {
261
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
261
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomDelRequest.repeatedFields_, null);
262
262
  };
263
263
  goog.inherits(proto.wechaty.puppet.RoomDelRequest, jspb.Message);
264
264
  if (goog.DEBUG && !COMPILED) {
@@ -2097,6 +2097,13 @@ proto.wechaty.puppet.RoomCreateResponse.prototype.setId = function(value) {
2097
2097
 
2098
2098
 
2099
2099
 
2100
+ /**
2101
+ * List of repeated fields within this message type.
2102
+ * @private {!Array<number>}
2103
+ * @const
2104
+ */
2105
+ proto.wechaty.puppet.RoomDelRequest.repeatedFields_ = [3];
2106
+
2100
2107
 
2101
2108
 
2102
2109
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2129,7 +2136,8 @@ proto.wechaty.puppet.RoomDelRequest.prototype.toObject = function(opt_includeIns
2129
2136
  proto.wechaty.puppet.RoomDelRequest.toObject = function(includeInstance, msg) {
2130
2137
  var f, obj = {
2131
2138
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2132
- contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
2139
+ contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2140
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2133
2141
  };
2134
2142
 
2135
2143
  if (includeInstance) {
@@ -2174,6 +2182,10 @@ proto.wechaty.puppet.RoomDelRequest.deserializeBinaryFromReader = function(msg,
2174
2182
  var value = /** @type {string} */ (reader.readString());
2175
2183
  msg.setContactId(value);
2176
2184
  break;
2185
+ case 3:
2186
+ var value = /** @type {string} */ (reader.readString());
2187
+ msg.addContactIds(value);
2188
+ break;
2177
2189
  default:
2178
2190
  reader.skipField();
2179
2191
  break;
@@ -2217,6 +2229,13 @@ proto.wechaty.puppet.RoomDelRequest.serializeBinaryToWriter = function(message,
2217
2229
  f
2218
2230
  );
2219
2231
  }
2232
+ f = message.getContactIdsList();
2233
+ if (f.length > 0) {
2234
+ writer.writeRepeatedString(
2235
+ 3,
2236
+ f
2237
+ );
2238
+ }
2220
2239
  };
2221
2240
 
2222
2241
 
@@ -2256,6 +2275,43 @@ proto.wechaty.puppet.RoomDelRequest.prototype.setContactId = function(value) {
2256
2275
  };
2257
2276
 
2258
2277
 
2278
+ /**
2279
+ * repeated string contact_ids = 3;
2280
+ * @return {!Array<string>}
2281
+ */
2282
+ proto.wechaty.puppet.RoomDelRequest.prototype.getContactIdsList = function() {
2283
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2284
+ };
2285
+
2286
+
2287
+ /**
2288
+ * @param {!Array<string>} value
2289
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2290
+ */
2291
+ proto.wechaty.puppet.RoomDelRequest.prototype.setContactIdsList = function(value) {
2292
+ return jspb.Message.setField(this, 3, value || []);
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * @param {string} value
2298
+ * @param {number=} opt_index
2299
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2300
+ */
2301
+ proto.wechaty.puppet.RoomDelRequest.prototype.addContactIds = function(value, opt_index) {
2302
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * Clears the list making it empty but non-null.
2308
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2309
+ */
2310
+ proto.wechaty.puppet.RoomDelRequest.prototype.clearContactIdsList = function() {
2311
+ return this.setContactIdsList([]);
2312
+ };
2313
+
2314
+
2259
2315
 
2260
2316
 
2261
2317