@juzi/wechaty-grpc 1.0.42 → 1.0.44

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 (69) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +0 -2
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -2
  3. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +105 -0
  4. package/dist/cjs/out/wechaty/puppet/message_pb.js +794 -21
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +69 -142
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +106 -194
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -50
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -102
  9. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  10. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -34
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -147
  13. package/dist/cjs/proto/wechaty/puppet/message.proto +25 -0
  14. package/dist/cjs/proto/wechaty/puppet.proto +13 -9
  15. package/dist/cjs/src/package-json.d.ts.map +1 -1
  16. package/dist/cjs/src/package-json.js +3 -2
  17. package/dist/cjs/src/package-json.js.map +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +10 -13
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/esm/commonjs/generated/puppet.cjs +0 -2
  22. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -2
  23. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +105 -0
  24. package/dist/esm/out/wechaty/puppet/message_pb.js +794 -21
  25. package/dist/esm/out/wechaty/puppet.openapi.yaml +69 -142
  26. package/dist/esm/out/wechaty/puppet.swagger.json +106 -194
  27. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -50
  28. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -102
  29. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  30. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  31. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -34
  32. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -147
  33. package/dist/esm/proto/wechaty/puppet/message.proto +25 -0
  34. package/dist/esm/proto/wechaty/puppet.proto +13 -9
  35. package/dist/esm/src/package-json.d.ts.map +1 -1
  36. package/dist/esm/src/package-json.js +3 -2
  37. package/dist/esm/src/package-json.js.map +1 -1
  38. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  39. package/dist/esm/tests/puppet-server-impl.js +10 -13
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/message_pb.d.ts +105 -0
  42. package/out/wechaty/puppet/message_pb.js +794 -21
  43. package/out/wechaty/puppet.openapi.yaml +69 -142
  44. package/out/wechaty/puppet.swagger.json +106 -194
  45. package/out/wechaty/puppet_grpc_pb.d.ts +34 -50
  46. package/out/wechaty/puppet_grpc_pb.js +66 -102
  47. package/out/wechaty/puppet_pb.d.ts +0 -1
  48. package/out/wechaty/puppet_pb.js +0 -2
  49. package/out/wechaty/puppet_pb_service.d.ts +38 -34
  50. package/out/wechaty/puppet_pb_service.js +80 -147
  51. package/package.json +3 -2
  52. package/src/package-json.ts +3 -2
  53. package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  54. package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  55. package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +0 -1368
  56. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  57. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +0 -3
  58. package/dist/cjs/proto/wechaty/deprecated/file-box.proto +0 -61
  59. package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  60. package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  61. package/dist/esm/out/wechaty/deprecated/file-box_pb.js +0 -1368
  62. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  63. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +0 -3
  64. package/dist/esm/proto/wechaty/deprecated/file-box.proto +0 -61
  65. package/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  66. package/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  67. package/out/wechaty/deprecated/file-box_pb.js +0 -1368
  68. package/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  69. package/out/wechaty/deprecated/file-box_pb_service.js +0 -3
@@ -1,6 +1,4 @@
1
1
  const puppetFileList = [
2
- '../../out/wechaty/deprecated/file-box_pb.js',
3
-
4
2
  '../../out/wechaty/puppet/base_pb.js',
5
3
  '../../out/wechaty/puppet/contact_pb.js',
6
4
  '../../out/wechaty/puppet/download-upload_pb.js',
@@ -21,8 +21,6 @@
21
21
  * const puppet = pkg['puppet']
22
22
  * ```
23
23
  */
24
- export * from '../../out/wechaty/deprecated/file-box_pb.js'
25
-
26
24
  export * from '../../out/wechaty/puppet/base_pb.js'
27
25
  export * from '../../out/wechaty/puppet/contact_pb.js'
28
26
  export * from '../../out/wechaty/puppet/download-upload_pb.js'
@@ -9,6 +9,7 @@ import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
9
9
  import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
10
10
  import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
11
11
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
12
+ import * as wechaty_puppet_post_pb from "../../wechaty/puppet/post_pb";
12
13
 
13
14
  export class MessagePayloadRequest extends jspb.Message {
14
15
  getId(): string;
@@ -898,6 +899,102 @@ export namespace MessagePreviewResponse {
898
899
  }
899
900
  }
900
901
 
902
+ export class GetMessageBroadcastTargetRequest extends jspb.Message {
903
+ serializeBinary(): Uint8Array;
904
+ toObject(includeInstance?: boolean): GetMessageBroadcastTargetRequest.AsObject;
905
+ static toObject(includeInstance: boolean, msg: GetMessageBroadcastTargetRequest): GetMessageBroadcastTargetRequest.AsObject;
906
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
907
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
908
+ static serializeBinaryToWriter(message: GetMessageBroadcastTargetRequest, writer: jspb.BinaryWriter): void;
909
+ static deserializeBinary(bytes: Uint8Array): GetMessageBroadcastTargetRequest;
910
+ static deserializeBinaryFromReader(message: GetMessageBroadcastTargetRequest, reader: jspb.BinaryReader): GetMessageBroadcastTargetRequest;
911
+ }
912
+
913
+ export namespace GetMessageBroadcastTargetRequest {
914
+ export type AsObject = {
915
+ }
916
+ }
917
+
918
+ export class GetMessageBroadcastTargetResponse extends jspb.Message {
919
+ clearContactIdsList(): void;
920
+ getContactIdsList(): Array<string>;
921
+ setContactIdsList(value: Array<string>): void;
922
+ addContactIds(value: string, index?: number): string;
923
+
924
+ clearRoomIdsList(): void;
925
+ getRoomIdsList(): Array<string>;
926
+ setRoomIdsList(value: Array<string>): void;
927
+ addRoomIds(value: string, index?: number): string;
928
+
929
+ serializeBinary(): Uint8Array;
930
+ toObject(includeInstance?: boolean): GetMessageBroadcastTargetResponse.AsObject;
931
+ static toObject(includeInstance: boolean, msg: GetMessageBroadcastTargetResponse): GetMessageBroadcastTargetResponse.AsObject;
932
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
933
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
934
+ static serializeBinaryToWriter(message: GetMessageBroadcastTargetResponse, writer: jspb.BinaryWriter): void;
935
+ static deserializeBinary(bytes: Uint8Array): GetMessageBroadcastTargetResponse;
936
+ static deserializeBinaryFromReader(message: GetMessageBroadcastTargetResponse, reader: jspb.BinaryReader): GetMessageBroadcastTargetResponse;
937
+ }
938
+
939
+ export namespace GetMessageBroadcastTargetResponse {
940
+ export type AsObject = {
941
+ contactIdsList: Array<string>,
942
+ roomIdsList: Array<string>,
943
+ }
944
+ }
945
+
946
+ export class CreateMessageBroadcastRequest extends jspb.Message {
947
+ clearTargetIdsList(): void;
948
+ getTargetIdsList(): Array<string>;
949
+ setTargetIdsList(value: Array<string>): void;
950
+ addTargetIds(value: string, index?: number): string;
951
+
952
+ getType(): MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap];
953
+ setType(value: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap]): void;
954
+
955
+ hasContent(): boolean;
956
+ clearContent(): void;
957
+ getContent(): wechaty_puppet_post_pb.PostPayloadClient | undefined;
958
+ setContent(value?: wechaty_puppet_post_pb.PostPayloadClient): void;
959
+
960
+ serializeBinary(): Uint8Array;
961
+ toObject(includeInstance?: boolean): CreateMessageBroadcastRequest.AsObject;
962
+ static toObject(includeInstance: boolean, msg: CreateMessageBroadcastRequest): CreateMessageBroadcastRequest.AsObject;
963
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
964
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
965
+ static serializeBinaryToWriter(message: CreateMessageBroadcastRequest, writer: jspb.BinaryWriter): void;
966
+ static deserializeBinary(bytes: Uint8Array): CreateMessageBroadcastRequest;
967
+ static deserializeBinaryFromReader(message: CreateMessageBroadcastRequest, reader: jspb.BinaryReader): CreateMessageBroadcastRequest;
968
+ }
969
+
970
+ export namespace CreateMessageBroadcastRequest {
971
+ export type AsObject = {
972
+ targetIdsList: Array<string>,
973
+ type: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap],
974
+ content?: wechaty_puppet_post_pb.PostPayloadClient.AsObject,
975
+ }
976
+ }
977
+
978
+ export class CreateMessageBroadcastResponse extends jspb.Message {
979
+ getId(): string;
980
+ setId(value: string): void;
981
+
982
+ serializeBinary(): Uint8Array;
983
+ toObject(includeInstance?: boolean): CreateMessageBroadcastResponse.AsObject;
984
+ static toObject(includeInstance: boolean, msg: CreateMessageBroadcastResponse): CreateMessageBroadcastResponse.AsObject;
985
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
986
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
987
+ static serializeBinaryToWriter(message: CreateMessageBroadcastResponse, writer: jspb.BinaryWriter): void;
988
+ static deserializeBinary(bytes: Uint8Array): CreateMessageBroadcastResponse;
989
+ static deserializeBinaryFromReader(message: CreateMessageBroadcastResponse, reader: jspb.BinaryReader): CreateMessageBroadcastResponse;
990
+ }
991
+
992
+ export namespace CreateMessageBroadcastResponse {
993
+ export type AsObject = {
994
+ id: string,
995
+ }
996
+ }
997
+
901
998
  export interface MessageTypeMap {
902
999
  MESSAGE_TYPE_UNSPECIFIED: 0;
903
1000
  MESSAGE_TYPE_ATTACHMENT: 1;
@@ -922,3 +1019,11 @@ export interface MessageTypeMap {
922
1019
 
923
1020
  export const MessageType: MessageTypeMap;
924
1021
 
1022
+ export interface MessageBroadcastTargetTypeMap {
1023
+ MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN: 0;
1024
+ MESSAGE_BROADCAST_TARGET_TYPE_CONTACT: 1;
1025
+ MESSAGE_BROADCAST_TARGET_TYPE_ROOM: 2;
1026
+ }
1027
+
1028
+ export const MessageBroadcastTargetType: MessageBroadcastTargetTypeMap;
1029
+