@leonardo-ai/sdk 4.3.0 → 4.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.
- package/.speakeasy/gen.lock +28 -6
- package/README.md +4 -0
- package/docs/sdks/generation/README.md +181 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +1 -1
- package/sdk/generation.d.ts +28 -0
- package/sdk/generation.d.ts.map +1 -1
- package/sdk/generation.js +232 -0
- package/sdk/generation.js.map +1 -1
- package/sdk/models/operations/index.d.ts +4 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +4 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/postgenerationslcm.d.ts +146 -0
- package/sdk/models/operations/postgenerationslcm.d.ts.map +1 -0
- package/sdk/models/operations/postgenerationslcm.js +194 -0
- package/sdk/models/operations/postgenerationslcm.js.map +1 -0
- package/sdk/models/operations/postlcminpainting.d.ts +152 -0
- package/sdk/models/operations/postlcminpainting.d.ts.map +1 -0
- package/sdk/models/operations/postlcminpainting.js +198 -0
- package/sdk/models/operations/postlcminpainting.js.map +1 -0
- package/sdk/models/operations/postlcminstantrefine.d.ts +146 -0
- package/sdk/models/operations/postlcminstantrefine.d.ts.map +1 -0
- package/sdk/models/operations/postlcminstantrefine.js +194 -0
- package/sdk/models/operations/postlcminstantrefine.js.map +1 -0
- package/sdk/models/operations/postlcmupscale.d.ts +167 -0
- package/sdk/models/operations/postlcmupscale.d.ts.map +1 -0
- package/sdk/models/operations/postlcmupscale.js +218 -0
- package/sdk/models/operations/postlcmupscale.js.map +1 -0
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.d.ts +23 -0
- package/sdk/models/shared/lcmgenerationstyle.d.ts.map +1 -0
- package/sdk/models/shared/lcmgenerationstyle.js +30 -0
- package/sdk/models/shared/lcmgenerationstyle.js.map +1 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/generation.ts +316 -0
- package/src/sdk/models/operations/index.ts +4 -0
- package/src/sdk/models/operations/postgenerationslcm.ts +309 -0
- package/src/sdk/models/operations/postlcminpainting.ts +326 -0
- package/src/sdk/models/operations/postlcminstantrefine.ts +325 -0
- package/src/sdk/models/operations/postlcmupscale.ts +360 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/lcmgenerationstyle.ts +28 -0
package/.speakeasy/gen.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
lockVersion: 2.0.0
|
|
2
2
|
id: edadaac9-e645-4ef4-a6c7-a1f73bc19385
|
|
3
3
|
management:
|
|
4
|
-
docChecksum:
|
|
4
|
+
docChecksum: 8571286cd4dd1d9d09ba99677375f886
|
|
5
5
|
docVersion: v1.0.0
|
|
6
6
|
speakeasyVersion: internal
|
|
7
|
-
generationVersion: 2.272.
|
|
8
|
-
releaseVersion: 4.3.
|
|
9
|
-
configChecksum:
|
|
7
|
+
generationVersion: 2.272.7
|
|
8
|
+
releaseVersion: 4.3.1
|
|
9
|
+
configChecksum: d9f3304b154027d7ec1e7462db4a0c38
|
|
10
10
|
repoURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk.git
|
|
11
11
|
repoSubDirectory: .
|
|
12
12
|
installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk
|
|
@@ -14,10 +14,10 @@ management:
|
|
|
14
14
|
features:
|
|
15
15
|
typescript:
|
|
16
16
|
constsAndDefaults: 0.1.3
|
|
17
|
-
core: 3.6.
|
|
17
|
+
core: 3.6.1
|
|
18
18
|
devContainers: 2.90.0
|
|
19
19
|
flattening: 2.81.1
|
|
20
|
-
globalSecurity: 2.82.
|
|
20
|
+
globalSecurity: 2.82.4
|
|
21
21
|
globalServerURLs: 2.82.3
|
|
22
22
|
responseFormat: 0.1.0
|
|
23
23
|
generatedFiles:
|
|
@@ -64,8 +64,12 @@ generatedFiles:
|
|
|
64
64
|
- src/sdk/models/operations/deletegenerationstextureid.ts
|
|
65
65
|
- src/sdk/models/operations/getgenerationbyid.ts
|
|
66
66
|
- src/sdk/models/operations/getgenerationsbyuserid.ts
|
|
67
|
+
- src/sdk/models/operations/postgenerationslcm.ts
|
|
67
68
|
- src/sdk/models/operations/postgenerationsmotionsvd.ts
|
|
68
69
|
- src/sdk/models/operations/postgenerationstexture.ts
|
|
70
|
+
- src/sdk/models/operations/postlcminpainting.ts
|
|
71
|
+
- src/sdk/models/operations/postlcminstantrefine.ts
|
|
72
|
+
- src/sdk/models/operations/postlcmupscale.ts
|
|
69
73
|
- src/sdk/models/operations/deleteinitimagebyid.ts
|
|
70
74
|
- src/sdk/models/operations/getinitimagebyid.ts
|
|
71
75
|
- src/sdk/models/operations/uploadinitimage.ts
|
|
@@ -87,6 +91,7 @@ generatedFiles:
|
|
|
87
91
|
- src/sdk/models/shared/controlnettype.ts
|
|
88
92
|
- src/sdk/models/shared/jobstatus.ts
|
|
89
93
|
- src/sdk/models/shared/variationtype.ts
|
|
94
|
+
- src/sdk/models/shared/lcmgenerationstyle.ts
|
|
90
95
|
- src/sdk/models/shared/strength.ts
|
|
91
96
|
- src/sdk/models/shared/custommodeltype.ts
|
|
92
97
|
- src/sdk/models/shared/security.ts
|
|
@@ -148,6 +153,10 @@ generatedFiles:
|
|
|
148
153
|
- docs/sdk/models/operations/getgenerationsbyuseridgenerations.md
|
|
149
154
|
- docs/sdk/models/operations/getgenerationsbyuseridresponsebody.md
|
|
150
155
|
- docs/sdk/models/operations/getgenerationsbyuseridresponse.md
|
|
156
|
+
- docs/sdk/models/operations/postgenerationslcmrequestbody.md
|
|
157
|
+
- docs/sdk/models/operations/lcmgenerationoutput.md
|
|
158
|
+
- docs/sdk/models/operations/postgenerationslcmresponsebody.md
|
|
159
|
+
- docs/sdk/models/operations/postgenerationslcmresponse.md
|
|
151
160
|
- docs/sdk/models/operations/postgenerationsmotionsvdrequestbody.md
|
|
152
161
|
- docs/sdk/models/operations/motionsvdgenerationoutput.md
|
|
153
162
|
- docs/sdk/models/operations/postgenerationsmotionsvdresponsebody.md
|
|
@@ -156,6 +165,18 @@ generatedFiles:
|
|
|
156
165
|
- docs/sdk/models/operations/texturegenerationjoboutput.md
|
|
157
166
|
- docs/sdk/models/operations/postgenerationstextureresponsebody.md
|
|
158
167
|
- docs/sdk/models/operations/postgenerationstextureresponse.md
|
|
168
|
+
- docs/sdk/models/operations/postlcminpaintingrequestbody.md
|
|
169
|
+
- docs/sdk/models/operations/postlcminpaintinglcmgenerationoutput.md
|
|
170
|
+
- docs/sdk/models/operations/postlcminpaintingresponsebody.md
|
|
171
|
+
- docs/sdk/models/operations/postlcminpaintingresponse.md
|
|
172
|
+
- docs/sdk/models/operations/postlcminstantrefinerequestbody.md
|
|
173
|
+
- docs/sdk/models/operations/postlcminstantrefinelcmgenerationoutput.md
|
|
174
|
+
- docs/sdk/models/operations/postlcminstantrefineresponsebody.md
|
|
175
|
+
- docs/sdk/models/operations/postlcminstantrefineresponse.md
|
|
176
|
+
- docs/sdk/models/operations/postlcmupscalerequestbody.md
|
|
177
|
+
- docs/sdk/models/operations/postlcmupscalelcmgenerationoutput.md
|
|
178
|
+
- docs/sdk/models/operations/postlcmupscaleresponsebody.md
|
|
179
|
+
- docs/sdk/models/operations/postlcmupscaleresponse.md
|
|
159
180
|
- docs/sdk/models/operations/deleteinitimagebyidrequest.md
|
|
160
181
|
- docs/sdk/models/operations/initimages.md
|
|
161
182
|
- docs/sdk/models/operations/deleteinitimagebyidresponsebody.md
|
|
@@ -220,6 +241,7 @@ generatedFiles:
|
|
|
220
241
|
- docs/sdk/models/shared/controlnettype.md
|
|
221
242
|
- docs/sdk/models/shared/jobstatus.md
|
|
222
243
|
- docs/sdk/models/shared/variationtype.md
|
|
244
|
+
- docs/sdk/models/shared/lcmgenerationstyle.md
|
|
223
245
|
- docs/sdk/models/shared/strength.md
|
|
224
246
|
- docs/sdk/models/shared/custommodeltype.md
|
|
225
247
|
- docs/sdk/models/shared/security.md
|
package/README.md
CHANGED
|
@@ -75,8 +75,12 @@ run();
|
|
|
75
75
|
* [deleteGenerationsTextureId](docs/sdks/generation/README.md#deletegenerationstextureid) - Delete Texture Generation by ID
|
|
76
76
|
* [getGenerationById](docs/sdks/generation/README.md#getgenerationbyid) - Get a Single Generation
|
|
77
77
|
* [getGenerationsByUserId](docs/sdks/generation/README.md#getgenerationsbyuserid) - Get generations by user ID
|
|
78
|
+
* [postGenerationsLcm](docs/sdks/generation/README.md#postgenerationslcm) - Create LCM Generation
|
|
78
79
|
* [postGenerationsMotionSvd](docs/sdks/generation/README.md#postgenerationsmotionsvd) - Create SVD Motion Generation
|
|
79
80
|
* [postGenerationsTexture](docs/sdks/generation/README.md#postgenerationstexture) - Create Texture Generation
|
|
81
|
+
* [postLcmInpainting](docs/sdks/generation/README.md#postlcminpainting) - Perform inpainting on a LCM image
|
|
82
|
+
* [postLcmInstantRefine](docs/sdks/generation/README.md#postlcminstantrefine) - Perform instant refine on a LCM image
|
|
83
|
+
* [postLcmUpscale](docs/sdks/generation/README.md#postlcmupscale) - Perform Alchemy Upscale on a LCM image
|
|
80
84
|
|
|
81
85
|
### [initImage](docs/sdks/initimage/README.md)
|
|
82
86
|
|
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
* [deleteGenerationsTextureId](#deletegenerationstextureid) - Delete Texture Generation by ID
|
|
9
9
|
* [getGenerationById](#getgenerationbyid) - Get a Single Generation
|
|
10
10
|
* [getGenerationsByUserId](#getgenerationsbyuserid) - Get generations by user ID
|
|
11
|
+
* [postGenerationsLcm](#postgenerationslcm) - Create LCM Generation
|
|
11
12
|
* [postGenerationsMotionSvd](#postgenerationsmotionsvd) - Create SVD Motion Generation
|
|
12
13
|
* [postGenerationsTexture](#postgenerationstexture) - Create Texture Generation
|
|
14
|
+
* [postLcmInpainting](#postlcminpainting) - Perform inpainting on a LCM image
|
|
15
|
+
* [postLcmInstantRefine](#postlcminstantrefine) - Perform instant refine on a LCM image
|
|
16
|
+
* [postLcmUpscale](#postlcmupscale) - Perform Alchemy Upscale on a LCM image
|
|
13
17
|
|
|
14
18
|
## createGeneration
|
|
15
19
|
|
|
@@ -237,6 +241,50 @@ run();
|
|
|
237
241
|
| --------------- | --------------- | --------------- |
|
|
238
242
|
| errors.SDKError | 4xx-5xx | */* |
|
|
239
243
|
|
|
244
|
+
## postGenerationsLcm
|
|
245
|
+
|
|
246
|
+
This endpoint will generate a LCM image generation.
|
|
247
|
+
|
|
248
|
+
### Example Usage
|
|
249
|
+
|
|
250
|
+
```typescript
|
|
251
|
+
import { Leonardo } from "@leonardo-ai/sdk";
|
|
252
|
+
|
|
253
|
+
async function run() {
|
|
254
|
+
const sdk = new Leonardo({
|
|
255
|
+
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
const result = await sdk.generation.postGenerationsLcm({
|
|
259
|
+
imageDataUrl: "<value>",
|
|
260
|
+
prompt: "<value>",
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// Handle the result
|
|
264
|
+
console.log(result)
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
run();
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Parameters
|
|
271
|
+
|
|
272
|
+
| Parameter | Type | Required | Description |
|
|
273
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
274
|
+
| `request` | [operations.PostGenerationsLcmRequestBody](../../sdk/models/operations/postgenerationslcmrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
275
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
276
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### Response
|
|
280
|
+
|
|
281
|
+
**Promise<[operations.PostGenerationsLcmResponse](../../sdk/models/operations/postgenerationslcmresponse.md)>**
|
|
282
|
+
### Errors
|
|
283
|
+
|
|
284
|
+
| Error Object | Status Code | Content Type |
|
|
285
|
+
| --------------- | --------------- | --------------- |
|
|
286
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
287
|
+
|
|
240
288
|
## postGenerationsMotionSvd
|
|
241
289
|
|
|
242
290
|
This endpoint will generate a SVD motion generation.
|
|
@@ -320,3 +368,136 @@ run();
|
|
|
320
368
|
| Error Object | Status Code | Content Type |
|
|
321
369
|
| --------------- | --------------- | --------------- |
|
|
322
370
|
| errors.SDKError | 4xx-5xx | */* |
|
|
371
|
+
|
|
372
|
+
## postLcmInpainting
|
|
373
|
+
|
|
374
|
+
This endpoint will perform a inpainting on a LCM image
|
|
375
|
+
|
|
376
|
+
### Example Usage
|
|
377
|
+
|
|
378
|
+
```typescript
|
|
379
|
+
import { Leonardo } from "@leonardo-ai/sdk";
|
|
380
|
+
|
|
381
|
+
async function run() {
|
|
382
|
+
const sdk = new Leonardo({
|
|
383
|
+
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
const result = await sdk.generation.postLcmInpainting({
|
|
387
|
+
imageDataUrl: "<value>",
|
|
388
|
+
maskDataUrl: "<value>",
|
|
389
|
+
prompt: "<value>",
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
// Handle the result
|
|
393
|
+
console.log(result)
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
run();
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### Parameters
|
|
400
|
+
|
|
401
|
+
| Parameter | Type | Required | Description |
|
|
402
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
403
|
+
| `request` | [operations.PostLcmInpaintingRequestBody](../../sdk/models/operations/postlcminpaintingrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
404
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
405
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
### Response
|
|
409
|
+
|
|
410
|
+
**Promise<[operations.PostLcmInpaintingResponse](../../sdk/models/operations/postlcminpaintingresponse.md)>**
|
|
411
|
+
### Errors
|
|
412
|
+
|
|
413
|
+
| Error Object | Status Code | Content Type |
|
|
414
|
+
| --------------- | --------------- | --------------- |
|
|
415
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
416
|
+
|
|
417
|
+
## postLcmInstantRefine
|
|
418
|
+
|
|
419
|
+
This endpoint will perform instant refine on a LCM image
|
|
420
|
+
|
|
421
|
+
### Example Usage
|
|
422
|
+
|
|
423
|
+
```typescript
|
|
424
|
+
import { Leonardo } from "@leonardo-ai/sdk";
|
|
425
|
+
|
|
426
|
+
async function run() {
|
|
427
|
+
const sdk = new Leonardo({
|
|
428
|
+
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
const result = await sdk.generation.postLcmInstantRefine({
|
|
432
|
+
imageDataUrl: "<value>",
|
|
433
|
+
prompt: "<value>",
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
// Handle the result
|
|
437
|
+
console.log(result)
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
run();
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
### Parameters
|
|
444
|
+
|
|
445
|
+
| Parameter | Type | Required | Description |
|
|
446
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
447
|
+
| `request` | [operations.PostLcmInstantRefineRequestBody](../../sdk/models/operations/postlcminstantrefinerequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
448
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
449
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
### Response
|
|
453
|
+
|
|
454
|
+
**Promise<[operations.PostLcmInstantRefineResponse](../../sdk/models/operations/postlcminstantrefineresponse.md)>**
|
|
455
|
+
### Errors
|
|
456
|
+
|
|
457
|
+
| Error Object | Status Code | Content Type |
|
|
458
|
+
| --------------- | --------------- | --------------- |
|
|
459
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
460
|
+
|
|
461
|
+
## postLcmUpscale
|
|
462
|
+
|
|
463
|
+
This endpoint will perform Alchemy Upscale on a LCM image
|
|
464
|
+
|
|
465
|
+
### Example Usage
|
|
466
|
+
|
|
467
|
+
```typescript
|
|
468
|
+
import { Leonardo } from "@leonardo-ai/sdk";
|
|
469
|
+
|
|
470
|
+
async function run() {
|
|
471
|
+
const sdk = new Leonardo({
|
|
472
|
+
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
const result = await sdk.generation.postLcmUpscale({
|
|
476
|
+
imageDataUrl: "<value>",
|
|
477
|
+
prompt: "<value>",
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
// Handle the result
|
|
481
|
+
console.log(result)
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
run();
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
| Parameter | Type | Required | Description |
|
|
490
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
491
|
+
| `request` | [operations.PostLcmUpscaleRequestBody](../../sdk/models/operations/postlcmupscalerequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
492
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
493
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
### Response
|
|
497
|
+
|
|
498
|
+
**Promise<[operations.PostLcmUpscaleResponse](../../sdk/models/operations/postlcmupscaleresponse.md)>**
|
|
499
|
+
### Errors
|
|
500
|
+
|
|
501
|
+
| Error Object | Status Code | Content Type |
|
|
502
|
+
| --------------- | --------------- | --------------- |
|
|
503
|
+
| errors.SDKError | 4xx-5xx | */* |
|
package/lib/config.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
24
24
|
export declare const SDK_METADATA: Readonly<{
|
|
25
25
|
language: "typescript";
|
|
26
26
|
openapiDocVersion: "v1.0.0";
|
|
27
|
-
sdkVersion: "4.3.
|
|
28
|
-
genVersion: "2.272.
|
|
29
|
-
userAgent: "speakeasy-sdk/typescript 4.3.
|
|
27
|
+
sdkVersion: "4.3.1";
|
|
28
|
+
genVersion: "2.272.7";
|
|
29
|
+
userAgent: "speakeasy-sdk/typescript 4.3.1 2.272.7 v1.0.0 @leonardo-ai/sdk";
|
|
30
30
|
}>;
|
|
31
31
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
29
29
|
exports.SDK_METADATA = Object.freeze({
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "v1.0.0",
|
|
32
|
-
sdkVersion: "4.3.
|
|
33
|
-
genVersion: "2.272.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 4.3.
|
|
32
|
+
sdkVersion: "4.3.1",
|
|
33
|
+
genVersion: "2.272.7",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 4.3.1 2.272.7 v1.0.0 @leonardo-ai/sdk",
|
|
35
35
|
});
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
package/package.json
CHANGED
package/sdk/generation.d.ts
CHANGED
|
@@ -39,6 +39,13 @@ export declare class Generation extends ClientSDK {
|
|
|
39
39
|
* This endpoint returns all generations by a specific user
|
|
40
40
|
*/
|
|
41
41
|
getGenerationsByUserId(userId: string, limit?: number | undefined, offset?: number | undefined, options?: RequestOptions): Promise<operations.GetGenerationsByUserIdResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Create LCM Generation
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* This endpoint will generate a LCM image generation.
|
|
47
|
+
*/
|
|
48
|
+
postGenerationsLcm(input: operations.PostGenerationsLcmRequestBody | undefined, options?: RequestOptions): Promise<operations.PostGenerationsLcmResponse>;
|
|
42
49
|
/**
|
|
43
50
|
* Create SVD Motion Generation
|
|
44
51
|
*
|
|
@@ -53,5 +60,26 @@ export declare class Generation extends ClientSDK {
|
|
|
53
60
|
* This endpoint will generate a texture generation.
|
|
54
61
|
*/
|
|
55
62
|
postGenerationsTexture(input: operations.PostGenerationsTextureRequestBody | undefined, options?: RequestOptions): Promise<operations.PostGenerationsTextureResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Perform inpainting on a LCM image
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* This endpoint will perform a inpainting on a LCM image
|
|
68
|
+
*/
|
|
69
|
+
postLcmInpainting(input: operations.PostLcmInpaintingRequestBody | undefined, options?: RequestOptions): Promise<operations.PostLcmInpaintingResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Perform instant refine on a LCM image
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* This endpoint will perform instant refine on a LCM image
|
|
75
|
+
*/
|
|
76
|
+
postLcmInstantRefine(input: operations.PostLcmInstantRefineRequestBody | undefined, options?: RequestOptions): Promise<operations.PostLcmInstantRefineResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Perform Alchemy Upscale on a LCM image
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* This endpoint will perform Alchemy Upscale on a LCM image
|
|
82
|
+
*/
|
|
83
|
+
postLcmUpscale(input: operations.PostLcmUpscaleRequestBody | undefined, options?: RequestOptions): Promise<operations.PostLcmUpscaleResponse>;
|
|
56
84
|
}
|
|
57
85
|
//# sourceMappingURL=generation.d.ts.map
|
package/sdk/generation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/sdk/generation.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,UAAU,EAAwB,MAAM,eAAe,CAAC;AAI/E,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AAEvD,qBAAa,UAAW,SAAQ,SAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;gBAEjD,OAAO,GAAE,UAAe;IAwBpC;;;;;OAKG;IACG,gBAAgB,CAClB,KAAK,EAAE,UAAU,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAoE/C;;;;;OAKG;IACG,oBAAoB,CACtB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAyEnD;;;;;OAKG;IACG,0BAA0B,CAC5B,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,CAAC,qCAAqC,GAAG,SAAS,EAC1E,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IA2EzD;;;;;OAKG;IACG,iBAAiB,CACnB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAyEhD;;;;;OAKG;IACG,sBAAsB,CACxB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAmFrD;;;;;OAKG;IACG,wBAAwB,CAC1B,KAAK,EAAE,UAAU,CAAC,mCAAmC,GAAG,SAAS,EACjE,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAwEvD;;;;;OAKG;IACG,sBAAsB,CACxB,KAAK,EAAE,UAAU,CAAC,iCAAiC,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"generation.d.ts","sourceRoot":"","sources":["../src/sdk/generation.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,UAAU,EAAwB,MAAM,eAAe,CAAC;AAI/E,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AAEvD,qBAAa,UAAW,SAAQ,SAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoC;gBAEjD,OAAO,GAAE,UAAe;IAwBpC;;;;;OAKG;IACG,gBAAgB,CAClB,KAAK,EAAE,UAAU,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAoE/C;;;;;OAKG;IACG,oBAAoB,CACtB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAyEnD;;;;;OAKG;IACG,0BAA0B,CAC5B,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,CAAC,qCAAqC,GAAG,SAAS,EAC1E,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IA2EzD;;;;;OAKG;IACG,iBAAiB,CACnB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAyEhD;;;;;OAKG;IACG,sBAAsB,CACxB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAmFrD;;;;;OAKG;IACG,kBAAkB,CACpB,KAAK,EAAE,UAAU,CAAC,6BAA6B,GAAG,SAAS,EAC3D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAsEjD;;;;;OAKG;IACG,wBAAwB,CAC1B,KAAK,EAAE,UAAU,CAAC,mCAAmC,GAAG,SAAS,EACjE,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAwEvD;;;;;OAKG;IACG,sBAAsB,CACxB,KAAK,EAAE,UAAU,CAAC,iCAAiC,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAwErD;;;;;OAKG;IACG,iBAAiB,CACnB,KAAK,EAAE,UAAU,CAAC,4BAA4B,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAsEhD;;;;;OAKG;IACG,oBAAoB,CACtB,KAAK,EAAE,UAAU,CAAC,+BAA+B,GAAG,SAAS,EAC7D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAsEnD;;;;;OAKG;IACG,cAAc,CAChB,KAAK,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,EACvD,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAqEhD"}
|
package/sdk/generation.js
CHANGED
|
@@ -378,6 +378,64 @@ class Generation extends sdks_1.ClientSDK {
|
|
|
378
378
|
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Create LCM Generation
|
|
383
|
+
*
|
|
384
|
+
* @remarks
|
|
385
|
+
* This endpoint will generate a LCM image generation.
|
|
386
|
+
*/
|
|
387
|
+
async postGenerationsLcm(input, options) {
|
|
388
|
+
var _a;
|
|
389
|
+
const headers$ = new Headers();
|
|
390
|
+
headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
|
|
391
|
+
headers$.set("Content-Type", "application/json");
|
|
392
|
+
headers$.set("Accept", "application/json");
|
|
393
|
+
const payload$ = schemas$.parse(input, (value$) => operations.PostGenerationsLcmRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
|
|
394
|
+
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
395
|
+
const path$ = this.templateURLComponent("/generations-lcm")();
|
|
396
|
+
const query$ = "";
|
|
397
|
+
let security$;
|
|
398
|
+
if (typeof this.options$.bearerAuth === "function") {
|
|
399
|
+
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
400
|
+
}
|
|
401
|
+
else if (this.options$.bearerAuth) {
|
|
402
|
+
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
security$ = {};
|
|
406
|
+
}
|
|
407
|
+
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
408
|
+
const context = { operationID: "post_/generations-lcm" };
|
|
409
|
+
const doOptions = { context, errorCodes: [] };
|
|
410
|
+
const request = this.createRequest$({
|
|
411
|
+
security: securitySettings$,
|
|
412
|
+
method: "POST",
|
|
413
|
+
path: path$,
|
|
414
|
+
headers: headers$,
|
|
415
|
+
query: query$,
|
|
416
|
+
body: body$,
|
|
417
|
+
}, options);
|
|
418
|
+
const response = await this.do$(request, doOptions);
|
|
419
|
+
const responseFields$ = {
|
|
420
|
+
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
421
|
+
StatusCode: response.status,
|
|
422
|
+
RawResponse: response,
|
|
423
|
+
};
|
|
424
|
+
if (this.matchResponse(response, 200, "application/json")) {
|
|
425
|
+
const responseBody = await response.json();
|
|
426
|
+
const result = schemas$.parse(responseBody, (val$) => {
|
|
427
|
+
return operations.PostGenerationsLcmResponse$.inboundSchema.parse({
|
|
428
|
+
...responseFields$,
|
|
429
|
+
object: val$,
|
|
430
|
+
});
|
|
431
|
+
}, "Response validation failed");
|
|
432
|
+
return result;
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
const responseBody = await response.text();
|
|
436
|
+
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
381
439
|
/**
|
|
382
440
|
* Create SVD Motion Generation
|
|
383
441
|
*
|
|
@@ -498,6 +556,180 @@ class Generation extends sdks_1.ClientSDK {
|
|
|
498
556
|
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
|
499
557
|
}
|
|
500
558
|
}
|
|
559
|
+
/**
|
|
560
|
+
* Perform inpainting on a LCM image
|
|
561
|
+
*
|
|
562
|
+
* @remarks
|
|
563
|
+
* This endpoint will perform a inpainting on a LCM image
|
|
564
|
+
*/
|
|
565
|
+
async postLcmInpainting(input, options) {
|
|
566
|
+
var _a;
|
|
567
|
+
const headers$ = new Headers();
|
|
568
|
+
headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
|
|
569
|
+
headers$.set("Content-Type", "application/json");
|
|
570
|
+
headers$.set("Accept", "application/json");
|
|
571
|
+
const payload$ = schemas$.parse(input, (value$) => operations.PostLcmInpaintingRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
|
|
572
|
+
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
573
|
+
const path$ = this.templateURLComponent("/lcm-inpainting")();
|
|
574
|
+
const query$ = "";
|
|
575
|
+
let security$;
|
|
576
|
+
if (typeof this.options$.bearerAuth === "function") {
|
|
577
|
+
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
578
|
+
}
|
|
579
|
+
else if (this.options$.bearerAuth) {
|
|
580
|
+
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
security$ = {};
|
|
584
|
+
}
|
|
585
|
+
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
586
|
+
const context = { operationID: "post_/lcm-inpainting" };
|
|
587
|
+
const doOptions = { context, errorCodes: [] };
|
|
588
|
+
const request = this.createRequest$({
|
|
589
|
+
security: securitySettings$,
|
|
590
|
+
method: "POST",
|
|
591
|
+
path: path$,
|
|
592
|
+
headers: headers$,
|
|
593
|
+
query: query$,
|
|
594
|
+
body: body$,
|
|
595
|
+
}, options);
|
|
596
|
+
const response = await this.do$(request, doOptions);
|
|
597
|
+
const responseFields$ = {
|
|
598
|
+
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
599
|
+
StatusCode: response.status,
|
|
600
|
+
RawResponse: response,
|
|
601
|
+
};
|
|
602
|
+
if (this.matchResponse(response, 200, "application/json")) {
|
|
603
|
+
const responseBody = await response.json();
|
|
604
|
+
const result = schemas$.parse(responseBody, (val$) => {
|
|
605
|
+
return operations.PostLcmInpaintingResponse$.inboundSchema.parse({
|
|
606
|
+
...responseFields$,
|
|
607
|
+
object: val$,
|
|
608
|
+
});
|
|
609
|
+
}, "Response validation failed");
|
|
610
|
+
return result;
|
|
611
|
+
}
|
|
612
|
+
else {
|
|
613
|
+
const responseBody = await response.text();
|
|
614
|
+
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Perform instant refine on a LCM image
|
|
619
|
+
*
|
|
620
|
+
* @remarks
|
|
621
|
+
* This endpoint will perform instant refine on a LCM image
|
|
622
|
+
*/
|
|
623
|
+
async postLcmInstantRefine(input, options) {
|
|
624
|
+
var _a;
|
|
625
|
+
const headers$ = new Headers();
|
|
626
|
+
headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
|
|
627
|
+
headers$.set("Content-Type", "application/json");
|
|
628
|
+
headers$.set("Accept", "application/json");
|
|
629
|
+
const payload$ = schemas$.parse(input, (value$) => operations.PostLcmInstantRefineRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
|
|
630
|
+
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
631
|
+
const path$ = this.templateURLComponent("/lcm-instant-refine")();
|
|
632
|
+
const query$ = "";
|
|
633
|
+
let security$;
|
|
634
|
+
if (typeof this.options$.bearerAuth === "function") {
|
|
635
|
+
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
636
|
+
}
|
|
637
|
+
else if (this.options$.bearerAuth) {
|
|
638
|
+
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
security$ = {};
|
|
642
|
+
}
|
|
643
|
+
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
644
|
+
const context = { operationID: "post_/lcm-instant-refine" };
|
|
645
|
+
const doOptions = { context, errorCodes: [] };
|
|
646
|
+
const request = this.createRequest$({
|
|
647
|
+
security: securitySettings$,
|
|
648
|
+
method: "POST",
|
|
649
|
+
path: path$,
|
|
650
|
+
headers: headers$,
|
|
651
|
+
query: query$,
|
|
652
|
+
body: body$,
|
|
653
|
+
}, options);
|
|
654
|
+
const response = await this.do$(request, doOptions);
|
|
655
|
+
const responseFields$ = {
|
|
656
|
+
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
657
|
+
StatusCode: response.status,
|
|
658
|
+
RawResponse: response,
|
|
659
|
+
};
|
|
660
|
+
if (this.matchResponse(response, 200, "application/json")) {
|
|
661
|
+
const responseBody = await response.json();
|
|
662
|
+
const result = schemas$.parse(responseBody, (val$) => {
|
|
663
|
+
return operations.PostLcmInstantRefineResponse$.inboundSchema.parse({
|
|
664
|
+
...responseFields$,
|
|
665
|
+
object: val$,
|
|
666
|
+
});
|
|
667
|
+
}, "Response validation failed");
|
|
668
|
+
return result;
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
const responseBody = await response.text();
|
|
672
|
+
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Perform Alchemy Upscale on a LCM image
|
|
677
|
+
*
|
|
678
|
+
* @remarks
|
|
679
|
+
* This endpoint will perform Alchemy Upscale on a LCM image
|
|
680
|
+
*/
|
|
681
|
+
async postLcmUpscale(input, options) {
|
|
682
|
+
var _a;
|
|
683
|
+
const headers$ = new Headers();
|
|
684
|
+
headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
|
|
685
|
+
headers$.set("Content-Type", "application/json");
|
|
686
|
+
headers$.set("Accept", "application/json");
|
|
687
|
+
const payload$ = schemas$.parse(input, (value$) => operations.PostLcmUpscaleRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
|
|
688
|
+
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
689
|
+
const path$ = this.templateURLComponent("/lcm-upscale")();
|
|
690
|
+
const query$ = "";
|
|
691
|
+
let security$;
|
|
692
|
+
if (typeof this.options$.bearerAuth === "function") {
|
|
693
|
+
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
694
|
+
}
|
|
695
|
+
else if (this.options$.bearerAuth) {
|
|
696
|
+
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
security$ = {};
|
|
700
|
+
}
|
|
701
|
+
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
702
|
+
const context = { operationID: "post_/lcm-upscale" };
|
|
703
|
+
const doOptions = { context, errorCodes: [] };
|
|
704
|
+
const request = this.createRequest$({
|
|
705
|
+
security: securitySettings$,
|
|
706
|
+
method: "POST",
|
|
707
|
+
path: path$,
|
|
708
|
+
headers: headers$,
|
|
709
|
+
query: query$,
|
|
710
|
+
body: body$,
|
|
711
|
+
}, options);
|
|
712
|
+
const response = await this.do$(request, doOptions);
|
|
713
|
+
const responseFields$ = {
|
|
714
|
+
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
715
|
+
StatusCode: response.status,
|
|
716
|
+
RawResponse: response,
|
|
717
|
+
};
|
|
718
|
+
if (this.matchResponse(response, 200, "application/json")) {
|
|
719
|
+
const responseBody = await response.json();
|
|
720
|
+
const result = schemas$.parse(responseBody, (val$) => {
|
|
721
|
+
return operations.PostLcmUpscaleResponse$.inboundSchema.parse({
|
|
722
|
+
...responseFields$,
|
|
723
|
+
object: val$,
|
|
724
|
+
});
|
|
725
|
+
}, "Response validation failed");
|
|
726
|
+
return result;
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
const responseBody = await response.text();
|
|
730
|
+
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
501
733
|
}
|
|
502
734
|
exports.Generation = Generation;
|
|
503
735
|
//# sourceMappingURL=generation.js.map
|