@open-wa/schema 5.0.0-alpha.2 → 5.0.0-alpha.4
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/generated/index.cjs +598 -0
- package/dist/generated/index.cjs.map +1 -0
- package/dist/generated/index.d.cts +3674 -0
- package/dist/generated/index.d.cts.map +1 -0
- package/dist/generated/index.d.mts +3674 -0
- package/dist/generated/index.d.mts.map +1 -0
- package/dist/generated/index.mjs +595 -0
- package/dist/generated/index.mjs.map +1 -0
- package/dist/http-manifest-BQIxNSNP.d.mts +177 -0
- package/dist/http-manifest-BQIxNSNP.d.mts.map +1 -0
- package/dist/http-manifest-Cgp405eE.d.cts +177 -0
- package/dist/http-manifest-Cgp405eE.d.cts.map +1 -0
- package/dist/http-manifest.cjs +59 -0
- package/dist/http-manifest.cjs.map +1 -0
- package/dist/http-manifest.d.cts +2 -0
- package/dist/http-manifest.d.mts +2 -0
- package/dist/http-manifest.mjs +58 -0
- package/dist/http-manifest.mjs.map +1 -0
- package/dist/implementor-DIBNbQXA.d.cts +8 -0
- package/dist/implementor-DIBNbQXA.d.cts.map +1 -0
- package/dist/implementor-DoN9ga7C.d.mts +8 -0
- package/dist/implementor-DoN9ga7C.d.mts.map +1 -0
- package/dist/implementor.cjs +50 -0
- package/dist/implementor.cjs.map +1 -0
- package/dist/implementor.d.cts +2 -0
- package/dist/implementor.d.mts +2 -0
- package/dist/implementor.mjs +48 -0
- package/dist/implementor.mjs.map +1 -0
- package/dist/index-BpnIT_UN.d.mts +1323 -0
- package/dist/index-BpnIT_UN.d.mts.map +1 -0
- package/dist/index-BsqJbJE4.d.cts +1323 -0
- package/dist/index-BsqJbJE4.d.cts.map +1 -0
- package/dist/index.cjs +649 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +299 -0
- package/dist/index.mjs.map +1 -0
- package/dist/methods/index.cjs +125 -0
- package/dist/methods/index.d.cts +2 -0
- package/dist/methods/index.d.mts +2 -0
- package/dist/methods/index.mjs +2 -0
- package/dist/methods-BXZrkKjP.mjs +2633 -0
- package/dist/methods-BXZrkKjP.mjs.map +1 -0
- package/dist/methods-CuiwUO7-.cjs +3802 -0
- package/dist/methods-CuiwUO7-.cjs.map +1 -0
- package/dist/registry-CsyR8i6y.mjs +284 -0
- package/dist/registry-CsyR8i6y.mjs.map +1 -0
- package/dist/registry-TbMVoiw5.cjs +355 -0
- package/dist/registry-TbMVoiw5.cjs.map +1 -0
- package/package.json +6 -3
- package/CHANGELOG.md +0 -31
- package/client_migration_doc.md +0 -467
- package/codecs_and_params_plan.md +0 -936
- package/migration_plan_doc.md +0 -223
- package/scripts/gen-client-implementation.ts +0 -129
- package/scripts/gen-client-reference-docs.ts +0 -621
- package/scripts/gen-openapi.ts +0 -96
- package/scripts/gen-types.ts +0 -43
- package/scripts/verify-v5-pipeline.ts +0 -85
- package/src/__tests__/generators.contract.test.ts +0 -181
- package/src/__tests__/registry.contract.test.ts +0 -81
- package/src/client-config.ts +0 -30
- package/src/codecs.test.ts +0 -41
- package/src/codecs.ts +0 -191
- package/src/common-types.ts +0 -280
- package/src/config.ts +0 -47
- package/src/enums.ts +0 -63
- package/src/events/groups.ts +0 -33
- package/src/events/index.ts +0 -4
- package/src/events/messaging.ts +0 -72
- package/src/events/registry.ts +0 -114
- package/src/events/state.ts +0 -59
- package/src/generated/AliasMap.ts +0 -214
- package/src/generated/BaseClient.ts +0 -868
- package/src/generated/BaseNamespacedClient.ts +0 -212
- package/src/generated/index.ts +0 -5
- package/src/generated/openapi.json +0 -7799
- package/src/generated/types.ts +0 -377
- package/src/http-manifest.ts +0 -97
- package/src/implementor.test.ts +0 -88
- package/src/implementor.ts +0 -75
- package/src/index.ts +0 -43
- package/src/methods/business.ts +0 -51
- package/src/methods/chats.ts +0 -263
- package/src/methods/communities.ts +0 -119
- package/src/methods/contacts.ts +0 -158
- package/src/methods/groups.ts +0 -376
- package/src/methods/index.ts +0 -33
- package/src/methods/labels.ts +0 -86
- package/src/methods/media.ts +0 -36
- package/src/methods/messaging.ts +0 -828
- package/src/methods/session.ts +0 -261
- package/src/methods/status.ts +0 -120
- package/src/open-wa-utils.d.ts +0 -4
- package/src/parameters.ts +0 -237
- package/src/registry.test.ts +0 -30
- package/src/registry.ts +0 -601
- package/tsconfig.generated.json +0 -11
- package/tsconfig.json +0 -15
- package/tsdown.config.ts +0 -16
- package/vitest.config.ts +0 -10
|
@@ -0,0 +1,1323 @@
|
|
|
1
|
+
import { F as LicenseTier, p as OpenWAMethodSchema } from "./http-manifest-Cgp405eE.cjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { CLOUD_PROVIDERS, CloudUploadOptions, CloudUploadOptionsSchema, Config, Config as ClientConfig, ConfigSchema, ConfigSchema as ClientConfigSchema, DIRECTORY_STRATEGY, DeepPartialConfig, DevTools, DevToolsSchema, LicenseType, LoggingTransport, LoggingTransportSchema, NotificationLanguage, OnError, PartialConfig, PartialConfigSchema, ProxyServerCredentials, ProxyServerCredentialsSchema, QRFormat, S3Sync, S3SyncSchema, SessionData, SessionDataSchema, StrictConfig, StrictConfigSchema, Viewport, ViewportSchema, getDefaultConfig, parseConfig, validateConfig } from "@open-wa/config";
|
|
4
|
+
|
|
5
|
+
//#region src/client-config.d.ts
|
|
6
|
+
declare function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/common-types.d.ts
|
|
9
|
+
declare const ContactIdSchema$1: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
10
|
+
type ContactId = z.infer<typeof ContactIdSchema$1>;
|
|
11
|
+
declare const ChatIdSchema$1: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
12
|
+
type ChatId = z.infer<typeof ChatIdSchema$1>;
|
|
13
|
+
declare const MessageIdSchema$1: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
14
|
+
type MessageId = z.infer<typeof MessageIdSchema$1>;
|
|
15
|
+
declare const GroupChatIdSchema: z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">;
|
|
16
|
+
type GroupChatId = z.infer<typeof GroupChatIdSchema>;
|
|
17
|
+
declare const GroupIdSchema$1: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
|
|
18
|
+
type GroupId = z.infer<typeof GroupIdSchema$1>;
|
|
19
|
+
type DataURL = `data:${string};base64,${string}`;
|
|
20
|
+
type Base64 = string;
|
|
21
|
+
type Content = string | DataURL | Base64 | Buffer;
|
|
22
|
+
declare const GroupMetadataSchema: z.ZodObject<{
|
|
23
|
+
id: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
|
|
24
|
+
subject: z.ZodString;
|
|
25
|
+
creation: z.ZodNumber;
|
|
26
|
+
owner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
27
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
28
|
+
descTime: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
descOwner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
30
|
+
restrict: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
announce: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
34
|
+
isAdmin: z.ZodBoolean;
|
|
35
|
+
isSuperAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$loose>;
|
|
38
|
+
type GroupMetadata = z.infer<typeof GroupMetadataSchema>;
|
|
39
|
+
declare const IdSchema: z.ZodObject<{
|
|
40
|
+
server: z.ZodString;
|
|
41
|
+
user: z.ZodString;
|
|
42
|
+
_serialized: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
type Id = z.infer<typeof IdSchema>;
|
|
45
|
+
declare enum MessageTypes {
|
|
46
|
+
TEXT = "chat",
|
|
47
|
+
AUDIO = "audio",
|
|
48
|
+
VOICE = "ptt",
|
|
49
|
+
IMAGE = "image",
|
|
50
|
+
VIDEO = "video",
|
|
51
|
+
DOCUMENT = "document",
|
|
52
|
+
STICKER = "sticker",
|
|
53
|
+
LOCATION = "location",
|
|
54
|
+
CONTACT_CARD = "vcard",
|
|
55
|
+
CONTACT_CARD_MULTI = "multi_vcard",
|
|
56
|
+
REVOKED = "revoked",
|
|
57
|
+
ORDER = "order",
|
|
58
|
+
BUTTONS_RESPONSE = "buttons_response",
|
|
59
|
+
LIST_RESPONSE = "list_response",
|
|
60
|
+
UNKNOWN = "unknown"
|
|
61
|
+
}
|
|
62
|
+
declare enum MessageAck {
|
|
63
|
+
ACK_ERROR = -1,
|
|
64
|
+
ACK_PENDING = 0,
|
|
65
|
+
ACK_SERVER = 1,
|
|
66
|
+
ACK_DEVICE = 2,
|
|
67
|
+
ACK_READ = 3,
|
|
68
|
+
ACK_PLAYED = 4
|
|
69
|
+
}
|
|
70
|
+
declare enum SimpleListener {
|
|
71
|
+
Message = "onMessage",
|
|
72
|
+
AnyMessage = "onAnyMessage",
|
|
73
|
+
MessageDeleted = "onMessageDeleted",
|
|
74
|
+
Ack = "onAck",
|
|
75
|
+
AddedToGroup = "onAddedToGroup",
|
|
76
|
+
ChatDeleted = "onChatDeleted",
|
|
77
|
+
Battery = "onBattery",
|
|
78
|
+
ChatOpened = "onChatOpened",
|
|
79
|
+
IncomingCall = "onIncomingCall",
|
|
80
|
+
GlobalParticipantsChanged = "onGlobalParticipantsChanged",
|
|
81
|
+
ChatState = "onChatState",
|
|
82
|
+
Logout = "onLogout",
|
|
83
|
+
Plugged = "onPlugged",
|
|
84
|
+
StateChanged = "onStateChanged",
|
|
85
|
+
Button = "onButton",
|
|
86
|
+
Story = "onStory",
|
|
87
|
+
RemovedFromGroup = "onRemovedFromGroup",
|
|
88
|
+
ContactAdded = "onContactAdded",
|
|
89
|
+
Order = "onOrder"
|
|
90
|
+
}
|
|
91
|
+
declare const ContactSchema: z.ZodObject<{
|
|
92
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
93
|
+
name: z.ZodOptional<z.ZodString>;
|
|
94
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
95
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
96
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
97
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
106
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
108
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
server: z.ZodString;
|
|
110
|
+
user: z.ZodString;
|
|
111
|
+
_serialized: z.ZodString;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
img: z.ZodOptional<z.ZodString>;
|
|
114
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
115
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
type: z.ZodOptional<z.ZodString>;
|
|
119
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
121
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
}, z.core.$loose>;
|
|
124
|
+
type Contact = z.infer<typeof ContactSchema>;
|
|
125
|
+
declare const LocationSchema: z.ZodObject<{
|
|
126
|
+
lat: z.ZodNumber;
|
|
127
|
+
lng: z.ZodNumber;
|
|
128
|
+
name: z.ZodOptional<z.ZodString>;
|
|
129
|
+
address: z.ZodOptional<z.ZodString>;
|
|
130
|
+
url: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$loose>;
|
|
132
|
+
type Location = z.infer<typeof LocationSchema>;
|
|
133
|
+
declare const ChatSchema: z.ZodObject<{
|
|
134
|
+
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
135
|
+
name: z.ZodOptional<z.ZodString>;
|
|
136
|
+
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
137
|
+
isGroup: z.ZodBoolean;
|
|
138
|
+
contact: z.ZodObject<{
|
|
139
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
140
|
+
name: z.ZodOptional<z.ZodString>;
|
|
141
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
142
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
143
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
144
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
152
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
153
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
155
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
server: z.ZodString;
|
|
157
|
+
user: z.ZodString;
|
|
158
|
+
_serialized: z.ZodString;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
img: z.ZodOptional<z.ZodString>;
|
|
161
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
162
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
type: z.ZodOptional<z.ZodString>;
|
|
166
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
168
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$loose>;
|
|
171
|
+
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
172
|
+
presence: z.ZodOptional<z.ZodAny>;
|
|
173
|
+
t: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
176
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
177
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
pin: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
ack: z.ZodOptional<z.ZodAny>;
|
|
182
|
+
}, z.core.$loose>;
|
|
183
|
+
type Chat = z.infer<typeof ChatSchema>;
|
|
184
|
+
declare const MessageSchema: z.ZodObject<{
|
|
185
|
+
id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
186
|
+
body: z.ZodString;
|
|
187
|
+
type: z.ZodEnum<typeof MessageTypes>;
|
|
188
|
+
t: z.ZodNumber;
|
|
189
|
+
notifyName: z.ZodOptional<z.ZodString>;
|
|
190
|
+
from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
191
|
+
to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
192
|
+
self: z.ZodEnum<{
|
|
193
|
+
out: "out";
|
|
194
|
+
in: "in";
|
|
195
|
+
}>;
|
|
196
|
+
ack: z.ZodEnum<typeof MessageAck>;
|
|
197
|
+
invis: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
isNewMsg: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
star: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
recvFresh: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
isForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
|
+
mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
205
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
206
|
+
timestamp: z.ZodNumber;
|
|
207
|
+
content: z.ZodString;
|
|
208
|
+
isGroupMsg: z.ZodBoolean;
|
|
209
|
+
isMMS: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
+
isMedia: z.ZodBoolean;
|
|
211
|
+
isNotification: z.ZodBoolean;
|
|
212
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
fromMe: z.ZodBoolean;
|
|
214
|
+
chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
215
|
+
author: z.ZodOptional<z.ZodString>;
|
|
216
|
+
clientUrl: z.ZodOptional<z.ZodString>;
|
|
217
|
+
deprecatedMms3Url: z.ZodOptional<z.ZodString>;
|
|
218
|
+
isQuotedMsgAvailable: z.ZodBoolean;
|
|
219
|
+
quotedMsg: z.ZodOptional<z.ZodAny>;
|
|
220
|
+
quotedMsgObj: z.ZodOptional<z.ZodAny>;
|
|
221
|
+
senderId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
sender: z.ZodObject<{
|
|
223
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
224
|
+
name: z.ZodOptional<z.ZodString>;
|
|
225
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
226
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
227
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
228
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
236
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
237
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
239
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
server: z.ZodString;
|
|
241
|
+
user: z.ZodString;
|
|
242
|
+
_serialized: z.ZodString;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
img: z.ZodOptional<z.ZodString>;
|
|
245
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
246
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
+
type: z.ZodOptional<z.ZodString>;
|
|
250
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
252
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
}, z.core.$loose>;
|
|
255
|
+
chat: z.ZodObject<{
|
|
256
|
+
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
257
|
+
name: z.ZodOptional<z.ZodString>;
|
|
258
|
+
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
259
|
+
isGroup: z.ZodBoolean;
|
|
260
|
+
contact: z.ZodObject<{
|
|
261
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
262
|
+
name: z.ZodOptional<z.ZodString>;
|
|
263
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
264
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
265
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
266
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
274
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
275
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
277
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
278
|
+
server: z.ZodString;
|
|
279
|
+
user: z.ZodString;
|
|
280
|
+
_serialized: z.ZodString;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
img: z.ZodOptional<z.ZodString>;
|
|
283
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
284
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>>;
|
|
286
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
+
type: z.ZodOptional<z.ZodString>;
|
|
288
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
290
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
}, z.core.$loose>;
|
|
293
|
+
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
294
|
+
presence: z.ZodOptional<z.ZodAny>;
|
|
295
|
+
t: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
298
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
299
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
+
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
pin: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
ack: z.ZodOptional<z.ZodAny>;
|
|
304
|
+
}, z.core.$loose>;
|
|
305
|
+
}, z.core.$loose>;
|
|
306
|
+
type Message = z.infer<typeof MessageSchema>;
|
|
307
|
+
declare const MessageIdReturnSchema: z.ZodObject<{
|
|
308
|
+
_serialized: z.ZodString;
|
|
309
|
+
}, z.core.$loose>;
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/methods/messaging.d.ts
|
|
312
|
+
declare const sendText: OpenWAMethodSchema<z.ZodObject<{
|
|
313
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
314
|
+
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
315
|
+
options: z.ZodOptional<z.ZodAny>;
|
|
316
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
317
|
+
_serialized: z.ZodString;
|
|
318
|
+
}, z.core.$loose>, z.ZodBoolean]>, z.ZodString]>>;
|
|
319
|
+
declare const sendTextWithMentions: OpenWAMethodSchema<z.ZodObject<{
|
|
320
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
321
|
+
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
322
|
+
hideTags: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
324
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
325
|
+
_serialized: z.ZodString;
|
|
326
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
327
|
+
declare const sendReplyWithMentions: OpenWAMethodSchema<z.ZodObject<{
|
|
328
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
329
|
+
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
330
|
+
replyMessageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
331
|
+
hideTags: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
333
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
334
|
+
_serialized: z.ZodString;
|
|
335
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
336
|
+
declare const sendPaymentRequest: OpenWAMethodSchema<z.ZodObject<{
|
|
337
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
338
|
+
amount: z.ZodNumber;
|
|
339
|
+
currency: z.ZodString;
|
|
340
|
+
message: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
342
|
+
_serialized: z.ZodString;
|
|
343
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
344
|
+
declare const sendImage: OpenWAMethodSchema<z.ZodObject<{
|
|
345
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
346
|
+
imgData: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
347
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
348
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
349
|
+
id: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
350
|
+
waitForId: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
351
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
352
|
+
_serialized: z.ZodString;
|
|
353
|
+
}, z.core.$loose>, z.ZodBoolean]>, z.ZodString]>>;
|
|
354
|
+
declare const sendFile: OpenWAMethodSchema<z.ZodObject<{
|
|
355
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
356
|
+
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
357
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
358
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
360
|
+
_serialized: z.ZodString;
|
|
361
|
+
}, z.core.$loose>, z.ZodString]>>;
|
|
362
|
+
declare const sendAudio: OpenWAMethodSchema<z.ZodObject<{
|
|
363
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
364
|
+
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
365
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
366
|
+
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
367
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
368
|
+
_serialized: z.ZodString;
|
|
369
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
370
|
+
declare const sendPtt: OpenWAMethodSchema<z.ZodObject<{
|
|
371
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
372
|
+
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
373
|
+
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
374
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
375
|
+
_serialized: z.ZodString;
|
|
376
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
377
|
+
declare const sendVideoAsGif: OpenWAMethodSchema<z.ZodObject<{
|
|
378
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
379
|
+
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
380
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
381
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
382
|
+
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
383
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
384
|
+
_serialized: z.ZodString;
|
|
385
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
386
|
+
declare const sendLocation: OpenWAMethodSchema<z.ZodObject<{
|
|
387
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
388
|
+
lat: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
389
|
+
lng: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
390
|
+
loc: z.ZodOptional<z.ZodString>;
|
|
391
|
+
address: z.ZodOptional<z.ZodString>;
|
|
392
|
+
url: z.ZodOptional<z.ZodString>;
|
|
393
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
394
|
+
_serialized: z.ZodString;
|
|
395
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
396
|
+
declare const sendVCard: OpenWAMethodSchema<z.ZodObject<{
|
|
397
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
398
|
+
vcard: z.ZodString;
|
|
399
|
+
contactName: z.ZodOptional<z.ZodString>;
|
|
400
|
+
contactNumber: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
402
|
+
declare const sendContact: OpenWAMethodSchema<z.ZodObject<{
|
|
403
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
404
|
+
contactId: z.ZodUnion<[z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>, z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>]>;
|
|
405
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
406
|
+
_serialized: z.ZodString;
|
|
407
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
408
|
+
declare const sendMultipleContacts: OpenWAMethodSchema<z.ZodObject<{
|
|
409
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
410
|
+
contactIds: z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
411
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
412
|
+
_serialized: z.ZodString;
|
|
413
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
414
|
+
declare const sendButtons: OpenWAMethodSchema<z.ZodObject<{
|
|
415
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
416
|
+
body: z.ZodUnion<readonly [z.ZodString, z.ZodAny]>;
|
|
417
|
+
buttons: z.ZodArray<z.ZodAny>;
|
|
418
|
+
title: z.ZodOptional<z.ZodString>;
|
|
419
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
421
|
+
_serialized: z.ZodString;
|
|
422
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
423
|
+
declare const sendAdvancedButtons: OpenWAMethodSchema<z.ZodObject<{
|
|
424
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
425
|
+
body: z.ZodUnion<readonly [z.ZodString, z.ZodAny]>;
|
|
426
|
+
buttons: z.ZodArray<z.ZodAny>;
|
|
427
|
+
text: z.ZodString;
|
|
428
|
+
footer: z.ZodString;
|
|
429
|
+
filename: z.ZodString;
|
|
430
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
431
|
+
_serialized: z.ZodString;
|
|
432
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
433
|
+
declare const sendListMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
434
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
435
|
+
sections: z.ZodArray<z.ZodAny>;
|
|
436
|
+
title: z.ZodString;
|
|
437
|
+
description: z.ZodString;
|
|
438
|
+
actionText: z.ZodString;
|
|
439
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
440
|
+
_serialized: z.ZodString;
|
|
441
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
442
|
+
declare const sendPoll: OpenWAMethodSchema<z.ZodObject<{
|
|
443
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
444
|
+
name: z.ZodString;
|
|
445
|
+
options: z.ZodArray<z.ZodString>;
|
|
446
|
+
selectableCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
447
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
448
|
+
_serialized: z.ZodString;
|
|
449
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
450
|
+
declare const sendBanner: OpenWAMethodSchema<z.ZodObject<{
|
|
451
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
452
|
+
base64: z.ZodString;
|
|
453
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
454
|
+
_serialized: z.ZodString;
|
|
455
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
456
|
+
declare const sendYouTubeLink: OpenWAMethodSchema<z.ZodObject<{
|
|
457
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
458
|
+
url: z.ZodString;
|
|
459
|
+
text: z.ZodDefault<z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Content", "out">>>;
|
|
460
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
461
|
+
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
462
|
+
customSize: z.ZodOptional<z.ZodObject<{
|
|
463
|
+
height: z.ZodNumber;
|
|
464
|
+
width: z.ZodNumber;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
467
|
+
_serialized: z.ZodString;
|
|
468
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
469
|
+
declare const sendLinkWithAutoPreview: OpenWAMethodSchema<z.ZodObject<{
|
|
470
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
471
|
+
url: z.ZodString;
|
|
472
|
+
text: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Content", "out">>;
|
|
473
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
474
|
+
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
475
|
+
customSize: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
height: z.ZodNumber;
|
|
477
|
+
width: z.ZodNumber;
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
480
|
+
_serialized: z.ZodString;
|
|
481
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
482
|
+
declare const sendMessageWithThumb: OpenWAMethodSchema<z.ZodObject<{
|
|
483
|
+
thumb: z.ZodString;
|
|
484
|
+
url: z.ZodString;
|
|
485
|
+
title: z.ZodString;
|
|
486
|
+
description: z.ZodString;
|
|
487
|
+
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
488
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
489
|
+
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
490
|
+
customSize: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
height: z.ZodNumber;
|
|
492
|
+
width: z.ZodNumber;
|
|
493
|
+
}, z.core.$strip>>;
|
|
494
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
495
|
+
_serialized: z.ZodString;
|
|
496
|
+
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
497
|
+
declare const forwardMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
498
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
499
|
+
messages: z.ZodUnion<readonly [z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>, z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>]>;
|
|
500
|
+
skipMyMessages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
501
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
502
|
+
_serialized: z.ZodString;
|
|
503
|
+
}, z.core.$loose>>, z.ZodBoolean]>>;
|
|
504
|
+
declare const deleteMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
505
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
506
|
+
messageId: z.ZodUnion<readonly [z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>, z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>]>;
|
|
507
|
+
onlyLocal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
508
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
509
|
+
declare const getMessageById: OpenWAMethodSchema<z.ZodObject<{
|
|
510
|
+
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
511
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
512
|
+
declare const getAllMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
513
|
+
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
514
|
+
includeMe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
515
|
+
includeNotifications: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
516
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
517
|
+
declare const getMyLastMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
518
|
+
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
519
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
520
|
+
declare const getStarredMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
521
|
+
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
522
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
523
|
+
declare const getUnsentMessages: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
524
|
+
declare const getMessageInfo: OpenWAMethodSchema<z.ZodObject<{
|
|
525
|
+
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
526
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
527
|
+
declare const getVCards: OpenWAMethodSchema<z.ZodObject<{
|
|
528
|
+
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
529
|
+
}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
530
|
+
declare const getMessagesForLLM: OpenWAMethodSchema<z.ZodObject<{
|
|
531
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
532
|
+
last: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
533
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
534
|
+
declare const starMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
535
|
+
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
536
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
537
|
+
declare const unstarMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
538
|
+
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
539
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
540
|
+
declare const react: OpenWAMethodSchema<z.ZodObject<{
|
|
541
|
+
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
542
|
+
emoji: z.ZodString;
|
|
543
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
544
|
+
declare const sendSeen: OpenWAMethodSchema<z.ZodObject<{
|
|
545
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
546
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
547
|
+
declare const loadEarlierMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
548
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
549
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
550
|
+
includeMe: z.ZodOptional<z.ZodBoolean>;
|
|
551
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
552
|
+
declare const sendFileFromUrl: OpenWAMethodSchema<z.ZodObject<{
|
|
553
|
+
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
554
|
+
url: z.ZodString;
|
|
555
|
+
filename: z.ZodString;
|
|
556
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
557
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
558
|
+
}, z.core.$strip>, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region src/methods/chats.d.ts
|
|
561
|
+
declare const getAllChats: OpenWAMethodSchema<z.ZodObject<{
|
|
562
|
+
withNewMessagesOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
563
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
564
|
+
declare const getAllChatIds: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
565
|
+
declare const getChat: OpenWAMethodSchema<z.ZodObject<{
|
|
566
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
567
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
568
|
+
declare const getChatWithNonContacts: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
569
|
+
declare const archiveChat: OpenWAMethodSchema<z.ZodObject<{
|
|
570
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
571
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
572
|
+
declare const unarchiveChat: OpenWAMethodSchema<z.ZodObject<{
|
|
573
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
574
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
575
|
+
declare const clearChat: OpenWAMethodSchema<z.ZodObject<{
|
|
576
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
577
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
578
|
+
declare const deleteChat: OpenWAMethodSchema<z.ZodObject<{
|
|
579
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
580
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
581
|
+
declare const pinChat: OpenWAMethodSchema<z.ZodObject<{
|
|
582
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
583
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
584
|
+
declare const unpinChat: OpenWAMethodSchema<z.ZodObject<{
|
|
585
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
586
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
587
|
+
declare const muteChat: OpenWAMethodSchema<z.ZodObject<{
|
|
588
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
589
|
+
muteDuration: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
590
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
591
|
+
declare const unmuteChat: OpenWAMethodSchema<z.ZodObject<{
|
|
592
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
593
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
594
|
+
declare const markAsRead: OpenWAMethodSchema<z.ZodObject<{
|
|
595
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
596
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
597
|
+
declare const markAsUnread: OpenWAMethodSchema<z.ZodObject<{
|
|
598
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
599
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
600
|
+
declare const setChatEphemeral: OpenWAMethodSchema<z.ZodObject<{
|
|
601
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
602
|
+
ephemeral: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
603
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
604
|
+
declare const isChatOnline: OpenWAMethodSchema<z.ZodObject<{
|
|
605
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
606
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
607
|
+
//#endregion
|
|
608
|
+
//#region src/methods/contacts.d.ts
|
|
609
|
+
declare const getAllContacts: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
610
|
+
declare const getContact: OpenWAMethodSchema<z.ZodObject<{
|
|
611
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
612
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
613
|
+
declare const getCommonGroups: OpenWAMethodSchema<z.ZodObject<{
|
|
614
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
615
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
616
|
+
declare const getNumberProfile: OpenWAMethodSchema<z.ZodObject<{
|
|
617
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
618
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
619
|
+
declare const getBlockedIds: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
620
|
+
declare const blockContact: OpenWAMethodSchema<z.ZodObject<{
|
|
621
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
622
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
623
|
+
declare const unblockContact: OpenWAMethodSchema<z.ZodObject<{
|
|
624
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
625
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
626
|
+
declare const checkReadReceipts: OpenWAMethodSchema<z.ZodObject<{
|
|
627
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
628
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
629
|
+
declare const checkNumberStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
630
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
631
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
632
|
+
declare const getProfilePicture: OpenWAMethodSchema<z.ZodObject<{
|
|
633
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
634
|
+
}, z.core.$strip>, z.ZodString>;
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region src/methods/groups.d.ts
|
|
637
|
+
declare const getGroupMembers: OpenWAMethodSchema<z.ZodObject<{
|
|
638
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
639
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
640
|
+
declare const getAllGroups: OpenWAMethodSchema<z.ZodObject<{
|
|
641
|
+
withNewMessagesOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
642
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
643
|
+
declare const getGroupMembersId: OpenWAMethodSchema<z.ZodObject<{
|
|
644
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
645
|
+
}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
646
|
+
declare const getGroupInfo: OpenWAMethodSchema<z.ZodObject<{
|
|
647
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
648
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
649
|
+
declare const getGroupAdmins: OpenWAMethodSchema<z.ZodObject<{
|
|
650
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
651
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
652
|
+
declare const getKickedGroups: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
653
|
+
declare const getGroupInviteLink: OpenWAMethodSchema<z.ZodObject<{
|
|
654
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
655
|
+
}, z.core.$strip>, z.ZodString>;
|
|
656
|
+
declare const createGroup: OpenWAMethodSchema<z.ZodObject<{
|
|
657
|
+
name: z.ZodString;
|
|
658
|
+
contacts: z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
659
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
660
|
+
declare const leaveGroup: OpenWAMethodSchema<z.ZodObject<{
|
|
661
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
662
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
663
|
+
declare const joinGroupViaLink: OpenWAMethodSchema<z.ZodObject<{
|
|
664
|
+
link: z.ZodString;
|
|
665
|
+
returnChatObj: z.ZodOptional<z.ZodBoolean>;
|
|
666
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodAny]>>;
|
|
667
|
+
declare const revokeGroupInviteLink: OpenWAMethodSchema<z.ZodObject<{
|
|
668
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
669
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
670
|
+
declare const setGroupTitle: OpenWAMethodSchema<z.ZodObject<{
|
|
671
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
672
|
+
title: z.ZodString;
|
|
673
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
674
|
+
declare const setGroupDescription: OpenWAMethodSchema<z.ZodObject<{
|
|
675
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
676
|
+
description: z.ZodString;
|
|
677
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
678
|
+
declare const setGroupIcon: OpenWAMethodSchema<z.ZodObject<{
|
|
679
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
680
|
+
image: z.ZodString;
|
|
681
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
682
|
+
declare const setGroupToAdminsOnly: OpenWAMethodSchema<z.ZodObject<{
|
|
683
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
684
|
+
onlyAdmins: z.ZodBoolean;
|
|
685
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
686
|
+
declare const setGroupEditToAdminsOnly: OpenWAMethodSchema<z.ZodObject<{
|
|
687
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
688
|
+
onlyAdmins: z.ZodBoolean;
|
|
689
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
690
|
+
declare const addParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
691
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
692
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
693
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
694
|
+
declare const removeParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
695
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
696
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
697
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
698
|
+
declare const promoteParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
699
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
700
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
701
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
702
|
+
declare const demoteParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
703
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
704
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
705
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
706
|
+
declare const approveGroupJoinRequest: OpenWAMethodSchema<z.ZodObject<{
|
|
707
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
708
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
709
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
710
|
+
declare const rejectGroupJoinRequest: OpenWAMethodSchema<z.ZodObject<{
|
|
711
|
+
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
712
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
713
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
714
|
+
//#endregion
|
|
715
|
+
//#region src/methods/communities.d.ts
|
|
716
|
+
declare const getAllCommunities: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
717
|
+
declare const getCommunityInfo: OpenWAMethodSchema<z.ZodObject<{
|
|
718
|
+
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
719
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
720
|
+
declare const getCommunityParticipantIds: OpenWAMethodSchema<z.ZodObject<{
|
|
721
|
+
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
722
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
723
|
+
declare const getCommunityAdminIds: OpenWAMethodSchema<z.ZodObject<{
|
|
724
|
+
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
725
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
726
|
+
declare const getCommunityParticipants: OpenWAMethodSchema<z.ZodObject<{
|
|
727
|
+
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
728
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
729
|
+
declare const getCommunityAdmins: OpenWAMethodSchema<z.ZodObject<{
|
|
730
|
+
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
731
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region src/methods/status.d.ts
|
|
734
|
+
declare const postTextStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
735
|
+
text: z.ZodString;
|
|
736
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
737
|
+
font: z.ZodOptional<z.ZodNumber>;
|
|
738
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
739
|
+
declare const postImageStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
740
|
+
image: z.ZodString;
|
|
741
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
742
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
743
|
+
declare const postVideoStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
744
|
+
video: z.ZodString;
|
|
745
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
746
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
747
|
+
declare const getStories: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
748
|
+
declare const getStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
749
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
750
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
751
|
+
declare const deleteStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
752
|
+
statusesToDelete: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
753
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
754
|
+
declare const deleteAllStatus: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
755
|
+
//#endregion
|
|
756
|
+
//#region src/methods/labels.d.ts
|
|
757
|
+
declare const getAllLabels: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
758
|
+
declare const getChatsByLabel: OpenWAMethodSchema<z.ZodObject<{
|
|
759
|
+
label: z.ZodString;
|
|
760
|
+
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
761
|
+
declare const addLabel: OpenWAMethodSchema<z.ZodObject<{
|
|
762
|
+
label: z.ZodString;
|
|
763
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
764
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
765
|
+
declare const removeLabel: OpenWAMethodSchema<z.ZodObject<{
|
|
766
|
+
label: z.ZodString;
|
|
767
|
+
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
768
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region src/methods/business.d.ts
|
|
771
|
+
declare const getBusinessProfile: OpenWAMethodSchema<z.ZodObject<{
|
|
772
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
773
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
774
|
+
declare const getBusinessProducts: OpenWAMethodSchema<z.ZodObject<{
|
|
775
|
+
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
776
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
777
|
+
declare const getOrder: OpenWAMethodSchema<z.ZodObject<{
|
|
778
|
+
id: z.ZodUnion<readonly [z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>, z.ZodString]>;
|
|
779
|
+
}, z.core.$strip>, z.ZodAny>;
|
|
780
|
+
//#endregion
|
|
781
|
+
//#region src/methods/session.d.ts
|
|
782
|
+
declare const getMe: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
783
|
+
declare const getHostNumber: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodString>;
|
|
784
|
+
declare const getConnectionState: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
785
|
+
declare const getWAVersion: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodString>;
|
|
786
|
+
declare const getBatteryLevel: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodNumber>;
|
|
787
|
+
declare const isPlugged: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodBoolean>;
|
|
788
|
+
declare const getFeatures: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
789
|
+
declare const getLicenseType: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodUnion<readonly [z.ZodAny, z.ZodBoolean]>>;
|
|
790
|
+
declare const getUserAgent: OpenWAMethodSchema<z.ZodObject<{
|
|
791
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strip>, z.ZodString>;
|
|
793
|
+
declare const getProcessStats: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
794
|
+
declare const getLoadedMessageCount: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodNumber>;
|
|
795
|
+
declare const getSnapshot: OpenWAMethodSchema<z.ZodObject<{
|
|
796
|
+
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
797
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
798
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
799
|
+
}, z.core.$strip>, z.ZodString>;
|
|
800
|
+
declare const healthCheck: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
801
|
+
declare const setMyName: OpenWAMethodSchema<z.ZodObject<{
|
|
802
|
+
name: z.ZodString;
|
|
803
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
804
|
+
declare const setMyStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
805
|
+
statusText: z.ZodString;
|
|
806
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
807
|
+
declare const setProfilePicture: OpenWAMethodSchema<z.ZodObject<{
|
|
808
|
+
image: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
809
|
+
}, z.core.$strip>, z.ZodBoolean>;
|
|
810
|
+
//#endregion
|
|
811
|
+
//#region src/methods/media.d.ts
|
|
812
|
+
declare const decryptMedia: OpenWAMethodSchema<z.ZodObject<{
|
|
813
|
+
message: z.ZodObject<{
|
|
814
|
+
id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
815
|
+
body: z.ZodString;
|
|
816
|
+
type: z.ZodEnum<typeof MessageTypes>;
|
|
817
|
+
t: z.ZodNumber;
|
|
818
|
+
notifyName: z.ZodOptional<z.ZodString>;
|
|
819
|
+
from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
820
|
+
to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
821
|
+
self: z.ZodEnum<{
|
|
822
|
+
out: "out";
|
|
823
|
+
in: "in";
|
|
824
|
+
}>;
|
|
825
|
+
ack: z.ZodEnum<typeof MessageAck>;
|
|
826
|
+
invis: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
isNewMsg: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
+
star: z.ZodOptional<z.ZodBoolean>;
|
|
829
|
+
recvFresh: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
831
|
+
isForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
832
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
833
|
+
mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
834
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
835
|
+
timestamp: z.ZodNumber;
|
|
836
|
+
content: z.ZodString;
|
|
837
|
+
isGroupMsg: z.ZodBoolean;
|
|
838
|
+
isMMS: z.ZodOptional<z.ZodBoolean>;
|
|
839
|
+
isMedia: z.ZodBoolean;
|
|
840
|
+
isNotification: z.ZodBoolean;
|
|
841
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
842
|
+
fromMe: z.ZodBoolean;
|
|
843
|
+
chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
844
|
+
author: z.ZodOptional<z.ZodString>;
|
|
845
|
+
clientUrl: z.ZodOptional<z.ZodString>;
|
|
846
|
+
deprecatedMms3Url: z.ZodOptional<z.ZodString>;
|
|
847
|
+
isQuotedMsgAvailable: z.ZodBoolean;
|
|
848
|
+
quotedMsg: z.ZodOptional<z.ZodAny>;
|
|
849
|
+
quotedMsgObj: z.ZodOptional<z.ZodAny>;
|
|
850
|
+
senderId: z.ZodOptional<z.ZodString>;
|
|
851
|
+
sender: z.ZodObject<{
|
|
852
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
853
|
+
name: z.ZodOptional<z.ZodString>;
|
|
854
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
855
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
856
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
857
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
858
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
859
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
860
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
864
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
865
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
866
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
867
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
868
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
869
|
+
server: z.ZodString;
|
|
870
|
+
user: z.ZodString;
|
|
871
|
+
_serialized: z.ZodString;
|
|
872
|
+
}, z.core.$strip>>;
|
|
873
|
+
img: z.ZodOptional<z.ZodString>;
|
|
874
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
875
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
876
|
+
}, z.core.$strip>>;
|
|
877
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
878
|
+
type: z.ZodOptional<z.ZodString>;
|
|
879
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
880
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
881
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
882
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
883
|
+
}, z.core.$loose>;
|
|
884
|
+
chat: z.ZodObject<{
|
|
885
|
+
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
886
|
+
name: z.ZodOptional<z.ZodString>;
|
|
887
|
+
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
888
|
+
isGroup: z.ZodBoolean;
|
|
889
|
+
contact: z.ZodObject<{
|
|
890
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
891
|
+
name: z.ZodOptional<z.ZodString>;
|
|
892
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
893
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
894
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
895
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
896
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
897
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
898
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
899
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
900
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
901
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
903
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
904
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
905
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
906
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
907
|
+
server: z.ZodString;
|
|
908
|
+
user: z.ZodString;
|
|
909
|
+
_serialized: z.ZodString;
|
|
910
|
+
}, z.core.$strip>>;
|
|
911
|
+
img: z.ZodOptional<z.ZodString>;
|
|
912
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
913
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
914
|
+
}, z.core.$strip>>;
|
|
915
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
916
|
+
type: z.ZodOptional<z.ZodString>;
|
|
917
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
918
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
919
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
920
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
921
|
+
}, z.core.$loose>;
|
|
922
|
+
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
923
|
+
presence: z.ZodOptional<z.ZodAny>;
|
|
924
|
+
t: z.ZodOptional<z.ZodNumber>;
|
|
925
|
+
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
926
|
+
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
927
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
928
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
929
|
+
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
930
|
+
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
931
|
+
pin: z.ZodOptional<z.ZodNumber>;
|
|
932
|
+
ack: z.ZodOptional<z.ZodAny>;
|
|
933
|
+
}, z.core.$loose>;
|
|
934
|
+
}, z.core.$loose>;
|
|
935
|
+
}, z.core.$strip>, z.ZodString>;
|
|
936
|
+
declare const downloadMedia: OpenWAMethodSchema<z.ZodObject<{
|
|
937
|
+
message: z.ZodObject<{
|
|
938
|
+
id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
939
|
+
body: z.ZodString;
|
|
940
|
+
type: z.ZodEnum<typeof MessageTypes>;
|
|
941
|
+
t: z.ZodNumber;
|
|
942
|
+
notifyName: z.ZodOptional<z.ZodString>;
|
|
943
|
+
from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
944
|
+
to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
945
|
+
self: z.ZodEnum<{
|
|
946
|
+
out: "out";
|
|
947
|
+
in: "in";
|
|
948
|
+
}>;
|
|
949
|
+
ack: z.ZodEnum<typeof MessageAck>;
|
|
950
|
+
invis: z.ZodOptional<z.ZodBoolean>;
|
|
951
|
+
isNewMsg: z.ZodOptional<z.ZodBoolean>;
|
|
952
|
+
star: z.ZodOptional<z.ZodBoolean>;
|
|
953
|
+
recvFresh: z.ZodOptional<z.ZodBoolean>;
|
|
954
|
+
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
955
|
+
isForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
956
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
957
|
+
mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
958
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
959
|
+
timestamp: z.ZodNumber;
|
|
960
|
+
content: z.ZodString;
|
|
961
|
+
isGroupMsg: z.ZodBoolean;
|
|
962
|
+
isMMS: z.ZodOptional<z.ZodBoolean>;
|
|
963
|
+
isMedia: z.ZodBoolean;
|
|
964
|
+
isNotification: z.ZodBoolean;
|
|
965
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
966
|
+
fromMe: z.ZodBoolean;
|
|
967
|
+
chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
968
|
+
author: z.ZodOptional<z.ZodString>;
|
|
969
|
+
clientUrl: z.ZodOptional<z.ZodString>;
|
|
970
|
+
deprecatedMms3Url: z.ZodOptional<z.ZodString>;
|
|
971
|
+
isQuotedMsgAvailable: z.ZodBoolean;
|
|
972
|
+
quotedMsg: z.ZodOptional<z.ZodAny>;
|
|
973
|
+
quotedMsgObj: z.ZodOptional<z.ZodAny>;
|
|
974
|
+
senderId: z.ZodOptional<z.ZodString>;
|
|
975
|
+
sender: z.ZodObject<{
|
|
976
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
977
|
+
name: z.ZodOptional<z.ZodString>;
|
|
978
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
979
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
980
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
981
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
982
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
983
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
984
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
985
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
986
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
988
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
989
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
990
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
991
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
992
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
993
|
+
server: z.ZodString;
|
|
994
|
+
user: z.ZodString;
|
|
995
|
+
_serialized: z.ZodString;
|
|
996
|
+
}, z.core.$strip>>;
|
|
997
|
+
img: z.ZodOptional<z.ZodString>;
|
|
998
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
999
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
}, z.core.$strip>>;
|
|
1001
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
1002
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
1004
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1006
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
1007
|
+
}, z.core.$loose>;
|
|
1008
|
+
chat: z.ZodObject<{
|
|
1009
|
+
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
1010
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
isGroup: z.ZodBoolean;
|
|
1013
|
+
contact: z.ZodObject<{
|
|
1014
|
+
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
1015
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
pushname: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
formattedName: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
1020
|
+
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
1021
|
+
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
1022
|
+
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
1023
|
+
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
1024
|
+
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
1025
|
+
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
1026
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1027
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
1028
|
+
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
1029
|
+
eurl: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
1031
|
+
server: z.ZodString;
|
|
1032
|
+
user: z.ZodString;
|
|
1033
|
+
_serialized: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>>;
|
|
1035
|
+
img: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
imgFull: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
}, z.core.$strip>>;
|
|
1039
|
+
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
1040
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
1042
|
+
verifiedName: z.ZodOptional<z.ZodString>;
|
|
1043
|
+
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1044
|
+
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
+
}, z.core.$loose>;
|
|
1046
|
+
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
1047
|
+
presence: z.ZodOptional<z.ZodAny>;
|
|
1048
|
+
t: z.ZodOptional<z.ZodNumber>;
|
|
1049
|
+
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
1051
|
+
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
1052
|
+
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1053
|
+
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
+
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
1055
|
+
pin: z.ZodOptional<z.ZodNumber>;
|
|
1056
|
+
ack: z.ZodOptional<z.ZodAny>;
|
|
1057
|
+
}, z.core.$loose>;
|
|
1058
|
+
}, z.core.$loose>;
|
|
1059
|
+
path: z.ZodString;
|
|
1060
|
+
}, z.core.$strip>, z.ZodString>;
|
|
1061
|
+
//#endregion
|
|
1062
|
+
//#region ../../node_modules/p-queue/dist/queue.d.ts
|
|
1063
|
+
declare type RunFunction = () => Promise<unknown>;
|
|
1064
|
+
interface Queue<Element, Options> {
|
|
1065
|
+
size: number;
|
|
1066
|
+
filter: (options: Partial<Options>) => Element[];
|
|
1067
|
+
dequeue: () => Element | undefined;
|
|
1068
|
+
enqueue: (run: Element, options?: Partial<Options>) => void;
|
|
1069
|
+
}
|
|
1070
|
+
//#endregion
|
|
1071
|
+
//#region ../../node_modules/p-queue/dist/options.d.ts
|
|
1072
|
+
interface QueueAddOptions {
|
|
1073
|
+
readonly [key: string]: unknown;
|
|
1074
|
+
}
|
|
1075
|
+
interface Options<QueueType extends Queue<RunFunction, QueueOptions>, QueueOptions extends QueueAddOptions> {
|
|
1076
|
+
/**
|
|
1077
|
+
Concurrency limit.
|
|
1078
|
+
Minimum: `1`.
|
|
1079
|
+
@default Infinity
|
|
1080
|
+
*/
|
|
1081
|
+
readonly concurrency?: number;
|
|
1082
|
+
/**
|
|
1083
|
+
Whether queue tasks within concurrency limit, are auto-executed as soon as they're added.
|
|
1084
|
+
@default true
|
|
1085
|
+
*/
|
|
1086
|
+
readonly autoStart?: boolean;
|
|
1087
|
+
/**
|
|
1088
|
+
Class with a `enqueue` and `dequeue` method, and a `size` getter. See the [Custom QueueClass](https://github.com/sindresorhus/p-queue#custom-queueclass) section.
|
|
1089
|
+
*/
|
|
1090
|
+
readonly queueClass?: new () => QueueType;
|
|
1091
|
+
/**
|
|
1092
|
+
The max number of runs in the given interval of time.
|
|
1093
|
+
Minimum: `1`.
|
|
1094
|
+
@default Infinity
|
|
1095
|
+
*/
|
|
1096
|
+
readonly intervalCap?: number;
|
|
1097
|
+
/**
|
|
1098
|
+
The length of time in milliseconds before the interval count resets. Must be finite.
|
|
1099
|
+
Minimum: `0`.
|
|
1100
|
+
@default 0
|
|
1101
|
+
*/
|
|
1102
|
+
readonly interval?: number;
|
|
1103
|
+
/**
|
|
1104
|
+
Whether the task must finish in the given interval or will be carried over into the next interval count.
|
|
1105
|
+
@default false
|
|
1106
|
+
*/
|
|
1107
|
+
readonly carryoverConcurrencyCount?: boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
|
|
1110
|
+
*/
|
|
1111
|
+
timeout?: number;
|
|
1112
|
+
/**
|
|
1113
|
+
Whether or not a timeout is considered an exception.
|
|
1114
|
+
@default false
|
|
1115
|
+
*/
|
|
1116
|
+
throwOnTimeout?: boolean;
|
|
1117
|
+
}
|
|
1118
|
+
interface DefaultAddOptions extends QueueAddOptions {
|
|
1119
|
+
/**
|
|
1120
|
+
Priority of operation. Operations with greater priority will be scheduled first.
|
|
1121
|
+
@default 0
|
|
1122
|
+
*/
|
|
1123
|
+
readonly priority?: number;
|
|
1124
|
+
}
|
|
1125
|
+
//#endregion
|
|
1126
|
+
//#region ../../node_modules/p-queue/dist/priority-queue.d.ts
|
|
1127
|
+
interface PriorityQueueOptions extends QueueAddOptions {
|
|
1128
|
+
priority?: number;
|
|
1129
|
+
}
|
|
1130
|
+
declare class PriorityQueue implements Queue<RunFunction, PriorityQueueOptions> {
|
|
1131
|
+
private readonly _queue;
|
|
1132
|
+
enqueue(run: RunFunction, options?: Partial<PriorityQueueOptions>): void;
|
|
1133
|
+
dequeue(): RunFunction | undefined;
|
|
1134
|
+
filter(options: Readonly<Partial<PriorityQueueOptions>>): RunFunction[];
|
|
1135
|
+
get size(): number;
|
|
1136
|
+
}
|
|
1137
|
+
//#endregion
|
|
1138
|
+
//#region src/events/registry.d.ts
|
|
1139
|
+
type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';
|
|
1140
|
+
interface EventMetadata {
|
|
1141
|
+
eventName: string;
|
|
1142
|
+
legacyName: string;
|
|
1143
|
+
description?: string;
|
|
1144
|
+
namespace?: string;
|
|
1145
|
+
status?: EventStatus;
|
|
1146
|
+
deprecated?: string;
|
|
1147
|
+
license?: LicenseTier;
|
|
1148
|
+
since?: string;
|
|
1149
|
+
payloadSchema: z.ZodTypeAny;
|
|
1150
|
+
defaultQueueOptions?: Options<PriorityQueue, DefaultAddOptions>;
|
|
1151
|
+
}
|
|
1152
|
+
interface EventDefinition {
|
|
1153
|
+
callbackSchema: z.ZodFunction<any, any>;
|
|
1154
|
+
meta: EventMetadata;
|
|
1155
|
+
}
|
|
1156
|
+
declare const eventRegistry: {
|
|
1157
|
+
register(def: EventDefinition): z.ZodFunction<any, any>;
|
|
1158
|
+
get(name: string): EventDefinition | undefined;
|
|
1159
|
+
getByLegacyName(legacyName: string): EventDefinition | undefined;
|
|
1160
|
+
has(name: string): boolean;
|
|
1161
|
+
getAll(): EventDefinition[];
|
|
1162
|
+
getByNamespace(namespace: string): EventDefinition[];
|
|
1163
|
+
clear(): void;
|
|
1164
|
+
};
|
|
1165
|
+
declare const QueueOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
1166
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1167
|
+
intervalCap: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
1171
|
+
}, z.core.$strip>>;
|
|
1172
|
+
type QueueOptions = z.infer<typeof QueueOptionsSchema>;
|
|
1173
|
+
declare function defineListenerV2<T extends z.ZodTypeAny>(name: string, params: {
|
|
1174
|
+
legacyName?: string;
|
|
1175
|
+
meta: Omit<EventMetadata, 'eventName' | 'legacyName' | 'payloadSchema'>;
|
|
1176
|
+
payload: T;
|
|
1177
|
+
defaultQueueOptions?: Options<PriorityQueue, DefaultAddOptions>;
|
|
1178
|
+
}): z.ZodFunction<any, any>;
|
|
1179
|
+
//#endregion
|
|
1180
|
+
//#region src/events/messaging.d.ts
|
|
1181
|
+
declare const messageEvent: z.ZodFunction<any, any>;
|
|
1182
|
+
declare const anyMessageEvent: z.ZodFunction<any, any>;
|
|
1183
|
+
declare const messageDeletedEvent: z.ZodFunction<any, any>;
|
|
1184
|
+
declare const ackEvent: z.ZodFunction<any, any>;
|
|
1185
|
+
declare const reactionEvent: z.ZodFunction<any, any>;
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region src/events/state.d.ts
|
|
1188
|
+
declare const StateEnum: z.ZodEnum<{
|
|
1189
|
+
STARTING: "STARTING";
|
|
1190
|
+
AUTHENTICATING: "AUTHENTICATING";
|
|
1191
|
+
READY: "READY";
|
|
1192
|
+
STOPPED: "STOPPED";
|
|
1193
|
+
CONNECTED: "CONNECTED";
|
|
1194
|
+
DISCONNECTED: "DISCONNECTED";
|
|
1195
|
+
SYNCING: "SYNCING";
|
|
1196
|
+
CONFLICT: "CONFLICT";
|
|
1197
|
+
UNLAUNCHED: "UNLAUNCHED";
|
|
1198
|
+
PAIRING: "PAIRING";
|
|
1199
|
+
TIMEOUT: "TIMEOUT";
|
|
1200
|
+
}>;
|
|
1201
|
+
declare const stateChangedEvent: z.ZodFunction<any, any>;
|
|
1202
|
+
declare const chatStateEvent: z.ZodFunction<any, any>;
|
|
1203
|
+
declare const logoutEvent: z.ZodFunction<any, any>;
|
|
1204
|
+
//#endregion
|
|
1205
|
+
//#region src/events/groups.d.ts
|
|
1206
|
+
declare const participantsChangedEvent: z.ZodFunction<any, any>;
|
|
1207
|
+
declare const addedToGroupEvent: z.ZodFunction<any, any>;
|
|
1208
|
+
//#endregion
|
|
1209
|
+
//#region src/codecs.d.ts
|
|
1210
|
+
declare const chatIdCodec: {
|
|
1211
|
+
decode: (input: string) => string;
|
|
1212
|
+
encode: (chatId: string) => string;
|
|
1213
|
+
};
|
|
1214
|
+
declare const contactIdCodec: {
|
|
1215
|
+
decode: (input: string) => string;
|
|
1216
|
+
encode: (contactId: string) => string;
|
|
1217
|
+
};
|
|
1218
|
+
declare const groupIdCodec: {
|
|
1219
|
+
decode: (input: string) => string;
|
|
1220
|
+
encode: (groupId: string) => string;
|
|
1221
|
+
};
|
|
1222
|
+
declare const messageIdCodec: {
|
|
1223
|
+
decode: (input: string) => string;
|
|
1224
|
+
encode: (messageId: string) => string;
|
|
1225
|
+
};
|
|
1226
|
+
declare const createFileCodec: (outputType: string) => {
|
|
1227
|
+
decode: (input: unknown) => Promise<unknown>;
|
|
1228
|
+
encode: (output: unknown) => unknown;
|
|
1229
|
+
};
|
|
1230
|
+
declare const fileToDataUrlCodec: {
|
|
1231
|
+
decode: (input: unknown) => Promise<unknown>;
|
|
1232
|
+
encode: (output: unknown) => unknown;
|
|
1233
|
+
};
|
|
1234
|
+
declare const fileToBase64Codec: {
|
|
1235
|
+
decode: (input: unknown) => Promise<unknown>;
|
|
1236
|
+
encode: (output: unknown) => unknown;
|
|
1237
|
+
};
|
|
1238
|
+
declare const fileToBufferCodec: {
|
|
1239
|
+
decode: (input: unknown) => Promise<unknown>;
|
|
1240
|
+
encode: (output: unknown) => unknown;
|
|
1241
|
+
};
|
|
1242
|
+
declare const fileToTempPathCodec: {
|
|
1243
|
+
decode: (input: unknown) => Promise<unknown>;
|
|
1244
|
+
encode: (output: unknown) => unknown;
|
|
1245
|
+
};
|
|
1246
|
+
declare const fileToStreamCodec: {
|
|
1247
|
+
decode: (input: unknown) => Promise<unknown>;
|
|
1248
|
+
encode: (output: unknown) => unknown;
|
|
1249
|
+
};
|
|
1250
|
+
declare const base64ToDataUrlCodec: {
|
|
1251
|
+
decode: (base64: string) => string;
|
|
1252
|
+
encode: (dataUrl: string) => string;
|
|
1253
|
+
};
|
|
1254
|
+
declare const urlToDataUrlCodec: {
|
|
1255
|
+
decode: (url: string) => Promise<string>;
|
|
1256
|
+
encode: (_dataUrl: string) => string;
|
|
1257
|
+
};
|
|
1258
|
+
declare const isoDatetimeToDate: {
|
|
1259
|
+
decode: (isoString: string) => Date;
|
|
1260
|
+
encode: (date: Date) => string;
|
|
1261
|
+
};
|
|
1262
|
+
declare const unixSecondsToDate: {
|
|
1263
|
+
decode: (seconds: number) => Date;
|
|
1264
|
+
encode: (date: Date) => number;
|
|
1265
|
+
};
|
|
1266
|
+
declare const unixMillisToDate: {
|
|
1267
|
+
decode: (millis: number) => Date;
|
|
1268
|
+
encode: (date: Date) => number;
|
|
1269
|
+
};
|
|
1270
|
+
declare const hexColorCodec: {
|
|
1271
|
+
decode: (input: string) => string;
|
|
1272
|
+
encode: (hex: string) => string;
|
|
1273
|
+
};
|
|
1274
|
+
declare const jsonStringCodec: <T>(schema: z.ZodType<T>) => z.ZodCodec<z.ZodString, z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>>;
|
|
1275
|
+
declare const ChatIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1276
|
+
declare const ContactIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
1277
|
+
declare const GroupIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1278
|
+
declare const MessageIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
1279
|
+
declare const ChatIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1280
|
+
declare const ContactIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
1281
|
+
declare const GroupIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1282
|
+
declare const MessageIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
1283
|
+
declare const FileToDataUrlSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1284
|
+
declare const Base64ToDataUrlSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1285
|
+
declare const HexColorSchema: z.ZodCodec<z.ZodString, z.ZodString>;
|
|
1286
|
+
declare const IsoDatetimeToDateSchema: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
1287
|
+
declare const UnixSecondsToDateSchema: z.ZodCodec<z.ZodNumber, z.ZodDate>;
|
|
1288
|
+
declare const UnixMillisToDateSchema: z.ZodCodec<z.ZodNumber, z.ZodDate>;
|
|
1289
|
+
//#endregion
|
|
1290
|
+
//#region src/parameters.d.ts
|
|
1291
|
+
declare const chatIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1292
|
+
declare const contactIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
1293
|
+
declare const groupIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1294
|
+
declare const communityIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1295
|
+
declare const messageIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
1296
|
+
declare const toParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1297
|
+
declare const contentParam: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
1298
|
+
declare const captionParam: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
declare const filenameParam: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
declare const userAgentParam: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
declare const nameParam: z.ZodString;
|
|
1302
|
+
declare const statusTextParam: z.ZodString;
|
|
1303
|
+
declare const imageDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1304
|
+
declare const fileDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1305
|
+
declare const audioDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1306
|
+
declare const videoDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1307
|
+
declare const documentDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1308
|
+
declare const stickerDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<any, any>]>, z.ZodTransform<unknown, any>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1309
|
+
declare const latitudeParam: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1310
|
+
declare const longitudeParam: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1311
|
+
declare const locationNameParam: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
declare const waitForIdParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1313
|
+
declare const includeMeParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1314
|
+
declare const includeNotificationsParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1315
|
+
declare const onlyLocalParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1316
|
+
declare const skipMyMessagesParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1317
|
+
declare const withNewMessagesOnlyParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1318
|
+
declare const messageIdsParam: z.ZodUnion<readonly [z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>, z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>]>;
|
|
1319
|
+
declare const mentionedJidListParam: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
1320
|
+
declare const messageOptionsParam: z.ZodOptional<z.ZodAny>;
|
|
1321
|
+
//#endregion
|
|
1322
|
+
export { fileToTempPathCodec as $, pinChat as $n, GroupMetadata as $r, getStatus as $t, withNewMessagesOnlyParam as A, PartialConfigSchema as Ai, setGroupTitle as An, sendPoll as Ar, getFeatures as At, IsoDatetimeToDateSchema as B, Viewport as Bi, getProfilePicture as Bn, unstarMessage as Br, isPlugged as Bt, skipMyMessagesParam as C, DevToolsSchema as Ci, promoteParticipant as Cn, sendImage as Cr, QueueOptionsSchema as Ct, userAgentParam as D, NotificationLanguage as Di, setGroupDescription as Dn, sendMessageWithThumb as Dr, downloadMedia as Dt, toParam as E, LoggingTransportSchema as Ei, revokeGroupInviteLink as En, sendLocation as Er, decryptMedia as Et, ContactIdSchema as F, S3SyncSchema as Fi, getAllContacts as Fn, sendTextWithMentions as Fr, getProcessStats as Ft, base64ToDataUrlCodec as G, getAllChatIds as Gn, Contact as Gr, getBusinessProfile as Gt, MessageIdSchema as H, getDefaultConfig as Hi, archiveChat as Hn, Chat as Hr, setMyStatus as Ht, FileToDataUrlSchema as I, SessionData as Ii, getBlockedIds as In, sendVCard as Ir, getSnapshot as It, createFileCodec as J, getChatWithNonContacts as Jn, Content as Jr, getAllLabels as Jt, chatIdCodec as K, getAllChats as Kn, ContactId as Kr, getOrder as Kt, GroupIdCodecSchema as L, SessionDataSchema as Li, getCommonGroups as Ln, sendVideoAsGif as Lr, getUserAgent as Lt, ChatIdCodecSchema as M, ProxyServerCredentialsSchema as Mi, blockContact as Mn, sendReplyWithMentions as Mr, getLicenseType as Mt, ChatIdSchema as N, QRFormat as Ni, checkNumberStatus as Nn, sendSeen as Nr, getLoadedMessageCount as Nt, videoDataParam as O, OnError as Oi, setGroupEditToAdminsOnly as On, sendMultipleContacts as Or, getBatteryLevel as Ot, ContactIdCodecSchema as P, S3Sync as Pi, checkReadReceipts as Pn, sendText as Pr, getMe as Pt, fileToStreamCodec as Q, muteChat as Qn, GroupId as Qr, deleteStatus as Qt, GroupIdSchema as R, StrictConfig as Ri, getContact as Rn, sendYouTubeLink as Rr, getWAVersion as Rt, onlyLocalParam as S, DevTools as Si, leaveGroup as Sn, sendFileFromUrl as Sr, QueueOptions as St, stickerDataParam as T, LoggingTransport as Ti, removeParticipant as Tn, sendListMessage as Tr, eventRegistry as Tt, UnixMillisToDateSchema as U, parseConfig as Ui, clearChat as Un, ChatId as Ur, setProfilePicture as Ut, MessageIdCodecSchema as V, ViewportSchema as Vi, unblockContact as Vn, Base64 as Vr, setMyName as Vt, UnixSecondsToDateSchema as W, validateConfig as Wi, deleteChat as Wn, ChatSchema as Wr, getBusinessProducts as Wt, fileToBufferCodec as X, markAsRead as Xn, GroupChatId as Xr, removeLabel as Xt, fileToBase64Codec as Y, isChatOnline as Yn, DataURL as Yr, getChatsByLabel as Yt, fileToDataUrlCodec as Z, markAsUnread as Zn, GroupChatIdSchema as Zr, deleteAllStatus as Zt, mentionedJidListParam as _, CloudUploadOptionsSchema as _i, getGroupInviteLink as _n, sendAudio as _r, messageEvent as _t, contactIdParam as a, Message as ai, getCommunityAdminIds as an, forwardMessages as ar, unixMillisToDate as at, messageOptionsParam as b, DIRECTORY_STRATEGY as bi, getKickedGroups as bn, sendContact as br, EventMetadata as bt, fileDataParam as c, MessageIdReturnSchema as ci, getCommunityParticipantIds as cn, getMessageInfo as cr, addedToGroupEvent as ct, imageDataParam as d, SimpleListener as di, approveGroupJoinRequest as dn, getStarredMessages as dr, chatStateEvent as dt, GroupMetadataSchema as ei, getStories as en, setChatEphemeral as er, groupIdCodec as et, includeMeParam as f, ClientConfig as fi, createGroup as fn, getUnsentMessages as fr, logoutEvent as ft, longitudeParam as g, CloudUploadOptions as gi, getGroupInfo as gn, sendAdvancedButtons as gr, messageDeletedEvent as gt, locationNameParam as h, CLOUD_PROVIDERS as hi, getGroupAdmins as hn, react as hr, anyMessageEvent as ht, communityIdParam as i, LocationSchema as ii, getAllCommunities as in, deleteMessage as ir, messageIdCodec as it, Base64ToDataUrlSchema as j, ProxyServerCredentials as ji, setGroupToAdminsOnly as jn, sendPtt as jr, getHostNumber as jt, waitForIdParam as k, PartialConfig as ki, setGroupIcon as kn, sendPaymentRequest as kr, getConnectionState as kt, filenameParam as l, MessageSchema as li, getCommunityParticipants as ln, getMessagesForLLM as lr, participantsChangedEvent as lt, latitudeParam as m, migrateV4Config as mi, getAllGroups as mn, loadEarlierMessages as mr, ackEvent as mt, captionParam as n, IdSchema as ni, postTextStatus as nn, unmuteChat as nr, isoDatetimeToDate as nt, contentParam as o, MessageAck as oi, getCommunityAdmins as on, getAllMessages as or, unixSecondsToDate as ot, includeNotificationsParam as p, ClientConfigSchema as pi, demoteParticipant as pn, getVCards as pr, stateChangedEvent as pt, contactIdCodec as q, getChat as qn, ContactSchema as qr, addLabel as qt, chatIdParam as r, Location as ri, postVideoStatus as rn, unpinChat as rr, jsonStringCodec as rt, documentDataParam as s, MessageId as si, getCommunityInfo as sn, getMessageById as sr, urlToDataUrlCodec as st, audioDataParam as t, Id as ti, postImageStatus as tn, unarchiveChat as tr, hexColorCodec as tt, groupIdParam as u, MessageTypes as ui, addParticipant as un, getMyLastMessage as ur, StateEnum as ut, messageIdParam as v, Config as vi, getGroupMembers as vn, sendBanner as vr, reactionEvent as vt, statusTextParam as w, LicenseType as wi, rejectGroupJoinRequest as wn, sendLinkWithAutoPreview as wr, defineListenerV2 as wt, nameParam as x, DeepPartialConfig as xi, joinGroupViaLink as xn, sendFile as xr, EventStatus as xt, messageIdsParam as y, ConfigSchema as yi, getGroupMembersId as yn, sendButtons as yr, EventDefinition as yt, HexColorSchema as z, StrictConfigSchema as zi, getNumberProfile as zn, starMessage as zr, healthCheck as zt };
|
|
1323
|
+
//# sourceMappingURL=index-BsqJbJE4.d.cts.map
|