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