shotstack 0.2.1 → 0.2.6

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 (122) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/README.md +387 -23
  4. data/Rakefile +10 -0
  5. data/lib/shotstack/api/create_api.rb +158 -0
  6. data/lib/shotstack/api/edit_api.rb +20 -20
  7. data/lib/shotstack/api/ingest_api.rb +338 -0
  8. data/lib/shotstack/api/serve_api.rb +76 -8
  9. data/lib/shotstack/api_client.rb +28 -24
  10. data/lib/shotstack/api_error.rb +3 -2
  11. data/lib/shotstack/configuration.rb +55 -9
  12. data/lib/shotstack/models/asset.rb +4 -4
  13. data/lib/shotstack/models/asset_render_response.rb +23 -20
  14. data/lib/shotstack/models/asset_response.rb +23 -20
  15. data/lib/shotstack/models/asset_response_attributes.rb +38 -21
  16. data/lib/shotstack/models/asset_response_data.rb +30 -20
  17. data/lib/shotstack/models/audio_asset.rb +57 -23
  18. data/lib/shotstack/models/audio_enhancement.rb +43 -0
  19. data/lib/shotstack/models/clip.rb +29 -33
  20. data/lib/shotstack/models/crop.rb +40 -28
  21. data/lib/shotstack/models/destinations.rb +78 -244
  22. data/lib/shotstack/models/did_generated_asset.rb +273 -0
  23. data/lib/shotstack/models/did_generated_asset_options.rb +54 -0
  24. data/lib/shotstack/models/did_text_to_avatar_options.rb +313 -0
  25. data/lib/shotstack/models/dolby_enhancement.rb +239 -0
  26. data/lib/shotstack/models/dolby_enhancement_options.rb +257 -0
  27. data/lib/shotstack/models/edit.rb +22 -24
  28. data/lib/shotstack/models/eleven_labs_generated_asset.rb +273 -0
  29. data/lib/shotstack/models/eleven_labs_generated_asset_options.rb +54 -0
  30. data/lib/shotstack/models/eleven_labs_text_to_speech_options.rb +303 -0
  31. data/lib/shotstack/models/enhancements.rb +215 -0
  32. data/lib/shotstack/models/flip_transformation.rb +16 -24
  33. data/lib/shotstack/models/font.rb +18 -20
  34. data/lib/shotstack/models/generated_asset.rb +48 -0
  35. data/lib/shotstack/models/generated_asset_error_response.rb +225 -0
  36. data/lib/shotstack/models/generated_asset_error_response_data.rb +257 -0
  37. data/lib/shotstack/models/generated_asset_response.rb +222 -0
  38. data/lib/shotstack/models/generated_asset_response_attributes.rb +376 -0
  39. data/lib/shotstack/models/generated_asset_response_data.rb +256 -0
  40. data/lib/shotstack/models/google_cloud_storage_destination.rb +232 -0
  41. data/lib/shotstack/models/google_cloud_storage_destination_options.rb +243 -0
  42. data/lib/shotstack/models/google_drive_destination.rb +239 -0
  43. data/lib/shotstack/models/google_drive_destination_options.rb +233 -0
  44. data/lib/shotstack/models/hey_gen_generated_asset.rb +273 -0
  45. data/lib/shotstack/models/hey_gen_generated_asset_options.rb +54 -0
  46. data/lib/shotstack/models/hey_gen_text_to_avatar_options.rb +396 -0
  47. data/lib/shotstack/models/html_asset.rb +20 -26
  48. data/lib/shotstack/models/image_asset.rb +18 -20
  49. data/lib/shotstack/models/ingest_error_response.rb +225 -0
  50. data/lib/shotstack/models/ingest_error_response_data.rb +257 -0
  51. data/lib/shotstack/models/luma_asset.rb +18 -20
  52. data/lib/shotstack/models/merge_field.rb +20 -20
  53. data/lib/shotstack/models/mux_destination.rb +18 -22
  54. data/lib/shotstack/models/mux_destination_options.rb +50 -25
  55. data/lib/shotstack/models/offset.rb +46 -46
  56. data/lib/shotstack/models/open_ai_generated_asset.rb +273 -0
  57. data/lib/shotstack/models/open_ai_generated_asset_options.rb +54 -0
  58. data/lib/shotstack/models/open_ai_text_generator_options.rb +313 -0
  59. data/lib/shotstack/models/output.rb +40 -35
  60. data/lib/shotstack/models/outputs.rb +227 -0
  61. data/lib/shotstack/models/outputs_response.rb +218 -0
  62. data/lib/shotstack/models/poster.rb +18 -20
  63. data/lib/shotstack/models/probe_response.rb +22 -20
  64. data/lib/shotstack/models/queued_response.rb +22 -20
  65. data/lib/shotstack/models/queued_response_data.rb +20 -20
  66. data/lib/shotstack/models/queued_source_response.rb +222 -0
  67. data/lib/shotstack/models/queued_source_response_data.rb +240 -0
  68. data/lib/shotstack/models/range.rb +26 -22
  69. data/lib/shotstack/models/render_response.rb +22 -20
  70. data/lib/shotstack/models/render_response_data.rb +24 -35
  71. data/lib/shotstack/models/rendition.rb +429 -0
  72. data/lib/shotstack/models/rendition_response_attributes.rb +336 -0
  73. data/lib/shotstack/models/rotate_transformation.rb +16 -22
  74. data/lib/shotstack/models/s3_destination.rb +232 -0
  75. data/lib/shotstack/models/s3_destination_options.rb +270 -0
  76. data/lib/shotstack/models/shotstack_destination.rb +19 -25
  77. data/lib/shotstack/models/shotstack_generated_asset.rb +273 -0
  78. data/lib/shotstack/models/shotstack_generated_asset_options.rb +60 -0
  79. data/lib/shotstack/models/shotstack_image_to_video_options.rb +298 -0
  80. data/lib/shotstack/models/shotstack_text_generator_options.rb +274 -0
  81. data/lib/shotstack/models/shotstack_text_to_image_options.rb +308 -0
  82. data/lib/shotstack/models/shotstack_text_to_speech_options.rb +339 -0
  83. data/lib/shotstack/models/size.rb +39 -35
  84. data/lib/shotstack/models/skew_transformation.rb +16 -24
  85. data/lib/shotstack/models/soundtrack.rb +18 -22
  86. data/lib/shotstack/models/source.rb +244 -0
  87. data/lib/shotstack/models/source_list_response.rb +225 -0
  88. data/lib/shotstack/models/source_response.rb +222 -0
  89. data/lib/shotstack/models/source_response_attributes.rb +373 -0
  90. data/lib/shotstack/models/source_response_data.rb +256 -0
  91. data/lib/shotstack/models/speed.rb +254 -0
  92. data/lib/shotstack/models/stability_ai_generated_asset.rb +273 -0
  93. data/lib/shotstack/models/stability_ai_generated_asset_options.rb +54 -0
  94. data/lib/shotstack/models/stability_ai_text_to_image_options.rb +390 -0
  95. data/lib/shotstack/models/template.rb +18 -20
  96. data/lib/shotstack/models/template_data_response.rb +24 -22
  97. data/lib/shotstack/models/template_data_response_data.rb +25 -22
  98. data/lib/shotstack/models/template_list_response.rb +24 -22
  99. data/lib/shotstack/models/template_list_response_data.rb +20 -20
  100. data/lib/shotstack/models/template_list_response_item.rb +20 -30
  101. data/lib/shotstack/models/template_render.rb +19 -21
  102. data/lib/shotstack/models/template_response.rb +23 -21
  103. data/lib/shotstack/models/template_response_data.rb +20 -20
  104. data/lib/shotstack/models/thumbnail.rb +20 -20
  105. data/lib/shotstack/models/timeline.rb +19 -25
  106. data/lib/shotstack/models/title_asset.rb +19 -27
  107. data/lib/shotstack/models/track.rb +18 -20
  108. data/lib/shotstack/models/transcription.rb +250 -0
  109. data/lib/shotstack/models/transfer.rb +259 -0
  110. data/lib/shotstack/models/transfer_response.rb +222 -0
  111. data/lib/shotstack/models/transfer_response_attributes.rb +280 -0
  112. data/lib/shotstack/models/transfer_response_data.rb +225 -0
  113. data/lib/shotstack/models/transformation.rb +16 -20
  114. data/lib/shotstack/models/transition.rb +16 -20
  115. data/lib/shotstack/models/upload_response.rb +222 -0
  116. data/lib/shotstack/models/upload_response_attributes.rb +257 -0
  117. data/lib/shotstack/models/upload_response_data.rb +256 -0
  118. data/lib/shotstack/models/video_asset.rb +102 -22
  119. data/lib/shotstack/version.rb +3 -3
  120. data/lib/shotstack.rb +63 -2
  121. data/shotstack.gemspec +8 -8
  122. metadata +80 -24
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Shotstack
3
3
 
4
- #Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
4
+ # Official Ruby SDK for the Shotstack Cloud Video Editing API
5
5
 
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ Generator version: 7.4.0
10
10
 
11
11
  =end
12
12
 
@@ -25,11 +25,39 @@ module Shotstack
25
25
  # The start trim point of the video clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached.
26
26
  attr_accessor :trim
27
27
 
28
- # Set the volume for the video clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 0).
28
+ # Set the volume for the video clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).
29
29
  attr_accessor :volume
30
30
 
31
+ # The volume effect to apply to the video asset <ul> <li>`fadeIn` - fade volume in only</li> <li>`fadeOut` - fade volume out only</li> <li>`fadeInFadeOut` - fade volume in and out</li> </ul>
32
+ attr_accessor :volume_effect
33
+
34
+ # Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).
35
+ attr_accessor :speed
36
+
31
37
  attr_accessor :crop
32
38
 
39
+ class EnumAttributeValidator
40
+ attr_reader :datatype
41
+ attr_reader :allowable_values
42
+
43
+ def initialize(datatype, allowable_values)
44
+ @allowable_values = allowable_values.map do |value|
45
+ case datatype.to_s
46
+ when /Integer/i
47
+ value.to_i
48
+ when /Float/i
49
+ value.to_f
50
+ else
51
+ value
52
+ end
53
+ end
54
+ end
55
+
56
+ def valid?(value)
57
+ !value || allowable_values.include?(value)
58
+ end
59
+ end
60
+
33
61
  # Attribute mapping from ruby-style variable name to JSON key.
34
62
  def self.attribute_map
35
63
  {
@@ -37,6 +65,8 @@ module Shotstack
37
65
  :'src' => :'src',
38
66
  :'trim' => :'trim',
39
67
  :'volume' => :'volume',
68
+ :'volume_effect' => :'volumeEffect',
69
+ :'speed' => :'speed',
40
70
  :'crop' => :'crop'
41
71
  }
42
72
  end
@@ -53,6 +83,8 @@ module Shotstack
53
83
  :'src' => :'String',
54
84
  :'trim' => :'Float',
55
85
  :'volume' => :'Float',
86
+ :'volume_effect' => :'String',
87
+ :'speed' => :'Float',
56
88
  :'crop' => :'Crop'
57
89
  }
58
90
  end
@@ -86,6 +118,8 @@ module Shotstack
86
118
 
87
119
  if attributes.key?(:'src')
88
120
  self.src = attributes[:'src']
121
+ else
122
+ self.src = nil
89
123
  end
90
124
 
91
125
  if attributes.key?(:'trim')
@@ -96,6 +130,14 @@ module Shotstack
96
130
  self.volume = attributes[:'volume']
97
131
  end
98
132
 
133
+ if attributes.key?(:'volume_effect')
134
+ self.volume_effect = attributes[:'volume_effect']
135
+ end
136
+
137
+ if attributes.key?(:'speed')
138
+ self.speed = attributes[:'speed']
139
+ end
140
+
99
141
  if attributes.key?(:'crop')
100
142
  self.crop = attributes[:'crop']
101
143
  end
@@ -104,6 +146,7 @@ module Shotstack
104
146
  # Show invalid properties with the reasons. Usually used together with valid?
105
147
  # @return Array for valid properties with the reasons
106
148
  def list_invalid_properties
149
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
150
  invalid_properties = Array.new
108
151
  if @type.nil?
109
152
  invalid_properties.push('invalid value for "type", type cannot be nil.')
@@ -113,17 +156,58 @@ module Shotstack
113
156
  invalid_properties.push('invalid value for "src", src cannot be nil.')
114
157
  end
115
158
 
159
+ if !@speed.nil? && @speed > 10
160
+ invalid_properties.push('invalid value for "speed", must be smaller than or equal to 10.')
161
+ end
162
+
163
+ if !@speed.nil? && @speed < 0
164
+ invalid_properties.push('invalid value for "speed", must be greater than or equal to 0.')
165
+ end
166
+
116
167
  invalid_properties
117
168
  end
118
169
 
119
170
  # Check to see if the all the properties in the model are valid
120
171
  # @return true if the model is valid
121
172
  def valid?
173
+ warn '[DEPRECATED] the `valid?` method is obsolete'
122
174
  return false if @type.nil?
123
175
  return false if @src.nil?
176
+ volume_effect_validator = EnumAttributeValidator.new('String', ["fadeIn", "fadeOut", "fadeInFadeOut"])
177
+ return false unless volume_effect_validator.valid?(@volume_effect)
178
+ return false if !@speed.nil? && @speed > 10
179
+ return false if !@speed.nil? && @speed < 0
124
180
  true
125
181
  end
126
182
 
183
+ # Custom attribute writer method checking allowed values (enum).
184
+ # @param [Object] volume_effect Object to be assigned
185
+ def volume_effect=(volume_effect)
186
+ validator = EnumAttributeValidator.new('String', ["fadeIn", "fadeOut", "fadeInFadeOut"])
187
+ unless validator.valid?(volume_effect)
188
+ fail ArgumentError, "invalid value for \"volume_effect\", must be one of #{validator.allowable_values}."
189
+ end
190
+ @volume_effect = volume_effect
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] speed Value to be assigned
195
+ def speed=(speed)
196
+ if speed.nil?
197
+ fail ArgumentError, 'speed cannot be nil'
198
+ end
199
+
200
+ if speed > 10
201
+ fail ArgumentError, 'invalid value for "speed", must be smaller than or equal to 10.'
202
+ end
203
+
204
+ if speed < 0
205
+ fail ArgumentError, 'invalid value for "speed", must be greater than or equal to 0.'
206
+ end
207
+
208
+ @speed = speed
209
+ end
210
+
127
211
  # Checks equality by comparing each attribute.
128
212
  # @param [Object] Object to be compared
129
213
  def ==(o)
@@ -133,6 +217,8 @@ module Shotstack
133
217
  src == o.src &&
134
218
  trim == o.trim &&
135
219
  volume == o.volume &&
220
+ volume_effect == o.volume_effect &&
221
+ speed == o.speed &&
136
222
  crop == o.crop
137
223
  end
138
224
 
@@ -145,43 +231,37 @@ module Shotstack
145
231
  # Calculates hash code according to all attributes.
146
232
  # @return [Integer] Hash code
147
233
  def hash
148
- [type, src, trim, volume, crop].hash
234
+ [type, src, trim, volume, volume_effect, speed, crop].hash
149
235
  end
150
236
 
151
237
  # Builds the object from hash
152
238
  # @param [Hash] attributes Model attributes in the form of hash
153
239
  # @return [Object] Returns the model itself
154
240
  def self.build_from_hash(attributes)
155
- new.build_from_hash(attributes)
156
- end
157
-
158
- # Builds the object from hash
159
- # @param [Hash] attributes Model attributes in the form of hash
160
- # @return [Object] Returns the model itself
161
- def build_from_hash(attributes)
162
241
  return nil unless attributes.is_a?(Hash)
163
- self.class.openapi_types.each_pair do |key, type|
164
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
165
- self.send("#{key}=", nil)
242
+ attributes = attributes.transform_keys(&:to_sym)
243
+ transformed_hash = {}
244
+ openapi_types.each_pair do |key, type|
245
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
246
+ transformed_hash["#{key}"] = nil
166
247
  elsif type =~ /\AArray<(.*)>/i
167
248
  # check to ensure the input is an array given that the attribute
168
249
  # is documented as an array but the input is not
169
- if attributes[self.class.attribute_map[key]].is_a?(Array)
170
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
250
+ if attributes[attribute_map[key]].is_a?(Array)
251
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
171
252
  end
172
- elsif !attributes[self.class.attribute_map[key]].nil?
173
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
253
+ elsif !attributes[attribute_map[key]].nil?
254
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
174
255
  end
175
256
  end
176
-
177
- self
257
+ new(transformed_hash)
178
258
  end
179
259
 
180
260
  # Deserializes the data based on type
181
261
  # @param string type Data type
182
262
  # @param string value Value to be deserialized
183
263
  # @return [Object] Deserialized data
184
- def _deserialize(type, value)
264
+ def self._deserialize(type, value)
185
265
  case type.to_sym
186
266
  when :Time
187
267
  Time.parse(value)
@@ -216,7 +296,7 @@ module Shotstack
216
296
  else # model
217
297
  # models (e.g. Pet) or oneOf
218
298
  klass = Shotstack.const_get(type)
219
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
299
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
220
300
  end
221
301
  end
222
302
 
@@ -1,15 +1,15 @@
1
1
  =begin
2
2
  #Shotstack
3
3
 
4
- #Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
4
+ # Official Ruby SDK for the Shotstack Cloud Video Editing API
5
5
 
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ Generator version: 7.4.0
10
10
 
11
11
  =end
12
12
 
13
13
  module Shotstack
14
- VERSION = '0.2.1'
14
+ VERSION = '0.2.6'
15
15
  end
data/lib/shotstack.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Shotstack
3
3
 
4
- #Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
4
+ # Official Ruby SDK for the Shotstack Cloud Video Editing API
5
5
 
6
6
  The version of the OpenAPI document: v1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ Generator version: 7.4.0
10
10
 
11
11
  =end
12
12
 
@@ -23,32 +23,83 @@ require 'shotstack/models/asset_response'
23
23
  require 'shotstack/models/asset_response_attributes'
24
24
  require 'shotstack/models/asset_response_data'
25
25
  require 'shotstack/models/audio_asset'
26
+ require 'shotstack/models/audio_enhancement'
26
27
  require 'shotstack/models/clip'
27
28
  require 'shotstack/models/crop'
29
+ require 'shotstack/models/did_generated_asset'
30
+ require 'shotstack/models/did_generated_asset_options'
31
+ require 'shotstack/models/did_text_to_avatar_options'
28
32
  require 'shotstack/models/destinations'
33
+ require 'shotstack/models/dolby_enhancement'
34
+ require 'shotstack/models/dolby_enhancement_options'
29
35
  require 'shotstack/models/edit'
36
+ require 'shotstack/models/eleven_labs_generated_asset'
37
+ require 'shotstack/models/eleven_labs_generated_asset_options'
38
+ require 'shotstack/models/eleven_labs_text_to_speech_options'
39
+ require 'shotstack/models/enhancements'
30
40
  require 'shotstack/models/flip_transformation'
31
41
  require 'shotstack/models/font'
42
+ require 'shotstack/models/generated_asset'
43
+ require 'shotstack/models/generated_asset_error_response'
44
+ require 'shotstack/models/generated_asset_error_response_data'
45
+ require 'shotstack/models/generated_asset_response'
46
+ require 'shotstack/models/generated_asset_response_attributes'
47
+ require 'shotstack/models/generated_asset_response_data'
48
+ require 'shotstack/models/google_cloud_storage_destination'
49
+ require 'shotstack/models/google_cloud_storage_destination_options'
50
+ require 'shotstack/models/google_drive_destination'
51
+ require 'shotstack/models/google_drive_destination_options'
52
+ require 'shotstack/models/hey_gen_generated_asset'
53
+ require 'shotstack/models/hey_gen_generated_asset_options'
54
+ require 'shotstack/models/hey_gen_text_to_avatar_options'
32
55
  require 'shotstack/models/html_asset'
33
56
  require 'shotstack/models/image_asset'
57
+ require 'shotstack/models/ingest_error_response'
58
+ require 'shotstack/models/ingest_error_response_data'
34
59
  require 'shotstack/models/luma_asset'
35
60
  require 'shotstack/models/merge_field'
36
61
  require 'shotstack/models/mux_destination'
37
62
  require 'shotstack/models/mux_destination_options'
38
63
  require 'shotstack/models/offset'
64
+ require 'shotstack/models/open_ai_generated_asset'
65
+ require 'shotstack/models/open_ai_generated_asset_options'
66
+ require 'shotstack/models/open_ai_text_generator_options'
39
67
  require 'shotstack/models/output'
68
+ require 'shotstack/models/outputs'
69
+ require 'shotstack/models/outputs_response'
40
70
  require 'shotstack/models/poster'
41
71
  require 'shotstack/models/probe_response'
42
72
  require 'shotstack/models/queued_response'
43
73
  require 'shotstack/models/queued_response_data'
74
+ require 'shotstack/models/queued_source_response'
75
+ require 'shotstack/models/queued_source_response_data'
44
76
  require 'shotstack/models/range'
45
77
  require 'shotstack/models/render_response'
46
78
  require 'shotstack/models/render_response_data'
79
+ require 'shotstack/models/rendition'
80
+ require 'shotstack/models/rendition_response_attributes'
47
81
  require 'shotstack/models/rotate_transformation'
82
+ require 'shotstack/models/s3_destination'
83
+ require 'shotstack/models/s3_destination_options'
48
84
  require 'shotstack/models/shotstack_destination'
85
+ require 'shotstack/models/shotstack_generated_asset'
86
+ require 'shotstack/models/shotstack_generated_asset_options'
87
+ require 'shotstack/models/shotstack_image_to_video_options'
88
+ require 'shotstack/models/shotstack_text_generator_options'
89
+ require 'shotstack/models/shotstack_text_to_image_options'
90
+ require 'shotstack/models/shotstack_text_to_speech_options'
49
91
  require 'shotstack/models/size'
50
92
  require 'shotstack/models/skew_transformation'
51
93
  require 'shotstack/models/soundtrack'
94
+ require 'shotstack/models/source'
95
+ require 'shotstack/models/source_list_response'
96
+ require 'shotstack/models/source_response'
97
+ require 'shotstack/models/source_response_attributes'
98
+ require 'shotstack/models/source_response_data'
99
+ require 'shotstack/models/speed'
100
+ require 'shotstack/models/stability_ai_generated_asset'
101
+ require 'shotstack/models/stability_ai_generated_asset_options'
102
+ require 'shotstack/models/stability_ai_text_to_image_options'
52
103
  require 'shotstack/models/template'
53
104
  require 'shotstack/models/template_data_response'
54
105
  require 'shotstack/models/template_data_response_data'
@@ -62,12 +113,22 @@ require 'shotstack/models/thumbnail'
62
113
  require 'shotstack/models/timeline'
63
114
  require 'shotstack/models/title_asset'
64
115
  require 'shotstack/models/track'
116
+ require 'shotstack/models/transcription'
117
+ require 'shotstack/models/transfer'
118
+ require 'shotstack/models/transfer_response'
119
+ require 'shotstack/models/transfer_response_attributes'
120
+ require 'shotstack/models/transfer_response_data'
65
121
  require 'shotstack/models/transformation'
66
122
  require 'shotstack/models/transition'
123
+ require 'shotstack/models/upload_response'
124
+ require 'shotstack/models/upload_response_attributes'
125
+ require 'shotstack/models/upload_response_data'
67
126
  require 'shotstack/models/video_asset'
68
127
 
69
128
  # APIs
129
+ require 'shotstack/api/create_api'
70
130
  require 'shotstack/api/edit_api'
131
+ require 'shotstack/api/ingest_api'
71
132
  require 'shotstack/api/serve_api'
72
133
 
73
134
  module Shotstack
data/shotstack.gemspec CHANGED
@@ -3,12 +3,12 @@
3
3
  =begin
4
4
  #Shotstack
5
5
 
6
- #Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.io/docs/guide/) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>
6
+ # Official Ruby SDK for the Shotstack Cloud Video Editing API
7
7
 
8
8
  The version of the OpenAPI document: v1
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.4.0
11
+ Generator version: 7.4.0
12
12
 
13
13
  =end
14
14
 
@@ -20,19 +20,19 @@ Gem::Specification.new do |s|
20
20
  s.version = Shotstack::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["Shotstack"]
23
- s.email = [""]
24
- s.homepage = "https://shotstack.io"
25
- s.summary = "Shotstack SDK Ruby Gem"
26
- s.description = "Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>"
23
+ s.email = ["ruby@shotstack.io"]
24
+ s.homepage = "https://shotstack.io/product/sdk/ruby/"
25
+ s.summary = "Shotstack Ruby Gem"
26
+ s.description = "Official Ruby SDK for the Shotstack Cloud Video Editing API"
27
27
  s.license = "MIT"
28
- s.required_ruby_version = ">= 2.4"
28
+ s.required_ruby_version = ">= 2.7"
29
+ s.metadata = {}
29
30
 
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
32
 
32
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
34
 
34
35
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
- s.test_files = `find spec/*`.split("\n")
36
36
  s.executables = []
37
37
  s.require_paths = ["lib"]
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shotstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shotstack
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-05 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,39 +34,36 @@ dependencies:
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 3.6.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '3.6'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.6.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 3.6.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '3.6'
53
- description: 'Shotstack is a video, image and audio editing service that allows for
54
- the automated generation of videos, images and audio using JSON and a RESTful API. You
55
- arrange and configure an edit and POST it to the API which will render your media
56
- and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io)
57
- or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started)
58
- documentation. There are two main API''s, one for editing and generating assets
59
- (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL
60
- is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b>'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.6.0
53
+ description: Official Ruby SDK for the Shotstack Cloud Video Editing API
61
54
  email:
62
- - ''
55
+ - ruby@shotstack.io
63
56
  executables: []
64
57
  extensions: []
65
58
  extra_rdoc_files: []
66
59
  files:
60
+ - Gemfile
67
61
  - README.md
62
+ - Rakefile
68
63
  - lib/shotstack.rb
64
+ - lib/shotstack/api/create_api.rb
69
65
  - lib/shotstack/api/edit_api.rb
66
+ - lib/shotstack/api/ingest_api.rb
70
67
  - lib/shotstack/api/serve_api.rb
71
68
  - lib/shotstack/api_client.rb
72
69
  - lib/shotstack/api_error.rb
@@ -77,32 +74,83 @@ files:
77
74
  - lib/shotstack/models/asset_response_attributes.rb
78
75
  - lib/shotstack/models/asset_response_data.rb
79
76
  - lib/shotstack/models/audio_asset.rb
77
+ - lib/shotstack/models/audio_enhancement.rb
80
78
  - lib/shotstack/models/clip.rb
81
79
  - lib/shotstack/models/crop.rb
82
80
  - lib/shotstack/models/destinations.rb
81
+ - lib/shotstack/models/did_generated_asset.rb
82
+ - lib/shotstack/models/did_generated_asset_options.rb
83
+ - lib/shotstack/models/did_text_to_avatar_options.rb
84
+ - lib/shotstack/models/dolby_enhancement.rb
85
+ - lib/shotstack/models/dolby_enhancement_options.rb
83
86
  - lib/shotstack/models/edit.rb
87
+ - lib/shotstack/models/eleven_labs_generated_asset.rb
88
+ - lib/shotstack/models/eleven_labs_generated_asset_options.rb
89
+ - lib/shotstack/models/eleven_labs_text_to_speech_options.rb
90
+ - lib/shotstack/models/enhancements.rb
84
91
  - lib/shotstack/models/flip_transformation.rb
85
92
  - lib/shotstack/models/font.rb
93
+ - lib/shotstack/models/generated_asset.rb
94
+ - lib/shotstack/models/generated_asset_error_response.rb
95
+ - lib/shotstack/models/generated_asset_error_response_data.rb
96
+ - lib/shotstack/models/generated_asset_response.rb
97
+ - lib/shotstack/models/generated_asset_response_attributes.rb
98
+ - lib/shotstack/models/generated_asset_response_data.rb
99
+ - lib/shotstack/models/google_cloud_storage_destination.rb
100
+ - lib/shotstack/models/google_cloud_storage_destination_options.rb
101
+ - lib/shotstack/models/google_drive_destination.rb
102
+ - lib/shotstack/models/google_drive_destination_options.rb
103
+ - lib/shotstack/models/hey_gen_generated_asset.rb
104
+ - lib/shotstack/models/hey_gen_generated_asset_options.rb
105
+ - lib/shotstack/models/hey_gen_text_to_avatar_options.rb
86
106
  - lib/shotstack/models/html_asset.rb
87
107
  - lib/shotstack/models/image_asset.rb
108
+ - lib/shotstack/models/ingest_error_response.rb
109
+ - lib/shotstack/models/ingest_error_response_data.rb
88
110
  - lib/shotstack/models/luma_asset.rb
89
111
  - lib/shotstack/models/merge_field.rb
90
112
  - lib/shotstack/models/mux_destination.rb
91
113
  - lib/shotstack/models/mux_destination_options.rb
92
114
  - lib/shotstack/models/offset.rb
115
+ - lib/shotstack/models/open_ai_generated_asset.rb
116
+ - lib/shotstack/models/open_ai_generated_asset_options.rb
117
+ - lib/shotstack/models/open_ai_text_generator_options.rb
93
118
  - lib/shotstack/models/output.rb
119
+ - lib/shotstack/models/outputs.rb
120
+ - lib/shotstack/models/outputs_response.rb
94
121
  - lib/shotstack/models/poster.rb
95
122
  - lib/shotstack/models/probe_response.rb
96
123
  - lib/shotstack/models/queued_response.rb
97
124
  - lib/shotstack/models/queued_response_data.rb
125
+ - lib/shotstack/models/queued_source_response.rb
126
+ - lib/shotstack/models/queued_source_response_data.rb
98
127
  - lib/shotstack/models/range.rb
99
128
  - lib/shotstack/models/render_response.rb
100
129
  - lib/shotstack/models/render_response_data.rb
130
+ - lib/shotstack/models/rendition.rb
131
+ - lib/shotstack/models/rendition_response_attributes.rb
101
132
  - lib/shotstack/models/rotate_transformation.rb
133
+ - lib/shotstack/models/s3_destination.rb
134
+ - lib/shotstack/models/s3_destination_options.rb
102
135
  - lib/shotstack/models/shotstack_destination.rb
136
+ - lib/shotstack/models/shotstack_generated_asset.rb
137
+ - lib/shotstack/models/shotstack_generated_asset_options.rb
138
+ - lib/shotstack/models/shotstack_image_to_video_options.rb
139
+ - lib/shotstack/models/shotstack_text_generator_options.rb
140
+ - lib/shotstack/models/shotstack_text_to_image_options.rb
141
+ - lib/shotstack/models/shotstack_text_to_speech_options.rb
103
142
  - lib/shotstack/models/size.rb
104
143
  - lib/shotstack/models/skew_transformation.rb
105
144
  - lib/shotstack/models/soundtrack.rb
145
+ - lib/shotstack/models/source.rb
146
+ - lib/shotstack/models/source_list_response.rb
147
+ - lib/shotstack/models/source_response.rb
148
+ - lib/shotstack/models/source_response_attributes.rb
149
+ - lib/shotstack/models/source_response_data.rb
150
+ - lib/shotstack/models/speed.rb
151
+ - lib/shotstack/models/stability_ai_generated_asset.rb
152
+ - lib/shotstack/models/stability_ai_generated_asset_options.rb
153
+ - lib/shotstack/models/stability_ai_text_to_image_options.rb
106
154
  - lib/shotstack/models/template.rb
107
155
  - lib/shotstack/models/template_data_response.rb
108
156
  - lib/shotstack/models/template_data_response_data.rb
@@ -116,16 +164,24 @@ files:
116
164
  - lib/shotstack/models/timeline.rb
117
165
  - lib/shotstack/models/title_asset.rb
118
166
  - lib/shotstack/models/track.rb
167
+ - lib/shotstack/models/transcription.rb
168
+ - lib/shotstack/models/transfer.rb
169
+ - lib/shotstack/models/transfer_response.rb
170
+ - lib/shotstack/models/transfer_response_attributes.rb
171
+ - lib/shotstack/models/transfer_response_data.rb
119
172
  - lib/shotstack/models/transformation.rb
120
173
  - lib/shotstack/models/transition.rb
174
+ - lib/shotstack/models/upload_response.rb
175
+ - lib/shotstack/models/upload_response_attributes.rb
176
+ - lib/shotstack/models/upload_response_data.rb
121
177
  - lib/shotstack/models/video_asset.rb
122
178
  - lib/shotstack/version.rb
123
179
  - shotstack.gemspec
124
- homepage: https://shotstack.io
180
+ homepage: https://shotstack.io/product/sdk/ruby/
125
181
  licenses:
126
182
  - MIT
127
183
  metadata: {}
128
- post_install_message:
184
+ post_install_message:
129
185
  rdoc_options: []
130
186
  require_paths:
131
187
  - lib
@@ -133,15 +189,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
189
  requirements:
134
190
  - - ">="
135
191
  - !ruby/object:Gem::Version
136
- version: '2.4'
192
+ version: '2.7'
137
193
  required_rubygems_version: !ruby/object:Gem::Requirement
138
194
  requirements:
139
195
  - - ">="
140
196
  - !ruby/object:Gem::Version
141
197
  version: '0'
142
198
  requirements: []
143
- rubygems_version: 3.0.1
144
- signing_key:
199
+ rubygems_version: 3.3.5
200
+ signing_key:
145
201
  specification_version: 4
146
- summary: Shotstack SDK Ruby Gem
202
+ summary: Shotstack Ruby Gem
147
203
  test_files: []