diffio 0.1.89 → 0.1.91

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/README.md CHANGED
@@ -58,7 +58,7 @@ const project = await client.createProject({
58
58
 
59
59
  const generation = await client.createGeneration({
60
60
  apiProjectId: project.apiProjectId,
61
- model: "diffio-3.5",
61
+ model: "diffio-4.0-flash",
62
62
  sampling: { steps: 12, guidance: 1.5 },
63
63
  idempotencyKey: "restore-sample-001"
64
64
  });
@@ -91,7 +91,7 @@ import { DiffioClient } from "diffio";
91
91
  const client = new DiffioClient({ apiKey: "diffio_live_..." });
92
92
  const result = await client.audioIsolation.isolate({
93
93
  filePath: "sample.wav",
94
- model: "diffio-3.5",
94
+ model: "diffio-4.0-flash",
95
95
  sampling: { steps: 12, guidance: 1.5 },
96
96
  idempotencyKey: "restore-sample-001"
97
97
  });
@@ -113,7 +113,7 @@ import { DiffioClient } from "diffio";
113
113
  const client = new DiffioClient({ apiKey: "diffio_live_..." });
114
114
  const [audioBytes, info] = await client.restoreAudio({
115
115
  filePath: "sample.wav",
116
- model: "diffio-3.5",
116
+ model: "diffio-4.0-flash",
117
117
  sampling: { steps: 12, guidance: 1.5 },
118
118
  idempotencyKey: "restore-sample-001",
119
119
  onProgress: (progress) => console.log(progress.status)
package/dist/Client.js CHANGED
@@ -49,7 +49,9 @@ const MODEL_ENDPOINTS = {
49
49
  "diffio-2": "diffio-2.0-generation",
50
50
  "diffio-2-flash": "diffio-2.0-flash-generation",
51
51
  "diffio-3.4": "diffio-3.4-generation",
52
- "diffio-3.5": "diffio-3.5-generation"
52
+ "diffio-3.5": "diffio-3.5-generation",
53
+ "diffio-4.0-flash": "diffio-4.0-flash-generation",
54
+ "diffio-4.0-pro": "diffio-4.0-pro-generation"
53
55
  };
54
56
  const DEFAULT_RETRY_STATUS_CODES = [408, 429, 500, 502, 503, 504];
55
57
  const DEFAULT_RETRY_BACKOFF = 0.5;
@@ -140,7 +142,7 @@ class DiffioClient {
140
142
  }
141
143
  /** Retries generation admission only when the caller supplies a nonblank idempotency key. */
142
144
  async createGeneration(options) {
143
- const { apiProjectId, model = "diffio-2", sampling, params, idempotencyKey, requestOptions } = options;
145
+ const { apiProjectId, model = "diffio-4.0-flash", sampling, params, idempotencyKey, requestOptions } = options;
144
146
  const endpoint = MODEL_ENDPOINTS[model];
145
147
  if (!endpoint) {
146
148
  throw new errors_1.DiffioApiError(`Unsupported model: ${model}`);
@@ -1,4 +1,4 @@
1
- export type ModelKey = "diffio-2" | "diffio-2-flash" | "diffio-3.4" | "diffio-3.5";
1
+ export type ModelKey = "diffio-2" | "diffio-2-flash" | "diffio-3.4" | "diffio-3.5" | "diffio-4.0-flash" | "diffio-4.0-pro";
2
2
  export type DownloadType = "audio" | "video" | "transcript";
3
3
  export type WebhookMode = "test" | "live";
4
4
  export type WebhookEventType = "generation.queued" | "generation.processing" | "generation.failed" | "generation.completed";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const DIFFIO_SDK_VERSION = "0.1.89";
1
+ export declare const DIFFIO_SDK_VERSION = "0.1.91";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DIFFIO_SDK_VERSION = void 0;
4
- exports.DIFFIO_SDK_VERSION = "0.1.89";
4
+ exports.DIFFIO_SDK_VERSION = "0.1.91";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diffio",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "description": "Diffio API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",