runapi-runway-aleph 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/runapi/runway_aleph/resources/edit_video.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 816df5f914a6bbe5edde4ceae1537b0d8643f70c73aa59080a9907aa50e65bca
|
|
4
|
+
data.tar.gz: e4e86014eec6f469ba9590c578804cc587b7e5e2d067cd71d49cbc315eb22768
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0f7f9557ae1ab78789a28dfd34fd0465c97e0afa4e11754150091b0999c97a740e4661bb126ddc102abbb6e96f24c650cc41bd7d8b21259329214e0ecc79a45
|
|
7
|
+
data.tar.gz: 03f92dc264fbcad46c82fb30a790e8451ff05d868a079694bb101c4fd0f797515c7028f0c830888404f3444e9ff83c40c9de9093a341698ee16ebd5cd0ab7232
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Runway Aleph Ruby SDK is the language-specific package for Runway Aleph on RunAPI. Use this package for video generation, animation, and video editing workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Ruby.
|
|
4
4
|
|
|
5
|
-
This README is the Ruby package guide inside the public `runway-aleph-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/runway-aleph; for API reference, use https://runapi.ai/docs
|
|
5
|
+
This README is the Ruby package guide inside the public `runway-aleph-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/runway-aleph; for API reference, use https://runapi.ai/docs/api/runway-aleph/edit-video; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ gem install runapi-runway-aleph
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
|
-
require "runapi
|
|
16
|
+
require "runapi/runway_aleph"
|
|
17
17
|
|
|
18
18
|
client = RunApi::RunwayAleph::Client.new
|
|
19
19
|
task = client.edit_video.create(
|
|
@@ -35,8 +35,8 @@ Use Ruby keyword arguments and the `RunApi::RunwayAleph` error classes when buil
|
|
|
35
35
|
## Links
|
|
36
36
|
|
|
37
37
|
- Model page: https://runapi.ai/models/runway-aleph
|
|
38
|
-
- SDK docs: https://runapi.ai/docs
|
|
39
|
-
- Product docs: https://runapi.ai/docs
|
|
38
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
39
|
+
- Product docs: https://runapi.ai/docs/api/runway-aleph/edit-video
|
|
40
40
|
- Pricing and rate limits: https://runapi.ai/models/runway-aleph
|
|
41
41
|
- Provider comparison: https://runapi.ai/providers/runway
|
|
42
42
|
- Full catalog: https://runapi.ai/models
|
|
@@ -21,27 +21,27 @@ module RunApi
|
|
|
21
21
|
#
|
|
22
22
|
# @param params [Hash] edit parameters
|
|
23
23
|
# @return [RunApi::RunwayAleph::Types::CompletedEditVideoResponse] completed task with videos
|
|
24
|
-
def run(**params)
|
|
25
|
-
task = create(**params)
|
|
26
|
-
poll_until_complete { get(task.id) }
|
|
24
|
+
def run(options: nil, **params)
|
|
25
|
+
task = create(options: options, **params)
|
|
26
|
+
poll_until_complete { get(task.id, options: options) }
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Start a video editing task.
|
|
30
30
|
#
|
|
31
31
|
# @param params [Hash] edit parameters
|
|
32
32
|
# @return [RunApi::RunwayAleph::Types::TaskCreateResponse] task creation result with id
|
|
33
|
-
def create(**params)
|
|
33
|
+
def create(options: nil, **params)
|
|
34
34
|
params = compact_params(params)
|
|
35
35
|
validate_contract!(CONTRACT["edit-video"], params.merge(model: MODEL))
|
|
36
|
-
request(:post, ENDPOINT, body: params)
|
|
36
|
+
request(:post, ENDPOINT, body: params, options: options)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
# Get video editing task status by task ID.
|
|
40
40
|
#
|
|
41
41
|
# @param id [String] task ID
|
|
42
42
|
# @return [RunApi::RunwayAleph::Types::EditVideoResponse] current task status
|
|
43
|
-
def get(id)
|
|
44
|
-
request(:get, "#{ENDPOINT}/#{id}")
|
|
43
|
+
def get(id, options: nil)
|
|
44
|
+
request(:get, "#{ENDPOINT}/#{id}", options: options)
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-runway-aleph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.4.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.4.0
|
|
26
26
|
description: The Runway Aleph Ruby SDK is the language-specific package for Runway
|
|
27
27
|
Aleph on RunAPI. Use this package for video generation, animation, and video editing
|
|
28
28
|
workflows when your application needs request bodies, task status lookup, and consistent
|