@wazzapi/wazzapi 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +232 -0
- package/advanced-examples/custom-fetch.ts +40 -0
- package/advanced-examples/download-media.ts +27 -0
- package/advanced-examples/http-webhook-server.ts +80 -0
- package/dist/index.cjs +1550 -0
- package/dist/index.d.cts +1012 -0
- package/dist/index.d.ts +1012 -0
- package/dist/index.js +1461 -0
- package/docs/README.md +61 -0
- package/docs/authentication.md +37 -0
- package/docs/client.md +68 -0
- package/docs/contacts.md +194 -0
- package/docs/errors.md +57 -0
- package/docs/groups.md +233 -0
- package/docs/media.md +38 -0
- package/docs/messages.md +151 -0
- package/docs/templates.md +76 -0
- package/docs/webhooks.md +101 -0
- package/examples/create-template.ts +10 -0
- package/examples/list-contacts.ts +8 -0
- package/examples/preview-template.ts +9 -0
- package/examples/send-message.ts +10 -0
- package/examples/verify-webhook.ts +33 -0
- package/package.json +57 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1012 @@
|
|
|
1
|
+
interface WazzapiModel {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}
|
|
4
|
+
type JsonRecord = Record<string, unknown>;
|
|
5
|
+
|
|
6
|
+
declare class BaseResource {
|
|
7
|
+
protected readonly _client: WazzapiClient;
|
|
8
|
+
constructor(client: WazzapiClient);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type StringMap = Record<string, unknown>;
|
|
12
|
+
interface AddToGroupRequest extends WazzapiModel {
|
|
13
|
+
contact_ids: string[];
|
|
14
|
+
}
|
|
15
|
+
interface AddToGroupResponse extends WazzapiModel {
|
|
16
|
+
success: boolean;
|
|
17
|
+
added: number;
|
|
18
|
+
member_count: number;
|
|
19
|
+
}
|
|
20
|
+
interface BulkDeleteRequest extends WazzapiModel {
|
|
21
|
+
contact_ids: string[];
|
|
22
|
+
}
|
|
23
|
+
interface BulkDeleteResponse extends WazzapiModel {
|
|
24
|
+
success: boolean;
|
|
25
|
+
deleted: number;
|
|
26
|
+
}
|
|
27
|
+
interface CSVExportResponse extends WazzapiModel {
|
|
28
|
+
csv_data: string;
|
|
29
|
+
count: number;
|
|
30
|
+
filename: string;
|
|
31
|
+
}
|
|
32
|
+
interface CSVImportRequest extends WazzapiModel {
|
|
33
|
+
csv_content: string;
|
|
34
|
+
skip_duplicates?: boolean | null;
|
|
35
|
+
}
|
|
36
|
+
interface CSVImportResponse extends WazzapiModel {
|
|
37
|
+
success: boolean;
|
|
38
|
+
imported: number;
|
|
39
|
+
updated: number;
|
|
40
|
+
errors: string[];
|
|
41
|
+
rows_processed: number;
|
|
42
|
+
}
|
|
43
|
+
interface ContactCreateRequest extends WazzapiModel {
|
|
44
|
+
phone_number: string;
|
|
45
|
+
name?: string | null;
|
|
46
|
+
email?: string | null;
|
|
47
|
+
tags?: string[] | null;
|
|
48
|
+
custom_fields?: StringMap | null;
|
|
49
|
+
}
|
|
50
|
+
interface ContactGroupCreateRequest extends WazzapiModel {
|
|
51
|
+
name: string;
|
|
52
|
+
description?: string | null;
|
|
53
|
+
}
|
|
54
|
+
interface ContactGroupItem extends WazzapiModel {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string | null;
|
|
58
|
+
member_count: number;
|
|
59
|
+
created_at: Date;
|
|
60
|
+
}
|
|
61
|
+
interface ContactGroupListResponse extends WazzapiModel {
|
|
62
|
+
groups: ContactGroupItem[];
|
|
63
|
+
total: number;
|
|
64
|
+
limit: number;
|
|
65
|
+
offset: number;
|
|
66
|
+
}
|
|
67
|
+
interface ContactItem extends WazzapiModel {
|
|
68
|
+
id: string;
|
|
69
|
+
phone_number: string;
|
|
70
|
+
name?: string | null;
|
|
71
|
+
email?: string | null;
|
|
72
|
+
whatsapp_name?: string | null;
|
|
73
|
+
profile_picture_url?: string | null;
|
|
74
|
+
source: string;
|
|
75
|
+
source_details?: StringMap | null;
|
|
76
|
+
is_opted_out: boolean;
|
|
77
|
+
tags: string[];
|
|
78
|
+
last_message_at?: Date | null;
|
|
79
|
+
created_at: Date;
|
|
80
|
+
}
|
|
81
|
+
interface ContactGroupMembersResponse extends WazzapiModel {
|
|
82
|
+
group: ContactGroupItem;
|
|
83
|
+
contacts: ContactItem[];
|
|
84
|
+
total: number;
|
|
85
|
+
limit: number;
|
|
86
|
+
offset: number;
|
|
87
|
+
}
|
|
88
|
+
interface ContactGroupUpdateRequest extends WazzapiModel {
|
|
89
|
+
name?: string | null;
|
|
90
|
+
description?: string | null;
|
|
91
|
+
}
|
|
92
|
+
interface ContactListResponse extends WazzapiModel {
|
|
93
|
+
contacts: ContactItem[];
|
|
94
|
+
total: number;
|
|
95
|
+
limit: number;
|
|
96
|
+
offset: number;
|
|
97
|
+
}
|
|
98
|
+
interface ContactResponse extends WazzapiModel {
|
|
99
|
+
id: string;
|
|
100
|
+
phone_number: string;
|
|
101
|
+
name?: string | null;
|
|
102
|
+
email?: string | null;
|
|
103
|
+
whatsapp_name?: string | null;
|
|
104
|
+
profile_picture_url?: string | null;
|
|
105
|
+
custom_fields?: StringMap | null;
|
|
106
|
+
source: string;
|
|
107
|
+
source_details?: StringMap | null;
|
|
108
|
+
is_opted_out: boolean;
|
|
109
|
+
opted_out_at?: Date | null;
|
|
110
|
+
tags: string[];
|
|
111
|
+
last_message_at?: Date | null;
|
|
112
|
+
created_at: Date;
|
|
113
|
+
updated_at: Date;
|
|
114
|
+
}
|
|
115
|
+
interface ContactSyncHistoryItem extends WazzapiModel {
|
|
116
|
+
id: string;
|
|
117
|
+
account_id: string;
|
|
118
|
+
account_name: string;
|
|
119
|
+
sync_type: string;
|
|
120
|
+
status: string;
|
|
121
|
+
contacts_count: number;
|
|
122
|
+
started_at: Date;
|
|
123
|
+
completed_at?: Date | null;
|
|
124
|
+
error_message?: string | null;
|
|
125
|
+
}
|
|
126
|
+
interface ContactSyncHistoryResponse extends WazzapiModel {
|
|
127
|
+
history: ContactSyncHistoryItem[];
|
|
128
|
+
total: number;
|
|
129
|
+
}
|
|
130
|
+
interface ContactSyncRequest extends WazzapiModel {
|
|
131
|
+
whatsapp_account_id: string;
|
|
132
|
+
sync_type?: string | null;
|
|
133
|
+
}
|
|
134
|
+
interface ContactSyncResponse extends WazzapiModel {
|
|
135
|
+
success: boolean;
|
|
136
|
+
job_id?: string | null;
|
|
137
|
+
message: string;
|
|
138
|
+
status?: string | null;
|
|
139
|
+
}
|
|
140
|
+
interface ContactSyncStatusResponse extends WazzapiModel {
|
|
141
|
+
account_id: string;
|
|
142
|
+
account_name: string;
|
|
143
|
+
last_sync_at?: Date | null;
|
|
144
|
+
last_sync_status?: string | null;
|
|
145
|
+
contacts_synced_count: number;
|
|
146
|
+
can_sync: boolean;
|
|
147
|
+
}
|
|
148
|
+
interface ContactUpdateRequest extends WazzapiModel {
|
|
149
|
+
name?: string | null;
|
|
150
|
+
email?: string | null;
|
|
151
|
+
tags?: string[] | null;
|
|
152
|
+
custom_fields?: StringMap | null;
|
|
153
|
+
is_opted_out?: boolean | null;
|
|
154
|
+
}
|
|
155
|
+
interface RemoveFromGroupRequest extends WazzapiModel {
|
|
156
|
+
contact_ids: string[];
|
|
157
|
+
}
|
|
158
|
+
declare function parseAddToGroupResponse(input: unknown): AddToGroupResponse;
|
|
159
|
+
declare function parseBulkDeleteResponse(input: unknown): BulkDeleteResponse;
|
|
160
|
+
declare function parseCSVExportResponse(input: unknown): CSVExportResponse;
|
|
161
|
+
declare function parseCSVImportResponse(input: unknown): CSVImportResponse;
|
|
162
|
+
declare function parseContactGroupItem(input: unknown): ContactGroupItem;
|
|
163
|
+
declare function parseContactGroupListResponse(input: unknown): ContactGroupListResponse;
|
|
164
|
+
declare function parseContactItem(input: unknown): ContactItem;
|
|
165
|
+
declare function parseContactGroupMembersResponse(input: unknown): ContactGroupMembersResponse;
|
|
166
|
+
declare function parseContactListResponse(input: unknown): ContactListResponse;
|
|
167
|
+
declare function parseContactResponse(input: unknown): ContactResponse;
|
|
168
|
+
declare function parseContactSyncHistoryItem(input: unknown): ContactSyncHistoryItem;
|
|
169
|
+
declare function parseContactSyncHistoryResponse(input: unknown): ContactSyncHistoryResponse;
|
|
170
|
+
declare function parseContactSyncResponse(input: unknown): ContactSyncResponse;
|
|
171
|
+
declare function parseContactSyncStatusResponse(input: unknown): ContactSyncStatusResponse;
|
|
172
|
+
declare function parseContactSyncStatusResponseList(input: unknown): ContactSyncStatusResponse[];
|
|
173
|
+
|
|
174
|
+
interface GroupListItem extends WazzapiModel {
|
|
175
|
+
id: string;
|
|
176
|
+
name: string;
|
|
177
|
+
description?: string | null;
|
|
178
|
+
owner?: string | null;
|
|
179
|
+
participants_count: number;
|
|
180
|
+
}
|
|
181
|
+
interface GroupListResponse extends WazzapiModel {
|
|
182
|
+
groups: GroupListItem[];
|
|
183
|
+
total: number;
|
|
184
|
+
}
|
|
185
|
+
interface GroupDetailResponse extends WazzapiModel {
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
description?: string | null;
|
|
189
|
+
owner?: string | null;
|
|
190
|
+
participants_count: number;
|
|
191
|
+
}
|
|
192
|
+
interface GroupParticipantItem extends WazzapiModel {
|
|
193
|
+
id: string;
|
|
194
|
+
is_admin: boolean;
|
|
195
|
+
is_super_admin: boolean;
|
|
196
|
+
}
|
|
197
|
+
interface GroupParticipantsResponse extends WazzapiModel {
|
|
198
|
+
participants: GroupParticipantItem[];
|
|
199
|
+
}
|
|
200
|
+
interface GroupOperationResponseModel extends WazzapiModel {
|
|
201
|
+
success: boolean;
|
|
202
|
+
details: string;
|
|
203
|
+
}
|
|
204
|
+
interface CreateGroupRequest extends WazzapiModel {
|
|
205
|
+
session_name: string;
|
|
206
|
+
name: string;
|
|
207
|
+
participants: string[];
|
|
208
|
+
}
|
|
209
|
+
interface CreateGroupResponseModel extends WazzapiModel {
|
|
210
|
+
success: boolean;
|
|
211
|
+
jid: string;
|
|
212
|
+
name: string;
|
|
213
|
+
owner_jid?: string | null;
|
|
214
|
+
group_created?: string | null;
|
|
215
|
+
}
|
|
216
|
+
interface SendGroupTextRequest extends WazzapiModel {
|
|
217
|
+
session_name: string;
|
|
218
|
+
group_jid: string;
|
|
219
|
+
text: string;
|
|
220
|
+
message_id?: string | null;
|
|
221
|
+
}
|
|
222
|
+
interface SendGroupMediaRequest extends WazzapiModel {
|
|
223
|
+
session_name: string;
|
|
224
|
+
group_jid: string;
|
|
225
|
+
media_url: string;
|
|
226
|
+
media_type: string;
|
|
227
|
+
caption?: string | null;
|
|
228
|
+
filename?: string | null;
|
|
229
|
+
}
|
|
230
|
+
interface SendGroupResponse extends WazzapiModel {
|
|
231
|
+
success: boolean;
|
|
232
|
+
message_id: string;
|
|
233
|
+
status: string;
|
|
234
|
+
run_id?: string | null;
|
|
235
|
+
}
|
|
236
|
+
interface UpdateParticipantsRequest extends WazzapiModel {
|
|
237
|
+
session_name: string;
|
|
238
|
+
group_jid: string;
|
|
239
|
+
action: string;
|
|
240
|
+
participants: string[];
|
|
241
|
+
}
|
|
242
|
+
interface GroupInviteLinkResponseModel extends WazzapiModel {
|
|
243
|
+
success: boolean;
|
|
244
|
+
invite_link: string;
|
|
245
|
+
}
|
|
246
|
+
interface GroupInviteInfoResponseModel extends WazzapiModel {
|
|
247
|
+
success: boolean;
|
|
248
|
+
jid: string;
|
|
249
|
+
name: string;
|
|
250
|
+
participants: number;
|
|
251
|
+
owner_jid?: string | null;
|
|
252
|
+
}
|
|
253
|
+
interface InviteInfoRequest extends WazzapiModel {
|
|
254
|
+
session_name: string;
|
|
255
|
+
invite_link: string;
|
|
256
|
+
}
|
|
257
|
+
interface JoinGroupRequest extends WazzapiModel {
|
|
258
|
+
session_name: string;
|
|
259
|
+
invite_link: string;
|
|
260
|
+
}
|
|
261
|
+
interface SetGroupNameRequest extends WazzapiModel {
|
|
262
|
+
session_name: string;
|
|
263
|
+
name: string;
|
|
264
|
+
}
|
|
265
|
+
interface SetGroupTopicRequest extends WazzapiModel {
|
|
266
|
+
session_name: string;
|
|
267
|
+
topic: string;
|
|
268
|
+
}
|
|
269
|
+
interface SetGroupPhotoRequest extends WazzapiModel {
|
|
270
|
+
session_name: string;
|
|
271
|
+
image_data_uri: string;
|
|
272
|
+
}
|
|
273
|
+
interface SetGroupAnnounceRequest extends WazzapiModel {
|
|
274
|
+
session_name: string;
|
|
275
|
+
announce: boolean;
|
|
276
|
+
}
|
|
277
|
+
interface SetGroupLockedRequest extends WazzapiModel {
|
|
278
|
+
session_name: string;
|
|
279
|
+
locked: boolean;
|
|
280
|
+
}
|
|
281
|
+
interface SetGroupEphemeralRequest extends WazzapiModel {
|
|
282
|
+
session_name: string;
|
|
283
|
+
duration: string;
|
|
284
|
+
}
|
|
285
|
+
declare function parseGroupListItem(input: unknown): GroupListItem;
|
|
286
|
+
declare function parseGroupListResponse(input: unknown): GroupListResponse;
|
|
287
|
+
declare function parseGroupDetailResponse(input: unknown): GroupDetailResponse;
|
|
288
|
+
declare function parseGroupParticipantItem(input: unknown): GroupParticipantItem;
|
|
289
|
+
declare function parseGroupParticipantsResponse(input: unknown): GroupParticipantsResponse;
|
|
290
|
+
declare function parseGroupOperationResponseModel(input: unknown): GroupOperationResponseModel;
|
|
291
|
+
declare function parseCreateGroupResponseModel(input: unknown): CreateGroupResponseModel;
|
|
292
|
+
declare function parseSendGroupResponse(input: unknown): SendGroupResponse;
|
|
293
|
+
declare function parseGroupInviteLinkResponseModel(input: unknown): GroupInviteLinkResponseModel;
|
|
294
|
+
declare function parseGroupInviteInfoResponseModel(input: unknown): GroupInviteInfoResponseModel;
|
|
295
|
+
|
|
296
|
+
interface MediaDownloadResult extends WazzapiModel {
|
|
297
|
+
content: Buffer;
|
|
298
|
+
mimetype: string;
|
|
299
|
+
file_name: string;
|
|
300
|
+
file_size: number;
|
|
301
|
+
}
|
|
302
|
+
declare function parseMediaDownloadResult(input: unknown): MediaDownloadResult;
|
|
303
|
+
|
|
304
|
+
type ValueMap$1 = Record<string, unknown>;
|
|
305
|
+
interface InteractiveButton extends WazzapiModel {
|
|
306
|
+
id: string;
|
|
307
|
+
title: string;
|
|
308
|
+
}
|
|
309
|
+
interface ButtonReplyRequest extends WazzapiModel {
|
|
310
|
+
phone_number: string;
|
|
311
|
+
body: string;
|
|
312
|
+
buttons: InteractiveButton[];
|
|
313
|
+
whatsapp_account_id: string;
|
|
314
|
+
footer?: string | null;
|
|
315
|
+
contact_id?: string | null;
|
|
316
|
+
}
|
|
317
|
+
interface CancelMessageResponse extends WazzapiModel {
|
|
318
|
+
success: boolean;
|
|
319
|
+
message_id: string;
|
|
320
|
+
status: string;
|
|
321
|
+
}
|
|
322
|
+
interface InteractiveMessageResponse extends WazzapiModel {
|
|
323
|
+
success: boolean;
|
|
324
|
+
message_id: string;
|
|
325
|
+
status: string;
|
|
326
|
+
run_id?: string | null;
|
|
327
|
+
}
|
|
328
|
+
interface InteractiveRow extends WazzapiModel {
|
|
329
|
+
id: string;
|
|
330
|
+
title: string;
|
|
331
|
+
description?: string | null;
|
|
332
|
+
}
|
|
333
|
+
interface InteractiveSection extends WazzapiModel {
|
|
334
|
+
title: string;
|
|
335
|
+
rows: InteractiveRow[];
|
|
336
|
+
}
|
|
337
|
+
interface ListReplyRequest extends WazzapiModel {
|
|
338
|
+
phone_number: string;
|
|
339
|
+
body: string;
|
|
340
|
+
button_text: string;
|
|
341
|
+
sections: InteractiveSection[];
|
|
342
|
+
whatsapp_account_id: string;
|
|
343
|
+
footer?: string | null;
|
|
344
|
+
contact_id?: string | null;
|
|
345
|
+
}
|
|
346
|
+
interface MessageItem extends WazzapiModel {
|
|
347
|
+
id: string;
|
|
348
|
+
phone_number: string;
|
|
349
|
+
content: string;
|
|
350
|
+
message_type: string;
|
|
351
|
+
media_type?: string | null;
|
|
352
|
+
media_url?: string | null;
|
|
353
|
+
status: string;
|
|
354
|
+
direction: string;
|
|
355
|
+
retry_count: number;
|
|
356
|
+
contact_id?: string | null;
|
|
357
|
+
contact_name?: string | null;
|
|
358
|
+
whatsapp_account_id: string;
|
|
359
|
+
campaign_id?: string | null;
|
|
360
|
+
batch_id?: string | null;
|
|
361
|
+
scheduled_for?: Date | null;
|
|
362
|
+
created_at: Date;
|
|
363
|
+
sent_at?: Date | null;
|
|
364
|
+
delivered_at?: Date | null;
|
|
365
|
+
read_at?: Date | null;
|
|
366
|
+
}
|
|
367
|
+
interface MessageListResponse extends WazzapiModel {
|
|
368
|
+
messages: MessageItem[];
|
|
369
|
+
total_count: number;
|
|
370
|
+
has_more: boolean;
|
|
371
|
+
current_page: number;
|
|
372
|
+
total_pages: number;
|
|
373
|
+
}
|
|
374
|
+
interface MessageResponse extends WazzapiModel {
|
|
375
|
+
id: string;
|
|
376
|
+
phone_number: string;
|
|
377
|
+
content: string;
|
|
378
|
+
message_type: string;
|
|
379
|
+
media_type?: string | null;
|
|
380
|
+
media_url?: string | null;
|
|
381
|
+
status: string;
|
|
382
|
+
direction: string;
|
|
383
|
+
failure_reason?: string | null;
|
|
384
|
+
retry_count: number;
|
|
385
|
+
whatsapp_message_id?: string | null;
|
|
386
|
+
variable_values?: ValueMap$1 | null;
|
|
387
|
+
contact_id?: string | null;
|
|
388
|
+
contact_name?: string | null;
|
|
389
|
+
whatsapp_account_id: string;
|
|
390
|
+
campaign_id?: string | null;
|
|
391
|
+
batch_id?: string | null;
|
|
392
|
+
scheduled_for?: Date | null;
|
|
393
|
+
queued_at?: Date | null;
|
|
394
|
+
sent_at?: Date | null;
|
|
395
|
+
delivered_at?: Date | null;
|
|
396
|
+
read_at?: Date | null;
|
|
397
|
+
failed_at?: Date | null;
|
|
398
|
+
created_at: Date;
|
|
399
|
+
updated_at: Date;
|
|
400
|
+
}
|
|
401
|
+
interface MessageStatsResponse extends WazzapiModel {
|
|
402
|
+
total: number;
|
|
403
|
+
by_status: {
|
|
404
|
+
[key: string]: number;
|
|
405
|
+
};
|
|
406
|
+
by_direction: {
|
|
407
|
+
[key: string]: number;
|
|
408
|
+
};
|
|
409
|
+
last_7_days: number;
|
|
410
|
+
last_30_days: number;
|
|
411
|
+
}
|
|
412
|
+
interface RetryMessageResponse extends WazzapiModel {
|
|
413
|
+
success: boolean;
|
|
414
|
+
message_id: string;
|
|
415
|
+
run_id?: string | null;
|
|
416
|
+
status: string;
|
|
417
|
+
}
|
|
418
|
+
interface SendMessageRequest extends WazzapiModel {
|
|
419
|
+
phone_number: string;
|
|
420
|
+
whatsapp_account_id: string;
|
|
421
|
+
content?: string | null;
|
|
422
|
+
template_id?: string | null;
|
|
423
|
+
custom_variables?: ValueMap$1 | null;
|
|
424
|
+
message_type?: string;
|
|
425
|
+
media_type?: string | null;
|
|
426
|
+
media_url?: string | null;
|
|
427
|
+
caption?: string | null;
|
|
428
|
+
latitude?: number | null;
|
|
429
|
+
longitude?: number | null;
|
|
430
|
+
location_title?: string | null;
|
|
431
|
+
location_address?: string | null;
|
|
432
|
+
contacts?: ValueMap$1[] | null;
|
|
433
|
+
contact_id?: string | null;
|
|
434
|
+
scheduled_for?: Date | string | null;
|
|
435
|
+
validate_phone?: boolean;
|
|
436
|
+
status_callback_url?: string | null;
|
|
437
|
+
}
|
|
438
|
+
interface SendMessageResponse extends WazzapiModel {
|
|
439
|
+
success: boolean;
|
|
440
|
+
message_id: string;
|
|
441
|
+
status: string;
|
|
442
|
+
run_id?: string | null;
|
|
443
|
+
}
|
|
444
|
+
declare function parseInteractiveButton(input: unknown): InteractiveButton;
|
|
445
|
+
declare function parseCancelMessageResponse(input: unknown): CancelMessageResponse;
|
|
446
|
+
declare function parseInteractiveMessageResponse(input: unknown): InteractiveMessageResponse;
|
|
447
|
+
declare function parseInteractiveRow(input: unknown): InteractiveRow;
|
|
448
|
+
declare function parseInteractiveSection(input: unknown): InteractiveSection;
|
|
449
|
+
declare function parseMessageItem(input: unknown): MessageItem;
|
|
450
|
+
declare function parseMessageListResponse(input: unknown): MessageListResponse;
|
|
451
|
+
declare function parseMessageResponse(input: unknown): MessageResponse;
|
|
452
|
+
declare function parseMessageStatsResponse(input: unknown): MessageStatsResponse;
|
|
453
|
+
declare function parseRetryMessageResponse(input: unknown): RetryMessageResponse;
|
|
454
|
+
declare function parseSendMessageResponse(input: unknown): SendMessageResponse;
|
|
455
|
+
|
|
456
|
+
type ValueMap = Record<string, unknown>;
|
|
457
|
+
interface BuiltinVariableInfo extends WazzapiModel {
|
|
458
|
+
name: string;
|
|
459
|
+
description: string;
|
|
460
|
+
example: string;
|
|
461
|
+
}
|
|
462
|
+
interface BuiltinVariablesResponse extends WazzapiModel {
|
|
463
|
+
variables: BuiltinVariableInfo[];
|
|
464
|
+
}
|
|
465
|
+
interface TemplateCreateRequest extends WazzapiModel {
|
|
466
|
+
name: string;
|
|
467
|
+
content: string;
|
|
468
|
+
category?: string;
|
|
469
|
+
media_type?: string | null;
|
|
470
|
+
media_url?: string | null;
|
|
471
|
+
}
|
|
472
|
+
interface TemplateItem extends WazzapiModel {
|
|
473
|
+
id: string;
|
|
474
|
+
name: string;
|
|
475
|
+
category: string;
|
|
476
|
+
content: string;
|
|
477
|
+
variables: string[];
|
|
478
|
+
builtin_variables: string[];
|
|
479
|
+
custom_variables: string[];
|
|
480
|
+
media_type?: string | null;
|
|
481
|
+
media_url?: string | null;
|
|
482
|
+
times_used: number;
|
|
483
|
+
last_used_at?: Date | null;
|
|
484
|
+
created_at: Date;
|
|
485
|
+
}
|
|
486
|
+
interface TemplateListResponse extends WazzapiModel {
|
|
487
|
+
data: TemplateItem[];
|
|
488
|
+
pagination: ValueMap;
|
|
489
|
+
}
|
|
490
|
+
interface TemplatePreviewRequest extends WazzapiModel {
|
|
491
|
+
content?: string | null;
|
|
492
|
+
template_id?: string | null;
|
|
493
|
+
custom_variables?: ValueMap | null;
|
|
494
|
+
contact_id?: string | null;
|
|
495
|
+
}
|
|
496
|
+
interface TemplatePreviewResponse extends WazzapiModel {
|
|
497
|
+
preview: string;
|
|
498
|
+
all_variables: string[];
|
|
499
|
+
builtin_variables: string[];
|
|
500
|
+
custom_variables: string[];
|
|
501
|
+
missing_variables: string[];
|
|
502
|
+
}
|
|
503
|
+
interface TemplateResponse extends WazzapiModel {
|
|
504
|
+
id: string;
|
|
505
|
+
name: string;
|
|
506
|
+
category: string;
|
|
507
|
+
content: string;
|
|
508
|
+
variables: string[];
|
|
509
|
+
builtin_variables: string[];
|
|
510
|
+
custom_variables: string[];
|
|
511
|
+
media_type?: string | null;
|
|
512
|
+
media_url?: string | null;
|
|
513
|
+
is_active: boolean;
|
|
514
|
+
times_used: number;
|
|
515
|
+
last_used_at?: Date | null;
|
|
516
|
+
created_at: Date;
|
|
517
|
+
updated_at: Date;
|
|
518
|
+
}
|
|
519
|
+
interface TemplateUpdateRequest extends WazzapiModel {
|
|
520
|
+
name?: string | null;
|
|
521
|
+
content?: string | null;
|
|
522
|
+
category?: string | null;
|
|
523
|
+
is_active?: boolean | null;
|
|
524
|
+
media_type?: string | null;
|
|
525
|
+
media_url?: string | null;
|
|
526
|
+
}
|
|
527
|
+
declare function parseBuiltinVariableInfo(input: unknown): BuiltinVariableInfo;
|
|
528
|
+
declare function parseBuiltinVariablesResponse(input: unknown): BuiltinVariablesResponse;
|
|
529
|
+
declare function parseTemplateItem(input: unknown): TemplateItem;
|
|
530
|
+
declare function parseTemplateListResponse(input: unknown): TemplateListResponse;
|
|
531
|
+
declare function parseTemplatePreviewResponse(input: unknown): TemplatePreviewResponse;
|
|
532
|
+
declare function parseTemplateResponse(input: unknown): TemplateResponse;
|
|
533
|
+
|
|
534
|
+
type MessageWebhookEvent = "message.received" | "message.sent" | "message.delivered" | "message.read" | "message.failed";
|
|
535
|
+
type DeviceWebhookEvent = "device.connected" | "device.disconnected";
|
|
536
|
+
type WebhookEvent = MessageWebhookEvent | DeviceWebhookEvent;
|
|
537
|
+
interface PublicWebhookMessageData extends WazzapiModel {
|
|
538
|
+
message_id: string;
|
|
539
|
+
whatsapp_message_id?: string | null;
|
|
540
|
+
phone_number: string;
|
|
541
|
+
account_name?: string | null;
|
|
542
|
+
status: string;
|
|
543
|
+
direction: string;
|
|
544
|
+
message_type: string;
|
|
545
|
+
failure_reason?: string | null;
|
|
546
|
+
reason?: string | null;
|
|
547
|
+
sent_at?: Date | null;
|
|
548
|
+
delivered_at?: Date | null;
|
|
549
|
+
read_at?: Date | null;
|
|
550
|
+
failed_at?: Date | null;
|
|
551
|
+
whatsapp_account_id: string;
|
|
552
|
+
campaign_id?: string | null;
|
|
553
|
+
batch_id?: string | null;
|
|
554
|
+
}
|
|
555
|
+
interface PublicWebhookDeviceData extends WazzapiModel {
|
|
556
|
+
message_id: string;
|
|
557
|
+
whatsapp_message_id?: string | null;
|
|
558
|
+
phone_number: string;
|
|
559
|
+
account_name?: string | null;
|
|
560
|
+
status: string;
|
|
561
|
+
direction: string;
|
|
562
|
+
message_type: string;
|
|
563
|
+
failure_reason?: string | null;
|
|
564
|
+
reason?: string | null;
|
|
565
|
+
sent_at?: Date | null;
|
|
566
|
+
delivered_at?: Date | null;
|
|
567
|
+
read_at?: Date | null;
|
|
568
|
+
failed_at?: Date | null;
|
|
569
|
+
whatsapp_account_id: string;
|
|
570
|
+
campaign_id?: string | null;
|
|
571
|
+
batch_id?: string | null;
|
|
572
|
+
}
|
|
573
|
+
interface PublicMessageWebhook extends WazzapiModel {
|
|
574
|
+
id: string;
|
|
575
|
+
event_type: MessageWebhookEvent;
|
|
576
|
+
timestamp: Date;
|
|
577
|
+
organization_id: string;
|
|
578
|
+
webhook_id: string;
|
|
579
|
+
data: PublicWebhookMessageData;
|
|
580
|
+
}
|
|
581
|
+
interface PublicDeviceWebhook extends WazzapiModel {
|
|
582
|
+
id: string;
|
|
583
|
+
event_type: DeviceWebhookEvent;
|
|
584
|
+
timestamp: Date;
|
|
585
|
+
organization_id: string;
|
|
586
|
+
webhook_id: string;
|
|
587
|
+
data: PublicWebhookDeviceData;
|
|
588
|
+
}
|
|
589
|
+
type WebhookPayload = PublicMessageWebhook | PublicDeviceWebhook;
|
|
590
|
+
declare function parsePublicWebhookMessageData(input: unknown): PublicWebhookMessageData;
|
|
591
|
+
declare function parsePublicWebhookDeviceData(input: unknown): PublicWebhookDeviceData;
|
|
592
|
+
declare function parsePublicMessageWebhook(input: unknown): PublicMessageWebhook;
|
|
593
|
+
declare function parsePublicDeviceWebhook(input: unknown): PublicDeviceWebhook;
|
|
594
|
+
declare function parseWebhookPayload(input: unknown): WebhookPayload;
|
|
595
|
+
|
|
596
|
+
type index_AddToGroupRequest = AddToGroupRequest;
|
|
597
|
+
type index_AddToGroupResponse = AddToGroupResponse;
|
|
598
|
+
type index_BuiltinVariableInfo = BuiltinVariableInfo;
|
|
599
|
+
type index_BuiltinVariablesResponse = BuiltinVariablesResponse;
|
|
600
|
+
type index_BulkDeleteRequest = BulkDeleteRequest;
|
|
601
|
+
type index_BulkDeleteResponse = BulkDeleteResponse;
|
|
602
|
+
type index_ButtonReplyRequest = ButtonReplyRequest;
|
|
603
|
+
type index_CSVExportResponse = CSVExportResponse;
|
|
604
|
+
type index_CSVImportRequest = CSVImportRequest;
|
|
605
|
+
type index_CSVImportResponse = CSVImportResponse;
|
|
606
|
+
type index_CancelMessageResponse = CancelMessageResponse;
|
|
607
|
+
type index_ContactCreateRequest = ContactCreateRequest;
|
|
608
|
+
type index_ContactGroupCreateRequest = ContactGroupCreateRequest;
|
|
609
|
+
type index_ContactGroupItem = ContactGroupItem;
|
|
610
|
+
type index_ContactGroupListResponse = ContactGroupListResponse;
|
|
611
|
+
type index_ContactGroupMembersResponse = ContactGroupMembersResponse;
|
|
612
|
+
type index_ContactGroupUpdateRequest = ContactGroupUpdateRequest;
|
|
613
|
+
type index_ContactItem = ContactItem;
|
|
614
|
+
type index_ContactListResponse = ContactListResponse;
|
|
615
|
+
type index_ContactResponse = ContactResponse;
|
|
616
|
+
type index_ContactSyncHistoryItem = ContactSyncHistoryItem;
|
|
617
|
+
type index_ContactSyncHistoryResponse = ContactSyncHistoryResponse;
|
|
618
|
+
type index_ContactSyncRequest = ContactSyncRequest;
|
|
619
|
+
type index_ContactSyncResponse = ContactSyncResponse;
|
|
620
|
+
type index_ContactSyncStatusResponse = ContactSyncStatusResponse;
|
|
621
|
+
type index_ContactUpdateRequest = ContactUpdateRequest;
|
|
622
|
+
type index_CreateGroupRequest = CreateGroupRequest;
|
|
623
|
+
type index_CreateGroupResponseModel = CreateGroupResponseModel;
|
|
624
|
+
type index_DeviceWebhookEvent = DeviceWebhookEvent;
|
|
625
|
+
type index_GroupDetailResponse = GroupDetailResponse;
|
|
626
|
+
type index_GroupInviteInfoResponseModel = GroupInviteInfoResponseModel;
|
|
627
|
+
type index_GroupInviteLinkResponseModel = GroupInviteLinkResponseModel;
|
|
628
|
+
type index_GroupListItem = GroupListItem;
|
|
629
|
+
type index_GroupListResponse = GroupListResponse;
|
|
630
|
+
type index_GroupOperationResponseModel = GroupOperationResponseModel;
|
|
631
|
+
type index_GroupParticipantItem = GroupParticipantItem;
|
|
632
|
+
type index_GroupParticipantsResponse = GroupParticipantsResponse;
|
|
633
|
+
type index_InteractiveButton = InteractiveButton;
|
|
634
|
+
type index_InteractiveMessageResponse = InteractiveMessageResponse;
|
|
635
|
+
type index_InteractiveRow = InteractiveRow;
|
|
636
|
+
type index_InteractiveSection = InteractiveSection;
|
|
637
|
+
type index_InviteInfoRequest = InviteInfoRequest;
|
|
638
|
+
type index_JoinGroupRequest = JoinGroupRequest;
|
|
639
|
+
type index_ListReplyRequest = ListReplyRequest;
|
|
640
|
+
type index_MediaDownloadResult = MediaDownloadResult;
|
|
641
|
+
type index_MessageItem = MessageItem;
|
|
642
|
+
type index_MessageListResponse = MessageListResponse;
|
|
643
|
+
type index_MessageResponse = MessageResponse;
|
|
644
|
+
type index_MessageStatsResponse = MessageStatsResponse;
|
|
645
|
+
type index_MessageWebhookEvent = MessageWebhookEvent;
|
|
646
|
+
type index_PublicDeviceWebhook = PublicDeviceWebhook;
|
|
647
|
+
type index_PublicMessageWebhook = PublicMessageWebhook;
|
|
648
|
+
type index_PublicWebhookDeviceData = PublicWebhookDeviceData;
|
|
649
|
+
type index_PublicWebhookMessageData = PublicWebhookMessageData;
|
|
650
|
+
type index_RemoveFromGroupRequest = RemoveFromGroupRequest;
|
|
651
|
+
type index_RetryMessageResponse = RetryMessageResponse;
|
|
652
|
+
type index_SendGroupMediaRequest = SendGroupMediaRequest;
|
|
653
|
+
type index_SendGroupResponse = SendGroupResponse;
|
|
654
|
+
type index_SendGroupTextRequest = SendGroupTextRequest;
|
|
655
|
+
type index_SendMessageRequest = SendMessageRequest;
|
|
656
|
+
type index_SendMessageResponse = SendMessageResponse;
|
|
657
|
+
type index_SetGroupAnnounceRequest = SetGroupAnnounceRequest;
|
|
658
|
+
type index_SetGroupEphemeralRequest = SetGroupEphemeralRequest;
|
|
659
|
+
type index_SetGroupLockedRequest = SetGroupLockedRequest;
|
|
660
|
+
type index_SetGroupNameRequest = SetGroupNameRequest;
|
|
661
|
+
type index_SetGroupPhotoRequest = SetGroupPhotoRequest;
|
|
662
|
+
type index_SetGroupTopicRequest = SetGroupTopicRequest;
|
|
663
|
+
type index_TemplateCreateRequest = TemplateCreateRequest;
|
|
664
|
+
type index_TemplateItem = TemplateItem;
|
|
665
|
+
type index_TemplateListResponse = TemplateListResponse;
|
|
666
|
+
type index_TemplatePreviewRequest = TemplatePreviewRequest;
|
|
667
|
+
type index_TemplatePreviewResponse = TemplatePreviewResponse;
|
|
668
|
+
type index_TemplateResponse = TemplateResponse;
|
|
669
|
+
type index_TemplateUpdateRequest = TemplateUpdateRequest;
|
|
670
|
+
type index_UpdateParticipantsRequest = UpdateParticipantsRequest;
|
|
671
|
+
type index_WazzapiModel = WazzapiModel;
|
|
672
|
+
type index_WebhookEvent = WebhookEvent;
|
|
673
|
+
type index_WebhookPayload = WebhookPayload;
|
|
674
|
+
declare const index_parseAddToGroupResponse: typeof parseAddToGroupResponse;
|
|
675
|
+
declare const index_parseBuiltinVariableInfo: typeof parseBuiltinVariableInfo;
|
|
676
|
+
declare const index_parseBuiltinVariablesResponse: typeof parseBuiltinVariablesResponse;
|
|
677
|
+
declare const index_parseBulkDeleteResponse: typeof parseBulkDeleteResponse;
|
|
678
|
+
declare const index_parseCSVExportResponse: typeof parseCSVExportResponse;
|
|
679
|
+
declare const index_parseCSVImportResponse: typeof parseCSVImportResponse;
|
|
680
|
+
declare const index_parseCancelMessageResponse: typeof parseCancelMessageResponse;
|
|
681
|
+
declare const index_parseContactGroupItem: typeof parseContactGroupItem;
|
|
682
|
+
declare const index_parseContactGroupListResponse: typeof parseContactGroupListResponse;
|
|
683
|
+
declare const index_parseContactGroupMembersResponse: typeof parseContactGroupMembersResponse;
|
|
684
|
+
declare const index_parseContactItem: typeof parseContactItem;
|
|
685
|
+
declare const index_parseContactListResponse: typeof parseContactListResponse;
|
|
686
|
+
declare const index_parseContactResponse: typeof parseContactResponse;
|
|
687
|
+
declare const index_parseContactSyncHistoryItem: typeof parseContactSyncHistoryItem;
|
|
688
|
+
declare const index_parseContactSyncHistoryResponse: typeof parseContactSyncHistoryResponse;
|
|
689
|
+
declare const index_parseContactSyncResponse: typeof parseContactSyncResponse;
|
|
690
|
+
declare const index_parseContactSyncStatusResponse: typeof parseContactSyncStatusResponse;
|
|
691
|
+
declare const index_parseContactSyncStatusResponseList: typeof parseContactSyncStatusResponseList;
|
|
692
|
+
declare const index_parseCreateGroupResponseModel: typeof parseCreateGroupResponseModel;
|
|
693
|
+
declare const index_parseGroupDetailResponse: typeof parseGroupDetailResponse;
|
|
694
|
+
declare const index_parseGroupInviteInfoResponseModel: typeof parseGroupInviteInfoResponseModel;
|
|
695
|
+
declare const index_parseGroupInviteLinkResponseModel: typeof parseGroupInviteLinkResponseModel;
|
|
696
|
+
declare const index_parseGroupListItem: typeof parseGroupListItem;
|
|
697
|
+
declare const index_parseGroupListResponse: typeof parseGroupListResponse;
|
|
698
|
+
declare const index_parseGroupOperationResponseModel: typeof parseGroupOperationResponseModel;
|
|
699
|
+
declare const index_parseGroupParticipantItem: typeof parseGroupParticipantItem;
|
|
700
|
+
declare const index_parseGroupParticipantsResponse: typeof parseGroupParticipantsResponse;
|
|
701
|
+
declare const index_parseInteractiveButton: typeof parseInteractiveButton;
|
|
702
|
+
declare const index_parseInteractiveMessageResponse: typeof parseInteractiveMessageResponse;
|
|
703
|
+
declare const index_parseInteractiveRow: typeof parseInteractiveRow;
|
|
704
|
+
declare const index_parseInteractiveSection: typeof parseInteractiveSection;
|
|
705
|
+
declare const index_parseMediaDownloadResult: typeof parseMediaDownloadResult;
|
|
706
|
+
declare const index_parseMessageItem: typeof parseMessageItem;
|
|
707
|
+
declare const index_parseMessageListResponse: typeof parseMessageListResponse;
|
|
708
|
+
declare const index_parseMessageResponse: typeof parseMessageResponse;
|
|
709
|
+
declare const index_parseMessageStatsResponse: typeof parseMessageStatsResponse;
|
|
710
|
+
declare const index_parsePublicDeviceWebhook: typeof parsePublicDeviceWebhook;
|
|
711
|
+
declare const index_parsePublicMessageWebhook: typeof parsePublicMessageWebhook;
|
|
712
|
+
declare const index_parsePublicWebhookDeviceData: typeof parsePublicWebhookDeviceData;
|
|
713
|
+
declare const index_parsePublicWebhookMessageData: typeof parsePublicWebhookMessageData;
|
|
714
|
+
declare const index_parseRetryMessageResponse: typeof parseRetryMessageResponse;
|
|
715
|
+
declare const index_parseSendGroupResponse: typeof parseSendGroupResponse;
|
|
716
|
+
declare const index_parseSendMessageResponse: typeof parseSendMessageResponse;
|
|
717
|
+
declare const index_parseTemplateItem: typeof parseTemplateItem;
|
|
718
|
+
declare const index_parseTemplateListResponse: typeof parseTemplateListResponse;
|
|
719
|
+
declare const index_parseTemplatePreviewResponse: typeof parseTemplatePreviewResponse;
|
|
720
|
+
declare const index_parseTemplateResponse: typeof parseTemplateResponse;
|
|
721
|
+
declare const index_parseWebhookPayload: typeof parseWebhookPayload;
|
|
722
|
+
declare namespace index {
|
|
723
|
+
export { type index_AddToGroupRequest as AddToGroupRequest, type index_AddToGroupResponse as AddToGroupResponse, type index_BuiltinVariableInfo as BuiltinVariableInfo, type index_BuiltinVariablesResponse as BuiltinVariablesResponse, type index_BulkDeleteRequest as BulkDeleteRequest, type index_BulkDeleteResponse as BulkDeleteResponse, type index_ButtonReplyRequest as ButtonReplyRequest, type index_CSVExportResponse as CSVExportResponse, type index_CSVImportRequest as CSVImportRequest, type index_CSVImportResponse as CSVImportResponse, type index_CancelMessageResponse as CancelMessageResponse, type index_ContactCreateRequest as ContactCreateRequest, type index_ContactGroupCreateRequest as ContactGroupCreateRequest, type index_ContactGroupItem as ContactGroupItem, type index_ContactGroupListResponse as ContactGroupListResponse, type index_ContactGroupMembersResponse as ContactGroupMembersResponse, type index_ContactGroupUpdateRequest as ContactGroupUpdateRequest, type index_ContactItem as ContactItem, type index_ContactListResponse as ContactListResponse, type index_ContactResponse as ContactResponse, type index_ContactSyncHistoryItem as ContactSyncHistoryItem, type index_ContactSyncHistoryResponse as ContactSyncHistoryResponse, type index_ContactSyncRequest as ContactSyncRequest, type index_ContactSyncResponse as ContactSyncResponse, type index_ContactSyncStatusResponse as ContactSyncStatusResponse, type index_ContactUpdateRequest as ContactUpdateRequest, type index_CreateGroupRequest as CreateGroupRequest, type index_CreateGroupResponseModel as CreateGroupResponseModel, type index_DeviceWebhookEvent as DeviceWebhookEvent, type index_GroupDetailResponse as GroupDetailResponse, type index_GroupInviteInfoResponseModel as GroupInviteInfoResponseModel, type index_GroupInviteLinkResponseModel as GroupInviteLinkResponseModel, type index_GroupListItem as GroupListItem, type index_GroupListResponse as GroupListResponse, type index_GroupOperationResponseModel as GroupOperationResponseModel, type index_GroupParticipantItem as GroupParticipantItem, type index_GroupParticipantsResponse as GroupParticipantsResponse, type index_InteractiveButton as InteractiveButton, type index_InteractiveMessageResponse as InteractiveMessageResponse, type index_InteractiveRow as InteractiveRow, type index_InteractiveSection as InteractiveSection, type index_InviteInfoRequest as InviteInfoRequest, type index_JoinGroupRequest as JoinGroupRequest, type index_ListReplyRequest as ListReplyRequest, type index_MediaDownloadResult as MediaDownloadResult, type index_MessageItem as MessageItem, type index_MessageListResponse as MessageListResponse, type index_MessageResponse as MessageResponse, type index_MessageStatsResponse as MessageStatsResponse, type index_MessageWebhookEvent as MessageWebhookEvent, type index_PublicDeviceWebhook as PublicDeviceWebhook, type index_PublicMessageWebhook as PublicMessageWebhook, type index_PublicWebhookDeviceData as PublicWebhookDeviceData, type index_PublicWebhookMessageData as PublicWebhookMessageData, type index_RemoveFromGroupRequest as RemoveFromGroupRequest, type index_RetryMessageResponse as RetryMessageResponse, type index_SendGroupMediaRequest as SendGroupMediaRequest, type index_SendGroupResponse as SendGroupResponse, type index_SendGroupTextRequest as SendGroupTextRequest, type index_SendMessageRequest as SendMessageRequest, type index_SendMessageResponse as SendMessageResponse, type index_SetGroupAnnounceRequest as SetGroupAnnounceRequest, type index_SetGroupEphemeralRequest as SetGroupEphemeralRequest, type index_SetGroupLockedRequest as SetGroupLockedRequest, type index_SetGroupNameRequest as SetGroupNameRequest, type index_SetGroupPhotoRequest as SetGroupPhotoRequest, type index_SetGroupTopicRequest as SetGroupTopicRequest, type index_TemplateCreateRequest as TemplateCreateRequest, type index_TemplateItem as TemplateItem, type index_TemplateListResponse as TemplateListResponse, type index_TemplatePreviewRequest as TemplatePreviewRequest, type index_TemplatePreviewResponse as TemplatePreviewResponse, type index_TemplateResponse as TemplateResponse, type index_TemplateUpdateRequest as TemplateUpdateRequest, type index_UpdateParticipantsRequest as UpdateParticipantsRequest, type index_WazzapiModel as WazzapiModel, type index_WebhookEvent as WebhookEvent, type index_WebhookPayload as WebhookPayload, index_parseAddToGroupResponse as parseAddToGroupResponse, index_parseBuiltinVariableInfo as parseBuiltinVariableInfo, index_parseBuiltinVariablesResponse as parseBuiltinVariablesResponse, index_parseBulkDeleteResponse as parseBulkDeleteResponse, index_parseCSVExportResponse as parseCSVExportResponse, index_parseCSVImportResponse as parseCSVImportResponse, index_parseCancelMessageResponse as parseCancelMessageResponse, index_parseContactGroupItem as parseContactGroupItem, index_parseContactGroupListResponse as parseContactGroupListResponse, index_parseContactGroupMembersResponse as parseContactGroupMembersResponse, index_parseContactItem as parseContactItem, index_parseContactListResponse as parseContactListResponse, index_parseContactResponse as parseContactResponse, index_parseContactSyncHistoryItem as parseContactSyncHistoryItem, index_parseContactSyncHistoryResponse as parseContactSyncHistoryResponse, index_parseContactSyncResponse as parseContactSyncResponse, index_parseContactSyncStatusResponse as parseContactSyncStatusResponse, index_parseContactSyncStatusResponseList as parseContactSyncStatusResponseList, index_parseCreateGroupResponseModel as parseCreateGroupResponseModel, index_parseGroupDetailResponse as parseGroupDetailResponse, index_parseGroupInviteInfoResponseModel as parseGroupInviteInfoResponseModel, index_parseGroupInviteLinkResponseModel as parseGroupInviteLinkResponseModel, index_parseGroupListItem as parseGroupListItem, index_parseGroupListResponse as parseGroupListResponse, index_parseGroupOperationResponseModel as parseGroupOperationResponseModel, index_parseGroupParticipantItem as parseGroupParticipantItem, index_parseGroupParticipantsResponse as parseGroupParticipantsResponse, index_parseInteractiveButton as parseInteractiveButton, index_parseInteractiveMessageResponse as parseInteractiveMessageResponse, index_parseInteractiveRow as parseInteractiveRow, index_parseInteractiveSection as parseInteractiveSection, index_parseMediaDownloadResult as parseMediaDownloadResult, index_parseMessageItem as parseMessageItem, index_parseMessageListResponse as parseMessageListResponse, index_parseMessageResponse as parseMessageResponse, index_parseMessageStatsResponse as parseMessageStatsResponse, index_parsePublicDeviceWebhook as parsePublicDeviceWebhook, index_parsePublicMessageWebhook as parsePublicMessageWebhook, index_parsePublicWebhookDeviceData as parsePublicWebhookDeviceData, index_parsePublicWebhookMessageData as parsePublicWebhookMessageData, index_parseRetryMessageResponse as parseRetryMessageResponse, index_parseSendGroupResponse as parseSendGroupResponse, index_parseSendMessageResponse as parseSendMessageResponse, index_parseTemplateItem as parseTemplateItem, index_parseTemplateListResponse as parseTemplateListResponse, index_parseTemplatePreviewResponse as parseTemplatePreviewResponse, index_parseTemplateResponse as parseTemplateResponse, index_parseWebhookPayload as parseWebhookPayload };
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
type JsonObject = Record<string, unknown>;
|
|
727
|
+
declare class ContactsResource extends BaseResource {
|
|
728
|
+
list(options?: {
|
|
729
|
+
limit?: number;
|
|
730
|
+
offset?: number;
|
|
731
|
+
search?: string;
|
|
732
|
+
source?: string;
|
|
733
|
+
group_id?: string;
|
|
734
|
+
sort_by?: string;
|
|
735
|
+
sort_order?: string;
|
|
736
|
+
}): Promise<ContactListResponse>;
|
|
737
|
+
create(payload: ContactCreateRequest): Promise<ContactResponse>;
|
|
738
|
+
bulkDelete(payload: BulkDeleteRequest): Promise<BulkDeleteResponse>;
|
|
739
|
+
bulk_delete(payload: BulkDeleteRequest): Promise<BulkDeleteResponse>;
|
|
740
|
+
listGroups(options?: {
|
|
741
|
+
limit?: number;
|
|
742
|
+
offset?: number;
|
|
743
|
+
}): Promise<ContactGroupListResponse>;
|
|
744
|
+
list_groups(options?: {
|
|
745
|
+
limit?: number;
|
|
746
|
+
offset?: number;
|
|
747
|
+
}): Promise<ContactGroupListResponse>;
|
|
748
|
+
createGroup(payload: ContactGroupCreateRequest): Promise<ContactGroupItem>;
|
|
749
|
+
create_group(payload: ContactGroupCreateRequest): Promise<ContactGroupItem>;
|
|
750
|
+
getGroup(groupId: string, options?: {
|
|
751
|
+
limit?: number;
|
|
752
|
+
offset?: number;
|
|
753
|
+
}): Promise<ContactGroupMembersResponse>;
|
|
754
|
+
get_group(groupId: string, options?: {
|
|
755
|
+
limit?: number;
|
|
756
|
+
offset?: number;
|
|
757
|
+
}): Promise<ContactGroupMembersResponse>;
|
|
758
|
+
updateGroup(groupId: string, payload: ContactGroupUpdateRequest): Promise<ContactGroupItem>;
|
|
759
|
+
update_group(groupId: string, payload: ContactGroupUpdateRequest): Promise<ContactGroupItem>;
|
|
760
|
+
deleteGroup(groupId: string): Promise<void>;
|
|
761
|
+
delete_group(groupId: string): Promise<void>;
|
|
762
|
+
addToGroup(groupId: string, payload: AddToGroupRequest): Promise<AddToGroupResponse>;
|
|
763
|
+
add_to_group(groupId: string, payload: AddToGroupRequest): Promise<AddToGroupResponse>;
|
|
764
|
+
removeFromGroup(groupId: string, payload: RemoveFromGroupRequest): Promise<AddToGroupResponse>;
|
|
765
|
+
remove_from_group(groupId: string, payload: RemoveFromGroupRequest): Promise<AddToGroupResponse>;
|
|
766
|
+
importCsv(payload: CSVImportRequest): Promise<CSVImportResponse>;
|
|
767
|
+
import_csv(payload: CSVImportRequest): Promise<CSVImportResponse>;
|
|
768
|
+
exportCsv(options?: {
|
|
769
|
+
group_id?: string;
|
|
770
|
+
source?: string;
|
|
771
|
+
}): Promise<CSVExportResponse>;
|
|
772
|
+
export_csv(options?: {
|
|
773
|
+
group_id?: string;
|
|
774
|
+
source?: string;
|
|
775
|
+
}): Promise<CSVExportResponse>;
|
|
776
|
+
sync(payload: ContactSyncRequest): Promise<ContactSyncResponse>;
|
|
777
|
+
syncStatus(): Promise<ContactSyncStatusResponse[]>;
|
|
778
|
+
sync_status(): Promise<ContactSyncStatusResponse[]>;
|
|
779
|
+
syncHistory(options?: {
|
|
780
|
+
limit?: number;
|
|
781
|
+
offset?: number;
|
|
782
|
+
}): Promise<ContactSyncHistoryResponse>;
|
|
783
|
+
sync_history(options?: {
|
|
784
|
+
limit?: number;
|
|
785
|
+
offset?: number;
|
|
786
|
+
}): Promise<ContactSyncHistoryResponse>;
|
|
787
|
+
importTemplate(): Promise<JsonObject>;
|
|
788
|
+
import_template(): Promise<JsonObject>;
|
|
789
|
+
get(contactId: string): Promise<ContactResponse>;
|
|
790
|
+
update(contactId: string, payload: ContactUpdateRequest): Promise<ContactResponse>;
|
|
791
|
+
delete(contactId: string): Promise<void>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
declare class GroupsResource extends BaseResource {
|
|
795
|
+
list(options: {
|
|
796
|
+
session_name: string;
|
|
797
|
+
limit?: number;
|
|
798
|
+
offset?: number;
|
|
799
|
+
}): Promise<GroupListResponse>;
|
|
800
|
+
get(groupJid: string, options: {
|
|
801
|
+
session_name: string;
|
|
802
|
+
}): Promise<GroupDetailResponse>;
|
|
803
|
+
getParticipants(groupJid: string, options: {
|
|
804
|
+
session_name: string;
|
|
805
|
+
}): Promise<GroupParticipantsResponse>;
|
|
806
|
+
get_participants(groupJid: string, options: {
|
|
807
|
+
session_name: string;
|
|
808
|
+
}): Promise<GroupParticipantsResponse>;
|
|
809
|
+
create(payload: CreateGroupRequest): Promise<CreateGroupResponseModel>;
|
|
810
|
+
sendText(payload: SendGroupTextRequest): Promise<SendGroupResponse>;
|
|
811
|
+
send_text(payload: SendGroupTextRequest): Promise<SendGroupResponse>;
|
|
812
|
+
sendMedia(payload: SendGroupMediaRequest): Promise<SendGroupResponse>;
|
|
813
|
+
send_media(payload: SendGroupMediaRequest): Promise<SendGroupResponse>;
|
|
814
|
+
updateParticipants(payload: UpdateParticipantsRequest): Promise<GroupOperationResponseModel>;
|
|
815
|
+
update_participants(payload: UpdateParticipantsRequest): Promise<GroupOperationResponseModel>;
|
|
816
|
+
addParticipant(groupJid: string, options: {
|
|
817
|
+
session_name: string;
|
|
818
|
+
participant_jid: string;
|
|
819
|
+
}): Promise<GroupOperationResponseModel>;
|
|
820
|
+
add_participant(groupJid: string, options: {
|
|
821
|
+
session_name: string;
|
|
822
|
+
participant_jid: string;
|
|
823
|
+
}): Promise<GroupOperationResponseModel>;
|
|
824
|
+
removeParticipant(groupJid: string, options: {
|
|
825
|
+
session_name: string;
|
|
826
|
+
participant_jid: string;
|
|
827
|
+
}): Promise<GroupOperationResponseModel>;
|
|
828
|
+
remove_participant(groupJid: string, options: {
|
|
829
|
+
session_name: string;
|
|
830
|
+
participant_jid: string;
|
|
831
|
+
}): Promise<GroupOperationResponseModel>;
|
|
832
|
+
getInviteLink(groupJid: string, options: {
|
|
833
|
+
session_name: string;
|
|
834
|
+
}): Promise<GroupInviteLinkResponseModel>;
|
|
835
|
+
get_invite_link(groupJid: string, options: {
|
|
836
|
+
session_name: string;
|
|
837
|
+
}): Promise<GroupInviteLinkResponseModel>;
|
|
838
|
+
getInviteInfo(payload: InviteInfoRequest): Promise<GroupInviteInfoResponseModel>;
|
|
839
|
+
get_invite_info(payload: InviteInfoRequest): Promise<GroupInviteInfoResponseModel>;
|
|
840
|
+
join(payload: JoinGroupRequest): Promise<GroupOperationResponseModel>;
|
|
841
|
+
leave(groupJid: string, options: {
|
|
842
|
+
session_name: string;
|
|
843
|
+
}): Promise<GroupOperationResponseModel>;
|
|
844
|
+
setName(groupJid: string, payload: SetGroupNameRequest): Promise<GroupOperationResponseModel>;
|
|
845
|
+
set_name(groupJid: string, payload: SetGroupNameRequest): Promise<GroupOperationResponseModel>;
|
|
846
|
+
setTopic(groupJid: string, payload: SetGroupTopicRequest): Promise<GroupOperationResponseModel>;
|
|
847
|
+
set_topic(groupJid: string, payload: SetGroupTopicRequest): Promise<GroupOperationResponseModel>;
|
|
848
|
+
setPhoto(groupJid: string, payload: SetGroupPhotoRequest): Promise<GroupOperationResponseModel>;
|
|
849
|
+
set_photo(groupJid: string, payload: SetGroupPhotoRequest): Promise<GroupOperationResponseModel>;
|
|
850
|
+
removePhoto(groupJid: string, options: {
|
|
851
|
+
session_name: string;
|
|
852
|
+
}): Promise<GroupOperationResponseModel>;
|
|
853
|
+
remove_photo(groupJid: string, options: {
|
|
854
|
+
session_name: string;
|
|
855
|
+
}): Promise<GroupOperationResponseModel>;
|
|
856
|
+
setAnnounce(groupJid: string, payload: SetGroupAnnounceRequest): Promise<GroupOperationResponseModel>;
|
|
857
|
+
set_announce(groupJid: string, payload: SetGroupAnnounceRequest): Promise<GroupOperationResponseModel>;
|
|
858
|
+
setLocked(groupJid: string, payload: SetGroupLockedRequest): Promise<GroupOperationResponseModel>;
|
|
859
|
+
set_locked(groupJid: string, payload: SetGroupLockedRequest): Promise<GroupOperationResponseModel>;
|
|
860
|
+
setEphemeral(groupJid: string, payload: SetGroupEphemeralRequest): Promise<GroupOperationResponseModel>;
|
|
861
|
+
set_ephemeral(groupJid: string, payload: SetGroupEphemeralRequest): Promise<GroupOperationResponseModel>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
declare class MessagesResource extends BaseResource {
|
|
865
|
+
lookup(whatsappMessageId: string): Promise<MessageResponse>;
|
|
866
|
+
list(options?: {
|
|
867
|
+
limit?: number;
|
|
868
|
+
offset?: number;
|
|
869
|
+
status?: string;
|
|
870
|
+
direction?: string;
|
|
871
|
+
whatsapp_account_id?: string;
|
|
872
|
+
search?: string;
|
|
873
|
+
sort_by?: string;
|
|
874
|
+
sort_order?: string;
|
|
875
|
+
}): Promise<MessageListResponse>;
|
|
876
|
+
get(messageId: string): Promise<MessageResponse>;
|
|
877
|
+
stats(): Promise<MessageStatsResponse>;
|
|
878
|
+
send(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
879
|
+
sendImage(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
880
|
+
send_image(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
881
|
+
sendVideo(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
882
|
+
send_video(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
883
|
+
sendVoice(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
884
|
+
send_voice(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
885
|
+
sendDocument(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
886
|
+
send_document(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
887
|
+
sendLocation(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
888
|
+
send_location(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
889
|
+
sendContact(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
890
|
+
send_contact(payload: SendMessageRequest): Promise<SendMessageResponse>;
|
|
891
|
+
retry(messageId: string): Promise<RetryMessageResponse>;
|
|
892
|
+
cancel(messageId: string): Promise<CancelMessageResponse>;
|
|
893
|
+
sendButtons(payload: ButtonReplyRequest): Promise<InteractiveMessageResponse>;
|
|
894
|
+
send_buttons(payload: ButtonReplyRequest): Promise<InteractiveMessageResponse>;
|
|
895
|
+
sendList(payload: ListReplyRequest): Promise<InteractiveMessageResponse>;
|
|
896
|
+
send_list(payload: ListReplyRequest): Promise<InteractiveMessageResponse>;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
declare class TemplatesResource extends BaseResource {
|
|
900
|
+
builtinVariables(): Promise<BuiltinVariablesResponse>;
|
|
901
|
+
builtin_variables(): Promise<BuiltinVariablesResponse>;
|
|
902
|
+
list(options?: {
|
|
903
|
+
limit?: number;
|
|
904
|
+
offset?: number;
|
|
905
|
+
category?: string;
|
|
906
|
+
search?: string;
|
|
907
|
+
sort_by?: string;
|
|
908
|
+
sort_order?: string;
|
|
909
|
+
}): Promise<TemplateListResponse>;
|
|
910
|
+
create(payload: TemplateCreateRequest): Promise<TemplateResponse>;
|
|
911
|
+
get(templateId: string): Promise<TemplateResponse>;
|
|
912
|
+
update(templateId: string, payload: TemplateUpdateRequest): Promise<TemplateResponse>;
|
|
913
|
+
delete(templateId: string): Promise<void>;
|
|
914
|
+
preview(payload: TemplatePreviewRequest): Promise<TemplatePreviewResponse>;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
declare const DEFAULT_BASE_URL = "https://api.wazzapi.com";
|
|
918
|
+
type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
919
|
+
interface WazzapiClientOptions {
|
|
920
|
+
baseUrl?: string;
|
|
921
|
+
apiKey?: string;
|
|
922
|
+
timeout?: number;
|
|
923
|
+
headers?: Record<string, string>;
|
|
924
|
+
fetch?: FetchLike;
|
|
925
|
+
}
|
|
926
|
+
interface RequestOptions<T> {
|
|
927
|
+
params?: JsonRecord;
|
|
928
|
+
jsonBody?: JsonRecord;
|
|
929
|
+
responseParser?: (payload: unknown) => T;
|
|
930
|
+
}
|
|
931
|
+
interface WazzapiHttpConfig {
|
|
932
|
+
readonly baseUrl: string;
|
|
933
|
+
readonly headers: Record<string, string>;
|
|
934
|
+
readonly timeout: number;
|
|
935
|
+
readonly fetch: FetchLike;
|
|
936
|
+
}
|
|
937
|
+
declare class WazzapiClient {
|
|
938
|
+
readonly http: WazzapiHttpConfig;
|
|
939
|
+
readonly contacts: ContactsResource;
|
|
940
|
+
readonly groups: GroupsResource;
|
|
941
|
+
readonly messages: MessagesResource;
|
|
942
|
+
readonly templates: TemplatesResource;
|
|
943
|
+
constructor(options?: WazzapiClientOptions);
|
|
944
|
+
get base_url(): string;
|
|
945
|
+
close(): Promise<void>;
|
|
946
|
+
_request<T = unknown>(method: string, path: string, options?: RequestOptions<T>): Promise<T>;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
declare class WazzapiError extends Error {
|
|
950
|
+
constructor(message?: string);
|
|
951
|
+
}
|
|
952
|
+
declare class WazzapiAPIError extends WazzapiError {
|
|
953
|
+
readonly statusCode: number;
|
|
954
|
+
readonly message: string;
|
|
955
|
+
readonly details?: unknown;
|
|
956
|
+
responseText?: string;
|
|
957
|
+
constructor(statusCode: number, message: string, options?: {
|
|
958
|
+
details?: unknown;
|
|
959
|
+
responseText?: string;
|
|
960
|
+
});
|
|
961
|
+
static fromResponseParts(statusCode: number, reasonPhrase: string, responseText?: string, payload?: unknown): WazzapiAPIError;
|
|
962
|
+
}
|
|
963
|
+
declare class WazzapiMediaError extends WazzapiError {
|
|
964
|
+
constructor(message: string);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
declare function _mediaInfoBytes(mimetype: string): Buffer;
|
|
968
|
+
declare function _decryptWaMedia(mediaKeyBase64: string, encryptedData: Buffer, mimetype: string): Buffer;
|
|
969
|
+
interface DownloadMediaOptions {
|
|
970
|
+
file_sha256?: string | null;
|
|
971
|
+
file_enc_sha256?: string | null;
|
|
972
|
+
file_name?: string | null;
|
|
973
|
+
fetch?: typeof fetch;
|
|
974
|
+
}
|
|
975
|
+
declare function downloadMedia(url: string, mediaKey: string, mimetype: string, options?: DownloadMediaOptions): Promise<MediaDownloadResult>;
|
|
976
|
+
declare const download_media: typeof downloadMedia;
|
|
977
|
+
declare const _decrypt_wa_media: typeof _decryptWaMedia;
|
|
978
|
+
declare const _media_info_bytes: typeof _mediaInfoBytes;
|
|
979
|
+
|
|
980
|
+
type RawPayload = Buffer | Uint8Array | string;
|
|
981
|
+
type WebhookHeaders = Record<string, string> | Headers;
|
|
982
|
+
declare const SIGNATURE_HEADER = "X-Wazzapi-Signature";
|
|
983
|
+
declare const EVENT_HEADER = "X-Wazzapi-Event";
|
|
984
|
+
declare const EVENT_ID_HEADER = "X-Wazzapi-Event-ID";
|
|
985
|
+
declare class WazzapiWebhookError extends Error {
|
|
986
|
+
constructor(message: string);
|
|
987
|
+
}
|
|
988
|
+
declare class WazzapiWebhookVerificationError extends WazzapiWebhookError {
|
|
989
|
+
constructor(message: string);
|
|
990
|
+
}
|
|
991
|
+
declare class WazzapiWebhookParseError extends WazzapiWebhookError {
|
|
992
|
+
constructor(message: string);
|
|
993
|
+
}
|
|
994
|
+
declare function generateWebhookSignature(payload: RawPayload, secret: string): string;
|
|
995
|
+
declare function verifyWebhookSignature(payload: RawPayload, signature: string, secret: string): boolean;
|
|
996
|
+
declare class WebhookHandler {
|
|
997
|
+
readonly secret: string;
|
|
998
|
+
constructor(secret: string);
|
|
999
|
+
generateSignature(payload: RawPayload): string;
|
|
1000
|
+
verifySignature(payload: RawPayload, signature: string): boolean;
|
|
1001
|
+
verifyHeaders(payload: RawPayload, headers: WebhookHeaders): void;
|
|
1002
|
+
parse(payload: RawPayload): WebhookPayload;
|
|
1003
|
+
verifyAndParse(payload: RawPayload, headers: WebhookHeaders): WebhookPayload;
|
|
1004
|
+
}
|
|
1005
|
+
declare function parseWebhook(payload: RawPayload, headers: WebhookHeaders, secret: string): WebhookPayload;
|
|
1006
|
+
declare const generate_webhook_signature: typeof generateWebhookSignature;
|
|
1007
|
+
declare const verify_webhook_signature: typeof verifyWebhookSignature;
|
|
1008
|
+
declare const parse_webhook: typeof parseWebhook;
|
|
1009
|
+
|
|
1010
|
+
declare const __version__ = "0.2.0";
|
|
1011
|
+
|
|
1012
|
+
export { type AddToGroupRequest, type AddToGroupResponse, type BuiltinVariableInfo, type BuiltinVariablesResponse, type BulkDeleteRequest, type BulkDeleteResponse, type ButtonReplyRequest, type CSVExportResponse, type CSVImportRequest, type CSVImportResponse, type CancelMessageResponse, type ContactCreateRequest, type ContactGroupCreateRequest, type ContactGroupItem, type ContactGroupListResponse, type ContactGroupMembersResponse, type ContactGroupUpdateRequest, type ContactItem, type ContactListResponse, type ContactResponse, type ContactSyncHistoryItem, type ContactSyncHistoryResponse, type ContactSyncRequest, type ContactSyncResponse, type ContactSyncStatusResponse, type ContactUpdateRequest, type CreateGroupRequest, type CreateGroupResponseModel, DEFAULT_BASE_URL, type DeviceWebhookEvent, EVENT_HEADER, EVENT_ID_HEADER, type GroupDetailResponse, type GroupInviteInfoResponseModel, type GroupInviteLinkResponseModel, type GroupListItem, type GroupListResponse, type GroupOperationResponseModel, type GroupParticipantItem, type GroupParticipantsResponse, type InteractiveButton, type InteractiveMessageResponse, type InteractiveRow, type InteractiveSection, type InviteInfoRequest, type JoinGroupRequest, type ListReplyRequest, type MediaDownloadResult, type MessageItem, type MessageListResponse, type MessageResponse, type MessageStatsResponse, type MessageWebhookEvent, type PublicDeviceWebhook, type PublicMessageWebhook, type PublicWebhookDeviceData, type PublicWebhookMessageData, type RemoveFromGroupRequest, type RetryMessageResponse, SIGNATURE_HEADER, type SendGroupMediaRequest, type SendGroupResponse, type SendGroupTextRequest, type SendMessageRequest, type SendMessageResponse, type SetGroupAnnounceRequest, type SetGroupEphemeralRequest, type SetGroupLockedRequest, type SetGroupNameRequest, type SetGroupPhotoRequest, type SetGroupTopicRequest, type TemplateCreateRequest, type TemplateItem, type TemplateListResponse, type TemplatePreviewRequest, type TemplatePreviewResponse, type TemplateResponse, type TemplateUpdateRequest, type UpdateParticipantsRequest, WazzapiAPIError, WazzapiClient, WazzapiError, WazzapiMediaError, type WazzapiModel, WazzapiWebhookError, WazzapiWebhookParseError, WazzapiWebhookVerificationError, type WebhookEvent, WebhookHandler, type WebhookPayload, __version__, _decryptWaMedia, _decrypt_wa_media, _mediaInfoBytes, _media_info_bytes, downloadMedia, download_media, generateWebhookSignature, generate_webhook_signature, index as models, parseAddToGroupResponse, parseBuiltinVariableInfo, parseBuiltinVariablesResponse, parseBulkDeleteResponse, parseCSVExportResponse, parseCSVImportResponse, parseCancelMessageResponse, parseContactGroupItem, parseContactGroupListResponse, parseContactGroupMembersResponse, parseContactItem, parseContactListResponse, parseContactResponse, parseContactSyncHistoryItem, parseContactSyncHistoryResponse, parseContactSyncResponse, parseContactSyncStatusResponse, parseContactSyncStatusResponseList, parseCreateGroupResponseModel, parseGroupDetailResponse, parseGroupInviteInfoResponseModel, parseGroupInviteLinkResponseModel, parseGroupListItem, parseGroupListResponse, parseGroupOperationResponseModel, parseGroupParticipantItem, parseGroupParticipantsResponse, parseInteractiveButton, parseInteractiveMessageResponse, parseInteractiveRow, parseInteractiveSection, parseMediaDownloadResult, parseMessageItem, parseMessageListResponse, parseMessageResponse, parseMessageStatsResponse, parsePublicDeviceWebhook, parsePublicMessageWebhook, parsePublicWebhookDeviceData, parsePublicWebhookMessageData, parseRetryMessageResponse, parseSendGroupResponse, parseSendMessageResponse, parseTemplateItem, parseTemplateListResponse, parseTemplatePreviewResponse, parseTemplateResponse, parseWebhook, parseWebhookPayload, parse_webhook, verifyWebhookSignature, verify_webhook_signature };
|