Skip to content

Commit 53534a1

Browse files
chore: UTC-298: Migrate editable plugin permission to new permissions (#651)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 5211025 commit 53534a1

16 files changed

Lines changed: 2 additions & 267 deletions

.mock/definition/__package__.yml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,15 +1688,6 @@ types:
16881688
total: optional<integer>
16891689
source:
16901690
openapi: openapi/openapi.yaml
1691-
CustomScriptsEditableByEnum:
1692-
enum:
1693-
- AD
1694-
- MA
1695-
docs: |-
1696-
* `AD` - Administrator
1697-
* `MA` - Manager
1698-
source:
1699-
openapi: openapi/openapi.yaml
17001691
DatabricksExportStorage:
17011692
properties:
17021693
can_delete_objects:
@@ -2167,22 +2158,6 @@ types:
21672158
- 'NO'
21682159
source:
21692160
openapi: openapi/openapi.yaml
2170-
DefaultRoleCustomScriptsEditableBy:
2171-
discriminated: false
2172-
docs: >-
2173-
Set the minimum user role that can edit custom scripts (Plugins) in the
2174-
UI.
2175-
2176-
2177-
* `AD` - Administrator
2178-
2179-
* `MA` - Manager
2180-
union:
2181-
- CustomScriptsEditableByEnum
2182-
- NullEnum
2183-
source:
2184-
openapi: openapi/openapi.yaml
2185-
inline: true
21862161
DefaultRole:
21872162
properties:
21882163
annotator_reviewer_firewall_enabled_at:
@@ -2192,16 +2167,6 @@ types:
21922167
reviewers in the label stream, review stream, and notifications (which
21932168
will be disabled). In these settings, information about annotator and
21942169
reviewer identity is suppressed in the UI.
2195-
custom_scripts_editable_by:
2196-
type: optional<DefaultRoleCustomScriptsEditableBy>
2197-
docs: >-
2198-
Set the minimum user role that can edit custom scripts (Plugins) in
2199-
the UI.
2200-
2201-
2202-
* `AD` - Administrator
2203-
2204-
* `MA` - Manager
22052170
custom_scripts_enabled_at:
22062171
type: optional<datetime>
22072172
docs: >-
@@ -3631,36 +3596,10 @@ types:
36313596
trial_role: optional<LseFieldsRequestTrialRole>
36323597
source:
36333598
openapi: openapi/openapi.yaml
3634-
LseOrganizationCustomScriptsEditableBy:
3635-
discriminated: false
3636-
docs: >-
3637-
Set the minimum user role that can edit custom scripts (Plugins) in the
3638-
UI.
3639-
3640-
3641-
* `AD` - Administrator
3642-
3643-
* `MA` - Manager
3644-
union:
3645-
- CustomScriptsEditableByEnum
3646-
- NullEnum
3647-
source:
3648-
openapi: openapi/openapi.yaml
3649-
inline: true
36503599
LseOrganization:
36513600
properties:
36523601
billing: OrganizationBilling
36533602
created_at: datetime
3654-
custom_scripts_editable_by:
3655-
type: optional<LseOrganizationCustomScriptsEditableBy>
3656-
docs: >-
3657-
Set the minimum user role that can edit custom scripts (Plugins) in
3658-
the UI.
3659-
3660-
3661-
* `AD` - Administrator
3662-
3663-
* `MA` - Manager
36643603
custom_scripts_enabled: string
36653604
default_role:
36663605
type: optional<Role9E7Enum>

.mock/definition/organizations.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ service:
7575
manual_role_management: manual_role_management
7676
manual_workspace_management: manual_workspace_management
7777
created_at: '2024-01-15T09:30:00Z'
78-
custom_scripts_editable_by: AD
7978
custom_scripts_enabled: custom_scripts_enabled
8079
default_role: OW
8180
email_notification_settings: email_notification_settings
@@ -117,10 +116,6 @@ service:
117116
format: email
118117
maxLength: 254
119118
created_by: optional<integer>
120-
custom_scripts_editable_by:
121-
type: optional<string>
122-
validation:
123-
minLength: 1
124119
custom_scripts_enabled: optional<boolean>
125120
email_notification_settings: optional<unknown>
126121
embed_domains: optional<list<map<string, string>>>
@@ -151,7 +146,6 @@ service:
151146
manual_role_management: manual_role_management
152147
manual_workspace_management: manual_workspace_management
153148
created_at: '2024-01-15T09:30:00Z'
154-
custom_scripts_editable_by: AD
155149
custom_scripts_enabled: custom_scripts_enabled
156150
default_role: OW
157151
email_notification_settings: email_notification_settings
@@ -194,16 +188,6 @@ service:
194188
notifications (which will be disabled). In these settings,
195189
information about annotator and reviewer identity is suppressed
196190
in the UI.
197-
custom_scripts_editable_by:
198-
type: optional<PatchedDefaultRoleRequestCustomScriptsEditableBy>
199-
docs: >-
200-
Set the minimum user role that can edit custom scripts (Plugins)
201-
in the UI.
202-
203-
204-
* `AD` - Administrator
205-
206-
* `MA` - Manager
207191
custom_scripts_enabled_at:
208192
type: optional<datetime>
209193
docs: >-
@@ -256,7 +240,6 @@ service:
256240
response:
257241
body:
258242
annotator_reviewer_firewall_enabled_at: '2024-01-15T09:30:00Z'
259-
custom_scripts_editable_by: AD
260243
custom_scripts_enabled_at: '2024-01-15T09:30:00Z'
261244
default_role: OW
262245
email_notification_settings:
@@ -274,20 +257,3 @@ service:
274257
- public
275258
source:
276259
openapi: openapi/openapi.yaml
277-
types:
278-
PatchedDefaultRoleRequestCustomScriptsEditableBy:
279-
discriminated: false
280-
docs: >-
281-
Set the minimum user role that can edit custom scripts (Plugins) in the
282-
UI.
283-
284-
285-
* `AD` - Administrator
286-
287-
* `MA` - Manager
288-
union:
289-
- root.CustomScriptsEditableByEnum
290-
- root.NullEnum
291-
source:
292-
openapi: openapi/openapi.yaml
293-
inline: true

.mock/openapi/openapi.yaml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -21152,14 +21152,6 @@ components:
2115221152
- limit
2115321153
- reached
2115421154
type: object
21155-
CustomScriptsEditableByEnum:
21156-
description: |-
21157-
* `AD` - Administrator
21158-
* `MA` - Manager
21159-
enum:
21160-
- AD
21161-
- MA
21162-
type: string
2116321155
DatabricksExportStorage:
2116421156
properties:
2116521157
can_delete_objects:
@@ -21743,16 +21735,6 @@ components:
2174321735
format: date-time
2174421736
nullable: true
2174521737
type: string
21746-
custom_scripts_editable_by:
21747-
description: |-
21748-
Set the minimum user role that can edit custom scripts (Plugins) in the UI.
21749-
21750-
* `AD` - Administrator
21751-
* `MA` - Manager
21752-
nullable: true
21753-
oneOf:
21754-
- $ref: '#/components/schemas/CustomScriptsEditableByEnum'
21755-
- $ref: '#/components/schemas/NullEnum'
2175621738
custom_scripts_enabled_at:
2175721739
description: 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).
2175821740
format: date-time
@@ -23635,16 +23617,6 @@ components:
2363523617
format: date-time
2363623618
readOnly: true
2363723619
type: string
23638-
custom_scripts_editable_by:
23639-
description: |-
23640-
Set the minimum user role that can edit custom scripts (Plugins) in the UI.
23641-
23642-
* `AD` - Administrator
23643-
* `MA` - Manager
23644-
nullable: true
23645-
oneOf:
23646-
- $ref: '#/components/schemas/CustomScriptsEditableByEnum'
23647-
- $ref: '#/components/schemas/NullEnum'
2364823620
custom_scripts_enabled:
2364923621
readOnly: true
2365023622
type: string
@@ -28058,16 +28030,6 @@ components:
2805828030
format: date-time
2805928031
nullable: true
2806028032
type: string
28061-
custom_scripts_editable_by:
28062-
description: |-
28063-
Set the minimum user role that can edit custom scripts (Plugins) in the UI.
28064-
28065-
* `AD` - Administrator
28066-
* `MA` - Manager
28067-
nullable: true
28068-
oneOf:
28069-
- $ref: '#/components/schemas/CustomScriptsEditableByEnum'
28070-
- $ref: '#/components/schemas/NullEnum'
2807128033
custom_scripts_enabled_at:
2807228034
description: 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).
2807328035
format: date-time
@@ -28456,11 +28418,6 @@ components:
2845628418
created_by:
2845728419
nullable: true
2845828420
type: integer
28459-
custom_scripts_editable_by:
28460-
minLength: 1
28461-
nullable: true
28462-
type: string
28463-
writeOnly: true
2846428421
custom_scripts_enabled:
2846528422
nullable: true
2846628423
type: boolean

reference.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4767,14 +4767,6 @@ client.organizations.update(
47674767
<dl>
47684768
<dd>
47694769

4770-
**custom_scripts_editable_by:** `typing.Optional[str]`
4771-
4772-
</dd>
4773-
</dl>
4774-
4775-
<dl>
4776-
<dd>
4777-
47784770
**custom_scripts_enabled:** `typing.Optional[bool]`
47794771

47804772
</dd>
@@ -4907,19 +4899,6 @@ client.organizations.update_default_role(
49074899
<dl>
49084900
<dd>
49094901

4910-
**custom_scripts_editable_by:** `typing.Optional[PatchedDefaultRoleRequestCustomScriptsEditableBy]`
4911-
4912-
Set the minimum user role that can edit custom scripts (Plugins) in the UI.
4913-
4914-
* `AD` - Administrator
4915-
* `MA` - Manager
4916-
4917-
</dd>
4918-
</dl>
4919-
4920-
<dl>
4921-
<dd>
4922-
49234902
**custom_scripts_enabled_at:** `typing.Optional[dt.datetime]` — 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).
49244903

49254904
</dd>

src/label_studio_sdk/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,12 @@
4646
ConvertedFormat,
4747
ConvertedFormatRequest,
4848
CountLimit,
49-
CustomScriptsEditableByEnum,
5049
DatabricksExportStorage,
5150
DatabricksExportStorageRequest,
5251
DatabricksImportStorage,
5352
DatabricksImportStorageRequest,
5453
Default165Enum,
5554
DefaultRole,
56-
DefaultRoleCustomScriptsEditableBy,
5755
EditionEnum,
5856
Export,
5957
FileUpload,
@@ -83,7 +81,6 @@
8381
LseFieldsTrialRole,
8482
LseKeyIndicatorValue,
8583
LseOrganization,
86-
LseOrganizationCustomScriptsEditableBy,
8784
LseOrganizationMemberList,
8885
LseProject,
8986
LseProjectCounts,
@@ -304,7 +301,6 @@
304301
from .import_storage import ImportStorageListTypesResponseItem
305302
from .ml import MlCreateRequestAuthMethod, MlListModelVersionsResponse, MlUpdateRequestAuthMethod
306303
from .model_providers import ModelProvidersListModelProviderChoicesResponse
307-
from .organizations import PatchedDefaultRoleRequestCustomScriptsEditableBy
308304
from .projects import (
309305
LseProjectCreateRequestSampling,
310306
LseProjectCreateRequestSkipQueue,
@@ -421,14 +417,12 @@
421417
"ConvertedFormat",
422418
"ConvertedFormatRequest",
423419
"CountLimit",
424-
"CustomScriptsEditableByEnum",
425420
"DatabricksExportStorage",
426421
"DatabricksExportStorageRequest",
427422
"DatabricksImportStorage",
428423
"DatabricksImportStorageRequest",
429424
"Default165Enum",
430425
"DefaultRole",
431-
"DefaultRoleCustomScriptsEditableBy",
432426
"EditionEnum",
433427
"Export",
434428
"ExportStorageListTypesResponseItem",
@@ -464,7 +458,6 @@
464458
"LseFieldsTrialRole",
465459
"LseKeyIndicatorValue",
466460
"LseOrganization",
467-
"LseOrganizationCustomScriptsEditableBy",
468461
"LseOrganizationMemberList",
469462
"LseProject",
470463
"LseProjectCounts",
@@ -547,7 +540,6 @@
547540
"PaginatedProjectMember",
548541
"PaginatedProjectSubsetTasksResponseList",
549542
"PaginatedRoleBasedTaskList",
550-
"PatchedDefaultRoleRequestCustomScriptsEditableBy",
551543
"PatchedLseProjectUpdateRequestSampling",
552544
"PatchedLseProjectUpdateRequestSkipQueue",
553545
"Pause",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3-
from .types import PatchedDefaultRoleRequestCustomScriptsEditableBy
43
from . import invites, members, permissions
54

6-
__all__ = ["PatchedDefaultRoleRequestCustomScriptsEditableBy", "invites", "members", "permissions"]
5+
__all__ = ["invites", "members", "permissions"]

0 commit comments

Comments
 (0)