Skip to content

Commit 0e2d4e2

Browse files
Merge remote-tracking branch 'origin/master' into fb-ROOT-73
2 parents 676b759 + 74de937 commit 0e2d4e2

File tree

23 files changed

+1220
-115
lines changed

23 files changed

+1220
-115
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
types:
2+
BulkPostResponse:
3+
properties:
4+
assignments: optional<integer>
5+
source:
6+
openapi: openapi/openapi.yaml
7+
BulkDeleteResponse:
8+
properties:
9+
unassignments: optional<integer>
10+
source:
11+
openapi: openapi/openapi.yaml
12+
service:
13+
auth: false
14+
base-path: ''
15+
endpoints:
16+
post:
17+
path: /api/projects/{id}/members/bulk/
18+
method: POST
19+
auth: true
20+
docs: Assign project members in bulk.
21+
source:
22+
openapi: openapi/openapi.yaml
23+
path-parameters:
24+
id: integer
25+
display-name: Bulk assign project members
26+
request:
27+
name: ProjectMemberBulkAssignRequest
28+
body:
29+
properties:
30+
all: boolean
31+
excluded: optional<list<integer>>
32+
included: optional<list<integer>>
33+
content-type: application/json
34+
response:
35+
docs: ''
36+
type: BulkPostResponse
37+
examples:
38+
- path-parameters:
39+
id: 1
40+
request:
41+
all: true
42+
response:
43+
body:
44+
assignments: 1
45+
audiences:
46+
- public
47+
delete:
48+
path: /api/projects/{id}/members/bulk/
49+
method: DELETE
50+
auth: true
51+
docs: >-
52+
Unassign project members in bulk. Allows the same request body as bulk
53+
assign.
54+
source:
55+
openapi: openapi/openapi.yaml
56+
path-parameters:
57+
id: integer
58+
display-name: Bulk unassign project members
59+
response:
60+
docs: ''
61+
type: BulkDeleteResponse
62+
examples:
63+
- path-parameters:
64+
id: 1
65+
response:
66+
body:
67+
unassignments: 1
68+
audiences:
69+
- public
70+
source:
71+
openapi: openapi/openapi.yaml
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
types:
2+
BulkPostResponse:
3+
properties:
4+
assignments: optional<integer>
5+
source:
6+
openapi: openapi/openapi.yaml
7+
BulkDeleteResponse:
8+
properties:
9+
unassignments: optional<integer>
10+
source:
11+
openapi: openapi/openapi.yaml
12+
service:
13+
auth: false
14+
base-path: ''
15+
endpoints:
16+
post:
17+
path: /api/workspaces/{id}/memberships/bulk/
18+
method: POST
19+
auth: true
20+
docs: Assign workspace members in bulk.
21+
source:
22+
openapi: openapi/openapi.yaml
23+
path-parameters:
24+
id: integer
25+
display-name: Bulk assign workspace members
26+
request:
27+
name: WorkspaceMemberBulkAssignRequest
28+
body:
29+
properties:
30+
all: boolean
31+
excluded: optional<list<integer>>
32+
included: optional<list<integer>>
33+
content-type: application/json
34+
response:
35+
docs: ''
36+
type: BulkPostResponse
37+
examples:
38+
- path-parameters:
39+
id: 1
40+
request:
41+
all: true
42+
response:
43+
body:
44+
assignments: 1
45+
audiences:
46+
- public
47+
delete:
48+
path: /api/workspaces/{id}/memberships/bulk/
49+
method: DELETE
50+
auth: true
51+
docs: >-
52+
Unassign workspace members in bulk. Allows the same request body as bulk
53+
assign.
54+
source:
55+
openapi: openapi/openapi.yaml
56+
path-parameters:
57+
id: integer
58+
display-name: Bulk unassign workspace members
59+
response:
60+
docs: ''
61+
type: BulkDeleteResponse
62+
examples:
63+
- path-parameters:
64+
id: 1
65+
response:
66+
body:
67+
unassignments: 1
68+
audiences:
69+
- public
70+
source:
71+
openapi: openapi/openapi.yaml

.mock/openapi/openapi.yaml

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7287,6 +7287,81 @@ paths:
72877287
summary: Add project member
72887288
tags:
72897289
- Projects
7290+
/api/projects/{id}/members/bulk/:
7291+
delete:
7292+
description: Unassign project members in bulk. Allows the same request body as bulk assign.
7293+
operationId: api_projects_members_bulk_destroy
7294+
parameters:
7295+
- in: path
7296+
name: id
7297+
required: true
7298+
schema:
7299+
type: integer
7300+
responses:
7301+
'200':
7302+
content:
7303+
application/json:
7304+
schema:
7305+
properties:
7306+
unassignments:
7307+
type: integer
7308+
type: object
7309+
description: ''
7310+
security:
7311+
- Token: []
7312+
summary: Bulk unassign project members
7313+
tags:
7314+
- Projects
7315+
x-fern-audiences:
7316+
- public
7317+
x-fern-sdk-group-name:
7318+
- projects
7319+
- members
7320+
- bulk
7321+
x-fern-sdk-method-name: delete
7322+
post:
7323+
description: Assign project members in bulk.
7324+
operationId: api_projects_members_bulk_create
7325+
parameters:
7326+
- in: path
7327+
name: id
7328+
required: true
7329+
schema:
7330+
type: integer
7331+
requestBody:
7332+
content:
7333+
application/json:
7334+
schema:
7335+
$ref: '#/components/schemas/ProjectMemberBulkAssignRequest'
7336+
application/x-www-form-urlencoded:
7337+
schema:
7338+
$ref: '#/components/schemas/ProjectMemberBulkAssignRequest'
7339+
multipart/form-data:
7340+
schema:
7341+
$ref: '#/components/schemas/ProjectMemberBulkAssignRequest'
7342+
required: true
7343+
responses:
7344+
'200':
7345+
content:
7346+
application/json:
7347+
schema:
7348+
properties:
7349+
assignments:
7350+
type: integer
7351+
type: object
7352+
description: ''
7353+
security:
7354+
- Token: []
7355+
summary: Bulk assign project members
7356+
tags:
7357+
- Projects
7358+
x-fern-audiences:
7359+
- public
7360+
x-fern-sdk-group-name:
7361+
- projects
7362+
- members
7363+
- bulk
7364+
x-fern-sdk-method-name: post
72907365
/api/projects/{id}/members/paginated/:
72917366
get:
72927367
description: Retrieve the members for a specific project.
@@ -15500,6 +15575,81 @@ paths:
1550015575
- workspaces
1550115576
- members
1550215577
x-fern-sdk-method-name: create
15578+
/api/workspaces/{id}/memberships/bulk/:
15579+
delete:
15580+
description: Unassign workspace members in bulk. Allows the same request body as bulk assign.
15581+
operationId: api_workspaces_memberships_bulk_destroy
15582+
parameters:
15583+
- in: path
15584+
name: id
15585+
required: true
15586+
schema:
15587+
type: integer
15588+
responses:
15589+
'200':
15590+
content:
15591+
application/json:
15592+
schema:
15593+
properties:
15594+
unassignments:
15595+
type: integer
15596+
type: object
15597+
description: ''
15598+
security:
15599+
- Token: []
15600+
summary: Bulk unassign workspace members
15601+
tags:
15602+
- Workspaces
15603+
x-fern-audiences:
15604+
- public
15605+
x-fern-sdk-group-name:
15606+
- workspaces
15607+
- members
15608+
- bulk
15609+
x-fern-sdk-method-name: delete
15610+
post:
15611+
description: Assign workspace members in bulk.
15612+
operationId: api_workspaces_memberships_bulk_create
15613+
parameters:
15614+
- in: path
15615+
name: id
15616+
required: true
15617+
schema:
15618+
type: integer
15619+
requestBody:
15620+
content:
15621+
application/json:
15622+
schema:
15623+
$ref: '#/components/schemas/WorkspaceMemberBulkAssignRequest'
15624+
application/x-www-form-urlencoded:
15625+
schema:
15626+
$ref: '#/components/schemas/WorkspaceMemberBulkAssignRequest'
15627+
multipart/form-data:
15628+
schema:
15629+
$ref: '#/components/schemas/WorkspaceMemberBulkAssignRequest'
15630+
required: true
15631+
responses:
15632+
'200':
15633+
content:
15634+
application/json:
15635+
schema:
15636+
properties:
15637+
assignments:
15638+
type: integer
15639+
type: object
15640+
description: ''
15641+
security:
15642+
- Token: []
15643+
summary: Bulk assign workspace members
15644+
tags:
15645+
- Workspaces
15646+
x-fern-audiences:
15647+
- public
15648+
x-fern-sdk-group-name:
15649+
- workspaces
15650+
- members
15651+
- bulk
15652+
x-fern-sdk-method-name: post
1550315653
/api/workspaces/{id}/projects/:
1550415654
delete:
1550515655
description: Delete projects from a specific workspace.
@@ -25467,6 +25617,23 @@ components:
2546725617
required:
2546825618
- user
2546925619
type: object
25620+
ProjectMemberBulkAssignRequest:
25621+
properties:
25622+
all:
25623+
type: boolean
25624+
excluded:
25625+
items:
25626+
minimum: 1
25627+
type: integer
25628+
type: array
25629+
included:
25630+
items:
25631+
minimum: 1
25632+
type: integer
25633+
type: array
25634+
required:
25635+
- all
25636+
type: object
2547025637
ProjectMemberRequest:
2547125638
properties:
2547225639
user:
@@ -27780,6 +27947,23 @@ components:
2778027947
- id
2778127948
- title
2778227949
type: object
27950+
WorkspaceMemberBulkAssignRequest:
27951+
properties:
27952+
all:
27953+
type: boolean
27954+
excluded:
27955+
items:
27956+
minimum: 1
27957+
type: integer
27958+
type: array
27959+
included:
27960+
items:
27961+
minimum: 1
27962+
type: integer
27963+
type: array
27964+
required:
27965+
- all
27966+
type: object
2778327967
WorkspaceMemberCreate:
2778427968
properties:
2778527969
user:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "label-studio-sdk"
33

44
[tool.poetry]
55
name = "label-studio-sdk"
6-
version = "2.0.4"
6+
version = "2.0.5"
77
description = ""
88
readme = "README.md"
99
authors = []

0 commit comments

Comments
 (0)