rapidata 2.35.1__py3-none-any.whl → 3.0.0a8__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.
- rapidata/__init__.py +25 -16
- rapidata/api_client/__init__.py +84 -408
- rapidata/api_client/api/__init__.py +6 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +2505 -0
- rapidata/api_client/api/benchmark_api.py +904 -245
- rapidata/api_client/api/campaign_api.py +582 -24
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +364 -123
- rapidata/api_client/api/datapoint_api.py +8 -6
- rapidata/api_client/api/dataset_api.py +240 -1516
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -11
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +26 -300
- rapidata/api_client/api/job_api.py +3902 -0
- rapidata/api_client/api/job_definition_api.py +319 -0
- rapidata/api_client/api/job_revision_api.py +335 -0
- rapidata/api_client/api/leaderboard_api.py +140 -2067
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +375 -91
- rapidata/api_client/api/participant_api.py +80 -118
- rapidata/api_client/api/pipeline_api.py +24 -1480
- rapidata/api_client/api/prompt_api.py +11 -11
- rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
- rapidata/api_client/api/sample_api.py +300 -0
- rapidata/api_client/api/simple_workflow_api.py +11 -10
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +35 -31
- rapidata/api_client/api/validation_set_api.py +377 -1835
- rapidata/api_client/api/workflow_api.py +32 -26
- rapidata/api_client/api_client.py +2 -2
- rapidata/api_client/configuration.py +16 -29
- rapidata/api_client/exceptions.py +2 -2
- rapidata/api_client/models/__init__.py +65 -382
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +49 -26
- rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
- rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
- rapidata/api_client/models/add_validation_rapid_model_truth.py +7 -1
- rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
- rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
- rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
- rapidata/api_client/models/age_user_filter_model.py +2 -2
- rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
- rapidata/api_client/models/aggregated_orders_model.py +98 -0
- rapidata/api_client/models/aggregator_type.py +4 -2
- rapidata/api_client/models/and_filter.py +121 -0
- rapidata/api_client/models/and_filter_filters_inner.py +282 -0
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +11 -9
- rapidata/api_client/models/asset_type.py +40 -0
- rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
- rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
- rapidata/api_client/models/audience_job_state.py +38 -0
- rapidata/api_client/models/audience_status.py +39 -0
- rapidata/api_client/models/benchmark_query_result.py +5 -3
- rapidata/api_client/models/boost_leaderboard_model.py +5 -5
- rapidata/api_client/models/boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result.py +7 -10
- rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
- rapidata/api_client/models/boosting_profile.py +91 -0
- rapidata/api_client/models/box_shape.py +4 -33
- rapidata/api_client/models/campaign_filter.py +98 -0
- rapidata/api_client/models/campaign_query_result.py +15 -13
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +89 -0
- rapidata/api_client/models/classification_metadata.py +12 -1
- rapidata/api_client/models/classify_payload.py +14 -15
- rapidata/api_client/models/classify_payload_category.py +89 -0
- rapidata/api_client/models/client_model.py +25 -35
- rapidata/api_client/models/clients_query_result.py +5 -5
- rapidata/api_client/models/clone_order_model.py +4 -4
- rapidata/api_client/models/clone_order_result.py +9 -4
- rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
- rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
- rapidata/api_client/models/compare_workflow_config.py +34 -23
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_model.py +15 -5
- rapidata/api_client/models/compare_workflow_model.py +34 -6
- rapidata/api_client/models/compare_workflow_model1.py +20 -9
- rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
- rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
- rapidata/api_client/models/comparison_operator.py +2 -2
- rapidata/api_client/models/conditional_validation_selection.py +6 -11
- rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
- rapidata/api_client/models/confidence_interval.py +89 -0
- rapidata/api_client/models/count_metadata.py +12 -1
- rapidata/api_client/models/country_filter.py +98 -0
- rapidata/api_client/models/create_audience_request.py +122 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_result.py +4 -4
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +2 -2
- rapidata/api_client/models/create_bridge_token_result.py +2 -2
- rapidata/api_client/models/create_client_model.py +6 -13
- rapidata/api_client/models/create_complex_order_model.py +9 -9
- rapidata/api_client/models/create_complex_order_result.py +2 -2
- rapidata/api_client/models/create_customer_client_result.py +2 -2
- rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
- rapidata/api_client/models/create_datapoint_model.py +124 -0
- rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
- rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
- rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
- rapidata/api_client/models/create_datapoint_result.py +2 -2
- rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
- rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
- rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
- rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_endpoint_input.py +100 -0
- rapidata/api_client/models/create_job_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
- rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
- rapidata/api_client/models/create_leaderboard_model.py +42 -15
- rapidata/api_client/models/create_leaderboard_result.py +2 -2
- rapidata/api_client/models/create_order_definition_model.py +119 -0
- rapidata/api_client/models/create_order_definition_result.py +87 -0
- rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
- rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
- rapidata/api_client/models/create_order_model.py +30 -101
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_workflow.py +35 -21
- rapidata/api_client/models/create_order_result.py +2 -2
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +13 -7
- rapidata/api_client/models/create_sample_model_asset.py +154 -0
- rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
- rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
- rapidata/api_client/models/create_unsupported_order_model.py +6 -6
- rapidata/api_client/models/create_validation_set_model.py +5 -5
- rapidata/api_client/models/datapoint_model.py +3 -3
- rapidata/api_client/models/datapoint_state.py +2 -2
- rapidata/api_client/models/definition_type.py +49 -0
- rapidata/api_client/models/demographic_filter.py +100 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/effort_capped_selection.py +2 -11
- rapidata/api_client/models/elo_config.py +2 -2
- rapidata/api_client/models/elo_config_model.py +6 -6
- rapidata/api_client/models/entity_tag_header_value.py +93 -0
- rapidata/api_client/models/evaluation_workflow_config.py +13 -3
- rapidata/api_client/models/evaluation_workflow_model.py +16 -6
- rapidata/api_client/models/existing_asset_input.py +109 -0
- rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
- rapidata/api_client/models/feature_flag.py +2 -2
- rapidata/api_client/models/feature_flag_model.py +6 -6
- rapidata/api_client/models/feedback_model.py +7 -7
- rapidata/api_client/models/file_asset.py +3 -5
- rapidata/api_client/models/file_asset_input_file.py +8 -22
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +18 -88
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +2 -2
- rapidata/api_client/models/file_type_metadata.py +11 -6
- rapidata/api_client/models/file_type_metadata_model.py +2 -8
- rapidata/api_client/models/filter.py +7 -25
- rapidata/api_client/models/filter_operator.py +2 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +17 -2
- rapidata/api_client/models/free_text_payload.py +10 -3
- rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
- rapidata/api_client/models/gender_user_filter_model.py +2 -2
- rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
- rapidata/api_client/models/get_asset_metadata_result.py +100 -0
- rapidata/api_client/models/get_audience_by_id_result.py +118 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_result.py +8 -4
- rapidata/api_client/models/get_boost_result.py +97 -0
- rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
- rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
- rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
- rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
- rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
- rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
- rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
- rapidata/api_client/models/get_dataset_progress_result.py +2 -2
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
- rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
- rapidata/api_client/models/get_file_metadata_result.py +100 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
- rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
- rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +31 -4
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +4 -6
- rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
- rapidata/api_client/models/get_public_orders_result.py +2 -2
- rapidata/api_client/models/get_public_responses_result.py +95 -0
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +6 -12
- rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
- rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
- rapidata/api_client/models/get_responses_result.py +5 -5
- rapidata/api_client/models/get_responses_result_response.py +103 -0
- rapidata/api_client/models/get_sample_by_id_result.py +125 -0
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +6 -14
- rapidata/api_client/models/get_validation_rapids_result.py +32 -41
- rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
- rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
- rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
- rapidata/api_client/models/get_workflow_progress_result.py +5 -11
- rapidata/api_client/models/get_workflow_results_result.py +34 -23
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +4 -4
- rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
- rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
- rapidata/api_client/models/i_artifact_model.py +182 -0
- rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
- rapidata/api_client/models/i_asset.py +170 -0
- rapidata/api_client/models/i_asset_file_asset.py +111 -0
- rapidata/api_client/models/i_asset_input.py +156 -0
- rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
- rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_model.py +170 -0
- rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
- rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
- rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_multi_asset.py +121 -0
- rapidata/api_client/models/i_asset_null_asset.py +109 -0
- rapidata/api_client/models/i_asset_text_asset.py +111 -0
- rapidata/api_client/models/i_audience_filter.py +184 -0
- rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
- rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
- rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter.py +296 -0
- rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
- rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
- rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
- rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
- rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
- rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
- rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
- rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_model.py +126 -0
- rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
- rapidata/api_client/models/i_metadata.py +252 -0
- rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_input.py +126 -0
- rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
- rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_model.py +252 -0
- rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
- rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
- rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
- rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
- rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
- rapidata/api_client/models/i_order_workflow_model.py +168 -0
- rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
- rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
- rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
- rapidata/api_client/models/i_pair_maker_config.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
- rapidata/api_client/models/i_pair_maker_information.py +126 -0
- rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
- rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
- rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
- rapidata/api_client/models/i_pipeline_model.py +126 -0
- rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
- rapidata/api_client/models/i_pipeline_step_model.py +168 -0
- rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
- rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint.py +252 -0
- rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
- rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
- rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_payload.py +252 -0
- rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
- rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
- rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
- rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
- rapidata/api_client/models/i_rapid_result.py +266 -0
- rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
- rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
- rapidata/api_client/models/i_referee_config.py +154 -0
- rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
- rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
- rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
- rapidata/api_client/models/i_referee_info.py +154 -0
- rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
- rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
- rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/i_referee_model.py +140 -0
- rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
- rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
- rapidata/api_client/models/i_selection.py +240 -0
- rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
- rapidata/api_client/models/i_selection_capped_selection.py +108 -0
- rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
- rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
- rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
- rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
- rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
- rapidata/api_client/models/i_selection_static_selection.py +96 -0
- rapidata/api_client/models/i_selection_validation_selection.py +98 -0
- rapidata/api_client/models/i_user_filter_model.py +296 -0
- rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
- rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
- rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
- rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
- rapidata/api_client/models/i_validation_metadata_input.py +140 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_validation_truth.py +280 -0
- rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
- rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
- rapidata/api_client/models/i_validation_truth_model.py +294 -0
- rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
- rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
- rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
- rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
- rapidata/api_client/models/i_workflow_config.py +168 -0
- rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
- rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
- rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
- rapidata/api_client/models/i_workflow_model.py +168 -0
- rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
- rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
- rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
- rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
- rapidata/api_client/models/image_dimension_metadata.py +12 -1
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +2 -2
- rapidata/api_client/models/job_definition_revision_state.py +38 -0
- rapidata/api_client/models/json_web_key.py +2 -36
- rapidata/api_client/models/json_web_key_set.py +2 -22
- rapidata/api_client/models/labeling_selection.py +11 -13
- rapidata/api_client/models/language_filter.py +98 -0
- rapidata/api_client/models/leaderboard_query_result.py +29 -2
- rapidata/api_client/models/leaderboards_query_result.py +135 -0
- rapidata/api_client/models/line_result.py +3 -3
- rapidata/api_client/models/line_result_line.py +97 -0
- rapidata/api_client/models/line_result_line_point.py +89 -0
- rapidata/api_client/models/locate_coordinate.py +4 -13
- rapidata/api_client/models/location_metadata.py +12 -1
- rapidata/api_client/models/logic_operator.py +2 -2
- rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/multi_asset.py +6 -6
- rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input.py +21 -1
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input_assets_inner.py +16 -30
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/new_user_filter.py +96 -0
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/not_filter.py +117 -0
- rapidata/api_client/models/null_asset.py +3 -5
- rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
- rapidata/api_client/models/option_of_aggregator_type.py +49 -0
- rapidata/api_client/models/or_filter.py +121 -0
- rapidata/api_client/models/order_model.py +15 -14
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/original_filename_metadata.py +12 -1
- rapidata/api_client/models/page_info.py +2 -7
- rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
- rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
- rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
- rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
- rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
- rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
- rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
- rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
- rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
- rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
- rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
- rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_order_model.py +103 -0
- rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
- rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
- rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
- rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
- rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
- rapidata/api_client/models/paged_result_order_model.py +105 -0
- rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
- rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
- rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
- rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
- rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
- rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
- rapidata/api_client/models/paged_result_rapid_model.py +105 -0
- rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
- rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
- rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
- rapidata/api_client/models/participant_by_benchmark.py +6 -14
- rapidata/api_client/models/participant_status.py +2 -2
- rapidata/api_client/models/polygon_result.py +3 -3
- rapidata/api_client/models/polygon_result_coordinate.py +89 -0
- rapidata/api_client/models/polygon_result_shape.py +95 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +5 -5
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +4 -6
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +25 -41
- rapidata/api_client/models/prompt_by_benchmark_result.py +5 -5
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +5 -7
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +17 -2
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/public_rapid_response.py +112 -0
- rapidata/api_client/models/query_audiences_result.py +118 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_job_definitions_result.py +97 -0
- rapidata/api_client/models/query_job_revisions_result.py +95 -0
- rapidata/api_client/models/query_jobs_result.py +103 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
- rapidata/api_client/models/rapid_issue.py +2 -2
- rapidata/api_client/models/rapid_modality.py +46 -0
- rapidata/api_client/models/rapid_model.py +33 -49
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +2 -2
- rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +9 -15
- rapidata/api_client/models/response_count_filter.py +103 -0
- rapidata/api_client/models/response_count_user_filter_model.py +2 -8
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +5 -14
- rapidata/api_client/models/run_status.py +2 -2
- rapidata/api_client/models/runs_by_leaderboard_result.py +6 -12
- rapidata/api_client/models/sample_by_identifier.py +125 -0
- rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
- rapidata/api_client/models/sample_by_participant.py +7 -8
- rapidata/api_client/models/scrub_range.py +2 -2
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/simple_workflow_config.py +15 -5
- rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
- rapidata/api_client/models/simple_workflow_config_model.py +11 -3
- rapidata/api_client/models/simple_workflow_model.py +14 -4
- rapidata/api_client/models/simple_workflow_model1.py +4 -11
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/sort_criterion.py +5 -11
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/source_url_metadata.py +12 -1
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +19 -21
- rapidata/api_client/models/standing_status.py +2 -2
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +2 -2
- rapidata/api_client/models/start_preliminary_download_result.py +87 -0
- rapidata/api_client/models/sticky_state.py +3 -2
- rapidata/api_client/models/stream_file_wrapper.py +25 -3
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_order_model.py +5 -5
- rapidata/api_client/models/submit_participant_result.py +2 -2
- rapidata/api_client/models/submit_prompt_model.py +9 -14
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +40 -12
- rapidata/api_client/models/tags_by_benchmark_result.py +2 -2
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +21 -1
- rapidata/api_client/models/text_metadata.py +18 -2
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +7 -2
- rapidata/api_client/models/transcription_metadata.py +9 -1
- rapidata/api_client/models/transcription_metadata_input.py +5 -7
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_audience_request.py +113 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +5 -5
- rapidata/api_client/models/update_campaign_model.py +11 -11
- rapidata/api_client/models/update_dataset_name_model.py +5 -5
- rapidata/api_client/models/update_dimensions_model.py +3 -3
- rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
- rapidata/api_client/models/update_leaderboard_model.py +106 -0
- rapidata/api_client/models/update_leaderboard_name_model.py +5 -5
- rapidata/api_client/models/update_leaderboard_response_config_model.py +5 -5
- rapidata/api_client/models/update_order_name_model.py +5 -5
- rapidata/api_client/models/update_participant_model.py +92 -0
- rapidata/api_client/models/update_participant_name_model.py +5 -5
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +5 -5
- rapidata/api_client/models/update_should_alert_model.py +4 -4
- rapidata/api_client/models/update_validation_rapid_model.py +35 -14
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_set_model.py +120 -0
- rapidata/api_client/models/upload_asset_result.py +102 -0
- rapidata/api_client/models/upload_file_from_url_result.py +87 -0
- rapidata/api_client/models/upload_file_result.py +87 -0
- rapidata/api_client/models/user_action_restriction.py +37 -0
- rapidata/api_client/models/user_action_restriction_filter.py +101 -0
- rapidata/api_client/models/user_score_filter.py +102 -0
- rapidata/api_client/models/user_state.py +38 -0
- rapidata/api_client/models/user_state_filter.py +101 -0
- rapidata/api_client/models/validation_chance.py +20 -3
- rapidata/api_client/models/validation_problem_details.py +117 -0
- rapidata/api_client/models/validation_set_model.py +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/video_duration_metadata.py +12 -1
- rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
- rapidata/api_client/models/workflow_state.py +2 -2
- rapidata/api_client/models/zip_entry_file_wrapper.py +33 -2
- rapidata/api_client/rest.py +2 -2
- rapidata/api_client_README.md +384 -318
- rapidata/rapidata_client/__init__.py +17 -22
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- rapidata/rapidata_client/audience/__init__.py +2 -0
- rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
- rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
- rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +11 -9
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +98 -54
- rapidata/rapidata_client/benchmark/participant/_participant.py +90 -46
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +388 -225
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +172 -65
- rapidata/rapidata_client/config/__init__.py +4 -0
- rapidata/rapidata_client/config/logger.py +135 -0
- rapidata/rapidata_client/config/logging_config.py +55 -0
- rapidata/rapidata_client/config/managed_print.py +6 -0
- rapidata/rapidata_client/config/order_config.py +14 -0
- rapidata/rapidata_client/config/rapidata_config.py +36 -0
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +8 -3
- rapidata/rapidata_client/datapoints/_asset_uploader.py +184 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
- rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
- rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
- rapidata/rapidata_client/datapoints/assets/__init__.py +0 -10
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/datapoints/metadata/__init__.py +0 -2
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +4 -5
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_select_words_metadata.py +3 -4
- rapidata/rapidata_client/dataset/__init__.py +1 -0
- rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +15 -41
- rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
- rapidata/rapidata_client/filter/_base_filter.py +13 -8
- rapidata/rapidata_client/filter/age_filter.py +26 -10
- rapidata/rapidata_client/filter/and_filter.py +36 -11
- rapidata/rapidata_client/filter/campaign_filter.py +21 -10
- rapidata/rapidata_client/filter/country_filter.py +46 -12
- rapidata/rapidata_client/filter/custom_filter.py +25 -12
- rapidata/rapidata_client/filter/gender_filter.py +25 -10
- rapidata/rapidata_client/filter/language_filter.py +51 -21
- rapidata/rapidata_client/filter/models/age_group.py +14 -12
- rapidata/rapidata_client/filter/models/gender.py +12 -8
- rapidata/rapidata_client/filter/new_user_filter.py +14 -4
- rapidata/rapidata_client/filter/not_filter.py +35 -11
- rapidata/rapidata_client/filter/or_filter.py +36 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +17 -23
- rapidata/rapidata_client/filter/response_count_filter.py +51 -20
- rapidata/rapidata_client/filter/user_score_filter.py +62 -24
- rapidata/rapidata_client/job/__init__.py +3 -0
- rapidata/rapidata_client/job/job_definition.py +110 -0
- rapidata/rapidata_client/job/job_manager.py +758 -0
- rapidata/rapidata_client/job/rapidata_job.py +326 -0
- rapidata/rapidata_client/order/__init__.py +2 -0
- rapidata/rapidata_client/order/_rapidata_order_builder.py +273 -122
- rapidata/rapidata_client/order/rapidata_order.py +316 -160
- rapidata/rapidata_client/order/rapidata_order_manager.py +680 -421
- rapidata/rapidata_client/rapidata_client.py +115 -37
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +14 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
- rapidata/rapidata_client/referee/_naive_referee.py +24 -3
- rapidata/rapidata_client/results/__init__.py +3 -0
- rapidata/rapidata_client/{order → results}/rapidata_results.py +86 -63
- rapidata/rapidata_client/selection/__init__.py +1 -1
- rapidata/rapidata_client/selection/_base_selection.py +9 -2
- rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
- rapidata/rapidata_client/selection/capped_selection.py +23 -16
- rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
- rapidata/rapidata_client/selection/demographic_selection.py +21 -6
- rapidata/rapidata_client/selection/effort_selection.py +31 -8
- rapidata/rapidata_client/selection/labeling_selection.py +34 -11
- rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +7 -4
- rapidata/rapidata_client/selection/rapidata_selections.py +23 -14
- rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
- rapidata/rapidata_client/selection/static_selection.py +19 -8
- rapidata/rapidata_client/selection/validation_selection.py +20 -4
- rapidata/rapidata_client/settings/__init__.py +2 -0
- rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
- rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
- rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
- rapidata/rapidata_client/settings/custom_setting.py +3 -2
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +4 -2
- rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
- rapidata/rapidata_client/settings/rapidata_settings.py +22 -9
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/utils/__init__.py +3 -0
- rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
- rapidata/rapidata_client/validation/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +96 -18
- rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +29 -83
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +369 -211
- rapidata/rapidata_client/validation/validation_set_manager.py +505 -276
- rapidata/rapidata_client/workflow/__init__.py +2 -2
- rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
- rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
- rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
- rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
- rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
- rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +14 -14
- rapidata/service/openapi_service.py +119 -34
- rapidata/types/__init__.py +149 -0
- rapidata-3.0.0a8.dist-info/METADATA +32 -0
- rapidata-3.0.0a8.dist-info/RECORD +1083 -0
- {rapidata-2.35.1.dist-info → rapidata-3.0.0a8.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/datapoints/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/datapoints/assets/_media_asset.py +0 -306
- rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -35
- rapidata/rapidata_client/datapoints/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/datapoints/assets/data_type_enum.py +0 -8
- rapidata/rapidata_client/datapoints/datapoint.py +0 -108
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +0 -22
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/logging/__init__.py +0 -2
- rapidata/rapidata_client/logging/logger.py +0 -122
- rapidata/rapidata_client/logging/output_manager.py +0 -20
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -396
- rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -47
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.35.1.dist-info/METADATA +0 -35
- rapidata-2.35.1.dist-info/RECORD +0 -657
- {rapidata-2.35.1.dist-info → rapidata-3.0.0a8.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -16,25 +16,20 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictStr
|
|
19
|
+
from pydantic import Field, StrictBool, StrictStr
|
|
20
20
|
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.boost_leaderboard_model import BoostLeaderboardModel
|
|
23
|
-
from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
|
|
24
|
-
from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
|
|
25
23
|
from rapidata.api_client.models.create_leaderboard_model import CreateLeaderboardModel
|
|
26
24
|
from rapidata.api_client.models.create_leaderboard_result import CreateLeaderboardResult
|
|
27
25
|
from rapidata.api_client.models.get_leaderboard_by_id_result import GetLeaderboardByIdResult
|
|
28
26
|
from rapidata.api_client.models.get_standing_by_id_result import GetStandingByIdResult
|
|
29
|
-
from rapidata.api_client.models.
|
|
30
|
-
from rapidata.api_client.models.
|
|
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
|
|
31
29
|
from rapidata.api_client.models.query_model import QueryModel
|
|
32
|
-
from rapidata.api_client.models.runs_by_leaderboard_result_paged_result import RunsByLeaderboardResultPagedResult
|
|
33
|
-
from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
|
|
34
30
|
from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
|
|
35
31
|
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
36
|
-
from rapidata.api_client.models.
|
|
37
|
-
from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
|
|
32
|
+
from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
|
|
38
33
|
|
|
39
34
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
40
35
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -308,8 +303,9 @@ class LeaderboardApi:
|
|
|
308
303
|
|
|
309
304
|
# authentication setting
|
|
310
305
|
_auth_settings: List[str] = [
|
|
311
|
-
'
|
|
312
|
-
'
|
|
306
|
+
'OAuth2',
|
|
307
|
+
'OpenIdConnect',
|
|
308
|
+
'Bearer'
|
|
313
309
|
]
|
|
314
310
|
|
|
315
311
|
return self.api_client.param_serialize(
|
|
@@ -334,7 +330,7 @@ class LeaderboardApi:
|
|
|
334
330
|
def leaderboard_leaderboard_id_boost_post(
|
|
335
331
|
self,
|
|
336
332
|
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
337
|
-
boost_leaderboard_model:
|
|
333
|
+
boost_leaderboard_model: BoostLeaderboardModel,
|
|
338
334
|
_request_timeout: Union[
|
|
339
335
|
None,
|
|
340
336
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -353,7 +349,7 @@ class LeaderboardApi:
|
|
|
353
349
|
|
|
354
350
|
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
355
351
|
:type leaderboard_id: str
|
|
356
|
-
:param boost_leaderboard_model:
|
|
352
|
+
:param boost_leaderboard_model: (required)
|
|
357
353
|
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
358
354
|
:param _request_timeout: timeout setting for this request. If one
|
|
359
355
|
number provided, it will be total request
|
|
@@ -404,7 +400,7 @@ class LeaderboardApi:
|
|
|
404
400
|
def leaderboard_leaderboard_id_boost_post_with_http_info(
|
|
405
401
|
self,
|
|
406
402
|
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
407
|
-
boost_leaderboard_model:
|
|
403
|
+
boost_leaderboard_model: BoostLeaderboardModel,
|
|
408
404
|
_request_timeout: Union[
|
|
409
405
|
None,
|
|
410
406
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -423,7 +419,7 @@ class LeaderboardApi:
|
|
|
423
419
|
|
|
424
420
|
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
425
421
|
:type leaderboard_id: str
|
|
426
|
-
:param boost_leaderboard_model:
|
|
422
|
+
:param boost_leaderboard_model: (required)
|
|
427
423
|
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
428
424
|
:param _request_timeout: timeout setting for this request. If one
|
|
429
425
|
number provided, it will be total request
|
|
@@ -474,7 +470,7 @@ class LeaderboardApi:
|
|
|
474
470
|
def leaderboard_leaderboard_id_boost_post_without_preload_content(
|
|
475
471
|
self,
|
|
476
472
|
leaderboard_id: Annotated[StrictStr, Field(description="the leaderboard that should be boosted")],
|
|
477
|
-
boost_leaderboard_model:
|
|
473
|
+
boost_leaderboard_model: BoostLeaderboardModel,
|
|
478
474
|
_request_timeout: Union[
|
|
479
475
|
None,
|
|
480
476
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -493,7 +489,7 @@ class LeaderboardApi:
|
|
|
493
489
|
|
|
494
490
|
:param leaderboard_id: the leaderboard that should be boosted (required)
|
|
495
491
|
:type leaderboard_id: str
|
|
496
|
-
:param boost_leaderboard_model:
|
|
492
|
+
:param boost_leaderboard_model: (required)
|
|
497
493
|
:type boost_leaderboard_model: BoostLeaderboardModel
|
|
498
494
|
:param _request_timeout: timeout setting for this request. If one
|
|
499
495
|
number provided, it will be total request
|
|
@@ -599,8 +595,9 @@ class LeaderboardApi:
|
|
|
599
595
|
|
|
600
596
|
# authentication setting
|
|
601
597
|
_auth_settings: List[str] = [
|
|
602
|
-
'
|
|
603
|
-
'
|
|
598
|
+
'OAuth2',
|
|
599
|
+
'OpenIdConnect',
|
|
600
|
+
'Bearer'
|
|
604
601
|
]
|
|
605
602
|
|
|
606
603
|
return self.api_client.param_serialize(
|
|
@@ -851,8 +848,9 @@ class LeaderboardApi:
|
|
|
851
848
|
|
|
852
849
|
# authentication setting
|
|
853
850
|
_auth_settings: List[str] = [
|
|
854
|
-
'
|
|
855
|
-
'
|
|
851
|
+
'OAuth2',
|
|
852
|
+
'OpenIdConnect',
|
|
853
|
+
'Bearer'
|
|
856
854
|
]
|
|
857
855
|
|
|
858
856
|
return self.api_client.param_serialize(
|
|
@@ -1112,8 +1110,9 @@ class LeaderboardApi:
|
|
|
1112
1110
|
|
|
1113
1111
|
# authentication setting
|
|
1114
1112
|
_auth_settings: List[str] = [
|
|
1115
|
-
'
|
|
1116
|
-
'
|
|
1113
|
+
'OAuth2',
|
|
1114
|
+
'OpenIdConnect',
|
|
1115
|
+
'Bearer'
|
|
1117
1116
|
]
|
|
1118
1117
|
|
|
1119
1118
|
return self.api_client.param_serialize(
|
|
@@ -1135,10 +1134,10 @@ class LeaderboardApi:
|
|
|
1135
1134
|
|
|
1136
1135
|
|
|
1137
1136
|
@validate_call
|
|
1138
|
-
def
|
|
1137
|
+
def leaderboard_leaderboard_id_patch(
|
|
1139
1138
|
self,
|
|
1140
1139
|
leaderboard_id: StrictStr,
|
|
1141
|
-
|
|
1140
|
+
update_leaderboard_model: UpdateLeaderboardModel,
|
|
1142
1141
|
_request_timeout: Union[
|
|
1143
1142
|
None,
|
|
1144
1143
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1152,13 +1151,13 @@ class LeaderboardApi:
|
|
|
1152
1151
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1153
1152
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1154
1153
|
) -> None:
|
|
1155
|
-
"""Updates the
|
|
1154
|
+
"""Updates the response config of a leaderboard.
|
|
1156
1155
|
|
|
1157
1156
|
|
|
1158
1157
|
:param leaderboard_id: (required)
|
|
1159
1158
|
:type leaderboard_id: str
|
|
1160
|
-
:param
|
|
1161
|
-
:type
|
|
1159
|
+
:param update_leaderboard_model: (required)
|
|
1160
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
1162
1161
|
:param _request_timeout: timeout setting for this request. If one
|
|
1163
1162
|
number provided, it will be total request
|
|
1164
1163
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1181,9 +1180,9 @@ class LeaderboardApi:
|
|
|
1181
1180
|
:return: Returns the result object.
|
|
1182
1181
|
""" # noqa: E501
|
|
1183
1182
|
|
|
1184
|
-
_param = self.
|
|
1183
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
1185
1184
|
leaderboard_id=leaderboard_id,
|
|
1186
|
-
|
|
1185
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
1187
1186
|
_request_auth=_request_auth,
|
|
1188
1187
|
_content_type=_content_type,
|
|
1189
1188
|
_headers=_headers,
|
|
@@ -1205,10 +1204,10 @@ class LeaderboardApi:
|
|
|
1205
1204
|
|
|
1206
1205
|
|
|
1207
1206
|
@validate_call
|
|
1208
|
-
def
|
|
1207
|
+
def leaderboard_leaderboard_id_patch_with_http_info(
|
|
1209
1208
|
self,
|
|
1210
1209
|
leaderboard_id: StrictStr,
|
|
1211
|
-
|
|
1210
|
+
update_leaderboard_model: UpdateLeaderboardModel,
|
|
1212
1211
|
_request_timeout: Union[
|
|
1213
1212
|
None,
|
|
1214
1213
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1222,13 +1221,13 @@ class LeaderboardApi:
|
|
|
1222
1221
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1223
1222
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1224
1223
|
) -> ApiResponse[None]:
|
|
1225
|
-
"""Updates the
|
|
1224
|
+
"""Updates the response config of a leaderboard.
|
|
1226
1225
|
|
|
1227
1226
|
|
|
1228
1227
|
:param leaderboard_id: (required)
|
|
1229
1228
|
:type leaderboard_id: str
|
|
1230
|
-
:param
|
|
1231
|
-
:type
|
|
1229
|
+
:param update_leaderboard_model: (required)
|
|
1230
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
1232
1231
|
:param _request_timeout: timeout setting for this request. If one
|
|
1233
1232
|
number provided, it will be total request
|
|
1234
1233
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1251,9 +1250,9 @@ class LeaderboardApi:
|
|
|
1251
1250
|
:return: Returns the result object.
|
|
1252
1251
|
""" # noqa: E501
|
|
1253
1252
|
|
|
1254
|
-
_param = self.
|
|
1253
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
1255
1254
|
leaderboard_id=leaderboard_id,
|
|
1256
|
-
|
|
1255
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
1257
1256
|
_request_auth=_request_auth,
|
|
1258
1257
|
_content_type=_content_type,
|
|
1259
1258
|
_headers=_headers,
|
|
@@ -1275,10 +1274,10 @@ class LeaderboardApi:
|
|
|
1275
1274
|
|
|
1276
1275
|
|
|
1277
1276
|
@validate_call
|
|
1278
|
-
def
|
|
1277
|
+
def leaderboard_leaderboard_id_patch_without_preload_content(
|
|
1279
1278
|
self,
|
|
1280
1279
|
leaderboard_id: StrictStr,
|
|
1281
|
-
|
|
1280
|
+
update_leaderboard_model: UpdateLeaderboardModel,
|
|
1282
1281
|
_request_timeout: Union[
|
|
1283
1282
|
None,
|
|
1284
1283
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1292,13 +1291,13 @@ class LeaderboardApi:
|
|
|
1292
1291
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1293
1292
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1294
1293
|
) -> RESTResponseType:
|
|
1295
|
-
"""Updates the
|
|
1294
|
+
"""Updates the response config of a leaderboard.
|
|
1296
1295
|
|
|
1297
1296
|
|
|
1298
1297
|
:param leaderboard_id: (required)
|
|
1299
1298
|
:type leaderboard_id: str
|
|
1300
|
-
:param
|
|
1301
|
-
:type
|
|
1299
|
+
:param update_leaderboard_model: (required)
|
|
1300
|
+
:type update_leaderboard_model: UpdateLeaderboardModel
|
|
1302
1301
|
:param _request_timeout: timeout setting for this request. If one
|
|
1303
1302
|
number provided, it will be total request
|
|
1304
1303
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1321,9 +1320,9 @@ class LeaderboardApi:
|
|
|
1321
1320
|
:return: Returns the result object.
|
|
1322
1321
|
""" # noqa: E501
|
|
1323
1322
|
|
|
1324
|
-
_param = self.
|
|
1323
|
+
_param = self._leaderboard_leaderboard_id_patch_serialize(
|
|
1325
1324
|
leaderboard_id=leaderboard_id,
|
|
1326
|
-
|
|
1325
|
+
update_leaderboard_model=update_leaderboard_model,
|
|
1327
1326
|
_request_auth=_request_auth,
|
|
1328
1327
|
_content_type=_content_type,
|
|
1329
1328
|
_headers=_headers,
|
|
@@ -1340,10 +1339,10 @@ class LeaderboardApi:
|
|
|
1340
1339
|
return response_data.response
|
|
1341
1340
|
|
|
1342
1341
|
|
|
1343
|
-
def
|
|
1342
|
+
def _leaderboard_leaderboard_id_patch_serialize(
|
|
1344
1343
|
self,
|
|
1345
1344
|
leaderboard_id,
|
|
1346
|
-
|
|
1345
|
+
update_leaderboard_model,
|
|
1347
1346
|
_request_auth,
|
|
1348
1347
|
_content_type,
|
|
1349
1348
|
_headers,
|
|
@@ -1371,8 +1370,8 @@ class LeaderboardApi:
|
|
|
1371
1370
|
# process the header parameters
|
|
1372
1371
|
# process the form parameters
|
|
1373
1372
|
# process the body parameter
|
|
1374
|
-
if
|
|
1375
|
-
_body_params =
|
|
1373
|
+
if update_leaderboard_model is not None:
|
|
1374
|
+
_body_params = update_leaderboard_model
|
|
1376
1375
|
|
|
1377
1376
|
|
|
1378
1377
|
|
|
@@ -1394,1978 +1393,14 @@ class LeaderboardApi:
|
|
|
1394
1393
|
|
|
1395
1394
|
# authentication setting
|
|
1396
1395
|
_auth_settings: List[str] = [
|
|
1397
|
-
'
|
|
1398
|
-
'
|
|
1396
|
+
'OAuth2',
|
|
1397
|
+
'OpenIdConnect',
|
|
1398
|
+
'Bearer'
|
|
1399
1399
|
]
|
|
1400
1400
|
|
|
1401
1401
|
return self.api_client.param_serialize(
|
|
1402
|
-
method='
|
|
1403
|
-
resource_path='/leaderboard/{leaderboardId}
|
|
1404
|
-
path_params=_path_params,
|
|
1405
|
-
query_params=_query_params,
|
|
1406
|
-
header_params=_header_params,
|
|
1407
|
-
body=_body_params,
|
|
1408
|
-
post_params=_form_params,
|
|
1409
|
-
files=_files,
|
|
1410
|
-
auth_settings=_auth_settings,
|
|
1411
|
-
collection_formats=_collection_formats,
|
|
1412
|
-
_host=_host,
|
|
1413
|
-
_request_auth=_request_auth
|
|
1414
|
-
)
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
@validate_call
|
|
1420
|
-
def leaderboard_leaderboard_id_participant_participant_id_get(
|
|
1421
|
-
self,
|
|
1422
|
-
leaderboard_id: StrictStr,
|
|
1423
|
-
participant_id: StrictStr,
|
|
1424
|
-
_request_timeout: Union[
|
|
1425
|
-
None,
|
|
1426
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1427
|
-
Tuple[
|
|
1428
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1429
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1430
|
-
]
|
|
1431
|
-
] = None,
|
|
1432
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1433
|
-
_content_type: Optional[StrictStr] = None,
|
|
1434
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1435
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1436
|
-
) -> GetStandingByIdResult:
|
|
1437
|
-
"""(Deprecated) Gets a participant by its ID.
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
:param leaderboard_id: (required)
|
|
1441
|
-
:type leaderboard_id: str
|
|
1442
|
-
:param participant_id: (required)
|
|
1443
|
-
:type participant_id: str
|
|
1444
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1445
|
-
number provided, it will be total request
|
|
1446
|
-
timeout. It can also be a pair (tuple) of
|
|
1447
|
-
(connection, read) timeouts.
|
|
1448
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1449
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1450
|
-
request; this effectively ignores the
|
|
1451
|
-
authentication in the spec for a single request.
|
|
1452
|
-
:type _request_auth: dict, optional
|
|
1453
|
-
:param _content_type: force content-type for the request.
|
|
1454
|
-
:type _content_type: str, Optional
|
|
1455
|
-
:param _headers: set to override the headers for a single
|
|
1456
|
-
request; this effectively ignores the headers
|
|
1457
|
-
in the spec for a single request.
|
|
1458
|
-
:type _headers: dict, optional
|
|
1459
|
-
:param _host_index: set to override the host_index for a single
|
|
1460
|
-
request; this effectively ignores the host_index
|
|
1461
|
-
in the spec for a single request.
|
|
1462
|
-
:type _host_index: int, optional
|
|
1463
|
-
:return: Returns the result object.
|
|
1464
|
-
""" # noqa: E501
|
|
1465
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1466
|
-
|
|
1467
|
-
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1468
|
-
leaderboard_id=leaderboard_id,
|
|
1469
|
-
participant_id=participant_id,
|
|
1470
|
-
_request_auth=_request_auth,
|
|
1471
|
-
_content_type=_content_type,
|
|
1472
|
-
_headers=_headers,
|
|
1473
|
-
_host_index=_host_index
|
|
1474
|
-
)
|
|
1475
|
-
|
|
1476
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1477
|
-
'200': "GetStandingByIdResult",
|
|
1478
|
-
}
|
|
1479
|
-
response_data = self.api_client.call_api(
|
|
1480
|
-
*_param,
|
|
1481
|
-
_request_timeout=_request_timeout
|
|
1482
|
-
)
|
|
1483
|
-
response_data.read()
|
|
1484
|
-
return self.api_client.response_deserialize(
|
|
1485
|
-
response_data=response_data,
|
|
1486
|
-
response_types_map=_response_types_map,
|
|
1487
|
-
).data
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
@validate_call
|
|
1491
|
-
def leaderboard_leaderboard_id_participant_participant_id_get_with_http_info(
|
|
1492
|
-
self,
|
|
1493
|
-
leaderboard_id: StrictStr,
|
|
1494
|
-
participant_id: StrictStr,
|
|
1495
|
-
_request_timeout: Union[
|
|
1496
|
-
None,
|
|
1497
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1498
|
-
Tuple[
|
|
1499
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1500
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1501
|
-
]
|
|
1502
|
-
] = None,
|
|
1503
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1504
|
-
_content_type: Optional[StrictStr] = None,
|
|
1505
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1506
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1507
|
-
) -> ApiResponse[GetStandingByIdResult]:
|
|
1508
|
-
"""(Deprecated) Gets a participant by its ID.
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
:param leaderboard_id: (required)
|
|
1512
|
-
:type leaderboard_id: str
|
|
1513
|
-
:param participant_id: (required)
|
|
1514
|
-
:type participant_id: str
|
|
1515
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1516
|
-
number provided, it will be total request
|
|
1517
|
-
timeout. It can also be a pair (tuple) of
|
|
1518
|
-
(connection, read) timeouts.
|
|
1519
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1520
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1521
|
-
request; this effectively ignores the
|
|
1522
|
-
authentication in the spec for a single request.
|
|
1523
|
-
:type _request_auth: dict, optional
|
|
1524
|
-
:param _content_type: force content-type for the request.
|
|
1525
|
-
:type _content_type: str, Optional
|
|
1526
|
-
:param _headers: set to override the headers for a single
|
|
1527
|
-
request; this effectively ignores the headers
|
|
1528
|
-
in the spec for a single request.
|
|
1529
|
-
:type _headers: dict, optional
|
|
1530
|
-
:param _host_index: set to override the host_index for a single
|
|
1531
|
-
request; this effectively ignores the host_index
|
|
1532
|
-
in the spec for a single request.
|
|
1533
|
-
:type _host_index: int, optional
|
|
1534
|
-
:return: Returns the result object.
|
|
1535
|
-
""" # noqa: E501
|
|
1536
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1537
|
-
|
|
1538
|
-
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1539
|
-
leaderboard_id=leaderboard_id,
|
|
1540
|
-
participant_id=participant_id,
|
|
1541
|
-
_request_auth=_request_auth,
|
|
1542
|
-
_content_type=_content_type,
|
|
1543
|
-
_headers=_headers,
|
|
1544
|
-
_host_index=_host_index
|
|
1545
|
-
)
|
|
1546
|
-
|
|
1547
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1548
|
-
'200': "GetStandingByIdResult",
|
|
1549
|
-
}
|
|
1550
|
-
response_data = self.api_client.call_api(
|
|
1551
|
-
*_param,
|
|
1552
|
-
_request_timeout=_request_timeout
|
|
1553
|
-
)
|
|
1554
|
-
response_data.read()
|
|
1555
|
-
return self.api_client.response_deserialize(
|
|
1556
|
-
response_data=response_data,
|
|
1557
|
-
response_types_map=_response_types_map,
|
|
1558
|
-
)
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
@validate_call
|
|
1562
|
-
def leaderboard_leaderboard_id_participant_participant_id_get_without_preload_content(
|
|
1563
|
-
self,
|
|
1564
|
-
leaderboard_id: StrictStr,
|
|
1565
|
-
participant_id: StrictStr,
|
|
1566
|
-
_request_timeout: Union[
|
|
1567
|
-
None,
|
|
1568
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1569
|
-
Tuple[
|
|
1570
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1571
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1572
|
-
]
|
|
1573
|
-
] = None,
|
|
1574
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1575
|
-
_content_type: Optional[StrictStr] = None,
|
|
1576
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1577
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1578
|
-
) -> RESTResponseType:
|
|
1579
|
-
"""(Deprecated) Gets a participant by its ID.
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
:param leaderboard_id: (required)
|
|
1583
|
-
:type leaderboard_id: str
|
|
1584
|
-
:param participant_id: (required)
|
|
1585
|
-
:type participant_id: str
|
|
1586
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1587
|
-
number provided, it will be total request
|
|
1588
|
-
timeout. It can also be a pair (tuple) of
|
|
1589
|
-
(connection, read) timeouts.
|
|
1590
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1591
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1592
|
-
request; this effectively ignores the
|
|
1593
|
-
authentication in the spec for a single request.
|
|
1594
|
-
:type _request_auth: dict, optional
|
|
1595
|
-
:param _content_type: force content-type for the request.
|
|
1596
|
-
:type _content_type: str, Optional
|
|
1597
|
-
:param _headers: set to override the headers for a single
|
|
1598
|
-
request; this effectively ignores the headers
|
|
1599
|
-
in the spec for a single request.
|
|
1600
|
-
:type _headers: dict, optional
|
|
1601
|
-
:param _host_index: set to override the host_index for a single
|
|
1602
|
-
request; this effectively ignores the host_index
|
|
1603
|
-
in the spec for a single request.
|
|
1604
|
-
:type _host_index: int, optional
|
|
1605
|
-
:return: Returns the result object.
|
|
1606
|
-
""" # noqa: E501
|
|
1607
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1608
|
-
|
|
1609
|
-
_param = self._leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1610
|
-
leaderboard_id=leaderboard_id,
|
|
1611
|
-
participant_id=participant_id,
|
|
1612
|
-
_request_auth=_request_auth,
|
|
1613
|
-
_content_type=_content_type,
|
|
1614
|
-
_headers=_headers,
|
|
1615
|
-
_host_index=_host_index
|
|
1616
|
-
)
|
|
1617
|
-
|
|
1618
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1619
|
-
'200': "GetStandingByIdResult",
|
|
1620
|
-
}
|
|
1621
|
-
response_data = self.api_client.call_api(
|
|
1622
|
-
*_param,
|
|
1623
|
-
_request_timeout=_request_timeout
|
|
1624
|
-
)
|
|
1625
|
-
return response_data.response
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
def _leaderboard_leaderboard_id_participant_participant_id_get_serialize(
|
|
1629
|
-
self,
|
|
1630
|
-
leaderboard_id,
|
|
1631
|
-
participant_id,
|
|
1632
|
-
_request_auth,
|
|
1633
|
-
_content_type,
|
|
1634
|
-
_headers,
|
|
1635
|
-
_host_index,
|
|
1636
|
-
) -> RequestSerialized:
|
|
1637
|
-
|
|
1638
|
-
_host = None
|
|
1639
|
-
|
|
1640
|
-
_collection_formats: Dict[str, str] = {
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
_path_params: Dict[str, str] = {}
|
|
1644
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1645
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1646
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1647
|
-
_files: Dict[
|
|
1648
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1649
|
-
] = {}
|
|
1650
|
-
_body_params: Optional[bytes] = None
|
|
1651
|
-
|
|
1652
|
-
# process the path parameters
|
|
1653
|
-
if leaderboard_id is not None:
|
|
1654
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
1655
|
-
if participant_id is not None:
|
|
1656
|
-
_path_params['participantId'] = participant_id
|
|
1657
|
-
# process the query parameters
|
|
1658
|
-
# process the header parameters
|
|
1659
|
-
# process the form parameters
|
|
1660
|
-
# process the body parameter
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
# set the HTTP header `Accept`
|
|
1664
|
-
if 'Accept' not in _header_params:
|
|
1665
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1666
|
-
[
|
|
1667
|
-
'text/plain',
|
|
1668
|
-
'application/json',
|
|
1669
|
-
'text/json'
|
|
1670
|
-
]
|
|
1671
|
-
)
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
# authentication setting
|
|
1675
|
-
_auth_settings: List[str] = [
|
|
1676
|
-
'bearer',
|
|
1677
|
-
'oauth2'
|
|
1678
|
-
]
|
|
1679
|
-
|
|
1680
|
-
return self.api_client.param_serialize(
|
|
1681
|
-
method='GET',
|
|
1682
|
-
resource_path='/leaderboard/{leaderboardId}/participant/{participantId}',
|
|
1683
|
-
path_params=_path_params,
|
|
1684
|
-
query_params=_query_params,
|
|
1685
|
-
header_params=_header_params,
|
|
1686
|
-
body=_body_params,
|
|
1687
|
-
post_params=_form_params,
|
|
1688
|
-
files=_files,
|
|
1689
|
-
auth_settings=_auth_settings,
|
|
1690
|
-
collection_formats=_collection_formats,
|
|
1691
|
-
_host=_host,
|
|
1692
|
-
_request_auth=_request_auth
|
|
1693
|
-
)
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
@validate_call
|
|
1699
|
-
def leaderboard_leaderboard_id_participants_get(
|
|
1700
|
-
self,
|
|
1701
|
-
leaderboard_id: StrictStr,
|
|
1702
|
-
_request_timeout: Union[
|
|
1703
|
-
None,
|
|
1704
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1705
|
-
Tuple[
|
|
1706
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1707
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1708
|
-
]
|
|
1709
|
-
] = None,
|
|
1710
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1711
|
-
_content_type: Optional[StrictStr] = None,
|
|
1712
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1713
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1714
|
-
) -> StandingByLeaderboardPagedResult:
|
|
1715
|
-
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
:param leaderboard_id: (required)
|
|
1719
|
-
:type leaderboard_id: str
|
|
1720
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1721
|
-
number provided, it will be total request
|
|
1722
|
-
timeout. It can also be a pair (tuple) of
|
|
1723
|
-
(connection, read) timeouts.
|
|
1724
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1725
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1726
|
-
request; this effectively ignores the
|
|
1727
|
-
authentication in the spec for a single request.
|
|
1728
|
-
:type _request_auth: dict, optional
|
|
1729
|
-
:param _content_type: force content-type for the request.
|
|
1730
|
-
:type _content_type: str, Optional
|
|
1731
|
-
:param _headers: set to override the headers for a single
|
|
1732
|
-
request; this effectively ignores the headers
|
|
1733
|
-
in the spec for a single request.
|
|
1734
|
-
:type _headers: dict, optional
|
|
1735
|
-
:param _host_index: set to override the host_index for a single
|
|
1736
|
-
request; this effectively ignores the host_index
|
|
1737
|
-
in the spec for a single request.
|
|
1738
|
-
:type _host_index: int, optional
|
|
1739
|
-
:return: Returns the result object.
|
|
1740
|
-
""" # noqa: E501
|
|
1741
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1742
|
-
|
|
1743
|
-
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1744
|
-
leaderboard_id=leaderboard_id,
|
|
1745
|
-
_request_auth=_request_auth,
|
|
1746
|
-
_content_type=_content_type,
|
|
1747
|
-
_headers=_headers,
|
|
1748
|
-
_host_index=_host_index
|
|
1749
|
-
)
|
|
1750
|
-
|
|
1751
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1752
|
-
'200': "StandingByLeaderboardPagedResult",
|
|
1753
|
-
}
|
|
1754
|
-
response_data = self.api_client.call_api(
|
|
1755
|
-
*_param,
|
|
1756
|
-
_request_timeout=_request_timeout
|
|
1757
|
-
)
|
|
1758
|
-
response_data.read()
|
|
1759
|
-
return self.api_client.response_deserialize(
|
|
1760
|
-
response_data=response_data,
|
|
1761
|
-
response_types_map=_response_types_map,
|
|
1762
|
-
).data
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
@validate_call
|
|
1766
|
-
def leaderboard_leaderboard_id_participants_get_with_http_info(
|
|
1767
|
-
self,
|
|
1768
|
-
leaderboard_id: StrictStr,
|
|
1769
|
-
_request_timeout: Union[
|
|
1770
|
-
None,
|
|
1771
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1772
|
-
Tuple[
|
|
1773
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1774
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1775
|
-
]
|
|
1776
|
-
] = None,
|
|
1777
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1778
|
-
_content_type: Optional[StrictStr] = None,
|
|
1779
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1780
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1781
|
-
) -> ApiResponse[StandingByLeaderboardPagedResult]:
|
|
1782
|
-
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
:param leaderboard_id: (required)
|
|
1786
|
-
:type leaderboard_id: str
|
|
1787
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1788
|
-
number provided, it will be total request
|
|
1789
|
-
timeout. It can also be a pair (tuple) of
|
|
1790
|
-
(connection, read) timeouts.
|
|
1791
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1792
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1793
|
-
request; this effectively ignores the
|
|
1794
|
-
authentication in the spec for a single request.
|
|
1795
|
-
:type _request_auth: dict, optional
|
|
1796
|
-
:param _content_type: force content-type for the request.
|
|
1797
|
-
:type _content_type: str, Optional
|
|
1798
|
-
:param _headers: set to override the headers for a single
|
|
1799
|
-
request; this effectively ignores the headers
|
|
1800
|
-
in the spec for a single request.
|
|
1801
|
-
:type _headers: dict, optional
|
|
1802
|
-
:param _host_index: set to override the host_index for a single
|
|
1803
|
-
request; this effectively ignores the host_index
|
|
1804
|
-
in the spec for a single request.
|
|
1805
|
-
:type _host_index: int, optional
|
|
1806
|
-
:return: Returns the result object.
|
|
1807
|
-
""" # noqa: E501
|
|
1808
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1809
|
-
|
|
1810
|
-
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1811
|
-
leaderboard_id=leaderboard_id,
|
|
1812
|
-
_request_auth=_request_auth,
|
|
1813
|
-
_content_type=_content_type,
|
|
1814
|
-
_headers=_headers,
|
|
1815
|
-
_host_index=_host_index
|
|
1816
|
-
)
|
|
1817
|
-
|
|
1818
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1819
|
-
'200': "StandingByLeaderboardPagedResult",
|
|
1820
|
-
}
|
|
1821
|
-
response_data = self.api_client.call_api(
|
|
1822
|
-
*_param,
|
|
1823
|
-
_request_timeout=_request_timeout
|
|
1824
|
-
)
|
|
1825
|
-
response_data.read()
|
|
1826
|
-
return self.api_client.response_deserialize(
|
|
1827
|
-
response_data=response_data,
|
|
1828
|
-
response_types_map=_response_types_map,
|
|
1829
|
-
)
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
@validate_call
|
|
1833
|
-
def leaderboard_leaderboard_id_participants_get_without_preload_content(
|
|
1834
|
-
self,
|
|
1835
|
-
leaderboard_id: StrictStr,
|
|
1836
|
-
_request_timeout: Union[
|
|
1837
|
-
None,
|
|
1838
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1839
|
-
Tuple[
|
|
1840
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1841
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1842
|
-
]
|
|
1843
|
-
] = None,
|
|
1844
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1845
|
-
_content_type: Optional[StrictStr] = None,
|
|
1846
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1847
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1848
|
-
) -> RESTResponseType:
|
|
1849
|
-
"""(Deprecated) queries all the participants connected to leaderboard by its ID.
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
:param leaderboard_id: (required)
|
|
1853
|
-
:type leaderboard_id: str
|
|
1854
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1855
|
-
number provided, it will be total request
|
|
1856
|
-
timeout. It can also be a pair (tuple) of
|
|
1857
|
-
(connection, read) timeouts.
|
|
1858
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1859
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1860
|
-
request; this effectively ignores the
|
|
1861
|
-
authentication in the spec for a single request.
|
|
1862
|
-
:type _request_auth: dict, optional
|
|
1863
|
-
:param _content_type: force content-type for the request.
|
|
1864
|
-
:type _content_type: str, Optional
|
|
1865
|
-
:param _headers: set to override the headers for a single
|
|
1866
|
-
request; this effectively ignores the headers
|
|
1867
|
-
in the spec for a single request.
|
|
1868
|
-
:type _headers: dict, optional
|
|
1869
|
-
:param _host_index: set to override the host_index for a single
|
|
1870
|
-
request; this effectively ignores the host_index
|
|
1871
|
-
in the spec for a single request.
|
|
1872
|
-
:type _host_index: int, optional
|
|
1873
|
-
:return: Returns the result object.
|
|
1874
|
-
""" # noqa: E501
|
|
1875
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
1876
|
-
|
|
1877
|
-
_param = self._leaderboard_leaderboard_id_participants_get_serialize(
|
|
1878
|
-
leaderboard_id=leaderboard_id,
|
|
1879
|
-
_request_auth=_request_auth,
|
|
1880
|
-
_content_type=_content_type,
|
|
1881
|
-
_headers=_headers,
|
|
1882
|
-
_host_index=_host_index
|
|
1883
|
-
)
|
|
1884
|
-
|
|
1885
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1886
|
-
'200': "StandingByLeaderboardPagedResult",
|
|
1887
|
-
}
|
|
1888
|
-
response_data = self.api_client.call_api(
|
|
1889
|
-
*_param,
|
|
1890
|
-
_request_timeout=_request_timeout
|
|
1891
|
-
)
|
|
1892
|
-
return response_data.response
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
def _leaderboard_leaderboard_id_participants_get_serialize(
|
|
1896
|
-
self,
|
|
1897
|
-
leaderboard_id,
|
|
1898
|
-
_request_auth,
|
|
1899
|
-
_content_type,
|
|
1900
|
-
_headers,
|
|
1901
|
-
_host_index,
|
|
1902
|
-
) -> RequestSerialized:
|
|
1903
|
-
|
|
1904
|
-
_host = None
|
|
1905
|
-
|
|
1906
|
-
_collection_formats: Dict[str, str] = {
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
_path_params: Dict[str, str] = {}
|
|
1910
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1911
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1912
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1913
|
-
_files: Dict[
|
|
1914
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1915
|
-
] = {}
|
|
1916
|
-
_body_params: Optional[bytes] = None
|
|
1917
|
-
|
|
1918
|
-
# process the path parameters
|
|
1919
|
-
if leaderboard_id is not None:
|
|
1920
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
1921
|
-
# process the query parameters
|
|
1922
|
-
# process the header parameters
|
|
1923
|
-
# process the form parameters
|
|
1924
|
-
# process the body parameter
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
# set the HTTP header `Accept`
|
|
1928
|
-
if 'Accept' not in _header_params:
|
|
1929
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1930
|
-
[
|
|
1931
|
-
'text/plain',
|
|
1932
|
-
'application/json',
|
|
1933
|
-
'text/json'
|
|
1934
|
-
]
|
|
1935
|
-
)
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
# authentication setting
|
|
1939
|
-
_auth_settings: List[str] = [
|
|
1940
|
-
'bearer',
|
|
1941
|
-
'oauth2'
|
|
1942
|
-
]
|
|
1943
|
-
|
|
1944
|
-
return self.api_client.param_serialize(
|
|
1945
|
-
method='GET',
|
|
1946
|
-
resource_path='/leaderboard/{leaderboardId}/participants',
|
|
1947
|
-
path_params=_path_params,
|
|
1948
|
-
query_params=_query_params,
|
|
1949
|
-
header_params=_header_params,
|
|
1950
|
-
body=_body_params,
|
|
1951
|
-
post_params=_form_params,
|
|
1952
|
-
files=_files,
|
|
1953
|
-
auth_settings=_auth_settings,
|
|
1954
|
-
collection_formats=_collection_formats,
|
|
1955
|
-
_host=_host,
|
|
1956
|
-
_request_auth=_request_auth
|
|
1957
|
-
)
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
@validate_call
|
|
1963
|
-
def leaderboard_leaderboard_id_participants_participant_id_submit_post(
|
|
1964
|
-
self,
|
|
1965
|
-
leaderboard_id: StrictStr,
|
|
1966
|
-
participant_id: StrictStr,
|
|
1967
|
-
_request_timeout: Union[
|
|
1968
|
-
None,
|
|
1969
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1970
|
-
Tuple[
|
|
1971
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1972
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1973
|
-
]
|
|
1974
|
-
] = None,
|
|
1975
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1976
|
-
_content_type: Optional[StrictStr] = None,
|
|
1977
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1978
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1979
|
-
) -> SubmitParticipantResult:
|
|
1980
|
-
"""(Deprecated) Submits a participant to a leaderboard.
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
:param leaderboard_id: (required)
|
|
1984
|
-
:type leaderboard_id: str
|
|
1985
|
-
:param participant_id: (required)
|
|
1986
|
-
:type participant_id: str
|
|
1987
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1988
|
-
number provided, it will be total request
|
|
1989
|
-
timeout. It can also be a pair (tuple) of
|
|
1990
|
-
(connection, read) timeouts.
|
|
1991
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1992
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1993
|
-
request; this effectively ignores the
|
|
1994
|
-
authentication in the spec for a single request.
|
|
1995
|
-
:type _request_auth: dict, optional
|
|
1996
|
-
:param _content_type: force content-type for the request.
|
|
1997
|
-
:type _content_type: str, Optional
|
|
1998
|
-
:param _headers: set to override the headers for a single
|
|
1999
|
-
request; this effectively ignores the headers
|
|
2000
|
-
in the spec for a single request.
|
|
2001
|
-
:type _headers: dict, optional
|
|
2002
|
-
:param _host_index: set to override the host_index for a single
|
|
2003
|
-
request; this effectively ignores the host_index
|
|
2004
|
-
in the spec for a single request.
|
|
2005
|
-
:type _host_index: int, optional
|
|
2006
|
-
:return: Returns the result object.
|
|
2007
|
-
""" # noqa: E501
|
|
2008
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2009
|
-
|
|
2010
|
-
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2011
|
-
leaderboard_id=leaderboard_id,
|
|
2012
|
-
participant_id=participant_id,
|
|
2013
|
-
_request_auth=_request_auth,
|
|
2014
|
-
_content_type=_content_type,
|
|
2015
|
-
_headers=_headers,
|
|
2016
|
-
_host_index=_host_index
|
|
2017
|
-
)
|
|
2018
|
-
|
|
2019
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2020
|
-
'200': "SubmitParticipantResult",
|
|
2021
|
-
}
|
|
2022
|
-
response_data = self.api_client.call_api(
|
|
2023
|
-
*_param,
|
|
2024
|
-
_request_timeout=_request_timeout
|
|
2025
|
-
)
|
|
2026
|
-
response_data.read()
|
|
2027
|
-
return self.api_client.response_deserialize(
|
|
2028
|
-
response_data=response_data,
|
|
2029
|
-
response_types_map=_response_types_map,
|
|
2030
|
-
).data
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
@validate_call
|
|
2034
|
-
def leaderboard_leaderboard_id_participants_participant_id_submit_post_with_http_info(
|
|
2035
|
-
self,
|
|
2036
|
-
leaderboard_id: StrictStr,
|
|
2037
|
-
participant_id: StrictStr,
|
|
2038
|
-
_request_timeout: Union[
|
|
2039
|
-
None,
|
|
2040
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2041
|
-
Tuple[
|
|
2042
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2043
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2044
|
-
]
|
|
2045
|
-
] = None,
|
|
2046
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2047
|
-
_content_type: Optional[StrictStr] = None,
|
|
2048
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2049
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2050
|
-
) -> ApiResponse[SubmitParticipantResult]:
|
|
2051
|
-
"""(Deprecated) Submits a participant to a leaderboard.
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
:param leaderboard_id: (required)
|
|
2055
|
-
:type leaderboard_id: str
|
|
2056
|
-
:param participant_id: (required)
|
|
2057
|
-
:type participant_id: str
|
|
2058
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2059
|
-
number provided, it will be total request
|
|
2060
|
-
timeout. It can also be a pair (tuple) of
|
|
2061
|
-
(connection, read) timeouts.
|
|
2062
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2063
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2064
|
-
request; this effectively ignores the
|
|
2065
|
-
authentication in the spec for a single request.
|
|
2066
|
-
:type _request_auth: dict, optional
|
|
2067
|
-
:param _content_type: force content-type for the request.
|
|
2068
|
-
:type _content_type: str, Optional
|
|
2069
|
-
:param _headers: set to override the headers for a single
|
|
2070
|
-
request; this effectively ignores the headers
|
|
2071
|
-
in the spec for a single request.
|
|
2072
|
-
:type _headers: dict, optional
|
|
2073
|
-
:param _host_index: set to override the host_index for a single
|
|
2074
|
-
request; this effectively ignores the host_index
|
|
2075
|
-
in the spec for a single request.
|
|
2076
|
-
:type _host_index: int, optional
|
|
2077
|
-
:return: Returns the result object.
|
|
2078
|
-
""" # noqa: E501
|
|
2079
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2080
|
-
|
|
2081
|
-
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2082
|
-
leaderboard_id=leaderboard_id,
|
|
2083
|
-
participant_id=participant_id,
|
|
2084
|
-
_request_auth=_request_auth,
|
|
2085
|
-
_content_type=_content_type,
|
|
2086
|
-
_headers=_headers,
|
|
2087
|
-
_host_index=_host_index
|
|
2088
|
-
)
|
|
2089
|
-
|
|
2090
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2091
|
-
'200': "SubmitParticipantResult",
|
|
2092
|
-
}
|
|
2093
|
-
response_data = self.api_client.call_api(
|
|
2094
|
-
*_param,
|
|
2095
|
-
_request_timeout=_request_timeout
|
|
2096
|
-
)
|
|
2097
|
-
response_data.read()
|
|
2098
|
-
return self.api_client.response_deserialize(
|
|
2099
|
-
response_data=response_data,
|
|
2100
|
-
response_types_map=_response_types_map,
|
|
2101
|
-
)
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
@validate_call
|
|
2105
|
-
def leaderboard_leaderboard_id_participants_participant_id_submit_post_without_preload_content(
|
|
2106
|
-
self,
|
|
2107
|
-
leaderboard_id: StrictStr,
|
|
2108
|
-
participant_id: StrictStr,
|
|
2109
|
-
_request_timeout: Union[
|
|
2110
|
-
None,
|
|
2111
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2112
|
-
Tuple[
|
|
2113
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2114
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2115
|
-
]
|
|
2116
|
-
] = None,
|
|
2117
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2118
|
-
_content_type: Optional[StrictStr] = None,
|
|
2119
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2120
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2121
|
-
) -> RESTResponseType:
|
|
2122
|
-
"""(Deprecated) Submits a participant to a leaderboard.
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
:param leaderboard_id: (required)
|
|
2126
|
-
:type leaderboard_id: str
|
|
2127
|
-
:param participant_id: (required)
|
|
2128
|
-
:type participant_id: str
|
|
2129
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2130
|
-
number provided, it will be total request
|
|
2131
|
-
timeout. It can also be a pair (tuple) of
|
|
2132
|
-
(connection, read) timeouts.
|
|
2133
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2134
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2135
|
-
request; this effectively ignores the
|
|
2136
|
-
authentication in the spec for a single request.
|
|
2137
|
-
:type _request_auth: dict, optional
|
|
2138
|
-
:param _content_type: force content-type for the request.
|
|
2139
|
-
:type _content_type: str, Optional
|
|
2140
|
-
:param _headers: set to override the headers for a single
|
|
2141
|
-
request; this effectively ignores the headers
|
|
2142
|
-
in the spec for a single request.
|
|
2143
|
-
:type _headers: dict, optional
|
|
2144
|
-
:param _host_index: set to override the host_index for a single
|
|
2145
|
-
request; this effectively ignores the host_index
|
|
2146
|
-
in the spec for a single request.
|
|
2147
|
-
:type _host_index: int, optional
|
|
2148
|
-
:return: Returns the result object.
|
|
2149
|
-
""" # noqa: E501
|
|
2150
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
2151
|
-
|
|
2152
|
-
_param = self._leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2153
|
-
leaderboard_id=leaderboard_id,
|
|
2154
|
-
participant_id=participant_id,
|
|
2155
|
-
_request_auth=_request_auth,
|
|
2156
|
-
_content_type=_content_type,
|
|
2157
|
-
_headers=_headers,
|
|
2158
|
-
_host_index=_host_index
|
|
2159
|
-
)
|
|
2160
|
-
|
|
2161
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2162
|
-
'200': "SubmitParticipantResult",
|
|
2163
|
-
}
|
|
2164
|
-
response_data = self.api_client.call_api(
|
|
2165
|
-
*_param,
|
|
2166
|
-
_request_timeout=_request_timeout
|
|
2167
|
-
)
|
|
2168
|
-
return response_data.response
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
def _leaderboard_leaderboard_id_participants_participant_id_submit_post_serialize(
|
|
2172
|
-
self,
|
|
2173
|
-
leaderboard_id,
|
|
2174
|
-
participant_id,
|
|
2175
|
-
_request_auth,
|
|
2176
|
-
_content_type,
|
|
2177
|
-
_headers,
|
|
2178
|
-
_host_index,
|
|
2179
|
-
) -> RequestSerialized:
|
|
2180
|
-
|
|
2181
|
-
_host = None
|
|
2182
|
-
|
|
2183
|
-
_collection_formats: Dict[str, str] = {
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
_path_params: Dict[str, str] = {}
|
|
2187
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2188
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2189
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2190
|
-
_files: Dict[
|
|
2191
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2192
|
-
] = {}
|
|
2193
|
-
_body_params: Optional[bytes] = None
|
|
2194
|
-
|
|
2195
|
-
# process the path parameters
|
|
2196
|
-
if leaderboard_id is not None:
|
|
2197
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
2198
|
-
if participant_id is not None:
|
|
2199
|
-
_path_params['participantId'] = participant_id
|
|
2200
|
-
# process the query parameters
|
|
2201
|
-
# process the header parameters
|
|
2202
|
-
# process the form parameters
|
|
2203
|
-
# process the body parameter
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
# set the HTTP header `Accept`
|
|
2207
|
-
if 'Accept' not in _header_params:
|
|
2208
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2209
|
-
[
|
|
2210
|
-
'text/plain',
|
|
2211
|
-
'application/json',
|
|
2212
|
-
'text/json'
|
|
2213
|
-
]
|
|
2214
|
-
)
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
# authentication setting
|
|
2218
|
-
_auth_settings: List[str] = [
|
|
2219
|
-
'bearer',
|
|
2220
|
-
'oauth2'
|
|
2221
|
-
]
|
|
2222
|
-
|
|
2223
|
-
return self.api_client.param_serialize(
|
|
2224
|
-
method='POST',
|
|
2225
|
-
resource_path='/leaderboard/{leaderboardId}/participants/{participantId}/submit',
|
|
2226
|
-
path_params=_path_params,
|
|
2227
|
-
query_params=_query_params,
|
|
2228
|
-
header_params=_header_params,
|
|
2229
|
-
body=_body_params,
|
|
2230
|
-
post_params=_form_params,
|
|
2231
|
-
files=_files,
|
|
2232
|
-
auth_settings=_auth_settings,
|
|
2233
|
-
collection_formats=_collection_formats,
|
|
2234
|
-
_host=_host,
|
|
2235
|
-
_request_auth=_request_auth
|
|
2236
|
-
)
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
@validate_call
|
|
2242
|
-
def leaderboard_leaderboard_id_participants_post(
|
|
2243
|
-
self,
|
|
2244
|
-
leaderboard_id: StrictStr,
|
|
2245
|
-
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2246
|
-
_request_timeout: Union[
|
|
2247
|
-
None,
|
|
2248
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2249
|
-
Tuple[
|
|
2250
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2251
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2252
|
-
]
|
|
2253
|
-
] = None,
|
|
2254
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2255
|
-
_content_type: Optional[StrictStr] = None,
|
|
2256
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2257
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2258
|
-
) -> CreateBenchmarkParticipantResult:
|
|
2259
|
-
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
:param leaderboard_id: (required)
|
|
2263
|
-
:type leaderboard_id: str
|
|
2264
|
-
:param create_benchmark_participant_model:
|
|
2265
|
-
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2266
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2267
|
-
number provided, it will be total request
|
|
2268
|
-
timeout. It can also be a pair (tuple) of
|
|
2269
|
-
(connection, read) timeouts.
|
|
2270
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2271
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2272
|
-
request; this effectively ignores the
|
|
2273
|
-
authentication in the spec for a single request.
|
|
2274
|
-
:type _request_auth: dict, optional
|
|
2275
|
-
:param _content_type: force content-type for the request.
|
|
2276
|
-
:type _content_type: str, Optional
|
|
2277
|
-
:param _headers: set to override the headers for a single
|
|
2278
|
-
request; this effectively ignores the headers
|
|
2279
|
-
in the spec for a single request.
|
|
2280
|
-
:type _headers: dict, optional
|
|
2281
|
-
:param _host_index: set to override the host_index for a single
|
|
2282
|
-
request; this effectively ignores the host_index
|
|
2283
|
-
in the spec for a single request.
|
|
2284
|
-
:type _host_index: int, optional
|
|
2285
|
-
:return: Returns the result object.
|
|
2286
|
-
""" # noqa: E501
|
|
2287
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2288
|
-
|
|
2289
|
-
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2290
|
-
leaderboard_id=leaderboard_id,
|
|
2291
|
-
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2292
|
-
_request_auth=_request_auth,
|
|
2293
|
-
_content_type=_content_type,
|
|
2294
|
-
_headers=_headers,
|
|
2295
|
-
_host_index=_host_index
|
|
2296
|
-
)
|
|
2297
|
-
|
|
2298
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2299
|
-
'200': "CreateBenchmarkParticipantResult",
|
|
2300
|
-
}
|
|
2301
|
-
response_data = self.api_client.call_api(
|
|
2302
|
-
*_param,
|
|
2303
|
-
_request_timeout=_request_timeout
|
|
2304
|
-
)
|
|
2305
|
-
response_data.read()
|
|
2306
|
-
return self.api_client.response_deserialize(
|
|
2307
|
-
response_data=response_data,
|
|
2308
|
-
response_types_map=_response_types_map,
|
|
2309
|
-
).data
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
@validate_call
|
|
2313
|
-
def leaderboard_leaderboard_id_participants_post_with_http_info(
|
|
2314
|
-
self,
|
|
2315
|
-
leaderboard_id: StrictStr,
|
|
2316
|
-
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2317
|
-
_request_timeout: Union[
|
|
2318
|
-
None,
|
|
2319
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2320
|
-
Tuple[
|
|
2321
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2322
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2323
|
-
]
|
|
2324
|
-
] = None,
|
|
2325
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2326
|
-
_content_type: Optional[StrictStr] = None,
|
|
2327
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2328
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2329
|
-
) -> ApiResponse[CreateBenchmarkParticipantResult]:
|
|
2330
|
-
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
:param leaderboard_id: (required)
|
|
2334
|
-
:type leaderboard_id: str
|
|
2335
|
-
:param create_benchmark_participant_model:
|
|
2336
|
-
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2337
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2338
|
-
number provided, it will be total request
|
|
2339
|
-
timeout. It can also be a pair (tuple) of
|
|
2340
|
-
(connection, read) timeouts.
|
|
2341
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2342
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2343
|
-
request; this effectively ignores the
|
|
2344
|
-
authentication in the spec for a single request.
|
|
2345
|
-
:type _request_auth: dict, optional
|
|
2346
|
-
:param _content_type: force content-type for the request.
|
|
2347
|
-
:type _content_type: str, Optional
|
|
2348
|
-
:param _headers: set to override the headers for a single
|
|
2349
|
-
request; this effectively ignores the headers
|
|
2350
|
-
in the spec for a single request.
|
|
2351
|
-
:type _headers: dict, optional
|
|
2352
|
-
:param _host_index: set to override the host_index for a single
|
|
2353
|
-
request; this effectively ignores the host_index
|
|
2354
|
-
in the spec for a single request.
|
|
2355
|
-
:type _host_index: int, optional
|
|
2356
|
-
:return: Returns the result object.
|
|
2357
|
-
""" # noqa: E501
|
|
2358
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2359
|
-
|
|
2360
|
-
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2361
|
-
leaderboard_id=leaderboard_id,
|
|
2362
|
-
create_benchmark_participant_model=create_benchmark_participant_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': "CreateBenchmarkParticipantResult",
|
|
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
|
-
)
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
@validate_call
|
|
2384
|
-
def leaderboard_leaderboard_id_participants_post_without_preload_content(
|
|
2385
|
-
self,
|
|
2386
|
-
leaderboard_id: StrictStr,
|
|
2387
|
-
create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
|
|
2388
|
-
_request_timeout: Union[
|
|
2389
|
-
None,
|
|
2390
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2391
|
-
Tuple[
|
|
2392
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2393
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2394
|
-
]
|
|
2395
|
-
] = None,
|
|
2396
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2397
|
-
_content_type: Optional[StrictStr] = None,
|
|
2398
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2399
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2400
|
-
) -> RESTResponseType:
|
|
2401
|
-
"""(Deprecated) Creates a participant in a leaderboard.
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
:param leaderboard_id: (required)
|
|
2405
|
-
:type leaderboard_id: str
|
|
2406
|
-
:param create_benchmark_participant_model:
|
|
2407
|
-
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
2408
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2409
|
-
number provided, it will be total request
|
|
2410
|
-
timeout. It can also be a pair (tuple) of
|
|
2411
|
-
(connection, read) timeouts.
|
|
2412
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2413
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2414
|
-
request; this effectively ignores the
|
|
2415
|
-
authentication in the spec for a single request.
|
|
2416
|
-
:type _request_auth: dict, optional
|
|
2417
|
-
:param _content_type: force content-type for the request.
|
|
2418
|
-
:type _content_type: str, Optional
|
|
2419
|
-
:param _headers: set to override the headers for a single
|
|
2420
|
-
request; this effectively ignores the headers
|
|
2421
|
-
in the spec for a single request.
|
|
2422
|
-
:type _headers: dict, optional
|
|
2423
|
-
:param _host_index: set to override the host_index for a single
|
|
2424
|
-
request; this effectively ignores the host_index
|
|
2425
|
-
in the spec for a single request.
|
|
2426
|
-
:type _host_index: int, optional
|
|
2427
|
-
:return: Returns the result object.
|
|
2428
|
-
""" # noqa: E501
|
|
2429
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/participants is deprecated.", DeprecationWarning)
|
|
2430
|
-
|
|
2431
|
-
_param = self._leaderboard_leaderboard_id_participants_post_serialize(
|
|
2432
|
-
leaderboard_id=leaderboard_id,
|
|
2433
|
-
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
2434
|
-
_request_auth=_request_auth,
|
|
2435
|
-
_content_type=_content_type,
|
|
2436
|
-
_headers=_headers,
|
|
2437
|
-
_host_index=_host_index
|
|
2438
|
-
)
|
|
2439
|
-
|
|
2440
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2441
|
-
'200': "CreateBenchmarkParticipantResult",
|
|
2442
|
-
}
|
|
2443
|
-
response_data = self.api_client.call_api(
|
|
2444
|
-
*_param,
|
|
2445
|
-
_request_timeout=_request_timeout
|
|
2446
|
-
)
|
|
2447
|
-
return response_data.response
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
def _leaderboard_leaderboard_id_participants_post_serialize(
|
|
2451
|
-
self,
|
|
2452
|
-
leaderboard_id,
|
|
2453
|
-
create_benchmark_participant_model,
|
|
2454
|
-
_request_auth,
|
|
2455
|
-
_content_type,
|
|
2456
|
-
_headers,
|
|
2457
|
-
_host_index,
|
|
2458
|
-
) -> RequestSerialized:
|
|
2459
|
-
|
|
2460
|
-
_host = None
|
|
2461
|
-
|
|
2462
|
-
_collection_formats: Dict[str, str] = {
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
|
-
_path_params: Dict[str, str] = {}
|
|
2466
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2467
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2468
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2469
|
-
_files: Dict[
|
|
2470
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2471
|
-
] = {}
|
|
2472
|
-
_body_params: Optional[bytes] = None
|
|
2473
|
-
|
|
2474
|
-
# process the path parameters
|
|
2475
|
-
if leaderboard_id is not None:
|
|
2476
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
2477
|
-
# process the query parameters
|
|
2478
|
-
# process the header parameters
|
|
2479
|
-
# process the form parameters
|
|
2480
|
-
# process the body parameter
|
|
2481
|
-
if create_benchmark_participant_model is not None:
|
|
2482
|
-
_body_params = create_benchmark_participant_model
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
# set the HTTP header `Accept`
|
|
2486
|
-
if 'Accept' not in _header_params:
|
|
2487
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2488
|
-
[
|
|
2489
|
-
'text/plain',
|
|
2490
|
-
'application/json',
|
|
2491
|
-
'text/json'
|
|
2492
|
-
]
|
|
2493
|
-
)
|
|
2494
|
-
|
|
2495
|
-
# set the HTTP header `Content-Type`
|
|
2496
|
-
if _content_type:
|
|
2497
|
-
_header_params['Content-Type'] = _content_type
|
|
2498
|
-
else:
|
|
2499
|
-
_default_content_type = (
|
|
2500
|
-
self.api_client.select_header_content_type(
|
|
2501
|
-
[
|
|
2502
|
-
'application/json',
|
|
2503
|
-
'text/json',
|
|
2504
|
-
'application/*+json'
|
|
2505
|
-
]
|
|
2506
|
-
)
|
|
2507
|
-
)
|
|
2508
|
-
if _default_content_type is not None:
|
|
2509
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2510
|
-
|
|
2511
|
-
# authentication setting
|
|
2512
|
-
_auth_settings: List[str] = [
|
|
2513
|
-
'bearer',
|
|
2514
|
-
'oauth2'
|
|
2515
|
-
]
|
|
2516
|
-
|
|
2517
|
-
return self.api_client.param_serialize(
|
|
2518
|
-
method='POST',
|
|
2519
|
-
resource_path='/leaderboard/{leaderboardId}/participants',
|
|
2520
|
-
path_params=_path_params,
|
|
2521
|
-
query_params=_query_params,
|
|
2522
|
-
header_params=_header_params,
|
|
2523
|
-
body=_body_params,
|
|
2524
|
-
post_params=_form_params,
|
|
2525
|
-
files=_files,
|
|
2526
|
-
auth_settings=_auth_settings,
|
|
2527
|
-
collection_formats=_collection_formats,
|
|
2528
|
-
_host=_host,
|
|
2529
|
-
_request_auth=_request_auth
|
|
2530
|
-
)
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
@validate_call
|
|
2536
|
-
def leaderboard_leaderboard_id_prompts_get(
|
|
2537
|
-
self,
|
|
2538
|
-
leaderboard_id: StrictStr,
|
|
2539
|
-
request: Optional[QueryModel] = None,
|
|
2540
|
-
_request_timeout: Union[
|
|
2541
|
-
None,
|
|
2542
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2543
|
-
Tuple[
|
|
2544
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2545
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2546
|
-
]
|
|
2547
|
-
] = None,
|
|
2548
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2549
|
-
_content_type: Optional[StrictStr] = None,
|
|
2550
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2551
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2552
|
-
) -> PromptByBenchmarkResultPagedResult:
|
|
2553
|
-
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
:param leaderboard_id: (required)
|
|
2557
|
-
:type leaderboard_id: str
|
|
2558
|
-
:param request:
|
|
2559
|
-
:type request: QueryModel
|
|
2560
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2561
|
-
number provided, it will be total request
|
|
2562
|
-
timeout. It can also be a pair (tuple) of
|
|
2563
|
-
(connection, read) timeouts.
|
|
2564
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2565
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2566
|
-
request; this effectively ignores the
|
|
2567
|
-
authentication in the spec for a single request.
|
|
2568
|
-
:type _request_auth: dict, optional
|
|
2569
|
-
:param _content_type: force content-type for the request.
|
|
2570
|
-
:type _content_type: str, Optional
|
|
2571
|
-
:param _headers: set to override the headers for a single
|
|
2572
|
-
request; this effectively ignores the headers
|
|
2573
|
-
in the spec for a single request.
|
|
2574
|
-
:type _headers: dict, optional
|
|
2575
|
-
:param _host_index: set to override the host_index for a single
|
|
2576
|
-
request; this effectively ignores the host_index
|
|
2577
|
-
in the spec for a single request.
|
|
2578
|
-
:type _host_index: int, optional
|
|
2579
|
-
:return: Returns the result object.
|
|
2580
|
-
""" # noqa: E501
|
|
2581
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2582
|
-
|
|
2583
|
-
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2584
|
-
leaderboard_id=leaderboard_id,
|
|
2585
|
-
request=request,
|
|
2586
|
-
_request_auth=_request_auth,
|
|
2587
|
-
_content_type=_content_type,
|
|
2588
|
-
_headers=_headers,
|
|
2589
|
-
_host_index=_host_index
|
|
2590
|
-
)
|
|
2591
|
-
|
|
2592
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2593
|
-
'200': "PromptByBenchmarkResultPagedResult",
|
|
2594
|
-
}
|
|
2595
|
-
response_data = self.api_client.call_api(
|
|
2596
|
-
*_param,
|
|
2597
|
-
_request_timeout=_request_timeout
|
|
2598
|
-
)
|
|
2599
|
-
response_data.read()
|
|
2600
|
-
return self.api_client.response_deserialize(
|
|
2601
|
-
response_data=response_data,
|
|
2602
|
-
response_types_map=_response_types_map,
|
|
2603
|
-
).data
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
@validate_call
|
|
2607
|
-
def leaderboard_leaderboard_id_prompts_get_with_http_info(
|
|
2608
|
-
self,
|
|
2609
|
-
leaderboard_id: StrictStr,
|
|
2610
|
-
request: Optional[QueryModel] = None,
|
|
2611
|
-
_request_timeout: Union[
|
|
2612
|
-
None,
|
|
2613
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2614
|
-
Tuple[
|
|
2615
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2616
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2617
|
-
]
|
|
2618
|
-
] = None,
|
|
2619
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2620
|
-
_content_type: Optional[StrictStr] = None,
|
|
2621
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2622
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2623
|
-
) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
|
|
2624
|
-
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
:param leaderboard_id: (required)
|
|
2628
|
-
:type leaderboard_id: str
|
|
2629
|
-
:param request:
|
|
2630
|
-
:type request: QueryModel
|
|
2631
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2632
|
-
number provided, it will be total request
|
|
2633
|
-
timeout. It can also be a pair (tuple) of
|
|
2634
|
-
(connection, read) timeouts.
|
|
2635
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2636
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2637
|
-
request; this effectively ignores the
|
|
2638
|
-
authentication in the spec for a single request.
|
|
2639
|
-
:type _request_auth: dict, optional
|
|
2640
|
-
:param _content_type: force content-type for the request.
|
|
2641
|
-
:type _content_type: str, Optional
|
|
2642
|
-
:param _headers: set to override the headers for a single
|
|
2643
|
-
request; this effectively ignores the headers
|
|
2644
|
-
in the spec for a single request.
|
|
2645
|
-
:type _headers: dict, optional
|
|
2646
|
-
:param _host_index: set to override the host_index for a single
|
|
2647
|
-
request; this effectively ignores the host_index
|
|
2648
|
-
in the spec for a single request.
|
|
2649
|
-
:type _host_index: int, optional
|
|
2650
|
-
:return: Returns the result object.
|
|
2651
|
-
""" # noqa: E501
|
|
2652
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2653
|
-
|
|
2654
|
-
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2655
|
-
leaderboard_id=leaderboard_id,
|
|
2656
|
-
request=request,
|
|
2657
|
-
_request_auth=_request_auth,
|
|
2658
|
-
_content_type=_content_type,
|
|
2659
|
-
_headers=_headers,
|
|
2660
|
-
_host_index=_host_index
|
|
2661
|
-
)
|
|
2662
|
-
|
|
2663
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2664
|
-
'200': "PromptByBenchmarkResultPagedResult",
|
|
2665
|
-
}
|
|
2666
|
-
response_data = self.api_client.call_api(
|
|
2667
|
-
*_param,
|
|
2668
|
-
_request_timeout=_request_timeout
|
|
2669
|
-
)
|
|
2670
|
-
response_data.read()
|
|
2671
|
-
return self.api_client.response_deserialize(
|
|
2672
|
-
response_data=response_data,
|
|
2673
|
-
response_types_map=_response_types_map,
|
|
2674
|
-
)
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
@validate_call
|
|
2678
|
-
def leaderboard_leaderboard_id_prompts_get_without_preload_content(
|
|
2679
|
-
self,
|
|
2680
|
-
leaderboard_id: StrictStr,
|
|
2681
|
-
request: Optional[QueryModel] = None,
|
|
2682
|
-
_request_timeout: Union[
|
|
2683
|
-
None,
|
|
2684
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2685
|
-
Tuple[
|
|
2686
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2687
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2688
|
-
]
|
|
2689
|
-
] = None,
|
|
2690
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2691
|
-
_content_type: Optional[StrictStr] = None,
|
|
2692
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2693
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2694
|
-
) -> RESTResponseType:
|
|
2695
|
-
"""(Deprecated) returns the paged prompts of a leaderboard by its ID.
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
:param leaderboard_id: (required)
|
|
2699
|
-
:type leaderboard_id: str
|
|
2700
|
-
:param request:
|
|
2701
|
-
:type request: QueryModel
|
|
2702
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2703
|
-
number provided, it will be total request
|
|
2704
|
-
timeout. It can also be a pair (tuple) of
|
|
2705
|
-
(connection, read) timeouts.
|
|
2706
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2707
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2708
|
-
request; this effectively ignores the
|
|
2709
|
-
authentication in the spec for a single request.
|
|
2710
|
-
:type _request_auth: dict, optional
|
|
2711
|
-
:param _content_type: force content-type for the request.
|
|
2712
|
-
:type _content_type: str, Optional
|
|
2713
|
-
:param _headers: set to override the headers for a single
|
|
2714
|
-
request; this effectively ignores the headers
|
|
2715
|
-
in the spec for a single request.
|
|
2716
|
-
:type _headers: dict, optional
|
|
2717
|
-
:param _host_index: set to override the host_index for a single
|
|
2718
|
-
request; this effectively ignores the host_index
|
|
2719
|
-
in the spec for a single request.
|
|
2720
|
-
:type _host_index: int, optional
|
|
2721
|
-
:return: Returns the result object.
|
|
2722
|
-
""" # noqa: E501
|
|
2723
|
-
warnings.warn("GET /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2724
|
-
|
|
2725
|
-
_param = self._leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2726
|
-
leaderboard_id=leaderboard_id,
|
|
2727
|
-
request=request,
|
|
2728
|
-
_request_auth=_request_auth,
|
|
2729
|
-
_content_type=_content_type,
|
|
2730
|
-
_headers=_headers,
|
|
2731
|
-
_host_index=_host_index
|
|
2732
|
-
)
|
|
2733
|
-
|
|
2734
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2735
|
-
'200': "PromptByBenchmarkResultPagedResult",
|
|
2736
|
-
}
|
|
2737
|
-
response_data = self.api_client.call_api(
|
|
2738
|
-
*_param,
|
|
2739
|
-
_request_timeout=_request_timeout
|
|
2740
|
-
)
|
|
2741
|
-
return response_data.response
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
def _leaderboard_leaderboard_id_prompts_get_serialize(
|
|
2745
|
-
self,
|
|
2746
|
-
leaderboard_id,
|
|
2747
|
-
request,
|
|
2748
|
-
_request_auth,
|
|
2749
|
-
_content_type,
|
|
2750
|
-
_headers,
|
|
2751
|
-
_host_index,
|
|
2752
|
-
) -> RequestSerialized:
|
|
2753
|
-
|
|
2754
|
-
_host = None
|
|
2755
|
-
|
|
2756
|
-
_collection_formats: Dict[str, str] = {
|
|
2757
|
-
}
|
|
2758
|
-
|
|
2759
|
-
_path_params: Dict[str, str] = {}
|
|
2760
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2761
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2762
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2763
|
-
_files: Dict[
|
|
2764
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2765
|
-
] = {}
|
|
2766
|
-
_body_params: Optional[bytes] = None
|
|
2767
|
-
|
|
2768
|
-
# process the path parameters
|
|
2769
|
-
if leaderboard_id is not None:
|
|
2770
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
2771
|
-
# process the query parameters
|
|
2772
|
-
if request is not None:
|
|
2773
|
-
|
|
2774
|
-
_query_params.append(('request', request))
|
|
2775
|
-
|
|
2776
|
-
# process the header parameters
|
|
2777
|
-
# process the form parameters
|
|
2778
|
-
# process the body parameter
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
# set the HTTP header `Accept`
|
|
2782
|
-
if 'Accept' not in _header_params:
|
|
2783
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2784
|
-
[
|
|
2785
|
-
'text/plain',
|
|
2786
|
-
'application/json',
|
|
2787
|
-
'text/json'
|
|
2788
|
-
]
|
|
2789
|
-
)
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
# authentication setting
|
|
2793
|
-
_auth_settings: List[str] = [
|
|
2794
|
-
'bearer',
|
|
2795
|
-
'oauth2'
|
|
2796
|
-
]
|
|
2797
|
-
|
|
2798
|
-
return self.api_client.param_serialize(
|
|
2799
|
-
method='GET',
|
|
2800
|
-
resource_path='/leaderboard/{leaderboardId}/prompts',
|
|
2801
|
-
path_params=_path_params,
|
|
2802
|
-
query_params=_query_params,
|
|
2803
|
-
header_params=_header_params,
|
|
2804
|
-
body=_body_params,
|
|
2805
|
-
post_params=_form_params,
|
|
2806
|
-
files=_files,
|
|
2807
|
-
auth_settings=_auth_settings,
|
|
2808
|
-
collection_formats=_collection_formats,
|
|
2809
|
-
_host=_host,
|
|
2810
|
-
_request_auth=_request_auth
|
|
2811
|
-
)
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
@validate_call
|
|
2817
|
-
def leaderboard_leaderboard_id_prompts_post(
|
|
2818
|
-
self,
|
|
2819
|
-
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
2820
|
-
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
2821
|
-
_request_timeout: Union[
|
|
2822
|
-
None,
|
|
2823
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2824
|
-
Tuple[
|
|
2825
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2826
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2827
|
-
]
|
|
2828
|
-
] = None,
|
|
2829
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2830
|
-
_content_type: Optional[StrictStr] = None,
|
|
2831
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2832
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2833
|
-
) -> None:
|
|
2834
|
-
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
:param leaderboard_id: The leaderboard id. (required)
|
|
2838
|
-
:type leaderboard_id: str
|
|
2839
|
-
:param body: The prompt
|
|
2840
|
-
:type body: str
|
|
2841
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2842
|
-
number provided, it will be total request
|
|
2843
|
-
timeout. It can also be a pair (tuple) of
|
|
2844
|
-
(connection, read) timeouts.
|
|
2845
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2846
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2847
|
-
request; this effectively ignores the
|
|
2848
|
-
authentication in the spec for a single request.
|
|
2849
|
-
:type _request_auth: dict, optional
|
|
2850
|
-
:param _content_type: force content-type for the request.
|
|
2851
|
-
:type _content_type: str, Optional
|
|
2852
|
-
:param _headers: set to override the headers for a single
|
|
2853
|
-
request; this effectively ignores the headers
|
|
2854
|
-
in the spec for a single request.
|
|
2855
|
-
:type _headers: dict, optional
|
|
2856
|
-
:param _host_index: set to override the host_index for a single
|
|
2857
|
-
request; this effectively ignores the host_index
|
|
2858
|
-
in the spec for a single request.
|
|
2859
|
-
:type _host_index: int, optional
|
|
2860
|
-
:return: Returns the result object.
|
|
2861
|
-
""" # noqa: E501
|
|
2862
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2863
|
-
|
|
2864
|
-
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
2865
|
-
leaderboard_id=leaderboard_id,
|
|
2866
|
-
body=body,
|
|
2867
|
-
_request_auth=_request_auth,
|
|
2868
|
-
_content_type=_content_type,
|
|
2869
|
-
_headers=_headers,
|
|
2870
|
-
_host_index=_host_index
|
|
2871
|
-
)
|
|
2872
|
-
|
|
2873
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2874
|
-
'204': None,
|
|
2875
|
-
}
|
|
2876
|
-
response_data = self.api_client.call_api(
|
|
2877
|
-
*_param,
|
|
2878
|
-
_request_timeout=_request_timeout
|
|
2879
|
-
)
|
|
2880
|
-
response_data.read()
|
|
2881
|
-
return self.api_client.response_deserialize(
|
|
2882
|
-
response_data=response_data,
|
|
2883
|
-
response_types_map=_response_types_map,
|
|
2884
|
-
).data
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
@validate_call
|
|
2888
|
-
def leaderboard_leaderboard_id_prompts_post_with_http_info(
|
|
2889
|
-
self,
|
|
2890
|
-
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
2891
|
-
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
2892
|
-
_request_timeout: Union[
|
|
2893
|
-
None,
|
|
2894
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2895
|
-
Tuple[
|
|
2896
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2897
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2898
|
-
]
|
|
2899
|
-
] = None,
|
|
2900
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2901
|
-
_content_type: Optional[StrictStr] = None,
|
|
2902
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2903
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2904
|
-
) -> ApiResponse[None]:
|
|
2905
|
-
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
:param leaderboard_id: The leaderboard id. (required)
|
|
2909
|
-
:type leaderboard_id: str
|
|
2910
|
-
:param body: The prompt
|
|
2911
|
-
:type body: str
|
|
2912
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2913
|
-
number provided, it will be total request
|
|
2914
|
-
timeout. It can also be a pair (tuple) of
|
|
2915
|
-
(connection, read) timeouts.
|
|
2916
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2917
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2918
|
-
request; this effectively ignores the
|
|
2919
|
-
authentication in the spec for a single request.
|
|
2920
|
-
:type _request_auth: dict, optional
|
|
2921
|
-
:param _content_type: force content-type for the request.
|
|
2922
|
-
:type _content_type: str, Optional
|
|
2923
|
-
:param _headers: set to override the headers for a single
|
|
2924
|
-
request; this effectively ignores the headers
|
|
2925
|
-
in the spec for a single request.
|
|
2926
|
-
:type _headers: dict, optional
|
|
2927
|
-
:param _host_index: set to override the host_index for a single
|
|
2928
|
-
request; this effectively ignores the host_index
|
|
2929
|
-
in the spec for a single request.
|
|
2930
|
-
:type _host_index: int, optional
|
|
2931
|
-
:return: Returns the result object.
|
|
2932
|
-
""" # noqa: E501
|
|
2933
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
2934
|
-
|
|
2935
|
-
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
2936
|
-
leaderboard_id=leaderboard_id,
|
|
2937
|
-
body=body,
|
|
2938
|
-
_request_auth=_request_auth,
|
|
2939
|
-
_content_type=_content_type,
|
|
2940
|
-
_headers=_headers,
|
|
2941
|
-
_host_index=_host_index
|
|
2942
|
-
)
|
|
2943
|
-
|
|
2944
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2945
|
-
'204': None,
|
|
2946
|
-
}
|
|
2947
|
-
response_data = self.api_client.call_api(
|
|
2948
|
-
*_param,
|
|
2949
|
-
_request_timeout=_request_timeout
|
|
2950
|
-
)
|
|
2951
|
-
response_data.read()
|
|
2952
|
-
return self.api_client.response_deserialize(
|
|
2953
|
-
response_data=response_data,
|
|
2954
|
-
response_types_map=_response_types_map,
|
|
2955
|
-
)
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
@validate_call
|
|
2959
|
-
def leaderboard_leaderboard_id_prompts_post_without_preload_content(
|
|
2960
|
-
self,
|
|
2961
|
-
leaderboard_id: Annotated[StrictStr, Field(description="The leaderboard id.")],
|
|
2962
|
-
body: Annotated[Optional[StrictStr], Field(description="The prompt")] = None,
|
|
2963
|
-
_request_timeout: Union[
|
|
2964
|
-
None,
|
|
2965
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2966
|
-
Tuple[
|
|
2967
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2968
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2969
|
-
]
|
|
2970
|
-
] = None,
|
|
2971
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2972
|
-
_content_type: Optional[StrictStr] = None,
|
|
2973
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2974
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2975
|
-
) -> RESTResponseType:
|
|
2976
|
-
"""(Deprecated) adds a new prompt to a leaderboard.
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
:param leaderboard_id: The leaderboard id. (required)
|
|
2980
|
-
:type leaderboard_id: str
|
|
2981
|
-
:param body: The prompt
|
|
2982
|
-
:type body: str
|
|
2983
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2984
|
-
number provided, it will be total request
|
|
2985
|
-
timeout. It can also be a pair (tuple) of
|
|
2986
|
-
(connection, read) timeouts.
|
|
2987
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2988
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2989
|
-
request; this effectively ignores the
|
|
2990
|
-
authentication in the spec for a single request.
|
|
2991
|
-
:type _request_auth: dict, optional
|
|
2992
|
-
:param _content_type: force content-type for the request.
|
|
2993
|
-
:type _content_type: str, Optional
|
|
2994
|
-
:param _headers: set to override the headers for a single
|
|
2995
|
-
request; this effectively ignores the headers
|
|
2996
|
-
in the spec for a single request.
|
|
2997
|
-
:type _headers: dict, optional
|
|
2998
|
-
:param _host_index: set to override the host_index for a single
|
|
2999
|
-
request; this effectively ignores the host_index
|
|
3000
|
-
in the spec for a single request.
|
|
3001
|
-
:type _host_index: int, optional
|
|
3002
|
-
:return: Returns the result object.
|
|
3003
|
-
""" # noqa: E501
|
|
3004
|
-
warnings.warn("POST /leaderboard/{leaderboardId}/prompts is deprecated.", DeprecationWarning)
|
|
3005
|
-
|
|
3006
|
-
_param = self._leaderboard_leaderboard_id_prompts_post_serialize(
|
|
3007
|
-
leaderboard_id=leaderboard_id,
|
|
3008
|
-
body=body,
|
|
3009
|
-
_request_auth=_request_auth,
|
|
3010
|
-
_content_type=_content_type,
|
|
3011
|
-
_headers=_headers,
|
|
3012
|
-
_host_index=_host_index
|
|
3013
|
-
)
|
|
3014
|
-
|
|
3015
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3016
|
-
'204': None,
|
|
3017
|
-
}
|
|
3018
|
-
response_data = self.api_client.call_api(
|
|
3019
|
-
*_param,
|
|
3020
|
-
_request_timeout=_request_timeout
|
|
3021
|
-
)
|
|
3022
|
-
return response_data.response
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
def _leaderboard_leaderboard_id_prompts_post_serialize(
|
|
3026
|
-
self,
|
|
3027
|
-
leaderboard_id,
|
|
3028
|
-
body,
|
|
3029
|
-
_request_auth,
|
|
3030
|
-
_content_type,
|
|
3031
|
-
_headers,
|
|
3032
|
-
_host_index,
|
|
3033
|
-
) -> RequestSerialized:
|
|
3034
|
-
|
|
3035
|
-
_host = None
|
|
3036
|
-
|
|
3037
|
-
_collection_formats: Dict[str, str] = {
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
_path_params: Dict[str, str] = {}
|
|
3041
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3042
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3043
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3044
|
-
_files: Dict[
|
|
3045
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3046
|
-
] = {}
|
|
3047
|
-
_body_params: Optional[bytes] = None
|
|
3048
|
-
|
|
3049
|
-
# process the path parameters
|
|
3050
|
-
if leaderboard_id is not None:
|
|
3051
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
3052
|
-
# process the query parameters
|
|
3053
|
-
# process the header parameters
|
|
3054
|
-
# process the form parameters
|
|
3055
|
-
# process the body parameter
|
|
3056
|
-
if body is not None:
|
|
3057
|
-
_body_params = body
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
# set the HTTP header `Content-Type`
|
|
3062
|
-
if _content_type:
|
|
3063
|
-
_header_params['Content-Type'] = _content_type
|
|
3064
|
-
else:
|
|
3065
|
-
_default_content_type = (
|
|
3066
|
-
self.api_client.select_header_content_type(
|
|
3067
|
-
[
|
|
3068
|
-
'application/json',
|
|
3069
|
-
'text/json',
|
|
3070
|
-
'application/*+json',
|
|
3071
|
-
'text/plain'
|
|
3072
|
-
]
|
|
3073
|
-
)
|
|
3074
|
-
)
|
|
3075
|
-
if _default_content_type is not None:
|
|
3076
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3077
|
-
|
|
3078
|
-
# authentication setting
|
|
3079
|
-
_auth_settings: List[str] = [
|
|
3080
|
-
'bearer',
|
|
3081
|
-
'oauth2'
|
|
3082
|
-
]
|
|
3083
|
-
|
|
3084
|
-
return self.api_client.param_serialize(
|
|
3085
|
-
method='POST',
|
|
3086
|
-
resource_path='/leaderboard/{leaderboardId}/prompts',
|
|
3087
|
-
path_params=_path_params,
|
|
3088
|
-
query_params=_query_params,
|
|
3089
|
-
header_params=_header_params,
|
|
3090
|
-
body=_body_params,
|
|
3091
|
-
post_params=_form_params,
|
|
3092
|
-
files=_files,
|
|
3093
|
-
auth_settings=_auth_settings,
|
|
3094
|
-
collection_formats=_collection_formats,
|
|
3095
|
-
_host=_host,
|
|
3096
|
-
_request_auth=_request_auth
|
|
3097
|
-
)
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
@validate_call
|
|
3103
|
-
def leaderboard_leaderboard_id_response_config_put(
|
|
3104
|
-
self,
|
|
3105
|
-
leaderboard_id: StrictStr,
|
|
3106
|
-
update_leaderboard_response_config_model: Optional[UpdateLeaderboardResponseConfigModel] = None,
|
|
3107
|
-
_request_timeout: Union[
|
|
3108
|
-
None,
|
|
3109
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3110
|
-
Tuple[
|
|
3111
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3112
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3113
|
-
]
|
|
3114
|
-
] = None,
|
|
3115
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3116
|
-
_content_type: Optional[StrictStr] = None,
|
|
3117
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3118
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3119
|
-
) -> None:
|
|
3120
|
-
"""Updates the name of a leaderboard.
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
:param leaderboard_id: (required)
|
|
3124
|
-
:type leaderboard_id: str
|
|
3125
|
-
:param update_leaderboard_response_config_model:
|
|
3126
|
-
:type update_leaderboard_response_config_model: UpdateLeaderboardResponseConfigModel
|
|
3127
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3128
|
-
number provided, it will be total request
|
|
3129
|
-
timeout. It can also be a pair (tuple) of
|
|
3130
|
-
(connection, read) timeouts.
|
|
3131
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3132
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3133
|
-
request; this effectively ignores the
|
|
3134
|
-
authentication in the spec for a single request.
|
|
3135
|
-
:type _request_auth: dict, optional
|
|
3136
|
-
:param _content_type: force content-type for the request.
|
|
3137
|
-
:type _content_type: str, Optional
|
|
3138
|
-
:param _headers: set to override the headers for a single
|
|
3139
|
-
request; this effectively ignores the headers
|
|
3140
|
-
in the spec for a single request.
|
|
3141
|
-
:type _headers: dict, optional
|
|
3142
|
-
:param _host_index: set to override the host_index for a single
|
|
3143
|
-
request; this effectively ignores the host_index
|
|
3144
|
-
in the spec for a single request.
|
|
3145
|
-
:type _host_index: int, optional
|
|
3146
|
-
:return: Returns the result object.
|
|
3147
|
-
""" # noqa: E501
|
|
3148
|
-
|
|
3149
|
-
_param = self._leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3150
|
-
leaderboard_id=leaderboard_id,
|
|
3151
|
-
update_leaderboard_response_config_model=update_leaderboard_response_config_model,
|
|
3152
|
-
_request_auth=_request_auth,
|
|
3153
|
-
_content_type=_content_type,
|
|
3154
|
-
_headers=_headers,
|
|
3155
|
-
_host_index=_host_index
|
|
3156
|
-
)
|
|
3157
|
-
|
|
3158
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3159
|
-
'204': None,
|
|
3160
|
-
}
|
|
3161
|
-
response_data = self.api_client.call_api(
|
|
3162
|
-
*_param,
|
|
3163
|
-
_request_timeout=_request_timeout
|
|
3164
|
-
)
|
|
3165
|
-
response_data.read()
|
|
3166
|
-
return self.api_client.response_deserialize(
|
|
3167
|
-
response_data=response_data,
|
|
3168
|
-
response_types_map=_response_types_map,
|
|
3169
|
-
).data
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
@validate_call
|
|
3173
|
-
def leaderboard_leaderboard_id_response_config_put_with_http_info(
|
|
3174
|
-
self,
|
|
3175
|
-
leaderboard_id: StrictStr,
|
|
3176
|
-
update_leaderboard_response_config_model: Optional[UpdateLeaderboardResponseConfigModel] = None,
|
|
3177
|
-
_request_timeout: Union[
|
|
3178
|
-
None,
|
|
3179
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3180
|
-
Tuple[
|
|
3181
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3182
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3183
|
-
]
|
|
3184
|
-
] = None,
|
|
3185
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3186
|
-
_content_type: Optional[StrictStr] = None,
|
|
3187
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3188
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3189
|
-
) -> ApiResponse[None]:
|
|
3190
|
-
"""Updates the name of a leaderboard.
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
:param leaderboard_id: (required)
|
|
3194
|
-
:type leaderboard_id: str
|
|
3195
|
-
:param update_leaderboard_response_config_model:
|
|
3196
|
-
:type update_leaderboard_response_config_model: UpdateLeaderboardResponseConfigModel
|
|
3197
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3198
|
-
number provided, it will be total request
|
|
3199
|
-
timeout. It can also be a pair (tuple) of
|
|
3200
|
-
(connection, read) timeouts.
|
|
3201
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3202
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3203
|
-
request; this effectively ignores the
|
|
3204
|
-
authentication in the spec for a single request.
|
|
3205
|
-
:type _request_auth: dict, optional
|
|
3206
|
-
:param _content_type: force content-type for the request.
|
|
3207
|
-
:type _content_type: str, Optional
|
|
3208
|
-
:param _headers: set to override the headers for a single
|
|
3209
|
-
request; this effectively ignores the headers
|
|
3210
|
-
in the spec for a single request.
|
|
3211
|
-
:type _headers: dict, optional
|
|
3212
|
-
:param _host_index: set to override the host_index for a single
|
|
3213
|
-
request; this effectively ignores the host_index
|
|
3214
|
-
in the spec for a single request.
|
|
3215
|
-
:type _host_index: int, optional
|
|
3216
|
-
:return: Returns the result object.
|
|
3217
|
-
""" # noqa: E501
|
|
3218
|
-
|
|
3219
|
-
_param = self._leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3220
|
-
leaderboard_id=leaderboard_id,
|
|
3221
|
-
update_leaderboard_response_config_model=update_leaderboard_response_config_model,
|
|
3222
|
-
_request_auth=_request_auth,
|
|
3223
|
-
_content_type=_content_type,
|
|
3224
|
-
_headers=_headers,
|
|
3225
|
-
_host_index=_host_index
|
|
3226
|
-
)
|
|
3227
|
-
|
|
3228
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3229
|
-
'204': None,
|
|
3230
|
-
}
|
|
3231
|
-
response_data = self.api_client.call_api(
|
|
3232
|
-
*_param,
|
|
3233
|
-
_request_timeout=_request_timeout
|
|
3234
|
-
)
|
|
3235
|
-
response_data.read()
|
|
3236
|
-
return self.api_client.response_deserialize(
|
|
3237
|
-
response_data=response_data,
|
|
3238
|
-
response_types_map=_response_types_map,
|
|
3239
|
-
)
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
@validate_call
|
|
3243
|
-
def leaderboard_leaderboard_id_response_config_put_without_preload_content(
|
|
3244
|
-
self,
|
|
3245
|
-
leaderboard_id: StrictStr,
|
|
3246
|
-
update_leaderboard_response_config_model: Optional[UpdateLeaderboardResponseConfigModel] = None,
|
|
3247
|
-
_request_timeout: Union[
|
|
3248
|
-
None,
|
|
3249
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3250
|
-
Tuple[
|
|
3251
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3252
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3253
|
-
]
|
|
3254
|
-
] = None,
|
|
3255
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3256
|
-
_content_type: Optional[StrictStr] = None,
|
|
3257
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3258
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3259
|
-
) -> RESTResponseType:
|
|
3260
|
-
"""Updates the name of a leaderboard.
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
:param leaderboard_id: (required)
|
|
3264
|
-
:type leaderboard_id: str
|
|
3265
|
-
:param update_leaderboard_response_config_model:
|
|
3266
|
-
:type update_leaderboard_response_config_model: UpdateLeaderboardResponseConfigModel
|
|
3267
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3268
|
-
number provided, it will be total request
|
|
3269
|
-
timeout. It can also be a pair (tuple) of
|
|
3270
|
-
(connection, read) timeouts.
|
|
3271
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3272
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3273
|
-
request; this effectively ignores the
|
|
3274
|
-
authentication in the spec for a single request.
|
|
3275
|
-
:type _request_auth: dict, optional
|
|
3276
|
-
:param _content_type: force content-type for the request.
|
|
3277
|
-
:type _content_type: str, Optional
|
|
3278
|
-
:param _headers: set to override the headers for a single
|
|
3279
|
-
request; this effectively ignores the headers
|
|
3280
|
-
in the spec for a single request.
|
|
3281
|
-
:type _headers: dict, optional
|
|
3282
|
-
:param _host_index: set to override the host_index for a single
|
|
3283
|
-
request; this effectively ignores the host_index
|
|
3284
|
-
in the spec for a single request.
|
|
3285
|
-
:type _host_index: int, optional
|
|
3286
|
-
:return: Returns the result object.
|
|
3287
|
-
""" # noqa: E501
|
|
3288
|
-
|
|
3289
|
-
_param = self._leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3290
|
-
leaderboard_id=leaderboard_id,
|
|
3291
|
-
update_leaderboard_response_config_model=update_leaderboard_response_config_model,
|
|
3292
|
-
_request_auth=_request_auth,
|
|
3293
|
-
_content_type=_content_type,
|
|
3294
|
-
_headers=_headers,
|
|
3295
|
-
_host_index=_host_index
|
|
3296
|
-
)
|
|
3297
|
-
|
|
3298
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3299
|
-
'204': None,
|
|
3300
|
-
}
|
|
3301
|
-
response_data = self.api_client.call_api(
|
|
3302
|
-
*_param,
|
|
3303
|
-
_request_timeout=_request_timeout
|
|
3304
|
-
)
|
|
3305
|
-
return response_data.response
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
def _leaderboard_leaderboard_id_response_config_put_serialize(
|
|
3309
|
-
self,
|
|
3310
|
-
leaderboard_id,
|
|
3311
|
-
update_leaderboard_response_config_model,
|
|
3312
|
-
_request_auth,
|
|
3313
|
-
_content_type,
|
|
3314
|
-
_headers,
|
|
3315
|
-
_host_index,
|
|
3316
|
-
) -> RequestSerialized:
|
|
3317
|
-
|
|
3318
|
-
_host = None
|
|
3319
|
-
|
|
3320
|
-
_collection_formats: Dict[str, str] = {
|
|
3321
|
-
}
|
|
3322
|
-
|
|
3323
|
-
_path_params: Dict[str, str] = {}
|
|
3324
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3325
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3326
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3327
|
-
_files: Dict[
|
|
3328
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3329
|
-
] = {}
|
|
3330
|
-
_body_params: Optional[bytes] = None
|
|
3331
|
-
|
|
3332
|
-
# process the path parameters
|
|
3333
|
-
if leaderboard_id is not None:
|
|
3334
|
-
_path_params['leaderboardId'] = leaderboard_id
|
|
3335
|
-
# process the query parameters
|
|
3336
|
-
# process the header parameters
|
|
3337
|
-
# process the form parameters
|
|
3338
|
-
# process the body parameter
|
|
3339
|
-
if update_leaderboard_response_config_model is not None:
|
|
3340
|
-
_body_params = update_leaderboard_response_config_model
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
# set the HTTP header `Content-Type`
|
|
3345
|
-
if _content_type:
|
|
3346
|
-
_header_params['Content-Type'] = _content_type
|
|
3347
|
-
else:
|
|
3348
|
-
_default_content_type = (
|
|
3349
|
-
self.api_client.select_header_content_type(
|
|
3350
|
-
[
|
|
3351
|
-
'application/json',
|
|
3352
|
-
'text/json',
|
|
3353
|
-
'application/*+json'
|
|
3354
|
-
]
|
|
3355
|
-
)
|
|
3356
|
-
)
|
|
3357
|
-
if _default_content_type is not None:
|
|
3358
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3359
|
-
|
|
3360
|
-
# authentication setting
|
|
3361
|
-
_auth_settings: List[str] = [
|
|
3362
|
-
'bearer',
|
|
3363
|
-
'oauth2'
|
|
3364
|
-
]
|
|
3365
|
-
|
|
3366
|
-
return self.api_client.param_serialize(
|
|
3367
|
-
method='PUT',
|
|
3368
|
-
resource_path='/leaderboard/{leaderboardId}/response-config',
|
|
1402
|
+
method='PATCH',
|
|
1403
|
+
resource_path='/leaderboard/{leaderboardId}',
|
|
3369
1404
|
path_params=_path_params,
|
|
3370
1405
|
query_params=_query_params,
|
|
3371
1406
|
header_params=_header_params,
|
|
@@ -3398,7 +1433,7 @@ class LeaderboardApi:
|
|
|
3398
1433
|
_content_type: Optional[StrictStr] = None,
|
|
3399
1434
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3400
1435
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3401
|
-
) ->
|
|
1436
|
+
) -> PagedResultOfRunsByLeaderboardResult:
|
|
3402
1437
|
"""Gets the runs related to a leaderboard
|
|
3403
1438
|
|
|
3404
1439
|
|
|
@@ -3438,7 +1473,7 @@ class LeaderboardApi:
|
|
|
3438
1473
|
)
|
|
3439
1474
|
|
|
3440
1475
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3441
|
-
'200': "
|
|
1476
|
+
'200': "PagedResultOfRunsByLeaderboardResult",
|
|
3442
1477
|
}
|
|
3443
1478
|
response_data = self.api_client.call_api(
|
|
3444
1479
|
*_param,
|
|
@@ -3468,7 +1503,7 @@ class LeaderboardApi:
|
|
|
3468
1503
|
_content_type: Optional[StrictStr] = None,
|
|
3469
1504
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3470
1505
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3471
|
-
) -> ApiResponse[
|
|
1506
|
+
) -> ApiResponse[PagedResultOfRunsByLeaderboardResult]:
|
|
3472
1507
|
"""Gets the runs related to a leaderboard
|
|
3473
1508
|
|
|
3474
1509
|
|
|
@@ -3508,7 +1543,7 @@ class LeaderboardApi:
|
|
|
3508
1543
|
)
|
|
3509
1544
|
|
|
3510
1545
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3511
|
-
'200': "
|
|
1546
|
+
'200': "PagedResultOfRunsByLeaderboardResult",
|
|
3512
1547
|
}
|
|
3513
1548
|
response_data = self.api_client.call_api(
|
|
3514
1549
|
*_param,
|
|
@@ -3578,7 +1613,7 @@ class LeaderboardApi:
|
|
|
3578
1613
|
)
|
|
3579
1614
|
|
|
3580
1615
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3581
|
-
'200': "
|
|
1616
|
+
'200': "PagedResultOfRunsByLeaderboardResult",
|
|
3582
1617
|
}
|
|
3583
1618
|
response_data = self.api_client.call_api(
|
|
3584
1619
|
*_param,
|
|
@@ -3637,8 +1672,9 @@ class LeaderboardApi:
|
|
|
3637
1672
|
|
|
3638
1673
|
# authentication setting
|
|
3639
1674
|
_auth_settings: List[str] = [
|
|
3640
|
-
'
|
|
3641
|
-
'
|
|
1675
|
+
'OAuth2',
|
|
1676
|
+
'OpenIdConnect',
|
|
1677
|
+
'Bearer'
|
|
3642
1678
|
]
|
|
3643
1679
|
|
|
3644
1680
|
return self.api_client.param_serialize(
|
|
@@ -3662,8 +1698,10 @@ class LeaderboardApi:
|
|
|
3662
1698
|
@validate_call
|
|
3663
1699
|
def leaderboard_leaderboard_id_standings_get(
|
|
3664
1700
|
self,
|
|
3665
|
-
leaderboard_id:
|
|
3666
|
-
tags:
|
|
1701
|
+
leaderboard_id: StrictStr,
|
|
1702
|
+
tags: Optional[List[StrictStr]] = None,
|
|
1703
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
1704
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
3667
1705
|
_request_timeout: Union[
|
|
3668
1706
|
None,
|
|
3669
1707
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3677,13 +1715,17 @@ class LeaderboardApi:
|
|
|
3677
1715
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3678
1716
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3679
1717
|
) -> StandingsByLeaderboardResult:
|
|
3680
|
-
"""
|
|
1718
|
+
"""leaderboard_leaderboard_id_standings_get
|
|
3681
1719
|
|
|
3682
1720
|
|
|
3683
|
-
:param leaderboard_id:
|
|
1721
|
+
:param leaderboard_id: (required)
|
|
3684
1722
|
:type leaderboard_id: str
|
|
3685
|
-
:param tags:
|
|
1723
|
+
:param tags:
|
|
3686
1724
|
:type tags: List[str]
|
|
1725
|
+
:param use_weighted_scoring:
|
|
1726
|
+
:type use_weighted_scoring: bool
|
|
1727
|
+
:param include_confidence_intervals:
|
|
1728
|
+
:type include_confidence_intervals: bool
|
|
3687
1729
|
:param _request_timeout: timeout setting for this request. If one
|
|
3688
1730
|
number provided, it will be total request
|
|
3689
1731
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3709,6 +1751,8 @@ class LeaderboardApi:
|
|
|
3709
1751
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3710
1752
|
leaderboard_id=leaderboard_id,
|
|
3711
1753
|
tags=tags,
|
|
1754
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
1755
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
3712
1756
|
_request_auth=_request_auth,
|
|
3713
1757
|
_content_type=_content_type,
|
|
3714
1758
|
_headers=_headers,
|
|
@@ -3732,8 +1776,10 @@ class LeaderboardApi:
|
|
|
3732
1776
|
@validate_call
|
|
3733
1777
|
def leaderboard_leaderboard_id_standings_get_with_http_info(
|
|
3734
1778
|
self,
|
|
3735
|
-
leaderboard_id:
|
|
3736
|
-
tags:
|
|
1779
|
+
leaderboard_id: StrictStr,
|
|
1780
|
+
tags: Optional[List[StrictStr]] = None,
|
|
1781
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
1782
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
3737
1783
|
_request_timeout: Union[
|
|
3738
1784
|
None,
|
|
3739
1785
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3747,13 +1793,17 @@ class LeaderboardApi:
|
|
|
3747
1793
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3748
1794
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3749
1795
|
) -> ApiResponse[StandingsByLeaderboardResult]:
|
|
3750
|
-
"""
|
|
1796
|
+
"""leaderboard_leaderboard_id_standings_get
|
|
3751
1797
|
|
|
3752
1798
|
|
|
3753
|
-
:param leaderboard_id:
|
|
1799
|
+
:param leaderboard_id: (required)
|
|
3754
1800
|
:type leaderboard_id: str
|
|
3755
|
-
:param tags:
|
|
1801
|
+
:param tags:
|
|
3756
1802
|
:type tags: List[str]
|
|
1803
|
+
:param use_weighted_scoring:
|
|
1804
|
+
:type use_weighted_scoring: bool
|
|
1805
|
+
:param include_confidence_intervals:
|
|
1806
|
+
:type include_confidence_intervals: bool
|
|
3757
1807
|
:param _request_timeout: timeout setting for this request. If one
|
|
3758
1808
|
number provided, it will be total request
|
|
3759
1809
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3779,6 +1829,8 @@ class LeaderboardApi:
|
|
|
3779
1829
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3780
1830
|
leaderboard_id=leaderboard_id,
|
|
3781
1831
|
tags=tags,
|
|
1832
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
1833
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
3782
1834
|
_request_auth=_request_auth,
|
|
3783
1835
|
_content_type=_content_type,
|
|
3784
1836
|
_headers=_headers,
|
|
@@ -3802,8 +1854,10 @@ class LeaderboardApi:
|
|
|
3802
1854
|
@validate_call
|
|
3803
1855
|
def leaderboard_leaderboard_id_standings_get_without_preload_content(
|
|
3804
1856
|
self,
|
|
3805
|
-
leaderboard_id:
|
|
3806
|
-
tags:
|
|
1857
|
+
leaderboard_id: StrictStr,
|
|
1858
|
+
tags: Optional[List[StrictStr]] = None,
|
|
1859
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
1860
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
3807
1861
|
_request_timeout: Union[
|
|
3808
1862
|
None,
|
|
3809
1863
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3817,13 +1871,17 @@ class LeaderboardApi:
|
|
|
3817
1871
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3818
1872
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3819
1873
|
) -> RESTResponseType:
|
|
3820
|
-
"""
|
|
1874
|
+
"""leaderboard_leaderboard_id_standings_get
|
|
3821
1875
|
|
|
3822
1876
|
|
|
3823
|
-
:param leaderboard_id:
|
|
1877
|
+
:param leaderboard_id: (required)
|
|
3824
1878
|
:type leaderboard_id: str
|
|
3825
|
-
:param tags:
|
|
1879
|
+
:param tags:
|
|
3826
1880
|
:type tags: List[str]
|
|
1881
|
+
:param use_weighted_scoring:
|
|
1882
|
+
:type use_weighted_scoring: bool
|
|
1883
|
+
:param include_confidence_intervals:
|
|
1884
|
+
:type include_confidence_intervals: bool
|
|
3827
1885
|
:param _request_timeout: timeout setting for this request. If one
|
|
3828
1886
|
number provided, it will be total request
|
|
3829
1887
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3849,6 +1907,8 @@ class LeaderboardApi:
|
|
|
3849
1907
|
_param = self._leaderboard_leaderboard_id_standings_get_serialize(
|
|
3850
1908
|
leaderboard_id=leaderboard_id,
|
|
3851
1909
|
tags=tags,
|
|
1910
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
1911
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
3852
1912
|
_request_auth=_request_auth,
|
|
3853
1913
|
_content_type=_content_type,
|
|
3854
1914
|
_headers=_headers,
|
|
@@ -3869,6 +1929,8 @@ class LeaderboardApi:
|
|
|
3869
1929
|
self,
|
|
3870
1930
|
leaderboard_id,
|
|
3871
1931
|
tags,
|
|
1932
|
+
use_weighted_scoring,
|
|
1933
|
+
include_confidence_intervals,
|
|
3872
1934
|
_request_auth,
|
|
3873
1935
|
_content_type,
|
|
3874
1936
|
_headers,
|
|
@@ -3898,6 +1960,14 @@ class LeaderboardApi:
|
|
|
3898
1960
|
|
|
3899
1961
|
_query_params.append(('tags', tags))
|
|
3900
1962
|
|
|
1963
|
+
if use_weighted_scoring is not None:
|
|
1964
|
+
|
|
1965
|
+
_query_params.append(('useWeightedScoring', use_weighted_scoring))
|
|
1966
|
+
|
|
1967
|
+
if include_confidence_intervals is not None:
|
|
1968
|
+
|
|
1969
|
+
_query_params.append(('includeConfidenceIntervals', include_confidence_intervals))
|
|
1970
|
+
|
|
3901
1971
|
# process the header parameters
|
|
3902
1972
|
# process the form parameters
|
|
3903
1973
|
# process the body parameter
|
|
@@ -3916,8 +1986,9 @@ class LeaderboardApi:
|
|
|
3916
1986
|
|
|
3917
1987
|
# authentication setting
|
|
3918
1988
|
_auth_settings: List[str] = [
|
|
3919
|
-
'
|
|
3920
|
-
'
|
|
1989
|
+
'OAuth2',
|
|
1990
|
+
'OpenIdConnect',
|
|
1991
|
+
'Bearer'
|
|
3921
1992
|
]
|
|
3922
1993
|
|
|
3923
1994
|
return self.api_client.param_serialize(
|
|
@@ -3941,7 +2012,7 @@ class LeaderboardApi:
|
|
|
3941
2012
|
@validate_call
|
|
3942
2013
|
def leaderboard_post(
|
|
3943
2014
|
self,
|
|
3944
|
-
create_leaderboard_model:
|
|
2015
|
+
create_leaderboard_model: CreateLeaderboardModel,
|
|
3945
2016
|
_request_timeout: Union[
|
|
3946
2017
|
None,
|
|
3947
2018
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3958,7 +2029,7 @@ class LeaderboardApi:
|
|
|
3958
2029
|
"""Creates a new leaderboard with the specified name and criteria.
|
|
3959
2030
|
|
|
3960
2031
|
|
|
3961
|
-
:param create_leaderboard_model:
|
|
2032
|
+
:param create_leaderboard_model: (required)
|
|
3962
2033
|
:type create_leaderboard_model: CreateLeaderboardModel
|
|
3963
2034
|
:param _request_timeout: timeout setting for this request. If one
|
|
3964
2035
|
number provided, it will be total request
|
|
@@ -4007,7 +2078,7 @@ class LeaderboardApi:
|
|
|
4007
2078
|
@validate_call
|
|
4008
2079
|
def leaderboard_post_with_http_info(
|
|
4009
2080
|
self,
|
|
4010
|
-
create_leaderboard_model:
|
|
2081
|
+
create_leaderboard_model: CreateLeaderboardModel,
|
|
4011
2082
|
_request_timeout: Union[
|
|
4012
2083
|
None,
|
|
4013
2084
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4024,7 +2095,7 @@ class LeaderboardApi:
|
|
|
4024
2095
|
"""Creates a new leaderboard with the specified name and criteria.
|
|
4025
2096
|
|
|
4026
2097
|
|
|
4027
|
-
:param create_leaderboard_model:
|
|
2098
|
+
:param create_leaderboard_model: (required)
|
|
4028
2099
|
:type create_leaderboard_model: CreateLeaderboardModel
|
|
4029
2100
|
:param _request_timeout: timeout setting for this request. If one
|
|
4030
2101
|
number provided, it will be total request
|
|
@@ -4073,7 +2144,7 @@ class LeaderboardApi:
|
|
|
4073
2144
|
@validate_call
|
|
4074
2145
|
def leaderboard_post_without_preload_content(
|
|
4075
2146
|
self,
|
|
4076
|
-
create_leaderboard_model:
|
|
2147
|
+
create_leaderboard_model: CreateLeaderboardModel,
|
|
4077
2148
|
_request_timeout: Union[
|
|
4078
2149
|
None,
|
|
4079
2150
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4090,7 +2161,7 @@ class LeaderboardApi:
|
|
|
4090
2161
|
"""Creates a new leaderboard with the specified name and criteria.
|
|
4091
2162
|
|
|
4092
2163
|
|
|
4093
|
-
:param create_leaderboard_model:
|
|
2164
|
+
:param create_leaderboard_model: (required)
|
|
4094
2165
|
:type create_leaderboard_model: CreateLeaderboardModel
|
|
4095
2166
|
:param _request_timeout: timeout setting for this request. If one
|
|
4096
2167
|
number provided, it will be total request
|
|
@@ -4192,8 +2263,9 @@ class LeaderboardApi:
|
|
|
4192
2263
|
|
|
4193
2264
|
# authentication setting
|
|
4194
2265
|
_auth_settings: List[str] = [
|
|
4195
|
-
'
|
|
4196
|
-
'
|
|
2266
|
+
'OAuth2',
|
|
2267
|
+
'OpenIdConnect',
|
|
2268
|
+
'Bearer'
|
|
4197
2269
|
]
|
|
4198
2270
|
|
|
4199
2271
|
return self.api_client.param_serialize(
|
|
@@ -4217,7 +2289,7 @@ class LeaderboardApi:
|
|
|
4217
2289
|
@validate_call
|
|
4218
2290
|
def leaderboards_get(
|
|
4219
2291
|
self,
|
|
4220
|
-
request: Optional[QueryModel] = None,
|
|
2292
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
4221
2293
|
_request_timeout: Union[
|
|
4222
2294
|
None,
|
|
4223
2295
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4230,11 +2302,11 @@ class LeaderboardApi:
|
|
|
4230
2302
|
_content_type: Optional[StrictStr] = None,
|
|
4231
2303
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4232
2304
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4233
|
-
) ->
|
|
4234
|
-
"""Queries all leaderboards
|
|
2305
|
+
) -> PagedResultOfLeaderboardsQueryResult:
|
|
2306
|
+
"""Queries all leaderboards for a specific benchmark.
|
|
4235
2307
|
|
|
4236
2308
|
|
|
4237
|
-
:param request:
|
|
2309
|
+
:param request: Query parameters
|
|
4238
2310
|
:type request: QueryModel
|
|
4239
2311
|
:param _request_timeout: timeout setting for this request. If one
|
|
4240
2312
|
number provided, it will be total request
|
|
@@ -4267,7 +2339,7 @@ class LeaderboardApi:
|
|
|
4267
2339
|
)
|
|
4268
2340
|
|
|
4269
2341
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4270
|
-
'200': "
|
|
2342
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
4271
2343
|
}
|
|
4272
2344
|
response_data = self.api_client.call_api(
|
|
4273
2345
|
*_param,
|
|
@@ -4283,7 +2355,7 @@ class LeaderboardApi:
|
|
|
4283
2355
|
@validate_call
|
|
4284
2356
|
def leaderboards_get_with_http_info(
|
|
4285
2357
|
self,
|
|
4286
|
-
request: Optional[QueryModel] = None,
|
|
2358
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
4287
2359
|
_request_timeout: Union[
|
|
4288
2360
|
None,
|
|
4289
2361
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4296,11 +2368,11 @@ class LeaderboardApi:
|
|
|
4296
2368
|
_content_type: Optional[StrictStr] = None,
|
|
4297
2369
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4298
2370
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4299
|
-
) -> ApiResponse[
|
|
4300
|
-
"""Queries all leaderboards
|
|
2371
|
+
) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
|
|
2372
|
+
"""Queries all leaderboards for a specific benchmark.
|
|
4301
2373
|
|
|
4302
2374
|
|
|
4303
|
-
:param request:
|
|
2375
|
+
:param request: Query parameters
|
|
4304
2376
|
:type request: QueryModel
|
|
4305
2377
|
:param _request_timeout: timeout setting for this request. If one
|
|
4306
2378
|
number provided, it will be total request
|
|
@@ -4333,7 +2405,7 @@ class LeaderboardApi:
|
|
|
4333
2405
|
)
|
|
4334
2406
|
|
|
4335
2407
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4336
|
-
'200': "
|
|
2408
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
4337
2409
|
}
|
|
4338
2410
|
response_data = self.api_client.call_api(
|
|
4339
2411
|
*_param,
|
|
@@ -4349,7 +2421,7 @@ class LeaderboardApi:
|
|
|
4349
2421
|
@validate_call
|
|
4350
2422
|
def leaderboards_get_without_preload_content(
|
|
4351
2423
|
self,
|
|
4352
|
-
request: Optional[QueryModel] = None,
|
|
2424
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
4353
2425
|
_request_timeout: Union[
|
|
4354
2426
|
None,
|
|
4355
2427
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4363,10 +2435,10 @@ class LeaderboardApi:
|
|
|
4363
2435
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4364
2436
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4365
2437
|
) -> RESTResponseType:
|
|
4366
|
-
"""Queries all leaderboards
|
|
2438
|
+
"""Queries all leaderboards for a specific benchmark.
|
|
4367
2439
|
|
|
4368
2440
|
|
|
4369
|
-
:param request:
|
|
2441
|
+
:param request: Query parameters
|
|
4370
2442
|
:type request: QueryModel
|
|
4371
2443
|
:param _request_timeout: timeout setting for this request. If one
|
|
4372
2444
|
number provided, it will be total request
|
|
@@ -4399,7 +2471,7 @@ class LeaderboardApi:
|
|
|
4399
2471
|
)
|
|
4400
2472
|
|
|
4401
2473
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4402
|
-
'200': "
|
|
2474
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
4403
2475
|
}
|
|
4404
2476
|
response_data = self.api_client.call_api(
|
|
4405
2477
|
*_param,
|
|
@@ -4455,8 +2527,9 @@ class LeaderboardApi:
|
|
|
4455
2527
|
|
|
4456
2528
|
# authentication setting
|
|
4457
2529
|
_auth_settings: List[str] = [
|
|
4458
|
-
'
|
|
4459
|
-
'
|
|
2530
|
+
'OAuth2',
|
|
2531
|
+
'OpenIdConnect',
|
|
2532
|
+
'Bearer'
|
|
4460
2533
|
]
|
|
4461
2534
|
|
|
4462
2535
|
return self.api_client.param_serialize(
|