rapidata 2.23.2__py3-none-any.whl → 3.0.1__py3-none-any.whl

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.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

Files changed (865) hide show
  1. rapidata/__init__.py +31 -14
  2. rapidata/api_client/__init__.py +84 -312
  3. rapidata/api_client/api/__init__.py +12 -3
  4. rapidata/api_client/api/asset_api.py +853 -0
  5. rapidata/api_client/api/audience_api.py +3044 -0
  6. rapidata/api_client/api/benchmark_api.py +4307 -0
  7. rapidata/api_client/api/campaign_api.py +232 -207
  8. rapidata/api_client/api/client_api.py +166 -145
  9. rapidata/api_client/api/coco_api.py +0 -571
  10. rapidata/api_client/api/compare_workflow_api.py +11 -10
  11. rapidata/api_client/api/customer_rapid_api.py +2216 -0
  12. rapidata/api_client/api/datapoint_api.py +8 -797
  13. rapidata/api_client/api/dataset_api.py +276 -2858
  14. rapidata/api_client/api/evaluation_workflow_api.py +29 -82
  15. rapidata/api_client/api/feedback_api.py +11 -281
  16. rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
  17. rapidata/api_client/api/identity_api.py +83 -1171
  18. rapidata/api_client/api/job_api.py +4200 -0
  19. rapidata/api_client/api/job_definition_api.py +319 -0
  20. rapidata/api_client/api/job_revision_api.py +335 -0
  21. rapidata/api_client/api/leaderboard_api.py +2855 -0
  22. rapidata/api_client/api/newsletter_api.py +30 -317
  23. rapidata/api_client/api/order_api.py +758 -5487
  24. rapidata/api_client/api/participant_api.py +2181 -0
  25. rapidata/api_client/api/pipeline_api.py +24 -1783
  26. rapidata/api_client/api/prompt_api.py +320 -0
  27. rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
  28. rapidata/api_client/api/sample_api.py +300 -0
  29. rapidata/api_client/api/simple_workflow_api.py +11 -10
  30. rapidata/api_client/api/survey_api.py +304 -0
  31. rapidata/api_client/api/user_rapid_api.py +1389 -0
  32. rapidata/api_client/api/validation_set_api.py +510 -3230
  33. rapidata/api_client/api/workflow_api.py +32 -825
  34. rapidata/api_client/api_client.py +2 -2
  35. rapidata/api_client/configuration.py +16 -29
  36. rapidata/api_client/exceptions.py +2 -2
  37. rapidata/api_client/models/__init__.py +65 -291
  38. rapidata/api_client/models/ab_test_selection_a_inner.py +27 -13
  39. rapidata/api_client/models/add_campaign_model.py +8 -3
  40. rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
  41. rapidata/api_client/models/add_user_response_result.py +10 -5
  42. rapidata/api_client/models/add_validation_rapid_model.py +49 -28
  43. rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
  44. rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
  45. rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
  46. rapidata/api_client/models/add_validation_rapid_model_truth.py +32 -12
  47. rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
  48. rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
  49. rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
  50. rapidata/api_client/models/add_validation_text_rapid_model.py +4 -6
  51. rapidata/api_client/models/age_user_filter_model.py +2 -2
  52. rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
  53. rapidata/api_client/models/aggregated_orders_model.py +98 -0
  54. rapidata/api_client/models/aggregator_type.py +4 -2
  55. rapidata/api_client/models/and_filter.py +121 -0
  56. rapidata/api_client/models/and_filter_filters_inner.py +282 -0
  57. rapidata/api_client/models/and_user_filter_model.py +106 -0
  58. rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
  59. rapidata/api_client/models/are_rapids_active_result.py +2 -2
  60. rapidata/api_client/models/asset_metadata.py +106 -0
  61. rapidata/api_client/models/asset_metadata_asset.py +170 -0
  62. rapidata/api_client/models/asset_metadata_model.py +96 -0
  63. rapidata/api_client/models/asset_metadata_model_asset.py +170 -0
  64. rapidata/api_client/models/asset_type.py +40 -0
  65. rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
  66. rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
  67. rapidata/api_client/models/audience_job_state.py +38 -0
  68. rapidata/api_client/models/audience_status.py +39 -0
  69. rapidata/api_client/models/benchmark_query_result.py +98 -0
  70. rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
  71. rapidata/api_client/models/boost_leaderboard_model.py +89 -0
  72. rapidata/api_client/models/boost_mode.py +37 -0
  73. rapidata/api_client/models/boost_query_result.py +97 -0
  74. rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
  75. rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
  76. rapidata/api_client/models/boost_status.py +39 -0
  77. rapidata/api_client/models/boosting_profile.py +91 -0
  78. rapidata/api_client/models/box_shape.py +4 -33
  79. rapidata/api_client/models/campaign_filter.py +98 -0
  80. rapidata/api_client/models/campaign_query_result.py +15 -13
  81. rapidata/api_client/models/campaign_status.py +2 -2
  82. rapidata/api_client/models/change_boost_model.py +89 -0
  83. rapidata/api_client/models/classification_metadata.py +12 -1
  84. rapidata/api_client/models/classify_payload.py +14 -15
  85. rapidata/api_client/models/classify_payload_category.py +89 -0
  86. rapidata/api_client/models/client_model.py +181 -0
  87. rapidata/api_client/models/clients_query_result.py +5 -5
  88. rapidata/api_client/models/clone_order_model.py +6 -8
  89. rapidata/api_client/models/clone_order_result.py +9 -4
  90. rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
  91. rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
  92. rapidata/api_client/models/compare_result.py +1 -10
  93. rapidata/api_client/models/compare_workflow_config.py +34 -23
  94. rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
  95. rapidata/api_client/models/compare_workflow_config_metadata_value.py +75 -17
  96. rapidata/api_client/models/compare_workflow_config_model.py +15 -5
  97. rapidata/api_client/models/compare_workflow_model.py +34 -6
  98. rapidata/api_client/models/compare_workflow_model1.py +20 -9
  99. rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
  100. rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
  101. rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
  102. rapidata/api_client/models/comparison_operator.py +2 -2
  103. rapidata/api_client/models/conditional_validation_selection.py +8 -11
  104. rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
  105. rapidata/api_client/models/confidence_interval.py +89 -0
  106. rapidata/api_client/models/count_metadata.py +12 -1
  107. rapidata/api_client/models/country_filter.py +98 -0
  108. rapidata/api_client/models/create_audience_request.py +122 -0
  109. rapidata/api_client/models/create_audience_result.py +87 -0
  110. rapidata/api_client/models/create_benchmark_model.py +87 -0
  111. rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
  112. rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
  113. rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
  114. rapidata/api_client/models/create_benchmark_result.py +87 -0
  115. rapidata/api_client/models/create_bridge_token_result.py +2 -2
  116. rapidata/api_client/models/create_client_model.py +6 -13
  117. rapidata/api_client/models/create_complex_order_model.py +9 -9
  118. rapidata/api_client/models/create_complex_order_result.py +6 -4
  119. rapidata/api_client/models/create_customer_client_result.py +89 -0
  120. rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +25 -11
  121. rapidata/api_client/models/create_datapoint_model.py +124 -0
  122. rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
  123. rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
  124. rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
  125. rapidata/api_client/models/create_datapoint_result.py +6 -18
  126. rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
  127. rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
  128. rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
  129. rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
  130. rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
  131. rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
  132. rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
  133. rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
  134. rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
  135. rapidata/api_client/models/create_job_endpoint_input.py +100 -0
  136. rapidata/api_client/models/create_job_endpoint_output.py +89 -0
  137. rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
  138. rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
  139. rapidata/api_client/models/create_leaderboard_model.py +147 -0
  140. rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
  141. rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
  142. rapidata/api_client/models/create_leaderboard_result.py +99 -0
  143. rapidata/api_client/models/create_order_definition_model.py +119 -0
  144. rapidata/api_client/models/create_order_definition_result.py +87 -0
  145. rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
  146. rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
  147. rapidata/api_client/models/create_order_model.py +30 -103
  148. rapidata/api_client/models/create_order_model_referee.py +12 -12
  149. rapidata/api_client/models/create_order_model_workflow.py +35 -21
  150. rapidata/api_client/models/create_order_result.py +6 -4
  151. rapidata/api_client/models/create_rapid_result.py +2 -2
  152. rapidata/api_client/models/create_sample_model.py +93 -0
  153. rapidata/api_client/models/create_sample_model_asset.py +154 -0
  154. rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
  155. rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
  156. rapidata/api_client/models/create_unsupported_order_model.py +6 -6
  157. rapidata/api_client/models/create_validation_set_model.py +5 -5
  158. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  159. rapidata/api_client/models/datapoint_model.py +3 -3
  160. rapidata/api_client/models/datapoint_model_paged_result.py +105 -0
  161. rapidata/api_client/models/datapoint_state.py +2 -2
  162. rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
  163. rapidata/api_client/models/definition_type.py +49 -0
  164. rapidata/api_client/models/demographic_filter.py +100 -0
  165. rapidata/api_client/models/dynamic_client_registration_request.py +160 -0
  166. rapidata/api_client/models/early_stopping_referee_model.py +3 -3
  167. rapidata/api_client/models/effort_capped_selection.py +106 -0
  168. rapidata/api_client/models/elo_config.py +2 -2
  169. rapidata/api_client/models/elo_config_model.py +6 -6
  170. rapidata/api_client/models/entity_tag_header_value.py +93 -0
  171. rapidata/api_client/models/evaluation_workflow_config.py +13 -3
  172. rapidata/api_client/models/evaluation_workflow_model.py +16 -6
  173. rapidata/api_client/models/existing_asset_input.py +109 -0
  174. rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
  175. rapidata/api_client/models/feature_flag.py +2 -2
  176. rapidata/api_client/models/feature_flag_model.py +6 -6
  177. rapidata/api_client/models/feedback_model.py +7 -7
  178. rapidata/api_client/models/file_asset.py +15 -12
  179. rapidata/api_client/models/file_asset_input.py +104 -0
  180. rapidata/api_client/models/file_asset_input1.py +104 -0
  181. rapidata/api_client/models/file_asset_input1_file.py +168 -0
  182. rapidata/api_client/models/file_asset_input2.py +104 -0
  183. rapidata/api_client/models/file_asset_input3.py +104 -0
  184. rapidata/api_client/models/file_asset_input_file.py +168 -0
  185. rapidata/api_client/models/file_asset_metadata_value.py +252 -0
  186. rapidata/api_client/models/file_asset_model_metadata_value.py +37 -51
  187. rapidata/api_client/models/file_stream_result.py +122 -0
  188. rapidata/api_client/models/file_type.py +39 -0
  189. rapidata/api_client/models/file_type_metadata.py +110 -0
  190. rapidata/api_client/models/file_type_metadata_model.py +97 -0
  191. rapidata/api_client/models/filter.py +7 -25
  192. rapidata/api_client/models/filter_operator.py +3 -2
  193. rapidata/api_client/models/fork_benchmark_result.py +87 -0
  194. rapidata/api_client/models/form_file_wrapper.py +135 -0
  195. rapidata/api_client/models/free_text_payload.py +10 -3
  196. rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
  197. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  198. rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
  199. rapidata/api_client/models/get_asset_metadata_result.py +100 -0
  200. rapidata/api_client/models/get_audience_by_id_result.py +118 -0
  201. rapidata/api_client/models/get_audience_user_state_metrics_result.py +87 -0
  202. rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
  203. rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
  204. rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
  205. rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
  206. rapidata/api_client/models/get_benchmark_by_id_result.py +98 -0
  207. rapidata/api_client/models/get_boost_result.py +97 -0
  208. rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
  209. rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
  210. rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
  211. rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
  212. rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
  213. rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
  214. rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
  215. rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
  216. rapidata/api_client/models/get_dataset_progress_result.py +2 -2
  217. rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
  218. rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
  219. rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
  220. rapidata/api_client/models/get_file_metadata_result.py +100 -0
  221. rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
  222. rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
  223. rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
  224. rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
  225. rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
  226. rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
  227. rapidata/api_client/models/get_leaderboard_by_id_result.py +135 -0
  228. rapidata/api_client/models/get_order_by_id_result.py +12 -5
  229. rapidata/api_client/models/get_participant_by_id_result.py +91 -0
  230. rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
  231. rapidata/api_client/models/get_public_orders_result.py +2 -2
  232. rapidata/api_client/models/get_public_responses_result.py +95 -0
  233. rapidata/api_client/models/get_public_responses_result_response.py +112 -0
  234. rapidata/api_client/models/get_rapid_responses_result.py +6 -12
  235. rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
  236. rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
  237. rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
  238. rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
  239. rapidata/api_client/models/get_responses_result.py +5 -5
  240. rapidata/api_client/models/get_responses_result_response.py +103 -0
  241. rapidata/api_client/models/get_sample_by_id_result.py +125 -0
  242. rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
  243. rapidata/api_client/models/get_standing_by_id_result.py +96 -0
  244. rapidata/api_client/models/get_validation_rapids_result.py +33 -33
  245. rapidata/api_client/models/get_validation_rapids_result_truth.py +25 -11
  246. rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
  247. rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
  248. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
  249. rapidata/api_client/models/get_workflow_progress_result.py +5 -11
  250. rapidata/api_client/models/get_workflow_results_result.py +34 -23
  251. rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
  252. rapidata/api_client/models/google_one_tap_login_model.py +4 -4
  253. rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
  254. rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
  255. rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
  256. rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
  257. rapidata/api_client/models/i_artifact_model.py +182 -0
  258. rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
  259. rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
  260. rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
  261. rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
  262. rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
  263. rapidata/api_client/models/i_asset.py +170 -0
  264. rapidata/api_client/models/i_asset_file_asset.py +111 -0
  265. rapidata/api_client/models/i_asset_input.py +156 -0
  266. rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
  267. rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
  268. rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
  269. rapidata/api_client/models/i_asset_model.py +170 -0
  270. rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
  271. rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
  272. rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
  273. rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
  274. rapidata/api_client/models/i_asset_multi_asset.py +121 -0
  275. rapidata/api_client/models/i_asset_null_asset.py +109 -0
  276. rapidata/api_client/models/i_asset_text_asset.py +111 -0
  277. rapidata/api_client/models/i_audience_filter.py +184 -0
  278. rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
  279. rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
  280. rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
  281. rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
  282. rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
  283. rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
  284. rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
  285. rapidata/api_client/models/i_campaign_filter.py +296 -0
  286. rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
  287. rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
  288. rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
  289. rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
  290. rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
  291. rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
  292. rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
  293. rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
  294. rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
  295. rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
  296. rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
  297. rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
  298. rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
  299. rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
  300. rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
  301. rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
  302. rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
  303. rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
  304. rapidata/api_client/models/i_dataset_model.py +126 -0
  305. rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
  306. rapidata/api_client/models/i_metadata.py +252 -0
  307. rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
  308. rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
  309. rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
  310. rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
  311. rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
  312. rapidata/api_client/models/i_metadata_input.py +126 -0
  313. rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
  314. rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
  315. rapidata/api_client/models/i_metadata_model.py +252 -0
  316. rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
  317. rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
  318. rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
  319. rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
  320. rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
  321. rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
  322. rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
  323. rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
  324. rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
  325. rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
  326. rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
  327. rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
  328. rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
  329. rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
  330. rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
  331. rapidata/api_client/models/i_order_workflow_model.py +168 -0
  332. rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
  333. rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
  334. rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
  335. rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
  336. rapidata/api_client/models/i_pair_maker_config.py +126 -0
  337. rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
  338. rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
  339. rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
  340. rapidata/api_client/models/i_pair_maker_information.py +126 -0
  341. rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
  342. rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
  343. rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
  344. rapidata/api_client/models/i_pipeline_model.py +126 -0
  345. rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
  346. rapidata/api_client/models/i_pipeline_step_model.py +168 -0
  347. rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
  348. rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
  349. rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
  350. rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
  351. rapidata/api_client/models/i_rapid_blueprint.py +252 -0
  352. rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
  353. rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
  354. rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
  355. rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
  356. rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
  357. rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
  358. rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
  359. rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
  360. rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
  361. rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
  362. rapidata/api_client/models/i_rapid_payload.py +252 -0
  363. rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
  364. rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
  365. rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
  366. rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
  367. rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
  368. rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
  369. rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
  370. rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
  371. rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
  372. rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
  373. rapidata/api_client/models/i_rapid_result.py +266 -0
  374. rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
  375. rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
  376. rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
  377. rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
  378. rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
  379. rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
  380. rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
  381. rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
  382. rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
  383. rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
  384. rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
  385. rapidata/api_client/models/i_referee_config.py +154 -0
  386. rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
  387. rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
  388. rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
  389. rapidata/api_client/models/i_referee_info.py +154 -0
  390. rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
  391. rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
  392. rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
  393. rapidata/api_client/models/i_referee_model.py +140 -0
  394. rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
  395. rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
  396. rapidata/api_client/models/i_selection.py +240 -0
  397. rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
  398. rapidata/api_client/models/i_selection_capped_selection.py +108 -0
  399. rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
  400. rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
  401. rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
  402. rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
  403. rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
  404. rapidata/api_client/models/i_selection_static_selection.py +96 -0
  405. rapidata/api_client/models/i_selection_validation_selection.py +98 -0
  406. rapidata/api_client/models/i_user_filter_model.py +296 -0
  407. rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
  408. rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
  409. rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
  410. rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
  411. rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
  412. rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
  413. rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
  414. rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
  415. rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
  416. rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
  417. rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
  418. rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
  419. rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
  420. rapidata/api_client/models/i_validation_metadata_input.py +140 -0
  421. rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
  422. rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
  423. rapidata/api_client/models/i_validation_truth.py +280 -0
  424. rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
  425. rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
  426. rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
  427. rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
  428. rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
  429. rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
  430. rapidata/api_client/models/i_validation_truth_model.py +294 -0
  431. rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
  432. rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
  433. rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
  434. rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
  435. rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
  436. rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
  437. rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
  438. rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
  439. rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
  440. rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
  441. rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
  442. rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
  443. rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
  444. rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
  445. rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
  446. rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
  447. rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
  448. rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
  449. rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
  450. rapidata/api_client/models/i_workflow_config.py +168 -0
  451. rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
  452. rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
  453. rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
  454. rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
  455. rapidata/api_client/models/i_workflow_model.py +168 -0
  456. rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
  457. rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
  458. rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
  459. rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
  460. rapidata/api_client/models/image_dimension_metadata.py +12 -1
  461. rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
  462. rapidata/api_client/models/inspect_report_result.py +2 -2
  463. rapidata/api_client/models/job_definition_revision_state.py +38 -0
  464. rapidata/api_client/models/json_web_key.py +224 -0
  465. rapidata/api_client/models/json_web_key_set.py +95 -0
  466. rapidata/api_client/models/labeling_selection.py +11 -13
  467. rapidata/api_client/models/language_filter.py +98 -0
  468. rapidata/api_client/models/leaderboard_query_result.py +135 -0
  469. rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
  470. rapidata/api_client/models/leaderboards_query_result.py +135 -0
  471. rapidata/api_client/models/line_result.py +3 -3
  472. rapidata/api_client/models/line_result_line.py +97 -0
  473. rapidata/api_client/models/line_result_line_point.py +89 -0
  474. rapidata/api_client/models/local_file_wrapper.py +120 -0
  475. rapidata/api_client/models/locate_coordinate.py +4 -13
  476. rapidata/api_client/models/location_metadata.py +12 -1
  477. rapidata/api_client/models/logic_operator.py +2 -2
  478. rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
  479. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
  480. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
  481. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
  482. rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
  483. rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
  484. rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
  485. rapidata/api_client/models/multi_asset.py +17 -12
  486. rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
  487. rapidata/api_client/models/multi_asset_input.py +130 -0
  488. rapidata/api_client/models/multi_asset_input1.py +110 -0
  489. rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
  490. rapidata/api_client/models/multi_asset_input2.py +110 -0
  491. rapidata/api_client/models/multi_asset_input3.py +110 -0
  492. rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
  493. rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
  494. rapidata/api_client/models/multi_asset_model.py +3 -3
  495. rapidata/api_client/models/multi_compare_truth.py +96 -0
  496. rapidata/api_client/models/naive_referee_info.py +96 -0
  497. rapidata/api_client/models/naive_referee_model.py +2 -2
  498. rapidata/api_client/models/named_classification.py +4 -13
  499. rapidata/api_client/models/never_ending_referee_info.py +94 -0
  500. rapidata/api_client/models/new_user_filter.py +96 -0
  501. rapidata/api_client/models/newsletter_model.py +6 -6
  502. rapidata/api_client/models/not_available_yet_result.py +4 -13
  503. rapidata/api_client/models/not_filter.py +117 -0
  504. rapidata/api_client/models/not_user_filter_model.py +3 -3
  505. rapidata/api_client/models/null_asset.py +14 -9
  506. rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
  507. rapidata/api_client/models/option_of_aggregator_type.py +49 -0
  508. rapidata/api_client/models/or_filter.py +121 -0
  509. rapidata/api_client/models/or_user_filter_model.py +3 -3
  510. rapidata/api_client/models/order_model.py +15 -14
  511. rapidata/api_client/models/order_state.py +2 -2
  512. rapidata/api_client/models/original_filename_metadata.py +12 -1
  513. rapidata/api_client/models/page_info.py +2 -7
  514. rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
  515. rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
  516. rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
  517. rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
  518. rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
  519. rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
  520. rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
  521. rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
  522. rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
  523. rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
  524. rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
  525. rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
  526. rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
  527. rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
  528. rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
  529. rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
  530. rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
  531. rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
  532. rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
  533. rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
  534. rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
  535. rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
  536. rapidata/api_client/models/paged_result_of_order_model.py +103 -0
  537. rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
  538. rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
  539. rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
  540. rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
  541. rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
  542. rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
  543. rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
  544. rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
  545. rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
  546. rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
  547. rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
  548. rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
  549. rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
  550. rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
  551. rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
  552. rapidata/api_client/models/paged_result_order_model.py +105 -0
  553. rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
  554. rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
  555. rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
  556. rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
  557. rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
  558. rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
  559. rapidata/api_client/models/paged_result_rapid_model.py +105 -0
  560. rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
  561. rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
  562. rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
  563. rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
  564. rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
  565. rapidata/api_client/models/participant_by_benchmark.py +94 -0
  566. rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
  567. rapidata/api_client/models/participant_by_leaderboard.py +113 -0
  568. rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
  569. rapidata/api_client/models/participant_status.py +38 -0
  570. rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
  571. rapidata/api_client/models/polygon_result.py +3 -3
  572. rapidata/api_client/models/polygon_result_coordinate.py +89 -0
  573. rapidata/api_client/models/polygon_result_shape.py +95 -0
  574. rapidata/api_client/models/potential_validation_rapid.py +103 -0
  575. rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
  576. rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
  577. rapidata/api_client/models/preliminary_download_model.py +5 -5
  578. rapidata/api_client/models/preview_order_model.py +92 -0
  579. rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
  580. rapidata/api_client/models/problem_details.py +2 -20
  581. rapidata/api_client/models/prompt_asset_metadata_input.py +100 -0
  582. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
  583. rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
  584. rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
  585. rapidata/api_client/models/prompt_by_leaderboard_result.py +90 -0
  586. rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
  587. rapidata/api_client/models/prompt_metadata.py +12 -1
  588. rapidata/api_client/models/prompt_metadata_input.py +2 -2
  589. rapidata/api_client/models/prompt_type.py +38 -0
  590. rapidata/api_client/models/proxy_file_wrapper.py +129 -0
  591. rapidata/api_client/models/public_order_model.py +2 -2
  592. rapidata/api_client/models/public_rapid_response.py +112 -0
  593. rapidata/api_client/models/query_audiences_result.py +118 -0
  594. rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
  595. rapidata/api_client/models/query_job_definitions_result.py +97 -0
  596. rapidata/api_client/models/query_job_revisions_result.py +95 -0
  597. rapidata/api_client/models/query_jobs_result.py +103 -0
  598. rapidata/api_client/models/query_model.py +10 -5
  599. rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
  600. rapidata/api_client/models/query_validation_model.py +97 -0
  601. rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
  602. rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
  603. rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
  604. rapidata/api_client/models/rapid_issue.py +2 -2
  605. rapidata/api_client/models/rapid_modality.py +46 -0
  606. rapidata/api_client/models/rapid_model.py +157 -0
  607. rapidata/api_client/models/rapid_model_paged_result.py +105 -0
  608. rapidata/api_client/models/rapid_model_referee.py +154 -0
  609. rapidata/api_client/models/rapid_result_model.py +7 -7
  610. rapidata/api_client/models/rapid_skipped_model.py +5 -5
  611. rapidata/api_client/models/rapid_state.py +3 -2
  612. rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
  613. rapidata/api_client/models/reference_asset_input.py +100 -0
  614. rapidata/api_client/models/report_model.py +9 -15
  615. rapidata/api_client/models/response_count_filter.py +103 -0
  616. rapidata/api_client/models/response_count_user_filter_model.py +2 -8
  617. rapidata/api_client/models/retrieval_mode.py +2 -2
  618. rapidata/api_client/models/root_filter.py +5 -14
  619. rapidata/api_client/models/run_status.py +39 -0
  620. rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
  621. rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
  622. rapidata/api_client/models/sample_by_identifier.py +125 -0
  623. rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
  624. rapidata/api_client/models/sample_by_participant.py +121 -0
  625. rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
  626. rapidata/api_client/models/scrub_range.py +2 -2
  627. rapidata/api_client/models/send_survey_model.py +87 -0
  628. rapidata/api_client/models/simple_workflow_config.py +15 -7
  629. rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
  630. rapidata/api_client/models/simple_workflow_config_model.py +11 -3
  631. rapidata/api_client/models/simple_workflow_model.py +14 -4
  632. rapidata/api_client/models/simple_workflow_model1.py +4 -11
  633. rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
  634. rapidata/api_client/models/sort_criterion.py +5 -11
  635. rapidata/api_client/models/sort_direction.py +2 -2
  636. rapidata/api_client/models/source_url_metadata.py +12 -1
  637. rapidata/api_client/models/standing_by_benchmark.py +113 -0
  638. rapidata/api_client/models/standing_by_leaderboard.py +113 -0
  639. rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
  640. rapidata/api_client/models/standing_status.py +38 -0
  641. rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
  642. rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
  643. rapidata/api_client/models/start_preliminary_download_result.py +87 -0
  644. rapidata/api_client/models/sticky_state.py +3 -2
  645. rapidata/api_client/models/stream_file_wrapper.py +138 -0
  646. rapidata/api_client/models/streams_metadata.py +113 -0
  647. rapidata/api_client/models/streams_metadata_model.py +100 -0
  648. rapidata/api_client/models/string_segment.py +105 -0
  649. rapidata/api_client/models/submit_coco_model.py +1 -3
  650. rapidata/api_client/models/submit_order_model.py +92 -0
  651. rapidata/api_client/models/submit_participant_result.py +89 -0
  652. rapidata/api_client/models/submit_prompt_model.py +107 -0
  653. rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
  654. rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
  655. rapidata/api_client/models/text_asset.py +15 -10
  656. rapidata/api_client/models/text_asset_input.py +120 -0
  657. rapidata/api_client/models/text_metadata.py +18 -2
  658. rapidata/api_client/models/text_metadata_input.py +111 -0
  659. rapidata/api_client/models/text_metadata_model.py +7 -2
  660. rapidata/api_client/models/transcription_metadata.py +9 -1
  661. rapidata/api_client/models/transcription_metadata_input.py +2 -2
  662. rapidata/api_client/models/transcription_word.py +2 -2
  663. rapidata/api_client/models/translated_string.py +2 -2
  664. rapidata/api_client/models/unlock_order_result.py +2 -2
  665. rapidata/api_client/models/update_access_model.py +1 -1
  666. rapidata/api_client/models/update_audience_request.py +113 -0
  667. rapidata/api_client/models/update_benchmark_model.py +99 -0
  668. rapidata/api_client/models/update_benchmark_name_model.py +87 -0
  669. rapidata/api_client/models/update_campaign_model.py +11 -11
  670. rapidata/api_client/models/update_dataset_name_model.py +5 -5
  671. rapidata/api_client/models/update_dimensions_model.py +3 -3
  672. rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
  673. rapidata/api_client/models/update_job_endpoint_input.py +92 -0
  674. rapidata/api_client/models/update_leaderboard_model.py +106 -0
  675. rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
  676. rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
  677. rapidata/api_client/models/update_order_name_model.py +5 -5
  678. rapidata/api_client/models/update_participant_model.py +92 -0
  679. rapidata/api_client/models/update_participant_name_model.py +87 -0
  680. rapidata/api_client/models/update_priority_model.py +87 -0
  681. rapidata/api_client/models/update_prompt_tags_model.py +87 -0
  682. rapidata/api_client/models/update_should_alert_model.py +87 -0
  683. rapidata/api_client/models/update_validation_rapid_model.py +28 -12
  684. rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
  685. rapidata/api_client/models/update_validation_rapid_model_truth.py +26 -12
  686. rapidata/api_client/models/update_validation_set_model.py +120 -0
  687. rapidata/api_client/models/upload_asset_result.py +102 -0
  688. rapidata/api_client/models/upload_file_from_url_result.py +87 -0
  689. rapidata/api_client/models/upload_file_result.py +87 -0
  690. rapidata/api_client/models/upload_files_from_s3_bucket_model.py +12 -2
  691. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  692. rapidata/api_client/models/url_asset_input.py +100 -0
  693. rapidata/api_client/models/user_action_restriction.py +37 -0
  694. rapidata/api_client/models/user_action_restriction_filter.py +101 -0
  695. rapidata/api_client/models/user_score_filter.py +102 -0
  696. rapidata/api_client/models/user_state.py +38 -0
  697. rapidata/api_client/models/user_state_filter.py +101 -0
  698. rapidata/api_client/models/validation_chance.py +20 -3
  699. rapidata/api_client/models/validation_problem_details.py +117 -0
  700. rapidata/api_client/models/validation_set_model.py +39 -5
  701. rapidata/api_client/models/validation_set_overview_model.py +2 -2
  702. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_payload_parameter.py +252 -0
  703. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_truth_parameter.py +280 -0
  704. rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
  705. rapidata/api_client/models/video_duration_metadata.py +109 -0
  706. rapidata/api_client/models/video_duration_metadata_model.py +96 -0
  707. rapidata/api_client/models/vote_matrix_result.py +91 -0
  708. rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
  709. rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
  710. rapidata/api_client/models/workflow_state.py +2 -2
  711. rapidata/api_client/models/zip_entry_file_wrapper.py +151 -0
  712. rapidata/api_client/rest.py +2 -2
  713. rapidata/api_client_README.md +469 -309
  714. rapidata/rapidata_client/__init__.py +23 -22
  715. rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
  716. rapidata/rapidata_client/audience/__init__.py +2 -0
  717. rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
  718. rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
  719. rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
  720. rapidata/rapidata_client/benchmark/__init__.py +0 -0
  721. rapidata/rapidata_client/benchmark/_detail_mapper.py +34 -0
  722. rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
  723. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +257 -0
  724. rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
  725. rapidata/rapidata_client/benchmark/participant/_participant.py +146 -0
  726. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +592 -0
  727. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +216 -0
  728. rapidata/rapidata_client/config/__init__.py +4 -0
  729. rapidata/rapidata_client/config/logger.py +135 -0
  730. rapidata/rapidata_client/config/logging_config.py +55 -0
  731. rapidata/rapidata_client/config/managed_print.py +6 -0
  732. rapidata/rapidata_client/config/order_config.py +14 -0
  733. rapidata/rapidata_client/config/rapidata_config.py +36 -0
  734. rapidata/rapidata_client/config/tracer.py +184 -0
  735. rapidata/rapidata_client/config/upload_config.py +64 -0
  736. rapidata/rapidata_client/datapoints/__init__.py +8 -0
  737. rapidata/rapidata_client/datapoints/_asset_uploader.py +194 -0
  738. rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
  739. rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
  740. rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
  741. rapidata/rapidata_client/datapoints/_single_flight_cache.py +82 -0
  742. rapidata/rapidata_client/datapoints/assets/__init__.py +0 -0
  743. rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
  744. rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -1
  745. rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
  746. rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
  747. rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
  748. rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
  749. rapidata/rapidata_client/dataset/__init__.py +1 -0
  750. rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
  751. rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
  752. rapidata/rapidata_client/exceptions/__init__.py +1 -0
  753. rapidata/rapidata_client/exceptions/failed_upload_exception.py +27 -0
  754. rapidata/rapidata_client/filter/__init__.py +3 -0
  755. rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
  756. rapidata/rapidata_client/filter/_base_filter.py +58 -2
  757. rapidata/rapidata_client/filter/age_filter.py +26 -10
  758. rapidata/rapidata_client/filter/and_filter.py +55 -0
  759. rapidata/rapidata_client/filter/campaign_filter.py +21 -10
  760. rapidata/rapidata_client/filter/country_filter.py +46 -12
  761. rapidata/rapidata_client/filter/custom_filter.py +25 -12
  762. rapidata/rapidata_client/filter/device_filter.py +38 -0
  763. rapidata/rapidata_client/filter/gender_filter.py +25 -10
  764. rapidata/rapidata_client/filter/language_filter.py +51 -21
  765. rapidata/rapidata_client/filter/models/age_group.py +14 -12
  766. rapidata/rapidata_client/filter/models/device_type.py +20 -0
  767. rapidata/rapidata_client/filter/models/gender.py +12 -8
  768. rapidata/rapidata_client/filter/new_user_filter.py +14 -4
  769. rapidata/rapidata_client/filter/not_filter.py +35 -11
  770. rapidata/rapidata_client/filter/or_filter.py +36 -11
  771. rapidata/rapidata_client/filter/rapidata_filters.py +30 -25
  772. rapidata/rapidata_client/filter/response_count_filter.py +51 -20
  773. rapidata/rapidata_client/filter/user_score_filter.py +62 -24
  774. rapidata/rapidata_client/job/__init__.py +3 -0
  775. rapidata/rapidata_client/job/job_definition.py +110 -0
  776. rapidata/rapidata_client/job/job_manager.py +758 -0
  777. rapidata/rapidata_client/job/rapidata_job.py +326 -0
  778. rapidata/rapidata_client/order/__init__.py +2 -0
  779. rapidata/rapidata_client/order/_rapidata_order_builder.py +286 -193
  780. rapidata/rapidata_client/order/rapidata_order.py +329 -153
  781. rapidata/rapidata_client/order/rapidata_order_manager.py +722 -420
  782. rapidata/rapidata_client/rapidata_client.py +130 -26
  783. rapidata/rapidata_client/referee/__init__.py +1 -1
  784. rapidata/rapidata_client/referee/_base_referee.py +14 -3
  785. rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
  786. rapidata/rapidata_client/referee/_naive_referee.py +24 -3
  787. rapidata/rapidata_client/results/__init__.py +3 -0
  788. rapidata/rapidata_client/{order → results}/rapidata_results.py +98 -67
  789. rapidata/rapidata_client/selection/__init__.py +2 -1
  790. rapidata/rapidata_client/selection/_base_selection.py +9 -2
  791. rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
  792. rapidata/rapidata_client/selection/capped_selection.py +23 -16
  793. rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
  794. rapidata/rapidata_client/selection/demographic_selection.py +21 -6
  795. rapidata/rapidata_client/selection/effort_selection.py +49 -0
  796. rapidata/rapidata_client/selection/labeling_selection.py +36 -12
  797. rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +10 -7
  798. rapidata/rapidata_client/selection/rapidata_selections.py +31 -21
  799. rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
  800. rapidata/rapidata_client/selection/static_selection.py +20 -9
  801. rapidata/rapidata_client/selection/validation_selection.py +20 -4
  802. rapidata/rapidata_client/settings/__init__.py +4 -1
  803. rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
  804. rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
  805. rapidata/rapidata_client/settings/allow_neither_both.py +17 -0
  806. rapidata/rapidata_client/settings/custom_setting.py +3 -2
  807. rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
  808. rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
  809. rapidata/rapidata_client/settings/mute_video.py +15 -0
  810. rapidata/rapidata_client/settings/no_shuffle.py +4 -2
  811. rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
  812. rapidata/rapidata_client/settings/rapidata_settings.py +28 -16
  813. rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
  814. rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
  815. rapidata/rapidata_client/utils/__init__.py +3 -0
  816. rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
  817. rapidata/rapidata_client/validation/__init__.py +2 -0
  818. rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
  819. rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
  820. rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
  821. rapidata/rapidata_client/validation/rapids/box.py +37 -12
  822. rapidata/rapidata_client/validation/rapids/rapids.py +29 -104
  823. rapidata/rapidata_client/validation/rapids/rapids_manager.py +371 -214
  824. rapidata/rapidata_client/validation/validation_set_manager.py +529 -227
  825. rapidata/rapidata_client/workflow/__init__.py +2 -2
  826. rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
  827. rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
  828. rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
  829. rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
  830. rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
  831. rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
  832. rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
  833. rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
  834. rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
  835. rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
  836. rapidata/service/__init__.py +0 -1
  837. rapidata/service/credential_manager.py +18 -18
  838. rapidata/service/openapi_service.py +128 -28
  839. rapidata/types/__init__.py +149 -0
  840. rapidata-3.0.1.dist-info/METADATA +32 -0
  841. rapidata-3.0.1.dist-info/RECORD +1089 -0
  842. {rapidata-2.23.2.dist-info → rapidata-3.0.1.dist-info}/WHEEL +1 -1
  843. rapidata/rapidata_client/api/rapidata_exception.py +0 -107
  844. rapidata/rapidata_client/assets/__init__.py +0 -10
  845. rapidata/rapidata_client/assets/_base_asset.py +0 -11
  846. rapidata/rapidata_client/assets/_media_asset.py +0 -306
  847. rapidata/rapidata_client/assets/_multi_asset.py +0 -66
  848. rapidata/rapidata_client/assets/_sessions.py +0 -35
  849. rapidata/rapidata_client/assets/_text_asset.py +0 -34
  850. rapidata/rapidata_client/assets/data_type_enum.py +0 -7
  851. rapidata/rapidata_client/country_codes/__init__.py +0 -1
  852. rapidata/rapidata_client/country_codes/country_codes.py +0 -19
  853. rapidata/rapidata_client/logging/__init__.py +0 -2
  854. rapidata/rapidata_client/logging/logger.py +0 -47
  855. rapidata/rapidata_client/logging/output_manager.py +0 -16
  856. rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
  857. rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
  858. rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
  859. rapidata/rapidata_client/order/_rapidata_dataset.py +0 -443
  860. rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -51
  861. rapidata/service/local_file_service.py +0 -25
  862. rapidata-2.23.2.dist-info/METADATA +0 -34
  863. rapidata-2.23.2.dist-info/RECORD +0 -523
  864. /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
  865. {rapidata-2.23.2.dist-info → rapidata-3.0.1.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,2855 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata Asset API
5
+
6
+ The API for the Rapidata Asset service
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBool, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.boost_leaderboard_model import BoostLeaderboardModel
23
+ from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
24
+ from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
25
+ from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
26
+ from rapidata.api_client.models.get_standing_by_id_result import GetStandingByIdResult
27
+ from rapidata.api_client.models.paged_result_of_leaderboards_query_result import PagedResultOfLeaderboardsQueryResult
28
+ from rapidata.api_client.models.paged_result_of_runs_by_leaderboard_result import PagedResultOfRunsByLeaderboardResult
29
+ from rapidata.api_client.models.query_model import QueryModel
30
+ from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
31
+ from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
32
+ from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
33
+ from rapidata.api_client.models.vote_matrix_result import VoteMatrixResult
34
+
35
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
36
+ from rapidata.api_client.api_response import ApiResponse
37
+ from rapidata.api_client.rest import RESTResponseType
38
+
39
+
40
+ class LeaderboardApi:
41
+ """NOTE: This class is auto generated by OpenAPI Generator
42
+ Ref: https://openapi-generator.tech
43
+
44
+ Do not edit the class manually.
45
+ """
46
+
47
+ def __init__(self, api_client=None) -> None:
48
+ if api_client is None:
49
+ api_client = ApiClient.get_default()
50
+ self.api_client = api_client
51
+
52
+
53
+ @validate_call
54
+ def benchmark_standing_leaderboard_id_participant_id_get(
55
+ self,
56
+ leaderboard_id: StrictStr,
57
+ participant_id: StrictStr,
58
+ _request_timeout: Union[
59
+ None,
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Tuple[
62
+ Annotated[StrictFloat, Field(gt=0)],
63
+ Annotated[StrictFloat, Field(gt=0)]
64
+ ]
65
+ ] = None,
66
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
67
+ _content_type: Optional[StrictStr] = None,
68
+ _headers: Optional[Dict[StrictStr, Any]] = None,
69
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
70
+ ) -> GetStandingByIdResult:
71
+ """Gets a standing by leaderboardId and participantId.
72
+
73
+
74
+ :param leaderboard_id: (required)
75
+ :type leaderboard_id: str
76
+ :param participant_id: (required)
77
+ :type participant_id: str
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :type _request_timeout: int, tuple(int, int), optional
83
+ :param _request_auth: set to override the auth_settings for an a single
84
+ request; this effectively ignores the
85
+ authentication in the spec for a single request.
86
+ :type _request_auth: dict, optional
87
+ :param _content_type: force content-type for the request.
88
+ :type _content_type: str, Optional
89
+ :param _headers: set to override the headers for a single
90
+ request; this effectively ignores the headers
91
+ in the spec for a single request.
92
+ :type _headers: dict, optional
93
+ :param _host_index: set to override the host_index for a single
94
+ request; this effectively ignores the host_index
95
+ in the spec for a single request.
96
+ :type _host_index: int, optional
97
+ :return: Returns the result object.
98
+ """ # noqa: E501
99
+
100
+ _param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
101
+ leaderboard_id=leaderboard_id,
102
+ participant_id=participant_id,
103
+ _request_auth=_request_auth,
104
+ _content_type=_content_type,
105
+ _headers=_headers,
106
+ _host_index=_host_index
107
+ )
108
+
109
+ _response_types_map: Dict[str, Optional[str]] = {
110
+ '200': "GetStandingByIdResult",
111
+ }
112
+ response_data = self.api_client.call_api(
113
+ *_param,
114
+ _request_timeout=_request_timeout
115
+ )
116
+ response_data.read()
117
+ return self.api_client.response_deserialize(
118
+ response_data=response_data,
119
+ response_types_map=_response_types_map,
120
+ ).data
121
+
122
+
123
+ @validate_call
124
+ def benchmark_standing_leaderboard_id_participant_id_get_with_http_info(
125
+ self,
126
+ leaderboard_id: StrictStr,
127
+ participant_id: StrictStr,
128
+ _request_timeout: Union[
129
+ None,
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Tuple[
132
+ Annotated[StrictFloat, Field(gt=0)],
133
+ Annotated[StrictFloat, Field(gt=0)]
134
+ ]
135
+ ] = None,
136
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
137
+ _content_type: Optional[StrictStr] = None,
138
+ _headers: Optional[Dict[StrictStr, Any]] = None,
139
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
140
+ ) -> ApiResponse[GetStandingByIdResult]:
141
+ """Gets a standing by leaderboardId and participantId.
142
+
143
+
144
+ :param leaderboard_id: (required)
145
+ :type leaderboard_id: str
146
+ :param participant_id: (required)
147
+ :type participant_id: str
148
+ :param _request_timeout: timeout setting for this request. If one
149
+ number provided, it will be total request
150
+ timeout. It can also be a pair (tuple) of
151
+ (connection, read) timeouts.
152
+ :type _request_timeout: int, tuple(int, int), optional
153
+ :param _request_auth: set to override the auth_settings for an a single
154
+ request; this effectively ignores the
155
+ authentication in the spec for a single request.
156
+ :type _request_auth: dict, optional
157
+ :param _content_type: force content-type for the request.
158
+ :type _content_type: str, Optional
159
+ :param _headers: set to override the headers for a single
160
+ request; this effectively ignores the headers
161
+ in the spec for a single request.
162
+ :type _headers: dict, optional
163
+ :param _host_index: set to override the host_index for a single
164
+ request; this effectively ignores the host_index
165
+ in the spec for a single request.
166
+ :type _host_index: int, optional
167
+ :return: Returns the result object.
168
+ """ # noqa: E501
169
+
170
+ _param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
171
+ leaderboard_id=leaderboard_id,
172
+ participant_id=participant_id,
173
+ _request_auth=_request_auth,
174
+ _content_type=_content_type,
175
+ _headers=_headers,
176
+ _host_index=_host_index
177
+ )
178
+
179
+ _response_types_map: Dict[str, Optional[str]] = {
180
+ '200': "GetStandingByIdResult",
181
+ }
182
+ response_data = self.api_client.call_api(
183
+ *_param,
184
+ _request_timeout=_request_timeout
185
+ )
186
+ response_data.read()
187
+ return self.api_client.response_deserialize(
188
+ response_data=response_data,
189
+ response_types_map=_response_types_map,
190
+ )
191
+
192
+
193
+ @validate_call
194
+ def benchmark_standing_leaderboard_id_participant_id_get_without_preload_content(
195
+ self,
196
+ leaderboard_id: StrictStr,
197
+ participant_id: StrictStr,
198
+ _request_timeout: Union[
199
+ None,
200
+ Annotated[StrictFloat, Field(gt=0)],
201
+ Tuple[
202
+ Annotated[StrictFloat, Field(gt=0)],
203
+ Annotated[StrictFloat, Field(gt=0)]
204
+ ]
205
+ ] = None,
206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
207
+ _content_type: Optional[StrictStr] = None,
208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
210
+ ) -> RESTResponseType:
211
+ """Gets a standing by leaderboardId and participantId.
212
+
213
+
214
+ :param leaderboard_id: (required)
215
+ :type leaderboard_id: str
216
+ :param participant_id: (required)
217
+ :type participant_id: str
218
+ :param _request_timeout: timeout setting for this request. If one
219
+ number provided, it will be total request
220
+ timeout. It can also be a pair (tuple) of
221
+ (connection, read) timeouts.
222
+ :type _request_timeout: int, tuple(int, int), optional
223
+ :param _request_auth: set to override the auth_settings for an a single
224
+ request; this effectively ignores the
225
+ authentication in the spec for a single request.
226
+ :type _request_auth: dict, optional
227
+ :param _content_type: force content-type for the request.
228
+ :type _content_type: str, Optional
229
+ :param _headers: set to override the headers for a single
230
+ request; this effectively ignores the headers
231
+ in the spec for a single request.
232
+ :type _headers: dict, optional
233
+ :param _host_index: set to override the host_index for a single
234
+ request; this effectively ignores the host_index
235
+ in the spec for a single request.
236
+ :type _host_index: int, optional
237
+ :return: Returns the result object.
238
+ """ # noqa: E501
239
+
240
+ _param = self._benchmark_standing_leaderboard_id_participant_id_get_serialize(
241
+ leaderboard_id=leaderboard_id,
242
+ participant_id=participant_id,
243
+ _request_auth=_request_auth,
244
+ _content_type=_content_type,
245
+ _headers=_headers,
246
+ _host_index=_host_index
247
+ )
248
+
249
+ _response_types_map: Dict[str, Optional[str]] = {
250
+ '200': "GetStandingByIdResult",
251
+ }
252
+ response_data = self.api_client.call_api(
253
+ *_param,
254
+ _request_timeout=_request_timeout
255
+ )
256
+ return response_data.response
257
+
258
+
259
+ def _benchmark_standing_leaderboard_id_participant_id_get_serialize(
260
+ self,
261
+ leaderboard_id,
262
+ participant_id,
263
+ _request_auth,
264
+ _content_type,
265
+ _headers,
266
+ _host_index,
267
+ ) -> RequestSerialized:
268
+
269
+ _host = None
270
+
271
+ _collection_formats: Dict[str, str] = {
272
+ }
273
+
274
+ _path_params: Dict[str, str] = {}
275
+ _query_params: List[Tuple[str, str]] = []
276
+ _header_params: Dict[str, Optional[str]] = _headers or {}
277
+ _form_params: List[Tuple[str, str]] = []
278
+ _files: Dict[
279
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
280
+ ] = {}
281
+ _body_params: Optional[bytes] = None
282
+
283
+ # process the path parameters
284
+ if leaderboard_id is not None:
285
+ _path_params['leaderboardId'] = leaderboard_id
286
+ if participant_id is not None:
287
+ _path_params['participantId'] = participant_id
288
+ # process the query parameters
289
+ # process the header parameters
290
+ # process the form parameters
291
+ # process the body parameter
292
+
293
+
294
+ # set the HTTP header `Accept`
295
+ if 'Accept' not in _header_params:
296
+ _header_params['Accept'] = self.api_client.select_header_accept(
297
+ [
298
+ 'text/plain',
299
+ 'application/json',
300
+ 'text/json'
301
+ ]
302
+ )
303
+
304
+
305
+ # authentication setting
306
+ _auth_settings: List[str] = [
307
+ 'OAuth2',
308
+ 'OpenIdConnect',
309
+ 'Bearer'
310
+ ]
311
+
312
+ return self.api_client.param_serialize(
313
+ method='GET',
314
+ resource_path='/benchmark/standing/{leaderboardId}/{participantId}',
315
+ path_params=_path_params,
316
+ query_params=_query_params,
317
+ header_params=_header_params,
318
+ body=_body_params,
319
+ post_params=_form_params,
320
+ files=_files,
321
+ auth_settings=_auth_settings,
322
+ collection_formats=_collection_formats,
323
+ _host=_host,
324
+ _request_auth=_request_auth
325
+ )
326
+
327
+
328
+
329
+
330
+ @validate_call
331
+ def leaderboard_leaderboard_id_boost_post(
332
+ self,
333
+ leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
334
+ boost_leaderboard_model: BoostLeaderboardModel,
335
+ _request_timeout: Union[
336
+ None,
337
+ Annotated[StrictFloat, Field(gt=0)],
338
+ Tuple[
339
+ Annotated[StrictFloat, Field(gt=0)],
340
+ Annotated[StrictFloat, Field(gt=0)]
341
+ ]
342
+ ] = None,
343
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
344
+ _content_type: Optional[StrictStr] = None,
345
+ _headers: Optional[Dict[StrictStr, Any]] = None,
346
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
347
+ ) -> SubmitParticipantResult:
348
+ """Boosts a subset of participants within a leaderboard.
349
+
350
+
351
+ :param leaderboard_id: the leaderboard that should be boosted (required)
352
+ :type leaderboard_id: str
353
+ :param boost_leaderboard_model: (required)
354
+ :type boost_leaderboard_model: BoostLeaderboardModel
355
+ :param _request_timeout: timeout setting for this request. If one
356
+ number provided, it will be total request
357
+ timeout. It can also be a pair (tuple) of
358
+ (connection, read) timeouts.
359
+ :type _request_timeout: int, tuple(int, int), optional
360
+ :param _request_auth: set to override the auth_settings for an a single
361
+ request; this effectively ignores the
362
+ authentication in the spec for a single request.
363
+ :type _request_auth: dict, optional
364
+ :param _content_type: force content-type for the request.
365
+ :type _content_type: str, Optional
366
+ :param _headers: set to override the headers for a single
367
+ request; this effectively ignores the headers
368
+ in the spec for a single request.
369
+ :type _headers: dict, optional
370
+ :param _host_index: set to override the host_index for a single
371
+ request; this effectively ignores the host_index
372
+ in the spec for a single request.
373
+ :type _host_index: int, optional
374
+ :return: Returns the result object.
375
+ """ # noqa: E501
376
+
377
+ _param = self._leaderboard_leaderboard_id_boost_post_serialize(
378
+ leaderboard_id=leaderboard_id,
379
+ boost_leaderboard_model=boost_leaderboard_model,
380
+ _request_auth=_request_auth,
381
+ _content_type=_content_type,
382
+ _headers=_headers,
383
+ _host_index=_host_index
384
+ )
385
+
386
+ _response_types_map: Dict[str, Optional[str]] = {
387
+ '200': "SubmitParticipantResult",
388
+ }
389
+ response_data = self.api_client.call_api(
390
+ *_param,
391
+ _request_timeout=_request_timeout
392
+ )
393
+ response_data.read()
394
+ return self.api_client.response_deserialize(
395
+ response_data=response_data,
396
+ response_types_map=_response_types_map,
397
+ ).data
398
+
399
+
400
+ @validate_call
401
+ def leaderboard_leaderboard_id_boost_post_with_http_info(
402
+ self,
403
+ leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
404
+ boost_leaderboard_model: BoostLeaderboardModel,
405
+ _request_timeout: Union[
406
+ None,
407
+ Annotated[StrictFloat, Field(gt=0)],
408
+ Tuple[
409
+ Annotated[StrictFloat, Field(gt=0)],
410
+ Annotated[StrictFloat, Field(gt=0)]
411
+ ]
412
+ ] = None,
413
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
414
+ _content_type: Optional[StrictStr] = None,
415
+ _headers: Optional[Dict[StrictStr, Any]] = None,
416
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
417
+ ) -> ApiResponse[SubmitParticipantResult]:
418
+ """Boosts a subset of participants within a leaderboard.
419
+
420
+
421
+ :param leaderboard_id: the leaderboard that should be boosted (required)
422
+ :type leaderboard_id: str
423
+ :param boost_leaderboard_model: (required)
424
+ :type boost_leaderboard_model: BoostLeaderboardModel
425
+ :param _request_timeout: timeout setting for this request. If one
426
+ number provided, it will be total request
427
+ timeout. It can also be a pair (tuple) of
428
+ (connection, read) timeouts.
429
+ :type _request_timeout: int, tuple(int, int), optional
430
+ :param _request_auth: set to override the auth_settings for an a single
431
+ request; this effectively ignores the
432
+ authentication in the spec for a single request.
433
+ :type _request_auth: dict, optional
434
+ :param _content_type: force content-type for the request.
435
+ :type _content_type: str, Optional
436
+ :param _headers: set to override the headers for a single
437
+ request; this effectively ignores the headers
438
+ in the spec for a single request.
439
+ :type _headers: dict, optional
440
+ :param _host_index: set to override the host_index for a single
441
+ request; this effectively ignores the host_index
442
+ in the spec for a single request.
443
+ :type _host_index: int, optional
444
+ :return: Returns the result object.
445
+ """ # noqa: E501
446
+
447
+ _param = self._leaderboard_leaderboard_id_boost_post_serialize(
448
+ leaderboard_id=leaderboard_id,
449
+ boost_leaderboard_model=boost_leaderboard_model,
450
+ _request_auth=_request_auth,
451
+ _content_type=_content_type,
452
+ _headers=_headers,
453
+ _host_index=_host_index
454
+ )
455
+
456
+ _response_types_map: Dict[str, Optional[str]] = {
457
+ '200': "SubmitParticipantResult",
458
+ }
459
+ response_data = self.api_client.call_api(
460
+ *_param,
461
+ _request_timeout=_request_timeout
462
+ )
463
+ response_data.read()
464
+ return self.api_client.response_deserialize(
465
+ response_data=response_data,
466
+ response_types_map=_response_types_map,
467
+ )
468
+
469
+
470
+ @validate_call
471
+ def leaderboard_leaderboard_id_boost_post_without_preload_content(
472
+ self,
473
+ leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
474
+ boost_leaderboard_model: BoostLeaderboardModel,
475
+ _request_timeout: Union[
476
+ None,
477
+ Annotated[StrictFloat, Field(gt=0)],
478
+ Tuple[
479
+ Annotated[StrictFloat, Field(gt=0)],
480
+ Annotated[StrictFloat, Field(gt=0)]
481
+ ]
482
+ ] = None,
483
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
484
+ _content_type: Optional[StrictStr] = None,
485
+ _headers: Optional[Dict[StrictStr, Any]] = None,
486
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
487
+ ) -> RESTResponseType:
488
+ """Boosts a subset of participants within a leaderboard.
489
+
490
+
491
+ :param leaderboard_id: the leaderboard that should be boosted (required)
492
+ :type leaderboard_id: str
493
+ :param boost_leaderboard_model: (required)
494
+ :type boost_leaderboard_model: BoostLeaderboardModel
495
+ :param _request_timeout: timeout setting for this request. If one
496
+ number provided, it will be total request
497
+ timeout. It can also be a pair (tuple) of
498
+ (connection, read) timeouts.
499
+ :type _request_timeout: int, tuple(int, int), optional
500
+ :param _request_auth: set to override the auth_settings for an a single
501
+ request; this effectively ignores the
502
+ authentication in the spec for a single request.
503
+ :type _request_auth: dict, optional
504
+ :param _content_type: force content-type for the request.
505
+ :type _content_type: str, Optional
506
+ :param _headers: set to override the headers for a single
507
+ request; this effectively ignores the headers
508
+ in the spec for a single request.
509
+ :type _headers: dict, optional
510
+ :param _host_index: set to override the host_index for a single
511
+ request; this effectively ignores the host_index
512
+ in the spec for a single request.
513
+ :type _host_index: int, optional
514
+ :return: Returns the result object.
515
+ """ # noqa: E501
516
+
517
+ _param = self._leaderboard_leaderboard_id_boost_post_serialize(
518
+ leaderboard_id=leaderboard_id,
519
+ boost_leaderboard_model=boost_leaderboard_model,
520
+ _request_auth=_request_auth,
521
+ _content_type=_content_type,
522
+ _headers=_headers,
523
+ _host_index=_host_index
524
+ )
525
+
526
+ _response_types_map: Dict[str, Optional[str]] = {
527
+ '200': "SubmitParticipantResult",
528
+ }
529
+ response_data = self.api_client.call_api(
530
+ *_param,
531
+ _request_timeout=_request_timeout
532
+ )
533
+ return response_data.response
534
+
535
+
536
+ def _leaderboard_leaderboard_id_boost_post_serialize(
537
+ self,
538
+ leaderboard_id,
539
+ boost_leaderboard_model,
540
+ _request_auth,
541
+ _content_type,
542
+ _headers,
543
+ _host_index,
544
+ ) -> RequestSerialized:
545
+
546
+ _host = None
547
+
548
+ _collection_formats: Dict[str, str] = {
549
+ }
550
+
551
+ _path_params: Dict[str, str] = {}
552
+ _query_params: List[Tuple[str, str]] = []
553
+ _header_params: Dict[str, Optional[str]] = _headers or {}
554
+ _form_params: List[Tuple[str, str]] = []
555
+ _files: Dict[
556
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
557
+ ] = {}
558
+ _body_params: Optional[bytes] = None
559
+
560
+ # process the path parameters
561
+ if leaderboard_id is not None:
562
+ _path_params['leaderboardId'] = leaderboard_id
563
+ # process the query parameters
564
+ # process the header parameters
565
+ # process the form parameters
566
+ # process the body parameter
567
+ if boost_leaderboard_model is not None:
568
+ _body_params = boost_leaderboard_model
569
+
570
+
571
+ # set the HTTP header `Accept`
572
+ if 'Accept' not in _header_params:
573
+ _header_params['Accept'] = self.api_client.select_header_accept(
574
+ [
575
+ 'text/plain',
576
+ 'application/json',
577
+ 'text/json'
578
+ ]
579
+ )
580
+
581
+ # set the HTTP header `Content-Type`
582
+ if _content_type:
583
+ _header_params['Content-Type'] = _content_type
584
+ else:
585
+ _default_content_type = (
586
+ self.api_client.select_header_content_type(
587
+ [
588
+ 'application/json',
589
+ 'text/json',
590
+ 'application/*+json'
591
+ ]
592
+ )
593
+ )
594
+ if _default_content_type is not None:
595
+ _header_params['Content-Type'] = _default_content_type
596
+
597
+ # authentication setting
598
+ _auth_settings: List[str] = [
599
+ 'OAuth2',
600
+ 'OpenIdConnect',
601
+ 'Bearer'
602
+ ]
603
+
604
+ return self.api_client.param_serialize(
605
+ method='POST',
606
+ resource_path='/leaderboard/{leaderboardId}/boost',
607
+ path_params=_path_params,
608
+ query_params=_query_params,
609
+ header_params=_header_params,
610
+ body=_body_params,
611
+ post_params=_form_params,
612
+ files=_files,
613
+ auth_settings=_auth_settings,
614
+ collection_formats=_collection_formats,
615
+ _host=_host,
616
+ _request_auth=_request_auth
617
+ )
618
+
619
+
620
+
621
+
622
+ @validate_call
623
+ def leaderboard_leaderboard_id_delete(
624
+ self,
625
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
626
+ _request_timeout: Union[
627
+ None,
628
+ Annotated[StrictFloat, Field(gt=0)],
629
+ Tuple[
630
+ Annotated[StrictFloat, Field(gt=0)],
631
+ Annotated[StrictFloat, Field(gt=0)]
632
+ ]
633
+ ] = None,
634
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
635
+ _content_type: Optional[StrictStr] = None,
636
+ _headers: Optional[Dict[StrictStr, Any]] = None,
637
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
638
+ ) -> None:
639
+ """Deletes a leaderboard by its ID.
640
+
641
+
642
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
643
+ :type leaderboard_id: str
644
+ :param _request_timeout: timeout setting for this request. If one
645
+ number provided, it will be total request
646
+ timeout. It can also be a pair (tuple) of
647
+ (connection, read) timeouts.
648
+ :type _request_timeout: int, tuple(int, int), optional
649
+ :param _request_auth: set to override the auth_settings for an a single
650
+ request; this effectively ignores the
651
+ authentication in the spec for a single request.
652
+ :type _request_auth: dict, optional
653
+ :param _content_type: force content-type for the request.
654
+ :type _content_type: str, Optional
655
+ :param _headers: set to override the headers for a single
656
+ request; this effectively ignores the headers
657
+ in the spec for a single request.
658
+ :type _headers: dict, optional
659
+ :param _host_index: set to override the host_index for a single
660
+ request; this effectively ignores the host_index
661
+ in the spec for a single request.
662
+ :type _host_index: int, optional
663
+ :return: Returns the result object.
664
+ """ # noqa: E501
665
+
666
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
667
+ leaderboard_id=leaderboard_id,
668
+ _request_auth=_request_auth,
669
+ _content_type=_content_type,
670
+ _headers=_headers,
671
+ _host_index=_host_index
672
+ )
673
+
674
+ _response_types_map: Dict[str, Optional[str]] = {
675
+ '204': None,
676
+ }
677
+ response_data = self.api_client.call_api(
678
+ *_param,
679
+ _request_timeout=_request_timeout
680
+ )
681
+ response_data.read()
682
+ return self.api_client.response_deserialize(
683
+ response_data=response_data,
684
+ response_types_map=_response_types_map,
685
+ ).data
686
+
687
+
688
+ @validate_call
689
+ def leaderboard_leaderboard_id_delete_with_http_info(
690
+ self,
691
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
692
+ _request_timeout: Union[
693
+ None,
694
+ Annotated[StrictFloat, Field(gt=0)],
695
+ Tuple[
696
+ Annotated[StrictFloat, Field(gt=0)],
697
+ Annotated[StrictFloat, Field(gt=0)]
698
+ ]
699
+ ] = None,
700
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
701
+ _content_type: Optional[StrictStr] = None,
702
+ _headers: Optional[Dict[StrictStr, Any]] = None,
703
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
704
+ ) -> ApiResponse[None]:
705
+ """Deletes a leaderboard by its ID.
706
+
707
+
708
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
709
+ :type leaderboard_id: str
710
+ :param _request_timeout: timeout setting for this request. If one
711
+ number provided, it will be total request
712
+ timeout. It can also be a pair (tuple) of
713
+ (connection, read) timeouts.
714
+ :type _request_timeout: int, tuple(int, int), optional
715
+ :param _request_auth: set to override the auth_settings for an a single
716
+ request; this effectively ignores the
717
+ authentication in the spec for a single request.
718
+ :type _request_auth: dict, optional
719
+ :param _content_type: force content-type for the request.
720
+ :type _content_type: str, Optional
721
+ :param _headers: set to override the headers for a single
722
+ request; this effectively ignores the headers
723
+ in the spec for a single request.
724
+ :type _headers: dict, optional
725
+ :param _host_index: set to override the host_index for a single
726
+ request; this effectively ignores the host_index
727
+ in the spec for a single request.
728
+ :type _host_index: int, optional
729
+ :return: Returns the result object.
730
+ """ # noqa: E501
731
+
732
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
733
+ leaderboard_id=leaderboard_id,
734
+ _request_auth=_request_auth,
735
+ _content_type=_content_type,
736
+ _headers=_headers,
737
+ _host_index=_host_index
738
+ )
739
+
740
+ _response_types_map: Dict[str, Optional[str]] = {
741
+ '204': None,
742
+ }
743
+ response_data = self.api_client.call_api(
744
+ *_param,
745
+ _request_timeout=_request_timeout
746
+ )
747
+ response_data.read()
748
+ return self.api_client.response_deserialize(
749
+ response_data=response_data,
750
+ response_types_map=_response_types_map,
751
+ )
752
+
753
+
754
+ @validate_call
755
+ def leaderboard_leaderboard_id_delete_without_preload_content(
756
+ self,
757
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
758
+ _request_timeout: Union[
759
+ None,
760
+ Annotated[StrictFloat, Field(gt=0)],
761
+ Tuple[
762
+ Annotated[StrictFloat, Field(gt=0)],
763
+ Annotated[StrictFloat, Field(gt=0)]
764
+ ]
765
+ ] = None,
766
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
767
+ _content_type: Optional[StrictStr] = None,
768
+ _headers: Optional[Dict[StrictStr, Any]] = None,
769
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
770
+ ) -> RESTResponseType:
771
+ """Deletes a leaderboard by its ID.
772
+
773
+
774
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
775
+ :type leaderboard_id: str
776
+ :param _request_timeout: timeout setting for this request. If one
777
+ number provided, it will be total request
778
+ timeout. It can also be a pair (tuple) of
779
+ (connection, read) timeouts.
780
+ :type _request_timeout: int, tuple(int, int), optional
781
+ :param _request_auth: set to override the auth_settings for an a single
782
+ request; this effectively ignores the
783
+ authentication in the spec for a single request.
784
+ :type _request_auth: dict, optional
785
+ :param _content_type: force content-type for the request.
786
+ :type _content_type: str, Optional
787
+ :param _headers: set to override the headers for a single
788
+ request; this effectively ignores the headers
789
+ in the spec for a single request.
790
+ :type _headers: dict, optional
791
+ :param _host_index: set to override the host_index for a single
792
+ request; this effectively ignores the host_index
793
+ in the spec for a single request.
794
+ :type _host_index: int, optional
795
+ :return: Returns the result object.
796
+ """ # noqa: E501
797
+
798
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
799
+ leaderboard_id=leaderboard_id,
800
+ _request_auth=_request_auth,
801
+ _content_type=_content_type,
802
+ _headers=_headers,
803
+ _host_index=_host_index
804
+ )
805
+
806
+ _response_types_map: Dict[str, Optional[str]] = {
807
+ '204': None,
808
+ }
809
+ response_data = self.api_client.call_api(
810
+ *_param,
811
+ _request_timeout=_request_timeout
812
+ )
813
+ return response_data.response
814
+
815
+
816
+ def _leaderboard_leaderboard_id_delete_serialize(
817
+ self,
818
+ leaderboard_id,
819
+ _request_auth,
820
+ _content_type,
821
+ _headers,
822
+ _host_index,
823
+ ) -> RequestSerialized:
824
+
825
+ _host = None
826
+
827
+ _collection_formats: Dict[str, str] = {
828
+ }
829
+
830
+ _path_params: Dict[str, str] = {}
831
+ _query_params: List[Tuple[str, str]] = []
832
+ _header_params: Dict[str, Optional[str]] = _headers or {}
833
+ _form_params: List[Tuple[str, str]] = []
834
+ _files: Dict[
835
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
836
+ ] = {}
837
+ _body_params: Optional[bytes] = None
838
+
839
+ # process the path parameters
840
+ if leaderboard_id is not None:
841
+ _path_params['leaderboardId'] = leaderboard_id
842
+ # process the query parameters
843
+ # process the header parameters
844
+ # process the form parameters
845
+ # process the body parameter
846
+
847
+
848
+
849
+
850
+ # authentication setting
851
+ _auth_settings: List[str] = [
852
+ 'OAuth2',
853
+ 'OpenIdConnect',
854
+ 'Bearer'
855
+ ]
856
+
857
+ return self.api_client.param_serialize(
858
+ method='DELETE',
859
+ resource_path='/leaderboard/{leaderboardId}',
860
+ path_params=_path_params,
861
+ query_params=_query_params,
862
+ header_params=_header_params,
863
+ body=_body_params,
864
+ post_params=_form_params,
865
+ files=_files,
866
+ auth_settings=_auth_settings,
867
+ collection_formats=_collection_formats,
868
+ _host=_host,
869
+ _request_auth=_request_auth
870
+ )
871
+
872
+
873
+
874
+
875
+ @validate_call
876
+ def leaderboard_leaderboard_id_get(
877
+ self,
878
+ leaderboard_id: StrictStr,
879
+ _request_timeout: Union[
880
+ None,
881
+ Annotated[StrictFloat, Field(gt=0)],
882
+ Tuple[
883
+ Annotated[StrictFloat, Field(gt=0)],
884
+ Annotated[StrictFloat, Field(gt=0)]
885
+ ]
886
+ ] = None,
887
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
888
+ _content_type: Optional[StrictStr] = None,
889
+ _headers: Optional[Dict[StrictStr, Any]] = None,
890
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
891
+ ) -> GetLeaderboardByIdResult:
892
+ """Gets a leaderboard by its ID.
893
+
894
+
895
+ :param leaderboard_id: (required)
896
+ :type leaderboard_id: str
897
+ :param _request_timeout: timeout setting for this request. If one
898
+ number provided, it will be total request
899
+ timeout. It can also be a pair (tuple) of
900
+ (connection, read) timeouts.
901
+ :type _request_timeout: int, tuple(int, int), optional
902
+ :param _request_auth: set to override the auth_settings for an a single
903
+ request; this effectively ignores the
904
+ authentication in the spec for a single request.
905
+ :type _request_auth: dict, optional
906
+ :param _content_type: force content-type for the request.
907
+ :type _content_type: str, Optional
908
+ :param _headers: set to override the headers for a single
909
+ request; this effectively ignores the headers
910
+ in the spec for a single request.
911
+ :type _headers: dict, optional
912
+ :param _host_index: set to override the host_index for a single
913
+ request; this effectively ignores the host_index
914
+ in the spec for a single request.
915
+ :type _host_index: int, optional
916
+ :return: Returns the result object.
917
+ """ # noqa: E501
918
+
919
+ _param = self._leaderboard_leaderboard_id_get_serialize(
920
+ leaderboard_id=leaderboard_id,
921
+ _request_auth=_request_auth,
922
+ _content_type=_content_type,
923
+ _headers=_headers,
924
+ _host_index=_host_index
925
+ )
926
+
927
+ _response_types_map: Dict[str, Optional[str]] = {
928
+ '200': "GetLeaderboardByIdResult",
929
+ }
930
+ response_data = self.api_client.call_api(
931
+ *_param,
932
+ _request_timeout=_request_timeout
933
+ )
934
+ response_data.read()
935
+ return self.api_client.response_deserialize(
936
+ response_data=response_data,
937
+ response_types_map=_response_types_map,
938
+ ).data
939
+
940
+
941
+ @validate_call
942
+ def leaderboard_leaderboard_id_get_with_http_info(
943
+ self,
944
+ leaderboard_id: StrictStr,
945
+ _request_timeout: Union[
946
+ None,
947
+ Annotated[StrictFloat, Field(gt=0)],
948
+ Tuple[
949
+ Annotated[StrictFloat, Field(gt=0)],
950
+ Annotated[StrictFloat, Field(gt=0)]
951
+ ]
952
+ ] = None,
953
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
954
+ _content_type: Optional[StrictStr] = None,
955
+ _headers: Optional[Dict[StrictStr, Any]] = None,
956
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
957
+ ) -> ApiResponse[GetLeaderboardByIdResult]:
958
+ """Gets a leaderboard by its ID.
959
+
960
+
961
+ :param leaderboard_id: (required)
962
+ :type leaderboard_id: str
963
+ :param _request_timeout: timeout setting for this request. If one
964
+ number provided, it will be total request
965
+ timeout. It can also be a pair (tuple) of
966
+ (connection, read) timeouts.
967
+ :type _request_timeout: int, tuple(int, int), optional
968
+ :param _request_auth: set to override the auth_settings for an a single
969
+ request; this effectively ignores the
970
+ authentication in the spec for a single request.
971
+ :type _request_auth: dict, optional
972
+ :param _content_type: force content-type for the request.
973
+ :type _content_type: str, Optional
974
+ :param _headers: set to override the headers for a single
975
+ request; this effectively ignores the headers
976
+ in the spec for a single request.
977
+ :type _headers: dict, optional
978
+ :param _host_index: set to override the host_index for a single
979
+ request; this effectively ignores the host_index
980
+ in the spec for a single request.
981
+ :type _host_index: int, optional
982
+ :return: Returns the result object.
983
+ """ # noqa: E501
984
+
985
+ _param = self._leaderboard_leaderboard_id_get_serialize(
986
+ leaderboard_id=leaderboard_id,
987
+ _request_auth=_request_auth,
988
+ _content_type=_content_type,
989
+ _headers=_headers,
990
+ _host_index=_host_index
991
+ )
992
+
993
+ _response_types_map: Dict[str, Optional[str]] = {
994
+ '200': "GetLeaderboardByIdResult",
995
+ }
996
+ response_data = self.api_client.call_api(
997
+ *_param,
998
+ _request_timeout=_request_timeout
999
+ )
1000
+ response_data.read()
1001
+ return self.api_client.response_deserialize(
1002
+ response_data=response_data,
1003
+ response_types_map=_response_types_map,
1004
+ )
1005
+
1006
+
1007
+ @validate_call
1008
+ def leaderboard_leaderboard_id_get_without_preload_content(
1009
+ self,
1010
+ leaderboard_id: StrictStr,
1011
+ _request_timeout: Union[
1012
+ None,
1013
+ Annotated[StrictFloat, Field(gt=0)],
1014
+ Tuple[
1015
+ Annotated[StrictFloat, Field(gt=0)],
1016
+ Annotated[StrictFloat, Field(gt=0)]
1017
+ ]
1018
+ ] = None,
1019
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1020
+ _content_type: Optional[StrictStr] = None,
1021
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1022
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1023
+ ) -> RESTResponseType:
1024
+ """Gets a leaderboard by its ID.
1025
+
1026
+
1027
+ :param leaderboard_id: (required)
1028
+ :type leaderboard_id: str
1029
+ :param _request_timeout: timeout setting for this request. If one
1030
+ number provided, it will be total request
1031
+ timeout. It can also be a pair (tuple) of
1032
+ (connection, read) timeouts.
1033
+ :type _request_timeout: int, tuple(int, int), optional
1034
+ :param _request_auth: set to override the auth_settings for an a single
1035
+ request; this effectively ignores the
1036
+ authentication in the spec for a single request.
1037
+ :type _request_auth: dict, optional
1038
+ :param _content_type: force content-type for the request.
1039
+ :type _content_type: str, Optional
1040
+ :param _headers: set to override the headers for a single
1041
+ request; this effectively ignores the headers
1042
+ in the spec for a single request.
1043
+ :type _headers: dict, optional
1044
+ :param _host_index: set to override the host_index for a single
1045
+ request; this effectively ignores the host_index
1046
+ in the spec for a single request.
1047
+ :type _host_index: int, optional
1048
+ :return: Returns the result object.
1049
+ """ # noqa: E501
1050
+
1051
+ _param = self._leaderboard_leaderboard_id_get_serialize(
1052
+ leaderboard_id=leaderboard_id,
1053
+ _request_auth=_request_auth,
1054
+ _content_type=_content_type,
1055
+ _headers=_headers,
1056
+ _host_index=_host_index
1057
+ )
1058
+
1059
+ _response_types_map: Dict[str, Optional[str]] = {
1060
+ '200': "GetLeaderboardByIdResult",
1061
+ }
1062
+ response_data = self.api_client.call_api(
1063
+ *_param,
1064
+ _request_timeout=_request_timeout
1065
+ )
1066
+ return response_data.response
1067
+
1068
+
1069
+ def _leaderboard_leaderboard_id_get_serialize(
1070
+ self,
1071
+ leaderboard_id,
1072
+ _request_auth,
1073
+ _content_type,
1074
+ _headers,
1075
+ _host_index,
1076
+ ) -> RequestSerialized:
1077
+
1078
+ _host = None
1079
+
1080
+ _collection_formats: Dict[str, str] = {
1081
+ }
1082
+
1083
+ _path_params: Dict[str, str] = {}
1084
+ _query_params: List[Tuple[str, str]] = []
1085
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1086
+ _form_params: List[Tuple[str, str]] = []
1087
+ _files: Dict[
1088
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1089
+ ] = {}
1090
+ _body_params: Optional[bytes] = None
1091
+
1092
+ # process the path parameters
1093
+ if leaderboard_id is not None:
1094
+ _path_params['leaderboardId'] = leaderboard_id
1095
+ # process the query parameters
1096
+ # process the header parameters
1097
+ # process the form parameters
1098
+ # process the body parameter
1099
+
1100
+
1101
+ # set the HTTP header `Accept`
1102
+ if 'Accept' not in _header_params:
1103
+ _header_params['Accept'] = self.api_client.select_header_accept(
1104
+ [
1105
+ 'text/plain',
1106
+ 'application/json',
1107
+ 'text/json'
1108
+ ]
1109
+ )
1110
+
1111
+
1112
+ # authentication setting
1113
+ _auth_settings: List[str] = [
1114
+ 'OAuth2',
1115
+ 'OpenIdConnect',
1116
+ 'Bearer'
1117
+ ]
1118
+
1119
+ return self.api_client.param_serialize(
1120
+ method='GET',
1121
+ resource_path='/leaderboard/{leaderboardId}',
1122
+ path_params=_path_params,
1123
+ query_params=_query_params,
1124
+ header_params=_header_params,
1125
+ body=_body_params,
1126
+ post_params=_form_params,
1127
+ files=_files,
1128
+ auth_settings=_auth_settings,
1129
+ collection_formats=_collection_formats,
1130
+ _host=_host,
1131
+ _request_auth=_request_auth
1132
+ )
1133
+
1134
+
1135
+
1136
+
1137
+ @validate_call
1138
+ def leaderboard_leaderboard_id_matrix_get(
1139
+ self,
1140
+ leaderboard_id: StrictStr,
1141
+ tags: Optional[List[StrictStr]] = None,
1142
+ use_weighted_scoring: Optional[StrictBool] = None,
1143
+ _request_timeout: Union[
1144
+ None,
1145
+ Annotated[StrictFloat, Field(gt=0)],
1146
+ Tuple[
1147
+ Annotated[StrictFloat, Field(gt=0)],
1148
+ Annotated[StrictFloat, Field(gt=0)]
1149
+ ]
1150
+ ] = None,
1151
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1152
+ _content_type: Optional[StrictStr] = None,
1153
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1154
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1155
+ ) -> VoteMatrixResult:
1156
+ """Returns the pairwise vote matrix for a leaderboard.
1157
+
1158
+
1159
+ :param leaderboard_id: (required)
1160
+ :type leaderboard_id: str
1161
+ :param tags:
1162
+ :type tags: List[str]
1163
+ :param use_weighted_scoring:
1164
+ :type use_weighted_scoring: bool
1165
+ :param _request_timeout: timeout setting for this request. If one
1166
+ number provided, it will be total request
1167
+ timeout. It can also be a pair (tuple) of
1168
+ (connection, read) timeouts.
1169
+ :type _request_timeout: int, tuple(int, int), optional
1170
+ :param _request_auth: set to override the auth_settings for an a single
1171
+ request; this effectively ignores the
1172
+ authentication in the spec for a single request.
1173
+ :type _request_auth: dict, optional
1174
+ :param _content_type: force content-type for the request.
1175
+ :type _content_type: str, Optional
1176
+ :param _headers: set to override the headers for a single
1177
+ request; this effectively ignores the headers
1178
+ in the spec for a single request.
1179
+ :type _headers: dict, optional
1180
+ :param _host_index: set to override the host_index for a single
1181
+ request; this effectively ignores the host_index
1182
+ in the spec for a single request.
1183
+ :type _host_index: int, optional
1184
+ :return: Returns the result object.
1185
+ """ # noqa: E501
1186
+
1187
+ _param = self._leaderboard_leaderboard_id_matrix_get_serialize(
1188
+ leaderboard_id=leaderboard_id,
1189
+ tags=tags,
1190
+ use_weighted_scoring=use_weighted_scoring,
1191
+ _request_auth=_request_auth,
1192
+ _content_type=_content_type,
1193
+ _headers=_headers,
1194
+ _host_index=_host_index
1195
+ )
1196
+
1197
+ _response_types_map: Dict[str, Optional[str]] = {
1198
+ '200': "VoteMatrixResult",
1199
+ '400': "ValidationProblemDetails",
1200
+ '401': None,
1201
+ '403': None,
1202
+ }
1203
+ response_data = self.api_client.call_api(
1204
+ *_param,
1205
+ _request_timeout=_request_timeout
1206
+ )
1207
+ response_data.read()
1208
+ return self.api_client.response_deserialize(
1209
+ response_data=response_data,
1210
+ response_types_map=_response_types_map,
1211
+ ).data
1212
+
1213
+
1214
+ @validate_call
1215
+ def leaderboard_leaderboard_id_matrix_get_with_http_info(
1216
+ self,
1217
+ leaderboard_id: StrictStr,
1218
+ tags: Optional[List[StrictStr]] = None,
1219
+ use_weighted_scoring: Optional[StrictBool] = None,
1220
+ _request_timeout: Union[
1221
+ None,
1222
+ Annotated[StrictFloat, Field(gt=0)],
1223
+ Tuple[
1224
+ Annotated[StrictFloat, Field(gt=0)],
1225
+ Annotated[StrictFloat, Field(gt=0)]
1226
+ ]
1227
+ ] = None,
1228
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1229
+ _content_type: Optional[StrictStr] = None,
1230
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1231
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1232
+ ) -> ApiResponse[VoteMatrixResult]:
1233
+ """Returns the pairwise vote matrix for a leaderboard.
1234
+
1235
+
1236
+ :param leaderboard_id: (required)
1237
+ :type leaderboard_id: str
1238
+ :param tags:
1239
+ :type tags: List[str]
1240
+ :param use_weighted_scoring:
1241
+ :type use_weighted_scoring: bool
1242
+ :param _request_timeout: timeout setting for this request. If one
1243
+ number provided, it will be total request
1244
+ timeout. It can also be a pair (tuple) of
1245
+ (connection, read) timeouts.
1246
+ :type _request_timeout: int, tuple(int, int), optional
1247
+ :param _request_auth: set to override the auth_settings for an a single
1248
+ request; this effectively ignores the
1249
+ authentication in the spec for a single request.
1250
+ :type _request_auth: dict, optional
1251
+ :param _content_type: force content-type for the request.
1252
+ :type _content_type: str, Optional
1253
+ :param _headers: set to override the headers for a single
1254
+ request; this effectively ignores the headers
1255
+ in the spec for a single request.
1256
+ :type _headers: dict, optional
1257
+ :param _host_index: set to override the host_index for a single
1258
+ request; this effectively ignores the host_index
1259
+ in the spec for a single request.
1260
+ :type _host_index: int, optional
1261
+ :return: Returns the result object.
1262
+ """ # noqa: E501
1263
+
1264
+ _param = self._leaderboard_leaderboard_id_matrix_get_serialize(
1265
+ leaderboard_id=leaderboard_id,
1266
+ tags=tags,
1267
+ use_weighted_scoring=use_weighted_scoring,
1268
+ _request_auth=_request_auth,
1269
+ _content_type=_content_type,
1270
+ _headers=_headers,
1271
+ _host_index=_host_index
1272
+ )
1273
+
1274
+ _response_types_map: Dict[str, Optional[str]] = {
1275
+ '200': "VoteMatrixResult",
1276
+ '400': "ValidationProblemDetails",
1277
+ '401': None,
1278
+ '403': None,
1279
+ }
1280
+ response_data = self.api_client.call_api(
1281
+ *_param,
1282
+ _request_timeout=_request_timeout
1283
+ )
1284
+ response_data.read()
1285
+ return self.api_client.response_deserialize(
1286
+ response_data=response_data,
1287
+ response_types_map=_response_types_map,
1288
+ )
1289
+
1290
+
1291
+ @validate_call
1292
+ def leaderboard_leaderboard_id_matrix_get_without_preload_content(
1293
+ self,
1294
+ leaderboard_id: StrictStr,
1295
+ tags: Optional[List[StrictStr]] = None,
1296
+ use_weighted_scoring: Optional[StrictBool] = None,
1297
+ _request_timeout: Union[
1298
+ None,
1299
+ Annotated[StrictFloat, Field(gt=0)],
1300
+ Tuple[
1301
+ Annotated[StrictFloat, Field(gt=0)],
1302
+ Annotated[StrictFloat, Field(gt=0)]
1303
+ ]
1304
+ ] = None,
1305
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1306
+ _content_type: Optional[StrictStr] = None,
1307
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1308
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1309
+ ) -> RESTResponseType:
1310
+ """Returns the pairwise vote matrix for a leaderboard.
1311
+
1312
+
1313
+ :param leaderboard_id: (required)
1314
+ :type leaderboard_id: str
1315
+ :param tags:
1316
+ :type tags: List[str]
1317
+ :param use_weighted_scoring:
1318
+ :type use_weighted_scoring: bool
1319
+ :param _request_timeout: timeout setting for this request. If one
1320
+ number provided, it will be total request
1321
+ timeout. It can also be a pair (tuple) of
1322
+ (connection, read) timeouts.
1323
+ :type _request_timeout: int, tuple(int, int), optional
1324
+ :param _request_auth: set to override the auth_settings for an a single
1325
+ request; this effectively ignores the
1326
+ authentication in the spec for a single request.
1327
+ :type _request_auth: dict, optional
1328
+ :param _content_type: force content-type for the request.
1329
+ :type _content_type: str, Optional
1330
+ :param _headers: set to override the headers for a single
1331
+ request; this effectively ignores the headers
1332
+ in the spec for a single request.
1333
+ :type _headers: dict, optional
1334
+ :param _host_index: set to override the host_index for a single
1335
+ request; this effectively ignores the host_index
1336
+ in the spec for a single request.
1337
+ :type _host_index: int, optional
1338
+ :return: Returns the result object.
1339
+ """ # noqa: E501
1340
+
1341
+ _param = self._leaderboard_leaderboard_id_matrix_get_serialize(
1342
+ leaderboard_id=leaderboard_id,
1343
+ tags=tags,
1344
+ use_weighted_scoring=use_weighted_scoring,
1345
+ _request_auth=_request_auth,
1346
+ _content_type=_content_type,
1347
+ _headers=_headers,
1348
+ _host_index=_host_index
1349
+ )
1350
+
1351
+ _response_types_map: Dict[str, Optional[str]] = {
1352
+ '200': "VoteMatrixResult",
1353
+ '400': "ValidationProblemDetails",
1354
+ '401': None,
1355
+ '403': None,
1356
+ }
1357
+ response_data = self.api_client.call_api(
1358
+ *_param,
1359
+ _request_timeout=_request_timeout
1360
+ )
1361
+ return response_data.response
1362
+
1363
+
1364
+ def _leaderboard_leaderboard_id_matrix_get_serialize(
1365
+ self,
1366
+ leaderboard_id,
1367
+ tags,
1368
+ use_weighted_scoring,
1369
+ _request_auth,
1370
+ _content_type,
1371
+ _headers,
1372
+ _host_index,
1373
+ ) -> RequestSerialized:
1374
+
1375
+ _host = None
1376
+
1377
+ _collection_formats: Dict[str, str] = {
1378
+ 'tags': 'multi',
1379
+ }
1380
+
1381
+ _path_params: Dict[str, str] = {}
1382
+ _query_params: List[Tuple[str, str]] = []
1383
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1384
+ _form_params: List[Tuple[str, str]] = []
1385
+ _files: Dict[
1386
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1387
+ ] = {}
1388
+ _body_params: Optional[bytes] = None
1389
+
1390
+ # process the path parameters
1391
+ if leaderboard_id is not None:
1392
+ _path_params['leaderboardId'] = leaderboard_id
1393
+ # process the query parameters
1394
+ if tags is not None:
1395
+
1396
+ _query_params.append(('tags', tags))
1397
+
1398
+ if use_weighted_scoring is not None:
1399
+
1400
+ _query_params.append(('useWeightedScoring', use_weighted_scoring))
1401
+
1402
+ # process the header parameters
1403
+ # process the form parameters
1404
+ # process the body parameter
1405
+
1406
+
1407
+ # set the HTTP header `Accept`
1408
+ if 'Accept' not in _header_params:
1409
+ _header_params['Accept'] = self.api_client.select_header_accept(
1410
+ [
1411
+ 'application/json'
1412
+ ]
1413
+ )
1414
+
1415
+
1416
+ # authentication setting
1417
+ _auth_settings: List[str] = [
1418
+ 'OAuth2',
1419
+ 'OpenIdConnect',
1420
+ 'Bearer'
1421
+ ]
1422
+
1423
+ return self.api_client.param_serialize(
1424
+ method='GET',
1425
+ resource_path='/leaderboard/{leaderboardId}/matrix',
1426
+ path_params=_path_params,
1427
+ query_params=_query_params,
1428
+ header_params=_header_params,
1429
+ body=_body_params,
1430
+ post_params=_form_params,
1431
+ files=_files,
1432
+ auth_settings=_auth_settings,
1433
+ collection_formats=_collection_formats,
1434
+ _host=_host,
1435
+ _request_auth=_request_auth
1436
+ )
1437
+
1438
+
1439
+
1440
+
1441
+ @validate_call
1442
+ def leaderboard_leaderboard_id_patch(
1443
+ self,
1444
+ leaderboard_id: StrictStr,
1445
+ update_leaderboard_model: UpdateLeaderboardModel,
1446
+ _request_timeout: Union[
1447
+ None,
1448
+ Annotated[StrictFloat, Field(gt=0)],
1449
+ Tuple[
1450
+ Annotated[StrictFloat, Field(gt=0)],
1451
+ Annotated[StrictFloat, Field(gt=0)]
1452
+ ]
1453
+ ] = None,
1454
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1455
+ _content_type: Optional[StrictStr] = None,
1456
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1457
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1458
+ ) -> None:
1459
+ """Updates the response config of a leaderboard.
1460
+
1461
+
1462
+ :param leaderboard_id: (required)
1463
+ :type leaderboard_id: str
1464
+ :param update_leaderboard_model: (required)
1465
+ :type update_leaderboard_model: UpdateLeaderboardModel
1466
+ :param _request_timeout: timeout setting for this request. If one
1467
+ number provided, it will be total request
1468
+ timeout. It can also be a pair (tuple) of
1469
+ (connection, read) timeouts.
1470
+ :type _request_timeout: int, tuple(int, int), optional
1471
+ :param _request_auth: set to override the auth_settings for an a single
1472
+ request; this effectively ignores the
1473
+ authentication in the spec for a single request.
1474
+ :type _request_auth: dict, optional
1475
+ :param _content_type: force content-type for the request.
1476
+ :type _content_type: str, Optional
1477
+ :param _headers: set to override the headers for a single
1478
+ request; this effectively ignores the headers
1479
+ in the spec for a single request.
1480
+ :type _headers: dict, optional
1481
+ :param _host_index: set to override the host_index for a single
1482
+ request; this effectively ignores the host_index
1483
+ in the spec for a single request.
1484
+ :type _host_index: int, optional
1485
+ :return: Returns the result object.
1486
+ """ # noqa: E501
1487
+
1488
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
1489
+ leaderboard_id=leaderboard_id,
1490
+ update_leaderboard_model=update_leaderboard_model,
1491
+ _request_auth=_request_auth,
1492
+ _content_type=_content_type,
1493
+ _headers=_headers,
1494
+ _host_index=_host_index
1495
+ )
1496
+
1497
+ _response_types_map: Dict[str, Optional[str]] = {
1498
+ '204': None,
1499
+ }
1500
+ response_data = self.api_client.call_api(
1501
+ *_param,
1502
+ _request_timeout=_request_timeout
1503
+ )
1504
+ response_data.read()
1505
+ return self.api_client.response_deserialize(
1506
+ response_data=response_data,
1507
+ response_types_map=_response_types_map,
1508
+ ).data
1509
+
1510
+
1511
+ @validate_call
1512
+ def leaderboard_leaderboard_id_patch_with_http_info(
1513
+ self,
1514
+ leaderboard_id: StrictStr,
1515
+ update_leaderboard_model: UpdateLeaderboardModel,
1516
+ _request_timeout: Union[
1517
+ None,
1518
+ Annotated[StrictFloat, Field(gt=0)],
1519
+ Tuple[
1520
+ Annotated[StrictFloat, Field(gt=0)],
1521
+ Annotated[StrictFloat, Field(gt=0)]
1522
+ ]
1523
+ ] = None,
1524
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1525
+ _content_type: Optional[StrictStr] = None,
1526
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1527
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1528
+ ) -> ApiResponse[None]:
1529
+ """Updates the response config of a leaderboard.
1530
+
1531
+
1532
+ :param leaderboard_id: (required)
1533
+ :type leaderboard_id: str
1534
+ :param update_leaderboard_model: (required)
1535
+ :type update_leaderboard_model: UpdateLeaderboardModel
1536
+ :param _request_timeout: timeout setting for this request. If one
1537
+ number provided, it will be total request
1538
+ timeout. It can also be a pair (tuple) of
1539
+ (connection, read) timeouts.
1540
+ :type _request_timeout: int, tuple(int, int), optional
1541
+ :param _request_auth: set to override the auth_settings for an a single
1542
+ request; this effectively ignores the
1543
+ authentication in the spec for a single request.
1544
+ :type _request_auth: dict, optional
1545
+ :param _content_type: force content-type for the request.
1546
+ :type _content_type: str, Optional
1547
+ :param _headers: set to override the headers for a single
1548
+ request; this effectively ignores the headers
1549
+ in the spec for a single request.
1550
+ :type _headers: dict, optional
1551
+ :param _host_index: set to override the host_index for a single
1552
+ request; this effectively ignores the host_index
1553
+ in the spec for a single request.
1554
+ :type _host_index: int, optional
1555
+ :return: Returns the result object.
1556
+ """ # noqa: E501
1557
+
1558
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
1559
+ leaderboard_id=leaderboard_id,
1560
+ update_leaderboard_model=update_leaderboard_model,
1561
+ _request_auth=_request_auth,
1562
+ _content_type=_content_type,
1563
+ _headers=_headers,
1564
+ _host_index=_host_index
1565
+ )
1566
+
1567
+ _response_types_map: Dict[str, Optional[str]] = {
1568
+ '204': None,
1569
+ }
1570
+ response_data = self.api_client.call_api(
1571
+ *_param,
1572
+ _request_timeout=_request_timeout
1573
+ )
1574
+ response_data.read()
1575
+ return self.api_client.response_deserialize(
1576
+ response_data=response_data,
1577
+ response_types_map=_response_types_map,
1578
+ )
1579
+
1580
+
1581
+ @validate_call
1582
+ def leaderboard_leaderboard_id_patch_without_preload_content(
1583
+ self,
1584
+ leaderboard_id: StrictStr,
1585
+ update_leaderboard_model: UpdateLeaderboardModel,
1586
+ _request_timeout: Union[
1587
+ None,
1588
+ Annotated[StrictFloat, Field(gt=0)],
1589
+ Tuple[
1590
+ Annotated[StrictFloat, Field(gt=0)],
1591
+ Annotated[StrictFloat, Field(gt=0)]
1592
+ ]
1593
+ ] = None,
1594
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1595
+ _content_type: Optional[StrictStr] = None,
1596
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1597
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1598
+ ) -> RESTResponseType:
1599
+ """Updates the response config of a leaderboard.
1600
+
1601
+
1602
+ :param leaderboard_id: (required)
1603
+ :type leaderboard_id: str
1604
+ :param update_leaderboard_model: (required)
1605
+ :type update_leaderboard_model: UpdateLeaderboardModel
1606
+ :param _request_timeout: timeout setting for this request. If one
1607
+ number provided, it will be total request
1608
+ timeout. It can also be a pair (tuple) of
1609
+ (connection, read) timeouts.
1610
+ :type _request_timeout: int, tuple(int, int), optional
1611
+ :param _request_auth: set to override the auth_settings for an a single
1612
+ request; this effectively ignores the
1613
+ authentication in the spec for a single request.
1614
+ :type _request_auth: dict, optional
1615
+ :param _content_type: force content-type for the request.
1616
+ :type _content_type: str, Optional
1617
+ :param _headers: set to override the headers for a single
1618
+ request; this effectively ignores the headers
1619
+ in the spec for a single request.
1620
+ :type _headers: dict, optional
1621
+ :param _host_index: set to override the host_index for a single
1622
+ request; this effectively ignores the host_index
1623
+ in the spec for a single request.
1624
+ :type _host_index: int, optional
1625
+ :return: Returns the result object.
1626
+ """ # noqa: E501
1627
+
1628
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
1629
+ leaderboard_id=leaderboard_id,
1630
+ update_leaderboard_model=update_leaderboard_model,
1631
+ _request_auth=_request_auth,
1632
+ _content_type=_content_type,
1633
+ _headers=_headers,
1634
+ _host_index=_host_index
1635
+ )
1636
+
1637
+ _response_types_map: Dict[str, Optional[str]] = {
1638
+ '204': None,
1639
+ }
1640
+ response_data = self.api_client.call_api(
1641
+ *_param,
1642
+ _request_timeout=_request_timeout
1643
+ )
1644
+ return response_data.response
1645
+
1646
+
1647
+ def _leaderboard_leaderboard_id_patch_serialize(
1648
+ self,
1649
+ leaderboard_id,
1650
+ update_leaderboard_model,
1651
+ _request_auth,
1652
+ _content_type,
1653
+ _headers,
1654
+ _host_index,
1655
+ ) -> RequestSerialized:
1656
+
1657
+ _host = None
1658
+
1659
+ _collection_formats: Dict[str, str] = {
1660
+ }
1661
+
1662
+ _path_params: Dict[str, str] = {}
1663
+ _query_params: List[Tuple[str, str]] = []
1664
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1665
+ _form_params: List[Tuple[str, str]] = []
1666
+ _files: Dict[
1667
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1668
+ ] = {}
1669
+ _body_params: Optional[bytes] = None
1670
+
1671
+ # process the path parameters
1672
+ if leaderboard_id is not None:
1673
+ _path_params['leaderboardId'] = leaderboard_id
1674
+ # process the query parameters
1675
+ # process the header parameters
1676
+ # process the form parameters
1677
+ # process the body parameter
1678
+ if update_leaderboard_model is not None:
1679
+ _body_params = update_leaderboard_model
1680
+
1681
+
1682
+
1683
+ # set the HTTP header `Content-Type`
1684
+ if _content_type:
1685
+ _header_params['Content-Type'] = _content_type
1686
+ else:
1687
+ _default_content_type = (
1688
+ self.api_client.select_header_content_type(
1689
+ [
1690
+ 'application/json',
1691
+ 'text/json',
1692
+ 'application/*+json'
1693
+ ]
1694
+ )
1695
+ )
1696
+ if _default_content_type is not None:
1697
+ _header_params['Content-Type'] = _default_content_type
1698
+
1699
+ # authentication setting
1700
+ _auth_settings: List[str] = [
1701
+ 'OAuth2',
1702
+ 'OpenIdConnect',
1703
+ 'Bearer'
1704
+ ]
1705
+
1706
+ return self.api_client.param_serialize(
1707
+ method='PATCH',
1708
+ resource_path='/leaderboard/{leaderboardId}',
1709
+ path_params=_path_params,
1710
+ query_params=_query_params,
1711
+ header_params=_header_params,
1712
+ body=_body_params,
1713
+ post_params=_form_params,
1714
+ files=_files,
1715
+ auth_settings=_auth_settings,
1716
+ collection_formats=_collection_formats,
1717
+ _host=_host,
1718
+ _request_auth=_request_auth
1719
+ )
1720
+
1721
+
1722
+
1723
+
1724
+ @validate_call
1725
+ def leaderboard_leaderboard_id_runs_get(
1726
+ self,
1727
+ leaderboard_id: StrictStr,
1728
+ request: Optional[QueryModel] = None,
1729
+ _request_timeout: Union[
1730
+ None,
1731
+ Annotated[StrictFloat, Field(gt=0)],
1732
+ Tuple[
1733
+ Annotated[StrictFloat, Field(gt=0)],
1734
+ Annotated[StrictFloat, Field(gt=0)]
1735
+ ]
1736
+ ] = None,
1737
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1738
+ _content_type: Optional[StrictStr] = None,
1739
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1740
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1741
+ ) -> PagedResultOfRunsByLeaderboardResult:
1742
+ """Gets the runs related to a leaderboard
1743
+
1744
+
1745
+ :param leaderboard_id: (required)
1746
+ :type leaderboard_id: str
1747
+ :param request:
1748
+ :type request: QueryModel
1749
+ :param _request_timeout: timeout setting for this request. If one
1750
+ number provided, it will be total request
1751
+ timeout. It can also be a pair (tuple) of
1752
+ (connection, read) timeouts.
1753
+ :type _request_timeout: int, tuple(int, int), optional
1754
+ :param _request_auth: set to override the auth_settings for an a single
1755
+ request; this effectively ignores the
1756
+ authentication in the spec for a single request.
1757
+ :type _request_auth: dict, optional
1758
+ :param _content_type: force content-type for the request.
1759
+ :type _content_type: str, Optional
1760
+ :param _headers: set to override the headers for a single
1761
+ request; this effectively ignores the headers
1762
+ in the spec for a single request.
1763
+ :type _headers: dict, optional
1764
+ :param _host_index: set to override the host_index for a single
1765
+ request; this effectively ignores the host_index
1766
+ in the spec for a single request.
1767
+ :type _host_index: int, optional
1768
+ :return: Returns the result object.
1769
+ """ # noqa: E501
1770
+
1771
+ _param = self._leaderboard_leaderboard_id_runs_get_serialize(
1772
+ leaderboard_id=leaderboard_id,
1773
+ request=request,
1774
+ _request_auth=_request_auth,
1775
+ _content_type=_content_type,
1776
+ _headers=_headers,
1777
+ _host_index=_host_index
1778
+ )
1779
+
1780
+ _response_types_map: Dict[str, Optional[str]] = {
1781
+ '200': "PagedResultOfRunsByLeaderboardResult",
1782
+ }
1783
+ response_data = self.api_client.call_api(
1784
+ *_param,
1785
+ _request_timeout=_request_timeout
1786
+ )
1787
+ response_data.read()
1788
+ return self.api_client.response_deserialize(
1789
+ response_data=response_data,
1790
+ response_types_map=_response_types_map,
1791
+ ).data
1792
+
1793
+
1794
+ @validate_call
1795
+ def leaderboard_leaderboard_id_runs_get_with_http_info(
1796
+ self,
1797
+ leaderboard_id: StrictStr,
1798
+ request: Optional[QueryModel] = None,
1799
+ _request_timeout: Union[
1800
+ None,
1801
+ Annotated[StrictFloat, Field(gt=0)],
1802
+ Tuple[
1803
+ Annotated[StrictFloat, Field(gt=0)],
1804
+ Annotated[StrictFloat, Field(gt=0)]
1805
+ ]
1806
+ ] = None,
1807
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1808
+ _content_type: Optional[StrictStr] = None,
1809
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1810
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1811
+ ) -> ApiResponse[PagedResultOfRunsByLeaderboardResult]:
1812
+ """Gets the runs related to a leaderboard
1813
+
1814
+
1815
+ :param leaderboard_id: (required)
1816
+ :type leaderboard_id: str
1817
+ :param request:
1818
+ :type request: QueryModel
1819
+ :param _request_timeout: timeout setting for this request. If one
1820
+ number provided, it will be total request
1821
+ timeout. It can also be a pair (tuple) of
1822
+ (connection, read) timeouts.
1823
+ :type _request_timeout: int, tuple(int, int), optional
1824
+ :param _request_auth: set to override the auth_settings for an a single
1825
+ request; this effectively ignores the
1826
+ authentication in the spec for a single request.
1827
+ :type _request_auth: dict, optional
1828
+ :param _content_type: force content-type for the request.
1829
+ :type _content_type: str, Optional
1830
+ :param _headers: set to override the headers for a single
1831
+ request; this effectively ignores the headers
1832
+ in the spec for a single request.
1833
+ :type _headers: dict, optional
1834
+ :param _host_index: set to override the host_index for a single
1835
+ request; this effectively ignores the host_index
1836
+ in the spec for a single request.
1837
+ :type _host_index: int, optional
1838
+ :return: Returns the result object.
1839
+ """ # noqa: E501
1840
+
1841
+ _param = self._leaderboard_leaderboard_id_runs_get_serialize(
1842
+ leaderboard_id=leaderboard_id,
1843
+ request=request,
1844
+ _request_auth=_request_auth,
1845
+ _content_type=_content_type,
1846
+ _headers=_headers,
1847
+ _host_index=_host_index
1848
+ )
1849
+
1850
+ _response_types_map: Dict[str, Optional[str]] = {
1851
+ '200': "PagedResultOfRunsByLeaderboardResult",
1852
+ }
1853
+ response_data = self.api_client.call_api(
1854
+ *_param,
1855
+ _request_timeout=_request_timeout
1856
+ )
1857
+ response_data.read()
1858
+ return self.api_client.response_deserialize(
1859
+ response_data=response_data,
1860
+ response_types_map=_response_types_map,
1861
+ )
1862
+
1863
+
1864
+ @validate_call
1865
+ def leaderboard_leaderboard_id_runs_get_without_preload_content(
1866
+ self,
1867
+ leaderboard_id: StrictStr,
1868
+ request: Optional[QueryModel] = None,
1869
+ _request_timeout: Union[
1870
+ None,
1871
+ Annotated[StrictFloat, Field(gt=0)],
1872
+ Tuple[
1873
+ Annotated[StrictFloat, Field(gt=0)],
1874
+ Annotated[StrictFloat, Field(gt=0)]
1875
+ ]
1876
+ ] = None,
1877
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1878
+ _content_type: Optional[StrictStr] = None,
1879
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1880
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1881
+ ) -> RESTResponseType:
1882
+ """Gets the runs related to a leaderboard
1883
+
1884
+
1885
+ :param leaderboard_id: (required)
1886
+ :type leaderboard_id: str
1887
+ :param request:
1888
+ :type request: QueryModel
1889
+ :param _request_timeout: timeout setting for this request. If one
1890
+ number provided, it will be total request
1891
+ timeout. It can also be a pair (tuple) of
1892
+ (connection, read) timeouts.
1893
+ :type _request_timeout: int, tuple(int, int), optional
1894
+ :param _request_auth: set to override the auth_settings for an a single
1895
+ request; this effectively ignores the
1896
+ authentication in the spec for a single request.
1897
+ :type _request_auth: dict, optional
1898
+ :param _content_type: force content-type for the request.
1899
+ :type _content_type: str, Optional
1900
+ :param _headers: set to override the headers for a single
1901
+ request; this effectively ignores the headers
1902
+ in the spec for a single request.
1903
+ :type _headers: dict, optional
1904
+ :param _host_index: set to override the host_index for a single
1905
+ request; this effectively ignores the host_index
1906
+ in the spec for a single request.
1907
+ :type _host_index: int, optional
1908
+ :return: Returns the result object.
1909
+ """ # noqa: E501
1910
+
1911
+ _param = self._leaderboard_leaderboard_id_runs_get_serialize(
1912
+ leaderboard_id=leaderboard_id,
1913
+ request=request,
1914
+ _request_auth=_request_auth,
1915
+ _content_type=_content_type,
1916
+ _headers=_headers,
1917
+ _host_index=_host_index
1918
+ )
1919
+
1920
+ _response_types_map: Dict[str, Optional[str]] = {
1921
+ '200': "PagedResultOfRunsByLeaderboardResult",
1922
+ }
1923
+ response_data = self.api_client.call_api(
1924
+ *_param,
1925
+ _request_timeout=_request_timeout
1926
+ )
1927
+ return response_data.response
1928
+
1929
+
1930
+ def _leaderboard_leaderboard_id_runs_get_serialize(
1931
+ self,
1932
+ leaderboard_id,
1933
+ request,
1934
+ _request_auth,
1935
+ _content_type,
1936
+ _headers,
1937
+ _host_index,
1938
+ ) -> RequestSerialized:
1939
+
1940
+ _host = None
1941
+
1942
+ _collection_formats: Dict[str, str] = {
1943
+ }
1944
+
1945
+ _path_params: Dict[str, str] = {}
1946
+ _query_params: List[Tuple[str, str]] = []
1947
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1948
+ _form_params: List[Tuple[str, str]] = []
1949
+ _files: Dict[
1950
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1951
+ ] = {}
1952
+ _body_params: Optional[bytes] = None
1953
+
1954
+ # process the path parameters
1955
+ if leaderboard_id is not None:
1956
+ _path_params['leaderboardId'] = leaderboard_id
1957
+ # process the query parameters
1958
+ if request is not None:
1959
+
1960
+ _query_params.append(('request', request))
1961
+
1962
+ # process the header parameters
1963
+ # process the form parameters
1964
+ # process the body parameter
1965
+
1966
+
1967
+ # set the HTTP header `Accept`
1968
+ if 'Accept' not in _header_params:
1969
+ _header_params['Accept'] = self.api_client.select_header_accept(
1970
+ [
1971
+ 'text/plain',
1972
+ 'application/json',
1973
+ 'text/json'
1974
+ ]
1975
+ )
1976
+
1977
+
1978
+ # authentication setting
1979
+ _auth_settings: List[str] = [
1980
+ 'OAuth2',
1981
+ 'OpenIdConnect',
1982
+ 'Bearer'
1983
+ ]
1984
+
1985
+ return self.api_client.param_serialize(
1986
+ method='GET',
1987
+ resource_path='/leaderboard/{leaderboardId}/runs',
1988
+ path_params=_path_params,
1989
+ query_params=_query_params,
1990
+ header_params=_header_params,
1991
+ body=_body_params,
1992
+ post_params=_form_params,
1993
+ files=_files,
1994
+ auth_settings=_auth_settings,
1995
+ collection_formats=_collection_formats,
1996
+ _host=_host,
1997
+ _request_auth=_request_auth
1998
+ )
1999
+
2000
+
2001
+
2002
+
2003
+ @validate_call
2004
+ def leaderboard_leaderboard_id_standings_get(
2005
+ self,
2006
+ leaderboard_id: StrictStr,
2007
+ tags: Optional[List[StrictStr]] = None,
2008
+ use_weighted_scoring: Optional[StrictBool] = None,
2009
+ include_confidence_intervals: Optional[StrictBool] = None,
2010
+ _request_timeout: Union[
2011
+ None,
2012
+ Annotated[StrictFloat, Field(gt=0)],
2013
+ Tuple[
2014
+ Annotated[StrictFloat, Field(gt=0)],
2015
+ Annotated[StrictFloat, Field(gt=0)]
2016
+ ]
2017
+ ] = None,
2018
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2019
+ _content_type: Optional[StrictStr] = None,
2020
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2021
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2022
+ ) -> StandingsByLeaderboardResult:
2023
+ """leaderboard_leaderboard_id_standings_get
2024
+
2025
+
2026
+ :param leaderboard_id: (required)
2027
+ :type leaderboard_id: str
2028
+ :param tags:
2029
+ :type tags: List[str]
2030
+ :param use_weighted_scoring:
2031
+ :type use_weighted_scoring: bool
2032
+ :param include_confidence_intervals:
2033
+ :type include_confidence_intervals: bool
2034
+ :param _request_timeout: timeout setting for this request. If one
2035
+ number provided, it will be total request
2036
+ timeout. It can also be a pair (tuple) of
2037
+ (connection, read) timeouts.
2038
+ :type _request_timeout: int, tuple(int, int), optional
2039
+ :param _request_auth: set to override the auth_settings for an a single
2040
+ request; this effectively ignores the
2041
+ authentication in the spec for a single request.
2042
+ :type _request_auth: dict, optional
2043
+ :param _content_type: force content-type for the request.
2044
+ :type _content_type: str, Optional
2045
+ :param _headers: set to override the headers for a single
2046
+ request; this effectively ignores the headers
2047
+ in the spec for a single request.
2048
+ :type _headers: dict, optional
2049
+ :param _host_index: set to override the host_index for a single
2050
+ request; this effectively ignores the host_index
2051
+ in the spec for a single request.
2052
+ :type _host_index: int, optional
2053
+ :return: Returns the result object.
2054
+ """ # noqa: E501
2055
+
2056
+ _param = self._leaderboard_leaderboard_id_standings_get_serialize(
2057
+ leaderboard_id=leaderboard_id,
2058
+ tags=tags,
2059
+ use_weighted_scoring=use_weighted_scoring,
2060
+ include_confidence_intervals=include_confidence_intervals,
2061
+ _request_auth=_request_auth,
2062
+ _content_type=_content_type,
2063
+ _headers=_headers,
2064
+ _host_index=_host_index
2065
+ )
2066
+
2067
+ _response_types_map: Dict[str, Optional[str]] = {
2068
+ '200': "StandingsByLeaderboardResult",
2069
+ }
2070
+ response_data = self.api_client.call_api(
2071
+ *_param,
2072
+ _request_timeout=_request_timeout
2073
+ )
2074
+ response_data.read()
2075
+ return self.api_client.response_deserialize(
2076
+ response_data=response_data,
2077
+ response_types_map=_response_types_map,
2078
+ ).data
2079
+
2080
+
2081
+ @validate_call
2082
+ def leaderboard_leaderboard_id_standings_get_with_http_info(
2083
+ self,
2084
+ leaderboard_id: StrictStr,
2085
+ tags: Optional[List[StrictStr]] = None,
2086
+ use_weighted_scoring: Optional[StrictBool] = None,
2087
+ include_confidence_intervals: Optional[StrictBool] = None,
2088
+ _request_timeout: Union[
2089
+ None,
2090
+ Annotated[StrictFloat, Field(gt=0)],
2091
+ Tuple[
2092
+ Annotated[StrictFloat, Field(gt=0)],
2093
+ Annotated[StrictFloat, Field(gt=0)]
2094
+ ]
2095
+ ] = None,
2096
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2097
+ _content_type: Optional[StrictStr] = None,
2098
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2099
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2100
+ ) -> ApiResponse[StandingsByLeaderboardResult]:
2101
+ """leaderboard_leaderboard_id_standings_get
2102
+
2103
+
2104
+ :param leaderboard_id: (required)
2105
+ :type leaderboard_id: str
2106
+ :param tags:
2107
+ :type tags: List[str]
2108
+ :param use_weighted_scoring:
2109
+ :type use_weighted_scoring: bool
2110
+ :param include_confidence_intervals:
2111
+ :type include_confidence_intervals: bool
2112
+ :param _request_timeout: timeout setting for this request. If one
2113
+ number provided, it will be total request
2114
+ timeout. It can also be a pair (tuple) of
2115
+ (connection, read) timeouts.
2116
+ :type _request_timeout: int, tuple(int, int), optional
2117
+ :param _request_auth: set to override the auth_settings for an a single
2118
+ request; this effectively ignores the
2119
+ authentication in the spec for a single request.
2120
+ :type _request_auth: dict, optional
2121
+ :param _content_type: force content-type for the request.
2122
+ :type _content_type: str, Optional
2123
+ :param _headers: set to override the headers for a single
2124
+ request; this effectively ignores the headers
2125
+ in the spec for a single request.
2126
+ :type _headers: dict, optional
2127
+ :param _host_index: set to override the host_index for a single
2128
+ request; this effectively ignores the host_index
2129
+ in the spec for a single request.
2130
+ :type _host_index: int, optional
2131
+ :return: Returns the result object.
2132
+ """ # noqa: E501
2133
+
2134
+ _param = self._leaderboard_leaderboard_id_standings_get_serialize(
2135
+ leaderboard_id=leaderboard_id,
2136
+ tags=tags,
2137
+ use_weighted_scoring=use_weighted_scoring,
2138
+ include_confidence_intervals=include_confidence_intervals,
2139
+ _request_auth=_request_auth,
2140
+ _content_type=_content_type,
2141
+ _headers=_headers,
2142
+ _host_index=_host_index
2143
+ )
2144
+
2145
+ _response_types_map: Dict[str, Optional[str]] = {
2146
+ '200': "StandingsByLeaderboardResult",
2147
+ }
2148
+ response_data = self.api_client.call_api(
2149
+ *_param,
2150
+ _request_timeout=_request_timeout
2151
+ )
2152
+ response_data.read()
2153
+ return self.api_client.response_deserialize(
2154
+ response_data=response_data,
2155
+ response_types_map=_response_types_map,
2156
+ )
2157
+
2158
+
2159
+ @validate_call
2160
+ def leaderboard_leaderboard_id_standings_get_without_preload_content(
2161
+ self,
2162
+ leaderboard_id: StrictStr,
2163
+ tags: Optional[List[StrictStr]] = None,
2164
+ use_weighted_scoring: Optional[StrictBool] = None,
2165
+ include_confidence_intervals: Optional[StrictBool] = None,
2166
+ _request_timeout: Union[
2167
+ None,
2168
+ Annotated[StrictFloat, Field(gt=0)],
2169
+ Tuple[
2170
+ Annotated[StrictFloat, Field(gt=0)],
2171
+ Annotated[StrictFloat, Field(gt=0)]
2172
+ ]
2173
+ ] = None,
2174
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2175
+ _content_type: Optional[StrictStr] = None,
2176
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2177
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2178
+ ) -> RESTResponseType:
2179
+ """leaderboard_leaderboard_id_standings_get
2180
+
2181
+
2182
+ :param leaderboard_id: (required)
2183
+ :type leaderboard_id: str
2184
+ :param tags:
2185
+ :type tags: List[str]
2186
+ :param use_weighted_scoring:
2187
+ :type use_weighted_scoring: bool
2188
+ :param include_confidence_intervals:
2189
+ :type include_confidence_intervals: bool
2190
+ :param _request_timeout: timeout setting for this request. If one
2191
+ number provided, it will be total request
2192
+ timeout. It can also be a pair (tuple) of
2193
+ (connection, read) timeouts.
2194
+ :type _request_timeout: int, tuple(int, int), optional
2195
+ :param _request_auth: set to override the auth_settings for an a single
2196
+ request; this effectively ignores the
2197
+ authentication in the spec for a single request.
2198
+ :type _request_auth: dict, optional
2199
+ :param _content_type: force content-type for the request.
2200
+ :type _content_type: str, Optional
2201
+ :param _headers: set to override the headers for a single
2202
+ request; this effectively ignores the headers
2203
+ in the spec for a single request.
2204
+ :type _headers: dict, optional
2205
+ :param _host_index: set to override the host_index for a single
2206
+ request; this effectively ignores the host_index
2207
+ in the spec for a single request.
2208
+ :type _host_index: int, optional
2209
+ :return: Returns the result object.
2210
+ """ # noqa: E501
2211
+
2212
+ _param = self._leaderboard_leaderboard_id_standings_get_serialize(
2213
+ leaderboard_id=leaderboard_id,
2214
+ tags=tags,
2215
+ use_weighted_scoring=use_weighted_scoring,
2216
+ include_confidence_intervals=include_confidence_intervals,
2217
+ _request_auth=_request_auth,
2218
+ _content_type=_content_type,
2219
+ _headers=_headers,
2220
+ _host_index=_host_index
2221
+ )
2222
+
2223
+ _response_types_map: Dict[str, Optional[str]] = {
2224
+ '200': "StandingsByLeaderboardResult",
2225
+ }
2226
+ response_data = self.api_client.call_api(
2227
+ *_param,
2228
+ _request_timeout=_request_timeout
2229
+ )
2230
+ return response_data.response
2231
+
2232
+
2233
+ def _leaderboard_leaderboard_id_standings_get_serialize(
2234
+ self,
2235
+ leaderboard_id,
2236
+ tags,
2237
+ use_weighted_scoring,
2238
+ include_confidence_intervals,
2239
+ _request_auth,
2240
+ _content_type,
2241
+ _headers,
2242
+ _host_index,
2243
+ ) -> RequestSerialized:
2244
+
2245
+ _host = None
2246
+
2247
+ _collection_formats: Dict[str, str] = {
2248
+ 'tags': 'multi',
2249
+ }
2250
+
2251
+ _path_params: Dict[str, str] = {}
2252
+ _query_params: List[Tuple[str, str]] = []
2253
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2254
+ _form_params: List[Tuple[str, str]] = []
2255
+ _files: Dict[
2256
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2257
+ ] = {}
2258
+ _body_params: Optional[bytes] = None
2259
+
2260
+ # process the path parameters
2261
+ if leaderboard_id is not None:
2262
+ _path_params['leaderboardId'] = leaderboard_id
2263
+ # process the query parameters
2264
+ if tags is not None:
2265
+
2266
+ _query_params.append(('tags', tags))
2267
+
2268
+ if use_weighted_scoring is not None:
2269
+
2270
+ _query_params.append(('useWeightedScoring', use_weighted_scoring))
2271
+
2272
+ if include_confidence_intervals is not None:
2273
+
2274
+ _query_params.append(('includeConfidenceIntervals', include_confidence_intervals))
2275
+
2276
+ # process the header parameters
2277
+ # process the form parameters
2278
+ # process the body parameter
2279
+
2280
+
2281
+ # set the HTTP header `Accept`
2282
+ if 'Accept' not in _header_params:
2283
+ _header_params['Accept'] = self.api_client.select_header_accept(
2284
+ [
2285
+ 'text/plain',
2286
+ 'application/json',
2287
+ 'text/json'
2288
+ ]
2289
+ )
2290
+
2291
+
2292
+ # authentication setting
2293
+ _auth_settings: List[str] = [
2294
+ 'OAuth2',
2295
+ 'OpenIdConnect',
2296
+ 'Bearer'
2297
+ ]
2298
+
2299
+ return self.api_client.param_serialize(
2300
+ method='GET',
2301
+ resource_path='/leaderboard/{leaderboardId}/standings',
2302
+ path_params=_path_params,
2303
+ query_params=_query_params,
2304
+ header_params=_header_params,
2305
+ body=_body_params,
2306
+ post_params=_form_params,
2307
+ files=_files,
2308
+ auth_settings=_auth_settings,
2309
+ collection_formats=_collection_formats,
2310
+ _host=_host,
2311
+ _request_auth=_request_auth
2312
+ )
2313
+
2314
+
2315
+
2316
+
2317
+ @validate_call
2318
+ def leaderboard_post(
2319
+ self,
2320
+ create_leaderboard_model: CreateLeaderboardModel,
2321
+ _request_timeout: Union[
2322
+ None,
2323
+ Annotated[StrictFloat, Field(gt=0)],
2324
+ Tuple[
2325
+ Annotated[StrictFloat, Field(gt=0)],
2326
+ Annotated[StrictFloat, Field(gt=0)]
2327
+ ]
2328
+ ] = None,
2329
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2330
+ _content_type: Optional[StrictStr] = None,
2331
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2332
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2333
+ ) -> CreateLeaderboardResult:
2334
+ """Creates a new leaderboard with the specified name and criteria.
2335
+
2336
+
2337
+ :param create_leaderboard_model: (required)
2338
+ :type create_leaderboard_model: CreateLeaderboardModel
2339
+ :param _request_timeout: timeout setting for this request. If one
2340
+ number provided, it will be total request
2341
+ timeout. It can also be a pair (tuple) of
2342
+ (connection, read) timeouts.
2343
+ :type _request_timeout: int, tuple(int, int), optional
2344
+ :param _request_auth: set to override the auth_settings for an a single
2345
+ request; this effectively ignores the
2346
+ authentication in the spec for a single request.
2347
+ :type _request_auth: dict, optional
2348
+ :param _content_type: force content-type for the request.
2349
+ :type _content_type: str, Optional
2350
+ :param _headers: set to override the headers for a single
2351
+ request; this effectively ignores the headers
2352
+ in the spec for a single request.
2353
+ :type _headers: dict, optional
2354
+ :param _host_index: set to override the host_index for a single
2355
+ request; this effectively ignores the host_index
2356
+ in the spec for a single request.
2357
+ :type _host_index: int, optional
2358
+ :return: Returns the result object.
2359
+ """ # noqa: E501
2360
+
2361
+ _param = self._leaderboard_post_serialize(
2362
+ create_leaderboard_model=create_leaderboard_model,
2363
+ _request_auth=_request_auth,
2364
+ _content_type=_content_type,
2365
+ _headers=_headers,
2366
+ _host_index=_host_index
2367
+ )
2368
+
2369
+ _response_types_map: Dict[str, Optional[str]] = {
2370
+ '200': "CreateLeaderboardResult",
2371
+ }
2372
+ response_data = self.api_client.call_api(
2373
+ *_param,
2374
+ _request_timeout=_request_timeout
2375
+ )
2376
+ response_data.read()
2377
+ return self.api_client.response_deserialize(
2378
+ response_data=response_data,
2379
+ response_types_map=_response_types_map,
2380
+ ).data
2381
+
2382
+
2383
+ @validate_call
2384
+ def leaderboard_post_with_http_info(
2385
+ self,
2386
+ create_leaderboard_model: CreateLeaderboardModel,
2387
+ _request_timeout: Union[
2388
+ None,
2389
+ Annotated[StrictFloat, Field(gt=0)],
2390
+ Tuple[
2391
+ Annotated[StrictFloat, Field(gt=0)],
2392
+ Annotated[StrictFloat, Field(gt=0)]
2393
+ ]
2394
+ ] = None,
2395
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2396
+ _content_type: Optional[StrictStr] = None,
2397
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2398
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2399
+ ) -> ApiResponse[CreateLeaderboardResult]:
2400
+ """Creates a new leaderboard with the specified name and criteria.
2401
+
2402
+
2403
+ :param create_leaderboard_model: (required)
2404
+ :type create_leaderboard_model: CreateLeaderboardModel
2405
+ :param _request_timeout: timeout setting for this request. If one
2406
+ number provided, it will be total request
2407
+ timeout. It can also be a pair (tuple) of
2408
+ (connection, read) timeouts.
2409
+ :type _request_timeout: int, tuple(int, int), optional
2410
+ :param _request_auth: set to override the auth_settings for an a single
2411
+ request; this effectively ignores the
2412
+ authentication in the spec for a single request.
2413
+ :type _request_auth: dict, optional
2414
+ :param _content_type: force content-type for the request.
2415
+ :type _content_type: str, Optional
2416
+ :param _headers: set to override the headers for a single
2417
+ request; this effectively ignores the headers
2418
+ in the spec for a single request.
2419
+ :type _headers: dict, optional
2420
+ :param _host_index: set to override the host_index for a single
2421
+ request; this effectively ignores the host_index
2422
+ in the spec for a single request.
2423
+ :type _host_index: int, optional
2424
+ :return: Returns the result object.
2425
+ """ # noqa: E501
2426
+
2427
+ _param = self._leaderboard_post_serialize(
2428
+ create_leaderboard_model=create_leaderboard_model,
2429
+ _request_auth=_request_auth,
2430
+ _content_type=_content_type,
2431
+ _headers=_headers,
2432
+ _host_index=_host_index
2433
+ )
2434
+
2435
+ _response_types_map: Dict[str, Optional[str]] = {
2436
+ '200': "CreateLeaderboardResult",
2437
+ }
2438
+ response_data = self.api_client.call_api(
2439
+ *_param,
2440
+ _request_timeout=_request_timeout
2441
+ )
2442
+ response_data.read()
2443
+ return self.api_client.response_deserialize(
2444
+ response_data=response_data,
2445
+ response_types_map=_response_types_map,
2446
+ )
2447
+
2448
+
2449
+ @validate_call
2450
+ def leaderboard_post_without_preload_content(
2451
+ self,
2452
+ create_leaderboard_model: CreateLeaderboardModel,
2453
+ _request_timeout: Union[
2454
+ None,
2455
+ Annotated[StrictFloat, Field(gt=0)],
2456
+ Tuple[
2457
+ Annotated[StrictFloat, Field(gt=0)],
2458
+ Annotated[StrictFloat, Field(gt=0)]
2459
+ ]
2460
+ ] = None,
2461
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2462
+ _content_type: Optional[StrictStr] = None,
2463
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2464
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2465
+ ) -> RESTResponseType:
2466
+ """Creates a new leaderboard with the specified name and criteria.
2467
+
2468
+
2469
+ :param create_leaderboard_model: (required)
2470
+ :type create_leaderboard_model: CreateLeaderboardModel
2471
+ :param _request_timeout: timeout setting for this request. If one
2472
+ number provided, it will be total request
2473
+ timeout. It can also be a pair (tuple) of
2474
+ (connection, read) timeouts.
2475
+ :type _request_timeout: int, tuple(int, int), optional
2476
+ :param _request_auth: set to override the auth_settings for an a single
2477
+ request; this effectively ignores the
2478
+ authentication in the spec for a single request.
2479
+ :type _request_auth: dict, optional
2480
+ :param _content_type: force content-type for the request.
2481
+ :type _content_type: str, Optional
2482
+ :param _headers: set to override the headers for a single
2483
+ request; this effectively ignores the headers
2484
+ in the spec for a single request.
2485
+ :type _headers: dict, optional
2486
+ :param _host_index: set to override the host_index for a single
2487
+ request; this effectively ignores the host_index
2488
+ in the spec for a single request.
2489
+ :type _host_index: int, optional
2490
+ :return: Returns the result object.
2491
+ """ # noqa: E501
2492
+
2493
+ _param = self._leaderboard_post_serialize(
2494
+ create_leaderboard_model=create_leaderboard_model,
2495
+ _request_auth=_request_auth,
2496
+ _content_type=_content_type,
2497
+ _headers=_headers,
2498
+ _host_index=_host_index
2499
+ )
2500
+
2501
+ _response_types_map: Dict[str, Optional[str]] = {
2502
+ '200': "CreateLeaderboardResult",
2503
+ }
2504
+ response_data = self.api_client.call_api(
2505
+ *_param,
2506
+ _request_timeout=_request_timeout
2507
+ )
2508
+ return response_data.response
2509
+
2510
+
2511
+ def _leaderboard_post_serialize(
2512
+ self,
2513
+ create_leaderboard_model,
2514
+ _request_auth,
2515
+ _content_type,
2516
+ _headers,
2517
+ _host_index,
2518
+ ) -> RequestSerialized:
2519
+
2520
+ _host = None
2521
+
2522
+ _collection_formats: Dict[str, str] = {
2523
+ }
2524
+
2525
+ _path_params: Dict[str, str] = {}
2526
+ _query_params: List[Tuple[str, str]] = []
2527
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2528
+ _form_params: List[Tuple[str, str]] = []
2529
+ _files: Dict[
2530
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2531
+ ] = {}
2532
+ _body_params: Optional[bytes] = None
2533
+
2534
+ # process the path parameters
2535
+ # process the query parameters
2536
+ # process the header parameters
2537
+ # process the form parameters
2538
+ # process the body parameter
2539
+ if create_leaderboard_model is not None:
2540
+ _body_params = create_leaderboard_model
2541
+
2542
+
2543
+ # set the HTTP header `Accept`
2544
+ if 'Accept' not in _header_params:
2545
+ _header_params['Accept'] = self.api_client.select_header_accept(
2546
+ [
2547
+ 'text/plain',
2548
+ 'application/json',
2549
+ 'text/json'
2550
+ ]
2551
+ )
2552
+
2553
+ # set the HTTP header `Content-Type`
2554
+ if _content_type:
2555
+ _header_params['Content-Type'] = _content_type
2556
+ else:
2557
+ _default_content_type = (
2558
+ self.api_client.select_header_content_type(
2559
+ [
2560
+ 'application/json',
2561
+ 'text/json',
2562
+ 'application/*+json'
2563
+ ]
2564
+ )
2565
+ )
2566
+ if _default_content_type is not None:
2567
+ _header_params['Content-Type'] = _default_content_type
2568
+
2569
+ # authentication setting
2570
+ _auth_settings: List[str] = [
2571
+ 'OAuth2',
2572
+ 'OpenIdConnect',
2573
+ 'Bearer'
2574
+ ]
2575
+
2576
+ return self.api_client.param_serialize(
2577
+ method='POST',
2578
+ resource_path='/leaderboard',
2579
+ path_params=_path_params,
2580
+ query_params=_query_params,
2581
+ header_params=_header_params,
2582
+ body=_body_params,
2583
+ post_params=_form_params,
2584
+ files=_files,
2585
+ auth_settings=_auth_settings,
2586
+ collection_formats=_collection_formats,
2587
+ _host=_host,
2588
+ _request_auth=_request_auth
2589
+ )
2590
+
2591
+
2592
+
2593
+
2594
+ @validate_call
2595
+ def leaderboards_get(
2596
+ self,
2597
+ request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
2598
+ _request_timeout: Union[
2599
+ None,
2600
+ Annotated[StrictFloat, Field(gt=0)],
2601
+ Tuple[
2602
+ Annotated[StrictFloat, Field(gt=0)],
2603
+ Annotated[StrictFloat, Field(gt=0)]
2604
+ ]
2605
+ ] = None,
2606
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2607
+ _content_type: Optional[StrictStr] = None,
2608
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2609
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2610
+ ) -> PagedResultOfLeaderboardsQueryResult:
2611
+ """Queries all leaderboards for a specific benchmark.
2612
+
2613
+
2614
+ :param request: Query parameters
2615
+ :type request: QueryModel
2616
+ :param _request_timeout: timeout setting for this request. If one
2617
+ number provided, it will be total request
2618
+ timeout. It can also be a pair (tuple) of
2619
+ (connection, read) timeouts.
2620
+ :type _request_timeout: int, tuple(int, int), optional
2621
+ :param _request_auth: set to override the auth_settings for an a single
2622
+ request; this effectively ignores the
2623
+ authentication in the spec for a single request.
2624
+ :type _request_auth: dict, optional
2625
+ :param _content_type: force content-type for the request.
2626
+ :type _content_type: str, Optional
2627
+ :param _headers: set to override the headers for a single
2628
+ request; this effectively ignores the headers
2629
+ in the spec for a single request.
2630
+ :type _headers: dict, optional
2631
+ :param _host_index: set to override the host_index for a single
2632
+ request; this effectively ignores the host_index
2633
+ in the spec for a single request.
2634
+ :type _host_index: int, optional
2635
+ :return: Returns the result object.
2636
+ """ # noqa: E501
2637
+
2638
+ _param = self._leaderboards_get_serialize(
2639
+ request=request,
2640
+ _request_auth=_request_auth,
2641
+ _content_type=_content_type,
2642
+ _headers=_headers,
2643
+ _host_index=_host_index
2644
+ )
2645
+
2646
+ _response_types_map: Dict[str, Optional[str]] = {
2647
+ '200': "PagedResultOfLeaderboardsQueryResult",
2648
+ }
2649
+ response_data = self.api_client.call_api(
2650
+ *_param,
2651
+ _request_timeout=_request_timeout
2652
+ )
2653
+ response_data.read()
2654
+ return self.api_client.response_deserialize(
2655
+ response_data=response_data,
2656
+ response_types_map=_response_types_map,
2657
+ ).data
2658
+
2659
+
2660
+ @validate_call
2661
+ def leaderboards_get_with_http_info(
2662
+ self,
2663
+ request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
2664
+ _request_timeout: Union[
2665
+ None,
2666
+ Annotated[StrictFloat, Field(gt=0)],
2667
+ Tuple[
2668
+ Annotated[StrictFloat, Field(gt=0)],
2669
+ Annotated[StrictFloat, Field(gt=0)]
2670
+ ]
2671
+ ] = None,
2672
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2673
+ _content_type: Optional[StrictStr] = None,
2674
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2675
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2676
+ ) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
2677
+ """Queries all leaderboards for a specific benchmark.
2678
+
2679
+
2680
+ :param request: Query parameters
2681
+ :type request: QueryModel
2682
+ :param _request_timeout: timeout setting for this request. If one
2683
+ number provided, it will be total request
2684
+ timeout. It can also be a pair (tuple) of
2685
+ (connection, read) timeouts.
2686
+ :type _request_timeout: int, tuple(int, int), optional
2687
+ :param _request_auth: set to override the auth_settings for an a single
2688
+ request; this effectively ignores the
2689
+ authentication in the spec for a single request.
2690
+ :type _request_auth: dict, optional
2691
+ :param _content_type: force content-type for the request.
2692
+ :type _content_type: str, Optional
2693
+ :param _headers: set to override the headers for a single
2694
+ request; this effectively ignores the headers
2695
+ in the spec for a single request.
2696
+ :type _headers: dict, optional
2697
+ :param _host_index: set to override the host_index for a single
2698
+ request; this effectively ignores the host_index
2699
+ in the spec for a single request.
2700
+ :type _host_index: int, optional
2701
+ :return: Returns the result object.
2702
+ """ # noqa: E501
2703
+
2704
+ _param = self._leaderboards_get_serialize(
2705
+ request=request,
2706
+ _request_auth=_request_auth,
2707
+ _content_type=_content_type,
2708
+ _headers=_headers,
2709
+ _host_index=_host_index
2710
+ )
2711
+
2712
+ _response_types_map: Dict[str, Optional[str]] = {
2713
+ '200': "PagedResultOfLeaderboardsQueryResult",
2714
+ }
2715
+ response_data = self.api_client.call_api(
2716
+ *_param,
2717
+ _request_timeout=_request_timeout
2718
+ )
2719
+ response_data.read()
2720
+ return self.api_client.response_deserialize(
2721
+ response_data=response_data,
2722
+ response_types_map=_response_types_map,
2723
+ )
2724
+
2725
+
2726
+ @validate_call
2727
+ def leaderboards_get_without_preload_content(
2728
+ self,
2729
+ request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
2730
+ _request_timeout: Union[
2731
+ None,
2732
+ Annotated[StrictFloat, Field(gt=0)],
2733
+ Tuple[
2734
+ Annotated[StrictFloat, Field(gt=0)],
2735
+ Annotated[StrictFloat, Field(gt=0)]
2736
+ ]
2737
+ ] = None,
2738
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2739
+ _content_type: Optional[StrictStr] = None,
2740
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2741
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2742
+ ) -> RESTResponseType:
2743
+ """Queries all leaderboards for a specific benchmark.
2744
+
2745
+
2746
+ :param request: Query parameters
2747
+ :type request: QueryModel
2748
+ :param _request_timeout: timeout setting for this request. If one
2749
+ number provided, it will be total request
2750
+ timeout. It can also be a pair (tuple) of
2751
+ (connection, read) timeouts.
2752
+ :type _request_timeout: int, tuple(int, int), optional
2753
+ :param _request_auth: set to override the auth_settings for an a single
2754
+ request; this effectively ignores the
2755
+ authentication in the spec for a single request.
2756
+ :type _request_auth: dict, optional
2757
+ :param _content_type: force content-type for the request.
2758
+ :type _content_type: str, Optional
2759
+ :param _headers: set to override the headers for a single
2760
+ request; this effectively ignores the headers
2761
+ in the spec for a single request.
2762
+ :type _headers: dict, optional
2763
+ :param _host_index: set to override the host_index for a single
2764
+ request; this effectively ignores the host_index
2765
+ in the spec for a single request.
2766
+ :type _host_index: int, optional
2767
+ :return: Returns the result object.
2768
+ """ # noqa: E501
2769
+
2770
+ _param = self._leaderboards_get_serialize(
2771
+ request=request,
2772
+ _request_auth=_request_auth,
2773
+ _content_type=_content_type,
2774
+ _headers=_headers,
2775
+ _host_index=_host_index
2776
+ )
2777
+
2778
+ _response_types_map: Dict[str, Optional[str]] = {
2779
+ '200': "PagedResultOfLeaderboardsQueryResult",
2780
+ }
2781
+ response_data = self.api_client.call_api(
2782
+ *_param,
2783
+ _request_timeout=_request_timeout
2784
+ )
2785
+ return response_data.response
2786
+
2787
+
2788
+ def _leaderboards_get_serialize(
2789
+ self,
2790
+ request,
2791
+ _request_auth,
2792
+ _content_type,
2793
+ _headers,
2794
+ _host_index,
2795
+ ) -> RequestSerialized:
2796
+
2797
+ _host = None
2798
+
2799
+ _collection_formats: Dict[str, str] = {
2800
+ }
2801
+
2802
+ _path_params: Dict[str, str] = {}
2803
+ _query_params: List[Tuple[str, str]] = []
2804
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2805
+ _form_params: List[Tuple[str, str]] = []
2806
+ _files: Dict[
2807
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2808
+ ] = {}
2809
+ _body_params: Optional[bytes] = None
2810
+
2811
+ # process the path parameters
2812
+ # process the query parameters
2813
+ if request is not None:
2814
+
2815
+ _query_params.append(('request', request))
2816
+
2817
+ # process the header parameters
2818
+ # process the form parameters
2819
+ # process the body parameter
2820
+
2821
+
2822
+ # set the HTTP header `Accept`
2823
+ if 'Accept' not in _header_params:
2824
+ _header_params['Accept'] = self.api_client.select_header_accept(
2825
+ [
2826
+ 'text/plain',
2827
+ 'application/json',
2828
+ 'text/json'
2829
+ ]
2830
+ )
2831
+
2832
+
2833
+ # authentication setting
2834
+ _auth_settings: List[str] = [
2835
+ 'OAuth2',
2836
+ 'OpenIdConnect',
2837
+ 'Bearer'
2838
+ ]
2839
+
2840
+ return self.api_client.param_serialize(
2841
+ method='GET',
2842
+ resource_path='/leaderboards',
2843
+ path_params=_path_params,
2844
+ query_params=_query_params,
2845
+ header_params=_header_params,
2846
+ body=_body_params,
2847
+ post_params=_form_params,
2848
+ files=_files,
2849
+ auth_settings=_auth_settings,
2850
+ collection_formats=_collection_formats,
2851
+ _host=_host,
2852
+ _request_auth=_request_auth
2853
+ )
2854
+
2855
+