Skip to content

Commit bd53b17

Browse files
docs(api): updates to API spec
1 parent 2208eda commit bd53b17

3 files changed

Lines changed: 9 additions & 2 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-07dea48ea85e600712dcdfd99a688f6a9cb8dd1f56d0a06e0ab54fc8a98a89b1.yml
3-
openapi_spec_hash: 0d30ab04c227bf53f3109dc4d861e5dc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-86cece3af9ac57e8d575e7e1a9fbb834f7ea6a635267ba6e1a87f277293d8e85.yml
3+
openapi_spec_hash: 3e7e420d10e8ad4a68db3c0877e7c949
44
config_hash: c0c9f57ab19252f82cf765939edc61de

src/resources/files.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ export interface FileRetryResponse {
117117
}
118118

119119
export interface FileListParams extends CursorPageParams {
120+
/**
121+
* The extensions of the files to retrieve. Separate multiple extensions with a
122+
* comma. For example: `pdf,jpg,docx`.
123+
*/
124+
file_type?: string;
125+
120126
/**
121127
* The unique identifier of the graph to which the files belong.
122128
*/

tests/api-resources/files.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ describe('resource files', () => {
3737
{
3838
after: 'after',
3939
before: 'before',
40+
file_type: 'file_type',
4041
graph_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
4142
limit: 0,
4243
order: 'asc',

0 commit comments

Comments
 (0)