@juzi/wechaty-grpc 1.0.13 → 1.0.16

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 +41 -69
  8. package/dist/cjs/out/wechaty/puppet/tag_pb.js +187 -443
  9. package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -30
  10. package/dist/cjs/out/wechaty/puppet.swagger.json +48 -43
  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 +41 -69
  24. package/dist/esm/out/wechaty/puppet/tag_pb.js +187 -443
  25. package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -30
  26. package/dist/esm/out/wechaty/puppet.swagger.json +48 -43
  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 +41 -69
  40. package/out/wechaty/puppet/tag_pb.js +187 -443
  41. package/out/wechaty/puppet.openapi.yaml +38 -30
  42. package/out/wechaty/puppet.swagger.json +48 -43
  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;
@@ -66,6 +42,9 @@ export class TagGroupPayload extends jspb.Message {
66
42
  getName(): string;
67
43
  setName(value: string): void;
68
44
 
45
+ getType(): TagTypeMap[keyof TagTypeMap];
46
+ setType(value: TagTypeMap[keyof TagTypeMap]): void;
47
+
69
48
  serializeBinary(): Uint8Array;
70
49
  toObject(includeInstance?: boolean): TagGroupPayload.AsObject;
71
50
  static toObject(includeInstance: boolean, msg: TagGroupPayload): TagGroupPayload.AsObject;
@@ -80,14 +59,15 @@ export namespace TagGroupPayload {
80
59
  export type AsObject = {
81
60
  id: string,
82
61
  name: string,
62
+ type: TagTypeMap[keyof TagTypeMap],
83
63
  }
84
64
  }
85
65
 
86
66
  export class TagContactTagAddRequest extends jspb.Message {
87
- clearTagsList(): void;
88
- getTagsList(): Array<TagIdentifier>;
89
- setTagsList(value: Array<TagIdentifier>): void;
90
- 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;
91
71
 
92
72
  clearContactIdsList(): void;
93
73
  getContactIdsList(): Array<string>;
@@ -106,7 +86,7 @@ export class TagContactTagAddRequest extends jspb.Message {
106
86
 
107
87
  export namespace TagContactTagAddRequest {
108
88
  export type AsObject = {
109
- tagsList: Array<TagIdentifier.AsObject>,
89
+ tagIdsList: Array<string>,
110
90
  contactIdsList: Array<string>,
111
91
  }
112
92
  }
@@ -128,10 +108,10 @@ export namespace TagContactTagAddResponse {
128
108
  }
129
109
 
130
110
  export class TagContactTagRemoveRequest extends jspb.Message {
131
- clearTagsList(): void;
132
- getTagsList(): Array<TagIdentifier>;
133
- setTagsList(value: Array<TagIdentifier>): void;
134
- 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;
135
115
 
136
116
  clearContactIdsList(): void;
137
117
  getContactIdsList(): Array<string>;
@@ -150,7 +130,7 @@ export class TagContactTagRemoveRequest extends jspb.Message {
150
130
 
151
131
  export namespace TagContactTagRemoveRequest {
152
132
  export type AsObject = {
153
- tagsList: Array<TagIdentifier.AsObject>,
133
+ tagIdsList: Array<string>,
154
134
  contactIdsList: Array<string>,
155
135
  }
156
136
  }
@@ -272,10 +252,8 @@ export namespace TagTagAddRequest {
272
252
  }
273
253
 
274
254
  export class TagTagAddResponse extends jspb.Message {
275
- hasTag(): boolean;
276
- clearTag(): void;
277
- getTag(): TagIdentifier | undefined;
278
- setTag(value?: TagIdentifier): void;
255
+ getTagId(): string;
256
+ setTagId(value: string): void;
279
257
 
280
258
  serializeBinary(): Uint8Array;
281
259
  toObject(includeInstance?: boolean): TagTagAddResponse.AsObject;
@@ -289,15 +267,13 @@ export class TagTagAddResponse extends jspb.Message {
289
267
 
290
268
  export namespace TagTagAddResponse {
291
269
  export type AsObject = {
292
- tag?: TagIdentifier.AsObject,
270
+ tagId: string,
293
271
  }
294
272
  }
295
273
 
296
274
  export class TagTagDeleteRequest extends jspb.Message {
297
- hasTag(): boolean;
298
- clearTag(): void;
299
- getTag(): TagIdentifier | undefined;
300
- setTag(value?: TagIdentifier): void;
275
+ getTagId(): string;
276
+ setTagId(value: string): void;
301
277
 
302
278
  serializeBinary(): Uint8Array;
303
279
  toObject(includeInstance?: boolean): TagTagDeleteRequest.AsObject;
@@ -311,7 +287,7 @@ export class TagTagDeleteRequest extends jspb.Message {
311
287
 
312
288
  export namespace TagTagDeleteRequest {
313
289
  export type AsObject = {
314
- tag?: TagIdentifier.AsObject,
290
+ tagId: string,
315
291
  }
316
292
  }
317
293
 
@@ -390,10 +366,10 @@ export namespace TagGroupTagListRequest {
390
366
  }
391
367
 
392
368
  export class TagGroupTagListResponse extends jspb.Message {
393
- clearTagsList(): void;
394
- getTagsList(): Array<TagIdentifier>;
395
- setTagsList(value: Array<TagIdentifier>): void;
396
- 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;
397
373
 
398
374
  serializeBinary(): Uint8Array;
399
375
  toObject(includeInstance?: boolean): TagGroupTagListResponse.AsObject;
@@ -407,7 +383,7 @@ export class TagGroupTagListResponse extends jspb.Message {
407
383
 
408
384
  export namespace TagGroupTagListResponse {
409
385
  export type AsObject = {
410
- tagsList: Array<TagIdentifier.AsObject>,
386
+ tagIdsList: Array<string>,
411
387
  }
412
388
  }
413
389
 
@@ -428,10 +404,10 @@ export namespace TagTagListRequest {
428
404
  }
429
405
 
430
406
  export class TagTagListResponse extends jspb.Message {
431
- clearTagsList(): void;
432
- getTagsList(): Array<TagIdentifier>;
433
- setTagsList(value: Array<TagIdentifier>): void;
434
- 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;
435
411
 
436
412
  serializeBinary(): Uint8Array;
437
413
  toObject(includeInstance?: boolean): TagTagListResponse.AsObject;
@@ -445,7 +421,7 @@ export class TagTagListResponse extends jspb.Message {
445
421
 
446
422
  export namespace TagTagListResponse {
447
423
  export type AsObject = {
448
- tagsList: Array<TagIdentifier.AsObject>,
424
+ tagIdsList: Array<string>,
449
425
  }
450
426
  }
451
427
 
@@ -470,10 +446,10 @@ export namespace TagContactTagListRequest {
470
446
  }
471
447
 
472
448
  export class TagContactTagListResponse extends jspb.Message {
473
- clearTagsList(): void;
474
- getTagsList(): Array<TagIdentifier>;
475
- setTagsList(value: Array<TagIdentifier>): void;
476
- 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;
477
453
 
478
454
  serializeBinary(): Uint8Array;
479
455
  toObject(includeInstance?: boolean): TagContactTagListResponse.AsObject;
@@ -487,15 +463,13 @@ export class TagContactTagListResponse extends jspb.Message {
487
463
 
488
464
  export namespace TagContactTagListResponse {
489
465
  export type AsObject = {
490
- tagsList: Array<TagIdentifier.AsObject>,
466
+ tagIdsList: Array<string>,
491
467
  }
492
468
  }
493
469
 
494
470
  export class TagTagContactListRequest extends jspb.Message {
495
- hasTag(): boolean;
496
- clearTag(): void;
497
- getTag(): TagIdentifier | undefined;
498
- setTag(value?: TagIdentifier): void;
471
+ getTagId(): string;
472
+ setTagId(value: string): void;
499
473
 
500
474
  serializeBinary(): Uint8Array;
501
475
  toObject(includeInstance?: boolean): TagTagContactListRequest.AsObject;
@@ -509,7 +483,7 @@ export class TagTagContactListRequest extends jspb.Message {
509
483
 
510
484
  export namespace TagTagContactListRequest {
511
485
  export type AsObject = {
512
- tag?: TagIdentifier.AsObject,
486
+ tagId: string,
513
487
  }
514
488
  }
515
489
 
@@ -578,10 +552,8 @@ export namespace TagGroupPayloadResponse {
578
552
  }
579
553
 
580
554
  export class TagPayloadRequest extends jspb.Message {
581
- hasTag(): boolean;
582
- clearTag(): void;
583
- getTag(): TagIdentifier | undefined;
584
- setTag(value?: TagIdentifier): void;
555
+ getTagId(): string;
556
+ setTagId(value: string): void;
585
557
 
586
558
  serializeBinary(): Uint8Array;
587
559
  toObject(includeInstance?: boolean): TagPayloadRequest.AsObject;
@@ -595,7 +567,7 @@ export class TagPayloadRequest extends jspb.Message {
595
567
 
596
568
  export namespace TagPayloadRequest {
597
569
  export type AsObject = {
598
- tag?: TagIdentifier.AsObject,
570
+ tagId: string,
599
571
  }
600
572
  }
601
573