Skip to content

Commit f39939f

Browse files
fix: UTC-475: Fix api schema (#725)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent e8f76c0 commit f39939f

4 files changed

Lines changed: 3 additions & 42 deletions

File tree

reference.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30946,16 +30946,6 @@ client.projects.roles.add(
3094630946
<dd>
3094730947

3094830948
**role:** `Role9E7Enum`
30949-
30950-
User role in project
30951-
30952-
* `OW` - Owner
30953-
* `AD` - Administrator
30954-
* `MA` - Manager
30955-
* `RE` - Reviewer
30956-
* `AN` - Annotator
30957-
* `DI` - Deactivated
30958-
* `NO` - Not Activated
3095930949

3096030950
</dd>
3096130951
</dl>

src/label_studio_sdk/projects/roles/client.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,6 @@ def add(
103103
project : int
104104
105105
role : Role9E7Enum
106-
User role in project
107-
108-
* `OW` - Owner
109-
* `AD` - Administrator
110-
* `MA` - Manager
111-
* `RE` - Reviewer
112-
* `AN` - Annotator
113-
* `DI` - Deactivated
114-
* `NO` - Not Activated
115106
116107
user : int
117108
@@ -364,15 +355,6 @@ async def add(
364355
project : int
365356
366357
role : Role9E7Enum
367-
User role in project
368-
369-
* `OW` - Owner
370-
* `AD` - Administrator
371-
* `MA` - Manager
372-
* `RE` - Reviewer
373-
* `AN` - Annotator
374-
* `DI` - Deactivated
375-
* `NO` - Not Activated
376358
377359
user : int
378360

src/label_studio_sdk/types/billing_flags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class BillingFlags(UncheckedBaseModel):
1717
allow_invite_project_experts: bool
1818
allow_nda: bool
1919
allow_organization_webhooks: bool
20+
allow_reviewing: bool
2021
allow_sso: bool
2122
allow_storage_proxy: bool
2223
automax_enabled: bool

src/label_studio_sdk/types/project_role.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,14 @@
33
from ..core.unchecked_base_model import UncheckedBaseModel
44
import typing
55
from .role9e7enum import Role9E7Enum
6-
import pydantic
76
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
import pydantic
88

99

1010
class ProjectRole(UncheckedBaseModel):
1111
id: typing.Optional[int] = None
1212
project: int
13-
role: Role9E7Enum = pydantic.Field()
14-
"""
15-
User role in project
16-
17-
* `OW` - Owner
18-
* `AD` - Administrator
19-
* `MA` - Manager
20-
* `RE` - Reviewer
21-
* `AN` - Annotator
22-
* `DI` - Deactivated
23-
* `NO` - Not Activated
24-
"""
25-
13+
role: Role9E7Enum
2614
user: int
2715

2816
if IS_PYDANTIC_V2:

0 commit comments

Comments
 (0)