@leonardo-ai/sdk 2.2.0 → 2.3.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.
- package/README.md +1 -1
- package/dist/sdk/models/operations/creategeneration.d.ts +1 -1
- package/dist/sdk/sdk.js +3 -3
- package/docs/sdk/models/operations/creategenerationrequestbody.md +1 -1
- package/docs/sdks/dataset/README.md +5 -5
- package/docs/sdks/element/README.md +1 -1
- package/docs/sdks/generation/README.md +7 -6
- package/docs/sdks/initimage/README.md +3 -3
- package/docs/sdks/model/README.md +6 -6
- package/docs/sdks/user/README.md +1 -1
- package/docs/sdks/variation/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ Handling errors in this SDK should largely match your expectations. All operati
|
|
|
119
119
|
|
|
120
120
|
| Error Object | Status Code | Content Type |
|
|
121
121
|
| --------------- | --------------- | --------------- |
|
|
122
|
-
| errors.SDKError |
|
|
122
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
123
123
|
|
|
124
124
|
Example
|
|
125
125
|
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -52,9 +52,9 @@ var SDKConfiguration = /** @class */ (function () {
|
|
|
52
52
|
function SDKConfiguration(init) {
|
|
53
53
|
this.language = "typescript";
|
|
54
54
|
this.openapiDocVersion = "v1.0.0";
|
|
55
|
-
this.sdkVersion = "2.
|
|
56
|
-
this.genVersion = "2.
|
|
57
|
-
this.userAgent = "speakeasy-sdk/typescript 2.
|
|
55
|
+
this.sdkVersion = "2.3.0";
|
|
56
|
+
this.genVersion = "2.225.0";
|
|
57
|
+
this.userAgent = "speakeasy-sdk/typescript 2.3.0 2.225.0 v1.0.0 @leonardo-ai/sdk";
|
|
58
58
|
Object.assign(this, init);
|
|
59
59
|
}
|
|
60
60
|
return SDKConfiguration;
|
|
@@ -30,7 +30,7 @@ Query parameters to be provided in the request body as a JSON object
|
|
|
30
30
|
| `photoReal` | *boolean* | :heavy_minus_sign: | Enable the photoReal feature. Requires enabling alchemy and unspecifying modelId. |
|
|
31
31
|
| `photoRealStrength` | *number* | :heavy_minus_sign: | 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. |
|
|
32
32
|
| `presetStyle` | [shared.SdGenerationStyle](../../../sdk/models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. |
|
|
33
|
-
| `prompt` | *string* | :
|
|
33
|
+
| `prompt` | *string* | :heavy_check_mark: | The prompt used to generate images |
|
|
34
34
|
| `promptMagic` | *boolean* | :heavy_minus_sign: | Enable to use Prompt Magic. |
|
|
35
35
|
| `promptMagicStrength` | *number* | :heavy_minus_sign: | Strength of prompt magic. Must be a float between 0.1 and 1.0 |
|
|
36
36
|
| `promptMagicVersion` | *string* | :heavy_minus_sign: | Prompt magic version v2 or v3, for use when promptMagic: true |
|
|
@@ -50,7 +50,7 @@ run();
|
|
|
50
50
|
|
|
51
51
|
| Error Object | Status Code | Content Type |
|
|
52
52
|
| --------------- | --------------- | --------------- |
|
|
53
|
-
| errors.SDKError |
|
|
53
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
54
54
|
|
|
55
55
|
## deleteDatasetById
|
|
56
56
|
|
|
@@ -93,7 +93,7 @@ run();
|
|
|
93
93
|
|
|
94
94
|
| Error Object | Status Code | Content Type |
|
|
95
95
|
| --------------- | --------------- | --------------- |
|
|
96
|
-
| errors.SDKError |
|
|
96
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
97
97
|
|
|
98
98
|
## getDatasetById
|
|
99
99
|
|
|
@@ -136,7 +136,7 @@ run();
|
|
|
136
136
|
|
|
137
137
|
| Error Object | Status Code | Content Type |
|
|
138
138
|
| --------------- | --------------- | --------------- |
|
|
139
|
-
| errors.SDKError |
|
|
139
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
140
140
|
|
|
141
141
|
## uploadDatasetImage
|
|
142
142
|
|
|
@@ -183,7 +183,7 @@ run();
|
|
|
183
183
|
|
|
184
184
|
| Error Object | Status Code | Content Type |
|
|
185
185
|
| --------------- | --------------- | --------------- |
|
|
186
|
-
| errors.SDKError |
|
|
186
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
187
187
|
|
|
188
188
|
## uploadDatasetImageFromGen
|
|
189
189
|
|
|
@@ -230,4 +230,4 @@ run();
|
|
|
230
230
|
|
|
231
231
|
| Error Object | Status Code | Content Type |
|
|
232
232
|
| --------------- | --------------- | --------------- |
|
|
233
|
-
| errors.SDKError |
|
|
233
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -32,6 +32,7 @@ async function run() {
|
|
|
32
32
|
imagePrompts: [
|
|
33
33
|
"string",
|
|
34
34
|
],
|
|
35
|
+
prompt: "string",
|
|
35
36
|
});
|
|
36
37
|
|
|
37
38
|
if (res.statusCode == 200) {
|
|
@@ -57,7 +58,7 @@ run();
|
|
|
57
58
|
|
|
58
59
|
| Error Object | Status Code | Content Type |
|
|
59
60
|
| --------------- | --------------- | --------------- |
|
|
60
|
-
| errors.SDKError |
|
|
61
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
61
62
|
|
|
62
63
|
## deleteGenerationById
|
|
63
64
|
|
|
@@ -100,7 +101,7 @@ run();
|
|
|
100
101
|
|
|
101
102
|
| Error Object | Status Code | Content Type |
|
|
102
103
|
| --------------- | --------------- | --------------- |
|
|
103
|
-
| errors.SDKError |
|
|
104
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
104
105
|
|
|
105
106
|
## deleteGenerationsTextureId
|
|
106
107
|
|
|
@@ -145,7 +146,7 @@ run();
|
|
|
145
146
|
|
|
146
147
|
| Error Object | Status Code | Content Type |
|
|
147
148
|
| --------------- | --------------- | --------------- |
|
|
148
|
-
| errors.SDKError |
|
|
149
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
149
150
|
|
|
150
151
|
## getGenerationById
|
|
151
152
|
|
|
@@ -188,7 +189,7 @@ run();
|
|
|
188
189
|
|
|
189
190
|
| Error Object | Status Code | Content Type |
|
|
190
191
|
| --------------- | --------------- | --------------- |
|
|
191
|
-
| errors.SDKError |
|
|
192
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
192
193
|
|
|
193
194
|
## getGenerationsByUserId
|
|
194
195
|
|
|
@@ -235,7 +236,7 @@ run();
|
|
|
235
236
|
|
|
236
237
|
| Error Object | Status Code | Content Type |
|
|
237
238
|
| --------------- | --------------- | --------------- |
|
|
238
|
-
| errors.SDKError |
|
|
239
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
239
240
|
|
|
240
241
|
## postGenerationsTexture
|
|
241
242
|
|
|
@@ -276,4 +277,4 @@ run();
|
|
|
276
277
|
|
|
277
278
|
| Error Object | Status Code | Content Type |
|
|
278
279
|
| --------------- | --------------- | --------------- |
|
|
279
|
-
| errors.SDKError |
|
|
280
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -48,7 +48,7 @@ run();
|
|
|
48
48
|
|
|
49
49
|
| Error Object | Status Code | Content Type |
|
|
50
50
|
| --------------- | --------------- | --------------- |
|
|
51
|
-
| errors.SDKError |
|
|
51
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
52
52
|
|
|
53
53
|
## getInitImageById
|
|
54
54
|
|
|
@@ -91,7 +91,7 @@ run();
|
|
|
91
91
|
|
|
92
92
|
| Error Object | Status Code | Content Type |
|
|
93
93
|
| --------------- | --------------- | --------------- |
|
|
94
|
-
| errors.SDKError |
|
|
94
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
95
95
|
|
|
96
96
|
## uploadInitImage
|
|
97
97
|
|
|
@@ -134,4 +134,4 @@ run();
|
|
|
134
134
|
|
|
135
135
|
| Error Object | Status Code | Content Type |
|
|
136
136
|
| --------------- | --------------- | --------------- |
|
|
137
|
-
| errors.SDKError |
|
|
137
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -54,7 +54,7 @@ run();
|
|
|
54
54
|
|
|
55
55
|
| Error Object | Status Code | Content Type |
|
|
56
56
|
| --------------- | --------------- | --------------- |
|
|
57
|
-
| errors.SDKError |
|
|
57
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
58
58
|
|
|
59
59
|
## deleteModelById
|
|
60
60
|
|
|
@@ -97,7 +97,7 @@ run();
|
|
|
97
97
|
|
|
98
98
|
| Error Object | Status Code | Content Type |
|
|
99
99
|
| --------------- | --------------- | --------------- |
|
|
100
|
-
| errors.SDKError |
|
|
100
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
101
101
|
|
|
102
102
|
## deleteModels3dId
|
|
103
103
|
|
|
@@ -142,7 +142,7 @@ run();
|
|
|
142
142
|
|
|
143
143
|
| Error Object | Status Code | Content Type |
|
|
144
144
|
| --------------- | --------------- | --------------- |
|
|
145
|
-
| errors.SDKError |
|
|
145
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
146
146
|
|
|
147
147
|
## getModelById
|
|
148
148
|
|
|
@@ -185,7 +185,7 @@ run();
|
|
|
185
185
|
|
|
186
186
|
| Error Object | Status Code | Content Type |
|
|
187
187
|
| --------------- | --------------- | --------------- |
|
|
188
|
-
| errors.SDKError |
|
|
188
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
189
189
|
|
|
190
190
|
## getPlatformModels
|
|
191
191
|
|
|
@@ -230,7 +230,7 @@ run();
|
|
|
230
230
|
|
|
231
231
|
| Error Object | Status Code | Content Type |
|
|
232
232
|
| --------------- | --------------- | --------------- |
|
|
233
|
-
| errors.SDKError |
|
|
233
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
234
234
|
|
|
235
235
|
## postModels3dUpload
|
|
236
236
|
|
|
@@ -271,4 +271,4 @@ run();
|
|
|
271
271
|
|
|
272
272
|
| Error Object | Status Code | Content Type |
|
|
273
273
|
| --------------- | --------------- | --------------- |
|
|
274
|
-
| errors.SDKError |
|
|
274
|
+
| errors.SDKError | 4xx-5xx | */* |
|
package/docs/sdks/user/README.md
CHANGED
|
@@ -49,7 +49,7 @@ run();
|
|
|
49
49
|
|
|
50
50
|
| Error Object | Status Code | Content Type |
|
|
51
51
|
| --------------- | --------------- | --------------- |
|
|
52
|
-
| errors.SDKError |
|
|
52
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
53
53
|
|
|
54
54
|
## createVariationUpscale
|
|
55
55
|
|
|
@@ -92,7 +92,7 @@ run();
|
|
|
92
92
|
|
|
93
93
|
| Error Object | Status Code | Content Type |
|
|
94
94
|
| --------------- | --------------- | --------------- |
|
|
95
|
-
| errors.SDKError |
|
|
95
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
96
96
|
|
|
97
97
|
## getVariationById
|
|
98
98
|
|
|
@@ -135,7 +135,7 @@ run();
|
|
|
135
135
|
|
|
136
136
|
| Error Object | Status Code | Content Type |
|
|
137
137
|
| --------------- | --------------- | --------------- |
|
|
138
|
-
| errors.SDKError |
|
|
138
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
139
139
|
|
|
140
140
|
## postVariationsUnzoom
|
|
141
141
|
|
|
@@ -176,4 +176,4 @@ run();
|
|
|
176
176
|
|
|
177
177
|
| Error Object | Status Code | Content Type |
|
|
178
178
|
| --------------- | --------------- | --------------- |
|
|
179
|
-
| errors.SDKError |
|
|
179
|
+
| errors.SDKError | 4xx-5xx | */* |
|