@juzi/wechaty-grpc 1.0.67 → 1.0.69
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/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +839 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +49 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +394 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +102 -3
- package/dist/cjs/out/wechaty/puppet.swagger.json +138 -3
- 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/chat-history.proto +42 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +11 -1
- package/dist/cjs/proto/wechaty/puppet.proto +5 -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/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.js +839 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +49 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +394 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +102 -3
- package/dist/esm/out/wechaty/puppet.swagger.json +138 -3
- 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/chat-history.proto +42 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +11 -1
- package/dist/esm/proto/wechaty/puppet.proto +5 -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/chat-history_grpc_pb.js +1 -0
- package/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
- package/out/wechaty/puppet/chat-history_pb.js +839 -0
- package/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/chat-history_pb_service.js +3 -0
- package/out/wechaty/puppet/message_pb.d.ts +49 -0
- package/out/wechaty/puppet/message_pb.js +394 -2
- package/out/wechaty/puppet.openapi.yaml +102 -3
- package/out/wechaty/puppet.swagger.json +138 -3
- 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
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// package: wechaty.puppet
|
|
2
|
+
// file: wechaty/puppet/chat-history.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
|
|
6
|
+
import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
|
|
7
|
+
import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
|
|
8
|
+
import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
|
|
9
|
+
|
|
10
|
+
export class ChatHistoryContent extends jspb.Message {
|
|
11
|
+
getType(): ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap];
|
|
12
|
+
setType(value: ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap]): void;
|
|
13
|
+
|
|
14
|
+
getText(): string;
|
|
15
|
+
setText(value: string): void;
|
|
16
|
+
|
|
17
|
+
getFileBox(): string;
|
|
18
|
+
setFileBox(value: string): void;
|
|
19
|
+
|
|
20
|
+
hasLocation(): boolean;
|
|
21
|
+
clearLocation(): void;
|
|
22
|
+
getLocation(): wechaty_puppet_location_pb.LocationPayload | undefined;
|
|
23
|
+
setLocation(value?: wechaty_puppet_location_pb.LocationPayload): void;
|
|
24
|
+
|
|
25
|
+
hasUrlLink(): boolean;
|
|
26
|
+
clearUrlLink(): void;
|
|
27
|
+
getUrlLink(): wechaty_puppet_url_link_pb.UrlLinkPayload | undefined;
|
|
28
|
+
setUrlLink(value?: wechaty_puppet_url_link_pb.UrlLinkPayload): void;
|
|
29
|
+
|
|
30
|
+
hasMiniProgram(): boolean;
|
|
31
|
+
clearMiniProgram(): void;
|
|
32
|
+
getMiniProgram(): wechaty_puppet_mini_program_pb.MiniProgramPayload | undefined;
|
|
33
|
+
setMiniProgram(value?: wechaty_puppet_mini_program_pb.MiniProgramPayload): void;
|
|
34
|
+
|
|
35
|
+
hasChannel(): boolean;
|
|
36
|
+
clearChannel(): void;
|
|
37
|
+
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
38
|
+
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
39
|
+
|
|
40
|
+
clearChatHistoryList(): void;
|
|
41
|
+
getChatHistoryList(): Array<ChatHistoryPayload>;
|
|
42
|
+
setChatHistoryList(value: Array<ChatHistoryPayload>): void;
|
|
43
|
+
addChatHistory(value?: ChatHistoryPayload, index?: number): ChatHistoryPayload;
|
|
44
|
+
|
|
45
|
+
serializeBinary(): Uint8Array;
|
|
46
|
+
toObject(includeInstance?: boolean): ChatHistoryContent.AsObject;
|
|
47
|
+
static toObject(includeInstance: boolean, msg: ChatHistoryContent): ChatHistoryContent.AsObject;
|
|
48
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
49
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
50
|
+
static serializeBinaryToWriter(message: ChatHistoryContent, writer: jspb.BinaryWriter): void;
|
|
51
|
+
static deserializeBinary(bytes: Uint8Array): ChatHistoryContent;
|
|
52
|
+
static deserializeBinaryFromReader(message: ChatHistoryContent, reader: jspb.BinaryReader): ChatHistoryContent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export namespace ChatHistoryContent {
|
|
56
|
+
export type AsObject = {
|
|
57
|
+
type: ChatHistoryContentTypeMap[keyof ChatHistoryContentTypeMap],
|
|
58
|
+
text: string,
|
|
59
|
+
fileBox: string,
|
|
60
|
+
location?: wechaty_puppet_location_pb.LocationPayload.AsObject,
|
|
61
|
+
urlLink?: wechaty_puppet_url_link_pb.UrlLinkPayload.AsObject,
|
|
62
|
+
miniProgram?: wechaty_puppet_mini_program_pb.MiniProgramPayload.AsObject,
|
|
63
|
+
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
64
|
+
chatHistoryList: Array<ChatHistoryPayload.AsObject>,
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class ChatHistoryPayload extends jspb.Message {
|
|
69
|
+
getType(): number;
|
|
70
|
+
setType(value: number): void;
|
|
71
|
+
|
|
72
|
+
getAvatar(): string;
|
|
73
|
+
setAvatar(value: string): void;
|
|
74
|
+
|
|
75
|
+
getSenderName(): string;
|
|
76
|
+
setSenderName(value: string): void;
|
|
77
|
+
|
|
78
|
+
getCorpName(): string;
|
|
79
|
+
setCorpName(value: string): void;
|
|
80
|
+
|
|
81
|
+
getTime(): number;
|
|
82
|
+
setTime(value: number): void;
|
|
83
|
+
|
|
84
|
+
hasMessage(): boolean;
|
|
85
|
+
clearMessage(): void;
|
|
86
|
+
getMessage(): ChatHistoryContent | undefined;
|
|
87
|
+
setMessage(value?: ChatHistoryContent): void;
|
|
88
|
+
|
|
89
|
+
serializeBinary(): Uint8Array;
|
|
90
|
+
toObject(includeInstance?: boolean): ChatHistoryPayload.AsObject;
|
|
91
|
+
static toObject(includeInstance: boolean, msg: ChatHistoryPayload): ChatHistoryPayload.AsObject;
|
|
92
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
93
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
94
|
+
static serializeBinaryToWriter(message: ChatHistoryPayload, writer: jspb.BinaryWriter): void;
|
|
95
|
+
static deserializeBinary(bytes: Uint8Array): ChatHistoryPayload;
|
|
96
|
+
static deserializeBinaryFromReader(message: ChatHistoryPayload, reader: jspb.BinaryReader): ChatHistoryPayload;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace ChatHistoryPayload {
|
|
100
|
+
export type AsObject = {
|
|
101
|
+
type: number,
|
|
102
|
+
avatar: string,
|
|
103
|
+
senderName: string,
|
|
104
|
+
corpName: string,
|
|
105
|
+
time: number,
|
|
106
|
+
message?: ChatHistoryContent.AsObject,
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ChatHistoryContentTypeMap {
|
|
111
|
+
TEXT: 0;
|
|
112
|
+
FILE: 1;
|
|
113
|
+
LOCATION: 2;
|
|
114
|
+
URL: 3;
|
|
115
|
+
MINI_PROGRAM: 4;
|
|
116
|
+
CHANNEL: 5;
|
|
117
|
+
CHAT_HISTORY: 6;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export const ChatHistoryContentType: ChatHistoryContentTypeMap;
|
|
121
|
+
|