Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #10

Merged
merged 1 commit into from
May 14, 2024
Merged
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
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Methods:
Types:

```python
from structify.types.admin import UserNode, UserListResponse
from structify.types.admin import User, UserListResponse
```

Methods:
Expand All @@ -31,8 +31,8 @@ Types:

```python
from structify.types import (
Dataset,
DatasetDescriptor,
DatasetNode,
KgEntity,
DatasetListResponse,
DatasetViewResponse,
Expand Down
2 changes: 1 addition & 1 deletion src/structify/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from __future__ import annotations

from .source import Source as Source
from .dataset import Dataset as Dataset
from .kg_entity import KgEntity as KgEntity
from .new_token import NewToken as NewToken
from .user_info import UserInfo as UserInfo
from .dataset_node import DatasetNode as DatasetNode
from .run_list_response import RunListResponse as RunListResponse
from .dataset_descriptor import DatasetDescriptor as DatasetDescriptor
from .source_list_params import SourceListParams as SourceListParams
Expand Down
2 changes: 1 addition & 1 deletion src/structify/types/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

from __future__ import annotations

from .user_node import UserNode as UserNode
from .user import User as User
from .user_list_response import UserListResponse as UserListResponse
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from ..._models import BaseModel

__all__ = ["UserNode"]
__all__ = ["User"]


class UserNode(BaseModel):
class User(BaseModel):
email: str

user_type: Optional[Literal["Admin", "Public", "EndUser"]] = None
4 changes: 2 additions & 2 deletions src/structify/types/admin/user_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from typing import List

from .user_node import UserNode
from .user import User

__all__ = ["UserListResponse"]

UserListResponse = List[UserNode]
UserListResponse = List[User]
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

from .._models import BaseModel

__all__ = ["DatasetNode"]
__all__ = ["Dataset"]


class DatasetNode(BaseModel):
class Dataset(BaseModel):
description: str

name: str
4 changes: 2 additions & 2 deletions src/structify/types/dataset_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from typing import List

from .dataset_node import DatasetNode
from .dataset import Dataset

__all__ = ["DatasetListResponse"]

DatasetListResponse = List[DatasetNode]
DatasetListResponse = List[Dataset]