jotae-mcp 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -139,11 +139,12 @@ const TOOLS = [
|
|
|
139
139
|
channel: { type: 'string', enum: ['whatsapp', 'email'] },
|
|
140
140
|
trigger: { type: 'string', enum: ['registration', 'event_start', 'event_end', 'attended', 'no_show', 'watched_pitch', 'clicked_cta', 'purchased', 'scheduled'] },
|
|
141
141
|
delay_minutes: { type: 'number', description: 'Minutos após o gatilho (negativo = antes)' },
|
|
142
|
-
template_id: { type: 'string', description: 'ID do template (WhatsApp ou e-mail — mesmo campo para ambos
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
template_id: { type: 'string', description: 'ID do template (WhatsApp ou e-mail — mesmo campo para ambos)' },
|
|
143
|
+
destination: { type: 'string', enum: ['individual', 'group'], description: 'WhatsApp: individual (padrão) ou group' },
|
|
144
|
+
group_id: { type: 'string', description: 'ID do grupo WhatsApp (quando destination=group)' },
|
|
145
|
+
scheduled_at: { type: 'string', description: 'ISO 8601 — obrigatório quando trigger=scheduled' },
|
|
146
|
+
audience_list_id: { type: 'string', description: 'ID da lista de destinatários (filtra quem recebe)' },
|
|
147
|
+
exclude_list_id: { type: 'string', description: 'ID da lista de exclusão (quem não recebe)' },
|
|
147
148
|
},
|
|
148
149
|
required: ['event_id', 'channel', 'trigger'],
|
|
149
150
|
},
|
|
@@ -156,9 +157,15 @@ const TOOLS = [
|
|
|
156
157
|
properties: {
|
|
157
158
|
automation_id: { type: 'string' },
|
|
158
159
|
label: { type: 'string' },
|
|
160
|
+
channel: { type: 'string', enum: ['whatsapp', 'email'] },
|
|
161
|
+
trigger: { type: 'string' },
|
|
159
162
|
delay_minutes: { type: 'number' },
|
|
160
|
-
|
|
163
|
+
template_id: { type: 'string' },
|
|
164
|
+
destination: { type: 'string', enum: ['individual', 'group'] },
|
|
165
|
+
group_id: { type: 'string' },
|
|
161
166
|
scheduled_at: { type: 'string' },
|
|
167
|
+
audience_list_id: { type: 'string' },
|
|
168
|
+
exclude_list_id: { type: 'string' },
|
|
162
169
|
active: { type: 'boolean' },
|
|
163
170
|
},
|
|
164
171
|
required: ['automation_id'],
|
|
@@ -364,9 +371,9 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (req) => {
|
|
|
364
371
|
result = await api('GET', `/automations${a.event_id ? `?event_id=${a.event_id}` : ''}`);
|
|
365
372
|
break;
|
|
366
373
|
case 'create_automation': {
|
|
367
|
-
// broadcast_template_id não
|
|
374
|
+
// send_time e broadcast_template_id não existem na tabela whatsapp_automations
|
|
368
375
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
369
|
-
const { broadcast_template_id:
|
|
376
|
+
const { broadcast_template_id: _b, send_time: _s, ...autoBody } = a;
|
|
370
377
|
result = await api('POST', '/automations', autoBody);
|
|
371
378
|
break;
|
|
372
379
|
}
|