|
1 | 1 | /**
|
2 | 2 | * 𐃏 Substrate
|
3 | 3 | * @generated file
|
4 |
| - * 20240617.20240724 |
| 4 | + * 20240617.20240727 |
5 | 5 | */
|
6 | 6 |
|
7 | 7 | import * as OpenAPI from "substrate/OpenAPI";
|
@@ -1670,6 +1670,52 @@ export class StableDiffusionXLControlNetOut extends FutureObject {
|
1670 | 1670 | return super._result() as Promise<StableDiffusionXLControlNetOut>;
|
1671 | 1671 | }
|
1672 | 1672 | }
|
| 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 | +} |
1673 | 1719 | /** InpaintImageIn */
|
1674 | 1720 | export class InpaintImageIn extends FutureObject {
|
1675 | 1721 | /** Original image. */
|
@@ -4337,6 +4383,77 @@ export class StableDiffusionXLControlNet extends Node {
|
4337 | 4383 | return super.output() as OpenAPI.components["schemas"]["StableDiffusionXLControlNetOut"];
|
4338 | 4384 | }
|
4339 | 4385 | }
|
| 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 | +} |
4340 | 4457 | export namespace TranscribeSpeech {
|
4341 | 4458 | /**
|
4342 | 4459 | * TranscribeSpeech Input
|
@@ -5789,6 +5906,7 @@ export type AnyNode =
|
5789 | 5906 | | StableDiffusionXLLightning
|
5790 | 5907 | | StableDiffusionXLInpaint
|
5791 | 5908 | | StableDiffusionXLControlNet
|
| 5909 | + | StableVideoDiffusion |
5792 | 5910 | | TranscribeSpeech
|
5793 | 5911 | | GenerateSpeech
|
5794 | 5912 | | RemoveBackground
|
@@ -5853,46 +5971,48 @@ export type NodeOutput<T> = T extends Experimental
|
5853 | 5971 | ? OpenAPI.components["schemas"]["StableDiffusionXLInpaintOut"]
|
5854 | 5972 | : T extends StableDiffusionXLControlNet
|
5855 | 5973 | ? 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