label-studio-sdk 2.0.0__py3-none-any.whl → 2.0.2__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 +24 -0
- label_studio_sdk/actions/client.py +13 -13
- label_studio_sdk/actions/types/actions_list_response_item.py +3 -3
- label_studio_sdk/actions/types/actions_list_response_item_dialog.py +2 -2
- label_studio_sdk/annotations/client.py +441 -441
- label_studio_sdk/base_client.py +4 -0
- label_studio_sdk/billing/__init__.py +2 -0
- label_studio_sdk/billing/client.py +112 -0
- label_studio_sdk/comments/client.py +176 -176
- label_studio_sdk/export_storage/azure/client.py +274 -274
- label_studio_sdk/export_storage/gcs/client.py +263 -263
- label_studio_sdk/export_storage/local/client.py +206 -206
- label_studio_sdk/export_storage/redis/client.py +287 -287
- label_studio_sdk/export_storage/s3/client.py +347 -347
- label_studio_sdk/export_storage/s3s/client.py +678 -678
- label_studio_sdk/import_storage/azure/client.py +357 -357
- label_studio_sdk/import_storage/gcs/client.py +357 -357
- label_studio_sdk/import_storage/local/client.py +206 -206
- label_studio_sdk/import_storage/redis/client.py +309 -309
- label_studio_sdk/import_storage/s3/client.py +452 -452
- label_studio_sdk/import_storage/s3s/client.py +735 -735
- label_studio_sdk/jwt_settings/client.py +10 -10
- label_studio_sdk/ml/client.py +118 -118
- label_studio_sdk/ml/types/ml_list_model_versions_response.py +1 -1
- label_studio_sdk/model_providers/client.py +181 -181
- label_studio_sdk/organizations/members/client.py +348 -2
- label_studio_sdk/predictions/client.py +60 -60
- label_studio_sdk/projects/__init__.py +30 -1
- label_studio_sdk/projects/assignments/__init__.py +33 -0
- label_studio_sdk/projects/assignments/client.py +764 -0
- label_studio_sdk/projects/assignments/types/__init__.py +35 -0
- label_studio_sdk/projects/assignments/types/assignments_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters.py +33 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_conjunction.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item.py +44 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_filter.py +31 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_operator.py +23 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_value.py +7 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items.py +9 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_excluded.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_included.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_response.py +22 -0
- label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
- label_studio_sdk/projects/client.py +441 -425
- label_studio_sdk/projects/exports/client.py +55 -55
- label_studio_sdk/projects/exports/types/exports_convert_response.py +1 -1
- label_studio_sdk/projects/stats/types/stats_iaa_response.py +5 -5
- label_studio_sdk/projects/types/projects_import_tasks_response.py +12 -12
- label_studio_sdk/prompts/client.py +211 -211
- label_studio_sdk/prompts/runs/client.py +33 -33
- label_studio_sdk/prompts/versions/client.py +72 -72
- label_studio_sdk/tasks/client.py +174 -174
- label_studio_sdk/types/__init__.py +22 -0
- label_studio_sdk/types/all_roles_project_list.py +98 -98
- label_studio_sdk/types/annotation.py +35 -35
- label_studio_sdk/types/annotation_request.py +27 -27
- label_studio_sdk/types/azure_blob_export_storage.py +29 -29
- label_studio_sdk/types/azure_blob_import_storage.py +33 -33
- label_studio_sdk/types/batch_failed_predictions.py +1 -1
- label_studio_sdk/types/billing_checks.py +39 -0
- label_studio_sdk/types/billing_flags.py +44 -0
- label_studio_sdk/types/billing_info_response.py +22 -0
- label_studio_sdk/types/blueprint_list.py +7 -8
- label_studio_sdk/types/child_filter.py +11 -10
- label_studio_sdk/types/comment.py +15 -15
- label_studio_sdk/types/comment_request.py +7 -8
- label_studio_sdk/types/comment_serializer_with_expanded_user.py +17 -18
- label_studio_sdk/types/converted_format.py +1 -1
- label_studio_sdk/types/converted_format_request.py +1 -1
- label_studio_sdk/types/count_limit.py +22 -0
- label_studio_sdk/types/export.py +8 -8
- label_studio_sdk/types/file_upload.py +3 -2
- label_studio_sdk/types/filter.py +10 -9
- label_studio_sdk/types/filter_group.py +4 -3
- label_studio_sdk/types/gcs_export_storage.py +23 -23
- label_studio_sdk/types/gcs_import_storage.py +27 -27
- label_studio_sdk/types/import_api_request.py +26 -26
- label_studio_sdk/types/inference_run_cost_estimate.py +10 -10
- label_studio_sdk/types/local_files_export_storage.py +23 -23
- label_studio_sdk/types/local_files_import_storage.py +26 -26
- label_studio_sdk/types/lse_annotation_filter_options.py +10 -10
- label_studio_sdk/types/lse_annotation_filter_options_request.py +10 -10
- label_studio_sdk/types/lse_export_create.py +12 -12
- label_studio_sdk/types/lse_fields.py +14 -14
- label_studio_sdk/types/lse_organization.py +17 -17
- label_studio_sdk/types/lse_organization_member_list.py +32 -0
- label_studio_sdk/types/lse_project_create.py +72 -72
- label_studio_sdk/types/lse_project_update.py +89 -89
- label_studio_sdk/types/lse_s3export_storage.py +46 -46
- label_studio_sdk/types/lse_s3export_storage_request.py +43 -43
- label_studio_sdk/types/lse_s3import_storage.py +53 -53
- label_studio_sdk/types/lse_s3import_storage_request.py +49 -49
- label_studio_sdk/types/lse_task.py +49 -49
- label_studio_sdk/types/lse_task_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_filter_options.py +14 -14
- label_studio_sdk/types/lse_task_filter_options_request.py +14 -14
- label_studio_sdk/types/lse_task_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_annotators.py +12 -12
- label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +49 -49
- label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +5 -5
- label_studio_sdk/types/lse_user.py +13 -13
- label_studio_sdk/types/lse_user_api.py +11 -11
- label_studio_sdk/types/lse_user_organization_member_list.py +48 -0
- label_studio_sdk/types/lseapi_token_create.py +1 -1
- label_studio_sdk/types/lseapi_token_list.py +1 -1
- label_studio_sdk/types/lsejwt_settings.py +5 -5
- label_studio_sdk/types/ml_backend.py +27 -28
- label_studio_sdk/types/model_interface.py +12 -12
- label_studio_sdk/types/model_interface_request.py +7 -8
- label_studio_sdk/types/model_interface_serializer_get.py +13 -13
- label_studio_sdk/types/model_provider_connection.py +34 -34
- label_studio_sdk/types/model_provider_connection_request.py +15 -14
- label_studio_sdk/types/model_run.py +12 -12
- label_studio_sdk/types/organization_billing.py +1 -1
- label_studio_sdk/types/organization_id.py +2 -2
- label_studio_sdk/types/organization_invite.py +1 -1
- label_studio_sdk/types/organization_member.py +8 -9
- label_studio_sdk/types/organization_membership.py +2 -1
- label_studio_sdk/types/paginated_lse_organization_member_list_list.py +23 -0
- label_studio_sdk/types/pause.py +23 -23
- label_studio_sdk/types/prediction.py +21 -21
- label_studio_sdk/types/prediction_request.py +16 -16
- label_studio_sdk/types/project.py +72 -72
- label_studio_sdk/types/project_import.py +21 -21
- label_studio_sdk/types/prompts_status_enum.py +16 -0
- label_studio_sdk/types/redis_export_storage.py +34 -34
- label_studio_sdk/types/redis_import_storage.py +37 -37
- label_studio_sdk/types/refined_prompt_response.py +11 -11
- label_studio_sdk/types/review_settings.py +29 -30
- label_studio_sdk/types/review_settings_request.py +29 -30
- label_studio_sdk/types/role9e7enum.py +5 -0
- label_studio_sdk/types/s3export_storage.py +45 -45
- label_studio_sdk/types/s3import_storage.py +44 -44
- label_studio_sdk/types/selected_items_request.py +1 -1
- label_studio_sdk/types/serialization_options.py +10 -10
- label_studio_sdk/types/serialization_options_request.py +10 -10
- label_studio_sdk/types/task_assignment.py +43 -0
- label_studio_sdk/types/third_party_model_version.py +11 -11
- label_studio_sdk/types/third_party_model_version_request.py +6 -7
- label_studio_sdk/types/type_enum.py +5 -0
- label_studio_sdk/types/user_simple.py +3 -3
- label_studio_sdk/types/user_simple_request.py +1 -1
- label_studio_sdk/types/version_response.py +19 -20
- label_studio_sdk/types/view.py +8 -8
- label_studio_sdk/types/webhook.py +16 -16
- label_studio_sdk/types/webhook_serializer_for_update.py +16 -16
- label_studio_sdk/types/workspace.py +10 -11
- label_studio_sdk/users/client.py +160 -160
- label_studio_sdk/views/client.py +164 -164
- label_studio_sdk/webhooks/client.py +183 -183
- label_studio_sdk/webhooks/types/webhooks_info_response.py +32 -32
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +1 -1
- label_studio_sdk/workspaces/client.py +40 -40
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +73 -25
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +175 -146
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/WHEEL +0 -0
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
+
from .associated_project import AssociatedProject
|
|
6
|
+
import datetime as dt
|
|
5
7
|
from .user_simple import UserSimple
|
|
6
8
|
import pydantic
|
|
7
9
|
from .skill_name_enum import SkillNameEnum
|
|
8
|
-
from .associated_project import AssociatedProject
|
|
9
|
-
import datetime as dt
|
|
10
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class ModelInterfaceSerializerGet(UncheckedBaseModel):
|
|
14
|
-
|
|
14
|
+
associated_projects: typing.Optional[typing.List[AssociatedProject]] = None
|
|
15
|
+
created_at: dt.datetime
|
|
15
16
|
created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
|
|
16
17
|
"""
|
|
17
18
|
User who created Dataset
|
|
18
19
|
"""
|
|
19
20
|
|
|
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
21
|
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
22
|
"""
|
|
29
23
|
Model description
|
|
30
24
|
"""
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
updated_at: dt.datetime
|
|
26
|
+
id: int
|
|
34
27
|
input_fields: typing.Optional[typing.Optional[typing.Any]] = None
|
|
35
|
-
output_classes: typing.Optional[typing.Optional[typing.Any]] = None
|
|
36
28
|
organization: typing.Optional[int] = None
|
|
29
|
+
output_classes: typing.Optional[typing.Optional[typing.Any]] = None
|
|
30
|
+
skill_name: typing.Optional[SkillNameEnum] = None
|
|
31
|
+
title: str = pydantic.Field()
|
|
32
|
+
"""
|
|
33
|
+
Model name
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
updated_at: dt.datetime
|
|
37
37
|
|
|
38
38
|
if IS_PYDANTIC_V2:
|
|
39
39
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
from .user_simple import UserSimple
|
|
5
|
-
import pydantic
|
|
6
4
|
import typing
|
|
7
|
-
|
|
8
|
-
from .scope_enum import ScopeEnum
|
|
5
|
+
import pydantic
|
|
9
6
|
import datetime as dt
|
|
10
7
|
from .model_provider_connection_budget_reset_period import ModelProviderConnectionBudgetResetPeriod
|
|
8
|
+
from .user_simple import UserSimple
|
|
9
|
+
from .provider_enum import ProviderEnum
|
|
10
|
+
from .scope_enum import ScopeEnum
|
|
11
11
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class ModelProviderConnection(UncheckedBaseModel):
|
|
15
|
-
|
|
16
|
-
created_by: UserSimple
|
|
17
|
-
model_params: str = pydantic.Field()
|
|
15
|
+
budget_alert_threshold: typing.Optional[float] = pydantic.Field(default=None)
|
|
18
16
|
"""
|
|
19
|
-
|
|
17
|
+
Budget alert threshold for the given provider connection
|
|
20
18
|
"""
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
deployment_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
20
|
+
budget_last_reset_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
24
21
|
"""
|
|
25
|
-
|
|
22
|
+
Date and time the budget was last reset
|
|
26
23
|
"""
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
budget_limit: typing.Optional[float] = pydantic.Field(default=None)
|
|
29
26
|
"""
|
|
30
|
-
|
|
27
|
+
Budget limit for the model provider connection (null if unlimited)
|
|
31
28
|
"""
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
budget_reset_period: typing.Optional[ModelProviderConnectionBudgetResetPeriod] = pydantic.Field(default=None)
|
|
34
31
|
"""
|
|
35
|
-
|
|
32
|
+
Budget reset period for the model provider connection (null if not reset)
|
|
33
|
+
|
|
34
|
+
* `Monthly` - Monthly
|
|
35
|
+
* `Yearly` - Yearly
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
budget_total_spent: typing.Optional[float] = pydantic.Field(default=None)
|
|
39
39
|
"""
|
|
40
|
-
|
|
40
|
+
Tracked total budget spent for the given provider connection within the current budget period
|
|
41
41
|
"""
|
|
42
42
|
|
|
43
43
|
cached_available_models: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -45,43 +45,43 @@ class ModelProviderConnection(UncheckedBaseModel):
|
|
|
45
45
|
List of available models from the provider
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
|
-
scope: typing.Optional[ScopeEnum] = None
|
|
49
48
|
created_at: dt.datetime
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
created_by: UserSimple
|
|
50
|
+
deployment_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
52
51
|
"""
|
|
53
|
-
|
|
52
|
+
Azure OpenAI deployment name
|
|
54
53
|
"""
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
endpoint: typing.Optional[str] = pydantic.Field(default=None)
|
|
57
56
|
"""
|
|
58
|
-
|
|
57
|
+
Azure OpenAI endpoint
|
|
59
58
|
"""
|
|
60
59
|
|
|
61
|
-
|
|
60
|
+
google_location: typing.Optional[str] = pydantic.Field(default=None)
|
|
62
61
|
"""
|
|
63
|
-
|
|
62
|
+
Google project location
|
|
64
63
|
"""
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
67
66
|
"""
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* `Monthly` - Monthly
|
|
71
|
-
* `Yearly` - Yearly
|
|
67
|
+
Google project ID
|
|
72
68
|
"""
|
|
73
69
|
|
|
74
|
-
|
|
70
|
+
id: int
|
|
71
|
+
is_internal: typing.Optional[bool] = pydantic.Field(default=None)
|
|
75
72
|
"""
|
|
76
|
-
|
|
73
|
+
Whether the model provider connection is internal, not visible to the user
|
|
77
74
|
"""
|
|
78
75
|
|
|
79
|
-
|
|
76
|
+
model_params: str = pydantic.Field()
|
|
80
77
|
"""
|
|
81
|
-
|
|
78
|
+
JSON schema for the model parameters available for the provider
|
|
82
79
|
"""
|
|
83
80
|
|
|
84
81
|
organization: typing.Optional[int] = None
|
|
82
|
+
provider: typing.Optional[ProviderEnum] = None
|
|
83
|
+
scope: typing.Optional[ScopeEnum] = None
|
|
84
|
+
updated_at: dt.datetime
|
|
85
85
|
|
|
86
86
|
if IS_PYDANTIC_V2:
|
|
87
87
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .provider_enum import ProviderEnum
|
|
6
5
|
import pydantic
|
|
6
|
+
from .provider_enum import ProviderEnum
|
|
7
7
|
from .scope_enum import ScopeEnum
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class ModelProviderConnectionRequest(UncheckedBaseModel):
|
|
12
|
-
provider: typing.Optional[ProviderEnum] = None
|
|
13
12
|
api_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
14
13
|
"""
|
|
15
14
|
Model provider API key
|
|
@@ -20,6 +19,16 @@ class ModelProviderConnectionRequest(UncheckedBaseModel):
|
|
|
20
19
|
Model provider Auth token
|
|
21
20
|
"""
|
|
22
21
|
|
|
22
|
+
budget_alert_threshold: typing.Optional[float] = pydantic.Field(default=None)
|
|
23
|
+
"""
|
|
24
|
+
Budget alert threshold for the given provider connection
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
cached_available_models: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
List of available models from the provider
|
|
30
|
+
"""
|
|
31
|
+
|
|
23
32
|
deployment_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
33
|
"""
|
|
25
34
|
Azure OpenAI deployment name
|
|
@@ -35,31 +44,23 @@ class ModelProviderConnectionRequest(UncheckedBaseModel):
|
|
|
35
44
|
The content of GOOGLE_APPLICATION_CREDENTIALS json file
|
|
36
45
|
"""
|
|
37
46
|
|
|
38
|
-
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
39
|
-
"""
|
|
40
|
-
Google project ID
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
47
|
google_location: typing.Optional[str] = pydantic.Field(default=None)
|
|
44
48
|
"""
|
|
45
49
|
Google project location
|
|
46
50
|
"""
|
|
47
51
|
|
|
48
|
-
|
|
52
|
+
google_project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
49
53
|
"""
|
|
50
|
-
|
|
54
|
+
Google project ID
|
|
51
55
|
"""
|
|
52
56
|
|
|
53
|
-
scope: typing.Optional[ScopeEnum] = None
|
|
54
57
|
is_internal: typing.Optional[bool] = pydantic.Field(default=None)
|
|
55
58
|
"""
|
|
56
59
|
Whether the model provider connection is internal, not visible to the user
|
|
57
60
|
"""
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Budget alert threshold for the given provider connection
|
|
62
|
-
"""
|
|
62
|
+
provider: typing.Optional[ProviderEnum] = None
|
|
63
|
+
scope: typing.Optional[ScopeEnum] = None
|
|
63
64
|
|
|
64
65
|
if IS_PYDANTIC_V2:
|
|
65
66
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
+
import datetime as dt
|
|
6
|
+
import pydantic
|
|
5
7
|
from .project_subset_enum import ProjectSubsetEnum
|
|
6
8
|
from .model_run_status_enum import ModelRunStatusEnum
|
|
7
|
-
import pydantic
|
|
8
|
-
import datetime as dt
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ModelRun(UncheckedBaseModel):
|
|
13
|
+
completed_at: typing.Optional[dt.datetime] = None
|
|
14
|
+
created_at: dt.datetime
|
|
15
|
+
created_by: typing.Optional[int] = None
|
|
13
16
|
id: int
|
|
14
|
-
parent_model: int
|
|
15
|
-
project_subset: typing.Optional[ProjectSubsetEnum] = None
|
|
16
|
-
status: ModelRunStatusEnum
|
|
17
17
|
job_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
18
18
|
"""
|
|
19
19
|
Job ID for inference job for a ModelRun e.g. Adala job ID
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
organization: typing.Optional[int] = None
|
|
23
|
+
parent_model: int
|
|
24
|
+
predictions_updated_at: typing.Optional[dt.datetime] = None
|
|
25
|
+
project: int
|
|
26
|
+
project_subset: typing.Optional[ProjectSubsetEnum] = None
|
|
27
|
+
status: ModelRunStatusEnum
|
|
23
28
|
total_correct_predictions: typing.Optional[int] = None
|
|
29
|
+
total_predictions: typing.Optional[int] = None
|
|
24
30
|
total_tasks: typing.Optional[int] = None
|
|
25
|
-
created_at: dt.datetime
|
|
26
31
|
triggered_at: typing.Optional[dt.datetime] = None
|
|
27
|
-
predictions_updated_at: typing.Optional[dt.datetime] = None
|
|
28
|
-
completed_at: typing.Optional[dt.datetime] = None
|
|
29
|
-
organization: typing.Optional[int] = None
|
|
30
|
-
project: int
|
|
31
|
-
created_by: typing.Optional[int] = None
|
|
32
32
|
|
|
33
33
|
if IS_PYDANTIC_V2:
|
|
34
34
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -7,8 +7,8 @@ import pydantic
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class OrganizationBilling(UncheckedBaseModel):
|
|
10
|
-
manual_workspace_management: str
|
|
11
10
|
manual_role_management: str
|
|
11
|
+
manual_workspace_management: str
|
|
12
12
|
|
|
13
13
|
if IS_PYDANTIC_V2:
|
|
14
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -13,10 +13,10 @@ class OrganizationId(UncheckedBaseModel):
|
|
|
13
13
|
which fields should be displayed.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
id: int
|
|
17
|
-
title: str
|
|
18
16
|
contact_info: typing.Optional[str] = None
|
|
19
17
|
created_at: dt.datetime
|
|
18
|
+
id: int
|
|
19
|
+
title: str
|
|
20
20
|
|
|
21
21
|
if IS_PYDANTIC_V2:
|
|
22
22
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -7,8 +7,8 @@ import pydantic
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class OrganizationInvite(UncheckedBaseModel):
|
|
10
|
-
token: typing.Optional[str] = None
|
|
11
10
|
invite_url: typing.Optional[str] = None
|
|
11
|
+
token: typing.Optional[str] = None
|
|
12
12
|
|
|
13
13
|
if IS_PYDANTIC_V2:
|
|
14
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import pydantic
|
|
5
4
|
import datetime as dt
|
|
5
|
+
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import typing
|
|
8
8
|
|
|
@@ -13,19 +13,18 @@ class OrganizationMember(UncheckedBaseModel):
|
|
|
13
13
|
which fields should be displayed.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"""
|
|
20
|
-
|
|
16
|
+
annotations_count: str
|
|
17
|
+
contributed_projects_count: str
|
|
18
|
+
created_at: dt.datetime
|
|
21
19
|
organization: int = pydantic.Field()
|
|
22
20
|
"""
|
|
23
21
|
Organization ID
|
|
24
22
|
"""
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
user: int = pydantic.Field()
|
|
25
|
+
"""
|
|
26
|
+
User ID
|
|
27
|
+
"""
|
|
29
28
|
|
|
30
29
|
if IS_PYDANTIC_V2:
|
|
31
30
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -7,13 +7,14 @@ import typing
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class OrganizationMembership(UncheckedBaseModel):
|
|
10
|
-
role: str
|
|
11
10
|
active: str
|
|
12
11
|
organization_id: int = pydantic.Field()
|
|
13
12
|
"""
|
|
14
13
|
Organization ID
|
|
15
14
|
"""
|
|
16
15
|
|
|
16
|
+
role: str
|
|
17
|
+
|
|
17
18
|
if IS_PYDANTIC_V2:
|
|
18
19
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
20
|
else:
|
|
@@ -0,0 +1,23 @@
|
|
|
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_organization_member_list import LseOrganizationMemberList
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class PaginatedLseOrganizationMemberListList(UncheckedBaseModel):
|
|
11
|
+
count: int
|
|
12
|
+
next: typing.Optional[str] = None
|
|
13
|
+
previous: typing.Optional[str] = None
|
|
14
|
+
results: typing.List[LseOrganizationMemberList]
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
label_studio_sdk/types/pause.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import
|
|
4
|
+
import datetime as dt
|
|
5
5
|
import pydantic
|
|
6
|
+
import typing
|
|
6
7
|
from .user_simple import UserSimple
|
|
7
8
|
from .reason_enum import ReasonEnum
|
|
8
|
-
import datetime as dt
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,18 +17,28 @@ class Pause(UncheckedBaseModel):
|
|
|
17
17
|
values with complex, nested serializations
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
project: typing.Optional[int] = pydantic.Field(default=None)
|
|
20
|
+
created_at: dt.datetime = pydantic.Field()
|
|
22
21
|
"""
|
|
23
|
-
|
|
22
|
+
Timestamp when this pause record was created
|
|
24
23
|
"""
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
deleted_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
27
26
|
"""
|
|
28
|
-
|
|
27
|
+
Timestamp when this pause record was soft-deleted
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
deleted_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
User who soft-deleted this pause record
|
|
29
33
|
"""
|
|
30
34
|
|
|
35
|
+
id: int
|
|
31
36
|
paused_by: UserSimple
|
|
37
|
+
project: typing.Optional[int] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
Related project for which the pause is set
|
|
40
|
+
"""
|
|
41
|
+
|
|
32
42
|
reason: ReasonEnum = pydantic.Field()
|
|
33
43
|
"""
|
|
34
44
|
Reason for pausing
|
|
@@ -40,29 +50,19 @@ class Pause(UncheckedBaseModel):
|
|
|
40
50
|
* `CUSTOM_SCRIPT` - Custom script
|
|
41
51
|
"""
|
|
42
52
|
|
|
43
|
-
|
|
44
|
-
"""
|
|
45
|
-
Detailed description of why the project is paused, will be readable by paused annotators
|
|
46
|
-
"""
|
|
47
|
-
|
|
48
|
-
deleted_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
49
|
-
"""
|
|
50
|
-
User who soft-deleted this pause record
|
|
51
|
-
"""
|
|
52
|
-
|
|
53
|
-
deleted_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
53
|
+
updated_at: dt.datetime = pydantic.Field()
|
|
54
54
|
"""
|
|
55
|
-
Timestamp when this pause record was
|
|
55
|
+
Timestamp when this pause record was last updated
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
user: typing.Optional[int] = pydantic.Field(default=None)
|
|
59
59
|
"""
|
|
60
|
-
|
|
60
|
+
User who is paused
|
|
61
61
|
"""
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
verbose_reason: typing.Optional[str] = pydantic.Field(default=None)
|
|
64
64
|
"""
|
|
65
|
-
|
|
65
|
+
Detailed description of why the project is paused, will be readable by paused annotators
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
68
|
if IS_PYDANTIC_V2:
|
|
@@ -8,52 +8,52 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Prediction(UncheckedBaseModel):
|
|
11
|
-
|
|
12
|
-
result: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
|
|
11
|
+
cluster: typing.Optional[int] = pydantic.Field(default=None)
|
|
13
12
|
"""
|
|
14
|
-
|
|
13
|
+
Cluster for the current prediction
|
|
15
14
|
"""
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
created_ago: str = pydantic.Field()
|
|
18
17
|
"""
|
|
19
|
-
|
|
18
|
+
Delta time from creation time
|
|
20
19
|
"""
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
created_at: dt.datetime
|
|
22
|
+
id: int
|
|
23
|
+
mislabeling: typing.Optional[float] = pydantic.Field(default=None)
|
|
23
24
|
"""
|
|
24
|
-
|
|
25
|
+
Related task mislabeling score
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
model: typing.Optional[int] = pydantic.Field(default=None)
|
|
28
29
|
"""
|
|
29
|
-
|
|
30
|
+
An ML Backend instance that created the prediction.
|
|
30
31
|
"""
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
model_run: typing.Optional[int] = pydantic.Field(default=None)
|
|
33
34
|
"""
|
|
34
|
-
|
|
35
|
+
A run of a ModelVersion that created the prediction.
|
|
35
36
|
"""
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
mislabeling: typing.Optional[float] = pydantic.Field(default=None)
|
|
38
|
+
model_version: typing.Optional[str] = pydantic.Field(default=None)
|
|
39
39
|
"""
|
|
40
|
-
|
|
40
|
+
Model version - tag for predictions that can be used to filter tasks in Data Manager, as well as select specific model version for showing preannotations in the labeling interface
|
|
41
41
|
"""
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
neighbors: typing.Optional[typing.Optional[typing.Any]] = None
|
|
44
|
+
project: typing.Optional[int] = None
|
|
45
|
+
result: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
|
|
46
46
|
"""
|
|
47
|
-
|
|
47
|
+
List of prediction results for the task
|
|
48
48
|
"""
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
score: typing.Optional[float] = pydantic.Field(default=None)
|
|
51
51
|
"""
|
|
52
|
-
|
|
52
|
+
Prediction score
|
|
53
53
|
"""
|
|
54
54
|
|
|
55
55
|
task: int
|
|
56
|
-
|
|
56
|
+
updated_at: dt.datetime
|
|
57
57
|
|
|
58
58
|
if IS_PYDANTIC_V2:
|
|
59
59
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -7,44 +7,44 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class PredictionRequest(UncheckedBaseModel):
|
|
10
|
-
|
|
10
|
+
cluster: typing.Optional[int] = pydantic.Field(default=None)
|
|
11
11
|
"""
|
|
12
|
-
|
|
12
|
+
Cluster for the current prediction
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
mislabeling: typing.Optional[float] = pydantic.Field(default=None)
|
|
16
16
|
"""
|
|
17
|
-
|
|
17
|
+
Related task mislabeling score
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
model: typing.Optional[int] = pydantic.Field(default=None)
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
An ML Backend instance that created the prediction.
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
model_run: typing.Optional[int] = pydantic.Field(default=None)
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
A run of a ModelVersion that created the prediction.
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
mislabeling: typing.Optional[float] = pydantic.Field(default=None)
|
|
30
|
+
model_version: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
31
|
"""
|
|
33
|
-
|
|
32
|
+
Model version - tag for predictions that can be used to filter tasks in Data Manager, as well as select specific model version for showing preannotations in the labeling interface
|
|
34
33
|
"""
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
neighbors: typing.Optional[typing.Optional[typing.Any]] = None
|
|
36
|
+
project: typing.Optional[int] = None
|
|
37
|
+
result: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
|
|
37
38
|
"""
|
|
38
|
-
|
|
39
|
+
List of prediction results for the task
|
|
39
40
|
"""
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
score: typing.Optional[float] = pydantic.Field(default=None)
|
|
42
43
|
"""
|
|
43
|
-
|
|
44
|
+
Prediction score
|
|
44
45
|
"""
|
|
45
46
|
|
|
46
47
|
task: int
|
|
47
|
-
project: typing.Optional[int] = None
|
|
48
48
|
|
|
49
49
|
if IS_PYDANTIC_V2:
|
|
50
50
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|