label-studio-sdk 2.0.0__py3-none-any.whl → 2.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of label-studio-sdk might be problematic. Click here for more details.

Files changed (175) hide show
  1. label_studio_sdk/__init__.py +24 -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/billing/__init__.py +2 -0
  8. label_studio_sdk/billing/client.py +112 -0
  9. label_studio_sdk/comments/client.py +176 -176
  10. label_studio_sdk/export_storage/azure/client.py +274 -274
  11. label_studio_sdk/export_storage/gcs/client.py +263 -263
  12. label_studio_sdk/export_storage/local/client.py +206 -206
  13. label_studio_sdk/export_storage/redis/client.py +287 -287
  14. label_studio_sdk/export_storage/s3/client.py +347 -347
  15. label_studio_sdk/export_storage/s3s/client.py +678 -678
  16. label_studio_sdk/import_storage/azure/client.py +357 -357
  17. label_studio_sdk/import_storage/gcs/client.py +357 -357
  18. label_studio_sdk/import_storage/local/client.py +206 -206
  19. label_studio_sdk/import_storage/redis/client.py +309 -309
  20. label_studio_sdk/import_storage/s3/client.py +452 -452
  21. label_studio_sdk/import_storage/s3s/client.py +735 -735
  22. label_studio_sdk/jwt_settings/client.py +10 -10
  23. label_studio_sdk/ml/client.py +118 -118
  24. label_studio_sdk/ml/types/ml_list_model_versions_response.py +1 -1
  25. label_studio_sdk/model_providers/client.py +181 -181
  26. label_studio_sdk/organizations/members/client.py +348 -2
  27. label_studio_sdk/predictions/client.py +60 -60
  28. label_studio_sdk/projects/__init__.py +30 -1
  29. label_studio_sdk/projects/assignments/__init__.py +33 -0
  30. label_studio_sdk/projects/assignments/client.py +764 -0
  31. label_studio_sdk/projects/assignments/types/__init__.py +35 -0
  32. label_studio_sdk/projects/assignments/types/assignments_assign_request_type.py +5 -0
  33. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters.py +33 -0
  34. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_conjunction.py +5 -0
  35. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item.py +44 -0
  36. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_filter.py +31 -0
  37. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_operator.py +23 -0
  38. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_value.py +7 -0
  39. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items.py +9 -0
  40. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_excluded.py +29 -0
  41. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_included.py +29 -0
  42. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_type.py +5 -0
  43. label_studio_sdk/projects/assignments/types/assignments_bulk_assign_response.py +22 -0
  44. label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
  45. label_studio_sdk/projects/client.py +441 -425
  46. label_studio_sdk/projects/exports/client.py +55 -55
  47. label_studio_sdk/projects/exports/types/exports_convert_response.py +1 -1
  48. label_studio_sdk/projects/stats/types/stats_iaa_response.py +5 -5
  49. label_studio_sdk/projects/types/projects_import_tasks_response.py +12 -12
  50. label_studio_sdk/prompts/client.py +211 -211
  51. label_studio_sdk/prompts/runs/client.py +33 -33
  52. label_studio_sdk/prompts/versions/client.py +72 -72
  53. label_studio_sdk/tasks/client.py +174 -174
  54. label_studio_sdk/types/__init__.py +22 -0
  55. label_studio_sdk/types/all_roles_project_list.py +98 -98
  56. label_studio_sdk/types/annotation.py +35 -35
  57. label_studio_sdk/types/annotation_request.py +27 -27
  58. label_studio_sdk/types/azure_blob_export_storage.py +29 -29
  59. label_studio_sdk/types/azure_blob_import_storage.py +33 -33
  60. label_studio_sdk/types/batch_failed_predictions.py +1 -1
  61. label_studio_sdk/types/billing_checks.py +39 -0
  62. label_studio_sdk/types/billing_flags.py +44 -0
  63. label_studio_sdk/types/billing_info_response.py +22 -0
  64. label_studio_sdk/types/blueprint_list.py +7 -8
  65. label_studio_sdk/types/child_filter.py +11 -10
  66. label_studio_sdk/types/comment.py +15 -15
  67. label_studio_sdk/types/comment_request.py +7 -8
  68. label_studio_sdk/types/comment_serializer_with_expanded_user.py +17 -18
  69. label_studio_sdk/types/converted_format.py +1 -1
  70. label_studio_sdk/types/converted_format_request.py +1 -1
  71. label_studio_sdk/types/count_limit.py +22 -0
  72. label_studio_sdk/types/export.py +8 -8
  73. label_studio_sdk/types/file_upload.py +3 -2
  74. label_studio_sdk/types/filter.py +10 -9
  75. label_studio_sdk/types/filter_group.py +4 -3
  76. label_studio_sdk/types/gcs_export_storage.py +23 -23
  77. label_studio_sdk/types/gcs_import_storage.py +27 -27
  78. label_studio_sdk/types/import_api_request.py +26 -26
  79. label_studio_sdk/types/inference_run_cost_estimate.py +10 -10
  80. label_studio_sdk/types/local_files_export_storage.py +23 -23
  81. label_studio_sdk/types/local_files_import_storage.py +26 -26
  82. label_studio_sdk/types/lse_annotation_filter_options.py +10 -10
  83. label_studio_sdk/types/lse_annotation_filter_options_request.py +10 -10
  84. label_studio_sdk/types/lse_export_create.py +12 -12
  85. label_studio_sdk/types/lse_fields.py +14 -14
  86. label_studio_sdk/types/lse_organization.py +17 -17
  87. label_studio_sdk/types/lse_organization_member_list.py +32 -0
  88. label_studio_sdk/types/lse_project_create.py +72 -72
  89. label_studio_sdk/types/lse_project_update.py +89 -89
  90. label_studio_sdk/types/lse_s3export_storage.py +46 -46
  91. label_studio_sdk/types/lse_s3export_storage_request.py +43 -43
  92. label_studio_sdk/types/lse_s3import_storage.py +53 -53
  93. label_studio_sdk/types/lse_s3import_storage_request.py +49 -49
  94. label_studio_sdk/types/lse_task.py +49 -49
  95. label_studio_sdk/types/lse_task_drafts_item.py +1 -1
  96. label_studio_sdk/types/lse_task_filter_options.py +14 -14
  97. label_studio_sdk/types/lse_task_filter_options_request.py +14 -14
  98. label_studio_sdk/types/lse_task_predictions_item.py +5 -5
  99. label_studio_sdk/types/lse_task_serializer_for_annotators.py +12 -12
  100. label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +1 -1
  101. label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +5 -5
  102. label_studio_sdk/types/lse_task_serializer_for_reviewers.py +49 -49
  103. label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +1 -1
  104. label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +5 -5
  105. label_studio_sdk/types/lse_user.py +13 -13
  106. label_studio_sdk/types/lse_user_api.py +11 -11
  107. label_studio_sdk/types/lse_user_organization_member_list.py +48 -0
  108. label_studio_sdk/types/lseapi_token_create.py +1 -1
  109. label_studio_sdk/types/lseapi_token_list.py +1 -1
  110. label_studio_sdk/types/lsejwt_settings.py +5 -5
  111. label_studio_sdk/types/ml_backend.py +27 -28
  112. label_studio_sdk/types/model_interface.py +12 -12
  113. label_studio_sdk/types/model_interface_request.py +7 -8
  114. label_studio_sdk/types/model_interface_serializer_get.py +13 -13
  115. label_studio_sdk/types/model_provider_connection.py +34 -34
  116. label_studio_sdk/types/model_provider_connection_request.py +15 -14
  117. label_studio_sdk/types/model_run.py +12 -12
  118. label_studio_sdk/types/organization_billing.py +1 -1
  119. label_studio_sdk/types/organization_id.py +2 -2
  120. label_studio_sdk/types/organization_invite.py +1 -1
  121. label_studio_sdk/types/organization_member.py +8 -9
  122. label_studio_sdk/types/organization_membership.py +2 -1
  123. label_studio_sdk/types/paginated_lse_organization_member_list_list.py +23 -0
  124. label_studio_sdk/types/pause.py +23 -23
  125. label_studio_sdk/types/prediction.py +21 -21
  126. label_studio_sdk/types/prediction_request.py +16 -16
  127. label_studio_sdk/types/project.py +72 -72
  128. label_studio_sdk/types/project_import.py +21 -21
  129. label_studio_sdk/types/prompts_status_enum.py +16 -0
  130. label_studio_sdk/types/redis_export_storage.py +34 -34
  131. label_studio_sdk/types/redis_import_storage.py +37 -37
  132. label_studio_sdk/types/refined_prompt_response.py +11 -11
  133. label_studio_sdk/types/review_settings.py +29 -30
  134. label_studio_sdk/types/review_settings_request.py +29 -30
  135. label_studio_sdk/types/role9e7enum.py +5 -0
  136. label_studio_sdk/types/s3export_storage.py +45 -45
  137. label_studio_sdk/types/s3import_storage.py +44 -44
  138. label_studio_sdk/types/selected_items_request.py +1 -1
  139. label_studio_sdk/types/serialization_options.py +10 -10
  140. label_studio_sdk/types/serialization_options_request.py +10 -10
  141. label_studio_sdk/types/task_assignment.py +43 -0
  142. label_studio_sdk/types/third_party_model_version.py +11 -11
  143. label_studio_sdk/types/third_party_model_version_request.py +6 -7
  144. label_studio_sdk/types/type_enum.py +5 -0
  145. label_studio_sdk/types/user_simple.py +3 -3
  146. label_studio_sdk/types/user_simple_request.py +1 -1
  147. label_studio_sdk/types/version_response.py +19 -20
  148. label_studio_sdk/types/view.py +8 -8
  149. label_studio_sdk/types/webhook.py +16 -16
  150. label_studio_sdk/types/webhook_serializer_for_update.py +16 -16
  151. label_studio_sdk/types/workspace.py +10 -11
  152. label_studio_sdk/users/client.py +160 -160
  153. label_studio_sdk/views/client.py +164 -164
  154. label_studio_sdk/webhooks/client.py +183 -183
  155. label_studio_sdk/webhooks/types/webhooks_info_response.py +32 -32
  156. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +1 -1
  157. label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +1 -1
  158. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +1 -1
  159. label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +1 -1
  160. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +1 -1
  161. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +1 -1
  162. label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +1 -1
  163. label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +1 -1
  164. label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +1 -1
  165. label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +1 -1
  166. label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +1 -1
  167. label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +1 -1
  168. label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +1 -1
  169. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +1 -1
  170. label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +1 -1
  171. label_studio_sdk/workspaces/client.py +40 -40
  172. {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +73 -25
  173. {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +175 -146
  174. {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
  175. {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/WHEEL +0 -0
@@ -9,39 +9,37 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
9
 
10
10
 
11
11
  class AzureBlobExportStorage(UncheckedBaseModel):
12
- id: int
13
- type: str
14
- synchronizable: typing.Optional[bool] = None
15
- container: typing.Optional[str] = pydantic.Field(default=None)
12
+ account_key: typing.Optional[str] = pydantic.Field(default=None)
16
13
  """
17
- Azure blob container
14
+ Azure Blob account key
18
15
  """
19
16
 
20
- prefix: typing.Optional[str] = pydantic.Field(default=None)
17
+ account_name: typing.Optional[str] = pydantic.Field(default=None)
21
18
  """
22
- Azure blob prefix name
19
+ Azure Blob account name
23
20
  """
24
21
 
25
- regex_filter: typing.Optional[str] = pydantic.Field(default=None)
22
+ can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
26
23
  """
27
- Cloud storage regex for filtering objects
24
+ Deletion from storage enabled
28
25
  """
29
26
 
30
- use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
27
+ container: typing.Optional[str] = pydantic.Field(default=None)
31
28
  """
32
- Interpret objects as BLOBs and generate URLs
29
+ Azure blob container
33
30
  """
34
31
 
35
- account_name: typing.Optional[str] = pydantic.Field(default=None)
32
+ created_at: dt.datetime = pydantic.Field()
36
33
  """
37
- Azure Blob account name
34
+ Creation time
38
35
  """
39
36
 
40
- account_key: typing.Optional[str] = pydantic.Field(default=None)
37
+ description: typing.Optional[str] = pydantic.Field(default=None)
41
38
  """
42
- Azure Blob account key
39
+ Cloud storage description
43
40
  """
44
41
 
42
+ id: int
45
43
  last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
46
44
  """
47
45
  Last sync finished time
@@ -57,36 +55,38 @@ class AzureBlobExportStorage(UncheckedBaseModel):
57
55
  Last sync job ID
58
56
  """
59
57
 
60
- status: typing.Optional[StatusC5AEnum] = None
61
- traceback: typing.Optional[str] = pydantic.Field(default=None)
58
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
59
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
62
60
  """
63
- Traceback report for the last failed sync
61
+ Azure blob prefix name
64
62
  """
65
63
 
66
- meta: typing.Optional[typing.Optional[typing.Any]] = None
67
- title: typing.Optional[str] = pydantic.Field(default=None)
64
+ project: int = pydantic.Field()
68
65
  """
69
- Cloud storage title
66
+ A unique integer value identifying this project.
70
67
  """
71
68
 
72
- description: typing.Optional[str] = pydantic.Field(default=None)
69
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
73
70
  """
74
- Cloud storage description
71
+ Cloud storage regex for filtering objects
75
72
  """
76
73
 
77
- created_at: dt.datetime = pydantic.Field()
74
+ status: typing.Optional[StatusC5AEnum] = None
75
+ synchronizable: typing.Optional[bool] = None
76
+ title: typing.Optional[str] = pydantic.Field(default=None)
78
77
  """
79
- Creation time
78
+ Cloud storage title
80
79
  """
81
80
 
82
- can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
81
+ traceback: typing.Optional[str] = pydantic.Field(default=None)
83
82
  """
84
- Deletion from storage enabled
83
+ Traceback report for the last failed sync
85
84
  """
86
85
 
87
- project: int = pydantic.Field()
86
+ type: str
87
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
88
88
  """
89
- A unique integer value identifying this project.
89
+ Interpret objects as BLOBs and generate URLs
90
90
  """
91
91
 
92
92
  if IS_PYDANTIC_V2:
@@ -9,40 +9,32 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
9
 
10
10
 
11
11
  class AzureBlobImportStorage(UncheckedBaseModel):
12
- id: int
13
- type: str
14
- synchronizable: typing.Optional[bool] = None
15
- presign: typing.Optional[bool] = None
16
- container: typing.Optional[str] = pydantic.Field(default=None)
17
- """
18
- Azure blob container
19
- """
20
-
21
- prefix: typing.Optional[str] = pydantic.Field(default=None)
12
+ account_key: typing.Optional[str] = pydantic.Field(default=None)
22
13
  """
23
- Azure blob prefix name
14
+ Azure Blob account key
24
15
  """
25
16
 
26
- regex_filter: typing.Optional[str] = pydantic.Field(default=None)
17
+ account_name: typing.Optional[str] = pydantic.Field(default=None)
27
18
  """
28
- Cloud storage regex for filtering objects
19
+ Azure Blob account name
29
20
  """
30
21
 
31
- use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
22
+ container: typing.Optional[str] = pydantic.Field(default=None)
32
23
  """
33
- Interpret objects as BLOBs and generate URLs
24
+ Azure blob container
34
25
  """
35
26
 
36
- account_name: typing.Optional[str] = pydantic.Field(default=None)
27
+ created_at: dt.datetime = pydantic.Field()
37
28
  """
38
- Azure Blob account name
29
+ Creation time
39
30
  """
40
31
 
41
- account_key: typing.Optional[str] = pydantic.Field(default=None)
32
+ description: typing.Optional[str] = pydantic.Field(default=None)
42
33
  """
43
- Azure Blob account key
34
+ Cloud storage description
44
35
  """
45
36
 
37
+ id: int
46
38
  last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
47
39
  """
48
40
  Last sync finished time
@@ -58,36 +50,44 @@ class AzureBlobImportStorage(UncheckedBaseModel):
58
50
  Last sync job ID
59
51
  """
60
52
 
61
- status: typing.Optional[StatusC5AEnum] = None
62
- traceback: typing.Optional[str] = pydantic.Field(default=None)
53
+ meta: typing.Optional[typing.Optional[typing.Any]] = None
54
+ prefix: typing.Optional[str] = pydantic.Field(default=None)
63
55
  """
64
- Traceback report for the last failed sync
56
+ Azure blob prefix name
65
57
  """
66
58
 
67
- meta: typing.Optional[typing.Optional[typing.Any]] = None
68
- title: typing.Optional[str] = pydantic.Field(default=None)
59
+ presign: typing.Optional[bool] = None
60
+ presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
69
61
  """
70
- Cloud storage title
62
+ Presigned URLs TTL (in minutes)
71
63
  """
72
64
 
73
- description: typing.Optional[str] = pydantic.Field(default=None)
65
+ project: int = pydantic.Field()
74
66
  """
75
- Cloud storage description
67
+ A unique integer value identifying this project.
76
68
  """
77
69
 
78
- created_at: dt.datetime = pydantic.Field()
70
+ regex_filter: typing.Optional[str] = pydantic.Field(default=None)
79
71
  """
80
- Creation time
72
+ Cloud storage regex for filtering objects
81
73
  """
82
74
 
83
- presign_ttl: typing.Optional[int] = pydantic.Field(default=None)
75
+ status: typing.Optional[StatusC5AEnum] = None
76
+ synchronizable: typing.Optional[bool] = None
77
+ title: typing.Optional[str] = pydantic.Field(default=None)
84
78
  """
85
- Presigned URLs TTL (in minutes)
79
+ Cloud storage title
86
80
  """
87
81
 
88
- project: int = pydantic.Field()
82
+ traceback: typing.Optional[str] = pydantic.Field(default=None)
89
83
  """
90
- A unique integer value identifying this project.
84
+ Traceback report for the last failed sync
85
+ """
86
+
87
+ type: str
88
+ use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
89
+ """
90
+ Interpret objects as BLOBs and generate URLs
91
91
  """
92
92
 
93
93
  if IS_PYDANTIC_V2:
@@ -7,8 +7,8 @@ import pydantic
7
7
 
8
8
 
9
9
  class BatchFailedPredictions(UncheckedBaseModel):
10
- job_id: str
11
10
  failed_predictions: typing.List[typing.Optional[typing.Any]]
11
+ job_id: 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
@@ -0,0 +1,39 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from .count_limit import CountLimit
5
+ import typing
6
+ from .prompts_status_enum import PromptsStatusEnum
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+
10
+
11
+ class BillingChecks(UncheckedBaseModel):
12
+ export_storages: CountLimit
13
+ import_storages: CountLimit
14
+ is_license_expired: bool
15
+ is_license_warning: bool
16
+ is_prompts_expire: bool
17
+ is_prompts_warning: bool
18
+ license_expires: typing.Optional[str] = None
19
+ license_issued: typing.Optional[str] = None
20
+ license_warning: typing.Optional[str] = None
21
+ organization_is_active: bool
22
+ projects: CountLimit
23
+ prompts_api_keys_enabled: bool
24
+ prompts_enabled: bool
25
+ prompts_expire: typing.Optional[str] = None
26
+ prompts_status: PromptsStatusEnum
27
+ prompts_warning: typing.Optional[str] = None
28
+ results: CountLimit
29
+ trial_days: int
30
+ users: CountLimit
31
+
32
+ if IS_PYDANTIC_V2:
33
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
34
+ else:
35
+
36
+ class Config:
37
+ frozen = True
38
+ smart_union = True
39
+ extra = pydantic.Extra.allow
@@ -0,0 +1,44 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import datetime as dt
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class BillingFlags(UncheckedBaseModel):
11
+ activated_at: typing.Optional[dt.datetime] = None
12
+ allow_activity_log: bool
13
+ allow_ai: bool
14
+ allow_ask_ai: bool
15
+ allow_data_credentials: bool
16
+ allow_invite_people: bool
17
+ allow_invite_project_experts: bool
18
+ allow_organization_webhooks: bool
19
+ allow_sso: bool
20
+ allow_storage_proxy: bool
21
+ automax_enabled: bool
22
+ automax_token_exists: bool
23
+ cloud_instance: bool
24
+ disable_members_page: bool
25
+ disable_project_imports: bool
26
+ early_adopter: bool
27
+ embed_domains: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
28
+ embed_enabled: bool
29
+ embed_settings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
30
+ hide_storage_settings_for_manager: bool
31
+ manual_role_management: bool
32
+ manual_workspace_management: bool
33
+ secure_mode: bool
34
+ storage_persistence: bool
35
+ white_label_id: typing.Optional[str] = None
36
+
37
+ if IS_PYDANTIC_V2:
38
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
39
+ else:
40
+
41
+ class Config:
42
+ frozen = True
43
+ smart_union = True
44
+ extra = pydantic.Extra.allow
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from .billing_checks import BillingChecks
5
+ from .billing_flags import BillingFlags
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+ import pydantic
9
+
10
+
11
+ class BillingInfoResponse(UncheckedBaseModel):
12
+ billing_checks: BillingChecks
13
+ billing_flags: BillingFlags
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -1,13 +1,19 @@
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 datetime as dt
4
5
  import typing
5
6
  import pydantic
6
- import datetime as dt
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
 
9
9
 
10
10
  class BlueprintList(UncheckedBaseModel):
11
+ created_at: dt.datetime
12
+ description: typing.Optional[str] = pydantic.Field(default=None)
13
+ """
14
+ Project description
15
+ """
16
+
11
17
  id: int
12
18
  share_id: str
13
19
  short_url: str
@@ -16,13 +22,6 @@ class BlueprintList(UncheckedBaseModel):
16
22
  Blueprint name. Must be between 3 and 50 characters long.
17
23
  """
18
24
 
19
- description: typing.Optional[str] = pydantic.Field(default=None)
20
- """
21
- Project description
22
- """
23
-
24
- created_at: dt.datetime
25
-
26
25
  if IS_PYDANTIC_V2:
27
26
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
28
27
  else:
@@ -1,26 +1,21 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
- import typing
5
4
  import pydantic
5
+ import typing
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
 
8
8
 
9
9
  class ChildFilter(UncheckedBaseModel):
10
- id: int
11
- index: typing.Optional[int] = pydantic.Field(default=None)
12
- """
13
- Display order among root filters only
14
- """
15
-
16
10
  column: str = pydantic.Field()
17
11
  """
18
12
  Field name
19
13
  """
20
14
 
21
- type: str = pydantic.Field()
15
+ id: int
16
+ index: typing.Optional[int] = pydantic.Field(default=None)
22
17
  """
23
- Field type
18
+ Display order among root filters only
24
19
  """
25
20
 
26
21
  operator: str = pydantic.Field()
@@ -28,12 +23,18 @@ class ChildFilter(UncheckedBaseModel):
28
23
  Filter operator
29
24
  """
30
25
 
31
- value: typing.Optional[typing.Optional[typing.Any]] = None
32
26
  parent: typing.Optional[int] = pydantic.Field(default=None)
33
27
  """
34
28
  Optional parent filter to create one-level hierarchy (child filters are AND-merged with parent)
35
29
  """
36
30
 
31
+ type: str = pydantic.Field()
32
+ """
33
+ Field type
34
+ """
35
+
36
+ value: typing.Optional[typing.Optional[typing.Any]] = None
37
+
37
38
  if IS_PYDANTIC_V2:
38
39
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
39
40
  else:
@@ -2,47 +2,47 @@
2
2
 
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
- import pydantic
6
5
  import datetime as dt
6
+ import pydantic
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
 
9
9
 
10
10
  class Comment(UncheckedBaseModel):
11
- id: int
12
- region_ref: typing.Optional[typing.Optional[typing.Any]] = None
11
+ annotation: typing.Optional[int] = None
13
12
  classifications: typing.Optional[typing.Optional[typing.Any]] = None
14
- text: typing.Optional[str] = pydantic.Field(default=None)
15
- """
16
- Reviewer or annotator comment
17
- """
18
-
19
13
  created_at: dt.datetime = pydantic.Field()
20
14
  """
21
15
  Creation time
22
16
  """
23
17
 
24
- updated_at: dt.datetime = pydantic.Field()
18
+ created_by: int = pydantic.Field()
25
19
  """
26
- Last updated time
20
+ User who made this comment
27
21
  """
28
22
 
23
+ draft: typing.Optional[int] = None
24
+ id: int
29
25
  is_resolved: typing.Optional[bool] = pydantic.Field(default=None)
30
26
  """
31
27
  True if the comment is resolved
32
28
  """
33
29
 
30
+ project: typing.Optional[int] = None
31
+ region_ref: typing.Optional[typing.Optional[typing.Any]] = None
34
32
  resolved_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
35
33
  """
36
34
  Resolving time
37
35
  """
38
36
 
39
- project: typing.Optional[int] = None
40
37
  task: typing.Optional[int] = None
41
- draft: typing.Optional[int] = None
42
- annotation: typing.Optional[int] = None
43
- created_by: int = pydantic.Field()
38
+ text: typing.Optional[str] = pydantic.Field(default=None)
44
39
  """
45
- User who made this comment
40
+ Reviewer or annotator comment
41
+ """
42
+
43
+ updated_at: dt.datetime = pydantic.Field()
44
+ """
45
+ Last updated time
46
46
  """
47
47
 
48
48
  if IS_PYDANTIC_V2:
@@ -7,20 +7,19 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
 
8
8
 
9
9
  class CommentRequest(UncheckedBaseModel):
10
- region_ref: typing.Optional[typing.Optional[typing.Any]] = None
10
+ annotation: typing.Optional[int] = None
11
11
  classifications: typing.Optional[typing.Optional[typing.Any]] = None
12
- text: typing.Optional[str] = pydantic.Field(default=None)
13
- """
14
- Reviewer or annotator comment
15
- """
16
-
12
+ draft: typing.Optional[int] = None
17
13
  is_resolved: typing.Optional[bool] = pydantic.Field(default=None)
18
14
  """
19
15
  True if the comment is resolved
20
16
  """
21
17
 
22
- draft: typing.Optional[int] = None
23
- annotation: typing.Optional[int] = None
18
+ region_ref: typing.Optional[typing.Optional[typing.Any]] = None
19
+ text: typing.Optional[str] = pydantic.Field(default=None)
20
+ """
21
+ Reviewer or annotator comment
22
+ """
24
23
 
25
24
  if IS_PYDANTIC_V2:
26
25
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1,47 +1,46 @@
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 .lse_user import LseUser
5
4
  import typing
6
- import pydantic
7
5
  import datetime as dt
6
+ import pydantic
7
+ from .lse_user import LseUser
8
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
9
 
10
10
 
11
11
  class CommentSerializerWithExpandedUser(UncheckedBaseModel):
12
- id: int
13
- created_by: LseUser
14
- region_ref: typing.Optional[typing.Optional[typing.Any]] = None
12
+ annotation: typing.Optional[int] = None
15
13
  classifications: typing.Optional[typing.Optional[typing.Any]] = None
16
- text: typing.Optional[str] = pydantic.Field(default=None)
17
- """
18
- Reviewer or annotator comment
19
- """
20
-
21
14
  created_at: dt.datetime = pydantic.Field()
22
15
  """
23
16
  Creation time
24
17
  """
25
18
 
26
- updated_at: dt.datetime = pydantic.Field()
27
- """
28
- Last updated time
29
- """
30
-
19
+ created_by: LseUser
20
+ draft: typing.Optional[int] = None
21
+ id: int
31
22
  is_resolved: typing.Optional[bool] = pydantic.Field(default=None)
32
23
  """
33
24
  True if the comment is resolved
34
25
  """
35
26
 
27
+ project: typing.Optional[int] = None
28
+ region_ref: typing.Optional[typing.Optional[typing.Any]] = None
36
29
  resolved_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
37
30
  """
38
31
  Resolving time
39
32
  """
40
33
 
41
- project: typing.Optional[int] = None
42
34
  task: typing.Optional[int] = None
43
- draft: typing.Optional[int] = None
44
- annotation: typing.Optional[int] = None
35
+ text: typing.Optional[str] = pydantic.Field(default=None)
36
+ """
37
+ Reviewer or annotator comment
38
+ """
39
+
40
+ updated_at: dt.datetime = pydantic.Field()
41
+ """
42
+ Last updated time
43
+ """
45
44
 
46
45
  if IS_PYDANTIC_V2:
47
46
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -8,9 +8,9 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
 
9
9
 
10
10
  class ConvertedFormat(UncheckedBaseModel):
11
+ export_type: str
11
12
  id: int
12
13
  status: typing.Optional[Status7BfEnum] = None
13
- export_type: str
14
14
  traceback: typing.Optional[str] = pydantic.Field(default=None)
15
15
  """
16
16
  Traceback report in case of errors
@@ -8,8 +8,8 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
 
9
9
 
10
10
  class ConvertedFormatRequest(UncheckedBaseModel):
11
- status: typing.Optional[Status7BfEnum] = None
12
11
  export_type: str
12
+ status: typing.Optional[Status7BfEnum] = None
13
13
  traceback: typing.Optional[str] = pydantic.Field(default=None)
14
14
  """
15
15
  Traceback report in case of errors
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class CountLimit(UncheckedBaseModel):
10
+ count: int
11
+ limit: int
12
+ reached: bool
13
+ total: typing.Optional[int] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -2,32 +2,32 @@
2
2
 
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
- from .user_simple import UserSimple
5
+ from .converted_format import ConvertedFormat
6
6
  import datetime as dt
7
7
  import pydantic
8
+ from .user_simple import UserSimple
8
9
  from .status7bf_enum import Status7BfEnum
9
- from .converted_format import ConvertedFormat
10
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
11
 
12
12
 
13
13
  class Export(UncheckedBaseModel):
14
- title: typing.Optional[str] = None
15
- id: int
16
- created_by: typing.Optional[UserSimple] = None
14
+ converted_formats: typing.Optional[typing.List[ConvertedFormat]] = None
15
+ counters: typing.Optional[typing.Optional[typing.Any]] = None
17
16
  created_at: dt.datetime = pydantic.Field()
18
17
  """
19
18
  Creation time
20
19
  """
21
20
 
21
+ created_by: typing.Optional[UserSimple] = None
22
22
  finished_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
23
23
  """
24
24
  Complete or fail time
25
25
  """
26
26
 
27
- status: typing.Optional[Status7BfEnum] = None
27
+ id: int
28
28
  md5: typing.Optional[str] = None
29
- counters: typing.Optional[typing.Optional[typing.Any]] = None
30
- converted_formats: typing.Optional[typing.List[ConvertedFormat]] = None
29
+ status: typing.Optional[Status7BfEnum] = None
30
+ title: typing.Optional[str] = None
31
31
 
32
32
  if IS_PYDANTIC_V2:
33
33
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2