@saraivadev/n8n-nodes-uazapi 0.1.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.
Files changed (56) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +130 -0
  3. package/dist/credentials/UazapiApi.credentials.d.ts +10 -0
  4. package/dist/credentials/UazapiApi.credentials.js +56 -0
  5. package/dist/credentials/UazapiApi.credentials.js.map +1 -0
  6. package/dist/icons/uazapi.svg +4 -0
  7. package/dist/nodes/Uazapi/Uazapi.node.d.ts +4 -0
  8. package/dist/nodes/Uazapi/Uazapi.node.js +85 -0
  9. package/dist/nodes/Uazapi/Uazapi.node.js.map +1 -0
  10. package/dist/nodes/Uazapi/Uazapi.node.json +18 -0
  11. package/dist/nodes/Uazapi/descriptions/AdminDescription.d.ts +2 -0
  12. package/dist/nodes/Uazapi/descriptions/AdminDescription.js +206 -0
  13. package/dist/nodes/Uazapi/descriptions/AdminDescription.js.map +1 -0
  14. package/dist/nodes/Uazapi/descriptions/BusinessDescription.d.ts +2 -0
  15. package/dist/nodes/Uazapi/descriptions/BusinessDescription.js +274 -0
  16. package/dist/nodes/Uazapi/descriptions/BusinessDescription.js.map +1 -0
  17. package/dist/nodes/Uazapi/descriptions/ChatDescription.d.ts +2 -0
  18. package/dist/nodes/Uazapi/descriptions/ChatDescription.js +776 -0
  19. package/dist/nodes/Uazapi/descriptions/ChatDescription.js.map +1 -0
  20. package/dist/nodes/Uazapi/descriptions/ChatbotDescription.d.ts +2 -0
  21. package/dist/nodes/Uazapi/descriptions/ChatbotDescription.js +546 -0
  22. package/dist/nodes/Uazapi/descriptions/ChatbotDescription.js.map +1 -0
  23. package/dist/nodes/Uazapi/descriptions/ContactDescription.d.ts +2 -0
  24. package/dist/nodes/Uazapi/descriptions/ContactDescription.js +198 -0
  25. package/dist/nodes/Uazapi/descriptions/ContactDescription.js.map +1 -0
  26. package/dist/nodes/Uazapi/descriptions/CrmDescription.d.ts +2 -0
  27. package/dist/nodes/Uazapi/descriptions/CrmDescription.js +499 -0
  28. package/dist/nodes/Uazapi/descriptions/CrmDescription.js.map +1 -0
  29. package/dist/nodes/Uazapi/descriptions/GroupDescription.d.ts +2 -0
  30. package/dist/nodes/Uazapi/descriptions/GroupDescription.js +705 -0
  31. package/dist/nodes/Uazapi/descriptions/GroupDescription.js.map +1 -0
  32. package/dist/nodes/Uazapi/descriptions/InstanceDescription.d.ts +2 -0
  33. package/dist/nodes/Uazapi/descriptions/InstanceDescription.js +396 -0
  34. package/dist/nodes/Uazapi/descriptions/InstanceDescription.js.map +1 -0
  35. package/dist/nodes/Uazapi/descriptions/LabelDescription.d.ts +2 -0
  36. package/dist/nodes/Uazapi/descriptions/LabelDescription.js +120 -0
  37. package/dist/nodes/Uazapi/descriptions/LabelDescription.js.map +1 -0
  38. package/dist/nodes/Uazapi/descriptions/MessageDescription.d.ts +2 -0
  39. package/dist/nodes/Uazapi/descriptions/MessageDescription.js +1034 -0
  40. package/dist/nodes/Uazapi/descriptions/MessageDescription.js.map +1 -0
  41. package/dist/nodes/Uazapi/descriptions/ProfileDescription.d.ts +2 -0
  42. package/dist/nodes/Uazapi/descriptions/ProfileDescription.js +84 -0
  43. package/dist/nodes/Uazapi/descriptions/ProfileDescription.js.map +1 -0
  44. package/dist/nodes/Uazapi/descriptions/SenderDescription.d.ts +2 -0
  45. package/dist/nodes/Uazapi/descriptions/SenderDescription.js +627 -0
  46. package/dist/nodes/Uazapi/descriptions/SenderDescription.js.map +1 -0
  47. package/dist/nodes/Uazapi/descriptions/shared.d.ts +5 -0
  48. package/dist/nodes/Uazapi/descriptions/shared.js +95 -0
  49. package/dist/nodes/Uazapi/descriptions/shared.js.map +1 -0
  50. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.d.ts +13 -0
  51. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.js +362 -0
  52. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.js.map +1 -0
  53. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.json +18 -0
  54. package/dist/package.json +50 -0
  55. package/dist/tsconfig.tsbuildinfo +1 -0
  56. package/package.json +49 -0
@@ -0,0 +1,1034 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messageDescription = void 0;
4
+ const shared_1 = require("./shared");
5
+ exports.messageDescription = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: { show: { resource: ['message'] } },
12
+ default: 'sendText',
13
+ options: [
14
+ {
15
+ name: 'Delete',
16
+ value: 'delete',
17
+ action: 'Delete a message',
18
+ description: 'Delete a previously sent message',
19
+ routing: { request: { method: 'POST', url: '/message/delete' } },
20
+ },
21
+ {
22
+ name: 'Download Media',
23
+ value: 'download',
24
+ action: 'Download media from a message',
25
+ description: 'Download or transcribe media attached to a message',
26
+ routing: { request: { method: 'POST', url: '/message/download' } },
27
+ },
28
+ {
29
+ name: 'Edit',
30
+ value: 'edit',
31
+ action: 'Edit a message',
32
+ description: 'Edit the text of a previously sent message',
33
+ routing: { request: { method: 'POST', url: '/message/edit' } },
34
+ },
35
+ {
36
+ name: 'Find',
37
+ value: 'find',
38
+ action: 'Find messages',
39
+ description: 'Search stored messages by filters',
40
+ routing: { request: { method: 'POST', url: '/message/find' } },
41
+ },
42
+ {
43
+ name: 'Mark As Read',
44
+ value: 'markAsRead',
45
+ action: 'Mark messages as read',
46
+ description: 'Mark one or more messages as read',
47
+ routing: { request: { method: 'POST', url: '/message/markread' } },
48
+ },
49
+ {
50
+ name: 'React',
51
+ value: 'react',
52
+ action: 'React to a message',
53
+ description: 'Send an emoji reaction to a message',
54
+ routing: { request: { method: 'POST', url: '/message/react' } },
55
+ },
56
+ {
57
+ name: 'Send Carousel',
58
+ value: 'sendCarousel',
59
+ action: 'Send a carousel message',
60
+ description: 'Send a carousel with multiple cards',
61
+ routing: { request: { method: 'POST', url: '/send/carousel' } },
62
+ },
63
+ {
64
+ name: 'Send Contact',
65
+ value: 'sendContact',
66
+ action: 'Send a contact card',
67
+ description: 'Send a vCard contact',
68
+ routing: { request: { method: 'POST', url: '/send/contact' } },
69
+ },
70
+ {
71
+ name: 'Send Location',
72
+ value: 'sendLocation',
73
+ action: 'Send a location',
74
+ description: 'Send a geographic location',
75
+ routing: { request: { method: 'POST', url: '/send/location' } },
76
+ },
77
+ {
78
+ name: 'Send Location Request',
79
+ value: 'sendLocationRequest',
80
+ action: 'Send a location request button',
81
+ description: 'Send a button that requests the recipient to share their location',
82
+ routing: { request: { method: 'POST', url: '/send/location-button' } },
83
+ },
84
+ {
85
+ name: 'Send Media',
86
+ value: 'sendMedia',
87
+ action: 'Send a media message',
88
+ description: 'Send an image, video, document, audio, sticker, or voice note',
89
+ routing: { request: { method: 'POST', url: '/send/media' } },
90
+ },
91
+ {
92
+ name: 'Send Menu',
93
+ value: 'sendMenu',
94
+ action: 'Send a menu message',
95
+ description: 'Send an interactive menu (button, list, poll, or carousel)',
96
+ routing: { request: { method: 'POST', url: '/send/menu' } },
97
+ },
98
+ {
99
+ name: 'Send Payment Request',
100
+ value: 'sendPaymentRequest',
101
+ action: 'Send a payment request',
102
+ description: 'Send a PIX or boleto payment request',
103
+ routing: { request: { method: 'POST', url: '/send/request-payment' } },
104
+ },
105
+ {
106
+ name: 'Send PIX Button',
107
+ value: 'sendPixButton',
108
+ action: 'Send a PIX button',
109
+ description: 'Send a quick PIX key button',
110
+ routing: { request: { method: 'POST', url: '/send/pix-button' } },
111
+ },
112
+ {
113
+ name: 'Send Presence In Chat',
114
+ value: 'sendPresenceInChat',
115
+ action: 'Send presence in chat',
116
+ description: 'Send typing, recording, or paused presence in a chat',
117
+ routing: { request: { method: 'POST', url: '/message/presence' } },
118
+ },
119
+ {
120
+ name: 'Send Status',
121
+ value: 'sendStatus',
122
+ action: 'Send a status update',
123
+ description: 'Send a status (story) update',
124
+ routing: { request: { method: 'POST', url: '/send/status' } },
125
+ },
126
+ {
127
+ name: 'Send Text',
128
+ value: 'sendText',
129
+ action: 'Send a text message',
130
+ description: 'Send a plain text message',
131
+ routing: { request: { method: 'POST', url: '/send/text' } },
132
+ },
133
+ ],
134
+ },
135
+ {
136
+ displayName: 'Number',
137
+ name: 'number',
138
+ type: 'string',
139
+ required: true,
140
+ default: '',
141
+ placeholder: '5511999999999',
142
+ description: 'Recipient phone number in E.164 format (or group JID)',
143
+ displayOptions: { show: { resource: ['message'], operation: ['sendText'] } },
144
+ routing: { send: { type: 'body', property: 'number' } },
145
+ },
146
+ {
147
+ displayName: 'Text',
148
+ name: 'text',
149
+ type: 'string',
150
+ required: true,
151
+ default: '',
152
+ typeOptions: { rows: 4 },
153
+ description: 'Message body to send',
154
+ displayOptions: { show: { resource: ['message'], operation: ['sendText'] } },
155
+ routing: { send: { type: 'body', property: 'text' } },
156
+ },
157
+ {
158
+ ...shared_1.sendAdditionalFields,
159
+ displayOptions: { show: { resource: ['message'], operation: ['sendText'] } },
160
+ },
161
+ {
162
+ displayName: 'Link Preview Options',
163
+ name: 'linkPreviewOptions',
164
+ type: 'collection',
165
+ placeholder: 'Add Option',
166
+ default: {},
167
+ displayOptions: { show: { resource: ['message'], operation: ['sendText'] } },
168
+ options: [
169
+ {
170
+ displayName: 'Enable Link Preview',
171
+ name: 'linkPreview',
172
+ type: 'boolean',
173
+ default: false,
174
+ description: 'Whether to generate a link preview for URLs in the text',
175
+ routing: { send: { type: 'body', property: 'linkPreview' } },
176
+ },
177
+ {
178
+ displayName: 'Link Preview Description',
179
+ name: 'linkPreviewDescription',
180
+ type: 'string',
181
+ default: '',
182
+ description: 'Custom description shown in the link preview',
183
+ routing: { send: { type: 'body', property: 'linkPreviewDescription' } },
184
+ },
185
+ {
186
+ displayName: 'Link Preview Image URL',
187
+ name: 'linkPreviewImageURL',
188
+ type: 'string',
189
+ default: '',
190
+ description: 'Custom image URL shown in the link preview',
191
+ routing: { send: { type: 'body', property: 'linkPreviewImageURL' } },
192
+ },
193
+ {
194
+ displayName: 'Link Preview Large Thumb',
195
+ name: 'linkPreviewLargeThumb',
196
+ type: 'boolean',
197
+ default: false,
198
+ description: 'Whether to render the preview thumbnail as large',
199
+ routing: { send: { type: 'body', property: 'linkPreviewLargeThumb' } },
200
+ },
201
+ {
202
+ displayName: 'Link Preview Title',
203
+ name: 'linkPreviewTitle',
204
+ type: 'string',
205
+ default: '',
206
+ description: 'Custom title shown in the link preview',
207
+ routing: { send: { type: 'body', property: 'linkPreviewTitle' } },
208
+ },
209
+ ],
210
+ },
211
+ {
212
+ displayName: 'Number',
213
+ name: 'number',
214
+ type: 'string',
215
+ required: true,
216
+ default: '',
217
+ placeholder: '5511999999999',
218
+ description: 'Recipient phone number in E.164 format (or group JID)',
219
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
220
+ routing: { send: { type: 'body', property: 'number' } },
221
+ },
222
+ {
223
+ displayName: 'Media Type',
224
+ name: 'mediaType',
225
+ type: 'options',
226
+ required: true,
227
+ default: 'image',
228
+ description: 'Type of media to send',
229
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
230
+ options: [
231
+ { name: 'Audio', value: 'audio' },
232
+ { name: 'Document', value: 'document' },
233
+ { name: 'Image', value: 'image' },
234
+ { name: 'My Audio', value: 'myaudio' },
235
+ { name: 'PTT (Voice Note)', value: 'ptt' },
236
+ { name: 'PTV (Video Note)', value: 'ptv' },
237
+ { name: 'Sticker', value: 'sticker' },
238
+ { name: 'Video', value: 'video' },
239
+ ],
240
+ routing: { send: { type: 'body', property: 'type' } },
241
+ },
242
+ {
243
+ displayName: 'File',
244
+ name: 'file',
245
+ type: 'string',
246
+ required: true,
247
+ default: '',
248
+ description: 'URL or base64 string of the media file',
249
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
250
+ routing: { send: { type: 'body', property: 'file' } },
251
+ },
252
+ {
253
+ displayName: 'Caption Text',
254
+ name: 'text',
255
+ type: 'string',
256
+ default: '',
257
+ typeOptions: { rows: 3 },
258
+ description: 'Optional caption to send with the media',
259
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
260
+ routing: { send: { type: 'body', property: 'text' } },
261
+ },
262
+ {
263
+ displayName: 'Document Name',
264
+ name: 'docName',
265
+ type: 'string',
266
+ default: '',
267
+ description: 'File name to display when sending a document',
268
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
269
+ routing: { send: { type: 'body', property: 'docName' } },
270
+ },
271
+ {
272
+ displayName: 'Mimetype',
273
+ name: 'mimetype',
274
+ type: 'string',
275
+ default: '',
276
+ description: 'MIME type override (e.g. application/pdf)',
277
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
278
+ routing: { send: { type: 'body', property: 'mimetype' } },
279
+ },
280
+ {
281
+ ...shared_1.sendAdditionalFields,
282
+ displayOptions: { show: { resource: ['message'], operation: ['sendMedia'] } },
283
+ },
284
+ {
285
+ displayName: 'Number',
286
+ name: 'number',
287
+ type: 'string',
288
+ required: true,
289
+ default: '',
290
+ description: 'Recipient phone number in E.164 format (or group JID)',
291
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
292
+ routing: { send: { type: 'body', property: 'number' } },
293
+ },
294
+ {
295
+ displayName: 'Full Name',
296
+ name: 'fullName',
297
+ type: 'string',
298
+ required: true,
299
+ default: '',
300
+ description: 'Full name of the contact',
301
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
302
+ routing: { send: { type: 'body', property: 'fullName' } },
303
+ },
304
+ {
305
+ displayName: 'Phone Number',
306
+ name: 'phoneNumber',
307
+ type: 'string',
308
+ required: true,
309
+ default: '',
310
+ description: 'Phone number of the contact in E.164 format',
311
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
312
+ routing: { send: { type: 'body', property: 'phoneNumber' } },
313
+ },
314
+ {
315
+ displayName: 'Organization',
316
+ name: 'organization',
317
+ type: 'string',
318
+ default: '',
319
+ description: 'Organization or company name',
320
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
321
+ routing: { send: { type: 'body', property: 'organization' } },
322
+ },
323
+ {
324
+ displayName: 'Email',
325
+ name: 'email',
326
+ type: 'string',
327
+ placeholder: 'name@email.com',
328
+ default: '',
329
+ description: 'Email address of the contact',
330
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
331
+ routing: { send: { type: 'body', property: 'email' } },
332
+ },
333
+ {
334
+ displayName: 'URL',
335
+ name: 'url',
336
+ type: 'string',
337
+ default: '',
338
+ description: 'Website URL of the contact',
339
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
340
+ routing: { send: { type: 'body', property: 'url' } },
341
+ },
342
+ {
343
+ ...shared_1.sendAdditionalFields,
344
+ displayOptions: { show: { resource: ['message'], operation: ['sendContact'] } },
345
+ },
346
+ {
347
+ displayName: 'Number',
348
+ name: 'number',
349
+ type: 'string',
350
+ required: true,
351
+ default: '',
352
+ description: 'Recipient phone number in E.164 format (or group JID)',
353
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocation'] } },
354
+ routing: { send: { type: 'body', property: 'number' } },
355
+ },
356
+ {
357
+ displayName: 'Latitude',
358
+ name: 'latitude',
359
+ type: 'number',
360
+ required: true,
361
+ default: 0,
362
+ description: 'Latitude in decimal degrees',
363
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocation'] } },
364
+ routing: { send: { type: 'body', property: 'latitude' } },
365
+ },
366
+ {
367
+ displayName: 'Longitude',
368
+ name: 'longitude',
369
+ type: 'number',
370
+ required: true,
371
+ default: 0,
372
+ description: 'Longitude in decimal degrees',
373
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocation'] } },
374
+ routing: { send: { type: 'body', property: 'longitude' } },
375
+ },
376
+ {
377
+ displayName: 'Name',
378
+ name: 'name',
379
+ type: 'string',
380
+ default: '',
381
+ description: 'Name of the location',
382
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocation'] } },
383
+ routing: { send: { type: 'body', property: 'name' } },
384
+ },
385
+ {
386
+ displayName: 'Address',
387
+ name: 'address',
388
+ type: 'string',
389
+ default: '',
390
+ description: 'Street address of the location',
391
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocation'] } },
392
+ routing: { send: { type: 'body', property: 'address' } },
393
+ },
394
+ {
395
+ ...shared_1.sendAdditionalFields,
396
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocation'] } },
397
+ },
398
+ {
399
+ displayName: 'Number',
400
+ name: 'number',
401
+ type: 'string',
402
+ required: true,
403
+ default: '',
404
+ description: 'Recipient phone number in E.164 format (or group JID)',
405
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
406
+ routing: { send: { type: 'body', property: 'number' } },
407
+ },
408
+ {
409
+ displayName: 'Menu Type',
410
+ name: 'menuType',
411
+ type: 'options',
412
+ required: true,
413
+ default: 'button',
414
+ description: 'Type of interactive menu',
415
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
416
+ options: [
417
+ { name: 'Button', value: 'button' },
418
+ { name: 'Carousel', value: 'carousel' },
419
+ { name: 'List', value: 'list' },
420
+ { name: 'Poll', value: 'poll' },
421
+ ],
422
+ routing: { send: { type: 'body', property: 'menuType' } },
423
+ },
424
+ {
425
+ displayName: 'Text',
426
+ name: 'text',
427
+ type: 'string',
428
+ required: true,
429
+ default: '',
430
+ typeOptions: { rows: 4 },
431
+ description: 'Main text/body of the menu message',
432
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
433
+ routing: { send: { type: 'body', property: 'text' } },
434
+ },
435
+ {
436
+ displayName: 'Choices',
437
+ name: 'choices',
438
+ type: 'string',
439
+ required: true,
440
+ default: [],
441
+ typeOptions: { multipleValues: true },
442
+ description: 'List of choices for the menu (buttons, list items, poll options, or card titles)',
443
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
444
+ routing: { send: { type: 'body', property: 'choices' } },
445
+ },
446
+ {
447
+ displayName: 'Footer Text',
448
+ name: 'footerText',
449
+ type: 'string',
450
+ default: '',
451
+ description: 'Footer text shown below the menu',
452
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
453
+ routing: { send: { type: 'body', property: 'footerText' } },
454
+ },
455
+ {
456
+ displayName: 'List Button',
457
+ name: 'listButton',
458
+ type: 'string',
459
+ default: '',
460
+ description: 'Label for the button that opens the list (list menus only)',
461
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
462
+ routing: { send: { type: 'body', property: 'listButton' } },
463
+ },
464
+ {
465
+ displayName: 'Selectable Count',
466
+ name: 'selectableCount',
467
+ type: 'number',
468
+ default: 0,
469
+ description: 'Number of options the user can pick (poll menus)',
470
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
471
+ routing: { send: { type: 'body', property: 'selectableCount' } },
472
+ },
473
+ {
474
+ displayName: 'Image Button',
475
+ name: 'imageButton',
476
+ type: 'string',
477
+ default: '',
478
+ description: 'URL of an image to display above the button menu',
479
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
480
+ routing: { send: { type: 'body', property: 'imageButton' } },
481
+ },
482
+ {
483
+ ...shared_1.sendAdditionalFields,
484
+ displayOptions: { show: { resource: ['message'], operation: ['sendMenu'] } },
485
+ },
486
+ {
487
+ displayName: 'Number',
488
+ name: 'number',
489
+ type: 'string',
490
+ required: true,
491
+ default: '',
492
+ description: 'Recipient phone number in E.164 format (or group JID)',
493
+ displayOptions: { show: { resource: ['message'], operation: ['sendCarousel'] } },
494
+ routing: { send: { type: 'body', property: 'number' } },
495
+ },
496
+ {
497
+ displayName: 'Text',
498
+ name: 'text',
499
+ type: 'string',
500
+ required: true,
501
+ default: '',
502
+ typeOptions: { rows: 3 },
503
+ description: 'Header text shown above the carousel',
504
+ displayOptions: { show: { resource: ['message'], operation: ['sendCarousel'] } },
505
+ routing: { send: { type: 'body', property: 'text' } },
506
+ },
507
+ {
508
+ displayName: 'Cards',
509
+ name: 'carousel',
510
+ type: 'fixedCollection',
511
+ placeholder: 'Add Card',
512
+ default: {},
513
+ typeOptions: { multipleValues: true },
514
+ displayOptions: { show: { resource: ['message'], operation: ['sendCarousel'] } },
515
+ routing: { send: { type: 'body', property: 'carousel' } },
516
+ options: [
517
+ {
518
+ name: 'cards',
519
+ displayName: 'Card',
520
+ values: [
521
+ {
522
+ displayName: 'Text',
523
+ name: 'text',
524
+ type: 'string',
525
+ default: '',
526
+ typeOptions: { rows: 2 },
527
+ description: 'Body text of the card',
528
+ },
529
+ {
530
+ displayName: 'File',
531
+ name: 'file',
532
+ type: 'string',
533
+ default: '',
534
+ description: 'URL or base64 of the card image',
535
+ },
536
+ {
537
+ displayName: 'Buttons',
538
+ name: 'buttons',
539
+ type: 'string',
540
+ default: [],
541
+ typeOptions: { multipleValues: true },
542
+ description: 'Button labels for the card',
543
+ },
544
+ ],
545
+ },
546
+ ],
547
+ },
548
+ {
549
+ ...shared_1.sendAdditionalFields,
550
+ displayOptions: { show: { resource: ['message'], operation: ['sendCarousel'] } },
551
+ },
552
+ {
553
+ displayName: 'Number',
554
+ name: 'number',
555
+ type: 'string',
556
+ required: true,
557
+ default: '',
558
+ description: 'Recipient phone number in E.164 format (or group JID)',
559
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocationRequest'] } },
560
+ routing: { send: { type: 'body', property: 'number' } },
561
+ },
562
+ {
563
+ displayName: 'Text',
564
+ name: 'text',
565
+ type: 'string',
566
+ required: true,
567
+ default: '',
568
+ typeOptions: { rows: 3 },
569
+ description: 'Message body shown with the location-request button',
570
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocationRequest'] } },
571
+ routing: { send: { type: 'body', property: 'text' } },
572
+ },
573
+ {
574
+ ...shared_1.sendAdditionalFields,
575
+ displayOptions: { show: { resource: ['message'], operation: ['sendLocationRequest'] } },
576
+ },
577
+ {
578
+ displayName: 'Number',
579
+ name: 'number',
580
+ type: 'string',
581
+ required: true,
582
+ default: '',
583
+ description: 'Recipient phone number in E.164 format (or group JID)',
584
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
585
+ routing: { send: { type: 'body', property: 'number' } },
586
+ },
587
+ {
588
+ displayName: 'Amount',
589
+ name: 'amount',
590
+ type: 'number',
591
+ required: true,
592
+ default: 0,
593
+ description: 'Payment amount in the local currency',
594
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
595
+ routing: { send: { type: 'body', property: 'amount' } },
596
+ },
597
+ {
598
+ displayName: 'PIX Key',
599
+ name: 'pixKey',
600
+ type: 'string',
601
+ default: '',
602
+ description: 'PIX key used for the payment',
603
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
604
+ routing: { send: { type: 'body', property: 'pixKey' } },
605
+ },
606
+ {
607
+ displayName: 'PIX Type',
608
+ name: 'pixType',
609
+ type: 'options',
610
+ default: 'cpf',
611
+ description: 'Type of the PIX key',
612
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
613
+ options: [
614
+ { name: 'CNPJ', value: 'cnpj' },
615
+ { name: 'CPF', value: 'cpf' },
616
+ { name: 'Email', value: 'email' },
617
+ { name: 'EVP (Random)', value: 'evp' },
618
+ { name: 'Phone', value: 'phone' },
619
+ ],
620
+ routing: { send: { type: 'body', property: 'pixType' } },
621
+ },
622
+ {
623
+ displayName: 'PIX Name',
624
+ name: 'pixName',
625
+ type: 'string',
626
+ default: '',
627
+ description: 'Account holder name shown on the payment request',
628
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
629
+ routing: { send: { type: 'body', property: 'pixName' } },
630
+ },
631
+ {
632
+ displayName: 'Title',
633
+ name: 'title',
634
+ type: 'string',
635
+ default: '',
636
+ description: 'Title shown on the payment request',
637
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
638
+ routing: { send: { type: 'body', property: 'title' } },
639
+ },
640
+ {
641
+ displayName: 'Text',
642
+ name: 'text',
643
+ type: 'string',
644
+ default: '',
645
+ typeOptions: { rows: 3 },
646
+ description: 'Description shown with the payment request',
647
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
648
+ routing: { send: { type: 'body', property: 'text' } },
649
+ },
650
+ {
651
+ displayName: 'Footer',
652
+ name: 'footer',
653
+ type: 'string',
654
+ default: '',
655
+ description: 'Footer text shown on the payment request',
656
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
657
+ routing: { send: { type: 'body', property: 'footer' } },
658
+ },
659
+ {
660
+ displayName: 'Payment Link',
661
+ name: 'paymentLink',
662
+ type: 'string',
663
+ default: '',
664
+ description: 'External payment link to attach',
665
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
666
+ routing: { send: { type: 'body', property: 'paymentLink' } },
667
+ },
668
+ {
669
+ displayName: 'Boleto Code',
670
+ name: 'boletoCode',
671
+ type: 'string',
672
+ default: '',
673
+ description: 'Boleto digitable line / barcode',
674
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
675
+ routing: { send: { type: 'body', property: 'boletoCode' } },
676
+ },
677
+ {
678
+ displayName: 'File URL',
679
+ name: 'fileUrl',
680
+ type: 'string',
681
+ default: '',
682
+ description: 'URL of a related file (PDF of the boleto, etc.)',
683
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
684
+ routing: { send: { type: 'body', property: 'fileUrl' } },
685
+ },
686
+ {
687
+ ...shared_1.sendAdditionalFields,
688
+ displayOptions: { show: { resource: ['message'], operation: ['sendPaymentRequest'] } },
689
+ },
690
+ {
691
+ displayName: 'Number',
692
+ name: 'number',
693
+ type: 'string',
694
+ required: true,
695
+ default: '',
696
+ description: 'Recipient phone number in E.164 format (or group JID)',
697
+ displayOptions: { show: { resource: ['message'], operation: ['sendPixButton'] } },
698
+ routing: { send: { type: 'body', property: 'number' } },
699
+ },
700
+ {
701
+ displayName: 'PIX Type',
702
+ name: 'pixType',
703
+ type: 'options',
704
+ required: true,
705
+ default: 'cpf',
706
+ description: 'Type of the PIX key',
707
+ displayOptions: { show: { resource: ['message'], operation: ['sendPixButton'] } },
708
+ options: [
709
+ { name: 'CNPJ', value: 'cnpj' },
710
+ { name: 'CPF', value: 'cpf' },
711
+ { name: 'Email', value: 'email' },
712
+ { name: 'EVP (Random)', value: 'evp' },
713
+ { name: 'Phone', value: 'phone' },
714
+ ],
715
+ routing: { send: { type: 'body', property: 'pixType' } },
716
+ },
717
+ {
718
+ displayName: 'PIX Key',
719
+ name: 'pixKey',
720
+ type: 'string',
721
+ required: true,
722
+ default: '',
723
+ description: 'PIX key value',
724
+ displayOptions: { show: { resource: ['message'], operation: ['sendPixButton'] } },
725
+ routing: { send: { type: 'body', property: 'pixKey' } },
726
+ },
727
+ {
728
+ displayName: 'PIX Name',
729
+ name: 'pixName',
730
+ type: 'string',
731
+ default: '',
732
+ description: 'Account holder name shown with the PIX button',
733
+ displayOptions: { show: { resource: ['message'], operation: ['sendPixButton'] } },
734
+ routing: { send: { type: 'body', property: 'pixName' } },
735
+ },
736
+ {
737
+ ...shared_1.sendAdditionalFields,
738
+ displayOptions: { show: { resource: ['message'], operation: ['sendPixButton'] } },
739
+ },
740
+ {
741
+ displayName: 'Status Type',
742
+ name: 'statusType',
743
+ type: 'options',
744
+ required: true,
745
+ default: 'text',
746
+ description: 'Type of status to publish',
747
+ displayOptions: { show: { resource: ['message'], operation: ['sendStatus'] } },
748
+ options: [
749
+ { name: 'Audio', value: 'audio' },
750
+ { name: 'Image', value: 'image' },
751
+ { name: 'Text', value: 'text' },
752
+ { name: 'Video', value: 'video' },
753
+ ],
754
+ routing: { send: { type: 'body', property: 'type' } },
755
+ },
756
+ {
757
+ displayName: 'Text',
758
+ name: 'text',
759
+ type: 'string',
760
+ default: '',
761
+ typeOptions: { rows: 3 },
762
+ description: 'Text content of the status',
763
+ displayOptions: { show: { resource: ['message'], operation: ['sendStatus'] } },
764
+ routing: { send: { type: 'body', property: 'text' } },
765
+ },
766
+ {
767
+ displayName: 'File',
768
+ name: 'file',
769
+ type: 'string',
770
+ default: '',
771
+ description: 'URL or base64 of the media file (for image/video/audio statuses)',
772
+ displayOptions: { show: { resource: ['message'], operation: ['sendStatus'] } },
773
+ routing: { send: { type: 'body', property: 'file' } },
774
+ },
775
+ {
776
+ displayName: 'Background Color',
777
+ name: 'background_color',
778
+ type: 'color',
779
+ default: '',
780
+ description: 'Background color (hex) for text statuses',
781
+ displayOptions: { show: { resource: ['message'], operation: ['sendStatus'] } },
782
+ routing: { send: { type: 'body', property: 'background_color' } },
783
+ },
784
+ {
785
+ displayName: 'Font',
786
+ name: 'font',
787
+ type: 'number',
788
+ default: 0,
789
+ description: 'Font index for text statuses',
790
+ displayOptions: { show: { resource: ['message'], operation: ['sendStatus'] } },
791
+ routing: { send: { type: 'body', property: 'font' } },
792
+ },
793
+ {
794
+ ...shared_1.sendAdditionalFields,
795
+ displayOptions: { show: { resource: ['message'], operation: ['sendStatus'] } },
796
+ },
797
+ {
798
+ displayName: 'Number',
799
+ name: 'number',
800
+ type: 'string',
801
+ required: true,
802
+ default: '',
803
+ description: 'Chat phone number in E.164 format (or group JID)',
804
+ displayOptions: { show: { resource: ['message'], operation: ['sendPresenceInChat'] } },
805
+ routing: { send: { type: 'body', property: 'number' } },
806
+ },
807
+ {
808
+ displayName: 'Presence',
809
+ name: 'presence',
810
+ type: 'options',
811
+ required: true,
812
+ default: 'composing',
813
+ description: 'Presence state to broadcast in the chat',
814
+ displayOptions: { show: { resource: ['message'], operation: ['sendPresenceInChat'] } },
815
+ options: [
816
+ { name: 'Composing (Typing)', value: 'composing' },
817
+ { name: 'Paused', value: 'paused' },
818
+ { name: 'Recording', value: 'recording' },
819
+ ],
820
+ routing: { send: { type: 'body', property: 'presence' } },
821
+ },
822
+ {
823
+ displayName: 'Delay (Ms)',
824
+ name: 'delay',
825
+ type: 'number',
826
+ default: 0,
827
+ description: 'Duration to keep the presence active, in milliseconds',
828
+ displayOptions: { show: { resource: ['message'], operation: ['sendPresenceInChat'] } },
829
+ routing: { send: { type: 'body', property: 'delay' } },
830
+ },
831
+ {
832
+ displayName: 'Number',
833
+ name: 'number',
834
+ type: 'string',
835
+ required: true,
836
+ default: '',
837
+ description: 'Chat phone number in E.164 format (or group JID)',
838
+ displayOptions: { show: { resource: ['message'], operation: ['react'] } },
839
+ routing: { send: { type: 'body', property: 'number' } },
840
+ },
841
+ {
842
+ displayName: 'Message ID',
843
+ name: 'id',
844
+ type: 'string',
845
+ required: true,
846
+ default: '',
847
+ description: 'ID of the message to react to',
848
+ displayOptions: { show: { resource: ['message'], operation: ['react'] } },
849
+ routing: { send: { type: 'body', property: 'id' } },
850
+ },
851
+ {
852
+ displayName: 'Text',
853
+ name: 'text',
854
+ type: 'string',
855
+ required: true,
856
+ default: '',
857
+ description: 'Emoji used as the reaction (empty string removes the reaction)',
858
+ displayOptions: { show: { resource: ['message'], operation: ['react'] } },
859
+ routing: { send: { type: 'body', property: 'text' } },
860
+ },
861
+ {
862
+ displayName: 'Message ID',
863
+ name: 'id',
864
+ type: 'string',
865
+ required: true,
866
+ default: '',
867
+ description: 'ID of the message to edit',
868
+ displayOptions: { show: { resource: ['message'], operation: ['edit'] } },
869
+ routing: { send: { type: 'body', property: 'id' } },
870
+ },
871
+ {
872
+ displayName: 'Text',
873
+ name: 'text',
874
+ type: 'string',
875
+ required: true,
876
+ default: '',
877
+ typeOptions: { rows: 4 },
878
+ description: 'New text content of the message',
879
+ displayOptions: { show: { resource: ['message'], operation: ['edit'] } },
880
+ routing: { send: { type: 'body', property: 'text' } },
881
+ },
882
+ {
883
+ displayName: 'Message ID',
884
+ name: 'id',
885
+ type: 'string',
886
+ required: true,
887
+ default: '',
888
+ description: 'ID of the message to delete',
889
+ displayOptions: { show: { resource: ['message'], operation: ['delete'] } },
890
+ routing: { send: { type: 'body', property: 'id' } },
891
+ },
892
+ {
893
+ displayName: 'Message IDs',
894
+ name: 'id',
895
+ type: 'string',
896
+ required: true,
897
+ default: [],
898
+ typeOptions: { multipleValues: true },
899
+ description: 'List of message IDs to mark as read',
900
+ displayOptions: { show: { resource: ['message'], operation: ['markAsRead'] } },
901
+ routing: { send: { type: 'body', property: 'id' } },
902
+ },
903
+ {
904
+ displayName: 'Filters',
905
+ name: 'filters',
906
+ type: 'collection',
907
+ placeholder: 'Add Filter',
908
+ default: {},
909
+ displayOptions: { show: { resource: ['message'], operation: ['find'] } },
910
+ options: [
911
+ {
912
+ displayName: 'Chat ID',
913
+ name: 'chatid',
914
+ type: 'string',
915
+ default: '',
916
+ description: 'Restrict search to a specific chat',
917
+ routing: { send: { type: 'body', property: 'chatid' } },
918
+ },
919
+ {
920
+ displayName: 'Limit',
921
+ name: 'limit',
922
+ type: 'number',
923
+ typeOptions: {
924
+ minValue: 1,
925
+ },
926
+ default: 50,
927
+ description: 'Max number of results to return',
928
+ routing: { send: { type: 'body', property: 'limit' } },
929
+ },
930
+ {
931
+ displayName: 'Message ID',
932
+ name: 'id',
933
+ type: 'string',
934
+ default: '',
935
+ description: 'Specific message ID to look up',
936
+ routing: { send: { type: 'body', property: 'id' } },
937
+ },
938
+ {
939
+ displayName: 'Offset',
940
+ name: 'offset',
941
+ type: 'number',
942
+ default: 0,
943
+ description: 'Result offset for pagination',
944
+ routing: { send: { type: 'body', property: 'offset' } },
945
+ },
946
+ {
947
+ displayName: 'Track ID',
948
+ name: 'track_id',
949
+ type: 'string',
950
+ default: '',
951
+ description: 'Filter by tracking ID',
952
+ routing: { send: { type: 'body', property: 'track_id' } },
953
+ },
954
+ {
955
+ displayName: 'Track Source',
956
+ name: 'track_source',
957
+ type: 'string',
958
+ default: '',
959
+ description: 'Filter by tracking source',
960
+ routing: { send: { type: 'body', property: 'track_source' } },
961
+ },
962
+ ],
963
+ },
964
+ {
965
+ displayName: 'Message ID',
966
+ name: 'id',
967
+ type: 'string',
968
+ required: true,
969
+ default: '',
970
+ description: 'ID of the message whose media should be downloaded',
971
+ displayOptions: { show: { resource: ['message'], operation: ['download'] } },
972
+ routing: { send: { type: 'body', property: 'id' } },
973
+ },
974
+ {
975
+ displayName: 'Options',
976
+ name: 'options',
977
+ type: 'collection',
978
+ placeholder: 'Add Option',
979
+ default: {},
980
+ displayOptions: { show: { resource: ['message'], operation: ['download'] } },
981
+ options: [
982
+ {
983
+ displayName: 'Download Quoted',
984
+ name: 'download_quoted',
985
+ type: 'boolean',
986
+ default: false,
987
+ description: 'Whether to download the media from a quoted message instead',
988
+ routing: { send: { type: 'body', property: 'download_quoted' } },
989
+ },
990
+ {
991
+ displayName: 'Generate MP3',
992
+ name: 'generate_mp3',
993
+ type: 'boolean',
994
+ default: false,
995
+ description: 'Whether to convert audio to MP3 in the response',
996
+ routing: { send: { type: 'body', property: 'generate_mp3' } },
997
+ },
998
+ {
999
+ displayName: 'OpenAI API Key',
1000
+ name: 'openai_apikey',
1001
+ type: 'string',
1002
+ typeOptions: { password: true },
1003
+ default: '',
1004
+ description: 'OpenAI API key used when transcribing audio',
1005
+ routing: { send: { type: 'body', property: 'openai_apikey' } },
1006
+ },
1007
+ {
1008
+ displayName: 'Return Base64',
1009
+ name: 'return_base64',
1010
+ type: 'boolean',
1011
+ default: false,
1012
+ description: 'Whether to return the file as a base64 string',
1013
+ routing: { send: { type: 'body', property: 'return_base64' } },
1014
+ },
1015
+ {
1016
+ displayName: 'Return Link',
1017
+ name: 'return_link',
1018
+ type: 'boolean',
1019
+ default: false,
1020
+ description: 'Whether to return a hosted link to the file',
1021
+ routing: { send: { type: 'body', property: 'return_link' } },
1022
+ },
1023
+ {
1024
+ displayName: 'Transcribe',
1025
+ name: 'transcribe',
1026
+ type: 'boolean',
1027
+ default: false,
1028
+ description: 'Whether to transcribe audio content using OpenAI',
1029
+ routing: { send: { type: 'body', property: 'transcribe' } },
1030
+ },
1031
+ ],
1032
+ },
1033
+ ];
1034
+ //# sourceMappingURL=MessageDescription.js.map