yirlo 1.3.0 → 1.3.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/yirlo.js +1 -1
package/README.md CHANGED
@@ -9,8 +9,8 @@ Get an API key at https://yirlo.com/app/api-keys. Full API docs: https://yirlo.c
9
9
  ```js
10
10
  import { Yirlo } from "yirlo";
11
11
  const y = new Yirlo(process.env.YIRLO_API_KEY);
12
- const me = await y.getAccount();
13
- const { campaigns } = await y.listCampaigns({ project_id: me.projects[0].id });
12
+ const { projects } = await y.listProjects();
13
+ const { campaigns } = await y.listCampaigns({ project_id: projects[0].id });
14
14
  const hot = await y.listHotLeads();
15
15
  ```
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yirlo",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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
@@ -1,5 +1,5 @@
1
1
  // Yirlo SDK for JavaScript (Node 18+ and browsers with fetch). https://yirlo.com/sdk/yirlo.js
2
- // Generated from https://yirlo.com/api-docs/openapi.json: every call there is a method here (docs: https://yirlo.com/api-docs).
2
+ // Generated from https://yirlo.com/api-docs/openapi.json: every call there that is not deprecated is a method here (docs: https://yirlo.com/api-docs).
3
3
  // Usage: import { Yirlo } from "yirlo"; const y = new Yirlo(process.env.YIRLO_API_KEY); console.log(await y.getAccount());
4
4
  export class YirloError extends Error { constructor(status, body) { super((body && body.detail) || `HTTP ${status}`); this.status = status; this.body = body; } }
5
5
  export class Yirlo {