@juzi/wechaty-grpc 1.0.68 → 1.0.70

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 +3 -3
  2. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +9 -9
  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 -2
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +75 -2
  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 +1 -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 +3 -3
  19. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +9 -9
  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 -2
  23. package/dist/esm/out/wechaty/puppet.swagger.json +75 -2
  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 +1 -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 +3 -3
  36. package/out/wechaty/puppet/chat-history_pb.js +9 -9
  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 -2
  40. package/out/wechaty/puppet.swagger.json +75 -2
  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
@@ -78,8 +78,8 @@ export class ChatHistoryPayload extends jspb.Message {
78
78
  getCorpName(): string;
79
79
  setCorpName(value: string): void;
80
80
 
81
- getTime(): string;
82
- setTime(value: string): void;
81
+ getTime(): number;
82
+ setTime(value: number): void;
83
83
 
84
84
  hasMessage(): boolean;
85
85
  clearMessage(): void;
@@ -102,7 +102,7 @@ export namespace ChatHistoryPayload {
102
102
  avatar: string,
103
103
  senderName: string,
104
104
  corpName: string,
105
- time: string,
105
+ time: number,
106
106
  message?: ChatHistoryContent.AsObject,
107
107
  }
108
108
  }
@@ -558,7 +558,7 @@ proto.wechaty.puppet.ChatHistoryPayload.toObject = function(includeInstance, msg
558
558
  avatar: jspb.Message.getFieldWithDefault(msg, 2, ""),
559
559
  senderName: jspb.Message.getFieldWithDefault(msg, 3, ""),
560
560
  corpName: jspb.Message.getFieldWithDefault(msg, 4, ""),
561
- time: jspb.Message.getFieldWithDefault(msg, 5, ""),
561
+ time: jspb.Message.getFieldWithDefault(msg, 5, 0),
562
562
  message: (f = msg.getMessage()) && proto.wechaty.puppet.ChatHistoryContent.toObject(includeInstance, f)
563
563
  };
564
564
 
@@ -613,7 +613,7 @@ proto.wechaty.puppet.ChatHistoryPayload.deserializeBinaryFromReader = function(m
613
613
  msg.setCorpName(value);
614
614
  break;
615
615
  case 5:
616
- var value = /** @type {string} */ (reader.readString());
616
+ var value = /** @type {number} */ (reader.readInt32());
617
617
  msg.setTime(value);
618
618
  break;
619
619
  case 6:
@@ -679,8 +679,8 @@ proto.wechaty.puppet.ChatHistoryPayload.serializeBinaryToWriter = function(messa
679
679
  );
680
680
  }
681
681
  f = message.getTime();
682
- if (f.length > 0) {
683
- writer.writeString(
682
+ if (f !== 0) {
683
+ writer.writeInt32(
684
684
  5,
685
685
  f
686
686
  );
@@ -769,20 +769,20 @@ proto.wechaty.puppet.ChatHistoryPayload.prototype.setCorpName = function(value)
769
769
 
770
770
 
771
771
  /**
772
- * optional string time = 5;
773
- * @return {string}
772
+ * optional int32 time = 5;
773
+ * @return {number}
774
774
  */
775
775
  proto.wechaty.puppet.ChatHistoryPayload.prototype.getTime = function() {
776
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
776
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
777
777
  };
778
778
 
779
779
 
780
780
  /**
781
- * @param {string} value
781
+ * @param {number} value
782
782
  * @return {!proto.wechaty.puppet.ChatHistoryPayload} returns this
783
783
  */
784
784
  proto.wechaty.puppet.ChatHistoryPayload.prototype.setTime = function(value) {
785
- return jspb.Message.setProto3StringField(this, 5, value);
785
+ return jspb.Message.setProto3IntField(this, 5, value);
786
786
  };
787
787
 
788
788
 
@@ -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;