@@ -67,7 +67,8 @@ def retrieve(
6767 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
6868 ) -> File :
6969 """
70- Retrieve file
70+ Retrieve detailed information about a specific file, including its metadata,
71+ status, and associated graphs.
7172
7273 Args:
7374 extra_headers: Send extra headers
@@ -105,12 +106,12 @@ def list(
105106 extra_body : Body | None = None ,
106107 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
107108 ) -> SyncCursorPage [File ]:
108- """List files
109+ """
110+ Retrieve a paginated list of files with optional filtering by status, graph
111+ association, and file type.
109112
110113 Args:
111- after: The ID of the last object in the previous page.
112-
113- This parameter instructs the API
114+ after: The ID of the last object in the previous page. This parameter instructs the API
114115 to return the next page of results.
115116
116117 before: The ID of the first object in the previous page. This parameter instructs the
@@ -173,8 +174,9 @@ def delete(
173174 extra_body : Body | None = None ,
174175 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
175176 ) -> FileDeleteResponse :
176- """
177- Delete file
177+ """Permanently delete a file from the system.
178+
179+ This action cannot be undone.
178180
179181 Args:
180182 extra_headers: Send extra headers
@@ -206,8 +208,10 @@ def download(
206208 extra_body : Body | None = None ,
207209 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
208210 ) -> BinaryAPIResponse :
209- """
210- Download file
211+ """Download the binary content of a file.
212+
213+ The response will contain the file data
214+ in the appropriate MIME type.
211215
212216 Args:
213217 extra_headers: Send extra headers
@@ -240,8 +244,10 @@ def retry(
240244 extra_body : Body | None = None ,
241245 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
242246 ) -> FileRetryResponse :
243- """
244- Retry failed files
247+ """Retry processing of files that previously failed to process.
248+
249+ This will
250+ re-attempt the processing of the specified files.
245251
246252 Args:
247253 file_ids: The unique identifier of the files to retry.
@@ -276,8 +282,10 @@ def upload(
276282 extra_body : Body | None = None ,
277283 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
278284 ) -> File :
279- """
280- Upload file
285+ """Upload a new file to the system.
286+
287+ Supports various file formats including PDF,
288+ DOC, DOCX, PPT, PPTX, JPG, PNG, EML, HTML, SRT, CSV, XLS, and XLSX.
281289
282290 Args:
283291 extra_headers: Send extra headers
@@ -335,7 +343,8 @@ async def retrieve(
335343 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
336344 ) -> File :
337345 """
338- Retrieve file
346+ Retrieve detailed information about a specific file, including its metadata,
347+ status, and associated graphs.
339348
340349 Args:
341350 extra_headers: Send extra headers
@@ -373,12 +382,12 @@ def list(
373382 extra_body : Body | None = None ,
374383 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
375384 ) -> AsyncPaginator [File , AsyncCursorPage [File ]]:
376- """List files
385+ """
386+ Retrieve a paginated list of files with optional filtering by status, graph
387+ association, and file type.
377388
378389 Args:
379- after: The ID of the last object in the previous page.
380-
381- This parameter instructs the API
390+ after: The ID of the last object in the previous page. This parameter instructs the API
382391 to return the next page of results.
383392
384393 before: The ID of the first object in the previous page. This parameter instructs the
@@ -441,8 +450,9 @@ async def delete(
441450 extra_body : Body | None = None ,
442451 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
443452 ) -> FileDeleteResponse :
444- """
445- Delete file
453+ """Permanently delete a file from the system.
454+
455+ This action cannot be undone.
446456
447457 Args:
448458 extra_headers: Send extra headers
@@ -474,8 +484,10 @@ async def download(
474484 extra_body : Body | None = None ,
475485 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
476486 ) -> AsyncBinaryAPIResponse :
477- """
478- Download file
487+ """Download the binary content of a file.
488+
489+ The response will contain the file data
490+ in the appropriate MIME type.
479491
480492 Args:
481493 extra_headers: Send extra headers
@@ -508,8 +520,10 @@ async def retry(
508520 extra_body : Body | None = None ,
509521 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
510522 ) -> FileRetryResponse :
511- """
512- Retry failed files
523+ """Retry processing of files that previously failed to process.
524+
525+ This will
526+ re-attempt the processing of the specified files.
513527
514528 Args:
515529 file_ids: The unique identifier of the files to retry.
@@ -544,8 +558,10 @@ async def upload(
544558 extra_body : Body | None = None ,
545559 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
546560 ) -> File :
547- """
548- Upload file
561+ """Upload a new file to the system.
562+
563+ Supports various file formats including PDF,
564+ DOC, DOCX, PPT, PPTX, JPG, PNG, EML, HTML, SRT, CSV, XLS, and XLSX.
549565
550566 Args:
551567 extra_headers: Send extra headers
0 commit comments