@leonardo-ai/sdk 1.64.2 → 2.0.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 (190) hide show
  1. package/README.md +69 -10
  2. package/dist/sdk/dataset.js +5 -5
  3. package/dist/sdk/element.js +1 -1
  4. package/dist/sdk/generation.js +6 -6
  5. package/dist/sdk/initimage.js +3 -3
  6. package/dist/sdk/model.js +6 -6
  7. package/dist/sdk/models/operations/createdataset.d.ts +4 -4
  8. package/dist/sdk/models/operations/createdataset.js +17 -17
  9. package/dist/sdk/models/operations/creategeneration.d.ts +7 -7
  10. package/dist/sdk/models/operations/creategeneration.js +18 -18
  11. package/dist/sdk/models/operations/createmodel.d.ts +4 -4
  12. package/dist/sdk/models/operations/createmodel.js +18 -18
  13. package/dist/sdk/models/operations/createvariationnobg.d.ts +4 -4
  14. package/dist/sdk/models/operations/createvariationnobg.js +18 -18
  15. package/dist/sdk/models/operations/createvariationupscale.d.ts +4 -4
  16. package/dist/sdk/models/operations/createvariationupscale.js +18 -18
  17. package/dist/sdk/models/operations/deletedatasetbyid.d.ts +4 -4
  18. package/dist/sdk/models/operations/deletedatasetbyid.js +17 -17
  19. package/dist/sdk/models/operations/deletegenerationbyid.d.ts +4 -4
  20. package/dist/sdk/models/operations/deletegenerationbyid.js +17 -17
  21. package/dist/sdk/models/operations/deletegenerationstextureid.d.ts +4 -4
  22. package/dist/sdk/models/operations/deletegenerationstextureid.js +17 -17
  23. package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +4 -4
  24. package/dist/sdk/models/operations/deleteinitimagebyid.js +17 -17
  25. package/dist/sdk/models/operations/deletemodelbyid.d.ts +4 -4
  26. package/dist/sdk/models/operations/deletemodelbyid.js +17 -17
  27. package/dist/sdk/models/operations/deletemodels3did.d.ts +4 -4
  28. package/dist/sdk/models/operations/deletemodels3did.js +17 -17
  29. package/dist/sdk/models/operations/getdatasetbyid.d.ts +6 -6
  30. package/dist/sdk/models/operations/getdatasetbyid.js +32 -32
  31. package/dist/sdk/models/operations/getelements.d.ts +4 -4
  32. package/dist/sdk/models/operations/getelements.js +25 -25
  33. package/dist/sdk/models/operations/getgenerationbyid.d.ts +13 -13
  34. package/dist/sdk/models/operations/getgenerationbyid.js +87 -93
  35. package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +13 -13
  36. package/dist/sdk/models/operations/getgenerationsbyuserid.js +87 -95
  37. package/dist/sdk/models/operations/getinitimagebyid.d.ts +4 -4
  38. package/dist/sdk/models/operations/getinitimagebyid.js +19 -19
  39. package/dist/sdk/models/operations/getmodelbyid.d.ts +4 -4
  40. package/dist/sdk/models/operations/getmodelbyid.js +28 -28
  41. package/dist/sdk/models/operations/getplatformmodels.d.ts +6 -6
  42. package/dist/sdk/models/operations/getplatformmodels.js +31 -31
  43. package/dist/sdk/models/operations/getuserself.d.ts +6 -6
  44. package/dist/sdk/models/operations/getuserself.js +31 -31
  45. package/dist/sdk/models/operations/getvariationbyid.d.ts +4 -4
  46. package/dist/sdk/models/operations/getvariationbyid.js +21 -23
  47. package/dist/sdk/models/operations/postgenerationstexture.d.ts +4 -4
  48. package/dist/sdk/models/operations/postgenerationstexture.js +18 -18
  49. package/dist/sdk/models/operations/postmodels3dupload.d.ts +4 -4
  50. package/dist/sdk/models/operations/postmodels3dupload.js +20 -20
  51. package/dist/sdk/models/operations/postvariationsunzoom.d.ts +4 -4
  52. package/dist/sdk/models/operations/postvariationsunzoom.js +18 -18
  53. package/dist/sdk/models/operations/uploaddatasetimage.d.ts +4 -4
  54. package/dist/sdk/models/operations/uploaddatasetimage.js +20 -20
  55. package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +4 -4
  56. package/dist/sdk/models/operations/uploaddatasetimagefromgen.js +17 -17
  57. package/dist/sdk/models/operations/uploadinitimage.d.ts +4 -4
  58. package/dist/sdk/models/operations/uploadinitimage.js +20 -20
  59. package/dist/sdk/sdk.js +3 -3
  60. package/dist/sdk/user.js +1 -1
  61. package/dist/sdk/variation.js +4 -4
  62. package/docs/models/operations/createdatasetresponse.md +6 -6
  63. package/docs/models/operations/createdatasetresponsebody.md +10 -0
  64. package/docs/models/operations/creategenerationrequestbody.md +3 -3
  65. package/docs/models/operations/creategenerationresponse.md +6 -6
  66. package/docs/models/operations/creategenerationresponsebody.md +10 -0
  67. package/docs/models/operations/createmodelresponse.md +6 -6
  68. package/docs/models/operations/createmodelresponsebody.md +10 -0
  69. package/docs/models/operations/createvariationnobgresponse.md +6 -6
  70. package/docs/models/operations/createvariationnobgresponsebody.md +10 -0
  71. package/docs/models/operations/createvariationupscaleresponse.md +6 -6
  72. package/docs/models/operations/{getdatasetbyid200applicationjson.md → createvariationupscaleresponsebody.md} +3 -3
  73. package/docs/models/operations/{createvariationupscale200applicationjsonsdupscalejoboutput.md → createvariationupscalesdupscalejoboutput.md} +1 -1
  74. package/docs/models/operations/{deletemodelbyid200applicationjsoncustommodels.md → custommodels.md} +1 -1
  75. package/docs/models/operations/{uploaddatasetimagefromgen200applicationjsondatasetgenuploadoutput.md → datasetgenuploadoutput.md} +1 -1
  76. package/docs/models/operations/{getdatasetbyid200applicationjsondatasetsdatasetimages.md → datasetimages.md} +1 -1
  77. package/docs/models/operations/{createdataset200applicationjsondatasets.md → datasets.md} +1 -1
  78. package/docs/models/operations/{uploadinitimage200applicationjsoninitimageuploadoutput.md → datasetuploadoutput.md} +1 -1
  79. package/docs/models/operations/{deletedatasetbyid200applicationjsondatasets.md → deletedatasetbyiddatasets.md} +1 -1
  80. package/docs/models/operations/deletedatasetbyidresponse.md +6 -6
  81. package/docs/models/operations/deletedatasetbyidresponsebody.md +10 -0
  82. package/docs/models/operations/deletegenerationbyidresponse.md +6 -6
  83. package/docs/models/operations/deletegenerationbyidresponsebody.md +10 -0
  84. package/docs/models/operations/deletegenerationstextureidresponse.md +6 -6
  85. package/docs/models/operations/deletegenerationstextureidresponsebody.md +10 -0
  86. package/docs/models/operations/deleteinitimagebyidresponse.md +6 -6
  87. package/docs/models/operations/deleteinitimagebyidresponsebody.md +10 -0
  88. package/docs/models/operations/deletemodelbyidresponse.md +6 -6
  89. package/docs/models/operations/deletemodelbyidresponsebody.md +10 -0
  90. package/docs/models/operations/deletemodels3didresponse.md +6 -6
  91. package/docs/models/operations/deletemodels3didresponsebody.md +10 -0
  92. package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgenerationelementsloras.md → elements.md} +1 -1
  93. package/docs/models/operations/generatedimages.md +14 -0
  94. package/docs/models/operations/{getvariationbyid200applicationjsongeneratedimagevariationgeneric.md → generatedimagevariationgeneric.md} +1 -1
  95. package/docs/models/operations/generationelements.md +12 -0
  96. package/docs/models/operations/{deletegenerationbyid200applicationjsongenerations.md → generations.md} +1 -1
  97. package/docs/models/operations/getdatasetbyiddatasets.md +15 -0
  98. package/docs/models/operations/getdatasetbyidresponse.md +6 -6
  99. package/docs/models/operations/getdatasetbyidresponsebody.md +10 -0
  100. package/docs/models/operations/getelementsresponse.md +6 -6
  101. package/docs/models/operations/getelementsresponsebody.md +10 -0
  102. package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md → getgenerationbyidgeneratedimagevariationgeneric.md} +1 -1
  103. package/docs/models/operations/{getgenerationbyid200applicationjsongenerations.md → getgenerationbyidgenerations.md} +4 -4
  104. package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerationsgenerationelementselements.md → getgenerationbyidloras.md} +1 -1
  105. package/docs/models/operations/getgenerationbyidresponse.md +6 -6
  106. package/docs/models/operations/getgenerationbyidresponsebody.md +10 -0
  107. package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgenerationelements.md → getgenerationsbyuseridgeneratedimages.md} +9 -7
  108. package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md → getgenerationsbyuseridgeneratedimagevariationgeneric.md} +1 -1
  109. package/docs/models/operations/getgenerationsbyuseridgenerationelements.md +12 -0
  110. package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerations.md → getgenerationsbyuseridgenerations.md} +4 -4
  111. package/docs/models/operations/getgenerationsbyuseridresponse.md +6 -6
  112. package/docs/models/operations/getgenerationsbyuseridresponsebody.md +10 -0
  113. package/docs/models/operations/{getinitimagebyid200applicationjsoninitimages.md → getinitimagebyidinitimages.md} +1 -1
  114. package/docs/models/operations/getinitimagebyidresponse.md +6 -6
  115. package/docs/models/operations/getinitimagebyidresponsebody.md +10 -0
  116. package/docs/models/operations/{getmodelbyid200applicationjsoncustommodels.md → getmodelbyidcustommodels.md} +1 -1
  117. package/docs/models/operations/getmodelbyidresponse.md +6 -6
  118. package/docs/models/operations/getmodelbyidresponsebody.md +10 -0
  119. package/docs/models/operations/getplatformmodelscustommodels.md +15 -0
  120. package/docs/models/operations/{getplatformmodels200applicationjsoncustommodelsgeneratedimages.md → getplatformmodelsgeneratedimages.md} +1 -1
  121. package/docs/models/operations/getplatformmodelsresponse.md +6 -6
  122. package/docs/models/operations/getplatformmodelsresponsebody.md +10 -0
  123. package/docs/models/operations/getuserselfresponse.md +6 -6
  124. package/docs/models/operations/getuserselfresponsebody.md +10 -0
  125. package/docs/models/operations/getvariationbyidresponse.md +6 -6
  126. package/docs/models/operations/getvariationbyidresponsebody.md +10 -0
  127. package/docs/models/operations/{deleteinitimagebyid200applicationjsoninitimages.md → initimages.md} +1 -1
  128. package/docs/models/operations/{uploaddatasetimage200applicationjsondatasetuploadoutput.md → initimageuploadoutput.md} +1 -1
  129. package/docs/models/operations/{getelements200applicationjsonloras.md → loras.md} +1 -1
  130. package/docs/models/operations/{deletemodels3did200applicationjsonmodelassets.md → modelassets.md} +1 -1
  131. package/docs/models/operations/{deletegenerationstextureid200applicationjsonmodelassettexturegenerations.md → modelassettexturegenerations.md} +1 -1
  132. package/docs/models/operations/{postmodels3dupload200applicationjsonmodelassetuploadoutput.md → modelassetuploadoutput.md} +1 -1
  133. package/docs/models/operations/postgenerationstextureresponse.md +6 -6
  134. package/docs/models/operations/postgenerationstextureresponsebody.md +10 -0
  135. package/docs/models/operations/postmodels3duploadresponse.md +6 -6
  136. package/docs/models/operations/postmodels3duploadresponsebody.md +10 -0
  137. package/docs/models/operations/postvariationsunzoomresponse.md +6 -6
  138. package/docs/models/operations/postvariationsunzoomresponsebody.md +10 -0
  139. package/docs/models/operations/{creategeneration200applicationjsonsdgenerationoutput.md → sdgenerationoutput.md} +1 -1
  140. package/docs/models/operations/{createmodel200applicationjsonsdtrainingoutput.md → sdtrainingoutput.md} +1 -1
  141. package/docs/models/operations/{postvariationsunzoom200applicationjsonsdunzoomoutput.md → sdunzoomoutput.md} +1 -1
  142. package/docs/models/operations/{createvariationnobg200applicationjsonsdupscalejoboutput.md → sdupscalejoboutput.md} +1 -1
  143. package/docs/models/operations/{postgenerationstexture200applicationjsontexturegenerationjoboutput.md → texturegenerationjoboutput.md} +1 -1
  144. package/docs/models/operations/uploaddatasetimagefromgenresponse.md +6 -6
  145. package/docs/models/operations/uploaddatasetimagefromgenresponsebody.md +10 -0
  146. package/docs/models/operations/uploaddatasetimageresponse.md +6 -6
  147. package/docs/models/operations/uploaddatasetimageresponsebody.md +10 -0
  148. package/docs/models/operations/uploadinitimageresponse.md +6 -6
  149. package/docs/models/operations/uploadinitimageresponsebody.md +10 -0
  150. package/docs/models/operations/userdetails.md +15 -0
  151. package/docs/models/operations/{getuserself200applicationjsonuserdetailsusers.md → users.md} +1 -1
  152. package/docs/sdks/dataset/README.md +6 -1
  153. package/docs/sdks/element/README.md +2 -1
  154. package/docs/sdks/generation/README.md +7 -1
  155. package/docs/sdks/initimage/README.md +4 -1
  156. package/docs/sdks/model/README.md +7 -1
  157. package/docs/sdks/user/README.md +2 -1
  158. package/docs/sdks/variation/README.md +5 -1
  159. package/package.json +1 -1
  160. package/docs/models/operations/createdataset200applicationjson.md +0 -10
  161. package/docs/models/operations/creategeneration200applicationjson.md +0 -10
  162. package/docs/models/operations/createmodel200applicationjson.md +0 -10
  163. package/docs/models/operations/createvariationnobg200applicationjson.md +0 -10
  164. package/docs/models/operations/createvariationupscale200applicationjson.md +0 -10
  165. package/docs/models/operations/deletedatasetbyid200applicationjson.md +0 -10
  166. package/docs/models/operations/deletegenerationbyid200applicationjson.md +0 -10
  167. package/docs/models/operations/deletegenerationstextureid200applicationjson.md +0 -10
  168. package/docs/models/operations/deleteinitimagebyid200applicationjson.md +0 -10
  169. package/docs/models/operations/deletemodelbyid200applicationjson.md +0 -10
  170. package/docs/models/operations/deletemodels3did200applicationjson.md +0 -10
  171. package/docs/models/operations/getdatasetbyid200applicationjsondatasets.md +0 -15
  172. package/docs/models/operations/getelements200applicationjson.md +0 -10
  173. package/docs/models/operations/getgenerationbyid200applicationjson.md +0 -10
  174. package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgeneratedimages.md +0 -14
  175. package/docs/models/operations/getgenerationsbyuserid200applicationjson.md +0 -10
  176. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgeneratedimages.md +0 -14
  177. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelements.md +0 -12
  178. package/docs/models/operations/getinitimagebyid200applicationjson.md +0 -10
  179. package/docs/models/operations/getmodelbyid200applicationjson.md +0 -10
  180. package/docs/models/operations/getplatformmodels200applicationjson.md +0 -10
  181. package/docs/models/operations/getplatformmodels200applicationjsoncustommodels.md +0 -15
  182. package/docs/models/operations/getuserself200applicationjson.md +0 -10
  183. package/docs/models/operations/getuserself200applicationjsonuserdetails.md +0 -15
  184. package/docs/models/operations/getvariationbyid200applicationjson.md +0 -10
  185. package/docs/models/operations/postgenerationstexture200applicationjson.md +0 -10
  186. package/docs/models/operations/postmodels3dupload200applicationjson.md +0 -10
  187. package/docs/models/operations/postvariationsunzoom200applicationjson.md +0 -10
  188. package/docs/models/operations/uploaddatasetimage200applicationjson.md +0 -10
  189. package/docs/models/operations/uploaddatasetimagefromgen200applicationjson.md +0 -10
  190. package/docs/models/operations/uploadinitimage200applicationjson.md +0 -10
package/README.md CHANGED
@@ -54,7 +54,7 @@ import { Leonardo } from "@leonardo-ai/sdk";
54
54
  ## Available Resources and Operations
55
55
 
56
56
 
57
- ### [dataset](docs/sdks/dataset/README.md)
57
+ ### [.dataset](docs/sdks/dataset/README.md)
58
58
 
59
59
  * [createDataset](docs/sdks/dataset/README.md#createdataset) - Create a Dataset
60
60
  * [deleteDatasetById](docs/sdks/dataset/README.md#deletedatasetbyid) - Delete a Single Dataset by ID
@@ -62,11 +62,11 @@ import { Leonardo } from "@leonardo-ai/sdk";
62
62
  * [uploadDatasetImage](docs/sdks/dataset/README.md#uploaddatasetimage) - Upload dataset image
63
63
  * [uploadDatasetImageFromGen](docs/sdks/dataset/README.md#uploaddatasetimagefromgen) - Upload a Single Generated Image to a Dataset
64
64
 
65
- ### [element](docs/sdks/element/README.md)
65
+ ### [.element](docs/sdks/element/README.md)
66
66
 
67
67
  * [getElements](docs/sdks/element/README.md#getelements) - List Elements
68
68
 
69
- ### [generation](docs/sdks/generation/README.md)
69
+ ### [.generation](docs/sdks/generation/README.md)
70
70
 
71
71
  * [createGeneration](docs/sdks/generation/README.md#creategeneration) - Create a Generation of Images
72
72
  * [deleteGenerationById](docs/sdks/generation/README.md#deletegenerationbyid) - Delete a Single Generation
@@ -75,13 +75,13 @@ import { Leonardo } from "@leonardo-ai/sdk";
75
75
  * [getGenerationsByUserId](docs/sdks/generation/README.md#getgenerationsbyuserid) - Get generations by user ID
76
76
  * [postGenerationsTexture](docs/sdks/generation/README.md#postgenerationstexture) - Create Texture Generation
77
77
 
78
- ### [initImage](docs/sdks/initimage/README.md)
78
+ ### [.initImage](docs/sdks/initimage/README.md)
79
79
 
80
80
  * [deleteInitImageById](docs/sdks/initimage/README.md#deleteinitimagebyid) - Delete init image
81
81
  * [getInitImageById](docs/sdks/initimage/README.md#getinitimagebyid) - Get single init image
82
82
  * [uploadInitImage](docs/sdks/initimage/README.md#uploadinitimage) - Upload init image
83
83
 
84
- ### [model](docs/sdks/model/README.md)
84
+ ### [.model](docs/sdks/model/README.md)
85
85
 
86
86
  * [createModel](docs/sdks/model/README.md#createmodel) - Train a Custom Model
87
87
  * [deleteModelById](docs/sdks/model/README.md#deletemodelbyid) - Delete a Single Custom Model by ID
@@ -90,11 +90,11 @@ import { Leonardo } from "@leonardo-ai/sdk";
90
90
  * [getPlatformModels](docs/sdks/model/README.md#getplatformmodels) - List Platform Models
91
91
  * [postModels3dUpload](docs/sdks/model/README.md#postmodels3dupload) - Upload 3D Model
92
92
 
93
- ### [user](docs/sdks/user/README.md)
93
+ ### [.user](docs/sdks/user/README.md)
94
94
 
95
95
  * [getUserSelf](docs/sdks/user/README.md#getuserself) - Get user information
96
96
 
97
- ### [variation](docs/sdks/variation/README.md)
97
+ ### [.variation](docs/sdks/variation/README.md)
98
98
 
99
99
  * [createVariationNoBG](docs/sdks/variation/README.md#createvariationnobg) - Create no background
100
100
  * [createVariationUpscale](docs/sdks/variation/README.md#createvariationupscale) - Create upscale
@@ -134,8 +134,6 @@ Here's an example of one such pagination call:
134
134
  # Error Handling
135
135
 
136
136
  Handling errors in your 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.
137
-
138
-
139
137
  <!-- End Error Handling -->
140
138
 
141
139
 
@@ -159,9 +157,70 @@ const httpClient = axios.create({
159
157
 
160
158
  const sdk = new Leonardo({defaultClient: httpClient});
161
159
  ```
160
+ <!-- End Custom HTTP Client -->
162
161
 
163
162
 
164
- <!-- End Custom HTTP Client -->
163
+
164
+ <!-- Start Server Selection -->
165
+ # Server Selection
166
+
167
+ ## Select Server by Index
168
+
169
+ You can override the default server globally by passing a server index to the `serverIdx: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
170
+
171
+ | # | Server | Variables |
172
+ | - | ------ | --------- |
173
+ | 0 | `https://cloud.leonardo.ai/api/rest/v1` | None |
174
+
175
+ For example:
176
+
177
+
178
+ ```typescript
179
+ import { Leonardo } from "@leonardo-ai/sdk";
180
+
181
+ (async () => {
182
+ const sdk = new Leonardo({
183
+ bearerAuth: "",
184
+ serverIdx: 0,
185
+ });
186
+
187
+ const res = await sdk.dataset.createDataset({
188
+ name: "string",
189
+ });
190
+
191
+ if (res.statusCode == 200) {
192
+ // handle response
193
+ }
194
+ })();
195
+
196
+ ```
197
+
198
+
199
+ ## Override Server URL Per-Client
200
+
201
+ The default server can also be overridden globally by passing a URL to the `serverURL: str` optional parameter when initializing the SDK client instance. For example:
202
+
203
+
204
+ ```typescript
205
+ import { Leonardo } from "@leonardo-ai/sdk";
206
+
207
+ (async () => {
208
+ const sdk = new Leonardo({
209
+ bearerAuth: "",
210
+ serverURL: "https://cloud.leonardo.ai/api/rest/v1",
211
+ });
212
+
213
+ const res = await sdk.dataset.createDataset({
214
+ name: "string",
215
+ });
216
+
217
+ if (res.statusCode == 200) {
218
+ // handle response
219
+ }
220
+ })();
221
+
222
+ ```
223
+ <!-- End Server Selection -->
165
224
 
166
225
  <!-- Placeholder for Future Speakeasy SDK Sections -->
167
226
 
@@ -159,7 +159,7 @@ var Dataset = /** @class */ (function () {
159
159
  switch (true) {
160
160
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
161
161
  if (utils.matchContentType(contentType, "application/json")) {
162
- res.createDataset200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.CreateDataset200ApplicationJSON);
162
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateDatasetResponseBody);
163
163
  }
164
164
  else {
165
165
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -220,7 +220,7 @@ var Dataset = /** @class */ (function () {
220
220
  switch (true) {
221
221
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
222
222
  if (utils.matchContentType(contentType, "application/json")) {
223
- res.deleteDatasetById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteDatasetById200ApplicationJSON);
223
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteDatasetByIdResponseBody);
224
224
  }
225
225
  else {
226
226
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -281,7 +281,7 @@ var Dataset = /** @class */ (function () {
281
281
  switch (true) {
282
282
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
283
283
  if (utils.matchContentType(contentType, "application/json")) {
284
- res.getDatasetById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetDatasetById200ApplicationJSON);
284
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetDatasetByIdResponseBody);
285
285
  }
286
286
  else {
287
287
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -355,7 +355,7 @@ var Dataset = /** @class */ (function () {
355
355
  switch (true) {
356
356
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
357
357
  if (utils.matchContentType(contentType, "application/json")) {
358
- res.uploadDatasetImage200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.UploadDatasetImage200ApplicationJSON);
358
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadDatasetImageResponseBody);
359
359
  }
360
360
  else {
361
361
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -429,7 +429,7 @@ var Dataset = /** @class */ (function () {
429
429
  switch (true) {
430
430
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
431
431
  if (utils.matchContentType(contentType, "application/json")) {
432
- res.uploadDatasetImageFromGen200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.UploadDatasetImageFromGen200ApplicationJSON);
432
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadDatasetImageFromGenResponseBody);
433
433
  }
434
434
  else {
435
435
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -128,7 +128,7 @@ var Element = /** @class */ (function () {
128
128
  switch (true) {
129
129
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
130
130
  if (utils.matchContentType(contentType, "application/json")) {
131
- res.getElements200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetElements200ApplicationJSON);
131
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetElementsResponseBody);
132
132
  }
133
133
  else {
134
134
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -159,7 +159,7 @@ var Generation = /** @class */ (function () {
159
159
  switch (true) {
160
160
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
161
161
  if (utils.matchContentType(contentType, "application/json")) {
162
- res.createGeneration200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.CreateGeneration200ApplicationJSON);
162
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateGenerationResponseBody);
163
163
  }
164
164
  else {
165
165
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -220,7 +220,7 @@ var Generation = /** @class */ (function () {
220
220
  switch (true) {
221
221
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
222
222
  if (utils.matchContentType(contentType, "application/json")) {
223
- res.deleteGenerationById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteGenerationById200ApplicationJSON);
223
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteGenerationByIdResponseBody);
224
224
  }
225
225
  else {
226
226
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -292,7 +292,7 @@ var Generation = /** @class */ (function () {
292
292
  switch (true) {
293
293
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
294
294
  if (utils.matchContentType(contentType, "application/json")) {
295
- res.deleteGenerationsTextureId200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteGenerationsTextureId200ApplicationJSON);
295
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteGenerationsTextureIdResponseBody);
296
296
  }
297
297
  else {
298
298
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -353,7 +353,7 @@ var Generation = /** @class */ (function () {
353
353
  switch (true) {
354
354
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
355
355
  if (utils.matchContentType(contentType, "application/json")) {
356
- res.getGenerationById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetGenerationById200ApplicationJSON);
356
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetGenerationByIdResponseBody);
357
357
  }
358
358
  else {
359
359
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -417,7 +417,7 @@ var Generation = /** @class */ (function () {
417
417
  switch (true) {
418
418
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
419
419
  if (utils.matchContentType(contentType, "application/json")) {
420
- res.getGenerationsByUserId200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetGenerationsByUserId200ApplicationJSON);
420
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetGenerationsByUserIdResponseBody);
421
421
  }
422
422
  else {
423
423
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -488,7 +488,7 @@ var Generation = /** @class */ (function () {
488
488
  switch (true) {
489
489
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
490
490
  if (utils.matchContentType(contentType, "application/json")) {
491
- res.postGenerationsTexture200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.PostGenerationsTexture200ApplicationJSON);
491
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.PostGenerationsTextureResponseBody);
492
492
  }
493
493
  else {
494
494
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -147,7 +147,7 @@ var InitImage = /** @class */ (function () {
147
147
  switch (true) {
148
148
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
149
149
  if (utils.matchContentType(contentType, "application/json")) {
150
- res.deleteInitImageById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteInitImageById200ApplicationJSON);
150
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteInitImageByIdResponseBody);
151
151
  }
152
152
  else {
153
153
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -208,7 +208,7 @@ var InitImage = /** @class */ (function () {
208
208
  switch (true) {
209
209
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
210
210
  if (utils.matchContentType(contentType, "application/json")) {
211
- res.getInitImageById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetInitImageById200ApplicationJSON);
211
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetInitImageByIdResponseBody);
212
212
  }
213
213
  else {
214
214
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -281,7 +281,7 @@ var InitImage = /** @class */ (function () {
281
281
  switch (true) {
282
282
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
283
283
  if (utils.matchContentType(contentType, "application/json")) {
284
- res.uploadInitImage200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.UploadInitImage200ApplicationJSON);
284
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadInitImageResponseBody);
285
285
  }
286
286
  else {
287
287
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
package/dist/sdk/model.js CHANGED
@@ -159,7 +159,7 @@ var Model = /** @class */ (function () {
159
159
  switch (true) {
160
160
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
161
161
  if (utils.matchContentType(contentType, "application/json")) {
162
- res.createModel200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.CreateModel200ApplicationJSON);
162
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateModelResponseBody);
163
163
  }
164
164
  else {
165
165
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -220,7 +220,7 @@ var Model = /** @class */ (function () {
220
220
  switch (true) {
221
221
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
222
222
  if (utils.matchContentType(contentType, "application/json")) {
223
- res.deleteModelById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModelById200ApplicationJSON);
223
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModelByIdResponseBody);
224
224
  }
225
225
  else {
226
226
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -292,7 +292,7 @@ var Model = /** @class */ (function () {
292
292
  switch (true) {
293
293
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
294
294
  if (utils.matchContentType(contentType, "application/json")) {
295
- res.deleteModels3dId200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModels3dId200ApplicationJSON);
295
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModels3dIdResponseBody);
296
296
  }
297
297
  else {
298
298
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -353,7 +353,7 @@ var Model = /** @class */ (function () {
353
353
  switch (true) {
354
354
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
355
355
  if (utils.matchContentType(contentType, "application/json")) {
356
- res.getModelById200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetModelById200ApplicationJSON);
356
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetModelByIdResponseBody);
357
357
  }
358
358
  else {
359
359
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -416,7 +416,7 @@ var Model = /** @class */ (function () {
416
416
  switch (true) {
417
417
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
418
418
  if (utils.matchContentType(contentType, "application/json")) {
419
- res.getPlatformModels200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.GetPlatformModels200ApplicationJSON);
419
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetPlatformModelsResponseBody);
420
420
  }
421
421
  else {
422
422
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -487,7 +487,7 @@ var Model = /** @class */ (function () {
487
487
  switch (true) {
488
488
  case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
489
489
  if (utils.matchContentType(contentType, "application/json")) {
490
- res.postModels3dUpload200ApplicationJSONObject = utils.objectToClass(JSON.parse(decodedRes), operations.PostModels3dUpload200ApplicationJSON);
490
+ res.object = utils.objectToClass(JSON.parse(decodedRes), operations.PostModels3dUploadResponseBody);
491
491
  }
492
492
  else {
493
493
  throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
@@ -16,17 +16,17 @@ export declare class CreateDatasetRequestBody extends SpeakeasyBase {
16
16
  /**
17
17
  * columns and relationships of "datasets"
18
18
  */
19
- export declare class CreateDataset200ApplicationJSONDatasets extends SpeakeasyBase {
19
+ export declare class Datasets extends SpeakeasyBase {
20
20
  id?: string;
21
21
  }
22
22
  /**
23
23
  * Responses for POST /datasets
24
24
  */
25
- export declare class CreateDataset200ApplicationJSON extends SpeakeasyBase {
25
+ export declare class CreateDatasetResponseBody extends SpeakeasyBase {
26
26
  /**
27
27
  * columns and relationships of "datasets"
28
28
  */
29
- insertDatasetsOne?: CreateDataset200ApplicationJSONDatasets;
29
+ insertDatasetsOne?: Datasets;
30
30
  }
31
31
  export declare class CreateDatasetResponse extends SpeakeasyBase {
32
32
  /**
@@ -44,5 +44,5 @@ export declare class CreateDatasetResponse extends SpeakeasyBase {
44
44
  /**
45
45
  * Responses for POST /datasets
46
46
  */
47
- createDataset200ApplicationJSONObject?: CreateDataset200ApplicationJSON;
47
+ object?: CreateDatasetResponseBody;
48
48
  }
@@ -27,7 +27,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
27
27
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.CreateDatasetResponse = exports.CreateDataset200ApplicationJSON = exports.CreateDataset200ApplicationJSONDatasets = exports.CreateDatasetRequestBody = void 0;
30
+ exports.CreateDatasetResponse = exports.CreateDatasetResponseBody = exports.Datasets = exports.CreateDatasetRequestBody = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
32
  var class_transformer_1 = require("class-transformer");
33
33
  /**
@@ -54,36 +54,36 @@ exports.CreateDatasetRequestBody = CreateDatasetRequestBody;
54
54
  /**
55
55
  * columns and relationships of "datasets"
56
56
  */
57
- var CreateDataset200ApplicationJSONDatasets = /** @class */ (function (_super) {
58
- __extends(CreateDataset200ApplicationJSONDatasets, _super);
59
- function CreateDataset200ApplicationJSONDatasets() {
57
+ var Datasets = /** @class */ (function (_super) {
58
+ __extends(Datasets, _super);
59
+ function Datasets() {
60
60
  return _super !== null && _super.apply(this, arguments) || this;
61
61
  }
62
62
  __decorate([
63
63
  (0, utils_1.SpeakeasyMetadata)(),
64
64
  (0, class_transformer_1.Expose)({ name: "id" }),
65
65
  __metadata("design:type", String)
66
- ], CreateDataset200ApplicationJSONDatasets.prototype, "id", void 0);
67
- return CreateDataset200ApplicationJSONDatasets;
66
+ ], Datasets.prototype, "id", void 0);
67
+ return Datasets;
68
68
  }(utils_1.SpeakeasyBase));
69
- exports.CreateDataset200ApplicationJSONDatasets = CreateDataset200ApplicationJSONDatasets;
69
+ exports.Datasets = Datasets;
70
70
  /**
71
71
  * Responses for POST /datasets
72
72
  */
73
- var CreateDataset200ApplicationJSON = /** @class */ (function (_super) {
74
- __extends(CreateDataset200ApplicationJSON, _super);
75
- function CreateDataset200ApplicationJSON() {
73
+ var CreateDatasetResponseBody = /** @class */ (function (_super) {
74
+ __extends(CreateDatasetResponseBody, _super);
75
+ function CreateDatasetResponseBody() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  __decorate([
79
79
  (0, utils_1.SpeakeasyMetadata)(),
80
80
  (0, class_transformer_1.Expose)({ name: "insert_datasets_one" }),
81
- (0, class_transformer_1.Type)(function () { return CreateDataset200ApplicationJSONDatasets; }),
82
- __metadata("design:type", CreateDataset200ApplicationJSONDatasets)
83
- ], CreateDataset200ApplicationJSON.prototype, "insertDatasetsOne", void 0);
84
- return CreateDataset200ApplicationJSON;
81
+ (0, class_transformer_1.Type)(function () { return Datasets; }),
82
+ __metadata("design:type", Datasets)
83
+ ], CreateDatasetResponseBody.prototype, "insertDatasetsOne", void 0);
84
+ return CreateDatasetResponseBody;
85
85
  }(utils_1.SpeakeasyBase));
86
- exports.CreateDataset200ApplicationJSON = CreateDataset200ApplicationJSON;
86
+ exports.CreateDatasetResponseBody = CreateDatasetResponseBody;
87
87
  var CreateDatasetResponse = /** @class */ (function (_super) {
88
88
  __extends(CreateDatasetResponse, _super);
89
89
  function CreateDatasetResponse() {
@@ -103,8 +103,8 @@ var CreateDatasetResponse = /** @class */ (function (_super) {
103
103
  ], CreateDatasetResponse.prototype, "rawResponse", void 0);
104
104
  __decorate([
105
105
  (0, utils_1.SpeakeasyMetadata)(),
106
- __metadata("design:type", CreateDataset200ApplicationJSON)
107
- ], CreateDatasetResponse.prototype, "createDataset200ApplicationJSONObject", void 0);
106
+ __metadata("design:type", CreateDatasetResponseBody)
107
+ ], CreateDatasetResponse.prototype, "object", void 0);
108
108
  return CreateDatasetResponse;
109
109
  }(utils_1.SpeakeasyBase));
110
110
  exports.CreateDatasetResponse = CreateDatasetResponse;
@@ -31,7 +31,7 @@ export declare class CreateGenerationRequestBody extends SpeakeasyBase {
31
31
  */
32
32
  guidanceScale?: number;
33
33
  /**
34
- * The height of the images. Must be between 32 and 1024 and be a multiple of 8.
34
+ * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features.
35
35
  */
36
36
  height?: number;
37
37
  /**
@@ -81,7 +81,7 @@ export declare class CreateGenerationRequestBody extends SpeakeasyBase {
81
81
  */
82
82
  photoReal?: boolean;
83
83
  /**
84
- * Depth of field of photoReal. Must be 0.55 for low, 0.5 for medium, or 0.45 for high.
84
+ * Depth of field of photoReal. Must be 0.55 for low, 0.5 for medium, or 0.45 for high. Defaults to 0.55 if not specified.
85
85
  */
86
86
  photoRealStrength?: number;
87
87
  /**
@@ -138,11 +138,11 @@ export declare class CreateGenerationRequestBody extends SpeakeasyBase {
138
138
  */
139
139
  weighting?: number;
140
140
  /**
141
- * The width of the images. Must be between 32 and 1024 and be a multiple of 8.
141
+ * The input width of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features.
142
142
  */
143
143
  width?: number;
144
144
  }
145
- export declare class CreateGeneration200ApplicationJSONSDGenerationOutput extends SpeakeasyBase {
145
+ export declare class SDGenerationOutput extends SpeakeasyBase {
146
146
  /**
147
147
  * API Credits Cost for Image Generation. Available for Production API Users.
148
148
  */
@@ -152,8 +152,8 @@ export declare class CreateGeneration200ApplicationJSONSDGenerationOutput extend
152
152
  /**
153
153
  * Responses for POST /generations
154
154
  */
155
- export declare class CreateGeneration200ApplicationJSON extends SpeakeasyBase {
156
- sdGenerationJob?: CreateGeneration200ApplicationJSONSDGenerationOutput;
155
+ export declare class CreateGenerationResponseBody extends SpeakeasyBase {
156
+ sdGenerationJob?: SDGenerationOutput;
157
157
  }
158
158
  export declare class CreateGenerationResponse extends SpeakeasyBase {
159
159
  /**
@@ -171,5 +171,5 @@ export declare class CreateGenerationResponse extends SpeakeasyBase {
171
171
  /**
172
172
  * Responses for POST /generations
173
173
  */
174
- createGeneration200ApplicationJSONObject?: CreateGeneration200ApplicationJSON;
174
+ object?: CreateGenerationResponseBody;
175
175
  }
@@ -50,7 +50,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
50
50
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.CreateGenerationResponse = exports.CreateGeneration200ApplicationJSON = exports.CreateGeneration200ApplicationJSONSDGenerationOutput = exports.CreateGenerationRequestBody = void 0;
53
+ exports.CreateGenerationResponse = exports.CreateGenerationResponseBody = exports.SDGenerationOutput = exports.CreateGenerationRequestBody = void 0;
54
54
  var utils_1 = require("../../../internal/utils");
55
55
  var shared = __importStar(require("../shared"));
56
56
  var class_transformer_1 = require("class-transformer");
@@ -251,41 +251,41 @@ var CreateGenerationRequestBody = /** @class */ (function (_super) {
251
251
  return CreateGenerationRequestBody;
252
252
  }(utils_1.SpeakeasyBase));
253
253
  exports.CreateGenerationRequestBody = CreateGenerationRequestBody;
254
- var CreateGeneration200ApplicationJSONSDGenerationOutput = /** @class */ (function (_super) {
255
- __extends(CreateGeneration200ApplicationJSONSDGenerationOutput, _super);
256
- function CreateGeneration200ApplicationJSONSDGenerationOutput() {
254
+ var SDGenerationOutput = /** @class */ (function (_super) {
255
+ __extends(SDGenerationOutput, _super);
256
+ function SDGenerationOutput() {
257
257
  return _super !== null && _super.apply(this, arguments) || this;
258
258
  }
259
259
  __decorate([
260
260
  (0, utils_1.SpeakeasyMetadata)(),
261
261
  (0, class_transformer_1.Expose)({ name: "apiCreditCost" }),
262
262
  __metadata("design:type", Number)
263
- ], CreateGeneration200ApplicationJSONSDGenerationOutput.prototype, "apiCreditCost", void 0);
263
+ ], SDGenerationOutput.prototype, "apiCreditCost", void 0);
264
264
  __decorate([
265
265
  (0, utils_1.SpeakeasyMetadata)(),
266
266
  (0, class_transformer_1.Expose)({ name: "generationId" }),
267
267
  __metadata("design:type", String)
268
- ], CreateGeneration200ApplicationJSONSDGenerationOutput.prototype, "generationId", void 0);
269
- return CreateGeneration200ApplicationJSONSDGenerationOutput;
268
+ ], SDGenerationOutput.prototype, "generationId", void 0);
269
+ return SDGenerationOutput;
270
270
  }(utils_1.SpeakeasyBase));
271
- exports.CreateGeneration200ApplicationJSONSDGenerationOutput = CreateGeneration200ApplicationJSONSDGenerationOutput;
271
+ exports.SDGenerationOutput = SDGenerationOutput;
272
272
  /**
273
273
  * Responses for POST /generations
274
274
  */
275
- var CreateGeneration200ApplicationJSON = /** @class */ (function (_super) {
276
- __extends(CreateGeneration200ApplicationJSON, _super);
277
- function CreateGeneration200ApplicationJSON() {
275
+ var CreateGenerationResponseBody = /** @class */ (function (_super) {
276
+ __extends(CreateGenerationResponseBody, _super);
277
+ function CreateGenerationResponseBody() {
278
278
  return _super !== null && _super.apply(this, arguments) || this;
279
279
  }
280
280
  __decorate([
281
281
  (0, utils_1.SpeakeasyMetadata)(),
282
282
  (0, class_transformer_1.Expose)({ name: "sdGenerationJob" }),
283
- (0, class_transformer_1.Type)(function () { return CreateGeneration200ApplicationJSONSDGenerationOutput; }),
284
- __metadata("design:type", CreateGeneration200ApplicationJSONSDGenerationOutput)
285
- ], CreateGeneration200ApplicationJSON.prototype, "sdGenerationJob", void 0);
286
- return CreateGeneration200ApplicationJSON;
283
+ (0, class_transformer_1.Type)(function () { return SDGenerationOutput; }),
284
+ __metadata("design:type", SDGenerationOutput)
285
+ ], CreateGenerationResponseBody.prototype, "sdGenerationJob", void 0);
286
+ return CreateGenerationResponseBody;
287
287
  }(utils_1.SpeakeasyBase));
288
- exports.CreateGeneration200ApplicationJSON = CreateGeneration200ApplicationJSON;
288
+ exports.CreateGenerationResponseBody = CreateGenerationResponseBody;
289
289
  var CreateGenerationResponse = /** @class */ (function (_super) {
290
290
  __extends(CreateGenerationResponse, _super);
291
291
  function CreateGenerationResponse() {
@@ -305,8 +305,8 @@ var CreateGenerationResponse = /** @class */ (function (_super) {
305
305
  ], CreateGenerationResponse.prototype, "rawResponse", void 0);
306
306
  __decorate([
307
307
  (0, utils_1.SpeakeasyMetadata)(),
308
- __metadata("design:type", CreateGeneration200ApplicationJSON)
309
- ], CreateGenerationResponse.prototype, "createGeneration200ApplicationJSONObject", void 0);
308
+ __metadata("design:type", CreateGenerationResponseBody)
309
+ ], CreateGenerationResponse.prototype, "object", void 0);
310
310
  return CreateGenerationResponse;
311
311
  }(utils_1.SpeakeasyBase));
312
312
  exports.CreateGenerationResponse = CreateGenerationResponse;
@@ -42,7 +42,7 @@ export declare class CreateModelRequestBody extends SpeakeasyBase {
42
42
  */
43
43
  strength?: shared.Strength;
44
44
  }
45
- export declare class CreateModel200ApplicationJSONSDTrainingOutput extends SpeakeasyBase {
45
+ export declare class SDTrainingOutput extends SpeakeasyBase {
46
46
  /**
47
47
  * API Credits Cost for Model Training. Available for Production API Users.
48
48
  */
@@ -52,8 +52,8 @@ export declare class CreateModel200ApplicationJSONSDTrainingOutput extends Speak
52
52
  /**
53
53
  * Responses for POST /models
54
54
  */
55
- export declare class CreateModel200ApplicationJSON extends SpeakeasyBase {
56
- sdTrainingJob?: CreateModel200ApplicationJSONSDTrainingOutput;
55
+ export declare class CreateModelResponseBody extends SpeakeasyBase {
56
+ sdTrainingJob?: SDTrainingOutput;
57
57
  }
58
58
  export declare class CreateModelResponse extends SpeakeasyBase {
59
59
  /**
@@ -71,5 +71,5 @@ export declare class CreateModelResponse extends SpeakeasyBase {
71
71
  /**
72
72
  * Responses for POST /models
73
73
  */
74
- createModel200ApplicationJSONObject?: CreateModel200ApplicationJSON;
74
+ object?: CreateModelResponseBody;
75
75
  }