Skip to content

Commit 2da6414

Browse files
deppprobot-ci-heartex
authored andcommitted
fix: Interfaces templates and fixes
GitOrigin-RevId: dbdc46640830e63dfe1952429b87dea283d3fb78
1 parent 4cbe16c commit 2da6414

8 files changed

Lines changed: 35 additions & 7 deletions

File tree

reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10681,7 +10681,7 @@ client.projects.create()
1068110681
<dl>
1068210682
<dd>
1068310683

10684-
**source_interface_version:** `typing.Optional[int]`
10684+
**source_interface_version:** `typing.Optional[int]` — Stable version ID of the saved interface used to create this project.
1068510685

1068610686
</dd>
1068710687
</dl>
@@ -11512,7 +11512,7 @@ Methodology (Consensus / Pairwise Averaging)
1151211512
<dl>
1151311513
<dd>
1151411514

11515-
**source_interface_version:** `typing.Optional[int]`
11515+
**source_interface_version:** `typing.Optional[int]` — Stable version ID of the saved interface snapshot used by this project.
1151611516

1151711517
</dd>
1151811518
</dl>

src/label_studio_sdk/projects/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def create(
297297
source_interface_id : typing.Optional[int]
298298
299299
source_interface_version : typing.Optional[int]
300+
Stable version ID of the saved interface used to create this project.
300301
301302
task_data_login : typing.Optional[str]
302303
Task data credentials: login
@@ -739,6 +740,7 @@ def update(
739740
source_interface_id : typing.Optional[int]
740741
741742
source_interface_version : typing.Optional[int]
743+
Stable version ID of the saved interface snapshot used by this project.
742744
743745
strict_task_overlap : typing.Optional[bool]
744746
Enforce strict overlap limit
@@ -1475,6 +1477,7 @@ async def create(
14751477
source_interface_id : typing.Optional[int]
14761478
14771479
source_interface_version : typing.Optional[int]
1480+
Stable version ID of the saved interface used to create this project.
14781481
14791482
task_data_login : typing.Optional[str]
14801483
Task data credentials: login
@@ -1949,6 +1952,7 @@ async def update(
19491952
source_interface_id : typing.Optional[int]
19501953
19511954
source_interface_version : typing.Optional[int]
1955+
Stable version ID of the saved interface snapshot used by this project.
19521956
19531957
strict_task_overlap : typing.Optional[bool]
19541958
Enforce strict overlap limit

src/label_studio_sdk/projects/raw_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def create(
301301
source_interface_id : typing.Optional[int]
302302
303303
source_interface_version : typing.Optional[int]
304+
Stable version ID of the saved interface used to create this project.
304305
305306
task_data_login : typing.Optional[str]
306307
Task data credentials: login
@@ -793,6 +794,7 @@ def update(
793794
source_interface_id : typing.Optional[int]
794795
795796
source_interface_version : typing.Optional[int]
797+
Stable version ID of the saved interface snapshot used by this project.
796798
797799
strict_task_overlap : typing.Optional[bool]
798800
Enforce strict overlap limit
@@ -1573,6 +1575,7 @@ async def create(
15731575
source_interface_id : typing.Optional[int]
15741576
15751577
source_interface_version : typing.Optional[int]
1578+
Stable version ID of the saved interface used to create this project.
15761579
15771580
task_data_login : typing.Optional[str]
15781581
Task data credentials: login
@@ -2067,6 +2070,7 @@ async def update(
20672070
source_interface_id : typing.Optional[int]
20682071
20692072
source_interface_version : typing.Optional[int]
2073+
Stable version ID of the saved interface snapshot used by this project.
20702074
20712075
strict_task_overlap : typing.Optional[bool]
20722076
Enforce strict overlap limit

src/label_studio_sdk/types/all_roles_project_list.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ class AllRolesProjectList(UncheckedBaseModel):
265265
skip_queue: typing.Optional[SkipQueueEnum] = None
266266
skipped_annotations_number: typing.Optional[str] = None
267267
source_interface_id: typing.Optional[int] = None
268-
source_interface_version: typing.Optional[int] = None
268+
source_interface_version: typing.Optional[int] = pydantic.Field(default=None)
269+
"""
270+
Stable version ID of the saved interface snapshot used by this project.
271+
"""
272+
269273
start_training_on_annotation_update: typing.Optional[bool] = pydantic.Field(default=None)
270274
"""
271275
Start model training after any annotations are submitted or updated

src/label_studio_sdk/types/lse_project.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ class LseProject(UncheckedBaseModel):
265265
"""
266266

267267
source_interface_id: typing.Optional[int] = None
268-
source_interface_version: typing.Optional[int] = None
268+
source_interface_version: typing.Optional[int] = pydantic.Field(default=None)
269+
"""
270+
Stable version ID of the saved interface snapshot used by this project.
271+
"""
272+
269273
start_training_on_annotation_update: typing.Optional[bool] = pydantic.Field(default=None)
270274
"""
271275
Start model training after any annotations are submitted or updated

src/label_studio_sdk/types/lse_project_create.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ class LseProjectCreate(UncheckedBaseModel):
169169
"""
170170

171171
source_interface_id: typing.Optional[int] = None
172-
source_interface_version: typing.Optional[int] = None
172+
source_interface_version: typing.Optional[int] = pydantic.Field(default=None)
173+
"""
174+
Stable version ID of the saved interface used to create this project.
175+
"""
176+
173177
start_training_on_annotation_update: typing.Optional[bool] = pydantic.Field(default=None)
174178
"""
175179
Start model training after any annotations are submitted or updated

src/label_studio_sdk/types/lse_project_response.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ class LseProjectResponse(UncheckedBaseModel):
265265
skip_queue: typing.Optional[SkipQueueEnum] = None
266266
skipped_annotations_number: typing.Optional[int] = None
267267
source_interface_id: typing.Optional[int] = None
268-
source_interface_version: typing.Optional[int] = None
268+
source_interface_version: typing.Optional[int] = pydantic.Field(default=None)
269+
"""
270+
Stable version ID of the saved interface snapshot used by this project.
271+
"""
272+
269273
start_training_on_annotation_update: typing.Optional[bool] = pydantic.Field(default=None)
270274
"""
271275
Start model training after any annotations are submitted or updated

src/label_studio_sdk/types/lse_project_update.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@ class LseProjectUpdate(UncheckedBaseModel):
261261
"""
262262

263263
source_interface_id: typing.Optional[int] = None
264-
source_interface_version: typing.Optional[int] = None
264+
source_interface_version: typing.Optional[int] = pydantic.Field(default=None)
265+
"""
266+
Stable version ID of the saved interface snapshot used by this project.
267+
"""
268+
265269
start_training_on_annotation_update: typing.Optional[bool] = pydantic.Field(default=None)
266270
"""
267271
Start model training after any annotations are submitted or updated

0 commit comments

Comments
 (0)