From 5840075e4df7553a26599cdbf16b4c978194a14d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:07:42 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#18) --- .stats.yml | 2 +- src/resources/image-to-video.ts | 10 ++++++++++ tests/api-resources/image-to-video.test.ts | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e8d3f3c..576d7e0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 3 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-00c8db8bba8ad66c20debdbe1bb3e56123c3e9162f9310c49f1f5d748a40b96b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-e9db3689e5377f05e22b2dd594ac7eea68b859b98ba4d18103ed7376dbd43a4f.yml diff --git a/src/resources/image-to-video.ts b/src/resources/image-to-video.ts index 34f6503..f8f2e0f 100644 --- a/src/resources/image-to-video.ts +++ b/src/resources/image-to-video.ts @@ -35,8 +35,18 @@ export interface ImageToVideoCreateParams { */ promptImage: string; + /** + * The number of seconds of duration for the output video. + */ + duration?: 5 | 10; + promptText?: string; + /** + * The aspect ratio of the output video. + */ + ratio?: '16:9' | '9:16'; + /** * If unspecified, a random number is chosen. Varying the seed integer is a way to * get different results for the same other request parameters. Using the same seed diff --git a/tests/api-resources/image-to-video.test.ts b/tests/api-resources/image-to-video.test.ts index ef7e8d5..1ab2711 100644 --- a/tests/api-resources/image-to-video.test.ts +++ b/tests/api-resources/image-to-video.test.ts @@ -27,7 +27,9 @@ describe('resource imageToVideo', () => { const response = await client.imageToVideo.create({ model: 'gen3a_turbo', promptImage: 'https://example.com', + duration: 5, promptText: 'promptText', + ratio: '16:9', seed: 0, watermark: true, });