yirlo 1.3.21 → 1.3.23

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 (2) hide show
  1. package/package.json +1 -1
  2. package/yirlo.js +17 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yirlo",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
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
@@ -143,12 +143,14 @@ export class Yirlo {
143
143
  listPosts(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/posts", args, {"project_id": "path"}, ["project_id"], "list_posts", []); }
144
144
  /** Import the people who commented on or replied to one of your LinkedIn, X or TikTok posts: Yirlo finds their work emails and starts a campaign for them (each email is checked before it is sent). Check progress with list_posts. pull: who to get (LinkedIn commenters/reactors/reposters, X replies/retweeters/quotes), default commenters/replies. Arguments: project_id, url, sell?, pull?. */
145
145
  leadsFromPost(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/posts", args, {"project_id": "path", "url": "body", "sell": "body", "pull": "body"}, ["project_id", "url"], "leads_from_post", []); }
146
- /** Website signals: the script to put on your site, the private webhook address for form tools, the visitor lead limit, the last 30 days and the latest leads. Arguments: project_id. */
146
+ /** Website signals: the script to put on your site, the private webhook address for form tools (in full only the first time, then its last 4: replace a lost one with rotate_signals_webhook), the visitor lead limit, the last 30 days and the latest leads. Arguments: project_id. */
147
147
  getSignals(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/signals", args, {"project_id": "path"}, ["project_id"], "get_signals", []); }
148
148
  /** How many recognized website visitors become leads a day; 0 turns it off, null or empty means no limit. Each lead found is paid from the balance. Arguments: project_id, visitor_leads_per_day?. */
149
149
  setVisitorLeadLimit(args = {}) { return this._call("PATCH", "/public/api/v1/agentapp/projects/{project_id}/signals", args, {"project_id": "path", "visitor_leads_per_day": "body"}, ["project_id"], "set_visitor_lead_limit", ["visitor_leads_per_day"]); }
150
150
  /** Pages where a form always or never counts for website signals (/signup, /blog/*; 50 each). Log-in and password reset forms never count unless listed in pages_always. Arguments: project_id, pages_always?, pages_never?. */
151
151
  setSignalPages(args = {}) { return this._call("PATCH", "/public/api/v1/agentapp/projects/{project_id}/signals", args, {"project_id": "path", "pages_always": "body", "pages_never": "body"}, ["project_id"], "set_signal_pages", []); }
152
+ /** Replace the form address. Arguments: project_id. */
153
+ rotateSignalsWebhook(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/signals/webhook/rotate", args, {"project_id": "path"}, ["project_id"], "rotate_signals_webhook", []); }
152
154
  /** Website signals as CSV. Arguments: project_id. */
153
155
  signalsCsv(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/signals.csv", args, {"project_id": "path"}, ["project_id"], "signals_csv", []); }
154
156
  /** Profiles we watch: LinkedIn profiles, X accounts and TikTok accounts whose new posts have their commenters emailed. Arguments: project_id. */
@@ -205,6 +207,20 @@ export class Yirlo {
205
207
  inviteTeammate(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/team", args, {"project_id": "path", "email": "body"}, ["project_id", "email"], "invite_teammate", []); }
206
208
  /** Remove someone from the project. Arguments: project_id, email. */
207
209
  removeTeamMember(args = {}) { return this._call("DELETE", "/public/api/v1/agentapp/projects/{project_id}/team/{email}", args, {"project_id": "path", "email": "path"}, ["project_id", "email"], "remove_team_member", []); }
210
+ /** A project's LinkedIn (Expandi) connection and the campaigns Yirlo answers. Arguments: project_id. */
211
+ getLinkedin(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/linkedin", args, {"project_id": "path"}, ["project_id"], "get_linkedin", []); }
212
+ /** Connect a project to Expandi with its API key and secret so Yirlo answers LinkedIn replies. Arguments: project_id, api_key, api_secret, li_account_id?. */
213
+ connectLinkedin(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/linkedin", args, {"project_id": "path", "api_key": "body", "api_secret": "body", "li_account_id": "body"}, ["project_id", "api_key", "api_secret"], "connect_linkedin", []); }
214
+ /** Disconnect LinkedIn. Arguments: project_id. */
215
+ disconnectLinkedin(args = {}) { return this._call("DELETE", "/public/api/v1/agentapp/projects/{project_id}/linkedin", args, {"project_id": "path"}, ["project_id"], "disconnect_linkedin", []); }
216
+ /** Set which Expandi campaigns of a project Yirlo answers LinkedIn replies for. Arguments: project_id, campaigns. */
217
+ setLinkedinCampaigns(args = {}) { return this._call("PUT", "/public/api/v1/agentapp/projects/{project_id}/linkedin/campaigns", args, {"project_id": "path", "campaigns": "body"}, ["project_id", "campaigns"], "set_linkedin_campaigns", []); }
218
+ /** A project's latest LinkedIn replies and Yirlo's answers. Arguments: project_id, limit?. */
219
+ listLinkedinReplies(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/linkedin/replies", args, {"project_id": "path", "limit": "query"}, ["project_id"], "list_linkedin_replies", []); }
220
+ /** OK Yirlo's waiting answer to one LinkedIn reply. Arguments: project_id, reply_id. */
221
+ sendLinkedinReply(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/linkedin/replies/{reply_id}/send", args, {"project_id": "path", "reply_id": "path"}, ["project_id", "reply_id"], "send_linkedin_reply", []); }
222
+ /** Skip a LinkedIn answer. Arguments: project_id, reply_id. */
223
+ skipLinkedinReply(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/linkedin/replies/{reply_id}/skip", args, {"project_id": "path", "reply_id": "path"}, ["project_id", "reply_id"], "skip_linkedin_reply", []); }
208
224
  /** A project's auto top-up: on or off, the amount it buys, the balance that triggers it, and whether a card is on file so it can run. Arguments: project_id. */
209
225
  getAutoTopup(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/auto-topup", args, {"project_id": "path"}, ["project_id"], "get_auto_topup", []); }
210
226
  /** 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?. */