Skip to content

Commit a5ef656

Browse files
committed
sync & publish 120240617.1.7
1 parent 72bc764 commit a5ef656

9 files changed

+369
-51
lines changed

bin/update-version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { execSync } from "node:child_process";
55

66
// NOTE: Merged with API version to produce the full SDK version string
77
// https://docs.substrate.run/versioning
8-
const SDK_VERSION = "1.1.6";
8+
const SDK_VERSION = "1.1.7";
99

1010
const ok = (message: string) => console.log("\x1b[32m✓\x1b[0m", message);
1111

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "substrate",
3-
"version": "120240617.1.6",
3+
"version": "120240617.1.7",
44
"description": "The official SDK for the Substrate API",
55
"repository": {
66
"type": "git",

src/GEN_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20240617.20240724
1+
20240617.20240727

src/Nodes.ts

+164-44
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* 𐃏 Substrate
33
* @generated file
4-
* 20240617.20240724
4+
* 20240617.20240727
55
*/
66

77
import * as OpenAPI from "substrate/OpenAPI";
@@ -1670,6 +1670,52 @@ export class StableDiffusionXLControlNetOut extends FutureObject {
16701670
return super._result() as Promise<StableDiffusionXLControlNetOut>;
16711671
}
16721672
}
1673+
/** StableVideoDiffusionIn */
1674+
export class StableVideoDiffusionIn extends FutureObject {
1675+
/** Original image. */
1676+
get image_uri() {
1677+
return new FutureString(this._directive.next("image_uri"));
1678+
}
1679+
/** (Optional) Use "hosted" to return a video 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 video data will be returned as a base64-encoded string. */
1680+
get store() {
1681+
return new FutureString(this._directive.next("store"));
1682+
}
1683+
/** (Optional) Output video format. */
1684+
get output_format() {
1685+
return new FutureString(this._directive.next("output_format"));
1686+
}
1687+
/** (Optional) Seed for deterministic generation. Default is a random seed. */
1688+
get seed() {
1689+
return new FutureNumber(this._directive.next("seed"));
1690+
}
1691+
/** (Optional) Frames per second of the generated video. */
1692+
get fps() {
1693+
return new FutureNumber(this._directive.next("fps"));
1694+
}
1695+
/** (Optional) The motion bucket id to use for the generated video. This can be used to control the motion of the generated video. Increasing the motion bucket id increases the motion of the generated video. */
1696+
get motion_bucket_id() {
1697+
return new FutureNumber(this._directive.next("motion_bucket_id"));
1698+
}
1699+
/** (Optional) The amount of noise added to the conditioning image. The higher the values the less the video resembles the conditioning image. Increasing this value also increases the motion of the generated video. */
1700+
get noise() {
1701+
return new FutureNumber(this._directive.next("noise"));
1702+
}
1703+
/** returns the result for `StableVideoDiffusionIn` once it's node has been run. */
1704+
protected override async _result(): Promise<StableVideoDiffusionIn> {
1705+
return super._result() as Promise<StableVideoDiffusionIn>;
1706+
}
1707+
}
1708+
/** StableVideoDiffusionOut */
1709+
export class StableVideoDiffusionOut extends FutureObject {
1710+
/** Generated video. */
1711+
get video_uri() {
1712+
return new FutureString(this._directive.next("video_uri"));
1713+
}
1714+
/** returns the result for `StableVideoDiffusionOut` once it's node has been run. */
1715+
protected override async _result(): Promise<StableVideoDiffusionOut> {
1716+
return super._result() as Promise<StableVideoDiffusionOut>;
1717+
}
1718+
}
16731719
/** InpaintImageIn */
16741720
export class InpaintImageIn extends FutureObject {
16751721
/** Original image. */
@@ -4337,6 +4383,77 @@ export class StableDiffusionXLControlNet extends Node {
43374383
return super.output() as OpenAPI.components["schemas"]["StableDiffusionXLControlNetOut"];
43384384
}
43394385
}
4386+
export namespace StableVideoDiffusion {
4387+
/**
4388+
* StableVideoDiffusion Input
4389+
* https://www.substrate.run/nodes#StableVideoDiffusion
4390+
*/
4391+
export type Input = FutureExpandAny<
4392+
OpenAPI.components["schemas"]["StableVideoDiffusionIn"]
4393+
>;
4394+
4395+
/**
4396+
* StableVideoDiffusion Output
4397+
* https://www.substrate.run/nodes#StableVideoDiffusion
4398+
*/
4399+
export type Output = OpenAPI.components["schemas"]["StableVideoDiffusionOut"];
4400+
}
4401+
4402+
/**
4403+
* Generates a video using a still image as conditioning frame.
4404+
*
4405+
* https://www.substrate.run/nodes#StableVideoDiffusion
4406+
*/
4407+
export class StableVideoDiffusion extends Node {
4408+
/**
4409+
* Input arguments: `image_uri`, `store` (optional), `output_format` (optional), `seed` (optional), `fps` (optional), `motion_bucket_id` (optional), `noise` (optional)
4410+
*
4411+
* Output fields: `video_uri`
4412+
*
4413+
* https://www.substrate.run/nodes#StableVideoDiffusion
4414+
*/
4415+
constructor(
4416+
args: FutureExpandAny<
4417+
OpenAPI.components["schemas"]["StableVideoDiffusionIn"]
4418+
>,
4419+
options?: Options,
4420+
) {
4421+
super(args, options);
4422+
this.node = "StableVideoDiffusion";
4423+
}
4424+
4425+
/**
4426+
* Retrieve this node's output from a response.
4427+
*
4428+
* Output fields: `video_uri`
4429+
*
4430+
* https://www.substrate.run/nodes#StableVideoDiffusion
4431+
*/
4432+
protected override async result(): Promise<
4433+
OpenAPI.components["schemas"]["StableVideoDiffusionOut"] | undefined
4434+
> {
4435+
return Promise.resolve(
4436+
this._response ? this._response.get(this) : undefined,
4437+
) as Promise<
4438+
OpenAPI.components["schemas"]["StableVideoDiffusionOut"] | undefined
4439+
>;
4440+
}
4441+
4442+
/**
4443+
* Future reference to this node's output.
4444+
*
4445+
* Output fields: `video_uri`
4446+
*
4447+
* https://www.substrate.run/nodes#StableVideoDiffusion
4448+
*/
4449+
override get future(): StableVideoDiffusionOut {
4450+
return new StableVideoDiffusionOut(new Trace([], this));
4451+
}
4452+
4453+
protected override output(): OpenAPI.components["schemas"]["StableVideoDiffusionOut"] {
4454+
return super.output() as OpenAPI.components["schemas"]["StableVideoDiffusionOut"];
4455+
}
4456+
}
43404457
export namespace TranscribeSpeech {
43414458
/**
43424459
* TranscribeSpeech Input
@@ -5789,6 +5906,7 @@ export type AnyNode =
57895906
| StableDiffusionXLLightning
57905907
| StableDiffusionXLInpaint
57915908
| StableDiffusionXLControlNet
5909+
| StableVideoDiffusion
57925910
| TranscribeSpeech
57935911
| GenerateSpeech
57945912
| RemoveBackground
@@ -5853,46 +5971,48 @@ export type NodeOutput<T> = T extends Experimental
58535971
? OpenAPI.components["schemas"]["StableDiffusionXLInpaintOut"]
58545972
: T extends StableDiffusionXLControlNet
58555973
? OpenAPI.components["schemas"]["StableDiffusionXLControlNetOut"]
5856-
: T extends TranscribeSpeech
5857-
? OpenAPI.components["schemas"]["TranscribeSpeechOut"]
5858-
: T extends GenerateSpeech
5859-
? OpenAPI.components["schemas"]["GenerateSpeechOut"]
5860-
: T extends RemoveBackground
5861-
? OpenAPI.components["schemas"]["RemoveBackgroundOut"]
5862-
: T extends EraseImage
5863-
? OpenAPI.components["schemas"]["EraseImageOut"]
5864-
: T extends UpscaleImage
5865-
? OpenAPI.components["schemas"]["UpscaleImageOut"]
5866-
: T extends SegmentUnderPoint
5867-
? OpenAPI.components["schemas"]["SegmentUnderPointOut"]
5868-
: T extends SegmentAnything
5869-
? OpenAPI.components["schemas"]["SegmentAnythingOut"]
5870-
: T extends SplitDocument
5871-
? OpenAPI.components["schemas"]["SplitDocumentOut"]
5872-
: T extends EmbedText
5873-
? OpenAPI.components["schemas"]["EmbedTextOut"]
5874-
: T extends MultiEmbedText
5875-
? OpenAPI.components["schemas"]["MultiEmbedTextOut"]
5876-
: T extends EmbedImage
5877-
? OpenAPI.components["schemas"]["EmbedImageOut"]
5878-
: T extends MultiEmbedImage
5879-
? OpenAPI.components["schemas"]["MultiEmbedImageOut"]
5880-
: T extends JinaV2
5881-
? OpenAPI.components["schemas"]["JinaV2Out"]
5882-
: T extends CLIP
5883-
? OpenAPI.components["schemas"]["CLIPOut"]
5884-
: T extends FindOrCreateVectorStore
5885-
? OpenAPI.components["schemas"]["FindOrCreateVectorStoreOut"]
5886-
: T extends ListVectorStores
5887-
? OpenAPI.components["schemas"]["ListVectorStoresOut"]
5888-
: T extends DeleteVectorStore
5889-
? OpenAPI.components["schemas"]["DeleteVectorStoreOut"]
5890-
: T extends QueryVectorStore
5891-
? OpenAPI.components["schemas"]["QueryVectorStoreOut"]
5892-
: T extends FetchVectors
5893-
? OpenAPI.components["schemas"]["FetchVectorsOut"]
5894-
: T extends UpdateVectors
5895-
? OpenAPI.components["schemas"]["UpdateVectorsOut"]
5896-
: T extends DeleteVectors
5897-
? OpenAPI.components["schemas"]["DeleteVectorsOut"]
5898-
: never;
5974+
: T extends StableVideoDiffusion
5975+
? OpenAPI.components["schemas"]["StableVideoDiffusionOut"]
5976+
: T extends TranscribeSpeech
5977+
? OpenAPI.components["schemas"]["TranscribeSpeechOut"]
5978+
: T extends GenerateSpeech
5979+
? OpenAPI.components["schemas"]["GenerateSpeechOut"]
5980+
: T extends RemoveBackground
5981+
? OpenAPI.components["schemas"]["RemoveBackgroundOut"]
5982+
: T extends EraseImage
5983+
? OpenAPI.components["schemas"]["EraseImageOut"]
5984+
: T extends UpscaleImage
5985+
? OpenAPI.components["schemas"]["UpscaleImageOut"]
5986+
: T extends SegmentUnderPoint
5987+
? OpenAPI.components["schemas"]["SegmentUnderPointOut"]
5988+
: T extends SegmentAnything
5989+
? OpenAPI.components["schemas"]["SegmentAnythingOut"]
5990+
: T extends SplitDocument
5991+
? OpenAPI.components["schemas"]["SplitDocumentOut"]
5992+
: T extends EmbedText
5993+
? OpenAPI.components["schemas"]["EmbedTextOut"]
5994+
: T extends MultiEmbedText
5995+
? OpenAPI.components["schemas"]["MultiEmbedTextOut"]
5996+
: T extends EmbedImage
5997+
? OpenAPI.components["schemas"]["EmbedImageOut"]
5998+
: T extends MultiEmbedImage
5999+
? OpenAPI.components["schemas"]["MultiEmbedImageOut"]
6000+
: T extends JinaV2
6001+
? OpenAPI.components["schemas"]["JinaV2Out"]
6002+
: T extends CLIP
6003+
? OpenAPI.components["schemas"]["CLIPOut"]
6004+
: T extends FindOrCreateVectorStore
6005+
? OpenAPI.components["schemas"]["FindOrCreateVectorStoreOut"]
6006+
: T extends ListVectorStores
6007+
? OpenAPI.components["schemas"]["ListVectorStoresOut"]
6008+
: T extends DeleteVectorStore
6009+
? OpenAPI.components["schemas"]["DeleteVectorStoreOut"]
6010+
: T extends QueryVectorStore
6011+
? OpenAPI.components["schemas"]["QueryVectorStoreOut"]
6012+
: T extends FetchVectors
6013+
? OpenAPI.components["schemas"]["FetchVectorsOut"]
6014+
: T extends UpdateVectors
6015+
? OpenAPI.components["schemas"]["UpdateVectorsOut"]
6016+
: T extends DeleteVectors
6017+
? OpenAPI.components["schemas"]["DeleteVectorsOut"]
6018+
: never;

0 commit comments

Comments
 (0)