yirlo 1.3.15 → 1.3.17

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 +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yirlo",
3
- "version": "1.3.15",
3
+ "version": "1.3.17",
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
@@ -119,7 +119,7 @@ export class Yirlo {
119
119
  deleteCompanyList(args = {}) { return this._call("DELETE", "/public/api/v1/agentapp/suppress-list/companies/{list_name}", args, {"list_name": "path"}, ["list_name"], "delete_company_list", []); }
120
120
  /** Add an https webhook to a project. Arguments: project_id?, url, events?. */
121
121
  addWebhook(args = {}) { return this._call("POST", "/public/api/v1/agentapp/webhooks", args, {"project_id": "body", "url": "body", "events": "body"}, ["url"], "add_webhook", []); }
122
- /** Webhooks for a project (events: reply.received, hot_lead.received, signal.lead). Arguments: project_id?. */
122
+ /** Webhooks for a project (events: reply.received, hot_lead.received, signal.lead, conversion.received). Arguments: project_id?. */
123
123
  listWebhooks(args = {}) { return this._call("GET", "/public/api/v1/agentapp/webhooks", args, {"project_id": "query"}, [], "list_webhooks", []); }
124
124
  /** Get a webhook. Arguments: webhook_id, project_id?. */
125
125
  getWebhook(args = {}) { return this._call("GET", "/public/api/v1/agentapp/webhooks/{webhook_id}", args, {"webhook_id": "path", "project_id": "query"}, ["webhook_id"], "get_webhook", []); }
@@ -171,6 +171,10 @@ export class Yirlo {
171
171
  getConversions(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/conversions", args, {"project_id": "path"}, ["project_id"], "get_conversions", []); }
172
172
  /** Replace the conversion address. Arguments: project_id. */
173
173
  rotateConversionUrl(args = {}) { return this._call("POST", "/public/api/v1/agentapp/projects/{project_id}/conversions/rotate", args, {"project_id": "path"}, ["project_id"], "rotate_conversion_url", []); }
174
+ /** The price of a paying customer and the percent of trials that become paying, which Yirlo uses to say what a new trial is worth. Arguments: project_id. */
175
+ getOutcomeWorth(args = {}) { return this._call("GET", "/public/api/v1/agentapp/projects/{project_id}/outcome-worth", args, {"project_id": "path"}, ["project_id"], "get_outcome_worth", []); }
176
+ /** Set the price of a paying customer (US dollars), whether it is per month or once (price_period: month or once), and/or the percent of trials that become paying (0-100); null clears one. Arguments: project_id, price_of_paying_customer?, price_period?, trial_to_paid_pct?. */
177
+ setOutcomeWorth(args = {}) { return this._call("PATCH", "/public/api/v1/agentapp/projects/{project_id}/outcome-worth", args, {"project_id": "path", "price_of_paying_customer": "body", "price_period": "body", "trial_to_paid_pct": "body"}, ["project_id"], "set_outcome_worth", ["price_of_paying_customer", "price_period", "trial_to_paid_pct"]); }
174
178
  /** Send a signup or purchase (conversion feed). Arguments: conversion_key, email, id?, type?. */
175
179
  sendConversion(args = {}) { return this._call("POST", "/px/conv/{conversion_key}", args, {"conversion_key": "path", "email": "body", "id": "body", "type": "body"}, ["conversion_key", "email"], "send_conversion", []); }
176
180
  /** Competitors. Arguments: project_id. */