@open-wa/schema 5.0.0-alpha.0 → 5.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/generated/index.cjs +598 -0
  2. package/dist/generated/index.cjs.map +1 -0
  3. package/dist/generated/index.d.cts +3674 -0
  4. package/dist/generated/index.d.cts.map +1 -0
  5. package/dist/generated/index.d.mts +3674 -0
  6. package/dist/generated/index.d.mts.map +1 -0
  7. package/dist/generated/index.mjs +595 -0
  8. package/dist/generated/index.mjs.map +1 -0
  9. package/dist/http-manifest-BlJWPKsp.d.mts +177 -0
  10. package/dist/http-manifest-BlJWPKsp.d.mts.map +1 -0
  11. package/dist/http-manifest-DCOVY9QZ.d.cts +177 -0
  12. package/dist/http-manifest-DCOVY9QZ.d.cts.map +1 -0
  13. package/dist/http-manifest.cjs +59 -0
  14. package/dist/http-manifest.cjs.map +1 -0
  15. package/dist/http-manifest.d.cts +2 -0
  16. package/dist/http-manifest.d.mts +2 -0
  17. package/dist/http-manifest.mjs +58 -0
  18. package/dist/http-manifest.mjs.map +1 -0
  19. package/dist/implementor-DIBNbQXA.d.cts +8 -0
  20. package/dist/implementor-DIBNbQXA.d.cts.map +1 -0
  21. package/dist/implementor-DoN9ga7C.d.mts +8 -0
  22. package/dist/implementor-DoN9ga7C.d.mts.map +1 -0
  23. package/dist/implementor.cjs +50 -0
  24. package/dist/implementor.cjs.map +1 -0
  25. package/dist/implementor.d.cts +2 -0
  26. package/dist/implementor.d.mts +2 -0
  27. package/dist/implementor.mjs +48 -0
  28. package/dist/implementor.mjs.map +1 -0
  29. package/dist/index-BB9uyLe8.d.cts +1323 -0
  30. package/dist/index-BB9uyLe8.d.cts.map +1 -0
  31. package/dist/index-D77q1gPk.d.mts +1323 -0
  32. package/dist/index-D77q1gPk.d.mts.map +1 -0
  33. package/dist/index.cjs +649 -0
  34. package/dist/index.cjs.map +1 -0
  35. package/dist/index.d.cts +4 -0
  36. package/dist/index.d.mts +4 -0
  37. package/dist/index.mjs +299 -0
  38. package/dist/index.mjs.map +1 -0
  39. package/dist/methods/index.cjs +125 -0
  40. package/dist/methods/index.d.cts +2 -0
  41. package/dist/methods/index.d.mts +2 -0
  42. package/dist/methods/index.mjs +2 -0
  43. package/dist/methods-BXZrkKjP.mjs +2633 -0
  44. package/dist/methods-BXZrkKjP.mjs.map +1 -0
  45. package/dist/methods-CuiwUO7-.cjs +3802 -0
  46. package/dist/methods-CuiwUO7-.cjs.map +1 -0
  47. package/dist/registry-CsyR8i6y.mjs +284 -0
  48. package/dist/registry-CsyR8i6y.mjs.map +1 -0
  49. package/dist/registry-TbMVoiw5.cjs +355 -0
  50. package/dist/registry-TbMVoiw5.cjs.map +1 -0
  51. package/package.json +6 -3
  52. package/CHANGELOG.md +0 -23
  53. package/client_migration_doc.md +0 -467
  54. package/codecs_and_params_plan.md +0 -936
  55. package/migration_plan_doc.md +0 -223
  56. package/scripts/gen-client-implementation.ts +0 -129
  57. package/scripts/gen-client-reference-docs.ts +0 -621
  58. package/scripts/gen-openapi.ts +0 -96
  59. package/scripts/gen-types.ts +0 -43
  60. package/scripts/verify-v5-pipeline.ts +0 -85
  61. package/src/__tests__/generators.contract.test.ts +0 -181
  62. package/src/__tests__/registry.contract.test.ts +0 -81
  63. package/src/client-config.ts +0 -30
  64. package/src/codecs.test.ts +0 -41
  65. package/src/codecs.ts +0 -191
  66. package/src/common-types.ts +0 -280
  67. package/src/config.ts +0 -47
  68. package/src/enums.ts +0 -63
  69. package/src/events/groups.ts +0 -33
  70. package/src/events/index.ts +0 -4
  71. package/src/events/messaging.ts +0 -72
  72. package/src/events/registry.ts +0 -114
  73. package/src/events/state.ts +0 -59
  74. package/src/generated/AliasMap.ts +0 -214
  75. package/src/generated/BaseClient.ts +0 -868
  76. package/src/generated/BaseNamespacedClient.ts +0 -212
  77. package/src/generated/index.ts +0 -5
  78. package/src/generated/openapi.json +0 -7799
  79. package/src/generated/types.ts +0 -377
  80. package/src/http-manifest.ts +0 -97
  81. package/src/implementor.test.ts +0 -88
  82. package/src/implementor.ts +0 -75
  83. package/src/index.ts +0 -43
  84. package/src/methods/business.ts +0 -51
  85. package/src/methods/chats.ts +0 -263
  86. package/src/methods/communities.ts +0 -119
  87. package/src/methods/contacts.ts +0 -158
  88. package/src/methods/groups.ts +0 -376
  89. package/src/methods/index.ts +0 -33
  90. package/src/methods/labels.ts +0 -86
  91. package/src/methods/media.ts +0 -36
  92. package/src/methods/messaging.ts +0 -828
  93. package/src/methods/session.ts +0 -261
  94. package/src/methods/status.ts +0 -120
  95. package/src/open-wa-utils.d.ts +0 -4
  96. package/src/parameters.ts +0 -237
  97. package/src/registry.test.ts +0 -30
  98. package/src/registry.ts +0 -601
  99. package/tsconfig.generated.json +0 -11
  100. package/tsconfig.json +0 -15
  101. package/tsdown.config.ts +0 -16
  102. package/vitest.config.ts +0 -10
@@ -0,0 +1,3802 @@
1
+ const require_registry = require("./registry-TbMVoiw5.cjs");
2
+ let zod = require("zod");
3
+ let _open_wa_utils = require("@open-wa/utils");
4
+ //#region src/common-types.ts
5
+ const ContactIdSchema$1 = zod.z.string().brand("ContactId");
6
+ const ChatIdSchema$1 = zod.z.string().brand("ChatId");
7
+ const MessageIdSchema$1 = zod.z.string().brand("MessageId");
8
+ const GroupChatIdSchema = zod.z.string().brand("GroupChatId");
9
+ const GroupIdSchema$1 = zod.z.string().brand("GroupId");
10
+ const GroupMetadataSchema = zod.z.object({
11
+ id: GroupIdSchema$1,
12
+ subject: zod.z.string(),
13
+ creation: zod.z.number(),
14
+ owner: ContactIdSchema$1.optional(),
15
+ desc: zod.z.string().optional(),
16
+ descTime: zod.z.number().optional(),
17
+ descOwner: ContactIdSchema$1.optional(),
18
+ restrict: zod.z.boolean().optional(),
19
+ announce: zod.z.boolean().optional(),
20
+ participants: zod.z.array(zod.z.object({
21
+ id: ContactIdSchema$1,
22
+ isAdmin: zod.z.boolean(),
23
+ isSuperAdmin: zod.z.boolean().optional()
24
+ }))
25
+ }).passthrough();
26
+ const IdSchema = zod.z.object({
27
+ server: zod.z.string(),
28
+ user: zod.z.string(),
29
+ _serialized: zod.z.string()
30
+ });
31
+ let MessageTypes = /* @__PURE__ */ function(MessageTypes) {
32
+ MessageTypes["TEXT"] = "chat";
33
+ MessageTypes["AUDIO"] = "audio";
34
+ MessageTypes["VOICE"] = "ptt";
35
+ MessageTypes["IMAGE"] = "image";
36
+ MessageTypes["VIDEO"] = "video";
37
+ MessageTypes["DOCUMENT"] = "document";
38
+ MessageTypes["STICKER"] = "sticker";
39
+ MessageTypes["LOCATION"] = "location";
40
+ MessageTypes["CONTACT_CARD"] = "vcard";
41
+ MessageTypes["CONTACT_CARD_MULTI"] = "multi_vcard";
42
+ MessageTypes["REVOKED"] = "revoked";
43
+ MessageTypes["ORDER"] = "order";
44
+ MessageTypes["BUTTONS_RESPONSE"] = "buttons_response";
45
+ MessageTypes["LIST_RESPONSE"] = "list_response";
46
+ MessageTypes["UNKNOWN"] = "unknown";
47
+ return MessageTypes;
48
+ }({});
49
+ let MessageAck = /* @__PURE__ */ function(MessageAck) {
50
+ MessageAck[MessageAck["ACK_ERROR"] = -1] = "ACK_ERROR";
51
+ MessageAck[MessageAck["ACK_PENDING"] = 0] = "ACK_PENDING";
52
+ MessageAck[MessageAck["ACK_SERVER"] = 1] = "ACK_SERVER";
53
+ MessageAck[MessageAck["ACK_DEVICE"] = 2] = "ACK_DEVICE";
54
+ MessageAck[MessageAck["ACK_READ"] = 3] = "ACK_READ";
55
+ MessageAck[MessageAck["ACK_PLAYED"] = 4] = "ACK_PLAYED";
56
+ return MessageAck;
57
+ }({});
58
+ /**
59
+ * An enum of all the "simple listeners". A simple listener is a listener that just takes one parameter which is the callback function to handle the event.
60
+ */
61
+ let SimpleListener = /* @__PURE__ */ function(SimpleListener) {
62
+ /**
63
+ * Represents [[onMessage]]
64
+ */
65
+ SimpleListener["Message"] = "onMessage";
66
+ /**
67
+ * Represents [[onAnyMessage]]
68
+ */
69
+ SimpleListener["AnyMessage"] = "onAnyMessage";
70
+ /**
71
+ * Represents [[onMessageDeleted]]
72
+ */
73
+ SimpleListener["MessageDeleted"] = "onMessageDeleted";
74
+ /**
75
+ * Represents [[onAck]]
76
+ */
77
+ SimpleListener["Ack"] = "onAck";
78
+ /**
79
+ * Represents [[onAddedToGroup]]
80
+ */
81
+ SimpleListener["AddedToGroup"] = "onAddedToGroup";
82
+ /**
83
+ * Represents [[onChatDeleted]]
84
+ */
85
+ SimpleListener["ChatDeleted"] = "onChatDeleted";
86
+ /**
87
+ * Represents [[onBattery]]
88
+ */
89
+ SimpleListener["Battery"] = "onBattery";
90
+ /**
91
+ * Represents [[onChatOpened]]
92
+ */
93
+ SimpleListener["ChatOpened"] = "onChatOpened";
94
+ /**
95
+ * Represents [[onIncomingCall]]
96
+ */
97
+ SimpleListener["IncomingCall"] = "onIncomingCall";
98
+ /**
99
+ * Represents [[onGlobalParticipantsChanged]]
100
+ */
101
+ SimpleListener["GlobalParticipantsChanged"] = "onGlobalParticipantsChanged";
102
+ /**
103
+ * Represents [[onChatState]]
104
+ */
105
+ SimpleListener["ChatState"] = "onChatState";
106
+ /**
107
+ * Represents [[onLogout]]
108
+ */
109
+ SimpleListener["Logout"] = "onLogout";
110
+ /**
111
+ * Represents [[onPlugged]]
112
+ */
113
+ SimpleListener["Plugged"] = "onPlugged";
114
+ /**
115
+ * Represents [[onStateChanged]]
116
+ */
117
+ SimpleListener["StateChanged"] = "onStateChanged";
118
+ /**
119
+ * Represents [[onButton]]
120
+ */
121
+ SimpleListener["Button"] = "onButton";
122
+ /**
123
+ * Requires licence
124
+ * Represents [[onStory]]
125
+ */
126
+ SimpleListener["Story"] = "onStory";
127
+ /**
128
+ * Requires licence
129
+ * Represents [[onRemovedFromGroup]]
130
+ */
131
+ SimpleListener["RemovedFromGroup"] = "onRemovedFromGroup";
132
+ /**
133
+ * Requires licence
134
+ * Represents [[onContactAdded]]
135
+ */
136
+ SimpleListener["ContactAdded"] = "onContactAdded";
137
+ /**
138
+ * Represents [[onOrder]]
139
+ */
140
+ SimpleListener["Order"] = "onOrder";
141
+ return SimpleListener;
142
+ }({});
143
+ const MessageSchemaBase = zod.z.object({
144
+ id: MessageIdSchema$1,
145
+ body: zod.z.string(),
146
+ type: zod.z.nativeEnum(MessageTypes),
147
+ t: zod.z.number(),
148
+ notifyName: zod.z.string().optional(),
149
+ from: ChatIdSchema$1,
150
+ to: ChatIdSchema$1,
151
+ self: zod.z.enum(["in", "out"]),
152
+ ack: zod.z.nativeEnum(MessageAck),
153
+ invis: zod.z.boolean().optional(),
154
+ isNewMsg: zod.z.boolean().optional(),
155
+ star: zod.z.boolean().optional(),
156
+ recvFresh: zod.z.boolean().optional(),
157
+ broadcast: zod.z.boolean().optional(),
158
+ isForwarded: zod.z.boolean().optional(),
159
+ labels: zod.z.array(zod.z.string()).optional(),
160
+ mentionedJidList: zod.z.array(ContactIdSchema$1).optional(),
161
+ caption: zod.z.string().optional(),
162
+ sender: zod.z.any(),
163
+ timestamp: zod.z.number(),
164
+ content: zod.z.string(),
165
+ isGroupMsg: zod.z.boolean(),
166
+ isMMS: zod.z.boolean().optional(),
167
+ isMedia: zod.z.boolean(),
168
+ isNotification: zod.z.boolean(),
169
+ isPSA: zod.z.boolean().optional(),
170
+ fromMe: zod.z.boolean(),
171
+ chat: zod.z.any(),
172
+ chatId: ChatIdSchema$1,
173
+ author: zod.z.string().optional(),
174
+ clientUrl: zod.z.string().optional(),
175
+ deprecatedMms3Url: zod.z.string().optional(),
176
+ isQuotedMsgAvailable: zod.z.boolean(),
177
+ quotedMsg: zod.z.any().optional(),
178
+ quotedMsgObj: zod.z.any().optional(),
179
+ senderId: zod.z.string().optional()
180
+ }).passthrough();
181
+ const ContactSchema = zod.z.object({
182
+ id: ContactIdSchema$1,
183
+ name: zod.z.string().optional(),
184
+ shortName: zod.z.string().optional(),
185
+ pushname: zod.z.string().optional(),
186
+ formattedName: zod.z.string().optional(),
187
+ isBusiness: zod.z.boolean().optional(),
188
+ isEnterprise: zod.z.boolean().optional(),
189
+ isMe: zod.z.boolean().optional(),
190
+ isMyContact: zod.z.boolean().optional(),
191
+ isPSA: zod.z.boolean().optional(),
192
+ isUser: zod.z.boolean().optional(),
193
+ isWAContact: zod.z.boolean().optional(),
194
+ labels: zod.z.array(zod.z.string()).optional(),
195
+ msgs: zod.z.array(zod.z.any()).optional(),
196
+ profilePicThumbObj: zod.z.object({
197
+ eurl: zod.z.string().optional(),
198
+ id: IdSchema.optional(),
199
+ img: zod.z.string().optional(),
200
+ imgFull: zod.z.string().optional(),
201
+ tag: zod.z.string().optional()
202
+ }).optional(),
203
+ statusMute: zod.z.boolean().optional(),
204
+ type: zod.z.string().optional(),
205
+ verifiedLevel: zod.z.number().optional(),
206
+ verifiedName: zod.z.string().optional(),
207
+ isOnline: zod.z.boolean().optional(),
208
+ lastSeen: zod.z.number().optional()
209
+ }).passthrough();
210
+ const LocationSchema = zod.z.object({
211
+ lat: zod.z.number().describe("Latitude coordinate"),
212
+ lng: zod.z.number().describe("Longitude coordinate"),
213
+ name: zod.z.string().optional().describe("Location name"),
214
+ address: zod.z.string().optional().describe("Formatted address"),
215
+ url: zod.z.string().optional().describe("WhatsApp location URL")
216
+ }).passthrough();
217
+ const ChatSchema = zod.z.object({
218
+ id: ContactIdSchema$1.or(GroupChatIdSchema),
219
+ name: zod.z.string().optional(),
220
+ formattedTitle: zod.z.string().optional(),
221
+ isGroup: zod.z.boolean(),
222
+ contact: ContactSchema,
223
+ groupMetadata: zod.z.any().optional(),
224
+ presence: zod.z.any().optional(),
225
+ t: zod.z.number().optional(),
226
+ unreadCount: zod.z.number().optional(),
227
+ lastReceivedKey: zod.z.any().optional(),
228
+ msgs: zod.z.array(zod.z.any()).optional(),
229
+ isReadOnly: zod.z.boolean().optional(),
230
+ muteExpiration: zod.z.number().optional(),
231
+ notSpam: zod.z.boolean().optional(),
232
+ pin: zod.z.number().optional(),
233
+ ack: zod.z.any().optional()
234
+ }).passthrough();
235
+ const MessageSchema = MessageSchemaBase.extend({
236
+ sender: ContactSchema,
237
+ chat: ChatSchema
238
+ });
239
+ const MessageIdReturnSchema = zod.z.object({ _serialized: zod.z.string() }).passthrough();
240
+ //#endregion
241
+ //#region src/codecs.ts
242
+ const chatIdPattern = /^\d+(-\d+)?@(c|g)\.us$|^\d+@lid$/;
243
+ const contactIdPattern = /^\d+@c\.us$/;
244
+ const groupIdPattern = /^\d+(-\d+)?@g\.us$/;
245
+ const messageIdPattern = /^(true|false)_.+_.+$/;
246
+ /**
247
+ * Chat ID Codec
248
+ * Intelligently converts phone numbers to proper WhatsApp chat IDs.
249
+ */
250
+ const chatIdCodec = {
251
+ decode: (input) => {
252
+ if (input.includes("@")) return input;
253
+ const digits = input.replace(/\D/g, "");
254
+ const digitCount = digits.length;
255
+ if (digitCount === 18) return `${digits}@g.us`;
256
+ if (digitCount === 14 && !digits.startsWith("62")) return `${digits}@lid`;
257
+ return `${digits}@c.us`;
258
+ },
259
+ encode: (chatId) => chatId
260
+ };
261
+ /**
262
+ * Contact ID Codec - always formats as @c.us
263
+ */
264
+ const contactIdCodec = {
265
+ decode: (input) => {
266
+ if (input.endsWith("@c.us")) return input;
267
+ return `${input.replace(/\D/g, "")}@c.us`;
268
+ },
269
+ encode: (contactId) => contactId
270
+ };
271
+ /**
272
+ * Group ID Codec - always formats as @g.us
273
+ */
274
+ const groupIdCodec = {
275
+ decode: (input) => {
276
+ if (input.endsWith("@g.us")) return input;
277
+ return `${input.replace(/\D/g, "")}@g.us`;
278
+ },
279
+ encode: (groupId) => groupId
280
+ };
281
+ /**
282
+ * Message ID Codec - validates format only
283
+ */
284
+ const messageIdCodec = {
285
+ decode: (input) => input,
286
+ encode: (messageId) => messageId
287
+ };
288
+ /**
289
+ * File Codec Factory
290
+ */
291
+ const createFileCodec = (outputType) => ({
292
+ decode: async (input) => (0, _open_wa_utils.assertFile)(input, outputType),
293
+ encode: (output) => output
294
+ });
295
+ const fileToDataUrlCodec = createFileCodec("DATA_URL");
296
+ const fileToBase64Codec = createFileCodec("BASE_64");
297
+ const fileToBufferCodec = createFileCodec("BUFFER");
298
+ const fileToTempPathCodec = createFileCodec("TEMP_FILE_PATH");
299
+ const fileToStreamCodec = createFileCodec("READ_STREAM");
300
+ const base64ToDataUrlCodec = {
301
+ decode: (base64) => {
302
+ if (base64.startsWith("data:")) return base64;
303
+ return `data:application/octet-stream;base64,${base64}`;
304
+ },
305
+ encode: (dataUrl) => dataUrl.split(",")[1] || dataUrl
306
+ };
307
+ const urlToDataUrlCodec = {
308
+ decode: async (url) => (0, _open_wa_utils.getDUrl)(url),
309
+ encode: (_dataUrl) => {
310
+ throw new Error("Cannot encode DataURL back to URL");
311
+ }
312
+ };
313
+ const isoDatetimeToDate = {
314
+ decode: (isoString) => new Date(isoString),
315
+ encode: (date) => date.toISOString()
316
+ };
317
+ const unixSecondsToDate = {
318
+ decode: (seconds) => /* @__PURE__ */ new Date(seconds * 1e3),
319
+ encode: (date) => Math.floor(date.getTime() / 1e3)
320
+ };
321
+ const unixMillisToDate = {
322
+ decode: (millis) => new Date(millis),
323
+ encode: (date) => date.getTime()
324
+ };
325
+ const hexColorCodec = {
326
+ decode: (input) => input.replace("#", "").toUpperCase(),
327
+ encode: (hex) => `#${hex}`
328
+ };
329
+ const jsonStringCodec = (schema) => zod.z.codec(zod.z.string(), schema, {
330
+ decode: (jsonString) => schema.parse(JSON.parse(jsonString)),
331
+ encode: (value) => JSON.stringify(value)
332
+ });
333
+ const ChatIdSchema = zod.z.codec(zod.z.string(), zod.z.string().regex(chatIdPattern).brand("ChatId"), chatIdCodec);
334
+ const ContactIdSchema = zod.z.codec(zod.z.string(), zod.z.string().regex(contactIdPattern).brand("ContactId"), contactIdCodec);
335
+ const GroupIdSchema = zod.z.codec(zod.z.string(), zod.z.string().regex(groupIdPattern).brand("GroupChatId"), groupIdCodec);
336
+ const MessageIdSchema = zod.z.codec(zod.z.string(), zod.z.string().regex(messageIdPattern).brand("MessageId"), messageIdCodec);
337
+ const ChatIdCodecSchema = ChatIdSchema;
338
+ const ContactIdCodecSchema = ContactIdSchema;
339
+ const GroupIdCodecSchema = GroupIdSchema;
340
+ const MessageIdCodecSchema = MessageIdSchema;
341
+ const FileToDataUrlSchema = zod.z.union([zod.z.string(), zod.z.instanceof(Buffer)]).transform(async (input) => fileToDataUrlCodec.decode(input)).pipe(zod.z.string().regex(/^data:.+;base64,.+$/).brand("DataURL"));
342
+ const Base64ToDataUrlSchema = zod.z.codec(zod.z.string(), zod.z.string().regex(/^data:.+;base64,.+$/).brand("DataURL"), base64ToDataUrlCodec);
343
+ const HexColorSchema = zod.z.codec(zod.z.string(), zod.z.string().regex(/^[0-9A-F]+$/), hexColorCodec);
344
+ const IsoDatetimeToDateSchema = zod.z.codec(zod.z.iso.datetime(), zod.z.date(), isoDatetimeToDate);
345
+ const UnixSecondsToDateSchema = zod.z.codec(zod.z.number().int().min(0), zod.z.date(), unixSecondsToDate);
346
+ const UnixMillisToDateSchema = zod.z.codec(zod.z.number().int().min(0), zod.z.date(), unixMillisToDate);
347
+ //#endregion
348
+ //#region src/parameters.ts
349
+ const chatIdParam = ChatIdSchema.describe("Chat ID (phone number or formatted ID)").register(require_registry.parameterRegistry, {
350
+ example: "447123456789@c.us",
351
+ brandedType: "ChatId",
352
+ formatDescription: "A contact ID, group ID, or LID JID",
353
+ pattern: "^\\d+(-\\d+)?@(c|g)\\.us$|^\\d+@lid$",
354
+ keyAliases: ["id", "contactId"]
355
+ });
356
+ const contactIdParam = ContactIdSchema.describe("Contact ID").register(require_registry.parameterRegistry, {
357
+ example: "447123456789@c.us",
358
+ brandedType: "ContactId",
359
+ formatDescription: "A WhatsApp contact JID",
360
+ pattern: "^\\d+@c\\.us$",
361
+ keyAliases: ["id"]
362
+ });
363
+ const groupIdParam = GroupIdSchema.describe("Group chat ID").register(require_registry.parameterRegistry, {
364
+ example: "447123456789-1445627445@g.us",
365
+ brandedType: "GroupChatId",
366
+ formatDescription: "A WhatsApp group JID",
367
+ pattern: "^\\d+(-\\d+)?@g\\.us$",
368
+ keyAliases: ["chatId", "groupChatId"],
369
+ deprecatedKeyAliases: ["groupChatId"]
370
+ });
371
+ const communityIdParam = GroupIdSchema.describe("Community ID").register(require_registry.parameterRegistry, {
372
+ example: "447123456789-1445627445@g.us",
373
+ brandedType: "GroupChatId",
374
+ formatDescription: "A WhatsApp community JID",
375
+ pattern: "^\\d+(-\\d+)?@g\\.us$"
376
+ });
377
+ const messageIdParam = MessageIdSchema.describe("Message ID").register(require_registry.parameterRegistry, {
378
+ example: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
379
+ brandedType: "MessageId",
380
+ formatDescription: "A WhatsApp message identifier",
381
+ pattern: "^(true|false)_.+_.+$",
382
+ keyAliases: ["id", "msgId"],
383
+ deprecatedKeyAliases: ["msgId"]
384
+ });
385
+ const toParam = ChatIdSchema.describe("Recipient chat ID").register(require_registry.parameterRegistry, {
386
+ example: "447123456789@c.us",
387
+ brandedType: "ChatId",
388
+ formatDescription: "The target chat for a send operation",
389
+ pattern: "^\\d+(-\\d+)?@(c|g)\\.us$|^\\d+@lid$",
390
+ keyAliases: ["chatId"]
391
+ });
392
+ const contentParam = zod.z.string().min(1).brand("Content").describe("Message content").register(require_registry.parameterRegistry, {
393
+ example: "Hello, world!",
394
+ brandedType: "Content",
395
+ keyAliases: [
396
+ "text",
397
+ "body",
398
+ "message"
399
+ ]
400
+ });
401
+ const captionParam = zod.z.string().optional().describe("Media caption").register(require_registry.parameterRegistry, { example: "Check out this image!" });
402
+ const filenameParam = zod.z.string().optional().describe("Filename with extension").register(require_registry.parameterRegistry, { example: "document.pdf" });
403
+ const userAgentParam = zod.z.string().optional().describe("User agent string").register(require_registry.parameterRegistry, {
404
+ example: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
405
+ keyAliases: ["userA"],
406
+ deprecatedKeyAliases: ["userA"]
407
+ });
408
+ const nameParam = zod.z.string().describe("Display name").register(require_registry.parameterRegistry, {
409
+ example: "OpenWA Bot",
410
+ keyAliases: ["newName"],
411
+ deprecatedKeyAliases: ["newName"]
412
+ });
413
+ const statusTextParam = zod.z.string().describe("Status text").register(require_registry.parameterRegistry, {
414
+ example: "Available",
415
+ keyAliases: ["newStatus"],
416
+ deprecatedKeyAliases: ["newStatus"]
417
+ });
418
+ const imageDataParam = FileToDataUrlSchema.describe("Image file (path, URL, DataURL, or Base64)").register(require_registry.parameterRegistry, {
419
+ example: "data:image/png;base64,iVBORw0KGgo...",
420
+ brandedType: "DataURL"
421
+ });
422
+ const fileDataParam = FileToDataUrlSchema.describe("File (path, URL, DataURL, Base64, or Buffer)").register(require_registry.parameterRegistry, {
423
+ example: "data:application/pdf;base64,JVBERi0xLjQK...",
424
+ brandedType: "DataURL"
425
+ });
426
+ const audioDataParam = FileToDataUrlSchema.describe("Audio file (path, URL, DataURL, or Base64)").register(require_registry.parameterRegistry, {
427
+ example: "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
428
+ brandedType: "DataURL"
429
+ });
430
+ const videoDataParam = FileToDataUrlSchema.describe("Video file (path, URL, DataURL, or Base64)").register(require_registry.parameterRegistry, {
431
+ example: "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21...",
432
+ brandedType: "DataURL"
433
+ });
434
+ const documentDataParam = FileToDataUrlSchema.describe("Document file (path, URL, DataURL, or Base64)").register(require_registry.parameterRegistry, {
435
+ example: "data:application/pdf;base64,JVBERi0xLjQK...",
436
+ brandedType: "DataURL"
437
+ });
438
+ const stickerDataParam = FileToDataUrlSchema.describe("Sticker file (path, URL, DataURL, or Base64)").register(require_registry.parameterRegistry, {
439
+ example: "data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAw...",
440
+ brandedType: "DataURL"
441
+ });
442
+ const latitudeParam = zod.z.union([zod.z.number(), zod.z.string()]).describe("Latitude coordinate").register(require_registry.parameterRegistry, { example: 51.5074 });
443
+ const longitudeParam = zod.z.union([zod.z.number(), zod.z.string()]).describe("Longitude coordinate").register(require_registry.parameterRegistry, { example: -.1278 });
444
+ const locationNameParam = zod.z.string().optional().describe("Location name or description").register(require_registry.parameterRegistry, { example: "London, UK" });
445
+ const waitForIdParam = zod.z.boolean().optional().default(false).describe("Wait for message ID").register(require_registry.parameterRegistry, { example: true });
446
+ const includeMeParam = zod.z.boolean().optional().default(true).describe("Include own messages").register(require_registry.parameterRegistry, { example: true });
447
+ const includeNotificationsParam = zod.z.boolean().optional().default(false).describe("Include notification messages").register(require_registry.parameterRegistry, { example: false });
448
+ const onlyLocalParam = zod.z.boolean().optional().default(false).describe("Delete only locally").register(require_registry.parameterRegistry, { example: false });
449
+ const skipMyMessagesParam = zod.z.boolean().optional().default(false).describe("Skip own messages").register(require_registry.parameterRegistry, { example: false });
450
+ const withNewMessagesOnlyParam = zod.z.boolean().optional().default(false).describe("Only chats with unread messages").register(require_registry.parameterRegistry, { example: false });
451
+ const messageIdsParam = zod.z.union([zod.z.array(messageIdParam), messageIdParam]).describe("Message ID(s) to process").register(require_registry.parameterRegistry, {
452
+ example: ["false_447123456789@c.us_ABC123", "false_447123456789@c.us_DEF456"],
453
+ brandedType: "MessageId[]",
454
+ keyAliases: ["messages"]
455
+ });
456
+ const mentionedJidListParam = zod.z.array(contactIdParam).optional().describe("List of mentioned contact IDs").register(require_registry.parameterRegistry, { example: ["447123456789@c.us", "441234567890@c.us"] });
457
+ const messageOptionsParam = zod.z.any().optional().describe("Additional message options").register(require_registry.parameterRegistry, { example: {
458
+ quotedMsg: "messageId",
459
+ mentionedJidList: ["447123456789@c.us"]
460
+ } });
461
+ //#endregion
462
+ //#region src/methods/messaging.ts
463
+ /**
464
+ * Sends a text message to a chat
465
+ */
466
+ const sendText = require_registry.defineMethodV2("sendText", {
467
+ meta: {
468
+ description: "Sends a text message to a chat",
469
+ action: "send",
470
+ namespace: "messages",
471
+ license: "none",
472
+ functionality: "both",
473
+ httpMethod: "POST"
474
+ },
475
+ input: zod.z.object({
476
+ to: toParam,
477
+ content: contentParam,
478
+ options: messageOptionsParam
479
+ }),
480
+ parameterOrder: [
481
+ "to",
482
+ "content",
483
+ "options"
484
+ ],
485
+ output: MessageIdReturnSchema.or(zod.z.boolean()).or(zod.z.string())
486
+ });
487
+ /**
488
+ * Sends a text message with mentions
489
+ */
490
+ const sendTextWithMentions = require_registry.defineMethodV2("sendTextWithMentions", {
491
+ meta: {
492
+ description: "Sends a text message that includes @mentions",
493
+ action: "send",
494
+ namespace: "messages",
495
+ license: "none",
496
+ functionality: "both",
497
+ httpMethod: "POST"
498
+ },
499
+ input: zod.z.object({
500
+ to: toParam,
501
+ content: contentParam,
502
+ hideTags: zod.z.boolean().optional().describe("Removes all tags within the message"),
503
+ mentions: mentionedJidListParam
504
+ }),
505
+ parameterOrder: [
506
+ "to",
507
+ "content",
508
+ "hideTags",
509
+ "mentions"
510
+ ],
511
+ output: MessageIdReturnSchema.or(zod.z.boolean())
512
+ });
513
+ /**
514
+ * Sends a reply with mentions
515
+ */
516
+ const sendReplyWithMentions = require_registry.defineMethodV2("sendReplyWithMentions", {
517
+ meta: {
518
+ description: "Sends a reply to a message that includes @mentions",
519
+ action: "send",
520
+ namespace: "messages",
521
+ license: "none",
522
+ functionality: "both",
523
+ httpMethod: "POST"
524
+ },
525
+ input: zod.z.object({
526
+ to: toParam,
527
+ content: contentParam,
528
+ replyMessageId: messageIdParam,
529
+ hideTags: zod.z.boolean().optional().describe("Removes all tags within the message"),
530
+ mentions: mentionedJidListParam
531
+ }),
532
+ parameterOrder: [
533
+ "to",
534
+ "content",
535
+ "replyMessageId",
536
+ "hideTags",
537
+ "mentions"
538
+ ],
539
+ output: MessageIdReturnSchema.or(zod.z.boolean())
540
+ });
541
+ /**
542
+ * Sends a payment request
543
+ */
544
+ const sendPaymentRequest = require_registry.defineMethodV2("sendPaymentRequest", {
545
+ meta: {
546
+ description: "Sends a payment request message",
547
+ action: "send",
548
+ namespace: "messages",
549
+ license: "none",
550
+ functionality: "both",
551
+ httpMethod: "POST"
552
+ },
553
+ input: zod.z.object({
554
+ to: toParam,
555
+ amount: zod.z.number().describe("Amount in 1000 format (e.g £10 => 10000)"),
556
+ currency: zod.z.string().length(3).describe("3 letter currency code"),
557
+ message: zod.z.string().optional().describe("Optional message")
558
+ }),
559
+ parameterOrder: [
560
+ "to",
561
+ "amount",
562
+ "currency",
563
+ "message"
564
+ ],
565
+ output: MessageIdReturnSchema.or(zod.z.boolean())
566
+ });
567
+ /**
568
+ * Sends an image to a chat
569
+ */
570
+ const sendImage = require_registry.defineMethodV2("sendImage", {
571
+ meta: {
572
+ description: "Sends an image to a chat",
573
+ action: "send",
574
+ namespace: "messages",
575
+ license: "none",
576
+ functionality: "both",
577
+ httpMethod: "POST"
578
+ },
579
+ input: zod.z.object({
580
+ to: toParam,
581
+ imgData: imageDataParam,
582
+ filename: filenameParam,
583
+ caption: captionParam,
584
+ id: messageIdParam.optional(),
585
+ waitForId: waitForIdParam
586
+ }),
587
+ parameterOrder: [
588
+ "to",
589
+ "imgData",
590
+ "filename",
591
+ "caption",
592
+ "id",
593
+ "waitForId"
594
+ ],
595
+ output: MessageIdReturnSchema.or(zod.z.boolean()).or(zod.z.string())
596
+ });
597
+ /**
598
+ * Sends a file/document
599
+ */
600
+ const sendFile = require_registry.defineMethodV2("sendFile", {
601
+ meta: {
602
+ description: "Sends a file or document to a chat",
603
+ action: "send",
604
+ namespace: "messages",
605
+ license: "none",
606
+ functionality: "both",
607
+ httpMethod: "POST"
608
+ },
609
+ input: zod.z.object({
610
+ to: toParam,
611
+ file: fileDataParam,
612
+ filename: filenameParam,
613
+ caption: captionParam
614
+ }),
615
+ parameterOrder: [
616
+ "to",
617
+ "file",
618
+ "filename",
619
+ "caption"
620
+ ],
621
+ output: MessageIdReturnSchema.or(zod.z.string())
622
+ });
623
+ /**
624
+ * Sends an audio file
625
+ */
626
+ const sendAudio = require_registry.defineMethodV2("sendAudio", {
627
+ meta: {
628
+ description: "Sends an audio file to a chat",
629
+ action: "send",
630
+ namespace: "messages",
631
+ license: "none",
632
+ functionality: "both",
633
+ httpMethod: "POST"
634
+ },
635
+ input: zod.z.object({
636
+ to: toParam,
637
+ file: audioDataParam,
638
+ filename: filenameParam,
639
+ quotedMsgId: messageIdParam.optional()
640
+ }),
641
+ parameterOrder: [
642
+ "to",
643
+ "file",
644
+ "filename",
645
+ "quotedMsgId"
646
+ ],
647
+ output: MessageIdReturnSchema.or(zod.z.boolean())
648
+ });
649
+ /**
650
+ * Sends a voice note (PTT)
651
+ */
652
+ const sendPtt = require_registry.defineMethodV2("sendPtt", {
653
+ meta: {
654
+ description: "Sends a voice note (push-to-talk) to a chat",
655
+ action: "send",
656
+ namespace: "messages",
657
+ license: "none",
658
+ functionality: "both",
659
+ httpMethod: "POST",
660
+ aliases: { explicit: ["sendVoiceNote"] }
661
+ },
662
+ input: zod.z.object({
663
+ to: toParam,
664
+ file: audioDataParam,
665
+ quotedMsgId: messageIdParam.optional()
666
+ }),
667
+ parameterOrder: [
668
+ "to",
669
+ "file",
670
+ "quotedMsgId"
671
+ ],
672
+ output: MessageIdReturnSchema.or(zod.z.boolean())
673
+ });
674
+ /**
675
+ * Sends a video as GIF
676
+ */
677
+ const sendVideoAsGif = require_registry.defineMethodV2("sendVideoAsGif", {
678
+ meta: {
679
+ description: "Sends a video as an animated GIF",
680
+ action: "send",
681
+ namespace: "messages",
682
+ license: "none",
683
+ functionality: "both",
684
+ httpMethod: "POST"
685
+ },
686
+ input: zod.z.object({
687
+ to: toParam,
688
+ file: videoDataParam,
689
+ filename: filenameParam,
690
+ caption: captionParam,
691
+ quotedMsgId: messageIdParam.optional()
692
+ }),
693
+ parameterOrder: [
694
+ "to",
695
+ "file",
696
+ "filename",
697
+ "caption",
698
+ "quotedMsgId"
699
+ ],
700
+ output: MessageIdReturnSchema.or(zod.z.boolean())
701
+ });
702
+ /**
703
+ * Sends a location
704
+ */
705
+ const sendLocation = require_registry.defineMethodV2("sendLocation", {
706
+ meta: {
707
+ description: "Sends a location to a chat",
708
+ action: "send",
709
+ namespace: "messages",
710
+ license: "none",
711
+ functionality: "both",
712
+ httpMethod: "POST"
713
+ },
714
+ input: zod.z.object({
715
+ to: toParam,
716
+ lat: latitudeParam,
717
+ lng: longitudeParam,
718
+ loc: locationNameParam,
719
+ address: zod.z.string().optional().describe("Address text"),
720
+ url: zod.z.string().url().optional().describe("Address link")
721
+ }),
722
+ parameterOrder: [
723
+ "to",
724
+ "lat",
725
+ "lng",
726
+ "loc",
727
+ "address",
728
+ "url"
729
+ ],
730
+ output: MessageIdReturnSchema.or(zod.z.boolean())
731
+ });
732
+ /**
733
+ * Sends a vCard
734
+ */
735
+ const sendVCard = require_registry.defineMethodV2("sendVCard", {
736
+ meta: {
737
+ description: "Sends a contact card (vCard)",
738
+ action: "send",
739
+ namespace: "messages",
740
+ license: "none",
741
+ functionality: "both",
742
+ httpMethod: "POST"
743
+ },
744
+ input: zod.z.object({
745
+ to: toParam,
746
+ vcard: zod.z.string().describe("vCard string"),
747
+ contactName: zod.z.string().optional().describe("Contact display name"),
748
+ contactNumber: zod.z.string().optional().describe("Contact number with country code")
749
+ }),
750
+ parameterOrder: [
751
+ "to",
752
+ "vcard",
753
+ "contactName",
754
+ "contactNumber"
755
+ ],
756
+ output: zod.z.boolean()
757
+ });
758
+ /**
759
+ * Sends a contact
760
+ */
761
+ const sendContact = require_registry.defineMethodV2("sendContact", {
762
+ meta: {
763
+ description: "Sends a single contact",
764
+ action: "send",
765
+ namespace: "messages",
766
+ license: "none",
767
+ functionality: "both",
768
+ httpMethod: "POST"
769
+ },
770
+ input: zod.z.object({
771
+ to: toParam,
772
+ contactId: contactIdParam.or(zod.z.array(contactIdParam))
773
+ }),
774
+ parameterOrder: ["to", "contactId"],
775
+ output: MessageIdReturnSchema.or(zod.z.boolean())
776
+ });
777
+ /**
778
+ * Sends multiple contacts
779
+ */
780
+ const sendMultipleContacts = require_registry.defineMethodV2("sendMultipleContacts", {
781
+ meta: {
782
+ description: "Sends multiple contacts",
783
+ action: "send",
784
+ namespace: "messages",
785
+ license: "none",
786
+ functionality: "both",
787
+ httpMethod: "POST",
788
+ aliases: {
789
+ explicit: ["sendContacts"],
790
+ namespacedName: "sendContacts"
791
+ }
792
+ },
793
+ input: zod.z.object({
794
+ to: toParam,
795
+ contactIds: zod.z.array(contactIdParam)
796
+ }),
797
+ parameterOrder: ["to", "contactIds"],
798
+ output: MessageIdReturnSchema.or(zod.z.boolean())
799
+ });
800
+ /**
801
+ * Sends button message
802
+ */
803
+ const sendButtons = require_registry.defineMethodV2("sendButtons", {
804
+ meta: {
805
+ description: "Sends a button message (deprecated)",
806
+ action: "send",
807
+ namespace: "messages",
808
+ license: "insiders",
809
+ functionality: "both",
810
+ httpMethod: "POST"
811
+ },
812
+ input: zod.z.object({
813
+ to: toParam,
814
+ body: zod.z.union([zod.z.string(), zod.z.any()]).describe("Message body or location"),
815
+ buttons: zod.z.array(zod.z.any()).max(3).describe("Array of buttons (max 3)"),
816
+ title: zod.z.string().optional().describe("Message title"),
817
+ footer: zod.z.string().optional().describe("Message footer")
818
+ }),
819
+ parameterOrder: [
820
+ "to",
821
+ "body",
822
+ "buttons",
823
+ "title",
824
+ "footer"
825
+ ],
826
+ output: MessageIdReturnSchema.or(zod.z.boolean())
827
+ });
828
+ /**
829
+ * Sends advanced button message
830
+ */
831
+ const sendAdvancedButtons = require_registry.defineMethodV2("sendAdvancedButtons", {
832
+ meta: {
833
+ description: "Sends an advanced button message with media (deprecated)",
834
+ action: "send",
835
+ namespace: "messages",
836
+ license: "insiders",
837
+ functionality: "both",
838
+ httpMethod: "POST"
839
+ },
840
+ input: zod.z.object({
841
+ to: toParam,
842
+ body: zod.z.union([zod.z.string(), zod.z.any()]).describe("Message body, location, or media"),
843
+ buttons: zod.z.array(zod.z.any()).max(3).describe("Array of advanced buttons (max 3)"),
844
+ text: zod.z.string().describe("Message text"),
845
+ footer: zod.z.string().describe("Message footer"),
846
+ filename: zod.z.string().describe("Filename if body is a file")
847
+ }),
848
+ parameterOrder: [
849
+ "to",
850
+ "body",
851
+ "buttons",
852
+ "text",
853
+ "footer",
854
+ "filename"
855
+ ],
856
+ output: MessageIdReturnSchema.or(zod.z.boolean())
857
+ });
858
+ /**
859
+ * Sends list message
860
+ */
861
+ const sendListMessage = require_registry.defineMethodV2("sendListMessage", {
862
+ meta: {
863
+ description: "Sends a list/menu message (deprecated)",
864
+ action: "send",
865
+ namespace: "messages",
866
+ license: "insiders",
867
+ functionality: "both",
868
+ httpMethod: "POST",
869
+ aliases: { explicit: ["sendList"] }
870
+ },
871
+ input: zod.z.object({
872
+ to: toParam,
873
+ sections: zod.z.array(zod.z.any()).describe("List sections"),
874
+ title: zod.z.string().describe("List title"),
875
+ description: zod.z.string().describe("List description"),
876
+ actionText: zod.z.string().describe("Action button text")
877
+ }),
878
+ parameterOrder: [
879
+ "to",
880
+ "sections",
881
+ "title",
882
+ "description",
883
+ "actionText"
884
+ ],
885
+ output: MessageIdReturnSchema.or(zod.z.boolean())
886
+ });
887
+ /**
888
+ * Sends a poll
889
+ */
890
+ const sendPoll = require_registry.defineMethodV2("sendPoll", {
891
+ meta: {
892
+ description: "Sends a poll message",
893
+ action: "send",
894
+ namespace: "messages",
895
+ license: "none",
896
+ functionality: "both",
897
+ httpMethod: "POST"
898
+ },
899
+ input: zod.z.object({
900
+ to: toParam,
901
+ name: zod.z.string().describe("Poll question"),
902
+ options: zod.z.array(zod.z.string()).min(2).max(12).describe("Poll options (2-12)"),
903
+ selectableCount: zod.z.number().optional().default(1).describe("Number of selectable options")
904
+ }),
905
+ parameterOrder: [
906
+ "to",
907
+ "name",
908
+ "options",
909
+ "selectableCount"
910
+ ],
911
+ output: MessageIdReturnSchema.or(zod.z.boolean())
912
+ });
913
+ /**
914
+ * Sends a banner image
915
+ */
916
+ const sendBanner = require_registry.defineMethodV2("sendBanner", {
917
+ meta: {
918
+ description: "Sends a banner image",
919
+ action: "send",
920
+ namespace: "messages",
921
+ license: "none",
922
+ functionality: "both",
923
+ httpMethod: "POST"
924
+ },
925
+ input: zod.z.object({
926
+ to: toParam,
927
+ base64: zod.z.string().describe("Base64 encoded JPEG")
928
+ }),
929
+ parameterOrder: ["to", "base64"],
930
+ output: MessageIdReturnSchema.or(zod.z.boolean())
931
+ });
932
+ /**
933
+ * Sends YouTube link with preview
934
+ */
935
+ const sendYouTubeLink = require_registry.defineMethodV2("sendYouTubeLink", {
936
+ meta: {
937
+ description: "Sends a YouTube link with auto-generated preview",
938
+ action: "send",
939
+ namespace: "messages",
940
+ license: "none",
941
+ functionality: "both",
942
+ httpMethod: "POST",
943
+ aliases: { deprecated: ["sendYoutubeLink"] },
944
+ wapiOverride: "sendYoutubeLink"
945
+ },
946
+ input: zod.z.object({
947
+ to: toParam,
948
+ url: zod.z.string().url().describe("YouTube URL"),
949
+ text: contentParam.optional().default(""),
950
+ thumbnail: zod.z.string().optional().describe("Base64 thumbnail override"),
951
+ quotedMsgId: messageIdParam.optional(),
952
+ customSize: zod.z.object({
953
+ height: zod.z.number(),
954
+ width: zod.z.number()
955
+ }).optional().describe("Custom thumbnail size")
956
+ }),
957
+ parameterOrder: [
958
+ "to",
959
+ "url",
960
+ "text",
961
+ "thumbnail",
962
+ "quotedMsgId",
963
+ "customSize"
964
+ ],
965
+ output: MessageIdReturnSchema.or(zod.z.boolean())
966
+ });
967
+ /**
968
+ * Sends link with auto preview
969
+ */
970
+ const sendLinkWithAutoPreview = require_registry.defineMethodV2("sendLinkWithAutoPreview", {
971
+ meta: {
972
+ description: "Sends a link with auto-generated preview",
973
+ action: "send",
974
+ namespace: "messages",
975
+ license: "none",
976
+ functionality: "both",
977
+ httpMethod: "POST",
978
+ aliases: { explicit: ["sendLink"] }
979
+ },
980
+ input: zod.z.object({
981
+ to: toParam,
982
+ url: zod.z.string().url().describe("Link URL"),
983
+ text: contentParam.optional(),
984
+ thumbnail: zod.z.string().optional().describe("Base64 thumbnail override"),
985
+ quotedMsgId: messageIdParam.optional(),
986
+ customSize: zod.z.object({
987
+ height: zod.z.number(),
988
+ width: zod.z.number()
989
+ }).optional().describe("Custom thumbnail size")
990
+ }),
991
+ parameterOrder: [
992
+ "to",
993
+ "url",
994
+ "text",
995
+ "thumbnail",
996
+ "quotedMsgId",
997
+ "customSize"
998
+ ],
999
+ output: MessageIdReturnSchema.or(zod.z.boolean())
1000
+ });
1001
+ /**
1002
+ * Sends message with custom thumbnail
1003
+ */
1004
+ const sendMessageWithThumb = require_registry.defineMethodV2("sendMessageWithThumb", {
1005
+ meta: {
1006
+ description: "Sends a link preview message with custom thumbnail",
1007
+ action: "send",
1008
+ namespace: "messages",
1009
+ license: "none",
1010
+ functionality: "both",
1011
+ httpMethod: "POST",
1012
+ aliases: {
1013
+ explicit: ["sendLinkWithThumbnail"],
1014
+ namespacedName: "sendLinkWithThumbnail"
1015
+ }
1016
+ },
1017
+ input: zod.z.object({
1018
+ thumb: zod.z.string().describe("Base64 thumbnail (max 200x200px)"),
1019
+ url: zod.z.string().url().describe("Link URL"),
1020
+ title: zod.z.string().describe("Link title"),
1021
+ description: zod.z.string().describe("Link description"),
1022
+ content: contentParam,
1023
+ to: toParam,
1024
+ quotedMsgId: messageIdParam.optional(),
1025
+ customSize: zod.z.object({
1026
+ height: zod.z.number(),
1027
+ width: zod.z.number()
1028
+ }).optional().describe("Custom thumbnail size")
1029
+ }),
1030
+ parameterOrder: [
1031
+ "thumb",
1032
+ "url",
1033
+ "title",
1034
+ "description",
1035
+ "content",
1036
+ "to",
1037
+ "quotedMsgId",
1038
+ "customSize"
1039
+ ],
1040
+ output: MessageIdReturnSchema.or(zod.z.boolean())
1041
+ });
1042
+ /**
1043
+ * Forwards messages to a chat
1044
+ */
1045
+ const forwardMessages = require_registry.defineMethodV2("forwardMessages", {
1046
+ meta: {
1047
+ description: "Forwards messages to a chat",
1048
+ action: "send",
1049
+ namespace: "messages",
1050
+ license: "none",
1051
+ functionality: "both",
1052
+ httpMethod: "POST",
1053
+ aliases: { namespacedName: "forward" }
1054
+ },
1055
+ input: zod.z.object({
1056
+ to: toParam,
1057
+ messages: messageIdsParam,
1058
+ skipMyMessages: skipMyMessagesParam
1059
+ }),
1060
+ parameterOrder: [
1061
+ "to",
1062
+ "messages",
1063
+ "skipMyMessages"
1064
+ ],
1065
+ output: zod.z.array(MessageIdReturnSchema).or(zod.z.boolean())
1066
+ });
1067
+ /**
1068
+ * Deletes a message
1069
+ */
1070
+ const deleteMessage = require_registry.defineMethodV2("deleteMessage", {
1071
+ meta: {
1072
+ description: "Deletes a message",
1073
+ action: "delete",
1074
+ namespace: "messages",
1075
+ license: "none",
1076
+ functionality: "both",
1077
+ httpMethod: "DELETE",
1078
+ aliases: { namespacedName: "delete" }
1079
+ },
1080
+ input: zod.z.object({
1081
+ chatId: chatIdParam,
1082
+ messageId: messageIdsParam,
1083
+ onlyLocal: zod.z.boolean().optional().default(false).describe("Delete only locally")
1084
+ }),
1085
+ parameterOrder: [
1086
+ "chatId",
1087
+ "messageId",
1088
+ "onlyLocal"
1089
+ ],
1090
+ output: zod.z.boolean()
1091
+ });
1092
+ /**
1093
+ * Retrieves a specific message by ID
1094
+ */
1095
+ const getMessageById = require_registry.defineMethodV2("getMessageById", {
1096
+ meta: {
1097
+ description: "Retrieves a specific message by ID",
1098
+ action: "read",
1099
+ namespace: "messages",
1100
+ license: "none",
1101
+ functionality: "both",
1102
+ httpMethod: "GET",
1103
+ aliases: {
1104
+ explicit: ["getMessage"],
1105
+ namespacedName: "get"
1106
+ }
1107
+ },
1108
+ input: zod.z.object({ messageId: messageIdParam }),
1109
+ parameterOrder: ["messageId"],
1110
+ output: zod.z.any()
1111
+ });
1112
+ /**
1113
+ * Retrieves all messages in the session
1114
+ */
1115
+ const getAllMessages = require_registry.defineMethodV2("getAllMessages", {
1116
+ meta: {
1117
+ description: "Retrieves all messages in the session",
1118
+ action: "read",
1119
+ namespace: "messages",
1120
+ license: "none",
1121
+ functionality: "both",
1122
+ httpMethod: "GET"
1123
+ },
1124
+ input: zod.z.object({
1125
+ chatId: chatIdParam.optional(),
1126
+ includeMe: zod.z.boolean().optional().default(true).describe("Include own messages"),
1127
+ includeNotifications: zod.z.boolean().optional().default(false).describe("Include notification messages")
1128
+ }),
1129
+ parameterOrder: [
1130
+ "chatId",
1131
+ "includeMe",
1132
+ "includeNotifications"
1133
+ ],
1134
+ output: zod.z.array(zod.z.any())
1135
+ });
1136
+ const getMyLastMessage = require_registry.defineMethodV2("getMyLastMessage", {
1137
+ meta: {
1138
+ description: "Get last message sent by host",
1139
+ action: "read",
1140
+ namespace: "messages",
1141
+ license: "none",
1142
+ functionality: "both",
1143
+ httpMethod: "GET"
1144
+ },
1145
+ input: zod.z.object({ chatId: chatIdParam.optional() }),
1146
+ parameterOrder: ["chatId"],
1147
+ output: zod.z.any()
1148
+ });
1149
+ const getStarredMessages = require_registry.defineMethodV2("getStarredMessages", {
1150
+ meta: {
1151
+ description: "Get starred messages",
1152
+ action: "read",
1153
+ namespace: "messages",
1154
+ license: "insiders",
1155
+ functionality: "both",
1156
+ httpMethod: "GET"
1157
+ },
1158
+ input: zod.z.object({ chatId: chatIdParam.optional() }),
1159
+ parameterOrder: ["chatId"],
1160
+ output: zod.z.array(zod.z.any())
1161
+ });
1162
+ const getUnsentMessages = require_registry.defineMethodV2("getUnsentMessages", {
1163
+ meta: {
1164
+ description: "Get unsent/pending messages",
1165
+ action: "read",
1166
+ namespace: "messages",
1167
+ license: "none",
1168
+ functionality: "both",
1169
+ httpMethod: "GET"
1170
+ },
1171
+ input: zod.z.object({}),
1172
+ parameterOrder: [],
1173
+ output: zod.z.array(zod.z.any())
1174
+ });
1175
+ const getMessageInfo = require_registry.defineMethodV2("getMessageInfo", {
1176
+ meta: {
1177
+ description: "Get message delivery info",
1178
+ action: "read",
1179
+ namespace: "messages",
1180
+ license: "none",
1181
+ functionality: "both",
1182
+ httpMethod: "GET"
1183
+ },
1184
+ input: zod.z.object({ messageId: messageIdParam }),
1185
+ parameterOrder: ["messageId"],
1186
+ output: zod.z.any()
1187
+ });
1188
+ const getVCards = require_registry.defineMethodV2("getVCards", {
1189
+ meta: {
1190
+ description: "Extract vCards from message",
1191
+ action: "read",
1192
+ namespace: "messages",
1193
+ license: "none",
1194
+ functionality: "both",
1195
+ httpMethod: "GET"
1196
+ },
1197
+ input: zod.z.object({ messageId: messageIdParam }),
1198
+ parameterOrder: ["messageId"],
1199
+ output: zod.z.array(zod.z.string())
1200
+ });
1201
+ const getMessagesForLLM = require_registry.defineMethodV2("getMessagesForLLM", {
1202
+ meta: {
1203
+ description: "Get messages formatted for LLMs",
1204
+ action: "read",
1205
+ namespace: "messages",
1206
+ license: "none",
1207
+ functionality: "both",
1208
+ httpMethod: "GET",
1209
+ aliases: { deprecated: ["getGptArray"] },
1210
+ wapiOverride: "getGptArray"
1211
+ },
1212
+ input: zod.z.object({
1213
+ chatId: chatIdParam,
1214
+ last: zod.z.number().optional().default(10)
1215
+ }),
1216
+ parameterOrder: ["chatId", "last"],
1217
+ output: zod.z.any()
1218
+ });
1219
+ const starMessage = require_registry.defineMethodV2("starMessage", {
1220
+ meta: {
1221
+ description: "Star a message",
1222
+ action: "update",
1223
+ namespace: "messages",
1224
+ license: "none",
1225
+ functionality: "both",
1226
+ httpMethod: "PUT"
1227
+ },
1228
+ input: zod.z.object({ messageId: messageIdParam }),
1229
+ parameterOrder: ["messageId"],
1230
+ output: zod.z.boolean()
1231
+ });
1232
+ const unstarMessage = require_registry.defineMethodV2("unstarMessage", {
1233
+ meta: {
1234
+ description: "Unstar a message",
1235
+ action: "update",
1236
+ namespace: "messages",
1237
+ license: "none",
1238
+ functionality: "both",
1239
+ httpMethod: "PUT"
1240
+ },
1241
+ input: zod.z.object({ messageId: messageIdParam }),
1242
+ parameterOrder: ["messageId"],
1243
+ output: zod.z.boolean()
1244
+ });
1245
+ const react = require_registry.defineMethodV2("react", {
1246
+ meta: {
1247
+ description: "React to message with emoji",
1248
+ action: "send",
1249
+ namespace: "messages",
1250
+ license: "none",
1251
+ functionality: "both",
1252
+ httpMethod: "POST"
1253
+ },
1254
+ input: zod.z.object({
1255
+ messageId: messageIdParam,
1256
+ emoji: zod.z.string().describe("Emoji reaction")
1257
+ }),
1258
+ parameterOrder: ["messageId", "emoji"],
1259
+ output: zod.z.boolean()
1260
+ });
1261
+ const sendSeen = require_registry.defineMethodV2("sendSeen", {
1262
+ meta: {
1263
+ description: "Mark message as seen",
1264
+ action: "update",
1265
+ namespace: "messages",
1266
+ license: "none",
1267
+ functionality: "both",
1268
+ httpMethod: "PUT"
1269
+ },
1270
+ input: zod.z.object({ chatId: chatIdParam }),
1271
+ parameterOrder: ["chatId"],
1272
+ output: zod.z.boolean()
1273
+ });
1274
+ const loadEarlierMessages = require_registry.defineMethodV2("loadEarlierMessages", {
1275
+ meta: {
1276
+ description: "Loads earlier messages from a chat",
1277
+ action: "read",
1278
+ namespace: "messages",
1279
+ license: "none",
1280
+ functionality: "both",
1281
+ httpMethod: "POST",
1282
+ aliases: {
1283
+ explicit: ["loadOlderMessages"],
1284
+ namespacedName: "loadEarlier"
1285
+ }
1286
+ },
1287
+ input: zod.z.object({
1288
+ chatId: chatIdParam,
1289
+ count: zod.z.number().positive().optional().describe("Number of messages to load (default: 20)"),
1290
+ includeMe: zod.z.boolean().optional().describe("Whether to include messages from the host account (default: false)")
1291
+ }),
1292
+ parameterOrder: [
1293
+ "chatId",
1294
+ "count",
1295
+ "includeMe"
1296
+ ],
1297
+ output: zod.z.array(zod.z.any())
1298
+ });
1299
+ const sendFileFromUrl = require_registry.defineMethodV2("sendFileFromUrl", {
1300
+ meta: {
1301
+ description: "Downloads a file from a URL and sends it to a chat",
1302
+ action: "send",
1303
+ namespace: "messages",
1304
+ license: "none",
1305
+ functionality: "both",
1306
+ httpMethod: "POST"
1307
+ },
1308
+ input: zod.z.object({
1309
+ to: toParam,
1310
+ url: zod.z.string().url().describe("URL of the file to download"),
1311
+ filename: zod.z.string().describe("Filename for the sent file"),
1312
+ caption: zod.z.string().optional().describe("Caption for the file"),
1313
+ headers: zod.z.record(zod.z.string(), zod.z.string()).optional().describe("HTTP headers for the download request")
1314
+ }),
1315
+ parameterOrder: [
1316
+ "to",
1317
+ "url",
1318
+ "filename",
1319
+ "caption",
1320
+ "headers"
1321
+ ],
1322
+ output: zod.z.string().or(zod.z.boolean()).describe("Message ID or success status")
1323
+ });
1324
+ //#endregion
1325
+ //#region src/methods/chats.ts
1326
+ const getAllChats = require_registry.defineMethodV2("getAllChats", {
1327
+ meta: {
1328
+ description: "Retrieves all chats",
1329
+ action: "read",
1330
+ namespace: "chats",
1331
+ license: "none",
1332
+ functionality: "both",
1333
+ httpMethod: "GET"
1334
+ },
1335
+ input: zod.z.object({ withNewMessagesOnly: withNewMessagesOnlyParam }),
1336
+ parameterOrder: ["withNewMessagesOnly"],
1337
+ output: zod.z.array(zod.z.any())
1338
+ });
1339
+ const getAllChatIds = require_registry.defineMethodV2("getAllChatIds", {
1340
+ meta: {
1341
+ description: "Get all chat IDs",
1342
+ action: "read",
1343
+ namespace: "chatIds",
1344
+ license: "none",
1345
+ functionality: "both",
1346
+ httpMethod: "GET",
1347
+ aliases: { explicit: ["chats.ids"] }
1348
+ },
1349
+ input: zod.z.object({}),
1350
+ parameterOrder: [],
1351
+ output: zod.z.array(zod.z.string())
1352
+ });
1353
+ const getChat = require_registry.defineMethodV2("getChat", {
1354
+ meta: {
1355
+ description: "Get specific chat by ID",
1356
+ action: "read",
1357
+ namespace: "chats",
1358
+ license: "none",
1359
+ functionality: "both",
1360
+ httpMethod: "GET",
1361
+ aliases: { explicit: ["getChatById"] }
1362
+ },
1363
+ input: zod.z.object({ chatId: chatIdParam }),
1364
+ parameterOrder: ["chatId"],
1365
+ output: zod.z.any()
1366
+ });
1367
+ const getChatWithNonContacts = require_registry.defineMethodV2("getChatWithNonContacts", {
1368
+ meta: {
1369
+ description: "Get chats with non-contacts",
1370
+ action: "read",
1371
+ namespace: "chats",
1372
+ license: "none",
1373
+ functionality: "both",
1374
+ httpMethod: "GET"
1375
+ },
1376
+ input: zod.z.object({}),
1377
+ parameterOrder: [],
1378
+ output: zod.z.array(zod.z.any())
1379
+ });
1380
+ const archiveChat = require_registry.defineMethodV2("archiveChat", {
1381
+ meta: {
1382
+ description: "Archive a chat",
1383
+ action: "update",
1384
+ namespace: "chats",
1385
+ license: "none",
1386
+ functionality: "both",
1387
+ httpMethod: "PUT"
1388
+ },
1389
+ input: zod.z.object({ chatId: chatIdParam }),
1390
+ parameterOrder: ["chatId"],
1391
+ output: zod.z.boolean()
1392
+ });
1393
+ const unarchiveChat = require_registry.defineMethodV2("unarchiveChat", {
1394
+ meta: {
1395
+ description: "Unarchive a chat",
1396
+ action: "update",
1397
+ namespace: "chats",
1398
+ license: "none",
1399
+ functionality: "both",
1400
+ httpMethod: "PUT"
1401
+ },
1402
+ input: zod.z.object({ chatId: chatIdParam }),
1403
+ parameterOrder: ["chatId"],
1404
+ output: zod.z.boolean()
1405
+ });
1406
+ const clearChat = require_registry.defineMethodV2("clearChat", {
1407
+ meta: {
1408
+ description: "Clear chat history",
1409
+ action: "delete",
1410
+ namespace: "chats",
1411
+ license: "none",
1412
+ functionality: "both",
1413
+ httpMethod: "DELETE"
1414
+ },
1415
+ input: zod.z.object({ chatId: chatIdParam }),
1416
+ parameterOrder: ["chatId"],
1417
+ output: zod.z.boolean()
1418
+ });
1419
+ const deleteChat = require_registry.defineMethodV2("deleteChat", {
1420
+ meta: {
1421
+ description: "Delete a chat",
1422
+ action: "delete",
1423
+ namespace: "chats",
1424
+ license: "none",
1425
+ functionality: "both",
1426
+ httpMethod: "DELETE"
1427
+ },
1428
+ input: zod.z.object({ chatId: chatIdParam }),
1429
+ parameterOrder: ["chatId"],
1430
+ output: zod.z.boolean()
1431
+ });
1432
+ const pinChat = require_registry.defineMethodV2("pinChat", {
1433
+ meta: {
1434
+ description: "Pin a chat",
1435
+ action: "update",
1436
+ namespace: "chats",
1437
+ license: "none",
1438
+ functionality: "both",
1439
+ httpMethod: "PUT"
1440
+ },
1441
+ input: zod.z.object({ chatId: chatIdParam }),
1442
+ parameterOrder: ["chatId"],
1443
+ output: zod.z.boolean()
1444
+ });
1445
+ const unpinChat = require_registry.defineMethodV2("unpinChat", {
1446
+ meta: {
1447
+ description: "Unpin a chat",
1448
+ action: "update",
1449
+ namespace: "chats",
1450
+ license: "none",
1451
+ functionality: "both",
1452
+ httpMethod: "PUT"
1453
+ },
1454
+ input: zod.z.object({ chatId: chatIdParam }),
1455
+ parameterOrder: ["chatId"],
1456
+ output: zod.z.boolean()
1457
+ });
1458
+ const muteChat = require_registry.defineMethodV2("muteChat", {
1459
+ meta: {
1460
+ description: "Mute a chat",
1461
+ action: "update",
1462
+ namespace: "chats",
1463
+ license: "none",
1464
+ functionality: "both",
1465
+ httpMethod: "PUT"
1466
+ },
1467
+ input: zod.z.object({
1468
+ chatId: chatIdParam,
1469
+ muteDuration: zod.z.union([zod.z.number(), zod.z.string()]).describe("Mute duration")
1470
+ }),
1471
+ parameterOrder: ["chatId", "muteDuration"],
1472
+ output: zod.z.union([
1473
+ zod.z.string(),
1474
+ zod.z.boolean(),
1475
+ zod.z.number()
1476
+ ])
1477
+ });
1478
+ const unmuteChat = require_registry.defineMethodV2("unmuteChat", {
1479
+ meta: {
1480
+ description: "Unmute a chat",
1481
+ action: "update",
1482
+ namespace: "chats",
1483
+ license: "none",
1484
+ functionality: "both",
1485
+ httpMethod: "PUT"
1486
+ },
1487
+ input: zod.z.object({ chatId: chatIdParam }),
1488
+ parameterOrder: ["chatId"],
1489
+ output: zod.z.union([
1490
+ zod.z.string(),
1491
+ zod.z.boolean(),
1492
+ zod.z.number()
1493
+ ])
1494
+ });
1495
+ const markAsRead = require_registry.defineMethodV2("markAsRead", {
1496
+ meta: {
1497
+ description: "Mark chat as read",
1498
+ action: "update",
1499
+ namespace: "chats",
1500
+ license: "none",
1501
+ functionality: "both",
1502
+ httpMethod: "PUT",
1503
+ aliases: { namespacedName: "markAsRead" }
1504
+ },
1505
+ input: zod.z.object({ chatId: chatIdParam }),
1506
+ parameterOrder: ["chatId"],
1507
+ output: zod.z.boolean()
1508
+ });
1509
+ const markAsUnread = require_registry.defineMethodV2("markAsUnread", {
1510
+ meta: {
1511
+ description: "Mark chat as unread",
1512
+ action: "update",
1513
+ namespace: "chats",
1514
+ license: "none",
1515
+ functionality: "both",
1516
+ httpMethod: "PUT",
1517
+ aliases: { namespacedName: "markAsUnread" }
1518
+ },
1519
+ input: zod.z.object({ chatId: chatIdParam }),
1520
+ parameterOrder: ["chatId"],
1521
+ output: zod.z.boolean()
1522
+ });
1523
+ const setChatEphemeral = require_registry.defineMethodV2("setChatEphemeral", {
1524
+ meta: {
1525
+ description: "Set ephemeral messages for chat",
1526
+ action: "update",
1527
+ namespace: "chats",
1528
+ license: "none",
1529
+ functionality: "both",
1530
+ httpMethod: "PUT"
1531
+ },
1532
+ input: zod.z.object({
1533
+ chatId: chatIdParam,
1534
+ ephemeral: zod.z.union([zod.z.boolean(), zod.z.number()]).describe("Ephemeral setting")
1535
+ }),
1536
+ parameterOrder: ["chatId", "ephemeral"],
1537
+ output: zod.z.boolean()
1538
+ });
1539
+ const isChatOnline = require_registry.defineMethodV2("isChatOnline", {
1540
+ meta: {
1541
+ description: "Check if chat is online",
1542
+ action: "read",
1543
+ namespace: "chats",
1544
+ license: "none",
1545
+ functionality: "both",
1546
+ httpMethod: "GET"
1547
+ },
1548
+ input: zod.z.object({ chatId: chatIdParam }),
1549
+ parameterOrder: ["chatId"],
1550
+ output: zod.z.union([zod.z.boolean(), zod.z.string()])
1551
+ });
1552
+ //#endregion
1553
+ //#region src/methods/contacts.ts
1554
+ const getAllContacts = require_registry.defineMethodV2("getAllContacts", {
1555
+ meta: {
1556
+ description: "Retrieves all contacts",
1557
+ action: "read",
1558
+ namespace: "contacts",
1559
+ license: "none",
1560
+ functionality: "both",
1561
+ httpMethod: "GET"
1562
+ },
1563
+ input: zod.z.object({}),
1564
+ parameterOrder: [],
1565
+ output: zod.z.array(zod.z.any())
1566
+ });
1567
+ const getContact = require_registry.defineMethodV2("getContact", {
1568
+ meta: {
1569
+ description: "Get specific contact",
1570
+ action: "read",
1571
+ namespace: "contacts",
1572
+ license: "none",
1573
+ functionality: "both",
1574
+ httpMethod: "GET"
1575
+ },
1576
+ input: zod.z.object({ contactId: contactIdParam }),
1577
+ parameterOrder: ["contactId"],
1578
+ output: zod.z.any()
1579
+ });
1580
+ const getCommonGroups = require_registry.defineMethodV2("getCommonGroups", {
1581
+ meta: {
1582
+ description: "Get common groups with contact",
1583
+ action: "read",
1584
+ namespace: "contacts",
1585
+ license: "none",
1586
+ functionality: "both",
1587
+ httpMethod: "GET"
1588
+ },
1589
+ input: zod.z.object({ contactId: contactIdParam }),
1590
+ parameterOrder: ["contactId"],
1591
+ output: zod.z.any()
1592
+ });
1593
+ const getNumberProfile = require_registry.defineMethodV2("getNumberProfile", {
1594
+ meta: {
1595
+ description: "Get profile of number",
1596
+ action: "read",
1597
+ namespace: "contacts",
1598
+ license: "insiders",
1599
+ functionality: "both",
1600
+ httpMethod: "GET"
1601
+ },
1602
+ input: zod.z.object({ contactId: contactIdParam }),
1603
+ parameterOrder: ["contactId"],
1604
+ output: zod.z.any()
1605
+ });
1606
+ const getBlockedIds = require_registry.defineMethodV2("getBlockedIds", {
1607
+ meta: {
1608
+ description: "Get blocked contact IDs",
1609
+ action: "read",
1610
+ namespace: "contacts",
1611
+ license: "none",
1612
+ functionality: "both",
1613
+ httpMethod: "GET"
1614
+ },
1615
+ input: zod.z.object({}),
1616
+ parameterOrder: [],
1617
+ output: zod.z.array(zod.z.string())
1618
+ });
1619
+ const blockContact = require_registry.defineMethodV2("blockContact", {
1620
+ meta: {
1621
+ description: "Block a contact",
1622
+ action: "update",
1623
+ namespace: "contacts",
1624
+ license: "none",
1625
+ functionality: "both",
1626
+ httpMethod: "PUT",
1627
+ aliases: { deprecated: ["contactBlock"] },
1628
+ wapiOverride: "contactBlock"
1629
+ },
1630
+ input: zod.z.object({ contactId: contactIdParam }),
1631
+ parameterOrder: ["contactId"],
1632
+ output: zod.z.boolean()
1633
+ });
1634
+ const unblockContact = require_registry.defineMethodV2("unblockContact", {
1635
+ meta: {
1636
+ description: "Unblock a contact",
1637
+ action: "update",
1638
+ namespace: "contacts",
1639
+ license: "none",
1640
+ functionality: "both",
1641
+ httpMethod: "PUT",
1642
+ aliases: { deprecated: ["contactUnblock"] },
1643
+ wapiOverride: "contactUnblock"
1644
+ },
1645
+ input: zod.z.object({ contactId: contactIdParam }),
1646
+ parameterOrder: ["contactId"],
1647
+ output: zod.z.boolean()
1648
+ });
1649
+ const checkReadReceipts = require_registry.defineMethodV2("checkReadReceipts", {
1650
+ meta: {
1651
+ description: "Check read receipts setting",
1652
+ action: "read",
1653
+ namespace: "contacts",
1654
+ license: "none",
1655
+ functionality: "both",
1656
+ httpMethod: "GET",
1657
+ aliases: { explicit: ["getReadReceipts"] }
1658
+ },
1659
+ input: zod.z.object({ contactId: contactIdParam }),
1660
+ parameterOrder: ["contactId"],
1661
+ output: zod.z.union([zod.z.boolean(), zod.z.string()])
1662
+ });
1663
+ const checkNumberStatus = require_registry.defineMethodV2("checkNumberStatus", {
1664
+ meta: {
1665
+ description: "Check if number is on WhatsApp",
1666
+ action: "read",
1667
+ namespace: "contacts",
1668
+ license: "insiders",
1669
+ functionality: "both",
1670
+ httpMethod: "GET"
1671
+ },
1672
+ input: zod.z.object({ contactId: contactIdParam }),
1673
+ parameterOrder: ["contactId"],
1674
+ output: zod.z.any()
1675
+ });
1676
+ const getProfilePicture = require_registry.defineMethodV2("getProfilePicture", {
1677
+ meta: {
1678
+ description: "Get profile picture from server",
1679
+ action: "read",
1680
+ namespace: "contacts",
1681
+ license: "none",
1682
+ functionality: "both",
1683
+ httpMethod: "GET",
1684
+ aliases: { deprecated: ["getProfilePicFromServer"] },
1685
+ wapiOverride: "getProfilePicFromServer"
1686
+ },
1687
+ input: zod.z.object({ chatId: chatIdParam }),
1688
+ parameterOrder: ["chatId"],
1689
+ output: zod.z.string()
1690
+ });
1691
+ //#endregion
1692
+ //#region src/methods/groups.ts
1693
+ const getGroupMembers = require_registry.defineMethodV2("getGroupMembers", {
1694
+ meta: {
1695
+ description: "Retrieves members of a group",
1696
+ action: "read",
1697
+ namespace: "groups",
1698
+ license: "none",
1699
+ functionality: "both",
1700
+ httpMethod: "GET"
1701
+ },
1702
+ input: zod.z.object({ groupId: groupIdParam }),
1703
+ parameterOrder: ["groupId"],
1704
+ output: zod.z.array(zod.z.any())
1705
+ });
1706
+ const getAllGroups = require_registry.defineMethodV2("getAllGroups", {
1707
+ meta: {
1708
+ description: "Get all groups",
1709
+ action: "read",
1710
+ namespace: "groups",
1711
+ license: "none",
1712
+ functionality: "both",
1713
+ httpMethod: "GET"
1714
+ },
1715
+ input: zod.z.object({ withNewMessagesOnly: withNewMessagesOnlyParam }),
1716
+ parameterOrder: ["withNewMessagesOnly"],
1717
+ output: zod.z.array(zod.z.any())
1718
+ });
1719
+ const getGroupMembersId = require_registry.defineMethodV2("getGroupMembersId", {
1720
+ meta: {
1721
+ description: "Get group member IDs",
1722
+ action: "read",
1723
+ namespace: "groups",
1724
+ license: "none",
1725
+ functionality: "both",
1726
+ httpMethod: "GET",
1727
+ aliases: {
1728
+ explicit: ["getGroupMemberIds"],
1729
+ namespacedName: "getMemberIds"
1730
+ }
1731
+ },
1732
+ input: zod.z.object({ groupId: groupIdParam }),
1733
+ parameterOrder: ["groupId"],
1734
+ output: zod.z.array(zod.z.string())
1735
+ });
1736
+ const getGroupInfo = require_registry.defineMethodV2("getGroupInfo", {
1737
+ meta: {
1738
+ description: "Get group metadata",
1739
+ action: "read",
1740
+ namespace: "groups",
1741
+ license: "none",
1742
+ functionality: "both",
1743
+ httpMethod: "GET"
1744
+ },
1745
+ input: zod.z.object({ groupId: groupIdParam }),
1746
+ parameterOrder: ["groupId"],
1747
+ output: zod.z.any()
1748
+ });
1749
+ const getGroupAdmins = require_registry.defineMethodV2("getGroupAdmins", {
1750
+ meta: {
1751
+ description: "Get group admins",
1752
+ action: "read",
1753
+ namespace: "groups",
1754
+ license: "none",
1755
+ functionality: "both",
1756
+ httpMethod: "GET"
1757
+ },
1758
+ input: zod.z.object({ groupId: groupIdParam }),
1759
+ parameterOrder: ["groupId"],
1760
+ output: zod.z.array(zod.z.any())
1761
+ });
1762
+ const getKickedGroups = require_registry.defineMethodV2("getKickedGroups", {
1763
+ meta: {
1764
+ description: "Get groups where kicked",
1765
+ action: "read",
1766
+ namespace: "groups",
1767
+ license: "none",
1768
+ functionality: "both",
1769
+ httpMethod: "GET"
1770
+ },
1771
+ input: zod.z.object({}),
1772
+ parameterOrder: [],
1773
+ output: zod.z.array(zod.z.string())
1774
+ });
1775
+ const getGroupInviteLink = require_registry.defineMethodV2("getGroupInviteLink", {
1776
+ meta: {
1777
+ description: "Get group invite link",
1778
+ action: "read",
1779
+ namespace: "groups",
1780
+ license: "none",
1781
+ functionality: "both",
1782
+ httpMethod: "GET"
1783
+ },
1784
+ input: zod.z.object({ groupId: groupIdParam }),
1785
+ parameterOrder: ["groupId"],
1786
+ output: zod.z.string()
1787
+ });
1788
+ const createGroup = require_registry.defineMethodV2("createGroup", {
1789
+ meta: {
1790
+ description: "Create new group",
1791
+ action: "send",
1792
+ namespace: "groups",
1793
+ license: "restricted",
1794
+ functionality: "both",
1795
+ httpMethod: "POST"
1796
+ },
1797
+ input: zod.z.object({
1798
+ name: zod.z.string().describe("Group name"),
1799
+ contacts: zod.z.array(contactIdParam).describe("Contact IDs to add")
1800
+ }),
1801
+ parameterOrder: ["name", "contacts"],
1802
+ output: zod.z.any()
1803
+ });
1804
+ const leaveGroup = require_registry.defineMethodV2("leaveGroup", {
1805
+ meta: {
1806
+ description: "Leave a group",
1807
+ action: "update",
1808
+ namespace: "groups",
1809
+ license: "none",
1810
+ functionality: "both",
1811
+ httpMethod: "PUT"
1812
+ },
1813
+ input: zod.z.object({ groupId: groupIdParam }),
1814
+ parameterOrder: ["groupId"],
1815
+ output: zod.z.any()
1816
+ });
1817
+ const joinGroupViaLink = require_registry.defineMethodV2("joinGroupViaLink", {
1818
+ meta: {
1819
+ description: "Join group via invite link",
1820
+ action: "send",
1821
+ namespace: "groups",
1822
+ license: "restricted",
1823
+ functionality: "both",
1824
+ httpMethod: "POST",
1825
+ aliases: {
1826
+ explicit: ["joinGroup"],
1827
+ namespacedName: "join"
1828
+ }
1829
+ },
1830
+ input: zod.z.object({
1831
+ link: zod.z.string().url().describe("Group invite link"),
1832
+ returnChatObj: zod.z.boolean().optional().describe("Return chat object")
1833
+ }),
1834
+ parameterOrder: ["link", "returnChatObj"],
1835
+ output: zod.z.union([
1836
+ zod.z.string(),
1837
+ zod.z.boolean(),
1838
+ zod.z.number(),
1839
+ zod.z.any()
1840
+ ])
1841
+ });
1842
+ const revokeGroupInviteLink = require_registry.defineMethodV2("revokeGroupInviteLink", {
1843
+ meta: {
1844
+ description: "Revoke group invite link",
1845
+ action: "update",
1846
+ namespace: "groups",
1847
+ license: "none",
1848
+ functionality: "both",
1849
+ httpMethod: "PUT"
1850
+ },
1851
+ input: zod.z.object({ groupId: groupIdParam }),
1852
+ parameterOrder: ["groupId"],
1853
+ output: zod.z.union([zod.z.string(), zod.z.boolean()])
1854
+ });
1855
+ const setGroupTitle = require_registry.defineMethodV2("setGroupTitle", {
1856
+ meta: {
1857
+ description: "Set group title",
1858
+ action: "update",
1859
+ namespace: "groups",
1860
+ license: "none",
1861
+ functionality: "both",
1862
+ httpMethod: "PUT"
1863
+ },
1864
+ input: zod.z.object({
1865
+ groupId: groupIdParam,
1866
+ title: zod.z.string().describe("New group title")
1867
+ }),
1868
+ parameterOrder: ["groupId", "title"],
1869
+ output: zod.z.boolean()
1870
+ });
1871
+ const setGroupDescription = require_registry.defineMethodV2("setGroupDescription", {
1872
+ meta: {
1873
+ description: "Set group description",
1874
+ action: "update",
1875
+ namespace: "groups",
1876
+ license: "none",
1877
+ functionality: "both",
1878
+ httpMethod: "PUT"
1879
+ },
1880
+ input: zod.z.object({
1881
+ groupId: groupIdParam,
1882
+ description: zod.z.string().describe("New group description")
1883
+ }),
1884
+ parameterOrder: ["groupId", "description"],
1885
+ output: zod.z.boolean()
1886
+ });
1887
+ const setGroupIcon = require_registry.defineMethodV2("setGroupIcon", {
1888
+ meta: {
1889
+ description: "Set group icon",
1890
+ action: "update",
1891
+ namespace: "groups",
1892
+ license: "none",
1893
+ functionality: "both",
1894
+ httpMethod: "PUT"
1895
+ },
1896
+ input: zod.z.object({
1897
+ groupId: groupIdParam,
1898
+ image: zod.z.string().describe("Image data URL")
1899
+ }),
1900
+ parameterOrder: ["groupId", "image"],
1901
+ output: zod.z.boolean()
1902
+ });
1903
+ const setGroupToAdminsOnly = require_registry.defineMethodV2("setGroupToAdminsOnly", {
1904
+ meta: {
1905
+ description: "Restrict group to admins only",
1906
+ action: "update",
1907
+ namespace: "groups",
1908
+ license: "none",
1909
+ functionality: "both",
1910
+ httpMethod: "PUT",
1911
+ aliases: { namespacedName: "setAdminsOnly" }
1912
+ },
1913
+ input: zod.z.object({
1914
+ groupId: groupIdParam,
1915
+ onlyAdmins: zod.z.boolean().describe("Admins only setting")
1916
+ }),
1917
+ parameterOrder: ["groupId", "onlyAdmins"],
1918
+ output: zod.z.boolean()
1919
+ });
1920
+ const setGroupEditToAdminsOnly = require_registry.defineMethodV2("setGroupEditToAdminsOnly", {
1921
+ meta: {
1922
+ description: "Restrict group editing to admins only",
1923
+ action: "update",
1924
+ namespace: "groups",
1925
+ license: "none",
1926
+ functionality: "both",
1927
+ httpMethod: "PUT",
1928
+ aliases: { namespacedName: "setEditAdminsOnly" }
1929
+ },
1930
+ input: zod.z.object({
1931
+ groupId: groupIdParam,
1932
+ onlyAdmins: zod.z.boolean().describe("Admins only setting")
1933
+ }),
1934
+ parameterOrder: ["groupId", "onlyAdmins"],
1935
+ output: zod.z.boolean()
1936
+ });
1937
+ const addParticipant = require_registry.defineMethodV2("addParticipant", {
1938
+ meta: {
1939
+ description: "Add participant to group",
1940
+ action: "update",
1941
+ namespace: "groups",
1942
+ license: "none",
1943
+ functionality: "both",
1944
+ httpMethod: "PUT",
1945
+ aliases: { explicit: ["addGroupParticipant"] }
1946
+ },
1947
+ input: zod.z.object({
1948
+ groupId: groupIdParam,
1949
+ contactId: contactIdParam
1950
+ }),
1951
+ parameterOrder: ["groupId", "contactId"],
1952
+ output: zod.z.boolean()
1953
+ });
1954
+ const removeParticipant = require_registry.defineMethodV2("removeParticipant", {
1955
+ meta: {
1956
+ description: "Remove participant from group",
1957
+ action: "update",
1958
+ namespace: "groups",
1959
+ license: "none",
1960
+ functionality: "both",
1961
+ httpMethod: "PUT",
1962
+ aliases: { explicit: ["removeGroupParticipant"] }
1963
+ },
1964
+ input: zod.z.object({
1965
+ groupId: groupIdParam,
1966
+ contactId: contactIdParam
1967
+ }),
1968
+ parameterOrder: ["groupId", "contactId"],
1969
+ output: zod.z.boolean()
1970
+ });
1971
+ const promoteParticipant = require_registry.defineMethodV2("promoteParticipant", {
1972
+ meta: {
1973
+ description: "Promote participant to admin",
1974
+ action: "update",
1975
+ namespace: "groups",
1976
+ license: "none",
1977
+ functionality: "both",
1978
+ httpMethod: "PUT",
1979
+ aliases: { explicit: ["promoteGroupParticipant"] }
1980
+ },
1981
+ input: zod.z.object({
1982
+ groupId: groupIdParam,
1983
+ contactId: contactIdParam
1984
+ }),
1985
+ parameterOrder: ["groupId", "contactId"],
1986
+ output: zod.z.union([zod.z.boolean(), zod.z.string()])
1987
+ });
1988
+ const demoteParticipant = require_registry.defineMethodV2("demoteParticipant", {
1989
+ meta: {
1990
+ description: "Demote participant from admin",
1991
+ action: "update",
1992
+ namespace: "groups",
1993
+ license: "none",
1994
+ functionality: "both",
1995
+ httpMethod: "PUT",
1996
+ aliases: { explicit: ["demoteGroupParticipant"] }
1997
+ },
1998
+ input: zod.z.object({
1999
+ groupId: groupIdParam,
2000
+ contactId: contactIdParam
2001
+ }),
2002
+ parameterOrder: ["groupId", "contactId"],
2003
+ output: zod.z.union([zod.z.boolean(), zod.z.string()])
2004
+ });
2005
+ const approveGroupJoinRequest = require_registry.defineMethodV2("approveGroupJoinRequest", {
2006
+ meta: {
2007
+ description: "Approve group join request",
2008
+ action: "update",
2009
+ namespace: "groups",
2010
+ license: "none",
2011
+ functionality: "both",
2012
+ httpMethod: "PUT"
2013
+ },
2014
+ input: zod.z.object({
2015
+ groupId: groupIdParam,
2016
+ contactId: contactIdParam
2017
+ }),
2018
+ parameterOrder: ["groupId", "contactId"],
2019
+ output: zod.z.union([zod.z.string(), zod.z.boolean()])
2020
+ });
2021
+ const rejectGroupJoinRequest = require_registry.defineMethodV2("rejectGroupJoinRequest", {
2022
+ meta: {
2023
+ description: "Reject group join request",
2024
+ action: "update",
2025
+ namespace: "groups",
2026
+ license: "none",
2027
+ functionality: "both",
2028
+ httpMethod: "PUT"
2029
+ },
2030
+ input: zod.z.object({
2031
+ groupId: groupIdParam,
2032
+ contactId: contactIdParam
2033
+ }),
2034
+ parameterOrder: ["groupId", "contactId"],
2035
+ output: zod.z.union([zod.z.string(), zod.z.boolean()])
2036
+ });
2037
+ //#endregion
2038
+ //#region src/methods/communities.ts
2039
+ /**
2040
+ * Get all communities
2041
+ */
2042
+ const getAllCommunities = require_registry.defineMethodV2("getAllCommunities", {
2043
+ meta: {
2044
+ description: "Get all communities",
2045
+ action: "read",
2046
+ namespace: "communities",
2047
+ license: "none",
2048
+ functionality: "both",
2049
+ httpMethod: "GET"
2050
+ },
2051
+ input: zod.z.object({}),
2052
+ parameterOrder: [],
2053
+ output: zod.z.array(zod.z.string())
2054
+ });
2055
+ /**
2056
+ * Get community info
2057
+ */
2058
+ const getCommunityInfo = require_registry.defineMethodV2("getCommunityInfo", {
2059
+ meta: {
2060
+ description: "Get community metadata",
2061
+ action: "read",
2062
+ namespace: "communities",
2063
+ license: "none",
2064
+ functionality: "both",
2065
+ httpMethod: "GET"
2066
+ },
2067
+ input: zod.z.object({ communityId: communityIdParam }),
2068
+ parameterOrder: ["communityId"],
2069
+ output: zod.z.any()
2070
+ });
2071
+ /**
2072
+ * Get community participant IDs
2073
+ */
2074
+ const getCommunityParticipantIds = require_registry.defineMethodV2("getCommunityParticipantIds", {
2075
+ meta: {
2076
+ description: "Get community participant IDs",
2077
+ action: "read",
2078
+ namespace: "communities",
2079
+ license: "none",
2080
+ functionality: "both",
2081
+ httpMethod: "GET"
2082
+ },
2083
+ input: zod.z.object({ communityId: communityIdParam }),
2084
+ parameterOrder: ["communityId"],
2085
+ output: zod.z.any()
2086
+ });
2087
+ /**
2088
+ * Get community admin IDs
2089
+ */
2090
+ const getCommunityAdminIds = require_registry.defineMethodV2("getCommunityAdminIds", {
2091
+ meta: {
2092
+ description: "Get community admin IDs",
2093
+ action: "read",
2094
+ namespace: "communities",
2095
+ license: "none",
2096
+ functionality: "both",
2097
+ httpMethod: "GET"
2098
+ },
2099
+ input: zod.z.object({ communityId: communityIdParam }),
2100
+ parameterOrder: ["communityId"],
2101
+ output: zod.z.any()
2102
+ });
2103
+ /**
2104
+ * Get community participants
2105
+ */
2106
+ const getCommunityParticipants = require_registry.defineMethodV2("getCommunityParticipants", {
2107
+ meta: {
2108
+ description: "Get community participants",
2109
+ action: "read",
2110
+ namespace: "communities",
2111
+ license: "none",
2112
+ functionality: "both",
2113
+ httpMethod: "GET"
2114
+ },
2115
+ input: zod.z.object({ communityId: communityIdParam }),
2116
+ parameterOrder: ["communityId"],
2117
+ output: zod.z.any()
2118
+ });
2119
+ /**
2120
+ * Get community admins
2121
+ */
2122
+ const getCommunityAdmins = require_registry.defineMethodV2("getCommunityAdmins", {
2123
+ meta: {
2124
+ description: "Get community admins",
2125
+ action: "read",
2126
+ namespace: "communities",
2127
+ license: "none",
2128
+ functionality: "both",
2129
+ httpMethod: "GET"
2130
+ },
2131
+ input: zod.z.object({ communityId: communityIdParam }),
2132
+ parameterOrder: ["communityId"],
2133
+ output: zod.z.any()
2134
+ });
2135
+ //#endregion
2136
+ //#region src/methods/status.ts
2137
+ const postTextStatus = require_registry.defineMethodV2("postTextStatus", {
2138
+ meta: {
2139
+ description: "Post text status",
2140
+ action: "send",
2141
+ namespace: "status",
2142
+ license: "insiders",
2143
+ functionality: "both",
2144
+ httpMethod: "POST"
2145
+ },
2146
+ input: zod.z.object({
2147
+ text: zod.z.string().describe("Status text"),
2148
+ backgroundColor: zod.z.string().optional().describe("Background color"),
2149
+ font: zod.z.number().optional().describe("Font style")
2150
+ }),
2151
+ parameterOrder: [
2152
+ "text",
2153
+ "backgroundColor",
2154
+ "font"
2155
+ ],
2156
+ output: zod.z.any()
2157
+ });
2158
+ const postImageStatus = require_registry.defineMethodV2("postImageStatus", {
2159
+ meta: {
2160
+ description: "Post image status",
2161
+ action: "send",
2162
+ namespace: "status",
2163
+ license: "insiders",
2164
+ functionality: "both",
2165
+ httpMethod: "POST"
2166
+ },
2167
+ input: zod.z.object({
2168
+ image: zod.z.string().describe("Image data URL"),
2169
+ caption: zod.z.string().optional().describe("Status caption")
2170
+ }),
2171
+ parameterOrder: ["image", "caption"],
2172
+ output: zod.z.any()
2173
+ });
2174
+ const postVideoStatus = require_registry.defineMethodV2("postVideoStatus", {
2175
+ meta: {
2176
+ description: "Post video status",
2177
+ action: "send",
2178
+ namespace: "status",
2179
+ license: "insiders",
2180
+ functionality: "both",
2181
+ httpMethod: "POST"
2182
+ },
2183
+ input: zod.z.object({
2184
+ video: zod.z.string().describe("Video data URL"),
2185
+ caption: zod.z.string().optional().describe("Status caption")
2186
+ }),
2187
+ parameterOrder: ["video", "caption"],
2188
+ output: zod.z.any()
2189
+ });
2190
+ const getStories = require_registry.defineMethodV2("getStories", {
2191
+ meta: {
2192
+ description: "Get all stories",
2193
+ action: "read",
2194
+ namespace: "status",
2195
+ license: "insiders",
2196
+ functionality: "both",
2197
+ httpMethod: "GET",
2198
+ aliases: {
2199
+ explicit: ["getStatuses"],
2200
+ namespacedName: "getAll"
2201
+ }
2202
+ },
2203
+ input: zod.z.object({}),
2204
+ parameterOrder: [],
2205
+ output: zod.z.array(zod.z.any())
2206
+ });
2207
+ const getStatus = require_registry.defineMethodV2("getStatus", {
2208
+ meta: {
2209
+ description: "Get specific status",
2210
+ action: "read",
2211
+ namespace: "mystatus",
2212
+ license: "insiders",
2213
+ functionality: "both",
2214
+ httpMethod: "GET"
2215
+ },
2216
+ input: zod.z.object({ contactId: contactIdParam }),
2217
+ parameterOrder: ["contactId"],
2218
+ output: zod.z.any()
2219
+ });
2220
+ const deleteStatus = require_registry.defineMethodV2("deleteStatus", {
2221
+ meta: {
2222
+ description: "Delete status",
2223
+ action: "delete",
2224
+ namespace: "status",
2225
+ license: "insiders",
2226
+ functionality: "both",
2227
+ httpMethod: "DELETE"
2228
+ },
2229
+ input: zod.z.object({ statusesToDelete: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).describe("Status ID(s)") }),
2230
+ parameterOrder: ["statusesToDelete"],
2231
+ output: zod.z.any()
2232
+ });
2233
+ const deleteAllStatus = require_registry.defineMethodV2("deleteAllStatus", {
2234
+ meta: {
2235
+ description: "Delete all statuses",
2236
+ action: "delete",
2237
+ namespace: "status",
2238
+ license: "insiders",
2239
+ functionality: "both",
2240
+ httpMethod: "DELETE",
2241
+ aliases: { explicit: ["deleteAllStatuses"] }
2242
+ },
2243
+ input: zod.z.object({}),
2244
+ parameterOrder: [],
2245
+ output: zod.z.any()
2246
+ });
2247
+ //#endregion
2248
+ //#region src/methods/labels.ts
2249
+ /**
2250
+ * Get all labels
2251
+ */
2252
+ const getAllLabels = require_registry.defineMethodV2("getAllLabels", {
2253
+ meta: {
2254
+ description: "Get all labels",
2255
+ action: "read",
2256
+ namespace: "labels",
2257
+ license: "none",
2258
+ functionality: "business-only",
2259
+ httpMethod: "GET"
2260
+ },
2261
+ input: zod.z.object({}),
2262
+ parameterOrder: [],
2263
+ output: zod.z.array(zod.z.any())
2264
+ });
2265
+ /**
2266
+ * Get chats by label
2267
+ */
2268
+ const getChatsByLabel = require_registry.defineMethodV2("getChatsByLabel", {
2269
+ meta: {
2270
+ description: "Get chats by label",
2271
+ action: "read",
2272
+ namespace: "labels",
2273
+ license: "none",
2274
+ functionality: "business-only",
2275
+ httpMethod: "GET",
2276
+ aliases: { namespacedName: "getChats" }
2277
+ },
2278
+ input: zod.z.object({ label: zod.z.string().describe("Label name") }),
2279
+ parameterOrder: ["label"],
2280
+ output: zod.z.array(zod.z.any())
2281
+ });
2282
+ /**
2283
+ * Add label
2284
+ */
2285
+ const addLabel = require_registry.defineMethodV2("addLabel", {
2286
+ meta: {
2287
+ description: "Add label to chat",
2288
+ action: "update",
2289
+ namespace: "labels",
2290
+ license: "none",
2291
+ functionality: "business-only",
2292
+ httpMethod: "PUT"
2293
+ },
2294
+ input: zod.z.object({
2295
+ label: zod.z.string().describe("Label ID or name"),
2296
+ chatId: toParam
2297
+ }),
2298
+ parameterOrder: ["label", "chatId"],
2299
+ output: zod.z.boolean()
2300
+ });
2301
+ /**
2302
+ * Remove label
2303
+ */
2304
+ const removeLabel = require_registry.defineMethodV2("removeLabel", {
2305
+ meta: {
2306
+ description: "Remove label from chat",
2307
+ action: "update",
2308
+ namespace: "labels",
2309
+ license: "none",
2310
+ functionality: "business-only",
2311
+ httpMethod: "PUT"
2312
+ },
2313
+ input: zod.z.object({
2314
+ label: zod.z.string().describe("Label ID or name"),
2315
+ chatId: toParam
2316
+ }),
2317
+ parameterOrder: ["label", "chatId"],
2318
+ output: zod.z.boolean()
2319
+ });
2320
+ //#endregion
2321
+ //#region src/methods/business.ts
2322
+ const getBusinessProfile = require_registry.defineMethodV2("getBusinessProfile", {
2323
+ meta: {
2324
+ description: "Get business profile",
2325
+ action: "read",
2326
+ namespace: "business",
2327
+ license: "none",
2328
+ functionality: "both",
2329
+ httpMethod: "GET"
2330
+ },
2331
+ input: zod.z.object({ contactId: contactIdParam }),
2332
+ parameterOrder: ["contactId"],
2333
+ output: zod.z.any()
2334
+ });
2335
+ const getBusinessProducts = require_registry.defineMethodV2("getBusinessProducts", {
2336
+ meta: {
2337
+ description: "Get business products",
2338
+ action: "read",
2339
+ namespace: "business",
2340
+ license: "none",
2341
+ functionality: "both",
2342
+ httpMethod: "GET",
2343
+ aliases: { deprecated: ["getBusinessProfilesProducts"] },
2344
+ wapiOverride: "getBusinessProfilesProducts"
2345
+ },
2346
+ input: zod.z.object({ contactId: contactIdParam }),
2347
+ parameterOrder: ["contactId"],
2348
+ output: zod.z.any()
2349
+ });
2350
+ const getOrder = require_registry.defineMethodV2("getOrder", {
2351
+ meta: {
2352
+ description: "Get order details",
2353
+ action: "read",
2354
+ namespace: "business",
2355
+ license: "insiders",
2356
+ functionality: "both",
2357
+ httpMethod: "GET"
2358
+ },
2359
+ input: zod.z.object({ id: zod.z.union([messageIdParam, zod.z.string()]).describe("Order or message ID") }),
2360
+ parameterOrder: ["id"],
2361
+ output: zod.z.any()
2362
+ });
2363
+ //#endregion
2364
+ //#region src/methods/session.ts
2365
+ const getMe = require_registry.defineMethodV2("getMe", {
2366
+ meta: {
2367
+ description: "Get host account info",
2368
+ action: "read",
2369
+ namespace: "session",
2370
+ license: "none",
2371
+ functionality: "both",
2372
+ httpMethod: "GET"
2373
+ },
2374
+ input: zod.z.object({}),
2375
+ parameterOrder: [],
2376
+ output: zod.z.any()
2377
+ });
2378
+ const getHostNumber = require_registry.defineMethodV2("getHostNumber", {
2379
+ meta: {
2380
+ description: "Get host phone number",
2381
+ action: "read",
2382
+ namespace: "session",
2383
+ license: "none",
2384
+ functionality: "both",
2385
+ httpMethod: "GET"
2386
+ },
2387
+ input: zod.z.object({}),
2388
+ parameterOrder: [],
2389
+ output: zod.z.string()
2390
+ });
2391
+ const getConnectionState = require_registry.defineMethodV2("getConnectionState", {
2392
+ meta: {
2393
+ description: "Get connection state",
2394
+ action: "read",
2395
+ namespace: "session",
2396
+ license: "none",
2397
+ functionality: "both",
2398
+ httpMethod: "GET"
2399
+ },
2400
+ input: zod.z.object({}),
2401
+ parameterOrder: [],
2402
+ output: zod.z.any()
2403
+ });
2404
+ const getWAVersion = require_registry.defineMethodV2("getWAVersion", {
2405
+ meta: {
2406
+ description: "Get WhatsApp Web version",
2407
+ action: "read",
2408
+ namespace: "session",
2409
+ license: "none",
2410
+ functionality: "both",
2411
+ httpMethod: "GET",
2412
+ aliases: { explicit: ["getWhatsAppVersion"] }
2413
+ },
2414
+ input: zod.z.object({}),
2415
+ parameterOrder: [],
2416
+ output: zod.z.string()
2417
+ });
2418
+ const getBatteryLevel = require_registry.defineMethodV2("getBatteryLevel", {
2419
+ meta: {
2420
+ description: "Get phone battery level",
2421
+ action: "read",
2422
+ namespace: "session",
2423
+ license: "none",
2424
+ functionality: "both",
2425
+ httpMethod: "GET"
2426
+ },
2427
+ input: zod.z.object({}),
2428
+ parameterOrder: [],
2429
+ output: zod.z.number()
2430
+ });
2431
+ const isPlugged = require_registry.defineMethodV2("isPlugged", {
2432
+ meta: {
2433
+ description: "Check if phone is charging",
2434
+ action: "read",
2435
+ namespace: "session",
2436
+ license: "none",
2437
+ functionality: "both",
2438
+ httpMethod: "GET",
2439
+ aliases: { deprecated: ["getIsPlugged"] },
2440
+ wapiOverride: "getIsPlugged"
2441
+ },
2442
+ input: zod.z.object({}),
2443
+ parameterOrder: [],
2444
+ output: zod.z.boolean()
2445
+ });
2446
+ const getFeatures = require_registry.defineMethodV2("getFeatures", {
2447
+ meta: {
2448
+ description: "Get enabled features",
2449
+ action: "read",
2450
+ namespace: "session",
2451
+ license: "none",
2452
+ functionality: "both",
2453
+ httpMethod: "GET"
2454
+ },
2455
+ input: zod.z.object({}),
2456
+ parameterOrder: [],
2457
+ output: zod.z.any()
2458
+ });
2459
+ const getLicenseType = require_registry.defineMethodV2("getLicenseType", {
2460
+ meta: {
2461
+ description: "Get license type",
2462
+ action: "read",
2463
+ namespace: "session",
2464
+ license: "none",
2465
+ functionality: "both",
2466
+ httpMethod: "GET"
2467
+ },
2468
+ input: zod.z.object({}),
2469
+ parameterOrder: [],
2470
+ output: zod.z.union([zod.z.any(), zod.z.boolean()])
2471
+ });
2472
+ const getUserAgent = require_registry.defineMethodV2("getUserAgent", {
2473
+ meta: {
2474
+ description: "Get user agent",
2475
+ action: "read",
2476
+ namespace: "session",
2477
+ license: "none",
2478
+ functionality: "both",
2479
+ httpMethod: "GET",
2480
+ aliases: { deprecated: ["getGeneratedUserAgent"] },
2481
+ wapiOverride: "getGeneratedUserAgent"
2482
+ },
2483
+ input: zod.z.object({ userAgent: userAgentParam }),
2484
+ parameterOrder: ["userAgent"],
2485
+ output: zod.z.string()
2486
+ });
2487
+ const getProcessStats = require_registry.defineMethodV2("getProcessStats", {
2488
+ meta: {
2489
+ description: "Get process statistics",
2490
+ action: "read",
2491
+ namespace: "session",
2492
+ license: "none",
2493
+ functionality: "both",
2494
+ httpMethod: "GET"
2495
+ },
2496
+ input: zod.z.object({}),
2497
+ parameterOrder: [],
2498
+ output: zod.z.any()
2499
+ });
2500
+ const getLoadedMessageCount = require_registry.defineMethodV2("getLoadedMessageCount", {
2501
+ meta: {
2502
+ description: "Get loaded message count",
2503
+ action: "read",
2504
+ namespace: "session",
2505
+ license: "none",
2506
+ functionality: "both",
2507
+ httpMethod: "GET",
2508
+ aliases: { deprecated: ["getAmountOfLoadedMessages"] },
2509
+ wapiOverride: "getAmountOfLoadedMessages"
2510
+ },
2511
+ input: zod.z.object({}),
2512
+ parameterOrder: [],
2513
+ output: zod.z.number()
2514
+ });
2515
+ const getSnapshot = require_registry.defineMethodV2("getSnapshot", {
2516
+ meta: {
2517
+ description: "Take screenshot",
2518
+ action: "read",
2519
+ namespace: "session",
2520
+ license: "none",
2521
+ functionality: "both",
2522
+ httpMethod: "GET",
2523
+ aliases: { explicit: ["takeScreenshot"] }
2524
+ },
2525
+ input: zod.z.object({
2526
+ chatId: chatIdParam.optional(),
2527
+ width: zod.z.number().optional(),
2528
+ height: zod.z.number().optional()
2529
+ }),
2530
+ parameterOrder: [
2531
+ "chatId",
2532
+ "width",
2533
+ "height"
2534
+ ],
2535
+ output: zod.z.string()
2536
+ });
2537
+ const healthCheck = require_registry.defineMethodV2("healthCheck", {
2538
+ meta: {
2539
+ description: "Health check",
2540
+ action: "read",
2541
+ namespace: "session",
2542
+ license: "none",
2543
+ functionality: "both",
2544
+ httpMethod: "GET"
2545
+ },
2546
+ input: zod.z.object({}),
2547
+ parameterOrder: [],
2548
+ output: zod.z.any()
2549
+ });
2550
+ const setMyName = require_registry.defineMethodV2("setMyName", {
2551
+ meta: {
2552
+ description: "Set host name",
2553
+ action: "update",
2554
+ namespace: "session",
2555
+ license: "none",
2556
+ functionality: "personal-only",
2557
+ httpMethod: "PUT",
2558
+ aliases: {
2559
+ explicit: ["setDisplayName"],
2560
+ namespacedName: "setName"
2561
+ }
2562
+ },
2563
+ input: zod.z.object({ name: nameParam }),
2564
+ parameterOrder: ["name"],
2565
+ output: zod.z.boolean()
2566
+ });
2567
+ const setMyStatus = require_registry.defineMethodV2("setMyStatus", {
2568
+ meta: {
2569
+ description: "Set host status",
2570
+ action: "update",
2571
+ namespace: "session",
2572
+ license: "none",
2573
+ functionality: "both",
2574
+ httpMethod: "PUT",
2575
+ aliases: {
2576
+ explicit: ["setStatusText"],
2577
+ namespacedName: "setStatus"
2578
+ }
2579
+ },
2580
+ input: zod.z.object({ statusText: statusTextParam }),
2581
+ parameterOrder: ["statusText"],
2582
+ output: zod.z.boolean()
2583
+ });
2584
+ const setProfilePicture = require_registry.defineMethodV2("setProfilePicture", {
2585
+ meta: {
2586
+ description: "Set profile picture",
2587
+ action: "update",
2588
+ namespace: "session",
2589
+ license: "insiders",
2590
+ functionality: "both",
2591
+ httpMethod: "PUT",
2592
+ aliases: { deprecated: ["setProfilePic"] },
2593
+ wapiOverride: "setProfilePic"
2594
+ },
2595
+ input: zod.z.object({ image: imageDataParam }),
2596
+ parameterOrder: ["image"],
2597
+ output: zod.z.boolean()
2598
+ });
2599
+ //#endregion
2600
+ //#region src/methods/media.ts
2601
+ const decryptMedia = require_registry.defineMethodV2("decryptMedia", {
2602
+ meta: {
2603
+ description: "Decrypts media from a message",
2604
+ action: "read",
2605
+ namespace: "media",
2606
+ license: "none",
2607
+ functionality: "both",
2608
+ httpMethod: "POST"
2609
+ },
2610
+ input: zod.z.object({ message: MessageSchema.describe("Message object containing media") }),
2611
+ parameterOrder: ["message"],
2612
+ output: zod.z.string().describe("Base64 encoded decrypted media")
2613
+ });
2614
+ const downloadMedia = require_registry.defineMethodV2("downloadMedia", {
2615
+ meta: {
2616
+ description: "Downloads and decrypts media from a message to a file",
2617
+ action: "read",
2618
+ namespace: "media",
2619
+ license: "none",
2620
+ functionality: "both",
2621
+ httpMethod: "POST"
2622
+ },
2623
+ input: zod.z.object({
2624
+ message: MessageSchema.describe("Message object containing media"),
2625
+ path: zod.z.string().describe("File path to save the media")
2626
+ }),
2627
+ parameterOrder: ["message", "path"],
2628
+ output: zod.z.string().describe("Path to the saved file")
2629
+ });
2630
+ //#endregion
2631
+ Object.defineProperty(exports, "Base64ToDataUrlSchema", {
2632
+ enumerable: true,
2633
+ get: function() {
2634
+ return Base64ToDataUrlSchema;
2635
+ }
2636
+ });
2637
+ Object.defineProperty(exports, "ChatIdCodecSchema", {
2638
+ enumerable: true,
2639
+ get: function() {
2640
+ return ChatIdCodecSchema;
2641
+ }
2642
+ });
2643
+ Object.defineProperty(exports, "ChatIdSchema", {
2644
+ enumerable: true,
2645
+ get: function() {
2646
+ return ChatIdSchema;
2647
+ }
2648
+ });
2649
+ Object.defineProperty(exports, "ChatSchema", {
2650
+ enumerable: true,
2651
+ get: function() {
2652
+ return ChatSchema;
2653
+ }
2654
+ });
2655
+ Object.defineProperty(exports, "ContactIdCodecSchema", {
2656
+ enumerable: true,
2657
+ get: function() {
2658
+ return ContactIdCodecSchema;
2659
+ }
2660
+ });
2661
+ Object.defineProperty(exports, "ContactIdSchema", {
2662
+ enumerable: true,
2663
+ get: function() {
2664
+ return ContactIdSchema;
2665
+ }
2666
+ });
2667
+ Object.defineProperty(exports, "ContactSchema", {
2668
+ enumerable: true,
2669
+ get: function() {
2670
+ return ContactSchema;
2671
+ }
2672
+ });
2673
+ Object.defineProperty(exports, "FileToDataUrlSchema", {
2674
+ enumerable: true,
2675
+ get: function() {
2676
+ return FileToDataUrlSchema;
2677
+ }
2678
+ });
2679
+ Object.defineProperty(exports, "GroupChatIdSchema", {
2680
+ enumerable: true,
2681
+ get: function() {
2682
+ return GroupChatIdSchema;
2683
+ }
2684
+ });
2685
+ Object.defineProperty(exports, "GroupIdCodecSchema", {
2686
+ enumerable: true,
2687
+ get: function() {
2688
+ return GroupIdCodecSchema;
2689
+ }
2690
+ });
2691
+ Object.defineProperty(exports, "GroupIdSchema", {
2692
+ enumerable: true,
2693
+ get: function() {
2694
+ return GroupIdSchema;
2695
+ }
2696
+ });
2697
+ Object.defineProperty(exports, "GroupMetadataSchema", {
2698
+ enumerable: true,
2699
+ get: function() {
2700
+ return GroupMetadataSchema;
2701
+ }
2702
+ });
2703
+ Object.defineProperty(exports, "HexColorSchema", {
2704
+ enumerable: true,
2705
+ get: function() {
2706
+ return HexColorSchema;
2707
+ }
2708
+ });
2709
+ Object.defineProperty(exports, "IdSchema", {
2710
+ enumerable: true,
2711
+ get: function() {
2712
+ return IdSchema;
2713
+ }
2714
+ });
2715
+ Object.defineProperty(exports, "IsoDatetimeToDateSchema", {
2716
+ enumerable: true,
2717
+ get: function() {
2718
+ return IsoDatetimeToDateSchema;
2719
+ }
2720
+ });
2721
+ Object.defineProperty(exports, "LocationSchema", {
2722
+ enumerable: true,
2723
+ get: function() {
2724
+ return LocationSchema;
2725
+ }
2726
+ });
2727
+ Object.defineProperty(exports, "MessageAck", {
2728
+ enumerable: true,
2729
+ get: function() {
2730
+ return MessageAck;
2731
+ }
2732
+ });
2733
+ Object.defineProperty(exports, "MessageIdCodecSchema", {
2734
+ enumerable: true,
2735
+ get: function() {
2736
+ return MessageIdCodecSchema;
2737
+ }
2738
+ });
2739
+ Object.defineProperty(exports, "MessageIdReturnSchema", {
2740
+ enumerable: true,
2741
+ get: function() {
2742
+ return MessageIdReturnSchema;
2743
+ }
2744
+ });
2745
+ Object.defineProperty(exports, "MessageIdSchema", {
2746
+ enumerable: true,
2747
+ get: function() {
2748
+ return MessageIdSchema;
2749
+ }
2750
+ });
2751
+ Object.defineProperty(exports, "MessageSchema", {
2752
+ enumerable: true,
2753
+ get: function() {
2754
+ return MessageSchema;
2755
+ }
2756
+ });
2757
+ Object.defineProperty(exports, "MessageTypes", {
2758
+ enumerable: true,
2759
+ get: function() {
2760
+ return MessageTypes;
2761
+ }
2762
+ });
2763
+ Object.defineProperty(exports, "SimpleListener", {
2764
+ enumerable: true,
2765
+ get: function() {
2766
+ return SimpleListener;
2767
+ }
2768
+ });
2769
+ Object.defineProperty(exports, "UnixMillisToDateSchema", {
2770
+ enumerable: true,
2771
+ get: function() {
2772
+ return UnixMillisToDateSchema;
2773
+ }
2774
+ });
2775
+ Object.defineProperty(exports, "UnixSecondsToDateSchema", {
2776
+ enumerable: true,
2777
+ get: function() {
2778
+ return UnixSecondsToDateSchema;
2779
+ }
2780
+ });
2781
+ Object.defineProperty(exports, "addLabel", {
2782
+ enumerable: true,
2783
+ get: function() {
2784
+ return addLabel;
2785
+ }
2786
+ });
2787
+ Object.defineProperty(exports, "addParticipant", {
2788
+ enumerable: true,
2789
+ get: function() {
2790
+ return addParticipant;
2791
+ }
2792
+ });
2793
+ Object.defineProperty(exports, "approveGroupJoinRequest", {
2794
+ enumerable: true,
2795
+ get: function() {
2796
+ return approveGroupJoinRequest;
2797
+ }
2798
+ });
2799
+ Object.defineProperty(exports, "archiveChat", {
2800
+ enumerable: true,
2801
+ get: function() {
2802
+ return archiveChat;
2803
+ }
2804
+ });
2805
+ Object.defineProperty(exports, "audioDataParam", {
2806
+ enumerable: true,
2807
+ get: function() {
2808
+ return audioDataParam;
2809
+ }
2810
+ });
2811
+ Object.defineProperty(exports, "base64ToDataUrlCodec", {
2812
+ enumerable: true,
2813
+ get: function() {
2814
+ return base64ToDataUrlCodec;
2815
+ }
2816
+ });
2817
+ Object.defineProperty(exports, "blockContact", {
2818
+ enumerable: true,
2819
+ get: function() {
2820
+ return blockContact;
2821
+ }
2822
+ });
2823
+ Object.defineProperty(exports, "captionParam", {
2824
+ enumerable: true,
2825
+ get: function() {
2826
+ return captionParam;
2827
+ }
2828
+ });
2829
+ Object.defineProperty(exports, "chatIdCodec", {
2830
+ enumerable: true,
2831
+ get: function() {
2832
+ return chatIdCodec;
2833
+ }
2834
+ });
2835
+ Object.defineProperty(exports, "chatIdParam", {
2836
+ enumerable: true,
2837
+ get: function() {
2838
+ return chatIdParam;
2839
+ }
2840
+ });
2841
+ Object.defineProperty(exports, "checkNumberStatus", {
2842
+ enumerable: true,
2843
+ get: function() {
2844
+ return checkNumberStatus;
2845
+ }
2846
+ });
2847
+ Object.defineProperty(exports, "checkReadReceipts", {
2848
+ enumerable: true,
2849
+ get: function() {
2850
+ return checkReadReceipts;
2851
+ }
2852
+ });
2853
+ Object.defineProperty(exports, "clearChat", {
2854
+ enumerable: true,
2855
+ get: function() {
2856
+ return clearChat;
2857
+ }
2858
+ });
2859
+ Object.defineProperty(exports, "communityIdParam", {
2860
+ enumerable: true,
2861
+ get: function() {
2862
+ return communityIdParam;
2863
+ }
2864
+ });
2865
+ Object.defineProperty(exports, "contactIdCodec", {
2866
+ enumerable: true,
2867
+ get: function() {
2868
+ return contactIdCodec;
2869
+ }
2870
+ });
2871
+ Object.defineProperty(exports, "contactIdParam", {
2872
+ enumerable: true,
2873
+ get: function() {
2874
+ return contactIdParam;
2875
+ }
2876
+ });
2877
+ Object.defineProperty(exports, "contentParam", {
2878
+ enumerable: true,
2879
+ get: function() {
2880
+ return contentParam;
2881
+ }
2882
+ });
2883
+ Object.defineProperty(exports, "createFileCodec", {
2884
+ enumerable: true,
2885
+ get: function() {
2886
+ return createFileCodec;
2887
+ }
2888
+ });
2889
+ Object.defineProperty(exports, "createGroup", {
2890
+ enumerable: true,
2891
+ get: function() {
2892
+ return createGroup;
2893
+ }
2894
+ });
2895
+ Object.defineProperty(exports, "decryptMedia", {
2896
+ enumerable: true,
2897
+ get: function() {
2898
+ return decryptMedia;
2899
+ }
2900
+ });
2901
+ Object.defineProperty(exports, "deleteAllStatus", {
2902
+ enumerable: true,
2903
+ get: function() {
2904
+ return deleteAllStatus;
2905
+ }
2906
+ });
2907
+ Object.defineProperty(exports, "deleteChat", {
2908
+ enumerable: true,
2909
+ get: function() {
2910
+ return deleteChat;
2911
+ }
2912
+ });
2913
+ Object.defineProperty(exports, "deleteMessage", {
2914
+ enumerable: true,
2915
+ get: function() {
2916
+ return deleteMessage;
2917
+ }
2918
+ });
2919
+ Object.defineProperty(exports, "deleteStatus", {
2920
+ enumerable: true,
2921
+ get: function() {
2922
+ return deleteStatus;
2923
+ }
2924
+ });
2925
+ Object.defineProperty(exports, "demoteParticipant", {
2926
+ enumerable: true,
2927
+ get: function() {
2928
+ return demoteParticipant;
2929
+ }
2930
+ });
2931
+ Object.defineProperty(exports, "documentDataParam", {
2932
+ enumerable: true,
2933
+ get: function() {
2934
+ return documentDataParam;
2935
+ }
2936
+ });
2937
+ Object.defineProperty(exports, "downloadMedia", {
2938
+ enumerable: true,
2939
+ get: function() {
2940
+ return downloadMedia;
2941
+ }
2942
+ });
2943
+ Object.defineProperty(exports, "fileDataParam", {
2944
+ enumerable: true,
2945
+ get: function() {
2946
+ return fileDataParam;
2947
+ }
2948
+ });
2949
+ Object.defineProperty(exports, "fileToBase64Codec", {
2950
+ enumerable: true,
2951
+ get: function() {
2952
+ return fileToBase64Codec;
2953
+ }
2954
+ });
2955
+ Object.defineProperty(exports, "fileToBufferCodec", {
2956
+ enumerable: true,
2957
+ get: function() {
2958
+ return fileToBufferCodec;
2959
+ }
2960
+ });
2961
+ Object.defineProperty(exports, "fileToDataUrlCodec", {
2962
+ enumerable: true,
2963
+ get: function() {
2964
+ return fileToDataUrlCodec;
2965
+ }
2966
+ });
2967
+ Object.defineProperty(exports, "fileToStreamCodec", {
2968
+ enumerable: true,
2969
+ get: function() {
2970
+ return fileToStreamCodec;
2971
+ }
2972
+ });
2973
+ Object.defineProperty(exports, "fileToTempPathCodec", {
2974
+ enumerable: true,
2975
+ get: function() {
2976
+ return fileToTempPathCodec;
2977
+ }
2978
+ });
2979
+ Object.defineProperty(exports, "filenameParam", {
2980
+ enumerable: true,
2981
+ get: function() {
2982
+ return filenameParam;
2983
+ }
2984
+ });
2985
+ Object.defineProperty(exports, "forwardMessages", {
2986
+ enumerable: true,
2987
+ get: function() {
2988
+ return forwardMessages;
2989
+ }
2990
+ });
2991
+ Object.defineProperty(exports, "getAllChatIds", {
2992
+ enumerable: true,
2993
+ get: function() {
2994
+ return getAllChatIds;
2995
+ }
2996
+ });
2997
+ Object.defineProperty(exports, "getAllChats", {
2998
+ enumerable: true,
2999
+ get: function() {
3000
+ return getAllChats;
3001
+ }
3002
+ });
3003
+ Object.defineProperty(exports, "getAllCommunities", {
3004
+ enumerable: true,
3005
+ get: function() {
3006
+ return getAllCommunities;
3007
+ }
3008
+ });
3009
+ Object.defineProperty(exports, "getAllContacts", {
3010
+ enumerable: true,
3011
+ get: function() {
3012
+ return getAllContacts;
3013
+ }
3014
+ });
3015
+ Object.defineProperty(exports, "getAllGroups", {
3016
+ enumerable: true,
3017
+ get: function() {
3018
+ return getAllGroups;
3019
+ }
3020
+ });
3021
+ Object.defineProperty(exports, "getAllLabels", {
3022
+ enumerable: true,
3023
+ get: function() {
3024
+ return getAllLabels;
3025
+ }
3026
+ });
3027
+ Object.defineProperty(exports, "getAllMessages", {
3028
+ enumerable: true,
3029
+ get: function() {
3030
+ return getAllMessages;
3031
+ }
3032
+ });
3033
+ Object.defineProperty(exports, "getBatteryLevel", {
3034
+ enumerable: true,
3035
+ get: function() {
3036
+ return getBatteryLevel;
3037
+ }
3038
+ });
3039
+ Object.defineProperty(exports, "getBlockedIds", {
3040
+ enumerable: true,
3041
+ get: function() {
3042
+ return getBlockedIds;
3043
+ }
3044
+ });
3045
+ Object.defineProperty(exports, "getBusinessProducts", {
3046
+ enumerable: true,
3047
+ get: function() {
3048
+ return getBusinessProducts;
3049
+ }
3050
+ });
3051
+ Object.defineProperty(exports, "getBusinessProfile", {
3052
+ enumerable: true,
3053
+ get: function() {
3054
+ return getBusinessProfile;
3055
+ }
3056
+ });
3057
+ Object.defineProperty(exports, "getChat", {
3058
+ enumerable: true,
3059
+ get: function() {
3060
+ return getChat;
3061
+ }
3062
+ });
3063
+ Object.defineProperty(exports, "getChatWithNonContacts", {
3064
+ enumerable: true,
3065
+ get: function() {
3066
+ return getChatWithNonContacts;
3067
+ }
3068
+ });
3069
+ Object.defineProperty(exports, "getChatsByLabel", {
3070
+ enumerable: true,
3071
+ get: function() {
3072
+ return getChatsByLabel;
3073
+ }
3074
+ });
3075
+ Object.defineProperty(exports, "getCommonGroups", {
3076
+ enumerable: true,
3077
+ get: function() {
3078
+ return getCommonGroups;
3079
+ }
3080
+ });
3081
+ Object.defineProperty(exports, "getCommunityAdminIds", {
3082
+ enumerable: true,
3083
+ get: function() {
3084
+ return getCommunityAdminIds;
3085
+ }
3086
+ });
3087
+ Object.defineProperty(exports, "getCommunityAdmins", {
3088
+ enumerable: true,
3089
+ get: function() {
3090
+ return getCommunityAdmins;
3091
+ }
3092
+ });
3093
+ Object.defineProperty(exports, "getCommunityInfo", {
3094
+ enumerable: true,
3095
+ get: function() {
3096
+ return getCommunityInfo;
3097
+ }
3098
+ });
3099
+ Object.defineProperty(exports, "getCommunityParticipantIds", {
3100
+ enumerable: true,
3101
+ get: function() {
3102
+ return getCommunityParticipantIds;
3103
+ }
3104
+ });
3105
+ Object.defineProperty(exports, "getCommunityParticipants", {
3106
+ enumerable: true,
3107
+ get: function() {
3108
+ return getCommunityParticipants;
3109
+ }
3110
+ });
3111
+ Object.defineProperty(exports, "getConnectionState", {
3112
+ enumerable: true,
3113
+ get: function() {
3114
+ return getConnectionState;
3115
+ }
3116
+ });
3117
+ Object.defineProperty(exports, "getContact", {
3118
+ enumerable: true,
3119
+ get: function() {
3120
+ return getContact;
3121
+ }
3122
+ });
3123
+ Object.defineProperty(exports, "getFeatures", {
3124
+ enumerable: true,
3125
+ get: function() {
3126
+ return getFeatures;
3127
+ }
3128
+ });
3129
+ Object.defineProperty(exports, "getGroupAdmins", {
3130
+ enumerable: true,
3131
+ get: function() {
3132
+ return getGroupAdmins;
3133
+ }
3134
+ });
3135
+ Object.defineProperty(exports, "getGroupInfo", {
3136
+ enumerable: true,
3137
+ get: function() {
3138
+ return getGroupInfo;
3139
+ }
3140
+ });
3141
+ Object.defineProperty(exports, "getGroupInviteLink", {
3142
+ enumerable: true,
3143
+ get: function() {
3144
+ return getGroupInviteLink;
3145
+ }
3146
+ });
3147
+ Object.defineProperty(exports, "getGroupMembers", {
3148
+ enumerable: true,
3149
+ get: function() {
3150
+ return getGroupMembers;
3151
+ }
3152
+ });
3153
+ Object.defineProperty(exports, "getGroupMembersId", {
3154
+ enumerable: true,
3155
+ get: function() {
3156
+ return getGroupMembersId;
3157
+ }
3158
+ });
3159
+ Object.defineProperty(exports, "getHostNumber", {
3160
+ enumerable: true,
3161
+ get: function() {
3162
+ return getHostNumber;
3163
+ }
3164
+ });
3165
+ Object.defineProperty(exports, "getKickedGroups", {
3166
+ enumerable: true,
3167
+ get: function() {
3168
+ return getKickedGroups;
3169
+ }
3170
+ });
3171
+ Object.defineProperty(exports, "getLicenseType", {
3172
+ enumerable: true,
3173
+ get: function() {
3174
+ return getLicenseType;
3175
+ }
3176
+ });
3177
+ Object.defineProperty(exports, "getLoadedMessageCount", {
3178
+ enumerable: true,
3179
+ get: function() {
3180
+ return getLoadedMessageCount;
3181
+ }
3182
+ });
3183
+ Object.defineProperty(exports, "getMe", {
3184
+ enumerable: true,
3185
+ get: function() {
3186
+ return getMe;
3187
+ }
3188
+ });
3189
+ Object.defineProperty(exports, "getMessageById", {
3190
+ enumerable: true,
3191
+ get: function() {
3192
+ return getMessageById;
3193
+ }
3194
+ });
3195
+ Object.defineProperty(exports, "getMessageInfo", {
3196
+ enumerable: true,
3197
+ get: function() {
3198
+ return getMessageInfo;
3199
+ }
3200
+ });
3201
+ Object.defineProperty(exports, "getMessagesForLLM", {
3202
+ enumerable: true,
3203
+ get: function() {
3204
+ return getMessagesForLLM;
3205
+ }
3206
+ });
3207
+ Object.defineProperty(exports, "getMyLastMessage", {
3208
+ enumerable: true,
3209
+ get: function() {
3210
+ return getMyLastMessage;
3211
+ }
3212
+ });
3213
+ Object.defineProperty(exports, "getNumberProfile", {
3214
+ enumerable: true,
3215
+ get: function() {
3216
+ return getNumberProfile;
3217
+ }
3218
+ });
3219
+ Object.defineProperty(exports, "getOrder", {
3220
+ enumerable: true,
3221
+ get: function() {
3222
+ return getOrder;
3223
+ }
3224
+ });
3225
+ Object.defineProperty(exports, "getProcessStats", {
3226
+ enumerable: true,
3227
+ get: function() {
3228
+ return getProcessStats;
3229
+ }
3230
+ });
3231
+ Object.defineProperty(exports, "getProfilePicture", {
3232
+ enumerable: true,
3233
+ get: function() {
3234
+ return getProfilePicture;
3235
+ }
3236
+ });
3237
+ Object.defineProperty(exports, "getSnapshot", {
3238
+ enumerable: true,
3239
+ get: function() {
3240
+ return getSnapshot;
3241
+ }
3242
+ });
3243
+ Object.defineProperty(exports, "getStarredMessages", {
3244
+ enumerable: true,
3245
+ get: function() {
3246
+ return getStarredMessages;
3247
+ }
3248
+ });
3249
+ Object.defineProperty(exports, "getStatus", {
3250
+ enumerable: true,
3251
+ get: function() {
3252
+ return getStatus;
3253
+ }
3254
+ });
3255
+ Object.defineProperty(exports, "getStories", {
3256
+ enumerable: true,
3257
+ get: function() {
3258
+ return getStories;
3259
+ }
3260
+ });
3261
+ Object.defineProperty(exports, "getUnsentMessages", {
3262
+ enumerable: true,
3263
+ get: function() {
3264
+ return getUnsentMessages;
3265
+ }
3266
+ });
3267
+ Object.defineProperty(exports, "getUserAgent", {
3268
+ enumerable: true,
3269
+ get: function() {
3270
+ return getUserAgent;
3271
+ }
3272
+ });
3273
+ Object.defineProperty(exports, "getVCards", {
3274
+ enumerable: true,
3275
+ get: function() {
3276
+ return getVCards;
3277
+ }
3278
+ });
3279
+ Object.defineProperty(exports, "getWAVersion", {
3280
+ enumerable: true,
3281
+ get: function() {
3282
+ return getWAVersion;
3283
+ }
3284
+ });
3285
+ Object.defineProperty(exports, "groupIdCodec", {
3286
+ enumerable: true,
3287
+ get: function() {
3288
+ return groupIdCodec;
3289
+ }
3290
+ });
3291
+ Object.defineProperty(exports, "groupIdParam", {
3292
+ enumerable: true,
3293
+ get: function() {
3294
+ return groupIdParam;
3295
+ }
3296
+ });
3297
+ Object.defineProperty(exports, "healthCheck", {
3298
+ enumerable: true,
3299
+ get: function() {
3300
+ return healthCheck;
3301
+ }
3302
+ });
3303
+ Object.defineProperty(exports, "hexColorCodec", {
3304
+ enumerable: true,
3305
+ get: function() {
3306
+ return hexColorCodec;
3307
+ }
3308
+ });
3309
+ Object.defineProperty(exports, "imageDataParam", {
3310
+ enumerable: true,
3311
+ get: function() {
3312
+ return imageDataParam;
3313
+ }
3314
+ });
3315
+ Object.defineProperty(exports, "includeMeParam", {
3316
+ enumerable: true,
3317
+ get: function() {
3318
+ return includeMeParam;
3319
+ }
3320
+ });
3321
+ Object.defineProperty(exports, "includeNotificationsParam", {
3322
+ enumerable: true,
3323
+ get: function() {
3324
+ return includeNotificationsParam;
3325
+ }
3326
+ });
3327
+ Object.defineProperty(exports, "isChatOnline", {
3328
+ enumerable: true,
3329
+ get: function() {
3330
+ return isChatOnline;
3331
+ }
3332
+ });
3333
+ Object.defineProperty(exports, "isPlugged", {
3334
+ enumerable: true,
3335
+ get: function() {
3336
+ return isPlugged;
3337
+ }
3338
+ });
3339
+ Object.defineProperty(exports, "isoDatetimeToDate", {
3340
+ enumerable: true,
3341
+ get: function() {
3342
+ return isoDatetimeToDate;
3343
+ }
3344
+ });
3345
+ Object.defineProperty(exports, "joinGroupViaLink", {
3346
+ enumerable: true,
3347
+ get: function() {
3348
+ return joinGroupViaLink;
3349
+ }
3350
+ });
3351
+ Object.defineProperty(exports, "jsonStringCodec", {
3352
+ enumerable: true,
3353
+ get: function() {
3354
+ return jsonStringCodec;
3355
+ }
3356
+ });
3357
+ Object.defineProperty(exports, "latitudeParam", {
3358
+ enumerable: true,
3359
+ get: function() {
3360
+ return latitudeParam;
3361
+ }
3362
+ });
3363
+ Object.defineProperty(exports, "leaveGroup", {
3364
+ enumerable: true,
3365
+ get: function() {
3366
+ return leaveGroup;
3367
+ }
3368
+ });
3369
+ Object.defineProperty(exports, "loadEarlierMessages", {
3370
+ enumerable: true,
3371
+ get: function() {
3372
+ return loadEarlierMessages;
3373
+ }
3374
+ });
3375
+ Object.defineProperty(exports, "locationNameParam", {
3376
+ enumerable: true,
3377
+ get: function() {
3378
+ return locationNameParam;
3379
+ }
3380
+ });
3381
+ Object.defineProperty(exports, "longitudeParam", {
3382
+ enumerable: true,
3383
+ get: function() {
3384
+ return longitudeParam;
3385
+ }
3386
+ });
3387
+ Object.defineProperty(exports, "markAsRead", {
3388
+ enumerable: true,
3389
+ get: function() {
3390
+ return markAsRead;
3391
+ }
3392
+ });
3393
+ Object.defineProperty(exports, "markAsUnread", {
3394
+ enumerable: true,
3395
+ get: function() {
3396
+ return markAsUnread;
3397
+ }
3398
+ });
3399
+ Object.defineProperty(exports, "mentionedJidListParam", {
3400
+ enumerable: true,
3401
+ get: function() {
3402
+ return mentionedJidListParam;
3403
+ }
3404
+ });
3405
+ Object.defineProperty(exports, "messageIdCodec", {
3406
+ enumerable: true,
3407
+ get: function() {
3408
+ return messageIdCodec;
3409
+ }
3410
+ });
3411
+ Object.defineProperty(exports, "messageIdParam", {
3412
+ enumerable: true,
3413
+ get: function() {
3414
+ return messageIdParam;
3415
+ }
3416
+ });
3417
+ Object.defineProperty(exports, "messageIdsParam", {
3418
+ enumerable: true,
3419
+ get: function() {
3420
+ return messageIdsParam;
3421
+ }
3422
+ });
3423
+ Object.defineProperty(exports, "messageOptionsParam", {
3424
+ enumerable: true,
3425
+ get: function() {
3426
+ return messageOptionsParam;
3427
+ }
3428
+ });
3429
+ Object.defineProperty(exports, "muteChat", {
3430
+ enumerable: true,
3431
+ get: function() {
3432
+ return muteChat;
3433
+ }
3434
+ });
3435
+ Object.defineProperty(exports, "nameParam", {
3436
+ enumerable: true,
3437
+ get: function() {
3438
+ return nameParam;
3439
+ }
3440
+ });
3441
+ Object.defineProperty(exports, "onlyLocalParam", {
3442
+ enumerable: true,
3443
+ get: function() {
3444
+ return onlyLocalParam;
3445
+ }
3446
+ });
3447
+ Object.defineProperty(exports, "pinChat", {
3448
+ enumerable: true,
3449
+ get: function() {
3450
+ return pinChat;
3451
+ }
3452
+ });
3453
+ Object.defineProperty(exports, "postImageStatus", {
3454
+ enumerable: true,
3455
+ get: function() {
3456
+ return postImageStatus;
3457
+ }
3458
+ });
3459
+ Object.defineProperty(exports, "postTextStatus", {
3460
+ enumerable: true,
3461
+ get: function() {
3462
+ return postTextStatus;
3463
+ }
3464
+ });
3465
+ Object.defineProperty(exports, "postVideoStatus", {
3466
+ enumerable: true,
3467
+ get: function() {
3468
+ return postVideoStatus;
3469
+ }
3470
+ });
3471
+ Object.defineProperty(exports, "promoteParticipant", {
3472
+ enumerable: true,
3473
+ get: function() {
3474
+ return promoteParticipant;
3475
+ }
3476
+ });
3477
+ Object.defineProperty(exports, "react", {
3478
+ enumerable: true,
3479
+ get: function() {
3480
+ return react;
3481
+ }
3482
+ });
3483
+ Object.defineProperty(exports, "rejectGroupJoinRequest", {
3484
+ enumerable: true,
3485
+ get: function() {
3486
+ return rejectGroupJoinRequest;
3487
+ }
3488
+ });
3489
+ Object.defineProperty(exports, "removeLabel", {
3490
+ enumerable: true,
3491
+ get: function() {
3492
+ return removeLabel;
3493
+ }
3494
+ });
3495
+ Object.defineProperty(exports, "removeParticipant", {
3496
+ enumerable: true,
3497
+ get: function() {
3498
+ return removeParticipant;
3499
+ }
3500
+ });
3501
+ Object.defineProperty(exports, "revokeGroupInviteLink", {
3502
+ enumerable: true,
3503
+ get: function() {
3504
+ return revokeGroupInviteLink;
3505
+ }
3506
+ });
3507
+ Object.defineProperty(exports, "sendAdvancedButtons", {
3508
+ enumerable: true,
3509
+ get: function() {
3510
+ return sendAdvancedButtons;
3511
+ }
3512
+ });
3513
+ Object.defineProperty(exports, "sendAudio", {
3514
+ enumerable: true,
3515
+ get: function() {
3516
+ return sendAudio;
3517
+ }
3518
+ });
3519
+ Object.defineProperty(exports, "sendBanner", {
3520
+ enumerable: true,
3521
+ get: function() {
3522
+ return sendBanner;
3523
+ }
3524
+ });
3525
+ Object.defineProperty(exports, "sendButtons", {
3526
+ enumerable: true,
3527
+ get: function() {
3528
+ return sendButtons;
3529
+ }
3530
+ });
3531
+ Object.defineProperty(exports, "sendContact", {
3532
+ enumerable: true,
3533
+ get: function() {
3534
+ return sendContact;
3535
+ }
3536
+ });
3537
+ Object.defineProperty(exports, "sendFile", {
3538
+ enumerable: true,
3539
+ get: function() {
3540
+ return sendFile;
3541
+ }
3542
+ });
3543
+ Object.defineProperty(exports, "sendFileFromUrl", {
3544
+ enumerable: true,
3545
+ get: function() {
3546
+ return sendFileFromUrl;
3547
+ }
3548
+ });
3549
+ Object.defineProperty(exports, "sendImage", {
3550
+ enumerable: true,
3551
+ get: function() {
3552
+ return sendImage;
3553
+ }
3554
+ });
3555
+ Object.defineProperty(exports, "sendLinkWithAutoPreview", {
3556
+ enumerable: true,
3557
+ get: function() {
3558
+ return sendLinkWithAutoPreview;
3559
+ }
3560
+ });
3561
+ Object.defineProperty(exports, "sendListMessage", {
3562
+ enumerable: true,
3563
+ get: function() {
3564
+ return sendListMessage;
3565
+ }
3566
+ });
3567
+ Object.defineProperty(exports, "sendLocation", {
3568
+ enumerable: true,
3569
+ get: function() {
3570
+ return sendLocation;
3571
+ }
3572
+ });
3573
+ Object.defineProperty(exports, "sendMessageWithThumb", {
3574
+ enumerable: true,
3575
+ get: function() {
3576
+ return sendMessageWithThumb;
3577
+ }
3578
+ });
3579
+ Object.defineProperty(exports, "sendMultipleContacts", {
3580
+ enumerable: true,
3581
+ get: function() {
3582
+ return sendMultipleContacts;
3583
+ }
3584
+ });
3585
+ Object.defineProperty(exports, "sendPaymentRequest", {
3586
+ enumerable: true,
3587
+ get: function() {
3588
+ return sendPaymentRequest;
3589
+ }
3590
+ });
3591
+ Object.defineProperty(exports, "sendPoll", {
3592
+ enumerable: true,
3593
+ get: function() {
3594
+ return sendPoll;
3595
+ }
3596
+ });
3597
+ Object.defineProperty(exports, "sendPtt", {
3598
+ enumerable: true,
3599
+ get: function() {
3600
+ return sendPtt;
3601
+ }
3602
+ });
3603
+ Object.defineProperty(exports, "sendReplyWithMentions", {
3604
+ enumerable: true,
3605
+ get: function() {
3606
+ return sendReplyWithMentions;
3607
+ }
3608
+ });
3609
+ Object.defineProperty(exports, "sendSeen", {
3610
+ enumerable: true,
3611
+ get: function() {
3612
+ return sendSeen;
3613
+ }
3614
+ });
3615
+ Object.defineProperty(exports, "sendText", {
3616
+ enumerable: true,
3617
+ get: function() {
3618
+ return sendText;
3619
+ }
3620
+ });
3621
+ Object.defineProperty(exports, "sendTextWithMentions", {
3622
+ enumerable: true,
3623
+ get: function() {
3624
+ return sendTextWithMentions;
3625
+ }
3626
+ });
3627
+ Object.defineProperty(exports, "sendVCard", {
3628
+ enumerable: true,
3629
+ get: function() {
3630
+ return sendVCard;
3631
+ }
3632
+ });
3633
+ Object.defineProperty(exports, "sendVideoAsGif", {
3634
+ enumerable: true,
3635
+ get: function() {
3636
+ return sendVideoAsGif;
3637
+ }
3638
+ });
3639
+ Object.defineProperty(exports, "sendYouTubeLink", {
3640
+ enumerable: true,
3641
+ get: function() {
3642
+ return sendYouTubeLink;
3643
+ }
3644
+ });
3645
+ Object.defineProperty(exports, "setChatEphemeral", {
3646
+ enumerable: true,
3647
+ get: function() {
3648
+ return setChatEphemeral;
3649
+ }
3650
+ });
3651
+ Object.defineProperty(exports, "setGroupDescription", {
3652
+ enumerable: true,
3653
+ get: function() {
3654
+ return setGroupDescription;
3655
+ }
3656
+ });
3657
+ Object.defineProperty(exports, "setGroupEditToAdminsOnly", {
3658
+ enumerable: true,
3659
+ get: function() {
3660
+ return setGroupEditToAdminsOnly;
3661
+ }
3662
+ });
3663
+ Object.defineProperty(exports, "setGroupIcon", {
3664
+ enumerable: true,
3665
+ get: function() {
3666
+ return setGroupIcon;
3667
+ }
3668
+ });
3669
+ Object.defineProperty(exports, "setGroupTitle", {
3670
+ enumerable: true,
3671
+ get: function() {
3672
+ return setGroupTitle;
3673
+ }
3674
+ });
3675
+ Object.defineProperty(exports, "setGroupToAdminsOnly", {
3676
+ enumerable: true,
3677
+ get: function() {
3678
+ return setGroupToAdminsOnly;
3679
+ }
3680
+ });
3681
+ Object.defineProperty(exports, "setMyName", {
3682
+ enumerable: true,
3683
+ get: function() {
3684
+ return setMyName;
3685
+ }
3686
+ });
3687
+ Object.defineProperty(exports, "setMyStatus", {
3688
+ enumerable: true,
3689
+ get: function() {
3690
+ return setMyStatus;
3691
+ }
3692
+ });
3693
+ Object.defineProperty(exports, "setProfilePicture", {
3694
+ enumerable: true,
3695
+ get: function() {
3696
+ return setProfilePicture;
3697
+ }
3698
+ });
3699
+ Object.defineProperty(exports, "skipMyMessagesParam", {
3700
+ enumerable: true,
3701
+ get: function() {
3702
+ return skipMyMessagesParam;
3703
+ }
3704
+ });
3705
+ Object.defineProperty(exports, "starMessage", {
3706
+ enumerable: true,
3707
+ get: function() {
3708
+ return starMessage;
3709
+ }
3710
+ });
3711
+ Object.defineProperty(exports, "statusTextParam", {
3712
+ enumerable: true,
3713
+ get: function() {
3714
+ return statusTextParam;
3715
+ }
3716
+ });
3717
+ Object.defineProperty(exports, "stickerDataParam", {
3718
+ enumerable: true,
3719
+ get: function() {
3720
+ return stickerDataParam;
3721
+ }
3722
+ });
3723
+ Object.defineProperty(exports, "toParam", {
3724
+ enumerable: true,
3725
+ get: function() {
3726
+ return toParam;
3727
+ }
3728
+ });
3729
+ Object.defineProperty(exports, "unarchiveChat", {
3730
+ enumerable: true,
3731
+ get: function() {
3732
+ return unarchiveChat;
3733
+ }
3734
+ });
3735
+ Object.defineProperty(exports, "unblockContact", {
3736
+ enumerable: true,
3737
+ get: function() {
3738
+ return unblockContact;
3739
+ }
3740
+ });
3741
+ Object.defineProperty(exports, "unixMillisToDate", {
3742
+ enumerable: true,
3743
+ get: function() {
3744
+ return unixMillisToDate;
3745
+ }
3746
+ });
3747
+ Object.defineProperty(exports, "unixSecondsToDate", {
3748
+ enumerable: true,
3749
+ get: function() {
3750
+ return unixSecondsToDate;
3751
+ }
3752
+ });
3753
+ Object.defineProperty(exports, "unmuteChat", {
3754
+ enumerable: true,
3755
+ get: function() {
3756
+ return unmuteChat;
3757
+ }
3758
+ });
3759
+ Object.defineProperty(exports, "unpinChat", {
3760
+ enumerable: true,
3761
+ get: function() {
3762
+ return unpinChat;
3763
+ }
3764
+ });
3765
+ Object.defineProperty(exports, "unstarMessage", {
3766
+ enumerable: true,
3767
+ get: function() {
3768
+ return unstarMessage;
3769
+ }
3770
+ });
3771
+ Object.defineProperty(exports, "urlToDataUrlCodec", {
3772
+ enumerable: true,
3773
+ get: function() {
3774
+ return urlToDataUrlCodec;
3775
+ }
3776
+ });
3777
+ Object.defineProperty(exports, "userAgentParam", {
3778
+ enumerable: true,
3779
+ get: function() {
3780
+ return userAgentParam;
3781
+ }
3782
+ });
3783
+ Object.defineProperty(exports, "videoDataParam", {
3784
+ enumerable: true,
3785
+ get: function() {
3786
+ return videoDataParam;
3787
+ }
3788
+ });
3789
+ Object.defineProperty(exports, "waitForIdParam", {
3790
+ enumerable: true,
3791
+ get: function() {
3792
+ return waitForIdParam;
3793
+ }
3794
+ });
3795
+ Object.defineProperty(exports, "withNewMessagesOnlyParam", {
3796
+ enumerable: true,
3797
+ get: function() {
3798
+ return withNewMessagesOnlyParam;
3799
+ }
3800
+ });
3801
+
3802
+ //# sourceMappingURL=methods-CuiwUO7-.cjs.map