File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ class RecommendationsResults(BaseModel):
140
140
description = "Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/)." ,
141
141
alias = "queryID" ,
142
142
)
143
+ automatic_insights : Optional [StrictBool ] = Field (
144
+ default = None ,
145
+ description = "Whether automatic events collection is enabled for the application." ,
146
+ alias = "_automaticInsights" ,
147
+ )
143
148
page : Annotated [int , Field (strict = True , ge = 0 )] = Field (
144
149
description = "Page of search results to retrieve."
145
150
)
@@ -265,6 +270,7 @@ def from_dict(cls, obj: Dict) -> Self:
265
270
"serverUsed" : obj .get ("serverUsed" ),
266
271
"userData" : obj .get ("userData" ),
267
272
"queryID" : obj .get ("queryID" ),
273
+ "_automaticInsights" : obj .get ("_automaticInsights" ),
268
274
"page" : obj .get ("page" ),
269
275
"nbHits" : obj .get ("nbHits" ),
270
276
"nbPages" : obj .get ("nbPages" ),
Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ class BrowseResponse(BaseModel):
140
140
description = "Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/)." ,
141
141
alias = "queryID" ,
142
142
)
143
+ automatic_insights : Optional [StrictBool ] = Field (
144
+ default = None ,
145
+ description = "Whether automatic events collection is enabled for the application." ,
146
+ alias = "_automaticInsights" ,
147
+ )
143
148
page : Optional [Annotated [int , Field (strict = True , ge = 0 )]] = Field (
144
149
default = 0 , description = "Page of search results to retrieve."
145
150
)
@@ -277,6 +282,7 @@ def from_dict(cls, obj: Dict) -> Self:
277
282
"serverUsed" : obj .get ("serverUsed" ),
278
283
"userData" : obj .get ("userData" ),
279
284
"queryID" : obj .get ("queryID" ),
285
+ "_automaticInsights" : obj .get ("_automaticInsights" ),
280
286
"page" : obj .get ("page" ),
281
287
"nbHits" : obj .get ("nbHits" ),
282
288
"nbPages" : obj .get ("nbPages" ),
Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ class SearchResponse(BaseModel):
140
140
description = "Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/)." ,
141
141
alias = "queryID" ,
142
142
)
143
+ automatic_insights : Optional [StrictBool ] = Field (
144
+ default = None ,
145
+ description = "Whether automatic events collection is enabled for the application." ,
146
+ alias = "_automaticInsights" ,
147
+ )
143
148
page : Annotated [int , Field (strict = True , ge = 0 )] = Field (
144
149
description = "Page of search results to retrieve."
145
150
)
@@ -183,6 +188,7 @@ class SearchResponse(BaseModel):
183
188
"serverUsed" ,
184
189
"userData" ,
185
190
"queryID" ,
191
+ "_automaticInsights" ,
186
192
"page" ,
187
193
"nbHits" ,
188
194
"nbPages" ,
@@ -313,6 +319,7 @@ def from_dict(cls, obj: Dict) -> Self:
313
319
"serverUsed" : obj .get ("serverUsed" ),
314
320
"userData" : obj .get ("userData" ),
315
321
"queryID" : obj .get ("queryID" ),
322
+ "_automaticInsights" : obj .get ("_automaticInsights" ),
316
323
"page" : obj .get ("page" ),
317
324
"nbHits" : obj .get ("nbHits" ),
318
325
"nbPages" : obj .get ("nbPages" ),
You can’t perform that action at this time.
0 commit comments