runapi-seedance 0.2.8 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e72a064a5fb6661041862b4e66aa714e384ec015a136f91ec6619b8ff4dbca2
4
- data.tar.gz: '0080e2a4576940e9d58314f6aad79773443c444a0b10333cb2c4cdc346cafdf8'
3
+ metadata.gz: 48c76b0bc910fbd88bc58af4cf309a7d7913182a280a0a3828161a10980b615b
4
+ data.tar.gz: 4a5a0851fc0b6b0b44644b7ef4cdbb4905473b2ae7eea5e6bbbb7fda148bf997
5
5
  SHA512:
6
- metadata.gz: 684eb54c618b6895b89cd55adf3a877664d3f82460207ed62bf5cbb87f3e2dc97df11c5fb5c399a5bd5fcc87f4fb87d081b683bf94c412b3a0a1d61968d18528
7
- data.tar.gz: 6f419078f87ebf32b01f335fe1059da64c214f6d8505bf6e7ec8f74a8d53cef1b9a421c31b9df956ab53cb99d5a91a189a6bad23fd8a6247c0c81e9e4bd63394
6
+ metadata.gz: 37da2c484e0a18208e46d6c21ffd5c78703d08da453adbb0b0db0546328b72bc4d8f96fd188ea7cc32060a216eabd32f5fe9b5fb727be668e9adead865cc1b5d
7
+ data.tar.gz: 7dfb1924534a6c634961ff24507f2354fb171c9dd7839fbc5e53dc770b654bc8d5d92cf1ed128205db698bfc584ef46d0ce69fa8fc26346f240e44bfaa2336cf
@@ -43,7 +43,7 @@ module RunApi
43
43
  "type" => "integer"
44
44
  },
45
45
  "output_resolution" => {
46
- "enum" => ["480p", "720p", "1080p"]
46
+ "enum" => ["480p", "720p", "1080p", "4k"]
47
47
  }
48
48
  },
49
49
  "seedance-2.0-fast" => {
@@ -108,6 +108,7 @@ module RunApi
108
108
  reject_unsupported!(params, unsupported, param(params, :model))
109
109
 
110
110
  validate_mode_conflicts!(params)
111
+ validate_seedance_2_4k_mode!(params)
111
112
  end
112
113
 
113
114
  def validate_mode_conflicts!(params)
@@ -119,6 +120,17 @@ module RunApi
119
120
  end
120
121
  end
121
122
 
123
+ def validate_seedance_2_4k_mode!(params)
124
+ return unless param(params, :model) == "seedance-2.0"
125
+ return unless param(params, :output_resolution) == "4k"
126
+
127
+ unsupported = Types::FRAME_FIELDS + Types::REFERENCE_FIELDS
128
+ field = unsupported.find { |candidate| field_present?(params, candidate) }
129
+ return unless field
130
+
131
+ raise Core::ValidationError, "#{field} is not allowed when model is seedance-2.0 and output_resolution is 4k"
132
+ end
133
+
122
134
  def reject_unsupported!(params, fields, model)
123
135
  fields.each do |field|
124
136
  if field_present?(params, field)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-seedance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
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.2.9
18
+ version: 0.2.10
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.2.9
25
+ version: 0.2.10
26
26
  description: The Seedance Ruby SDK is the language-specific package for Seedance on
27
27
  RunAPI. Use this package for video generation, animation, and video editing workflows
28
28
  when your application needs request bodies, task status lookup, and consistent RunAPI