@juzi/wechaty-grpc 1.0.14 → 1.0.17

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 (44) hide show
  1. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +2 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +3 -1
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +6 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +51 -2
  5. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  6. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +40 -71
  8. package/dist/cjs/out/wechaty/puppet/tag_pb.js +159 -444
  9. package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -31
  10. package/dist/cjs/out/wechaty/puppet.swagger.json +47 -44
  11. package/dist/cjs/proto/wechaty/puppet/base.proto +2 -0
  12. package/dist/cjs/proto/wechaty/puppet/contact.proto +2 -0
  13. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  14. package/dist/cjs/proto/wechaty/puppet/tag.proto +12 -16
  15. package/dist/cjs/proto/wechaty/puppet.proto +1 -1
  16. package/dist/cjs/src/package-json.js +1 -1
  17. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +2 -0
  18. package/dist/esm/out/wechaty/puppet/base_pb.js +3 -1
  19. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +6 -0
  20. package/dist/esm/out/wechaty/puppet/contact_pb.js +51 -2
  21. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  22. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  23. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +40 -71
  24. package/dist/esm/out/wechaty/puppet/tag_pb.js +159 -444
  25. package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -31
  26. package/dist/esm/out/wechaty/puppet.swagger.json +47 -44
  27. package/dist/esm/proto/wechaty/puppet/base.proto +2 -0
  28. package/dist/esm/proto/wechaty/puppet/contact.proto +2 -0
  29. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  30. package/dist/esm/proto/wechaty/puppet/tag.proto +12 -16
  31. package/dist/esm/proto/wechaty/puppet.proto +1 -1
  32. package/dist/esm/src/package-json.js +1 -1
  33. package/out/wechaty/puppet/base_pb.d.ts +2 -0
  34. package/out/wechaty/puppet/base_pb.js +3 -1
  35. package/out/wechaty/puppet/contact_pb.d.ts +6 -0
  36. package/out/wechaty/puppet/contact_pb.js +51 -2
  37. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  38. package/out/wechaty/puppet/event_pb.js +2 -1
  39. package/out/wechaty/puppet/tag_pb.d.ts +40 -71
  40. package/out/wechaty/puppet/tag_pb.js +159 -444
  41. package/out/wechaty/puppet.openapi.yaml +38 -31
  42. package/out/wechaty/puppet.swagger.json +47 -44
  43. package/package.json +1 -1
  44. package/src/package-json.ts +1 -1
@@ -254,6 +254,8 @@ export interface PayloadTypeMap {
254
254
  PAYLOAD_TYPE_ROOM: 3;
255
255
  PAYLOAD_TYPE_ROOM_MEMBER: 4;
256
256
  PAYLOAD_TYPE_FRIENDSHIP: 5;
257
+ PAYLOAD_TYPE_TAG: 6;
258
+ PAYLOAD_TYPE_TAG_GROUP: 7;
257
259
  }
258
260
 
259
261
  export const PayloadType: PayloadTypeMap;
@@ -1893,7 +1893,9 @@ proto.wechaty.puppet.PayloadType = {
1893
1893
  PAYLOAD_TYPE_CONTACT: 2,
1894
1894
  PAYLOAD_TYPE_ROOM: 3,
1895
1895
  PAYLOAD_TYPE_ROOM_MEMBER: 4,
1896
- PAYLOAD_TYPE_FRIENDSHIP: 5
1896
+ PAYLOAD_TYPE_FRIENDSHIP: 5,
1897
+ PAYLOAD_TYPE_TAG: 6,
1898
+ PAYLOAD_TYPE_TAG_GROUP: 7
1897
1899
  };
1898
1900
 
1899
1901
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -122,6 +122,11 @@ export class ContactPayloadResponse extends jspb.Message {
122
122
  getAdditionalInfo(): string;
123
123
  setAdditionalInfo(value: string): void;
124
124
 
125
+ clearTagIdsList(): void;
126
+ getTagIdsList(): Array<string>;
127
+ setTagIdsList(value: Array<string>): void;
128
+ addTagIds(value: string, index?: number): string;
129
+
125
130
  serializeBinary(): Uint8Array;
126
131
  toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
127
132
  static toObject(includeInstance: boolean, msg: ContactPayloadResponse): ContactPayloadResponse.AsObject;
@@ -153,6 +158,7 @@ export namespace ContactPayloadResponse {
153
158
  coworker: boolean,
154
159
  phonesList: Array<string>,
155
160
  additionalInfo: string,
161
+ tagIdsList: Array<string>,
156
162
  }
157
163
  }
158
164
 
@@ -852,7 +852,7 @@ proto.wechaty.puppet.ContactPayloadRequest.prototype.setId = function(value) {
852
852
  * @private {!Array<number>}
853
853
  * @const
854
854
  */
855
- proto.wechaty.puppet.ContactPayloadResponse.repeatedFields_ = [18];
855
+ proto.wechaty.puppet.ContactPayloadResponse.repeatedFields_ = [18,20];
856
856
 
857
857
 
858
858
 
@@ -903,7 +903,8 @@ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance,
903
903
  description: jspb.Message.getFieldWithDefault(msg, 16, ""),
904
904
  coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
905
905
  phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
906
- additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, "")
906
+ additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
907
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
907
908
  };
908
909
 
909
910
  if (includeInstance) {
@@ -1016,6 +1017,10 @@ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = functi
1016
1017
  var value = /** @type {string} */ (reader.readString());
1017
1018
  msg.setAdditionalInfo(value);
1018
1019
  break;
1020
+ case 20:
1021
+ var value = /** @type {string} */ (reader.readString());
1022
+ msg.addTagIds(value);
1023
+ break;
1019
1024
  default:
1020
1025
  reader.skipField();
1021
1026
  break;
@@ -1178,6 +1183,13 @@ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(m
1178
1183
  f
1179
1184
  );
1180
1185
  }
1186
+ f = message.getTagIdsList();
1187
+ if (f.length > 0) {
1188
+ writer.writeRepeatedString(
1189
+ 20,
1190
+ f
1191
+ );
1192
+ }
1181
1193
  };
1182
1194
 
1183
1195
 
@@ -1542,6 +1554,43 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAdditionalInfo = functi
1542
1554
  };
1543
1555
 
1544
1556
 
1557
+ /**
1558
+ * repeated string tag_ids = 20;
1559
+ * @return {!Array<string>}
1560
+ */
1561
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getTagIdsList = function() {
1562
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
1563
+ };
1564
+
1565
+
1566
+ /**
1567
+ * @param {!Array<string>} value
1568
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1569
+ */
1570
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setTagIdsList = function(value) {
1571
+ return jspb.Message.setField(this, 20, value || []);
1572
+ };
1573
+
1574
+
1575
+ /**
1576
+ * @param {string} value
1577
+ * @param {number=} opt_index
1578
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1579
+ */
1580
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.addTagIds = function(value, opt_index) {
1581
+ return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
1582
+ };
1583
+
1584
+
1585
+ /**
1586
+ * Clears the list making it empty but non-null.
1587
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1588
+ */
1589
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearTagIdsList = function() {
1590
+ return this.setTagIdsList([]);
1591
+ };
1592
+
1593
+
1545
1594
 
1546
1595
 
1547
1596
 
@@ -62,6 +62,7 @@ export interface EventTypeMap {
62
62
  EVENT_TYPE_LOGOUT: 26;
63
63
  EVENT_TYPE_DIRTY: 27;
64
64
  EVENT_TYPE_TAG: 28;
65
+ EVENT_TYPE_TAG_GROUP: 29;
65
66
  }
66
67
 
67
68
  export const EventType: EventTypeMap;
@@ -342,7 +342,8 @@ proto.wechaty.puppet.EventType = {
342
342
  EVENT_TYPE_LOGIN: 25,
343
343
  EVENT_TYPE_LOGOUT: 26,
344
344
  EVENT_TYPE_DIRTY: 27,
345
- EVENT_TYPE_TAG: 28
345
+ EVENT_TYPE_TAG: 28,
346
+ EVENT_TYPE_TAG_GROUP: 29
346
347
  };
347
348
 
348
349
  goog.object.extend(exports, proto.wechaty.puppet);
@@ -35,30 +35,6 @@ export namespace TagPayload {
35
35
  }
36
36
  }
37
37
 
38
- export class TagIdentifier extends jspb.Message {
39
- getId(): string;
40
- setId(value: string): void;
41
-
42
- getGroupId(): string;
43
- setGroupId(value: string): void;
44
-
45
- serializeBinary(): Uint8Array;
46
- toObject(includeInstance?: boolean): TagIdentifier.AsObject;
47
- static toObject(includeInstance: boolean, msg: TagIdentifier): TagIdentifier.AsObject;
48
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
49
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
50
- static serializeBinaryToWriter(message: TagIdentifier, writer: jspb.BinaryWriter): void;
51
- static deserializeBinary(bytes: Uint8Array): TagIdentifier;
52
- static deserializeBinaryFromReader(message: TagIdentifier, reader: jspb.BinaryReader): TagIdentifier;
53
- }
54
-
55
- export namespace TagIdentifier {
56
- export type AsObject = {
57
- id: string,
58
- groupId: string,
59
- }
60
- }
61
-
62
38
  export class TagGroupPayload extends jspb.Message {
63
39
  getId(): string;
64
40
  setId(value: string): void;
@@ -88,10 +64,10 @@ export namespace TagGroupPayload {
88
64
  }
89
65
 
90
66
  export class TagContactTagAddRequest extends jspb.Message {
91
- clearTagsList(): void;
92
- getTagsList(): Array<TagIdentifier>;
93
- setTagsList(value: Array<TagIdentifier>): void;
94
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
67
+ clearTagIdsList(): void;
68
+ getTagIdsList(): Array<string>;
69
+ setTagIdsList(value: Array<string>): void;
70
+ addTagIds(value: string, index?: number): string;
95
71
 
96
72
  clearContactIdsList(): void;
97
73
  getContactIdsList(): Array<string>;
@@ -110,7 +86,7 @@ export class TagContactTagAddRequest extends jspb.Message {
110
86
 
111
87
  export namespace TagContactTagAddRequest {
112
88
  export type AsObject = {
113
- tagsList: Array<TagIdentifier.AsObject>,
89
+ tagIdsList: Array<string>,
114
90
  contactIdsList: Array<string>,
115
91
  }
116
92
  }
@@ -132,10 +108,10 @@ export namespace TagContactTagAddResponse {
132
108
  }
133
109
 
134
110
  export class TagContactTagRemoveRequest extends jspb.Message {
135
- clearTagsList(): void;
136
- getTagsList(): Array<TagIdentifier>;
137
- setTagsList(value: Array<TagIdentifier>): void;
138
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
111
+ clearTagIdsList(): void;
112
+ getTagIdsList(): Array<string>;
113
+ setTagIdsList(value: Array<string>): void;
114
+ addTagIds(value: string, index?: number): string;
139
115
 
140
116
  clearContactIdsList(): void;
141
117
  getContactIdsList(): Array<string>;
@@ -154,7 +130,7 @@ export class TagContactTagRemoveRequest extends jspb.Message {
154
130
 
155
131
  export namespace TagContactTagRemoveRequest {
156
132
  export type AsObject = {
157
- tagsList: Array<TagIdentifier.AsObject>,
133
+ tagIdsList: Array<string>,
158
134
  contactIdsList: Array<string>,
159
135
  }
160
136
  }
@@ -276,10 +252,8 @@ export namespace TagTagAddRequest {
276
252
  }
277
253
 
278
254
  export class TagTagAddResponse extends jspb.Message {
279
- hasTag(): boolean;
280
- clearTag(): void;
281
- getTag(): TagIdentifier | undefined;
282
- setTag(value?: TagIdentifier): void;
255
+ getTagId(): string;
256
+ setTagId(value: string): void;
283
257
 
284
258
  serializeBinary(): Uint8Array;
285
259
  toObject(includeInstance?: boolean): TagTagAddResponse.AsObject;
@@ -293,15 +267,13 @@ export class TagTagAddResponse extends jspb.Message {
293
267
 
294
268
  export namespace TagTagAddResponse {
295
269
  export type AsObject = {
296
- tag?: TagIdentifier.AsObject,
270
+ tagId: string,
297
271
  }
298
272
  }
299
273
 
300
274
  export class TagTagDeleteRequest extends jspb.Message {
301
- hasTag(): boolean;
302
- clearTag(): void;
303
- getTag(): TagIdentifier | undefined;
304
- setTag(value?: TagIdentifier): void;
275
+ getTagId(): string;
276
+ setTagId(value: string): void;
305
277
 
306
278
  serializeBinary(): Uint8Array;
307
279
  toObject(includeInstance?: boolean): TagTagDeleteRequest.AsObject;
@@ -315,7 +287,7 @@ export class TagTagDeleteRequest extends jspb.Message {
315
287
 
316
288
  export namespace TagTagDeleteRequest {
317
289
  export type AsObject = {
318
- tag?: TagIdentifier.AsObject,
290
+ tagId: string,
319
291
  }
320
292
  }
321
293
 
@@ -394,10 +366,10 @@ export namespace TagGroupTagListRequest {
394
366
  }
395
367
 
396
368
  export class TagGroupTagListResponse extends jspb.Message {
397
- clearTagsList(): void;
398
- getTagsList(): Array<TagIdentifier>;
399
- setTagsList(value: Array<TagIdentifier>): void;
400
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
369
+ clearTagIdsList(): void;
370
+ getTagIdsList(): Array<string>;
371
+ setTagIdsList(value: Array<string>): void;
372
+ addTagIds(value: string, index?: number): string;
401
373
 
402
374
  serializeBinary(): Uint8Array;
403
375
  toObject(includeInstance?: boolean): TagGroupTagListResponse.AsObject;
@@ -411,7 +383,7 @@ export class TagGroupTagListResponse extends jspb.Message {
411
383
 
412
384
  export namespace TagGroupTagListResponse {
413
385
  export type AsObject = {
414
- tagsList: Array<TagIdentifier.AsObject>,
386
+ tagIdsList: Array<string>,
415
387
  }
416
388
  }
417
389
 
@@ -432,10 +404,10 @@ export namespace TagTagListRequest {
432
404
  }
433
405
 
434
406
  export class TagTagListResponse extends jspb.Message {
435
- clearTagsList(): void;
436
- getTagsList(): Array<TagIdentifier>;
437
- setTagsList(value: Array<TagIdentifier>): void;
438
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
407
+ clearTagIdsList(): void;
408
+ getTagIdsList(): Array<string>;
409
+ setTagIdsList(value: Array<string>): void;
410
+ addTagIds(value: string, index?: number): string;
439
411
 
440
412
  serializeBinary(): Uint8Array;
441
413
  toObject(includeInstance?: boolean): TagTagListResponse.AsObject;
@@ -449,7 +421,7 @@ export class TagTagListResponse extends jspb.Message {
449
421
 
450
422
  export namespace TagTagListResponse {
451
423
  export type AsObject = {
452
- tagsList: Array<TagIdentifier.AsObject>,
424
+ tagIdsList: Array<string>,
453
425
  }
454
426
  }
455
427
 
@@ -474,10 +446,10 @@ export namespace TagContactTagListRequest {
474
446
  }
475
447
 
476
448
  export class TagContactTagListResponse extends jspb.Message {
477
- clearTagsList(): void;
478
- getTagsList(): Array<TagIdentifier>;
479
- setTagsList(value: Array<TagIdentifier>): void;
480
- addTags(value?: TagIdentifier, index?: number): TagIdentifier;
449
+ clearTagIdsList(): void;
450
+ getTagIdsList(): Array<string>;
451
+ setTagIdsList(value: Array<string>): void;
452
+ addTagIds(value: string, index?: number): string;
481
453
 
482
454
  serializeBinary(): Uint8Array;
483
455
  toObject(includeInstance?: boolean): TagContactTagListResponse.AsObject;
@@ -491,15 +463,13 @@ export class TagContactTagListResponse extends jspb.Message {
491
463
 
492
464
  export namespace TagContactTagListResponse {
493
465
  export type AsObject = {
494
- tagsList: Array<TagIdentifier.AsObject>,
466
+ tagIdsList: Array<string>,
495
467
  }
496
468
  }
497
469
 
498
470
  export class TagTagContactListRequest extends jspb.Message {
499
- hasTag(): boolean;
500
- clearTag(): void;
501
- getTag(): TagIdentifier | undefined;
502
- setTag(value?: TagIdentifier): void;
471
+ getTagId(): string;
472
+ setTagId(value: string): void;
503
473
 
504
474
  serializeBinary(): Uint8Array;
505
475
  toObject(includeInstance?: boolean): TagTagContactListRequest.AsObject;
@@ -513,7 +483,7 @@ export class TagTagContactListRequest extends jspb.Message {
513
483
 
514
484
  export namespace TagTagContactListRequest {
515
485
  export type AsObject = {
516
- tag?: TagIdentifier.AsObject,
486
+ tagId: string,
517
487
  }
518
488
  }
519
489
 
@@ -582,10 +552,8 @@ export namespace TagGroupPayloadResponse {
582
552
  }
583
553
 
584
554
  export class TagPayloadRequest extends jspb.Message {
585
- hasTag(): boolean;
586
- clearTag(): void;
587
- getTag(): TagIdentifier | undefined;
588
- setTag(value?: TagIdentifier): void;
555
+ getTagId(): string;
556
+ setTagId(value: string): void;
589
557
 
590
558
  serializeBinary(): Uint8Array;
591
559
  toObject(includeInstance?: boolean): TagPayloadRequest.AsObject;
@@ -599,7 +567,7 @@ export class TagPayloadRequest extends jspb.Message {
599
567
 
600
568
  export namespace TagPayloadRequest {
601
569
  export type AsObject = {
602
- tag?: TagIdentifier.AsObject,
570
+ tagId: string,
603
571
  }
604
572
  }
605
573
 
@@ -626,8 +594,9 @@ export namespace TagPayloadResponse {
626
594
  }
627
595
 
628
596
  export interface TagTypeMap {
629
- PERSONAL: 0;
630
- CORPORATION: 1;
597
+ UNSPECIFIC: 0;
598
+ PERSONAL: 1;
599
+ CORPORATION: 2;
631
600
  }
632
601
 
633
602
  export const TagType: TagTypeMap;