hermoso 0.1.4

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 (142) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +53 -0
  4. data/lib/hermoso/api/account_api.rb +156 -0
  5. data/lib/hermoso/api/analytics_api.rb +400 -0
  6. data/lib/hermoso/api/brands_api.rb +82 -0
  7. data/lib/hermoso/api/campaign_profit_api.rb +103 -0
  8. data/lib/hermoso/api/campaign_results_api.rb +289 -0
  9. data/lib/hermoso/api/channels_api.rb +82 -0
  10. data/lib/hermoso/api/clones_api.rb +93 -0
  11. data/lib/hermoso/api/connect_links_api.rb +228 -0
  12. data/lib/hermoso/api/connect_redirects_api.rb +153 -0
  13. data/lib/hermoso/api/connections_api.rb +151 -0
  14. data/lib/hermoso/api/credits_api.rb +85 -0
  15. data/lib/hermoso/api/edits_api.rb +102 -0
  16. data/lib/hermoso/api/events_api.rb +932 -0
  17. data/lib/hermoso/api/generations_api.rb +173 -0
  18. data/lib/hermoso/api/jobs_api.rb +226 -0
  19. data/lib/hermoso/api/library_api.rb +88 -0
  20. data/lib/hermoso/api/media_api.rb +158 -0
  21. data/lib/hermoso/api/models_api.rb +88 -0
  22. data/lib/hermoso/api/posts_api.rb +377 -0
  23. data/lib/hermoso/api/recasts_api.rb +102 -0
  24. data/lib/hermoso/api/signup_api.rb +164 -0
  25. data/lib/hermoso/api/tag_api.rb +570 -0
  26. data/lib/hermoso/api/tools_api.rb +252 -0
  27. data/lib/hermoso/api_client.rb +441 -0
  28. data/lib/hermoso/api_error.rb +58 -0
  29. data/lib/hermoso/api_model_base.rb +92 -0
  30. data/lib/hermoso/configuration.rb +400 -0
  31. data/lib/hermoso/helpers.rb +116 -0
  32. data/lib/hermoso/models/asset.rb +241 -0
  33. data/lib/hermoso/models/asset_list.rb +203 -0
  34. data/lib/hermoso/models/best_time.rb +250 -0
  35. data/lib/hermoso/models/best_time_slots_inner.rb +205 -0
  36. data/lib/hermoso/models/brand.rb +273 -0
  37. data/lib/hermoso/models/brand_list.rb +203 -0
  38. data/lib/hermoso/models/campaign_profit.rb +261 -0
  39. data/lib/hermoso/models/campaign_results.rb +250 -0
  40. data/lib/hermoso/models/campaign_results_upload.rb +171 -0
  41. data/lib/hermoso/models/campaign_results_upload_rows_inner.rb +259 -0
  42. data/lib/hermoso/models/channel.rb +326 -0
  43. data/lib/hermoso/models/channel_carousel.rb +188 -0
  44. data/lib/hermoso/models/channel_list.rb +203 -0
  45. data/lib/hermoso/models/clone_quote.rb +243 -0
  46. data/lib/hermoso/models/clone_quote_request.rb +227 -0
  47. data/lib/hermoso/models/clone_quote_step.rb +201 -0
  48. data/lib/hermoso/models/connect_link.rb +321 -0
  49. data/lib/hermoso/models/connect_link_account.rb +178 -0
  50. data/lib/hermoso/models/connect_link_create.rb +236 -0
  51. data/lib/hermoso/models/connect_link_error.rb +169 -0
  52. data/lib/hermoso/models/connect_redirects.rb +203 -0
  53. data/lib/hermoso/models/connect_redirects_set.rb +180 -0
  54. data/lib/hermoso/models/connection.rb +250 -0
  55. data/lib/hermoso/models/connection_accounts_inner.rb +178 -0
  56. data/lib/hermoso/models/connection_deleted.rb +228 -0
  57. data/lib/hermoso/models/connection_list.rb +203 -0
  58. data/lib/hermoso/models/contact_email.rb +189 -0
  59. data/lib/hermoso/models/contact_email_resend.rb +161 -0
  60. data/lib/hermoso/models/content_decay.rb +223 -0
  61. data/lib/hermoso/models/content_decay_buckets_inner.rb +187 -0
  62. data/lib/hermoso/models/conversion_destination_create.rb +317 -0
  63. data/lib/hermoso/models/conversion_destination_list.rb +223 -0
  64. data/lib/hermoso/models/conversion_destination_result.rb +221 -0
  65. data/lib/hermoso/models/conversion_event_list.rb +230 -0
  66. data/lib/hermoso/models/conversion_event_update.rb +195 -0
  67. data/lib/hermoso/models/conversion_events_send.rb +236 -0
  68. data/lib/hermoso/models/conversion_events_send_events_inner.rb +314 -0
  69. data/lib/hermoso/models/conversion_insights.rb +265 -0
  70. data/lib/hermoso/models/conversion_send_result.rb +257 -0
  71. data/lib/hermoso/models/conversion_send_result_destinations_inner.rb +286 -0
  72. data/lib/hermoso/models/credits.rb +240 -0
  73. data/lib/hermoso/models/credits_limits.rb +234 -0
  74. data/lib/hermoso/models/credits_limits_brands_inner.rb +218 -0
  75. data/lib/hermoso/models/credits_limits_brands_inner_members_inner.rb +196 -0
  76. data/lib/hermoso/models/deleted.rb +210 -0
  77. data/lib/hermoso/models/edit.rb +278 -0
  78. data/lib/hermoso/models/edit_create.rb +317 -0
  79. data/lib/hermoso/models/edit_preview.rb +199 -0
  80. data/lib/hermoso/models/edit_quote.rb +231 -0
  81. data/lib/hermoso/models/error.rb +198 -0
  82. data/lib/hermoso/models/error_error.rb +335 -0
  83. data/lib/hermoso/models/error_error_unknown_arguments_inner.rb +171 -0
  84. data/lib/hermoso/models/follower_history.rb +239 -0
  85. data/lib/hermoso/models/follower_history_accounts_inner.rb +207 -0
  86. data/lib/hermoso/models/follower_history_accounts_inner_points_inner.rb +178 -0
  87. data/lib/hermoso/models/follower_history_date_range.rb +169 -0
  88. data/lib/hermoso/models/generation_create.rb +435 -0
  89. data/lib/hermoso/models/generation_quote.rb +263 -0
  90. data/lib/hermoso/models/hermoso_tag.rb +230 -0
  91. data/lib/hermoso/models/hermoso_tag_audience_action.rb +325 -0
  92. data/lib/hermoso/models/hermoso_tag_audiences.rb +241 -0
  93. data/lib/hermoso/models/hermoso_tag_events.rb +223 -0
  94. data/lib/hermoso/models/hermoso_tag_events_send.rb +179 -0
  95. data/lib/hermoso/models/hermoso_tag_events_sent.rb +221 -0
  96. data/lib/hermoso/models/hermoso_tag_install.rb +246 -0
  97. data/lib/hermoso/models/hermoso_tag_install_result.rb +255 -0
  98. data/lib/hermoso/models/hermoso_tag_report.rb +261 -0
  99. data/lib/hermoso/models/hermoso_tag_tag.rb +211 -0
  100. data/lib/hermoso/models/hermoso_tag_update.rb +356 -0
  101. data/lib/hermoso/models/inbox_stats.rb +315 -0
  102. data/lib/hermoso/models/job.rb +359 -0
  103. data/lib/hermoso/models/job_cancel.rb +221 -0
  104. data/lib/hermoso/models/job_list.rb +232 -0
  105. data/lib/hermoso/models/media.rb +230 -0
  106. data/lib/hermoso/models/model.rb +327 -0
  107. data/lib/hermoso/models/model_list.rb +203 -0
  108. data/lib/hermoso/models/post.rb +382 -0
  109. data/lib/hermoso/models/post_create.rb +318 -0
  110. data/lib/hermoso/models/post_create_media_inner.rb +104 -0
  111. data/lib/hermoso/models/post_create_media_inner_one_of.rb +201 -0
  112. data/lib/hermoso/models/post_list.rb +221 -0
  113. data/lib/hermoso/models/post_media_inner.rb +169 -0
  114. data/lib/hermoso/models/post_results_inner.rb +205 -0
  115. data/lib/hermoso/models/post_results_inner_first_comment.rb +188 -0
  116. data/lib/hermoso/models/posting_frequency.rb +241 -0
  117. data/lib/hermoso/models/posting_frequency_frequency_inner.rb +205 -0
  118. data/lib/hermoso/models/profit_settings.rb +230 -0
  119. data/lib/hermoso/models/recast.rb +308 -0
  120. data/lib/hermoso/models/recast_create.rb +274 -0
  121. data/lib/hermoso/models/recast_person.rb +182 -0
  122. data/lib/hermoso/models/recast_quote.rb +232 -0
  123. data/lib/hermoso/models/recast_step.rb +201 -0
  124. data/lib/hermoso/models/recast_subject.rb +170 -0
  125. data/lib/hermoso/models/recast_voice.rb +178 -0
  126. data/lib/hermoso/models/recast_window.rb +179 -0
  127. data/lib/hermoso/models/signup.rb +329 -0
  128. data/lib/hermoso/models/signup_claim.rb +178 -0
  129. data/lib/hermoso/models/signup_create.rb +247 -0
  130. data/lib/hermoso/models/tool.rb +360 -0
  131. data/lib/hermoso/models/tool_invoke.rb +169 -0
  132. data/lib/hermoso/models/tool_job.rb +262 -0
  133. data/lib/hermoso/models/tool_list.rb +273 -0
  134. data/lib/hermoso/models/tool_list_areas_inner.rb +219 -0
  135. data/lib/hermoso/models/tool_list_search.rb +181 -0
  136. data/lib/hermoso/models/tool_result.rb +245 -0
  137. data/lib/hermoso/models/tool_result_images_inner.rb +170 -0
  138. data/lib/hermoso/models/warning.rb +244 -0
  139. data/lib/hermoso/spec.rb +8 -0
  140. data/lib/hermoso/version.rb +15 -0
  141. data/lib/hermoso.rb +174 -0
  142. metadata +237 -0
@@ -0,0 +1,170 @@
1
+ =begin
2
+ #Hermoso API
3
+
4
+ #The Hermoso public API. Guide: https://hermoso.ai/docs/api/ · OpenAPI: https://app.hermoso.ai/openapi.json
5
+
6
+ The version of the OpenAPI document: 2026-08-26
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.27.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Hermoso
17
+ class ToolResultImagesInner < ApiModelBase
18
+ attr_accessor :mime_type
19
+
20
+ # Base64 bytes.
21
+ attr_accessor :data
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'mime_type' => :'mimeType',
27
+ :'data' => :'data'
28
+ }
29
+ end
30
+
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ acceptable_attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'mime_type' => :'String',
45
+ :'data' => :'String'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Returns attribute type mapping
56
+ def self.acceptable_openapi_types
57
+ openapi_types
58
+ end
59
+
60
+ # Returns the nullable attributes
61
+ def self.acceptable_openapi_nullable
62
+ openapi_nullable
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hermoso::ToolResultImagesInner` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ acceptable_attribute_map = self.class.acceptable_attribute_map
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!acceptable_attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hermoso::ToolResultImagesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'mime_type')
82
+ self.mime_type = attributes[:'mime_type']
83
+ end
84
+
85
+ if attributes.key?(:'data')
86
+ self.data = attributes[:'data']
87
+ end
88
+ end
89
+
90
+ # Show invalid properties with the reasons. Usually used together with valid?
91
+ # @return Array for valid properties with the reasons
92
+ def list_invalid_properties
93
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
+ invalid_properties = Array.new
95
+ invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ warn '[DEPRECATED] the `valid?` method is obsolete'
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ mime_type == o.mime_type &&
111
+ data == o.data
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [mime_type, data].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ # include attributes inherited from allOf parents (the nearest declaration wins)
133
+ map = acceptable_attribute_map
134
+ transformed_hash = {}
135
+ acceptable_openapi_types.each_pair do |key, type|
136
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
137
+ transformed_hash["#{key}"] = nil
138
+ elsif type =~ /\AArray<(.*)>/i
139
+ # check to ensure the input is an array given that the attribute
140
+ # is documented as an array but the input is not
141
+ if attributes[map[key]].is_a?(Array)
142
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
143
+ end
144
+ elsif !attributes[map[key]].nil?
145
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
146
+ end
147
+ end
148
+ new(transformed_hash)
149
+ end
150
+
151
+ # Returns the object in the form of hash
152
+ # @return [Hash] Returns the object in the form of hash
153
+ def to_hash
154
+ hash = {}
155
+ # include attributes inherited from allOf parents (the nearest declaration wins)
156
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
157
+ value = self.send(attr)
158
+ if value.nil?
159
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
160
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
161
+ end
162
+
163
+ hash[param] = _to_hash(value)
164
+ end
165
+ hash
166
+ end
167
+
168
+ end
169
+
170
+ end
@@ -0,0 +1,244 @@
1
+ =begin
2
+ #Hermoso API
3
+
4
+ #The Hermoso public API. Guide: https://hermoso.ai/docs/api/ · OpenAPI: https://app.hermoso.ai/openapi.json
5
+
6
+ The version of the OpenAPI document: 2026-08-26
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.27.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Hermoso
17
+ # Something about the request that did not stop it but probably did not do what you meant. Today: a query parameter or body field this operation does not take, which was IGNORED. Any response, success or error, may carry `warnings`; read it in development and fix what it names. THIS SET OF CODES MAY GROW.
18
+ class Warning < ApiModelBase
19
+ # `unknown_parameter` (a query parameter) or `unknown_field` (a JSON body field).
20
+ attr_accessor :code
21
+
22
+ # The name you sent.
23
+ attr_accessor :param
24
+
25
+ attr_accessor :_in
26
+
27
+ # The parameter of THIS operation you most likely meant.
28
+ attr_accessor :did_you_mean
29
+
30
+ # Every name this operation takes there.
31
+ attr_accessor :valid
32
+
33
+ attr_accessor :message
34
+
35
+ class EnumAttributeValidator
36
+ attr_reader :datatype
37
+ attr_reader :allowable_values
38
+
39
+ def initialize(datatype, allowable_values)
40
+ @allowable_values = allowable_values.map do |value|
41
+ case datatype.to_s
42
+ when /Integer/i
43
+ value.to_i
44
+ when /Float/i
45
+ value.to_f
46
+ else
47
+ value
48
+ end
49
+ end
50
+ end
51
+
52
+ def valid?(value)
53
+ !value || allowable_values.include?(value)
54
+ end
55
+ end
56
+
57
+ # Attribute mapping from ruby-style variable name to JSON key.
58
+ def self.attribute_map
59
+ {
60
+ :'code' => :'code',
61
+ :'param' => :'param',
62
+ :'_in' => :'in',
63
+ :'did_you_mean' => :'did_you_mean',
64
+ :'valid' => :'valid',
65
+ :'message' => :'message'
66
+ }
67
+ end
68
+
69
+ # Returns attribute mapping this model knows about
70
+ def self.acceptable_attribute_map
71
+ attribute_map
72
+ end
73
+
74
+ # Returns all the JSON keys this model knows about
75
+ def self.acceptable_attributes
76
+ acceptable_attribute_map.values
77
+ end
78
+
79
+ # Attribute type mapping.
80
+ def self.openapi_types
81
+ {
82
+ :'code' => :'String',
83
+ :'param' => :'String',
84
+ :'_in' => :'String',
85
+ :'did_you_mean' => :'String',
86
+ :'valid' => :'Array<String>',
87
+ :'message' => :'String'
88
+ }
89
+ end
90
+
91
+ # List of attributes with nullable: true
92
+ def self.openapi_nullable
93
+ Set.new([
94
+ ])
95
+ end
96
+
97
+ # Returns attribute type mapping
98
+ def self.acceptable_openapi_types
99
+ openapi_types
100
+ end
101
+
102
+ # Returns the nullable attributes
103
+ def self.acceptable_openapi_nullable
104
+ openapi_nullable
105
+ end
106
+
107
+ # Initializes the object
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ def initialize(attributes = {})
110
+ if (!attributes.is_a?(Hash))
111
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hermoso::Warning` initialize method"
112
+ end
113
+
114
+ # check to see if the attribute exists and convert string to symbol for hash key
115
+ acceptable_attribute_map = self.class.acceptable_attribute_map
116
+ attributes = attributes.each_with_object({}) { |(k, v), h|
117
+ if (!acceptable_attribute_map.key?(k.to_sym))
118
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hermoso::Warning`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
119
+ end
120
+ h[k.to_sym] = v
121
+ }
122
+
123
+ if attributes.key?(:'code')
124
+ self.code = attributes[:'code']
125
+ end
126
+
127
+ if attributes.key?(:'param')
128
+ self.param = attributes[:'param']
129
+ end
130
+
131
+ if attributes.key?(:'_in')
132
+ self._in = attributes[:'_in']
133
+ end
134
+
135
+ if attributes.key?(:'did_you_mean')
136
+ self.did_you_mean = attributes[:'did_you_mean']
137
+ end
138
+
139
+ if attributes.key?(:'valid')
140
+ if (value = attributes[:'valid']).is_a?(Array)
141
+ self.valid = value
142
+ end
143
+ end
144
+
145
+ if attributes.key?(:'message')
146
+ self.message = attributes[:'message']
147
+ end
148
+ end
149
+
150
+ # Show invalid properties with the reasons. Usually used together with valid?
151
+ # @return Array for valid properties with the reasons
152
+ def list_invalid_properties
153
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
154
+ invalid_properties = Array.new
155
+ invalid_properties
156
+ end
157
+
158
+ # Check to see if the all the properties in the model are valid
159
+ # @return true if the model is valid
160
+ def valid?
161
+ warn '[DEPRECATED] the `valid?` method is obsolete'
162
+ _in_validator = EnumAttributeValidator.new('String', ["query", "body", "unknown_default_open_api"])
163
+ return false unless _in_validator.valid?(@_in)
164
+ true
165
+ end
166
+
167
+ # Custom attribute writer method checking allowed values (enum).
168
+ # @param [Object] _in Object to be assigned
169
+ def _in=(_in)
170
+ validator = EnumAttributeValidator.new('String', ["query", "body", "unknown_default_open_api"])
171
+ _in = 'unknown_default_open_api' unless validator.valid?(_in)
172
+ @_in = _in
173
+ end
174
+
175
+ # Checks equality by comparing each attribute.
176
+ # @param [Object] Object to be compared
177
+ def ==(o)
178
+ return true if self.equal?(o)
179
+ self.class == o.class &&
180
+ code == o.code &&
181
+ param == o.param &&
182
+ _in == o._in &&
183
+ did_you_mean == o.did_you_mean &&
184
+ valid == o.valid &&
185
+ message == o.message
186
+ end
187
+
188
+ # @see the `==` method
189
+ # @param [Object] Object to be compared
190
+ def eql?(o)
191
+ self == o
192
+ end
193
+
194
+ # Calculates hash code according to all attributes.
195
+ # @return [Integer] Hash code
196
+ def hash
197
+ [code, param, _in, did_you_mean, valid, message].hash
198
+ end
199
+
200
+ # Builds the object from hash
201
+ # @param [Hash] attributes Model attributes in the form of hash
202
+ # @return [Object] Returns the model itself
203
+ def self.build_from_hash(attributes)
204
+ return nil unless attributes.is_a?(Hash)
205
+ attributes = attributes.transform_keys(&:to_sym)
206
+ # include attributes inherited from allOf parents (the nearest declaration wins)
207
+ map = acceptable_attribute_map
208
+ transformed_hash = {}
209
+ acceptable_openapi_types.each_pair do |key, type|
210
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
211
+ transformed_hash["#{key}"] = nil
212
+ elsif type =~ /\AArray<(.*)>/i
213
+ # check to ensure the input is an array given that the attribute
214
+ # is documented as an array but the input is not
215
+ if attributes[map[key]].is_a?(Array)
216
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
217
+ end
218
+ elsif !attributes[map[key]].nil?
219
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
220
+ end
221
+ end
222
+ new(transformed_hash)
223
+ end
224
+
225
+ # Returns the object in the form of hash
226
+ # @return [Hash] Returns the object in the form of hash
227
+ def to_hash
228
+ hash = {}
229
+ # include attributes inherited from allOf parents (the nearest declaration wins)
230
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
231
+ value = self.send(attr)
232
+ if value.nil?
233
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
234
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
235
+ end
236
+
237
+ hash[param] = _to_hash(value)
238
+ end
239
+ hash
240
+ end
241
+
242
+ end
243
+
244
+ end
@@ -0,0 +1,8 @@
1
+ # Generated by tools/sdk-generate.mjs. Do not edit.
2
+
3
+ module Hermoso
4
+ # sha256 of the OpenAPI document this client was generated from (sdks/openapi.json).
5
+ SPEC_SHA256 = "83bc8541970ad66298f799aec8fd23af4527ae09a91a0e334685f1d2ab3d4c6d"
6
+ # The dated /v1 contract version that document describes.
7
+ CONTRACT_VERSION = "2026-08-26"
8
+ end
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Hermoso API
3
+
4
+ #The Hermoso public API. Guide: https://hermoso.ai/docs/api/ · OpenAPI: https://app.hermoso.ai/openapi.json
5
+
6
+ The version of the OpenAPI document: 2026-08-26
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.27.0
10
+
11
+ =end
12
+
13
+ module Hermoso
14
+ VERSION = '0.1.4'
15
+ end
data/lib/hermoso.rb ADDED
@@ -0,0 +1,174 @@
1
+ =begin
2
+ #Hermoso API
3
+
4
+ #The Hermoso public API. Guide: https://hermoso.ai/docs/api/ · OpenAPI: https://app.hermoso.ai/openapi.json
5
+
6
+ The version of the OpenAPI document: 2026-08-26
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.27.0
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'hermoso/api_client'
15
+ require 'hermoso/api_error'
16
+ require 'hermoso/api_model_base'
17
+ require 'hermoso/version'
18
+ require 'hermoso/configuration'
19
+
20
+ # Models
21
+ require 'hermoso/models/asset'
22
+ require 'hermoso/models/asset_list'
23
+ require 'hermoso/models/best_time'
24
+ require 'hermoso/models/best_time_slots_inner'
25
+ require 'hermoso/models/brand'
26
+ require 'hermoso/models/brand_list'
27
+ require 'hermoso/models/campaign_profit'
28
+ require 'hermoso/models/campaign_results'
29
+ require 'hermoso/models/campaign_results_upload'
30
+ require 'hermoso/models/campaign_results_upload_rows_inner'
31
+ require 'hermoso/models/channel'
32
+ require 'hermoso/models/channel_carousel'
33
+ require 'hermoso/models/channel_list'
34
+ require 'hermoso/models/clone_quote'
35
+ require 'hermoso/models/clone_quote_request'
36
+ require 'hermoso/models/clone_quote_step'
37
+ require 'hermoso/models/connect_link'
38
+ require 'hermoso/models/connect_link_account'
39
+ require 'hermoso/models/connect_link_create'
40
+ require 'hermoso/models/connect_link_error'
41
+ require 'hermoso/models/connect_redirects'
42
+ require 'hermoso/models/connect_redirects_set'
43
+ require 'hermoso/models/connection'
44
+ require 'hermoso/models/connection_accounts_inner'
45
+ require 'hermoso/models/connection_deleted'
46
+ require 'hermoso/models/connection_list'
47
+ require 'hermoso/models/contact_email'
48
+ require 'hermoso/models/contact_email_resend'
49
+ require 'hermoso/models/content_decay'
50
+ require 'hermoso/models/content_decay_buckets_inner'
51
+ require 'hermoso/models/conversion_destination_create'
52
+ require 'hermoso/models/conversion_destination_list'
53
+ require 'hermoso/models/conversion_destination_result'
54
+ require 'hermoso/models/conversion_event_list'
55
+ require 'hermoso/models/conversion_event_update'
56
+ require 'hermoso/models/conversion_events_send'
57
+ require 'hermoso/models/conversion_events_send_events_inner'
58
+ require 'hermoso/models/conversion_insights'
59
+ require 'hermoso/models/conversion_send_result'
60
+ require 'hermoso/models/conversion_send_result_destinations_inner'
61
+ require 'hermoso/models/credits'
62
+ require 'hermoso/models/credits_limits'
63
+ require 'hermoso/models/credits_limits_brands_inner'
64
+ require 'hermoso/models/credits_limits_brands_inner_members_inner'
65
+ require 'hermoso/models/deleted'
66
+ require 'hermoso/models/edit'
67
+ require 'hermoso/models/edit_create'
68
+ require 'hermoso/models/edit_preview'
69
+ require 'hermoso/models/edit_quote'
70
+ require 'hermoso/models/error'
71
+ require 'hermoso/models/error_error'
72
+ require 'hermoso/models/error_error_unknown_arguments_inner'
73
+ require 'hermoso/models/follower_history'
74
+ require 'hermoso/models/follower_history_accounts_inner'
75
+ require 'hermoso/models/follower_history_accounts_inner_points_inner'
76
+ require 'hermoso/models/follower_history_date_range'
77
+ require 'hermoso/models/generation_create'
78
+ require 'hermoso/models/generation_quote'
79
+ require 'hermoso/models/hermoso_tag'
80
+ require 'hermoso/models/hermoso_tag_audience_action'
81
+ require 'hermoso/models/hermoso_tag_audiences'
82
+ require 'hermoso/models/hermoso_tag_events'
83
+ require 'hermoso/models/hermoso_tag_events_send'
84
+ require 'hermoso/models/hermoso_tag_events_sent'
85
+ require 'hermoso/models/hermoso_tag_install'
86
+ require 'hermoso/models/hermoso_tag_install_result'
87
+ require 'hermoso/models/hermoso_tag_report'
88
+ require 'hermoso/models/hermoso_tag_tag'
89
+ require 'hermoso/models/hermoso_tag_update'
90
+ require 'hermoso/models/inbox_stats'
91
+ require 'hermoso/models/job'
92
+ require 'hermoso/models/job_cancel'
93
+ require 'hermoso/models/job_list'
94
+ require 'hermoso/models/media'
95
+ require 'hermoso/models/model'
96
+ require 'hermoso/models/model_list'
97
+ require 'hermoso/models/post'
98
+ require 'hermoso/models/post_create'
99
+ require 'hermoso/models/post_create_media_inner'
100
+ require 'hermoso/models/post_create_media_inner_one_of'
101
+ require 'hermoso/models/post_list'
102
+ require 'hermoso/models/post_media_inner'
103
+ require 'hermoso/models/post_results_inner'
104
+ require 'hermoso/models/post_results_inner_first_comment'
105
+ require 'hermoso/models/posting_frequency'
106
+ require 'hermoso/models/posting_frequency_frequency_inner'
107
+ require 'hermoso/models/profit_settings'
108
+ require 'hermoso/models/recast'
109
+ require 'hermoso/models/recast_create'
110
+ require 'hermoso/models/recast_person'
111
+ require 'hermoso/models/recast_quote'
112
+ require 'hermoso/models/recast_step'
113
+ require 'hermoso/models/recast_subject'
114
+ require 'hermoso/models/recast_voice'
115
+ require 'hermoso/models/recast_window'
116
+ require 'hermoso/models/signup'
117
+ require 'hermoso/models/signup_claim'
118
+ require 'hermoso/models/signup_create'
119
+ require 'hermoso/models/tool'
120
+ require 'hermoso/models/tool_invoke'
121
+ require 'hermoso/models/tool_job'
122
+ require 'hermoso/models/tool_list'
123
+ require 'hermoso/models/tool_list_areas_inner'
124
+ require 'hermoso/models/tool_list_search'
125
+ require 'hermoso/models/tool_result'
126
+ require 'hermoso/models/tool_result_images_inner'
127
+ require 'hermoso/models/warning'
128
+
129
+ # APIs
130
+ require 'hermoso/api/account_api'
131
+ require 'hermoso/api/analytics_api'
132
+ require 'hermoso/api/brands_api'
133
+ require 'hermoso/api/campaign_profit_api'
134
+ require 'hermoso/api/campaign_results_api'
135
+ require 'hermoso/api/channels_api'
136
+ require 'hermoso/api/clones_api'
137
+ require 'hermoso/api/connect_links_api'
138
+ require 'hermoso/api/connect_redirects_api'
139
+ require 'hermoso/api/connections_api'
140
+ require 'hermoso/api/credits_api'
141
+ require 'hermoso/api/edits_api'
142
+ require 'hermoso/api/events_api'
143
+ require 'hermoso/api/generations_api'
144
+ require 'hermoso/api/jobs_api'
145
+ require 'hermoso/api/library_api'
146
+ require 'hermoso/api/media_api'
147
+ require 'hermoso/api/models_api'
148
+ require 'hermoso/api/posts_api'
149
+ require 'hermoso/api/recasts_api'
150
+ require 'hermoso/api/signup_api'
151
+ require 'hermoso/api/tag_api'
152
+ require 'hermoso/api/tools_api'
153
+
154
+ module Hermoso
155
+ class << self
156
+ # Customize default settings for the SDK using block.
157
+ # Hermoso.configure do |config|
158
+ # config.username = "xxx"
159
+ # config.password = "xxx"
160
+ # end
161
+ # If no block given, return the default Configuration object.
162
+ def configure
163
+ if block_given?
164
+ yield(Configuration.default)
165
+ else
166
+ Configuration.default
167
+ end
168
+ end
169
+ end
170
+ end
171
+
172
+ # The hand-written layer (tools/sdk-generate.mjs copies it in from sdks/ruby/overlay).
173
+ require 'hermoso/spec'
174
+ require 'hermoso/helpers'