label-studio-sdk 2.0.6__py3-none-any.whl → 2.0.8__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.
- label_studio_sdk/__init__.py +32 -2
- label_studio_sdk/base_client.py +4 -0
- label_studio_sdk/converter/exports/yolo.py +89 -74
- label_studio_sdk/core/client_wrapper.py +1 -1
- label_studio_sdk/import_storage/azure_spi/client.py +30 -0
- label_studio_sdk/label_interface/control_tags.py +38 -0
- label_studio_sdk/label_interface/data_examples.json +10 -0
- label_studio_sdk/label_interface/interface.py +13 -0
- label_studio_sdk/label_interface/object_tags.py +9 -0
- label_studio_sdk/ml/client.py +124 -0
- label_studio_sdk/organizations/__init__.py +3 -2
- label_studio_sdk/organizations/client.py +540 -1
- label_studio_sdk/organizations/invites/__init__.py +2 -0
- label_studio_sdk/organizations/invites/client.py +368 -0
- label_studio_sdk/organizations/permissions/__init__.py +2 -0
- label_studio_sdk/organizations/permissions/client.py +1129 -0
- label_studio_sdk/organizations/types/__init__.py +5 -0
- label_studio_sdk/organizations/types/patched_default_role_request_custom_scripts_editable_by.py +7 -0
- label_studio_sdk/project_templates/__init__.py +2 -0
- label_studio_sdk/project_templates/client.py +909 -0
- label_studio_sdk/projects/__init__.py +30 -0
- label_studio_sdk/projects/client.py +355 -0
- label_studio_sdk/projects/stats/__init__.py +28 -0
- label_studio_sdk/projects/stats/client.py +1002 -43
- label_studio_sdk/projects/stats/types/__init__.py +30 -0
- label_studio_sdk/projects/stats/types/stats_agreement_annotator_response.py +26 -0
- label_studio_sdk/projects/stats/types/stats_data_filters_response.py +23 -0
- label_studio_sdk/projects/stats/types/stats_data_filters_response_user_filters.py +34 -0
- label_studio_sdk/projects/stats/types/stats_data_filters_response_user_filters_stats_item.py +22 -0
- label_studio_sdk/projects/stats/types/stats_finished_tasks_response.py +32 -0
- label_studio_sdk/projects/stats/types/stats_lead_time_response.py +23 -0
- label_studio_sdk/projects/stats/types/stats_lead_time_response_lead_time_stats_item.py +37 -0
- label_studio_sdk/projects/stats/types/stats_user_ground_truth_agreement_response.py +20 -0
- label_studio_sdk/projects/stats/types/stats_user_ground_truth_agreement_response_agreement.py +5 -0
- label_studio_sdk/projects/stats/types/stats_user_prediction_agreement_response.py +24 -0
- label_studio_sdk/projects/stats/types/stats_user_prediction_agreement_response_average_prediction_agreement_per_user.py +5 -0
- label_studio_sdk/projects/stats/types/stats_user_review_score_response.py +22 -0
- label_studio_sdk/projects/stats/types/stats_user_review_score_response_performance_score.py +5 -0
- label_studio_sdk/projects/stats/types/stats_user_review_score_response_review_score.py +5 -0
- label_studio_sdk/projects/types/__init__.py +2 -0
- label_studio_sdk/projects/types/projects_import_predictions_response.py +26 -0
- label_studio_sdk/prompts/versions/client.py +4 -16
- label_studio_sdk/types/__init__.py +26 -2
- label_studio_sdk/types/azure_service_principal_import_storage.py +5 -0
- label_studio_sdk/types/azure_service_principal_import_storage_request.py +5 -0
- label_studio_sdk/types/configurable_permission_option.py +25 -0
- label_studio_sdk/types/configurable_permission_option_default.py +7 -0
- label_studio_sdk/types/default_role.py +75 -0
- label_studio_sdk/types/default_role_custom_scripts_editable_by.py +7 -0
- label_studio_sdk/types/lse_organization.py +2 -2
- label_studio_sdk/types/lse_project.py +223 -0
- label_studio_sdk/types/lse_project_counts.py +46 -0
- label_studio_sdk/types/lse_project_sampling.py +7 -0
- label_studio_sdk/types/lse_project_skip_queue.py +7 -0
- label_studio_sdk/types/lse_task.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +1 -1
- label_studio_sdk/types/organization_permission.py +31 -0
- label_studio_sdk/types/organization_permission_request.py +24 -0
- label_studio_sdk/types/paginated_lse_project_counts_list.py +23 -0
- label_studio_sdk/types/project_template.py +41 -0
- label_studio_sdk/types/project_template_request.py +38 -0
- label_studio_sdk/types/who_am_i_user.py +1 -0
- {label_studio_sdk-2.0.6.dist-info → label_studio_sdk-2.0.8.dist-info}/METADATA +1 -1
- {label_studio_sdk-2.0.6.dist-info → label_studio_sdk-2.0.8.dist-info}/RECORD +66 -31
- label_studio_sdk/types/default_role_enum.py +0 -5
- {label_studio_sdk-2.0.6.dist-info → label_studio_sdk-2.0.8.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.6.dist-info → label_studio_sdk-2.0.8.dist-info}/WHEEL +0 -0
|
@@ -1,19 +1,49 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
+
from .stats_agreement_annotator_response import StatsAgreementAnnotatorResponse
|
|
4
|
+
from .stats_data_filters_response import StatsDataFiltersResponse
|
|
5
|
+
from .stats_data_filters_response_user_filters import StatsDataFiltersResponseUserFilters
|
|
6
|
+
from .stats_data_filters_response_user_filters_stats_item import StatsDataFiltersResponseUserFiltersStatsItem
|
|
7
|
+
from .stats_finished_tasks_response import StatsFinishedTasksResponse
|
|
3
8
|
from .stats_iaa_response import StatsIaaResponse
|
|
4
9
|
from .stats_iaa_response_common_tasks import StatsIaaResponseCommonTasks
|
|
5
10
|
from .stats_iaa_response_iaa import StatsIaaResponseIaa
|
|
6
11
|
from .stats_iaa_response_std import StatsIaaResponseStd
|
|
12
|
+
from .stats_lead_time_response import StatsLeadTimeResponse
|
|
13
|
+
from .stats_lead_time_response_lead_time_stats_item import StatsLeadTimeResponseLeadTimeStatsItem
|
|
7
14
|
from .stats_total_agreement_response import StatsTotalAgreementResponse
|
|
8
15
|
from .stats_total_agreement_response_one import StatsTotalAgreementResponseOne
|
|
9
16
|
from .stats_total_agreement_response_zero import StatsTotalAgreementResponseZero
|
|
17
|
+
from .stats_user_ground_truth_agreement_response import StatsUserGroundTruthAgreementResponse
|
|
18
|
+
from .stats_user_ground_truth_agreement_response_agreement import StatsUserGroundTruthAgreementResponseAgreement
|
|
19
|
+
from .stats_user_prediction_agreement_response import StatsUserPredictionAgreementResponse
|
|
20
|
+
from .stats_user_prediction_agreement_response_average_prediction_agreement_per_user import (
|
|
21
|
+
StatsUserPredictionAgreementResponseAveragePredictionAgreementPerUser,
|
|
22
|
+
)
|
|
23
|
+
from .stats_user_review_score_response import StatsUserReviewScoreResponse
|
|
24
|
+
from .stats_user_review_score_response_performance_score import StatsUserReviewScoreResponsePerformanceScore
|
|
25
|
+
from .stats_user_review_score_response_review_score import StatsUserReviewScoreResponseReviewScore
|
|
10
26
|
|
|
11
27
|
__all__ = [
|
|
28
|
+
"StatsAgreementAnnotatorResponse",
|
|
29
|
+
"StatsDataFiltersResponse",
|
|
30
|
+
"StatsDataFiltersResponseUserFilters",
|
|
31
|
+
"StatsDataFiltersResponseUserFiltersStatsItem",
|
|
32
|
+
"StatsFinishedTasksResponse",
|
|
12
33
|
"StatsIaaResponse",
|
|
13
34
|
"StatsIaaResponseCommonTasks",
|
|
14
35
|
"StatsIaaResponseIaa",
|
|
15
36
|
"StatsIaaResponseStd",
|
|
37
|
+
"StatsLeadTimeResponse",
|
|
38
|
+
"StatsLeadTimeResponseLeadTimeStatsItem",
|
|
16
39
|
"StatsTotalAgreementResponse",
|
|
17
40
|
"StatsTotalAgreementResponseOne",
|
|
18
41
|
"StatsTotalAgreementResponseZero",
|
|
42
|
+
"StatsUserGroundTruthAgreementResponse",
|
|
43
|
+
"StatsUserGroundTruthAgreementResponseAgreement",
|
|
44
|
+
"StatsUserPredictionAgreementResponse",
|
|
45
|
+
"StatsUserPredictionAgreementResponseAveragePredictionAgreementPerUser",
|
|
46
|
+
"StatsUserReviewScoreResponse",
|
|
47
|
+
"StatsUserReviewScoreResponsePerformanceScore",
|
|
48
|
+
"StatsUserReviewScoreResponseReviewScore",
|
|
19
49
|
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing_extensions
|
|
5
|
+
import typing
|
|
6
|
+
from ....core.serialization import FieldMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StatsAgreementAnnotatorResponse(UncheckedBaseModel):
|
|
12
|
+
agreement_per_annotator: typing_extensions.Annotated[
|
|
13
|
+
typing.Optional[float], FieldMetadata(alias="Agreement_per_annotator")
|
|
14
|
+
] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Agreement score for the annotator (0-1)
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
21
|
+
else:
|
|
22
|
+
|
|
23
|
+
class Config:
|
|
24
|
+
frozen = True
|
|
25
|
+
smart_union = True
|
|
26
|
+
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 .stats_data_filters_response_user_filters import StatsDataFiltersResponseUserFilters
|
|
6
|
+
import pydantic
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatsDataFiltersResponse(UncheckedBaseModel):
|
|
11
|
+
user_filters: typing.Optional[StatsDataFiltersResponseUserFilters] = pydantic.Field(default=None)
|
|
12
|
+
"""
|
|
13
|
+
Data filter statistics by user and model
|
|
14
|
+
"""
|
|
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,34 @@
|
|
|
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 .stats_data_filters_response_user_filters_stats_item import StatsDataFiltersResponseUserFiltersStatsItem
|
|
6
|
+
import pydantic
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatsDataFiltersResponseUserFilters(UncheckedBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Data filter statistics by user and model
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
stats: typing.Optional[typing.List[StatsDataFiltersResponseUserFiltersStatsItem]] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
List of filter configurations for users and models
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
tasks_with_annotations: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(
|
|
21
|
+
default=None
|
|
22
|
+
)
|
|
23
|
+
"""
|
|
24
|
+
Default filter tab for tasks with annotations
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
if IS_PYDANTIC_V2:
|
|
28
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
29
|
+
else:
|
|
30
|
+
|
|
31
|
+
class Config:
|
|
32
|
+
frozen = True
|
|
33
|
+
smart_union = True
|
|
34
|
+
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
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class StatsDataFiltersResponseUserFiltersStatsItem(UncheckedBaseModel):
|
|
10
|
+
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
11
|
+
"""
|
|
12
|
+
User ID or model version identifier (e.g., "model:1.0")
|
|
13
|
+
"""
|
|
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 typing
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class StatsFinishedTasksResponse(UncheckedBaseModel):
|
|
10
|
+
finished: typing.Optional[int] = pydantic.Field(default=None)
|
|
11
|
+
"""
|
|
12
|
+
Number of finished tasks
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
id: typing.Optional[int] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
User ID
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
progress: typing.Optional[int] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Progress percentage (0-100)
|
|
23
|
+
"""
|
|
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,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 .stats_lead_time_response_lead_time_stats_item import StatsLeadTimeResponseLeadTimeStatsItem
|
|
6
|
+
import pydantic
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatsLeadTimeResponse(UncheckedBaseModel):
|
|
11
|
+
lead_time_stats: typing.Optional[typing.List[StatsLeadTimeResponseLeadTimeStatsItem]] = pydantic.Field(default=None)
|
|
12
|
+
"""
|
|
13
|
+
Lead time statistics including mean, median, and distribution
|
|
14
|
+
"""
|
|
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,37 @@
|
|
|
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 pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class StatsLeadTimeResponseLeadTimeStatsItem(UncheckedBaseModel):
|
|
10
|
+
mean_time: typing.Optional[float] = pydantic.Field(default=None)
|
|
11
|
+
"""
|
|
12
|
+
Average lead time for the user
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
median_time: typing.Optional[float] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
Median lead time for the user
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
sum_lead_time: typing.Optional[float] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Total lead time for the user
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
user_id: typing.Optional[int] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
User ID
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
if IS_PYDANTIC_V2:
|
|
31
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
|
+
else:
|
|
33
|
+
|
|
34
|
+
class Config:
|
|
35
|
+
frozen = True
|
|
36
|
+
smart_union = True
|
|
37
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
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 .stats_user_ground_truth_agreement_response_agreement import StatsUserGroundTruthAgreementResponseAgreement
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StatsUserGroundTruthAgreementResponse(UncheckedBaseModel):
|
|
11
|
+
agreement: typing.Optional[StatsUserGroundTruthAgreementResponseAgreement] = None
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
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 .stats_user_prediction_agreement_response_average_prediction_agreement_per_user import (
|
|
6
|
+
StatsUserPredictionAgreementResponseAveragePredictionAgreementPerUser,
|
|
7
|
+
)
|
|
8
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StatsUserPredictionAgreementResponse(UncheckedBaseModel):
|
|
13
|
+
average_prediction_agreement_per_user: typing.Optional[
|
|
14
|
+
StatsUserPredictionAgreementResponseAveragePredictionAgreementPerUser
|
|
15
|
+
] = None
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
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 .stats_user_review_score_response_performance_score import StatsUserReviewScoreResponsePerformanceScore
|
|
6
|
+
from .stats_user_review_score_response_review_score import StatsUserReviewScoreResponseReviewScore
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
import pydantic
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StatsUserReviewScoreResponse(UncheckedBaseModel):
|
|
12
|
+
performance_score: typing.Optional[StatsUserReviewScoreResponsePerformanceScore] = None
|
|
13
|
+
review_score: typing.Optional[StatsUserReviewScoreResponseReviewScore] = 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
|
|
@@ -5,6 +5,7 @@ from .lse_project_create_request_skip_queue import LseProjectCreateRequestSkipQu
|
|
|
5
5
|
from .patched_lse_project_update_request_sampling import PatchedLseProjectUpdateRequestSampling
|
|
6
6
|
from .patched_lse_project_update_request_skip_queue import PatchedLseProjectUpdateRequestSkipQueue
|
|
7
7
|
from .projects_duplicate_response import ProjectsDuplicateResponse
|
|
8
|
+
from .projects_import_predictions_response import ProjectsImportPredictionsResponse
|
|
8
9
|
from .projects_import_tasks_response import ProjectsImportTasksResponse
|
|
9
10
|
from .projects_list_request_filter import ProjectsListRequestFilter
|
|
10
11
|
|
|
@@ -14,6 +15,7 @@ __all__ = [
|
|
|
14
15
|
"PatchedLseProjectUpdateRequestSampling",
|
|
15
16
|
"PatchedLseProjectUpdateRequestSkipQueue",
|
|
16
17
|
"ProjectsDuplicateResponse",
|
|
18
|
+
"ProjectsImportPredictionsResponse",
|
|
17
19
|
"ProjectsImportTasksResponse",
|
|
18
20
|
"ProjectsListRequestFilter",
|
|
19
21
|
]
|
|
@@ -0,0 +1,26 @@
|
|
|
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 pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ProjectsImportPredictionsResponse(UncheckedBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Import result
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
created: typing.Optional[int] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Number of predictions created
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
21
|
+
else:
|
|
22
|
+
|
|
23
|
+
class Config:
|
|
24
|
+
frozen = True
|
|
25
|
+
smart_union = True
|
|
26
|
+
extra = pydantic.Extra.allow
|
|
@@ -62,9 +62,8 @@ class VersionsClient:
|
|
|
62
62
|
|
|
63
63
|
def list(
|
|
64
64
|
self,
|
|
65
|
-
prompt_id_: int,
|
|
66
|
-
*,
|
|
67
65
|
prompt_id: int,
|
|
66
|
+
*,
|
|
68
67
|
ordering: typing.Optional[str] = None,
|
|
69
68
|
request_options: typing.Optional[RequestOptions] = None,
|
|
70
69
|
) -> typing.List[ThirdPartyModelVersion]:
|
|
@@ -73,10 +72,7 @@ class VersionsClient:
|
|
|
73
72
|
|
|
74
73
|
Parameters
|
|
75
74
|
----------
|
|
76
|
-
prompt_id_ : int
|
|
77
|
-
|
|
78
75
|
prompt_id : int
|
|
79
|
-
A unique integer value identifying the model ID to list versions for.
|
|
80
76
|
|
|
81
77
|
ordering : typing.Optional[str]
|
|
82
78
|
Which field to use when ordering the results.
|
|
@@ -97,16 +93,14 @@ class VersionsClient:
|
|
|
97
93
|
api_key="YOUR_API_KEY",
|
|
98
94
|
)
|
|
99
95
|
client.prompts.versions.list(
|
|
100
|
-
prompt_id_=1,
|
|
101
96
|
prompt_id=1,
|
|
102
97
|
)
|
|
103
98
|
"""
|
|
104
99
|
_response = self._client_wrapper.httpx_client.request(
|
|
105
|
-
f"api/prompts/{jsonable_encoder(
|
|
100
|
+
f"api/prompts/{jsonable_encoder(prompt_id)}/versions",
|
|
106
101
|
method="GET",
|
|
107
102
|
params={
|
|
108
103
|
"ordering": ordering,
|
|
109
|
-
"prompt_id": prompt_id,
|
|
110
104
|
},
|
|
111
105
|
request_options=request_options,
|
|
112
106
|
)
|
|
@@ -674,9 +668,8 @@ class AsyncVersionsClient:
|
|
|
674
668
|
|
|
675
669
|
async def list(
|
|
676
670
|
self,
|
|
677
|
-
prompt_id_: int,
|
|
678
|
-
*,
|
|
679
671
|
prompt_id: int,
|
|
672
|
+
*,
|
|
680
673
|
ordering: typing.Optional[str] = None,
|
|
681
674
|
request_options: typing.Optional[RequestOptions] = None,
|
|
682
675
|
) -> typing.List[ThirdPartyModelVersion]:
|
|
@@ -685,10 +678,7 @@ class AsyncVersionsClient:
|
|
|
685
678
|
|
|
686
679
|
Parameters
|
|
687
680
|
----------
|
|
688
|
-
prompt_id_ : int
|
|
689
|
-
|
|
690
681
|
prompt_id : int
|
|
691
|
-
A unique integer value identifying the model ID to list versions for.
|
|
692
682
|
|
|
693
683
|
ordering : typing.Optional[str]
|
|
694
684
|
Which field to use when ordering the results.
|
|
@@ -714,7 +704,6 @@ class AsyncVersionsClient:
|
|
|
714
704
|
|
|
715
705
|
async def main() -> None:
|
|
716
706
|
await client.prompts.versions.list(
|
|
717
|
-
prompt_id_=1,
|
|
718
707
|
prompt_id=1,
|
|
719
708
|
)
|
|
720
709
|
|
|
@@ -722,11 +711,10 @@ class AsyncVersionsClient:
|
|
|
722
711
|
asyncio.run(main())
|
|
723
712
|
"""
|
|
724
713
|
_response = await self._client_wrapper.httpx_client.request(
|
|
725
|
-
f"api/prompts/{jsonable_encoder(
|
|
714
|
+
f"api/prompts/{jsonable_encoder(prompt_id)}/versions",
|
|
726
715
|
method="GET",
|
|
727
716
|
params={
|
|
728
717
|
"ordering": ordering,
|
|
729
|
-
"prompt_id": prompt_id,
|
|
730
718
|
},
|
|
731
719
|
request_options=request_options,
|
|
732
720
|
)
|
|
@@ -43,11 +43,14 @@ from .child_filter import ChildFilter
|
|
|
43
43
|
from .comment import Comment
|
|
44
44
|
from .comment_request import CommentRequest
|
|
45
45
|
from .comment_serializer_with_expanded_user import CommentSerializerWithExpandedUser
|
|
46
|
+
from .configurable_permission_option import ConfigurablePermissionOption
|
|
47
|
+
from .configurable_permission_option_default import ConfigurablePermissionOptionDefault
|
|
46
48
|
from .converted_format import ConvertedFormat
|
|
47
49
|
from .converted_format_request import ConvertedFormatRequest
|
|
48
50
|
from .count_limit import CountLimit
|
|
49
51
|
from .custom_scripts_editable_by_enum import CustomScriptsEditableByEnum
|
|
50
|
-
from .
|
|
52
|
+
from .default_role import DefaultRole
|
|
53
|
+
from .default_role_custom_scripts_editable_by import DefaultRoleCustomScriptsEditableBy
|
|
51
54
|
from .edition_enum import EditionEnum
|
|
52
55
|
from .export import Export
|
|
53
56
|
from .file_upload import FileUpload
|
|
@@ -79,9 +82,13 @@ from .lse_key_indicator_value import LseKeyIndicatorValue
|
|
|
79
82
|
from .lse_organization import LseOrganization
|
|
80
83
|
from .lse_organization_custom_scripts_editable_by import LseOrganizationCustomScriptsEditableBy
|
|
81
84
|
from .lse_organization_member_list import LseOrganizationMemberList
|
|
85
|
+
from .lse_project import LseProject
|
|
86
|
+
from .lse_project_counts import LseProjectCounts
|
|
82
87
|
from .lse_project_create import LseProjectCreate
|
|
83
88
|
from .lse_project_create_sampling import LseProjectCreateSampling
|
|
84
89
|
from .lse_project_create_skip_queue import LseProjectCreateSkipQueue
|
|
90
|
+
from .lse_project_sampling import LseProjectSampling
|
|
91
|
+
from .lse_project_skip_queue import LseProjectSkipQueue
|
|
85
92
|
from .lse_project_update import LseProjectUpdate
|
|
86
93
|
from .lse_project_update_sampling import LseProjectUpdateSampling
|
|
87
94
|
from .lse_project_update_skip_queue import LseProjectUpdateSkipQueue
|
|
@@ -133,9 +140,12 @@ from .organization_id import OrganizationId
|
|
|
133
140
|
from .organization_invite import OrganizationInvite
|
|
134
141
|
from .organization_member import OrganizationMember
|
|
135
142
|
from .organization_membership import OrganizationMembership
|
|
143
|
+
from .organization_permission import OrganizationPermission
|
|
144
|
+
from .organization_permission_request import OrganizationPermissionRequest
|
|
136
145
|
from .paginated_all_roles_project_list_list import PaginatedAllRolesProjectListList
|
|
137
146
|
from .paginated_annotation_history_list import PaginatedAnnotationHistoryList
|
|
138
147
|
from .paginated_lse_organization_member_list_list import PaginatedLseOrganizationMemberListList
|
|
148
|
+
from .paginated_lse_project_counts_list import PaginatedLseProjectCountsList
|
|
139
149
|
from .paginated_lse_user_list import PaginatedLseUserList
|
|
140
150
|
from .paginated_paginated_project_member_list import PaginatedPaginatedProjectMemberList
|
|
141
151
|
from .paginated_project_member import PaginatedProjectMember
|
|
@@ -155,6 +165,8 @@ from .project_member_bulk_assign_roles_request import ProjectMemberBulkAssignRol
|
|
|
155
165
|
from .project_sampling import ProjectSampling
|
|
156
166
|
from .project_skip_queue import ProjectSkipQueue
|
|
157
167
|
from .project_subset_enum import ProjectSubsetEnum
|
|
168
|
+
from .project_template import ProjectTemplate
|
|
169
|
+
from .project_template_request import ProjectTemplateRequest
|
|
158
170
|
from .prompts_status_enum import PromptsStatusEnum
|
|
159
171
|
from .provider_enum import ProviderEnum
|
|
160
172
|
from .reason_enum import ReasonEnum
|
|
@@ -256,11 +268,14 @@ __all__ = [
|
|
|
256
268
|
"Comment",
|
|
257
269
|
"CommentRequest",
|
|
258
270
|
"CommentSerializerWithExpandedUser",
|
|
271
|
+
"ConfigurablePermissionOption",
|
|
272
|
+
"ConfigurablePermissionOptionDefault",
|
|
259
273
|
"ConvertedFormat",
|
|
260
274
|
"ConvertedFormatRequest",
|
|
261
275
|
"CountLimit",
|
|
262
276
|
"CustomScriptsEditableByEnum",
|
|
263
|
-
"
|
|
277
|
+
"DefaultRole",
|
|
278
|
+
"DefaultRoleCustomScriptsEditableBy",
|
|
264
279
|
"EditionEnum",
|
|
265
280
|
"Export",
|
|
266
281
|
"FileUpload",
|
|
@@ -292,9 +307,13 @@ __all__ = [
|
|
|
292
307
|
"LseOrganization",
|
|
293
308
|
"LseOrganizationCustomScriptsEditableBy",
|
|
294
309
|
"LseOrganizationMemberList",
|
|
310
|
+
"LseProject",
|
|
311
|
+
"LseProjectCounts",
|
|
295
312
|
"LseProjectCreate",
|
|
296
313
|
"LseProjectCreateSampling",
|
|
297
314
|
"LseProjectCreateSkipQueue",
|
|
315
|
+
"LseProjectSampling",
|
|
316
|
+
"LseProjectSkipQueue",
|
|
298
317
|
"LseProjectUpdate",
|
|
299
318
|
"LseProjectUpdateSampling",
|
|
300
319
|
"LseProjectUpdateSkipQueue",
|
|
@@ -346,9 +365,12 @@ __all__ = [
|
|
|
346
365
|
"OrganizationInvite",
|
|
347
366
|
"OrganizationMember",
|
|
348
367
|
"OrganizationMembership",
|
|
368
|
+
"OrganizationPermission",
|
|
369
|
+
"OrganizationPermissionRequest",
|
|
349
370
|
"PaginatedAllRolesProjectListList",
|
|
350
371
|
"PaginatedAnnotationHistoryList",
|
|
351
372
|
"PaginatedLseOrganizationMemberListList",
|
|
373
|
+
"PaginatedLseProjectCountsList",
|
|
352
374
|
"PaginatedLseUserList",
|
|
353
375
|
"PaginatedPaginatedProjectMemberList",
|
|
354
376
|
"PaginatedProjectMember",
|
|
@@ -368,6 +390,8 @@ __all__ = [
|
|
|
368
390
|
"ProjectSampling",
|
|
369
391
|
"ProjectSkipQueue",
|
|
370
392
|
"ProjectSubsetEnum",
|
|
393
|
+
"ProjectTemplate",
|
|
394
|
+
"ProjectTemplateRequest",
|
|
371
395
|
"PromptsStatusEnum",
|
|
372
396
|
"ProviderEnum",
|
|
373
397
|
"ReasonEnum",
|
|
@@ -72,6 +72,11 @@ class AzureServicePrincipalImportStorage(UncheckedBaseModel):
|
|
|
72
72
|
A unique integer value identifying this project.
|
|
73
73
|
"""
|
|
74
74
|
|
|
75
|
+
recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
|
|
76
|
+
"""
|
|
77
|
+
Perform recursive scan
|
|
78
|
+
"""
|
|
79
|
+
|
|
75
80
|
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
76
81
|
"""
|
|
77
82
|
Cloud storage regex for filtering objects
|
|
@@ -66,6 +66,11 @@ class AzureServicePrincipalImportStorageRequest(UncheckedBaseModel):
|
|
|
66
66
|
A unique integer value identifying this project.
|
|
67
67
|
"""
|
|
68
68
|
|
|
69
|
+
recursive_scan: typing.Optional[bool] = pydantic.Field(default=None)
|
|
70
|
+
"""
|
|
71
|
+
Perform recursive scan
|
|
72
|
+
"""
|
|
73
|
+
|
|
69
74
|
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
70
75
|
"""
|
|
71
76
|
Cloud storage regex for filtering objects
|
|
@@ -0,0 +1,25 @@
|
|
|
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 .configurable_permission_option_default import ConfigurablePermissionOptionDefault
|
|
6
|
+
from .role9e7enum import Role9E7Enum
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
import pydantic
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ConfigurablePermissionOption(UncheckedBaseModel):
|
|
12
|
+
default: typing.Optional[ConfigurablePermissionOptionDefault] = None
|
|
13
|
+
label: typing.Optional[str] = None
|
|
14
|
+
options: typing.List[Role9E7Enum]
|
|
15
|
+
permission: str
|
|
16
|
+
tooltip: typing.Optional[str] = None
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|