@open-wa/schema 5.1.0 → 5.2.0
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 +1 -1
- package/dist/generated/index.cjs.map +1 -1
- package/dist/generated/index.d.cts +7491 -1331
- package/dist/generated/index.d.cts.map +1 -1
- package/dist/generated/index.d.mts +7491 -1331
- package/dist/generated/index.d.mts.map +1 -1
- package/dist/generated/index.mjs +1 -1
- package/dist/generated/index.mjs.map +1 -1
- package/dist/index-C9Ad0lEr.d.cts +4729 -0
- package/dist/index-C9Ad0lEr.d.cts.map +1 -0
- package/dist/index-D0QN2PaW.d.mts +4729 -0
- package/dist/index-D0QN2PaW.d.mts.map +1 -0
- package/dist/index.cjs +59 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +31 -2
- package/dist/index.mjs.map +1 -1
- package/dist/methods/index.cjs +2 -1
- package/dist/methods/index.d.cts +2 -2
- package/dist/methods/index.d.mts +2 -2
- package/dist/methods/index.mjs +2 -2
- package/dist/{methods-DO0JONvB.cjs → methods-BGmdzjd3.cjs} +433 -76
- package/dist/methods-BGmdzjd3.cjs.map +1 -0
- package/dist/{methods-BSv5O3bS.mjs → methods-BhLsQNtL.mjs} +272 -77
- package/dist/methods-BhLsQNtL.mjs.map +1 -0
- package/package.json +3 -3
- package/src/common-types.ts +22 -15
- package/src/generated/BaseClient.ts +2 -2
- package/src/generated/openapi.json +24726 -3626
- package/src/index.ts +2 -0
- package/src/methods/business.ts +4 -3
- package/src/methods/chats.ts +6 -5
- package/src/methods/communities.ts +8 -6
- package/src/methods/contacts.ts +8 -6
- package/src/methods/groups.ts +11 -9
- package/src/methods/labels.ts +4 -2
- package/src/methods/media.ts +2 -2
- package/src/methods/messaging.ts +20 -12
- package/src/methods/session.ts +7 -6
- package/src/methods/status.ts +9 -7
- package/src/output-json-schema.ts +27 -0
- package/src/parameters.ts +2 -2
- package/src/return-types.ts +125 -0
- package/dist/index-DTztyYhw.d.cts +0 -2155
- package/dist/index-DTztyYhw.d.cts.map +0 -1
- package/dist/index-nVKR0RmZ.d.mts +0 -2155
- package/dist/index-nVKR0RmZ.d.mts.map +0 -1
- package/dist/methods-BSv5O3bS.mjs.map +0 -1
- package/dist/methods-DO0JONvB.cjs.map +0 -1
|
@@ -1,2155 +0,0 @@
|
|
|
1
|
-
import { F as LicenseTier, p as OpenWAMethodSchema } from "./http-manifest-CqjUoaDB.mjs";
|
|
2
|
-
import "./implementor-ACLHTHby.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
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";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/client-config.d.ts
|
|
7
|
-
declare function migrateV4Config(oldConfig: Record<string, unknown>): Record<string, unknown>;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/common-types.d.ts
|
|
10
|
-
declare const ContactIdSchema$1: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
11
|
-
type ContactId = z.infer<typeof ContactIdSchema$1>;
|
|
12
|
-
declare const ChatIdSchema$1: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
13
|
-
type ChatId = z.infer<typeof ChatIdSchema$1>;
|
|
14
|
-
declare const MessageIdSchema$1: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
15
|
-
type MessageId = z.infer<typeof MessageIdSchema$1>;
|
|
16
|
-
declare const GroupChatIdSchema: z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">;
|
|
17
|
-
type GroupChatId = z.infer<typeof GroupChatIdSchema>;
|
|
18
|
-
declare const GroupIdSchema$1: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
|
|
19
|
-
type GroupId = z.infer<typeof GroupIdSchema$1>;
|
|
20
|
-
type DataURL = `data:${string};base64,${string}`;
|
|
21
|
-
type Base64 = string;
|
|
22
|
-
type Content = string | DataURL | Base64 | Buffer;
|
|
23
|
-
declare const GroupMetadataSchema: z.ZodObject<{
|
|
24
|
-
id: z.core.$ZodBranded<z.ZodString, "GroupId", "out">;
|
|
25
|
-
subject: z.ZodString;
|
|
26
|
-
creation: z.ZodNumber;
|
|
27
|
-
owner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
28
|
-
desc: z.ZodOptional<z.ZodString>;
|
|
29
|
-
descTime: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
descOwner: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
31
|
-
restrict: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
announce: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
participants: z.ZodArray<z.ZodObject<{
|
|
34
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
35
|
-
isAdmin: z.ZodBoolean;
|
|
36
|
-
isSuperAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$loose>;
|
|
39
|
-
type GroupMetadata = z.infer<typeof GroupMetadataSchema>;
|
|
40
|
-
declare const IdSchema: z.ZodObject<{
|
|
41
|
-
server: z.ZodString;
|
|
42
|
-
user: z.ZodString;
|
|
43
|
-
_serialized: z.ZodString;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
type Id = z.infer<typeof IdSchema>;
|
|
46
|
-
declare enum MessageTypes {
|
|
47
|
-
TEXT = "chat",
|
|
48
|
-
AUDIO = "audio",
|
|
49
|
-
VOICE = "ptt",
|
|
50
|
-
IMAGE = "image",
|
|
51
|
-
VIDEO = "video",
|
|
52
|
-
DOCUMENT = "document",
|
|
53
|
-
STICKER = "sticker",
|
|
54
|
-
LOCATION = "location",
|
|
55
|
-
CONTACT_CARD = "vcard",
|
|
56
|
-
CONTACT_CARD_MULTI = "multi_vcard",
|
|
57
|
-
REVOKED = "revoked",
|
|
58
|
-
ORDER = "order",
|
|
59
|
-
BUTTONS_RESPONSE = "buttons_response",
|
|
60
|
-
LIST_RESPONSE = "list_response",
|
|
61
|
-
UNKNOWN = "unknown"
|
|
62
|
-
}
|
|
63
|
-
declare enum MessageAck {
|
|
64
|
-
ACK_ERROR = -1,
|
|
65
|
-
ACK_PENDING = 0,
|
|
66
|
-
ACK_SERVER = 1,
|
|
67
|
-
ACK_DEVICE = 2,
|
|
68
|
-
ACK_READ = 3,
|
|
69
|
-
ACK_PLAYED = 4
|
|
70
|
-
}
|
|
71
|
-
declare enum SimpleListener {
|
|
72
|
-
Message = "onMessage",
|
|
73
|
-
AnyMessage = "onAnyMessage",
|
|
74
|
-
MessageDeleted = "onMessageDeleted",
|
|
75
|
-
Ack = "onAck",
|
|
76
|
-
AddedToGroup = "onAddedToGroup",
|
|
77
|
-
ChatDeleted = "onChatDeleted",
|
|
78
|
-
Battery = "onBattery",
|
|
79
|
-
ChatOpened = "onChatOpened",
|
|
80
|
-
IncomingCall = "onIncomingCall",
|
|
81
|
-
GlobalParticipantsChanged = "onGlobalParticipantsChanged",
|
|
82
|
-
ChatState = "onChatState",
|
|
83
|
-
Logout = "onLogout",
|
|
84
|
-
Plugged = "onPlugged",
|
|
85
|
-
StateChanged = "onStateChanged",
|
|
86
|
-
Button = "onButton",
|
|
87
|
-
Story = "onStory",
|
|
88
|
-
RemovedFromGroup = "onRemovedFromGroup",
|
|
89
|
-
ContactAdded = "onContactAdded",
|
|
90
|
-
Order = "onOrder"
|
|
91
|
-
}
|
|
92
|
-
declare const ContactSchema: z.ZodObject<{
|
|
93
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
94
|
-
name: z.ZodOptional<z.ZodString>;
|
|
95
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
96
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
97
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
98
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
107
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
108
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
109
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
110
|
-
server: z.ZodString;
|
|
111
|
-
user: z.ZodString;
|
|
112
|
-
_serialized: z.ZodString;
|
|
113
|
-
}, z.core.$strip>>;
|
|
114
|
-
img: z.ZodOptional<z.ZodString>;
|
|
115
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
116
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
117
|
-
}, z.core.$strip>>;
|
|
118
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
type: z.ZodOptional<z.ZodString>;
|
|
120
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
122
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
124
|
-
}, z.core.$loose>;
|
|
125
|
-
type Contact = z.infer<typeof ContactSchema>;
|
|
126
|
-
declare const LocationSchema: z.ZodObject<{
|
|
127
|
-
lat: z.ZodNumber;
|
|
128
|
-
lng: z.ZodNumber;
|
|
129
|
-
name: z.ZodOptional<z.ZodString>;
|
|
130
|
-
address: z.ZodOptional<z.ZodString>;
|
|
131
|
-
url: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$loose>;
|
|
133
|
-
type Location = z.infer<typeof LocationSchema>;
|
|
134
|
-
declare const ChatSchema: z.ZodObject<{
|
|
135
|
-
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
136
|
-
name: z.ZodOptional<z.ZodString>;
|
|
137
|
-
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
138
|
-
isGroup: z.ZodBoolean;
|
|
139
|
-
contact: z.ZodObject<{
|
|
140
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
141
|
-
name: z.ZodOptional<z.ZodString>;
|
|
142
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
143
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
144
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
145
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
154
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
155
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
156
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
157
|
-
server: z.ZodString;
|
|
158
|
-
user: z.ZodString;
|
|
159
|
-
_serialized: z.ZodString;
|
|
160
|
-
}, z.core.$strip>>;
|
|
161
|
-
img: z.ZodOptional<z.ZodString>;
|
|
162
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
163
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
164
|
-
}, z.core.$strip>>;
|
|
165
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
-
type: z.ZodOptional<z.ZodString>;
|
|
167
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
169
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
171
|
-
}, z.core.$loose>;
|
|
172
|
-
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
173
|
-
presence: z.ZodOptional<z.ZodAny>;
|
|
174
|
-
t: z.ZodOptional<z.ZodNumber>;
|
|
175
|
-
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
176
|
-
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
177
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
178
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
-
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
180
|
-
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
-
pin: z.ZodOptional<z.ZodNumber>;
|
|
182
|
-
ack: z.ZodOptional<z.ZodAny>;
|
|
183
|
-
}, z.core.$loose>;
|
|
184
|
-
type Chat = z.infer<typeof ChatSchema>;
|
|
185
|
-
declare const MessageSchema: z.ZodObject<{
|
|
186
|
-
id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
187
|
-
body: z.ZodString;
|
|
188
|
-
type: z.ZodEnum<typeof MessageTypes>;
|
|
189
|
-
t: z.ZodNumber;
|
|
190
|
-
notifyName: z.ZodOptional<z.ZodString>;
|
|
191
|
-
from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
192
|
-
to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
193
|
-
self: z.ZodEnum<{
|
|
194
|
-
in: "in";
|
|
195
|
-
out: "out";
|
|
196
|
-
}>;
|
|
197
|
-
ack: z.ZodEnum<typeof MessageAck>;
|
|
198
|
-
invis: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
-
isNewMsg: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
-
star: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
-
recvFresh: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
-
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
-
isForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
205
|
-
mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
206
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
207
|
-
timestamp: z.ZodNumber;
|
|
208
|
-
content: z.ZodString;
|
|
209
|
-
isGroupMsg: z.ZodBoolean;
|
|
210
|
-
isMMS: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
isMedia: z.ZodBoolean;
|
|
212
|
-
isNotification: z.ZodBoolean;
|
|
213
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
-
fromMe: z.ZodBoolean;
|
|
215
|
-
chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
216
|
-
author: z.ZodOptional<z.ZodString>;
|
|
217
|
-
clientUrl: z.ZodOptional<z.ZodString>;
|
|
218
|
-
deprecatedMms3Url: z.ZodOptional<z.ZodString>;
|
|
219
|
-
isQuotedMsgAvailable: z.ZodBoolean;
|
|
220
|
-
quotedMsg: z.ZodOptional<z.ZodAny>;
|
|
221
|
-
quotedMsgObj: z.ZodOptional<z.ZodAny>;
|
|
222
|
-
senderId: z.ZodOptional<z.ZodString>;
|
|
223
|
-
sender: z.ZodObject<{
|
|
224
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
225
|
-
name: z.ZodOptional<z.ZodString>;
|
|
226
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
227
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
228
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
229
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
237
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
238
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
239
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
240
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
241
|
-
server: z.ZodString;
|
|
242
|
-
user: z.ZodString;
|
|
243
|
-
_serialized: z.ZodString;
|
|
244
|
-
}, z.core.$strip>>;
|
|
245
|
-
img: z.ZodOptional<z.ZodString>;
|
|
246
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
247
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
248
|
-
}, z.core.$strip>>;
|
|
249
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
-
type: z.ZodOptional<z.ZodString>;
|
|
251
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
252
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
253
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
255
|
-
}, z.core.$loose>;
|
|
256
|
-
chat: z.ZodObject<{
|
|
257
|
-
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
258
|
-
name: z.ZodOptional<z.ZodString>;
|
|
259
|
-
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
260
|
-
isGroup: z.ZodBoolean;
|
|
261
|
-
contact: z.ZodObject<{
|
|
262
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
263
|
-
name: z.ZodOptional<z.ZodString>;
|
|
264
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
265
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
266
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
267
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
275
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
276
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
277
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
278
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
279
|
-
server: z.ZodString;
|
|
280
|
-
user: z.ZodString;
|
|
281
|
-
_serialized: z.ZodString;
|
|
282
|
-
}, z.core.$strip>>;
|
|
283
|
-
img: z.ZodOptional<z.ZodString>;
|
|
284
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
285
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
286
|
-
}, z.core.$strip>>;
|
|
287
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
-
type: z.ZodOptional<z.ZodString>;
|
|
289
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
290
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
291
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
293
|
-
}, z.core.$loose>;
|
|
294
|
-
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
295
|
-
presence: z.ZodOptional<z.ZodAny>;
|
|
296
|
-
t: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
298
|
-
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
299
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
300
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
-
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
302
|
-
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
-
pin: z.ZodOptional<z.ZodNumber>;
|
|
304
|
-
ack: z.ZodOptional<z.ZodAny>;
|
|
305
|
-
}, z.core.$loose>;
|
|
306
|
-
}, z.core.$loose>;
|
|
307
|
-
type Message = z.infer<typeof MessageSchema>;
|
|
308
|
-
declare const MessageIdReturnSchema: z.ZodObject<{
|
|
309
|
-
_serialized: z.ZodString;
|
|
310
|
-
}, z.core.$loose>;
|
|
311
|
-
//#endregion
|
|
312
|
-
//#region src/methods/messaging.d.ts
|
|
313
|
-
declare const sendText: OpenWAMethodSchema<z.ZodObject<{
|
|
314
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
315
|
-
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
316
|
-
options: z.ZodOptional<z.ZodAny>;
|
|
317
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
318
|
-
_serialized: z.ZodString;
|
|
319
|
-
}, z.core.$loose>, z.ZodBoolean]>, z.ZodString]>>;
|
|
320
|
-
declare const sendTextWithMentions: OpenWAMethodSchema<z.ZodObject<{
|
|
321
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
322
|
-
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
323
|
-
hideTags: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
-
mentions: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
325
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
326
|
-
_serialized: z.ZodString;
|
|
327
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
328
|
-
declare const sendReplyWithMentions: OpenWAMethodSchema<z.ZodObject<{
|
|
329
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
330
|
-
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
331
|
-
replyMessageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
332
|
-
hideTags: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
-
mentions: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
334
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
335
|
-
_serialized: z.ZodString;
|
|
336
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
337
|
-
declare const sendPaymentRequest: OpenWAMethodSchema<z.ZodObject<{
|
|
338
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
339
|
-
amount: z.ZodNumber;
|
|
340
|
-
currency: z.ZodString;
|
|
341
|
-
message: z.ZodOptional<z.ZodString>;
|
|
342
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
343
|
-
_serialized: z.ZodString;
|
|
344
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
345
|
-
declare const sendImage: OpenWAMethodSchema<z.ZodObject<{
|
|
346
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
347
|
-
imgData: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
348
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
349
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
350
|
-
id: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
351
|
-
waitForId: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
352
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
353
|
-
_serialized: z.ZodString;
|
|
354
|
-
}, z.core.$loose>, z.ZodBoolean]>, z.ZodString]>>;
|
|
355
|
-
declare const sendFile: OpenWAMethodSchema<z.ZodObject<{
|
|
356
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
357
|
-
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
358
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
359
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
360
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
361
|
-
_serialized: z.ZodString;
|
|
362
|
-
}, z.core.$loose>, z.ZodString]>>;
|
|
363
|
-
declare const sendAudio: OpenWAMethodSchema<z.ZodObject<{
|
|
364
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
365
|
-
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
366
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
367
|
-
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
368
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
369
|
-
_serialized: z.ZodString;
|
|
370
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
371
|
-
declare const sendPtt: OpenWAMethodSchema<z.ZodObject<{
|
|
372
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
373
|
-
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
374
|
-
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
375
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
376
|
-
_serialized: z.ZodString;
|
|
377
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
378
|
-
declare const sendVideoAsGif: OpenWAMethodSchema<z.ZodObject<{
|
|
379
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
380
|
-
file: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
381
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
382
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
383
|
-
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
384
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
385
|
-
_serialized: z.ZodString;
|
|
386
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
387
|
-
declare const sendLocation: OpenWAMethodSchema<z.ZodObject<{
|
|
388
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
389
|
-
lat: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
390
|
-
lng: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
391
|
-
loc: z.ZodOptional<z.ZodString>;
|
|
392
|
-
address: z.ZodOptional<z.ZodString>;
|
|
393
|
-
url: z.ZodOptional<z.ZodString>;
|
|
394
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
395
|
-
_serialized: z.ZodString;
|
|
396
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
397
|
-
declare const sendVCard: OpenWAMethodSchema<z.ZodObject<{
|
|
398
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
399
|
-
vcard: z.ZodString;
|
|
400
|
-
contactName: z.ZodOptional<z.ZodString>;
|
|
401
|
-
contactNumber: z.ZodOptional<z.ZodString>;
|
|
402
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
403
|
-
declare const sendContact: OpenWAMethodSchema<z.ZodObject<{
|
|
404
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
405
|
-
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">>>]>;
|
|
406
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
407
|
-
_serialized: z.ZodString;
|
|
408
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
409
|
-
declare const sendMultipleContacts: OpenWAMethodSchema<z.ZodObject<{
|
|
410
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
411
|
-
contactIds: z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
412
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
413
|
-
_serialized: z.ZodString;
|
|
414
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
415
|
-
declare const sendButtons: OpenWAMethodSchema<z.ZodObject<{
|
|
416
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
417
|
-
body: z.ZodUnion<readonly [z.ZodString, z.ZodAny]>;
|
|
418
|
-
buttons: z.ZodArray<z.ZodAny>;
|
|
419
|
-
title: z.ZodOptional<z.ZodString>;
|
|
420
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
421
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
422
|
-
_serialized: z.ZodString;
|
|
423
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
424
|
-
declare const sendAdvancedButtons: OpenWAMethodSchema<z.ZodObject<{
|
|
425
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
426
|
-
body: z.ZodUnion<readonly [z.ZodString, z.ZodAny]>;
|
|
427
|
-
buttons: z.ZodArray<z.ZodAny>;
|
|
428
|
-
text: z.ZodString;
|
|
429
|
-
footer: z.ZodString;
|
|
430
|
-
filename: z.ZodString;
|
|
431
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
432
|
-
_serialized: z.ZodString;
|
|
433
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
434
|
-
declare const sendListMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
435
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
436
|
-
sections: z.ZodArray<z.ZodAny>;
|
|
437
|
-
title: z.ZodString;
|
|
438
|
-
description: z.ZodString;
|
|
439
|
-
actionText: z.ZodString;
|
|
440
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
441
|
-
_serialized: z.ZodString;
|
|
442
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
443
|
-
declare const sendPoll: OpenWAMethodSchema<z.ZodObject<{
|
|
444
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
445
|
-
name: z.ZodString;
|
|
446
|
-
options: z.ZodArray<z.ZodString>;
|
|
447
|
-
selectableCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
448
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
449
|
-
_serialized: z.ZodString;
|
|
450
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
451
|
-
declare const sendBanner: OpenWAMethodSchema<z.ZodObject<{
|
|
452
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
453
|
-
base64: z.ZodString;
|
|
454
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
455
|
-
_serialized: z.ZodString;
|
|
456
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
457
|
-
declare const sendYouTubeLink: OpenWAMethodSchema<z.ZodObject<{
|
|
458
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
459
|
-
url: z.ZodString;
|
|
460
|
-
text: z.ZodDefault<z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Content", "out">>>;
|
|
461
|
-
thumbnail: z.ZodOptional<z.ZodString>;
|
|
462
|
-
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
463
|
-
customSize: z.ZodOptional<z.ZodObject<{
|
|
464
|
-
height: z.ZodNumber;
|
|
465
|
-
width: z.ZodNumber;
|
|
466
|
-
}, z.core.$strip>>;
|
|
467
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
468
|
-
_serialized: z.ZodString;
|
|
469
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
470
|
-
declare const sendLinkWithAutoPreview: OpenWAMethodSchema<z.ZodObject<{
|
|
471
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
472
|
-
url: z.ZodString;
|
|
473
|
-
text: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "Content", "out">>;
|
|
474
|
-
thumbnail: z.ZodOptional<z.ZodString>;
|
|
475
|
-
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
476
|
-
customSize: z.ZodOptional<z.ZodObject<{
|
|
477
|
-
height: z.ZodNumber;
|
|
478
|
-
width: z.ZodNumber;
|
|
479
|
-
}, z.core.$strip>>;
|
|
480
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
481
|
-
_serialized: z.ZodString;
|
|
482
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
483
|
-
declare const sendMessageWithThumb: OpenWAMethodSchema<z.ZodObject<{
|
|
484
|
-
thumb: z.ZodString;
|
|
485
|
-
url: z.ZodString;
|
|
486
|
-
title: z.ZodString;
|
|
487
|
-
description: z.ZodString;
|
|
488
|
-
content: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
489
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
490
|
-
quotedMsgId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>>;
|
|
491
|
-
customSize: z.ZodOptional<z.ZodObject<{
|
|
492
|
-
height: z.ZodNumber;
|
|
493
|
-
width: z.ZodNumber;
|
|
494
|
-
}, z.core.$strip>>;
|
|
495
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
496
|
-
_serialized: z.ZodString;
|
|
497
|
-
}, z.core.$loose>, z.ZodBoolean]>>;
|
|
498
|
-
declare const forwardMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
499
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
500
|
-
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">>]>;
|
|
501
|
-
skipMyMessages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
502
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
503
|
-
_serialized: z.ZodString;
|
|
504
|
-
}, z.core.$loose>>, z.ZodBoolean]>>;
|
|
505
|
-
declare const deleteMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
506
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
507
|
-
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">>]>;
|
|
508
|
-
onlyLocal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
509
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
510
|
-
declare const getMessageById: OpenWAMethodSchema<z.ZodObject<{
|
|
511
|
-
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
512
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
513
|
-
declare const getAllMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
514
|
-
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
515
|
-
includeMe: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
516
|
-
includeNotifications: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
517
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
518
|
-
declare const getMyLastMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
519
|
-
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
520
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
521
|
-
declare const getStarredMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
522
|
-
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
523
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
524
|
-
declare const getUnsentMessages: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
525
|
-
declare const getMessageInfo: OpenWAMethodSchema<z.ZodObject<{
|
|
526
|
-
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
527
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
528
|
-
declare const getVCards: OpenWAMethodSchema<z.ZodObject<{
|
|
529
|
-
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
530
|
-
}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
531
|
-
declare const getMessagesForLLM: OpenWAMethodSchema<z.ZodObject<{
|
|
532
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
533
|
-
last: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
534
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
535
|
-
declare const starMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
536
|
-
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
537
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
538
|
-
declare const unstarMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
539
|
-
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
540
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
541
|
-
declare const react: OpenWAMethodSchema<z.ZodObject<{
|
|
542
|
-
messageId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
543
|
-
emoji: z.ZodString;
|
|
544
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
545
|
-
declare const sendSeen: OpenWAMethodSchema<z.ZodObject<{
|
|
546
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
547
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
548
|
-
declare const loadEarlierMessages: OpenWAMethodSchema<z.ZodObject<{
|
|
549
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
550
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
551
|
-
includeMe: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
553
|
-
declare const sendFileFromUrl: OpenWAMethodSchema<z.ZodObject<{
|
|
554
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
555
|
-
url: z.ZodString;
|
|
556
|
-
filename: z.ZodString;
|
|
557
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
558
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
559
|
-
}, z.core.$strip>, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
560
|
-
//#endregion
|
|
561
|
-
//#region src/methods/chats.d.ts
|
|
562
|
-
declare const getAllChats: OpenWAMethodSchema<z.ZodObject<{
|
|
563
|
-
withNewMessagesOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
564
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
565
|
-
declare const getAllChatIds: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
566
|
-
declare const getChat: OpenWAMethodSchema<z.ZodObject<{
|
|
567
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
568
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
569
|
-
declare const getChatWithNonContacts: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
570
|
-
declare const archiveChat: OpenWAMethodSchema<z.ZodObject<{
|
|
571
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
572
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
573
|
-
declare const unarchiveChat: OpenWAMethodSchema<z.ZodObject<{
|
|
574
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
575
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
576
|
-
declare const clearChat: OpenWAMethodSchema<z.ZodObject<{
|
|
577
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
578
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
579
|
-
declare const deleteChat: OpenWAMethodSchema<z.ZodObject<{
|
|
580
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
581
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
582
|
-
declare const pinChat: OpenWAMethodSchema<z.ZodObject<{
|
|
583
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
584
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
585
|
-
declare const unpinChat: OpenWAMethodSchema<z.ZodObject<{
|
|
586
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
587
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
588
|
-
declare const muteChat: OpenWAMethodSchema<z.ZodObject<{
|
|
589
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
590
|
-
muteDuration: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
591
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
592
|
-
declare const unmuteChat: OpenWAMethodSchema<z.ZodObject<{
|
|
593
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
594
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
595
|
-
declare const markAsRead: OpenWAMethodSchema<z.ZodObject<{
|
|
596
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
597
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
598
|
-
declare const markAsUnread: OpenWAMethodSchema<z.ZodObject<{
|
|
599
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
600
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
601
|
-
declare const setChatEphemeral: OpenWAMethodSchema<z.ZodObject<{
|
|
602
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
603
|
-
ephemeral: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
604
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
605
|
-
declare const isChatOnline: OpenWAMethodSchema<z.ZodObject<{
|
|
606
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
607
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
608
|
-
//#endregion
|
|
609
|
-
//#region src/methods/contacts.d.ts
|
|
610
|
-
declare const getAllContacts: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
611
|
-
declare const getContact: OpenWAMethodSchema<z.ZodObject<{
|
|
612
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
613
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
614
|
-
declare const getCommonGroups: OpenWAMethodSchema<z.ZodObject<{
|
|
615
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
616
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
617
|
-
declare const getNumberProfile: OpenWAMethodSchema<z.ZodObject<{
|
|
618
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
619
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
620
|
-
declare const getBlockedIds: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
621
|
-
declare const blockContact: OpenWAMethodSchema<z.ZodObject<{
|
|
622
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
623
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
624
|
-
declare const unblockContact: OpenWAMethodSchema<z.ZodObject<{
|
|
625
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
626
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
627
|
-
declare const checkReadReceipts: OpenWAMethodSchema<z.ZodObject<{
|
|
628
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
629
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
630
|
-
declare const checkNumberStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
631
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
632
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
633
|
-
declare const getProfilePicture: OpenWAMethodSchema<z.ZodObject<{
|
|
634
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
635
|
-
}, z.core.$strip>, z.ZodString>;
|
|
636
|
-
//#endregion
|
|
637
|
-
//#region src/methods/groups.d.ts
|
|
638
|
-
declare const getGroupMembers: OpenWAMethodSchema<z.ZodObject<{
|
|
639
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
640
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
641
|
-
declare const getAllGroups: OpenWAMethodSchema<z.ZodObject<{
|
|
642
|
-
withNewMessagesOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
643
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
644
|
-
declare const getGroupMembersId: OpenWAMethodSchema<z.ZodObject<{
|
|
645
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
646
|
-
}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
647
|
-
declare const getGroupInfo: OpenWAMethodSchema<z.ZodObject<{
|
|
648
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
649
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
650
|
-
declare const getGroupAdmins: OpenWAMethodSchema<z.ZodObject<{
|
|
651
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
652
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
653
|
-
declare const getKickedGroups: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
654
|
-
declare const getGroupInviteLink: OpenWAMethodSchema<z.ZodObject<{
|
|
655
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
656
|
-
}, z.core.$strip>, z.ZodString>;
|
|
657
|
-
declare const createGroup: OpenWAMethodSchema<z.ZodObject<{
|
|
658
|
-
name: z.ZodString;
|
|
659
|
-
contacts: z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
660
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
661
|
-
declare const leaveGroup: OpenWAMethodSchema<z.ZodObject<{
|
|
662
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
663
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
664
|
-
declare const joinGroupViaLink: OpenWAMethodSchema<z.ZodObject<{
|
|
665
|
-
link: z.ZodString;
|
|
666
|
-
returnChatObj: z.ZodOptional<z.ZodBoolean>;
|
|
667
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodAny]>>;
|
|
668
|
-
declare const revokeGroupInviteLink: OpenWAMethodSchema<z.ZodObject<{
|
|
669
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
670
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
671
|
-
declare const setGroupTitle: OpenWAMethodSchema<z.ZodObject<{
|
|
672
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
673
|
-
title: z.ZodString;
|
|
674
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
675
|
-
declare const setGroupDescription: OpenWAMethodSchema<z.ZodObject<{
|
|
676
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
677
|
-
description: z.ZodString;
|
|
678
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
679
|
-
declare const setGroupIcon: OpenWAMethodSchema<z.ZodObject<{
|
|
680
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
681
|
-
image: z.ZodString;
|
|
682
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
683
|
-
declare const setGroupToAdminsOnly: OpenWAMethodSchema<z.ZodObject<{
|
|
684
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
685
|
-
onlyAdmins: z.ZodBoolean;
|
|
686
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
687
|
-
declare const setGroupEditToAdminsOnly: OpenWAMethodSchema<z.ZodObject<{
|
|
688
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
689
|
-
onlyAdmins: z.ZodBoolean;
|
|
690
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
691
|
-
declare const addParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
692
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
693
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
694
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
695
|
-
declare const removeParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
696
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
697
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
698
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
699
|
-
declare const promoteParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
700
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
701
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
702
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
703
|
-
declare const demoteParticipant: OpenWAMethodSchema<z.ZodObject<{
|
|
704
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
705
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
706
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
707
|
-
declare const approveGroupJoinRequest: OpenWAMethodSchema<z.ZodObject<{
|
|
708
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
709
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
710
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
711
|
-
declare const rejectGroupJoinRequest: OpenWAMethodSchema<z.ZodObject<{
|
|
712
|
-
groupId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
713
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
714
|
-
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
715
|
-
//#endregion
|
|
716
|
-
//#region src/methods/communities.d.ts
|
|
717
|
-
declare const getAllCommunities: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodString>>;
|
|
718
|
-
declare const getCommunityInfo: OpenWAMethodSchema<z.ZodObject<{
|
|
719
|
-
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
720
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
721
|
-
declare const getCommunityParticipantIds: OpenWAMethodSchema<z.ZodObject<{
|
|
722
|
-
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
723
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
724
|
-
declare const getCommunityAdminIds: OpenWAMethodSchema<z.ZodObject<{
|
|
725
|
-
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
726
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
727
|
-
declare const getCommunityParticipants: OpenWAMethodSchema<z.ZodObject<{
|
|
728
|
-
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
729
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
730
|
-
declare const getCommunityAdmins: OpenWAMethodSchema<z.ZodObject<{
|
|
731
|
-
communityId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
732
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region src/methods/status.d.ts
|
|
735
|
-
declare const postTextStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
736
|
-
text: z.ZodString;
|
|
737
|
-
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
738
|
-
font: z.ZodOptional<z.ZodNumber>;
|
|
739
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
740
|
-
declare const postImageStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
741
|
-
image: z.ZodString;
|
|
742
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
743
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
744
|
-
declare const postVideoStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
745
|
-
video: z.ZodString;
|
|
746
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
747
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
748
|
-
declare const getStories: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
749
|
-
declare const getStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
750
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
751
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
752
|
-
declare const deleteStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
753
|
-
statusesToDelete: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
754
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
755
|
-
declare const deleteAllStatus: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region src/methods/labels.d.ts
|
|
758
|
-
declare const getAllLabels: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
759
|
-
declare const getChatsByLabel: OpenWAMethodSchema<z.ZodObject<{
|
|
760
|
-
label: z.ZodString;
|
|
761
|
-
}, z.core.$strip>, z.ZodArray<z.ZodAny>>;
|
|
762
|
-
declare const addLabel: OpenWAMethodSchema<z.ZodObject<{
|
|
763
|
-
label: z.ZodString;
|
|
764
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
765
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
766
|
-
declare const removeLabel: OpenWAMethodSchema<z.ZodObject<{
|
|
767
|
-
label: z.ZodString;
|
|
768
|
-
chatId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
769
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
770
|
-
//#endregion
|
|
771
|
-
//#region src/methods/business.d.ts
|
|
772
|
-
declare const getBusinessProfile: OpenWAMethodSchema<z.ZodObject<{
|
|
773
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
774
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
775
|
-
declare const getBusinessProducts: OpenWAMethodSchema<z.ZodObject<{
|
|
776
|
-
contactId: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
777
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
778
|
-
declare const getOrder: OpenWAMethodSchema<z.ZodObject<{
|
|
779
|
-
id: z.ZodUnion<readonly [z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>, z.ZodString]>;
|
|
780
|
-
}, z.core.$strip>, z.ZodAny>;
|
|
781
|
-
//#endregion
|
|
782
|
-
//#region src/methods/session.d.ts
|
|
783
|
-
declare const getMe: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
784
|
-
declare const getHostNumber: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodString>;
|
|
785
|
-
declare const getConnectionState: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
786
|
-
declare const getWAVersion: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodString>;
|
|
787
|
-
declare const getBatteryLevel: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodNumber>;
|
|
788
|
-
declare const isPlugged: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodBoolean>;
|
|
789
|
-
declare const getFeatures: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
790
|
-
declare const getLicenseType: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodUnion<readonly [z.ZodAny, z.ZodBoolean]>>;
|
|
791
|
-
declare const getUserAgent: OpenWAMethodSchema<z.ZodObject<{
|
|
792
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
793
|
-
}, z.core.$strip>, z.ZodString>;
|
|
794
|
-
declare const getProcessStats: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
795
|
-
declare const getLoadedMessageCount: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodNumber>;
|
|
796
|
-
declare const getSnapshot: OpenWAMethodSchema<z.ZodObject<{
|
|
797
|
-
chatId: z.ZodOptional<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>>;
|
|
798
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
799
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
800
|
-
}, z.core.$strip>, z.ZodString>;
|
|
801
|
-
declare const healthCheck: OpenWAMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodAny>;
|
|
802
|
-
declare const setMyName: OpenWAMethodSchema<z.ZodObject<{
|
|
803
|
-
name: z.ZodString;
|
|
804
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
805
|
-
declare const setMyStatus: OpenWAMethodSchema<z.ZodObject<{
|
|
806
|
-
statusText: z.ZodString;
|
|
807
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
808
|
-
declare const setProfilePicture: OpenWAMethodSchema<z.ZodObject<{
|
|
809
|
-
image: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
810
|
-
}, z.core.$strip>, z.ZodBoolean>;
|
|
811
|
-
//#endregion
|
|
812
|
-
//#region src/methods/media.d.ts
|
|
813
|
-
declare const decryptMedia: OpenWAMethodSchema<z.ZodObject<{
|
|
814
|
-
message: z.ZodObject<{
|
|
815
|
-
id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
816
|
-
body: z.ZodString;
|
|
817
|
-
type: z.ZodEnum<typeof MessageTypes>;
|
|
818
|
-
t: z.ZodNumber;
|
|
819
|
-
notifyName: z.ZodOptional<z.ZodString>;
|
|
820
|
-
from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
821
|
-
to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
822
|
-
self: z.ZodEnum<{
|
|
823
|
-
in: "in";
|
|
824
|
-
out: "out";
|
|
825
|
-
}>;
|
|
826
|
-
ack: z.ZodEnum<typeof MessageAck>;
|
|
827
|
-
invis: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
-
isNewMsg: z.ZodOptional<z.ZodBoolean>;
|
|
829
|
-
star: z.ZodOptional<z.ZodBoolean>;
|
|
830
|
-
recvFresh: z.ZodOptional<z.ZodBoolean>;
|
|
831
|
-
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
832
|
-
isForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
833
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
834
|
-
mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
835
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
836
|
-
timestamp: z.ZodNumber;
|
|
837
|
-
content: z.ZodString;
|
|
838
|
-
isGroupMsg: z.ZodBoolean;
|
|
839
|
-
isMMS: z.ZodOptional<z.ZodBoolean>;
|
|
840
|
-
isMedia: z.ZodBoolean;
|
|
841
|
-
isNotification: z.ZodBoolean;
|
|
842
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
843
|
-
fromMe: z.ZodBoolean;
|
|
844
|
-
chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
845
|
-
author: z.ZodOptional<z.ZodString>;
|
|
846
|
-
clientUrl: z.ZodOptional<z.ZodString>;
|
|
847
|
-
deprecatedMms3Url: z.ZodOptional<z.ZodString>;
|
|
848
|
-
isQuotedMsgAvailable: z.ZodBoolean;
|
|
849
|
-
quotedMsg: z.ZodOptional<z.ZodAny>;
|
|
850
|
-
quotedMsgObj: z.ZodOptional<z.ZodAny>;
|
|
851
|
-
senderId: z.ZodOptional<z.ZodString>;
|
|
852
|
-
sender: z.ZodObject<{
|
|
853
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
854
|
-
name: z.ZodOptional<z.ZodString>;
|
|
855
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
856
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
857
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
858
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
859
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
860
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
864
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
866
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
867
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
868
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
869
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
870
|
-
server: z.ZodString;
|
|
871
|
-
user: z.ZodString;
|
|
872
|
-
_serialized: z.ZodString;
|
|
873
|
-
}, z.core.$strip>>;
|
|
874
|
-
img: z.ZodOptional<z.ZodString>;
|
|
875
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
876
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
877
|
-
}, z.core.$strip>>;
|
|
878
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
879
|
-
type: z.ZodOptional<z.ZodString>;
|
|
880
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
881
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
882
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
883
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
884
|
-
}, z.core.$loose>;
|
|
885
|
-
chat: z.ZodObject<{
|
|
886
|
-
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
887
|
-
name: z.ZodOptional<z.ZodString>;
|
|
888
|
-
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
889
|
-
isGroup: z.ZodBoolean;
|
|
890
|
-
contact: z.ZodObject<{
|
|
891
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
892
|
-
name: z.ZodOptional<z.ZodString>;
|
|
893
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
894
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
895
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
896
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
897
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
898
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
899
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
900
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
901
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
903
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
904
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
905
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
906
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
907
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
908
|
-
server: z.ZodString;
|
|
909
|
-
user: z.ZodString;
|
|
910
|
-
_serialized: z.ZodString;
|
|
911
|
-
}, z.core.$strip>>;
|
|
912
|
-
img: z.ZodOptional<z.ZodString>;
|
|
913
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
914
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
915
|
-
}, z.core.$strip>>;
|
|
916
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
917
|
-
type: z.ZodOptional<z.ZodString>;
|
|
918
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
919
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
920
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
921
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
922
|
-
}, z.core.$loose>;
|
|
923
|
-
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
924
|
-
presence: z.ZodOptional<z.ZodAny>;
|
|
925
|
-
t: z.ZodOptional<z.ZodNumber>;
|
|
926
|
-
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
927
|
-
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
928
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
929
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
930
|
-
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
931
|
-
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
932
|
-
pin: z.ZodOptional<z.ZodNumber>;
|
|
933
|
-
ack: z.ZodOptional<z.ZodAny>;
|
|
934
|
-
}, z.core.$loose>;
|
|
935
|
-
}, z.core.$loose>;
|
|
936
|
-
}, z.core.$strip>, z.ZodString>;
|
|
937
|
-
declare const downloadMedia: OpenWAMethodSchema<z.ZodObject<{
|
|
938
|
-
message: z.ZodObject<{
|
|
939
|
-
id: z.core.$ZodBranded<z.ZodString, "MessageId", "out">;
|
|
940
|
-
body: z.ZodString;
|
|
941
|
-
type: z.ZodEnum<typeof MessageTypes>;
|
|
942
|
-
t: z.ZodNumber;
|
|
943
|
-
notifyName: z.ZodOptional<z.ZodString>;
|
|
944
|
-
from: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
945
|
-
to: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
946
|
-
self: z.ZodEnum<{
|
|
947
|
-
in: "in";
|
|
948
|
-
out: "out";
|
|
949
|
-
}>;
|
|
950
|
-
ack: z.ZodEnum<typeof MessageAck>;
|
|
951
|
-
invis: z.ZodOptional<z.ZodBoolean>;
|
|
952
|
-
isNewMsg: z.ZodOptional<z.ZodBoolean>;
|
|
953
|
-
star: z.ZodOptional<z.ZodBoolean>;
|
|
954
|
-
recvFresh: z.ZodOptional<z.ZodBoolean>;
|
|
955
|
-
broadcast: z.ZodOptional<z.ZodBoolean>;
|
|
956
|
-
isForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
957
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
958
|
-
mentionedJidList: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>;
|
|
959
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
960
|
-
timestamp: z.ZodNumber;
|
|
961
|
-
content: z.ZodString;
|
|
962
|
-
isGroupMsg: z.ZodBoolean;
|
|
963
|
-
isMMS: z.ZodOptional<z.ZodBoolean>;
|
|
964
|
-
isMedia: z.ZodBoolean;
|
|
965
|
-
isNotification: z.ZodBoolean;
|
|
966
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
967
|
-
fromMe: z.ZodBoolean;
|
|
968
|
-
chatId: z.core.$ZodBranded<z.ZodString, "ChatId", "out">;
|
|
969
|
-
author: z.ZodOptional<z.ZodString>;
|
|
970
|
-
clientUrl: z.ZodOptional<z.ZodString>;
|
|
971
|
-
deprecatedMms3Url: z.ZodOptional<z.ZodString>;
|
|
972
|
-
isQuotedMsgAvailable: z.ZodBoolean;
|
|
973
|
-
quotedMsg: z.ZodOptional<z.ZodAny>;
|
|
974
|
-
quotedMsgObj: z.ZodOptional<z.ZodAny>;
|
|
975
|
-
senderId: z.ZodOptional<z.ZodString>;
|
|
976
|
-
sender: z.ZodObject<{
|
|
977
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
978
|
-
name: z.ZodOptional<z.ZodString>;
|
|
979
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
980
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
981
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
982
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
983
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
984
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
985
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
986
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
988
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
989
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
990
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
991
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
992
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
993
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
994
|
-
server: z.ZodString;
|
|
995
|
-
user: z.ZodString;
|
|
996
|
-
_serialized: z.ZodString;
|
|
997
|
-
}, z.core.$strip>>;
|
|
998
|
-
img: z.ZodOptional<z.ZodString>;
|
|
999
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
1000
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
1001
|
-
}, z.core.$strip>>;
|
|
1002
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
1003
|
-
type: z.ZodOptional<z.ZodString>;
|
|
1004
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
1005
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
1006
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1007
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
1008
|
-
}, z.core.$loose>;
|
|
1009
|
-
chat: z.ZodObject<{
|
|
1010
|
-
id: z.ZodUnion<[z.core.$ZodBranded<z.ZodString, "ContactId", "out">, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">]>;
|
|
1011
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
formattedTitle: z.ZodOptional<z.ZodString>;
|
|
1013
|
-
isGroup: z.ZodBoolean;
|
|
1014
|
-
contact: z.ZodObject<{
|
|
1015
|
-
id: z.core.$ZodBranded<z.ZodString, "ContactId", "out">;
|
|
1016
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1017
|
-
shortName: z.ZodOptional<z.ZodString>;
|
|
1018
|
-
pushname: z.ZodOptional<z.ZodString>;
|
|
1019
|
-
formattedName: z.ZodOptional<z.ZodString>;
|
|
1020
|
-
isBusiness: z.ZodOptional<z.ZodBoolean>;
|
|
1021
|
-
isEnterprise: z.ZodOptional<z.ZodBoolean>;
|
|
1022
|
-
isMe: z.ZodOptional<z.ZodBoolean>;
|
|
1023
|
-
isMyContact: z.ZodOptional<z.ZodBoolean>;
|
|
1024
|
-
isPSA: z.ZodOptional<z.ZodBoolean>;
|
|
1025
|
-
isUser: z.ZodOptional<z.ZodBoolean>;
|
|
1026
|
-
isWAContact: z.ZodOptional<z.ZodBoolean>;
|
|
1027
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1028
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
1029
|
-
profilePicThumbObj: z.ZodOptional<z.ZodObject<{
|
|
1030
|
-
eurl: z.ZodOptional<z.ZodString>;
|
|
1031
|
-
id: z.ZodOptional<z.ZodObject<{
|
|
1032
|
-
server: z.ZodString;
|
|
1033
|
-
user: z.ZodString;
|
|
1034
|
-
_serialized: z.ZodString;
|
|
1035
|
-
}, z.core.$strip>>;
|
|
1036
|
-
img: z.ZodOptional<z.ZodString>;
|
|
1037
|
-
imgFull: z.ZodOptional<z.ZodString>;
|
|
1038
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
1039
|
-
}, z.core.$strip>>;
|
|
1040
|
-
statusMute: z.ZodOptional<z.ZodBoolean>;
|
|
1041
|
-
type: z.ZodOptional<z.ZodString>;
|
|
1042
|
-
verifiedLevel: z.ZodOptional<z.ZodNumber>;
|
|
1043
|
-
verifiedName: z.ZodOptional<z.ZodString>;
|
|
1044
|
-
isOnline: z.ZodOptional<z.ZodBoolean>;
|
|
1045
|
-
lastSeen: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
-
}, z.core.$loose>;
|
|
1047
|
-
groupMetadata: z.ZodOptional<z.ZodAny>;
|
|
1048
|
-
presence: z.ZodOptional<z.ZodAny>;
|
|
1049
|
-
t: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
-
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
1051
|
-
lastReceivedKey: z.ZodOptional<z.ZodAny>;
|
|
1052
|
-
msgs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
1053
|
-
isReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1054
|
-
muteExpiration: z.ZodOptional<z.ZodNumber>;
|
|
1055
|
-
notSpam: z.ZodOptional<z.ZodBoolean>;
|
|
1056
|
-
pin: z.ZodOptional<z.ZodNumber>;
|
|
1057
|
-
ack: z.ZodOptional<z.ZodAny>;
|
|
1058
|
-
}, z.core.$loose>;
|
|
1059
|
-
}, z.core.$loose>;
|
|
1060
|
-
path: z.ZodString;
|
|
1061
|
-
}, z.core.$strip>, z.ZodString>;
|
|
1062
|
-
//#endregion
|
|
1063
|
-
//#region src/methods/interactive.d.ts
|
|
1064
|
-
declare const SendInteractiveInputSchema: z.ZodObject<{
|
|
1065
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1066
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1067
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1068
|
-
body: z.ZodString;
|
|
1069
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1070
|
-
type: z.ZodLiteral<"buttons">;
|
|
1071
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1072
|
-
type: z.ZodLiteral<"text">;
|
|
1073
|
-
text: z.ZodString;
|
|
1074
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1075
|
-
source: z.ZodString;
|
|
1076
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1077
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1078
|
-
type: z.ZodLiteral<"image">;
|
|
1079
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1080
|
-
source: z.ZodString;
|
|
1081
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1082
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1083
|
-
type: z.ZodLiteral<"video">;
|
|
1084
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1085
|
-
source: z.ZodString;
|
|
1086
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1087
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1088
|
-
type: z.ZodLiteral<"document">;
|
|
1089
|
-
}, z.core.$strict>], "type">>;
|
|
1090
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1091
|
-
type: z.ZodLiteral<"reply">;
|
|
1092
|
-
id: z.ZodString;
|
|
1093
|
-
label: z.ZodString;
|
|
1094
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1095
|
-
type: z.ZodLiteral<"url">;
|
|
1096
|
-
label: z.ZodString;
|
|
1097
|
-
url: z.ZodURL;
|
|
1098
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1099
|
-
type: z.ZodLiteral<"call">;
|
|
1100
|
-
label: z.ZodString;
|
|
1101
|
-
phoneNumber: z.ZodString;
|
|
1102
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1103
|
-
type: z.ZodLiteral<"copy">;
|
|
1104
|
-
label: z.ZodString;
|
|
1105
|
-
code: z.ZodString;
|
|
1106
|
-
}, z.core.$strict>], "type">>;
|
|
1107
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1108
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1109
|
-
body: z.ZodString;
|
|
1110
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1111
|
-
type: z.ZodLiteral<"list">;
|
|
1112
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1113
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1114
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
1115
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1116
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1117
|
-
id: z.ZodString;
|
|
1118
|
-
title: z.ZodString;
|
|
1119
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1120
|
-
}, z.core.$strict>>;
|
|
1121
|
-
}, z.core.$strict>>;
|
|
1122
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1123
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1124
|
-
body: z.ZodString;
|
|
1125
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1126
|
-
type: z.ZodLiteral<"form">;
|
|
1127
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1128
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
1129
|
-
type: z.ZodEnum<{
|
|
1130
|
-
multiSelect: "multiSelect";
|
|
1131
|
-
singleSelect: "singleSelect";
|
|
1132
|
-
}>;
|
|
1133
|
-
id: z.ZodString;
|
|
1134
|
-
label: z.ZodString;
|
|
1135
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1136
|
-
id: z.ZodString;
|
|
1137
|
-
label: z.ZodString;
|
|
1138
|
-
}, z.core.$strict>>;
|
|
1139
|
-
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1140
|
-
}, z.core.$strict>>;
|
|
1141
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1142
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1143
|
-
body: z.ZodString;
|
|
1144
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1145
|
-
type: z.ZodLiteral<"carousel">;
|
|
1146
|
-
cards: z.ZodArray<z.ZodObject<{
|
|
1147
|
-
body: z.ZodString;
|
|
1148
|
-
header: z.ZodObject<{
|
|
1149
|
-
source: z.ZodString;
|
|
1150
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1151
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1152
|
-
type: z.ZodLiteral<"image">;
|
|
1153
|
-
}, z.core.$strict>;
|
|
1154
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1155
|
-
type: z.ZodLiteral<"reply">;
|
|
1156
|
-
id: z.ZodString;
|
|
1157
|
-
label: z.ZodString;
|
|
1158
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1159
|
-
type: z.ZodLiteral<"url">;
|
|
1160
|
-
label: z.ZodString;
|
|
1161
|
-
url: z.ZodURL;
|
|
1162
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1163
|
-
type: z.ZodLiteral<"call">;
|
|
1164
|
-
label: z.ZodString;
|
|
1165
|
-
phoneNumber: z.ZodString;
|
|
1166
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1167
|
-
type: z.ZodLiteral<"copy">;
|
|
1168
|
-
label: z.ZodString;
|
|
1169
|
-
code: z.ZodString;
|
|
1170
|
-
}, z.core.$strict>], "type">>;
|
|
1171
|
-
}, z.core.$strict>>;
|
|
1172
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1173
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1174
|
-
body: z.ZodString;
|
|
1175
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1176
|
-
type: z.ZodLiteral<"booking">;
|
|
1177
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1178
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1179
|
-
booking: z.ZodObject<{
|
|
1180
|
-
startAt: z.ZodISODateTime;
|
|
1181
|
-
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1182
|
-
location: z.ZodOptional<z.ZodString>;
|
|
1183
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
1184
|
-
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
1185
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1186
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
1187
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1188
|
-
labels: z.ZodOptional<z.ZodObject<{
|
|
1189
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1190
|
-
meetingType: z.ZodOptional<z.ZodString>;
|
|
1191
|
-
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
1192
|
-
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
1193
|
-
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
1194
|
-
manageBooking: z.ZodOptional<z.ZodString>;
|
|
1195
|
-
}, z.core.$strict>>;
|
|
1196
|
-
}, z.core.$strict>;
|
|
1197
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1198
|
-
type: z.ZodLiteral<"url">;
|
|
1199
|
-
label: z.ZodString;
|
|
1200
|
-
url: z.ZodURL;
|
|
1201
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1202
|
-
type: z.ZodLiteral<"call">;
|
|
1203
|
-
label: z.ZodString;
|
|
1204
|
-
phoneNumber: z.ZodString;
|
|
1205
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1206
|
-
type: z.ZodLiteral<"copy">;
|
|
1207
|
-
label: z.ZodString;
|
|
1208
|
-
code: z.ZodString;
|
|
1209
|
-
}, z.core.$strict>], "type">>>;
|
|
1210
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1211
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1212
|
-
body: z.ZodString;
|
|
1213
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1214
|
-
type: z.ZodLiteral<"native">;
|
|
1215
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1216
|
-
type: z.ZodLiteral<"text">;
|
|
1217
|
-
text: z.ZodString;
|
|
1218
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1219
|
-
source: z.ZodString;
|
|
1220
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1221
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1222
|
-
type: z.ZodLiteral<"image">;
|
|
1223
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1224
|
-
source: z.ZodString;
|
|
1225
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1226
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1227
|
-
type: z.ZodLiteral<"video">;
|
|
1228
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1229
|
-
source: z.ZodString;
|
|
1230
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1231
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1232
|
-
type: z.ZodLiteral<"document">;
|
|
1233
|
-
}, z.core.$strict>], "type">>;
|
|
1234
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
1235
|
-
name: z.ZodString;
|
|
1236
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1237
|
-
}, z.core.$strict>>;
|
|
1238
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1239
|
-
}, z.core.$strict>], "type">;
|
|
1240
|
-
}, z.core.$strict>;
|
|
1241
|
-
declare const SendRawMessageInputSchema: z.ZodObject<{
|
|
1242
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1243
|
-
payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1244
|
-
}, z.core.$strict>;
|
|
1245
|
-
declare const sendInteractive: OpenWAMethodSchema<z.ZodObject<{
|
|
1246
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1247
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1248
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1249
|
-
body: z.ZodString;
|
|
1250
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
type: z.ZodLiteral<"buttons">;
|
|
1252
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1253
|
-
type: z.ZodLiteral<"text">;
|
|
1254
|
-
text: z.ZodString;
|
|
1255
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1256
|
-
source: z.ZodString;
|
|
1257
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1258
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1259
|
-
type: z.ZodLiteral<"image">;
|
|
1260
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1261
|
-
source: z.ZodString;
|
|
1262
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1263
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1264
|
-
type: z.ZodLiteral<"video">;
|
|
1265
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1266
|
-
source: z.ZodString;
|
|
1267
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1268
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1269
|
-
type: z.ZodLiteral<"document">;
|
|
1270
|
-
}, z.core.$strict>], "type">>;
|
|
1271
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1272
|
-
type: z.ZodLiteral<"reply">;
|
|
1273
|
-
id: z.ZodString;
|
|
1274
|
-
label: z.ZodString;
|
|
1275
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1276
|
-
type: z.ZodLiteral<"url">;
|
|
1277
|
-
label: z.ZodString;
|
|
1278
|
-
url: z.ZodURL;
|
|
1279
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1280
|
-
type: z.ZodLiteral<"call">;
|
|
1281
|
-
label: z.ZodString;
|
|
1282
|
-
phoneNumber: z.ZodString;
|
|
1283
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1284
|
-
type: z.ZodLiteral<"copy">;
|
|
1285
|
-
label: z.ZodString;
|
|
1286
|
-
code: z.ZodString;
|
|
1287
|
-
}, z.core.$strict>], "type">>;
|
|
1288
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1289
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1290
|
-
body: z.ZodString;
|
|
1291
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1292
|
-
type: z.ZodLiteral<"list">;
|
|
1293
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1294
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1295
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
1296
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1297
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1298
|
-
id: z.ZodString;
|
|
1299
|
-
title: z.ZodString;
|
|
1300
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1301
|
-
}, z.core.$strict>>;
|
|
1302
|
-
}, z.core.$strict>>;
|
|
1303
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1304
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1305
|
-
body: z.ZodString;
|
|
1306
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1307
|
-
type: z.ZodLiteral<"form">;
|
|
1308
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1309
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
1310
|
-
type: z.ZodEnum<{
|
|
1311
|
-
multiSelect: "multiSelect";
|
|
1312
|
-
singleSelect: "singleSelect";
|
|
1313
|
-
}>;
|
|
1314
|
-
id: z.ZodString;
|
|
1315
|
-
label: z.ZodString;
|
|
1316
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1317
|
-
id: z.ZodString;
|
|
1318
|
-
label: z.ZodString;
|
|
1319
|
-
}, z.core.$strict>>;
|
|
1320
|
-
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1321
|
-
}, z.core.$strict>>;
|
|
1322
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1323
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1324
|
-
body: z.ZodString;
|
|
1325
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1326
|
-
type: z.ZodLiteral<"carousel">;
|
|
1327
|
-
cards: z.ZodArray<z.ZodObject<{
|
|
1328
|
-
body: z.ZodString;
|
|
1329
|
-
header: z.ZodObject<{
|
|
1330
|
-
source: z.ZodString;
|
|
1331
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1332
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1333
|
-
type: z.ZodLiteral<"image">;
|
|
1334
|
-
}, z.core.$strict>;
|
|
1335
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1336
|
-
type: z.ZodLiteral<"reply">;
|
|
1337
|
-
id: z.ZodString;
|
|
1338
|
-
label: z.ZodString;
|
|
1339
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1340
|
-
type: z.ZodLiteral<"url">;
|
|
1341
|
-
label: z.ZodString;
|
|
1342
|
-
url: z.ZodURL;
|
|
1343
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1344
|
-
type: z.ZodLiteral<"call">;
|
|
1345
|
-
label: z.ZodString;
|
|
1346
|
-
phoneNumber: z.ZodString;
|
|
1347
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1348
|
-
type: z.ZodLiteral<"copy">;
|
|
1349
|
-
label: z.ZodString;
|
|
1350
|
-
code: z.ZodString;
|
|
1351
|
-
}, z.core.$strict>], "type">>;
|
|
1352
|
-
}, z.core.$strict>>;
|
|
1353
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1354
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1355
|
-
body: z.ZodString;
|
|
1356
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1357
|
-
type: z.ZodLiteral<"booking">;
|
|
1358
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1359
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1360
|
-
booking: z.ZodObject<{
|
|
1361
|
-
startAt: z.ZodISODateTime;
|
|
1362
|
-
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1363
|
-
location: z.ZodOptional<z.ZodString>;
|
|
1364
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
1365
|
-
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
1366
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1367
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
1368
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1369
|
-
labels: z.ZodOptional<z.ZodObject<{
|
|
1370
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1371
|
-
meetingType: z.ZodOptional<z.ZodString>;
|
|
1372
|
-
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
1373
|
-
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
1374
|
-
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
1375
|
-
manageBooking: z.ZodOptional<z.ZodString>;
|
|
1376
|
-
}, z.core.$strict>>;
|
|
1377
|
-
}, z.core.$strict>;
|
|
1378
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1379
|
-
type: z.ZodLiteral<"url">;
|
|
1380
|
-
label: z.ZodString;
|
|
1381
|
-
url: z.ZodURL;
|
|
1382
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1383
|
-
type: z.ZodLiteral<"call">;
|
|
1384
|
-
label: z.ZodString;
|
|
1385
|
-
phoneNumber: z.ZodString;
|
|
1386
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1387
|
-
type: z.ZodLiteral<"copy">;
|
|
1388
|
-
label: z.ZodString;
|
|
1389
|
-
code: z.ZodString;
|
|
1390
|
-
}, z.core.$strict>], "type">>>;
|
|
1391
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1392
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1393
|
-
body: z.ZodString;
|
|
1394
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1395
|
-
type: z.ZodLiteral<"native">;
|
|
1396
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1397
|
-
type: z.ZodLiteral<"text">;
|
|
1398
|
-
text: z.ZodString;
|
|
1399
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1400
|
-
source: z.ZodString;
|
|
1401
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1402
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1403
|
-
type: z.ZodLiteral<"image">;
|
|
1404
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1405
|
-
source: z.ZodString;
|
|
1406
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1407
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1408
|
-
type: z.ZodLiteral<"video">;
|
|
1409
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1410
|
-
source: z.ZodString;
|
|
1411
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1412
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1413
|
-
type: z.ZodLiteral<"document">;
|
|
1414
|
-
}, z.core.$strict>], "type">>;
|
|
1415
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
1416
|
-
name: z.ZodString;
|
|
1417
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1418
|
-
}, z.core.$strict>>;
|
|
1419
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1420
|
-
}, z.core.$strict>], "type">;
|
|
1421
|
-
}, z.core.$strict>, z.ZodString>;
|
|
1422
|
-
declare const sendRawMessage: OpenWAMethodSchema<z.ZodObject<{
|
|
1423
|
-
to: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1424
|
-
payload: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1425
|
-
}, z.core.$strict>, z.ZodString>;
|
|
1426
|
-
declare namespace index_d_exports {
|
|
1427
|
-
export { SendInteractiveInputSchema, SendRawMessageInputSchema, addLabel, addParticipant, approveGroupJoinRequest, archiveChat, blockContact, checkNumberStatus, checkReadReceipts, clearChat, createGroup, decryptMedia, deleteAllStatus, deleteChat, deleteMessage, deleteStatus, demoteParticipant, downloadMedia, forwardMessages, getAllChatIds, getAllChats, getAllCommunities, getAllContacts, getAllGroups, getAllLabels, getAllMessages, getBatteryLevel, getBlockedIds, getBusinessProducts, getBusinessProfile, getChat, getChatWithNonContacts, getChatsByLabel, getCommonGroups, getCommunityAdminIds, getCommunityAdmins, getCommunityInfo, getCommunityParticipantIds, getCommunityParticipants, getConnectionState, getContact, getFeatures, getGroupAdmins, getGroupInfo, getGroupInviteLink, getGroupMembers, getGroupMembersId, getHostNumber, getKickedGroups, getLicenseType, getLoadedMessageCount, getMe, getMessageById, getMessageInfo, getMessagesForLLM, getMyLastMessage, getNumberProfile, getOrder, getProcessStats, getProfilePicture, getSnapshot, getStarredMessages, getStatus, getStories, getUnsentMessages, getUserAgent, getVCards, getWAVersion, healthCheck, isChatOnline, isPlugged, joinGroupViaLink, leaveGroup, loadEarlierMessages, markAsRead, markAsUnread, muteChat, pinChat, postImageStatus, postTextStatus, postVideoStatus, promoteParticipant, react, rejectGroupJoinRequest, removeLabel, removeParticipant, revokeGroupInviteLink, sendAdvancedButtons, sendAudio, sendBanner, sendButtons, sendContact, sendFile, sendFileFromUrl, sendImage, sendInteractive, sendLinkWithAutoPreview, sendListMessage, sendLocation, sendMessageWithThumb, sendMultipleContacts, sendPaymentRequest, sendPoll, sendPtt, sendRawMessage, sendReplyWithMentions, sendSeen, sendText, sendTextWithMentions, sendVCard, sendVideoAsGif, sendYouTubeLink, setChatEphemeral, setGroupDescription, setGroupEditToAdminsOnly, setGroupIcon, setGroupTitle, setGroupToAdminsOnly, setMyName, setMyStatus, setProfilePicture, starMessage, unarchiveChat, unblockContact, unmuteChat, unpinChat, unstarMessage };
|
|
1428
|
-
}
|
|
1429
|
-
//#endregion
|
|
1430
|
-
//#region src/events/registry.d.ts
|
|
1431
|
-
type QueueOverloadStrategy = 'backpressure' | 'dropping';
|
|
1432
|
-
interface QueueOptions {
|
|
1433
|
-
concurrency?: number;
|
|
1434
|
-
capacity?: number;
|
|
1435
|
-
overload?: QueueOverloadStrategy;
|
|
1436
|
-
ordering?: 'fifo';
|
|
1437
|
-
intervalCap?: number;
|
|
1438
|
-
interval?: number;
|
|
1439
|
-
timeout?: number;
|
|
1440
|
-
}
|
|
1441
|
-
type EventStatus = 'stable' | 'beta' | 'deprecated' | 'experimental';
|
|
1442
|
-
interface EventMetadata {
|
|
1443
|
-
eventName: string;
|
|
1444
|
-
legacyName: string;
|
|
1445
|
-
description?: string;
|
|
1446
|
-
namespace?: string;
|
|
1447
|
-
status?: EventStatus;
|
|
1448
|
-
deprecated?: string;
|
|
1449
|
-
license?: LicenseTier;
|
|
1450
|
-
since?: string;
|
|
1451
|
-
payloadSchema: z.ZodTypeAny;
|
|
1452
|
-
defaultQueueOptions?: QueueOptions;
|
|
1453
|
-
}
|
|
1454
|
-
interface EventDefinition {
|
|
1455
|
-
callbackSchema: z.ZodFunction<any, any>;
|
|
1456
|
-
meta: EventMetadata;
|
|
1457
|
-
}
|
|
1458
|
-
declare const eventRegistry: {
|
|
1459
|
-
register(def: EventDefinition): z.ZodFunction<any, any>;
|
|
1460
|
-
get(name: string): EventDefinition | undefined;
|
|
1461
|
-
getByLegacyName(legacyName: string): EventDefinition | undefined;
|
|
1462
|
-
has(name: string): boolean;
|
|
1463
|
-
getAll(): EventDefinition[];
|
|
1464
|
-
getByNamespace(namespace: string): EventDefinition[];
|
|
1465
|
-
clear(): void;
|
|
1466
|
-
};
|
|
1467
|
-
declare const QueueOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
1468
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1469
|
-
capacity: z.ZodOptional<z.ZodNumber>;
|
|
1470
|
-
overload: z.ZodOptional<z.ZodEnum<{
|
|
1471
|
-
backpressure: "backpressure";
|
|
1472
|
-
dropping: "dropping";
|
|
1473
|
-
}>>;
|
|
1474
|
-
ordering: z.ZodOptional<z.ZodLiteral<"fifo">>;
|
|
1475
|
-
intervalCap: z.ZodOptional<z.ZodNumber>;
|
|
1476
|
-
interval: z.ZodOptional<z.ZodNumber>;
|
|
1477
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1478
|
-
}, z.core.$strip>>;
|
|
1479
|
-
declare function defineListenerV2<T extends z.ZodTypeAny>(name: string, params: {
|
|
1480
|
-
legacyName?: string;
|
|
1481
|
-
meta: Omit<EventMetadata, 'eventName' | 'legacyName' | 'payloadSchema'>;
|
|
1482
|
-
payload: T;
|
|
1483
|
-
defaultQueueOptions?: QueueOptions;
|
|
1484
|
-
}): z.ZodFunction<any, any>;
|
|
1485
|
-
//#endregion
|
|
1486
|
-
//#region src/events/messaging.d.ts
|
|
1487
|
-
declare const messageEvent: z.ZodFunction<any, any>;
|
|
1488
|
-
declare const anyMessageEvent: z.ZodFunction<any, any>;
|
|
1489
|
-
declare const messageDeletedEvent: z.ZodFunction<any, any>;
|
|
1490
|
-
declare const ackEvent: z.ZodFunction<any, any>;
|
|
1491
|
-
declare const reactionEvent: z.ZodFunction<any, any>;
|
|
1492
|
-
declare const interactiveResponseEvent: z.ZodFunction<any, any>;
|
|
1493
|
-
declare const formResponseEvent: z.ZodFunction<any, any>;
|
|
1494
|
-
//#endregion
|
|
1495
|
-
//#region src/events/state.d.ts
|
|
1496
|
-
declare const StateEnum: z.ZodEnum<{
|
|
1497
|
-
AUTHENTICATING: "AUTHENTICATING";
|
|
1498
|
-
CONFLICT: "CONFLICT";
|
|
1499
|
-
CONNECTED: "CONNECTED";
|
|
1500
|
-
DISCONNECTED: "DISCONNECTED";
|
|
1501
|
-
PAIRING: "PAIRING";
|
|
1502
|
-
READY: "READY";
|
|
1503
|
-
STARTING: "STARTING";
|
|
1504
|
-
STOPPED: "STOPPED";
|
|
1505
|
-
SYNCING: "SYNCING";
|
|
1506
|
-
TIMEOUT: "TIMEOUT";
|
|
1507
|
-
UNLAUNCHED: "UNLAUNCHED";
|
|
1508
|
-
}>;
|
|
1509
|
-
declare const stateChangedEvent: z.ZodFunction<any, any>;
|
|
1510
|
-
declare const chatStateEvent: z.ZodFunction<any, any>;
|
|
1511
|
-
declare const logoutEvent: z.ZodFunction<any, any>;
|
|
1512
|
-
//#endregion
|
|
1513
|
-
//#region src/events/groups.d.ts
|
|
1514
|
-
declare const participantsChangedEvent: z.ZodFunction<any, any>;
|
|
1515
|
-
declare const addedToGroupEvent: z.ZodFunction<any, any>;
|
|
1516
|
-
//#endregion
|
|
1517
|
-
//#region src/codecs.d.ts
|
|
1518
|
-
declare const chatIdCodec: {
|
|
1519
|
-
decode: (input: string) => string;
|
|
1520
|
-
encode: (chatId: string) => string;
|
|
1521
|
-
};
|
|
1522
|
-
declare const contactIdCodec: {
|
|
1523
|
-
decode: (input: string) => string;
|
|
1524
|
-
encode: (contactId: string) => string;
|
|
1525
|
-
};
|
|
1526
|
-
declare const groupIdCodec: {
|
|
1527
|
-
decode: (input: string) => string;
|
|
1528
|
-
encode: (groupId: string) => string;
|
|
1529
|
-
};
|
|
1530
|
-
declare const messageIdCodec: {
|
|
1531
|
-
decode: (input: string) => string;
|
|
1532
|
-
encode: (messageId: string) => string;
|
|
1533
|
-
};
|
|
1534
|
-
declare const createFileCodec: (outputType: string) => {
|
|
1535
|
-
decode: (input: unknown) => Promise<unknown>;
|
|
1536
|
-
encode: (output: unknown) => unknown;
|
|
1537
|
-
};
|
|
1538
|
-
declare const fileToDataUrlCodec: {
|
|
1539
|
-
decode: (input: unknown) => Promise<unknown>;
|
|
1540
|
-
encode: (output: unknown) => unknown;
|
|
1541
|
-
};
|
|
1542
|
-
declare const fileToBase64Codec: {
|
|
1543
|
-
decode: (input: unknown) => Promise<unknown>;
|
|
1544
|
-
encode: (output: unknown) => unknown;
|
|
1545
|
-
};
|
|
1546
|
-
declare const fileToBufferCodec: {
|
|
1547
|
-
decode: (input: unknown) => Promise<unknown>;
|
|
1548
|
-
encode: (output: unknown) => unknown;
|
|
1549
|
-
};
|
|
1550
|
-
declare const fileToTempPathCodec: {
|
|
1551
|
-
decode: (input: unknown) => Promise<unknown>;
|
|
1552
|
-
encode: (output: unknown) => unknown;
|
|
1553
|
-
};
|
|
1554
|
-
declare const fileToStreamCodec: {
|
|
1555
|
-
decode: (input: unknown) => Promise<unknown>;
|
|
1556
|
-
encode: (output: unknown) => unknown;
|
|
1557
|
-
};
|
|
1558
|
-
declare const base64ToDataUrlCodec: {
|
|
1559
|
-
decode: (base64: string) => string;
|
|
1560
|
-
encode: (dataUrl: string) => string;
|
|
1561
|
-
};
|
|
1562
|
-
declare const urlToDataUrlCodec: {
|
|
1563
|
-
decode: (url: string) => Promise<string>;
|
|
1564
|
-
encode: (_dataUrl: string) => string;
|
|
1565
|
-
};
|
|
1566
|
-
declare const isoDatetimeToDate: {
|
|
1567
|
-
decode: (isoString: string) => Date;
|
|
1568
|
-
encode: (date: Date) => string;
|
|
1569
|
-
};
|
|
1570
|
-
declare const unixSecondsToDate: {
|
|
1571
|
-
decode: (seconds: number) => Date;
|
|
1572
|
-
encode: (date: Date) => number;
|
|
1573
|
-
};
|
|
1574
|
-
declare const unixMillisToDate: {
|
|
1575
|
-
decode: (millis: number) => Date;
|
|
1576
|
-
encode: (date: Date) => number;
|
|
1577
|
-
};
|
|
1578
|
-
declare const hexColorCodec: {
|
|
1579
|
-
decode: (input: string) => string;
|
|
1580
|
-
encode: (hex: string) => string;
|
|
1581
|
-
};
|
|
1582
|
-
declare const jsonStringCodec: <T>(schema: z.ZodType<T>) => z.ZodCodec<z.ZodString, z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>>;
|
|
1583
|
-
declare const ChatIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1584
|
-
declare const ContactIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
1585
|
-
declare const GroupIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1586
|
-
declare const MessageIdSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
1587
|
-
declare const ChatIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1588
|
-
declare const ContactIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
1589
|
-
declare const GroupIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1590
|
-
declare const MessageIdCodecSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
1591
|
-
declare const FileToDataUrlSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1592
|
-
declare const Base64ToDataUrlSchema: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1593
|
-
declare const HexColorSchema: z.ZodCodec<z.ZodString, z.ZodString>;
|
|
1594
|
-
declare const IsoDatetimeToDateSchema: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
|
|
1595
|
-
declare const UnixSecondsToDateSchema: z.ZodCodec<z.ZodNumber, z.ZodDate>;
|
|
1596
|
-
declare const UnixMillisToDateSchema: z.ZodCodec<z.ZodNumber, z.ZodDate>;
|
|
1597
|
-
//#endregion
|
|
1598
|
-
//#region src/parameters.d.ts
|
|
1599
|
-
declare const chatIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1600
|
-
declare const contactIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>;
|
|
1601
|
-
declare const groupIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1602
|
-
declare const communityIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "GroupChatId", "out">>;
|
|
1603
|
-
declare const messageIdParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "MessageId", "out">>;
|
|
1604
|
-
declare const toParam: z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ChatId", "out">>;
|
|
1605
|
-
declare const contentParam: z.core.$ZodBranded<z.ZodString, "Content", "out">;
|
|
1606
|
-
declare const captionParam: z.ZodOptional<z.ZodString>;
|
|
1607
|
-
declare const filenameParam: z.ZodOptional<z.ZodString>;
|
|
1608
|
-
declare const userAgentParam: z.ZodOptional<z.ZodString>;
|
|
1609
|
-
declare const nameParam: z.ZodString;
|
|
1610
|
-
declare const statusTextParam: z.ZodString;
|
|
1611
|
-
declare const imageDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1612
|
-
declare const fileDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1613
|
-
declare const audioDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1614
|
-
declare const videoDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1615
|
-
declare const documentDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1616
|
-
declare const stickerDataParam: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Buffer<ArrayBufferLike>>]>, z.ZodTransform<unknown, string | Buffer<ArrayBufferLike>>>, z.core.$ZodBranded<z.ZodString, "DataURL", "out">>;
|
|
1617
|
-
declare const latitudeParam: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1618
|
-
declare const longitudeParam: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1619
|
-
declare const locationNameParam: z.ZodOptional<z.ZodString>;
|
|
1620
|
-
declare const waitForIdParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1621
|
-
declare const includeMeParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1622
|
-
declare const includeNotificationsParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1623
|
-
declare const onlyLocalParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1624
|
-
declare const skipMyMessagesParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1625
|
-
declare const withNewMessagesOnlyParam: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1626
|
-
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">>]>;
|
|
1627
|
-
declare const mentionedJidListParam: z.ZodOptional<z.ZodArray<z.ZodCodec<z.ZodString, z.core.$ZodBranded<z.ZodString, "ContactId", "out">>>>;
|
|
1628
|
-
declare const messageOptionsParam: z.ZodOptional<z.ZodAny>;
|
|
1629
|
-
//#endregion
|
|
1630
|
-
//#region src/interactive.d.ts
|
|
1631
|
-
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
1632
|
-
[key: string]: JsonValue;
|
|
1633
|
-
};
|
|
1634
|
-
declare const JsonValueSchema: z.ZodType<JsonValue>;
|
|
1635
|
-
declare const JsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
1636
|
-
declare const ReplyActionSchema: z.ZodObject<{
|
|
1637
|
-
type: z.ZodLiteral<"reply">;
|
|
1638
|
-
id: z.ZodString;
|
|
1639
|
-
label: z.ZodString;
|
|
1640
|
-
}, z.core.$strict>;
|
|
1641
|
-
declare const LinkActionSchema: z.ZodObject<{
|
|
1642
|
-
type: z.ZodLiteral<"url">;
|
|
1643
|
-
label: z.ZodString;
|
|
1644
|
-
url: z.ZodURL;
|
|
1645
|
-
}, z.core.$strict>;
|
|
1646
|
-
declare const CallActionSchema: z.ZodObject<{
|
|
1647
|
-
type: z.ZodLiteral<"call">;
|
|
1648
|
-
label: z.ZodString;
|
|
1649
|
-
phoneNumber: z.ZodString;
|
|
1650
|
-
}, z.core.$strict>;
|
|
1651
|
-
declare const CopyActionSchema: z.ZodObject<{
|
|
1652
|
-
type: z.ZodLiteral<"copy">;
|
|
1653
|
-
label: z.ZodString;
|
|
1654
|
-
code: z.ZodString;
|
|
1655
|
-
}, z.core.$strict>;
|
|
1656
|
-
declare const InteractiveActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1657
|
-
type: z.ZodLiteral<"reply">;
|
|
1658
|
-
id: z.ZodString;
|
|
1659
|
-
label: z.ZodString;
|
|
1660
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1661
|
-
type: z.ZodLiteral<"url">;
|
|
1662
|
-
label: z.ZodString;
|
|
1663
|
-
url: z.ZodURL;
|
|
1664
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1665
|
-
type: z.ZodLiteral<"call">;
|
|
1666
|
-
label: z.ZodString;
|
|
1667
|
-
phoneNumber: z.ZodString;
|
|
1668
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1669
|
-
type: z.ZodLiteral<"copy">;
|
|
1670
|
-
label: z.ZodString;
|
|
1671
|
-
code: z.ZodString;
|
|
1672
|
-
}, z.core.$strict>], "type">;
|
|
1673
|
-
declare const NativeActionSchema: z.ZodObject<{
|
|
1674
|
-
name: z.ZodString;
|
|
1675
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1676
|
-
}, z.core.$strict>;
|
|
1677
|
-
declare const InteractiveHeaderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1678
|
-
type: z.ZodLiteral<"text">;
|
|
1679
|
-
text: z.ZodString;
|
|
1680
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1681
|
-
source: z.ZodString;
|
|
1682
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1683
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1684
|
-
type: z.ZodLiteral<"image">;
|
|
1685
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1686
|
-
source: z.ZodString;
|
|
1687
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1688
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1689
|
-
type: z.ZodLiteral<"video">;
|
|
1690
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1691
|
-
source: z.ZodString;
|
|
1692
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1693
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1694
|
-
type: z.ZodLiteral<"document">;
|
|
1695
|
-
}, z.core.$strict>], "type">;
|
|
1696
|
-
declare const ButtonsContentSchema: z.ZodObject<{
|
|
1697
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1698
|
-
body: z.ZodString;
|
|
1699
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1700
|
-
type: z.ZodLiteral<"buttons">;
|
|
1701
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1702
|
-
type: z.ZodLiteral<"text">;
|
|
1703
|
-
text: z.ZodString;
|
|
1704
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1705
|
-
source: z.ZodString;
|
|
1706
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1707
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1708
|
-
type: z.ZodLiteral<"image">;
|
|
1709
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1710
|
-
source: z.ZodString;
|
|
1711
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1712
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1713
|
-
type: z.ZodLiteral<"video">;
|
|
1714
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1715
|
-
source: z.ZodString;
|
|
1716
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1717
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1718
|
-
type: z.ZodLiteral<"document">;
|
|
1719
|
-
}, z.core.$strict>], "type">>;
|
|
1720
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1721
|
-
type: z.ZodLiteral<"reply">;
|
|
1722
|
-
id: z.ZodString;
|
|
1723
|
-
label: z.ZodString;
|
|
1724
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1725
|
-
type: z.ZodLiteral<"url">;
|
|
1726
|
-
label: z.ZodString;
|
|
1727
|
-
url: z.ZodURL;
|
|
1728
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1729
|
-
type: z.ZodLiteral<"call">;
|
|
1730
|
-
label: z.ZodString;
|
|
1731
|
-
phoneNumber: z.ZodString;
|
|
1732
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1733
|
-
type: z.ZodLiteral<"copy">;
|
|
1734
|
-
label: z.ZodString;
|
|
1735
|
-
code: z.ZodString;
|
|
1736
|
-
}, z.core.$strict>], "type">>;
|
|
1737
|
-
}, z.core.$strict>;
|
|
1738
|
-
declare const ListRowSchema: z.ZodObject<{
|
|
1739
|
-
id: z.ZodString;
|
|
1740
|
-
title: z.ZodString;
|
|
1741
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1742
|
-
}, z.core.$strict>;
|
|
1743
|
-
declare const ListContentSchema: z.ZodObject<{
|
|
1744
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1745
|
-
body: z.ZodString;
|
|
1746
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1747
|
-
type: z.ZodLiteral<"list">;
|
|
1748
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1749
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1750
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
1751
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1752
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1753
|
-
id: z.ZodString;
|
|
1754
|
-
title: z.ZodString;
|
|
1755
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1756
|
-
}, z.core.$strict>>;
|
|
1757
|
-
}, z.core.$strict>>;
|
|
1758
|
-
}, z.core.$strict>;
|
|
1759
|
-
declare const FormQuestionSchema: z.ZodObject<{
|
|
1760
|
-
type: z.ZodEnum<{
|
|
1761
|
-
multiSelect: "multiSelect";
|
|
1762
|
-
singleSelect: "singleSelect";
|
|
1763
|
-
}>;
|
|
1764
|
-
id: z.ZodString;
|
|
1765
|
-
label: z.ZodString;
|
|
1766
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1767
|
-
id: z.ZodString;
|
|
1768
|
-
label: z.ZodString;
|
|
1769
|
-
}, z.core.$strict>>;
|
|
1770
|
-
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1771
|
-
}, z.core.$strict>;
|
|
1772
|
-
declare const FormContentSchema: z.ZodObject<{
|
|
1773
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1774
|
-
body: z.ZodString;
|
|
1775
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1776
|
-
type: z.ZodLiteral<"form">;
|
|
1777
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1778
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
1779
|
-
type: z.ZodEnum<{
|
|
1780
|
-
multiSelect: "multiSelect";
|
|
1781
|
-
singleSelect: "singleSelect";
|
|
1782
|
-
}>;
|
|
1783
|
-
id: z.ZodString;
|
|
1784
|
-
label: z.ZodString;
|
|
1785
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1786
|
-
id: z.ZodString;
|
|
1787
|
-
label: z.ZodString;
|
|
1788
|
-
}, z.core.$strict>>;
|
|
1789
|
-
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1790
|
-
}, z.core.$strict>>;
|
|
1791
|
-
}, z.core.$strict>;
|
|
1792
|
-
declare const CarouselCardSchema: z.ZodObject<{
|
|
1793
|
-
body: z.ZodString;
|
|
1794
|
-
header: z.ZodObject<{
|
|
1795
|
-
source: z.ZodString;
|
|
1796
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1797
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1798
|
-
type: z.ZodLiteral<"image">;
|
|
1799
|
-
}, z.core.$strict>;
|
|
1800
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1801
|
-
type: z.ZodLiteral<"reply">;
|
|
1802
|
-
id: z.ZodString;
|
|
1803
|
-
label: z.ZodString;
|
|
1804
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1805
|
-
type: z.ZodLiteral<"url">;
|
|
1806
|
-
label: z.ZodString;
|
|
1807
|
-
url: z.ZodURL;
|
|
1808
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1809
|
-
type: z.ZodLiteral<"call">;
|
|
1810
|
-
label: z.ZodString;
|
|
1811
|
-
phoneNumber: z.ZodString;
|
|
1812
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1813
|
-
type: z.ZodLiteral<"copy">;
|
|
1814
|
-
label: z.ZodString;
|
|
1815
|
-
code: z.ZodString;
|
|
1816
|
-
}, z.core.$strict>], "type">>;
|
|
1817
|
-
}, z.core.$strict>;
|
|
1818
|
-
declare const CarouselContentSchema: z.ZodObject<{
|
|
1819
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1820
|
-
body: z.ZodString;
|
|
1821
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1822
|
-
type: z.ZodLiteral<"carousel">;
|
|
1823
|
-
cards: z.ZodArray<z.ZodObject<{
|
|
1824
|
-
body: z.ZodString;
|
|
1825
|
-
header: z.ZodObject<{
|
|
1826
|
-
source: z.ZodString;
|
|
1827
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1828
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1829
|
-
type: z.ZodLiteral<"image">;
|
|
1830
|
-
}, z.core.$strict>;
|
|
1831
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1832
|
-
type: z.ZodLiteral<"reply">;
|
|
1833
|
-
id: z.ZodString;
|
|
1834
|
-
label: z.ZodString;
|
|
1835
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1836
|
-
type: z.ZodLiteral<"url">;
|
|
1837
|
-
label: z.ZodString;
|
|
1838
|
-
url: z.ZodURL;
|
|
1839
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1840
|
-
type: z.ZodLiteral<"call">;
|
|
1841
|
-
label: z.ZodString;
|
|
1842
|
-
phoneNumber: z.ZodString;
|
|
1843
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1844
|
-
type: z.ZodLiteral<"copy">;
|
|
1845
|
-
label: z.ZodString;
|
|
1846
|
-
code: z.ZodString;
|
|
1847
|
-
}, z.core.$strict>], "type">>;
|
|
1848
|
-
}, z.core.$strict>>;
|
|
1849
|
-
}, z.core.$strict>;
|
|
1850
|
-
declare const BookingContentSchema: z.ZodObject<{
|
|
1851
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1852
|
-
body: z.ZodString;
|
|
1853
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1854
|
-
type: z.ZodLiteral<"booking">;
|
|
1855
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1856
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1857
|
-
booking: z.ZodObject<{
|
|
1858
|
-
startAt: z.ZodISODateTime;
|
|
1859
|
-
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1860
|
-
location: z.ZodOptional<z.ZodString>;
|
|
1861
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
1862
|
-
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
1863
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1864
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
1865
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1866
|
-
labels: z.ZodOptional<z.ZodObject<{
|
|
1867
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1868
|
-
meetingType: z.ZodOptional<z.ZodString>;
|
|
1869
|
-
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
1870
|
-
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
1871
|
-
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
1872
|
-
manageBooking: z.ZodOptional<z.ZodString>;
|
|
1873
|
-
}, z.core.$strict>>;
|
|
1874
|
-
}, z.core.$strict>;
|
|
1875
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1876
|
-
type: z.ZodLiteral<"url">;
|
|
1877
|
-
label: z.ZodString;
|
|
1878
|
-
url: z.ZodURL;
|
|
1879
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1880
|
-
type: z.ZodLiteral<"call">;
|
|
1881
|
-
label: z.ZodString;
|
|
1882
|
-
phoneNumber: z.ZodString;
|
|
1883
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1884
|
-
type: z.ZodLiteral<"copy">;
|
|
1885
|
-
label: z.ZodString;
|
|
1886
|
-
code: z.ZodString;
|
|
1887
|
-
}, z.core.$strict>], "type">>>;
|
|
1888
|
-
}, z.core.$strict>;
|
|
1889
|
-
declare const NativeContentSchema: z.ZodObject<{
|
|
1890
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1891
|
-
body: z.ZodString;
|
|
1892
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1893
|
-
type: z.ZodLiteral<"native">;
|
|
1894
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1895
|
-
type: z.ZodLiteral<"text">;
|
|
1896
|
-
text: z.ZodString;
|
|
1897
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1898
|
-
source: z.ZodString;
|
|
1899
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1900
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1901
|
-
type: z.ZodLiteral<"image">;
|
|
1902
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1903
|
-
source: z.ZodString;
|
|
1904
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1905
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1906
|
-
type: z.ZodLiteral<"video">;
|
|
1907
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1908
|
-
source: z.ZodString;
|
|
1909
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1910
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1911
|
-
type: z.ZodLiteral<"document">;
|
|
1912
|
-
}, z.core.$strict>], "type">>;
|
|
1913
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
1914
|
-
name: z.ZodString;
|
|
1915
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1916
|
-
}, z.core.$strict>>;
|
|
1917
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1918
|
-
}, z.core.$strict>;
|
|
1919
|
-
declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1920
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1921
|
-
body: z.ZodString;
|
|
1922
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1923
|
-
type: z.ZodLiteral<"buttons">;
|
|
1924
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1925
|
-
type: z.ZodLiteral<"text">;
|
|
1926
|
-
text: z.ZodString;
|
|
1927
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1928
|
-
source: z.ZodString;
|
|
1929
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1930
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1931
|
-
type: z.ZodLiteral<"image">;
|
|
1932
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1933
|
-
source: z.ZodString;
|
|
1934
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1935
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1936
|
-
type: z.ZodLiteral<"video">;
|
|
1937
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1938
|
-
source: z.ZodString;
|
|
1939
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
1940
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1941
|
-
type: z.ZodLiteral<"document">;
|
|
1942
|
-
}, z.core.$strict>], "type">>;
|
|
1943
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1944
|
-
type: z.ZodLiteral<"reply">;
|
|
1945
|
-
id: z.ZodString;
|
|
1946
|
-
label: z.ZodString;
|
|
1947
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1948
|
-
type: z.ZodLiteral<"url">;
|
|
1949
|
-
label: z.ZodString;
|
|
1950
|
-
url: z.ZodURL;
|
|
1951
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1952
|
-
type: z.ZodLiteral<"call">;
|
|
1953
|
-
label: z.ZodString;
|
|
1954
|
-
phoneNumber: z.ZodString;
|
|
1955
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1956
|
-
type: z.ZodLiteral<"copy">;
|
|
1957
|
-
label: z.ZodString;
|
|
1958
|
-
code: z.ZodString;
|
|
1959
|
-
}, z.core.$strict>], "type">>;
|
|
1960
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1961
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1962
|
-
body: z.ZodString;
|
|
1963
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1964
|
-
type: z.ZodLiteral<"list">;
|
|
1965
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1966
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
1967
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
1968
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1969
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1970
|
-
id: z.ZodString;
|
|
1971
|
-
title: z.ZodString;
|
|
1972
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1973
|
-
}, z.core.$strict>>;
|
|
1974
|
-
}, z.core.$strict>>;
|
|
1975
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1976
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1977
|
-
body: z.ZodString;
|
|
1978
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1979
|
-
type: z.ZodLiteral<"form">;
|
|
1980
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1981
|
-
questions: z.ZodArray<z.ZodObject<{
|
|
1982
|
-
type: z.ZodEnum<{
|
|
1983
|
-
multiSelect: "multiSelect";
|
|
1984
|
-
singleSelect: "singleSelect";
|
|
1985
|
-
}>;
|
|
1986
|
-
id: z.ZodString;
|
|
1987
|
-
label: z.ZodString;
|
|
1988
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1989
|
-
id: z.ZodString;
|
|
1990
|
-
label: z.ZodString;
|
|
1991
|
-
}, z.core.$strict>>;
|
|
1992
|
-
allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
|
|
1993
|
-
}, z.core.$strict>>;
|
|
1994
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1995
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
1996
|
-
body: z.ZodString;
|
|
1997
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1998
|
-
type: z.ZodLiteral<"carousel">;
|
|
1999
|
-
cards: z.ZodArray<z.ZodObject<{
|
|
2000
|
-
body: z.ZodString;
|
|
2001
|
-
header: z.ZodObject<{
|
|
2002
|
-
source: z.ZodString;
|
|
2003
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
2004
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2005
|
-
type: z.ZodLiteral<"image">;
|
|
2006
|
-
}, z.core.$strict>;
|
|
2007
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2008
|
-
type: z.ZodLiteral<"reply">;
|
|
2009
|
-
id: z.ZodString;
|
|
2010
|
-
label: z.ZodString;
|
|
2011
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2012
|
-
type: z.ZodLiteral<"url">;
|
|
2013
|
-
label: z.ZodString;
|
|
2014
|
-
url: z.ZodURL;
|
|
2015
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2016
|
-
type: z.ZodLiteral<"call">;
|
|
2017
|
-
label: z.ZodString;
|
|
2018
|
-
phoneNumber: z.ZodString;
|
|
2019
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2020
|
-
type: z.ZodLiteral<"copy">;
|
|
2021
|
-
label: z.ZodString;
|
|
2022
|
-
code: z.ZodString;
|
|
2023
|
-
}, z.core.$strict>], "type">>;
|
|
2024
|
-
}, z.core.$strict>>;
|
|
2025
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2026
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2027
|
-
body: z.ZodString;
|
|
2028
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
2029
|
-
type: z.ZodLiteral<"booking">;
|
|
2030
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2031
|
-
buttonLabel: z.ZodDefault<z.ZodString>;
|
|
2032
|
-
booking: z.ZodObject<{
|
|
2033
|
-
startAt: z.ZodISODateTime;
|
|
2034
|
-
endAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2035
|
-
location: z.ZodOptional<z.ZodString>;
|
|
2036
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
2037
|
-
managementUrl: z.ZodOptional<z.ZodURL>;
|
|
2038
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
2039
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
2040
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2041
|
-
labels: z.ZodOptional<z.ZodObject<{
|
|
2042
|
-
language: z.ZodOptional<z.ZodString>;
|
|
2043
|
-
meetingType: z.ZodOptional<z.ZodString>;
|
|
2044
|
-
detailsTitle: z.ZodOptional<z.ZodString>;
|
|
2045
|
-
addToCalendar: z.ZodOptional<z.ZodString>;
|
|
2046
|
-
viewOnMap: z.ZodOptional<z.ZodString>;
|
|
2047
|
-
manageBooking: z.ZodOptional<z.ZodString>;
|
|
2048
|
-
}, z.core.$strict>>;
|
|
2049
|
-
}, z.core.$strict>;
|
|
2050
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2051
|
-
type: z.ZodLiteral<"url">;
|
|
2052
|
-
label: z.ZodString;
|
|
2053
|
-
url: z.ZodURL;
|
|
2054
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2055
|
-
type: z.ZodLiteral<"call">;
|
|
2056
|
-
label: z.ZodString;
|
|
2057
|
-
phoneNumber: z.ZodString;
|
|
2058
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2059
|
-
type: z.ZodLiteral<"copy">;
|
|
2060
|
-
label: z.ZodString;
|
|
2061
|
-
code: z.ZodString;
|
|
2062
|
-
}, z.core.$strict>], "type">>>;
|
|
2063
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2064
|
-
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2065
|
-
body: z.ZodString;
|
|
2066
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
2067
|
-
type: z.ZodLiteral<"native">;
|
|
2068
|
-
header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2069
|
-
type: z.ZodLiteral<"text">;
|
|
2070
|
-
text: z.ZodString;
|
|
2071
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2072
|
-
source: z.ZodString;
|
|
2073
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
2074
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2075
|
-
type: z.ZodLiteral<"image">;
|
|
2076
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2077
|
-
source: z.ZodString;
|
|
2078
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
2079
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2080
|
-
type: z.ZodLiteral<"video">;
|
|
2081
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2082
|
-
source: z.ZodString;
|
|
2083
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
2084
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2085
|
-
type: z.ZodLiteral<"document">;
|
|
2086
|
-
}, z.core.$strict>], "type">>;
|
|
2087
|
-
actions: z.ZodArray<z.ZodObject<{
|
|
2088
|
-
name: z.ZodString;
|
|
2089
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
2090
|
-
}, z.core.$strict>>;
|
|
2091
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
2092
|
-
}, z.core.$strict>], "type">;
|
|
2093
|
-
type InteractiveContent = z.input<typeof InteractiveContentSchema>;
|
|
2094
|
-
type InteractiveAction = z.infer<typeof InteractiveActionSchema>;
|
|
2095
|
-
type InteractiveHeader = z.infer<typeof InteractiveHeaderSchema>;
|
|
2096
|
-
type FormQuestion = z.infer<typeof FormQuestionSchema>;
|
|
2097
|
-
declare function defineInteractiveMessage<T extends InteractiveContent>(content: T): Extract<z.output<typeof InteractiveContentSchema>, {
|
|
2098
|
-
type: T['type'];
|
|
2099
|
-
}>;
|
|
2100
|
-
declare const FormResponseSchema: z.ZodObject<{
|
|
2101
|
-
messageId: z.ZodString;
|
|
2102
|
-
chatId: z.ZodString;
|
|
2103
|
-
senderId: z.ZodString;
|
|
2104
|
-
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2105
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2106
|
-
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2107
|
-
type: z.ZodLiteral<"form">;
|
|
2108
|
-
answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2109
|
-
}, z.core.$strip>;
|
|
2110
|
-
declare const InteractiveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2111
|
-
messageId: z.ZodString;
|
|
2112
|
-
chatId: z.ZodString;
|
|
2113
|
-
senderId: z.ZodString;
|
|
2114
|
-
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2115
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2116
|
-
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2117
|
-
type: z.ZodLiteral<"form">;
|
|
2118
|
-
answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2120
|
-
messageId: z.ZodString;
|
|
2121
|
-
chatId: z.ZodString;
|
|
2122
|
-
senderId: z.ZodString;
|
|
2123
|
-
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2124
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2125
|
-
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2126
|
-
type: z.ZodLiteral<"reply">;
|
|
2127
|
-
id: z.ZodString;
|
|
2128
|
-
label: z.ZodOptional<z.ZodString>;
|
|
2129
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2130
|
-
messageId: z.ZodString;
|
|
2131
|
-
chatId: z.ZodString;
|
|
2132
|
-
senderId: z.ZodString;
|
|
2133
|
-
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2134
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2135
|
-
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2136
|
-
type: z.ZodLiteral<"list">;
|
|
2137
|
-
id: z.ZodString;
|
|
2138
|
-
label: z.ZodOptional<z.ZodString>;
|
|
2139
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2140
|
-
messageId: z.ZodString;
|
|
2141
|
-
chatId: z.ZodString;
|
|
2142
|
-
senderId: z.ZodString;
|
|
2143
|
-
originalMessageId: z.ZodOptional<z.ZodString>;
|
|
2144
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2145
|
-
raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2146
|
-
type: z.ZodLiteral<"native">;
|
|
2147
|
-
name: z.ZodString;
|
|
2148
|
-
parameters: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
2149
|
-
parseError: z.ZodOptional<z.ZodString>;
|
|
2150
|
-
}, z.core.$strip>], "type">;
|
|
2151
|
-
type FormResponse = z.infer<typeof FormResponseSchema>;
|
|
2152
|
-
type InteractiveResponse = z.infer<typeof InteractiveResponseSchema>;
|
|
2153
|
-
//#endregion
|
|
2154
|
-
export { statusTextParam as $, CloudUploadOptions as $i, getGroupInfo as $n, sendAdvancedButtons as $r, QueueOptions as $t, audioDataParam as A, ContactSchema as Ai, addLabel as An, getChat as Ar, hexColorCodec as At, imageDataParam as B, Location as Bi, postVideoStatus as Bn, unpinChat as Br, chatStateEvent as Bt, LinkActionSchema as C, Viewport as Ca, unstarMessage as Ci, isPlugged as Cn, getProfilePicture as Cr, createFileCodec as Ct, NativeContentSchema as D, validateConfig as Da, ChatSchema as Di, getBusinessProducts as Dn, deleteChat as Dr, fileToStreamCodec as Dt, NativeActionSchema as E, parseConfig as Ea, ChatId as Ei, setProfilePicture as En, clearChat as Er, fileToDataUrlCodec as Et, contentParam as F, GroupId as Fi, deleteStatus as Fn, muteChat as Fr, unixSecondsToDate as Ft, longitudeParam as G, MessageIdReturnSchema as Gi, getCommunityParticipantIds as Gn, getMessageInfo as Gr, formResponseEvent as Gt, includeNotificationsParam as H, Message as Hi, getCommunityAdminIds as Hn, forwardMessages as Hr, stateChangedEvent as Ht, documentDataParam as I, GroupMetadata as Ii, getStatus as In, pinChat as Ir, urlToDataUrlCodec as It, messageIdsParam as J, SimpleListener as Ji, approveGroupJoinRequest as Jn, getStarredMessages as Jr, messageEvent as Jt, mentionedJidListParam as K, MessageSchema as Ki, getCommunityParticipants as Kn, getMessagesForLLM as Kr, interactiveResponseEvent as Kt, fileDataParam as L, GroupMetadataSchema as Li, getStories as Ln, setChatEphemeral as Lr, addedToGroupEvent as Lt, chatIdParam as M, DataURL as Mi, getChatsByLabel as Mn, isChatOnline as Mr, jsonStringCodec as Mt, communityIdParam as N, GroupChatId as Ni, removeLabel as Nn, markAsRead as Nr, messageIdCodec as Nt, ReplyActionSchema as O, Contact as Oi, getBusinessProfile as On, getAllChatIds as Or, fileToTempPathCodec as Ot, contactIdParam as P, GroupChatIdSchema as Pi, deleteAllStatus as Pn, markAsUnread as Pr, unixMillisToDate as Pt, skipMyMessagesParam as Q, CLOUD_PROVIDERS as Qi, getGroupAdmins as Qn, react as Qr, EventStatus as Qt, filenameParam as R, Id as Ri, postImageStatus as Rn, unarchiveChat as Rr, participantsChangedEvent as Rt, JsonValueSchema as S, StrictConfigSchema as Sa, starMessage as Si, healthCheck as Sn, getNumberProfile as Sr, contactIdCodec as St, ListRowSchema as T, getDefaultConfig as Ta, Chat as Ti, setMyStatus as Tn, archiveChat as Tr, fileToBufferCodec as Tt, latitudeParam as U, MessageAck as Ui, getCommunityAdmins as Un, getAllMessages as Ur, ackEvent as Ut, includeMeParam as V, LocationSchema as Vi, getAllCommunities as Vn, deleteMessage as Vr, logoutEvent as Vt, locationNameParam as W, MessageId as Wi, getCommunityInfo as Wn, getMessageById as Wr, anyMessageEvent as Wt, nameParam as X, ClientConfigSchema as Xi, demoteParticipant as Xn, getVCards as Xr, EventDefinition as Xt, messageOptionsParam as Y, ClientConfig as Yi, createGroup as Yn, getUnsentMessages as Yr, reactionEvent as Yt, onlyLocalParam as Z, migrateV4Config as Zi, getAllGroups as Zn, loadEarlierMessages as Zr, EventMetadata as Zt, InteractiveHeaderSchema as _, S3Sync as _a, sendText as _i, getMe as _n, checkReadReceipts as _r, MessageIdSchema as _t, CarouselContentSchema as a, DevTools as aa, sendFileFromUrl as ai, SendInteractiveInputSchema as an, leaveGroup as ar, withNewMessagesOnlyParam as at, JsonObjectSchema as b, SessionDataSchema as ba, sendVideoAsGif as bi, getUserAgent as bn, getCommonGroups as br, base64ToDataUrlCodec as bt, FormQuestion as c, LoggingTransport as ca, sendListMessage as ci, sendRawMessage as cn, removeParticipant as cr, ChatIdSchema as ct, FormResponseSchema as d, OnError as da, sendMultipleContacts as di, getBatteryLevel as dn, setGroupEditToAdminsOnly as dr, FileToDataUrlSchema as dt, CloudUploadOptionsSchema as ea, sendAudio as ei, QueueOptionsSchema as en, getGroupInviteLink as er, stickerDataParam as et, InteractiveAction as f, PartialConfig as fa, sendPaymentRequest as fi, getConnectionState as fn, setGroupIcon as fr, GroupIdCodecSchema as ft, InteractiveHeader as g, QRFormat as ga, sendSeen as gi, getLoadedMessageCount as gn, checkNumberStatus as gr, MessageIdCodecSchema as gt, InteractiveContentSchema as h, ProxyServerCredentialsSchema as ha, sendReplyWithMentions as hi, getLicenseType as hn, blockContact as hr, IsoDatetimeToDateSchema as ht, CarouselCardSchema as i, DeepPartialConfig as ia, sendFile as ii, index_d_exports as in, joinGroupViaLink as ir, waitForIdParam as it, captionParam as j, Content as ji, getAllLabels as jn, getChatWithNonContacts as jr, isoDatetimeToDate as jt, defineInteractiveMessage as k, ContactId as ki, getOrder as kn, getAllChats as kr, groupIdCodec as kt, FormQuestionSchema as l, LoggingTransportSchema as la, sendLocation as li, decryptMedia as ln, revokeGroupInviteLink as lr, ContactIdCodecSchema as lt, InteractiveContent as m, ProxyServerCredentials as ma, sendPtt as mi, getHostNumber as mn, setGroupToAdminsOnly as mr, HexColorSchema as mt, ButtonsContentSchema as n, ConfigSchema as na, sendButtons as ni, defineListenerV2 as nn, getGroupMembersId as nr, userAgentParam as nt, CopyActionSchema as o, DevToolsSchema as oa, sendImage as oi, SendRawMessageInputSchema as on, promoteParticipant as or, Base64ToDataUrlSchema as ot, InteractiveActionSchema as p, PartialConfigSchema as pa, sendPoll as pi, getFeatures as pn, setGroupTitle as pr, GroupIdSchema as pt, messageIdParam as q, MessageTypes as qi, addParticipant as qn, getMyLastMessage as qr, messageDeletedEvent as qt, CallActionSchema as r, DIRECTORY_STRATEGY as ra, sendContact as ri, eventRegistry as rn, getKickedGroups as rr, videoDataParam as rt, FormContentSchema as s, LicenseType as sa, sendLinkWithAutoPreview as si, sendInteractive as sn, rejectGroupJoinRequest as sr, ChatIdCodecSchema as st, BookingContentSchema as t, Config as ta, sendBanner as ti, QueueOverloadStrategy as tn, getGroupMembers as tr, toParam as tt, FormResponse as u, NotificationLanguage as ua, sendMessageWithThumb as ui, downloadMedia as un, setGroupDescription as ur, ContactIdSchema as ut, InteractiveResponse as v, S3SyncSchema as va, sendTextWithMentions as vi, getProcessStats as vn, getAllContacts as vr, UnixMillisToDateSchema as vt, ListContentSchema as w, ViewportSchema as wa, Base64 as wi, setMyName as wn, unblockContact as wr, fileToBase64Codec as wt, JsonValue as x, StrictConfig as xa, sendYouTubeLink as xi, getWAVersion as xn, getContact as xr, chatIdCodec as xt, InteractiveResponseSchema as y, SessionData as ya, sendVCard as yi, getSnapshot as yn, getBlockedIds as yr, UnixSecondsToDateSchema as yt, groupIdParam as z, IdSchema as zi, postTextStatus as zn, unmuteChat as zr, StateEnum as zt };
|
|
2155
|
-
//# sourceMappingURL=index-nVKR0RmZ.d.mts.map
|