Skip to content

Commit c932f52

Browse files
deppprobot-ci-heartex
authored andcommitted
feat: RND-525: embed v2 updates
GitOrigin-RevId: 95cc775b3f052816d4fc3bce61dc3ada1ab5f950
1 parent 31c67ae commit c932f52

21 files changed

Lines changed: 363 additions & 28 deletions

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "label-studio-sdk"
7-
version = "2.0.22.dev"
7+
version = "2.0.22"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 92 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6200,6 +6200,30 @@ client.prompts.subset_tasks(
62006200
<dl>
62016201
<dd>
62026202

6203+
**alignment_class:** `typing.Optional[str]` — Only include tasks whose prediction/reference alignment includes this class.
6204+
6205+
</dd>
6206+
</dl>
6207+
6208+
<dl>
6209+
<dd>
6210+
6211+
**alignment_from_name:** `typing.Optional[str]` — When alignment_class is set, limit matching to this output control tag.
6212+
6213+
</dd>
6214+
</dl>
6215+
6216+
<dl>
6217+
<dd>
6218+
6219+
**alignment_outcome:** `typing.Optional[SubsetTasksPromptsRequestAlignmentOutcome]` — Alignment outcome to drill into. Defaults to all TP, FP, and FN outcomes.
6220+
6221+
</dd>
6222+
</dl>
6223+
6224+
<dl>
6225+
<dd>
6226+
62036227
**include_total:** `typing.Optional[bool]` — If true (default), includes task_count in response; if false, omits it.
62046228

62056229
</dd>
@@ -6224,6 +6248,22 @@ client.prompts.subset_tasks(
62246248
<dl>
62256249
<dd>
62266250

6251+
**output_class:** `typing.Optional[str]` — Only include tasks whose prediction contains this output class.
6252+
6253+
</dd>
6254+
</dl>
6255+
6256+
<dl>
6257+
<dd>
6258+
6259+
**output_from_name:** `typing.Optional[str]` — When output_class is set, limit matching to this output control tag.
6260+
6261+
</dd>
6262+
</dl>
6263+
6264+
<dl>
6265+
<dd>
6266+
62276267
**page:** `typing.Optional[int]` — A page number within the paginated result set.
62286268

62296269
</dd>
@@ -6248,6 +6288,14 @@ client.prompts.subset_tasks(
62486288
<dl>
62496289
<dd>
62506290

6291+
**prediction_version_ids:** `typing.Optional[str]` — Comma-separated model version IDs. Only include tasks that have predictions for every listed version.
6292+
6293+
</dd>
6294+
</dl>
6295+
6296+
<dl>
6297+
<dd>
6298+
62516299
**project_subset:** `typing.Optional[str]` — The project subset to retrieve tasks for
62526300

62536301
</dd>
@@ -7220,6 +7268,14 @@ client.organizations.update(
72207268
<dl>
72217269
<dd>
72227270

7271+
**custom_interfaces_enabled:** `typing.Optional[bool]` — Enable or disable custom interfaces for this organization
7272+
7273+
</dd>
7274+
</dl>
7275+
7276+
<dl>
7277+
<dd>
7278+
72237279
**custom_scripts_enabled:** `typing.Optional[bool]` — Plugins
72247280

72257281
</dd>
@@ -7244,6 +7300,14 @@ client.organizations.update(
72447300
<dl>
72457301
<dd>
72467302

7303+
**embed_enabled:** `typing.Optional[bool]` — Enable or disable embed functionality for this organization
7304+
7305+
</dd>
7306+
</dl>
7307+
7308+
<dl>
7309+
<dd>
7310+
72477311
**embed_settings:** `typing.Optional[typing.Any]` — Public Verification Key and Public Verification Algorithms configuration
72487312

72497313
</dd>
@@ -7252,6 +7316,14 @@ client.organizations.update(
72527316
<dl>
72537317
<dd>
72547318

7319+
**interface_settings:** `typing.Optional[typing.Any]` — Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions
7320+
7321+
</dd>
7322+
</dl>
7323+
7324+
<dl>
7325+
<dd>
7326+
72557327
**react_code_settings:** `typing.Optional[typing.Any]` — ReactCode settings
72567328

72577329
</dd>
@@ -10505,6 +10577,14 @@ client.projects.create()
1050510577
<dl>
1050610578
<dd>
1050710579

10580+
**output_schema:** `typing.Optional[typing.Any]`
10581+
10582+
</dd>
10583+
</dl>
10584+
10585+
<dl>
10586+
<dd>
10587+
1050810588
**overlap_cohort_percentage:** `typing.Optional[int]`
1050910589

1051010590
</dd>
@@ -11296,6 +11376,14 @@ Methodology (Consensus / Pairwise Averaging)
1129611376
<dl>
1129711377
<dd>
1129811378

11379+
**output_schema:** `typing.Optional[typing.Any]`
11380+
11381+
</dd>
11382+
</dl>
11383+
11384+
<dl>
11385+
<dd>
11386+
1129911387
**overlap_cohort_percentage:** `typing.Optional[int]` — Annotations per task coverage
1130011388

1130111389
</dd>
@@ -32510,12 +32598,12 @@ client.projects.exports.download_sync(...)
3251032598
<dd>
3251132599

3251232600

32513-
This endpoint is deprecated in Enterprise. Use the async export API instead:
32514-
POST /api/projects/{{id}}/exports/ (see [Create new export](/api#operation/api_projects_exports_create)).
32601+
This endpoint is deprecated in Enterprise. Use the async export API instead:
32602+
POST /api/projects/{{id}}/exports/ (see [Create new export](/api#operation/api_projects_exports_create)).
3251532603

32516-
In Label Studio Enterprise, this endpoint will always return a 404 Not Found response with instructions to use the async export API.
32604+
In Label Studio Enterprise, this endpoint will always return a 404 Not Found response with instructions to use the async export API.
3251732605

32518-
Retrieve the available export formats for the current project by ID.
32606+
Retrieve the available export formats for the current project by ID.
3251932607
</dd>
3252032608
</dl>
3252132609
</dd>

src/label_studio_sdk/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
from .ml import CreateMlRequestAuthMethod, ListModelVersionsMlResponse, UpdateMlRequestAuthMethod
324324
from .model_providers import ListModelProviderChoicesModelProvidersResponse
325325
from .projects import DuplicateProjectsResponse, ImportPredictionsProjectsResponse, ImportTasksProjectsResponse
326-
from .prompts import CompatibleProjectsPromptsRequestProjectType
326+
from .prompts import CompatibleProjectsPromptsRequestProjectType, SubsetTasksPromptsRequestAlignmentOutcome
327327
from .tasks import ListTasksRequestFields
328328
from .users import GetTokenUsersResponse, ResetTokenUsersResponse
329329
from .version import __version__
@@ -655,6 +655,7 @@
655655
"StateTriggeredBy": ".types",
656656
"Status7BfEnum": ".types",
657657
"StatusC5AEnum": ".types",
658+
"SubsetTasksPromptsRequestAlignmentOutcome": ".prompts",
658659
"TaskAgreementMatrixResponse": ".types",
659660
"TaskAssignment": ".types",
660661
"TaskEvent": ".types",
@@ -1033,6 +1034,7 @@ def __dir__():
10331034
"StateTriggeredBy",
10341035
"Status7BfEnum",
10351036
"StatusC5AEnum",
1037+
"SubsetTasksPromptsRequestAlignmentOutcome",
10361038
"TaskAgreementMatrixResponse",
10371039
"TaskAssignment",
10381040
"TaskEvent",

src/label_studio_sdk/organizations/client.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,13 @@ def update(
138138
*,
139139
contact_info: typing.Optional[str] = OMIT,
140140
created_by: typing.Optional[int] = OMIT,
141+
custom_interfaces_enabled: typing.Optional[bool] = OMIT,
141142
custom_scripts_enabled: typing.Optional[bool] = OMIT,
142143
email_notification_settings: typing.Optional[typing.Any] = OMIT,
143144
embed_domains: typing.Optional[typing.Sequence[typing.Dict[str, str]]] = OMIT,
145+
embed_enabled: typing.Optional[bool] = OMIT,
144146
embed_settings: typing.Optional[typing.Any] = OMIT,
147+
interface_settings: typing.Optional[typing.Any] = OMIT,
145148
react_code_settings: typing.Optional[typing.Any] = OMIT,
146149
title: typing.Optional[str] = OMIT,
147150
token: typing.Optional[str] = OMIT,
@@ -164,6 +167,9 @@ def update(
164167
165168
created_by : typing.Optional[int]
166169
170+
custom_interfaces_enabled : typing.Optional[bool]
171+
Enable or disable custom interfaces for this organization
172+
167173
custom_scripts_enabled : typing.Optional[bool]
168174
Plugins
169175
@@ -173,9 +179,15 @@ def update(
173179
embed_domains : typing.Optional[typing.Sequence[typing.Dict[str, str]]]
174180
Supported domains
175181
182+
embed_enabled : typing.Optional[bool]
183+
Enable or disable embed functionality for this organization
184+
176185
embed_settings : typing.Optional[typing.Any]
177186
Public Verification Key and Public Verification Algorithms configuration
178187
188+
interface_settings : typing.Optional[typing.Any]
189+
Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions
190+
179191
react_code_settings : typing.Optional[typing.Any]
180192
ReactCode settings
181193
@@ -207,10 +219,13 @@ def update(
207219
id,
208220
contact_info=contact_info,
209221
created_by=created_by,
222+
custom_interfaces_enabled=custom_interfaces_enabled,
210223
custom_scripts_enabled=custom_scripts_enabled,
211224
email_notification_settings=email_notification_settings,
212225
embed_domains=embed_domains,
226+
embed_enabled=embed_enabled,
213227
embed_settings=embed_settings,
228+
interface_settings=interface_settings,
214229
react_code_settings=react_code_settings,
215230
title=title,
216231
token=token,
@@ -516,10 +531,13 @@ async def update(
516531
*,
517532
contact_info: typing.Optional[str] = OMIT,
518533
created_by: typing.Optional[int] = OMIT,
534+
custom_interfaces_enabled: typing.Optional[bool] = OMIT,
519535
custom_scripts_enabled: typing.Optional[bool] = OMIT,
520536
email_notification_settings: typing.Optional[typing.Any] = OMIT,
521537
embed_domains: typing.Optional[typing.Sequence[typing.Dict[str, str]]] = OMIT,
538+
embed_enabled: typing.Optional[bool] = OMIT,
522539
embed_settings: typing.Optional[typing.Any] = OMIT,
540+
interface_settings: typing.Optional[typing.Any] = OMIT,
523541
react_code_settings: typing.Optional[typing.Any] = OMIT,
524542
title: typing.Optional[str] = OMIT,
525543
token: typing.Optional[str] = OMIT,
@@ -542,6 +560,9 @@ async def update(
542560
543561
created_by : typing.Optional[int]
544562
563+
custom_interfaces_enabled : typing.Optional[bool]
564+
Enable or disable custom interfaces for this organization
565+
545566
custom_scripts_enabled : typing.Optional[bool]
546567
Plugins
547568
@@ -551,9 +572,15 @@ async def update(
551572
embed_domains : typing.Optional[typing.Sequence[typing.Dict[str, str]]]
552573
Supported domains
553574
575+
embed_enabled : typing.Optional[bool]
576+
Enable or disable embed functionality for this organization
577+
554578
embed_settings : typing.Optional[typing.Any]
555579
Public Verification Key and Public Verification Algorithms configuration
556580
581+
interface_settings : typing.Optional[typing.Any]
582+
Security settings for custom interfaces: CSP allowlists, script origins, iframe permissions
583+
557584
react_code_settings : typing.Optional[typing.Any]
558585
ReactCode settings
559586
@@ -593,10 +620,13 @@ async def main() -> None:
593620
id,
594621
contact_info=contact_info,
595622
created_by=created_by,
623+
custom_interfaces_enabled=custom_interfaces_enabled,
596624
custom_scripts_enabled=custom_scripts_enabled,
597625
email_notification_settings=email_notification_settings,
598626
embed_domains=embed_domains,
627+
embed_enabled=embed_enabled,
599628
embed_settings=embed_settings,
629+
interface_settings=interface_settings,
600630
react_code_settings=react_code_settings,
601631
title=title,
602632
token=token,

0 commit comments

Comments
 (0)