@juzi/wechaty-grpc 1.0.69 → 1.0.71

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  2. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +35 -5
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +80 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +611 -1
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +49 -1
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +76 -1
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  11. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +2 -1
  12. package/dist/cjs/proto/wechaty/puppet/contact.proto +17 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +10 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  19. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +35 -5
  20. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +80 -0
  21. package/dist/esm/out/wechaty/puppet/contact_pb.js +611 -1
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +49 -1
  23. package/dist/esm/out/wechaty/puppet.swagger.json +76 -1
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  28. package/dist/esm/proto/wechaty/puppet/chat-history.proto +2 -1
  29. package/dist/esm/proto/wechaty/puppet/contact.proto +17 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +10 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +10 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/chat-history_pb.d.ts +4 -0
  36. package/out/wechaty/puppet/chat-history_pb.js +35 -5
  37. package/out/wechaty/puppet/contact_pb.d.ts +80 -0
  38. package/out/wechaty/puppet/contact_pb.js +611 -1
  39. package/out/wechaty/puppet.openapi.yaml +49 -1
  40. package/out/wechaty/puppet.swagger.json +76 -1
  41. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  42. package/out/wechaty/puppet_grpc_pb.js +66 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  44. package/out/wechaty/puppet_pb_service.js +80 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -81,6 +81,9 @@ export class ChatHistoryPayload extends jspb.Message {
81
81
  getTime(): number;
82
82
  setTime(value: number): void;
83
83
 
84
+ getTitle(): string;
85
+ setTitle(value: string): void;
86
+
84
87
  hasMessage(): boolean;
85
88
  clearMessage(): void;
86
89
  getMessage(): ChatHistoryContent | undefined;
@@ -103,6 +106,7 @@ export namespace ChatHistoryPayload {
103
106
  senderName: string,
104
107
  corpName: string,
105
108
  time: number,
109
+ title: string,
106
110
  message?: ChatHistoryContent.AsObject,
107
111
  }
108
112
  }
@@ -559,6 +559,7 @@ proto.wechaty.puppet.ChatHistoryPayload.toObject = function(includeInstance, msg
559
559
  senderName: jspb.Message.getFieldWithDefault(msg, 3, ""),
560
560
  corpName: jspb.Message.getFieldWithDefault(msg, 4, ""),
561
561
  time: jspb.Message.getFieldWithDefault(msg, 5, 0),
562
+ title: jspb.Message.getFieldWithDefault(msg, 6, ""),
562
563
  message: (f = msg.getMessage()) && proto.wechaty.puppet.ChatHistoryContent.toObject(includeInstance, f)
563
564
  };
564
565
 
@@ -617,6 +618,10 @@ proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader = function(m
617
618
  msg.setTime(value);
618
619
  break;
619
620
  case 6:
621
+ var value = /** @type {string} */ (reader.readString());
622
+ msg.setTitle(value);
623
+ break;
624
+ case 7:
620
625
  var value = new proto.wechaty.puppet.ChatHistoryContent;
621
626
  reader.readMessage(value,proto.wechaty.puppet.ChatHistoryContent.deserializeBinaryFromReader);
622
627
  msg.setMessage(value);
@@ -685,10 +690,17 @@ proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter = function(messa
685
690
  f
686
691
  );
687
692
  }
693
+ f = message.getTitle();
694
+ if (f.length > 0) {
695
+ writer.writeString(
696
+ 6,
697
+ f
698
+ );
699
+ }
688
700
  f = message.getMessage();
689
701
  if (f != null) {
690
702
  writer.writeMessage(
691
- 6,
703
+ 7,
692
704
  f,
693
705
  proto.wechaty.puppet.ChatHistoryContent.serializeBinaryToWriter
694
706
  );
@@ -787,12 +799,30 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.setTime = function(value) {
787
799
 
788
800
 
789
801
  /**
790
- * optional ChatHistoryContent message = 6;
802
+ * optional string title = 6;
803
+ * @return {string}
804
+ */
805
+ proto.wechaty.puppet.ChatHistoryPayload.prototype.getTitle = function() {
806
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
807
+ };
808
+
809
+
810
+ /**
811
+ * @param {string} value
812
+ * @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
813
+ */
814
+ proto.wechaty.puppet.ChatHistoryPayload.prototype.setTitle = function(value) {
815
+ return jspb.Message.setProto3StringField(this, 6, value);
816
+ };
817
+
818
+
819
+ /**
820
+ * optional ChatHistoryContent message = 7;
791
821
  * @return {?proto.wechaty.puppet.ChatHistoryContent}
792
822
  */
793
823
  proto.wechaty.puppet.ChatHistoryPayload.prototype.getMessage = function() {
794
824
  return /** @type{?proto.wechaty.puppet.ChatHistoryContent} */ (
795
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.ChatHistoryContent, 6));
825
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.ChatHistoryContent, 7));
796
826
  };
797
827
 
798
828
 
@@ -801,7 +831,7 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.getMessage = function() {
801
831
  * @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
802
832
  */
803
833
  proto.wechaty.puppet.ChatHistoryPayload.prototype.setMessage = function(value) {
804
- return jspb.Message.setWrapperField(this, 6, value);
834
+ return jspb.Message.setWrapperField(this, 7, value);
805
835
  };
806
836
 
807
837
 
@@ -819,7 +849,7 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.clearMessage = function() {
819
849
  * @return {boolean}
820
850
  */
821
851
  proto.wechaty.puppet.ChatHistoryPayload.prototype.hasMessage = function() {
822
- return jspb.Message.getField(this, 6) != null;
852
+ return jspb.Message.getField(this, 7) != null;
823
853
  };
824
854
 
825
855
 
@@ -127,6 +127,12 @@ export class ContactPayloadResponse extends jspb.Message {
127
127
  setTagIdsList(value: Array<string>): void;
128
128
  addTagIds(value: string, index?: number): string;
129
129
 
130
+ getRealName(): string;
131
+ setRealName(value: string): void;
132
+
133
+ getAka(): string;
134
+ setAka(value: string): void;
135
+
130
136
  serializeBinary(): Uint8Array;
131
137
  toObject(includeInstance?: boolean): ContactPayloadResponse.AsObject;
132
138
  static toObject(includeInstance: boolean, msg: ContactPayloadResponse): ContactPayloadResponse.AsObject;
@@ -159,6 +165,8 @@ export namespace ContactPayloadResponse {
159
165
  phonesList: Array<string>,
160
166
  additionalInfo: string,
161
167
  tagIdsList: Array<string>,
168
+ realName: string,
169
+ aka: string,
162
170
  }
163
171
  }
164
172
 
@@ -310,6 +318,78 @@ export namespace ContactSelfRoomAliasResponse {
310
318
  }
311
319
  }
312
320
 
321
+ export class ContactSelfRealNameRequest extends jspb.Message {
322
+ getRealName(): string;
323
+ setRealName(value: string): void;
324
+
325
+ serializeBinary(): Uint8Array;
326
+ toObject(includeInstance?: boolean): ContactSelfRealNameRequest.AsObject;
327
+ static toObject(includeInstance: boolean, msg: ContactSelfRealNameRequest): ContactSelfRealNameRequest.AsObject;
328
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
329
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
330
+ static serializeBinaryToWriter(message: ContactSelfRealNameRequest, writer: jspb.BinaryWriter): void;
331
+ static deserializeBinary(bytes: Uint8Array): ContactSelfRealNameRequest;
332
+ static deserializeBinaryFromReader(message: ContactSelfRealNameRequest, reader: jspb.BinaryReader): ContactSelfRealNameRequest;
333
+ }
334
+
335
+ export namespace ContactSelfRealNameRequest {
336
+ export type AsObject = {
337
+ realName: string,
338
+ }
339
+ }
340
+
341
+ export class ContactSelfRealNameResponse extends jspb.Message {
342
+ serializeBinary(): Uint8Array;
343
+ toObject(includeInstance?: boolean): ContactSelfRealNameResponse.AsObject;
344
+ static toObject(includeInstance: boolean, msg: ContactSelfRealNameResponse): ContactSelfRealNameResponse.AsObject;
345
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
346
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
347
+ static serializeBinaryToWriter(message: ContactSelfRealNameResponse, writer: jspb.BinaryWriter): void;
348
+ static deserializeBinary(bytes: Uint8Array): ContactSelfRealNameResponse;
349
+ static deserializeBinaryFromReader(message: ContactSelfRealNameResponse, reader: jspb.BinaryReader): ContactSelfRealNameResponse;
350
+ }
351
+
352
+ export namespace ContactSelfRealNameResponse {
353
+ export type AsObject = {
354
+ }
355
+ }
356
+
357
+ export class ContactSelfAkaRequest extends jspb.Message {
358
+ getAka(): string;
359
+ setAka(value: string): void;
360
+
361
+ serializeBinary(): Uint8Array;
362
+ toObject(includeInstance?: boolean): ContactSelfAkaRequest.AsObject;
363
+ static toObject(includeInstance: boolean, msg: ContactSelfAkaRequest): ContactSelfAkaRequest.AsObject;
364
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
365
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
366
+ static serializeBinaryToWriter(message: ContactSelfAkaRequest, writer: jspb.BinaryWriter): void;
367
+ static deserializeBinary(bytes: Uint8Array): ContactSelfAkaRequest;
368
+ static deserializeBinaryFromReader(message: ContactSelfAkaRequest, reader: jspb.BinaryReader): ContactSelfAkaRequest;
369
+ }
370
+
371
+ export namespace ContactSelfAkaRequest {
372
+ export type AsObject = {
373
+ aka: string,
374
+ }
375
+ }
376
+
377
+ export class ContactSelfAkaResponse extends jspb.Message {
378
+ serializeBinary(): Uint8Array;
379
+ toObject(includeInstance?: boolean): ContactSelfAkaResponse.AsObject;
380
+ static toObject(includeInstance: boolean, msg: ContactSelfAkaResponse): ContactSelfAkaResponse.AsObject;
381
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
382
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
383
+ static serializeBinaryToWriter(message: ContactSelfAkaResponse, writer: jspb.BinaryWriter): void;
384
+ static deserializeBinary(bytes: Uint8Array): ContactSelfAkaResponse;
385
+ static deserializeBinaryFromReader(message: ContactSelfAkaResponse, reader: jspb.BinaryReader): ContactSelfAkaResponse;
386
+ }
387
+
388
+ export namespace ContactSelfAkaResponse {
389
+ export type AsObject = {
390
+ }
391
+ }
392
+
313
393
  export class ContactAliasRequest extends jspb.Message {
314
394
  getId(): string;
315
395
  setId(value: string): void;