Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 64
configured_endpoints: 65
12 changes: 12 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ Methods:

- <code title="post /v1/video_to_video">client.video_to_video.<a href="./src/runwayml/resources/video_to_video.py">create</a>(\*\*<a href="src/runwayml/types/video_to_video_create_params.py">params</a>) -> <a href="./src/runwayml/types/video_to_video_create_response.py">VideoToVideoCreateResponse</a></code>

# VideoToAudio

Types:

```python
from runwayml.types import VideoToAudioCreateResponse
```

Methods:

- <code title="post /v1/video_to_audio">client.video_to_audio.<a href="./src/runwayml/resources/video_to_audio.py">create</a>(\*\*<a href="src/runwayml/types/video_to_audio_create_params.py">params</a>) -> <a href="./src/runwayml/types/video_to_audio_create_response.py">VideoToAudioCreateResponse</a></code>

# VideoToHdr

Types:
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions src/runwayml/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
voice_dubbing,
image_to_video,
text_to_speech,
video_to_audio,
video_to_video,
voice_isolation,
speech_to_speech,
Expand All @@ -82,6 +83,7 @@
from .resources.voice_dubbing import VoiceDubbingResource, AsyncVoiceDubbingResource
from .resources.image_to_video import ImageToVideoResource, AsyncImageToVideoResource
from .resources.text_to_speech import TextToSpeechResource, AsyncTextToSpeechResource
from .resources.video_to_audio import VideoToAudioResource, AsyncVideoToAudioResource
from .resources.video_to_video import VideoToVideoResource, AsyncVideoToVideoResource
from .resources.voice_isolation import VoiceIsolationResource, AsyncVoiceIsolationResource
from .resources.speech_to_speech import SpeechToSpeechResource, AsyncSpeechToSpeechResource
Expand Down Expand Up @@ -201,6 +203,13 @@ def video_to_video(self) -> VideoToVideoResource:

return VideoToVideoResource(self)

@cached_property
def video_to_audio(self) -> VideoToAudioResource:
"""These endpoints all kick off tasks to create generations."""
from .resources.video_to_audio import VideoToAudioResource

return VideoToAudioResource(self)

@cached_property
def video_to_hdr(self) -> VideoToHdrResource:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -563,6 +572,13 @@ def video_to_video(self) -> AsyncVideoToVideoResource:

return AsyncVideoToVideoResource(self)

@cached_property
def video_to_audio(self) -> AsyncVideoToAudioResource:
"""These endpoints all kick off tasks to create generations."""
from .resources.video_to_audio import AsyncVideoToAudioResource

return AsyncVideoToAudioResource(self)

@cached_property
def video_to_hdr(self) -> AsyncVideoToHdrResource:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -861,6 +877,13 @@ def video_to_video(self) -> video_to_video.VideoToVideoResourceWithRawResponse:

return VideoToVideoResourceWithRawResponse(self._client.video_to_video)

@cached_property
def video_to_audio(self) -> video_to_audio.VideoToAudioResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.video_to_audio import VideoToAudioResourceWithRawResponse

return VideoToAudioResourceWithRawResponse(self._client.video_to_audio)

@cached_property
def video_to_hdr(self) -> video_to_hdr.VideoToHdrResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -1044,6 +1067,13 @@ def video_to_video(self) -> video_to_video.AsyncVideoToVideoResourceWithRawRespo

return AsyncVideoToVideoResourceWithRawResponse(self._client.video_to_video)

@cached_property
def video_to_audio(self) -> video_to_audio.AsyncVideoToAudioResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.video_to_audio import AsyncVideoToAudioResourceWithRawResponse

return AsyncVideoToAudioResourceWithRawResponse(self._client.video_to_audio)

@cached_property
def video_to_hdr(self) -> video_to_hdr.AsyncVideoToHdrResourceWithRawResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -1227,6 +1257,13 @@ def video_to_video(self) -> video_to_video.VideoToVideoResourceWithStreamingResp

return VideoToVideoResourceWithStreamingResponse(self._client.video_to_video)

@cached_property
def video_to_audio(self) -> video_to_audio.VideoToAudioResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.video_to_audio import VideoToAudioResourceWithStreamingResponse

return VideoToAudioResourceWithStreamingResponse(self._client.video_to_audio)

@cached_property
def video_to_hdr(self) -> video_to_hdr.VideoToHdrResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down Expand Up @@ -1410,6 +1447,13 @@ def video_to_video(self) -> video_to_video.AsyncVideoToVideoResourceWithStreamin

return AsyncVideoToVideoResourceWithStreamingResponse(self._client.video_to_video)

@cached_property
def video_to_audio(self) -> video_to_audio.AsyncVideoToAudioResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
from .resources.video_to_audio import AsyncVideoToAudioResourceWithStreamingResponse

return AsyncVideoToAudioResourceWithStreamingResponse(self._client.video_to_audio)

@cached_property
def video_to_hdr(self) -> video_to_hdr.AsyncVideoToHdrResourceWithStreamingResponse:
"""These endpoints all kick off tasks to create generations."""
Expand Down
14 changes: 14 additions & 0 deletions src/runwayml/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@
TextToSpeechResourceWithStreamingResponse,
AsyncTextToSpeechResourceWithStreamingResponse,
)
from .video_to_audio import (
VideoToAudioResource,
AsyncVideoToAudioResource,
VideoToAudioResourceWithRawResponse,
AsyncVideoToAudioResourceWithRawResponse,
VideoToAudioResourceWithStreamingResponse,
AsyncVideoToAudioResourceWithStreamingResponse,
)
from .video_to_video import (
VideoToVideoResource,
AsyncVideoToVideoResource,
Expand Down Expand Up @@ -236,6 +244,12 @@
"AsyncVideoToVideoResourceWithRawResponse",
"VideoToVideoResourceWithStreamingResponse",
"AsyncVideoToVideoResourceWithStreamingResponse",
"VideoToAudioResource",
"AsyncVideoToAudioResource",
"VideoToAudioResourceWithRawResponse",
"AsyncVideoToAudioResourceWithRawResponse",
"VideoToAudioResourceWithStreamingResponse",
"AsyncVideoToAudioResourceWithStreamingResponse",
"VideoToHdrResource",
"AsyncVideoToHdrResource",
"VideoToHdrResourceWithRawResponse",
Expand Down
4 changes: 2 additions & 2 deletions src/runwayml/resources/avatar_conversations.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def delete(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> None:
"""
Delete a conversation and its associated data.
Permanently delete a conversation, including its transcript and recording.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -317,7 +317,7 @@ async def delete(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> None:
"""
Delete a conversation and its associated data.
Permanently delete a conversation, including its transcript and recording.

Args:
extra_headers: Send extra headers
Expand Down
Loading
Loading