shotstack 0.1.5 → 0.1.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 +4 -4
- data/lib/shotstack/api/edit_api.rb +224 -0
- data/lib/shotstack/api/endpoints_api.rb +1 -1
- data/lib/shotstack/api/serve_api.rb +224 -0
- data/lib/shotstack/api_client.rb +1 -1
- data/lib/shotstack/api_error.rb +1 -1
- data/lib/shotstack/configuration.rb +16 -2
- data/lib/shotstack/models/asset_render_response.rb +222 -0
- data/lib/shotstack/models/asset_response.rb +219 -0
- data/lib/shotstack/models/asset_response_attributes.rb +334 -0
- data/lib/shotstack/models/asset_response_data.rb +229 -0
- data/lib/shotstack/models/audio_asset.rb +1 -1
- data/lib/shotstack/models/clip.rb +17 -8
- data/lib/shotstack/models/crop.rb +1 -1
- data/lib/shotstack/models/destinations.rb +17 -0
- data/lib/shotstack/models/edit.rb +65 -7
- data/lib/shotstack/models/flip_transformation.rb +234 -0
- data/lib/shotstack/models/font.rb +2 -2
- data/lib/shotstack/models/html_asset.rb +3 -3
- data/lib/shotstack/models/image_asset.rb +2 -2
- data/lib/shotstack/models/luma_asset.rb +4 -4
- data/lib/shotstack/models/merge_field.rb +236 -0
- data/lib/shotstack/models/offset.rb +1 -1
- data/lib/shotstack/models/output.rb +71 -19
- data/lib/shotstack/models/poster.rb +1 -1
- data/lib/shotstack/models/probe_response.rb +255 -0
- data/lib/shotstack/models/queued_response.rb +2 -1
- data/lib/shotstack/models/queued_response_data.rb +2 -1
- data/lib/shotstack/models/range.rb +3 -3
- data/lib/shotstack/models/render_response.rb +2 -1
- data/lib/shotstack/models/render_response_data.rb +6 -5
- data/lib/shotstack/models/rotate_transformation.rb +222 -0
- data/lib/shotstack/models/shotstack_destination.rb +240 -0
- data/lib/shotstack/models/size.rb +278 -0
- data/lib/shotstack/models/skew_transformation.rb +234 -0
- data/lib/shotstack/models/soundtrack.rb +1 -1
- data/lib/shotstack/models/thumbnail.rb +2 -2
- data/lib/shotstack/models/timeline.rb +18 -6
- data/lib/shotstack/models/title_asset.rb +1 -1
- data/lib/shotstack/models/track.rb +1 -1
- data/lib/shotstack/models/transformation.rb +237 -0
- data/lib/shotstack/models/transition.rb +7 -7
- data/lib/shotstack/models/video_asset.rb +1 -1
- data/lib/shotstack/version.rb +2 -2
- data/lib/shotstack.rb +15 -1
- data/shotstack.gemspec +2 -2
- metadata +25 -6
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Shotstack
|
|
2
|
+
class Destinations
|
|
3
|
+
# Builds the object from hash
|
|
4
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
5
|
+
# @return [Object] Returns the model itself
|
|
6
|
+
def self.build_from_hash(attributes)
|
|
7
|
+
new.build_from_hash(attributes)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
# Builds the object from hash
|
|
11
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
12
|
+
# @return [Object] Returns the model itself
|
|
13
|
+
def build_from_hash(attributes)
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Shotstack
|
|
3
3
|
|
|
4
|
-
#
|
|
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.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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -14,21 +14,51 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Shotstack
|
|
17
|
-
# An edit defines the
|
|
17
|
+
# An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format.
|
|
18
18
|
class Edit
|
|
19
19
|
attr_accessor :timeline
|
|
20
20
|
|
|
21
21
|
attr_accessor :output
|
|
22
22
|
|
|
23
|
-
# An
|
|
23
|
+
# An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`.
|
|
24
|
+
attr_accessor :merge
|
|
25
|
+
|
|
26
|
+
# An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.gitbook.io/docs/guides/architecting-an-application/webhooks) for more details.
|
|
24
27
|
attr_accessor :callback
|
|
25
28
|
|
|
29
|
+
# The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.gitbook.io/docs/guides/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimized for high speed rendering with up to 512MB storage</li> <li>`mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
|
|
30
|
+
attr_accessor :disk
|
|
31
|
+
|
|
32
|
+
class EnumAttributeValidator
|
|
33
|
+
attr_reader :datatype
|
|
34
|
+
attr_reader :allowable_values
|
|
35
|
+
|
|
36
|
+
def initialize(datatype, allowable_values)
|
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
|
38
|
+
case datatype.to_s
|
|
39
|
+
when /Integer/i
|
|
40
|
+
value.to_i
|
|
41
|
+
when /Float/i
|
|
42
|
+
value.to_f
|
|
43
|
+
else
|
|
44
|
+
value
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def valid?(value)
|
|
50
|
+
!value || allowable_values.include?(value)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
26
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
55
|
def self.attribute_map
|
|
28
56
|
{
|
|
29
57
|
:'timeline' => :'timeline',
|
|
30
58
|
:'output' => :'output',
|
|
31
|
-
:'
|
|
59
|
+
:'merge' => :'merge',
|
|
60
|
+
:'callback' => :'callback',
|
|
61
|
+
:'disk' => :'disk'
|
|
32
62
|
}
|
|
33
63
|
end
|
|
34
64
|
|
|
@@ -42,7 +72,9 @@ module Shotstack
|
|
|
42
72
|
{
|
|
43
73
|
:'timeline' => :'Timeline',
|
|
44
74
|
:'output' => :'Output',
|
|
45
|
-
:'
|
|
75
|
+
:'merge' => :'Array<MergeField>',
|
|
76
|
+
:'callback' => :'String',
|
|
77
|
+
:'disk' => :'String'
|
|
46
78
|
}
|
|
47
79
|
end
|
|
48
80
|
|
|
@@ -75,9 +107,21 @@ module Shotstack
|
|
|
75
107
|
self.output = attributes[:'output']
|
|
76
108
|
end
|
|
77
109
|
|
|
110
|
+
if attributes.key?(:'merge')
|
|
111
|
+
if (value = attributes[:'merge']).is_a?(Array)
|
|
112
|
+
self.merge = value
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
78
116
|
if attributes.key?(:'callback')
|
|
79
117
|
self.callback = attributes[:'callback']
|
|
80
118
|
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'disk')
|
|
121
|
+
self.disk = attributes[:'disk']
|
|
122
|
+
else
|
|
123
|
+
self.disk = 'local'
|
|
124
|
+
end
|
|
81
125
|
end
|
|
82
126
|
|
|
83
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -100,9 +144,21 @@ module Shotstack
|
|
|
100
144
|
def valid?
|
|
101
145
|
return false if @timeline.nil?
|
|
102
146
|
return false if @output.nil?
|
|
147
|
+
disk_validator = EnumAttributeValidator.new('String', ["local", "mount"])
|
|
148
|
+
return false unless disk_validator.valid?(@disk)
|
|
103
149
|
true
|
|
104
150
|
end
|
|
105
151
|
|
|
152
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
153
|
+
# @param [Object] disk Object to be assigned
|
|
154
|
+
def disk=(disk)
|
|
155
|
+
validator = EnumAttributeValidator.new('String', ["local", "mount"])
|
|
156
|
+
unless validator.valid?(disk)
|
|
157
|
+
fail ArgumentError, "invalid value for \"disk\", must be one of #{validator.allowable_values}."
|
|
158
|
+
end
|
|
159
|
+
@disk = disk
|
|
160
|
+
end
|
|
161
|
+
|
|
106
162
|
# Checks equality by comparing each attribute.
|
|
107
163
|
# @param [Object] Object to be compared
|
|
108
164
|
def ==(o)
|
|
@@ -110,7 +166,9 @@ module Shotstack
|
|
|
110
166
|
self.class == o.class &&
|
|
111
167
|
timeline == o.timeline &&
|
|
112
168
|
output == o.output &&
|
|
113
|
-
|
|
169
|
+
merge == o.merge &&
|
|
170
|
+
callback == o.callback &&
|
|
171
|
+
disk == o.disk
|
|
114
172
|
end
|
|
115
173
|
|
|
116
174
|
# @see the `==` method
|
|
@@ -122,7 +180,7 @@ module Shotstack
|
|
|
122
180
|
# Calculates hash code according to all attributes.
|
|
123
181
|
# @return [Integer] Hash code
|
|
124
182
|
def hash
|
|
125
|
-
[timeline, output, callback].hash
|
|
183
|
+
[timeline, output, merge, callback, disk].hash
|
|
126
184
|
end
|
|
127
185
|
|
|
128
186
|
# Builds the object from hash
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Shotstack
|
|
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.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>
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Shotstack
|
|
17
|
+
# Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.
|
|
18
|
+
class FlipTransformation
|
|
19
|
+
# Flip a clip horizontally.
|
|
20
|
+
attr_accessor :horizontal
|
|
21
|
+
|
|
22
|
+
# Flip a clip vertically.
|
|
23
|
+
attr_accessor :vertical
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'horizontal' => :'horizontal',
|
|
29
|
+
:'vertical' => :'vertical'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'horizontal' => :'Boolean',
|
|
42
|
+
:'vertical' => :'Boolean'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# List of attributes with nullable: true
|
|
47
|
+
def self.openapi_nullable
|
|
48
|
+
Set.new([
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Shotstack::FlipTransformation` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Shotstack::FlipTransformation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'horizontal')
|
|
68
|
+
self.horizontal = attributes[:'horizontal']
|
|
69
|
+
else
|
|
70
|
+
self.horizontal = false
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'vertical')
|
|
74
|
+
self.vertical = attributes[:'vertical']
|
|
75
|
+
else
|
|
76
|
+
self.vertical = false
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
|
+
# @return Array for valid properties with the reasons
|
|
82
|
+
def list_invalid_properties
|
|
83
|
+
invalid_properties = Array.new
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Checks equality by comparing each attribute.
|
|
94
|
+
# @param [Object] Object to be compared
|
|
95
|
+
def ==(o)
|
|
96
|
+
return true if self.equal?(o)
|
|
97
|
+
self.class == o.class &&
|
|
98
|
+
horizontal == o.horizontal &&
|
|
99
|
+
vertical == o.vertical
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# @see the `==` method
|
|
103
|
+
# @param [Object] Object to be compared
|
|
104
|
+
def eql?(o)
|
|
105
|
+
self == o
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Calculates hash code according to all attributes.
|
|
109
|
+
# @return [Integer] Hash code
|
|
110
|
+
def hash
|
|
111
|
+
[horizontal, vertical].hash
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Builds the object from hash
|
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
|
+
# @return [Object] Returns the model itself
|
|
117
|
+
def self.build_from_hash(attributes)
|
|
118
|
+
new.build_from_hash(attributes)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Builds the object from hash
|
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
+
# @return [Object] Returns the model itself
|
|
124
|
+
def build_from_hash(attributes)
|
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
|
126
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
127
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
128
|
+
self.send("#{key}=", nil)
|
|
129
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
130
|
+
# check to ensure the input is an array given that the attribute
|
|
131
|
+
# is documented as an array but the input is not
|
|
132
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
133
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
134
|
+
end
|
|
135
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
136
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
self
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Deserializes the data based on type
|
|
144
|
+
# @param string type Data type
|
|
145
|
+
# @param string value Value to be deserialized
|
|
146
|
+
# @return [Object] Deserialized data
|
|
147
|
+
def _deserialize(type, value)
|
|
148
|
+
case type.to_sym
|
|
149
|
+
when :Time
|
|
150
|
+
Time.parse(value)
|
|
151
|
+
when :Date
|
|
152
|
+
Date.parse(value)
|
|
153
|
+
when :String
|
|
154
|
+
value.to_s
|
|
155
|
+
when :Integer
|
|
156
|
+
value.to_i
|
|
157
|
+
when :Float
|
|
158
|
+
value.to_f
|
|
159
|
+
when :Boolean
|
|
160
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
161
|
+
true
|
|
162
|
+
else
|
|
163
|
+
false
|
|
164
|
+
end
|
|
165
|
+
when :Object
|
|
166
|
+
# generic object (usually a Hash), return directly
|
|
167
|
+
value
|
|
168
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
169
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
170
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
171
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
172
|
+
k_type = Regexp.last_match[:k_type]
|
|
173
|
+
v_type = Regexp.last_match[:v_type]
|
|
174
|
+
{}.tap do |hash|
|
|
175
|
+
value.each do |k, v|
|
|
176
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
else # model
|
|
180
|
+
# models (e.g. Pet) or oneOf
|
|
181
|
+
klass = Shotstack.const_get(type)
|
|
182
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Returns the string representation of the object
|
|
187
|
+
# @return [String] String presentation of the object
|
|
188
|
+
def to_s
|
|
189
|
+
to_hash.to_s
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
|
194
|
+
def to_body
|
|
195
|
+
to_hash
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the object in the form of hash
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_hash
|
|
201
|
+
hash = {}
|
|
202
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
203
|
+
value = self.send(attr)
|
|
204
|
+
if value.nil?
|
|
205
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
206
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
hash[param] = _to_hash(value)
|
|
210
|
+
end
|
|
211
|
+
hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Outputs non-array value in the form of hash
|
|
215
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
216
|
+
# @param [Object] value Any valid value
|
|
217
|
+
# @return [Hash] Returns the value in the form of hash
|
|
218
|
+
def _to_hash(value)
|
|
219
|
+
if value.is_a?(Array)
|
|
220
|
+
value.compact.map { |v| _to_hash(v) }
|
|
221
|
+
elsif value.is_a?(Hash)
|
|
222
|
+
{}.tap do |hash|
|
|
223
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
224
|
+
end
|
|
225
|
+
elsif value.respond_to? :to_hash
|
|
226
|
+
value.to_hash
|
|
227
|
+
else
|
|
228
|
+
value
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Shotstack
|
|
3
3
|
|
|
4
|
-
#
|
|
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.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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Shotstack
|
|
17
|
-
# Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag.
|
|
17
|
+
# Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
|
|
18
18
|
class Font
|
|
19
19
|
# The URL of the font file. The URL must be publicly accessible or include credentials.
|
|
20
20
|
attr_accessor :src
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Shotstack
|
|
3
3
|
|
|
4
|
-
#
|
|
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.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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -20,10 +20,10 @@ module Shotstack
|
|
|
20
20
|
# The type of asset - set to `html` for HTML.
|
|
21
21
|
attr_accessor :type
|
|
22
22
|
|
|
23
|
-
# The HTML text string.
|
|
23
|
+
# The HTML text string. See list of [supported HTML tags](https://shotstack.gitbook.io/docs/guides/architecting-an-application/html-support#supported-html-tags).
|
|
24
24
|
attr_accessor :html
|
|
25
25
|
|
|
26
|
-
# The CSS text string to apply styling to the HTML.
|
|
26
|
+
# The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.gitbook.io/docs/guides/architecting-an-application/html-support#supported-html-tags).
|
|
27
27
|
attr_accessor :css
|
|
28
28
|
|
|
29
29
|
# Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Shotstack
|
|
3
3
|
|
|
4
|
-
#
|
|
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.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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
require_relative 'asset'
|
|
16
16
|
|
|
17
17
|
module Shotstack
|
|
18
|
-
# The ImageAsset is used to create video from images. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
18
|
+
# The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
|
|
19
19
|
class ImageAsset < Asset
|
|
20
20
|
# The type of asset - set to `image` for images.
|
|
21
21
|
attr_accessor :type
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Shotstack
|
|
3
3
|
|
|
4
|
-
#
|
|
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.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>
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -15,15 +15,15 @@ require 'time'
|
|
|
15
15
|
require_relative 'asset'
|
|
16
16
|
|
|
17
17
|
module Shotstack
|
|
18
|
-
# The LumaAsset is used to create luma matte transitions between other assets. A luma matte is
|
|
18
|
+
# The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
|
|
19
19
|
class LumaAsset < Asset
|
|
20
20
|
# The type of asset - set to `luma` for luma mattes.
|
|
21
21
|
attr_accessor :type
|
|
22
22
|
|
|
23
|
-
# The luma matte
|
|
23
|
+
# The luma matte source URL. The URL must be publicly accessible or include credentials.
|
|
24
24
|
attr_accessor :src
|
|
25
25
|
|
|
26
|
-
# The start trim point of the luma
|
|
26
|
+
# The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.
|
|
27
27
|
attr_accessor :trim
|
|
28
28
|
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|