hermoso 0.1.2__tar.gz

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 (350) hide show
  1. hermoso-0.1.2/.gitignore +6 -0
  2. hermoso-0.1.2/LICENSE +21 -0
  3. hermoso-0.1.2/PKG-INFO +108 -0
  4. hermoso-0.1.2/README.md +85 -0
  5. hermoso-0.1.2/hermoso/__init__.py +30 -0
  6. hermoso-0.1.2/hermoso/_helpers.py +130 -0
  7. hermoso-0.1.2/hermoso/_spec.py +5 -0
  8. hermoso-0.1.2/hermoso/api/__init__.py +1 -0
  9. hermoso-0.1.2/hermoso/api/account/__init__.py +1 -0
  10. hermoso-0.1.2/hermoso/api/account/get_contact_email.py +216 -0
  11. hermoso-0.1.2/hermoso/api/account/resend_email_verification.py +222 -0
  12. hermoso-0.1.2/hermoso/api/analytics/__init__.py +1 -0
  13. hermoso-0.1.2/hermoso/api/analytics/get_best_time.py +288 -0
  14. hermoso-0.1.2/hermoso/api/analytics/get_content_decay.py +250 -0
  15. hermoso-0.1.2/hermoso/api/analytics/get_follower_history.py +280 -0
  16. hermoso-0.1.2/hermoso/api/analytics/get_inbox_stats.py +360 -0
  17. hermoso-0.1.2/hermoso/api/analytics/get_posting_frequency.py +269 -0
  18. hermoso-0.1.2/hermoso/api/brands/__init__.py +1 -0
  19. hermoso-0.1.2/hermoso/api/brands/list_brands.py +204 -0
  20. hermoso-0.1.2/hermoso/api/campaign_profit/__init__.py +1 -0
  21. hermoso-0.1.2/hermoso/api/campaign_profit/get_campaign_profit.py +310 -0
  22. hermoso-0.1.2/hermoso/api/campaign_results/__init__.py +1 -0
  23. hermoso-0.1.2/hermoso/api/campaign_results/get_profit_settings.py +180 -0
  24. hermoso-0.1.2/hermoso/api/campaign_results/list_campaign_results.py +215 -0
  25. hermoso-0.1.2/hermoso/api/campaign_results/set_profit_settings.py +213 -0
  26. hermoso-0.1.2/hermoso/api/campaign_results/upload_campaign_results.py +230 -0
  27. hermoso-0.1.2/hermoso/api/channels/__init__.py +1 -0
  28. hermoso-0.1.2/hermoso/api/channels/list_channels.py +200 -0
  29. hermoso-0.1.2/hermoso/api/clones/__init__.py +1 -0
  30. hermoso-0.1.2/hermoso/api/clones/quote_clone.py +230 -0
  31. hermoso-0.1.2/hermoso/api/connect_links/__init__.py +1 -0
  32. hermoso-0.1.2/hermoso/api/connect_links/create_connect_link.py +290 -0
  33. hermoso-0.1.2/hermoso/api/connect_links/get_connect_link.py +208 -0
  34. hermoso-0.1.2/hermoso/api/connect_links/revoke_connect_link.py +208 -0
  35. hermoso-0.1.2/hermoso/api/connect_redirects/__init__.py +1 -0
  36. hermoso-0.1.2/hermoso/api/connect_redirects/get_connect_redirects.py +196 -0
  37. hermoso-0.1.2/hermoso/api/connect_redirects/set_connect_redirects.py +214 -0
  38. hermoso-0.1.2/hermoso/api/connections/__init__.py +1 -0
  39. hermoso-0.1.2/hermoso/api/connections/delete_connection.py +236 -0
  40. hermoso-0.1.2/hermoso/api/connections/list_connections.py +196 -0
  41. hermoso-0.1.2/hermoso/api/credits_/__init__.py +1 -0
  42. hermoso-0.1.2/hermoso/api/credits_/get_credits.py +216 -0
  43. hermoso-0.1.2/hermoso/api/edits/__init__.py +1 -0
  44. hermoso-0.1.2/hermoso/api/edits/create_edit.py +328 -0
  45. hermoso-0.1.2/hermoso/api/events/__init__.py +1 -0
  46. hermoso-0.1.2/hermoso/api/events/create_conversion_destination.py +218 -0
  47. hermoso-0.1.2/hermoso/api/events/delete_conversion_destination.py +204 -0
  48. hermoso-0.1.2/hermoso/api/events/get_conversion_accuracy.py +227 -0
  49. hermoso-0.1.2/hermoso/api/events/get_conversion_event.py +196 -0
  50. hermoso-0.1.2/hermoso/api/events/get_conversion_journey.py +276 -0
  51. hermoso-0.1.2/hermoso/api/events/get_conversion_ltv.py +227 -0
  52. hermoso-0.1.2/hermoso/api/events/list_conversion_customers.py +242 -0
  53. hermoso-0.1.2/hermoso/api/events/list_conversion_destinations.py +192 -0
  54. hermoso-0.1.2/hermoso/api/events/list_conversion_events.py +332 -0
  55. hermoso-0.1.2/hermoso/api/events/list_conversion_paths.py +242 -0
  56. hermoso-0.1.2/hermoso/api/events/retract_conversion_event.py +228 -0
  57. hermoso-0.1.2/hermoso/api/events/send_conversion_events.py +230 -0
  58. hermoso-0.1.2/hermoso/api/events/update_conversion_event.py +226 -0
  59. hermoso-0.1.2/hermoso/api/generations/__init__.py +1 -0
  60. hermoso-0.1.2/hermoso/api/generations/create_generation.py +283 -0
  61. hermoso-0.1.2/hermoso/api/generations/quote_generation.py +222 -0
  62. hermoso-0.1.2/hermoso/api/jobs/__init__.py +1 -0
  63. hermoso-0.1.2/hermoso/api/jobs/cancel_job.py +225 -0
  64. hermoso-0.1.2/hermoso/api/jobs/get_job.py +216 -0
  65. hermoso-0.1.2/hermoso/api/jobs/list_jobs.py +265 -0
  66. hermoso-0.1.2/hermoso/api/library/__init__.py +1 -0
  67. hermoso-0.1.2/hermoso/api/library/list_library.py +227 -0
  68. hermoso-0.1.2/hermoso/api/media/__init__.py +1 -0
  69. hermoso-0.1.2/hermoso/api/media/create_media.py +262 -0
  70. hermoso-0.1.2/hermoso/api/media/get_media_content.py +221 -0
  71. hermoso-0.1.2/hermoso/api/models/__init__.py +1 -0
  72. hermoso-0.1.2/hermoso/api/models/list_models.py +239 -0
  73. hermoso-0.1.2/hermoso/api/posts/__init__.py +1 -0
  74. hermoso-0.1.2/hermoso/api/posts/create_post.py +242 -0
  75. hermoso-0.1.2/hermoso/api/posts/delete_post.py +208 -0
  76. hermoso-0.1.2/hermoso/api/posts/get_post.py +204 -0
  77. hermoso-0.1.2/hermoso/api/posts/list_posts.py +253 -0
  78. hermoso-0.1.2/hermoso/api/posts/update_post.py +230 -0
  79. hermoso-0.1.2/hermoso/api/recasts/__init__.py +1 -0
  80. hermoso-0.1.2/hermoso/api/recasts/create_recast.py +341 -0
  81. hermoso-0.1.2/hermoso/api/signup/__init__.py +1 -0
  82. hermoso-0.1.2/hermoso/api/signup/claim_signup.py +233 -0
  83. hermoso-0.1.2/hermoso/api/signup/create_signup.py +233 -0
  84. hermoso-0.1.2/hermoso/api/tag/__init__.py +1 -0
  85. hermoso-0.1.2/hermoso/api/tag/get_tag.py +208 -0
  86. hermoso-0.1.2/hermoso/api/tag/get_tag_report.py +276 -0
  87. hermoso-0.1.2/hermoso/api/tag/install_tag.py +218 -0
  88. hermoso-0.1.2/hermoso/api/tag/list_tag_audiences.py +192 -0
  89. hermoso-0.1.2/hermoso/api/tag/list_tag_events.py +242 -0
  90. hermoso-0.1.2/hermoso/api/tag/send_tag_events.py +222 -0
  91. hermoso-0.1.2/hermoso/api/tag/tag_audiences.py +230 -0
  92. hermoso-0.1.2/hermoso/api/tag/update_tag.py +238 -0
  93. hermoso-0.1.2/hermoso/api/tools/__init__.py +1 -0
  94. hermoso-0.1.2/hermoso/api/tools/call_tool.py +391 -0
  95. hermoso-0.1.2/hermoso/api/tools/get_tool.py +216 -0
  96. hermoso-0.1.2/hermoso/api/tools/list_tools.py +328 -0
  97. hermoso-0.1.2/hermoso/client.py +280 -0
  98. hermoso-0.1.2/hermoso/errors.py +16 -0
  99. hermoso-0.1.2/hermoso/models/__init__.py +525 -0
  100. hermoso-0.1.2/hermoso/models/asset.py +150 -0
  101. hermoso-0.1.2/hermoso/models/asset_list.py +97 -0
  102. hermoso-0.1.2/hermoso/models/asset_list_object.py +8 -0
  103. hermoso-0.1.2/hermoso/models/asset_object.py +8 -0
  104. hermoso-0.1.2/hermoso/models/best_time.py +165 -0
  105. hermoso-0.1.2/hermoso/models/best_time_channels_item.py +45 -0
  106. hermoso-0.1.2/hermoso/models/best_time_object.py +8 -0
  107. hermoso-0.1.2/hermoso/models/best_time_overall.py +45 -0
  108. hermoso-0.1.2/hermoso/models/best_time_slots_item.py +131 -0
  109. hermoso-0.1.2/hermoso/models/brand.py +179 -0
  110. hermoso-0.1.2/hermoso/models/brand_headers.py +47 -0
  111. hermoso-0.1.2/hermoso/models/brand_list.py +97 -0
  112. hermoso-0.1.2/hermoso/models/brand_list_object.py +8 -0
  113. hermoso-0.1.2/hermoso/models/brand_object.py +8 -0
  114. hermoso-0.1.2/hermoso/models/campaign_profit.py +183 -0
  115. hermoso-0.1.2/hermoso/models/campaign_profit_object.py +8 -0
  116. hermoso-0.1.2/hermoso/models/campaign_profit_rows_item.py +45 -0
  117. hermoso-0.1.2/hermoso/models/campaign_profit_totals_item.py +45 -0
  118. hermoso-0.1.2/hermoso/models/campaign_profit_unreadable_item.py +45 -0
  119. hermoso-0.1.2/hermoso/models/campaign_results.py +151 -0
  120. hermoso-0.1.2/hermoso/models/campaign_results_object.py +8 -0
  121. hermoso-0.1.2/hermoso/models/campaign_results_rows_item.py +45 -0
  122. hermoso-0.1.2/hermoso/models/campaign_results_totals.py +45 -0
  123. hermoso-0.1.2/hermoso/models/campaign_results_upload.py +91 -0
  124. hermoso-0.1.2/hermoso/models/campaign_results_upload_rows_item.py +136 -0
  125. hermoso-0.1.2/hermoso/models/campaign_results_upload_rows_item_values.py +45 -0
  126. hermoso-0.1.2/hermoso/models/channel.py +302 -0
  127. hermoso-0.1.2/hermoso/models/channel_carousel_type_0.py +103 -0
  128. hermoso-0.1.2/hermoso/models/channel_list.py +97 -0
  129. hermoso-0.1.2/hermoso/models/channel_list_object.py +8 -0
  130. hermoso-0.1.2/hermoso/models/channel_object.py +8 -0
  131. hermoso-0.1.2/hermoso/models/clone_quote.py +157 -0
  132. hermoso-0.1.2/hermoso/models/clone_quote_object.py +8 -0
  133. hermoso-0.1.2/hermoso/models/clone_quote_request.py +74 -0
  134. hermoso-0.1.2/hermoso/models/clone_quote_request_type.py +9 -0
  135. hermoso-0.1.2/hermoso/models/clone_quote_step.py +123 -0
  136. hermoso-0.1.2/hermoso/models/connect_link.py +322 -0
  137. hermoso-0.1.2/hermoso/models/connect_link_account_type_0.py +116 -0
  138. hermoso-0.1.2/hermoso/models/connect_link_create.py +95 -0
  139. hermoso-0.1.2/hermoso/models/connect_link_error_type_0.py +71 -0
  140. hermoso-0.1.2/hermoso/models/connect_link_object.py +8 -0
  141. hermoso-0.1.2/hermoso/models/connect_link_status.py +14 -0
  142. hermoso-0.1.2/hermoso/models/connect_redirects.py +83 -0
  143. hermoso-0.1.2/hermoso/models/connect_redirects_object.py +8 -0
  144. hermoso-0.1.2/hermoso/models/connect_redirects_set.py +65 -0
  145. hermoso-0.1.2/hermoso/models/connection.py +156 -0
  146. hermoso-0.1.2/hermoso/models/connection_accounts_item.py +104 -0
  147. hermoso-0.1.2/hermoso/models/connection_deleted.py +119 -0
  148. hermoso-0.1.2/hermoso/models/connection_deleted_object.py +8 -0
  149. hermoso-0.1.2/hermoso/models/connection_list.py +97 -0
  150. hermoso-0.1.2/hermoso/models/connection_list_object.py +8 -0
  151. hermoso-0.1.2/hermoso/models/connection_object.py +8 -0
  152. hermoso-0.1.2/hermoso/models/contact_email.py +114 -0
  153. hermoso-0.1.2/hermoso/models/contact_email_resend.py +77 -0
  154. hermoso-0.1.2/hermoso/models/content_decay.py +129 -0
  155. hermoso-0.1.2/hermoso/models/content_decay_buckets_item.py +102 -0
  156. hermoso-0.1.2/hermoso/models/content_decay_channels_item.py +45 -0
  157. hermoso-0.1.2/hermoso/models/content_decay_object.py +8 -0
  158. hermoso-0.1.2/hermoso/models/conversion_destination_create.py +219 -0
  159. hermoso-0.1.2/hermoso/models/conversion_destination_create_event_map.py +45 -0
  160. hermoso-0.1.2/hermoso/models/conversion_destination_list.py +139 -0
  161. hermoso-0.1.2/hermoso/models/conversion_destination_list_data_item.py +45 -0
  162. hermoso-0.1.2/hermoso/models/conversion_destination_list_object.py +8 -0
  163. hermoso-0.1.2/hermoso/models/conversion_destination_list_platforms_item.py +45 -0
  164. hermoso-0.1.2/hermoso/models/conversion_destination_result.py +116 -0
  165. hermoso-0.1.2/hermoso/models/conversion_destination_result_destination.py +45 -0
  166. hermoso-0.1.2/hermoso/models/conversion_destination_result_object.py +8 -0
  167. hermoso-0.1.2/hermoso/models/conversion_event_list.py +136 -0
  168. hermoso-0.1.2/hermoso/models/conversion_event_list_data_item.py +45 -0
  169. hermoso-0.1.2/hermoso/models/conversion_event_list_object.py +8 -0
  170. hermoso-0.1.2/hermoso/models/conversion_event_update.py +82 -0
  171. hermoso-0.1.2/hermoso/models/conversion_events_send.py +139 -0
  172. hermoso-0.1.2/hermoso/models/conversion_events_send_events_item.py +237 -0
  173. hermoso-0.1.2/hermoso/models/conversion_events_send_events_item_campaign.py +45 -0
  174. hermoso-0.1.2/hermoso/models/conversion_events_send_events_item_consent.py +45 -0
  175. hermoso-0.1.2/hermoso/models/conversion_events_send_events_item_items_item.py +45 -0
  176. hermoso-0.1.2/hermoso/models/conversion_events_send_events_item_user.py +51 -0
  177. hermoso-0.1.2/hermoso/models/conversion_insights.py +218 -0
  178. hermoso-0.1.2/hermoso/models/conversion_insights_cohorts_item.py +45 -0
  179. hermoso-0.1.2/hermoso/models/conversion_insights_customers_item.py +45 -0
  180. hermoso-0.1.2/hermoso/models/conversion_insights_destinations_item.py +45 -0
  181. hermoso-0.1.2/hermoso/models/conversion_insights_journey.py +45 -0
  182. hermoso-0.1.2/hermoso/models/conversion_insights_object.py +8 -0
  183. hermoso-0.1.2/hermoso/models/conversion_insights_paths_item.py +45 -0
  184. hermoso-0.1.2/hermoso/models/conversion_send_result.py +169 -0
  185. hermoso-0.1.2/hermoso/models/conversion_send_result_destinations_item.py +233 -0
  186. hermoso-0.1.2/hermoso/models/conversion_send_result_destinations_item_failures_item.py +45 -0
  187. hermoso-0.1.2/hermoso/models/conversion_send_result_destinations_item_mode.py +11 -0
  188. hermoso-0.1.2/hermoso/models/conversion_send_result_destinations_item_skipped_item.py +45 -0
  189. hermoso-0.1.2/hermoso/models/conversion_send_result_object.py +8 -0
  190. hermoso-0.1.2/hermoso/models/credits_.py +161 -0
  191. hermoso-0.1.2/hermoso/models/credits_limits_type_0.py +131 -0
  192. hermoso-0.1.2/hermoso/models/credits_limits_type_0_brands_item.py +175 -0
  193. hermoso-0.1.2/hermoso/models/credits_limits_type_0_brands_item_members_item.py +133 -0
  194. hermoso-0.1.2/hermoso/models/credits_limits_type_0_timezone.py +8 -0
  195. hermoso-0.1.2/hermoso/models/credits_object.py +8 -0
  196. hermoso-0.1.2/hermoso/models/deleted.py +89 -0
  197. hermoso-0.1.2/hermoso/models/deleted_object.py +8 -0
  198. hermoso-0.1.2/hermoso/models/edit.py +225 -0
  199. hermoso-0.1.2/hermoso/models/edit_create.py +161 -0
  200. hermoso-0.1.2/hermoso/models/edit_create_lighting.py +10 -0
  201. hermoso-0.1.2/hermoso/models/edit_mode.py +9 -0
  202. hermoso-0.1.2/hermoso/models/edit_object.py +8 -0
  203. hermoso-0.1.2/hermoso/models/edit_preview_type_0.py +156 -0
  204. hermoso-0.1.2/hermoso/models/edit_quote.py +154 -0
  205. hermoso-0.1.2/hermoso/models/edit_quote_object.py +8 -0
  206. hermoso-0.1.2/hermoso/models/error.py +115 -0
  207. hermoso-0.1.2/hermoso/models/error_error.py +183 -0
  208. hermoso-0.1.2/hermoso/models/error_error_type.py +14 -0
  209. hermoso-0.1.2/hermoso/models/error_error_unknown_arguments_item.py +84 -0
  210. hermoso-0.1.2/hermoso/models/follower_history.py +144 -0
  211. hermoso-0.1.2/hermoso/models/follower_history_accounts_item.py +176 -0
  212. hermoso-0.1.2/hermoso/models/follower_history_accounts_item_points_item.py +93 -0
  213. hermoso-0.1.2/hermoso/models/follower_history_date_range.py +71 -0
  214. hermoso-0.1.2/hermoso/models/follower_history_object.py +8 -0
  215. hermoso-0.1.2/hermoso/models/generation_create.py +219 -0
  216. hermoso-0.1.2/hermoso/models/generation_create_background.py +8 -0
  217. hermoso-0.1.2/hermoso/models/generation_create_complexity.py +10 -0
  218. hermoso-0.1.2/hermoso/models/generation_create_format.py +10 -0
  219. hermoso-0.1.2/hermoso/models/generation_create_type.py +9 -0
  220. hermoso-0.1.2/hermoso/models/generation_quote.py +196 -0
  221. hermoso-0.1.2/hermoso/models/generation_quote_object.py +8 -0
  222. hermoso-0.1.2/hermoso/models/hermoso_tag.py +128 -0
  223. hermoso-0.1.2/hermoso/models/hermoso_tag_audience_action.py +205 -0
  224. hermoso-0.1.2/hermoso/models/hermoso_tag_audience_action_action.py +11 -0
  225. hermoso-0.1.2/hermoso/models/hermoso_tag_audience_action_platform.py +12 -0
  226. hermoso-0.1.2/hermoso/models/hermoso_tag_audiences.py +148 -0
  227. hermoso-0.1.2/hermoso/models/hermoso_tag_audiences_object.py +8 -0
  228. hermoso-0.1.2/hermoso/models/hermoso_tag_audiences_segment.py +45 -0
  229. hermoso-0.1.2/hermoso/models/hermoso_tag_audiences_segments_item.py +45 -0
  230. hermoso-0.1.2/hermoso/models/hermoso_tag_events.py +124 -0
  231. hermoso-0.1.2/hermoso/models/hermoso_tag_events_data_item.py +45 -0
  232. hermoso-0.1.2/hermoso/models/hermoso_tag_events_object.py +8 -0
  233. hermoso-0.1.2/hermoso/models/hermoso_tag_events_send.py +80 -0
  234. hermoso-0.1.2/hermoso/models/hermoso_tag_events_send_events_item.py +45 -0
  235. hermoso-0.1.2/hermoso/models/hermoso_tag_events_sent.py +121 -0
  236. hermoso-0.1.2/hermoso/models/hermoso_tag_events_sent_object.py +8 -0
  237. hermoso-0.1.2/hermoso/models/hermoso_tag_events_sent_refused_item.py +45 -0
  238. hermoso-0.1.2/hermoso/models/hermoso_tag_events_status.py +45 -0
  239. hermoso-0.1.2/hermoso/models/hermoso_tag_install.py +125 -0
  240. hermoso-0.1.2/hermoso/models/hermoso_tag_install_result.py +134 -0
  241. hermoso-0.1.2/hermoso/models/hermoso_tag_install_result_object.py +8 -0
  242. hermoso-0.1.2/hermoso/models/hermoso_tag_install_site.py +11 -0
  243. hermoso-0.1.2/hermoso/models/hermoso_tag_object.py +8 -0
  244. hermoso-0.1.2/hermoso/models/hermoso_tag_page.py +45 -0
  245. hermoso-0.1.2/hermoso/models/hermoso_tag_report.py +169 -0
  246. hermoso-0.1.2/hermoso/models/hermoso_tag_report_object.py +8 -0
  247. hermoso-0.1.2/hermoso/models/hermoso_tag_report_rows_item.py +45 -0
  248. hermoso-0.1.2/hermoso/models/hermoso_tag_report_status.py +45 -0
  249. hermoso-0.1.2/hermoso/models/hermoso_tag_report_totals.py +45 -0
  250. hermoso-0.1.2/hermoso/models/hermoso_tag_tag.py +143 -0
  251. hermoso-0.1.2/hermoso/models/hermoso_tag_tag_installs_item.py +45 -0
  252. hermoso-0.1.2/hermoso/models/hermoso_tag_tag_settings.py +45 -0
  253. hermoso-0.1.2/hermoso/models/hermoso_tag_tag_status.py +45 -0
  254. hermoso-0.1.2/hermoso/models/hermoso_tag_update.py +271 -0
  255. hermoso-0.1.2/hermoso/models/hermoso_tag_update_action.py +11 -0
  256. hermoso-0.1.2/hermoso/models/hermoso_tag_update_auto_track.py +45 -0
  257. hermoso-0.1.2/hermoso/models/hermoso_tag_update_consent_default.py +9 -0
  258. hermoso-0.1.2/hermoso/models/hermoso_tag_update_conversions.py +45 -0
  259. hermoso-0.1.2/hermoso/models/inbox_stats.py +293 -0
  260. hermoso-0.1.2/hermoso/models/inbox_stats_by_platform_item.py +45 -0
  261. hermoso-0.1.2/hermoso/models/inbox_stats_conversations.py +45 -0
  262. hermoso-0.1.2/hermoso/models/inbox_stats_coverage.py +45 -0
  263. hermoso-0.1.2/hermoso/models/inbox_stats_heatmap.py +45 -0
  264. hermoso-0.1.2/hermoso/models/inbox_stats_object.py +8 -0
  265. hermoso-0.1.2/hermoso/models/inbox_stats_response_time.py +45 -0
  266. hermoso-0.1.2/hermoso/models/inbox_stats_summary.py +45 -0
  267. hermoso-0.1.2/hermoso/models/inbox_stats_timeseries_item.py +45 -0
  268. hermoso-0.1.2/hermoso/models/inbox_stats_top_accounts_item.py +45 -0
  269. hermoso-0.1.2/hermoso/models/inbox_stats_waiting.py +45 -0
  270. hermoso-0.1.2/hermoso/models/job.py +358 -0
  271. hermoso-0.1.2/hermoso/models/job_cancel.py +113 -0
  272. hermoso-0.1.2/hermoso/models/job_cancel_object.py +8 -0
  273. hermoso-0.1.2/hermoso/models/job_list.py +136 -0
  274. hermoso-0.1.2/hermoso/models/job_list_object.py +8 -0
  275. hermoso-0.1.2/hermoso/models/job_object.py +8 -0
  276. hermoso-0.1.2/hermoso/models/job_result_type_0.py +50 -0
  277. hermoso-0.1.2/hermoso/models/media.py +119 -0
  278. hermoso-0.1.2/hermoso/models/media_object.py +8 -0
  279. hermoso-0.1.2/hermoso/models/model.py +322 -0
  280. hermoso-0.1.2/hermoso/models/model_credits_by_duration_type_0.py +45 -0
  281. hermoso-0.1.2/hermoso/models/model_credits_by_size_type_0.py +45 -0
  282. hermoso-0.1.2/hermoso/models/model_list.py +97 -0
  283. hermoso-0.1.2/hermoso/models/model_list_object.py +8 -0
  284. hermoso-0.1.2/hermoso/models/model_object.py +8 -0
  285. hermoso-0.1.2/hermoso/models/post.py +447 -0
  286. hermoso-0.1.2/hermoso/models/post_captions_by_channel_type_0.py +45 -0
  287. hermoso-0.1.2/hermoso/models/post_create.py +283 -0
  288. hermoso-0.1.2/hermoso/models/post_create_captions_by_channel.py +47 -0
  289. hermoso-0.1.2/hermoso/models/post_create_media_item_type_1.py +80 -0
  290. hermoso-0.1.2/hermoso/models/post_create_media_item_type_1_type.py +9 -0
  291. hermoso-0.1.2/hermoso/models/post_create_options.py +51 -0
  292. hermoso-0.1.2/hermoso/models/post_create_targets.py +50 -0
  293. hermoso-0.1.2/hermoso/models/post_create_visibility_by_channel.py +45 -0
  294. hermoso-0.1.2/hermoso/models/post_list.py +127 -0
  295. hermoso-0.1.2/hermoso/models/post_list_object.py +8 -0
  296. hermoso-0.1.2/hermoso/models/post_media_item.py +71 -0
  297. hermoso-0.1.2/hermoso/models/post_object.py +8 -0
  298. hermoso-0.1.2/hermoso/models/post_options.py +45 -0
  299. hermoso-0.1.2/hermoso/models/post_results_type_0_item.py +160 -0
  300. hermoso-0.1.2/hermoso/models/post_results_type_0_item_first_comment.py +116 -0
  301. hermoso-0.1.2/hermoso/models/post_targets.py +50 -0
  302. hermoso-0.1.2/hermoso/models/post_update.py +47 -0
  303. hermoso-0.1.2/hermoso/models/post_visibility_by_channel_type_0.py +45 -0
  304. hermoso-0.1.2/hermoso/models/posting_frequency.py +155 -0
  305. hermoso-0.1.2/hermoso/models/posting_frequency_channels_item.py +45 -0
  306. hermoso-0.1.2/hermoso/models/posting_frequency_frequency_item.py +146 -0
  307. hermoso-0.1.2/hermoso/models/posting_frequency_object.py +8 -0
  308. hermoso-0.1.2/hermoso/models/profit_settings.py +146 -0
  309. hermoso-0.1.2/hermoso/models/profit_settings_campaign_margins.py +45 -0
  310. hermoso-0.1.2/hermoso/models/profit_settings_object.py +8 -0
  311. hermoso-0.1.2/hermoso/models/recast.py +339 -0
  312. hermoso-0.1.2/hermoso/models/recast_create.py +149 -0
  313. hermoso-0.1.2/hermoso/models/recast_object.py +8 -0
  314. hermoso-0.1.2/hermoso/models/recast_person.py +86 -0
  315. hermoso-0.1.2/hermoso/models/recast_quote.py +159 -0
  316. hermoso-0.1.2/hermoso/models/recast_quote_object.py +8 -0
  317. hermoso-0.1.2/hermoso/models/recast_step.py +124 -0
  318. hermoso-0.1.2/hermoso/models/recast_subject_type_0.py +85 -0
  319. hermoso-0.1.2/hermoso/models/recast_voice_type_0.py +93 -0
  320. hermoso-0.1.2/hermoso/models/recast_window_type_0.py +81 -0
  321. hermoso-0.1.2/hermoso/models/signup.py +278 -0
  322. hermoso-0.1.2/hermoso/models/signup_claim.py +62 -0
  323. hermoso-0.1.2/hermoso/models/signup_create.py +96 -0
  324. hermoso-0.1.2/hermoso/models/signup_create_period.py +9 -0
  325. hermoso-0.1.2/hermoso/models/signup_object.py +8 -0
  326. hermoso-0.1.2/hermoso/models/signup_period.py +9 -0
  327. hermoso-0.1.2/hermoso/models/signup_status.py +9 -0
  328. hermoso-0.1.2/hermoso/models/tool.py +334 -0
  329. hermoso-0.1.2/hermoso/models/tool_call.py +50 -0
  330. hermoso-0.1.2/hermoso/models/tool_input_schema.py +47 -0
  331. hermoso-0.1.2/hermoso/models/tool_invoke.py +71 -0
  332. hermoso-0.1.2/hermoso/models/tool_job.py +135 -0
  333. hermoso-0.1.2/hermoso/models/tool_job_object.py +8 -0
  334. hermoso-0.1.2/hermoso/models/tool_list.py +226 -0
  335. hermoso-0.1.2/hermoso/models/tool_list_areas_item.py +98 -0
  336. hermoso-0.1.2/hermoso/models/tool_list_areas_item_object.py +8 -0
  337. hermoso-0.1.2/hermoso/models/tool_list_object.py +8 -0
  338. hermoso-0.1.2/hermoso/models/tool_list_search_type_0.py +96 -0
  339. hermoso-0.1.2/hermoso/models/tool_object.py +8 -0
  340. hermoso-0.1.2/hermoso/models/tool_rate_class.py +9 -0
  341. hermoso-0.1.2/hermoso/models/tool_result.py +184 -0
  342. hermoso-0.1.2/hermoso/models/tool_result_data_type_0.py +50 -0
  343. hermoso-0.1.2/hermoso/models/tool_result_ignored_arguments_item.py +84 -0
  344. hermoso-0.1.2/hermoso/models/tool_result_images_item.py +71 -0
  345. hermoso-0.1.2/hermoso/models/tool_result_object.py +8 -0
  346. hermoso-0.1.2/hermoso/models/warning.py +133 -0
  347. hermoso-0.1.2/hermoso/models/warning_in.py +9 -0
  348. hermoso-0.1.2/hermoso/py.typed +0 -0
  349. hermoso-0.1.2/hermoso/types.py +54 -0
  350. hermoso-0.1.2/pyproject.toml +38 -0
@@ -0,0 +1,6 @@
1
+ __pycache__/
2
+ *.pyc
3
+ dist/
4
+ build/
5
+ *.egg-info/
6
+ .venv/
hermoso-0.1.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hermoso (hermoso.ai)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
hermoso-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.5
2
+ Name: hermoso
3
+ Version: 0.1.2
4
+ Summary: Typed Python client for the Hermoso API: generate ads, publish and schedule posts, read analytics, and call every Hermoso tool from your own backend.
5
+ Project-URL: Homepage, https://hermoso.ai/docs/sdks/
6
+ Project-URL: Documentation, https://hermoso.ai/docs/api/
7
+ Project-URL: Source, https://github.com/hermoso-ai/hermoso-sdks
8
+ Project-URL: Issues, https://github.com/hermoso-ai/hermoso-sdks/issues
9
+ Author-email: Hermoso <hello@hermoso.ai>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: ad generation,ads,api,hermoso,marketing,openapi,scheduling,sdk,social media
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Internet :: WWW/HTTP
17
+ Classifier: Topic :: Software Development :: Libraries
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.11
20
+ Requires-Dist: attrs>=22.2.0
21
+ Requires-Dist: httpx2<3,>=2.13.1
22
+ Description-Content-Type: text/markdown
23
+
24
+ # hermoso
25
+
26
+ The typed Python client for the [Hermoso API](https://hermoso.ai/docs/api/): generate image and video ads, publish and
27
+ schedule posts to your own channels, read your analytics, and call any of Hermoso's tools from your own backend.
28
+
29
+ ```bash
30
+ pip install "git+https://github.com/hermoso-ai/hermoso-sdks#subdirectory=python"
31
+ ```
32
+
33
+ Python 3.11+. Create an API key at [app.hermoso.ai](https://app.hermoso.ai) on the **API, MCP & CLI** tab, under
34
+ **Terminal & API keys**, and set it as `HERMOSO_API_KEY`. New accounts start free with no card.
35
+
36
+ The client is generated from the API's OpenAPI document, so every `/v1` operation has a typed function and every
37
+ request and response a typed model. Each operation lives in `hermoso.api.<group>.<operation>` with `sync`,
38
+ `sync_detailed`, `asyncio` and `asyncio_detailed`.
39
+
40
+ ## Generate an ad
41
+
42
+ ```python
43
+ from hermoso import create_client, run_tool, wait_for_job
44
+
45
+ client = create_client() # reads HERMOSO_API_KEY
46
+
47
+ started = run_tool("generate_image", {
48
+ "prompt": 'Summer launch ad for our cold brew: the can on a sunlit cafe table, headline "Cold. Brewed. Yours."',
49
+ "job": "static_ad",
50
+ "aspectRatio": "4:5",
51
+ }, client=client, wait=0)
52
+ job = wait_for_job(started.job_id, client=client)
53
+ print(job.url) # the finished image, on your saved brand
54
+ ```
55
+
56
+ `run_tool` reaches every Hermoso tool, the same set an agent gets over MCP: `render_ad` for video ads, `plan_ad`,
57
+ `clone_video`, competitor research and the ad platforms. `GET /v1/tools/{name}` (or `hermoso.api.tools.get_tool`)
58
+ describes each tool's arguments. Rendering costs credits; polling a job is free.
59
+
60
+ ## Schedule a post
61
+
62
+ ```python
63
+ import uuid
64
+ from hermoso.api.posts import create_post
65
+ from hermoso.models import PostCreate
66
+
67
+ post = create_post.sync(client=client, body=PostCreate.from_dict({
68
+ "channels": ["instagram", "facebook"],
69
+ "caption": "Cold. Brewed. Yours.",
70
+ "media": [job.url],
71
+ "scheduled_at": "2026-12-01T15:00:00Z",
72
+ }), idempotency_key=str(uuid.uuid4()))
73
+ print(post.id, post.status)
74
+ ```
75
+
76
+ `hermoso.api.channels.list_channels` lists every channel and whether this brand has it connected. Omit
77
+ `scheduled_at` to publish now. Publishing is free.
78
+
79
+ ## Read analytics
80
+
81
+ ```python
82
+ from hermoso import paginate
83
+ from hermoso.api.analytics import get_best_time
84
+ from hermoso.api.posts import list_posts
85
+
86
+ best = get_best_time.sync(client=client, channel="instagram", timezone="America/New_York")
87
+ for slot in best.slots[:5]:
88
+ print(slot.day_of_week, slot.hour, slot.avg_engagement)
89
+
90
+ for post in paginate(list_posts, client=client, status="published"):
91
+ print(post.id, post.scheduled_at)
92
+ ```
93
+
94
+ `paginate` follows the cursor on any list operation until the last page.
95
+
96
+ ## Also
97
+
98
+ - `create_client(api_key=..., brand="<id from list_brands>")` acts on one brand of an account that holds several.
99
+ - `wait_for_job(job_id, client=client)` polls a render until it is `done` or `error`.
100
+ - Errors come back as the typed `Error` model; the helpers raise `HermosoError`.
101
+ - Async: every operation has `asyncio(...)`.
102
+
103
+ Docs: [hermoso.ai/docs/sdks](https://hermoso.ai/docs/sdks/) · API reference:
104
+ [hermoso.ai/docs/api](https://hermoso.ai/docs/api/) · OpenAPI:
105
+ [app.hermoso.ai/openapi.json](https://app.hermoso.ai/openapi.json) · TypeScript:
106
+ [`@hermoso/sdk`](https://www.npmjs.com/package/@hermoso/sdk)
107
+
108
+ MIT licensed. Generated with [openapi-python-client](https://github.com/openapi-generators/openapi-python-client).
@@ -0,0 +1,85 @@
1
+ # hermoso
2
+
3
+ The typed Python client for the [Hermoso API](https://hermoso.ai/docs/api/): generate image and video ads, publish and
4
+ schedule posts to your own channels, read your analytics, and call any of Hermoso's tools from your own backend.
5
+
6
+ ```bash
7
+ pip install "git+https://github.com/hermoso-ai/hermoso-sdks#subdirectory=python"
8
+ ```
9
+
10
+ Python 3.11+. Create an API key at [app.hermoso.ai](https://app.hermoso.ai) on the **API, MCP & CLI** tab, under
11
+ **Terminal & API keys**, and set it as `HERMOSO_API_KEY`. New accounts start free with no card.
12
+
13
+ The client is generated from the API's OpenAPI document, so every `/v1` operation has a typed function and every
14
+ request and response a typed model. Each operation lives in `hermoso.api.<group>.<operation>` with `sync`,
15
+ `sync_detailed`, `asyncio` and `asyncio_detailed`.
16
+
17
+ ## Generate an ad
18
+
19
+ ```python
20
+ from hermoso import create_client, run_tool, wait_for_job
21
+
22
+ client = create_client() # reads HERMOSO_API_KEY
23
+
24
+ started = run_tool("generate_image", {
25
+ "prompt": 'Summer launch ad for our cold brew: the can on a sunlit cafe table, headline "Cold. Brewed. Yours."',
26
+ "job": "static_ad",
27
+ "aspectRatio": "4:5",
28
+ }, client=client, wait=0)
29
+ job = wait_for_job(started.job_id, client=client)
30
+ print(job.url) # the finished image, on your saved brand
31
+ ```
32
+
33
+ `run_tool` reaches every Hermoso tool, the same set an agent gets over MCP: `render_ad` for video ads, `plan_ad`,
34
+ `clone_video`, competitor research and the ad platforms. `GET /v1/tools/{name}` (or `hermoso.api.tools.get_tool`)
35
+ describes each tool's arguments. Rendering costs credits; polling a job is free.
36
+
37
+ ## Schedule a post
38
+
39
+ ```python
40
+ import uuid
41
+ from hermoso.api.posts import create_post
42
+ from hermoso.models import PostCreate
43
+
44
+ post = create_post.sync(client=client, body=PostCreate.from_dict({
45
+ "channels": ["instagram", "facebook"],
46
+ "caption": "Cold. Brewed. Yours.",
47
+ "media": [job.url],
48
+ "scheduled_at": "2026-12-01T15:00:00Z",
49
+ }), idempotency_key=str(uuid.uuid4()))
50
+ print(post.id, post.status)
51
+ ```
52
+
53
+ `hermoso.api.channels.list_channels` lists every channel and whether this brand has it connected. Omit
54
+ `scheduled_at` to publish now. Publishing is free.
55
+
56
+ ## Read analytics
57
+
58
+ ```python
59
+ from hermoso import paginate
60
+ from hermoso.api.analytics import get_best_time
61
+ from hermoso.api.posts import list_posts
62
+
63
+ best = get_best_time.sync(client=client, channel="instagram", timezone="America/New_York")
64
+ for slot in best.slots[:5]:
65
+ print(slot.day_of_week, slot.hour, slot.avg_engagement)
66
+
67
+ for post in paginate(list_posts, client=client, status="published"):
68
+ print(post.id, post.scheduled_at)
69
+ ```
70
+
71
+ `paginate` follows the cursor on any list operation until the last page.
72
+
73
+ ## Also
74
+
75
+ - `create_client(api_key=..., brand="<id from list_brands>")` acts on one brand of an account that holds several.
76
+ - `wait_for_job(job_id, client=client)` polls a render until it is `done` or `error`.
77
+ - Errors come back as the typed `Error` model; the helpers raise `HermosoError`.
78
+ - Async: every operation has `asyncio(...)`.
79
+
80
+ Docs: [hermoso.ai/docs/sdks](https://hermoso.ai/docs/sdks/) · API reference:
81
+ [hermoso.ai/docs/api](https://hermoso.ai/docs/api/) · OpenAPI:
82
+ [app.hermoso.ai/openapi.json](https://app.hermoso.ai/openapi.json) · TypeScript:
83
+ [`@hermoso/sdk`](https://www.npmjs.com/package/@hermoso/sdk)
84
+
85
+ MIT licensed. Generated with [openapi-python-client](https://github.com/openapi-generators/openapi-python-client).
@@ -0,0 +1,30 @@
1
+ """Hermoso: the typed Python client for the Hermoso API (https://hermoso.ai/docs/sdks/).
2
+
3
+ Everything except this file and ``_helpers.py`` is generated from the /v1 OpenAPI document. Each operation lives in
4
+ ``hermoso.api.<group>.<operation>`` with ``sync``, ``sync_detailed``, ``asyncio`` and ``asyncio_detailed``; the typed
5
+ request and response models are in ``hermoso.models``.
6
+ """
7
+
8
+ from ._helpers import DEFAULT_BASE_URL, HermosoError, create_client, paginate, run_tool, wait_for_job
9
+ from ._spec import CONTRACT_VERSION, SPEC_SHA256
10
+ from .client import AuthenticatedClient, Client
11
+
12
+ try:
13
+ from importlib.metadata import version as _version
14
+
15
+ __version__ = _version("hermoso")
16
+ except Exception: # pragma: no cover - running from a source tree
17
+ __version__ = "0+unknown"
18
+
19
+ __all__ = (
20
+ "AuthenticatedClient",
21
+ "Client",
22
+ "CONTRACT_VERSION",
23
+ "DEFAULT_BASE_URL",
24
+ "HermosoError",
25
+ "SPEC_SHA256",
26
+ "create_client",
27
+ "paginate",
28
+ "run_tool",
29
+ "wait_for_job",
30
+ )
@@ -0,0 +1,130 @@
1
+ """The small hand-written layer over the generated client: a client that reads your key, a cursor paginator, a job
2
+ waiter and a one-line tool call. Not generated; tools/sdk-generate.mjs copies it into the package."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import os
7
+ import time
8
+ from collections.abc import Iterator
9
+ from types import ModuleType
10
+ from typing import Any
11
+
12
+ from .client import AuthenticatedClient
13
+ from .models.error import Error
14
+ from .types import Unset
15
+
16
+ DEFAULT_BASE_URL = "https://app.hermoso.ai"
17
+
18
+
19
+ class HermosoError(Exception):
20
+ """An error answer from the API. ``error`` is the parsed ``Error`` model (``error.error.code``, ``.message``)."""
21
+
22
+ def __init__(self, error: Any, status: int | None = None) -> None:
23
+ detail = getattr(getattr(error, "error", None), "message", None)
24
+ super().__init__(detail or f"Hermoso API error{f' (HTTP {status})' if status else ''}")
25
+ self.error = error
26
+ self.status = status
27
+
28
+
29
+ def create_client(
30
+ api_key: str | None = None,
31
+ *,
32
+ brand: str | None = None,
33
+ base_url: str = DEFAULT_BASE_URL,
34
+ timeout: float = 90.0,
35
+ ) -> AuthenticatedClient:
36
+ """A client authenticated with your API key (default: the HERMOSO_API_KEY environment variable).
37
+
38
+ ``brand`` acts on that brand (an ``id`` from ``list_brands``) instead of the one the key is pinned to.
39
+ """
40
+ key = api_key or os.environ.get("HERMOSO_API_KEY")
41
+ if not key:
42
+ raise ValueError(
43
+ "No Hermoso API key: pass api_key or set HERMOSO_API_KEY. Create one at https://app.hermoso.ai "
44
+ 'on the "API, MCP & CLI" tab, under "Terminal & API keys".'
45
+ )
46
+ import httpx2
47
+
48
+ return AuthenticatedClient(
49
+ base_url=base_url,
50
+ token=key,
51
+ headers={"X-Hermoso-User": brand} if brand else {},
52
+ timeout=httpx2.Timeout(timeout),
53
+ )
54
+
55
+
56
+ def _value(obj: Any, name: str) -> Any:
57
+ v = getattr(obj, name, None)
58
+ return None if isinstance(v, Unset) else v
59
+
60
+
61
+ def paginate(operation: ModuleType, *, client: AuthenticatedClient, **params: Any) -> Iterator[Any]:
62
+ """Iterate every item of a cursor-paginated list, following ``next_cursor`` until ``has_more`` is false.
63
+
64
+ ``operation`` is the generated module, e.g. ``hermoso.api.posts.list_posts``::
65
+
66
+ for post in paginate(list_posts, client=client, status="scheduled"):
67
+ print(post.id, post.status)
68
+ """
69
+ cursor_param = "cursor" if operation.__name__.endswith("list_conversion_events") else "starting_after"
70
+ cursor = None
71
+ while True:
72
+ if cursor:
73
+ params[cursor_param] = cursor
74
+ res = operation.sync_detailed(client=client, **params)
75
+ page = res.parsed
76
+ if page is None or isinstance(page, Error):
77
+ raise HermosoError(page, int(res.status_code))
78
+ yield from (_value(page, "data") or [])
79
+ cursor = _value(page, "next_cursor")
80
+ if not cursor or _value(page, "has_more") is False:
81
+ return
82
+
83
+
84
+ def wait_for_job(job_id: str, *, client: AuthenticatedClient, interval: float = 5.0, timeout: float = 1200.0) -> Any:
85
+ """Poll a job (a render, a stitch, an upscale…) until it is ``done`` or ``error`` and return it; the file is
86
+ ``job.url``. Polling is free; calling the tool again would start (and bill) a second render."""
87
+ from .api.jobs import get_job
88
+
89
+ deadline = time.monotonic() + timeout
90
+ while True:
91
+ res = get_job.sync_detailed(job_id, client=client)
92
+ job = res.parsed
93
+ if job is None or isinstance(job, Error):
94
+ raise HermosoError(job, int(res.status_code))
95
+ if job.status in ("done", "error"):
96
+ return job
97
+ if time.monotonic() > deadline:
98
+ raise TimeoutError(f"Job {job_id} is still {job.status}; it keeps running, call wait_for_job again.")
99
+ time.sleep(interval)
100
+
101
+
102
+ def run_tool(
103
+ name: str,
104
+ args: dict[str, Any] | None = None,
105
+ *,
106
+ client: AuthenticatedClient,
107
+ wait: int | None = None,
108
+ idempotency_key: str | None = None,
109
+ ) -> Any:
110
+ """Run any Hermoso tool through ``POST /v1/tools/{name}`` and return its result (a ``ToolResult``, or a ``ToolJob``
111
+ handle when it started a render: pass ``job_id`` to ``wait_for_job``). ``GET /v1/tools/{name}`` describes each
112
+ tool's arguments::
113
+
114
+ plan = run_tool("plan_ad", {"product": "our cold brew, summer offer", "format": "video"}, client=client)
115
+ """
116
+ from .api.tools import call_tool
117
+ from .models.tool_call import ToolCall
118
+ from .types import UNSET
119
+
120
+ res = call_tool.sync_detailed(
121
+ name,
122
+ client=client,
123
+ body=ToolCall.from_dict(args or {}),
124
+ wait=UNSET if wait is None else str(wait),
125
+ idempotency_key=idempotency_key or UNSET,
126
+ )
127
+ out = res.parsed
128
+ if out is None or isinstance(out, Error):
129
+ raise HermosoError(out, int(res.status_code))
130
+ return out
@@ -0,0 +1,5 @@
1
+ # Generated by tools/sdk-generate.mjs. Do not edit.
2
+ SPEC_SHA256 = "9a8d4c6c56dfc4fb3785238ce4c254f2d439297c6815ab59cd023d8337d20a3f"
3
+ """sha256 of the OpenAPI document this client was generated from (sdks/openapi.json)."""
4
+ CONTRACT_VERSION = "2026-08-26"
5
+ """The dated /v1 contract version that document describes."""
@@ -0,0 +1 @@
1
+ """Contains methods for accessing the API"""
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,216 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx2
5
+
6
+ from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
10
+ from ...models.contact_email import ContactEmail
11
+ from ...models.error import Error
12
+ from ...types import Unset
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ idempotency_key: str | Unset = UNSET,
18
+ x_hermoso_user: str | Unset = UNSET,
19
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+ if not isinstance(idempotency_key, Unset):
22
+ headers["Idempotency-Key"] = idempotency_key
23
+
24
+ if not isinstance(x_hermoso_user, Unset):
25
+ headers["X-Hermoso-User"] = x_hermoso_user
26
+
27
+ _kwargs: dict[str, Any] = {
28
+ "method": "get",
29
+ "url": "/v1/account/email",
30
+ }
31
+
32
+ _kwargs["headers"] = headers
33
+ return _kwargs
34
+
35
+
36
+ def _parse_response(
37
+ *, client: AuthenticatedClient | Client, response: httpx2.Response
38
+ ) -> ContactEmail | Error | None:
39
+ if response.status_code == 200:
40
+ response_200 = ContactEmail.from_dict(response.json())
41
+
42
+ return response_200
43
+
44
+ if response.status_code == 400:
45
+ response_400 = Error.from_dict(response.json())
46
+
47
+ return response_400
48
+
49
+ if response.status_code == 401:
50
+ response_401 = Error.from_dict(response.json())
51
+
52
+ return response_401
53
+
54
+ if response.status_code == 404:
55
+ response_404 = Error.from_dict(response.json())
56
+
57
+ return response_404
58
+
59
+ if response.status_code == 429:
60
+ response_429 = Error.from_dict(response.json())
61
+
62
+ return response_429
63
+
64
+ if client.raise_on_unexpected_status:
65
+ raise errors.UnexpectedStatus(response.status_code, response.content)
66
+ else:
67
+ return None
68
+
69
+
70
+ def _build_response(
71
+ *, client: AuthenticatedClient | Client, response: httpx2.Response
72
+ ) -> Response[ContactEmail | Error]:
73
+ return Response(
74
+ status_code=HTTPStatus(response.status_code),
75
+ content=response.content,
76
+ headers=response.headers,
77
+ parsed=_parse_response(client=client, response=response),
78
+ )
79
+
80
+
81
+ def sync_detailed(
82
+ *,
83
+ client: AuthenticatedClient,
84
+ idempotency_key: str | Unset = UNSET,
85
+ x_hermoso_user: str | Unset = UNSET,
86
+ ) -> Response[ContactEmail | Error]:
87
+ """Retrieve the contact email and whether it is verified
88
+
89
+ The mailbox named at signup and whether its verification link has been clicked. The account works
90
+ either way; a verified address is where receipts, low-credit alerts and replies to bug reports go.
91
+ The address is NEVER the account identity and can never be used to sign in to, link, or merge
92
+ accounts.
93
+
94
+ Args:
95
+ idempotency_key (str | Unset):
96
+ x_hermoso_user (str | Unset):
97
+
98
+ Raises:
99
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
100
+ httpx2.TimeoutException: If the request takes longer than Client.timeout.
101
+
102
+ Returns:
103
+ Response[ContactEmail | Error]
104
+ """
105
+
106
+ kwargs = _get_kwargs(
107
+ idempotency_key=idempotency_key,
108
+ x_hermoso_user=x_hermoso_user,
109
+ )
110
+
111
+ response = client.get_httpx_client().request(
112
+ **kwargs,
113
+ )
114
+
115
+ return _build_response(client=client, response=response)
116
+
117
+
118
+ def sync(
119
+ *,
120
+ client: AuthenticatedClient,
121
+ idempotency_key: str | Unset = UNSET,
122
+ x_hermoso_user: str | Unset = UNSET,
123
+ ) -> ContactEmail | Error | None:
124
+ """Retrieve the contact email and whether it is verified
125
+
126
+ The mailbox named at signup and whether its verification link has been clicked. The account works
127
+ either way; a verified address is where receipts, low-credit alerts and replies to bug reports go.
128
+ The address is NEVER the account identity and can never be used to sign in to, link, or merge
129
+ accounts.
130
+
131
+ Args:
132
+ idempotency_key (str | Unset):
133
+ x_hermoso_user (str | Unset):
134
+
135
+ Raises:
136
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
137
+ httpx2.TimeoutException: If the request takes longer than Client.timeout.
138
+
139
+ Returns:
140
+ ContactEmail | Error
141
+ """
142
+
143
+ return sync_detailed(
144
+ client=client,
145
+ idempotency_key=idempotency_key,
146
+ x_hermoso_user=x_hermoso_user,
147
+ ).parsed
148
+
149
+
150
+ async def asyncio_detailed(
151
+ *,
152
+ client: AuthenticatedClient,
153
+ idempotency_key: str | Unset = UNSET,
154
+ x_hermoso_user: str | Unset = UNSET,
155
+ ) -> Response[ContactEmail | Error]:
156
+ """Retrieve the contact email and whether it is verified
157
+
158
+ The mailbox named at signup and whether its verification link has been clicked. The account works
159
+ either way; a verified address is where receipts, low-credit alerts and replies to bug reports go.
160
+ The address is NEVER the account identity and can never be used to sign in to, link, or merge
161
+ accounts.
162
+
163
+ Args:
164
+ idempotency_key (str | Unset):
165
+ x_hermoso_user (str | Unset):
166
+
167
+ Raises:
168
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
169
+ httpx2.TimeoutException: If the request takes longer than Client.timeout.
170
+
171
+ Returns:
172
+ Response[ContactEmail | Error]
173
+ """
174
+
175
+ kwargs = _get_kwargs(
176
+ idempotency_key=idempotency_key,
177
+ x_hermoso_user=x_hermoso_user,
178
+ )
179
+
180
+ response = await client.get_async_httpx_client().request(**kwargs)
181
+
182
+ return _build_response(client=client, response=response)
183
+
184
+
185
+ async def asyncio(
186
+ *,
187
+ client: AuthenticatedClient,
188
+ idempotency_key: str | Unset = UNSET,
189
+ x_hermoso_user: str | Unset = UNSET,
190
+ ) -> ContactEmail | Error | None:
191
+ """Retrieve the contact email and whether it is verified
192
+
193
+ The mailbox named at signup and whether its verification link has been clicked. The account works
194
+ either way; a verified address is where receipts, low-credit alerts and replies to bug reports go.
195
+ The address is NEVER the account identity and can never be used to sign in to, link, or merge
196
+ accounts.
197
+
198
+ Args:
199
+ idempotency_key (str | Unset):
200
+ x_hermoso_user (str | Unset):
201
+
202
+ Raises:
203
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
204
+ httpx2.TimeoutException: If the request takes longer than Client.timeout.
205
+
206
+ Returns:
207
+ ContactEmail | Error
208
+ """
209
+
210
+ return (
211
+ await asyncio_detailed(
212
+ client=client,
213
+ idempotency_key=idempotency_key,
214
+ x_hermoso_user=x_hermoso_user,
215
+ )
216
+ ).parsed