label-studio-sdk 1.0.20__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of label-studio-sdk might be problematic. Click here for more details.
- label_studio_sdk/__init__.py +325 -180
- label_studio_sdk/actions/__init__.py +4 -0
- label_studio_sdk/actions/client.py +46 -10
- label_studio_sdk/actions/types/__init__.py +4 -0
- label_studio_sdk/actions/types/actions_create_request_filters.py +2 -2
- label_studio_sdk/actions/types/actions_create_request_filters_items_item.py +2 -2
- label_studio_sdk/actions/types/actions_create_request_id.py +7 -7
- label_studio_sdk/actions/types/actions_create_request_selected_items_excluded.py +2 -2
- label_studio_sdk/actions/types/actions_create_request_selected_items_included.py +2 -2
- label_studio_sdk/actions/types/actions_list_response_item.py +25 -0
- label_studio_sdk/actions/types/actions_list_response_item_dialog.py +22 -0
- label_studio_sdk/annotations/__init__.py +2 -2
- label_studio_sdk/annotations/client.py +379 -243
- label_studio_sdk/annotations/types/__init__.py +4 -2
- label_studio_sdk/annotations/types/annotation_bulk_serializer_with_selected_items_request_last_action.py +7 -0
- label_studio_sdk/annotations/types/annotations_create_bulk_response_item.py +8 -5
- label_studio_sdk/base_client.py +28 -24
- label_studio_sdk/comments/client.py +378 -140
- label_studio_sdk/converter/README.md +207 -0
- label_studio_sdk/converter/imports/coco.py +132 -23
- label_studio_sdk/core/__init__.py +4 -0
- label_studio_sdk/core/unchecked_base_model.py +305 -0
- label_studio_sdk/environment.py +1 -1
- label_studio_sdk/errors/__init__.py +10 -1
- label_studio_sdk/errors/forbidden_error.py +9 -0
- label_studio_sdk/errors/method_not_allowed_error.py +9 -0
- label_studio_sdk/export_storage/__init__.py +1 -24
- label_studio_sdk/export_storage/azure/__init__.py +0 -3
- label_studio_sdk/export_storage/azure/client.py +231 -273
- label_studio_sdk/export_storage/client.py +5 -5
- label_studio_sdk/export_storage/gcs/__init__.py +0 -3
- label_studio_sdk/export_storage/gcs/client.py +231 -273
- label_studio_sdk/export_storage/local/__init__.py +0 -3
- label_studio_sdk/export_storage/local/client.py +211 -253
- label_studio_sdk/export_storage/redis/__init__.py +0 -3
- label_studio_sdk/export_storage/redis/client.py +239 -281
- label_studio_sdk/export_storage/s3/__init__.py +0 -3
- label_studio_sdk/export_storage/s3/client.py +254 -296
- label_studio_sdk/export_storage/s3s/client.py +694 -210
- label_studio_sdk/export_storage/types/export_storage_list_types_response_item.py +2 -2
- label_studio_sdk/files/client.py +52 -71
- label_studio_sdk/import_storage/__init__.py +1 -24
- label_studio_sdk/import_storage/azure/__init__.py +0 -3
- label_studio_sdk/import_storage/azure/client.py +249 -299
- label_studio_sdk/import_storage/client.py +5 -5
- label_studio_sdk/import_storage/gcs/__init__.py +0 -3
- label_studio_sdk/import_storage/gcs/client.py +249 -299
- label_studio_sdk/import_storage/local/__init__.py +0 -3
- label_studio_sdk/import_storage/local/client.py +211 -257
- label_studio_sdk/import_storage/redis/__init__.py +0 -3
- label_studio_sdk/import_storage/redis/client.py +239 -285
- label_studio_sdk/import_storage/s3/__init__.py +0 -3
- label_studio_sdk/import_storage/s3/client.py +274 -324
- label_studio_sdk/import_storage/s3s/client.py +728 -434
- label_studio_sdk/import_storage/types/import_storage_list_types_response_item.py +2 -2
- label_studio_sdk/jwt_settings/client.py +56 -58
- label_studio_sdk/label_interface/control_tags.py +48 -8
- label_studio_sdk/label_interface/interface.py +261 -56
- label_studio_sdk/ml/__init__.py +2 -16
- label_studio_sdk/ml/client.py +196 -179
- label_studio_sdk/ml/types/__init__.py +2 -12
- label_studio_sdk/ml/types/ml_list_model_versions_response.py +20 -0
- label_studio_sdk/model_providers/__init__.py +3 -0
- label_studio_sdk/model_providers/client.py +280 -228
- label_studio_sdk/model_providers/types/__init__.py +5 -0
- label_studio_sdk/{prompts/types/prompts_batch_predictions_response.py → model_providers/types/model_providers_list_model_provider_choices_response.py} +3 -3
- label_studio_sdk/organizations/__init__.py +5 -0
- label_studio_sdk/organizations/client.py +331 -0
- label_studio_sdk/organizations/members/__init__.py +2 -0
- label_studio_sdk/organizations/members/client.py +290 -0
- label_studio_sdk/predictions/client.py +29 -77
- label_studio_sdk/projects/__init__.py +18 -9
- label_studio_sdk/projects/client.py +905 -414
- label_studio_sdk/projects/exports/__init__.py +2 -2
- label_studio_sdk/projects/exports/client.py +336 -396
- label_studio_sdk/projects/exports/client_ext.py +30 -30
- label_studio_sdk/projects/exports/types/__init__.py +1 -2
- label_studio_sdk/projects/exports/types/exports_convert_response.py +5 -9
- label_studio_sdk/projects/pauses/client.py +114 -105
- label_studio_sdk/projects/stats/__init__.py +5 -0
- label_studio_sdk/projects/stats/client.py +175 -0
- label_studio_sdk/projects/stats/types/__init__.py +8 -0
- label_studio_sdk/projects/stats/types/stats_iaa_response.py +44 -0
- label_studio_sdk/projects/stats/types/stats_iaa_response_common_tasks.py +7 -0
- label_studio_sdk/projects/stats/types/stats_iaa_response_iaa.py +5 -0
- label_studio_sdk/{types/base_task_file_upload.py → projects/stats/types/stats_iaa_response_std.py} +1 -1
- label_studio_sdk/projects/types/__init__.py +10 -6
- label_studio_sdk/projects/types/lse_project_create_request_sampling.py +7 -0
- label_studio_sdk/projects/types/lse_project_create_request_skip_queue.py +7 -0
- label_studio_sdk/projects/types/patched_lse_project_update_request_sampling.py +7 -0
- label_studio_sdk/projects/types/patched_lse_project_update_request_skip_queue.py +7 -0
- label_studio_sdk/{prompts/types/prompts_batch_failed_predictions_response.py → projects/types/projects_duplicate_response.py} +8 -5
- label_studio_sdk/projects/types/projects_import_tasks_response.py +2 -2
- label_studio_sdk/projects/types/projects_list_request_filter.py +1 -1
- label_studio_sdk/prompts/__init__.py +4 -10
- label_studio_sdk/prompts/client.py +511 -442
- label_studio_sdk/prompts/indicators/__init__.py +3 -0
- label_studio_sdk/prompts/indicators/client.py +47 -49
- label_studio_sdk/prompts/indicators/types/__init__.py +5 -0
- label_studio_sdk/{types/key_indicator_value.py → prompts/indicators/types/indicators_list_response_item.py} +3 -3
- label_studio_sdk/prompts/runs/client.py +113 -135
- label_studio_sdk/prompts/types/__init__.py +2 -12
- label_studio_sdk/prompts/types/prompts_compatible_projects_request_project_type.py +7 -0
- label_studio_sdk/prompts/versions/client.py +372 -312
- label_studio_sdk/tasks/__init__.py +2 -2
- label_studio_sdk/tasks/client.py +514 -213
- label_studio_sdk/tasks/types/__init__.py +1 -2
- label_studio_sdk/tokens/client.py +160 -152
- label_studio_sdk/tokens/client_ext.py +3 -3
- label_studio_sdk/types/__init__.py +258 -142
- label_studio_sdk/{webhooks/types/webhooks_update_request_actions_item.py → types/actions_enum.py} +4 -1
- label_studio_sdk/types/all_roles_project_list.py +197 -0
- label_studio_sdk/types/all_roles_project_list_sampling.py +7 -0
- label_studio_sdk/types/all_roles_project_list_skip_queue.py +7 -0
- label_studio_sdk/types/annotated_enum.py +5 -0
- label_studio_sdk/types/annotation.py +24 -10
- label_studio_sdk/types/annotation_last_action.py +3 -15
- label_studio_sdk/types/{annotations_dm_field.py → annotation_request.py} +21 -30
- label_studio_sdk/types/annotation_request_last_action.py +7 -0
- label_studio_sdk/types/assignment_settings.py +31 -0
- label_studio_sdk/types/assignment_settings_label_stream_task_distribution.py +7 -0
- label_studio_sdk/types/assignment_settings_request.py +32 -0
- label_studio_sdk/types/assignment_settings_request_label_stream_task_distribution.py +7 -0
- label_studio_sdk/types/{key_indicators_item_additional_kpis_item.py → associated_project.py} +9 -6
- label_studio_sdk/types/auth_method_enum.py +5 -0
- label_studio_sdk/types/azure_blob_export_storage.py +8 -12
- label_studio_sdk/types/azure_blob_import_storage.py +8 -12
- label_studio_sdk/types/{prompt_associated_projects_item_id.py → batch_failed_predictions.py} +4 -4
- label_studio_sdk/types/{access_token_response.py → batch_predictions.py} +6 -8
- label_studio_sdk/types/blank_enum.py +5 -0
- label_studio_sdk/types/{key_indicators_item_extra_kpis_item.py → blueprint_list.py} +12 -6
- label_studio_sdk/types/budget_reset_period_enum.py +5 -0
- label_studio_sdk/types/child_filter.py +44 -0
- label_studio_sdk/types/comment.py +39 -14
- label_studio_sdk/types/comment_request.py +32 -0
- label_studio_sdk/types/comment_serializer_with_expanded_user.py +53 -0
- label_studio_sdk/types/converted_format.py +5 -5
- label_studio_sdk/types/{api_token_response.py → converted_format_request.py} +8 -15
- label_studio_sdk/types/custom_scripts_editable_by_enum.py +5 -0
- label_studio_sdk/types/default_role_enum.py +5 -0
- label_studio_sdk/types/edition_enum.py +5 -0
- label_studio_sdk/types/export.py +7 -7
- label_studio_sdk/types/file_upload.py +5 -5
- label_studio_sdk/types/filter.py +9 -6
- label_studio_sdk/types/filter_group.py +3 -3
- label_studio_sdk/types/finished_enum.py +5 -0
- label_studio_sdk/types/gcs_export_storage.py +8 -12
- label_studio_sdk/types/gcs_import_storage.py +8 -12
- label_studio_sdk/types/{rotate_token_response.py → hotkeys.py} +5 -8
- label_studio_sdk/types/{base_task.py → import_api_request.py} +11 -34
- label_studio_sdk/types/inference_run_cost_estimate.py +2 -2
- label_studio_sdk/types/label_stream_task_distribution_enum.py +5 -0
- label_studio_sdk/types/{annotations_dm_field_last_action.py → last_action_enum.py} +1 -1
- label_studio_sdk/types/local_files_export_storage.py +8 -12
- label_studio_sdk/types/local_files_import_storage.py +8 -12
- label_studio_sdk/types/{annotation_filter_options.py → lse_annotation_filter_options.py} +12 -2
- label_studio_sdk/types/lse_annotation_filter_options_request.py +42 -0
- label_studio_sdk/types/lse_annotation_filter_options_request_reviewed.py +7 -0
- label_studio_sdk/types/lse_annotation_filter_options_reviewed.py +7 -0
- label_studio_sdk/types/{export_snapshot.py → lse_export_create.py} +11 -11
- label_studio_sdk/types/lse_fields.py +49 -0
- label_studio_sdk/types/lse_fields_onboarding_state.py +8 -0
- label_studio_sdk/types/lse_fields_trial_role.py +8 -0
- label_studio_sdk/types/lse_key_indicator_value.py +35 -0
- label_studio_sdk/types/lse_organization.py +57 -0
- label_studio_sdk/types/lse_organization_custom_scripts_editable_by.py +7 -0
- label_studio_sdk/types/lse_project_create.py +196 -0
- label_studio_sdk/types/lse_project_create_sampling.py +7 -0
- label_studio_sdk/types/lse_project_create_skip_queue.py +7 -0
- label_studio_sdk/types/lse_project_update.py +215 -0
- label_studio_sdk/types/lse_project_update_sampling.py +7 -0
- label_studio_sdk/types/lse_project_update_skip_queue.py +7 -0
- label_studio_sdk/types/lse_s3export_storage.py +134 -0
- label_studio_sdk/{import_storage/s3/types/s3create_response.py → types/lse_s3export_storage_request.py} +47 -21
- label_studio_sdk/{import_storage/s3/types/s3update_response.py → types/lse_s3import_storage.py} +60 -21
- label_studio_sdk/types/{s3s_import_storage.py → lse_s3import_storage_request.py} +32 -21
- label_studio_sdk/types/lse_task.py +117 -0
- label_studio_sdk/types/{data_manager_task_serializer_drafts_item.py → lse_task_drafts_item.py} +2 -2
- label_studio_sdk/types/lse_task_filter_options.py +63 -0
- label_studio_sdk/types/lse_task_filter_options_annotated.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_finished.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_request.py +63 -0
- label_studio_sdk/types/lse_task_filter_options_request_annotated.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_request_finished.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_request_reviewed.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_request_skipped.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_reviewed.py +7 -0
- label_studio_sdk/types/lse_task_filter_options_skipped.py +7 -0
- label_studio_sdk/types/{data_manager_task_serializer_predictions_item.py → lse_task_predictions_item.py} +4 -5
- label_studio_sdk/types/lse_task_serializer_for_annotators.py +54 -0
- label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +22 -0
- label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +28 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +117 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +22 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +28 -0
- label_studio_sdk/types/lse_user.py +49 -0
- label_studio_sdk/types/{base_user.py → lse_user_api.py} +17 -6
- label_studio_sdk/types/lseapi_token_create.py +21 -0
- label_studio_sdk/types/lseapi_token_list.py +21 -0
- label_studio_sdk/types/lsejwt_settings.py +32 -0
- label_studio_sdk/types/maybe_expanded_comment.py +7 -0
- label_studio_sdk/types/ml_backend.py +16 -17
- label_studio_sdk/types/mode_enum.py +5 -0
- label_studio_sdk/types/model_interface.py +44 -0
- label_studio_sdk/types/model_interface_request.py +40 -0
- label_studio_sdk/types/model_interface_serializer_get.py +45 -0
- label_studio_sdk/types/model_provider_connection.py +48 -17
- label_studio_sdk/types/model_provider_connection_budget_reset_period.py +3 -1
- label_studio_sdk/types/model_provider_connection_request.py +71 -0
- label_studio_sdk/types/model_run.py +40 -0
- label_studio_sdk/types/{inference_run_status.py → model_run_status_enum.py} +1 -1
- label_studio_sdk/types/null_enum.py +3 -0
- label_studio_sdk/types/onboarding_state_enum.py +7 -0
- label_studio_sdk/types/organization_billing.py +20 -0
- label_studio_sdk/types/organization_id.py +28 -0
- label_studio_sdk/types/organization_invite.py +20 -0
- label_studio_sdk/types/organization_member.py +37 -0
- label_studio_sdk/types/organization_membership.py +24 -0
- label_studio_sdk/{projects/types/projects_list_response.py → types/paginated_all_roles_project_list_list.py} +5 -5
- label_studio_sdk/types/{jwt_settings_response.py → paginated_role_based_task_list.py} +11 -9
- label_studio_sdk/types/pause.py +55 -14
- label_studio_sdk/types/pause_request.py +41 -0
- label_studio_sdk/types/prediction.py +7 -11
- label_studio_sdk/types/prediction_request.py +56 -0
- label_studio_sdk/types/project.py +32 -39
- label_studio_sdk/types/project_import.py +12 -13
- label_studio_sdk/types/project_label_config.py +2 -2
- label_studio_sdk/types/project_label_config_request.py +22 -0
- label_studio_sdk/types/project_sampling.py +3 -3
- label_studio_sdk/types/project_skip_queue.py +3 -1
- label_studio_sdk/types/project_subset_enum.py +5 -0
- label_studio_sdk/types/{prompt_version_provider.py → provider_enum.py} +1 -1
- label_studio_sdk/types/reason_enum.py +7 -0
- label_studio_sdk/types/redis_export_storage.py +8 -12
- label_studio_sdk/types/redis_import_storage.py +8 -12
- label_studio_sdk/types/refined_prompt_response.py +5 -6
- label_studio_sdk/types/requeue_rejected_tasks_mode_enum.py +5 -0
- label_studio_sdk/types/review_criteria_enum.py +5 -0
- label_studio_sdk/types/review_settings.py +80 -0
- label_studio_sdk/types/review_settings_request.py +80 -0
- label_studio_sdk/types/review_settings_request_requeue_rejected_tasks_mode.py +8 -0
- label_studio_sdk/types/review_settings_request_review_criteria.py +7 -0
- label_studio_sdk/types/review_settings_requeue_rejected_tasks_mode.py +8 -0
- label_studio_sdk/types/review_settings_review_criteria.py +7 -0
- label_studio_sdk/types/reviewed_enum.py +5 -0
- label_studio_sdk/types/role_based_task.py +8 -0
- label_studio_sdk/types/s3export_storage.py +8 -12
- label_studio_sdk/types/s3import_storage.py +8 -12
- label_studio_sdk/types/sampling_enum.py +7 -0
- label_studio_sdk/types/scope_enum.py +5 -0
- label_studio_sdk/types/selected_items_request.py +23 -0
- label_studio_sdk/types/serialization_option.py +2 -6
- label_studio_sdk/types/serialization_option_request.py +22 -0
- label_studio_sdk/types/serialization_options.py +17 -5
- label_studio_sdk/types/serialization_options_request.py +47 -0
- label_studio_sdk/types/skill_name_enum.py +5 -0
- label_studio_sdk/types/skip_queue_enum.py +5 -0
- label_studio_sdk/types/skipped_enum.py +5 -0
- label_studio_sdk/types/state_enum.py +5 -0
- label_studio_sdk/types/status7bf_enum.py +5 -0
- label_studio_sdk/types/{azure_blob_import_storage_status.py → status_c5a_enum.py} +2 -2
- label_studio_sdk/types/third_party_model_version.py +65 -0
- label_studio_sdk/types/third_party_model_version_request.py +54 -0
- label_studio_sdk/types/token_refresh_response.py +19 -0
- label_studio_sdk/types/token_rotate_response.py +19 -0
- label_studio_sdk/types/trial_role_enum.py +16 -0
- label_studio_sdk/types/user_simple.py +8 -5
- label_studio_sdk/types/user_simple_request.py +28 -0
- label_studio_sdk/types/version_response.py +49 -0
- label_studio_sdk/types/view.py +8 -15
- label_studio_sdk/types/webhook.py +9 -13
- label_studio_sdk/types/webhook_serializer_for_update.py +15 -13
- label_studio_sdk/types/workspace.py +14 -34
- label_studio_sdk/types/workspace_member_create.py +27 -0
- label_studio_sdk/types/workspace_member_list.py +24 -0
- label_studio_sdk/users/client.py +604 -87
- label_studio_sdk/users/types/users_get_token_response.py +4 -11
- label_studio_sdk/users/types/users_reset_token_response.py +4 -11
- label_studio_sdk/versions/__init__.py +0 -3
- label_studio_sdk/versions/client.py +14 -14
- label_studio_sdk/views/client.py +227 -141
- label_studio_sdk/views/types/views_create_request_data.py +2 -2
- label_studio_sdk/views/types/views_create_request_data_filters.py +2 -2
- label_studio_sdk/views/types/views_create_request_data_filters_items_item.py +2 -2
- label_studio_sdk/views/types/views_update_request_data.py +2 -2
- label_studio_sdk/views/types/views_update_request_data_filters.py +2 -2
- label_studio_sdk/views/types/views_update_request_data_filters_items_item.py +2 -2
- label_studio_sdk/webhooks/__init__.py +36 -2
- label_studio_sdk/webhooks/client.py +173 -367
- label_studio_sdk/webhooks/types/__init__.py +34 -2
- label_studio_sdk/webhooks/types/webhooks_info_response.py +80 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +24 -0
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +24 -0
- label_studio_sdk/workspaces/__init__.py +1 -2
- label_studio_sdk/workspaces/client.py +97 -117
- label_studio_sdk/workspaces/members/__init__.py +0 -3
- label_studio_sdk/workspaces/members/client.py +65 -81
- {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.0.dist-info}/METADATA +1 -1
- label_studio_sdk-2.0.0.dist-info/RECORD +424 -0
- {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.0.dist-info}/WHEEL +1 -1
- label_studio_sdk/annotations/types/annotations_create_bulk_request_selected_items.py +0 -34
- label_studio_sdk/export_storage/azure/types/__init__.py +0 -6
- label_studio_sdk/export_storage/azure/types/azure_create_response.py +0 -57
- label_studio_sdk/export_storage/azure/types/azure_update_response.py +0 -57
- label_studio_sdk/export_storage/gcs/types/__init__.py +0 -6
- label_studio_sdk/export_storage/gcs/types/gcs_create_response.py +0 -57
- label_studio_sdk/export_storage/gcs/types/gcs_update_response.py +0 -57
- label_studio_sdk/export_storage/local/types/__init__.py +0 -6
- label_studio_sdk/export_storage/local/types/local_create_response.py +0 -47
- label_studio_sdk/export_storage/local/types/local_update_response.py +0 -47
- label_studio_sdk/export_storage/redis/types/__init__.py +0 -6
- label_studio_sdk/export_storage/redis/types/redis_create_response.py +0 -62
- label_studio_sdk/export_storage/redis/types/redis_update_response.py +0 -62
- label_studio_sdk/export_storage/s3/types/__init__.py +0 -6
- label_studio_sdk/export_storage/s3/types/s3create_response.py +0 -81
- label_studio_sdk/export_storage/s3/types/s3update_response.py +0 -81
- label_studio_sdk/import_storage/azure/types/__init__.py +0 -6
- label_studio_sdk/import_storage/azure/types/azure_create_response.py +0 -72
- label_studio_sdk/import_storage/azure/types/azure_update_response.py +0 -72
- label_studio_sdk/import_storage/gcs/types/__init__.py +0 -6
- label_studio_sdk/import_storage/gcs/types/gcs_create_response.py +0 -72
- label_studio_sdk/import_storage/gcs/types/gcs_update_response.py +0 -72
- label_studio_sdk/import_storage/local/types/__init__.py +0 -6
- label_studio_sdk/import_storage/local/types/local_create_response.py +0 -47
- label_studio_sdk/import_storage/local/types/local_update_response.py +0 -47
- label_studio_sdk/import_storage/redis/types/__init__.py +0 -6
- label_studio_sdk/import_storage/redis/types/redis_create_response.py +0 -62
- label_studio_sdk/import_storage/redis/types/redis_update_response.py +0 -62
- label_studio_sdk/import_storage/s3/types/__init__.py +0 -6
- label_studio_sdk/ml/types/ml_create_response.py +0 -68
- label_studio_sdk/ml/types/ml_create_response_auth_method.py +0 -5
- label_studio_sdk/ml/types/ml_update_response.py +0 -68
- label_studio_sdk/ml/types/ml_update_response_auth_method.py +0 -5
- label_studio_sdk/projects/exports/types/exports_list_formats_response_item.py +0 -44
- label_studio_sdk/projects/types/projects_create_response.py +0 -91
- label_studio_sdk/projects/types/projects_update_response.py +0 -96
- label_studio_sdk/prompts/types/prompts_batch_failed_predictions_request_failed_predictions_item.py +0 -32
- label_studio_sdk/prompts/types/prompts_batch_predictions_request_results_item.py +0 -59
- label_studio_sdk/tasks/types/tasks_list_response.py +0 -38
- label_studio_sdk/types/annotation_completed_by.py +0 -6
- label_studio_sdk/types/azure_blob_export_storage_status.py +0 -7
- label_studio_sdk/types/base_task_updated_by.py +0 -7
- label_studio_sdk/types/comment_created_by.py +0 -5
- label_studio_sdk/types/converted_format_status.py +0 -5
- label_studio_sdk/types/data_manager_task_serializer.py +0 -118
- label_studio_sdk/types/data_manager_task_serializer_annotators_item.py +0 -5
- label_studio_sdk/types/data_manager_task_serializer_comment_authors_item.py +0 -5
- label_studio_sdk/types/data_manager_task_serializer_predictions_item_model_run.py +0 -5
- label_studio_sdk/types/export_format.py +0 -25
- label_studio_sdk/types/export_snapshot_status.py +0 -5
- label_studio_sdk/types/export_status.py +0 -5
- label_studio_sdk/types/gcs_export_storage_status.py +0 -7
- label_studio_sdk/types/gcs_import_storage_status.py +0 -7
- label_studio_sdk/types/inference_run.py +0 -34
- label_studio_sdk/types/inference_run_created_by.py +0 -5
- label_studio_sdk/types/inference_run_organization.py +0 -5
- label_studio_sdk/types/inference_run_project_subset.py +0 -5
- label_studio_sdk/types/key_indicators.py +0 -6
- label_studio_sdk/types/key_indicators_item.py +0 -41
- label_studio_sdk/types/local_files_export_storage_status.py +0 -7
- label_studio_sdk/types/local_files_import_storage_status.py +0 -7
- label_studio_sdk/types/ml_backend_auth_method.py +0 -5
- label_studio_sdk/types/ml_backend_state.py +0 -5
- label_studio_sdk/types/model_provider_connection_created_by.py +0 -5
- label_studio_sdk/types/model_provider_connection_organization.py +0 -5
- label_studio_sdk/types/model_provider_connection_provider.py +0 -7
- label_studio_sdk/types/model_provider_connection_scope.py +0 -5
- label_studio_sdk/types/pause_paused_by.py +0 -5
- label_studio_sdk/types/project_import_status.py +0 -5
- label_studio_sdk/types/prompt.py +0 -71
- label_studio_sdk/types/prompt_associated_projects_item.py +0 -6
- label_studio_sdk/types/prompt_created_by.py +0 -5
- label_studio_sdk/types/prompt_organization.py +0 -5
- label_studio_sdk/types/prompt_version.py +0 -32
- label_studio_sdk/types/prompt_version_created_by.py +0 -5
- label_studio_sdk/types/prompt_version_organization.py +0 -5
- label_studio_sdk/types/redis_export_storage_status.py +0 -7
- label_studio_sdk/types/redis_import_storage_status.py +0 -7
- label_studio_sdk/types/refined_prompt_response_refinement_status.py +0 -7
- label_studio_sdk/types/s3export_storage_status.py +0 -7
- label_studio_sdk/types/s3import_storage_status.py +0 -7
- label_studio_sdk/types/s3s_export_storage.py +0 -73
- label_studio_sdk/types/s3s_import_storage_status.py +0 -7
- label_studio_sdk/types/task.py +0 -156
- label_studio_sdk/types/task_annotators_item.py +0 -5
- label_studio_sdk/types/task_comment_authors_item.py +0 -5
- label_studio_sdk/types/task_filter_options.py +0 -39
- label_studio_sdk/types/webhook_actions_item.py +0 -21
- label_studio_sdk/types/webhook_serializer_for_update_actions_item.py +0 -21
- label_studio_sdk/versions/types/__init__.py +0 -6
- label_studio_sdk/versions/types/versions_get_response.py +0 -73
- label_studio_sdk/versions/types/versions_get_response_edition.py +0 -5
- label_studio_sdk/workspaces/members/types/__init__.py +0 -6
- label_studio_sdk/workspaces/members/types/members_create_response.py +0 -22
- label_studio_sdk/workspaces/members/types/members_list_response_item.py +0 -22
- label_studio_sdk-1.0.20.dist-info/RECORD +0 -374
- {label_studio_sdk-1.0.20.dist-info → label_studio_sdk-2.0.0.dist-info}/LICENSE +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .lse_task_serializer_for_reviewers_predictions_item import LseTaskSerializerForReviewersPredictionsItem
|
|
6
|
+
import pydantic
|
|
7
|
+
from .lse_task_serializer_for_reviewers_drafts_item import LseTaskSerializerForReviewersDraftsItem
|
|
8
|
+
import datetime as dt
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LseTaskSerializerForReviewers(UncheckedBaseModel):
|
|
13
|
+
"""
|
|
14
|
+
Task Serializer with project scheme configs validation
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
id: int
|
|
18
|
+
agreement: str
|
|
19
|
+
predictions: typing.List[LseTaskSerializerForReviewersPredictionsItem] = pydantic.Field()
|
|
20
|
+
"""
|
|
21
|
+
Predictions for this task
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
annotations: str
|
|
25
|
+
drafts: typing.List[LseTaskSerializerForReviewersDraftsItem] = pydantic.Field()
|
|
26
|
+
"""
|
|
27
|
+
Drafts for this task
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
annotators: typing.List[int] = pydantic.Field()
|
|
31
|
+
"""
|
|
32
|
+
Annotators IDs who annotated this task
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
inner_id: typing.Optional[int] = None
|
|
36
|
+
cancelled_annotations: typing.Optional[int] = None
|
|
37
|
+
total_annotations: typing.Optional[int] = None
|
|
38
|
+
total_predictions: typing.Optional[int] = None
|
|
39
|
+
completed_at: typing.Optional[dt.datetime] = None
|
|
40
|
+
annotations_results: str
|
|
41
|
+
predictions_results: str
|
|
42
|
+
predictions_score: typing.Optional[float] = None
|
|
43
|
+
file_upload: str
|
|
44
|
+
storage_filename: str
|
|
45
|
+
annotations_ids: str
|
|
46
|
+
predictions_model_versions: str
|
|
47
|
+
avg_lead_time: typing.Optional[float] = None
|
|
48
|
+
draft_exists: typing.Optional[bool] = None
|
|
49
|
+
updated_by: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
|
|
50
|
+
"""
|
|
51
|
+
User IDs who updated this task
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
reviewers: typing.List[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
55
|
+
comments: str
|
|
56
|
+
comment_authors: typing.List[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
57
|
+
reviewed: typing.Optional[bool] = None
|
|
58
|
+
reviews_accepted: typing.Optional[int] = None
|
|
59
|
+
reviews_rejected: typing.Optional[int] = None
|
|
60
|
+
ground_truth: typing.Optional[bool] = None
|
|
61
|
+
annotators_count: int = pydantic.Field()
|
|
62
|
+
"""
|
|
63
|
+
The annotators_count is calculated as the number of users with annotations (can be repeated, so same as the number of annotations) + the number of assignees without annotations.
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
reviewers_count: int
|
|
67
|
+
comment_authors_count: int
|
|
68
|
+
data: typing.Optional[typing.Any] = None
|
|
69
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
70
|
+
created_at: dt.datetime = pydantic.Field()
|
|
71
|
+
"""
|
|
72
|
+
Time a task was created
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
updated_at: dt.datetime = pydantic.Field()
|
|
76
|
+
"""
|
|
77
|
+
Last time a task was updated
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
is_labeled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
81
|
+
"""
|
|
82
|
+
True if the number of annotations for this task is greater than or equal to the number of maximum_completions for the project
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
overlap: typing.Optional[int] = pydantic.Field(default=None)
|
|
86
|
+
"""
|
|
87
|
+
Number of distinct annotators that processed the current task
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
comment_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
91
|
+
"""
|
|
92
|
+
Number of comments in the task including all annotations
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
unresolved_comment_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
96
|
+
"""
|
|
97
|
+
Number of unresolved comments in the task including all annotations
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
last_comment_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
101
|
+
"""
|
|
102
|
+
When the last comment was updated
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
project: typing.Optional[int] = pydantic.Field(default=None)
|
|
106
|
+
"""
|
|
107
|
+
Project ID for this task
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
if IS_PYDANTIC_V2:
|
|
111
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
112
|
+
else:
|
|
113
|
+
|
|
114
|
+
class Config:
|
|
115
|
+
frozen = True
|
|
116
|
+
smart_union = True
|
|
117
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import datetime as dt
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LseTaskSerializerForReviewersDraftsItem(UncheckedBaseModel):
|
|
11
|
+
result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
|
|
12
|
+
created_at: typing.Optional[dt.datetime] = None
|
|
13
|
+
updated_at: typing.Optional[dt.datetime] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import datetime as dt
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LseTaskSerializerForReviewersPredictionsItem(UncheckedBaseModel):
|
|
11
|
+
result: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
|
|
12
|
+
score: typing.Optional[float] = None
|
|
13
|
+
model_version: typing.Optional[str] = None
|
|
14
|
+
model: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
15
|
+
model_run: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
16
|
+
task: typing.Optional[int] = None
|
|
17
|
+
project: typing.Optional[int] = None
|
|
18
|
+
created_at: typing.Optional[dt.datetime] = None
|
|
19
|
+
updated_at: typing.Optional[dt.datetime] = None
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
+
else:
|
|
24
|
+
|
|
25
|
+
class Config:
|
|
26
|
+
frozen = True
|
|
27
|
+
smart_union = True
|
|
28
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import datetime as dt
|
|
6
|
+
import pydantic
|
|
7
|
+
from .organization_membership import OrganizationMembership
|
|
8
|
+
from .lse_fields import LseFields
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LseUser(UncheckedBaseModel):
|
|
13
|
+
"""
|
|
14
|
+
A ModelSerializer that takes additional arguments for
|
|
15
|
+
"fields", "omit" and "expand" in order to
|
|
16
|
+
control which fields are displayed, and whether to replace simple
|
|
17
|
+
values with complex, nested serializations
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
id: int
|
|
21
|
+
first_name: typing.Optional[str] = None
|
|
22
|
+
last_name: typing.Optional[str] = None
|
|
23
|
+
username: str
|
|
24
|
+
email: typing.Optional[str] = None
|
|
25
|
+
last_activity: dt.datetime
|
|
26
|
+
custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = None
|
|
27
|
+
avatar: str
|
|
28
|
+
initials: str
|
|
29
|
+
phone: typing.Optional[str] = None
|
|
30
|
+
active_organization: typing.Optional[int] = None
|
|
31
|
+
active_organization_meta: str
|
|
32
|
+
allow_newsletters: typing.Optional[bool] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
Allow sending newsletters to user
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
date_joined: typing.Optional[dt.datetime] = None
|
|
38
|
+
org_membership: typing.List[OrganizationMembership]
|
|
39
|
+
lse_fields: LseFields
|
|
40
|
+
pause: str
|
|
41
|
+
|
|
42
|
+
if IS_PYDANTIC_V2:
|
|
43
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
44
|
+
else:
|
|
45
|
+
|
|
46
|
+
class Config:
|
|
47
|
+
frozen = True
|
|
48
|
+
smart_union = True
|
|
49
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import datetime as dt
|
|
6
6
|
import pydantic
|
|
7
|
+
from .organization_membership import OrganizationMembership
|
|
7
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
class
|
|
11
|
-
|
|
11
|
+
class LseUserApi(UncheckedBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
A ModelSerializer that takes additional arguments for
|
|
14
|
+
"fields", "omit" and "expand" in order to
|
|
15
|
+
control which fields are displayed, and whether to replace simple
|
|
16
|
+
values with complex, nested serializations
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
id: int
|
|
12
20
|
first_name: typing.Optional[str] = None
|
|
13
21
|
last_name: typing.Optional[str] = None
|
|
14
22
|
username: str
|
|
15
23
|
email: typing.Optional[str] = None
|
|
16
|
-
last_activity:
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
last_activity: dt.datetime
|
|
25
|
+
custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = None
|
|
26
|
+
avatar: str
|
|
27
|
+
initials: str
|
|
19
28
|
phone: typing.Optional[str] = None
|
|
20
29
|
active_organization: typing.Optional[int] = None
|
|
30
|
+
active_organization_meta: str
|
|
21
31
|
allow_newsletters: typing.Optional[bool] = pydantic.Field(default=None)
|
|
22
32
|
"""
|
|
23
33
|
Allow sending newsletters to user
|
|
24
34
|
"""
|
|
25
35
|
|
|
26
36
|
date_joined: typing.Optional[dt.datetime] = None
|
|
37
|
+
org_membership: typing.List[OrganizationMembership]
|
|
27
38
|
|
|
28
39
|
if IS_PYDANTIC_V2:
|
|
29
40
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LseapiTokenCreate(UncheckedBaseModel):
|
|
10
|
+
token: str
|
|
11
|
+
created_at: str
|
|
12
|
+
expires_at: str
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LseapiTokenList(UncheckedBaseModel):
|
|
10
|
+
token: str
|
|
11
|
+
created_at: str
|
|
12
|
+
expires_at: str
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LsejwtSettings(UncheckedBaseModel):
|
|
10
|
+
api_tokens_enabled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
11
|
+
"""
|
|
12
|
+
Enable JWT API token authentication for this organization
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
legacy_api_tokens_enabled: typing.Optional[bool] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
Enable legacy API token authentication for this organization
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
api_token_ttl_days: typing.Optional[int] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Number of days before JWT API tokens expire
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
if IS_PYDANTIC_V2:
|
|
26
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
27
|
+
else:
|
|
28
|
+
|
|
29
|
+
class Config:
|
|
30
|
+
frozen = True
|
|
31
|
+
smart_union = True
|
|
32
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .comment import Comment
|
|
5
|
+
from .comment_serializer_with_expanded_user import CommentSerializerWithExpandedUser
|
|
6
|
+
|
|
7
|
+
MaybeExpandedComment = typing.Union[Comment, CommentSerializerWithExpandedUser]
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .
|
|
5
|
+
from .state_enum import StateEnum
|
|
6
6
|
import pydantic
|
|
7
|
-
from .
|
|
7
|
+
from .auth_method_enum import AuthMethodEnum
|
|
8
8
|
import datetime as dt
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class MlBackend(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
class MlBackend(UncheckedBaseModel):
|
|
13
|
+
"""
|
|
14
|
+
Serializer for MLBackend model.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
id: int
|
|
18
|
+
state: typing.Optional[StateEnum] = None
|
|
19
|
+
readable_state: str
|
|
16
20
|
is_interactive: typing.Optional[bool] = pydantic.Field(default=None)
|
|
17
21
|
"""
|
|
18
22
|
Used to interactively annotate tasks. If true, model returns one list with results
|
|
@@ -33,24 +37,19 @@ class MlBackend(UniversalBaseModel):
|
|
|
33
37
|
Name of the machine learning backend
|
|
34
38
|
"""
|
|
35
39
|
|
|
36
|
-
auth_method: typing.Optional[
|
|
40
|
+
auth_method: typing.Optional[AuthMethodEnum] = None
|
|
37
41
|
basic_auth_user: typing.Optional[str] = pydantic.Field(default=None)
|
|
38
42
|
"""
|
|
39
43
|
HTTP Basic Auth user
|
|
40
44
|
"""
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
basic_auth_pass_is_set: typing.Optional[str] = None
|
|
46
|
+
basic_auth_pass_is_set: str
|
|
44
47
|
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
45
48
|
"""
|
|
46
49
|
Description for the machine learning backend
|
|
47
50
|
"""
|
|
48
51
|
|
|
49
|
-
extra_params: typing.Optional[typing.
|
|
50
|
-
"""
|
|
51
|
-
Any extra parameters passed to the ML Backend during the setup
|
|
52
|
-
"""
|
|
53
|
-
|
|
52
|
+
extra_params: typing.Optional[typing.Optional[typing.Any]] = None
|
|
54
53
|
model_version: typing.Optional[str] = pydantic.Field(default=None)
|
|
55
54
|
"""
|
|
56
55
|
Current model version associated with this machine learning backend
|
|
@@ -61,8 +60,8 @@ class MlBackend(UniversalBaseModel):
|
|
|
61
60
|
Response model timeout
|
|
62
61
|
"""
|
|
63
62
|
|
|
64
|
-
created_at:
|
|
65
|
-
updated_at:
|
|
63
|
+
created_at: dt.datetime
|
|
64
|
+
updated_at: dt.datetime
|
|
66
65
|
auto_update: typing.Optional[bool] = pydantic.Field(default=None)
|
|
67
66
|
"""
|
|
68
67
|
If false, model version is set by the user, if true - getting latest version from backend.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .user_simple import UserSimple
|
|
6
|
+
import pydantic
|
|
7
|
+
from .skill_name_enum import SkillNameEnum
|
|
8
|
+
import datetime as dt
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ModelInterface(UncheckedBaseModel):
|
|
13
|
+
id: int
|
|
14
|
+
created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
User who created Dataset
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
skill_name: typing.Optional[SkillNameEnum] = None
|
|
20
|
+
title: str = pydantic.Field()
|
|
21
|
+
"""
|
|
22
|
+
Model name
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
Model description
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
created_at: dt.datetime
|
|
31
|
+
updated_at: dt.datetime
|
|
32
|
+
input_fields: typing.Optional[typing.Optional[typing.Any]] = None
|
|
33
|
+
output_classes: typing.Optional[typing.Optional[typing.Any]] = None
|
|
34
|
+
organization: typing.Optional[int] = None
|
|
35
|
+
associated_projects: typing.Optional[typing.List[int]] = None
|
|
36
|
+
|
|
37
|
+
if IS_PYDANTIC_V2:
|
|
38
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
39
|
+
else:
|
|
40
|
+
|
|
41
|
+
class Config:
|
|
42
|
+
frozen = True
|
|
43
|
+
smart_union = True
|
|
44
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .user_simple_request import UserSimpleRequest
|
|
6
|
+
import pydantic
|
|
7
|
+
from .skill_name_enum import SkillNameEnum
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ModelInterfaceRequest(UncheckedBaseModel):
|
|
12
|
+
created_by: typing.Optional[UserSimpleRequest] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
User who created Dataset
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
skill_name: typing.Optional[SkillNameEnum] = None
|
|
18
|
+
title: str = pydantic.Field()
|
|
19
|
+
"""
|
|
20
|
+
Model name
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
|
+
"""
|
|
25
|
+
Model description
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
input_fields: typing.Optional[typing.Optional[typing.Any]] = None
|
|
29
|
+
output_classes: typing.Optional[typing.Optional[typing.Any]] = None
|
|
30
|
+
organization: typing.Optional[int] = None
|
|
31
|
+
associated_projects: typing.Optional[typing.List[int]] = None
|
|
32
|
+
|
|
33
|
+
if IS_PYDANTIC_V2:
|
|
34
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
35
|
+
else:
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
frozen = True
|
|
39
|
+
smart_union = True
|
|
40
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .user_simple import UserSimple
|
|
6
|
+
import pydantic
|
|
7
|
+
from .skill_name_enum import SkillNameEnum
|
|
8
|
+
from .associated_project import AssociatedProject
|
|
9
|
+
import datetime as dt
|
|
10
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ModelInterfaceSerializerGet(UncheckedBaseModel):
|
|
14
|
+
id: int
|
|
15
|
+
created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
User who created Dataset
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
skill_name: typing.Optional[SkillNameEnum] = None
|
|
21
|
+
associated_projects: typing.Optional[typing.List[AssociatedProject]] = None
|
|
22
|
+
title: str = pydantic.Field()
|
|
23
|
+
"""
|
|
24
|
+
Model name
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
Model description
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
created_at: dt.datetime
|
|
33
|
+
updated_at: dt.datetime
|
|
34
|
+
input_fields: typing.Optional[typing.Optional[typing.Any]] = None
|
|
35
|
+
output_classes: typing.Optional[typing.Optional[typing.Any]] = None
|
|
36
|
+
organization: typing.Optional[int] = None
|
|
37
|
+
|
|
38
|
+
if IS_PYDANTIC_V2:
|
|
39
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
40
|
+
else:
|
|
41
|
+
|
|
42
|
+
class Config:
|
|
43
|
+
frozen = True
|
|
44
|
+
smart_union = True
|
|
45
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,30 +1,56 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
4
|
-
from .
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .user_simple import UserSimple
|
|
5
|
+
import pydantic
|
|
5
6
|
import typing
|
|
6
|
-
from .
|
|
7
|
-
from .
|
|
8
|
-
from .model_provider_connection_created_by import ModelProviderConnectionCreatedBy
|
|
7
|
+
from .provider_enum import ProviderEnum
|
|
8
|
+
from .scope_enum import ScopeEnum
|
|
9
9
|
import datetime as dt
|
|
10
|
-
import pydantic
|
|
11
10
|
from .model_provider_connection_budget_reset_period import ModelProviderConnectionBudgetResetPeriod
|
|
12
11
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
class ModelProviderConnection(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
class ModelProviderConnection(UncheckedBaseModel):
|
|
15
|
+
id: int
|
|
16
|
+
created_by: UserSimple
|
|
17
|
+
model_params: str = pydantic.Field()
|
|
18
|
+
"""
|
|
19
|
+
JSON schema for the model parameters available for the provider
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
provider: typing.Optional[ProviderEnum] = None
|
|
23
|
+
deployment_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
|
+
"""
|
|
25
|
+
Azure OpenAI deployment name
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
endpoint: typing.Optional[str] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
Azure OpenAI endpoint
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
|
+
"""
|
|
35
|
+
Google project ID
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
google_location: typing.Optional[str] = pydantic.Field(default=None)
|
|
39
|
+
"""
|
|
40
|
+
Google project location
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
cached_available_models: typing.Optional[str] = pydantic.Field(default=None)
|
|
44
|
+
"""
|
|
45
|
+
List of available models from the provider
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
scope: typing.Optional[ScopeEnum] = None
|
|
49
|
+
created_at: dt.datetime
|
|
50
|
+
updated_at: dt.datetime
|
|
25
51
|
is_internal: typing.Optional[bool] = pydantic.Field(default=None)
|
|
26
52
|
"""
|
|
27
|
-
Whether the model provider connection is internal, not visible to the user
|
|
53
|
+
Whether the model provider connection is internal, not visible to the user
|
|
28
54
|
"""
|
|
29
55
|
|
|
30
56
|
budget_limit: typing.Optional[float] = pydantic.Field(default=None)
|
|
@@ -40,6 +66,9 @@ class ModelProviderConnection(UniversalBaseModel):
|
|
|
40
66
|
budget_reset_period: typing.Optional[ModelProviderConnectionBudgetResetPeriod] = pydantic.Field(default=None)
|
|
41
67
|
"""
|
|
42
68
|
Budget reset period for the model provider connection (null if not reset)
|
|
69
|
+
|
|
70
|
+
* `Monthly` - Monthly
|
|
71
|
+
* `Yearly` - Yearly
|
|
43
72
|
"""
|
|
44
73
|
|
|
45
74
|
budget_total_spent: typing.Optional[float] = pydantic.Field(default=None)
|
|
@@ -52,6 +81,8 @@ class ModelProviderConnection(UniversalBaseModel):
|
|
|
52
81
|
Budget alert threshold for the given provider connection
|
|
53
82
|
"""
|
|
54
83
|
|
|
84
|
+
organization: typing.Optional[int] = None
|
|
85
|
+
|
|
55
86
|
if IS_PYDANTIC_V2:
|
|
56
87
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
57
88
|
else:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
+
from .budget_reset_period_enum import BudgetResetPeriodEnum
|
|
5
|
+
from .null_enum import NullEnum
|
|
4
6
|
|
|
5
|
-
ModelProviderConnectionBudgetResetPeriod = typing.Union[
|
|
7
|
+
ModelProviderConnectionBudgetResetPeriod = typing.Union[BudgetResetPeriodEnum, NullEnum]
|