yirlo 1.3.4 → 1.3.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/package.json +1 -1
- package/yirlo.js +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yirlo",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Yirlo SDK, MCP server and terminal dashboard: run your AI cold email outreach (projects, campaigns, inbox, hot leads, budgets) from code, an AI agent or your terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "yirlo.js",
|
package/yirlo.js
CHANGED
|
@@ -37,8 +37,8 @@ export class Yirlo {
|
|
|
37
37
|
createCampaign(args = {}) { return this._call("POST", "/public/api/v1/agentapp/campaigns", args, {"project_id": "body", "name": "body", "target_geography": "body"}, ["name"], "create_campaign", ["target_geography"]); }
|
|
38
38
|
/** One campaign: audience, targeting and email instructions. Arguments: campaign_id. */
|
|
39
39
|
getCampaign(args = {}) { return this._call("GET", "/public/api/v1/agentapp/campaigns/{campaign_id}", args, {"campaign_id": "path"}, ["campaign_id"], "get_campaign", []); }
|
|
40
|
-
/** Update campaign definition. Arguments: campaign_id, name?, offer?, customer_problem?, target_role?, target_geography?, target_company_size?, positive_criteria?, negative_criteria?, example_clients?, instructions?, followup_instructions?, language?, followups?. */
|
|
41
|
-
updateCampaign(args = {}) { return this._call("PATCH", "/public/api/v1/agentapp/campaigns/{campaign_id}", args, {"campaign_id": "path", "name": "body", "offer": "body", "customer_problem": "body", "target_role": "body", "target_geography": "body", "target_company_size": "body", "positive_criteria": "body", "negative_criteria": "body", "example_clients": "body", "instructions": "body", "followup_instructions": "body", "language": "body", "followups": "body"}, ["campaign_id"], "update_campaign", ["name", "offer", "customer_problem", "target_role", "target_geography", "target_company_size", "positive_criteria", "negative_criteria", "example_clients", "instructions", "followup_instructions", "language", "followups"]); }
|
|
40
|
+
/** Update campaign definition. Arguments: campaign_id, name?, offer?, customer_problem?, target_role?, target_geography?, target_company_size?, positive_criteria?, negative_criteria?, example_clients?, instructions?, followup_instructions?, language?, followups?, schedule?. */
|
|
41
|
+
updateCampaign(args = {}) { return this._call("PATCH", "/public/api/v1/agentapp/campaigns/{campaign_id}", args, {"campaign_id": "path", "name": "body", "offer": "body", "customer_problem": "body", "target_role": "body", "target_geography": "body", "target_company_size": "body", "positive_criteria": "body", "negative_criteria": "body", "example_clients": "body", "instructions": "body", "followup_instructions": "body", "language": "body", "followups": "body", "schedule": "body"}, ["campaign_id"], "update_campaign", ["name", "offer", "customer_problem", "target_role", "target_geography", "target_company_size", "positive_criteria", "negative_criteria", "example_clients", "instructions", "followup_instructions", "language", "followups", "schedule"]); }
|
|
42
42
|
/** Get campaign My copy. Arguments: campaign_id. */
|
|
43
43
|
getCampaignMyCopy(args = {}) { return this._call("GET", "/public/api/v1/agentapp/campaigns/{campaign_id}/my-copy", args, {"campaign_id": "path"}, ["campaign_id"], "get_campaign_my_copy", []); }
|
|
44
44
|
/** Update campaign My copy. Arguments: campaign_id, mode?. */
|
|
@@ -201,4 +201,14 @@ export class Yirlo {
|
|
|
201
201
|
getAutoTopup(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/auto-topup", args, {"project_id": "path"}, ["project_id"], "get_auto_topup", []); }
|
|
202
202
|
/** Turn a project's auto top-up on or off and set its amount (amount_usd) and trigger balance (below_usd). Charges the card on file when the balance runs low. Arguments: project_id, enabled?, amount_usd?, below_usd?. */
|
|
203
203
|
setAutoTopup(args = {}) { return this._call("PATCH", "/public/api/v1/agentapp/projects/{project_id}/auto-topup", args, {"project_id": "path", "enabled": "body", "amount_usd": "body", "below_usd": "body"}, ["project_id"], "set_auto_topup", ["below_usd"]); }
|
|
204
|
+
/** Get the project's sending schedule. Arguments: project_id. */
|
|
205
|
+
getProjectSchedule(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/schedule", args, {"project_id": "path"}, ["project_id"], "get_project_schedule", []); }
|
|
206
|
+
/** Set the project's sending schedule. Arguments: project_id, timezone?, working_hours?, days?, use_system_schedule?. */
|
|
207
|
+
setProjectSchedule(args = {}) { return this._call("PUT", "/public/api/v1/agentapp/projects/{project_id}/schedule", args, {"project_id": "path", "timezone": "body", "working_hours": "body", "days": "body", "use_system_schedule": "body"}, ["project_id"], "set_project_schedule", ["timezone", "working_hours", "days", "use_system_schedule"]); }
|
|
208
|
+
/** Set a campaign's own sending schedule. Arguments: campaign_id, timezone?, working_hours?, days?, use_system_schedule?, use_project_schedule?. */
|
|
209
|
+
setCampaignSchedule(args = {}) { return this._call("PUT", "/public/api/v1/agentapp/campaigns/{campaign_id}/schedule", args, {"campaign_id": "path", "timezone": "body", "working_hours": "body", "days": "body", "use_system_schedule": "body", "use_project_schedule": "body"}, ["campaign_id"], "set_campaign_schedule", ["timezone", "working_hours", "days", "use_system_schedule", "use_project_schedule"]); }
|
|
210
|
+
/** A founding member's first sending day, the earliest day it can move to, and whether it can still move. Arguments: project_id. */
|
|
211
|
+
getStartDate(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/start_date", args, {"project_id": "path"}, ["project_id"], "get_start_date", []); }
|
|
212
|
+
/** Move a founding member's first sending day (start_date YYYY-MM-DD, any day from December 21 on). Nothing sends before it; credit and bonus stay. Arguments: project_id, start_date. */
|
|
213
|
+
setStartDate(args = {}) { return this._call("PUT", "/public/api/v1/agentapp/projects/{project_id}/start_date", args, {"project_id": "path", "start_date": "body"}, ["project_id", "start_date"], "set_start_date", []); }
|
|
204
214
|
}
|