@@ -5,7 +5,7 @@ The Diffio JS SDK helps you call the Diffio API from Node. This version covers p
55## Install
66
77``` bash
8- npm install diffio-js
8+ npm install diffio
99```
1010
1111For local development:
@@ -35,7 +35,7 @@ export DIFFIO_API_BASE_URL="http://127.0.0.1:5001/diffioai/us-central1"
3535Use request options to override headers, timeouts, retries, or the API key per request.
3636
3737``` ts
38- import { DiffioClient } from " diffio-js " ;
38+ import { DiffioClient } from " diffio" ;
3939
4040const client = new DiffioClient ({ apiKey: " diffio_live_..." });
4141const projects = await client .listProjects ({
@@ -53,7 +53,7 @@ const projects = await client.listProjects({
5353` createProject ` uploads the file and returns the project metadata.
5454
5555``` ts
56- import { DiffioClient } from " diffio-js " ;
56+ import { DiffioClient } from " diffio" ;
5757
5858const client = new DiffioClient ({ apiKey: " diffio_live_..." });
5959const filePath = " sample.wav" ;
@@ -74,7 +74,7 @@ console.log(generation.generationId);
7474## Audio isolation helper
7575
7676``` ts
77- import { DiffioClient } from " diffio-js " ;
77+ import { DiffioClient } from " diffio" ;
7878
7979const client = new DiffioClient ({ apiKey: " diffio_live_..." });
8080const result = await client .audioIsolation .isolate ({
@@ -92,7 +92,7 @@ This helper runs the full flow and returns the downloaded bytes plus a metadata
9292
9393``` ts
9494import fs from " node:fs" ;
95- import { DiffioClient } from " diffio-js " ;
95+ import { DiffioClient } from " diffio" ;
9696
9797const client = new DiffioClient ({ apiKey: " diffio_live_..." });
9898const [audioBytes, info] = await client .restoreAudio ({
@@ -114,7 +114,7 @@ console.log(info.apiProjectId, info.generationId);
114114## Generation progress
115115
116116``` ts
117- import { DiffioClient } from " diffio-js " ;
117+ import { DiffioClient } from " diffio" ;
118118
119119const client = new DiffioClient ({ apiKey: " diffio_live_..." });
120120const progress = await client .generations .getProgress ({
@@ -128,7 +128,7 @@ console.log(progress.status);
128128## Generation download
129129
130130``` ts
131- import { DiffioClient } from " diffio-js " ;
131+ import { DiffioClient } from " diffio" ;
132132
133133const client = new DiffioClient ({ apiKey: " diffio_live_..." });
134134const download = await client .generations .getDownload ({
@@ -143,7 +143,7 @@ console.log(download.downloadUrl);
143143## List projects
144144
145145``` ts
146- import { DiffioClient } from " diffio-js " ;
146+ import { DiffioClient } from " diffio" ;
147147
148148const client = new DiffioClient ({ apiKey: " diffio_live_..." });
149149const projects = await client .projects .list ();
@@ -156,7 +156,7 @@ for (const project of projects.projects) {
156156## List project generations
157157
158158``` ts
159- import { DiffioClient } from " diffio-js " ;
159+ import { DiffioClient } from " diffio" ;
160160
161161const client = new DiffioClient ({ apiKey: " diffio_live_..." });
162162const generations = await client .projects .listGenerations ({ apiProjectId: " proj_123" });
@@ -169,7 +169,7 @@ for (const generation of generations.generations) {
169169## Webhooks portal access
170170
171171``` ts
172- import { DiffioClient } from " diffio-js " ;
172+ import { DiffioClient } from " diffio" ;
173173
174174const client = new DiffioClient ({ apiKey: " diffio_live_..." });
175175const portal = await client .webhooks .getPortalAccess ({ mode: " test" });
@@ -179,7 +179,7 @@ console.log(portal.portalUrl);
179179## Send a test webhook event
180180
181181``` ts
182- import { DiffioClient } from " diffio-js " ;
182+ import { DiffioClient } from " diffio" ;
183183
184184const client = new DiffioClient ({ apiKey: " diffio_live_..." });
185185const event = await client .webhooks .sendTestEvent ({
0 commit comments