Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Nov 4, 2024
1 parent 174bc8b commit 90023e4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,13 @@ types:
- map<string, unknown>
source:
openapi: openapi/openapi.yaml
TaskCommentAuthorsItem:
discriminated: false
union:
- integer
- map<string, unknown>
source:
openapi: openapi/openapi.yaml
Task:
properties:
id:
Expand Down Expand Up @@ -2101,8 +2108,8 @@ types:
type: optional<integer>
docs: Project ID for this task
comment_authors:
type: optional<list<integer>>
docs: List of comment authors' IDs for this task
type: optional<list<TaskCommentAuthorsItem>>
docs: List of comment authors for this task
source:
openapi: openapi/openapi.yaml
Workspace:
Expand Down
2 changes: 2 additions & 0 deletions src/label_studio_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
SerializationOptions,
Task,
TaskAnnotatorsItem,
TaskCommentAuthorsItem,
TaskFilterOptions,
UserSimple,
View,
Expand Down Expand Up @@ -292,6 +293,7 @@
"SerializationOptions",
"Task",
"TaskAnnotatorsItem",
"TaskCommentAuthorsItem",
"TaskFilterOptions",
"TasksListRequestFields",
"TasksListResponse",
Expand Down
2 changes: 2 additions & 0 deletions src/label_studio_sdk/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
from .serialization_options import SerializationOptions
from .task import Task
from .task_annotators_item import TaskAnnotatorsItem
from .task_comment_authors_item import TaskCommentAuthorsItem
from .task_filter_options import TaskFilterOptions
from .user_simple import UserSimple
from .view import View
Expand Down Expand Up @@ -184,6 +185,7 @@
"SerializationOptions",
"Task",
"TaskAnnotatorsItem",
"TaskCommentAuthorsItem",
"TaskFilterOptions",
"UserSimple",
"View",
Expand Down
5 changes: 3 additions & 2 deletions src/label_studio_sdk/types/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
from .task_annotators_item import TaskAnnotatorsItem
from .task_comment_authors_item import TaskCommentAuthorsItem


class Task(pydantic_v1.BaseModel):
Expand Down Expand Up @@ -134,9 +135,9 @@ class Task(pydantic_v1.BaseModel):
Project ID for this task
"""

comment_authors: typing.Optional[typing.List[int]] = pydantic_v1.Field(default=None)
comment_authors: typing.Optional[typing.List[TaskCommentAuthorsItem]] = pydantic_v1.Field(default=None)
"""
List of comment authors' IDs for this task
List of comment authors for this task
"""

def json(self, **kwargs: typing.Any) -> str:
Expand Down
5 changes: 5 additions & 0 deletions src/label_studio_sdk/types/task_comment_authors_item.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

TaskCommentAuthorsItem = typing.Union[int, typing.Dict[str, typing.Any]]

0 comments on commit 90023e4

Please sign in to comment.