@leonardo-ai/sdk 2.2.1 → 2.4.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.
@@ -91,7 +91,7 @@ export declare class CreateGenerationRequestBody extends SpeakeasyBase {
91
91
  /**
92
92
  * The prompt used to generate images
93
93
  */
94
- prompt?: string;
94
+ prompt: string;
95
95
  /**
96
96
  * Enable to use Prompt Magic.
97
97
  */
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.2.1";
56
- this.genVersion = "2.220.0";
57
- this.userAgent = "speakeasy-sdk/typescript 2.2.1 2.220.0 v1.0.0 @leonardo-ai/sdk";
55
+ this.sdkVersion = "2.4.0";
56
+ this.genVersion = "2.225.0";
57
+ this.userAgent = "speakeasy-sdk/typescript 2.4.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* | :heavy_minus_sign: | The prompt used to generate images |
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 |
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonardo-ai/sdk",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "author": "leonardoai",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",