Skip to content

Commit

Permalink
feat(api): api update (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 13, 2024
1 parent 721ca3c commit c4b740b
Show file tree
Hide file tree
Showing 22 changed files with 97 additions and 237 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 69
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-7a4719ea1b0b0e031b16d315cd89ee4975303e2f314d6613ee5b7f12ecb5b5d8.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-117723686aeff4cac611ae597d0171cdc7390f3ef2c677e8b9ed8b517f1e83e5.yml
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ Types:
from structify.types import (
DatasetDescriptor,
Entity,
Image,
KnowledgeGraph,
PropertyType,
Relationship,
Expand Down
2 changes: 2 additions & 0 deletions src/structify/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

from __future__ import annotations

from .image import Image as Image
from .table import Table as Table
from .entity import Entity as Entity
from .source import Source as Source
from .user_info import UserInfo as UserInfo
from .chat_prompt import ChatPrompt as ChatPrompt
from .image_param import ImageParam as ImageParam
from .table_param import TableParam as TableParam
from .entity_param import EntityParam as EntityParam
from .relationship import Relationship as Relationship
Expand Down
14 changes: 4 additions & 10 deletions src/structify/types/dataset_match_response.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Union, Optional
from typing import Dict, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = ["DatasetMatchResponse", "Entity", "EntityProperties", "EntityPropertiesImage"]
__all__ = ["DatasetMatchResponse", "Entity", "EntityProperties"]


class EntityPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


EntityProperties: TypeAlias = Union[str, bool, float, EntityPropertiesImage]
EntityProperties: TypeAlias = Union[str, bool, float, Image]


class Entity(BaseModel):
Expand Down
14 changes: 4 additions & 10 deletions src/structify/types/dataset_view_relationships_response.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Union, Optional
from typing import Dict, Union
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = ["DatasetViewRelationshipsResponse", "Properties", "PropertiesImage"]
__all__ = ["DatasetViewRelationshipsResponse", "Properties"]


class PropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


Properties: TypeAlias = Union[str, bool, float, PropertiesImage]
Properties: TypeAlias = Union[str, bool, float, Image]


class DatasetViewRelationshipsResponse(BaseModel):
Expand Down
14 changes: 4 additions & 10 deletions src/structify/types/dataset_view_table_response.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Union, Optional
from typing import Dict, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = ["DatasetViewTableResponse", "Properties", "PropertiesImage"]
__all__ = ["DatasetViewTableResponse", "Properties"]


class PropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


Properties: TypeAlias = Union[str, bool, float, PropertiesImage]
Properties: TypeAlias = Union[str, bool, float, Image]


class DatasetViewTableResponse(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, List, Union, Optional
from typing import Dict, List, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = [
"DatasetViewTablesWithRelationshipsResponse",
"ConnectedEntity",
"ConnectedEntityProperties",
"ConnectedEntityPropertiesImage",
"Entity",
"EntityProperties",
"EntityPropertiesImage",
"Relationship",
"RelationshipProperties",
"RelationshipPropertiesImage",
]


class ConnectedEntityPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


ConnectedEntityProperties: TypeAlias = Union[str, bool, float, ConnectedEntityPropertiesImage]
ConnectedEntityProperties: TypeAlias = Union[str, bool, float, Image]


class ConnectedEntity(BaseModel):
Expand All @@ -39,13 +30,7 @@ class ConnectedEntity(BaseModel):
properties: Dict[str, ConnectedEntityProperties]


class EntityPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


EntityProperties: TypeAlias = Union[str, bool, float, EntityPropertiesImage]
EntityProperties: TypeAlias = Union[str, bool, float, Image]


class Entity(BaseModel):
Expand All @@ -58,13 +43,7 @@ class Entity(BaseModel):
properties: Dict[str, EntityProperties]


class RelationshipPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


RelationshipProperties: TypeAlias = Union[str, bool, float, RelationshipPropertiesImage]
RelationshipProperties: TypeAlias = Union[str, bool, float, Image]


class Relationship(BaseModel):
Expand Down
14 changes: 4 additions & 10 deletions src/structify/types/entity.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Union, Optional
from typing import Dict, Union
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = ["Entity", "Properties", "PropertiesImage"]
__all__ = ["Entity", "Properties"]


class PropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


Properties: TypeAlias = Union[str, bool, float, PropertiesImage]
Properties: TypeAlias = Union[str, bool, float, Image]


class Entity(BaseModel):
Expand Down
30 changes: 5 additions & 25 deletions src/structify/types/entity_get_local_subgraph_response.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, List, Union, Optional
from typing import Dict, List, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = [
"EntityGetLocalSubgraphResponse",
"Neighbor",
"NeighborProperties",
"NeighborPropertiesImage",
"Relationship",
"RelationshipProperties",
"RelationshipPropertiesImage",
]
__all__ = ["EntityGetLocalSubgraphResponse", "Neighbor", "NeighborProperties", "Relationship", "RelationshipProperties"]


class NeighborPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


NeighborProperties: TypeAlias = Union[str, bool, float, NeighborPropertiesImage]
NeighborProperties: TypeAlias = Union[str, bool, float, Image]


class Neighbor(BaseModel):
Expand All @@ -36,13 +22,7 @@ class Neighbor(BaseModel):
properties: Dict[str, NeighborProperties]


class RelationshipPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


RelationshipProperties: TypeAlias = Union[str, bool, float, RelationshipPropertiesImage]
RelationshipProperties: TypeAlias = Union[str, bool, float, Image]


class Relationship(BaseModel):
Expand Down
14 changes: 4 additions & 10 deletions src/structify/types/entity_get_response.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Union, Optional
from typing import Dict, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = ["EntityGetResponse", "Properties", "PropertiesImage"]
__all__ = ["EntityGetResponse", "Properties"]


class PropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


Properties: TypeAlias = Union[str, bool, float, PropertiesImage]
Properties: TypeAlias = Union[str, bool, float, Image]


class EntityGetResponse(BaseModel):
Expand Down
13 changes: 3 additions & 10 deletions src/structify/types/entity_get_source_entities_response.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, List, Union, Optional
from typing import Dict, List, Union
from datetime import datetime
from typing_extensions import Literal, TypeAlias

from pydantic import Field as FieldInfo

from .image import Image
from .source import Source
from .._models import BaseModel

Expand All @@ -20,7 +21,6 @@
"SourceEntityLocationPage",
"SourceEntityLocationPagePage",
"SourceEntityProperties",
"SourceEntityPropertiesImage",
]


Expand Down Expand Up @@ -54,14 +54,7 @@ class SourceEntityLocationPage(BaseModel):
SourceEntityLocationText, SourceEntityLocationVisual, SourceEntityLocationPage, Literal["None"]
]


class SourceEntityPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


SourceEntityProperties: TypeAlias = Union[str, bool, float, SourceEntityPropertiesImage]
SourceEntityProperties: TypeAlias = Union[str, bool, float, Image]


class SourceEntity(BaseModel):
Expand Down
14 changes: 4 additions & 10 deletions src/structify/types/entity_merge_response.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Union, Optional
from typing import Dict, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = ["EntityMergeResponse", "Properties", "PropertiesImage"]
__all__ = ["EntityMergeResponse", "Properties"]


class PropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


Properties: TypeAlias = Union[str, bool, float, PropertiesImage]
Properties: TypeAlias = Union[str, bool, float, Image]


class EntityMergeResponse(BaseModel):
Expand Down
11 changes: 3 additions & 8 deletions src/structify/types/entity_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@
from typing import Dict, Union
from typing_extensions import Required, TypeAlias, TypedDict

__all__ = ["EntityParam", "Properties", "PropertiesImage"]
from .image_param import ImageParam

__all__ = ["EntityParam", "Properties"]

class PropertiesImage(TypedDict, total=False):
number: Required[int]

hash: str


Properties: TypeAlias = Union[str, bool, float, PropertiesImage]
Properties: TypeAlias = Union[str, bool, float, ImageParam]


class EntityParam(TypedDict, total=False):
Expand Down
19 changes: 4 additions & 15 deletions src/structify/types/entity_search_response.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, List, Union, Optional
from typing import Dict, List, Union
from datetime import datetime
from typing_extensions import TypeAlias

from .image import Image
from .._models import BaseModel

__all__ = [
"EntitySearchResponse",
"EntitySearchResponseItem",
"EntitySearchResponseItemProperties",
"EntitySearchResponseItemPropertiesImage",
]
__all__ = ["EntitySearchResponse", "EntitySearchResponseItem", "EntitySearchResponseItemProperties"]


class EntitySearchResponseItemPropertiesImage(BaseModel):
number: int

hash: Optional[str] = None


EntitySearchResponseItemProperties: TypeAlias = Union[str, bool, float, EntitySearchResponseItemPropertiesImage]
EntitySearchResponseItemProperties: TypeAlias = Union[str, bool, float, Image]


class EntitySearchResponseItem(BaseModel):
Expand Down
Loading

0 comments on commit c4b740b

Please sign in to comment.