runapi-luma 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 564e060149498fd0586a42c53ddc6ca5379fa7c0d7f20d95f0ec3391521d7d91
4
- data.tar.gz: d20f909564ecb4f108afa54b6370bfd1fa8b2169e47a7d3162712811fdfdda8a
3
+ metadata.gz: e092ecd3eb0ec18ec71a3f2bb241e6f8704a9253c1280e626698ca0560dbd4ff
4
+ data.tar.gz: 3629544e01e5e4dbe8a919a8d2d472c02579163cb2cce19f415bdaf058c65355
5
5
  SHA512:
6
- metadata.gz: 2b6c45120f464db14f633bd5131cf9b18fe9bc1c304e88e6a2432f745aaf287945be99655b676476a98f919a9bb44b8d1cf05cdd49c743e3b2454a5922d83a5c
7
- data.tar.gz: 292f08bbaaeeac22b5ce62dd29c8bc17d67271b53f213e3bf1696d705db40469dc57320a7b957cf6ba4f17028153692f7bfd2f0b62b8028bc0073b1d1ee07cb1
6
+ metadata.gz: 96a84a85315316d4225ca9104223dd0a1f9bcb47fdf8bcad9eb0fe009b5bea625db39a34b1d614574ab753e4005ceb75eb843262f280e876847a1830aff74c53
7
+ data.tar.gz: cc3145b2feb4413049a4a12b4c6b12d3da66a4320b8e2d1229d137aa369b8c6147f9464489f8c0617b869b1b3e24f4e4951ce237c714e907973f264191580c41
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The Luma Ruby SDK is the language-specific package for Luma 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 `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.
5
+ This 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/api/luma/modify-video; for SDK docs, use https://runapi.ai/docs/resources/sdks.
6
6
 
7
7
  ## Install
8
8
 
@@ -13,11 +13,11 @@ gem install runapi-luma
13
13
  ## Quick start
14
14
 
15
15
  ```ruby
16
- require "runapi-luma"
16
+ require "runapi/luma"
17
17
 
18
18
  client = RunApi::Luma::Client.new
19
19
  task = client.modify_video.create(
20
- # Pass the Luma JSON request body from https://runapi.ai/docs#luma.
20
+ # Pass the Luma JSON request body from https://runapi.ai/docs/api/luma/modify-video.
21
21
  )
22
22
  status = client.modify_video.get(task.id)
23
23
  ```
@@ -33,8 +33,8 @@ Use Ruby keyword arguments and the `RunApi::Luma` error classes when building vi
33
33
  ## Links
34
34
 
35
35
  - Model page: https://runapi.ai/models/luma
36
- - SDK docs: https://runapi.ai/docs#sdk-luma
37
- - Product docs: https://runapi.ai/docs#luma
36
+ - SDK docs: https://runapi.ai/docs/resources/sdks
37
+ - Product docs: https://runapi.ai/docs/api/luma/modify-video
38
38
  - Pricing and rate limits: https://runapi.ai/models/luma
39
39
  - Provider comparison: https://runapi.ai/providers/luma
40
40
  - Full catalog: https://runapi.ai/models
@@ -20,27 +20,27 @@ module RunApi
20
20
  #
21
21
  # @param params [Hash] modification parameters
22
22
  # @return [RunApi::Luma::Types::CompletedModifyVideoResponse] completed task with videos
23
- def run(**params)
24
- task = create(**params)
25
- poll_until_complete { get(task.id) }
23
+ def run(options: nil, **params)
24
+ task = create(options: options, **params)
25
+ poll_until_complete { get(task.id, options: options) }
26
26
  end
27
27
 
28
28
  # Start a video modification task.
29
29
  #
30
30
  # @param params [Hash] modification parameters
31
31
  # @return [RunApi::Luma::Types::ModifyVideoResponse] task creation result with id
32
- def create(**params)
32
+ def create(options: nil, **params)
33
33
  params = compact_params(params)
34
34
  validate_contract!(CONTRACT["modify-video"], params)
35
- request(:post, ENDPOINT, body: params)
35
+ request(:post, ENDPOINT, body: params, options: options)
36
36
  end
37
37
 
38
38
  # Get video modification task status by task ID.
39
39
  #
40
40
  # @param id [String] task ID
41
41
  # @return [RunApi::Luma::Types::ModifyVideoResponse] current task status
42
- def get(id)
43
- request(:get, "#{ENDPOINT}/#{id}")
42
+ def get(id, options: nil)
43
+ request(:get, "#{ENDPOINT}/#{id}", options: options)
44
44
  end
45
45
  end
46
46
  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.7
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.7
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.2.7
25
+ version: 0.4.0
26
26
  description: The Luma Ruby SDK is the language-specific package for Luma 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