22
33from __future__ import annotations
44
5- from typing import List , Union , Optional
5+ from typing import Dict , List , Union , Optional
66from datetime import datetime
77from typing_extensions import Literal , Required , Annotated , TypedDict
88
@@ -99,6 +99,12 @@ class OptionsBox(TypedDict, total=False):
9999 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
100100 """Only query documents created before this date."""
101101
102+ filter : Optional [Dict [str , object ]]
103+ """Metadata filters using MongoDB-style operators.
104+
105+ Example: {'status': 'published', 'priority': {'$gt': 3}}
106+ """
107+
102108 weight : float
103109 """Weight of results from this source.
104110
@@ -117,6 +123,12 @@ class OptionsCollections(TypedDict, total=False):
117123 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
118124 """Only query documents created before this date."""
119125
126+ filter : Optional [Dict [str , object ]]
127+ """Metadata filters using MongoDB-style operators.
128+
129+ Example: {'status': 'published', 'priority': {'$gt': 3}}
130+ """
131+
120132 weight : float
121133 """Weight of results from this source.
122134
@@ -142,6 +154,12 @@ class OptionsGoogleCalendar(TypedDict, total=False):
142154 list of calendars with the `/integrations/google_calendar/list` endpoint.
143155 """
144156
157+ filter : Optional [Dict [str , object ]]
158+ """Metadata filters using MongoDB-style operators.
159+
160+ Example: {'status': 'published', 'priority': {'$gt': 3}}
161+ """
162+
145163 weight : float
146164 """Weight of results from this source.
147165
@@ -160,6 +178,12 @@ class OptionsGoogleDrive(TypedDict, total=False):
160178 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
161179 """Only query documents created before this date."""
162180
181+ filter : Optional [Dict [str , object ]]
182+ """Metadata filters using MongoDB-style operators.
183+
184+ Example: {'status': 'published', 'priority': {'$gt': 3}}
185+ """
186+
163187 weight : float
164188 """Weight of results from this source.
165189
@@ -178,6 +202,12 @@ class OptionsGoogleMail(TypedDict, total=False):
178202 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
179203 """Only query documents created before this date."""
180204
205+ filter : Optional [Dict [str , object ]]
206+ """Metadata filters using MongoDB-style operators.
207+
208+ Example: {'status': 'published', 'priority': {'$gt': 3}}
209+ """
210+
181211 label_ids : SequenceNotStr [str ]
182212 """List of label IDs to filter messages (e.g., ['INBOX', 'SENT', 'DRAFT']).
183213
@@ -204,6 +234,12 @@ class OptionsNotion(TypedDict, total=False):
204234 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
205235 """Only query documents created before this date."""
206236
237+ filter : Optional [Dict [str , object ]]
238+ """Metadata filters using MongoDB-style operators.
239+
240+ Example: {'status': 'published', 'priority': {'$gt': 3}}
241+ """
242+
207243 notion_page_ids : SequenceNotStr [str ]
208244 """List of Notion page IDs to search.
209245
@@ -228,6 +264,12 @@ class OptionsReddit(TypedDict, total=False):
228264 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
229265 """Only query documents created before this date."""
230266
267+ filter : Optional [Dict [str , object ]]
268+ """Metadata filters using MongoDB-style operators.
269+
270+ Example: {'status': 'published', 'priority': {'$gt': 3}}
271+ """
272+
231273 period : Literal ["hour" , "day" , "week" , "month" , "year" , "all" ]
232274 """The time period to search. Defaults to 'month'."""
233275
@@ -264,6 +306,12 @@ class OptionsSlack(TypedDict, total=False):
264306 exclude_archived : Optional [bool ]
265307 """If set, pass 'exclude_archived' to Slack. If None, omit the param."""
266308
309+ filter : Optional [Dict [str , object ]]
310+ """Metadata filters using MongoDB-style operators.
311+
312+ Example: {'status': 'published', 'priority': {'$gt': 3}}
313+ """
314+
267315 include_dms : bool
268316 """Include direct messages (im) when listing conversations."""
269317
@@ -294,6 +342,12 @@ class OptionsWebCrawler(TypedDict, total=False):
294342 before : Annotated [Union [str , datetime , None ], PropertyInfo (format = "iso8601" )]
295343 """Only query documents created before this date."""
296344
345+ filter : Optional [Dict [str , object ]]
346+ """Metadata filters using MongoDB-style operators.
347+
348+ Example: {'status': 'published', 'priority': {'$gt': 3}}
349+ """
350+
297351 max_depth : int
298352 """Maximum depth to crawl from the starting URL"""
299353
@@ -327,6 +381,12 @@ class Options(TypedDict, total=False):
327381 collections : OptionsCollections
328382 """Search options for vault"""
329383
384+ filter : Optional [Dict [str , object ]]
385+ """Metadata filters using MongoDB-style operators.
386+
387+ Example: {'status': 'published', 'priority': {'$gt': 3}}
388+ """
389+
330390 google_calendar : OptionsGoogleCalendar
331391 """Search options for Google Calendar"""
332392
0 commit comments