@@ -56,9 +56,7 @@ def update(
5656 container_tags : SequenceNotStr [str ] | Omit = omit ,
5757 content : str | Omit = omit ,
5858 custom_id : str | Omit = omit ,
59- file_type : str | Omit = omit ,
6059 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
61- mime_type : str | Omit = omit ,
6260 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6361 # The extra values given here take precedence over values defined on the client or passed to this method.
6462 extra_headers : Headers | None = None ,
@@ -90,20 +88,12 @@ def update(
9088 custom_id: Optional custom ID of the document. This could be an ID from your database that
9189 will uniquely identify this document.
9290
93- file_type:
94- Optional file type override to force specific processing behavior. Valid values:
95- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
96- notion_doc, webpage, onedrive
97-
9891 metadata: Optional metadata for the document. This is used to store additional information
9992 about the document. You can use this to store any additional information you
10093 need about the document. Metadata can be filtered through. Keys must be strings
10194 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
10295 nest objects.
10396
104- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
105- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
106-
10797 extra_headers: Send extra headers
10898
10999 extra_query: Add additional query parameters to the request
@@ -122,9 +112,7 @@ def update(
122112 "container_tags" : container_tags ,
123113 "content" : content ,
124114 "custom_id" : custom_id ,
125- "file_type" : file_type ,
126115 "metadata" : metadata ,
127- "mime_type" : mime_type ,
128116 },
129117 document_update_params .DocumentUpdateParams ,
130118 ),
@@ -241,9 +229,7 @@ def add(
241229 container_tag : str | Omit = omit ,
242230 container_tags : SequenceNotStr [str ] | Omit = omit ,
243231 custom_id : str | Omit = omit ,
244- file_type : str | Omit = omit ,
245232 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
246- mime_type : str | Omit = omit ,
247233 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
248234 # The extra values given here take precedence over values defined on the client or passed to this method.
249235 extra_headers : Headers | None = None ,
@@ -275,20 +261,12 @@ def add(
275261 custom_id: Optional custom ID of the document. This could be an ID from your database that
276262 will uniquely identify this document.
277263
278- file_type:
279- Optional file type override to force specific processing behavior. Valid values:
280- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
281- notion_doc, webpage, onedrive
282-
283264 metadata: Optional metadata for the document. This is used to store additional information
284265 about the document. You can use this to store any additional information you
285266 need about the document. Metadata can be filtered through. Keys must be strings
286267 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
287268 nest objects.
288269
289- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
290- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
291-
292270 extra_headers: Send extra headers
293271
294272 extra_query: Add additional query parameters to the request
@@ -305,9 +283,7 @@ def add(
305283 "container_tag" : container_tag ,
306284 "container_tags" : container_tags ,
307285 "custom_id" : custom_id ,
308- "file_type" : file_type ,
309286 "metadata" : metadata ,
310- "mime_type" : mime_type ,
311287 },
312288 document_add_params .DocumentAddParams ,
313289 ),
@@ -448,9 +424,7 @@ async def update(
448424 container_tags : SequenceNotStr [str ] | Omit = omit ,
449425 content : str | Omit = omit ,
450426 custom_id : str | Omit = omit ,
451- file_type : str | Omit = omit ,
452427 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
453- mime_type : str | Omit = omit ,
454428 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
455429 # The extra values given here take precedence over values defined on the client or passed to this method.
456430 extra_headers : Headers | None = None ,
@@ -482,20 +456,12 @@ async def update(
482456 custom_id: Optional custom ID of the document. This could be an ID from your database that
483457 will uniquely identify this document.
484458
485- file_type:
486- Optional file type override to force specific processing behavior. Valid values:
487- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
488- notion_doc, webpage, onedrive
489-
490459 metadata: Optional metadata for the document. This is used to store additional information
491460 about the document. You can use this to store any additional information you
492461 need about the document. Metadata can be filtered through. Keys must be strings
493462 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
494463 nest objects.
495464
496- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
497- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
498-
499465 extra_headers: Send extra headers
500466
501467 extra_query: Add additional query parameters to the request
@@ -514,9 +480,7 @@ async def update(
514480 "container_tags" : container_tags ,
515481 "content" : content ,
516482 "custom_id" : custom_id ,
517- "file_type" : file_type ,
518483 "metadata" : metadata ,
519- "mime_type" : mime_type ,
520484 },
521485 document_update_params .DocumentUpdateParams ,
522486 ),
@@ -633,9 +597,7 @@ async def add(
633597 container_tag : str | Omit = omit ,
634598 container_tags : SequenceNotStr [str ] | Omit = omit ,
635599 custom_id : str | Omit = omit ,
636- file_type : str | Omit = omit ,
637600 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
638- mime_type : str | Omit = omit ,
639601 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
640602 # The extra values given here take precedence over values defined on the client or passed to this method.
641603 extra_headers : Headers | None = None ,
@@ -667,20 +629,12 @@ async def add(
667629 custom_id: Optional custom ID of the document. This could be an ID from your database that
668630 will uniquely identify this document.
669631
670- file_type:
671- Optional file type override to force specific processing behavior. Valid values:
672- text, pdf, tweet, google_doc, google_slide, google_sheet, image, video,
673- notion_doc, webpage, onedrive
674-
675632 metadata: Optional metadata for the document. This is used to store additional information
676633 about the document. You can use this to store any additional information you
677634 need about the document. Metadata can be filtered through. Keys must be strings
678635 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
679636 nest objects.
680637
681- mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
682- use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
683-
684638 extra_headers: Send extra headers
685639
686640 extra_query: Add additional query parameters to the request
@@ -697,9 +651,7 @@ async def add(
697651 "container_tag" : container_tag ,
698652 "container_tags" : container_tags ,
699653 "custom_id" : custom_id ,
700- "file_type" : file_type ,
701654 "metadata" : metadata ,
702- "mime_type" : mime_type ,
703655 },
704656 document_add_params .DocumentAddParams ,
705657 ),
0 commit comments