@@ -12,7 +12,6 @@ class AnalyticsEvent(typing.TypedDict):
1212 """Schema for an analytics event to be created."""
1313
1414 name : str
15- event_type : str
1615 data : typing .Dict [str , typing .Any ]
1716
1817
@@ -24,13 +23,12 @@ class AnalyticsEventCreateResponse(typing.TypedDict):
2423
2524class _AnalyticsEventItem (typing .TypedDict , total = False ):
2625 name : str
27- event_type : str
2826 collection : str
29- timestamp : int
27+ timestamp : typing . NotRequired [ int ]
3028 user_id : str
31- doc_id : str
32- doc_ids : typing .List [str ]
33- query : str
29+ doc_id : typing . NotRequired [ str ]
30+ doc_ids : typing .NotRequired [ typing . List [str ] ]
31+ query : typing . NotRequired [ str ]
3432
3533
3634class AnalyticsEventsResponse (typing .TypedDict ):
@@ -54,21 +52,21 @@ class AnalyticsStatus(typing.TypedDict, total=False):
5452# Rules
5553
5654class AnalyticsRuleParams (typing .TypedDict , total = False ):
57- destination_collection : str
58- limit : int
59- capture_search_requests : bool
60- meta_fields : typing .List [str ]
61- expand_query : bool
62- counter_field : str
63- weight : int
55+ destination_collection : typing . NotRequired [ str ]
56+ limit : typing . NotRequired [ int ]
57+ capture_search_requests : typing . NotRequired [ bool ]
58+ meta_fields : typing .NotRequired [ typing . List [str ] ]
59+ expand_query : typing . NotRequired [ bool ]
60+ counter_field : typing . NotRequired [ str ]
61+ weight : typing . NotRequired [ int ]
6462
6563
6664class AnalyticsRuleCreate (typing .TypedDict ):
6765 name : str
6866 type : str
6967 collection : str
7068 event_type : str
71- params : AnalyticsRuleParams
69+ params : typing . NotRequired [ AnalyticsRuleParams ]
7270 rule_tag : typing .NotRequired [str ]
7371
7472
0 commit comments