@leonardo-ai/sdk 1.64.3 → 2.1.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 (205) hide show
  1. package/README.md +48 -14
  2. package/dist/internal/utils/requestbody.js +28 -18
  3. package/dist/internal/utils/utils.js +2 -4
  4. package/dist/sdk/dataset.d.ts +1 -1
  5. package/dist/sdk/dataset.js +8 -8
  6. package/dist/sdk/element.d.ts +1 -1
  7. package/dist/sdk/element.js +4 -4
  8. package/dist/sdk/generation.d.ts +1 -1
  9. package/dist/sdk/generation.js +9 -9
  10. package/dist/sdk/initimage.d.ts +1 -1
  11. package/dist/sdk/initimage.js +6 -6
  12. package/dist/sdk/model.d.ts +1 -1
  13. package/dist/sdk/model.js +9 -9
  14. package/dist/sdk/models/operations/createdataset.d.ts +4 -4
  15. package/dist/sdk/models/operations/createdataset.js +17 -17
  16. package/dist/sdk/models/operations/creategeneration.d.ts +5 -5
  17. package/dist/sdk/models/operations/creategeneration.js +19 -19
  18. package/dist/sdk/models/operations/createmodel.d.ts +5 -5
  19. package/dist/sdk/models/operations/createmodel.js +19 -19
  20. package/dist/sdk/models/operations/createvariationnobg.d.ts +4 -4
  21. package/dist/sdk/models/operations/createvariationnobg.js +18 -18
  22. package/dist/sdk/models/operations/createvariationupscale.d.ts +4 -4
  23. package/dist/sdk/models/operations/createvariationupscale.js +18 -18
  24. package/dist/sdk/models/operations/deletedatasetbyid.d.ts +4 -4
  25. package/dist/sdk/models/operations/deletedatasetbyid.js +17 -17
  26. package/dist/sdk/models/operations/deletegenerationbyid.d.ts +4 -4
  27. package/dist/sdk/models/operations/deletegenerationbyid.js +17 -17
  28. package/dist/sdk/models/operations/deletegenerationstextureid.d.ts +4 -4
  29. package/dist/sdk/models/operations/deletegenerationstextureid.js +17 -17
  30. package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +4 -4
  31. package/dist/sdk/models/operations/deleteinitimagebyid.js +17 -17
  32. package/dist/sdk/models/operations/deletemodelbyid.d.ts +4 -4
  33. package/dist/sdk/models/operations/deletemodelbyid.js +17 -17
  34. package/dist/sdk/models/operations/deletemodels3did.d.ts +4 -4
  35. package/dist/sdk/models/operations/deletemodels3did.js +17 -17
  36. package/dist/sdk/models/operations/getdatasetbyid.d.ts +6 -6
  37. package/dist/sdk/models/operations/getdatasetbyid.js +32 -32
  38. package/dist/sdk/models/operations/getelements.d.ts +5 -5
  39. package/dist/sdk/models/operations/getelements.js +26 -26
  40. package/dist/sdk/models/operations/getgenerationbyid.d.ts +13 -13
  41. package/dist/sdk/models/operations/getgenerationbyid.js +88 -94
  42. package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +13 -13
  43. package/dist/sdk/models/operations/getgenerationsbyuserid.js +88 -96
  44. package/dist/sdk/models/operations/getinitimagebyid.d.ts +4 -4
  45. package/dist/sdk/models/operations/getinitimagebyid.js +19 -19
  46. package/dist/sdk/models/operations/getmodelbyid.d.ts +5 -5
  47. package/dist/sdk/models/operations/getmodelbyid.js +29 -29
  48. package/dist/sdk/models/operations/getplatformmodels.d.ts +6 -6
  49. package/dist/sdk/models/operations/getplatformmodels.js +31 -31
  50. package/dist/sdk/models/operations/getuserself.d.ts +6 -6
  51. package/dist/sdk/models/operations/getuserself.js +31 -31
  52. package/dist/sdk/models/operations/getvariationbyid.d.ts +5 -5
  53. package/dist/sdk/models/operations/getvariationbyid.js +22 -24
  54. package/dist/sdk/models/operations/postgenerationstexture.d.ts +4 -4
  55. package/dist/sdk/models/operations/postgenerationstexture.js +18 -18
  56. package/dist/sdk/models/operations/postmodels3dupload.d.ts +4 -4
  57. package/dist/sdk/models/operations/postmodels3dupload.js +20 -20
  58. package/dist/sdk/models/operations/postvariationsunzoom.d.ts +4 -4
  59. package/dist/sdk/models/operations/postvariationsunzoom.js +18 -18
  60. package/dist/sdk/models/operations/uploaddatasetimage.d.ts +4 -4
  61. package/dist/sdk/models/operations/uploaddatasetimage.js +20 -20
  62. package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +4 -4
  63. package/dist/sdk/models/operations/uploaddatasetimagefromgen.js +17 -17
  64. package/dist/sdk/models/operations/uploadinitimage.d.ts +4 -4
  65. package/dist/sdk/models/operations/uploadinitimage.js +20 -20
  66. package/dist/sdk/sdk.d.ts +2 -2
  67. package/dist/sdk/sdk.js +5 -5
  68. package/dist/sdk/user.d.ts +1 -1
  69. package/dist/sdk/user.js +4 -4
  70. package/dist/sdk/variation.d.ts +1 -1
  71. package/dist/sdk/variation.js +7 -7
  72. package/docs/models/operations/createdatasetresponse.md +6 -6
  73. package/docs/models/operations/createdatasetresponsebody.md +10 -0
  74. package/docs/models/operations/creategenerationresponse.md +6 -6
  75. package/docs/models/operations/creategenerationresponsebody.md +10 -0
  76. package/docs/models/operations/createmodelresponse.md +6 -6
  77. package/docs/models/operations/createmodelresponsebody.md +10 -0
  78. package/docs/models/operations/createvariationnobgresponse.md +6 -6
  79. package/docs/models/operations/createvariationnobgresponsebody.md +10 -0
  80. package/docs/models/operations/createvariationupscaleresponse.md +6 -6
  81. package/docs/models/operations/createvariationupscaleresponsebody.md +10 -0
  82. package/docs/models/operations/{createvariationupscale200applicationjsonsdupscalejoboutput.md → createvariationupscalesdupscalejoboutput.md} +1 -1
  83. package/docs/models/operations/{deletemodelbyid200applicationjsoncustommodels.md → custommodels.md} +1 -1
  84. package/docs/models/operations/{uploaddatasetimagefromgen200applicationjsondatasetgenuploadoutput.md → datasetgenuploadoutput.md} +1 -1
  85. package/docs/models/operations/{getdatasetbyid200applicationjsondatasetsdatasetimages.md → datasetimages.md} +1 -1
  86. package/docs/models/operations/{createdataset200applicationjsondatasets.md → datasets.md} +1 -1
  87. package/docs/models/operations/{uploadinitimage200applicationjsoninitimageuploadoutput.md → datasetuploadoutput.md} +1 -1
  88. package/docs/models/operations/{deletedatasetbyid200applicationjsondatasets.md → deletedatasetbyiddatasets.md} +1 -1
  89. package/docs/models/operations/deletedatasetbyidresponse.md +6 -6
  90. package/docs/models/operations/deletedatasetbyidresponsebody.md +10 -0
  91. package/docs/models/operations/deletegenerationbyidresponse.md +6 -6
  92. package/docs/models/operations/deletegenerationbyidresponsebody.md +10 -0
  93. package/docs/models/operations/deletegenerationstextureidrequest.md +4 -4
  94. package/docs/models/operations/deletegenerationstextureidresponse.md +6 -6
  95. package/docs/models/operations/deletegenerationstextureidresponsebody.md +10 -0
  96. package/docs/models/operations/deleteinitimagebyidresponse.md +6 -6
  97. package/docs/models/operations/deleteinitimagebyidresponsebody.md +10 -0
  98. package/docs/models/operations/deletemodelbyidresponse.md +6 -6
  99. package/docs/models/operations/deletemodelbyidresponsebody.md +10 -0
  100. package/docs/models/operations/deletemodels3didrequest.md +4 -4
  101. package/docs/models/operations/deletemodels3didresponse.md +6 -6
  102. package/docs/models/operations/deletemodels3didresponsebody.md +10 -0
  103. package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgenerationelementsloras.md → elements.md} +1 -1
  104. package/docs/models/operations/generatedimages.md +14 -0
  105. package/docs/models/operations/{getvariationbyid200applicationjsongeneratedimagevariationgeneric.md → generatedimagevariationgeneric.md} +1 -1
  106. package/docs/models/operations/generationelements.md +12 -0
  107. package/docs/models/operations/{deletegenerationbyid200applicationjsongenerations.md → generations.md} +1 -1
  108. package/docs/models/operations/getdatasetbyiddatasets.md +15 -0
  109. package/docs/models/operations/getdatasetbyidresponse.md +6 -6
  110. package/docs/models/operations/getdatasetbyidresponsebody.md +10 -0
  111. package/docs/models/operations/getelementsresponse.md +6 -6
  112. package/docs/models/operations/getelementsresponsebody.md +10 -0
  113. package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md → getgenerationbyidgeneratedimagevariationgeneric.md} +1 -1
  114. package/docs/models/operations/{getgenerationbyid200applicationjsongenerations.md → getgenerationbyidgenerations.md} +3 -3
  115. package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerationsgenerationelementselements.md → getgenerationbyidloras.md} +1 -1
  116. package/docs/models/operations/getgenerationbyidresponse.md +6 -6
  117. package/docs/models/operations/getgenerationbyidresponsebody.md +10 -0
  118. package/docs/models/operations/getgenerationsbyuseridgeneratedimages.md +14 -0
  119. package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md → getgenerationsbyuseridgeneratedimagevariationgeneric.md} +1 -1
  120. package/docs/models/operations/getgenerationsbyuseridgenerationelements.md +12 -0
  121. package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerations.md → getgenerationsbyuseridgenerations.md} +3 -3
  122. package/docs/models/operations/getgenerationsbyuseridresponse.md +6 -6
  123. package/docs/models/operations/getgenerationsbyuseridresponsebody.md +10 -0
  124. package/docs/models/operations/{getinitimagebyid200applicationjsoninitimages.md → getinitimagebyidinitimages.md} +1 -1
  125. package/docs/models/operations/getinitimagebyidresponse.md +6 -6
  126. package/docs/models/operations/getinitimagebyidresponsebody.md +10 -0
  127. package/docs/models/operations/{getmodelbyid200applicationjsoncustommodels.md → getmodelbyidcustommodels.md} +1 -1
  128. package/docs/models/operations/getmodelbyidresponse.md +6 -6
  129. package/docs/models/operations/getmodelbyidresponsebody.md +10 -0
  130. package/docs/models/operations/getplatformmodelscustommodels.md +15 -0
  131. package/docs/models/operations/{getplatformmodels200applicationjsoncustommodelsgeneratedimages.md → getplatformmodelsgeneratedimages.md} +1 -1
  132. package/docs/models/operations/getplatformmodelsresponse.md +6 -6
  133. package/docs/models/operations/getplatformmodelsresponsebody.md +10 -0
  134. package/docs/models/operations/getuserselfresponse.md +6 -6
  135. package/docs/models/operations/getuserselfresponsebody.md +10 -0
  136. package/docs/models/operations/getvariationbyidresponse.md +6 -6
  137. package/docs/models/operations/getvariationbyidresponsebody.md +10 -0
  138. package/docs/models/operations/{deleteinitimagebyid200applicationjsoninitimages.md → initimages.md} +1 -1
  139. package/docs/models/operations/{uploaddatasetimage200applicationjsondatasetuploadoutput.md → initimageuploadoutput.md} +1 -1
  140. package/docs/models/operations/{getelements200applicationjsonloras.md → loras.md} +1 -1
  141. package/docs/models/operations/{deletemodels3did200applicationjsonmodelassets.md → modelassets.md} +1 -1
  142. package/docs/models/operations/{deletegenerationstextureid200applicationjsonmodelassettexturegenerations.md → modelassettexturegenerations.md} +1 -1
  143. package/docs/models/operations/{postmodels3dupload200applicationjsonmodelassetuploadoutput.md → modelassetuploadoutput.md} +1 -1
  144. package/docs/models/operations/postgenerationstextureresponse.md +6 -6
  145. package/docs/models/operations/postgenerationstextureresponsebody.md +10 -0
  146. package/docs/models/operations/postmodels3duploadresponse.md +6 -6
  147. package/docs/models/operations/postmodels3duploadresponsebody.md +10 -0
  148. package/docs/models/operations/postvariationsunzoomresponse.md +6 -6
  149. package/docs/models/operations/postvariationsunzoomresponsebody.md +10 -0
  150. package/docs/models/operations/{creategeneration200applicationjsonsdgenerationoutput.md → sdgenerationoutput.md} +1 -1
  151. package/docs/models/operations/{createmodel200applicationjsonsdtrainingoutput.md → sdtrainingoutput.md} +1 -1
  152. package/docs/models/operations/{postvariationsunzoom200applicationjsonsdunzoomoutput.md → sdunzoomoutput.md} +1 -1
  153. package/docs/models/operations/{createvariationnobg200applicationjsonsdupscalejoboutput.md → sdupscalejoboutput.md} +1 -1
  154. package/docs/models/operations/{postgenerationstexture200applicationjsontexturegenerationjoboutput.md → texturegenerationjoboutput.md} +1 -1
  155. package/docs/models/operations/uploaddatasetimagefromgenrequest.md +4 -4
  156. package/docs/models/operations/uploaddatasetimagefromgenresponse.md +6 -6
  157. package/docs/models/operations/uploaddatasetimagefromgenresponsebody.md +10 -0
  158. package/docs/models/operations/uploaddatasetimagerequest.md +4 -4
  159. package/docs/models/operations/uploaddatasetimageresponse.md +6 -6
  160. package/docs/models/operations/uploaddatasetimageresponsebody.md +10 -0
  161. package/docs/models/operations/uploadinitimageresponse.md +6 -6
  162. package/docs/models/operations/uploadinitimageresponsebody.md +10 -0
  163. package/docs/models/operations/userdetails.md +15 -0
  164. package/docs/models/operations/{getuserself200applicationjsonuserdetailsusers.md → users.md} +1 -1
  165. package/docs/sdks/dataset/README.md +1 -1
  166. package/docs/sdks/element/README.md +1 -1
  167. package/docs/sdks/generation/README.md +1 -1
  168. package/docs/sdks/initimage/README.md +1 -1
  169. package/docs/sdks/model/README.md +1 -1
  170. package/docs/sdks/user/README.md +1 -1
  171. package/docs/sdks/variation/README.md +1 -1
  172. package/package.json +1 -1
  173. package/docs/models/operations/createdataset200applicationjson.md +0 -10
  174. package/docs/models/operations/creategeneration200applicationjson.md +0 -10
  175. package/docs/models/operations/createmodel200applicationjson.md +0 -10
  176. package/docs/models/operations/createvariationnobg200applicationjson.md +0 -10
  177. package/docs/models/operations/createvariationupscale200applicationjson.md +0 -10
  178. package/docs/models/operations/deletedatasetbyid200applicationjson.md +0 -10
  179. package/docs/models/operations/deletegenerationbyid200applicationjson.md +0 -10
  180. package/docs/models/operations/deletegenerationstextureid200applicationjson.md +0 -10
  181. package/docs/models/operations/deleteinitimagebyid200applicationjson.md +0 -10
  182. package/docs/models/operations/deletemodelbyid200applicationjson.md +0 -10
  183. package/docs/models/operations/deletemodels3did200applicationjson.md +0 -10
  184. package/docs/models/operations/getdatasetbyid200applicationjson.md +0 -10
  185. package/docs/models/operations/getdatasetbyid200applicationjsondatasets.md +0 -15
  186. package/docs/models/operations/getelements200applicationjson.md +0 -10
  187. package/docs/models/operations/getgenerationbyid200applicationjson.md +0 -10
  188. package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgeneratedimages.md +0 -14
  189. package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgenerationelements.md +0 -12
  190. package/docs/models/operations/getgenerationsbyuserid200applicationjson.md +0 -10
  191. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgeneratedimages.md +0 -14
  192. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelements.md +0 -12
  193. package/docs/models/operations/getinitimagebyid200applicationjson.md +0 -10
  194. package/docs/models/operations/getmodelbyid200applicationjson.md +0 -10
  195. package/docs/models/operations/getplatformmodels200applicationjson.md +0 -10
  196. package/docs/models/operations/getplatformmodels200applicationjsoncustommodels.md +0 -15
  197. package/docs/models/operations/getuserself200applicationjson.md +0 -10
  198. package/docs/models/operations/getuserself200applicationjsonuserdetails.md +0 -15
  199. package/docs/models/operations/getvariationbyid200applicationjson.md +0 -10
  200. package/docs/models/operations/postgenerationstexture200applicationjson.md +0 -10
  201. package/docs/models/operations/postmodels3dupload200applicationjson.md +0 -10
  202. package/docs/models/operations/postvariationsunzoom200applicationjson.md +0 -10
  203. package/docs/models/operations/uploaddatasetimage200applicationjson.md +0 -10
  204. package/docs/models/operations/uploaddatasetimagefromgen200applicationjson.md +0 -10
  205. package/docs/models/operations/uploadinitimage200applicationjson.md +0 -10
@@ -3,7 +3,7 @@
3
3
 
4
4
  ## Fields
5
5
 
6
- | Field | Type | Required | Description |
7
- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
8
- | `requestBody` | [UploadDatasetImageRequestBody](../../models/operations/uploaddatasetimagerequestbody.md) | :heavy_check_mark: | Query parameters provided in the request body as a JSON object |
9
- | `datasetId` | *string* | :heavy_check_mark: | _"datasetId" is required |
6
+ | Field | Type | Required | Description |
7
+ | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
8
+ | `requestBody` | [operations.UploadDatasetImageRequestBody](../../models/operations/uploaddatasetimagerequestbody.md) | :heavy_check_mark: | Query parameters provided in the request body as a JSON object |
9
+ | `datasetId` | *string* | :heavy_check_mark: | _"datasetId" is required |
@@ -3,9 +3,9 @@
3
3
 
4
4
  ## Fields
5
5
 
6
- | Field | Type | Required | Description |
7
- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
8
- | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
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 |
11
- | `uploadDatasetImage200ApplicationJSONObject` | [UploadDatasetImage200ApplicationJSON](../../models/operations/uploaddatasetimage200applicationjson.md) | :heavy_minus_sign: | Responses for POST /datasets/{datasetId}/upload |
6
+ | Field | Type | Required | Description |
7
+ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
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 |
11
+ | `object` | [operations.UploadDatasetImageResponseBody](../../models/operations/uploaddatasetimageresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets/{datasetId}/upload |
@@ -0,0 +1,10 @@
1
+ # UploadDatasetImageResponseBody
2
+
3
+ Responses for POST /datasets/{datasetId}/upload
4
+
5
+
6
+ ## Fields
7
+
8
+ | Field | Type | Required | Description |
9
+ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
10
+ | `uploadDatasetImage` | [operations.DatasetUploadOutput](../../models/operations/datasetuploadoutput.md) | :heavy_minus_sign: | N/A |
@@ -3,9 +3,9 @@
3
3
 
4
4
  ## Fields
5
5
 
6
- | Field | Type | Required | Description |
7
- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
8
- | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
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 |
11
- | `uploadInitImage200ApplicationJSONObject` | [UploadInitImage200ApplicationJSON](../../models/operations/uploadinitimage200applicationjson.md) | :heavy_minus_sign: | Responses for POST /init-image |
6
+ | Field | Type | Required | Description |
7
+ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
8
+ | `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
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 |
11
+ | `object` | [operations.UploadInitImageResponseBody](../../models/operations/uploadinitimageresponsebody.md) | :heavy_minus_sign: | Responses for POST /init-image |
@@ -0,0 +1,10 @@
1
+ # UploadInitImageResponseBody
2
+
3
+ Responses for POST /init-image
4
+
5
+
6
+ ## Fields
7
+
8
+ | Field | Type | Required | Description |
9
+ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
10
+ | `uploadInitImage` | [operations.InitImageUploadOutput](../../models/operations/initimageuploadoutput.md) | :heavy_minus_sign: | N/A |
@@ -0,0 +1,15 @@
1
+ # UserDetails
2
+
3
+ columns and relationships of "user_details"
4
+
5
+
6
+ ## Fields
7
+
8
+ | Field | Type | Required | Description |
9
+ | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
10
+ | `apiConcurrencySlots` | *number* | :heavy_minus_sign: | N/A |
11
+ | `subscriptionGptTokens` | *number* | :heavy_minus_sign: | N/A |
12
+ | `subscriptionModelTokens` | *number* | :heavy_minus_sign: | N/A |
13
+ | `subscriptionTokens` | *number* | :heavy_minus_sign: | N/A |
14
+ | `tokenRenewalDate` | *string* | :heavy_minus_sign: | N/A |
15
+ | `user` | [operations.Users](../../models/operations/users.md) | :heavy_minus_sign: | columns and relationships of "users" |
@@ -1,4 +1,4 @@
1
- # GetUserSelf200ApplicationJSONUserDetailsUsers
1
+ # Users
2
2
 
3
3
  columns and relationships of "users"
4
4
 
@@ -1,5 +1,5 @@
1
1
  # Dataset
2
- (*dataset*)
2
+ (*.dataset*)
3
3
 
4
4
  ### Available Operations
5
5
 
@@ -1,5 +1,5 @@
1
1
  # Element
2
- (*element*)
2
+ (*.element*)
3
3
 
4
4
  ### Available Operations
5
5
 
@@ -1,5 +1,5 @@
1
1
  # Generation
2
- (*generation*)
2
+ (*.generation*)
3
3
 
4
4
  ### Available Operations
5
5
 
@@ -1,5 +1,5 @@
1
1
  # InitImage
2
- (*initImage*)
2
+ (*.initImage*)
3
3
 
4
4
  ### Available Operations
5
5
 
@@ -1,5 +1,5 @@
1
1
  # Model
2
- (*model*)
2
+ (*.model*)
3
3
 
4
4
  ### Available Operations
5
5
 
@@ -1,5 +1,5 @@
1
1
  # User
2
- (*user*)
2
+ (*.user*)
3
3
 
4
4
  ### Available Operations
5
5
 
@@ -1,5 +1,5 @@
1
1
  # Variation
2
- (*variation*)
2
+ (*.variation*)
3
3
 
4
4
  ### Available Operations
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonardo-ai/sdk",
3
- "version": "1.64.3",
3
+ "version": "2.1.0",
4
4
  "author": "leonardoai",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",
@@ -1,10 +0,0 @@
1
- # CreateDataset200ApplicationJSON
2
-
3
- Responses for POST /datasets
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
10
- | `insertDatasetsOne` | [CreateDataset200ApplicationJSONDatasets](../../models/operations/createdataset200applicationjsondatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" |
@@ -1,10 +0,0 @@
1
- # CreateGeneration200ApplicationJSON
2
-
3
- Responses for POST /generations
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `sdGenerationJob` | [CreateGeneration200ApplicationJSONSDGenerationOutput](../../models/operations/creategeneration200applicationjsonsdgenerationoutput.md) | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # CreateModel200ApplicationJSON
2
-
3
- Responses for POST /models
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
10
- | `sdTrainingJob` | [CreateModel200ApplicationJSONSDTrainingOutput](../../models/operations/createmodel200applicationjsonsdtrainingoutput.md) | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # CreateVariationNoBg200ApplicationJSON
2
-
3
- Responses for POST /variations/nobg
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `sdNobgJob` | [CreateVariationNoBg200ApplicationJSONSDUpscaleJobOutput](../../models/operations/createvariationnobg200applicationjsonsdupscalejoboutput.md) | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # CreateVariationUpscale200ApplicationJSON
2
-
3
- Responses for POST /variations/upscale
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `sdUpscaleJob` | [CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput](../../models/operations/createvariationupscale200applicationjsonsdupscalejoboutput.md) | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # DeleteDatasetById200ApplicationJSON
2
-
3
- Responses for DELETE /datasets/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
10
- | `deleteDatasetsByPk` | [DeleteDatasetById200ApplicationJSONDatasets](../../models/operations/deletedatasetbyid200applicationjsondatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" |
@@ -1,10 +0,0 @@
1
- # DeleteGenerationById200ApplicationJSON
2
-
3
- Responses for DELETE /generations/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
10
- | `deleteGenerationsByPk` | [DeleteGenerationById200ApplicationJSONGenerations](../../models/operations/deletegenerationbyid200applicationjsongenerations.md) | :heavy_minus_sign: | columns and relationships of "generations" |
@@ -1,10 +0,0 @@
1
- # DeleteGenerationsTextureId200ApplicationJSON
2
-
3
- Responses for DELETE /api/rest/v1/generations-texture/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `deleteModelAssetTextureGenerationsByPk` | [DeleteGenerationsTextureId200ApplicationJSONModelAssetTextureGenerations](../../models/operations/deletegenerationstextureid200applicationjsonmodelassettexturegenerations.md) | :heavy_minus_sign: | columns and relationships of "model_asset_texture_generations" |
@@ -1,10 +0,0 @@
1
- # DeleteInitImageById200ApplicationJSON
2
-
3
- Responses for DELETE /init-image/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
10
- | `deleteInitImagesByPk` | [DeleteInitImageById200ApplicationJSONInitImages](../../models/operations/deleteinitimagebyid200applicationjsoninitimages.md) | :heavy_minus_sign: | columns and relationships of "init_images" |
@@ -1,10 +0,0 @@
1
- # DeleteModelById200ApplicationJSON
2
-
3
- Responses for DELETE /models/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
10
- | `deleteCustomModelsByPk` | [DeleteModelById200ApplicationJSONCustomModels](../../models/operations/deletemodelbyid200applicationjsoncustommodels.md) | :heavy_minus_sign: | columns and relationships of "custom_models" |
@@ -1,10 +0,0 @@
1
- # DeleteModels3dId200ApplicationJSON
2
-
3
- Responses for DELETE /api/rest/v1/models-3d/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
10
- | `deleteModelAssetsByPk` | [DeleteModels3dId200ApplicationJSONModelAssets](../../models/operations/deletemodels3did200applicationjsonmodelassets.md) | :heavy_minus_sign: | columns and relationships of "model_assets" |
@@ -1,10 +0,0 @@
1
- # GetDatasetById200ApplicationJSON
2
-
3
- Responses for GET /datasets/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
10
- | `datasetsByPk` | [GetDatasetById200ApplicationJSONDatasets](../../models/operations/getdatasetbyid200applicationjsondatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" |
@@ -1,15 +0,0 @@
1
- # GetDatasetById200ApplicationJSONDatasets
2
-
3
- columns and relationships of "datasets"
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `createdAt` | *string* | :heavy_minus_sign: | N/A |
11
- | `datasetImages` | [GetDatasetById200ApplicationJSONDatasetsDatasetImages](../../models/operations/getdatasetbyid200applicationjsondatasetsdatasetimages.md)[] | :heavy_minus_sign: | N/A |
12
- | `description` | *string* | :heavy_minus_sign: | N/A |
13
- | `id` | *string* | :heavy_minus_sign: | N/A |
14
- | `name` | *string* | :heavy_minus_sign: | N/A |
15
- | `updatedAt` | *string* | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # GetElements200ApplicationJSON
2
-
3
- Responses for GET /api/rest/v1/elements
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
10
- | `loras` | [GetElements200ApplicationJSONLoras](../../models/operations/getelements200applicationjsonloras.md)[] | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # GetGenerationById200ApplicationJSON
2
-
3
- Responses for GET /generations/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
10
- | `generationsByPk` | [GetGenerationById200ApplicationJSONGenerations](../../models/operations/getgenerationbyid200applicationjsongenerations.md) | :heavy_minus_sign: | columns and relationships of "generations" |
@@ -1,14 +0,0 @@
1
- # GetGenerationById200ApplicationJSONGenerationsGeneratedImages
2
-
3
- columns and relationships of "generated_images"
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `generatedImageVariationGenerics` | [GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric](../../models/operations/getgenerationbyid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A |
11
- | `id` | *string* | :heavy_minus_sign: | N/A |
12
- | `likeCount` | *number* | :heavy_minus_sign: | N/A |
13
- | `nsfw` | *boolean* | :heavy_minus_sign: | N/A |
14
- | `url` | *string* | :heavy_minus_sign: | N/A |
@@ -1,12 +0,0 @@
1
- # GetGenerationById200ApplicationJSONGenerationsGenerationElements
2
-
3
- This table captures the elements that are applied to Generations.
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `id` | *number* | :heavy_minus_sign: | N/A |
11
- | `lora` | [GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras](../../models/operations/getgenerationbyid200applicationjsongenerationsgenerationelementsloras.md) | :heavy_minus_sign: | Element used for the generation. |
12
- | `weightApplied` | *number* | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # GetGenerationsByUserId200ApplicationJSON
2
-
3
- Responses for GET /generations/user/{userId}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `generations` | [GetGenerationsByUserId200ApplicationJSONGenerations](../../models/operations/getgenerationsbyuserid200applicationjsongenerations.md)[] | :heavy_minus_sign: | N/A |
@@ -1,14 +0,0 @@
1
- # GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages
2
-
3
- columns and relationships of "generated_images"
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `generatedImageVariationGenerics` | [GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric](../../models/operations/getgenerationsbyuserid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A |
11
- | `id` | *string* | :heavy_minus_sign: | N/A |
12
- | `likeCount` | *number* | :heavy_minus_sign: | N/A |
13
- | `nsfw` | *boolean* | :heavy_minus_sign: | N/A |
14
- | `url` | *string* | :heavy_minus_sign: | N/A |
@@ -1,12 +0,0 @@
1
- # GetGenerationsByUserId200ApplicationJSONGenerationsGenerationElements
2
-
3
- This table captures the elements that are applied to a Generations, also the order and weightings used when applied.
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `id` | *number* | :heavy_minus_sign: | N/A |
11
- | `lora` | [GetGenerationsByUserId200ApplicationJSONGenerationsGenerationElementsElements](../../models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelementselements.md) | :heavy_minus_sign: | Element used for the generation. |
12
- | `weightApplied` | *number* | :heavy_minus_sign: | N/A |
@@ -1,10 +0,0 @@
1
- # GetInitImageById200ApplicationJSON
2
-
3
- Responses for GET /init-image/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
10
- | `initImagesByPk` | [GetInitImageById200ApplicationJSONInitImages](../../models/operations/getinitimagebyid200applicationjsoninitimages.md) | :heavy_minus_sign: | columns and relationships of "init_images" |
@@ -1,10 +0,0 @@
1
- # GetModelById200ApplicationJSON
2
-
3
- Responses for GET /models/{id}
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
10
- | `customModelsByPk` | [GetModelById200ApplicationJSONCustomModels](../../models/operations/getmodelbyid200applicationjsoncustommodels.md) | :heavy_minus_sign: | columns and relationships of "custom_models" |
@@ -1,10 +0,0 @@
1
- # GetPlatformModels200ApplicationJSON
2
-
3
- Responses for GET /api/rest/v1/platformModels
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
10
- | `customModels` | [GetPlatformModels200ApplicationJSONCustomModels](../../models/operations/getplatformmodels200applicationjsoncustommodels.md)[] | :heavy_minus_sign: | N/A |
@@ -1,15 +0,0 @@
1
- # GetPlatformModels200ApplicationJSONCustomModels
2
-
3
- columns and relationships of "custom_models"
4
-
5
-
6
- ## Fields
7
-
8
- | Field | Type | Required | Description |
9
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
10
- | `description` | *string* | :heavy_minus_sign: | N/A |
11
- | `featured` | *boolean* | :heavy_minus_sign: | N/A |
12
- | `generatedImage` | [GetPlatformModels200ApplicationJSONCustomModelsGeneratedImages](../../models/operations/getplatformmodels200applicationjsoncustommodelsgeneratedimages.md) | :heavy_minus_sign: | columns and relationships of "generated_images" |
13
- | `id` | *string* | :heavy_minus_sign: | N/A |
14
- | `name` | *string* | :heavy_minus_sign: | N/A |
15
- | `nsfw` | *boolean* | :heavy_minus_sign: | N/A |