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.

Files changed (167) hide show
  1. label_studio_sdk/__init__.py +4 -0
  2. label_studio_sdk/actions/client.py +13 -13
  3. label_studio_sdk/actions/types/actions_list_response_item.py +3 -3
  4. label_studio_sdk/actions/types/actions_list_response_item_dialog.py +2 -2
  5. label_studio_sdk/annotations/client.py +441 -441
  6. label_studio_sdk/comments/client.py +176 -176
  7. label_studio_sdk/export_storage/azure/client.py +274 -274
  8. label_studio_sdk/export_storage/gcs/client.py +263 -263
  9. label_studio_sdk/export_storage/local/client.py +206 -206
  10. label_studio_sdk/export_storage/redis/client.py +287 -287
  11. label_studio_sdk/export_storage/s3/client.py +347 -347
  12. label_studio_sdk/export_storage/s3s/client.py +678 -678
  13. label_studio_sdk/import_storage/azure/client.py +357 -357
  14. label_studio_sdk/import_storage/gcs/client.py +357 -357
  15. label_studio_sdk/import_storage/local/client.py +206 -206
  16. label_studio_sdk/import_storage/redis/client.py +309 -309
  17. label_studio_sdk/import_storage/s3/client.py +452 -452
  18. label_studio_sdk/import_storage/s3s/client.py +735 -735
  19. label_studio_sdk/jwt_settings/client.py +10 -10
  20. label_studio_sdk/ml/client.py +118 -118
  21. label_studio_sdk/ml/types/ml_list_model_versions_response.py +1 -1
  22. label_studio_sdk/model_providers/client.py +181 -181
  23. label_studio_sdk/organizations/members/client.py +8 -8
  24. label_studio_sdk/predictions/client.py +60 -60
  25. label_studio_sdk/projects/__init__.py +30 -1
  26. label_studio_sdk/projects/assignments/__init__.py +33 -0
  27. label_studio_sdk/projects/assignments/client.py +764 -0
  28. label_studio_sdk/projects/assignments/types/__init__.py +35 -0
  29. label_studio_sdk/projects/assignments/types/assignments_assign_request_type.py +5 -0
  30. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters.py +33 -0
  31. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_conjunction.py +5 -0
  32. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item.py +44 -0
  33. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_filter.py +31 -0
  34. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_operator.py +23 -0
  35. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_value.py +7 -0
  36. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items.py +9 -0
  37. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_excluded.py +29 -0
  38. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_included.py +29 -0
  39. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_type.py +5 -0
  40. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_response.py +22 -0
  41. label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
  42. label_studio_sdk/projects/client.py +441 -425
  43. label_studio_sdk/projects/exports/client.py +55 -55
  44. label_studio_sdk/projects/exports/types/exports_convert_response.py +1 -1
  45. label_studio_sdk/projects/stats/types/stats_iaa_response.py +5 -5
  46. label_studio_sdk/projects/types/projects_import_tasks_response.py +12 -12
  47. label_studio_sdk/prompts/client.py +211 -211
  48. label_studio_sdk/prompts/runs/client.py +33 -33
  49. label_studio_sdk/prompts/versions/client.py +72 -72
  50. label_studio_sdk/tasks/client.py +174 -174
  51. label_studio_sdk/types/__init__.py +4 -0
  52. label_studio_sdk/types/all_roles_project_list.py +94 -94
  53. label_studio_sdk/types/annotation.py +35 -35
  54. label_studio_sdk/types/annotation_request.py +27 -27
  55. label_studio_sdk/types/azure_blob_export_storage.py +29 -29
  56. label_studio_sdk/types/azure_blob_import_storage.py +33 -33
  57. label_studio_sdk/types/batch_failed_predictions.py +1 -1
  58. label_studio_sdk/types/billing_checks.py +14 -14
  59. label_studio_sdk/types/billing_flags.py +16 -16
  60. label_studio_sdk/types/blueprint_list.py +7 -8
  61. label_studio_sdk/types/child_filter.py +11 -10
  62. label_studio_sdk/types/comment.py +15 -15
  63. label_studio_sdk/types/comment_request.py +7 -8
  64. label_studio_sdk/types/comment_serializer_with_expanded_user.py +17 -18
  65. label_studio_sdk/types/converted_format.py +1 -1
  66. label_studio_sdk/types/converted_format_request.py +1 -1
  67. label_studio_sdk/types/export.py +8 -8
  68. label_studio_sdk/types/file_upload.py +3 -2
  69. label_studio_sdk/types/filter.py +10 -9
  70. label_studio_sdk/types/filter_group.py +4 -3
  71. label_studio_sdk/types/gcs_export_storage.py +23 -23
  72. label_studio_sdk/types/gcs_import_storage.py +27 -27
  73. label_studio_sdk/types/import_api_request.py +26 -26
  74. label_studio_sdk/types/inference_run_cost_estimate.py +10 -10
  75. label_studio_sdk/types/local_files_export_storage.py +23 -23
  76. label_studio_sdk/types/local_files_import_storage.py +26 -26
  77. label_studio_sdk/types/lse_annotation_filter_options.py +10 -10
  78. label_studio_sdk/types/lse_annotation_filter_options_request.py +10 -10
  79. label_studio_sdk/types/lse_export_create.py +12 -12
  80. label_studio_sdk/types/lse_fields.py +14 -14
  81. label_studio_sdk/types/lse_organization.py +17 -17
  82. label_studio_sdk/types/lse_organization_member_list.py +1 -1
  83. label_studio_sdk/types/lse_project_create.py +72 -72
  84. label_studio_sdk/types/lse_project_update.py +89 -89
  85. label_studio_sdk/types/lse_s3export_storage.py +46 -46
  86. label_studio_sdk/types/lse_s3export_storage_request.py +43 -43
  87. label_studio_sdk/types/lse_s3import_storage.py +53 -53
  88. label_studio_sdk/types/lse_s3import_storage_request.py +49 -49
  89. label_studio_sdk/types/lse_task.py +49 -49
  90. label_studio_sdk/types/lse_task_drafts_item.py +1 -1
  91. label_studio_sdk/types/lse_task_filter_options.py +14 -14
  92. label_studio_sdk/types/lse_task_filter_options_request.py +14 -14
  93. label_studio_sdk/types/lse_task_predictions_item.py +5 -5
  94. label_studio_sdk/types/lse_task_serializer_for_annotators.py +12 -12
  95. label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +1 -1
  96. label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +5 -5
  97. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +49 -49
  98. label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +1 -1
  99. label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +5 -5
  100. label_studio_sdk/types/lse_user.py +13 -13
  101. label_studio_sdk/types/lse_user_api.py +11 -11
  102. label_studio_sdk/types/lse_user_organization_member_list.py +13 -13
  103. label_studio_sdk/types/lseapi_token_create.py +1 -1
  104. label_studio_sdk/types/lseapi_token_list.py +1 -1
  105. label_studio_sdk/types/lsejwt_settings.py +5 -5
  106. label_studio_sdk/types/ml_backend.py +27 -28
  107. label_studio_sdk/types/model_interface.py +12 -12
  108. label_studio_sdk/types/model_interface_request.py +7 -8
  109. label_studio_sdk/types/model_interface_serializer_get.py +13 -13
  110. label_studio_sdk/types/model_provider_connection.py +34 -34
  111. label_studio_sdk/types/model_provider_connection_request.py +15 -14
  112. label_studio_sdk/types/model_run.py +12 -12
  113. label_studio_sdk/types/organization_billing.py +1 -1
  114. label_studio_sdk/types/organization_id.py +2 -2
  115. label_studio_sdk/types/organization_invite.py +1 -1
  116. label_studio_sdk/types/organization_member.py +8 -9
  117. label_studio_sdk/types/organization_membership.py +2 -1
  118. label_studio_sdk/types/pause.py +23 -23
  119. label_studio_sdk/types/prediction.py +21 -21
  120. label_studio_sdk/types/prediction_request.py +16 -16
  121. label_studio_sdk/types/project.py +72 -72
  122. label_studio_sdk/types/project_import.py +21 -21
  123. label_studio_sdk/types/redis_export_storage.py +34 -34
  124. label_studio_sdk/types/redis_import_storage.py +37 -37
  125. label_studio_sdk/types/refined_prompt_response.py +11 -11
  126. label_studio_sdk/types/review_settings.py +29 -30
  127. label_studio_sdk/types/review_settings_request.py +29 -30
  128. label_studio_sdk/types/s3export_storage.py +45 -45
  129. label_studio_sdk/types/s3import_storage.py +44 -44
  130. label_studio_sdk/types/selected_items_request.py +1 -1
  131. label_studio_sdk/types/serialization_options.py +10 -10
  132. label_studio_sdk/types/serialization_options_request.py +10 -10
  133. label_studio_sdk/types/task_assignment.py +43 -0
  134. label_studio_sdk/types/third_party_model_version.py +11 -11
  135. label_studio_sdk/types/third_party_model_version_request.py +6 -7
  136. label_studio_sdk/types/type_enum.py +5 -0
  137. label_studio_sdk/types/user_simple.py +3 -3
  138. label_studio_sdk/types/user_simple_request.py +1 -1
  139. label_studio_sdk/types/version_response.py +19 -20
  140. label_studio_sdk/types/view.py +8 -8
  141. label_studio_sdk/types/webhook.py +16 -16
  142. label_studio_sdk/types/webhook_serializer_for_update.py +16 -16
  143. label_studio_sdk/types/workspace.py +10 -11
  144. label_studio_sdk/users/client.py +160 -160
  145. label_studio_sdk/views/client.py +164 -164
  146. label_studio_sdk/webhooks/client.py +183 -183
  147. label_studio_sdk/webhooks/types/webhooks_info_response.py +32 -32
  148. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +1 -1
  149. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +1 -1
  150. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +1 -1
  151. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +1 -1
  152. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +1 -1
  153. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +1 -1
  154. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +1 -1
  155. label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +1 -1
  156. label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +1 -1
  157. label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +1 -1
  158. label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +1 -1
  159. label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +1 -1
  160. label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +1 -1
  161. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +1 -1
  162. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +1 -1
  163. label_studio_sdk/workspaces/client.py +40 -40
  164. {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +1 -1
  165. {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +167 -149
  166. {label_studio_sdk-2.0.1.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
  167. {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
- id: int
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
- Criteria to mark task as reviewed
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
- anonymize_annotations: typing.Optional[bool] = pydantic.Field(default=None)
17
+ id: int
18
+ instruction: typing.Optional[str] = pydantic.Field(default=None)
23
19
  """
24
- Hide annotator names from annotations while review
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
- instruction: typing.Optional[str] = pydantic.Field(default=None)
28
+ project: typing.Optional[int] = None
29
+ requeue_rejected_tasks_mode: typing.Optional[ReviewSettingsRequeueRejectedTasksMode] = pydantic.Field(default=None)
33
30
  """
34
- Reviewer instructions in HTML format
31
+ Requeue mode for rejected tasks
32
+
33
+ * `requeue` - Requeue
34
+ * `remove` - Remove
35
+ * `flexible` - Flexible
35
36
  """
36
37
 
37
- show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
38
+ requeue_rejected_tasks_to_annotator: bool
39
+ require_comment_on_reject: typing.Optional[bool] = pydantic.Field(default=None)
38
40
  """
39
- Show instructions to the reviewers before they start
41
+ If set, the reviewer must leave a comment on reject
40
42
  """
41
43
 
42
- show_data_manager_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
44
+ review_criteria: typing.Optional[ReviewSettingsReviewCriteria] = pydantic.Field(default=None)
43
45
  """
44
- Show the data manager to reviewers
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
- show_agreement_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
52
+ review_only_manual_assignments: typing.Optional[bool] = pydantic.Field(default=None)
48
53
  """
49
- Show the agreement column to reviewers
54
+ When set True, review queue is built only from manually assigned tasks
50
55
  """
51
56
 
52
- require_comment_on_reject: typing.Optional[bool] = pydantic.Field(default=None)
57
+ show_agreement_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
53
58
  """
54
- If set, the reviewer must leave a comment on reject
59
+ Show the agreement column to reviewers
55
60
  """
56
61
 
57
- requeue_rejected_tasks_mode: typing.Optional[ReviewSettingsRequeueRejectedTasksMode] = pydantic.Field(default=None)
62
+ show_data_manager_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
58
63
  """
59
- Requeue mode for rejected tasks
60
-
61
- * `requeue` - Requeue
62
- * `remove` - Remove
63
- * `flexible` - Flexible
64
+ Show the data manager to reviewers
64
65
  """
65
66
 
66
- review_only_manual_assignments: typing.Optional[bool] = pydantic.Field(default=None)
67
+ show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
67
68
  """
68
- When set True, review queue is built only from manually assigned tasks
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
- review_criteria: typing.Optional[ReviewSettingsRequestReviewCriteria] = pydantic.Field(default=None)
12
+ anonymize_annotations: typing.Optional[bool] = pydantic.Field(default=None)
13
13
  """
14
- Criteria to mark task as reviewed
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
- anonymize_annotations: typing.Optional[bool] = pydantic.Field(default=None)
17
+ instruction: typing.Optional[str] = pydantic.Field(default=None)
21
18
  """
22
- Hide annotator names from annotations while review
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
- instruction: typing.Optional[str] = pydantic.Field(default=None)
27
+ project: typing.Optional[int] = None
28
+ requeue_rejected_tasks_mode: typing.Optional[ReviewSettingsRequestRequeueRejectedTasksMode] = pydantic.Field(
29
+ default=None
30
+ )
31
31
  """
32
- Reviewer instructions in HTML format
32
+ Requeue mode for rejected tasks
33
+
34
+ * `requeue` - Requeue
35
+ * `remove` - Remove
36
+ * `flexible` - Flexible
33
37
  """
34
38
 
35
- show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
39
+ require_comment_on_reject: typing.Optional[bool] = pydantic.Field(default=None)
36
40
  """
37
- Show instructions to the reviewers before they start
41
+ If set, the reviewer must leave a comment on reject
38
42
  """
39
43
 
40
- show_data_manager_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
44
+ review_criteria: typing.Optional[ReviewSettingsRequestReviewCriteria] = pydantic.Field(default=None)
41
45
  """
42
- Show the data manager to reviewers
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
- show_agreement_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
52
+ review_only_manual_assignments: typing.Optional[bool] = pydantic.Field(default=None)
46
53
  """
47
- Show the agreement column to reviewers
54
+ When set True, review queue is built only from manually assigned tasks
48
55
  """
49
56
 
50
- require_comment_on_reject: typing.Optional[bool] = pydantic.Field(default=None)
57
+ show_agreement_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
51
58
  """
52
- If set, the reviewer must leave a comment on reject
59
+ Show the agreement column to reviewers
53
60
  """
54
61
 
55
- requeue_rejected_tasks_mode: typing.Optional[ReviewSettingsRequestRequeueRejectedTasksMode] = pydantic.Field(
56
- default=None
57
- )
62
+ show_data_manager_to_reviewers: typing.Optional[bool] = pydantic.Field(default=None)
58
63
  """
59
- Requeue mode for rejected tasks
60
-
61
- * `requeue` - Requeue
62
- * `remove` - Remove
63
- * `flexible` - Flexible
64
+ Show the data manager to reviewers
64
65
  """
65
66
 
66
- review_only_manual_assignments: typing.Optional[bool] = pydantic.Field(default=None)
67
+ show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
67
68
  """
68
- When set True, review queue is built only from manually assigned tasks
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
- from .status_c5a_enum import StatusC5AEnum
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
- id: int
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
- Last sync job ID
16
+ AWS_ACCESS_KEY_ID
30
17
  """
31
18
 
32
- status: typing.Optional[StatusC5AEnum] = None
33
- traceback: typing.Optional[str] = pydantic.Field(default=None)
19
+ aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
34
20
  """
35
- Traceback report for the last failed sync
21
+ AWS_SECRET_ACCESS_KEY
36
22
  """
37
23
 
38
- meta: typing.Optional[typing.Optional[typing.Any]] = None
39
- title: typing.Optional[str] = pydantic.Field(default=None)
24
+ aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
40
25
  """
41
- Cloud storage title
26
+ AWS_SESSION_TOKEN
42
27
  """
43
28
 
44
- description: typing.Optional[str] = pydantic.Field(default=None)
29
+ aws_sse_kms_key_id: typing.Optional[str] = pydantic.Field(default=None)
45
30
  """
46
- Cloud storage description
31
+ AWS SSE KMS Key ID
47
32
  """
48
33
 
49
- created_at: dt.datetime = pydantic.Field()
34
+ bucket: typing.Optional[str] = pydantic.Field(default=None)
50
35
  """
51
- Creation time
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
- bucket: typing.Optional[str] = pydantic.Field(default=None)
44
+ created_at: dt.datetime = pydantic.Field()
60
45
  """
61
- S3 bucket name
46
+ Creation time
62
47
  """
63
48
 
64
- prefix: typing.Optional[str] = pydantic.Field(default=None)
49
+ description: typing.Optional[str] = pydantic.Field(default=None)
65
50
  """
66
- S3 bucket prefix
51
+ Cloud storage description
67
52
  """
68
53
 
69
- regex_filter: typing.Optional[str] = pydantic.Field(default=None)
54
+ id: int
55
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
70
56
  """
71
- Cloud storage regex for filtering objects
57
+ Last sync finished time
72
58
  """
73
59
 
74
- use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
60
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
75
61
  """
76
- Interpret objects as BLOBs and generate URLs
62
+ Count of tasks synced last time
77
63
  """
78
64
 
79
- aws_access_key_id: typing.Optional[str] = pydantic.Field(default=None)
65
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
80
66
  """
81
- AWS_ACCESS_KEY_ID
67
+ Last sync job ID
82
68
  """
83
69
 
84
- aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
70
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
71
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
85
72
  """
86
- AWS_SECRET_ACCESS_KEY
73
+ S3 bucket prefix
87
74
  """
88
75
 
89
- aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
76
+ project: int = pydantic.Field()
90
77
  """
91
- AWS_SESSION_TOKEN
78
+ A unique integer value identifying this project.
92
79
  """
93
80
 
94
- aws_sse_kms_key_id: typing.Optional[str] = pydantic.Field(default=None)
81
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
95
82
  """
96
- AWS SSE KMS Key ID
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
- project: int = pydantic.Field()
98
+ status: typing.Optional[StatusC5AEnum] = None
99
+ synchronizable: typing.Optional[bool] = None
100
+ title: typing.Optional[str] = pydantic.Field(default=None)
112
101
  """
113
- A unique integer value identifying this project.
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
- from .status_c5a_enum import StatusC5AEnum
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
- id: int
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
- Last sync finished time
16
+ AWS_ACCESS_KEY_ID
21
17
  """
22
18
 
23
- last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
19
+ aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
24
20
  """
25
- Count of tasks synced last time
21
+ AWS_SECRET_ACCESS_KEY
26
22
  """
27
23
 
28
- last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
24
+ aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
29
25
  """
30
- Last sync job ID
26
+ AWS_SESSION_TOKEN
31
27
  """
32
28
 
33
- status: typing.Optional[StatusC5AEnum] = None
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
- Traceback report for the last failed sync
31
+ AWS SSE KMS Key ID
37
32
  """
38
33
 
39
- meta: typing.Optional[typing.Optional[typing.Any]] = None
40
- title: typing.Optional[str] = pydantic.Field(default=None)
34
+ bucket: typing.Optional[str] = pydantic.Field(default=None)
41
35
  """
42
- Cloud storage title
36
+ S3 bucket name
43
37
  """
44
38
 
45
- description: typing.Optional[str] = pydantic.Field(default=None)
39
+ created_at: dt.datetime = pydantic.Field()
46
40
  """
47
- Cloud storage description
41
+ Creation time
48
42
  """
49
43
 
50
- created_at: dt.datetime = pydantic.Field()
44
+ description: typing.Optional[str] = pydantic.Field(default=None)
51
45
  """
52
- Creation time
46
+ Cloud storage description
53
47
  """
54
48
 
55
- bucket: typing.Optional[str] = pydantic.Field(default=None)
49
+ id: int
50
+ last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
56
51
  """
57
- S3 bucket name
52
+ Last sync finished time
58
53
  """
59
54
 
60
- prefix: typing.Optional[str] = pydantic.Field(default=None)
55
+ last_sync_count: typing.Optional[int] = pydantic.Field(default=None)
61
56
  """
62
- S3 bucket prefix
57
+ Count of tasks synced last time
63
58
  """
64
59
 
65
- regex_filter: typing.Optional[str] = pydantic.Field(default=None)
60
+ last_sync_job: typing.Optional[str] = pydantic.Field(default=None)
66
61
  """
67
- Cloud storage regex for filtering objects
62
+ Last sync job ID
68
63
  """
69
64
 
70
- use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
65
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
66
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
71
67
  """
72
- Interpret objects as BLOBs and generate URLs
68
+ S3 bucket prefix
73
69
  """
74
70
 
75
- aws_access_key_id: typing.Optional[str] = pydantic.Field(default=None)
71
+ presign: typing.Optional[bool] = None
72
+ presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
76
73
  """
77
- AWS_ACCESS_KEY_ID
74
+ Presigned URLs TTL (in minutes)
78
75
  """
79
76
 
80
- aws_secret_access_key: typing.Optional[str] = pydantic.Field(default=None)
77
+ project: int = pydantic.Field()
81
78
  """
82
- AWS_SECRET_ACCESS_KEY
79
+ A unique integer value identifying this project.
83
80
  """
84
81
 
85
- aws_session_token: typing.Optional[str] = pydantic.Field(default=None)
82
+ recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
86
83
  """
87
- AWS_SESSION_TOKEN
84
+ Perform recursive scan over the bucket content
88
85
  """
89
86
 
90
- aws_sse_kms_key_id: typing.Optional[str] = pydantic.Field(default=None)
87
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
91
88
  """
92
- AWS SSE KMS Key ID
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
- presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
104
+ status: typing.Optional[StatusC5AEnum] = None
105
+ synchronizable: typing.Optional[bool] = None
106
+ title: typing.Optional[str] = pydantic.Field(default=None)
108
107
  """
109
- Presigned URLs TTL (in minutes)
108
+ Cloud storage title
110
109
  """
111
110
 
112
- recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
111
+ traceback: typing.Optional[str] = pydantic.Field(default=None)
113
112
  """
114
- Perform recursive scan over the bucket content
113
+ Traceback report for the last failed sync
115
114
  """
116
115
 
117
- project: int = pydantic.Field()
116
+ type: str
117
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
118
118
  """
119
- A unique integer value identifying this project.
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
- drafts: typing.Optional[SerializationOption] = pydantic.Field(default=None)
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
- predictions: typing.Optional[SerializationOption] = pydantic.Field(default=None)
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
- annotations_completed_by: typing_extensions.Annotated[
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
- JSON dict with parameters
32
+ Interpolate video key frames
33
33
  """
34
34
 
35
- interpolate_key_frames: typing.Optional[bool] = pydantic.Field(default=None)
35
+ predictions: typing.Optional[SerializationOption] = pydantic.Field(default=None)
36
36
  """
37
- Interpolate video key frames
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
- drafts: typing.Optional[SerializationOptionRequest] = pydantic.Field(default=None)
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
- predictions: typing.Optional[SerializationOptionRequest] = pydantic.Field(default=None)
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
- annotations_completed_by: typing_extensions.Annotated[
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
- JSON dict with parameters
32
+ Interpolate video key frames
33
33
  """
34
34
 
35
- interpolate_key_frames: typing.Optional[bool] = pydantic.Field(default=None)
35
+ predictions: typing.Optional[SerializationOptionRequest] = pydantic.Field(default=None)
36
36
  """
37
- Interpolate video key frames
37
+ JSON dict with parameters
38
38
  """
39
39
 
40
40
  if IS_PYDANTIC_V2: