@jclvsh/iris 0.22.0 → 0.22.1
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/commands/campaigns.js +1 -1
- package/dist/tools/campaigns.js +1 -1
- package/dist/types.d.ts +10 -6
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@ export function registerCampaignCommands(program, client) {
|
|
|
110
110
|
});
|
|
111
111
|
campaigns
|
|
112
112
|
.command("analyze <id>")
|
|
113
|
-
.description("
|
|
113
|
+
.description("queue AI analysis of a campaign to generate target profiles (from its product, or from its goal)")
|
|
114
114
|
.action(async (id) => {
|
|
115
115
|
try {
|
|
116
116
|
const result = await client.post(`/campaigns/${id}/analyze`);
|
package/dist/tools/campaigns.js
CHANGED
|
@@ -193,7 +193,7 @@ export function registerCampaignTools(server, client) {
|
|
|
193
193
|
return formatMcpError(error);
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
server.tool("analyze_campaign", "
|
|
196
|
+
server.tool("analyze_campaign", "queue AI analysis of a campaign to generate its target profiles: from the product for product_promotion campaigns, from goal_description for any other campaign. runs asynchronously; poll get_campaign until analysis_status is completed, then search_campaign_contacts. requires write scope.", {
|
|
197
197
|
id: z.string().uuid().describe("campaign ID"),
|
|
198
198
|
}, async ({ id }) => {
|
|
199
199
|
try {
|
package/dist/types.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ export interface Campaign {
|
|
|
33
33
|
follow_up_enabled: boolean;
|
|
34
34
|
follow_up_max_count: number;
|
|
35
35
|
follow_up_delay_days: number;
|
|
36
|
+
goal_description?: string | null;
|
|
37
|
+
analysis_status?: "none" | "pending" | "analyzing" | "completed" | "failed";
|
|
38
|
+
analysis_error?: string | null;
|
|
36
39
|
created_at: string;
|
|
37
40
|
updated_at: string;
|
|
38
41
|
}
|
|
@@ -43,14 +46,15 @@ export interface CampaignWithStats extends Campaign {
|
|
|
43
46
|
emails_opened?: number;
|
|
44
47
|
emails_replied?: number;
|
|
45
48
|
}
|
|
49
|
+
/** `GET /campaigns/{id}/usage` */
|
|
46
50
|
export interface CampaignUsage {
|
|
47
51
|
campaign_id: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
status: string;
|
|
53
|
+
total_contacts: number;
|
|
54
|
+
total_conversations: number;
|
|
55
|
+
delivery_status: Record<string, number>;
|
|
56
|
+
/** id of a contact search running for the campaign right now; null when none is */
|
|
57
|
+
discovery_job_id: string | null;
|
|
54
58
|
}
|
|
55
59
|
/** `POST /campaigns/{id}/contacts` */
|
|
56
60
|
export interface AddCampaignContactsResult {
|