label-studio-sdk 2.0.1__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 +4 -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/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 +8 -8
- 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 +4 -0
- label_studio_sdk/types/all_roles_project_list.py +94 -94
- 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 +14 -14
- label_studio_sdk/types/billing_flags.py +16 -16
- 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/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 +1 -1
- 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 +13 -13
- 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/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/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/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.1.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +1 -1
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +167 -149
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/WHEEL +0 -0
|
@@ -9,27 +9,24 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GcsExportStorage(UncheckedBaseModel):
|
|
12
|
-
id: int
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
12
|
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
13
|
"""
|
|
17
14
|
GCS bucket name
|
|
18
15
|
"""
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
21
18
|
"""
|
|
22
|
-
|
|
19
|
+
Deletion from storage enabled
|
|
23
20
|
"""
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
created_at: dt.datetime = pydantic.Field()
|
|
26
23
|
"""
|
|
27
|
-
|
|
24
|
+
Creation time
|
|
28
25
|
"""
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
28
|
"""
|
|
32
|
-
|
|
29
|
+
Cloud storage description
|
|
33
30
|
"""
|
|
34
31
|
|
|
35
32
|
google_application_credentials: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -42,6 +39,7 @@ class GcsExportStorage(UncheckedBaseModel):
|
|
|
42
39
|
Google project ID
|
|
43
40
|
"""
|
|
44
41
|
|
|
42
|
+
id: int
|
|
45
43
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
46
44
|
"""
|
|
47
45
|
Last sync finished time
|
|
@@ -57,36 +55,38 @@ class GcsExportStorage(UncheckedBaseModel):
|
|
|
57
55
|
Last sync job ID
|
|
58
56
|
"""
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
59
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
62
60
|
"""
|
|
63
|
-
|
|
61
|
+
GCS bucket prefix
|
|
64
62
|
"""
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
64
|
+
project: int = pydantic.Field()
|
|
68
65
|
"""
|
|
69
|
-
|
|
66
|
+
A unique integer value identifying this project.
|
|
70
67
|
"""
|
|
71
68
|
|
|
72
|
-
|
|
69
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
73
70
|
"""
|
|
74
|
-
Cloud storage
|
|
71
|
+
Cloud storage regex for filtering objects
|
|
75
72
|
"""
|
|
76
73
|
|
|
77
|
-
|
|
74
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
75
|
+
synchronizable: typing.Optional[bool] = None
|
|
76
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
78
77
|
"""
|
|
79
|
-
|
|
78
|
+
Cloud storage title
|
|
80
79
|
"""
|
|
81
80
|
|
|
82
|
-
|
|
81
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
83
82
|
"""
|
|
84
|
-
|
|
83
|
+
Traceback report for the last failed sync
|
|
85
84
|
"""
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
type: str
|
|
87
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
88
88
|
"""
|
|
89
|
-
|
|
89
|
+
Interpret objects as BLOBs and generate URLs
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
92
|
if IS_PYDANTIC_V2:
|
|
@@ -9,28 +9,19 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class GcsImportStorage(UncheckedBaseModel):
|
|
12
|
-
id: int
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
|
-
presign: typing.Optional[bool] = None
|
|
16
12
|
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
17
13
|
"""
|
|
18
14
|
GCS bucket name
|
|
19
15
|
"""
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
"""
|
|
23
|
-
GCS bucket prefix
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
17
|
+
created_at: dt.datetime = pydantic.Field()
|
|
27
18
|
"""
|
|
28
|
-
|
|
19
|
+
Creation time
|
|
29
20
|
"""
|
|
30
21
|
|
|
31
|
-
|
|
22
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
23
|
"""
|
|
33
|
-
|
|
24
|
+
Cloud storage description
|
|
34
25
|
"""
|
|
35
26
|
|
|
36
27
|
google_application_credentials: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -43,6 +34,7 @@ class GcsImportStorage(UncheckedBaseModel):
|
|
|
43
34
|
Google project ID
|
|
44
35
|
"""
|
|
45
36
|
|
|
37
|
+
id: int
|
|
46
38
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
47
39
|
"""
|
|
48
40
|
Last sync finished time
|
|
@@ -58,36 +50,44 @@ class GcsImportStorage(UncheckedBaseModel):
|
|
|
58
50
|
Last sync job ID
|
|
59
51
|
"""
|
|
60
52
|
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
54
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
63
55
|
"""
|
|
64
|
-
|
|
56
|
+
GCS bucket prefix
|
|
65
57
|
"""
|
|
66
58
|
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
presign: typing.Optional[bool] = None
|
|
60
|
+
presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
69
61
|
"""
|
|
70
|
-
|
|
62
|
+
Presigned URLs TTL (in minutes)
|
|
71
63
|
"""
|
|
72
64
|
|
|
73
|
-
|
|
65
|
+
project: int = pydantic.Field()
|
|
74
66
|
"""
|
|
75
|
-
|
|
67
|
+
A unique integer value identifying this project.
|
|
76
68
|
"""
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
79
71
|
"""
|
|
80
|
-
|
|
72
|
+
Cloud storage regex for filtering objects
|
|
81
73
|
"""
|
|
82
74
|
|
|
83
|
-
|
|
75
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
76
|
+
synchronizable: typing.Optional[bool] = None
|
|
77
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
84
78
|
"""
|
|
85
|
-
|
|
79
|
+
Cloud storage title
|
|
86
80
|
"""
|
|
87
81
|
|
|
88
|
-
|
|
82
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
89
83
|
"""
|
|
90
|
-
|
|
84
|
+
Traceback report for the last failed sync
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
type: str
|
|
88
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
89
|
+
"""
|
|
90
|
+
Interpret objects as BLOBs and generate URLs
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
93
|
if IS_PYDANTIC_V2:
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from .annotation_request import AnnotationRequest
|
|
6
|
-
from .prediction_request import PredictionRequest
|
|
7
6
|
import pydantic
|
|
8
7
|
import datetime as dt
|
|
8
|
+
from .prediction_request import PredictionRequest
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
|
|
11
11
|
|
|
@@ -15,62 +15,62 @@ class ImportApiRequest(UncheckedBaseModel):
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
annotations: typing.Optional[typing.List[AnnotationRequest]] = None
|
|
18
|
-
|
|
19
|
-
data: typing.Optional[typing.Any] = None
|
|
20
|
-
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
21
|
-
overlap: typing.Optional[int] = pydantic.Field(default=None)
|
|
18
|
+
cancelled_annotations: typing.Optional[int] = pydantic.Field(default=None)
|
|
22
19
|
"""
|
|
23
|
-
Number of
|
|
20
|
+
Number of total cancelled annotations for the current task
|
|
24
21
|
"""
|
|
25
22
|
|
|
26
|
-
|
|
23
|
+
comment_authors: typing.Optional[typing.List[int]] = pydantic.Field(default=None)
|
|
27
24
|
"""
|
|
28
|
-
|
|
25
|
+
Users who wrote comments
|
|
29
26
|
"""
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
comment_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
32
29
|
"""
|
|
33
|
-
Number of
|
|
30
|
+
Number of comments in the task including all annotations
|
|
34
31
|
"""
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
data: typing.Optional[typing.Any] = None
|
|
34
|
+
file_upload: typing.Optional[int] = pydantic.Field(default=None)
|
|
37
35
|
"""
|
|
38
|
-
|
|
36
|
+
Uploaded file used as data source for this task
|
|
39
37
|
"""
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
inner_id: typing.Optional[int] = pydantic.Field(default=None)
|
|
42
40
|
"""
|
|
43
|
-
|
|
41
|
+
Internal task ID in the project, starts with 1
|
|
44
42
|
"""
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
last_comment_updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
47
45
|
"""
|
|
48
|
-
|
|
46
|
+
When the last comment was updated
|
|
49
47
|
"""
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
50
|
+
overlap: typing.Optional[int] = pydantic.Field(default=None)
|
|
52
51
|
"""
|
|
53
|
-
Number of
|
|
52
|
+
Number of distinct annotators that processed the current task
|
|
54
53
|
"""
|
|
55
54
|
|
|
56
|
-
|
|
55
|
+
predictions: typing.Optional[typing.List[PredictionRequest]] = None
|
|
56
|
+
total_annotations: typing.Optional[int] = pydantic.Field(default=None)
|
|
57
57
|
"""
|
|
58
|
-
|
|
58
|
+
Number of total annotations for the current task except cancelled annotations
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
total_predictions: typing.Optional[int] = pydantic.Field(default=None)
|
|
62
62
|
"""
|
|
63
|
-
|
|
63
|
+
Number of total predictions for the current task
|
|
64
64
|
"""
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
unresolved_comment_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
67
67
|
"""
|
|
68
|
-
|
|
68
|
+
Number of unresolved comments in the task including all annotations
|
|
69
69
|
"""
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
updated_by: typing.Optional[int] = pydantic.Field(default=None)
|
|
72
72
|
"""
|
|
73
|
-
|
|
73
|
+
Last annotator or reviewer who updated this task
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
76
|
if IS_PYDANTIC_V2:
|
|
@@ -7,19 +7,19 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class InferenceRunCostEstimate(UncheckedBaseModel):
|
|
10
|
-
|
|
10
|
+
completion_cost_usd: typing.Optional[str] = pydantic.Field(default=None)
|
|
11
11
|
"""
|
|
12
|
-
Cost of the
|
|
12
|
+
Cost of the completion (in USD)
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
error_message: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
16
|
"""
|
|
17
|
-
|
|
17
|
+
Error message details
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
error_type: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
Type of error (e.g. "Timeout", "Rate Limit", etc)
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
is_error: typing.Optional[bool] = pydantic.Field(default=None)
|
|
@@ -27,14 +27,14 @@ class InferenceRunCostEstimate(UncheckedBaseModel):
|
|
|
27
27
|
Whether an error occurred or not
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
prompt_cost_usd: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
31
|
"""
|
|
32
|
-
|
|
32
|
+
Cost of the prompt (in USD)
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
total_cost_usd: typing.Optional[str] = pydantic.Field(default=None)
|
|
36
36
|
"""
|
|
37
|
-
|
|
37
|
+
Total cost of the inference (in USD)
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
if IS_PYDANTIC_V2:
|
|
@@ -9,24 +9,22 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class LocalFilesExportStorage(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
|
-
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
|
+
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
16
13
|
"""
|
|
17
|
-
|
|
14
|
+
Deletion from storage enabled
|
|
18
15
|
"""
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
created_at: dt.datetime = pydantic.Field()
|
|
21
18
|
"""
|
|
22
|
-
|
|
19
|
+
Creation time
|
|
23
20
|
"""
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
23
|
"""
|
|
27
|
-
|
|
24
|
+
Cloud storage description
|
|
28
25
|
"""
|
|
29
26
|
|
|
27
|
+
id: int
|
|
30
28
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
31
29
|
"""
|
|
32
30
|
Last sync finished time
|
|
@@ -42,36 +40,38 @@ class LocalFilesExportStorage(UncheckedBaseModel):
|
|
|
42
40
|
Last sync job ID
|
|
43
41
|
"""
|
|
44
42
|
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
44
|
+
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
47
45
|
"""
|
|
48
|
-
|
|
46
|
+
Local path
|
|
49
47
|
"""
|
|
50
48
|
|
|
51
|
-
|
|
52
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
49
|
+
project: int = pydantic.Field()
|
|
53
50
|
"""
|
|
54
|
-
|
|
51
|
+
A unique integer value identifying this project.
|
|
55
52
|
"""
|
|
56
53
|
|
|
57
|
-
|
|
54
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
58
55
|
"""
|
|
59
|
-
|
|
56
|
+
Regex for filtering objects
|
|
60
57
|
"""
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
60
|
+
synchronizable: typing.Optional[bool] = None
|
|
61
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
63
62
|
"""
|
|
64
|
-
|
|
63
|
+
Cloud storage title
|
|
65
64
|
"""
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
68
67
|
"""
|
|
69
|
-
|
|
68
|
+
Traceback report for the last failed sync
|
|
70
69
|
"""
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
type: str
|
|
72
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
73
73
|
"""
|
|
74
|
-
|
|
74
|
+
Interpret objects as BLOBs and generate URLs
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
77
|
if IS_PYDANTIC_V2:
|
|
@@ -1,32 +1,25 @@
|
|
|
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 typing
|
|
5
|
-
import pydantic
|
|
6
4
|
import datetime as dt
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing
|
|
7
7
|
from .status_c5a_enum import StatusC5AEnum
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class LocalFilesImportStorage(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
|
-
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
|
-
"""
|
|
17
|
-
Local path
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
|
+
created_at: dt.datetime = pydantic.Field()
|
|
21
13
|
"""
|
|
22
|
-
|
|
14
|
+
Creation time
|
|
23
15
|
"""
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
18
|
"""
|
|
27
|
-
|
|
19
|
+
Cloud storage description
|
|
28
20
|
"""
|
|
29
21
|
|
|
22
|
+
id: int
|
|
30
23
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
31
24
|
"""
|
|
32
25
|
Last sync finished time
|
|
@@ -42,31 +35,38 @@ class LocalFilesImportStorage(UncheckedBaseModel):
|
|
|
42
35
|
Last sync job ID
|
|
43
36
|
"""
|
|
44
37
|
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
39
|
+
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
47
40
|
"""
|
|
48
|
-
|
|
41
|
+
Local path
|
|
49
42
|
"""
|
|
50
43
|
|
|
51
|
-
|
|
52
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
44
|
+
project: int = pydantic.Field()
|
|
53
45
|
"""
|
|
54
|
-
|
|
46
|
+
A unique integer value identifying this project.
|
|
55
47
|
"""
|
|
56
48
|
|
|
57
|
-
|
|
49
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
58
50
|
"""
|
|
59
|
-
|
|
51
|
+
Regex for filtering objects
|
|
60
52
|
"""
|
|
61
53
|
|
|
62
|
-
|
|
54
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
55
|
+
synchronizable: typing.Optional[bool] = None
|
|
56
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
63
57
|
"""
|
|
64
|
-
|
|
58
|
+
Cloud storage title
|
|
65
59
|
"""
|
|
66
60
|
|
|
67
|
-
|
|
61
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
68
62
|
"""
|
|
69
|
-
|
|
63
|
+
Traceback report for the last failed sync
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
type: str
|
|
67
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
68
|
+
"""
|
|
69
|
+
Interpret objects as BLOBs and generate URLs
|
|
70
70
|
"""
|
|
71
71
|
|
|
72
72
|
if IS_PYDANTIC_V2:
|
|
@@ -8,21 +8,11 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class LseAnnotationFilterOptions(UncheckedBaseModel):
|
|
11
|
-
usual: typing.Optional[bool] = pydantic.Field(default=None)
|
|
12
|
-
"""
|
|
13
|
-
Include not skipped and not ground truth annotations
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
11
|
ground_truth: typing.Optional[bool] = pydantic.Field(default=None)
|
|
17
12
|
"""
|
|
18
13
|
Include ground truth annotations
|
|
19
14
|
"""
|
|
20
15
|
|
|
21
|
-
skipped: typing.Optional[bool] = pydantic.Field(default=None)
|
|
22
|
-
"""
|
|
23
|
-
Include skipped annotations
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
16
|
reviewed: typing.Optional[LseAnnotationFilterOptionsReviewed] = pydantic.Field(default=None)
|
|
27
17
|
"""
|
|
28
18
|
`only` - include all tasks with at least one not reviewed annotation<br>`exclude` - exclude with at least one not reviewed annotation
|
|
@@ -32,6 +22,16 @@ class LseAnnotationFilterOptions(UncheckedBaseModel):
|
|
|
32
22
|
* `None` - None
|
|
33
23
|
"""
|
|
34
24
|
|
|
25
|
+
skipped: typing.Optional[bool] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
Include skipped annotations
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
usual: typing.Optional[bool] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
Include not skipped and not ground truth annotations
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
35
|
if IS_PYDANTIC_V2:
|
|
36
36
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
37
37
|
else:
|
|
@@ -8,21 +8,11 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class LseAnnotationFilterOptionsRequest(UncheckedBaseModel):
|
|
11
|
-
usual: typing.Optional[bool] = pydantic.Field(default=None)
|
|
12
|
-
"""
|
|
13
|
-
Include not skipped and not ground truth annotations
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
11
|
ground_truth: typing.Optional[bool] = pydantic.Field(default=None)
|
|
17
12
|
"""
|
|
18
13
|
Include ground truth annotations
|
|
19
14
|
"""
|
|
20
15
|
|
|
21
|
-
skipped: typing.Optional[bool] = pydantic.Field(default=None)
|
|
22
|
-
"""
|
|
23
|
-
Include skipped annotations
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
16
|
reviewed: typing.Optional[LseAnnotationFilterOptionsRequestReviewed] = pydantic.Field(default=None)
|
|
27
17
|
"""
|
|
28
18
|
`only` - include all tasks with at least one not reviewed annotation<br>`exclude` - exclude with at least one not reviewed annotation
|
|
@@ -32,6 +22,16 @@ class LseAnnotationFilterOptionsRequest(UncheckedBaseModel):
|
|
|
32
22
|
* `None` - None
|
|
33
23
|
"""
|
|
34
24
|
|
|
25
|
+
skipped: typing.Optional[bool] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
Include skipped annotations
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
usual: typing.Optional[bool] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
Include not skipped and not ground truth annotations
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
35
|
if IS_PYDANTIC_V2:
|
|
36
36
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
37
37
|
else:
|
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .
|
|
5
|
+
from .lse_annotation_filter_options import LseAnnotationFilterOptions
|
|
6
|
+
from .converted_format import ConvertedFormat
|
|
6
7
|
import datetime as dt
|
|
7
8
|
import pydantic
|
|
9
|
+
from .user_simple import UserSimple
|
|
10
|
+
from .serialization_options import SerializationOptions
|
|
8
11
|
from .status7bf_enum import Status7BfEnum
|
|
9
|
-
from .converted_format import ConvertedFormat
|
|
10
12
|
from .lse_task_filter_options import LseTaskFilterOptions
|
|
11
|
-
from .lse_annotation_filter_options import LseAnnotationFilterOptions
|
|
12
|
-
from .serialization_options import SerializationOptions
|
|
13
13
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class LseExportCreate(UncheckedBaseModel):
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
annotation_filter_options: typing.Optional[LseAnnotationFilterOptions] = None
|
|
18
|
+
converted_formats: typing.Optional[typing.List[ConvertedFormat]] = None
|
|
19
|
+
counters: typing.Optional[typing.Optional[typing.Any]] = None
|
|
20
20
|
created_at: dt.datetime = pydantic.Field()
|
|
21
21
|
"""
|
|
22
22
|
Creation time
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
+
created_by: typing.Optional[UserSimple] = None
|
|
25
26
|
finished_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
26
27
|
"""
|
|
27
28
|
Complete or fail time
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
id: int
|
|
31
32
|
md5: typing.Optional[str] = None
|
|
32
|
-
counters: typing.Optional[typing.Optional[typing.Any]] = None
|
|
33
|
-
converted_formats: typing.Optional[typing.List[ConvertedFormat]] = None
|
|
34
|
-
task_filter_options: typing.Optional[LseTaskFilterOptions] = None
|
|
35
|
-
annotation_filter_options: typing.Optional[LseAnnotationFilterOptions] = None
|
|
36
33
|
serialization_options: typing.Optional[SerializationOptions] = None
|
|
34
|
+
status: typing.Optional[Status7BfEnum] = None
|
|
35
|
+
task_filter_options: typing.Optional[LseTaskFilterOptions] = None
|
|
36
|
+
title: typing.Optional[str] = None
|
|
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
|