@@ -56,7 +56,9 @@ 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 ,
5960 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
61+ mime_type : str | Omit = omit ,
6062 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6163 # The extra values given here take precedence over values defined on the client or passed to this method.
6264 extra_headers : Headers | None = None ,
@@ -88,12 +90,20 @@ def update(
8890 custom_id: Optional custom ID of the document. This could be an ID from your database that
8991 will uniquely identify this document.
9092
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+
9198 metadata: Optional metadata for the document. This is used to store additional information
9299 about the document. You can use this to store any additional information you
93100 need about the document. Metadata can be filtered through. Keys must be strings
94101 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
95102 nest objects.
96103
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+
97107 extra_headers: Send extra headers
98108
99109 extra_query: Add additional query parameters to the request
@@ -112,7 +122,9 @@ def update(
112122 "container_tags" : container_tags ,
113123 "content" : content ,
114124 "custom_id" : custom_id ,
125+ "file_type" : file_type ,
115126 "metadata" : metadata ,
127+ "mime_type" : mime_type ,
116128 },
117129 document_update_params .DocumentUpdateParams ,
118130 ),
@@ -229,7 +241,9 @@ def add(
229241 container_tag : str | Omit = omit ,
230242 container_tags : SequenceNotStr [str ] | Omit = omit ,
231243 custom_id : str | Omit = omit ,
244+ file_type : str | Omit = omit ,
232245 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
246+ mime_type : str | Omit = omit ,
233247 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
234248 # The extra values given here take precedence over values defined on the client or passed to this method.
235249 extra_headers : Headers | None = None ,
@@ -261,12 +275,20 @@ def add(
261275 custom_id: Optional custom ID of the document. This could be an ID from your database that
262276 will uniquely identify this document.
263277
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+
264283 metadata: Optional metadata for the document. This is used to store additional information
265284 about the document. You can use this to store any additional information you
266285 need about the document. Metadata can be filtered through. Keys must be strings
267286 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
268287 nest objects.
269288
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+
270292 extra_headers: Send extra headers
271293
272294 extra_query: Add additional query parameters to the request
@@ -283,7 +305,9 @@ def add(
283305 "container_tag" : container_tag ,
284306 "container_tags" : container_tags ,
285307 "custom_id" : custom_id ,
308+ "file_type" : file_type ,
286309 "metadata" : metadata ,
310+ "mime_type" : mime_type ,
287311 },
288312 document_add_params .DocumentAddParams ,
289313 ),
@@ -424,7 +448,9 @@ async def update(
424448 container_tags : SequenceNotStr [str ] | Omit = omit ,
425449 content : str | Omit = omit ,
426450 custom_id : str | Omit = omit ,
451+ file_type : str | Omit = omit ,
427452 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
453+ mime_type : str | Omit = omit ,
428454 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
429455 # The extra values given here take precedence over values defined on the client or passed to this method.
430456 extra_headers : Headers | None = None ,
@@ -456,12 +482,20 @@ async def update(
456482 custom_id: Optional custom ID of the document. This could be an ID from your database that
457483 will uniquely identify this document.
458484
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+
459490 metadata: Optional metadata for the document. This is used to store additional information
460491 about the document. You can use this to store any additional information you
461492 need about the document. Metadata can be filtered through. Keys must be strings
462493 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
463494 nest objects.
464495
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+
465499 extra_headers: Send extra headers
466500
467501 extra_query: Add additional query parameters to the request
@@ -480,7 +514,9 @@ async def update(
480514 "container_tags" : container_tags ,
481515 "content" : content ,
482516 "custom_id" : custom_id ,
517+ "file_type" : file_type ,
483518 "metadata" : metadata ,
519+ "mime_type" : mime_type ,
484520 },
485521 document_update_params .DocumentUpdateParams ,
486522 ),
@@ -597,7 +633,9 @@ async def add(
597633 container_tag : str | Omit = omit ,
598634 container_tags : SequenceNotStr [str ] | Omit = omit ,
599635 custom_id : str | Omit = omit ,
636+ file_type : str | Omit = omit ,
600637 metadata : Dict [str , Union [str , float , bool , SequenceNotStr [str ]]] | Omit = omit ,
638+ mime_type : str | Omit = omit ,
601639 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
602640 # The extra values given here take precedence over values defined on the client or passed to this method.
603641 extra_headers : Headers | None = None ,
@@ -629,12 +667,20 @@ async def add(
629667 custom_id: Optional custom ID of the document. This could be an ID from your database that
630668 will uniquely identify this document.
631669
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+
632675 metadata: Optional metadata for the document. This is used to store additional information
633676 about the document. You can use this to store any additional information you
634677 need about the document. Metadata can be filtered through. Keys must be strings
635678 and are case sensitive. Values can be strings, numbers, or booleans. You cannot
636679 nest objects.
637680
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+
638684 extra_headers: Send extra headers
639685
640686 extra_query: Add additional query parameters to the request
@@ -651,7 +697,9 @@ async def add(
651697 "container_tag" : container_tag ,
652698 "container_tags" : container_tags ,
653699 "custom_id" : custom_id ,
700+ "file_type" : file_type ,
654701 "metadata" : metadata ,
702+ "mime_type" : mime_type ,
655703 },
656704 document_add_params .DocumentAddParams ,
657705 ),
0 commit comments