runapi-suno 0.5.1 → 0.6.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/runapi/suno/resources/add_instrumental.rb +0 -7
  3. data/lib/runapi/suno/resources/add_samples.rb +0 -4
  4. data/lib/runapi/suno/resources/add_vocals.rb +0 -7
  5. data/lib/runapi/suno/resources/audio_action.rb +0 -1
  6. data/lib/runapi/suno/resources/audio_exports.rb +0 -7
  7. data/lib/runapi/suno/resources/blend_lyrics.rb +0 -1
  8. data/lib/runapi/suno/resources/boost_style.rb +0 -7
  9. data/lib/runapi/suno/resources/check_voice.rb +0 -7
  10. data/lib/runapi/suno/resources/convert_audio.rb +0 -7
  11. data/lib/runapi/suno/resources/cover_audio.rb +0 -7
  12. data/lib/runapi/suno/resources/create_mashup.rb +0 -7
  13. data/lib/runapi/suno/resources/extend_music.rb +0 -7
  14. data/lib/runapi/suno/resources/generate_artwork.rb +0 -7
  15. data/lib/runapi/suno/resources/generate_lyrics.rb +0 -7
  16. data/lib/runapi/suno/resources/generate_midi.rb +0 -7
  17. data/lib/runapi/suno/resources/generate_persona.rb +0 -7
  18. data/lib/runapi/suno/resources/generate_voice.rb +0 -7
  19. data/lib/runapi/suno/resources/get_timestamped_lyrics.rb +0 -7
  20. data/lib/runapi/suno/resources/music_from_sample.rb +0 -7
  21. data/lib/runapi/suno/resources/music_visualizations.rb +0 -7
  22. data/lib/runapi/suno/resources/personas.rb +0 -9
  23. data/lib/runapi/suno/resources/regenerate_validation_phrase.rb +0 -7
  24. data/lib/runapi/suno/resources/replace_section.rb +0 -7
  25. data/lib/runapi/suno/resources/separate_audio_stems.rb +0 -7
  26. data/lib/runapi/suno/resources/style_expansions.rb +0 -7
  27. data/lib/runapi/suno/resources/text_to_music.rb +0 -7
  28. data/lib/runapi/suno/resources/text_to_sound.rb +0 -7
  29. data/lib/runapi/suno/resources/timestamped_lyrics.rb +0 -7
  30. data/lib/runapi/suno/resources/visualize_music.rb +0 -7
  31. data/lib/runapi/suno/resources/voice_to_validation_phrase.rb +0 -7
  32. data/lib/runapi/suno/resources/voices.rb +0 -7
  33. data/lib/runapi/suno.rb +0 -2
  34. metadata +3 -5
  35. data/lib/runapi/suno/contract_gen.rb +0 -2797
  36. data/lib/runapi/suno/validators.rb +0 -232
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 441d7e599ba7a9b1d3b2082d25c29354d65969a141ccd86a226dd45adf491586
4
- data.tar.gz: ba5300fad79eaacfbc2f410879393f7f89f222464f8951eedb5c2c69b4582627
3
+ metadata.gz: c93f7692c2e0041e72e7c2dba8bdb35deffe27772e0a4190c53f0d18695687c1
4
+ data.tar.gz: '07906a97ceb034a0e8c22c0a18bf3c594cf7ec508fe715bef9dc5be0a2b6c3a1'
5
5
  SHA512:
6
- metadata.gz: 8da511903f9c5df5c35e84fba5bbeb80f4d4bee40c54a663f74d5334c3bd4c9696be155a19366f0a577438377cbeec3ecac503a0174e8ce91a80f40ef112565c
7
- data.tar.gz: 43982e5a3d5791b1b0f3dd3bf41cb8b74026c8daa6ed02100df17d19f7603261cb343e161e5edb0ffb96b6171f442fb6df0275856de107bb3de22b15dbf8846c
6
+ metadata.gz: 8cf05da4dc83e9f8eadcf6f2c8f8ac6489e7c4a3dbacb084ffc0fc1f60075c2aefdf86dce0c8caa342fd7db0777252042a39e439a2592c2083dce41af16dbb7c
7
+ data.tar.gz: f3a23c6a67dfffcda933f5dec9f2a5ca2661f866240e4d34fdf357f30139dec621fa8481200534a8edc71ac59615434cb6ca5e23b9fd0f7852aec1f11c1d6a1d
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_add_instrumental!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -9,10 +9,6 @@ module RunApi
9
9
  ACTION = "add-samples"
10
10
 
11
11
  def create(options: nil, **params)
12
- if params[:end_seconds].to_f <= params[:start_seconds].to_f
13
- raise RunApi::Core::ValidationError, "end_seconds must be greater than start_seconds"
14
- end
15
-
16
12
  super
17
13
  end
18
14
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_add_vocals!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -10,7 +10,6 @@ module RunApi
10
10
 
11
11
  def create(options: nil, **params)
12
12
  params = compact_params(params)
13
- validate_contract!(CONTRACT.fetch(self.class::ACTION), params)
14
13
  request(:post, self.class::ENDPOINT, body: params, options: options)
15
14
  end
16
15
 
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_audio_exports!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,7 +22,6 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_contract!(CONTRACT["blend-lyrics"], params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
@@ -18,15 +18,8 @@ module RunApi
18
18
 
19
19
  def run(options: nil, **params)
20
20
  params = compact_params(params)
21
- validate_params!(params)
22
21
  request(:post, ENDPOINT, body: params, options: options)
23
22
  end
24
-
25
- private
26
-
27
- def validate_params!(params)
28
- Validators.validate_boost_style!(params, self)
29
- end
30
23
  end
31
24
  end
32
25
  end
@@ -19,15 +19,8 @@ module RunApi
19
19
 
20
20
  def run(options: nil, **params)
21
21
  params = compact_params(params)
22
- validate_params!(params)
23
22
  request(:post, ENDPOINT, body: params, options: options)
24
23
  end
25
-
26
- private
27
-
28
- def validate_params!(params)
29
- Validators.validate_check_voice!(params, self)
30
- end
31
24
  end
32
25
  end
33
26
  end
@@ -24,19 +24,12 @@ module RunApi
24
24
 
25
25
  def create(options: nil, **params)
26
26
  params = compact_params(params)
27
- validate_params!(params)
28
27
  request(:post, ENDPOINT, body: params, options: options)
29
28
  end
30
29
 
31
30
  def get(id, options: nil)
32
31
  request(:get, "#{ENDPOINT}/#{id}", options: options)
33
32
  end
34
-
35
- private
36
-
37
- def validate_params!(params)
38
- Validators.validate_convert_audio!(params, self)
39
- end
40
33
  end
41
34
  end
42
35
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_cover_audio!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_create_mashup!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_extend_music!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_generate_artwork!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_generate_lyrics!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_generate_midi!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -19,15 +19,8 @@ module RunApi
19
19
 
20
20
  def run(options: nil, **params)
21
21
  params = compact_params(params)
22
- validate_params!(params)
23
22
  request(:post, ENDPOINT, body: params, options: options)
24
23
  end
25
-
26
- private
27
-
28
- def validate_params!(params)
29
- Validators.validate_generate_persona!(params, self)
30
- end
31
24
  end
32
25
  end
33
26
  end
@@ -25,19 +25,12 @@ module RunApi
25
25
 
26
26
  def create(options: nil, **params)
27
27
  params = compact_params(params)
28
- validate_params!(params)
29
28
  request(:post, ENDPOINT, body: params, options: options)
30
29
  end
31
30
 
32
31
  def get(id, options: nil)
33
32
  request(:get, "#{ENDPOINT}/#{id}", options: options)
34
33
  end
35
-
36
- private
37
-
38
- def validate_params!(params)
39
- Validators.validate_generate_voice!(params, self)
40
- end
41
34
  end
42
35
  end
43
36
  end
@@ -18,15 +18,8 @@ module RunApi
18
18
 
19
19
  def run(options: nil, **params)
20
20
  params = compact_params(params)
21
- validate_params!(params)
22
21
  request(:post, ENDPOINT, body: params, options: options)
23
22
  end
24
-
25
- private
26
-
27
- def validate_params!(params)
28
- Validators.validate_get_timestamped_lyrics!(params, self)
29
- end
30
23
  end
31
24
  end
32
25
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_music_from_sample!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_music_visualizations!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -23,7 +23,6 @@ module RunApi
23
23
 
24
24
  def run(options: nil, **params)
25
25
  params = compact_params(params)
26
- validate_params!(params)
27
26
  run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
28
27
  end
29
28
 
@@ -32,13 +31,11 @@ module RunApi
32
31
  # and status, plus Location and Retry-After response headers.
33
32
  def create(options: nil, **params)
34
33
  params = compact_params(params)
35
- validate_params!(params)
36
34
  request(:post, ENDPOINT, body: params, options: options)
37
35
  end
38
36
 
39
37
  def subscribe(options: nil, **params)
40
38
  params = compact_params(params)
41
- validate_params!(params)
42
39
  subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
43
40
  end
44
41
 
@@ -46,12 +43,6 @@ module RunApi
46
43
  def get(id, options: nil)
47
44
  request(:get, "#{ENDPOINT}/#{id}", options: options, response_class: RESOURCE_RESPONSE_CLASS)
48
45
  end
49
-
50
- private
51
-
52
- def validate_params!(params)
53
- Validators.validate_personas!(params, self)
54
- end
55
46
  end
56
47
  end
57
48
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_regenerate_validation_phrase!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_replace_section!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_separate_audio_stems!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -17,15 +17,8 @@ module RunApi
17
17
 
18
18
  def run(options: nil, **params)
19
19
  params = compact_params(params)
20
- validate_params!(params)
21
20
  request(:post, ENDPOINT, body: params, options: options)
22
21
  end
23
-
24
- private
25
-
26
- def validate_params!(params)
27
- Validators.validate_style_expansions!(params, self)
28
- end
29
22
  end
30
23
  end
31
24
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_text_to_music!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_text_to_sound!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -17,15 +17,8 @@ module RunApi
17
17
 
18
18
  def run(options: nil, **params)
19
19
  params = compact_params(params)
20
- validate_params!(params)
21
20
  request(:post, ENDPOINT, body: params, options: options)
22
21
  end
23
-
24
- private
25
-
26
- def validate_params!(params)
27
- Validators.validate_timestamped_lyrics!(params, self)
28
- end
29
22
  end
30
23
  end
31
24
  end
@@ -24,19 +24,12 @@ module RunApi
24
24
 
25
25
  def create(options: nil, **params)
26
26
  params = compact_params(params)
27
- validate_params!(params)
28
27
  request(:post, ENDPOINT, body: params, options: options)
29
28
  end
30
29
 
31
30
  def get(id, options: nil)
32
31
  request(:get, "#{ENDPOINT}/#{id}", options: options)
33
32
  end
34
-
35
- private
36
-
37
- def validate_params!(params)
38
- Validators.validate_visualize_music!(params, self)
39
- end
40
33
  end
41
34
  end
42
35
  end
@@ -22,19 +22,12 @@ module RunApi
22
22
 
23
23
  def create(options: nil, **params)
24
24
  params = compact_params(params)
25
- validate_params!(params)
26
25
  request(:post, ENDPOINT, body: params, options: options)
27
26
  end
28
27
 
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_voice_to_validation_phrase!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -21,7 +21,6 @@ module RunApi
21
21
 
22
22
  def run(options: nil, **params)
23
23
  params = compact_params(params)
24
- validate_params!(params)
25
24
  request(:post, ENDPOINT, body: params, options: options)
26
25
  end
27
26
 
@@ -29,12 +28,6 @@ module RunApi
29
28
  def get(id, options: nil)
30
29
  request(:get, "#{ENDPOINT}/#{id}", options: options, response_class: RESOURCE_RESPONSE_CLASS)
31
30
  end
32
-
33
- private
34
-
35
- def validate_params!(params)
36
- Validators.validate_voices!(params, self)
37
- end
38
31
  end
39
32
  end
40
33
  end
data/lib/runapi/suno.rb CHANGED
@@ -4,8 +4,6 @@ require "runapi/core"
4
4
  require_relative "suno/types"
5
5
  require_relative "suno/types/completed_responses"
6
6
  require_relative "suno/types/resource_responses"
7
- require_relative "suno/contract_gen"
8
- require_relative "suno/validators"
9
7
  require_relative "suno/resources/text_to_music"
10
8
  require_relative "suno/resources/extend_music"
11
9
  require_relative "suno/resources/audio_action"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-suno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.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.5.2
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.5.2
25
+ version: 0.6.0
26
26
  description: The Suno Ruby SDK is the language-specific package for Suno on RunAPI.
27
27
  Use this package for song generation, lyrics, vocals, extension, and audio transformation
28
28
  workflows when your application needs request bodies, task status lookup, and consistent
@@ -39,7 +39,6 @@ files:
39
39
  - lib/runapi-suno.rb
40
40
  - lib/runapi/suno.rb
41
41
  - lib/runapi/suno/client.rb
42
- - lib/runapi/suno/contract_gen.rb
43
42
  - lib/runapi/suno/resources/add_instrumental.rb
44
43
  - lib/runapi/suno/resources/add_samples.rb
45
44
  - lib/runapi/suno/resources/add_vocals.rb
@@ -77,7 +76,6 @@ files:
77
76
  - lib/runapi/suno/types.rb
78
77
  - lib/runapi/suno/types/completed_responses.rb
79
78
  - lib/runapi/suno/types/resource_responses.rb
80
- - lib/runapi/suno/validators.rb
81
79
  homepage: https://runapi.ai/models/suno
82
80
  licenses:
83
81
  - Apache-2.0