rapidata 2.28.2__py3-none-any.whl → 2.44.3__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.
- rapidata/__init__.py +11 -10
- rapidata/api_client/__init__.py +83 -355
- rapidata/api_client/api/__init__.py +8 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +1133 -0
- rapidata/api_client/api/benchmark_api.py +3966 -0
- rapidata/api_client/api/campaign_api.py +222 -444
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/coco_api.py +0 -571
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +644 -72
- rapidata/api_client/api/datapoint_api.py +8 -530
- rapidata/api_client/api/dataset_api.py +228 -3469
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -281
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +83 -1171
- rapidata/api_client/api/leaderboard_api.py +356 -312
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +758 -5487
- rapidata/api_client/api/participant_api.py +2181 -0
- rapidata/api_client/api/pipeline_api.py +24 -1783
- rapidata/api_client/api/prompt_api.py +320 -0
- 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 +510 -3659
- rapidata/api_client/api/workflow_api.py +32 -825
- 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 -332
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_campaign_model.py +3 -3
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +55 -24
- 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/add_validation_text_rapid_model.py +1 -3
- 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/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_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_status.py +38 -0
- rapidata/api_client/models/benchmark_query_result.py +98 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- 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 +89 -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 +6 -8
- 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_metadata_value.py +31 -17
- 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 +8 -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 +99 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- 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 +6 -4
- 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 +134 -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 +6 -18
- 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_leaderboard_model.py +59 -10
- rapidata/api_client/models/create_leaderboard_result.py +17 -5
- 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 +6 -4
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +93 -0
- 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/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 +120 -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.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input3.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +168 -0
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +25 -81
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +39 -0
- rapidata/api_client/models/file_type_metadata.py +110 -0
- rapidata/api_client/models/file_type_metadata_model.py +97 -0
- rapidata/api_client/models/filter.py +7 -25
- rapidata/api_client/models/filter_operator.py +3 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +135 -0
- 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 +111 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +96 -0
- 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_leaderboard_by_id_result.py +50 -6
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +9 -20
- 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 +96 -0
- 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_campaign_filter.py +282 -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_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -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_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 +103 -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 +103 -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 +282 -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_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 +104 -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/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 +46 -4
- 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/local_file_wrapper.py +120 -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 +130 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input3.py +110 -0
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
- 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/not_user_filter_model.py +3 -3
- 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/or_filter.py +121 -0
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- 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_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 +94 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_by_leaderboard.py +19 -8
- rapidata/api_client/models/participant_status.py +4 -5
- rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
- 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/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +87 -0
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +6 -8
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata.py +12 -1
- rapidata/api_client/models/prompt_metadata_input.py +2 -2
- rapidata/api_client/models/prompt_type.py +38 -0
- rapidata/api_client/models/proxy_file_wrapper.py +129 -0
- 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 +111 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_validation_model.py +97 -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 +39 -0
- rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
- rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
- 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 +121 -0
- rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
- 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 -7
- 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 +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
- 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 +138 -0
- rapidata/api_client/models/streams_metadata.py +12 -1
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_coco_model.py +1 -3
- rapidata/api_client/models/submit_order_model.py +87 -0
- rapidata/api_client/models/submit_participant_result.py +89 -0
- rapidata/api_client/models/submit_prompt_model.py +107 -0
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
- rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +120 -0
- 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 +2 -2
- 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 +102 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +87 -0
- 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_leaderboard_model.py +106 -0
- rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
- rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
- 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 +87 -0
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +87 -0
- rapidata/api_client/models/update_should_alert_model.py +87 -0
- rapidata/api_client/models/update_validation_rapid_model.py +28 -10
- 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_set_model.py +39 -5
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
- 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 +151 -0
- rapidata/api_client/rest.py +16 -9
- rapidata/api_client_README.md +373 -336
- rapidata/rapidata_client/__init__.py +9 -18
- rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +32 -0
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +221 -0
- rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/participant/_participant.py +147 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +546 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +219 -0
- 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 +10 -0
- rapidata/rapidata_client/datapoints/_asset_uploader.py +169 -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 -0
- rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -0
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +26 -0
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +12 -0
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
- rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/__init__.py +1 -0
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
- rapidata/rapidata_client/filter/__init__.py +1 -0
- rapidata/rapidata_client/filter/_base_filter.py +27 -6
- rapidata/rapidata_client/filter/age_filter.py +21 -10
- rapidata/rapidata_client/filter/and_filter.py +42 -0
- rapidata/rapidata_client/filter/campaign_filter.py +18 -10
- rapidata/rapidata_client/filter/country_filter.py +34 -12
- rapidata/rapidata_client/filter/custom_filter.py +22 -12
- rapidata/rapidata_client/filter/gender_filter.py +22 -10
- rapidata/rapidata_client/filter/language_filter.py +39 -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 +11 -4
- rapidata/rapidata_client/filter/not_filter.py +23 -11
- rapidata/rapidata_client/filter/or_filter.py +23 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +19 -13
- rapidata/rapidata_client/filter/response_count_filter.py +36 -20
- rapidata/rapidata_client/filter/user_score_filter.py +47 -24
- rapidata/rapidata_client/order/_rapidata_order_builder.py +289 -154
- rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
- rapidata/rapidata_client/order/rapidata_order.py +316 -163
- rapidata/rapidata_client/order/rapidata_order_manager.py +688 -430
- rapidata/rapidata_client/order/rapidata_results.py +86 -63
- rapidata/rapidata_client/rapidata_client.py +98 -36
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +7 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +20 -11
- rapidata/rapidata_client/referee/_naive_referee.py +18 -3
- rapidata/rapidata_client/selection/__init__.py +2 -2
- 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 +40 -10
- 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 +17 -8
- 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 +15 -2
- 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 +16 -3
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +28 -103
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +315 -208
- rapidata/rapidata_client/validation/validation_set_manager.py +511 -274
- rapidata/rapidata_client/workflow/__init__.py +2 -1
- 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 +87 -0
- rapidata/rapidata_client/workflow/_ranking_workflow.py +109 -25
- 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 +79 -24
- rapidata/types/__init__.py +166 -0
- rapidata-2.44.3.dist-info/METADATA +32 -0
- rapidata-2.44.3.dist-info/RECORD +1014 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/api/rapidata_exception.py +0 -107
- rapidata/rapidata_client/assets/__init__.py +0 -10
- rapidata/rapidata_client/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/assets/_media_asset.py +0 -306
- rapidata/rapidata_client/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/assets/_sessions.py +0 -35
- rapidata/rapidata_client/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/assets/data_type_enum.py +0 -7
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- 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/metadata/_media_asset_metadata.py +0 -15
- rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
- rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -461
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.28.2.dist-info/METADATA +0 -35
- rapidata-2.28.2.dist-info/RECORD +0 -574
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
- {rapidata-2.28.2.dist-info → rapidata-2.44.3.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata Asset API
|
|
5
|
+
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from rapidata.api_client.models.create_audience_request import CreateAudienceRequest
|
|
23
|
+
from rapidata.api_client.models.create_audience_result import CreateAudienceResult
|
|
24
|
+
from rapidata.api_client.models.get_audience_by_id_result import GetAudienceByIdResult
|
|
25
|
+
from rapidata.api_client.models.paged_result_of_query_audiences_result import PagedResultOfQueryAudiencesResult
|
|
26
|
+
from rapidata.api_client.models.query_model import QueryModel
|
|
27
|
+
from rapidata.api_client.models.update_audience_request import UpdateAudienceRequest
|
|
28
|
+
|
|
29
|
+
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
30
|
+
from rapidata.api_client.api_response import ApiResponse
|
|
31
|
+
from rapidata.api_client.rest import RESTResponseType
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class AudienceApi:
|
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
36
|
+
Ref: https://openapi-generator.tech
|
|
37
|
+
|
|
38
|
+
Do not edit the class manually.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, api_client=None) -> None:
|
|
42
|
+
if api_client is None:
|
|
43
|
+
api_client = ApiClient.get_default()
|
|
44
|
+
self.api_client = api_client
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@validate_call
|
|
48
|
+
def audience_audience_id_get(
|
|
49
|
+
self,
|
|
50
|
+
audience_id: Annotated[StrictStr, Field(description="The id of the audience to get.")],
|
|
51
|
+
_request_timeout: Union[
|
|
52
|
+
None,
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Tuple[
|
|
55
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
+
]
|
|
58
|
+
] = None,
|
|
59
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_content_type: Optional[StrictStr] = None,
|
|
61
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
63
|
+
) -> GetAudienceByIdResult:
|
|
64
|
+
"""Gets an audience by its Id.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
:param audience_id: The id of the audience to get. (required)
|
|
68
|
+
:type audience_id: str
|
|
69
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
70
|
+
number provided, it will be total request
|
|
71
|
+
timeout. It can also be a pair (tuple) of
|
|
72
|
+
(connection, read) timeouts.
|
|
73
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
74
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
75
|
+
request; this effectively ignores the
|
|
76
|
+
authentication in the spec for a single request.
|
|
77
|
+
:type _request_auth: dict, optional
|
|
78
|
+
:param _content_type: force content-type for the request.
|
|
79
|
+
:type _content_type: str, Optional
|
|
80
|
+
:param _headers: set to override the headers for a single
|
|
81
|
+
request; this effectively ignores the headers
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _headers: dict, optional
|
|
84
|
+
:param _host_index: set to override the host_index for a single
|
|
85
|
+
request; this effectively ignores the host_index
|
|
86
|
+
in the spec for a single request.
|
|
87
|
+
:type _host_index: int, optional
|
|
88
|
+
:return: Returns the result object.
|
|
89
|
+
""" # noqa: E501
|
|
90
|
+
|
|
91
|
+
_param = self._audience_audience_id_get_serialize(
|
|
92
|
+
audience_id=audience_id,
|
|
93
|
+
_request_auth=_request_auth,
|
|
94
|
+
_content_type=_content_type,
|
|
95
|
+
_headers=_headers,
|
|
96
|
+
_host_index=_host_index
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
100
|
+
'200': "GetAudienceByIdResult",
|
|
101
|
+
}
|
|
102
|
+
response_data = self.api_client.call_api(
|
|
103
|
+
*_param,
|
|
104
|
+
_request_timeout=_request_timeout
|
|
105
|
+
)
|
|
106
|
+
response_data.read()
|
|
107
|
+
return self.api_client.response_deserialize(
|
|
108
|
+
response_data=response_data,
|
|
109
|
+
response_types_map=_response_types_map,
|
|
110
|
+
).data
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@validate_call
|
|
114
|
+
def audience_audience_id_get_with_http_info(
|
|
115
|
+
self,
|
|
116
|
+
audience_id: Annotated[StrictStr, Field(description="The id of the audience to get.")],
|
|
117
|
+
_request_timeout: Union[
|
|
118
|
+
None,
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
120
|
+
Tuple[
|
|
121
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
123
|
+
]
|
|
124
|
+
] = None,
|
|
125
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
126
|
+
_content_type: Optional[StrictStr] = None,
|
|
127
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
129
|
+
) -> ApiResponse[GetAudienceByIdResult]:
|
|
130
|
+
"""Gets an audience by its Id.
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:param audience_id: The id of the audience to get. (required)
|
|
134
|
+
:type audience_id: str
|
|
135
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
136
|
+
number provided, it will be total request
|
|
137
|
+
timeout. It can also be a pair (tuple) of
|
|
138
|
+
(connection, read) timeouts.
|
|
139
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
140
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
141
|
+
request; this effectively ignores the
|
|
142
|
+
authentication in the spec for a single request.
|
|
143
|
+
:type _request_auth: dict, optional
|
|
144
|
+
:param _content_type: force content-type for the request.
|
|
145
|
+
:type _content_type: str, Optional
|
|
146
|
+
:param _headers: set to override the headers for a single
|
|
147
|
+
request; this effectively ignores the headers
|
|
148
|
+
in the spec for a single request.
|
|
149
|
+
:type _headers: dict, optional
|
|
150
|
+
:param _host_index: set to override the host_index for a single
|
|
151
|
+
request; this effectively ignores the host_index
|
|
152
|
+
in the spec for a single request.
|
|
153
|
+
:type _host_index: int, optional
|
|
154
|
+
:return: Returns the result object.
|
|
155
|
+
""" # noqa: E501
|
|
156
|
+
|
|
157
|
+
_param = self._audience_audience_id_get_serialize(
|
|
158
|
+
audience_id=audience_id,
|
|
159
|
+
_request_auth=_request_auth,
|
|
160
|
+
_content_type=_content_type,
|
|
161
|
+
_headers=_headers,
|
|
162
|
+
_host_index=_host_index
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
166
|
+
'200': "GetAudienceByIdResult",
|
|
167
|
+
}
|
|
168
|
+
response_data = self.api_client.call_api(
|
|
169
|
+
*_param,
|
|
170
|
+
_request_timeout=_request_timeout
|
|
171
|
+
)
|
|
172
|
+
response_data.read()
|
|
173
|
+
return self.api_client.response_deserialize(
|
|
174
|
+
response_data=response_data,
|
|
175
|
+
response_types_map=_response_types_map,
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@validate_call
|
|
180
|
+
def audience_audience_id_get_without_preload_content(
|
|
181
|
+
self,
|
|
182
|
+
audience_id: Annotated[StrictStr, Field(description="The id of the audience to get.")],
|
|
183
|
+
_request_timeout: Union[
|
|
184
|
+
None,
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Tuple[
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
189
|
+
]
|
|
190
|
+
] = None,
|
|
191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_content_type: Optional[StrictStr] = None,
|
|
193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
195
|
+
) -> RESTResponseType:
|
|
196
|
+
"""Gets an audience by its Id.
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:param audience_id: The id of the audience to get. (required)
|
|
200
|
+
:type audience_id: str
|
|
201
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
202
|
+
number provided, it will be total request
|
|
203
|
+
timeout. It can also be a pair (tuple) of
|
|
204
|
+
(connection, read) timeouts.
|
|
205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
207
|
+
request; this effectively ignores the
|
|
208
|
+
authentication in the spec for a single request.
|
|
209
|
+
:type _request_auth: dict, optional
|
|
210
|
+
:param _content_type: force content-type for the request.
|
|
211
|
+
:type _content_type: str, Optional
|
|
212
|
+
:param _headers: set to override the headers for a single
|
|
213
|
+
request; this effectively ignores the headers
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _headers: dict, optional
|
|
216
|
+
:param _host_index: set to override the host_index for a single
|
|
217
|
+
request; this effectively ignores the host_index
|
|
218
|
+
in the spec for a single request.
|
|
219
|
+
:type _host_index: int, optional
|
|
220
|
+
:return: Returns the result object.
|
|
221
|
+
""" # noqa: E501
|
|
222
|
+
|
|
223
|
+
_param = self._audience_audience_id_get_serialize(
|
|
224
|
+
audience_id=audience_id,
|
|
225
|
+
_request_auth=_request_auth,
|
|
226
|
+
_content_type=_content_type,
|
|
227
|
+
_headers=_headers,
|
|
228
|
+
_host_index=_host_index
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
+
'200': "GetAudienceByIdResult",
|
|
233
|
+
}
|
|
234
|
+
response_data = self.api_client.call_api(
|
|
235
|
+
*_param,
|
|
236
|
+
_request_timeout=_request_timeout
|
|
237
|
+
)
|
|
238
|
+
return response_data.response
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def _audience_audience_id_get_serialize(
|
|
242
|
+
self,
|
|
243
|
+
audience_id,
|
|
244
|
+
_request_auth,
|
|
245
|
+
_content_type,
|
|
246
|
+
_headers,
|
|
247
|
+
_host_index,
|
|
248
|
+
) -> RequestSerialized:
|
|
249
|
+
|
|
250
|
+
_host = None
|
|
251
|
+
|
|
252
|
+
_collection_formats: Dict[str, str] = {
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
_path_params: Dict[str, str] = {}
|
|
256
|
+
_query_params: List[Tuple[str, str]] = []
|
|
257
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
258
|
+
_form_params: List[Tuple[str, str]] = []
|
|
259
|
+
_files: Dict[
|
|
260
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
261
|
+
] = {}
|
|
262
|
+
_body_params: Optional[bytes] = None
|
|
263
|
+
|
|
264
|
+
# process the path parameters
|
|
265
|
+
if audience_id is not None:
|
|
266
|
+
_path_params['audienceId'] = audience_id
|
|
267
|
+
# process the query parameters
|
|
268
|
+
# process the header parameters
|
|
269
|
+
# process the form parameters
|
|
270
|
+
# process the body parameter
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# set the HTTP header `Accept`
|
|
274
|
+
if 'Accept' not in _header_params:
|
|
275
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
276
|
+
[
|
|
277
|
+
'text/plain',
|
|
278
|
+
'application/json',
|
|
279
|
+
'text/json'
|
|
280
|
+
]
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
# authentication setting
|
|
285
|
+
_auth_settings: List[str] = [
|
|
286
|
+
'OAuth2',
|
|
287
|
+
'OpenIdConnect',
|
|
288
|
+
'Bearer'
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
return self.api_client.param_serialize(
|
|
292
|
+
method='GET',
|
|
293
|
+
resource_path='/audience/{audienceId}',
|
|
294
|
+
path_params=_path_params,
|
|
295
|
+
query_params=_query_params,
|
|
296
|
+
header_params=_header_params,
|
|
297
|
+
body=_body_params,
|
|
298
|
+
post_params=_form_params,
|
|
299
|
+
files=_files,
|
|
300
|
+
auth_settings=_auth_settings,
|
|
301
|
+
collection_formats=_collection_formats,
|
|
302
|
+
_host=_host,
|
|
303
|
+
_request_auth=_request_auth
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
@validate_call
|
|
310
|
+
def audience_audience_id_patch(
|
|
311
|
+
self,
|
|
312
|
+
audience_id: StrictStr,
|
|
313
|
+
update_audience_request: UpdateAudienceRequest,
|
|
314
|
+
_request_timeout: Union[
|
|
315
|
+
None,
|
|
316
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
317
|
+
Tuple[
|
|
318
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
319
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
320
|
+
]
|
|
321
|
+
] = None,
|
|
322
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
323
|
+
_content_type: Optional[StrictStr] = None,
|
|
324
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
325
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
326
|
+
) -> None:
|
|
327
|
+
"""Patches an existing audience.
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
:param audience_id: (required)
|
|
331
|
+
:type audience_id: str
|
|
332
|
+
:param update_audience_request: (required)
|
|
333
|
+
:type update_audience_request: UpdateAudienceRequest
|
|
334
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
335
|
+
number provided, it will be total request
|
|
336
|
+
timeout. It can also be a pair (tuple) of
|
|
337
|
+
(connection, read) timeouts.
|
|
338
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
339
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
340
|
+
request; this effectively ignores the
|
|
341
|
+
authentication in the spec for a single request.
|
|
342
|
+
:type _request_auth: dict, optional
|
|
343
|
+
:param _content_type: force content-type for the request.
|
|
344
|
+
:type _content_type: str, Optional
|
|
345
|
+
:param _headers: set to override the headers for a single
|
|
346
|
+
request; this effectively ignores the headers
|
|
347
|
+
in the spec for a single request.
|
|
348
|
+
:type _headers: dict, optional
|
|
349
|
+
:param _host_index: set to override the host_index for a single
|
|
350
|
+
request; this effectively ignores the host_index
|
|
351
|
+
in the spec for a single request.
|
|
352
|
+
:type _host_index: int, optional
|
|
353
|
+
:return: Returns the result object.
|
|
354
|
+
""" # noqa: E501
|
|
355
|
+
|
|
356
|
+
_param = self._audience_audience_id_patch_serialize(
|
|
357
|
+
audience_id=audience_id,
|
|
358
|
+
update_audience_request=update_audience_request,
|
|
359
|
+
_request_auth=_request_auth,
|
|
360
|
+
_content_type=_content_type,
|
|
361
|
+
_headers=_headers,
|
|
362
|
+
_host_index=_host_index
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
366
|
+
'204': None,
|
|
367
|
+
}
|
|
368
|
+
response_data = self.api_client.call_api(
|
|
369
|
+
*_param,
|
|
370
|
+
_request_timeout=_request_timeout
|
|
371
|
+
)
|
|
372
|
+
response_data.read()
|
|
373
|
+
return self.api_client.response_deserialize(
|
|
374
|
+
response_data=response_data,
|
|
375
|
+
response_types_map=_response_types_map,
|
|
376
|
+
).data
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
@validate_call
|
|
380
|
+
def audience_audience_id_patch_with_http_info(
|
|
381
|
+
self,
|
|
382
|
+
audience_id: StrictStr,
|
|
383
|
+
update_audience_request: UpdateAudienceRequest,
|
|
384
|
+
_request_timeout: Union[
|
|
385
|
+
None,
|
|
386
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
387
|
+
Tuple[
|
|
388
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
389
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
390
|
+
]
|
|
391
|
+
] = None,
|
|
392
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
393
|
+
_content_type: Optional[StrictStr] = None,
|
|
394
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
395
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
396
|
+
) -> ApiResponse[None]:
|
|
397
|
+
"""Patches an existing audience.
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
:param audience_id: (required)
|
|
401
|
+
:type audience_id: str
|
|
402
|
+
:param update_audience_request: (required)
|
|
403
|
+
:type update_audience_request: UpdateAudienceRequest
|
|
404
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
405
|
+
number provided, it will be total request
|
|
406
|
+
timeout. It can also be a pair (tuple) of
|
|
407
|
+
(connection, read) timeouts.
|
|
408
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
409
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
410
|
+
request; this effectively ignores the
|
|
411
|
+
authentication in the spec for a single request.
|
|
412
|
+
:type _request_auth: dict, optional
|
|
413
|
+
:param _content_type: force content-type for the request.
|
|
414
|
+
:type _content_type: str, Optional
|
|
415
|
+
:param _headers: set to override the headers for a single
|
|
416
|
+
request; this effectively ignores the headers
|
|
417
|
+
in the spec for a single request.
|
|
418
|
+
:type _headers: dict, optional
|
|
419
|
+
:param _host_index: set to override the host_index for a single
|
|
420
|
+
request; this effectively ignores the host_index
|
|
421
|
+
in the spec for a single request.
|
|
422
|
+
:type _host_index: int, optional
|
|
423
|
+
:return: Returns the result object.
|
|
424
|
+
""" # noqa: E501
|
|
425
|
+
|
|
426
|
+
_param = self._audience_audience_id_patch_serialize(
|
|
427
|
+
audience_id=audience_id,
|
|
428
|
+
update_audience_request=update_audience_request,
|
|
429
|
+
_request_auth=_request_auth,
|
|
430
|
+
_content_type=_content_type,
|
|
431
|
+
_headers=_headers,
|
|
432
|
+
_host_index=_host_index
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
436
|
+
'204': None,
|
|
437
|
+
}
|
|
438
|
+
response_data = self.api_client.call_api(
|
|
439
|
+
*_param,
|
|
440
|
+
_request_timeout=_request_timeout
|
|
441
|
+
)
|
|
442
|
+
response_data.read()
|
|
443
|
+
return self.api_client.response_deserialize(
|
|
444
|
+
response_data=response_data,
|
|
445
|
+
response_types_map=_response_types_map,
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
@validate_call
|
|
450
|
+
def audience_audience_id_patch_without_preload_content(
|
|
451
|
+
self,
|
|
452
|
+
audience_id: StrictStr,
|
|
453
|
+
update_audience_request: UpdateAudienceRequest,
|
|
454
|
+
_request_timeout: Union[
|
|
455
|
+
None,
|
|
456
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
457
|
+
Tuple[
|
|
458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
459
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
460
|
+
]
|
|
461
|
+
] = None,
|
|
462
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
463
|
+
_content_type: Optional[StrictStr] = None,
|
|
464
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
465
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
466
|
+
) -> RESTResponseType:
|
|
467
|
+
"""Patches an existing audience.
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
:param audience_id: (required)
|
|
471
|
+
:type audience_id: str
|
|
472
|
+
:param update_audience_request: (required)
|
|
473
|
+
:type update_audience_request: UpdateAudienceRequest
|
|
474
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
475
|
+
number provided, it will be total request
|
|
476
|
+
timeout. It can also be a pair (tuple) of
|
|
477
|
+
(connection, read) timeouts.
|
|
478
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
479
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
480
|
+
request; this effectively ignores the
|
|
481
|
+
authentication in the spec for a single request.
|
|
482
|
+
:type _request_auth: dict, optional
|
|
483
|
+
:param _content_type: force content-type for the request.
|
|
484
|
+
:type _content_type: str, Optional
|
|
485
|
+
:param _headers: set to override the headers for a single
|
|
486
|
+
request; this effectively ignores the headers
|
|
487
|
+
in the spec for a single request.
|
|
488
|
+
:type _headers: dict, optional
|
|
489
|
+
:param _host_index: set to override the host_index for a single
|
|
490
|
+
request; this effectively ignores the host_index
|
|
491
|
+
in the spec for a single request.
|
|
492
|
+
:type _host_index: int, optional
|
|
493
|
+
:return: Returns the result object.
|
|
494
|
+
""" # noqa: E501
|
|
495
|
+
|
|
496
|
+
_param = self._audience_audience_id_patch_serialize(
|
|
497
|
+
audience_id=audience_id,
|
|
498
|
+
update_audience_request=update_audience_request,
|
|
499
|
+
_request_auth=_request_auth,
|
|
500
|
+
_content_type=_content_type,
|
|
501
|
+
_headers=_headers,
|
|
502
|
+
_host_index=_host_index
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
+
'204': None,
|
|
507
|
+
}
|
|
508
|
+
response_data = self.api_client.call_api(
|
|
509
|
+
*_param,
|
|
510
|
+
_request_timeout=_request_timeout
|
|
511
|
+
)
|
|
512
|
+
return response_data.response
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def _audience_audience_id_patch_serialize(
|
|
516
|
+
self,
|
|
517
|
+
audience_id,
|
|
518
|
+
update_audience_request,
|
|
519
|
+
_request_auth,
|
|
520
|
+
_content_type,
|
|
521
|
+
_headers,
|
|
522
|
+
_host_index,
|
|
523
|
+
) -> RequestSerialized:
|
|
524
|
+
|
|
525
|
+
_host = None
|
|
526
|
+
|
|
527
|
+
_collection_formats: Dict[str, str] = {
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
_path_params: Dict[str, str] = {}
|
|
531
|
+
_query_params: List[Tuple[str, str]] = []
|
|
532
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
533
|
+
_form_params: List[Tuple[str, str]] = []
|
|
534
|
+
_files: Dict[
|
|
535
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
536
|
+
] = {}
|
|
537
|
+
_body_params: Optional[bytes] = None
|
|
538
|
+
|
|
539
|
+
# process the path parameters
|
|
540
|
+
if audience_id is not None:
|
|
541
|
+
_path_params['audienceId'] = audience_id
|
|
542
|
+
# process the query parameters
|
|
543
|
+
# process the header parameters
|
|
544
|
+
# process the form parameters
|
|
545
|
+
# process the body parameter
|
|
546
|
+
if update_audience_request is not None:
|
|
547
|
+
_body_params = update_audience_request
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
# set the HTTP header `Content-Type`
|
|
552
|
+
if _content_type:
|
|
553
|
+
_header_params['Content-Type'] = _content_type
|
|
554
|
+
else:
|
|
555
|
+
_default_content_type = (
|
|
556
|
+
self.api_client.select_header_content_type(
|
|
557
|
+
[
|
|
558
|
+
'application/json',
|
|
559
|
+
'text/json',
|
|
560
|
+
'application/*+json'
|
|
561
|
+
]
|
|
562
|
+
)
|
|
563
|
+
)
|
|
564
|
+
if _default_content_type is not None:
|
|
565
|
+
_header_params['Content-Type'] = _default_content_type
|
|
566
|
+
|
|
567
|
+
# authentication setting
|
|
568
|
+
_auth_settings: List[str] = [
|
|
569
|
+
'OAuth2',
|
|
570
|
+
'OpenIdConnect',
|
|
571
|
+
'Bearer'
|
|
572
|
+
]
|
|
573
|
+
|
|
574
|
+
return self.api_client.param_serialize(
|
|
575
|
+
method='PATCH',
|
|
576
|
+
resource_path='/audience/{audienceId}',
|
|
577
|
+
path_params=_path_params,
|
|
578
|
+
query_params=_query_params,
|
|
579
|
+
header_params=_header_params,
|
|
580
|
+
body=_body_params,
|
|
581
|
+
post_params=_form_params,
|
|
582
|
+
files=_files,
|
|
583
|
+
auth_settings=_auth_settings,
|
|
584
|
+
collection_formats=_collection_formats,
|
|
585
|
+
_host=_host,
|
|
586
|
+
_request_auth=_request_auth
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
@validate_call
|
|
593
|
+
def audience_post(
|
|
594
|
+
self,
|
|
595
|
+
create_audience_request: CreateAudienceRequest,
|
|
596
|
+
_request_timeout: Union[
|
|
597
|
+
None,
|
|
598
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
599
|
+
Tuple[
|
|
600
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
601
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
602
|
+
]
|
|
603
|
+
] = None,
|
|
604
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
605
|
+
_content_type: Optional[StrictStr] = None,
|
|
606
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
607
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
608
|
+
) -> CreateAudienceResult:
|
|
609
|
+
"""Creates a new empty audience.
|
|
610
|
+
|
|
611
|
+
An audience is a group of users that are trained to solve particular tasks.
|
|
612
|
+
|
|
613
|
+
:param create_audience_request: (required)
|
|
614
|
+
:type create_audience_request: CreateAudienceRequest
|
|
615
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
616
|
+
number provided, it will be total request
|
|
617
|
+
timeout. It can also be a pair (tuple) of
|
|
618
|
+
(connection, read) timeouts.
|
|
619
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
620
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
621
|
+
request; this effectively ignores the
|
|
622
|
+
authentication in the spec for a single request.
|
|
623
|
+
:type _request_auth: dict, optional
|
|
624
|
+
:param _content_type: force content-type for the request.
|
|
625
|
+
:type _content_type: str, Optional
|
|
626
|
+
:param _headers: set to override the headers for a single
|
|
627
|
+
request; this effectively ignores the headers
|
|
628
|
+
in the spec for a single request.
|
|
629
|
+
:type _headers: dict, optional
|
|
630
|
+
:param _host_index: set to override the host_index for a single
|
|
631
|
+
request; this effectively ignores the host_index
|
|
632
|
+
in the spec for a single request.
|
|
633
|
+
:type _host_index: int, optional
|
|
634
|
+
:return: Returns the result object.
|
|
635
|
+
""" # noqa: E501
|
|
636
|
+
|
|
637
|
+
_param = self._audience_post_serialize(
|
|
638
|
+
create_audience_request=create_audience_request,
|
|
639
|
+
_request_auth=_request_auth,
|
|
640
|
+
_content_type=_content_type,
|
|
641
|
+
_headers=_headers,
|
|
642
|
+
_host_index=_host_index
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
646
|
+
'200': "CreateAudienceResult",
|
|
647
|
+
}
|
|
648
|
+
response_data = self.api_client.call_api(
|
|
649
|
+
*_param,
|
|
650
|
+
_request_timeout=_request_timeout
|
|
651
|
+
)
|
|
652
|
+
response_data.read()
|
|
653
|
+
return self.api_client.response_deserialize(
|
|
654
|
+
response_data=response_data,
|
|
655
|
+
response_types_map=_response_types_map,
|
|
656
|
+
).data
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
@validate_call
|
|
660
|
+
def audience_post_with_http_info(
|
|
661
|
+
self,
|
|
662
|
+
create_audience_request: CreateAudienceRequest,
|
|
663
|
+
_request_timeout: Union[
|
|
664
|
+
None,
|
|
665
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
666
|
+
Tuple[
|
|
667
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
668
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
669
|
+
]
|
|
670
|
+
] = None,
|
|
671
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
672
|
+
_content_type: Optional[StrictStr] = None,
|
|
673
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
674
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
675
|
+
) -> ApiResponse[CreateAudienceResult]:
|
|
676
|
+
"""Creates a new empty audience.
|
|
677
|
+
|
|
678
|
+
An audience is a group of users that are trained to solve particular tasks.
|
|
679
|
+
|
|
680
|
+
:param create_audience_request: (required)
|
|
681
|
+
:type create_audience_request: CreateAudienceRequest
|
|
682
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
683
|
+
number provided, it will be total request
|
|
684
|
+
timeout. It can also be a pair (tuple) of
|
|
685
|
+
(connection, read) timeouts.
|
|
686
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
687
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
688
|
+
request; this effectively ignores the
|
|
689
|
+
authentication in the spec for a single request.
|
|
690
|
+
:type _request_auth: dict, optional
|
|
691
|
+
:param _content_type: force content-type for the request.
|
|
692
|
+
:type _content_type: str, Optional
|
|
693
|
+
:param _headers: set to override the headers for a single
|
|
694
|
+
request; this effectively ignores the headers
|
|
695
|
+
in the spec for a single request.
|
|
696
|
+
:type _headers: dict, optional
|
|
697
|
+
:param _host_index: set to override the host_index for a single
|
|
698
|
+
request; this effectively ignores the host_index
|
|
699
|
+
in the spec for a single request.
|
|
700
|
+
:type _host_index: int, optional
|
|
701
|
+
:return: Returns the result object.
|
|
702
|
+
""" # noqa: E501
|
|
703
|
+
|
|
704
|
+
_param = self._audience_post_serialize(
|
|
705
|
+
create_audience_request=create_audience_request,
|
|
706
|
+
_request_auth=_request_auth,
|
|
707
|
+
_content_type=_content_type,
|
|
708
|
+
_headers=_headers,
|
|
709
|
+
_host_index=_host_index
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
713
|
+
'200': "CreateAudienceResult",
|
|
714
|
+
}
|
|
715
|
+
response_data = self.api_client.call_api(
|
|
716
|
+
*_param,
|
|
717
|
+
_request_timeout=_request_timeout
|
|
718
|
+
)
|
|
719
|
+
response_data.read()
|
|
720
|
+
return self.api_client.response_deserialize(
|
|
721
|
+
response_data=response_data,
|
|
722
|
+
response_types_map=_response_types_map,
|
|
723
|
+
)
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
@validate_call
|
|
727
|
+
def audience_post_without_preload_content(
|
|
728
|
+
self,
|
|
729
|
+
create_audience_request: CreateAudienceRequest,
|
|
730
|
+
_request_timeout: Union[
|
|
731
|
+
None,
|
|
732
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
733
|
+
Tuple[
|
|
734
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
735
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
736
|
+
]
|
|
737
|
+
] = None,
|
|
738
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
739
|
+
_content_type: Optional[StrictStr] = None,
|
|
740
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
741
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
742
|
+
) -> RESTResponseType:
|
|
743
|
+
"""Creates a new empty audience.
|
|
744
|
+
|
|
745
|
+
An audience is a group of users that are trained to solve particular tasks.
|
|
746
|
+
|
|
747
|
+
:param create_audience_request: (required)
|
|
748
|
+
:type create_audience_request: CreateAudienceRequest
|
|
749
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
750
|
+
number provided, it will be total request
|
|
751
|
+
timeout. It can also be a pair (tuple) of
|
|
752
|
+
(connection, read) timeouts.
|
|
753
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
754
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
755
|
+
request; this effectively ignores the
|
|
756
|
+
authentication in the spec for a single request.
|
|
757
|
+
:type _request_auth: dict, optional
|
|
758
|
+
:param _content_type: force content-type for the request.
|
|
759
|
+
:type _content_type: str, Optional
|
|
760
|
+
:param _headers: set to override the headers for a single
|
|
761
|
+
request; this effectively ignores the headers
|
|
762
|
+
in the spec for a single request.
|
|
763
|
+
:type _headers: dict, optional
|
|
764
|
+
:param _host_index: set to override the host_index for a single
|
|
765
|
+
request; this effectively ignores the host_index
|
|
766
|
+
in the spec for a single request.
|
|
767
|
+
:type _host_index: int, optional
|
|
768
|
+
:return: Returns the result object.
|
|
769
|
+
""" # noqa: E501
|
|
770
|
+
|
|
771
|
+
_param = self._audience_post_serialize(
|
|
772
|
+
create_audience_request=create_audience_request,
|
|
773
|
+
_request_auth=_request_auth,
|
|
774
|
+
_content_type=_content_type,
|
|
775
|
+
_headers=_headers,
|
|
776
|
+
_host_index=_host_index
|
|
777
|
+
)
|
|
778
|
+
|
|
779
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
780
|
+
'200': "CreateAudienceResult",
|
|
781
|
+
}
|
|
782
|
+
response_data = self.api_client.call_api(
|
|
783
|
+
*_param,
|
|
784
|
+
_request_timeout=_request_timeout
|
|
785
|
+
)
|
|
786
|
+
return response_data.response
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
def _audience_post_serialize(
|
|
790
|
+
self,
|
|
791
|
+
create_audience_request,
|
|
792
|
+
_request_auth,
|
|
793
|
+
_content_type,
|
|
794
|
+
_headers,
|
|
795
|
+
_host_index,
|
|
796
|
+
) -> RequestSerialized:
|
|
797
|
+
|
|
798
|
+
_host = None
|
|
799
|
+
|
|
800
|
+
_collection_formats: Dict[str, str] = {
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
_path_params: Dict[str, str] = {}
|
|
804
|
+
_query_params: List[Tuple[str, str]] = []
|
|
805
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
806
|
+
_form_params: List[Tuple[str, str]] = []
|
|
807
|
+
_files: Dict[
|
|
808
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
809
|
+
] = {}
|
|
810
|
+
_body_params: Optional[bytes] = None
|
|
811
|
+
|
|
812
|
+
# process the path parameters
|
|
813
|
+
# process the query parameters
|
|
814
|
+
# process the header parameters
|
|
815
|
+
# process the form parameters
|
|
816
|
+
# process the body parameter
|
|
817
|
+
if create_audience_request is not None:
|
|
818
|
+
_body_params = create_audience_request
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
# set the HTTP header `Accept`
|
|
822
|
+
if 'Accept' not in _header_params:
|
|
823
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
824
|
+
[
|
|
825
|
+
'text/plain',
|
|
826
|
+
'application/json',
|
|
827
|
+
'text/json'
|
|
828
|
+
]
|
|
829
|
+
)
|
|
830
|
+
|
|
831
|
+
# set the HTTP header `Content-Type`
|
|
832
|
+
if _content_type:
|
|
833
|
+
_header_params['Content-Type'] = _content_type
|
|
834
|
+
else:
|
|
835
|
+
_default_content_type = (
|
|
836
|
+
self.api_client.select_header_content_type(
|
|
837
|
+
[
|
|
838
|
+
'application/json',
|
|
839
|
+
'text/json',
|
|
840
|
+
'application/*+json'
|
|
841
|
+
]
|
|
842
|
+
)
|
|
843
|
+
)
|
|
844
|
+
if _default_content_type is not None:
|
|
845
|
+
_header_params['Content-Type'] = _default_content_type
|
|
846
|
+
|
|
847
|
+
# authentication setting
|
|
848
|
+
_auth_settings: List[str] = [
|
|
849
|
+
'OAuth2',
|
|
850
|
+
'OpenIdConnect',
|
|
851
|
+
'Bearer'
|
|
852
|
+
]
|
|
853
|
+
|
|
854
|
+
return self.api_client.param_serialize(
|
|
855
|
+
method='POST',
|
|
856
|
+
resource_path='/audience',
|
|
857
|
+
path_params=_path_params,
|
|
858
|
+
query_params=_query_params,
|
|
859
|
+
header_params=_header_params,
|
|
860
|
+
body=_body_params,
|
|
861
|
+
post_params=_form_params,
|
|
862
|
+
files=_files,
|
|
863
|
+
auth_settings=_auth_settings,
|
|
864
|
+
collection_formats=_collection_formats,
|
|
865
|
+
_host=_host,
|
|
866
|
+
_request_auth=_request_auth
|
|
867
|
+
)
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
@validate_call
|
|
873
|
+
def audiences_get(
|
|
874
|
+
self,
|
|
875
|
+
request: Optional[QueryModel] = None,
|
|
876
|
+
_request_timeout: Union[
|
|
877
|
+
None,
|
|
878
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
879
|
+
Tuple[
|
|
880
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
881
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
882
|
+
]
|
|
883
|
+
] = None,
|
|
884
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
885
|
+
_content_type: Optional[StrictStr] = None,
|
|
886
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
887
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
888
|
+
) -> PagedResultOfQueryAudiencesResult:
|
|
889
|
+
"""Queries all available audiences.
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
:param request:
|
|
893
|
+
:type request: QueryModel
|
|
894
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
895
|
+
number provided, it will be total request
|
|
896
|
+
timeout. It can also be a pair (tuple) of
|
|
897
|
+
(connection, read) timeouts.
|
|
898
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
899
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
900
|
+
request; this effectively ignores the
|
|
901
|
+
authentication in the spec for a single request.
|
|
902
|
+
:type _request_auth: dict, optional
|
|
903
|
+
:param _content_type: force content-type for the request.
|
|
904
|
+
:type _content_type: str, Optional
|
|
905
|
+
:param _headers: set to override the headers for a single
|
|
906
|
+
request; this effectively ignores the headers
|
|
907
|
+
in the spec for a single request.
|
|
908
|
+
:type _headers: dict, optional
|
|
909
|
+
:param _host_index: set to override the host_index for a single
|
|
910
|
+
request; this effectively ignores the host_index
|
|
911
|
+
in the spec for a single request.
|
|
912
|
+
:type _host_index: int, optional
|
|
913
|
+
:return: Returns the result object.
|
|
914
|
+
""" # noqa: E501
|
|
915
|
+
|
|
916
|
+
_param = self._audiences_get_serialize(
|
|
917
|
+
request=request,
|
|
918
|
+
_request_auth=_request_auth,
|
|
919
|
+
_content_type=_content_type,
|
|
920
|
+
_headers=_headers,
|
|
921
|
+
_host_index=_host_index
|
|
922
|
+
)
|
|
923
|
+
|
|
924
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
925
|
+
'200': "PagedResultOfQueryAudiencesResult",
|
|
926
|
+
}
|
|
927
|
+
response_data = self.api_client.call_api(
|
|
928
|
+
*_param,
|
|
929
|
+
_request_timeout=_request_timeout
|
|
930
|
+
)
|
|
931
|
+
response_data.read()
|
|
932
|
+
return self.api_client.response_deserialize(
|
|
933
|
+
response_data=response_data,
|
|
934
|
+
response_types_map=_response_types_map,
|
|
935
|
+
).data
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
@validate_call
|
|
939
|
+
def audiences_get_with_http_info(
|
|
940
|
+
self,
|
|
941
|
+
request: Optional[QueryModel] = None,
|
|
942
|
+
_request_timeout: Union[
|
|
943
|
+
None,
|
|
944
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
945
|
+
Tuple[
|
|
946
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
947
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
948
|
+
]
|
|
949
|
+
] = None,
|
|
950
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
951
|
+
_content_type: Optional[StrictStr] = None,
|
|
952
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
953
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
954
|
+
) -> ApiResponse[PagedResultOfQueryAudiencesResult]:
|
|
955
|
+
"""Queries all available audiences.
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
:param request:
|
|
959
|
+
:type request: QueryModel
|
|
960
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
961
|
+
number provided, it will be total request
|
|
962
|
+
timeout. It can also be a pair (tuple) of
|
|
963
|
+
(connection, read) timeouts.
|
|
964
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
965
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
966
|
+
request; this effectively ignores the
|
|
967
|
+
authentication in the spec for a single request.
|
|
968
|
+
:type _request_auth: dict, optional
|
|
969
|
+
:param _content_type: force content-type for the request.
|
|
970
|
+
:type _content_type: str, Optional
|
|
971
|
+
:param _headers: set to override the headers for a single
|
|
972
|
+
request; this effectively ignores the headers
|
|
973
|
+
in the spec for a single request.
|
|
974
|
+
:type _headers: dict, optional
|
|
975
|
+
:param _host_index: set to override the host_index for a single
|
|
976
|
+
request; this effectively ignores the host_index
|
|
977
|
+
in the spec for a single request.
|
|
978
|
+
:type _host_index: int, optional
|
|
979
|
+
:return: Returns the result object.
|
|
980
|
+
""" # noqa: E501
|
|
981
|
+
|
|
982
|
+
_param = self._audiences_get_serialize(
|
|
983
|
+
request=request,
|
|
984
|
+
_request_auth=_request_auth,
|
|
985
|
+
_content_type=_content_type,
|
|
986
|
+
_headers=_headers,
|
|
987
|
+
_host_index=_host_index
|
|
988
|
+
)
|
|
989
|
+
|
|
990
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
991
|
+
'200': "PagedResultOfQueryAudiencesResult",
|
|
992
|
+
}
|
|
993
|
+
response_data = self.api_client.call_api(
|
|
994
|
+
*_param,
|
|
995
|
+
_request_timeout=_request_timeout
|
|
996
|
+
)
|
|
997
|
+
response_data.read()
|
|
998
|
+
return self.api_client.response_deserialize(
|
|
999
|
+
response_data=response_data,
|
|
1000
|
+
response_types_map=_response_types_map,
|
|
1001
|
+
)
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
@validate_call
|
|
1005
|
+
def audiences_get_without_preload_content(
|
|
1006
|
+
self,
|
|
1007
|
+
request: Optional[QueryModel] = None,
|
|
1008
|
+
_request_timeout: Union[
|
|
1009
|
+
None,
|
|
1010
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1011
|
+
Tuple[
|
|
1012
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1013
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1014
|
+
]
|
|
1015
|
+
] = None,
|
|
1016
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1017
|
+
_content_type: Optional[StrictStr] = None,
|
|
1018
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1019
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1020
|
+
) -> RESTResponseType:
|
|
1021
|
+
"""Queries all available audiences.
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
:param request:
|
|
1025
|
+
:type request: QueryModel
|
|
1026
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1027
|
+
number provided, it will be total request
|
|
1028
|
+
timeout. It can also be a pair (tuple) of
|
|
1029
|
+
(connection, read) timeouts.
|
|
1030
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1031
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1032
|
+
request; this effectively ignores the
|
|
1033
|
+
authentication in the spec for a single request.
|
|
1034
|
+
:type _request_auth: dict, optional
|
|
1035
|
+
:param _content_type: force content-type for the request.
|
|
1036
|
+
:type _content_type: str, Optional
|
|
1037
|
+
:param _headers: set to override the headers for a single
|
|
1038
|
+
request; this effectively ignores the headers
|
|
1039
|
+
in the spec for a single request.
|
|
1040
|
+
:type _headers: dict, optional
|
|
1041
|
+
:param _host_index: set to override the host_index for a single
|
|
1042
|
+
request; this effectively ignores the host_index
|
|
1043
|
+
in the spec for a single request.
|
|
1044
|
+
:type _host_index: int, optional
|
|
1045
|
+
:return: Returns the result object.
|
|
1046
|
+
""" # noqa: E501
|
|
1047
|
+
|
|
1048
|
+
_param = self._audiences_get_serialize(
|
|
1049
|
+
request=request,
|
|
1050
|
+
_request_auth=_request_auth,
|
|
1051
|
+
_content_type=_content_type,
|
|
1052
|
+
_headers=_headers,
|
|
1053
|
+
_host_index=_host_index
|
|
1054
|
+
)
|
|
1055
|
+
|
|
1056
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1057
|
+
'200': "PagedResultOfQueryAudiencesResult",
|
|
1058
|
+
}
|
|
1059
|
+
response_data = self.api_client.call_api(
|
|
1060
|
+
*_param,
|
|
1061
|
+
_request_timeout=_request_timeout
|
|
1062
|
+
)
|
|
1063
|
+
return response_data.response
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
def _audiences_get_serialize(
|
|
1067
|
+
self,
|
|
1068
|
+
request,
|
|
1069
|
+
_request_auth,
|
|
1070
|
+
_content_type,
|
|
1071
|
+
_headers,
|
|
1072
|
+
_host_index,
|
|
1073
|
+
) -> RequestSerialized:
|
|
1074
|
+
|
|
1075
|
+
_host = None
|
|
1076
|
+
|
|
1077
|
+
_collection_formats: Dict[str, str] = {
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
_path_params: Dict[str, str] = {}
|
|
1081
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1082
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1083
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1084
|
+
_files: Dict[
|
|
1085
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1086
|
+
] = {}
|
|
1087
|
+
_body_params: Optional[bytes] = None
|
|
1088
|
+
|
|
1089
|
+
# process the path parameters
|
|
1090
|
+
# process the query parameters
|
|
1091
|
+
if request is not None:
|
|
1092
|
+
|
|
1093
|
+
_query_params.append(('request', request))
|
|
1094
|
+
|
|
1095
|
+
# process the header parameters
|
|
1096
|
+
# process the form parameters
|
|
1097
|
+
# process the body parameter
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
# set the HTTP header `Accept`
|
|
1101
|
+
if 'Accept' not in _header_params:
|
|
1102
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1103
|
+
[
|
|
1104
|
+
'text/plain',
|
|
1105
|
+
'application/json',
|
|
1106
|
+
'text/json'
|
|
1107
|
+
]
|
|
1108
|
+
)
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
# authentication setting
|
|
1112
|
+
_auth_settings: List[str] = [
|
|
1113
|
+
'OAuth2',
|
|
1114
|
+
'OpenIdConnect',
|
|
1115
|
+
'Bearer'
|
|
1116
|
+
]
|
|
1117
|
+
|
|
1118
|
+
return self.api_client.param_serialize(
|
|
1119
|
+
method='GET',
|
|
1120
|
+
resource_path='/audiences',
|
|
1121
|
+
path_params=_path_params,
|
|
1122
|
+
query_params=_query_params,
|
|
1123
|
+
header_params=_header_params,
|
|
1124
|
+
body=_body_params,
|
|
1125
|
+
post_params=_form_params,
|
|
1126
|
+
files=_files,
|
|
1127
|
+
auth_settings=_auth_settings,
|
|
1128
|
+
collection_formats=_collection_formats,
|
|
1129
|
+
_host=_host,
|
|
1130
|
+
_request_auth=_request_auth
|
|
1131
|
+
)
|
|
1132
|
+
|
|
1133
|
+
|