label-studio-sdk 2.0.0__py3-none-any.whl → 2.0.1__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.

@@ -21,6 +21,9 @@ from .azure_blob_export_storage import AzureBlobExportStorage
21
21
  from .azure_blob_import_storage import AzureBlobImportStorage
22
22
  from .batch_failed_predictions import BatchFailedPredictions
23
23
  from .batch_predictions import BatchPredictions
24
+ from .billing_checks import BillingChecks
25
+ from .billing_flags import BillingFlags
26
+ from .billing_info_response import BillingInfoResponse
24
27
  from .blank_enum import BlankEnum
25
28
  from .blueprint_list import BlueprintList
26
29
  from .budget_reset_period_enum import BudgetResetPeriodEnum
@@ -30,6 +33,7 @@ from .comment_request import CommentRequest
30
33
  from .comment_serializer_with_expanded_user import CommentSerializerWithExpandedUser
31
34
  from .converted_format import ConvertedFormat
32
35
  from .converted_format_request import ConvertedFormatRequest
36
+ from .count_limit import CountLimit
33
37
  from .custom_scripts_editable_by_enum import CustomScriptsEditableByEnum
34
38
  from .default_role_enum import DefaultRoleEnum
35
39
  from .edition_enum import EditionEnum
@@ -58,6 +62,7 @@ from .lse_fields_trial_role import LseFieldsTrialRole
58
62
  from .lse_key_indicator_value import LseKeyIndicatorValue
59
63
  from .lse_organization import LseOrganization
60
64
  from .lse_organization_custom_scripts_editable_by import LseOrganizationCustomScriptsEditableBy
65
+ from .lse_organization_member_list import LseOrganizationMemberList
61
66
  from .lse_project_create import LseProjectCreate
62
67
  from .lse_project_create_sampling import LseProjectCreateSampling
63
68
  from .lse_project_create_skip_queue import LseProjectCreateSkipQueue
@@ -89,6 +94,7 @@ from .lse_task_serializer_for_reviewers_drafts_item import LseTaskSerializerForR
89
94
  from .lse_task_serializer_for_reviewers_predictions_item import LseTaskSerializerForReviewersPredictionsItem
90
95
  from .lse_user import LseUser
91
96
  from .lse_user_api import LseUserApi
97
+ from .lse_user_organization_member_list import LseUserOrganizationMemberList
92
98
  from .lseapi_token_create import LseapiTokenCreate
93
99
  from .lseapi_token_list import LseapiTokenList
94
100
  from .lsejwt_settings import LsejwtSettings
@@ -111,6 +117,7 @@ from .organization_invite import OrganizationInvite
111
117
  from .organization_member import OrganizationMember
112
118
  from .organization_membership import OrganizationMembership
113
119
  from .paginated_all_roles_project_list_list import PaginatedAllRolesProjectListList
120
+ from .paginated_lse_organization_member_list_list import PaginatedLseOrganizationMemberListList
114
121
  from .paginated_role_based_task_list import PaginatedRoleBasedTaskList
115
122
  from .pause import Pause
116
123
  from .pause_request import PauseRequest
@@ -123,6 +130,7 @@ from .project_label_config_request import ProjectLabelConfigRequest
123
130
  from .project_sampling import ProjectSampling
124
131
  from .project_skip_queue import ProjectSkipQueue
125
132
  from .project_subset_enum import ProjectSubsetEnum
133
+ from .prompts_status_enum import PromptsStatusEnum
126
134
  from .provider_enum import ProviderEnum
127
135
  from .reason_enum import ReasonEnum
128
136
  from .redis_export_storage import RedisExportStorage
@@ -137,6 +145,7 @@ from .review_settings_request_review_criteria import ReviewSettingsRequestReview
137
145
  from .review_settings_requeue_rejected_tasks_mode import ReviewSettingsRequeueRejectedTasksMode
138
146
  from .review_settings_review_criteria import ReviewSettingsReviewCriteria
139
147
  from .reviewed_enum import ReviewedEnum
148
+ from .role9e7enum import Role9E7Enum
140
149
  from .role_based_task import RoleBasedTask
141
150
  from .s3export_storage import S3ExportStorage
142
151
  from .s3import_storage import S3ImportStorage
@@ -188,6 +197,9 @@ __all__ = [
188
197
  "AzureBlobImportStorage",
189
198
  "BatchFailedPredictions",
190
199
  "BatchPredictions",
200
+ "BillingChecks",
201
+ "BillingFlags",
202
+ "BillingInfoResponse",
191
203
  "BlankEnum",
192
204
  "BlueprintList",
193
205
  "BudgetResetPeriodEnum",
@@ -197,6 +209,7 @@ __all__ = [
197
209
  "CommentSerializerWithExpandedUser",
198
210
  "ConvertedFormat",
199
211
  "ConvertedFormatRequest",
212
+ "CountLimit",
200
213
  "CustomScriptsEditableByEnum",
201
214
  "DefaultRoleEnum",
202
215
  "EditionEnum",
@@ -225,6 +238,7 @@ __all__ = [
225
238
  "LseKeyIndicatorValue",
226
239
  "LseOrganization",
227
240
  "LseOrganizationCustomScriptsEditableBy",
241
+ "LseOrganizationMemberList",
228
242
  "LseProjectCreate",
229
243
  "LseProjectCreateSampling",
230
244
  "LseProjectCreateSkipQueue",
@@ -256,6 +270,7 @@ __all__ = [
256
270
  "LseTaskSerializerForReviewersPredictionsItem",
257
271
  "LseUser",
258
272
  "LseUserApi",
273
+ "LseUserOrganizationMemberList",
259
274
  "LseapiTokenCreate",
260
275
  "LseapiTokenList",
261
276
  "LsejwtSettings",
@@ -278,6 +293,7 @@ __all__ = [
278
293
  "OrganizationMember",
279
294
  "OrganizationMembership",
280
295
  "PaginatedAllRolesProjectListList",
296
+ "PaginatedLseOrganizationMemberListList",
281
297
  "PaginatedRoleBasedTaskList",
282
298
  "Pause",
283
299
  "PauseRequest",
@@ -290,6 +306,7 @@ __all__ = [
290
306
  "ProjectSampling",
291
307
  "ProjectSkipQueue",
292
308
  "ProjectSubsetEnum",
309
+ "PromptsStatusEnum",
293
310
  "ProviderEnum",
294
311
  "ReasonEnum",
295
312
  "RedisExportStorage",
@@ -304,6 +321,7 @@ __all__ = [
304
321
  "ReviewSettingsRequeueRejectedTasksMode",
305
322
  "ReviewSettingsReviewCriteria",
306
323
  "ReviewedEnum",
324
+ "Role9E7Enum",
307
325
  "RoleBasedTask",
308
326
  "S3ExportStorage",
309
327
  "S3ImportStorage",
@@ -3,12 +3,12 @@
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  import pydantic
6
- from .all_roles_project_list_sampling import AllRolesProjectListSampling
7
6
  from .user_simple import UserSimple
8
- import datetime as dt
9
- from .blueprint_list import BlueprintList
10
7
  from .assignment_settings import AssignmentSettings
8
+ from .all_roles_project_list_sampling import AllRolesProjectListSampling
9
+ import datetime as dt
11
10
  from .all_roles_project_list_skip_queue import AllRolesProjectListSkipQueue
11
+ from .blueprint_list import BlueprintList
12
12
  from .review_settings import ReviewSettings
13
13
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
14
14
 
@@ -19,173 +19,173 @@ class AllRolesProjectList(UncheckedBaseModel):
19
19
  make sure, that you use correct one(Project.objects.with_counts())
20
20
  """
21
21
 
22
- workspace_title: str
23
- ready: str
24
- overlap_cohort_percentage: typing.Optional[int] = None
25
- queue_left: str
26
- config_suitable_for_bulk_annotation: bool = pydantic.Field()
27
- """
28
- Flag to detect is project ready for bulk annotation
29
- """
30
-
31
- has_blueprints: str
32
- show_overlap_first: typing.Optional[bool] = None
33
- queue_total: str
34
- enable_empty_annotation: typing.Optional[bool] = pydantic.Field(default=None)
22
+ show_ground_truth_first: typing.Optional[bool] = None
23
+ rejected: str
24
+ label_config: typing.Optional[str] = pydantic.Field(default=None)
35
25
  """
36
- Allow annotators to submit empty annotations
26
+ Label config in XML format. See more about it in documentation
37
27
  """
38
28
 
39
- custom_task_lock_ttl: typing.Optional[int] = pydantic.Field(default=None)
29
+ show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
40
30
  """
41
- TTL in seconds for task reservations, on new and existing tasks
31
+ Show instructions to the annotator before they start
42
32
  """
43
33
 
44
- prompts: str
45
- start_training_on_annotation_update: bool = pydantic.Field()
34
+ duplication_status: typing.Optional[str] = None
35
+ control_weights: typing.Optional[typing.Optional[typing.Any]] = None
36
+ workspace: str
37
+ finished_task_number: int
38
+ show_skip_button: typing.Optional[bool] = pydantic.Field(default=None)
46
39
  """
47
- Start model training after any annotations are submitted or updated
40
+ Show a skip button in interface and allow annotators to skip the task
48
41
  """
49
42
 
50
- evaluate_predictions_automatically: typing.Optional[bool] = pydantic.Field(default=None)
43
+ created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
51
44
  """
52
- Retrieve and display predictions when loading a task
45
+ Project owner
53
46
  """
54
47
 
55
- show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
48
+ assignment_settings: AssignmentSettings
49
+ reviewed_number: str
50
+ model_version: typing.Optional[str] = pydantic.Field(default=None)
56
51
  """
57
- Show instructions to the annotator before they start
52
+ Machine learning model version
58
53
  """
59
54
 
60
- color: typing.Optional[str] = None
61
- sampling: typing.Optional[AllRolesProjectListSampling] = None
62
- created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
55
+ data_types: typing.Optional[typing.Any] = None
56
+ description_short: str
57
+ queue_left: str
58
+ annotation_limit_percent: typing.Optional[str] = None
59
+ config_has_control_tags: bool = pydantic.Field()
63
60
  """
64
- Project owner
61
+ Flag to detect is project ready for labeling
65
62
  """
66
63
 
67
- reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
64
+ total_predictions_number: int
65
+ useful_annotation_number: str
66
+ custom_script: typing.Optional[str] = None
67
+ reviewer_queue_total: str
68
+ start_training_on_annotation_update: bool = pydantic.Field()
68
69
  """
69
- Reveal pre-annotations interactively
70
+ Start model training after any annotations are submitted or updated
70
71
  """
71
72
 
72
- pinned_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
73
+ skipped_annotations_number: str
74
+ custom_task_lock_ttl: typing.Optional[int] = pydantic.Field(default=None)
73
75
  """
74
- Pinned date and time
76
+ TTL in seconds for task reservations, on new and existing tasks
75
77
  """
76
78
 
77
- finished_task_number: int
78
- parsed_label_config: typing.Optional[typing.Any] = None
79
- duplication_done: typing.Optional[bool] = None
80
- reviewer_queue_total: str
81
- show_ground_truth_first: typing.Optional[bool] = None
82
- task_number: int = pydantic.Field()
79
+ workspace_title: str
80
+ sampling: typing.Optional[AllRolesProjectListSampling] = None
81
+ reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
83
82
  """
84
- Total task number in project
83
+ Reveal pre-annotations interactively
85
84
  """
86
85
 
87
- num_tasks_with_annotations: str
88
- description_short: str
89
86
  id: int
90
- allow_stream: str
91
- annotation_limit_percent: typing.Optional[str] = None
92
- created_at: dt.datetime
93
- annotation_limit_count: typing.Optional[int] = None
87
+ has_blueprints: str
94
88
  queue_done: str
95
- control_weights: typing.Optional[typing.Optional[typing.Any]] = None
96
- data_types: typing.Optional[typing.Any] = None
97
- reviewed_number: str
98
89
  total_annotations_number: str
99
- total_predictions_number: int
100
- config_has_control_tags: bool = pydantic.Field()
90
+ members_count: str
91
+ maximum_annotations: typing.Optional[int] = pydantic.Field(default=None)
101
92
  """
102
- Flag to detect is project ready for labeling
93
+ Maximum number of annotations for one task. If the number of annotations per task is equal or greater to this value, the task is completed (is_labeled=True)
103
94
  """
104
95
 
105
- blueprints: typing.List[BlueprintList]
106
- is_published: typing.Optional[bool] = pydantic.Field(default=None)
96
+ comment_classification_config: typing.Optional[str] = None
97
+ prompts: str
98
+ created_at: dt.datetime
99
+ ready: str
100
+ annotator_evaluation_minimum_tasks: typing.Optional[int] = None
101
+ config_suitable_for_bulk_annotation: bool = pydantic.Field()
107
102
  """
108
- Whether or not the project is published to annotators
103
+ Flag to detect is project ready for bulk annotation
109
104
  """
110
105
 
111
- duplication_status: typing.Optional[str] = None
112
- review_total_tasks: str
113
- show_skip_button: typing.Optional[bool] = pydantic.Field(default=None)
106
+ skip_queue: typing.Optional[AllRolesProjectListSkipQueue] = None
107
+ title: typing.Optional[str] = pydantic.Field(default=None)
114
108
  """
115
- Show a skip button in interface and allow annotators to skip the task
109
+ Project name. Must be between 3 and 50 characters long.
116
110
  """
117
111
 
118
- is_draft: typing.Optional[bool] = pydantic.Field(default=None)
112
+ show_overlap_first: typing.Optional[bool] = None
113
+ queue_total: str
114
+ organization: typing.Optional[int] = None
115
+ duplication_done: typing.Optional[bool] = None
116
+ ground_truth_number: int = pydantic.Field()
119
117
  """
120
- Whether or not the project is in the middle of being created
118
+ Honeypot annotation number in project
121
119
  """
122
120
 
123
- title: typing.Optional[str] = pydantic.Field(default=None)
121
+ annotation_limit_count: typing.Optional[int] = None
122
+ evaluate_predictions_automatically: typing.Optional[bool] = pydantic.Field(default=None)
124
123
  """
125
- Project name. Must be between 3 and 50 characters long.
124
+ Retrieve and display predictions when loading a task
126
125
  """
127
126
 
128
- show_collab_predictions: typing.Optional[bool] = pydantic.Field(default=None)
127
+ blueprints: typing.List[BlueprintList]
128
+ color: typing.Optional[str] = None
129
+ review_settings: ReviewSettings
130
+ pinned_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
129
131
  """
130
- If set, the annotator can view model predictions
132
+ Pinned date and time
131
133
  """
132
134
 
133
135
  members: str
134
- min_annotations_to_start_training: typing.Optional[int] = pydantic.Field(default=None)
136
+ require_comment_on_skip: typing.Optional[bool] = None
137
+ show_annotation_history: typing.Optional[bool] = pydantic.Field(default=None)
135
138
  """
136
- Minimum number of completed tasks after which model training is started
139
+ Show annotation history to annotator
137
140
  """
138
141
 
139
- workspace: str
140
- organization: typing.Optional[int] = None
141
- assignment_settings: AssignmentSettings
142
- annotator_evaluation_minimum_tasks: typing.Optional[int] = None
143
- skipped_annotations_number: str
144
- annotator_evaluation_minimum_score: typing.Optional[str] = None
145
- comment_classification_config: typing.Optional[str] = None
146
- description: typing.Optional[str] = pydantic.Field(default=None)
142
+ task_number: int = pydantic.Field()
147
143
  """
148
- Project description
144
+ Total task number in project
149
145
  """
150
146
 
151
- expert_instruction: typing.Optional[str] = pydantic.Field(default=None)
147
+ is_published: typing.Optional[bool] = pydantic.Field(default=None)
152
148
  """
153
- Labeling instructions in HTML format
149
+ Whether or not the project is published to annotators
154
150
  """
155
151
 
156
- show_annotation_history: typing.Optional[bool] = pydantic.Field(default=None)
152
+ show_collab_predictions: typing.Optional[bool] = pydantic.Field(default=None)
157
153
  """
158
- Show annotation history to annotator
154
+ If set, the annotator can view model predictions
159
155
  """
160
156
 
161
- skip_queue: typing.Optional[AllRolesProjectListSkipQueue] = None
162
- review_settings: ReviewSettings
163
- members_count: str
164
- model_version: typing.Optional[str] = pydantic.Field(default=None)
157
+ review_total_tasks: str
158
+ num_tasks_with_annotations: str
159
+ expert_instruction: typing.Optional[str] = pydantic.Field(default=None)
165
160
  """
166
- Machine learning model version
161
+ Labeling instructions in HTML format
167
162
  """
168
163
 
169
- useful_annotation_number: str
170
- custom_script: typing.Optional[str] = None
171
- require_comment_on_skip: typing.Optional[bool] = None
172
- ground_truth_number: int = pydantic.Field()
164
+ overlap_cohort_percentage: typing.Optional[int] = None
165
+ is_draft: typing.Optional[bool] = pydantic.Field(default=None)
173
166
  """
174
- Honeypot annotation number in project
167
+ Whether or not the project is in the middle of being created
175
168
  """
176
169
 
177
- pause_on_failed_annotator_evaluation: typing.Optional[bool] = None
178
- label_config: typing.Optional[str] = pydantic.Field(default=None)
170
+ min_annotations_to_start_training: typing.Optional[int] = pydantic.Field(default=None)
179
171
  """
180
- Label config in XML format. See more about it in documentation
172
+ Minimum number of completed tasks after which model training is started
181
173
  """
182
174
 
183
- maximum_annotations: typing.Optional[int] = pydantic.Field(default=None)
175
+ enable_empty_annotation: typing.Optional[bool] = pydantic.Field(default=None)
184
176
  """
185
- Maximum number of annotations for one task. If the number of annotations per task is equal or greater to this value, the task is completed (is_labeled=True)
177
+ Allow annotators to submit empty annotations
186
178
  """
187
179
 
188
- rejected: str
180
+ annotator_evaluation_minimum_score: typing.Optional[str] = None
181
+ description: typing.Optional[str] = pydantic.Field(default=None)
182
+ """
183
+ Project description
184
+ """
185
+
186
+ pause_on_failed_annotator_evaluation: typing.Optional[bool] = None
187
+ allow_stream: str
188
+ parsed_label_config: typing.Optional[typing.Any] = None
189
189
 
190
190
  if IS_PYDANTIC_V2:
191
191
  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
+ users: CountLimit
13
+ projects: CountLimit
14
+ results: CountLimit
15
+ trial_days: int
16
+ organization_is_active: bool
17
+ license_issued: typing.Optional[str] = None
18
+ license_warning: typing.Optional[str] = None
19
+ is_license_warning: bool
20
+ license_expires: typing.Optional[str] = None
21
+ is_license_expired: bool
22
+ prompts_enabled: bool
23
+ prompts_status: PromptsStatusEnum
24
+ prompts_warning: typing.Optional[str] = None
25
+ is_prompts_warning: bool
26
+ prompts_expire: typing.Optional[str] = None
27
+ is_prompts_expire: bool
28
+ prompts_api_keys_enabled: bool
29
+ import_storages: CountLimit
30
+ export_storages: 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
+ cloud_instance: bool
13
+ allow_activity_log: bool
14
+ allow_invite_project_experts: bool
15
+ allow_sso: bool
16
+ white_label_id: typing.Optional[str] = None
17
+ allow_data_credentials: bool
18
+ allow_organization_webhooks: bool
19
+ disable_members_page: bool
20
+ secure_mode: bool
21
+ manual_workspace_management: bool
22
+ manual_role_management: bool
23
+ hide_storage_settings_for_manager: bool
24
+ disable_project_imports: bool
25
+ automax_token_exists: bool
26
+ automax_enabled: bool
27
+ storage_persistence: bool
28
+ allow_ai: bool
29
+ early_adopter: bool
30
+ allow_ask_ai: bool
31
+ allow_invite_people: bool
32
+ allow_storage_proxy: bool
33
+ embed_enabled: bool
34
+ embed_domains: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
35
+ embed_settings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = 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
@@ -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
@@ -0,0 +1,32 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import pydantic
5
+ from .lse_user_organization_member_list import LseUserOrganizationMemberList
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+
9
+
10
+ class LseOrganizationMemberList(UncheckedBaseModel):
11
+ """
12
+ A serializer mixin that takes an additional `fields` argument that controls
13
+ which fields should be displayed.
14
+ """
15
+
16
+ id: int
17
+ organization: int = pydantic.Field()
18
+ """
19
+ Organization ID
20
+ """
21
+
22
+ user: LseUserOrganizationMemberList
23
+ role: str
24
+
25
+ if IS_PYDANTIC_V2:
26
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
27
+ else:
28
+
29
+ class Config:
30
+ frozen = True
31
+ smart_union = True
32
+ extra = pydantic.Extra.allow
@@ -0,0 +1,48 @@
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
+ import pydantic
7
+ from .lse_fields import LseFields
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+
10
+
11
+ class LseUserOrganizationMemberList(UncheckedBaseModel):
12
+ """
13
+ A ModelSerializer that takes additional arguments for
14
+ "fields", "omit" and "expand" in order to
15
+ control which fields are displayed, and whether to replace simple
16
+ values with complex, nested serializations
17
+ """
18
+
19
+ id: int
20
+ first_name: typing.Optional[str] = None
21
+ last_name: typing.Optional[str] = None
22
+ username: str
23
+ email: typing.Optional[str] = None
24
+ last_activity: dt.datetime
25
+ custom_hotkeys: typing.Optional[typing.Optional[typing.Any]] = None
26
+ avatar: str
27
+ initials: str
28
+ phone: typing.Optional[str] = None
29
+ active_organization: typing.Optional[int] = None
30
+ allow_newsletters: typing.Optional[bool] = pydantic.Field(default=None)
31
+ """
32
+ Allow sending newsletters to user
33
+ """
34
+
35
+ date_joined: typing.Optional[dt.datetime] = None
36
+ lse_fields: LseFields
37
+ pause: str
38
+ created_projects: str
39
+ contributed_to_projects: str
40
+
41
+ if IS_PYDANTIC_V2:
42
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
43
+ else:
44
+
45
+ class Config:
46
+ frozen = True
47
+ smart_union = True
48
+ extra = pydantic.Extra.allow
@@ -0,0 +1,23 @@
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 .lse_organization_member_list import LseOrganizationMemberList
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class PaginatedLseOrganizationMemberListList(UncheckedBaseModel):
11
+ count: int
12
+ next: typing.Optional[str] = None
13
+ previous: typing.Optional[str] = None
14
+ results: typing.List[LseOrganizationMemberList]
15
+
16
+ if IS_PYDANTIC_V2:
17
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
18
+ else:
19
+
20
+ class Config:
21
+ frozen = True
22
+ smart_union = True
23
+ extra = pydantic.Extra.allow
@@ -0,0 +1,16 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ PromptsStatusEnum = typing.Union[
6
+ typing.Literal[
7
+ "Enabled",
8
+ "Cloud license per organization disabled",
9
+ "On-premise global license disabled",
10
+ "Expired",
11
+ "Adala not connected",
12
+ "Disabled for this organization [FF]",
13
+ "unknown",
14
+ ],
15
+ typing.Any,
16
+ ]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ Role9E7Enum = typing.Union[typing.Literal["OW", "AD", "MA", "RE", "AN", "DI", "NO"], typing.Any]