Skip to content

Commit f1fd3b1

Browse files
release: 2.3.1-rc1 (#244)
* docs(api): updates to API spec * release: 2.3.1-rc1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent c06d110 commit f1fd3b1

File tree

12 files changed

+46
-119
lines changed

12 files changed

+46
-119
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.3.0"
2+
".": "2.3.1-rc1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 33
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-0bbaae2a69204cb3ccf6dc4fbb0cef810a4e8c78f09ac639e253e84df0add53a.yml
3-
openapi_spec_hash: 0a9be554ca3af860e3831bd776e50f56
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-9e04c6a51c55704029c529f2917d0e2b976cb7b6595128697db031ad7bd61a63.yml
3+
openapi_spec_hash: e8a95522dd13ffe4633cccc34bbd651d
44
config_hash: 7a38bab086b53b43d2a719cb4d883264

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 2.3.1-rc1 (2025-08-19)
4+
5+
Full Changelog: [v2.3.0...v2.3.1-rc1](https://github.com/writer/writer-python/compare/v2.3.0...v2.3.1-rc1)
6+
7+
### Documentation
8+
9+
* **api:** updates to API spec ([8f5acc8](https://github.com/writer/writer-python/commit/8f5acc859cef51375ed2abf641c7087a36d26e02))
10+
311
## 2.3.0 (2025-08-14)
412

513
Full Changelog: [v2.3.0-rc1...v2.3.0](https://github.com/writer/writer-python/compare/v2.3.0-rc1...v2.3.0)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To install the package from PyPI, use `pip`:
1919

2020
```sh
2121
# install from PyPI
22-
pip install writer-sdk
22+
pip install --pre writer-sdk
2323
```
2424

2525
## Prequisites
@@ -116,7 +116,7 @@ You can enable this by installing `aiohttp`:
116116

117117
```sh
118118
# install from PyPI
119-
pip install writer-sdk[aiohttp]
119+
pip install --pre writer-sdk[aiohttp]
120120
```
121121

122122
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:

api.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ from writerai.types import (
123123
Question,
124124
QuestionResponseChunk,
125125
GraphCreateResponse,
126-
GraphRetrieveResponse,
127126
GraphUpdateResponse,
128-
GraphListResponse,
129127
GraphDeleteResponse,
130128
GraphRemoveFileFromGraphResponse,
131129
)
@@ -134,9 +132,9 @@ from writerai.types import (
134132
Methods:
135133

136134
- <code title="post /v1/graphs">client.graphs.<a href="./src/writerai/resources/graphs.py">create</a>(\*\*<a href="src/writerai/types/graph_create_params.py">params</a>) -> <a href="./src/writerai/types/graph_create_response.py">GraphCreateResponse</a></code>
137-
- <code title="get /v1/graphs/{graph_id}">client.graphs.<a href="./src/writerai/resources/graphs.py">retrieve</a>(graph_id) -> <a href="./src/writerai/types/graph_retrieve_response.py">GraphRetrieveResponse</a></code>
135+
- <code title="get /v1/graphs/{graph_id}">client.graphs.<a href="./src/writerai/resources/graphs.py">retrieve</a>(graph_id) -> <a href="./src/writerai/types/graph.py">Graph</a></code>
138136
- <code title="put /v1/graphs/{graph_id}">client.graphs.<a href="./src/writerai/resources/graphs.py">update</a>(graph_id, \*\*<a href="src/writerai/types/graph_update_params.py">params</a>) -> <a href="./src/writerai/types/graph_update_response.py">GraphUpdateResponse</a></code>
139-
- <code title="get /v1/graphs">client.graphs.<a href="./src/writerai/resources/graphs.py">list</a>(\*\*<a href="src/writerai/types/graph_list_params.py">params</a>) -> <a href="./src/writerai/types/graph_list_response.py">SyncCursorPage[GraphListResponse]</a></code>
137+
- <code title="get /v1/graphs">client.graphs.<a href="./src/writerai/resources/graphs.py">list</a>(\*\*<a href="src/writerai/types/graph_list_params.py">params</a>) -> <a href="./src/writerai/types/graph.py">SyncCursorPage[Graph]</a></code>
140138
- <code title="delete /v1/graphs/{graph_id}">client.graphs.<a href="./src/writerai/resources/graphs.py">delete</a>(graph_id) -> <a href="./src/writerai/types/graph_delete_response.py">GraphDeleteResponse</a></code>
141139
- <code title="post /v1/graphs/{graph_id}/file">client.graphs.<a href="./src/writerai/resources/graphs.py">add_file_to_graph</a>(graph_id, \*\*<a href="src/writerai/types/graph_add_file_to_graph_params.py">params</a>) -> <a href="./src/writerai/types/file.py">File</a></code>
142140
- <code title="post /v1/graphs/question">client.graphs.<a href="./src/writerai/resources/graphs.py">question</a>(\*\*<a href="src/writerai/types/graph_question_params.py">params</a>) -> <a href="./src/writerai/types/question.py">Question</a></code>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "writer-sdk"
3-
version = "2.3.0"
3+
version = "2.3.1-rc1"
44
description = "The official Python library for the writer API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/writerai/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "writerai"
4-
__version__ = "2.3.0" # x-release-please-version
4+
__version__ = "2.3.1-rc1" # x-release-please-version

src/writerai/resources/graphs.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@
2727
from .._streaming import Stream, AsyncStream
2828
from ..pagination import SyncCursorPage, AsyncCursorPage
2929
from ..types.file import File
30+
from ..types.graph import Graph
3031
from .._base_client import AsyncPaginator, make_request_options
3132
from ..types.question import Question
32-
from ..types.graph_list_response import GraphListResponse
3333
from ..types.graph_create_response import GraphCreateResponse
3434
from ..types.graph_delete_response import GraphDeleteResponse
3535
from ..types.graph_update_response import GraphUpdateResponse
36-
from ..types.graph_retrieve_response import GraphRetrieveResponse
3736
from ..types.question_response_chunk import QuestionResponseChunk
3837
from ..types.graph_remove_file_from_graph_response import GraphRemoveFileFromGraphResponse
3938

@@ -115,7 +114,7 @@ def retrieve(
115114
extra_query: Query | None = None,
116115
extra_body: Body | None = None,
117116
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
118-
) -> GraphRetrieveResponse:
117+
) -> Graph:
119118
"""
120119
Retrieve a Knowledge Graph.
121120
@@ -135,7 +134,7 @@ def retrieve(
135134
options=make_request_options(
136135
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
137136
),
138-
cast_to=GraphRetrieveResponse,
137+
cast_to=Graph,
139138
)
140139

141140
def update(
@@ -205,7 +204,7 @@ def list(
205204
extra_query: Query | None = None,
206205
extra_body: Body | None = None,
207206
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
208-
) -> SyncCursorPage[GraphListResponse]:
207+
) -> SyncCursorPage[Graph]:
209208
"""
210209
Retrieve a list of Knowledge Graphs.
211210
@@ -232,7 +231,7 @@ def list(
232231
"""
233232
return self._get_api_list(
234233
"/v1/graphs",
235-
page=SyncCursorPage[GraphListResponse],
234+
page=SyncCursorPage[Graph],
236235
options=make_request_options(
237236
extra_headers=extra_headers,
238237
extra_query=extra_query,
@@ -248,7 +247,7 @@ def list(
248247
graph_list_params.GraphListParams,
249248
),
250249
),
251-
model=GraphListResponse,
250+
model=Graph,
252251
)
253252

254253
def delete(
@@ -620,7 +619,7 @@ async def retrieve(
620619
extra_query: Query | None = None,
621620
extra_body: Body | None = None,
622621
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
623-
) -> GraphRetrieveResponse:
622+
) -> Graph:
624623
"""
625624
Retrieve a Knowledge Graph.
626625
@@ -640,7 +639,7 @@ async def retrieve(
640639
options=make_request_options(
641640
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
642641
),
643-
cast_to=GraphRetrieveResponse,
642+
cast_to=Graph,
644643
)
645644

646645
async def update(
@@ -710,7 +709,7 @@ def list(
710709
extra_query: Query | None = None,
711710
extra_body: Body | None = None,
712711
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
713-
) -> AsyncPaginator[GraphListResponse, AsyncCursorPage[GraphListResponse]]:
712+
) -> AsyncPaginator[Graph, AsyncCursorPage[Graph]]:
714713
"""
715714
Retrieve a list of Knowledge Graphs.
716715
@@ -737,7 +736,7 @@ def list(
737736
"""
738737
return self._get_api_list(
739738
"/v1/graphs",
740-
page=AsyncCursorPage[GraphListResponse],
739+
page=AsyncCursorPage[Graph],
741740
options=make_request_options(
742741
extra_headers=extra_headers,
743742
extra_query=extra_query,
@@ -753,7 +752,7 @@ def list(
753752
graph_list_params.GraphListParams,
754753
),
755754
),
756-
model=GraphListResponse,
755+
model=Graph,
757756
)
758757

759758
async def delete(

src/writerai/types/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
from .file import File as File
6+
from .graph import Graph as Graph
67
from .shared import (
78
Source as Source,
89
Logprobs as Logprobs,
@@ -30,7 +31,6 @@
3031
from .file_upload_params import FileUploadParams as FileUploadParams
3132
from .file_retry_response import FileRetryResponse as FileRetryResponse
3233
from .graph_create_params import GraphCreateParams as GraphCreateParams
33-
from .graph_list_response import GraphListResponse as GraphListResponse
3434
from .graph_update_params import GraphUpdateParams as GraphUpdateParams
3535
from .model_list_response import ModelListResponse as ModelListResponse
3636
from .file_delete_response import FileDeleteResponse as FileDeleteResponse
@@ -48,7 +48,6 @@
4848
from .tool_web_search_params import ToolWebSearchParams as ToolWebSearchParams
4949
from .application_list_params import ApplicationListParams as ApplicationListParams
5050
from .chat_completion_message import ChatCompletionMessage as ChatCompletionMessage
51-
from .graph_retrieve_response import GraphRetrieveResponse as GraphRetrieveResponse
5251
from .question_response_chunk import QuestionResponseChunk as QuestionResponseChunk
5352
from .tool_ai_detect_response import ToolAIDetectResponse as ToolAIDetectResponse
5453
from .tool_parse_pdf_response import ToolParsePdfResponse as ToolParsePdfResponse
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from .._models import BaseModel
88

9-
__all__ = ["GraphListResponse", "FileStatus", "URL", "URLStatus"]
9+
__all__ = ["Graph", "FileStatus", "URL", "URLStatus"]
1010

1111

1212
class FileStatus(BaseModel):
@@ -47,7 +47,7 @@ class URL(BaseModel):
4747
"""An array of URLs to exclude from processing within this web connector."""
4848

4949

50-
class GraphListResponse(BaseModel):
50+
class Graph(BaseModel):
5151
id: str
5252
"""The unique identifier of the Knowledge Graph."""
5353

0 commit comments

Comments
 (0)