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
|
@@ -2,26 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .review_settings_review_criteria import ReviewSettingsReviewCriteria
|
|
6
5
|
import pydantic
|
|
7
6
|
from .review_settings_requeue_rejected_tasks_mode import ReviewSettingsRequeueRejectedTasksMode
|
|
7
|
+
from .review_settings_review_criteria import ReviewSettingsReviewCriteria
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class ReviewSettings(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
requeue_rejected_tasks_to_annotator: bool
|
|
14
|
-
review_criteria: typing.Optional[ReviewSettingsReviewCriteria] = pydantic.Field(default=None)
|
|
12
|
+
anonymize_annotations: typing.Optional[bool] = pydantic.Field(default=None)
|
|
15
13
|
"""
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* `all` - Task is reviewed if all annotations are reviewed
|
|
19
|
-
* `one` - Task is reviewed if at least one annotation is reviewed
|
|
14
|
+
Hide annotator names from annotations while review
|
|
20
15
|
"""
|
|
21
16
|
|
|
22
|
-
|
|
17
|
+
id: int
|
|
18
|
+
instruction: typing.Optional[str] = pydantic.Field(default=None)
|
|
23
19
|
"""
|
|
24
|
-
|
|
20
|
+
Reviewer instructions in HTML format
|
|
25
21
|
"""
|
|
26
22
|
|
|
27
23
|
only_finished_tasks: typing.Optional[bool] = pydantic.Field(default=None)
|
|
@@ -29,47 +25,50 @@ class ReviewSettings(UncheckedBaseModel):
|
|
|
29
25
|
Show only finished tasks in the review stream
|
|
30
26
|
"""
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
project: typing.Optional[int] = None
|
|
29
|
+
requeue_rejected_tasks_mode: typing.Optional[ReviewSettingsRequeueRejectedTasksMode] = pydantic.Field(default=None)
|
|
33
30
|
"""
|
|
34
|
-
|
|
31
|
+
Requeue mode for rejected tasks
|
|
32
|
+
|
|
33
|
+
* `requeue` - Requeue
|
|
34
|
+
* `remove` - Remove
|
|
35
|
+
* `flexible` - Flexible
|
|
35
36
|
"""
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
requeue_rejected_tasks_to_annotator: bool
|
|
39
|
+
require_comment_on_reject: typing.Optional[bool] = pydantic.Field(default=None)
|
|
38
40
|
"""
|
|
39
|
-
|
|
41
|
+
If set, the reviewer must leave a comment on reject
|
|
40
42
|
"""
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
review_criteria: typing.Optional[ReviewSettingsReviewCriteria] = pydantic.Field(default=None)
|
|
43
45
|
"""
|
|
44
|
-
|
|
46
|
+
Criteria to mark task as reviewed
|
|
47
|
+
|
|
48
|
+
* `all` - Task is reviewed if all annotations are reviewed
|
|
49
|
+
* `one` - Task is reviewed if at least one annotation is reviewed
|
|
45
50
|
"""
|
|
46
51
|
|
|
47
|
-
|
|
52
|
+
review_only_manual_assignments: typing.Optional[bool] = pydantic.Field(default=None)
|
|
48
53
|
"""
|
|
49
|
-
|
|
54
|
+
When set True, review queue is built only from manually assigned tasks
|
|
50
55
|
"""
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
show_agreement_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
|
|
53
58
|
"""
|
|
54
|
-
|
|
59
|
+
Show the agreement column to reviewers
|
|
55
60
|
"""
|
|
56
61
|
|
|
57
|
-
|
|
62
|
+
show_data_manager_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
|
|
58
63
|
"""
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* `requeue` - Requeue
|
|
62
|
-
* `remove` - Remove
|
|
63
|
-
* `flexible` - Flexible
|
|
64
|
+
Show the data manager to reviewers
|
|
64
65
|
"""
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
|
|
67
68
|
"""
|
|
68
|
-
|
|
69
|
+
Show instructions to the reviewers before they start
|
|
69
70
|
"""
|
|
70
71
|
|
|
71
|
-
project: typing.Optional[int] = None
|
|
72
|
-
|
|
73
72
|
if IS_PYDANTIC_V2:
|
|
74
73
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
75
74
|
else:
|
|
@@ -2,24 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .review_settings_request_review_criteria import ReviewSettingsRequestReviewCriteria
|
|
6
5
|
import pydantic
|
|
7
6
|
from .review_settings_request_requeue_rejected_tasks_mode import ReviewSettingsRequestRequeueRejectedTasksMode
|
|
7
|
+
from .review_settings_request_review_criteria import ReviewSettingsRequestReviewCriteria
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class ReviewSettingsRequest(UncheckedBaseModel):
|
|
12
|
-
|
|
12
|
+
anonymize_annotations: typing.Optional[bool] = pydantic.Field(default=None)
|
|
13
13
|
"""
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* `all` - Task is reviewed if all annotations are reviewed
|
|
17
|
-
* `one` - Task is reviewed if at least one annotation is reviewed
|
|
14
|
+
Hide annotator names from annotations while review
|
|
18
15
|
"""
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
instruction: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
18
|
"""
|
|
22
|
-
|
|
19
|
+
Reviewer instructions in HTML format
|
|
23
20
|
"""
|
|
24
21
|
|
|
25
22
|
only_finished_tasks: typing.Optional[bool] = pydantic.Field(default=None)
|
|
@@ -27,49 +24,51 @@ class ReviewSettingsRequest(UncheckedBaseModel):
|
|
|
27
24
|
Show only finished tasks in the review stream
|
|
28
25
|
"""
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
project: typing.Optional[int] = None
|
|
28
|
+
requeue_rejected_tasks_mode: typing.Optional[ReviewSettingsRequestRequeueRejectedTasksMode] = pydantic.Field(
|
|
29
|
+
default=None
|
|
30
|
+
)
|
|
31
31
|
"""
|
|
32
|
-
|
|
32
|
+
Requeue mode for rejected tasks
|
|
33
|
+
|
|
34
|
+
* `requeue` - Requeue
|
|
35
|
+
* `remove` - Remove
|
|
36
|
+
* `flexible` - Flexible
|
|
33
37
|
"""
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
require_comment_on_reject: typing.Optional[bool] = pydantic.Field(default=None)
|
|
36
40
|
"""
|
|
37
|
-
|
|
41
|
+
If set, the reviewer must leave a comment on reject
|
|
38
42
|
"""
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
review_criteria: typing.Optional[ReviewSettingsRequestReviewCriteria] = pydantic.Field(default=None)
|
|
41
45
|
"""
|
|
42
|
-
|
|
46
|
+
Criteria to mark task as reviewed
|
|
47
|
+
|
|
48
|
+
* `all` - Task is reviewed if all annotations are reviewed
|
|
49
|
+
* `one` - Task is reviewed if at least one annotation is reviewed
|
|
43
50
|
"""
|
|
44
51
|
|
|
45
|
-
|
|
52
|
+
review_only_manual_assignments: typing.Optional[bool] = pydantic.Field(default=None)
|
|
46
53
|
"""
|
|
47
|
-
|
|
54
|
+
When set True, review queue is built only from manually assigned tasks
|
|
48
55
|
"""
|
|
49
56
|
|
|
50
|
-
|
|
57
|
+
show_agreement_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
|
|
51
58
|
"""
|
|
52
|
-
|
|
59
|
+
Show the agreement column to reviewers
|
|
53
60
|
"""
|
|
54
61
|
|
|
55
|
-
|
|
56
|
-
default=None
|
|
57
|
-
)
|
|
62
|
+
show_data_manager_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
|
|
58
63
|
"""
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* `requeue` - Requeue
|
|
62
|
-
* `remove` - Remove
|
|
63
|
-
* `flexible` - Flexible
|
|
64
|
+
Show the data manager to reviewers
|
|
64
65
|
"""
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
|
|
67
68
|
"""
|
|
68
|
-
|
|
69
|
+
Show instructions to the reviewers before they start
|
|
69
70
|
"""
|
|
70
71
|
|
|
71
|
-
project: typing.Optional[int] = None
|
|
72
|
-
|
|
73
72
|
if IS_PYDANTIC_V2:
|
|
74
73
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
75
74
|
else:
|
|
@@ -2,53 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
import datetime as dt
|
|
6
5
|
import pydantic
|
|
7
|
-
|
|
6
|
+
import datetime as dt
|
|
8
7
|
import typing_extensions
|
|
9
8
|
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
10
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class S3ExportStorage(UncheckedBaseModel):
|
|
14
|
-
|
|
15
|
-
type: str
|
|
16
|
-
synchronizable: typing.Optional[bool] = None
|
|
17
|
-
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
18
|
-
"""
|
|
19
|
-
Last sync finished time
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
23
|
-
"""
|
|
24
|
-
Count of tasks synced last time
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
14
|
+
aws_access_key_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
15
|
"""
|
|
29
|
-
|
|
16
|
+
AWS_ACCESS_KEY_ID
|
|
30
17
|
"""
|
|
31
18
|
|
|
32
|
-
|
|
33
|
-
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
19
|
+
aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
20
|
"""
|
|
35
|
-
|
|
21
|
+
AWS_SECRET_ACCESS_KEY
|
|
36
22
|
"""
|
|
37
23
|
|
|
38
|
-
|
|
39
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
|
+
aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
|
|
40
25
|
"""
|
|
41
|
-
|
|
26
|
+
AWS_SESSION_TOKEN
|
|
42
27
|
"""
|
|
43
28
|
|
|
44
|
-
|
|
29
|
+
aws_sse_kms_key_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
45
30
|
"""
|
|
46
|
-
|
|
31
|
+
AWS SSE KMS Key ID
|
|
47
32
|
"""
|
|
48
33
|
|
|
49
|
-
|
|
34
|
+
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
50
35
|
"""
|
|
51
|
-
|
|
36
|
+
S3 bucket name
|
|
52
37
|
"""
|
|
53
38
|
|
|
54
39
|
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
@@ -56,44 +41,46 @@ class S3ExportStorage(UncheckedBaseModel):
|
|
|
56
41
|
Deletion from storage enabled
|
|
57
42
|
"""
|
|
58
43
|
|
|
59
|
-
|
|
44
|
+
created_at: dt.datetime = pydantic.Field()
|
|
60
45
|
"""
|
|
61
|
-
|
|
46
|
+
Creation time
|
|
62
47
|
"""
|
|
63
48
|
|
|
64
|
-
|
|
49
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
65
50
|
"""
|
|
66
|
-
|
|
51
|
+
Cloud storage description
|
|
67
52
|
"""
|
|
68
53
|
|
|
69
|
-
|
|
54
|
+
id: int
|
|
55
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
70
56
|
"""
|
|
71
|
-
|
|
57
|
+
Last sync finished time
|
|
72
58
|
"""
|
|
73
59
|
|
|
74
|
-
|
|
60
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
75
61
|
"""
|
|
76
|
-
|
|
62
|
+
Count of tasks synced last time
|
|
77
63
|
"""
|
|
78
64
|
|
|
79
|
-
|
|
65
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
80
66
|
"""
|
|
81
|
-
|
|
67
|
+
Last sync job ID
|
|
82
68
|
"""
|
|
83
69
|
|
|
84
|
-
|
|
70
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
71
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
85
72
|
"""
|
|
86
|
-
|
|
73
|
+
S3 bucket prefix
|
|
87
74
|
"""
|
|
88
75
|
|
|
89
|
-
|
|
76
|
+
project: int = pydantic.Field()
|
|
90
77
|
"""
|
|
91
|
-
|
|
78
|
+
A unique integer value identifying this project.
|
|
92
79
|
"""
|
|
93
80
|
|
|
94
|
-
|
|
81
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
95
82
|
"""
|
|
96
|
-
|
|
83
|
+
Cloud storage regex for filtering objects
|
|
97
84
|
"""
|
|
98
85
|
|
|
99
86
|
region_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -108,9 +95,22 @@ class S3ExportStorage(UncheckedBaseModel):
|
|
|
108
95
|
S3 Endpoint
|
|
109
96
|
"""
|
|
110
97
|
|
|
111
|
-
|
|
98
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
99
|
+
synchronizable: typing.Optional[bool] = None
|
|
100
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
112
101
|
"""
|
|
113
|
-
|
|
102
|
+
Cloud storage title
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
106
|
+
"""
|
|
107
|
+
Traceback report for the last failed sync
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
type: str
|
|
111
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
112
|
+
"""
|
|
113
|
+
Interpret objects as BLOBs and generate URLs
|
|
114
114
|
"""
|
|
115
115
|
|
|
116
116
|
if IS_PYDANTIC_V2:
|
|
@@ -2,94 +2,91 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
import datetime as dt
|
|
6
5
|
import pydantic
|
|
7
|
-
|
|
6
|
+
import datetime as dt
|
|
8
7
|
import typing_extensions
|
|
9
8
|
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .status_c5a_enum import StatusC5AEnum
|
|
10
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class S3ImportStorage(UncheckedBaseModel):
|
|
14
|
-
|
|
15
|
-
type: str
|
|
16
|
-
synchronizable: typing.Optional[bool] = None
|
|
17
|
-
presign: typing.Optional[bool] = None
|
|
18
|
-
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
14
|
+
aws_access_key_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
19
15
|
"""
|
|
20
|
-
|
|
16
|
+
AWS_ACCESS_KEY_ID
|
|
21
17
|
"""
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
20
|
"""
|
|
25
|
-
|
|
21
|
+
AWS_SECRET_ACCESS_KEY
|
|
26
22
|
"""
|
|
27
23
|
|
|
28
|
-
|
|
24
|
+
aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
|
|
29
25
|
"""
|
|
30
|
-
|
|
26
|
+
AWS_SESSION_TOKEN
|
|
31
27
|
"""
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
29
|
+
aws_sse_kms_key_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
35
30
|
"""
|
|
36
|
-
|
|
31
|
+
AWS SSE KMS Key ID
|
|
37
32
|
"""
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
|
+
bucket: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
35
|
"""
|
|
42
|
-
|
|
36
|
+
S3 bucket name
|
|
43
37
|
"""
|
|
44
38
|
|
|
45
|
-
|
|
39
|
+
created_at: dt.datetime = pydantic.Field()
|
|
46
40
|
"""
|
|
47
|
-
|
|
41
|
+
Creation time
|
|
48
42
|
"""
|
|
49
43
|
|
|
50
|
-
|
|
44
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
51
45
|
"""
|
|
52
|
-
|
|
46
|
+
Cloud storage description
|
|
53
47
|
"""
|
|
54
48
|
|
|
55
|
-
|
|
49
|
+
id: int
|
|
50
|
+
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
56
51
|
"""
|
|
57
|
-
|
|
52
|
+
Last sync finished time
|
|
58
53
|
"""
|
|
59
54
|
|
|
60
|
-
|
|
55
|
+
last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
|
|
61
56
|
"""
|
|
62
|
-
|
|
57
|
+
Count of tasks synced last time
|
|
63
58
|
"""
|
|
64
59
|
|
|
65
|
-
|
|
60
|
+
last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
|
|
66
61
|
"""
|
|
67
|
-
|
|
62
|
+
Last sync job ID
|
|
68
63
|
"""
|
|
69
64
|
|
|
70
|
-
|
|
65
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
66
|
+
prefix: typing.Optional[str] = pydantic.Field(default=None)
|
|
71
67
|
"""
|
|
72
|
-
|
|
68
|
+
S3 bucket prefix
|
|
73
69
|
"""
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
presign: typing.Optional[bool] = None
|
|
72
|
+
presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
|
|
76
73
|
"""
|
|
77
|
-
|
|
74
|
+
Presigned URLs TTL (in minutes)
|
|
78
75
|
"""
|
|
79
76
|
|
|
80
|
-
|
|
77
|
+
project: int = pydantic.Field()
|
|
81
78
|
"""
|
|
82
|
-
|
|
79
|
+
A unique integer value identifying this project.
|
|
83
80
|
"""
|
|
84
81
|
|
|
85
|
-
|
|
82
|
+
recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
|
|
86
83
|
"""
|
|
87
|
-
|
|
84
|
+
Perform recursive scan over the bucket content
|
|
88
85
|
"""
|
|
89
86
|
|
|
90
|
-
|
|
87
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
91
88
|
"""
|
|
92
|
-
|
|
89
|
+
Cloud storage regex for filtering objects
|
|
93
90
|
"""
|
|
94
91
|
|
|
95
92
|
region_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -104,19 +101,22 @@ class S3ImportStorage(UncheckedBaseModel):
|
|
|
104
101
|
S3 Endpoint
|
|
105
102
|
"""
|
|
106
103
|
|
|
107
|
-
|
|
104
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
105
|
+
synchronizable: typing.Optional[bool] = None
|
|
106
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
108
107
|
"""
|
|
109
|
-
|
|
108
|
+
Cloud storage title
|
|
110
109
|
"""
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
113
112
|
"""
|
|
114
|
-
|
|
113
|
+
Traceback report for the last failed sync
|
|
115
114
|
"""
|
|
116
115
|
|
|
117
|
-
|
|
116
|
+
type: str
|
|
117
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
118
118
|
"""
|
|
119
|
-
|
|
119
|
+
Interpret objects as BLOBs and generate URLs
|
|
120
120
|
"""
|
|
121
121
|
|
|
122
122
|
if IS_PYDANTIC_V2:
|
|
@@ -10,8 +10,8 @@ import pydantic
|
|
|
10
10
|
|
|
11
11
|
class SelectedItemsRequest(UncheckedBaseModel):
|
|
12
12
|
all_: typing_extensions.Annotated[bool, FieldMetadata(alias="all")]
|
|
13
|
-
included: typing.Optional[typing.List[int]] = None
|
|
14
13
|
excluded: typing.Optional[typing.List[int]] = None
|
|
14
|
+
included: typing.Optional[typing.List[int]] = None
|
|
15
15
|
|
|
16
16
|
if IS_PYDANTIC_V2:
|
|
17
17
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,21 +1,23 @@
|
|
|
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_extensions
|
|
4
5
|
import typing
|
|
5
6
|
from .serialization_option import SerializationOption
|
|
6
|
-
import pydantic
|
|
7
|
-
import typing_extensions
|
|
8
7
|
from ..core.serialization import FieldMetadata
|
|
8
|
+
import pydantic
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class SerializationOptions(UncheckedBaseModel):
|
|
13
|
-
|
|
13
|
+
annotations_completed_by: typing_extensions.Annotated[
|
|
14
|
+
typing.Optional[SerializationOption], FieldMetadata(alias="annotations__completed_by")
|
|
15
|
+
] = pydantic.Field(default=None)
|
|
14
16
|
"""
|
|
15
17
|
JSON dict with parameters
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
drafts: typing.Optional[SerializationOption] = pydantic.Field(default=None)
|
|
19
21
|
"""
|
|
20
22
|
JSON dict with parameters
|
|
21
23
|
"""
|
|
@@ -25,16 +27,14 @@ class SerializationOptions(UncheckedBaseModel):
|
|
|
25
27
|
Include annotation history
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
typing.Optional[SerializationOption], FieldMetadata(alias="annotations__completed_by")
|
|
30
|
-
] = pydantic.Field(default=None)
|
|
30
|
+
interpolate_key_frames: typing.Optional[bool] = pydantic.Field(default=None)
|
|
31
31
|
"""
|
|
32
|
-
|
|
32
|
+
Interpolate video key frames
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
predictions: typing.Optional[SerializationOption] = pydantic.Field(default=None)
|
|
36
36
|
"""
|
|
37
|
-
|
|
37
|
+
JSON dict with parameters
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
if IS_PYDANTIC_V2:
|
|
@@ -1,21 +1,23 @@
|
|
|
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_extensions
|
|
4
5
|
import typing
|
|
5
6
|
from .serialization_option_request import SerializationOptionRequest
|
|
6
|
-
import pydantic
|
|
7
|
-
import typing_extensions
|
|
8
7
|
from ..core.serialization import FieldMetadata
|
|
8
|
+
import pydantic
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class SerializationOptionsRequest(UncheckedBaseModel):
|
|
13
|
-
|
|
13
|
+
annotations_completed_by: typing_extensions.Annotated[
|
|
14
|
+
typing.Optional[SerializationOptionRequest], FieldMetadata(alias="annotations__completed_by")
|
|
15
|
+
] = pydantic.Field(default=None)
|
|
14
16
|
"""
|
|
15
17
|
JSON dict with parameters
|
|
16
18
|
"""
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
drafts: typing.Optional[SerializationOptionRequest] = pydantic.Field(default=None)
|
|
19
21
|
"""
|
|
20
22
|
JSON dict with parameters
|
|
21
23
|
"""
|
|
@@ -25,16 +27,14 @@ class SerializationOptionsRequest(UncheckedBaseModel):
|
|
|
25
27
|
Include annotation history
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
typing.Optional[SerializationOptionRequest], FieldMetadata(alias="annotations__completed_by")
|
|
30
|
-
] = pydantic.Field(default=None)
|
|
30
|
+
interpolate_key_frames: typing.Optional[bool] = pydantic.Field(default=None)
|
|
31
31
|
"""
|
|
32
|
-
|
|
32
|
+
Interpolate video key frames
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
predictions: typing.Optional[SerializationOptionRequest] = pydantic.Field(default=None)
|
|
36
36
|
"""
|
|
37
|
-
|
|
37
|
+
JSON dict with parameters
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
if IS_PYDANTIC_V2:
|