11
11
from ..errors .internal_server_error import InternalServerError
12
12
from ..types .add_triple_response import AddTripleResponse
13
13
from ..types .api_error import ApiError as types_api_error_ApiError
14
+ from ..types .episode import Episode
14
15
from ..types .graph_data_type import GraphDataType
15
16
from ..types .graph_search_results import GraphSearchResults
16
17
from ..types .graph_search_scope import GraphSearchScope
17
18
from ..types .reranker import Reranker
18
19
from ..types .search_filters import SearchFilters
19
- from ..types .success_response import SuccessResponse
20
20
from .edge .client import AsyncEdgeClient , EdgeClient
21
21
from .episode .client import AsyncEpisodeClient , EpisodeClient
22
22
from .node .client import AsyncNodeClient , NodeClient
@@ -40,7 +40,7 @@ def add(
40
40
type : typing .Optional [GraphDataType ] = OMIT ,
41
41
user_id : typing .Optional [str ] = OMIT ,
42
42
request_options : typing .Optional [RequestOptions ] = None
43
- ) -> SuccessResponse :
43
+ ) -> Episode :
44
44
"""
45
45
Add data to the graph. Note: each subscription tier has different limits on the amount of data that can be added to the graph please refer to the pricing page for more information.
46
46
@@ -59,8 +59,8 @@ def add(
59
59
60
60
Returns
61
61
-------
62
- SuccessResponse
63
- Data added
62
+ Episode
63
+ Added episode
64
64
65
65
Examples
66
66
--------
@@ -80,7 +80,7 @@ def add(
80
80
)
81
81
try :
82
82
if 200 <= _response .status_code < 300 :
83
- return pydantic_v1 .parse_obj_as (SuccessResponse , _response .json ()) # type: ignore
83
+ return pydantic_v1 .parse_obj_as (Episode , _response .json ()) # type: ignore
84
84
if _response .status_code == 400 :
85
85
raise BadRequestError (
86
86
pydantic_v1 .parse_obj_as (types_api_error_ApiError , _response .json ()) # type: ignore
@@ -341,7 +341,7 @@ async def add(
341
341
type : typing .Optional [GraphDataType ] = OMIT ,
342
342
user_id : typing .Optional [str ] = OMIT ,
343
343
request_options : typing .Optional [RequestOptions ] = None
344
- ) -> SuccessResponse :
344
+ ) -> Episode :
345
345
"""
346
346
Add data to the graph. Note: each subscription tier has different limits on the amount of data that can be added to the graph please refer to the pricing page for more information.
347
347
@@ -360,8 +360,8 @@ async def add(
360
360
361
361
Returns
362
362
-------
363
- SuccessResponse
364
- Data added
363
+ Episode
364
+ Added episode
365
365
366
366
Examples
367
367
--------
@@ -389,7 +389,7 @@ async def main() -> None:
389
389
)
390
390
try :
391
391
if 200 <= _response .status_code < 300 :
392
- return pydantic_v1 .parse_obj_as (SuccessResponse , _response .json ()) # type: ignore
392
+ return pydantic_v1 .parse_obj_as (Episode , _response .json ()) # type: ignore
393
393
if _response .status_code == 400 :
394
394
raise BadRequestError (
395
395
pydantic_v1 .parse_obj_as (types_api_error_ApiError , _response .json ()) # type: ignore
0 commit comments