Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 44 additions & 4 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5151,6 +5151,14 @@ types:
type: list<map<string, unknown>>
source:
openapi: openapi/openapi.yaml
LseUserActiveOrganizationMeta:
docs: Active organization metadata
properties:
email: string
title: string
source:
openapi: openapi/openapi.yaml
inline: true
LseUser:
docs: |-
A ModelSerializer that takes additional arguments for
Expand All @@ -5159,7 +5167,9 @@ types:
values with complex, nested serializations
properties:
active_organization: optional<integer>
active_organization_meta: string
active_organization_meta:
type: LseUserActiveOrganizationMeta
docs: Active organization metadata
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
Expand Down Expand Up @@ -5197,6 +5207,14 @@ types:
maxLength: 256
source:
openapi: openapi/openapi.yaml
LseUserApiActiveOrganizationMeta:
docs: Active organization metadata
properties:
email: string
title: string
source:
openapi: openapi/openapi.yaml
inline: true
LseUserApi:
docs: |-
A ModelSerializer that takes additional arguments for
Expand All @@ -5205,7 +5223,9 @@ types:
values with complex, nested serializations
properties:
active_organization: optional<integer>
active_organization_meta: string
active_organization_meta:
type: LseUserApiActiveOrganizationMeta
docs: Active organization metadata
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
Expand Down Expand Up @@ -5824,6 +5844,14 @@ types:
results: list<PaginatedProjectMember>
source:
openapi: openapi/openapi.yaml
PaginatedProjectMemberActiveOrganizationMeta:
docs: Active organization metadata
properties:
email: string
title: string
source:
openapi: openapi/openapi.yaml
inline: true
PaginatedProjectMember:
docs: |-
A ModelSerializer that takes additional arguments for
Expand All @@ -5832,7 +5860,9 @@ types:
values with complex, nested serializations
properties:
active_organization: optional<integer>
active_organization_meta: string
active_organization_meta:
type: PaginatedProjectMemberActiveOrganizationMeta
docs: Active organization metadata
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
Expand Down Expand Up @@ -7890,6 +7920,14 @@ types:
trial_role: optional<WhoAmILseFieldsTrialRole>
source:
openapi: openapi/openapi.yaml
WhoAmIUserActiveOrganizationMeta:
docs: Active organization metadata
properties:
email: string
title: string
source:
openapi: openapi/openapi.yaml
inline: true
WhoAmIUser:
docs: |-
A ModelSerializer that takes additional arguments for
Expand All @@ -7898,7 +7936,9 @@ types:
values with complex, nested serializations
properties:
active_organization: optional<integer>
active_organization_meta: string
active_organization_meta:
type: WhoAmIUserActiveOrganizationMeta
docs: Active organization metadata
allow_newsletters:
type: optional<boolean>
docs: Allow sending newsletters to user
Expand Down
4 changes: 3 additions & 1 deletion .mock/definition/projects/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ service:
response:
body:
- active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down
4 changes: 3 additions & 1 deletion .mock/definition/projects/members/paginated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ service:
previous: http://api.example.org/accounts/?page=2
results:
- active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down
34 changes: 25 additions & 9 deletions .mock/definition/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ service:
- response:
body:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down Expand Up @@ -93,7 +95,9 @@ service:
response:
body:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down Expand Up @@ -194,18 +198,22 @@ service:
path: /api/current-user/whoami
method: GET
auth: true
docs: Retrieve details of the account that you are using to access the API.
docs: >-
Make the whoami call on behalf of the user you are using to access the
API.
source:
openapi: openapi/openapi.yaml
display-name: Retrieve my user
display-name: Whoami for current user
response:
docs: ''
type: root.WhoAmIUser
examples:
- response:
body:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down Expand Up @@ -262,7 +270,9 @@ service:
- response:
body:
- active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down Expand Up @@ -330,7 +340,9 @@ service:
response:
body:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down Expand Up @@ -386,7 +398,9 @@ service:
response:
body:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down Expand Up @@ -503,7 +517,9 @@ service:
response:
body:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down
4 changes: 3 additions & 1 deletion .mock/definition/workspaces/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ service:
body:
- user:
active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down
4 changes: 3 additions & 1 deletion .mock/definition/workspaces/members/paginated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ service:
previous: http://api.example.org/accounts/?page=2
results:
- active_organization: 1
active_organization_meta: active_organization_meta
active_organization_meta:
email: email
title: title
allow_newsletters: true
avatar: avatar
custom_hotkeys:
Expand Down
48 changes: 42 additions & 6 deletions .mock/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ paths:
x-fern-sdk-method-name: get_token
/api/current-user/whoami:
get:
description: Retrieve details of the account that you are using to access the API.
description: Make the whoami call on behalf of the user you are using to access the API.
operationId: api_current_user_whoami_retrieve
responses:
'200':
Expand All @@ -1354,7 +1354,7 @@ paths:
description: ''
security:
- Token: []
summary: Retrieve my user
summary: Whoami for current user
tags:
- Users
x-fern-audiences:
Expand Down Expand Up @@ -23795,8 +23795,17 @@ components:
nullable: true
type: integer
active_organization_meta:
description: Active organization metadata
properties:
email:
type: string
title:
type: string
readOnly: true
type: string
required:
- email
- title
type: object
allow_newsletters:
description: Allow sending newsletters to user
nullable: true
Expand Down Expand Up @@ -23872,8 +23881,17 @@ components:
nullable: true
type: integer
active_organization_meta:
description: Active organization metadata
properties:
email:
type: string
title:
type: string
readOnly: true
type: string
required:
- email
- title
type: object
allow_newsletters:
description: Allow sending newsletters to user
nullable: true
Expand Down Expand Up @@ -24907,8 +24925,17 @@ components:
nullable: true
type: integer
active_organization_meta:
description: Active organization metadata
properties:
email:
type: string
title:
type: string
readOnly: true
type: string
required:
- email
- title
type: object
allow_newsletters:
description: Allow sending newsletters to user
nullable: true
Expand Down Expand Up @@ -29738,8 +29765,17 @@ components:
nullable: true
type: integer
active_organization_meta:
description: Active organization metadata
properties:
email:
type: string
title:
type: string
readOnly: true
type: string
required:
- email
- title
type: object
allow_newsletters:
description: Allow sending newsletters to user
nullable: true
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "label-studio-sdk"

[tool.poetry]
name = "label-studio-sdk"
version = "2.0.8.dev"
version = "2.0.8"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2841,7 +2841,7 @@ client.users.get_token()
<dl>
<dd>

Retrieve details of the account that you are using to access the API.
Make the whoami call on behalf of the user you are using to access the API.
</dd>
</dl>
</dd>
Expand Down
Loading
Loading