runapi-runway 0.2.10 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23a5c54f6365b4debd95c18898b5ab00b0b78d243b8ef1c1a43785adc4fe8c3c
4
- data.tar.gz: 769a10d4724fcdd12e376bd385258dd7518e3b3042c35b8030289ab9d384a60b
3
+ metadata.gz: e7e37fbb83751d6f4fd05bd3c7fd672f86b9f2560cd7b26c15e685c6e420c79a
4
+ data.tar.gz: 6f81fbcad5d25b72e49e3702840fac4346530ccfaaba6dbf98ca37be8c74de77
5
5
  SHA512:
6
- metadata.gz: 241f6d14e5d94704919b922cff03b1db392641c88120d2c1e482d8e4797c933ffafb126332b71eeb86df16e37f86d4b6fa62e487a59dc86fa0ff060959d3e024
7
- data.tar.gz: bcae39b217ac8de190c34bb404248c325ca731ffb2009423bdfac62f0a8f8bf4cb099d1b36e6472a07549ded01505be11bbe325c85bc5f272850eb2eb5b88d17
6
+ metadata.gz: 5ea788b52c880ab077a8a4e6cf1866231235317e60efec7fed7d91d97821e21546e62051475261ca9a041534cb4c914bbb00cfdd5de5186a3a602862859a2f74
7
+ data.tar.gz: 3d3fbed903f1b2f6d27c21a1a39e655334e8bd07e822725e3371da9627a8300805c9a903a3f89013ec75a6c5aea7957d4cf4b5a1b4dedb2c130b483c4fc90c06
@@ -36,7 +36,6 @@ module RunApi
36
36
  # @return [RunApi::Runway::Types::TaskCreateResponse] task creation result with id
37
37
  def create(options: nil, **params)
38
38
  params = compact_params(params)
39
- validate_contract!(CONTRACT["extend-video"], params.merge(model: MODEL))
40
39
  request(:post, ENDPOINT, body: params, options: options)
41
40
  end
42
41
 
@@ -38,7 +38,6 @@ module RunApi
38
38
  # @return [RunApi::Runway::Types::TaskCreateResponse] task creation result with id
39
39
  def create(options: nil, **params)
40
40
  params = compact_params(params)
41
- validate_contract!(CONTRACT["text-to-video"], params.merge(model: MODEL))
42
41
  request(:post, ENDPOINT, body: params, options: options)
43
42
  end
44
43
 
data/lib/runapi/runway.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "runapi/core"
4
4
  require_relative "runway/types"
5
- require_relative "runway/contract_gen"
6
5
  require_relative "runway/resources/text_to_video"
7
6
  require_relative "runway/resources/extend_video"
8
7
  require_relative "runway/client"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-runway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.3.0
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.4.0
18
+ version: 0.6.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.4.0
25
+ version: 0.6.0
26
26
  description: The Runway Ruby SDK is the language-specific package for Runway on RunAPI.
27
27
  Use this package for video generation, animation, and video editing workflows when
28
28
  your application needs request bodies, task status lookup, and consistent RunAPI
@@ -39,7 +39,6 @@ files:
39
39
  - lib/runapi-runway.rb
40
40
  - lib/runapi/runway.rb
41
41
  - lib/runapi/runway/client.rb
42
- - lib/runapi/runway/contract_gen.rb
43
42
  - lib/runapi/runway/resources/extend_video.rb
44
43
  - lib/runapi/runway/resources/text_to_video.rb
45
44
  - lib/runapi/runway/types.rb
@@ -1,62 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RunApi
4
- module Runway
5
- CONTRACT = {
6
- "extend-video" => {
7
- "models" => ["runway"],
8
- "fields_by_model" => {
9
- "runway" => {
10
- "output_resolution" => {
11
- "enum" => ["720p", "1080p"],
12
- "required" => true
13
- },
14
- "prompt" => {
15
- "required" => true
16
- },
17
- "source_task_id" => {
18
- "required" => true
19
- }
20
- }
21
- }
22
- },
23
- "text-to-video" => {
24
- "models" => ["runway"],
25
- "fields_by_model" => {
26
- "runway" => {
27
- "aspect_ratio" => {
28
- "enum" => ["16:9", "9:16", "1:1", "4:3", "3:4"]
29
- },
30
- "duration_seconds" => {
31
- "enum" => [5, 10],
32
- "required" => true,
33
- "type" => "integer"
34
- },
35
- "output_resolution" => {
36
- "enum" => ["720p", "1080p"],
37
- "required" => true
38
- },
39
- "prompt" => {
40
- "required" => true
41
- }
42
- }
43
- },
44
- "rules" => [{
45
- "when" => {
46
- "first_frame_image_url" => {
47
- "present" => false
48
- }
49
- },
50
- "required" => ["aspect_ratio"]
51
- }, {
52
- "when" => {
53
- "first_frame_image_url" => {
54
- "present" => true
55
- }
56
- },
57
- "forbidden" => ["aspect_ratio"]
58
- }]
59
- }
60
- }.freeze
61
- end
62
- end