@@ -54,7 +54,7 @@ export namespace QueryTopDocumentsResponse {
5454 /**
5555 * The metadata for that document. Will be `None` if `include_metadata` is `False`.
5656 */
57- metadata : Record < string , string | Array < string > > | null ;
57+ metadata : { [ key : string ] : string | Array < string > } | null ;
5858
5959 /**
6060 * The path of the document.
@@ -145,7 +145,7 @@ export namespace QueryTopSnippetsResponse {
145145 /**
146146 * The metadata for that document. Will be `None` if `include_metadata` is `False`.
147147 */
148- metadata : Record < string , string | Array < string > > | null ;
148+ metadata : { [ key : string ] : string | Array < string > } | null ;
149149
150150 /**
151151 * The path of the document.
@@ -223,7 +223,7 @@ export interface QueryTopDocumentsParams {
223223 * The query filter to apply. Please read [Metadata Filtering](/metadata-filtering)
224224 * for more information. If not provided, then all documents will be searched.
225225 */
226- filter ?: Record < string , unknown > | null ;
226+ filter ?: { [ key : string ] : unknown } | null ;
227227
228228 /**
229229 * Whether or not to include the metadata in the top documents response. If not
@@ -264,7 +264,7 @@ export interface QueryTopPagesParams {
264264 * The query filter to apply. Please read [Metadata Filtering](/metadata-filtering)
265265 * for more information. If not provided, then all documents will be searched.
266266 */
267- filter ?: Record < string , unknown > | null ;
267+ filter ?: { [ key : string ] : unknown } | null ;
268268
269269 /**
270270 * If set to true, then the content of all pages will be returned.
@@ -304,7 +304,7 @@ export interface QueryTopSnippetsParams {
304304 * The query filter to apply. Please read [Metadata Filtering](/metadata-filtering)
305305 * for more information. If not provided, then all documents will be searched.
306306 */
307- filter ?: Record < string , unknown > | null ;
307+ filter ?: { [ key : string ] : unknown } | null ;
308308
309309 /**
310310 * If true, the `document_results` returns will additionally contain document
0 commit comments