Skip to content

Commit 4902642

Browse files
docs(api): updates to API spec
1 parent e704323 commit 4902642

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 32
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-86cece3af9ac57e8d575e7e1a9fbb834f7ea6a635267ba6e1a87f277293d8e85.yml
3-
openapi_spec_hash: 3e7e420d10e8ad4a68db3c0877e7c949
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-fab7a71148b6f413a4425ca9f2ce3d42557b65d35ab28c6f64daa7fce6d0ffe2.yml
3+
openapi_spec_hash: 0ead6944545bc40172176e15cc704633
44
config_hash: c0c9f57ab19252f82cf765939edc61de

src/writerai/resources/files.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def list(
9393
*,
9494
after: str | NotGiven = NOT_GIVEN,
9595
before: str | NotGiven = NOT_GIVEN,
96-
file_type: str | NotGiven = NOT_GIVEN,
96+
file_types: str | NotGiven = NOT_GIVEN,
9797
graph_id: str | NotGiven = NOT_GIVEN,
9898
limit: int | NotGiven = NOT_GIVEN,
9999
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
@@ -116,7 +116,7 @@ def list(
116116
before: The ID of the first object in the previous page. This parameter instructs the
117117
API to return the previous page of results.
118118
119-
file_type: The extensions of the files to retrieve. Separate multiple extensions with a
119+
file_types: The extensions of the files to retrieve. Separate multiple extensions with a
120120
comma. For example: `pdf,jpg,docx`.
121121
122122
graph_id: The unique identifier of the graph to which the files belong.
@@ -150,7 +150,7 @@ def list(
150150
{
151151
"after": after,
152152
"before": before,
153-
"file_type": file_type,
153+
"file_types": file_types,
154154
"graph_id": graph_id,
155155
"limit": limit,
156156
"order": order,
@@ -361,7 +361,7 @@ def list(
361361
*,
362362
after: str | NotGiven = NOT_GIVEN,
363363
before: str | NotGiven = NOT_GIVEN,
364-
file_type: str | NotGiven = NOT_GIVEN,
364+
file_types: str | NotGiven = NOT_GIVEN,
365365
graph_id: str | NotGiven = NOT_GIVEN,
366366
limit: int | NotGiven = NOT_GIVEN,
367367
order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
@@ -384,7 +384,7 @@ def list(
384384
before: The ID of the first object in the previous page. This parameter instructs the
385385
API to return the previous page of results.
386386
387-
file_type: The extensions of the files to retrieve. Separate multiple extensions with a
387+
file_types: The extensions of the files to retrieve. Separate multiple extensions with a
388388
comma. For example: `pdf,jpg,docx`.
389389
390390
graph_id: The unique identifier of the graph to which the files belong.
@@ -418,7 +418,7 @@ def list(
418418
{
419419
"after": after,
420420
"before": before,
421-
"file_type": file_type,
421+
"file_types": file_types,
422422
"graph_id": graph_id,
423423
"limit": limit,
424424
"order": order,

src/writerai/types/file_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FileListParams(TypedDict, total=False):
2020
This parameter instructs the API to return the previous page of results.
2121
"""
2222

23-
file_type: str
23+
file_types: str
2424
"""The extensions of the files to retrieve.
2525
2626
Separate multiple extensions with a comma. For example: `pdf,jpg,docx`.

tests/api_resources/test_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_method_list_with_all_params(self, client: Writer) -> None:
7878
file = client.files.list(
7979
after="after",
8080
before="before",
81-
file_type="file_type",
81+
file_types="file_types",
8282
graph_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
8383
limit=0,
8484
order="asc",
@@ -321,7 +321,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncWriter) -> N
321321
file = await async_client.files.list(
322322
after="after",
323323
before="before",
324-
file_type="file_type",
324+
file_types="file_types",
325325
graph_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
326326
limit=0,
327327
order="asc",

0 commit comments

Comments
 (0)