// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import { APIPromise } from '../core/api-promise'; import { RequestOptions } from '../internal/request-options'; export class Search extends APIResource { /** * Search memories with advanced filtering * * @example * ```ts * const response = await client.search.documents({ * q: 'machine learning concepts', * }); * ``` */ documents(body: SearchDocumentsParams, options?: RequestOptions): APIPromise { return this._client.post('/v3/search', { body, ...options }); } /** * Search memories with advanced filtering * * @example * ```ts * const response = await client.search.execute({ * q: 'machine learning concepts', * }); * ``` */ execute(body: SearchExecuteParams, options?: RequestOptions): APIPromise { return this._client.post('/v3/search', { body, ...options }); } /** * Search memory entries - Low latency for conversational * * @example * ```ts * const response = await client.search.memories({ * q: 'machine learning concepts', * }); * ``` */ memories(body: SearchMemoriesParams, options?: RequestOptions): APIPromise { return this._client.post('/v4/search', { body, ...options }); } } export interface SearchDocumentsResponse { results: Array; timing: number; total: number; } export namespace SearchDocumentsResponse { export interface Result { /** * Matching content chunks from the document */ chunks: Array; /** * Document creation date */ createdAt: string; /** * ID of the matching document */ documentId: string; /** * Document metadata */ metadata: { [key: string]: unknown } | null; /** * Relevance score of the match */ score: number; /** * Document title */ title: string | null; /** * Document type */ type: string | null; /** * Document last update date */ updatedAt: string; /** * Full document content (only included when includeFullDocs=true) */ content?: string | null; /** * Document summary */ summary?: string | null; } export namespace Result { /** * Matching content chunk */ export interface Chunk { /** * Content of the matching chunk */ content: string; /** * Whether this chunk is relevant to the query */ isRelevant: boolean; /** * Similarity score for this chunk */ score: number; } } } export interface SearchExecuteResponse { results: Array; timing: number; total: number; } export namespace SearchExecuteResponse { export interface Result { /** * Matching content chunks from the document */ chunks: Array; /** * Document creation date */ createdAt: string; /** * ID of the matching document */ documentId: string; /** * Document metadata */ metadata: { [key: string]: unknown } | null; /** * Relevance score of the match */ score: number; /** * Document title */ title: string | null; /** * Document type */ type: string | null; /** * Document last update date */ updatedAt: string; /** * Full document content (only included when includeFullDocs=true) */ content?: string | null; /** * Document summary */ summary?: string | null; } export namespace Result { /** * Matching content chunk */ export interface Chunk { /** * Content of the matching chunk */ content: string; /** * Whether this chunk is relevant to the query */ isRelevant: boolean; /** * Similarity score for this chunk */ score: number; } } } export interface SearchMemoriesResponse { /** * Array of matching memory entries and chunks with similarity scores. Contains * memory results when searchMode='memories', both memory and chunk results when * searchMode='hybrid', or only chunk results when searchMode='documents'. Memory * results have 'memory' field, chunk results have 'chunk' field. BACKWARD * COMPATIBILITY: When using deprecated include.chunks=true, only memory results * are returned with chunks embedded in them (old format). */ results: Array; /** * Search execution time in milliseconds */ timing: number; /** * Total number of results returned */ total: number; } export namespace SearchMemoriesResponse { export interface Result { /** * Memory entry ID or chunk ID */ id: string; /** * Memory metadata */ metadata: { [key: string]: unknown } | null; /** * Similarity score between the query and memory entry */ similarity: number; /** * Memory last update date */ updatedAt: string; /** * The chunk content (only present for chunk results from hybrid search) */ chunk?: string; /** * Relevant chunks from associated documents (only included when chunks=true) */ chunks?: Array; /** * Object containing version history (parents/children via updates) and related * memories (extends/derives) */ context?: Result.Context; /** * Associated documents for this memory entry */ documents?: Array; /** * Filepath of the source document this memory or chunk came from */ filepath?: string | null; /** * Indicates if this memory was created by aggregating multiple source memories */ isAggregated?: boolean; /** * The memory content (only present for memory results) */ memory?: string; /** * Version number of this memory entry */ version?: number | null; } export namespace Result { export interface Chunk { /** * Content of the chunk */ content: string; /** * ID of the document this chunk belongs to */ documentId: string; /** * Position of chunk in the document (0-indexed) */ position: number; /** * Similarity score between the query and chunk */ score: number; } /** * Object containing version history (parents/children via updates) and related * memories (extends/derives) */ export interface Context { children?: Array; parents?: Array; related?: Array; } export namespace Context { export interface Child { /** * The contextual memory content */ memory: string; /** * Relation type between this memory and its parent/child */ relation: 'updates' | 'extends' | 'derives'; /** * Contextual memory last update date */ updatedAt: string; /** * Contextual memory metadata */ metadata?: { [key: string]: unknown } | null; /** * Relative version distance from the primary memory (+1 for direct child, +2 for * grand-child, etc.) */ version?: number | null; } export interface Parent { /** * The contextual memory content */ memory: string; /** * Relation type between this memory and its parent/child */ relation: 'updates' | 'extends' | 'derives'; /** * Contextual memory last update date */ updatedAt: string; /** * Contextual memory metadata */ metadata?: { [key: string]: unknown } | null; /** * Relative version distance from the primary memory (-1 for direct parent, -2 for * grand-parent, etc.) */ version?: number | null; } export interface Related { /** * The related memory content */ memory: string; /** * Relation type */ relation: 'extends' | 'derives'; /** * Related memory last update date */ updatedAt: string; /** * Related memory metadata */ metadata?: { [key: string]: unknown } | null; } } export interface Document { /** * Document ID */ id: string; /** * Document creation date */ createdAt: string; /** * Document last update date */ updatedAt: string; /** * Document metadata (only included when documents=true) */ metadata?: { [key: string]: unknown } | null; /** * Document summary (only included when summaries=true) */ summary?: string | null; /** * Document title (only included when documents=true) */ title?: string; /** * Document type (only included when documents=true) */ type?: string; } } } export interface SearchDocumentsParams { /** * Search query string */ q: string; /** * @deprecated DEPRECATED: Optional category filters */ categoriesFilter?: Array; /** * Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most * chunks, more results), 1 is most sensitive (returns lesser chunks, accurate * results) */ chunkThreshold?: number; /** * Optional single container tag. Use this or containerTags. */ containerTag?: string; /** * Optional tags this search should be containerized by. This can be an ID for your * user, a project ID, or any other identifier you wish to use to filter documents. */ containerTags?: Array; /** * Optional document ID to search within. You can use this to find chunks in a very * large document. */ docId?: string; /** * @deprecated DEPRECATED: This field is no longer used in v3 search. The search * now uses chunkThreshold only. This parameter will be ignored. */ documentThreshold?: number; /** * Filter search results by filepath. Exact match for full paths, prefix match if * ending with / */ filepath?: string; /** * Optional filters to apply to the search. Can be a JSON string or Query object. */ filters?: SearchDocumentsParams.Or | SearchDocumentsParams.And; /** * If true, include full document in the response. This is helpful if you want a * chatbot to know the full context of the document. */ includeFullDocs?: boolean; /** * If true, include document summary in the response. This is helpful if you want a * chatbot to know the full context of the document. */ includeSummary?: boolean; /** * Maximum number of results to return */ limit?: number; /** * If true, only return matching chunks without context. Normally, we send the * previous and next chunk to provide more context for LLMs. If you only want the * matching chunk, set this to true. */ onlyMatchingChunks?: boolean; /** * If true, rerank the results based on the query. This is helpful if you want to * ensure the most relevant results are returned. */ rerank?: boolean; /** * If true, rewrites the query to make it easier to find documents. This increases * the latency by about 400ms */ rewriteQuery?: boolean; } export namespace SearchDocumentsParams { export interface Or { /** * Array of OR filter expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } } export interface And { /** * Array of AND filter expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } } } export interface SearchExecuteParams { /** * Search query string */ q: string; /** * @deprecated DEPRECATED: Optional category filters */ categoriesFilter?: Array; /** * Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most * chunks, more results), 1 is most sensitive (returns lesser chunks, accurate * results) */ chunkThreshold?: number; /** * Optional single container tag. Use this or containerTags. */ containerTag?: string; /** * Optional tags this search should be containerized by. This can be an ID for your * user, a project ID, or any other identifier you wish to use to filter documents. */ containerTags?: Array; /** * Optional document ID to search within. You can use this to find chunks in a very * large document. */ docId?: string; /** * @deprecated DEPRECATED: This field is no longer used in v3 search. The search * now uses chunkThreshold only. This parameter will be ignored. */ documentThreshold?: number; /** * Filter search results by filepath. Exact match for full paths, prefix match if * ending with / */ filepath?: string; /** * Optional filters to apply to the search. Can be a JSON string or Query object. */ filters?: SearchExecuteParams.Or | SearchExecuteParams.And; /** * If true, include full document in the response. This is helpful if you want a * chatbot to know the full context of the document. */ includeFullDocs?: boolean; /** * If true, include document summary in the response. This is helpful if you want a * chatbot to know the full context of the document. */ includeSummary?: boolean; /** * Maximum number of results to return */ limit?: number; /** * If true, only return matching chunks without context. Normally, we send the * previous and next chunk to provide more context for LLMs. If you only want the * matching chunk, set this to true. */ onlyMatchingChunks?: boolean; /** * If true, rerank the results based on the query. This is helpful if you want to * ensure the most relevant results are returned. */ rerank?: boolean; /** * If true, rewrites the query to make it easier to find documents. This increases * the latency by about 400ms */ rewriteQuery?: boolean; } export namespace SearchExecuteParams { export interface Or { /** * Array of OR filter expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } } export interface And { /** * Array of AND filter expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } } } export interface SearchMemoriesParams { /** * Search query string */ q: string; /** * If true, aggregates information from multiple memories to create new synthesized * memories. The result will be a mix of aggregated and non-aggregated memories, * reranked by relevance to the query. Works in conjunction with reranking. */ aggregate?: boolean; /** * Optional tag this search should be containerized by. This can be an ID for your * user, a project ID, or any other identifier you wish to use to filter memories. */ containerTag?: string; /** * Filter search results by filepath. Exact match for full paths, prefix match if * ending with / */ filepath?: string; /** * Optional filters to apply to the search. Can be a JSON string or Query object. */ filters?: SearchMemoriesParams.Or | SearchMemoriesParams.And; include?: SearchMemoriesParams.Include; /** * Maximum number of results to return */ limit?: number; /** * If true, rerank the results based on the query. This is helpful if you want to * ensure the most relevant results are returned. */ rerank?: boolean; /** * If true, rewrites the query to make it easier to find documents. This increases * the latency by about 400ms */ rewriteQuery?: boolean; /** * Search mode. 'memories' searches only memory entries (default). 'hybrid' * searches both memories and document chunks. 'documents' searches only document * chunks. */ searchMode?: 'memories' | 'hybrid' | 'documents'; /** * Threshold / sensitivity for memories selection. 0 is least sensitive (returns * most memories, more results), 1 is most sensitive (returns lesser memories, * accurate results) */ threshold?: number; } export namespace SearchMemoriesParams { export interface Or { /** * Array of OR filter expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } } export interface And { /** * Array of AND filter expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions or nested expressions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } export interface And { /** * AND: Array of conditions or nested expressions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface UnionMember0 { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } export interface Or { /** * OR: Array of conditions */ OR: Array; } export namespace Or { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface Or { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } export interface And { /** * AND: Array of conditions */ AND: Array; } export namespace And { /** * A single filter condition based on metadata, numeric values, array contents, or * string matching */ export interface And { key: string; value: string; filterType?: 'metadata' | 'numeric' | 'array_contains' | 'string_contains'; ignoreCase?: boolean | 'true' | 'false'; negate?: boolean | 'true' | 'false'; numericOperator?: '>' | '<' | '>=' | '<=' | '='; } } } } } } } export interface Include { /** * @deprecated DEPRECATED: Use searchMode='hybrid' instead. If true, automatically * switches to hybrid mode. This field is kept for backward compatibility only. */ chunks?: boolean; documents?: boolean; /** * If true, include forgotten memories in search results. Forgotten memories are * memories that have been explicitly forgotten or have passed their expiration * date. */ forgottenMemories?: boolean; relatedMemories?: boolean; summaries?: boolean; } } export declare namespace Search { export { type SearchDocumentsResponse as SearchDocumentsResponse, type SearchExecuteResponse as SearchExecuteResponse, type SearchMemoriesResponse as SearchMemoriesResponse, type SearchDocumentsParams as SearchDocumentsParams, type SearchExecuteParams as SearchExecuteParams, type SearchMemoriesParams as SearchMemoriesParams, }; }