Skip to content

Commit 62a9d3e

Browse files
release: 2.3.1 (#232)
* chore(deps): update dependency @types/node to v20.17.58 * chore(internal): formatting change * docs(api): updates to API spec * feat(mcp): add code execution tool * release: 2.3.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 75e720a commit 62a9d3e

12 files changed

Lines changed: 62 additions & 271 deletions

File tree

.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"
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 2.3.1 (2025-08-20)
4+
5+
Full Changelog: [v2.3.0...v2.3.1](https://github.com/writer/writer-node/compare/v2.3.0...v2.3.1)
6+
7+
### Features
8+
9+
* **mcp:** add code execution tool ([60d2199](https://github.com/writer/writer-node/commit/60d2199699860fc8f097aaef42532ff8909a9c3e))
10+
11+
12+
### Chores
13+
14+
* **deps:** update dependency @types/node to v20.17.58 ([1ca2721](https://github.com/writer/writer-node/commit/1ca272112136ba548436cd7f53b434085adfa666))
15+
* **internal:** formatting change ([9608032](https://github.com/writer/writer-node/commit/96080320291757f3329f2df80013a288c8852744))
16+
17+
18+
### Documentation
19+
20+
* **api:** updates to API spec ([e03824e](https://github.com/writer/writer-node/commit/e03824e52002a27e1c40b836274934c979c1625b))
21+
322
## 2.3.0 (2025-08-14)
423

524
Full Changelog: [v2.3.0-rc.1...v2.3.0](https://github.com/writer/writer-node/compare/v2.3.0-rc.1...v2.3.0)

MIGRATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ The `for await` syntax **is not affected**. This still works as-is:
253253

254254
```ts
255255
// Automatically fetches more pages as needed.
256-
for await (const graphListResponse of client.graphs.list()) {
257-
console.log(graphListResponse);
256+
for await (const graph of client.graphs.list()) {
257+
console.log(graph);
258258
}
259259
```
260260

@@ -276,10 +276,10 @@ Page classes for individual methods are now type aliases:
276276

277277
```ts
278278
// Before
279-
export class GraphListResponsesCursorPage extends CursorPage<GraphListResponse> {}
279+
export class GraphsCursorPage extends CursorPage<Graph> {}
280280

281281
// After
282-
export type GraphListResponsesCursorPage = CursorPage<GraphListResponse>;
282+
export type GraphsCursorPage = CursorPage<Graph>;
283283
```
284284

285285
If you were importing these classes at runtime, you'll need to switch to importing the base class or only import them at the type-level.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,22 +283,22 @@ List methods in the Writer API are paginated.
283283
You can use the `for await … of` syntax to iterate through items across all pages:
284284

285285
```ts
286-
async function fetchAllGraphListResponses(params) {
287-
const allGraphListResponses = [];
286+
async function fetchAllGraphs(params) {
287+
const allGraphs = [];
288288
// Automatically fetches more pages as needed.
289-
for await (const graphListResponse of client.graphs.list()) {
290-
allGraphListResponses.push(graphListResponse);
289+
for await (const graph of client.graphs.list()) {
290+
allGraphs.push(graph);
291291
}
292-
return allGraphListResponses;
292+
return allGraphs;
293293
}
294294
```
295295

296296
Alternatively, you can request a single page at a time:
297297

298298
```ts
299299
let page = await client.graphs.list();
300-
for (const graphListResponse of page.data) {
301-
console.log(graphListResponse);
300+
for (const graph of page.data) {
301+
console.log(graph);
302302
}
303303

304304
// Convenience methods are provided for manually paginating:

api.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,16 @@ Types:
103103
- <code><a href="./src/resources/graphs.ts">Question</a></code>
104104
- <code><a href="./src/resources/graphs.ts">QuestionResponseChunk</a></code>
105105
- <code><a href="./src/resources/graphs.ts">GraphCreateResponse</a></code>
106-
- <code><a href="./src/resources/graphs.ts">GraphRetrieveResponse</a></code>
107106
- <code><a href="./src/resources/graphs.ts">GraphUpdateResponse</a></code>
108-
- <code><a href="./src/resources/graphs.ts">GraphListResponse</a></code>
109107
- <code><a href="./src/resources/graphs.ts">GraphDeleteResponse</a></code>
110108
- <code><a href="./src/resources/graphs.ts">GraphRemoveFileFromGraphResponse</a></code>
111109

112110
Methods:
113111

114112
- <code title="post /v1/graphs">client.graphs.<a href="./src/resources/graphs.ts">create</a>({ ...params }) -> GraphCreateResponse</code>
115-
- <code title="get /v1/graphs/{graph_id}">client.graphs.<a href="./src/resources/graphs.ts">retrieve</a>(graphID) -> GraphRetrieveResponse</code>
113+
- <code title="get /v1/graphs/{graph_id}">client.graphs.<a href="./src/resources/graphs.ts">retrieve</a>(graphID) -> Graph</code>
116114
- <code title="put /v1/graphs/{graph_id}">client.graphs.<a href="./src/resources/graphs.ts">update</a>(graphID, { ...params }) -> GraphUpdateResponse</code>
117-
- <code title="get /v1/graphs">client.graphs.<a href="./src/resources/graphs.ts">list</a>({ ...params }) -> GraphListResponsesCursorPage</code>
115+
- <code title="get /v1/graphs">client.graphs.<a href="./src/resources/graphs.ts">list</a>({ ...params }) -> GraphsCursorPage</code>
118116
- <code title="delete /v1/graphs/{graph_id}">client.graphs.<a href="./src/resources/graphs.ts">delete</a>(graphID) -> GraphDeleteResponse</code>
119117
- <code title="post /v1/graphs/{graph_id}/file">client.graphs.<a href="./src/resources/graphs.ts">addFileToGraph</a>(graphID, { ...params }) -> File</code>
120118
- <code title="post /v1/graphs/question">client.graphs.<a href="./src/resources/graphs.ts">question</a>({ ...params }) -> Question</code>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "writer-sdk",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "The official TypeScript library for the Writer API",
55
"author": "Writer <dev-feedback@writer.com>",
66
"types": "dist/index.d.ts",
@@ -44,7 +44,7 @@
4444
"publint": "^0.2.12",
4545
"ts-jest": "^29.1.0",
4646
"ts-node": "^10.5.0",
47-
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz",
47+
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
4848
"tsconfig-paths": "^4.0.0",
4949
"typescript": "5.8.3",
5050
"typescript-eslint": "8.31.1",

src/client.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,15 @@ import {
6262
GraphCreateResponse,
6363
GraphDeleteResponse,
6464
GraphListParams,
65-
GraphListResponse,
66-
GraphListResponsesCursorPage,
6765
GraphQuestionParams,
6866
GraphQuestionParamsNonStreaming,
6967
GraphQuestionParamsStreaming,
7068
GraphRemoveFileFromGraphParams,
7169
GraphRemoveFileFromGraphResponse,
72-
GraphRetrieveResponse,
7370
GraphUpdateParams,
7471
GraphUpdateResponse,
7572
Graphs,
73+
GraphsCursorPage,
7674
Question,
7775
QuestionResponseChunk,
7876
} from './resources/graphs';
@@ -833,6 +831,7 @@ export class Writer {
833831
translation: API.Translation = new API.Translation(this);
834832
vision: API.Vision = new API.Vision(this);
835833
}
834+
836835
Writer.Applications = Applications;
837836
Writer.Chat = Chat;
838837
Writer.Completions = Completions;
@@ -842,6 +841,7 @@ Writer.Files = Files;
842841
Writer.Tools = Tools;
843842
Writer.Translation = Translation;
844843
Writer.Vision = Vision;
844+
845845
export declare namespace Writer {
846846
export type RequestOptions = Opts.RequestOptions;
847847

@@ -898,12 +898,10 @@ export declare namespace Writer {
898898
type Question as Question,
899899
type QuestionResponseChunk as QuestionResponseChunk,
900900
type GraphCreateResponse as GraphCreateResponse,
901-
type GraphRetrieveResponse as GraphRetrieveResponse,
902901
type GraphUpdateResponse as GraphUpdateResponse,
903-
type GraphListResponse as GraphListResponse,
904902
type GraphDeleteResponse as GraphDeleteResponse,
905903
type GraphRemoveFileFromGraphResponse as GraphRemoveFileFromGraphResponse,
906-
type GraphListResponsesCursorPage as GraphListResponsesCursorPage,
904+
type GraphsCursorPage as GraphsCursorPage,
907905
type GraphCreateParams as GraphCreateParams,
908906
type GraphUpdateParams as GraphUpdateParams,
909907
type GraphListParams as GraphListParams,

0 commit comments

Comments
 (0)