@jclvsh/iris 0.2.1 → 0.2.2
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/tools/webhooks.js +7 -6
- package/package.json +1 -1
package/dist/tools/webhooks.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
// Mirrors WEBHOOK_EVENTS in src/lib/api/webhooks/events.ts (server-side source of truth).
|
|
3
|
+
// Keep in sync — anything not on this list is rejected by validateWebhookEvents at the route layer.
|
|
2
4
|
const WEBHOOK_EVENTS = [
|
|
3
5
|
"campaign.created",
|
|
4
6
|
"campaign.updated",
|
|
5
7
|
"campaign.deleted",
|
|
6
|
-
"campaign.activated",
|
|
7
|
-
"campaign.completed",
|
|
8
8
|
"contact.created",
|
|
9
9
|
"contact.updated",
|
|
10
10
|
"contact.deleted",
|
|
11
11
|
"conversation.created",
|
|
12
|
-
"conversation.
|
|
12
|
+
"conversation.reply_received",
|
|
13
13
|
"message.sent",
|
|
14
14
|
"message.delivered",
|
|
15
15
|
"message.opened",
|
|
16
|
-
"message.clicked",
|
|
17
|
-
"message.replied",
|
|
18
16
|
"message.bounced",
|
|
19
|
-
"message.
|
|
17
|
+
"message.approved",
|
|
18
|
+
"message.rejected",
|
|
19
|
+
"discovery.completed",
|
|
20
|
+
"discovery.failed",
|
|
20
21
|
];
|
|
21
22
|
export function registerWebhookTools(server, client) {
|
|
22
23
|
server.tool("list_webhooks", "list all configured webhooks. requires webhooks:read scope.", {
|