runapi-luma 0.2.4 → 0.2.5

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: d353328b60c0131de6c6507b61bce500f54199a690651297fb6a1cd3a1aff6f7
4
- data.tar.gz: 65d9526976c6564cad2c5bbe806dc7404584b6a185f35546a50c4ff4a3e32819
3
+ metadata.gz: 35d4110ccae524821e2f501565de79a887afd9e5074453b0c510c384039f94fc
4
+ data.tar.gz: c7255e052c18688fa8b82365b70b1699b7528d3c472bd0f0169d0522dea75430
5
5
  SHA512:
6
- metadata.gz: 924973089eee683e2a01619e2c002431e16704bbb52c7246df90a76b7a9ff0331eaf05e9af916d149b137920f701d9baf185703323d03d2e094c47b722323a5f
7
- data.tar.gz: 2b9031377013a26bda82a79ccf0178bfcec43d5741f5fb05f440047b71a69678e3ca0ed6e9a8aeaaff4ccf09b1885295a81e4650aa5b18c185cc7385b6172529
6
+ metadata.gz: '0348b4a54c531c072eca71e4d94774d96adc3174647d53da27c1dd4b8000e96f5548370bad78320a9e9216a11d1fe1f721175468ea304e2155cf81fdb2f4ae59'
7
+ data.tar.gz: 57869ae8dd131e7fd59f21e29214bb1559ee8b593c60189a5fa37c77c3f7fbaedb77172188c442475b8ec780fb70f9a545a828b44fbdbb41a900b0f5a1be50df
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Luma AI API Ruby SDK for RunAPI
2
+
3
+ The luma ai api Ruby SDK is the language-specific package for Luma on RunAPI. Use this luma ai api package for text-to-video, image-to-video, video editing, and animation flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Ruby.
4
+
5
+ This luma ai api README is the Ruby package guide inside the public `luma-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/luma; for API reference, use https://runapi.ai/docs#luma; for SDK docs, use https://runapi.ai/docs#sdk-luma.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ gem install runapi-luma
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```ruby
16
+ require "runapi-luma"
17
+
18
+ client = RunApi::Luma::Client.new
19
+ task = client.video_modifications.create(
20
+ # Pass the Luma JSON request body from https://runapi.ai/docs#luma.
21
+ )
22
+ status = client.video_modifications.get(task.id)
23
+ ```
24
+
25
+ Use `create` when you want to submit a task and return quickly, `get` when you need the latest task state, and `run` when a script should create and poll until completion. In web request handlers, prefer `create` plus webhook or later `get` polling so a worker is not held open.
26
+
27
+ ## Language notes
28
+
29
+ Use Ruby keyword arguments and the `RunApi::Luma` error classes when building video jobs, Rails workers, or scripts. The available resources include video modifications. Keep `RUNAPI_API_KEY` in the environment or your secret manager; never commit API keys or callback secrets.
30
+
31
+ ## Links
32
+
33
+ - Model page: https://runapi.ai/models/luma
34
+ - SDK docs: https://runapi.ai/docs#sdk-luma
35
+ - Product docs: https://runapi.ai/docs#luma
36
+ - Pricing and rate limits: https://runapi.ai/models/luma
37
+ - Provider comparison: https://runapi.ai/providers/luma
38
+ - Full catalog: https://runapi.ai/models
39
+ - Repository: https://github.com/runapi-ai/luma-sdk
40
+
41
+ ## License
42
+
43
+ Licensed under the Apache License, Version 2.0.
@@ -33,7 +33,7 @@ module RunApi
33
33
 
34
34
  def validate_params!(params)
35
35
  raise Core::ValidationError, "prompt is required" unless param(params, :prompt)
36
- raise Core::ValidationError, "video_url is required" unless param(params, :video_url)
36
+ raise Core::ValidationError, "source_video_url is required" unless param(params, :source_video_url)
37
37
  end
38
38
  end
39
39
  end
@@ -13,13 +13,13 @@ module RunApi
13
13
  end
14
14
 
15
15
  class ModifyVideoResponse < AsyncTaskResponse
16
- optional :videos, [ -> { Video } ]
17
- optional :sources, [ -> { Video } ]
16
+ optional :videos, [-> { Video }]
17
+ optional :sources, [-> { Video }]
18
18
  optional :error, String
19
19
  end
20
20
 
21
21
  class CompletedModifyVideoResponse < ModifyVideoResponse
22
- required :videos, [ -> { Video } ]
22
+ required :videos, [-> { Video }]
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-luma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -15,22 +15,27 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.2.4
18
+ version: 0.2.5
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.4
26
- description: RunAPI Luma SDK for JavaScript, Ruby, and Go
25
+ version: 0.2.5
26
+ description: The luma ai api Ruby SDK is the language-specific package for Luma on
27
+ RunAPI. Use this luma ai api package for text-to-video, image-to-video, video editing,
28
+ and animation flows when your application needs JSON request bodies, task status
29
+ lookup, and consistent RunAPI errors in Ruby.
27
30
  email:
28
31
  - contact@runapi.ai
29
32
  executables: []
30
33
  extensions: []
31
- extra_rdoc_files: []
34
+ extra_rdoc_files:
35
+ - README.md
32
36
  files:
33
37
  - LICENSE
38
+ - README.md
34
39
  - lib/runapi-luma.rb
35
40
  - lib/runapi/luma.rb
36
41
  - lib/runapi/luma/client.rb
@@ -41,7 +46,7 @@ licenses:
41
46
  - Apache-2.0
42
47
  metadata:
43
48
  homepage_uri: https://runapi.ai/models/luma
44
- documentation_uri: https://github.com/runapi-ai/luma-sdk/blob/main/README.md
49
+ documentation_uri: https://github.com/runapi-ai/luma-sdk/blob/main/ruby/README.md
45
50
  source_code_uri: https://github.com/runapi-ai/luma-sdk
46
51
  changelog_uri: https://github.com/runapi-ai/luma-sdk/blob/main/CHANGELOG.md
47
52
  rdoc_options: []
@@ -60,5 +65,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
65
  requirements: []
61
66
  rubygems_version: 4.0.10
62
67
  specification_version: 4
63
- summary: Luma API SDKs for JavaScript, Ruby, and Go on RunAPI.
68
+ summary: Luma AI API Ruby SDK for RunAPI
64
69
  test_files: []