songtradr_api_client_ruby 1.13.7 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +5 -37
  4. data/docs/FileSmallDTO.md +2 -2
  5. data/docs/MusicalFeaturesDTO.md +25 -25
  6. data/docs/PlaylistApi.md +0 -214
  7. data/docs/RecordingApi.md +2 -204
  8. data/docs/RecordingGenrePredictionDTO.md +3 -3
  9. data/docs/RecordingMediumDTO.md +2 -2
  10. data/docs/RecordingPartyDTO.md +3 -3
  11. data/docs/UserApi.md +8 -456
  12. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
  13. data/lib/songtradr_api_client_ruby/api/playlist_api.rb +2 -202
  14. data/lib/songtradr_api_client_ruby/api/recording_api.rb +6 -191
  15. data/lib/songtradr_api_client_ruby/api/user_api.rb +161 -749
  16. data/lib/songtradr_api_client_ruby/api_client.rb +38 -36
  17. data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
  18. data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
  19. data/lib/songtradr_api_client_ruby/models/age_range.rb +3 -3
  20. data/lib/songtradr_api_client_ruby/models/beard.rb +3 -3
  21. data/lib/songtradr_api_client_ruby/models/bounding_box.rb +3 -3
  22. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +3 -3
  23. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +3 -3
  24. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +3 -3
  25. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +3 -3
  26. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +3 -3
  27. data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +3 -3
  28. data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +3 -3
  29. data/lib/songtradr_api_client_ruby/models/dominant_color.rb +3 -3
  30. data/lib/songtradr_api_client_ruby/models/emotion.rb +3 -3
  31. data/lib/songtradr_api_client_ruby/models/error_response.rb +3 -3
  32. data/lib/songtradr_api_client_ruby/models/eye_direction.rb +3 -3
  33. data/lib/songtradr_api_client_ruby/models/eye_open.rb +3 -3
  34. data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +3 -3
  35. data/lib/songtradr_api_client_ruby/models/face_detail.rb +3 -3
  36. data/lib/songtradr_api_client_ruby/models/face_detection.rb +3 -3
  37. data/lib/songtradr_api_client_ruby/models/face_occluded.rb +3 -3
  38. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +3 -3
  39. data/lib/songtradr_api_client_ruby/models/file_dto.rb +3 -3
  40. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +3 -3
  41. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +15 -15
  42. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +3 -3
  43. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +3 -3
  44. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +3 -3
  45. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +3 -3
  46. data/lib/songtradr_api_client_ruby/models/gender.rb +3 -3
  47. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +3 -3
  48. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +3 -3
  49. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +3 -3
  50. data/lib/songtradr_api_client_ruby/models/image_quality.rb +3 -3
  51. data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +3 -3
  52. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +3 -3
  53. data/lib/songtradr_api_client_ruby/models/instance.rb +3 -3
  54. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +3 -3
  55. data/lib/songtradr_api_client_ruby/models/label.rb +3 -3
  56. data/lib/songtradr_api_client_ruby/models/label_alias.rb +3 -3
  57. data/lib/songtradr_api_client_ruby/models/label_category.rb +3 -3
  58. data/lib/songtradr_api_client_ruby/models/label_detection.rb +3 -3
  59. data/lib/songtradr_api_client_ruby/models/landmark.rb +3 -3
  60. data/lib/songtradr_api_client_ruby/models/login_dto.rb +3 -3
  61. data/lib/songtradr_api_client_ruby/models/mouth_open.rb +3 -3
  62. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +270 -270
  63. data/lib/songtradr_api_client_ruby/models/mustache.rb +3 -3
  64. data/lib/songtradr_api_client_ruby/models/parent.rb +3 -3
  65. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +3 -3
  66. data/lib/songtradr_api_client_ruby/models/pose.rb +3 -3
  67. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +3 -3
  68. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +23 -23
  69. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +3 -3
  70. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +13 -13
  71. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +3 -3
  72. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +3 -3
  73. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +3 -3
  74. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +18 -18
  75. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +3 -3
  76. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +3 -3
  77. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +3 -3
  78. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +3 -3
  79. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +3 -3
  80. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +3 -3
  81. data/lib/songtradr_api_client_ruby/models/smile.rb +3 -3
  82. data/lib/songtradr_api_client_ruby/models/sunglasses.rb +3 -3
  83. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +3 -3
  84. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +3 -3
  85. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +3 -3
  86. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +3 -3
  87. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +3 -3
  88. data/lib/songtradr_api_client_ruby/models/title_dto.rb +3 -3
  89. data/lib/songtradr_api_client_ruby/models/token_request.rb +3 -3
  90. data/lib/songtradr_api_client_ruby/models/track_dto.rb +3 -3
  91. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +3 -3
  92. data/lib/songtradr_api_client_ruby/models/user_dto.rb +3 -3
  93. data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +3 -3
  94. data/lib/songtradr_api_client_ruby/version.rb +3 -3
  95. data/lib/songtradr_api_client_ruby.rb +2 -23
  96. data/openapi-generator-config.yaml +1 -1
  97. data/songtradr_api_client_ruby.gemspec +3 -2
  98. data/spec/api/allowed_values_api_spec.rb +2 -2
  99. data/spec/api/playlist_api_spec.rb +2 -39
  100. data/spec/api/recording_api_spec.rb +3 -35
  101. data/spec/api/user_api_spec.rb +6 -111
  102. data/spec/api_client_spec.rb +2 -2
  103. data/spec/configuration_spec.rb +2 -2
  104. data/spec/models/age_range_spec.rb +2 -2
  105. data/spec/models/beard_spec.rb +2 -2
  106. data/spec/models/bounding_box_spec.rb +2 -2
  107. data/spec/models/category_medium_dto_spec.rb +2 -2
  108. data/spec/models/category_minimal_dto_spec.rb +2 -2
  109. data/spec/models/config_access_dto_spec.rb +2 -2
  110. data/spec/models/config_identifier_dto_spec.rb +2 -2
  111. data/spec/models/contributor_type_dto_spec.rb +2 -2
  112. data/spec/models/curate_playlist_dto_spec.rb +2 -2
  113. data/spec/models/curate_playlist_response_dto_spec.rb +2 -2
  114. data/spec/models/dominant_color_spec.rb +2 -2
  115. data/spec/models/emotion_spec.rb +2 -2
  116. data/spec/models/error_response_spec.rb +2 -2
  117. data/spec/models/eye_direction_spec.rb +2 -2
  118. data/spec/models/eye_open_spec.rb +2 -2
  119. data/spec/models/eyeglasses_spec.rb +2 -2
  120. data/spec/models/face_detail_spec.rb +2 -2
  121. data/spec/models/face_detection_spec.rb +2 -2
  122. data/spec/models/face_occluded_spec.rb +2 -2
  123. data/spec/models/field_summary_dto_spec.rb +2 -2
  124. data/spec/models/file_dto_spec.rb +2 -2
  125. data/spec/models/file_list_dto_spec.rb +2 -2
  126. data/spec/models/file_small_dto_spec.rb +5 -5
  127. data/spec/models/file_upload_dto_spec.rb +2 -2
  128. data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
  129. data/spec/models/files_summary_dto_spec.rb +2 -2
  130. data/spec/models/forgot_password_dto_spec.rb +2 -2
  131. data/spec/models/gender_spec.rb +2 -2
  132. data/spec/models/genre_dto_spec.rb +2 -2
  133. data/spec/models/genre_minimal_dto_spec.rb +2 -2
  134. data/spec/models/genres_summary_dto_spec.rb +2 -2
  135. data/spec/models/image_quality_spec.rb +2 -2
  136. data/spec/models/image_recognition_response_spec.rb +2 -2
  137. data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
  138. data/spec/models/instance_spec.rb +2 -2
  139. data/spec/models/jwt_token_dto_spec.rb +2 -2
  140. data/spec/models/label_alias_spec.rb +2 -2
  141. data/spec/models/label_category_spec.rb +2 -2
  142. data/spec/models/label_detection_spec.rb +2 -2
  143. data/spec/models/label_spec.rb +2 -2
  144. data/spec/models/landmark_spec.rb +2 -2
  145. data/spec/models/login_dto_spec.rb +2 -2
  146. data/spec/models/mouth_open_spec.rb +2 -2
  147. data/spec/models/musical_features_dto_spec.rb +81 -81
  148. data/spec/models/mustache_spec.rb +2 -2
  149. data/spec/models/parent_spec.rb +2 -2
  150. data/spec/models/party_small_dto_spec.rb +2 -2
  151. data/spec/models/pose_spec.rb +2 -2
  152. data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
  153. data/spec/models/recording_genre_prediction_dto_spec.rb +5 -5
  154. data/spec/models/recording_list_dto_spec.rb +2 -2
  155. data/spec/models/recording_medium_dto_spec.rb +4 -4
  156. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +2 -2
  157. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
  158. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
  159. data/spec/models/recording_party_dto_spec.rb +4 -4
  160. data/spec/models/recording_small_dto_spec.rb +2 -2
  161. data/spec/models/recording_tag_small_dto_spec.rb +2 -2
  162. data/spec/models/save_user_dto_spec.rb +2 -2
  163. data/spec/models/search_filter_values_dto_spec.rb +2 -2
  164. data/spec/models/search_recording_granular_dto_spec.rb +2 -2
  165. data/spec/models/sign_up_dto_spec.rb +2 -2
  166. data/spec/models/smile_spec.rb +2 -2
  167. data/spec/models/sunglasses_spec.rb +2 -2
  168. data/spec/models/tag_dto_spec.rb +2 -2
  169. data/spec/models/tag_small_dto_spec.rb +2 -2
  170. data/spec/models/taggram_dto_spec.rb +2 -2
  171. data/spec/models/tags_summary_dto_spec.rb +2 -2
  172. data/spec/models/tagstrength_dto_spec.rb +2 -2
  173. data/spec/models/title_dto_spec.rb +2 -2
  174. data/spec/models/token_request_spec.rb +2 -2
  175. data/spec/models/track_dto_spec.rb +2 -2
  176. data/spec/models/update_password_dto_spec.rb +2 -2
  177. data/spec/models/user_dto_spec.rb +2 -2
  178. data/spec/models/video_recognition_response_spec.rb +2 -2
  179. data/spec/spec_helper.rb +2 -2
  180. metadata +65 -149
  181. data/docs/ContextValue.md +0 -18
  182. data/docs/FileMinimalWithUrlDTO.md +0 -22
  183. data/docs/PLineDTO.md +0 -20
  184. data/docs/PartyApi.md +0 -75
  185. data/docs/PartyLargeDTO.md +0 -32
  186. data/docs/PlaylistLargeDTO.md +0 -38
  187. data/docs/ProductMediumDTO.md +0 -34
  188. data/docs/ProductPartyDTO.md +0 -20
  189. data/docs/RecordingLargeDTO.md +0 -40
  190. data/docs/RecordingPlaylistDTO.md +0 -24
  191. data/docs/SaveFileRecordingDTO.md +0 -240
  192. data/docs/SavePlaylistDTO.md +0 -34
  193. data/docs/SaveRecordingGenreDTO.md +0 -22
  194. data/docs/SaveRecordingPartyDTO.md +0 -20
  195. data/docs/SaveRecordingPlaylistDTO.md +0 -22
  196. data/docs/SaveRecordingTagDTO.md +0 -20
  197. data/docs/SaveReferrerDTO.md +0 -20
  198. data/docs/SaveTaggramsDTO.md +0 -82
  199. data/docs/SearchRecordingGranularAbstractionDTO.md +0 -20
  200. data/docs/TrackToMediumProductDTO.md +0 -22
  201. data/docs/UsageDTO.md +0 -18
  202. data/lib/songtradr_api_client_ruby/api/party_api.rb +0 -84
  203. data/lib/songtradr_api_client_ruby/models/context_value.rb +0 -216
  204. data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +0 -254
  205. data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +0 -231
  206. data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +0 -285
  207. data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +0 -350
  208. data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +0 -323
  209. data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +0 -233
  210. data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +0 -383
  211. data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +0 -242
  212. data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +0 -1864
  213. data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +0 -353
  214. data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +0 -240
  215. data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +0 -272
  216. data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +0 -247
  217. data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +0 -231
  218. data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +0 -224
  219. data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +0 -569
  220. data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +0 -267
  221. data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +0 -247
  222. data/lib/songtradr_api_client_ruby/models/usage_dto.rb +0 -215
  223. data/spec/api/party_api_spec.rb +0 -46
  224. data/spec/models/context_value_spec.rb +0 -36
  225. data/spec/models/file_minimal_with_url_dto_spec.rb +0 -48
  226. data/spec/models/p_line_dto_spec.rb +0 -42
  227. data/spec/models/party_large_dto_spec.rb +0 -78
  228. data/spec/models/playlist_large_dto_spec.rb +0 -100
  229. data/spec/models/product_medium_dto_spec.rb +0 -84
  230. data/spec/models/product_party_dto_spec.rb +0 -42
  231. data/spec/models/recording_large_dto_spec.rb +0 -102
  232. data/spec/models/recording_playlist_dto_spec.rb +0 -54
  233. data/spec/models/save_file_recording_dto_spec.rb +0 -894
  234. data/spec/models/save_playlist_dto_spec.rb +0 -88
  235. data/spec/models/save_recording_genre_dto_spec.rb +0 -48
  236. data/spec/models/save_recording_party_dto_spec.rb +0 -46
  237. data/spec/models/save_recording_playlist_dto_spec.rb +0 -48
  238. data/spec/models/save_recording_tag_dto_spec.rb +0 -42
  239. data/spec/models/save_referrer_dto_spec.rb +0 -42
  240. data/spec/models/save_taggrams_dto_spec.rb +0 -228
  241. data/spec/models/search_recording_granular_abstraction_dto_spec.rb +0 -46
  242. data/spec/models/track_to_medium_product_dto_spec.rb +0 -48
  243. data/spec/models/usage_dto_spec.rb +0 -36
@@ -3,10 +3,10 @@
3
3
 
4
4
  #This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
5
5
 
6
- The version of the OpenAPI document: 1.13.7
6
+ The version of the OpenAPI document: 1.16.0
7
7
  Contact: info@songtradr.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -19,70 +19,6 @@ module SongtradrApiClientRuby
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # @param save_referrer_dto [SaveReferrerDTO]
23
- # @param [Hash] opts the optional parameters
24
- # @return [Object]
25
- def create_user_referrer(save_referrer_dto, opts = {})
26
- data, _status_code, _headers = create_user_referrer_with_http_info(save_referrer_dto, opts)
27
- data
28
- end
29
-
30
- # @param save_referrer_dto [SaveReferrerDTO]
31
- # @param [Hash] opts the optional parameters
32
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
33
- def create_user_referrer_with_http_info(save_referrer_dto, opts = {})
34
- if @api_client.config.debugging
35
- @api_client.config.logger.debug 'Calling API: UserApi.create_user_referrer ...'
36
- end
37
- # verify the required parameter 'save_referrer_dto' is set
38
- if @api_client.config.client_side_validation && save_referrer_dto.nil?
39
- fail ArgumentError, "Missing the required parameter 'save_referrer_dto' when calling UserApi.create_user_referrer"
40
- end
41
- # resource path
42
- local_var_path = '/api/v1/user/referrers/new'
43
-
44
- # query parameters
45
- query_params = opts[:query_params] || {}
46
-
47
- # header parameters
48
- header_params = opts[:header_params] || {}
49
- # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
- # HTTP header 'Content-Type'
52
- content_type = @api_client.select_header_content_type(['application/json'])
53
- if !content_type.nil?
54
- header_params['Content-Type'] = content_type
55
- end
56
-
57
- # form parameters
58
- form_params = opts[:form_params] || {}
59
-
60
- # http body (model)
61
- post_body = opts[:debug_body] || @api_client.object_to_http_body(save_referrer_dto)
62
-
63
- # return_type
64
- return_type = opts[:debug_return_type] || 'Object'
65
-
66
- # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
68
-
69
- new_options = opts.merge(
70
- :operation => :"UserApi.create_user_referrer",
71
- :header_params => header_params,
72
- :query_params => query_params,
73
- :form_params => form_params,
74
- :body => post_body,
75
- :auth_names => auth_names,
76
- :return_type => return_type
77
- )
78
-
79
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
- if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: UserApi#create_user_referrer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
83
- return data, status_code, headers
84
- end
85
-
86
22
  # Delete file.
87
23
  # @param object_key [String] ObjectKey of the file that should be deleted.
88
24
  # @param [Hash] opts the optional parameters
@@ -615,6 +551,7 @@ module SongtradrApiClientRuby
615
551
  # @option opts [String] :tag_name Show only taggrams for one tag.
616
552
  # @option opts [String] :genre_name Show only taggrams for one genre.
617
553
  # @option opts [Float] :from_timestamp Show only taggrams data starting from from this timestamp in seconds.
554
+ # @option opts [Float] :to_timestamp Show only taggrams data before this timestamp in seconds.
618
555
  # @option opts [Boolean] :fill_with_zero If set to true, empty timeseries are filled with timeseries of 0.0 values.
619
556
  # @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
620
557
  # @option opts [Integer] :size The size of the page to be returned (default to 20)
@@ -632,6 +569,7 @@ module SongtradrApiClientRuby
632
569
  # @option opts [String] :tag_name Show only taggrams for one tag.
633
570
  # @option opts [String] :genre_name Show only taggrams for one genre.
634
571
  # @option opts [Float] :from_timestamp Show only taggrams data starting from from this timestamp in seconds.
572
+ # @option opts [Float] :to_timestamp Show only taggrams data before this timestamp in seconds.
635
573
  # @option opts [Boolean] :fill_with_zero If set to true, empty timeseries are filled with timeseries of 0.0 values.
636
574
  # @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
637
575
  # @option opts [Integer] :size The size of the page to be returned (default to 20)
@@ -658,6 +596,7 @@ module SongtradrApiClientRuby
658
596
  query_params[:'tagName'] = opts[:'tag_name'] if !opts[:'tag_name'].nil?
659
597
  query_params[:'genreName'] = opts[:'genre_name'] if !opts[:'genre_name'].nil?
660
598
  query_params[:'fromTimestamp'] = opts[:'from_timestamp'] if !opts[:'from_timestamp'].nil?
599
+ query_params[:'toTimestamp'] = opts[:'to_timestamp'] if !opts[:'to_timestamp'].nil?
661
600
  query_params[:'fillWithZero'] = opts[:'fill_with_zero'] if !opts[:'fill_with_zero'].nil?
662
601
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
663
602
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
@@ -807,6 +746,7 @@ module SongtradrApiClientRuby
807
746
  # @option opts [String] :sound_generation
808
747
  # @option opts [String] :tempo
809
748
  # @option opts [String] :scale
749
+ # @option opts [String] :key
810
750
  # @option opts [String] :rhythm
811
751
  # @option opts [String] :primary_sound_character
812
752
  # @option opts [String] :timbre
@@ -876,6 +816,7 @@ module SongtradrApiClientRuby
876
816
  # @option opts [String] :sound_generation
877
817
  # @option opts [String] :tempo
878
818
  # @option opts [String] :scale
819
+ # @option opts [String] :key
879
820
  # @option opts [String] :rhythm
880
821
  # @option opts [String] :primary_sound_character
881
822
  # @option opts [String] :timbre
@@ -981,6 +922,10 @@ module SongtradrApiClientRuby
981
922
  if @api_client.config.client_side_validation && opts[:'scale'] && !allowable_values.include?(opts[:'scale'])
982
923
  fail ArgumentError, "invalid value for \"scale\", must be one of #{allowable_values}"
983
924
  end
925
+ allowable_values = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"]
926
+ if @api_client.config.client_side_validation && opts[:'key'] && !allowable_values.include?(opts[:'key'])
927
+ fail ArgumentError, "invalid value for \"key\", must be one of #{allowable_values}"
928
+ end
984
929
  allowable_values = ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"]
985
930
  if @api_client.config.client_side_validation && opts[:'rhythm'] && !allowable_values.include?(opts[:'rhythm'])
986
931
  fail ArgumentError, "invalid value for \"rhythm\", must be one of #{allowable_values}"
@@ -1049,7 +994,7 @@ module SongtradrApiClientRuby
1049
994
  if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
1050
995
  fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
1051
996
  end
1052
- allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"]
997
+ allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax", "karaoke"]
1053
998
  if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
1054
999
  fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
1055
1000
  end
@@ -1095,6 +1040,7 @@ module SongtradrApiClientRuby
1095
1040
  query_params[:'soundGeneration'] = opts[:'sound_generation'] if !opts[:'sound_generation'].nil?
1096
1041
  query_params[:'tempo'] = opts[:'tempo'] if !opts[:'tempo'].nil?
1097
1042
  query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
1043
+ query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
1098
1044
  query_params[:'rhythm'] = opts[:'rhythm'] if !opts[:'rhythm'].nil?
1099
1045
  query_params[:'primarySoundCharacter'] = opts[:'primary_sound_character'] if !opts[:'primary_sound_character'].nil?
1100
1046
  query_params[:'timbre'] = opts[:'timbre'] if !opts[:'timbre'].nil?
@@ -1364,78 +1310,6 @@ module SongtradrApiClientRuby
1364
1310
  return data, status_code, headers
1365
1311
  end
1366
1312
 
1367
- # Create and edit metadata of your files.
1368
- # @param object_key [String] ObjectKey of the file that should be edited.
1369
- # @param save_file_recording_dto [SaveFileRecordingDTO]
1370
- # @param [Hash] opts the optional parameters
1371
- # @return [Object]
1372
- def update_user_file_recording(object_key, save_file_recording_dto, opts = {})
1373
- data, _status_code, _headers = update_user_file_recording_with_http_info(object_key, save_file_recording_dto, opts)
1374
- data
1375
- end
1376
-
1377
- # Create and edit metadata of your files.
1378
- # @param object_key [String] ObjectKey of the file that should be edited.
1379
- # @param save_file_recording_dto [SaveFileRecordingDTO]
1380
- # @param [Hash] opts the optional parameters
1381
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1382
- def update_user_file_recording_with_http_info(object_key, save_file_recording_dto, opts = {})
1383
- if @api_client.config.debugging
1384
- @api_client.config.logger.debug 'Calling API: UserApi.update_user_file_recording ...'
1385
- end
1386
- # verify the required parameter 'object_key' is set
1387
- if @api_client.config.client_side_validation && object_key.nil?
1388
- fail ArgumentError, "Missing the required parameter 'object_key' when calling UserApi.update_user_file_recording"
1389
- end
1390
- # verify the required parameter 'save_file_recording_dto' is set
1391
- if @api_client.config.client_side_validation && save_file_recording_dto.nil?
1392
- fail ArgumentError, "Missing the required parameter 'save_file_recording_dto' when calling UserApi.update_user_file_recording"
1393
- end
1394
- # resource path
1395
- local_var_path = '/api/v1/user/file/{objectKey}'.sub('{' + 'objectKey' + '}', CGI.escape(object_key.to_s))
1396
-
1397
- # query parameters
1398
- query_params = opts[:query_params] || {}
1399
-
1400
- # header parameters
1401
- header_params = opts[:header_params] || {}
1402
- # HTTP header 'Accept' (if needed)
1403
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1404
- # HTTP header 'Content-Type'
1405
- content_type = @api_client.select_header_content_type(['application/json'])
1406
- if !content_type.nil?
1407
- header_params['Content-Type'] = content_type
1408
- end
1409
-
1410
- # form parameters
1411
- form_params = opts[:form_params] || {}
1412
-
1413
- # http body (model)
1414
- post_body = opts[:debug_body] || @api_client.object_to_http_body(save_file_recording_dto)
1415
-
1416
- # return_type
1417
- return_type = opts[:debug_return_type] || 'Object'
1418
-
1419
- # auth_names
1420
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
1421
-
1422
- new_options = opts.merge(
1423
- :operation => :"UserApi.update_user_file_recording",
1424
- :header_params => header_params,
1425
- :query_params => query_params,
1426
- :form_params => form_params,
1427
- :body => post_body,
1428
- :auth_names => auth_names,
1429
- :return_type => return_type
1430
- )
1431
-
1432
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1433
- if @api_client.config.debugging
1434
- @api_client.config.logger.debug "API called: UserApi#update_user_file_recording\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1435
- end
1436
- return data, status_code, headers
1437
- end
1438
-
1439
1313
  # Details and a download link for a file.
1440
1314
  # @param object_key [String] ObjectKey of the file that should be edited.
1441
1315
  # @param [Hash] opts the optional parameters
@@ -1524,6 +1398,7 @@ module SongtradrApiClientRuby
1524
1398
  # @option opts [String] :sound_generation
1525
1399
  # @option opts [String] :tempo
1526
1400
  # @option opts [String] :scale
1401
+ # @option opts [String] :key
1527
1402
  # @option opts [String] :rhythm
1528
1403
  # @option opts [String] :primary_sound_character
1529
1404
  # @option opts [String] :timbre
@@ -1592,6 +1467,7 @@ module SongtradrApiClientRuby
1592
1467
  # @option opts [String] :sound_generation
1593
1468
  # @option opts [String] :tempo
1594
1469
  # @option opts [String] :scale
1470
+ # @option opts [String] :key
1595
1471
  # @option opts [String] :rhythm
1596
1472
  # @option opts [String] :primary_sound_character
1597
1473
  # @option opts [String] :timbre
@@ -1696,6 +1572,10 @@ module SongtradrApiClientRuby
1696
1572
  if @api_client.config.client_side_validation && opts[:'scale'] && !allowable_values.include?(opts[:'scale'])
1697
1573
  fail ArgumentError, "invalid value for \"scale\", must be one of #{allowable_values}"
1698
1574
  end
1575
+ allowable_values = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"]
1576
+ if @api_client.config.client_side_validation && opts[:'key'] && !allowable_values.include?(opts[:'key'])
1577
+ fail ArgumentError, "invalid value for \"key\", must be one of #{allowable_values}"
1578
+ end
1699
1579
  allowable_values = ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"]
1700
1580
  if @api_client.config.client_side_validation && opts[:'rhythm'] && !allowable_values.include?(opts[:'rhythm'])
1701
1581
  fail ArgumentError, "invalid value for \"rhythm\", must be one of #{allowable_values}"
@@ -1764,7 +1644,7 @@ module SongtradrApiClientRuby
1764
1644
  if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
1765
1645
  fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
1766
1646
  end
1767
- allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"]
1647
+ allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax", "karaoke"]
1768
1648
  if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
1769
1649
  fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
1770
1650
  end
@@ -1810,6 +1690,7 @@ module SongtradrApiClientRuby
1810
1690
  query_params[:'soundGeneration'] = opts[:'sound_generation'] if !opts[:'sound_generation'].nil?
1811
1691
  query_params[:'tempo'] = opts[:'tempo'] if !opts[:'tempo'].nil?
1812
1692
  query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
1693
+ query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
1813
1694
  query_params[:'rhythm'] = opts[:'rhythm'] if !opts[:'rhythm'].nil?
1814
1695
  query_params[:'primarySoundCharacter'] = opts[:'primary_sound_character'] if !opts[:'primary_sound_character'].nil?
1815
1696
  query_params[:'timbre'] = opts[:'timbre'] if !opts[:'timbre'].nil?
@@ -1880,14 +1761,76 @@ module SongtradrApiClientRuby
1880
1761
  return data, status_code, headers
1881
1762
  end
1882
1763
 
1883
- # Download links for your files
1764
+ # Status details for files.
1765
+ # @param object_keys [String] Comma-separated list of objectKeys of the files.
1766
+ # @param [Hash] opts the optional parameters
1767
+ # @return [Array<FileSmallDTO>]
1768
+ def user_files_status(object_keys, opts = {})
1769
+ data, _status_code, _headers = user_files_status_with_http_info(object_keys, opts)
1770
+ data
1771
+ end
1772
+
1773
+ # Status details for files.
1774
+ # @param object_keys [String] Comma-separated list of objectKeys of the files.
1775
+ # @param [Hash] opts the optional parameters
1776
+ # @return [Array<(Array<FileSmallDTO>, Integer, Hash)>] Array<FileSmallDTO> data, response status code and response headers
1777
+ def user_files_status_with_http_info(object_keys, opts = {})
1778
+ if @api_client.config.debugging
1779
+ @api_client.config.logger.debug 'Calling API: UserApi.user_files_status ...'
1780
+ end
1781
+ # verify the required parameter 'object_keys' is set
1782
+ if @api_client.config.client_side_validation && object_keys.nil?
1783
+ fail ArgumentError, "Missing the required parameter 'object_keys' when calling UserApi.user_files_status"
1784
+ end
1785
+ # resource path
1786
+ local_var_path = '/api/v1/user/filesStatus'
1787
+
1788
+ # query parameters
1789
+ query_params = opts[:query_params] || {}
1790
+ query_params[:'objectKeys'] = object_keys
1791
+
1792
+ # header parameters
1793
+ header_params = opts[:header_params] || {}
1794
+ # HTTP header 'Accept' (if needed)
1795
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1796
+
1797
+ # form parameters
1798
+ form_params = opts[:form_params] || {}
1799
+
1800
+ # http body (model)
1801
+ post_body = opts[:debug_body]
1802
+
1803
+ # return_type
1804
+ return_type = opts[:debug_return_type] || 'Array<FileSmallDTO>'
1805
+
1806
+ # auth_names
1807
+ auth_names = opts[:debug_auth_names] || ['bearer-jwt']
1808
+
1809
+ new_options = opts.merge(
1810
+ :operation => :"UserApi.user_files_status",
1811
+ :header_params => header_params,
1812
+ :query_params => query_params,
1813
+ :form_params => form_params,
1814
+ :body => post_body,
1815
+ :auth_names => auth_names,
1816
+ :return_type => return_type
1817
+ )
1818
+
1819
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1820
+ if @api_client.config.debugging
1821
+ @api_client.config.logger.debug "API called: UserApi#user_files_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1822
+ end
1823
+ return data, status_code, headers
1824
+ end
1825
+
1826
+ # Summary fo your files.
1884
1827
  # @param [Hash] opts the optional parameters
1885
- # @option opts [String] :isrc
1886
- # @option opts [String] :contributor
1887
- # @option opts [String] :main_artist
1888
- # @option opts [String] :composer
1889
- # @option opts [String] :title
1890
- # @option opts [String] :language
1828
+ # @option opts [String] :isrc Search for a ISRC
1829
+ # @option opts [String] :contributor Search for a name that was involved as any contributor.
1830
+ # @option opts [String] :main_artist Search for a main artist.
1831
+ # @option opts [String] :composer Search for a composer.
1832
+ # @option opts [String] :title Search for a title.
1833
+ # @option opts [String] :language Search for a language of the lyrics.
1891
1834
  # @option opts [Array<String>] :genre_names
1892
1835
  # @option opts [Array<String>] :tag_names
1893
1836
  # @option opts [Time] :release_date
@@ -1906,6 +1849,7 @@ module SongtradrApiClientRuby
1906
1849
  # @option opts [String] :sound_generation
1907
1850
  # @option opts [String] :tempo
1908
1851
  # @option opts [String] :scale
1852
+ # @option opts [String] :key
1909
1853
  # @option opts [String] :rhythm
1910
1854
  # @option opts [String] :primary_sound_character
1911
1855
  # @option opts [String] :timbre
@@ -1921,35 +1865,37 @@ module SongtradrApiClientRuby
1921
1865
  # @option opts [String] :audience_age
1922
1866
  # @option opts [String] :audience_region
1923
1867
  # @option opts [String] :audience_gender
1868
+ # @option opts [String] :origin_decade
1869
+ # @option opts [String] :curateability
1870
+ # @option opts [String] :use_case
1871
+ # @option opts [String] :channel_suitability
1872
+ # @option opts [String] :similar_to_recording
1924
1873
  # @option opts [String] :songtradr_track_id
1925
1874
  # @option opts [String] :usage_name
1926
- # @option opts [Integer] :bpm_min
1927
- # @option opts [Integer] :bpm_max
1928
- # @option opts [String] :name
1929
- # @option opts [String] :folder
1930
- # @option opts [String] :extension
1875
+ # @option opts [Integer] :bpm_min Search for a minimal bpm.
1876
+ # @option opts [Integer] :bpm_max Search for a maximal bpm.
1877
+ # @option opts [String] :name Search for a file name.
1878
+ # @option opts [String] :folder Search for a folder.
1879
+ # @option opts [String] :extension Search for a file extension.
1931
1880
  # @option opts [Time] :upload_end_time
1932
1881
  # @option opts [Time] :min_upload_end_time
1933
1882
  # @option opts [Time] :max_upload_end_time
1934
- # @option opts [String] :fingerprint_status
1935
- # @option opts [String] :inference_status
1936
- # @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
1937
- # @option opts [Integer] :size The size of the page to be returned (default to 100)
1938
- # @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
1939
- # @return [Array<FileMinimalWithUrlDTO>]
1940
- def user_files_download(opts = {})
1941
- data, _status_code, _headers = user_files_download_with_http_info(opts)
1883
+ # @option opts [String] :fingerprint_status Search for a fingerprint status.
1884
+ # @option opts [String] :inference_status Search for a inference status.
1885
+ # @return [FilesSummaryDTO]
1886
+ def user_files_summary(opts = {})
1887
+ data, _status_code, _headers = user_files_summary_with_http_info(opts)
1942
1888
  data
1943
1889
  end
1944
1890
 
1945
- # Download links for your files
1891
+ # Summary fo your files.
1946
1892
  # @param [Hash] opts the optional parameters
1947
- # @option opts [String] :isrc
1948
- # @option opts [String] :contributor
1949
- # @option opts [String] :main_artist
1950
- # @option opts [String] :composer
1951
- # @option opts [String] :title
1952
- # @option opts [String] :language
1893
+ # @option opts [String] :isrc Search for a ISRC
1894
+ # @option opts [String] :contributor Search for a name that was involved as any contributor.
1895
+ # @option opts [String] :main_artist Search for a main artist.
1896
+ # @option opts [String] :composer Search for a composer.
1897
+ # @option opts [String] :title Search for a title.
1898
+ # @option opts [String] :language Search for a language of the lyrics.
1953
1899
  # @option opts [Array<String>] :genre_names
1954
1900
  # @option opts [Array<String>] :tag_names
1955
1901
  # @option opts [Time] :release_date
@@ -1968,6 +1914,7 @@ module SongtradrApiClientRuby
1968
1914
  # @option opts [String] :sound_generation
1969
1915
  # @option opts [String] :tempo
1970
1916
  # @option opts [String] :scale
1917
+ # @option opts [String] :key
1971
1918
  # @option opts [String] :rhythm
1972
1919
  # @option opts [String] :primary_sound_character
1973
1920
  # @option opts [String] :timbre
@@ -1983,25 +1930,31 @@ module SongtradrApiClientRuby
1983
1930
  # @option opts [String] :audience_age
1984
1931
  # @option opts [String] :audience_region
1985
1932
  # @option opts [String] :audience_gender
1933
+ # @option opts [String] :origin_decade
1934
+ # @option opts [String] :curateability
1935
+ # @option opts [String] :use_case
1936
+ # @option opts [String] :channel_suitability
1937
+ # @option opts [String] :similar_to_recording
1986
1938
  # @option opts [String] :songtradr_track_id
1987
1939
  # @option opts [String] :usage_name
1988
- # @option opts [Integer] :bpm_min
1989
- # @option opts [Integer] :bpm_max
1990
- # @option opts [String] :name
1991
- # @option opts [String] :folder
1992
- # @option opts [String] :extension
1940
+ # @option opts [Integer] :bpm_min Search for a minimal bpm.
1941
+ # @option opts [Integer] :bpm_max Search for a maximal bpm.
1942
+ # @option opts [String] :name Search for a file name.
1943
+ # @option opts [String] :folder Search for a folder.
1944
+ # @option opts [String] :extension Search for a file extension.
1993
1945
  # @option opts [Time] :upload_end_time
1994
1946
  # @option opts [Time] :min_upload_end_time
1995
1947
  # @option opts [Time] :max_upload_end_time
1996
- # @option opts [String] :fingerprint_status
1997
- # @option opts [String] :inference_status
1998
- # @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
1999
- # @option opts [Integer] :size The size of the page to be returned (default to 100)
2000
- # @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2001
- # @return [Array<(Array<FileMinimalWithUrlDTO>, Integer, Hash)>] Array<FileMinimalWithUrlDTO> data, response status code and response headers
2002
- def user_files_download_with_http_info(opts = {})
1948
+ # @option opts [String] :fingerprint_status Search for a fingerprint status.
1949
+ # @option opts [String] :inference_status Search for a inference status.
1950
+ # @return [Array<(FilesSummaryDTO, Integer, Hash)>] FilesSummaryDTO data, response status code and response headers
1951
+ def user_files_summary_with_http_info(opts = {})
2003
1952
  if @api_client.config.debugging
2004
- @api_client.config.logger.debug 'Calling API: UserApi.user_files_download ...'
1953
+ @api_client.config.logger.debug 'Calling API: UserApi.user_files_summary ...'
1954
+ end
1955
+ allowable_values = ["en", "es", "fr", "de", "jp", "cn", "IT", "RU"]
1956
+ if @api_client.config.client_side_validation && opts[:'language'] && !allowable_values.include?(opts[:'language'])
1957
+ fail ArgumentError, "invalid value for \"language\", must be one of #{allowable_values}"
2005
1958
  end
2006
1959
  allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
2007
1960
  if @api_client.config.client_side_validation && opts[:'primary_mood_cluster'] && !allowable_values.include?(opts[:'primary_mood_cluster'])
@@ -2063,6 +2016,10 @@ module SongtradrApiClientRuby
2063
2016
  if @api_client.config.client_side_validation && opts[:'scale'] && !allowable_values.include?(opts[:'scale'])
2064
2017
  fail ArgumentError, "invalid value for \"scale\", must be one of #{allowable_values}"
2065
2018
  end
2019
+ allowable_values = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"]
2020
+ if @api_client.config.client_side_validation && opts[:'key'] && !allowable_values.include?(opts[:'key'])
2021
+ fail ArgumentError, "invalid value for \"key\", must be one of #{allowable_values}"
2022
+ end
2066
2023
  allowable_values = ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"]
2067
2024
  if @api_client.config.client_side_validation && opts[:'rhythm'] && !allowable_values.include?(opts[:'rhythm'])
2068
2025
  fail ArgumentError, "invalid value for \"rhythm\", must be one of #{allowable_values}"
@@ -2123,20 +2080,28 @@ module SongtradrApiClientRuby
2123
2080
  if @api_client.config.client_side_validation && opts[:'audience_gender'] && !allowable_values.include?(opts[:'audience_gender'])
2124
2081
  fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{allowable_values}"
2125
2082
  end
2126
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2127
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UserApi.user_files_download, must be greater than or equal to 0.'
2083
+ allowable_values = ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"]
2084
+ if @api_client.config.client_side_validation && opts[:'origin_decade'] && !allowable_values.include?(opts[:'origin_decade'])
2085
+ fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{allowable_values}"
2128
2086
  end
2129
-
2130
- if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
2131
- fail ArgumentError, 'invalid value for "opts[:"size"]" when calling UserApi.user_files_download, must be greater than or equal to 1.'
2087
+ allowable_values = ["curateable", "uncurateable"]
2088
+ if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
2089
+ fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
2090
+ end
2091
+ allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax", "karaoke"]
2092
+ if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
2093
+ fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
2094
+ end
2095
+ allowable_values = ["Spotify", "TikTok", "Unfitting", "YouTube"]
2096
+ if @api_client.config.client_side_validation && opts[:'channel_suitability'] && !allowable_values.include?(opts[:'channel_suitability'])
2097
+ fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{allowable_values}"
2132
2098
  end
2133
-
2134
2099
  # resource path
2135
- local_var_path = '/api/v1/user/filesDownload'
2100
+ local_var_path = '/api/v1/user/filesSummary'
2136
2101
 
2137
2102
  # query parameters
2138
2103
  query_params = opts[:query_params] || {}
2139
- query_params[:'isrc'] = opts[:'isrc'] if !opts[:'isrc'].nil?
2104
+ query_params[:'ISRC'] = opts[:'isrc'] if !opts[:'isrc'].nil?
2140
2105
  query_params[:'contributor'] = opts[:'contributor'] if !opts[:'contributor'].nil?
2141
2106
  query_params[:'mainArtist'] = opts[:'main_artist'] if !opts[:'main_artist'].nil?
2142
2107
  query_params[:'composer'] = opts[:'composer'] if !opts[:'composer'].nil?
@@ -2160,6 +2125,7 @@ module SongtradrApiClientRuby
2160
2125
  query_params[:'soundGeneration'] = opts[:'sound_generation'] if !opts[:'sound_generation'].nil?
2161
2126
  query_params[:'tempo'] = opts[:'tempo'] if !opts[:'tempo'].nil?
2162
2127
  query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
2128
+ query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
2163
2129
  query_params[:'rhythm'] = opts[:'rhythm'] if !opts[:'rhythm'].nil?
2164
2130
  query_params[:'primarySoundCharacter'] = opts[:'primary_sound_character'] if !opts[:'primary_sound_character'].nil?
2165
2131
  query_params[:'timbre'] = opts[:'timbre'] if !opts[:'timbre'].nil?
@@ -2175,6 +2141,11 @@ module SongtradrApiClientRuby
2175
2141
  query_params[:'audienceAge'] = opts[:'audience_age'] if !opts[:'audience_age'].nil?
2176
2142
  query_params[:'audienceRegion'] = opts[:'audience_region'] if !opts[:'audience_region'].nil?
2177
2143
  query_params[:'audienceGender'] = opts[:'audience_gender'] if !opts[:'audience_gender'].nil?
2144
+ query_params[:'originDecade'] = opts[:'origin_decade'] if !opts[:'origin_decade'].nil?
2145
+ query_params[:'curateability'] = opts[:'curateability'] if !opts[:'curateability'].nil?
2146
+ query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
2147
+ query_params[:'channelSuitability'] = opts[:'channel_suitability'] if !opts[:'channel_suitability'].nil?
2148
+ query_params[:'similarToRecording'] = opts[:'similar_to_recording'] if !opts[:'similar_to_recording'].nil?
2178
2149
  query_params[:'songtradrTrackId'] = opts[:'songtradr_track_id'] if !opts[:'songtradr_track_id'].nil?
2179
2150
  query_params[:'usageName'] = opts[:'usage_name'] if !opts[:'usage_name'].nil?
2180
2151
  query_params[:'bpmMin'] = opts[:'bpm_min'] if !opts[:'bpm_min'].nil?
@@ -2187,9 +2158,6 @@ module SongtradrApiClientRuby
2187
2158
  query_params[:'maxUploadEndTime'] = opts[:'max_upload_end_time'] if !opts[:'max_upload_end_time'].nil?
2188
2159
  query_params[:'fingerprintStatus'] = opts[:'fingerprint_status'] if !opts[:'fingerprint_status'].nil?
2189
2160
  query_params[:'inferenceStatus'] = opts[:'inference_status'] if !opts[:'inference_status'].nil?
2190
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2191
- query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
2192
- query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
2193
2161
 
2194
2162
  # header parameters
2195
2163
  header_params = opts[:header_params] || {}
@@ -2203,438 +2171,13 @@ module SongtradrApiClientRuby
2203
2171
  post_body = opts[:debug_body]
2204
2172
 
2205
2173
  # return_type
2206
- return_type = opts[:debug_return_type] || 'Array<FileMinimalWithUrlDTO>'
2174
+ return_type = opts[:debug_return_type] || 'FilesSummaryDTO'
2207
2175
 
2208
2176
  # auth_names
2209
2177
  auth_names = opts[:debug_auth_names] || ['bearer-jwt']
2210
2178
 
2211
2179
  new_options = opts.merge(
2212
- :operation => :"UserApi.user_files_download",
2213
- :header_params => header_params,
2214
- :query_params => query_params,
2215
- :form_params => form_params,
2216
- :body => post_body,
2217
- :auth_names => auth_names,
2218
- :return_type => return_type
2219
- )
2220
-
2221
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2222
- if @api_client.config.debugging
2223
- @api_client.config.logger.debug "API called: UserApi#user_files_download\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2224
- end
2225
- return data, status_code, headers
2226
- end
2227
-
2228
- # Status details for files.
2229
- # @param object_keys [String] Comma-separated list of objectKeys of the files.
2230
- # @param [Hash] opts the optional parameters
2231
- # @return [Array<FileSmallDTO>]
2232
- def user_files_status(object_keys, opts = {})
2233
- data, _status_code, _headers = user_files_status_with_http_info(object_keys, opts)
2234
- data
2235
- end
2236
-
2237
- # Status details for files.
2238
- # @param object_keys [String] Comma-separated list of objectKeys of the files.
2239
- # @param [Hash] opts the optional parameters
2240
- # @return [Array<(Array<FileSmallDTO>, Integer, Hash)>] Array<FileSmallDTO> data, response status code and response headers
2241
- def user_files_status_with_http_info(object_keys, opts = {})
2242
- if @api_client.config.debugging
2243
- @api_client.config.logger.debug 'Calling API: UserApi.user_files_status ...'
2244
- end
2245
- # verify the required parameter 'object_keys' is set
2246
- if @api_client.config.client_side_validation && object_keys.nil?
2247
- fail ArgumentError, "Missing the required parameter 'object_keys' when calling UserApi.user_files_status"
2248
- end
2249
- # resource path
2250
- local_var_path = '/api/v1/user/filesStatus'
2251
-
2252
- # query parameters
2253
- query_params = opts[:query_params] || {}
2254
- query_params[:'objectKeys'] = object_keys
2255
-
2256
- # header parameters
2257
- header_params = opts[:header_params] || {}
2258
- # HTTP header 'Accept' (if needed)
2259
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2260
-
2261
- # form parameters
2262
- form_params = opts[:form_params] || {}
2263
-
2264
- # http body (model)
2265
- post_body = opts[:debug_body]
2266
-
2267
- # return_type
2268
- return_type = opts[:debug_return_type] || 'Array<FileSmallDTO>'
2269
-
2270
- # auth_names
2271
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
2272
-
2273
- new_options = opts.merge(
2274
- :operation => :"UserApi.user_files_status",
2275
- :header_params => header_params,
2276
- :query_params => query_params,
2277
- :form_params => form_params,
2278
- :body => post_body,
2279
- :auth_names => auth_names,
2280
- :return_type => return_type
2281
- )
2282
-
2283
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2284
- if @api_client.config.debugging
2285
- @api_client.config.logger.debug "API called: UserApi#user_files_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2286
- end
2287
- return data, status_code, headers
2288
- end
2289
-
2290
- # Summary fo your files.
2291
- # @param [Hash] opts the optional parameters
2292
- # @option opts [String] :isrc Search for a ISRC
2293
- # @option opts [String] :contributor Search for a name that was involved as any contributor.
2294
- # @option opts [String] :main_artist Search for a main artist.
2295
- # @option opts [String] :composer Search for a composer.
2296
- # @option opts [String] :title Search for a title.
2297
- # @option opts [String] :language Search for a language of the lyrics.
2298
- # @option opts [Array<String>] :genre_names
2299
- # @option opts [Array<String>] :tag_names
2300
- # @option opts [Time] :release_date
2301
- # @option opts [String] :primary_mood_cluster
2302
- # @option opts [String] :secondary_mood_cluster
2303
- # @option opts [String] :tertiary_mood_cluster
2304
- # @option opts [String] :valence
2305
- # @option opts [String] :arousal
2306
- # @option opts [String] :pleasantness
2307
- # @option opts [String] :engagement
2308
- # @option opts [String] :vocals
2309
- # @option opts [String] :dominant_instrument
2310
- # @option opts [String] :secondary_instrument
2311
- # @option opts [String] :tertiary_instrument
2312
- # @option opts [String] :energy
2313
- # @option opts [String] :sound_generation
2314
- # @option opts [String] :tempo
2315
- # @option opts [String] :scale
2316
- # @option opts [String] :rhythm
2317
- # @option opts [String] :primary_sound_character
2318
- # @option opts [String] :timbre
2319
- # @option opts [String] :roughness
2320
- # @option opts [String] :tonality
2321
- # @option opts [String] :harmony
2322
- # @option opts [String] :texture
2323
- # @option opts [String] :groovyness
2324
- # @option opts [String] :space
2325
- # @option opts [String] :production_rating
2326
- # @option opts [String] :performance_rating
2327
- # @option opts [String] :song_rating
2328
- # @option opts [String] :audience_age
2329
- # @option opts [String] :audience_region
2330
- # @option opts [String] :audience_gender
2331
- # @option opts [String] :origin_decade
2332
- # @option opts [String] :curateability
2333
- # @option opts [String] :use_case
2334
- # @option opts [String] :channel_suitability
2335
- # @option opts [String] :similar_to_recording
2336
- # @option opts [String] :songtradr_track_id
2337
- # @option opts [String] :usage_name
2338
- # @option opts [Integer] :bpm_min Search for a minimal bpm.
2339
- # @option opts [Integer] :bpm_max Search for a maximal bpm.
2340
- # @option opts [String] :name Search for a file name.
2341
- # @option opts [String] :folder Search for a folder.
2342
- # @option opts [String] :extension Search for a file extension.
2343
- # @option opts [Time] :upload_end_time
2344
- # @option opts [Time] :min_upload_end_time
2345
- # @option opts [Time] :max_upload_end_time
2346
- # @option opts [String] :fingerprint_status Search for a fingerprint status.
2347
- # @option opts [String] :inference_status Search for a inference status.
2348
- # @return [FilesSummaryDTO]
2349
- def user_files_summary(opts = {})
2350
- data, _status_code, _headers = user_files_summary_with_http_info(opts)
2351
- data
2352
- end
2353
-
2354
- # Summary fo your files.
2355
- # @param [Hash] opts the optional parameters
2356
- # @option opts [String] :isrc Search for a ISRC
2357
- # @option opts [String] :contributor Search for a name that was involved as any contributor.
2358
- # @option opts [String] :main_artist Search for a main artist.
2359
- # @option opts [String] :composer Search for a composer.
2360
- # @option opts [String] :title Search for a title.
2361
- # @option opts [String] :language Search for a language of the lyrics.
2362
- # @option opts [Array<String>] :genre_names
2363
- # @option opts [Array<String>] :tag_names
2364
- # @option opts [Time] :release_date
2365
- # @option opts [String] :primary_mood_cluster
2366
- # @option opts [String] :secondary_mood_cluster
2367
- # @option opts [String] :tertiary_mood_cluster
2368
- # @option opts [String] :valence
2369
- # @option opts [String] :arousal
2370
- # @option opts [String] :pleasantness
2371
- # @option opts [String] :engagement
2372
- # @option opts [String] :vocals
2373
- # @option opts [String] :dominant_instrument
2374
- # @option opts [String] :secondary_instrument
2375
- # @option opts [String] :tertiary_instrument
2376
- # @option opts [String] :energy
2377
- # @option opts [String] :sound_generation
2378
- # @option opts [String] :tempo
2379
- # @option opts [String] :scale
2380
- # @option opts [String] :rhythm
2381
- # @option opts [String] :primary_sound_character
2382
- # @option opts [String] :timbre
2383
- # @option opts [String] :roughness
2384
- # @option opts [String] :tonality
2385
- # @option opts [String] :harmony
2386
- # @option opts [String] :texture
2387
- # @option opts [String] :groovyness
2388
- # @option opts [String] :space
2389
- # @option opts [String] :production_rating
2390
- # @option opts [String] :performance_rating
2391
- # @option opts [String] :song_rating
2392
- # @option opts [String] :audience_age
2393
- # @option opts [String] :audience_region
2394
- # @option opts [String] :audience_gender
2395
- # @option opts [String] :origin_decade
2396
- # @option opts [String] :curateability
2397
- # @option opts [String] :use_case
2398
- # @option opts [String] :channel_suitability
2399
- # @option opts [String] :similar_to_recording
2400
- # @option opts [String] :songtradr_track_id
2401
- # @option opts [String] :usage_name
2402
- # @option opts [Integer] :bpm_min Search for a minimal bpm.
2403
- # @option opts [Integer] :bpm_max Search for a maximal bpm.
2404
- # @option opts [String] :name Search for a file name.
2405
- # @option opts [String] :folder Search for a folder.
2406
- # @option opts [String] :extension Search for a file extension.
2407
- # @option opts [Time] :upload_end_time
2408
- # @option opts [Time] :min_upload_end_time
2409
- # @option opts [Time] :max_upload_end_time
2410
- # @option opts [String] :fingerprint_status Search for a fingerprint status.
2411
- # @option opts [String] :inference_status Search for a inference status.
2412
- # @return [Array<(FilesSummaryDTO, Integer, Hash)>] FilesSummaryDTO data, response status code and response headers
2413
- def user_files_summary_with_http_info(opts = {})
2414
- if @api_client.config.debugging
2415
- @api_client.config.logger.debug 'Calling API: UserApi.user_files_summary ...'
2416
- end
2417
- allowable_values = ["en", "es", "fr", "de", "jp", "cn", "IT", "RU"]
2418
- if @api_client.config.client_side_validation && opts[:'language'] && !allowable_values.include?(opts[:'language'])
2419
- fail ArgumentError, "invalid value for \"language\", must be one of #{allowable_values}"
2420
- end
2421
- allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
2422
- if @api_client.config.client_side_validation && opts[:'primary_mood_cluster'] && !allowable_values.include?(opts[:'primary_mood_cluster'])
2423
- fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{allowable_values}"
2424
- end
2425
- allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
2426
- if @api_client.config.client_side_validation && opts[:'secondary_mood_cluster'] && !allowable_values.include?(opts[:'secondary_mood_cluster'])
2427
- fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{allowable_values}"
2428
- end
2429
- allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
2430
- if @api_client.config.client_side_validation && opts[:'tertiary_mood_cluster'] && !allowable_values.include?(opts[:'tertiary_mood_cluster'])
2431
- fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{allowable_values}"
2432
- end
2433
- allowable_values = ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"]
2434
- if @api_client.config.client_side_validation && opts[:'valence'] && !allowable_values.include?(opts[:'valence'])
2435
- fail ArgumentError, "invalid value for \"valence\", must be one of #{allowable_values}"
2436
- end
2437
- allowable_values = ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"]
2438
- if @api_client.config.client_side_validation && opts[:'arousal'] && !allowable_values.include?(opts[:'arousal'])
2439
- fail ArgumentError, "invalid value for \"arousal\", must be one of #{allowable_values}"
2440
- end
2441
- allowable_values = ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"]
2442
- if @api_client.config.client_side_validation && opts[:'pleasantness'] && !allowable_values.include?(opts[:'pleasantness'])
2443
- fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{allowable_values}"
2444
- end
2445
- allowable_values = ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"]
2446
- if @api_client.config.client_side_validation && opts[:'engagement'] && !allowable_values.include?(opts[:'engagement'])
2447
- fail ArgumentError, "invalid value for \"engagement\", must be one of #{allowable_values}"
2448
- end
2449
- allowable_values = ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"]
2450
- if @api_client.config.client_side_validation && opts[:'vocals'] && !allowable_values.include?(opts[:'vocals'])
2451
- fail ArgumentError, "invalid value for \"vocals\", must be one of #{allowable_values}"
2452
- end
2453
- allowable_values = ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"]
2454
- if @api_client.config.client_side_validation && opts[:'dominant_instrument'] && !allowable_values.include?(opts[:'dominant_instrument'])
2455
- fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{allowable_values}"
2456
- end
2457
- allowable_values = ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"]
2458
- if @api_client.config.client_side_validation && opts[:'secondary_instrument'] && !allowable_values.include?(opts[:'secondary_instrument'])
2459
- fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{allowable_values}"
2460
- end
2461
- allowable_values = ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"]
2462
- if @api_client.config.client_side_validation && opts[:'tertiary_instrument'] && !allowable_values.include?(opts[:'tertiary_instrument'])
2463
- fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{allowable_values}"
2464
- end
2465
- allowable_values = ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"]
2466
- if @api_client.config.client_side_validation && opts[:'energy'] && !allowable_values.include?(opts[:'energy'])
2467
- fail ArgumentError, "invalid value for \"energy\", must be one of #{allowable_values}"
2468
- end
2469
- allowable_values = ["acoustic", "electric", "electronic", "mixed sound generation"]
2470
- if @api_client.config.client_side_validation && opts[:'sound_generation'] && !allowable_values.include?(opts[:'sound_generation'])
2471
- fail ArgumentError, "invalid value for \"sound_generation\", must be one of #{allowable_values}"
2472
- end
2473
- allowable_values = ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"]
2474
- if @api_client.config.client_side_validation && opts[:'tempo'] && !allowable_values.include?(opts[:'tempo'])
2475
- fail ArgumentError, "invalid value for \"tempo\", must be one of #{allowable_values}"
2476
- end
2477
- allowable_values = ["major key", "minor key", "neutral key"]
2478
- if @api_client.config.client_side_validation && opts[:'scale'] && !allowable_values.include?(opts[:'scale'])
2479
- fail ArgumentError, "invalid value for \"scale\", must be one of #{allowable_values}"
2480
- end
2481
- allowable_values = ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"]
2482
- if @api_client.config.client_side_validation && opts[:'rhythm'] && !allowable_values.include?(opts[:'rhythm'])
2483
- fail ArgumentError, "invalid value for \"rhythm\", must be one of #{allowable_values}"
2484
- end
2485
- allowable_values = ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"]
2486
- if @api_client.config.client_side_validation && opts[:'primary_sound_character'] && !allowable_values.include?(opts[:'primary_sound_character'])
2487
- fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{allowable_values}"
2488
- end
2489
- allowable_values = ["very warm", "warm", "moderate timbre", "bright", "very bright"]
2490
- if @api_client.config.client_side_validation && opts[:'timbre'] && !allowable_values.include?(opts[:'timbre'])
2491
- fail ArgumentError, "invalid value for \"timbre\", must be one of #{allowable_values}"
2492
- end
2493
- allowable_values = ["very clear", "clear", "moderate roughness", "distorted", "very distorted"]
2494
- if @api_client.config.client_side_validation && opts[:'roughness'] && !allowable_values.include?(opts[:'roughness'])
2495
- fail ArgumentError, "invalid value for \"roughness\", must be one of #{allowable_values}"
2496
- end
2497
- allowable_values = ["monotonous", "moderate melodiousness", "melodious", "atonal"]
2498
- if @api_client.config.client_side_validation && opts[:'tonality'] && !allowable_values.include?(opts[:'tonality'])
2499
- fail ArgumentError, "invalid value for \"tonality\", must be one of #{allowable_values}"
2500
- end
2501
- allowable_values = ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"]
2502
- if @api_client.config.client_side_validation && opts[:'harmony'] && !allowable_values.include?(opts[:'harmony'])
2503
- fail ArgumentError, "invalid value for \"harmony\", must be one of #{allowable_values}"
2504
- end
2505
- allowable_values = ["very thin", "thin", "moderate texture", "full", "very full"]
2506
- if @api_client.config.client_side_validation && opts[:'texture'] && !allowable_values.include?(opts[:'texture'])
2507
- fail ArgumentError, "invalid value for \"texture\", must be one of #{allowable_values}"
2508
- end
2509
- allowable_values = ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"]
2510
- if @api_client.config.client_side_validation && opts[:'groovyness'] && !allowable_values.include?(opts[:'groovyness'])
2511
- fail ArgumentError, "invalid value for \"groovyness\", must be one of #{allowable_values}"
2512
- end
2513
- allowable_values = ["very compact", "compact", "moderate space", "wide", "very wide"]
2514
- if @api_client.config.client_side_validation && opts[:'space'] && !allowable_values.include?(opts[:'space'])
2515
- fail ArgumentError, "invalid value for \"space\", must be one of #{allowable_values}"
2516
- end
2517
- allowable_values = ["low production quality", "medium production quality", "high production quality"]
2518
- if @api_client.config.client_side_validation && opts[:'production_rating'] && !allowable_values.include?(opts[:'production_rating'])
2519
- fail ArgumentError, "invalid value for \"production_rating\", must be one of #{allowable_values}"
2520
- end
2521
- allowable_values = ["low performance quality", "medium performance quality", "high performance quality"]
2522
- if @api_client.config.client_side_validation && opts[:'performance_rating'] && !allowable_values.include?(opts[:'performance_rating'])
2523
- fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{allowable_values}"
2524
- end
2525
- allowable_values = ["low song quality", "medium song quality", "high song quality"]
2526
- if @api_client.config.client_side_validation && opts[:'song_rating'] && !allowable_values.include?(opts[:'song_rating'])
2527
- fail ArgumentError, "invalid value for \"song_rating\", must be one of #{allowable_values}"
2528
- end
2529
- allowable_values = ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"]
2530
- if @api_client.config.client_side_validation && opts[:'audience_age'] && !allowable_values.include?(opts[:'audience_age'])
2531
- fail ArgumentError, "invalid value for \"audience_age\", must be one of #{allowable_values}"
2532
- end
2533
- allowable_values = ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"]
2534
- if @api_client.config.client_side_validation && opts[:'audience_region'] && !allowable_values.include?(opts[:'audience_region'])
2535
- fail ArgumentError, "invalid value for \"audience_region\", must be one of #{allowable_values}"
2536
- end
2537
- allowable_values = ["male", "female"]
2538
- if @api_client.config.client_side_validation && opts[:'audience_gender'] && !allowable_values.include?(opts[:'audience_gender'])
2539
- fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{allowable_values}"
2540
- end
2541
- allowable_values = ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"]
2542
- if @api_client.config.client_side_validation && opts[:'origin_decade'] && !allowable_values.include?(opts[:'origin_decade'])
2543
- fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{allowable_values}"
2544
- end
2545
- allowable_values = ["curateable", "uncurateable"]
2546
- if @api_client.config.client_side_validation && opts[:'curateability'] && !allowable_values.include?(opts[:'curateability'])
2547
- fail ArgumentError, "invalid value for \"curateability\", must be one of #{allowable_values}"
2548
- end
2549
- allowable_values = ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"]
2550
- if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
2551
- fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
2552
- end
2553
- allowable_values = ["Spotify", "TikTok", "Unfitting", "YouTube"]
2554
- if @api_client.config.client_side_validation && opts[:'channel_suitability'] && !allowable_values.include?(opts[:'channel_suitability'])
2555
- fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{allowable_values}"
2556
- end
2557
- # resource path
2558
- local_var_path = '/api/v1/user/filesSummary'
2559
-
2560
- # query parameters
2561
- query_params = opts[:query_params] || {}
2562
- query_params[:'ISRC'] = opts[:'isrc'] if !opts[:'isrc'].nil?
2563
- query_params[:'contributor'] = opts[:'contributor'] if !opts[:'contributor'].nil?
2564
- query_params[:'mainArtist'] = opts[:'main_artist'] if !opts[:'main_artist'].nil?
2565
- query_params[:'composer'] = opts[:'composer'] if !opts[:'composer'].nil?
2566
- query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
2567
- query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
2568
- query_params[:'genreNames'] = @api_client.build_collection_param(opts[:'genre_names'], :multi) if !opts[:'genre_names'].nil?
2569
- query_params[:'tagNames'] = @api_client.build_collection_param(opts[:'tag_names'], :multi) if !opts[:'tag_names'].nil?
2570
- query_params[:'releaseDate'] = opts[:'release_date'] if !opts[:'release_date'].nil?
2571
- query_params[:'primaryMoodCluster'] = opts[:'primary_mood_cluster'] if !opts[:'primary_mood_cluster'].nil?
2572
- query_params[:'secondaryMoodCluster'] = opts[:'secondary_mood_cluster'] if !opts[:'secondary_mood_cluster'].nil?
2573
- query_params[:'tertiaryMoodCluster'] = opts[:'tertiary_mood_cluster'] if !opts[:'tertiary_mood_cluster'].nil?
2574
- query_params[:'valence'] = opts[:'valence'] if !opts[:'valence'].nil?
2575
- query_params[:'arousal'] = opts[:'arousal'] if !opts[:'arousal'].nil?
2576
- query_params[:'pleasantness'] = opts[:'pleasantness'] if !opts[:'pleasantness'].nil?
2577
- query_params[:'engagement'] = opts[:'engagement'] if !opts[:'engagement'].nil?
2578
- query_params[:'vocals'] = opts[:'vocals'] if !opts[:'vocals'].nil?
2579
- query_params[:'dominantInstrument'] = opts[:'dominant_instrument'] if !opts[:'dominant_instrument'].nil?
2580
- query_params[:'secondaryInstrument'] = opts[:'secondary_instrument'] if !opts[:'secondary_instrument'].nil?
2581
- query_params[:'tertiaryInstrument'] = opts[:'tertiary_instrument'] if !opts[:'tertiary_instrument'].nil?
2582
- query_params[:'energy'] = opts[:'energy'] if !opts[:'energy'].nil?
2583
- query_params[:'soundGeneration'] = opts[:'sound_generation'] if !opts[:'sound_generation'].nil?
2584
- query_params[:'tempo'] = opts[:'tempo'] if !opts[:'tempo'].nil?
2585
- query_params[:'scale'] = opts[:'scale'] if !opts[:'scale'].nil?
2586
- query_params[:'rhythm'] = opts[:'rhythm'] if !opts[:'rhythm'].nil?
2587
- query_params[:'primarySoundCharacter'] = opts[:'primary_sound_character'] if !opts[:'primary_sound_character'].nil?
2588
- query_params[:'timbre'] = opts[:'timbre'] if !opts[:'timbre'].nil?
2589
- query_params[:'roughness'] = opts[:'roughness'] if !opts[:'roughness'].nil?
2590
- query_params[:'tonality'] = opts[:'tonality'] if !opts[:'tonality'].nil?
2591
- query_params[:'harmony'] = opts[:'harmony'] if !opts[:'harmony'].nil?
2592
- query_params[:'texture'] = opts[:'texture'] if !opts[:'texture'].nil?
2593
- query_params[:'groovyness'] = opts[:'groovyness'] if !opts[:'groovyness'].nil?
2594
- query_params[:'space'] = opts[:'space'] if !opts[:'space'].nil?
2595
- query_params[:'productionRating'] = opts[:'production_rating'] if !opts[:'production_rating'].nil?
2596
- query_params[:'performanceRating'] = opts[:'performance_rating'] if !opts[:'performance_rating'].nil?
2597
- query_params[:'songRating'] = opts[:'song_rating'] if !opts[:'song_rating'].nil?
2598
- query_params[:'audienceAge'] = opts[:'audience_age'] if !opts[:'audience_age'].nil?
2599
- query_params[:'audienceRegion'] = opts[:'audience_region'] if !opts[:'audience_region'].nil?
2600
- query_params[:'audienceGender'] = opts[:'audience_gender'] if !opts[:'audience_gender'].nil?
2601
- query_params[:'originDecade'] = opts[:'origin_decade'] if !opts[:'origin_decade'].nil?
2602
- query_params[:'curateability'] = opts[:'curateability'] if !opts[:'curateability'].nil?
2603
- query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
2604
- query_params[:'channelSuitability'] = opts[:'channel_suitability'] if !opts[:'channel_suitability'].nil?
2605
- query_params[:'similarToRecording'] = opts[:'similar_to_recording'] if !opts[:'similar_to_recording'].nil?
2606
- query_params[:'songtradrTrackId'] = opts[:'songtradr_track_id'] if !opts[:'songtradr_track_id'].nil?
2607
- query_params[:'usageName'] = opts[:'usage_name'] if !opts[:'usage_name'].nil?
2608
- query_params[:'bpmMin'] = opts[:'bpm_min'] if !opts[:'bpm_min'].nil?
2609
- query_params[:'bpmMax'] = opts[:'bpm_max'] if !opts[:'bpm_max'].nil?
2610
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
2611
- query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
2612
- query_params[:'extension'] = opts[:'extension'] if !opts[:'extension'].nil?
2613
- query_params[:'uploadEndTime'] = opts[:'upload_end_time'] if !opts[:'upload_end_time'].nil?
2614
- query_params[:'minUploadEndTime'] = opts[:'min_upload_end_time'] if !opts[:'min_upload_end_time'].nil?
2615
- query_params[:'maxUploadEndTime'] = opts[:'max_upload_end_time'] if !opts[:'max_upload_end_time'].nil?
2616
- query_params[:'fingerprintStatus'] = opts[:'fingerprint_status'] if !opts[:'fingerprint_status'].nil?
2617
- query_params[:'inferenceStatus'] = opts[:'inference_status'] if !opts[:'inference_status'].nil?
2618
-
2619
- # header parameters
2620
- header_params = opts[:header_params] || {}
2621
- # HTTP header 'Accept' (if needed)
2622
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2623
-
2624
- # form parameters
2625
- form_params = opts[:form_params] || {}
2626
-
2627
- # http body (model)
2628
- post_body = opts[:debug_body]
2629
-
2630
- # return_type
2631
- return_type = opts[:debug_return_type] || 'FilesSummaryDTO'
2632
-
2633
- # auth_names
2634
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
2635
-
2636
- new_options = opts.merge(
2637
- :operation => :"UserApi.user_files_summary",
2180
+ :operation => :"UserApi.user_files_summary",
2638
2181
  :header_params => header_params,
2639
2182
  :query_params => query_params,
2640
2183
  :form_params => form_params,
@@ -2649,136 +2192,5 @@ module SongtradrApiClientRuby
2649
2192
  end
2650
2193
  return data, status_code, headers
2651
2194
  end
2652
-
2653
- # Your Folders
2654
- # @param [Hash] opts the optional parameters
2655
- # @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
2656
- # @option opts [Integer] :size The size of the page to be returned (default to 20)
2657
- # @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2658
- # @return [Array<String>]
2659
- def user_folders(opts = {})
2660
- data, _status_code, _headers = user_folders_with_http_info(opts)
2661
- data
2662
- end
2663
-
2664
- # Your Folders
2665
- # @param [Hash] opts the optional parameters
2666
- # @option opts [Integer] :page Zero-based page index (0..N) (default to 0)
2667
- # @option opts [Integer] :size The size of the page to be returned (default to 20)
2668
- # @option opts [Array<String>] :sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
2669
- # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
2670
- def user_folders_with_http_info(opts = {})
2671
- if @api_client.config.debugging
2672
- @api_client.config.logger.debug 'Calling API: UserApi.user_folders ...'
2673
- end
2674
- if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2675
- fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UserApi.user_folders, must be greater than or equal to 0.'
2676
- end
2677
-
2678
- if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] < 1
2679
- fail ArgumentError, 'invalid value for "opts[:"size"]" when calling UserApi.user_folders, must be greater than or equal to 1.'
2680
- end
2681
-
2682
- # resource path
2683
- local_var_path = '/api/v1/user/folders'
2684
-
2685
- # query parameters
2686
- query_params = opts[:query_params] || {}
2687
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2688
- query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
2689
- query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
2690
-
2691
- # header parameters
2692
- header_params = opts[:header_params] || {}
2693
- # HTTP header 'Accept' (if needed)
2694
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2695
-
2696
- # form parameters
2697
- form_params = opts[:form_params] || {}
2698
-
2699
- # http body (model)
2700
- post_body = opts[:debug_body]
2701
-
2702
- # return_type
2703
- return_type = opts[:debug_return_type] || 'Array<String>'
2704
-
2705
- # auth_names
2706
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
2707
-
2708
- new_options = opts.merge(
2709
- :operation => :"UserApi.user_folders",
2710
- :header_params => header_params,
2711
- :query_params => query_params,
2712
- :form_params => form_params,
2713
- :body => post_body,
2714
- :auth_names => auth_names,
2715
- :return_type => return_type
2716
- )
2717
-
2718
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2719
- if @api_client.config.debugging
2720
- @api_client.config.logger.debug "API called: UserApi#user_folders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2721
- end
2722
- return data, status_code, headers
2723
- end
2724
-
2725
- # @param username [String]
2726
- # @param [Hash] opts the optional parameters
2727
- # @return [Array<String>]
2728
- def user_referrers(username, opts = {})
2729
- data, _status_code, _headers = user_referrers_with_http_info(username, opts)
2730
- data
2731
- end
2732
-
2733
- # @param username [String]
2734
- # @param [Hash] opts the optional parameters
2735
- # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
2736
- def user_referrers_with_http_info(username, opts = {})
2737
- if @api_client.config.debugging
2738
- @api_client.config.logger.debug 'Calling API: UserApi.user_referrers ...'
2739
- end
2740
- # verify the required parameter 'username' is set
2741
- if @api_client.config.client_side_validation && username.nil?
2742
- fail ArgumentError, "Missing the required parameter 'username' when calling UserApi.user_referrers"
2743
- end
2744
- # resource path
2745
- local_var_path = '/api/v1/user/referrers/{username}'.sub('{' + 'username' + '}', CGI.escape(username.to_s))
2746
-
2747
- # query parameters
2748
- query_params = opts[:query_params] || {}
2749
-
2750
- # header parameters
2751
- header_params = opts[:header_params] || {}
2752
- # HTTP header 'Accept' (if needed)
2753
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2754
-
2755
- # form parameters
2756
- form_params = opts[:form_params] || {}
2757
-
2758
- # http body (model)
2759
- post_body = opts[:debug_body]
2760
-
2761
- # return_type
2762
- return_type = opts[:debug_return_type] || 'Array<String>'
2763
-
2764
- # auth_names
2765
- auth_names = opts[:debug_auth_names] || ['bearer-jwt']
2766
-
2767
- new_options = opts.merge(
2768
- :operation => :"UserApi.user_referrers",
2769
- :header_params => header_params,
2770
- :query_params => query_params,
2771
- :form_params => form_params,
2772
- :body => post_body,
2773
- :auth_names => auth_names,
2774
- :return_type => return_type
2775
- )
2776
-
2777
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2778
- if @api_client.config.debugging
2779
- @api_client.config.logger.debug "API called: UserApi#user_referrers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2780
- end
2781
- return data, status_code, headers
2782
- end
2783
2195
  end
2784
2196
  end