@juzi/wechaty-grpc 1.0.47 → 1.0.49
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.
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +88 -9
- package/dist/cjs/out/wechaty/puppet/message_pb.js +597 -40
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +53 -10
- package/dist/cjs/out/wechaty/puppet.swagger.json +78 -13
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +29 -8
- package/dist/cjs/proto/wechaty/puppet.proto +6 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +88 -9
- package/dist/esm/out/wechaty/puppet/message_pb.js +597 -40
- package/dist/esm/out/wechaty/puppet.openapi.yaml +53 -10
- package/dist/esm/out/wechaty/puppet.swagger.json +78 -13
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +29 -8
- package/dist/esm/proto/wechaty/puppet.proto +6 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +88 -9
- package/out/wechaty/puppet/message_pb.js +597 -40
- package/out/wechaty/puppet.openapi.yaml +53 -10
- package/out/wechaty/puppet.swagger.json +78 -13
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -949,9 +949,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
949
949
|
setTargetIdsList(value: Array<string>): void;
|
|
950
950
|
addTargetIds(value: string, index?: number): string;
|
|
951
951
|
|
|
952
|
-
getType(): MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap];
|
|
953
|
-
setType(value: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap]): void;
|
|
954
|
-
|
|
955
952
|
hasContent(): boolean;
|
|
956
953
|
clearContent(): void;
|
|
957
954
|
getContent(): wechaty_puppet_post_pb.PostPayloadClient | undefined;
|
|
@@ -970,7 +967,6 @@ export class CreateMessageBroadcastRequest extends jspb.Message {
|
|
|
970
967
|
export namespace CreateMessageBroadcastRequest {
|
|
971
968
|
export type AsObject = {
|
|
972
969
|
targetIdsList: Array<string>,
|
|
973
|
-
type: MessageBroadcastTargetTypeMap[keyof MessageBroadcastTargetTypeMap],
|
|
974
970
|
content?: wechaty_puppet_post_pb.PostPayloadClient.AsObject,
|
|
975
971
|
}
|
|
976
972
|
}
|
|
@@ -995,6 +991,80 @@ export namespace CreateMessageBroadcastResponse {
|
|
|
995
991
|
}
|
|
996
992
|
}
|
|
997
993
|
|
|
994
|
+
export class BroadcastTarget extends jspb.Message {
|
|
995
|
+
getContactId(): string;
|
|
996
|
+
setContactId(value: string): void;
|
|
997
|
+
|
|
998
|
+
getRoomId(): string;
|
|
999
|
+
setRoomId(value: string): void;
|
|
1000
|
+
|
|
1001
|
+
getStatus(): BroadcastTargetStatusMap[keyof BroadcastTargetStatusMap];
|
|
1002
|
+
setStatus(value: BroadcastTargetStatusMap[keyof BroadcastTargetStatusMap]): void;
|
|
1003
|
+
|
|
1004
|
+
serializeBinary(): Uint8Array;
|
|
1005
|
+
toObject(includeInstance?: boolean): BroadcastTarget.AsObject;
|
|
1006
|
+
static toObject(includeInstance: boolean, msg: BroadcastTarget): BroadcastTarget.AsObject;
|
|
1007
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1008
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1009
|
+
static serializeBinaryToWriter(message: BroadcastTarget, writer: jspb.BinaryWriter): void;
|
|
1010
|
+
static deserializeBinary(bytes: Uint8Array): BroadcastTarget;
|
|
1011
|
+
static deserializeBinaryFromReader(message: BroadcastTarget, reader: jspb.BinaryReader): BroadcastTarget;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
export namespace BroadcastTarget {
|
|
1015
|
+
export type AsObject = {
|
|
1016
|
+
contactId: string,
|
|
1017
|
+
roomId: string,
|
|
1018
|
+
status: BroadcastTargetStatusMap[keyof BroadcastTargetStatusMap],
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
export class GetMessageBroadcastStatusRequest extends jspb.Message {
|
|
1023
|
+
getId(): string;
|
|
1024
|
+
setId(value: string): void;
|
|
1025
|
+
|
|
1026
|
+
serializeBinary(): Uint8Array;
|
|
1027
|
+
toObject(includeInstance?: boolean): GetMessageBroadcastStatusRequest.AsObject;
|
|
1028
|
+
static toObject(includeInstance: boolean, msg: GetMessageBroadcastStatusRequest): GetMessageBroadcastStatusRequest.AsObject;
|
|
1029
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1030
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1031
|
+
static serializeBinaryToWriter(message: GetMessageBroadcastStatusRequest, writer: jspb.BinaryWriter): void;
|
|
1032
|
+
static deserializeBinary(bytes: Uint8Array): GetMessageBroadcastStatusRequest;
|
|
1033
|
+
static deserializeBinaryFromReader(message: GetMessageBroadcastStatusRequest, reader: jspb.BinaryReader): GetMessageBroadcastStatusRequest;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export namespace GetMessageBroadcastStatusRequest {
|
|
1037
|
+
export type AsObject = {
|
|
1038
|
+
id: string,
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export class GetMessageBroadcastStatusResponse extends jspb.Message {
|
|
1043
|
+
getStatus(): BroadcastStatusMap[keyof BroadcastStatusMap];
|
|
1044
|
+
setStatus(value: BroadcastStatusMap[keyof BroadcastStatusMap]): void;
|
|
1045
|
+
|
|
1046
|
+
clearDetailList(): void;
|
|
1047
|
+
getDetailList(): Array<BroadcastTarget>;
|
|
1048
|
+
setDetailList(value: Array<BroadcastTarget>): void;
|
|
1049
|
+
addDetail(value?: BroadcastTarget, index?: number): BroadcastTarget;
|
|
1050
|
+
|
|
1051
|
+
serializeBinary(): Uint8Array;
|
|
1052
|
+
toObject(includeInstance?: boolean): GetMessageBroadcastStatusResponse.AsObject;
|
|
1053
|
+
static toObject(includeInstance: boolean, msg: GetMessageBroadcastStatusResponse): GetMessageBroadcastStatusResponse.AsObject;
|
|
1054
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1055
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1056
|
+
static serializeBinaryToWriter(message: GetMessageBroadcastStatusResponse, writer: jspb.BinaryWriter): void;
|
|
1057
|
+
static deserializeBinary(bytes: Uint8Array): GetMessageBroadcastStatusResponse;
|
|
1058
|
+
static deserializeBinaryFromReader(message: GetMessageBroadcastStatusResponse, reader: jspb.BinaryReader): GetMessageBroadcastStatusResponse;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export namespace GetMessageBroadcastStatusResponse {
|
|
1062
|
+
export type AsObject = {
|
|
1063
|
+
status: BroadcastStatusMap[keyof BroadcastStatusMap],
|
|
1064
|
+
detailList: Array<BroadcastTarget.AsObject>,
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
|
|
998
1068
|
export interface MessageTypeMap {
|
|
999
1069
|
MESSAGE_TYPE_UNSPECIFIED: 0;
|
|
1000
1070
|
MESSAGE_TYPE_ATTACHMENT: 1;
|
|
@@ -1019,11 +1089,20 @@ export interface MessageTypeMap {
|
|
|
1019
1089
|
|
|
1020
1090
|
export const MessageType: MessageTypeMap;
|
|
1021
1091
|
|
|
1022
|
-
export interface
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1092
|
+
export interface BroadcastStatusMap {
|
|
1093
|
+
BROADCAST_STATUS_UNKNWON: 0;
|
|
1094
|
+
BROADCAST_STATUS_SENDING: 1;
|
|
1095
|
+
BROADCAST_STATUS_SENT: 2;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export const BroadcastStatus: BroadcastStatusMap;
|
|
1099
|
+
|
|
1100
|
+
export interface BroadcastTargetStatusMap {
|
|
1101
|
+
BROADCAST_TARGET_STATUS_UNSENT: 0;
|
|
1102
|
+
BROADCAST_TARGET_STATUS_SENT: 1;
|
|
1103
|
+
BROADCAST_TARGET_STATUS_NOT_FROEND: 2;
|
|
1104
|
+
BROADCAST_TARGET_STATUS_OCCUPIED: 3;
|
|
1026
1105
|
}
|
|
1027
1106
|
|
|
1028
|
-
export const
|
|
1107
|
+
export const BroadcastTargetStatus: BroadcastTargetStatusMap;
|
|
1029
1108
|
|