diff --git a/bin/update-version.ts b/bin/update-version.ts index 7635df0..44b3724 100755 --- a/bin/update-version.ts +++ b/bin/update-version.ts @@ -5,7 +5,7 @@ import { execSync } from "node:child_process"; // NOTE: Merged with API version to produce the full SDK version string // https://docs.substrate.run/versioning -const SDK_VERSION = "1.1.5"; +const SDK_VERSION = "1.1.6"; const ok = (message: string) => console.log("\x1b[32m✓\x1b[0m", message); diff --git a/package-lock.json b/package-lock.json index 7db5279..4640496 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "substrate", - "version": "120240617.1.5", + "version": "120240617.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "substrate", - "version": "120240617.1.5", + "version": "120240617.1.6", "license": "MIT", "dependencies": { "@types/node-fetch": "^2.6.11", diff --git a/package.json b/package.json index 638a8f1..21b99e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "substrate", - "version": "120240617.1.5", + "version": "120240617.1.6", "description": "The official SDK for the Substrate API", "repository": { "type": "git", diff --git a/src/GEN_VERSION b/src/GEN_VERSION index 48f67c8..e3fbb5a 100644 --- a/src/GEN_VERSION +++ b/src/GEN_VERSION @@ -1 +1 @@ -20240617.20240718 \ No newline at end of file +20240617.20240724 \ No newline at end of file diff --git a/src/Nodes.ts b/src/Nodes.ts index a31ff49..02d5916 100644 --- a/src/Nodes.ts +++ b/src/Nodes.ts @@ -1,7 +1,7 @@ /** * 𐃏 Substrate * @generated file - * 20240617.20240718 + * 20240617.20240724 */ import * as OpenAPI from "substrate/OpenAPI"; @@ -1381,7 +1381,7 @@ export class GenerateImageIn extends FutureObject { get prompt() { return new FutureString(this._directive.next("prompt")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1411,7 +1411,7 @@ export class MultiGenerateImageIn extends FutureObject { get num_images() { return new FutureNumber(this._directive.next("num_images")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1449,7 +1449,7 @@ export class StableDiffusionXLIn extends FutureObject { get num_images() { return new FutureNumber(this._directive.next("num_images")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1515,7 +1515,7 @@ export class StableDiffusionXLLightningIn extends FutureObject { get num_images() { return new FutureNumber(this._directive.next("num_images")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1572,7 +1572,7 @@ export class StableDiffusionXLIPAdapterIn extends FutureObject { get negative_prompt() { return new FutureString(this._directive.next("negative_prompt")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1633,7 +1633,7 @@ export class StableDiffusionXLControlNetIn extends FutureObject { get negative_prompt() { return new FutureString(this._directive.next("negative_prompt")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1684,7 +1684,7 @@ export class InpaintImageIn extends FutureObject { get mask_image_uri() { return new FutureString(this._directive.next("mask_image_uri")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1722,7 +1722,7 @@ export class MultiInpaintImageIn extends FutureObject { get num_images() { return new FutureNumber(this._directive.next("num_images")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1768,7 +1768,7 @@ export class StableDiffusionXLInpaintIn extends FutureObject { get negative_prompt() { return new FutureString(this._directive.next("negative_prompt")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1847,7 +1847,7 @@ export class EraseImageIn extends FutureObject { get mask_image_uri() { return new FutureString(this._directive.next("mask_image_uri")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1877,7 +1877,7 @@ export class BigLaMaIn extends FutureObject { get mask_image_uri() { return new FutureString(this._directive.next("mask_image_uri")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1915,7 +1915,7 @@ export class RemoveBackgroundIn extends FutureObject { get background_color() { return new FutureString(this._directive.next("background_color")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1941,7 +1941,7 @@ export class DISISNetIn extends FutureObject { get image_uri() { return new FutureString(this._directive.next("image_uri")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -1975,7 +1975,7 @@ export class UpscaleImageIn extends FutureObject { get output_resolution() { return new FutureNumber(this._directive.next("output_resolution")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -2005,7 +2005,7 @@ export class SegmentUnderPointIn extends FutureObject { get point() { return new Point(this._directive.next("point")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -2043,7 +2043,7 @@ export class SegmentAnythingIn extends FutureObject { get box_prompts() { return new SegmentAnythingInBoxPrompts(this._directive.next("box_prompts")); } - /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -2191,7 +2191,7 @@ export class GenerateSpeechIn extends FutureObject { get text() { return new FutureString(this._directive.next("text")); } - /** (Optional) Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } @@ -2225,7 +2225,7 @@ export class XTTSV2In extends FutureObject { get language() { return new FutureString(this._directive.next("language")); } - /** (Optional) Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string. */ + /** (Optional) Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */ get store() { return new FutureString(this._directive.next("store")); } diff --git a/src/OpenAPI.ts b/src/OpenAPI.ts index c676857..b0d25ee 100644 --- a/src/OpenAPI.ts +++ b/src/OpenAPI.ts @@ -419,7 +419,10 @@ export interface components { | "Mixtral8x7BInstruct" | "Llama3Instruct8B" | "Llama3Instruct70B" - | "Firellava13B"; + | "Firellava13B" + | "gpt-4o" + | "gpt-4o-mini" + | "claude-3-5-sonnet-20240620"; }; /** ComputeTextOut */ ComputeTextOut: { @@ -874,7 +877,7 @@ export interface components { GenerateImageIn: { /** @description Text prompt. */ prompt: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** GenerateImageOut */ @@ -891,7 +894,7 @@ export interface components { * @default 2 */ num_images: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** MultiGenerateImageOut */ @@ -918,7 +921,7 @@ export interface components { * @default 1 */ num_images: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * @description Height of output image, in pixels. @@ -967,7 +970,7 @@ export interface components { * @default 1 */ num_images?: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * @description Height of output image, in pixels. @@ -1011,7 +1014,7 @@ export interface components { ip_adapter_scale?: number; /** @description Negative input prompt. */ negative_prompt?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * @description Width of output image, in pixels. @@ -1059,7 +1062,7 @@ export interface components { output_resolution?: number; /** @description Negative input prompt. */ negative_prompt?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * Format: float @@ -1094,7 +1097,7 @@ export interface components { prompt: string; /** @description Mask image that controls which pixels are inpainted. If unset, the entire image is edited (image-to-image). */ mask_image_uri?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** InpaintImageOut */ @@ -1115,7 +1118,7 @@ export interface components { * @default 2 */ num_images: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** MultiInpaintImageOut */ @@ -1146,7 +1149,7 @@ export interface components { output_resolution?: number; /** @description Negative input prompt. */ negative_prompt?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * Format: float @@ -1203,7 +1206,7 @@ export interface components { image_uri: string; /** @description Mask image that controls which pixels are inpainted. */ mask_image_uri: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** EraseImageOut */ @@ -1217,7 +1220,7 @@ export interface components { image_uri: string; /** @description Mask image that controls which pixels are inpainted. */ mask_image_uri: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** BigLaMaOut */ @@ -1241,7 +1244,7 @@ export interface components { invert_mask?: boolean; /** @description Hex value background color. Transparent if unset. */ background_color?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** RemoveBackgroundOut */ @@ -1253,7 +1256,7 @@ export interface components { DISISNetIn: { /** @description Input image. */ image_uri: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** DISISNetOut */ @@ -1272,7 +1275,7 @@ export interface components { * @default 1024 */ output_resolution?: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** UpscaleImageOut */ @@ -1291,7 +1294,7 @@ export interface components { /** @description Y position. */ y: number; }; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** SegmentUnderPointOut */ @@ -1333,7 +1336,7 @@ export interface components { */ y2: number; }[]; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; /** SegmentAnythingOut */ @@ -1487,7 +1490,7 @@ export interface components { GenerateSpeechIn: { /** @description Input text. */ text: string; - /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */ store?: string; }; /** GenerateSpeechOut */ @@ -1506,7 +1509,7 @@ export interface components { * @default en */ language?: string; - /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */ store?: string; }; /** XTTSV2Out */ @@ -2244,7 +2247,10 @@ export interface operations { | "Mixtral8x7BInstruct" | "Llama3Instruct8B" | "Llama3Instruct70B" - | "Firellava13B"; + | "Firellava13B" + | "gpt-4o" + | "gpt-4o-mini" + | "claude-3-5-sonnet-20240620"; }; }; }; @@ -2964,7 +2970,7 @@ export interface operations { "application/json": { /** @description Text prompt. */ prompt: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3003,7 +3009,7 @@ export interface operations { * @default 2 */ num_images: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3045,7 +3051,7 @@ export interface operations { prompt: string; /** @description Mask image that controls which pixels are inpainted. If unset, the entire image is edited (image-to-image). */ mask_image_uri?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3090,7 +3096,7 @@ export interface operations { * @default 2 */ num_images: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3139,7 +3145,7 @@ export interface operations { * @default 1 */ num_images?: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * @description Height of output image, in pixels. @@ -3214,7 +3220,7 @@ export interface operations { output_resolution?: number; /** @description Negative input prompt. */ negative_prompt?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * Format: float @@ -3288,7 +3294,7 @@ export interface operations { output_resolution?: number; /** @description Negative input prompt. */ negative_prompt?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; /** * Format: float @@ -3446,7 +3452,7 @@ export interface operations { "application/json": { /** @description Input text. */ text: string; - /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3491,7 +3497,7 @@ export interface operations { invert_mask?: boolean; /** @description Hex value background color. Transparent if unset. */ background_color?: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3527,7 +3533,7 @@ export interface operations { image_uri: string; /** @description Mask image that controls which pixels are inpainted. */ mask_image_uri: string; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3568,7 +3574,7 @@ export interface operations { * @default 1024 */ output_resolution?: number; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3612,7 +3618,7 @@ export interface operations { /** @description Y position. */ y: number; }; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; @@ -3681,7 +3687,7 @@ export interface operations { */ y2: number; }[]; - /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string. */ + /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */ store?: string; }; }; diff --git a/src/index.ts b/src/index.ts index b386b58..1ee897c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ /** * 𐃏 Substrate TypeScript SDK * @generated file - * 20240617.20240718 + * 20240617.20240724 */ export { SubstrateError } from "substrate/Error"; diff --git a/src/openapi.json b/src/openapi.json index c352d32..68ce5ce 100644 --- a/src/openapi.json +++ b/src/openapi.json @@ -214,7 +214,10 @@ "Mixtral8x7BInstruct", "Llama3Instruct8B", "Llama3Instruct70B", - "Firellava13B" + "Firellava13B", + "gpt-4o", + "gpt-4o-mini", + "claude-3-5-sonnet-20240620" ], "description": "Selected model. `Firellava13B` is automatically selected when `image_uris` is provided.", "default": "Llama3Instruct8B", @@ -973,7 +976,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["prompt"] @@ -1007,7 +1010,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["prompt", "num_images"] @@ -1056,7 +1059,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." }, "height": { "type": "integer", @@ -1145,7 +1148,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." }, "height": { "type": "integer", @@ -1223,7 +1226,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." }, "width": { "type": "integer", @@ -1306,7 +1309,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." }, "conditioning_scale": { "type": "number", @@ -1369,7 +1372,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri", "prompt"] @@ -1411,7 +1414,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri", "prompt", "num_images"] @@ -1468,7 +1471,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." }, "strength": { "type": "number", @@ -1560,7 +1563,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri", "mask_image_uri"] @@ -1590,7 +1593,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri", "mask_image_uri"] @@ -1631,7 +1634,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri"] @@ -1657,7 +1660,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri"] @@ -1695,7 +1698,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri"] @@ -1727,7 +1730,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri", "point"] @@ -1769,7 +1772,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string." } }, "required": ["image_uri"] @@ -1938,7 +1941,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string." } }, "required": ["text"] @@ -1974,7 +1977,7 @@ }, "store": { "type": "string", - "description": "Use \"hosted\" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string." + "description": "Use \"hosted\" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string." } }, "required": ["text"] diff --git a/src/version.ts b/src/version.ts index 2a42b82..1d2923b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = "120240617.1.5"; +export const VERSION = "120240617.1.6";