label-studio-sdk 2.0.11__py3-none-any.whl → 2.0.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of label-studio-sdk might be problematic. Click here for more details.
- label_studio_sdk/__init__.py +12 -8
- label_studio_sdk/actions/__init__.py +2 -0
- label_studio_sdk/actions/types/__init__.py +2 -0
- label_studio_sdk/actions/types/actions_list_response_item.py +2 -1
- label_studio_sdk/actions/types/actions_list_response_item_permission.py +5 -0
- label_studio_sdk/core/client_wrapper.py +6 -1
- label_studio_sdk/export_storage/azure/client.py +14 -10
- label_studio_sdk/export_storage/azure_spi/client.py +14 -10
- label_studio_sdk/export_storage/databricks/client.py +14 -10
- label_studio_sdk/export_storage/gcs/client.py +14 -10
- label_studio_sdk/export_storage/gcswif/client.py +14 -10
- label_studio_sdk/export_storage/local/client.py +14 -10
- label_studio_sdk/export_storage/redis/client.py +14 -10
- label_studio_sdk/export_storage/s3/client.py +14 -10
- label_studio_sdk/export_storage/s3s/client.py +14 -10
- label_studio_sdk/import_storage/azure/client.py +14 -10
- label_studio_sdk/import_storage/azure_spi/client.py +14 -10
- label_studio_sdk/import_storage/databricks/client.py +14 -10
- label_studio_sdk/import_storage/gcs/client.py +14 -10
- label_studio_sdk/import_storage/gcswif/client.py +14 -10
- label_studio_sdk/import_storage/local/client.py +14 -10
- label_studio_sdk/import_storage/redis/client.py +14 -10
- label_studio_sdk/import_storage/s3/client.py +14 -10
- label_studio_sdk/import_storage/s3s/client.py +14 -10
- label_studio_sdk/label_interface/control_tags.py +2 -1
- label_studio_sdk/organizations/__init__.py +1 -2
- label_studio_sdk/organizations/client.py +0 -36
- label_studio_sdk/organizations/permissions/client.py +32 -0
- label_studio_sdk/projects/__init__.py +18 -1
- label_studio_sdk/projects/client.py +8 -0
- label_studio_sdk/projects/members/client.py +137 -30
- label_studio_sdk/projects/metrics/custom/client.py +48 -0
- label_studio_sdk/projects/roles/__init__.py +2 -0
- label_studio_sdk/projects/roles/client.py +555 -0
- label_studio_sdk/projects/stats/__init__.py +16 -0
- label_studio_sdk/projects/stats/client.py +626 -0
- label_studio_sdk/projects/stats/types/__init__.py +22 -0
- label_studio_sdk/projects/stats/types/stats_agreement_annotators_response.py +22 -0
- label_studio_sdk/projects/stats/types/stats_users_ground_truth_agreement_response.py +27 -0
- label_studio_sdk/projects/stats/types/stats_users_ground_truth_agreement_response_agreement_value.py +5 -0
- label_studio_sdk/projects/stats/types/stats_users_prediction_agreement_response.py +27 -0
- label_studio_sdk/projects/stats/types/stats_users_prediction_agreement_response_agreement_value.py +5 -0
- label_studio_sdk/projects/stats/types/stats_users_review_score_response.py +35 -0
- label_studio_sdk/projects/stats/types/stats_users_review_score_response_performance_score_value.py +5 -0
- label_studio_sdk/projects/stats/types/stats_users_review_score_response_review_score_value.py +5 -0
- label_studio_sdk/prompts/versions/client.py +24 -0
- label_studio_sdk/tasks/client.py +10 -0
- label_studio_sdk/types/__init__.py +10 -6
- label_studio_sdk/types/activity_log.py +1 -0
- label_studio_sdk/types/all_roles_project_list.py +6 -2
- label_studio_sdk/types/billing_flags.py +1 -1
- label_studio_sdk/types/default_role.py +0 -9
- label_studio_sdk/types/import_api_request.py +5 -0
- label_studio_sdk/types/lse_organization.py +1 -10
- label_studio_sdk/types/lse_project.py +6 -6
- label_studio_sdk/types/lse_project_counts.py +1 -1
- label_studio_sdk/types/lse_project_create.py +5 -1
- label_studio_sdk/types/lse_project_response.py +5 -1
- label_studio_sdk/types/lse_project_update.py +5 -1
- label_studio_sdk/types/lse_task.py +5 -0
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +5 -0
- label_studio_sdk/types/project.py +198 -0
- label_studio_sdk/types/project_member.py +19 -0
- label_studio_sdk/types/project_role.py +35 -0
- label_studio_sdk/types/project_sampling.py +7 -0
- label_studio_sdk/types/project_skip_queue.py +7 -0
- label_studio_sdk/versions/client.py +0 -12
- label_studio_sdk/workspaces/__init__.py +2 -2
- label_studio_sdk/workspaces/client.py +4 -0
- label_studio_sdk/workspaces/projects/__init__.py +2 -0
- label_studio_sdk/workspaces/projects/client.py +352 -0
- {label_studio_sdk-2.0.11.dist-info → label_studio_sdk-2.0.13.dist-info}/METADATA +1 -1
- {label_studio_sdk-2.0.11.dist-info → label_studio_sdk-2.0.13.dist-info}/RECORD +75 -62
- label_studio_sdk/organizations/types/__init__.py +0 -5
- label_studio_sdk/organizations/types/patched_default_role_request_custom_scripts_editable_by.py +0 -7
- label_studio_sdk/types/custom_scripts_editable_by_enum.py +0 -5
- label_studio_sdk/types/default_role_custom_scripts_editable_by.py +0 -7
- label_studio_sdk/types/lse_organization_custom_scripts_editable_by.py +0 -7
- {label_studio_sdk-2.0.11.dist-info → label_studio_sdk-2.0.13.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.11.dist-info → label_studio_sdk-2.0.13.dist-info}/WHEEL +0 -0
|
@@ -21,8 +21,8 @@ class S3Client:
|
|
|
21
21
|
def list(
|
|
22
22
|
self,
|
|
23
23
|
*,
|
|
24
|
+
project: int,
|
|
24
25
|
ordering: typing.Optional[str] = None,
|
|
25
|
-
project: typing.Optional[int] = None,
|
|
26
26
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
27
|
) -> typing.List[S3ImportStorage]:
|
|
28
28
|
"""
|
|
@@ -30,12 +30,12 @@ class S3Client:
|
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
|
+
project : int
|
|
34
|
+
Project ID
|
|
35
|
+
|
|
33
36
|
ordering : typing.Optional[str]
|
|
34
37
|
Which field to use when ordering the results.
|
|
35
38
|
|
|
36
|
-
project : typing.Optional[int]
|
|
37
|
-
Project ID
|
|
38
|
-
|
|
39
39
|
request_options : typing.Optional[RequestOptions]
|
|
40
40
|
Request-specific configuration.
|
|
41
41
|
|
|
@@ -51,7 +51,9 @@ class S3Client:
|
|
|
51
51
|
client = LabelStudio(
|
|
52
52
|
api_key="YOUR_API_KEY",
|
|
53
53
|
)
|
|
54
|
-
client.import_storage.s3.list(
|
|
54
|
+
client.import_storage.s3.list(
|
|
55
|
+
project=1,
|
|
56
|
+
)
|
|
55
57
|
"""
|
|
56
58
|
_response = self._client_wrapper.httpx_client.request(
|
|
57
59
|
"api/storages/s3/",
|
|
@@ -615,8 +617,8 @@ class AsyncS3Client:
|
|
|
615
617
|
async def list(
|
|
616
618
|
self,
|
|
617
619
|
*,
|
|
620
|
+
project: int,
|
|
618
621
|
ordering: typing.Optional[str] = None,
|
|
619
|
-
project: typing.Optional[int] = None,
|
|
620
622
|
request_options: typing.Optional[RequestOptions] = None,
|
|
621
623
|
) -> typing.List[S3ImportStorage]:
|
|
622
624
|
"""
|
|
@@ -624,12 +626,12 @@ class AsyncS3Client:
|
|
|
624
626
|
|
|
625
627
|
Parameters
|
|
626
628
|
----------
|
|
629
|
+
project : int
|
|
630
|
+
Project ID
|
|
631
|
+
|
|
627
632
|
ordering : typing.Optional[str]
|
|
628
633
|
Which field to use when ordering the results.
|
|
629
634
|
|
|
630
|
-
project : typing.Optional[int]
|
|
631
|
-
Project ID
|
|
632
|
-
|
|
633
635
|
request_options : typing.Optional[RequestOptions]
|
|
634
636
|
Request-specific configuration.
|
|
635
637
|
|
|
@@ -650,7 +652,9 @@ class AsyncS3Client:
|
|
|
650
652
|
|
|
651
653
|
|
|
652
654
|
async def main() -> None:
|
|
653
|
-
await client.import_storage.s3.list(
|
|
655
|
+
await client.import_storage.s3.list(
|
|
656
|
+
project=1,
|
|
657
|
+
)
|
|
654
658
|
|
|
655
659
|
|
|
656
660
|
asyncio.run(main())
|
|
@@ -23,8 +23,8 @@ class S3SClient:
|
|
|
23
23
|
def list(
|
|
24
24
|
self,
|
|
25
25
|
*,
|
|
26
|
+
project: int,
|
|
26
27
|
ordering: typing.Optional[str] = None,
|
|
27
|
-
project: typing.Optional[int] = None,
|
|
28
28
|
request_options: typing.Optional[RequestOptions] = None,
|
|
29
29
|
) -> typing.List[LseS3ImportStorage]:
|
|
30
30
|
"""
|
|
@@ -38,12 +38,12 @@ class S3SClient:
|
|
|
38
38
|
|
|
39
39
|
Parameters
|
|
40
40
|
----------
|
|
41
|
+
project : int
|
|
42
|
+
Project ID
|
|
43
|
+
|
|
41
44
|
ordering : typing.Optional[str]
|
|
42
45
|
Which field to use when ordering the results.
|
|
43
46
|
|
|
44
|
-
project : typing.Optional[int]
|
|
45
|
-
Project ID
|
|
46
|
-
|
|
47
47
|
request_options : typing.Optional[RequestOptions]
|
|
48
48
|
Request-specific configuration.
|
|
49
49
|
|
|
@@ -59,7 +59,9 @@ class S3SClient:
|
|
|
59
59
|
client = LabelStudio(
|
|
60
60
|
api_key="YOUR_API_KEY",
|
|
61
61
|
)
|
|
62
|
-
client.import_storage.s3s.list(
|
|
62
|
+
client.import_storage.s3s.list(
|
|
63
|
+
project=1,
|
|
64
|
+
)
|
|
63
65
|
"""
|
|
64
66
|
_response = self._client_wrapper.httpx_client.request(
|
|
65
67
|
"api/storages/s3s/",
|
|
@@ -788,8 +790,8 @@ class AsyncS3SClient:
|
|
|
788
790
|
async def list(
|
|
789
791
|
self,
|
|
790
792
|
*,
|
|
793
|
+
project: int,
|
|
791
794
|
ordering: typing.Optional[str] = None,
|
|
792
|
-
project: typing.Optional[int] = None,
|
|
793
795
|
request_options: typing.Optional[RequestOptions] = None,
|
|
794
796
|
) -> typing.List[LseS3ImportStorage]:
|
|
795
797
|
"""
|
|
@@ -803,12 +805,12 @@ class AsyncS3SClient:
|
|
|
803
805
|
|
|
804
806
|
Parameters
|
|
805
807
|
----------
|
|
808
|
+
project : int
|
|
809
|
+
Project ID
|
|
810
|
+
|
|
806
811
|
ordering : typing.Optional[str]
|
|
807
812
|
Which field to use when ordering the results.
|
|
808
813
|
|
|
809
|
-
project : typing.Optional[int]
|
|
810
|
-
Project ID
|
|
811
|
-
|
|
812
814
|
request_options : typing.Optional[RequestOptions]
|
|
813
815
|
Request-specific configuration.
|
|
814
816
|
|
|
@@ -829,7 +831,9 @@ class AsyncS3SClient:
|
|
|
829
831
|
|
|
830
832
|
|
|
831
833
|
async def main() -> None:
|
|
832
|
-
await client.import_storage.s3s.list(
|
|
834
|
+
await client.import_storage.s3s.list(
|
|
835
|
+
project=1,
|
|
836
|
+
)
|
|
833
837
|
|
|
834
838
|
|
|
835
839
|
asyncio.run(main())
|
|
@@ -986,7 +986,8 @@ class ChatMessageTag(ControlTag):
|
|
|
986
986
|
"role": {"type": "string"},
|
|
987
987
|
"content": {"type": "string"},
|
|
988
988
|
"createdAt": {"type": "number"}
|
|
989
|
-
}
|
|
989
|
+
},
|
|
990
|
+
"additionalProperties": True
|
|
990
991
|
}
|
|
991
992
|
},
|
|
992
993
|
"description": f"Chat message for {self.to_name[0]}"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .types import PatchedDefaultRoleRequestCustomScriptsEditableBy
|
|
4
3
|
from . import invites, members, permissions
|
|
5
4
|
|
|
6
|
-
__all__ = ["
|
|
5
|
+
__all__ = ["invites", "members", "permissions"]
|
|
@@ -17,12 +17,8 @@ from ..errors.bad_request_error import BadRequestError
|
|
|
17
17
|
from ..errors.forbidden_error import ForbiddenError
|
|
18
18
|
from ..errors.not_found_error import NotFoundError
|
|
19
19
|
import datetime as dt
|
|
20
|
-
from .types.patched_default_role_request_custom_scripts_editable_by import (
|
|
21
|
-
PatchedDefaultRoleRequestCustomScriptsEditableBy,
|
|
22
|
-
)
|
|
23
20
|
from ..types.role9e7enum import Role9E7Enum
|
|
24
21
|
from ..types.default_role import DefaultRole
|
|
25
|
-
from ..core.serialization import convert_and_respect_annotation_metadata
|
|
26
22
|
from ..core.client_wrapper import AsyncClientWrapper
|
|
27
23
|
from .invites.client import AsyncInvitesClient
|
|
28
24
|
from .members.client import AsyncMembersClient
|
|
@@ -185,7 +181,6 @@ class OrganizationsClient:
|
|
|
185
181
|
*,
|
|
186
182
|
contact_info: typing.Optional[str] = OMIT,
|
|
187
183
|
created_by: typing.Optional[int] = OMIT,
|
|
188
|
-
custom_scripts_editable_by: typing.Optional[str] = OMIT,
|
|
189
184
|
custom_scripts_enabled: typing.Optional[bool] = OMIT,
|
|
190
185
|
email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
191
186
|
embed_domains: typing.Optional[typing.Sequence[typing.Dict[str, str]]] = OMIT,
|
|
@@ -211,8 +206,6 @@ class OrganizationsClient:
|
|
|
211
206
|
|
|
212
207
|
created_by : typing.Optional[int]
|
|
213
208
|
|
|
214
|
-
custom_scripts_editable_by : typing.Optional[str]
|
|
215
|
-
|
|
216
209
|
custom_scripts_enabled : typing.Optional[bool]
|
|
217
210
|
|
|
218
211
|
email_notification_settings : typing.Optional[typing.Optional[typing.Any]]
|
|
@@ -250,7 +243,6 @@ class OrganizationsClient:
|
|
|
250
243
|
json={
|
|
251
244
|
"contact_info": contact_info,
|
|
252
245
|
"created_by": created_by,
|
|
253
|
-
"custom_scripts_editable_by": custom_scripts_editable_by,
|
|
254
246
|
"custom_scripts_enabled": custom_scripts_enabled,
|
|
255
247
|
"email_notification_settings": email_notification_settings,
|
|
256
248
|
"embed_domains": embed_domains,
|
|
@@ -313,7 +305,6 @@ class OrganizationsClient:
|
|
|
313
305
|
id: int,
|
|
314
306
|
*,
|
|
315
307
|
annotator_reviewer_firewall_enabled_at: typing.Optional[dt.datetime] = OMIT,
|
|
316
|
-
custom_scripts_editable_by: typing.Optional[PatchedDefaultRoleRequestCustomScriptsEditableBy] = OMIT,
|
|
317
308
|
custom_scripts_enabled_at: typing.Optional[dt.datetime] = OMIT,
|
|
318
309
|
default_role: typing.Optional[Role9E7Enum] = OMIT,
|
|
319
310
|
email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
@@ -342,12 +333,6 @@ class OrganizationsClient:
|
|
|
342
333
|
annotator_reviewer_firewall_enabled_at : typing.Optional[dt.datetime]
|
|
343
334
|
Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI.
|
|
344
335
|
|
|
345
|
-
custom_scripts_editable_by : typing.Optional[PatchedDefaultRoleRequestCustomScriptsEditableBy]
|
|
346
|
-
Set the minimum user role that can edit custom scripts (Plugins) in the UI.
|
|
347
|
-
|
|
348
|
-
* `AD` - Administrator
|
|
349
|
-
* `MA` - Manager
|
|
350
|
-
|
|
351
336
|
custom_scripts_enabled_at : typing.Optional[dt.datetime]
|
|
352
337
|
Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins).
|
|
353
338
|
|
|
@@ -406,11 +391,6 @@ class OrganizationsClient:
|
|
|
406
391
|
method="PATCH",
|
|
407
392
|
json={
|
|
408
393
|
"annotator_reviewer_firewall_enabled_at": annotator_reviewer_firewall_enabled_at,
|
|
409
|
-
"custom_scripts_editable_by": convert_and_respect_annotation_metadata(
|
|
410
|
-
object_=custom_scripts_editable_by,
|
|
411
|
-
annotation=PatchedDefaultRoleRequestCustomScriptsEditableBy,
|
|
412
|
-
direction="write",
|
|
413
|
-
),
|
|
414
394
|
"custom_scripts_enabled_at": custom_scripts_enabled_at,
|
|
415
395
|
"default_role": default_role,
|
|
416
396
|
"email_notification_settings": email_notification_settings,
|
|
@@ -620,7 +600,6 @@ class AsyncOrganizationsClient:
|
|
|
620
600
|
*,
|
|
621
601
|
contact_info: typing.Optional[str] = OMIT,
|
|
622
602
|
created_by: typing.Optional[int] = OMIT,
|
|
623
|
-
custom_scripts_editable_by: typing.Optional[str] = OMIT,
|
|
624
603
|
custom_scripts_enabled: typing.Optional[bool] = OMIT,
|
|
625
604
|
email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
626
605
|
embed_domains: typing.Optional[typing.Sequence[typing.Dict[str, str]]] = OMIT,
|
|
@@ -646,8 +625,6 @@ class AsyncOrganizationsClient:
|
|
|
646
625
|
|
|
647
626
|
created_by : typing.Optional[int]
|
|
648
627
|
|
|
649
|
-
custom_scripts_editable_by : typing.Optional[str]
|
|
650
|
-
|
|
651
628
|
custom_scripts_enabled : typing.Optional[bool]
|
|
652
629
|
|
|
653
630
|
email_notification_settings : typing.Optional[typing.Optional[typing.Any]]
|
|
@@ -693,7 +670,6 @@ class AsyncOrganizationsClient:
|
|
|
693
670
|
json={
|
|
694
671
|
"contact_info": contact_info,
|
|
695
672
|
"created_by": created_by,
|
|
696
|
-
"custom_scripts_editable_by": custom_scripts_editable_by,
|
|
697
673
|
"custom_scripts_enabled": custom_scripts_enabled,
|
|
698
674
|
"email_notification_settings": email_notification_settings,
|
|
699
675
|
"embed_domains": embed_domains,
|
|
@@ -756,7 +732,6 @@ class AsyncOrganizationsClient:
|
|
|
756
732
|
id: int,
|
|
757
733
|
*,
|
|
758
734
|
annotator_reviewer_firewall_enabled_at: typing.Optional[dt.datetime] = OMIT,
|
|
759
|
-
custom_scripts_editable_by: typing.Optional[PatchedDefaultRoleRequestCustomScriptsEditableBy] = OMIT,
|
|
760
735
|
custom_scripts_enabled_at: typing.Optional[dt.datetime] = OMIT,
|
|
761
736
|
default_role: typing.Optional[Role9E7Enum] = OMIT,
|
|
762
737
|
email_notification_settings: typing.Optional[typing.Optional[typing.Any]] = OMIT,
|
|
@@ -785,12 +760,6 @@ class AsyncOrganizationsClient:
|
|
|
785
760
|
annotator_reviewer_firewall_enabled_at : typing.Optional[dt.datetime]
|
|
786
761
|
Set to current time to restrict data sharing between annotators and reviewers in the label stream, review stream, and notifications (which will be disabled). In these settings, information about annotator and reviewer identity is suppressed in the UI.
|
|
787
762
|
|
|
788
|
-
custom_scripts_editable_by : typing.Optional[PatchedDefaultRoleRequestCustomScriptsEditableBy]
|
|
789
|
-
Set the minimum user role that can edit custom scripts (Plugins) in the UI.
|
|
790
|
-
|
|
791
|
-
* `AD` - Administrator
|
|
792
|
-
* `MA` - Manager
|
|
793
|
-
|
|
794
763
|
custom_scripts_enabled_at : typing.Optional[dt.datetime]
|
|
795
764
|
Set to current time to enable custom scripts (Plugins) for this organization. Can only be enabled if no organization members are active members of any other organizations; otherwise an error will be raised. If this occurs, contact the LEAP team for assistance with enabling custom scripts (Plugins).
|
|
796
765
|
|
|
@@ -857,11 +826,6 @@ class AsyncOrganizationsClient:
|
|
|
857
826
|
method="PATCH",
|
|
858
827
|
json={
|
|
859
828
|
"annotator_reviewer_firewall_enabled_at": annotator_reviewer_firewall_enabled_at,
|
|
860
|
-
"custom_scripts_editable_by": convert_and_respect_annotation_metadata(
|
|
861
|
-
object_=custom_scripts_editable_by,
|
|
862
|
-
annotation=PatchedDefaultRoleRequestCustomScriptsEditableBy,
|
|
863
|
-
direction="write",
|
|
864
|
-
),
|
|
865
829
|
"custom_scripts_enabled_at": custom_scripts_enabled_at,
|
|
866
830
|
"default_role": default_role,
|
|
867
831
|
"email_notification_settings": email_notification_settings,
|
|
@@ -237,6 +237,14 @@ class PermissionsClient:
|
|
|
237
237
|
self, id: int, permission: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
238
238
|
) -> OrganizationPermission:
|
|
239
239
|
"""
|
|
240
|
+
<Card href="https://humansignal.com/goenterprise">
|
|
241
|
+
<img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
|
|
242
|
+
<p style="margin-top: 10px; font-size: 14px;">
|
|
243
|
+
This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
|
|
244
|
+
</p>
|
|
245
|
+
</Card>
|
|
246
|
+
Retrieve the organization-level permission override for a given permission key.
|
|
247
|
+
|
|
240
248
|
Parameters
|
|
241
249
|
----------
|
|
242
250
|
id : int
|
|
@@ -410,6 +418,14 @@ class PermissionsClient:
|
|
|
410
418
|
|
|
411
419
|
def delete(self, id: int, permission: str, *, request_options: typing.Optional[RequestOptions] = None) -> None:
|
|
412
420
|
"""
|
|
421
|
+
<Card href="https://humansignal.com/goenterprise">
|
|
422
|
+
<img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
|
|
423
|
+
<p style="margin-top: 10px; font-size: 14px;">
|
|
424
|
+
This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
|
|
425
|
+
</p>
|
|
426
|
+
</Card>
|
|
427
|
+
Delete the organization-level permission override for a given permission key.
|
|
428
|
+
|
|
413
429
|
Parameters
|
|
414
430
|
----------
|
|
415
431
|
id : int
|
|
@@ -817,6 +833,14 @@ class AsyncPermissionsClient:
|
|
|
817
833
|
self, id: int, permission: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
818
834
|
) -> OrganizationPermission:
|
|
819
835
|
"""
|
|
836
|
+
<Card href="https://humansignal.com/goenterprise">
|
|
837
|
+
<img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
|
|
838
|
+
<p style="margin-top: 10px; font-size: 14px;">
|
|
839
|
+
This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
|
|
840
|
+
</p>
|
|
841
|
+
</Card>
|
|
842
|
+
Retrieve the organization-level permission override for a given permission key.
|
|
843
|
+
|
|
820
844
|
Parameters
|
|
821
845
|
----------
|
|
822
846
|
id : int
|
|
@@ -1008,6 +1032,14 @@ class AsyncPermissionsClient:
|
|
|
1008
1032
|
self, id: int, permission: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1009
1033
|
) -> None:
|
|
1010
1034
|
"""
|
|
1035
|
+
<Card href="https://humansignal.com/goenterprise">
|
|
1036
|
+
<img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
|
|
1037
|
+
<p style="margin-top: 10px; font-size: 14px;">
|
|
1038
|
+
This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
|
|
1039
|
+
</p>
|
|
1040
|
+
</Card>
|
|
1041
|
+
Delete the organization-level permission override for a given permission key.
|
|
1042
|
+
|
|
1011
1043
|
Parameters
|
|
1012
1044
|
----------
|
|
1013
1045
|
id : int
|
|
@@ -9,7 +9,7 @@ from .types import (
|
|
|
9
9
|
ProjectsImportPredictionsResponse,
|
|
10
10
|
ProjectsImportTasksResponse,
|
|
11
11
|
)
|
|
12
|
-
from . import assignments, exports, members, metrics, pauses, stats
|
|
12
|
+
from . import assignments, exports, members, metrics, pauses, roles, stats
|
|
13
13
|
from .assignments import (
|
|
14
14
|
AssignmentsAssignRequestType,
|
|
15
15
|
AssignmentsBulkAssignRequestFilters,
|
|
@@ -29,6 +29,7 @@ from .assignments import (
|
|
|
29
29
|
from .exports import ExportsConvertResponse
|
|
30
30
|
from .stats import (
|
|
31
31
|
StatsAgreementAnnotatorResponse,
|
|
32
|
+
StatsAgreementAnnotatorsResponse,
|
|
32
33
|
StatsDataFiltersResponse,
|
|
33
34
|
StatsDataFiltersResponseUserFilters,
|
|
34
35
|
StatsDataFiltersResponseUserFiltersStatsItem,
|
|
@@ -52,6 +53,13 @@ from .stats import (
|
|
|
52
53
|
StatsUserReviewScoreResponse,
|
|
53
54
|
StatsUserReviewScoreResponsePerformanceScore,
|
|
54
55
|
StatsUserReviewScoreResponseReviewScore,
|
|
56
|
+
StatsUsersGroundTruthAgreementResponse,
|
|
57
|
+
StatsUsersGroundTruthAgreementResponseAgreementValue,
|
|
58
|
+
StatsUsersPredictionAgreementResponse,
|
|
59
|
+
StatsUsersPredictionAgreementResponseAgreementValue,
|
|
60
|
+
StatsUsersReviewScoreResponse,
|
|
61
|
+
StatsUsersReviewScoreResponsePerformanceScoreValue,
|
|
62
|
+
StatsUsersReviewScoreResponseReviewScoreValue,
|
|
55
63
|
)
|
|
56
64
|
|
|
57
65
|
__all__ = [
|
|
@@ -78,6 +86,7 @@ __all__ = [
|
|
|
78
86
|
"ProjectsImportPredictionsResponse",
|
|
79
87
|
"ProjectsImportTasksResponse",
|
|
80
88
|
"StatsAgreementAnnotatorResponse",
|
|
89
|
+
"StatsAgreementAnnotatorsResponse",
|
|
81
90
|
"StatsDataFiltersResponse",
|
|
82
91
|
"StatsDataFiltersResponseUserFilters",
|
|
83
92
|
"StatsDataFiltersResponseUserFiltersStatsItem",
|
|
@@ -101,10 +110,18 @@ __all__ = [
|
|
|
101
110
|
"StatsUserReviewScoreResponse",
|
|
102
111
|
"StatsUserReviewScoreResponsePerformanceScore",
|
|
103
112
|
"StatsUserReviewScoreResponseReviewScore",
|
|
113
|
+
"StatsUsersGroundTruthAgreementResponse",
|
|
114
|
+
"StatsUsersGroundTruthAgreementResponseAgreementValue",
|
|
115
|
+
"StatsUsersPredictionAgreementResponse",
|
|
116
|
+
"StatsUsersPredictionAgreementResponseAgreementValue",
|
|
117
|
+
"StatsUsersReviewScoreResponse",
|
|
118
|
+
"StatsUsersReviewScoreResponsePerformanceScoreValue",
|
|
119
|
+
"StatsUsersReviewScoreResponseReviewScoreValue",
|
|
104
120
|
"assignments",
|
|
105
121
|
"exports",
|
|
106
122
|
"members",
|
|
107
123
|
"metrics",
|
|
108
124
|
"pauses",
|
|
125
|
+
"roles",
|
|
109
126
|
"stats",
|
|
110
127
|
]
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
4
|
from ..core.client_wrapper import SyncClientWrapper
|
|
5
|
+
from .roles.client import RolesClient
|
|
5
6
|
from .exports.client import ExportsClient
|
|
6
7
|
from .members.client import MembersClient
|
|
7
8
|
from .metrics.client import MetricsClient
|
|
@@ -39,6 +40,7 @@ from ..types.prediction_request import PredictionRequest
|
|
|
39
40
|
from .types.projects_import_predictions_response import ProjectsImportPredictionsResponse
|
|
40
41
|
from ..types.project_label_config import ProjectLabelConfig
|
|
41
42
|
from ..core.client_wrapper import AsyncClientWrapper
|
|
43
|
+
from .roles.client import AsyncRolesClient
|
|
42
44
|
from .exports.client import AsyncExportsClient
|
|
43
45
|
from .members.client import AsyncMembersClient
|
|
44
46
|
from .metrics.client import AsyncMetricsClient
|
|
@@ -54,6 +56,7 @@ OMIT = typing.cast(typing.Any, ...)
|
|
|
54
56
|
class ProjectsClient:
|
|
55
57
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
56
58
|
self._client_wrapper = client_wrapper
|
|
59
|
+
self.roles = RolesClient(client_wrapper=self._client_wrapper)
|
|
57
60
|
self.exports = ExportsClient(client_wrapper=self._client_wrapper)
|
|
58
61
|
self.members = MembersClient(client_wrapper=self._client_wrapper)
|
|
59
62
|
self.metrics = MetricsClient(client_wrapper=self._client_wrapper)
|
|
@@ -276,6 +279,7 @@ class ProjectsClient:
|
|
|
276
279
|
If set, the annotator can view model predictions
|
|
277
280
|
|
|
278
281
|
show_ground_truth_first : typing.Optional[bool]
|
|
282
|
+
Onboarding mode (true): show ground truth tasks first in the labeling stream
|
|
279
283
|
|
|
280
284
|
show_instruction : typing.Optional[bool]
|
|
281
285
|
Show instructions to the annotator before they start
|
|
@@ -702,6 +706,7 @@ class ProjectsClient:
|
|
|
702
706
|
If set, the annotator can view model predictions
|
|
703
707
|
|
|
704
708
|
show_ground_truth_first : typing.Optional[bool]
|
|
709
|
+
Onboarding mode (true): show ground truth tasks first in the labeling stream
|
|
705
710
|
|
|
706
711
|
show_instruction : typing.Optional[bool]
|
|
707
712
|
Show instructions to the annotator before they start
|
|
@@ -1235,6 +1240,7 @@ class ProjectsClient:
|
|
|
1235
1240
|
class AsyncProjectsClient:
|
|
1236
1241
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
1237
1242
|
self._client_wrapper = client_wrapper
|
|
1243
|
+
self.roles = AsyncRolesClient(client_wrapper=self._client_wrapper)
|
|
1238
1244
|
self.exports = AsyncExportsClient(client_wrapper=self._client_wrapper)
|
|
1239
1245
|
self.members = AsyncMembersClient(client_wrapper=self._client_wrapper)
|
|
1240
1246
|
self.metrics = AsyncMetricsClient(client_wrapper=self._client_wrapper)
|
|
@@ -1465,6 +1471,7 @@ class AsyncProjectsClient:
|
|
|
1465
1471
|
If set, the annotator can view model predictions
|
|
1466
1472
|
|
|
1467
1473
|
show_ground_truth_first : typing.Optional[bool]
|
|
1474
|
+
Onboarding mode (true): show ground truth tasks first in the labeling stream
|
|
1468
1475
|
|
|
1469
1476
|
show_instruction : typing.Optional[bool]
|
|
1470
1477
|
Show instructions to the annotator before they start
|
|
@@ -1923,6 +1930,7 @@ class AsyncProjectsClient:
|
|
|
1923
1930
|
If set, the annotator can view model predictions
|
|
1924
1931
|
|
|
1925
1932
|
show_ground_truth_first : typing.Optional[bool]
|
|
1933
|
+
Onboarding mode (true): show ground truth tasks first in the labeling stream
|
|
1926
1934
|
|
|
1927
1935
|
show_instruction : typing.Optional[bool]
|
|
1928
1936
|
Show instructions to the annotator before they start
|