@leonardo-ai/sdk 2.1.3 → 2.2.0

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 (63) hide show
  1. package/README.md +49 -56
  2. package/dist/sdk/models/operations/createdataset.d.ts +1 -1
  3. package/dist/sdk/models/operations/creategeneration.d.ts +1 -1
  4. package/dist/sdk/models/operations/createmodel.d.ts +1 -1
  5. package/dist/sdk/models/operations/createvariationnobg.d.ts +1 -1
  6. package/dist/sdk/models/operations/createvariationupscale.d.ts +1 -1
  7. package/dist/sdk/models/operations/deletedatasetbyid.d.ts +1 -1
  8. package/dist/sdk/models/operations/deletegenerationbyid.d.ts +1 -1
  9. package/dist/sdk/models/operations/deletegenerationstextureid.d.ts +1 -1
  10. package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +1 -1
  11. package/dist/sdk/models/operations/deletemodelbyid.d.ts +1 -1
  12. package/dist/sdk/models/operations/deletemodels3did.d.ts +1 -1
  13. package/dist/sdk/models/operations/getdatasetbyid.d.ts +1 -1
  14. package/dist/sdk/models/operations/getelements.d.ts +1 -1
  15. package/dist/sdk/models/operations/getgenerationbyid.d.ts +1 -1
  16. package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +1 -1
  17. package/dist/sdk/models/operations/getinitimagebyid.d.ts +1 -1
  18. package/dist/sdk/models/operations/getmodelbyid.d.ts +1 -1
  19. package/dist/sdk/models/operations/getplatformmodels.d.ts +1 -1
  20. package/dist/sdk/models/operations/getuserself.d.ts +1 -1
  21. package/dist/sdk/models/operations/getvariationbyid.d.ts +1 -1
  22. package/dist/sdk/models/operations/postgenerationstexture.d.ts +1 -1
  23. package/dist/sdk/models/operations/postmodels3dupload.d.ts +1 -1
  24. package/dist/sdk/models/operations/postvariationsunzoom.d.ts +1 -1
  25. package/dist/sdk/models/operations/uploaddatasetimage.d.ts +1 -1
  26. package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +1 -1
  27. package/dist/sdk/models/operations/uploadinitimage.d.ts +1 -1
  28. package/dist/sdk/sdk.js +3 -3
  29. package/docs/sdk/models/operations/createdatasetresponse.md +1 -1
  30. package/docs/sdk/models/operations/creategenerationresponse.md +1 -1
  31. package/docs/sdk/models/operations/createmodelresponse.md +1 -1
  32. package/docs/sdk/models/operations/createvariationnobgresponse.md +1 -1
  33. package/docs/sdk/models/operations/createvariationupscaleresponse.md +1 -1
  34. package/docs/sdk/models/operations/deletedatasetbyidresponse.md +1 -1
  35. package/docs/sdk/models/operations/deletegenerationbyidresponse.md +1 -1
  36. package/docs/sdk/models/operations/deletegenerationstextureidresponse.md +1 -1
  37. package/docs/sdk/models/operations/deleteinitimagebyidresponse.md +1 -1
  38. package/docs/sdk/models/operations/deletemodelbyidresponse.md +1 -1
  39. package/docs/sdk/models/operations/deletemodels3didresponse.md +1 -1
  40. package/docs/sdk/models/operations/getdatasetbyidresponse.md +1 -1
  41. package/docs/sdk/models/operations/getelementsresponse.md +1 -1
  42. package/docs/sdk/models/operations/getgenerationbyidresponse.md +1 -1
  43. package/docs/sdk/models/operations/getgenerationsbyuseridresponse.md +1 -1
  44. package/docs/sdk/models/operations/getinitimagebyidresponse.md +1 -1
  45. package/docs/sdk/models/operations/getmodelbyidresponse.md +1 -1
  46. package/docs/sdk/models/operations/getplatformmodelsresponse.md +1 -1
  47. package/docs/sdk/models/operations/getuserselfresponse.md +1 -1
  48. package/docs/sdk/models/operations/getvariationbyidresponse.md +1 -1
  49. package/docs/sdk/models/operations/postgenerationstextureresponse.md +1 -1
  50. package/docs/sdk/models/operations/postmodels3duploadresponse.md +1 -1
  51. package/docs/sdk/models/operations/postvariationsunzoomresponse.md +1 -1
  52. package/docs/sdk/models/operations/uploaddatasetimagefromgenresponse.md +1 -1
  53. package/docs/sdk/models/operations/uploaddatasetimageresponse.md +1 -1
  54. package/docs/sdk/models/operations/uploadinitimageresponse.md +1 -1
  55. package/docs/sdk/models/shared/security.md +3 -3
  56. package/docs/sdks/dataset/README.md +35 -25
  57. package/docs/sdks/element/README.md +5 -3
  58. package/docs/sdks/generation/README.md +35 -23
  59. package/docs/sdks/initimage/README.md +15 -9
  60. package/docs/sdks/model/README.md +35 -23
  61. package/docs/sdks/user/README.md +5 -3
  62. package/docs/sdks/variation/README.md +20 -12
  63. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <a href="https://codespaces.new/Leonardo-Interactive/leonardo-ts-sdk.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
9
9
  </div>
10
10
 
11
- <!-- Start SDK Installation -->
11
+ <!-- Start SDK Installation [installation] -->
12
12
  ## SDK Installation
13
13
 
14
14
  ### NPM
@@ -22,22 +22,23 @@ npm add @leonardo-ai/sdk
22
22
  ```bash
23
23
  yarn add @leonardo-ai/sdk
24
24
  ```
25
- <!-- End SDK Installation -->
25
+ <!-- End SDK Installation [installation] -->
26
26
 
27
27
  ## Authentication
28
28
 
29
29
  To get access to the API and fetch an API key, please sign up for [access](https://leonardo.ai/).
30
30
 
31
+ <!-- Start SDK Example Usage [usage] -->
31
32
  ## SDK Example Usage
32
- <!-- Start SDK Example Usage -->
33
+
33
34
  ### Example
34
35
 
35
36
  ```typescript
36
37
  import { Leonardo } from "@leonardo-ai/sdk";
37
38
 
38
- (async () => {
39
+ async function run() {
39
40
  const sdk = new Leonardo({
40
- bearerAuth: "",
41
+ bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
41
42
  });
42
43
 
43
44
  const res = await sdk.dataset.createDataset({
@@ -47,15 +48,16 @@ import { Leonardo } from "@leonardo-ai/sdk";
47
48
  if (res.statusCode == 200) {
48
49
  // handle response
49
50
  }
50
- })();
51
+ }
52
+
53
+ run();
51
54
 
52
55
  ```
53
- <!-- End SDK Example Usage -->
56
+ <!-- End SDK Example Usage [usage] -->
54
57
 
55
- <!-- Start SDK Available Operations -->
58
+ <!-- Start Available Resources and Operations [operations] -->
56
59
  ## Available Resources and Operations
57
60
 
58
-
59
61
  ### [dataset](docs/sdks/dataset/README.md)
60
62
 
61
63
  * [createDataset](docs/sdks/dataset/README.md#createdataset) - Create a Dataset
@@ -102,37 +104,15 @@ import { Leonardo } from "@leonardo-ai/sdk";
102
104
  * [createVariationUpscale](docs/sdks/variation/README.md#createvariationupscale) - Create upscale
103
105
  * [getVariationById](docs/sdks/variation/README.md#getvariationbyid) - Get variation by ID
104
106
  * [postVariationsUnzoom](docs/sdks/variation/README.md#postvariationsunzoom) - Create unzoom
105
- <!-- End SDK Available Operations -->
106
-
107
-
108
-
109
- <!-- Start Dev Containers -->
110
- # Dev Containers
111
- <div align="left">
112
- <a href="https://codespaces.new/Leonardo-Interactive/leonardo-ts-sdk.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
113
-
114
- </div>
115
-
116
- Experience our SDK in an enhanced sandbox environment. Try it now in **GitHub Codespaces**!
107
+ <!-- End Available Resources and Operations [operations] -->
117
108
 
118
- * [Explore Dev Containers](.devcontainer/README.md)
119
- <!-- End Dev Containers -->
120
109
 
121
110
 
122
111
 
123
- <!-- Start Pagination -->
124
- # Pagination
125
112
 
126
- Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
127
- returned response object will have a `next` method that can be called to pull down the next group of results. If the
128
- return value of `next` is `null`, then there are no more pages to be fetched.
129
113
 
130
- Here's an example of one such pagination call:
131
- <!-- End Pagination -->
132
114
 
133
-
134
-
135
- <!-- Start Error Handling -->
115
+ <!-- Start Error Handling [errors] -->
136
116
  ## Error Handling
137
117
 
138
118
  Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type.
@@ -146,9 +126,9 @@ Example
146
126
  ```typescript
147
127
  import { Leonardo } from "@leonardo-ai/sdk";
148
128
 
149
- (async () => {
129
+ async function run() {
150
130
  const sdk = new Leonardo({
151
- bearerAuth: "",
131
+ bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
152
132
  });
153
133
 
154
134
  let res;
@@ -156,28 +136,35 @@ import { Leonardo } from "@leonardo-ai/sdk";
156
136
  res = await sdk.dataset.createDataset({
157
137
  name: "string",
158
138
  });
159
- } catch (e) {}
139
+ } catch (err) {
140
+ if (err instanceof errors.SDKError) {
141
+ console.error(err); // handle exception
142
+ throw err;
143
+ }
144
+ }
160
145
 
161
146
  if (res.statusCode == 200) {
162
147
  // handle response
163
148
  }
164
- })();
149
+ }
150
+
151
+ run();
165
152
 
166
153
  ```
167
- <!-- End Error Handling -->
154
+ <!-- End Error Handling [errors] -->
168
155
 
169
156
 
170
157
 
171
- <!-- Start Custom HTTP Client -->
158
+ <!-- Start Custom HTTP Client [http-client] -->
172
159
  ## Custom HTTP Client
173
160
 
174
- The Typescript SDK makes API calls using the (axios)[https://axios-http.com/docs/intro] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `AxiosInstance` object.
161
+ The Typescript SDK makes API calls using the [axios](https://axios-http.com/docs/intro) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `AxiosInstance` object.
175
162
 
176
163
  For example, you could specify a header for every request that your sdk makes as follows:
177
164
 
178
165
  ```typescript
179
- from @leonardo-ai/sdk import Leonardo;
180
- import axios;
166
+ import { @leonardo-ai/sdk } from "Leonardo";
167
+ import axios from "axios";
181
168
 
182
169
  const httpClient = axios.create({
183
170
  headers: {'x-custom-header': 'someValue'}
@@ -185,11 +172,11 @@ const httpClient = axios.create({
185
172
 
186
173
  const sdk = new Leonardo({defaultClient: httpClient});
187
174
  ```
188
- <!-- End Custom HTTP Client -->
175
+ <!-- End Custom HTTP Client [http-client] -->
189
176
 
190
177
 
191
178
 
192
- <!-- Start Server Selection -->
179
+ <!-- Start Server Selection [server] -->
193
180
  ## Server Selection
194
181
 
195
182
  ### Select Server by Index
@@ -205,10 +192,10 @@ You can override the default server globally by passing a server index to the `s
205
192
  ```typescript
206
193
  import { Leonardo } from "@leonardo-ai/sdk";
207
194
 
208
- (async () => {
195
+ async function run() {
209
196
  const sdk = new Leonardo({
210
197
  serverIdx: 0,
211
- bearerAuth: "",
198
+ bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
212
199
  });
213
200
 
214
201
  const res = await sdk.dataset.createDataset({
@@ -218,7 +205,9 @@ import { Leonardo } from "@leonardo-ai/sdk";
218
205
  if (res.statusCode == 200) {
219
206
  // handle response
220
207
  }
221
- })();
208
+ }
209
+
210
+ run();
222
211
 
223
212
  ```
224
213
 
@@ -229,10 +218,10 @@ The default server can also be overridden globally by passing a URL to the `serv
229
218
  ```typescript
230
219
  import { Leonardo } from "@leonardo-ai/sdk";
231
220
 
232
- (async () => {
221
+ async function run() {
233
222
  const sdk = new Leonardo({
234
223
  serverURL: "https://cloud.leonardo.ai/api/rest/v1",
235
- bearerAuth: "",
224
+ bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
236
225
  });
237
226
 
238
227
  const res = await sdk.dataset.createDataset({
@@ -242,14 +231,16 @@ import { Leonardo } from "@leonardo-ai/sdk";
242
231
  if (res.statusCode == 200) {
243
232
  // handle response
244
233
  }
245
- })();
234
+ }
235
+
236
+ run();
246
237
 
247
238
  ```
248
- <!-- End Server Selection -->
239
+ <!-- End Server Selection [server] -->
249
240
 
250
241
 
251
242
 
252
- <!-- Start Authentication -->
243
+ <!-- Start Authentication [security] -->
253
244
  ## Authentication
254
245
 
255
246
  ### Per-Client Security Schemes
@@ -264,9 +255,9 @@ To authenticate with the API the `bearerAuth` parameter must be set when initial
264
255
  ```typescript
265
256
  import { Leonardo } from "@leonardo-ai/sdk";
266
257
 
267
- (async () => {
258
+ async function run() {
268
259
  const sdk = new Leonardo({
269
- bearerAuth: "",
260
+ bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
270
261
  });
271
262
 
272
263
  const res = await sdk.dataset.createDataset({
@@ -276,10 +267,12 @@ import { Leonardo } from "@leonardo-ai/sdk";
276
267
  if (res.statusCode == 200) {
277
268
  // handle response
278
269
  }
279
- })();
270
+ }
271
+
272
+ run();
280
273
 
281
274
  ```
282
- <!-- End Authentication -->
275
+ <!-- End Authentication [security] -->
283
276
 
284
277
  <!-- Placeholder for Future Speakeasy SDK Sections -->
285
278
 
@@ -40,7 +40,7 @@ export declare class CreateDatasetResponse extends SpeakeasyBase {
40
40
  /**
41
41
  * Raw HTTP response; suitable for custom response parsing
42
42
  */
43
- rawResponse?: AxiosResponse;
43
+ rawResponse: AxiosResponse;
44
44
  /**
45
45
  * Responses for POST /datasets
46
46
  */
@@ -167,7 +167,7 @@ export declare class CreateGenerationResponse extends SpeakeasyBase {
167
167
  /**
168
168
  * Raw HTTP response; suitable for custom response parsing
169
169
  */
170
- rawResponse?: AxiosResponse;
170
+ rawResponse: AxiosResponse;
171
171
  /**
172
172
  * Responses for POST /generations
173
173
  */
@@ -67,7 +67,7 @@ export declare class CreateModelResponse extends SpeakeasyBase {
67
67
  /**
68
68
  * Raw HTTP response; suitable for custom response parsing
69
69
  */
70
- rawResponse?: AxiosResponse;
70
+ rawResponse: AxiosResponse;
71
71
  /**
72
72
  * Responses for POST /models
73
73
  */
@@ -32,7 +32,7 @@ export declare class CreateVariationNoBGResponse extends SpeakeasyBase {
32
32
  /**
33
33
  * Raw HTTP response; suitable for custom response parsing
34
34
  */
35
- rawResponse?: AxiosResponse;
35
+ rawResponse: AxiosResponse;
36
36
  /**
37
37
  * Responses for POST /variations/nobg
38
38
  */
@@ -31,7 +31,7 @@ export declare class CreateVariationUpscaleResponse extends SpeakeasyBase {
31
31
  /**
32
32
  * Raw HTTP response; suitable for custom response parsing
33
33
  */
34
- rawResponse?: AxiosResponse;
34
+ rawResponse: AxiosResponse;
35
35
  /**
36
36
  * Responses for POST /variations/upscale
37
37
  */
@@ -33,7 +33,7 @@ export declare class DeleteDatasetByIdResponse extends SpeakeasyBase {
33
33
  /**
34
34
  * Raw HTTP response; suitable for custom response parsing
35
35
  */
36
- rawResponse?: AxiosResponse;
36
+ rawResponse: AxiosResponse;
37
37
  /**
38
38
  * Responses for DELETE /datasets/{id}
39
39
  */
@@ -33,7 +33,7 @@ export declare class DeleteGenerationByIdResponse extends SpeakeasyBase {
33
33
  /**
34
34
  * Raw HTTP response; suitable for custom response parsing
35
35
  */
36
- rawResponse?: AxiosResponse;
36
+ rawResponse: AxiosResponse;
37
37
  /**
38
38
  * Responses for DELETE /generations/{id}
39
39
  */
@@ -43,7 +43,7 @@ export declare class DeleteGenerationsTextureIdResponse extends SpeakeasyBase {
43
43
  /**
44
44
  * Raw HTTP response; suitable for custom response parsing
45
45
  */
46
- rawResponse?: AxiosResponse;
46
+ rawResponse: AxiosResponse;
47
47
  /**
48
48
  * Responses for DELETE /api/rest/v1/generations-texture/{id}
49
49
  */
@@ -33,7 +33,7 @@ export declare class DeleteInitImageByIdResponse extends SpeakeasyBase {
33
33
  /**
34
34
  * Raw HTTP response; suitable for custom response parsing
35
35
  */
36
- rawResponse?: AxiosResponse;
36
+ rawResponse: AxiosResponse;
37
37
  /**
38
38
  * Responses for DELETE /init-image/{id}
39
39
  */
@@ -33,7 +33,7 @@ export declare class DeleteModelByIdResponse extends SpeakeasyBase {
33
33
  /**
34
34
  * Raw HTTP response; suitable for custom response parsing
35
35
  */
36
- rawResponse?: AxiosResponse;
36
+ rawResponse: AxiosResponse;
37
37
  /**
38
38
  * Responses for DELETE /models/{id}
39
39
  */
@@ -43,7 +43,7 @@ export declare class DeleteModels3dIdResponse extends SpeakeasyBase {
43
43
  /**
44
44
  * Raw HTTP response; suitable for custom response parsing
45
45
  */
46
- rawResponse?: AxiosResponse;
46
+ rawResponse: AxiosResponse;
47
47
  /**
48
48
  * Responses for DELETE /api/rest/v1/models-3d/{id}
49
49
  */
@@ -46,7 +46,7 @@ export declare class GetDatasetByIdResponse extends SpeakeasyBase {
46
46
  /**
47
47
  * Raw HTTP response; suitable for custom response parsing
48
48
  */
49
- rawResponse?: AxiosResponse;
49
+ rawResponse: AxiosResponse;
50
50
  /**
51
51
  * Responses for GET /datasets/{id}
52
52
  */
@@ -60,7 +60,7 @@ export declare class GetElementsResponse extends SpeakeasyBase {
60
60
  /**
61
61
  * Raw HTTP response; suitable for custom response parsing
62
62
  */
63
- rawResponse?: AxiosResponse;
63
+ rawResponse: AxiosResponse;
64
64
  /**
65
65
  * Responses for GET /api/rest/v1/elements
66
66
  */
@@ -156,7 +156,7 @@ export declare class GetGenerationByIdResponse extends SpeakeasyBase {
156
156
  /**
157
157
  * Raw HTTP response; suitable for custom response parsing
158
158
  */
159
- rawResponse?: AxiosResponse;
159
+ rawResponse: AxiosResponse;
160
160
  /**
161
161
  * Responses for GET /generations/{id}
162
162
  */
@@ -152,7 +152,7 @@ export declare class GetGenerationsByUserIdResponse extends SpeakeasyBase {
152
152
  /**
153
153
  * Raw HTTP response; suitable for custom response parsing
154
154
  */
155
- rawResponse?: AxiosResponse;
155
+ rawResponse: AxiosResponse;
156
156
  /**
157
157
  * Responses for GET /generations/user/{userId}
158
158
  */
@@ -35,7 +35,7 @@ export declare class GetInitImageByIdResponse extends SpeakeasyBase {
35
35
  /**
36
36
  * Raw HTTP response; suitable for custom response parsing
37
37
  */
38
- rawResponse?: AxiosResponse;
38
+ rawResponse: AxiosResponse;
39
39
  /**
40
40
  * Responses for GET /init-image/{id}
41
41
  */
@@ -54,7 +54,7 @@ export declare class GetModelByIdResponse extends SpeakeasyBase {
54
54
  /**
55
55
  * Raw HTTP response; suitable for custom response parsing
56
56
  */
57
- rawResponse?: AxiosResponse;
57
+ rawResponse: AxiosResponse;
58
58
  /**
59
59
  * Responses for GET /models/{id}
60
60
  */
@@ -43,7 +43,7 @@ export declare class GetPlatformModelsResponse extends SpeakeasyBase {
43
43
  /**
44
44
  * Raw HTTP response; suitable for custom response parsing
45
45
  */
46
- rawResponse?: AxiosResponse;
46
+ rawResponse: AxiosResponse;
47
47
  /**
48
48
  * Responses for GET /api/rest/v1/platformModels
49
49
  */
@@ -39,7 +39,7 @@ export declare class GetUserSelfResponse extends SpeakeasyBase {
39
39
  /**
40
40
  * Raw HTTP response; suitable for custom response parsing
41
41
  */
42
- rawResponse?: AxiosResponse;
42
+ rawResponse: AxiosResponse;
43
43
  /**
44
44
  * Responses for GET /me
45
45
  */
@@ -41,7 +41,7 @@ export declare class GetVariationByIdResponse extends SpeakeasyBase {
41
41
  /**
42
42
  * Raw HTTP response; suitable for custom response parsing
43
43
  */
44
- rawResponse?: AxiosResponse;
44
+ rawResponse: AxiosResponse;
45
45
  /**
46
46
  * Responses for GET /variations/{id}
47
47
  */
@@ -38,7 +38,7 @@ export declare class PostGenerationsTextureResponse extends SpeakeasyBase {
38
38
  /**
39
39
  * Raw HTTP response; suitable for custom response parsing
40
40
  */
41
- rawResponse?: AxiosResponse;
41
+ rawResponse: AxiosResponse;
42
42
  /**
43
43
  * Responses for POST /api/rest/v1/generations-texture
44
44
  */
@@ -31,7 +31,7 @@ export declare class PostModels3dUploadResponse extends SpeakeasyBase {
31
31
  /**
32
32
  * Raw HTTP response; suitable for custom response parsing
33
33
  */
34
- rawResponse?: AxiosResponse;
34
+ rawResponse: AxiosResponse;
35
35
  /**
36
36
  * Responses for POST /api/rest/v1/models-3d/upload
37
37
  */
@@ -32,7 +32,7 @@ export declare class PostVariationsUnzoomResponse extends SpeakeasyBase {
32
32
  /**
33
33
  * Raw HTTP response; suitable for custom response parsing
34
34
  */
35
- rawResponse?: AxiosResponse;
35
+ rawResponse: AxiosResponse;
36
36
  /**
37
37
  * Responses for POST /api/rest/v1/variations/unzoom
38
38
  */
@@ -43,7 +43,7 @@ export declare class UploadDatasetImageResponse extends SpeakeasyBase {
43
43
  /**
44
44
  * Raw HTTP response; suitable for custom response parsing
45
45
  */
46
- rawResponse?: AxiosResponse;
46
+ rawResponse: AxiosResponse;
47
47
  /**
48
48
  * Responses for POST /datasets/{datasetId}/upload
49
49
  */
@@ -40,7 +40,7 @@ export declare class UploadDatasetImageFromGenResponse extends SpeakeasyBase {
40
40
  /**
41
41
  * Raw HTTP response; suitable for custom response parsing
42
42
  */
43
- rawResponse?: AxiosResponse;
43
+ rawResponse: AxiosResponse;
44
44
  /**
45
45
  * Responses for POST /datasets/{datasetId}/upload/gen
46
46
  */
@@ -33,7 +33,7 @@ export declare class UploadInitImageResponse extends SpeakeasyBase {
33
33
  /**
34
34
  * Raw HTTP response; suitable for custom response parsing
35
35
  */
36
- rawResponse?: AxiosResponse;
36
+ rawResponse: AxiosResponse;
37
37
  /**
38
38
  * Responses for POST /init-image
39
39
  */
package/dist/sdk/sdk.js CHANGED
@@ -52,9 +52,9 @@ var SDKConfiguration = /** @class */ (function () {
52
52
  function SDKConfiguration(init) {
53
53
  this.language = "typescript";
54
54
  this.openapiDocVersion = "v1.0.0";
55
- this.sdkVersion = "2.1.3";
56
- this.genVersion = "2.191.3";
57
- this.userAgent = "speakeasy-sdk/typescript 2.1.3 2.191.3 v1.0.0 @leonardo-ai/sdk";
55
+ this.sdkVersion = "2.2.0";
56
+ this.genVersion = "2.213.3";
57
+ this.userAgent = "speakeasy-sdk/typescript 2.2.0 2.213.3 v1.0.0 @leonardo-ai/sdk";
58
58
  Object.assign(this, init);
59
59
  }
60
60
  return SDKConfiguration;
@@ -7,5 +7,5 @@
7
7
  | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.CreateDatasetResponseBody](../../../sdk/models/operations/createdatasetresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets |
@@ -7,5 +7,5 @@
7
7
  | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.CreateGenerationResponseBody](../../../sdk/models/operations/creategenerationresponsebody.md) | :heavy_minus_sign: | Responses for POST /generations |
@@ -7,5 +7,5 @@
7
7
  | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.CreateModelResponseBody](../../../sdk/models/operations/createmodelresponsebody.md) | :heavy_minus_sign: | Responses for POST /models |
@@ -7,5 +7,5 @@
7
7
  | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.CreateVariationNoBGResponseBody](../../../sdk/models/operations/createvariationnobgresponsebody.md) | :heavy_minus_sign: | Responses for POST /variations/nobg |
@@ -7,5 +7,5 @@
7
7
  | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.CreateVariationUpscaleResponseBody](../../../sdk/models/operations/createvariationupscaleresponsebody.md) | :heavy_minus_sign: | Responses for POST /variations/upscale |
@@ -7,5 +7,5 @@
7
7
  | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.DeleteDatasetByIdResponseBody](../../../sdk/models/operations/deletedatasetbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /datasets/{id} |
@@ -7,5 +7,5 @@
7
7
  | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.DeleteGenerationByIdResponseBody](../../../sdk/models/operations/deletegenerationbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /generations/{id} |
@@ -7,5 +7,5 @@
7
7
  | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
8
8
  | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
9
9
  | `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
10
- | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
10
+ | `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11
11
  | `object` | [operations.DeleteGenerationsTextureIdResponseBody](../../../sdk/models/operations/deletegenerationstextureidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /api/rest/v1/generations-texture/{id} |