@runware/sdk-js 1.1.17-beta.5 → 1.1.18

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/dist/index.d.mts CHANGED
@@ -71,7 +71,7 @@ type IControlNetGeneral = {
71
71
  };
72
72
  type IControlNetPreprocess = {
73
73
  inputImage: string | File;
74
- preProcessor: EPreProcessor;
74
+ preProcessor: EPreProcessorGroup;
75
75
  height?: number;
76
76
  width?: number;
77
77
  outputType?: IOutputType;
package/dist/index.d.ts CHANGED
@@ -71,7 +71,7 @@ type IControlNetGeneral = {
71
71
  };
72
72
  type IControlNetPreprocess = {
73
73
  inputImage: string | File;
74
- preProcessor: EPreProcessor;
74
+ preProcessor: EPreProcessorGroup;
75
75
  height?: number;
76
76
  width?: number;
77
77
  outputType?: IOutputType;
package/dist/index.js CHANGED
@@ -1313,16 +1313,6 @@ var RunwareServer = class extends RunwareBase {
1313
1313
  this._sdkType = "SERVER" /* SERVER */;
1314
1314
  this.connect();
1315
1315
  }
1316
- // static initialize = async (props: RunwareBaseType) => {
1317
- // try {
1318
- // console.log("this", this);
1319
- // const instance = new RunwareServer(props);
1320
- // await instance.ensureConnection();
1321
- // return instance;
1322
- // } catch (e) {
1323
- // throw e;
1324
- // }
1325
- // };
1326
1316
  // protected addListener({
1327
1317
  // lis,
1328
1318
  // check,
package/dist/index.mjs CHANGED
@@ -1291,16 +1291,6 @@ var RunwareServer = class extends RunwareBase {
1291
1291
  this._sdkType = "SERVER" /* SERVER */;
1292
1292
  this.connect();
1293
1293
  }
1294
- // static initialize = async (props: RunwareBaseType) => {
1295
- // try {
1296
- // console.log("this", this);
1297
- // const instance = new RunwareServer(props);
1298
- // await instance.ensureConnection();
1299
- // return instance;
1300
- // } catch (e) {
1301
- // throw e;
1302
- // }
1303
- // };
1304
1294
  // protected addListener({
1305
1295
  // lis,
1306
1296
  // check,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runware/sdk-js",
3
- "version": "1.1.17-beta.5",
3
+ "version": "1.1.18",
4
4
  "description": "The SDK is used to run image inference with the Runware API, powered by the RunWare inference platform. It can be used to generate imaged with text-to-image and image-to-image. It also allows the use of an existing gallery of models or selecting any model or LoRA from the CivitAI gallery. The API also supports upscaling, background removal, inpainting and outpainting, and a series of other ControlNet models.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/readme.md CHANGED
@@ -24,12 +24,16 @@ $ yarn add @runware/sdk-js
24
24
 
25
25
  ## Instantiating the SDK
26
26
 
27
+ ### Instantiating Synchronously
28
+
27
29
  ```js
28
- # For Client (Javascript, React, Vue etc) Use
29
- const runware = new Runware({ apiKey: "API_KEY" });
30
+ const runware = new Runware({ apiKey: "API_KEY" });
31
+ ```
30
32
 
31
- # For Server (Nodejs) Use
32
- const runware = new RunwareServer({ apiKey: "API_KEY" });
33
+ ### Instantiating Asynchronously
34
+
35
+ ```js
36
+ const runware = await Runware.initialize({ apiKey: "API_KEY" });
33
37
  ```
34
38
 
35
39
  | Parameter | Type | Use |
@@ -394,6 +398,7 @@ return interface IControlNetImage {
394
398
 
395
399
  - Add Global Max Retry and Retry count per request
396
400
  - Add Global timeout duration
401
+ - Introduce asynchronous instantiation
397
402
 
398
403
  ### - v1.1.16/v1.1.17
399
404