import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; import { ResultInfo } from "../pagination.ts"; export type { CloudflareOpError, CloudflareOpContext }; declare const AiSearchInstanceNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class AiSearchInstanceNotFound extends /*@__PURE__*/ AiSearchInstanceNotFound_base { } declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const InstanceAlreadyExists_base: S.Class, import("effect/Cause").YieldableError>; export declare class InstanceAlreadyExists extends /*@__PURE__*/ InstanceAlreadyExists_base { } declare const InvalidRoute_base: S.Class, import("effect/Cause").YieldableError>; export declare class InvalidRoute extends /*@__PURE__*/ InvalidRoute_base { } declare const InvalidTokenCredentials_base: S.Class, import("effect/Cause").YieldableError>; export declare class InvalidTokenCredentials extends /*@__PURE__*/ InvalidTokenCredentials_base { } declare const MissingSitemap_base: S.Class, import("effect/Cause").YieldableError>; export declare class MissingSitemap extends /*@__PURE__*/ MissingSitemap_base { } declare const NamespaceAlreadyExists_base: S.Class, import("effect/Cause").YieldableError>; export declare class NamespaceAlreadyExists extends /*@__PURE__*/ NamespaceAlreadyExists_base { } declare const NamespaceNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class NamespaceNotFound extends /*@__PURE__*/ NamespaceNotFound_base { } declare const NotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class NotFound extends /*@__PURE__*/ NotFound_base { } declare const SyncInCooldown_base: S.Class, import("effect/Cause").YieldableError>; export declare class SyncInCooldown extends /*@__PURE__*/ SyncInCooldown_base { } declare const TokenInUseByInstances_base: S.Class, import("effect/Cause").YieldableError>; export declare class TokenInUseByInstances extends /*@__PURE__*/ TokenInUseByInstances_base { } declare const TokenNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class TokenNotFound extends /*@__PURE__*/ TokenNotFound_base { } declare const UnableToConnect_base: S.Class, import("effect/Cause").YieldableError>; export declare class UnableToConnect extends /*@__PURE__*/ UnableToConnect_base { } declare const ValidationError_base: S.Class, import("effect/Cause").YieldableError>; export declare class ValidationError extends /*@__PURE__*/ ValidationError_base { } declare const WebCrawlerDomainNotOwned_base: S.Class, import("effect/Cause").YieldableError>; export declare class WebCrawlerDomainNotOwned extends /*@__PURE__*/ WebCrawlerDomainNotOwned_base { } export type InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type = "text"; export declare const InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type: any; export interface InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0 { text: string; type: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type; } export declare const InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0: S.Schema; export interface InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl { url: string; } export declare const InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl: S.Schema; export type InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type = "image_url"; export declare const InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type: any; export interface InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type; } export declare const InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1: S.Schema; export type InstancesChatCompletionsRequestMessagesItemContentCase1Item = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0 | InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1; export declare const InstancesChatCompletionsRequestMessagesItemContentCase1Item: any; export type InstancesChatCompletionsRequestMessagesItemContentCase1List = Array; export declare const InstancesChatCompletionsRequestMessagesItemContentCase1List: S.Schema; export type InstancesChatCompletionsRequestMessagesItemContent = string | InstancesChatCompletionsRequestMessagesItemContentCase1List; export declare const InstancesChatCompletionsRequestMessagesItemContent: any; export type InstancesChatCompletionsRequestMessagesItemRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const InstancesChatCompletionsRequestMessagesItemRole: any; export interface InstancesChatCompletionsRequestMessagesItem { content?: InstancesChatCompletionsRequestMessagesItemContent | null; role: InstancesChatCompletionsRequestMessagesItemRole | (string & {}); } export declare const InstancesChatCompletionsRequestMessagesItem: S.Schema; export type InstancesChatCompletionsRequestMessagesList = Array; export declare const InstancesChatCompletionsRequestMessagesList: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold: any; export interface InstancesChatCompletionsRequestAiSearchOptionsCache { cacheThreshold?: InstancesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold | (string & {}); enabled?: boolean; } export declare const InstancesChatCompletionsRequestAiSearchOptionsCache: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsQueryRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesChatCompletionsRequestAiSearchOptionsQueryRewriteModel: any; export interface InstancesChatCompletionsRequestAiSearchOptionsQueryRewrite { enabled?: boolean; model?: InstancesChatCompletionsRequestAiSearchOptionsQueryRewriteModel | (string & {}); rewritePrompt?: string; } export declare const InstancesChatCompletionsRequestAiSearchOptionsQueryRewrite: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesChatCompletionsRequestAiSearchOptionsRerankingModel: any; export interface InstancesChatCompletionsRequestAiSearchOptionsReranking { enabled?: boolean; matchThreshold?: number; model?: InstancesChatCompletionsRequestAiSearchOptionsRerankingModel | (string & {}); } export declare const InstancesChatCompletionsRequestAiSearchOptionsReranking: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection: any; export interface InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection | (string & {}); } export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItem: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList = Array; export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap = { [key: string]: unknown | undefined; }; export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap: S.Schema; export type InstancesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod = "max" | "rrf"; export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod: any; export type InstancesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode = "and" | "or"; export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode: any; export type InstancesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType = "vector" | "keyword" | "hybrid"; export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType: any; export interface InstancesChatCompletionsRequestAiSearchOptionsRetrieval { /** Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList; contextExpansion?: number; filters?: InstancesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap; fusionMethod?: InstancesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod | (string & {}); /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'. */ keywordMatchMode?: InstancesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode | (string & {}); matchThreshold?: number; maxNumResults?: number; retrievalType?: InstancesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType | (string & {}); returnOnFailure?: boolean; } export declare const InstancesChatCompletionsRequestAiSearchOptionsRetrieval: S.Schema; export interface InstancesChatCompletionsRequestAiSearchOptions { cache?: InstancesChatCompletionsRequestAiSearchOptionsCache; queryRewrite?: InstancesChatCompletionsRequestAiSearchOptionsQueryRewrite; reranking?: InstancesChatCompletionsRequestAiSearchOptionsReranking; retrieval?: InstancesChatCompletionsRequestAiSearchOptionsRetrieval; } export declare const InstancesChatCompletionsRequestAiSearchOptions: S.Schema; export type InstancesChatCompletionsRequestModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesChatCompletionsRequestModel: any; export interface ChatCompletionsInstanceRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; messages: InstancesChatCompletionsRequestMessagesList; aiSearchOptions?: InstancesChatCompletionsRequestAiSearchOptions; model?: InstancesChatCompletionsRequestModel | (string & {}); stream?: boolean; } export declare const ChatCompletionsInstanceRequest: S.Schema; export type InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type = "text"; export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type: any; export interface InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0 { text: string; type: InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type; } export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0: S.Schema; export type InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1ImageUrl: S.Schema; export type InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type = "image_url"; export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type: any; export interface InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type; } export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1: S.Schema; export type InstancesChatCompletionsResponseChoicesItemMessageContentCase1Item = InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0 | InstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1; export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1Item: any; export type InstancesChatCompletionsResponseChoicesItemMessageContentCase1List = Array; export declare const InstancesChatCompletionsResponseChoicesItemMessageContentCase1List: S.Schema; export type InstancesChatCompletionsResponseChoicesItemMessageContent = string | InstancesChatCompletionsResponseChoicesItemMessageContentCase1List; export declare const InstancesChatCompletionsResponseChoicesItemMessageContent: any; export type InstancesChatCompletionsResponseChoicesItemMessageRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const InstancesChatCompletionsResponseChoicesItemMessageRole: any; export interface InstancesChatCompletionsResponseChoicesItemMessage { content: InstancesChatCompletionsResponseChoicesItemMessageContent; role: InstancesChatCompletionsResponseChoicesItemMessageRole; } export declare const InstancesChatCompletionsResponseChoicesItemMessage: S.Schema; export interface InstancesChatCompletionsResponseChoicesItem { message: InstancesChatCompletionsResponseChoicesItemMessage; index?: number | null; } export declare const InstancesChatCompletionsResponseChoicesItem: S.Schema; export type InstancesChatCompletionsResponseChoicesList = Array; export declare const InstancesChatCompletionsResponseChoicesList: S.Schema; export type InstancesChatCompletionsResponseChunksItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const InstancesChatCompletionsResponseChunksItemItemMetadataMap: S.Schema; export interface InstancesChatCompletionsResponseChunksItemItem { key: string; metadata?: InstancesChatCompletionsResponseChunksItemItemMetadataMap | null; timestamp?: number | null; } export declare const InstancesChatCompletionsResponseChunksItemItem: S.Schema; export type InstancesChatCompletionsResponseChunksItemScoringDetailsFusionMethod = "rrf" | "max"; export declare const InstancesChatCompletionsResponseChunksItemScoringDetailsFusionMethod: any; export interface InstancesChatCompletionsResponseChunksItemScoringDetails { fusionMethod?: InstancesChatCompletionsResponseChunksItemScoringDetailsFusionMethod | null; keywordRank?: number | null; keywordScore?: number | null; rerankingScore?: number | null; vectorRank?: number | null; vectorScore?: number | null; } export declare const InstancesChatCompletionsResponseChunksItemScoringDetails: S.Schema; export interface InstancesChatCompletionsResponseChunksItem { id: string; score: number; text: string; type: string; item?: InstancesChatCompletionsResponseChunksItemItem | null; scoringDetails?: InstancesChatCompletionsResponseChunksItemScoringDetails | null; } export declare const InstancesChatCompletionsResponseChunksItem: S.Schema; export type InstancesChatCompletionsResponseChunksList = Array; export declare const InstancesChatCompletionsResponseChunksList: S.Schema; /** Raw response payload (operation does not use the standard v4 result envelope). */ export interface ChatCompletionsInstanceResponse { choices: InstancesChatCompletionsResponseChoicesList; chunks: InstancesChatCompletionsResponseChunksList; id?: string | null; model?: string | null; object?: string | null; } export declare const ChatCompletionsInstanceResponse: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsInstanceIdsList = Array; export declare const NamespacesChatCompletionsRequestAiSearchOptionsInstanceIdsList: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold: any; export interface NamespacesChatCompletionsRequestAiSearchOptionsCache { cacheThreshold?: NamespacesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold | (string & {}); enabled?: boolean; } export declare const NamespacesChatCompletionsRequestAiSearchOptionsCache: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsQueryRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesChatCompletionsRequestAiSearchOptionsQueryRewriteModel: any; export interface NamespacesChatCompletionsRequestAiSearchOptionsQueryRewrite { enabled?: boolean; model?: NamespacesChatCompletionsRequestAiSearchOptionsQueryRewriteModel | (string & {}); rewritePrompt?: string; } export declare const NamespacesChatCompletionsRequestAiSearchOptionsQueryRewrite: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRerankingModel: any; export interface NamespacesChatCompletionsRequestAiSearchOptionsReranking { enabled?: boolean; matchThreshold?: number; model?: NamespacesChatCompletionsRequestAiSearchOptionsRerankingModel | (string & {}); } export declare const NamespacesChatCompletionsRequestAiSearchOptionsReranking: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection: any; export interface NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection | (string & {}); } export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItem: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList = Array; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap = { [key: string]: unknown | undefined; }; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap: S.Schema; export type NamespacesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod = "max" | "rrf"; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod: any; export type NamespacesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode = "and" | "or"; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode: any; export type NamespacesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType = "vector" | "keyword" | "hybrid"; export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType: any; export interface NamespacesChatCompletionsRequestAiSearchOptionsRetrieval { /** Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList; contextExpansion?: number; filters?: NamespacesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap; fusionMethod?: NamespacesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod | (string & {}); /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'. */ keywordMatchMode?: NamespacesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode | (string & {}); matchThreshold?: number; maxNumResults?: number; retrievalType?: NamespacesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType | (string & {}); returnOnFailure?: boolean; } export declare const NamespacesChatCompletionsRequestAiSearchOptionsRetrieval: S.Schema; export interface NamespacesChatCompletionsRequestAiSearchOptions { instanceIds: NamespacesChatCompletionsRequestAiSearchOptionsInstanceIdsList; cache?: NamespacesChatCompletionsRequestAiSearchOptionsCache; queryRewrite?: NamespacesChatCompletionsRequestAiSearchOptionsQueryRewrite; reranking?: NamespacesChatCompletionsRequestAiSearchOptionsReranking; retrieval?: NamespacesChatCompletionsRequestAiSearchOptionsRetrieval; } export declare const NamespacesChatCompletionsRequestAiSearchOptions: S.Schema; export type NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type = "text"; export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type: any; export interface NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase0 { text: string; type: NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type; } export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase0: S.Schema; export type NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl: S.Schema; export type NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type = "image_url"; export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type: any; export interface NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type; } export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1: S.Schema; export type NamespacesChatCompletionsRequestMessagesItemContentCase1Item = NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase0 | NamespacesChatCompletionsRequestMessagesItemContentCase1ItemCase1; export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1Item: any; export type NamespacesChatCompletionsRequestMessagesItemContentCase1List = Array; export declare const NamespacesChatCompletionsRequestMessagesItemContentCase1List: S.Schema; export type NamespacesChatCompletionsRequestMessagesItemContent = string | NamespacesChatCompletionsRequestMessagesItemContentCase1List; export declare const NamespacesChatCompletionsRequestMessagesItemContent: any; export type NamespacesChatCompletionsRequestMessagesItemRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const NamespacesChatCompletionsRequestMessagesItemRole: any; export interface NamespacesChatCompletionsRequestMessagesItem { content?: NamespacesChatCompletionsRequestMessagesItemContent | null; role: NamespacesChatCompletionsRequestMessagesItemRole | (string & {}); } export declare const NamespacesChatCompletionsRequestMessagesItem: S.Schema; export type NamespacesChatCompletionsRequestMessagesList = Array; export declare const NamespacesChatCompletionsRequestMessagesList: S.Schema; export type NamespacesChatCompletionsRequestModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesChatCompletionsRequestModel: any; export interface ChatCompletionsNamespaceRequest { accountId: string; name: string; aiSearchOptions: NamespacesChatCompletionsRequestAiSearchOptions; messages: NamespacesChatCompletionsRequestMessagesList; model?: NamespacesChatCompletionsRequestModel | (string & {}); stream?: boolean; } export declare const ChatCompletionsNamespaceRequest: S.Schema; export type NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type = "text"; export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type: any; export interface NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0 { text: string; type: NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type; } export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0: S.Schema; export type NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1ImageUrl: S.Schema; export type NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type = "image_url"; export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type: any; export interface NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type; } export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1: S.Schema; export type NamespacesChatCompletionsResponseChoicesItemMessageContentCase1Item = NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0 | NamespacesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1; export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1Item: any; export type NamespacesChatCompletionsResponseChoicesItemMessageContentCase1List = Array; export declare const NamespacesChatCompletionsResponseChoicesItemMessageContentCase1List: S.Schema; export type NamespacesChatCompletionsResponseChoicesItemMessageContent = string | NamespacesChatCompletionsResponseChoicesItemMessageContentCase1List; export declare const NamespacesChatCompletionsResponseChoicesItemMessageContent: any; export type NamespacesChatCompletionsResponseChoicesItemMessageRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const NamespacesChatCompletionsResponseChoicesItemMessageRole: any; export interface NamespacesChatCompletionsResponseChoicesItemMessage { content: NamespacesChatCompletionsResponseChoicesItemMessageContent; role: NamespacesChatCompletionsResponseChoicesItemMessageRole; } export declare const NamespacesChatCompletionsResponseChoicesItemMessage: S.Schema; export interface NamespacesChatCompletionsResponseChoicesItem { message: NamespacesChatCompletionsResponseChoicesItemMessage; index?: number | null; } export declare const NamespacesChatCompletionsResponseChoicesItem: S.Schema; export type NamespacesChatCompletionsResponseChoicesList = Array; export declare const NamespacesChatCompletionsResponseChoicesList: S.Schema; export type NamespacesChatCompletionsResponseChunksItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const NamespacesChatCompletionsResponseChunksItemItemMetadataMap: S.Schema; export interface NamespacesChatCompletionsResponseChunksItemItem { key: string; metadata?: NamespacesChatCompletionsResponseChunksItemItemMetadataMap | null; timestamp?: number | null; } export declare const NamespacesChatCompletionsResponseChunksItemItem: S.Schema; export type NamespacesChatCompletionsResponseChunksItemScoringDetailsFusionMethod = "rrf" | "max"; export declare const NamespacesChatCompletionsResponseChunksItemScoringDetailsFusionMethod: any; export interface NamespacesChatCompletionsResponseChunksItemScoringDetails { fusionMethod?: NamespacesChatCompletionsResponseChunksItemScoringDetailsFusionMethod | null; keywordRank?: number | null; keywordScore?: number | null; rerankingScore?: number | null; vectorRank?: number | null; vectorScore?: number | null; } export declare const NamespacesChatCompletionsResponseChunksItemScoringDetails: S.Schema; export interface NamespacesChatCompletionsResponseChunksItem { id: string; instanceId: string; score: number; text: string; type: string; item?: NamespacesChatCompletionsResponseChunksItemItem | null; scoringDetails?: NamespacesChatCompletionsResponseChunksItemScoringDetails | null; } export declare const NamespacesChatCompletionsResponseChunksItem: S.Schema; export type NamespacesChatCompletionsResponseChunksList = Array; export declare const NamespacesChatCompletionsResponseChunksList: S.Schema; /** Raw response payload (operation does not use the standard v4 result envelope). */ export interface ChatCompletionsNamespaceResponse { choices: NamespacesChatCompletionsResponseChoicesList; chunks: NamespacesChatCompletionsResponseChunksList; id?: string | null; model?: string | null; object?: string | null; } export declare const ChatCompletionsNamespaceResponse: S.Schema; export type NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type = "text"; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type: any; export interface NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0 { text: string; type: NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0Type; } export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0: S.Schema; export type NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl: S.Schema; export type NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type = "image_url"; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type: any; export interface NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1Type; } export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1: S.Schema; export type NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1Item = NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase0 | NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1Item: any; export type NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1List = Array; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1List: S.Schema; export type NamespacesInstancesChatCompletionsRequestMessagesItemContent = string | NamespacesInstancesChatCompletionsRequestMessagesItemContentCase1List; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemContent: any; export type NamespacesInstancesChatCompletionsRequestMessagesItemRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const NamespacesInstancesChatCompletionsRequestMessagesItemRole: any; export interface NamespacesInstancesChatCompletionsRequestMessagesItem { content?: NamespacesInstancesChatCompletionsRequestMessagesItemContent | null; role: NamespacesInstancesChatCompletionsRequestMessagesItemRole | (string & {}); } export declare const NamespacesInstancesChatCompletionsRequestMessagesItem: S.Schema; export type NamespacesInstancesChatCompletionsRequestMessagesList = Array; export declare const NamespacesInstancesChatCompletionsRequestMessagesList: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold: any; export interface NamespacesInstancesChatCompletionsRequestAiSearchOptionsCache { cacheThreshold?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsCacheCacheThreshold | (string & {}); enabled?: boolean; } export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsCache: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsQueryRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsQueryRewriteModel: any; export interface NamespacesInstancesChatCompletionsRequestAiSearchOptionsQueryRewrite { enabled?: boolean; model?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsQueryRewriteModel | (string & {}); rewritePrompt?: string; } export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsQueryRewrite: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRerankingModel: any; export interface NamespacesInstancesChatCompletionsRequestAiSearchOptionsReranking { enabled?: boolean; matchThreshold?: number; model?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRerankingModel | (string & {}); } export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsReranking: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection: any; export interface NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItemDirection | (string & {}); } export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByItem: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList = Array; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap: S.Schema; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod: any; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode: any; export type NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType = "vector" | "keyword" | "hybrid"; export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType: any; export interface NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrieval { /** Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalBoostByList; contextExpansion?: number; filters?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalFiltersMap; fusionMethod?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalFusionMethod | (string & {}); /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'. */ keywordMatchMode?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalKeywordMatchMode | (string & {}); matchThreshold?: number; maxNumResults?: number; retrievalType?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrievalRetrievalType | (string & {}); returnOnFailure?: boolean; } export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrieval: S.Schema; export interface NamespacesInstancesChatCompletionsRequestAiSearchOptions { cache?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsCache; queryRewrite?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsQueryRewrite; reranking?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsReranking; retrieval?: NamespacesInstancesChatCompletionsRequestAiSearchOptionsRetrieval; } export declare const NamespacesInstancesChatCompletionsRequestAiSearchOptions: S.Schema; export type NamespacesInstancesChatCompletionsRequestModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesChatCompletionsRequestModel: any; export interface ChatCompletionsNamespaceInstanceRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; messages: NamespacesInstancesChatCompletionsRequestMessagesList; aiSearchOptions?: NamespacesInstancesChatCompletionsRequestAiSearchOptions; model?: NamespacesInstancesChatCompletionsRequestModel | (string & {}); stream?: boolean; } export declare const ChatCompletionsNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type = "text"; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type: any; export interface NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0 { text: string; type: NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0Type; } export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0: S.Schema; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1ImageUrl: S.Schema; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type = "image_url"; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type: any; export interface NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1Type; } export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1: S.Schema; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1Item = NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase0 | NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1ItemCase1; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1Item: any; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1List = Array; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1List: S.Schema; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageContent = string | NamespacesInstancesChatCompletionsResponseChoicesItemMessageContentCase1List; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageContent: any; export type NamespacesInstancesChatCompletionsResponseChoicesItemMessageRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessageRole: any; export interface NamespacesInstancesChatCompletionsResponseChoicesItemMessage { content: NamespacesInstancesChatCompletionsResponseChoicesItemMessageContent; role: NamespacesInstancesChatCompletionsResponseChoicesItemMessageRole; } export declare const NamespacesInstancesChatCompletionsResponseChoicesItemMessage: S.Schema; export interface NamespacesInstancesChatCompletionsResponseChoicesItem { message: NamespacesInstancesChatCompletionsResponseChoicesItemMessage; index?: number | null; } export declare const NamespacesInstancesChatCompletionsResponseChoicesItem: S.Schema; export type NamespacesInstancesChatCompletionsResponseChoicesList = Array; export declare const NamespacesInstancesChatCompletionsResponseChoicesList: S.Schema; export type NamespacesInstancesChatCompletionsResponseChunksItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesChatCompletionsResponseChunksItemItemMetadataMap: S.Schema; export interface NamespacesInstancesChatCompletionsResponseChunksItemItem { key: string; metadata?: NamespacesInstancesChatCompletionsResponseChunksItemItemMetadataMap | null; timestamp?: number | null; } export declare const NamespacesInstancesChatCompletionsResponseChunksItemItem: S.Schema; export type NamespacesInstancesChatCompletionsResponseChunksItemScoringDetailsFusionMethod = "rrf" | "max"; export declare const NamespacesInstancesChatCompletionsResponseChunksItemScoringDetailsFusionMethod: any; export interface NamespacesInstancesChatCompletionsResponseChunksItemScoringDetails { fusionMethod?: NamespacesInstancesChatCompletionsResponseChunksItemScoringDetailsFusionMethod | null; keywordRank?: number | null; keywordScore?: number | null; rerankingScore?: number | null; vectorRank?: number | null; vectorScore?: number | null; } export declare const NamespacesInstancesChatCompletionsResponseChunksItemScoringDetails: S.Schema; export interface NamespacesInstancesChatCompletionsResponseChunksItem { id: string; score: number; text: string; type: string; item?: NamespacesInstancesChatCompletionsResponseChunksItemItem | null; scoringDetails?: NamespacesInstancesChatCompletionsResponseChunksItemScoringDetails | null; } export declare const NamespacesInstancesChatCompletionsResponseChunksItem: S.Schema; export type NamespacesInstancesChatCompletionsResponseChunksList = Array; export declare const NamespacesInstancesChatCompletionsResponseChunksList: S.Schema; /** Raw response payload (operation does not use the standard v4 result envelope). */ export interface ChatCompletionsNamespaceInstanceResponse { choices: NamespacesInstancesChatCompletionsResponseChoicesList; chunks: NamespacesInstancesChatCompletionsResponseChunksList; id?: string | null; model?: string | null; object?: string | null; } export declare const ChatCompletionsNamespaceInstanceResponse: S.Schema; export interface ChunksNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; itemId: string; limit?: number; offset?: number; } export declare const ChunksNamespaceInstanceItemRequest: S.Schema; export type NamespacesInstancesItemsChunksResultItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesItemsChunksResultItemItemMetadataMap: S.Schema; export interface NamespacesInstancesItemsChunksResultItemItem { key: string; metadata?: NamespacesInstancesItemsChunksResultItemItemMetadataMap | null; timestamp?: number | null; } export declare const NamespacesInstancesItemsChunksResultItemItem: S.Schema; export interface NamespacesInstancesItemsChunksResultItem { id: string; item: NamespacesInstancesItemsChunksResultItemItem; text: string; endByte?: number | null; startByte?: number | null; } export declare const NamespacesInstancesItemsChunksResultItem: S.Schema; export type NamespacesInstancesItemsChunksResultList = Array; export declare const NamespacesInstancesItemsChunksResultList: S.Schema; export type ChunksNamespaceInstanceItemResponse = NamespacesInstancesItemsChunksResultList; export declare const ChunksNamespaceInstanceItemResponse: S.Schema; export type InstancesCreateRequestAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesCreateRequestAiSearchModel: any; export type InstancesCreateRequestCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesCreateRequestCacheThreshold: any; export type InstancesCreateRequestCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesCreateRequestCacheTtl: any; export type InstancesCreateRequestCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesCreateRequestCustomMetadataItemDataType: any; export interface InstancesCreateRequestCustomMetadataItem { dataType: InstancesCreateRequestCustomMetadataItemDataType | (string & {}); fieldName: string; } export declare const InstancesCreateRequestCustomMetadataItem: S.Schema; export type InstancesCreateRequestCustomMetadataList = Array; export declare const InstancesCreateRequestCustomMetadataList: S.Schema; export type InstancesCreateRequestEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesCreateRequestEmbeddingModel: any; export type InstancesCreateRequestFusionMethod = "max" | "rrf"; export declare const InstancesCreateRequestFusionMethod: any; export interface InstancesCreateRequestIndexMethod { /** Enable keyword (BM25) storage backend. */ keyword: boolean; /** Enable vector (embedding) storage backend. */ vector: boolean; } export declare const InstancesCreateRequestIndexMethod: S.Schema; export type InstancesCreateRequestIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesCreateRequestIndexingOptionsKeywordTokenizer: any; export interface InstancesCreateRequestIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesCreateRequestIndexingOptionsKeywordTokenizer | (string & {}); } export declare const InstancesCreateRequestIndexingOptions: S.Schema; export interface InstancesCreateRequestMetadata { createdFromAisearchWizard?: boolean; workerDomain?: string; } export declare const InstancesCreateRequestMetadata: S.Schema; export type InstancesCreateRequestPublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesCreateRequestPublicEndpointParamsAuthorizedHostsList: S.Schema; export interface InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint { /** Disable chat completions endpoint for this public endpoint */ disabled?: boolean; } export declare const InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesCreateRequestPublicEndpointParamsCustomDomainsList = Array; export declare const InstancesCreateRequestPublicEndpointParamsCustomDomainsList: S.Schema; export interface InstancesCreateRequestPublicEndpointParamsMcp { description?: string; /** Disable MCP endpoint for this public endpoint */ disabled?: boolean; } export declare const InstancesCreateRequestPublicEndpointParamsMcp: S.Schema; export type InstancesCreateRequestPublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesCreateRequestPublicEndpointParamsRateLimitTechnique: any; export interface InstancesCreateRequestPublicEndpointParamsRateLimit { periodMs?: number; requests?: number; technique?: InstancesCreateRequestPublicEndpointParamsRateLimitTechnique | (string & {}); } export declare const InstancesCreateRequestPublicEndpointParamsRateLimit: S.Schema; export interface InstancesCreateRequestPublicEndpointParamsSearchEndpoint { /** Disable search endpoint for this public endpoint */ disabled?: boolean; } export declare const InstancesCreateRequestPublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesCreateRequestPublicEndpointParams { authorizedHosts?: InstancesCreateRequestPublicEndpointParamsAuthorizedHostsList; chatCompletionsEndpoint?: InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesCreateRequestPublicEndpointParamsCustomDomainsList; enabled?: boolean; mcp?: InstancesCreateRequestPublicEndpointParamsMcp; rateLimit?: InstancesCreateRequestPublicEndpointParamsRateLimit; searchEndpoint?: InstancesCreateRequestPublicEndpointParamsSearchEndpoint; } export declare const InstancesCreateRequestPublicEndpointParams: S.Schema; export type InstancesCreateRequestRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesCreateRequestRerankingModel: any; export type InstancesCreateRequestRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesCreateRequestRetrievalOptionsBoostByItemDirection: any; export interface InstancesCreateRequestRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesCreateRequestRetrievalOptionsBoostByItemDirection | (string & {}); } export declare const InstancesCreateRequestRetrievalOptionsBoostByItem: S.Schema; export type InstancesCreateRequestRetrievalOptionsBoostByList = Array; export declare const InstancesCreateRequestRetrievalOptionsBoostByList: S.Schema; export type InstancesCreateRequestRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesCreateRequestRetrievalOptionsKeywordMatchMode: any; export interface InstancesCreateRequestRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesCreateRequestRetrievalOptionsBoostByList; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesCreateRequestRetrievalOptionsKeywordMatchMode | (string & {}); } export declare const InstancesCreateRequestRetrievalOptions: S.Schema; export type InstancesCreateRequestRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesCreateRequestRewriteModel: any; export type InstancesCreateRequestSourceParamsExcludeItemsList = Array; export declare const InstancesCreateRequestSourceParamsExcludeItemsList: S.Schema; export type InstancesCreateRequestSourceParamsIncludeItemsList = Array; export declare const InstancesCreateRequestSourceParamsIncludeItemsList: S.Schema; export interface InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem { /** Glob pattern to match against the page URL path. Uses standard glob syntax: * matches within a segment, ** crosses directories. */ path: string; /** CSS selector to extract content from pages matching the path pattern. Must not contain disallowed characters (;, `, $, {, }, ). Must target a single element; if multiple elements match, the selector is ignored and the full page is used. */ selector: string; } export declare const InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesCreateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesCreateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesCreateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesCreateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesCreateRequestSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesCreateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap; includeImages?: boolean; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesCreateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList; useBrowserRendering?: boolean; } export declare const InstancesCreateRequestSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesCreateRequestSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesCreateRequestSourceParamsWebCrawlerParseType: any; export type WebCrawlerCrawlOptionsSource = "all" | "sitemaps" | "links"; export declare const WebCrawlerCrawlOptionsSource: any; export interface WebCrawlerCrawlOptions { /** Maximum crawl depth from the seed URL. */ depth?: number | null; includeExternalLinks?: boolean | null; includeSubdomains?: boolean | null; maxAge?: number | null; /** Where the crawler discovers URLs: sitemaps, page links, or both. Use links for sitemap-less seeds (avoids missing_sitemap rejections). */ source?: WebCrawlerCrawlOptionsSource | (string & {}) | null; } export declare const WebCrawlerCrawlOptions: S.Schema; export interface InstancesCreateRequestSourceParamsWebCrawler { parseOptions?: InstancesCreateRequestSourceParamsWebCrawlerParseOptions; parseType?: InstancesCreateRequestSourceParamsWebCrawlerParseType | (string & {}); /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions; } export declare const InstancesCreateRequestSourceParamsWebCrawler: S.Schema; export interface InstancesCreateRequestSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesCreateRequestSourceParamsExcludeItemsList; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesCreateRequestSourceParamsIncludeItemsList; prefix?: string; r2Jurisdiction?: string; webCrawler?: InstancesCreateRequestSourceParamsWebCrawler; } export declare const InstancesCreateRequestSourceParams: S.Schema; export type InstancesCreateRequestSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesCreateRequestSyncInterval: any; export type InstancesCreateRequestType = "r2" | "web-crawler"; export declare const InstancesCreateRequestType: any; export interface CreateInstanceRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; aiGatewayId?: string; aiSearchModel?: InstancesCreateRequestAiSearchModel | (string & {}); cache?: boolean; cacheThreshold?: InstancesCreateRequestCacheThreshold | (string & {}); /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesCreateRequestCacheTtl | (number & {}); chunk?: boolean; chunkOverlap?: number; chunkSize?: number; customMetadata?: InstancesCreateRequestCustomMetadataList; embeddingModel?: InstancesCreateRequestEmbeddingModel | (string & {}); fusionMethod?: InstancesCreateRequestFusionMethod | (string & {}); /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod; indexingOptions?: InstancesCreateRequestIndexingOptions; maxNumResults?: number; metadata?: InstancesCreateRequestMetadata; publicEndpointParams?: InstancesCreateRequestPublicEndpointParams; reranking?: boolean; rerankingModel?: InstancesCreateRequestRerankingModel | (string & {}); retrievalOptions?: InstancesCreateRequestRetrievalOptions; rewriteModel?: InstancesCreateRequestRewriteModel | (string & {}); rewriteQuery?: boolean; scoreThreshold?: number; source?: string; sourceParams?: InstancesCreateRequestSourceParams; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesCreateRequestSyncInterval | (number & {}); tokenId?: string; type?: InstancesCreateRequestType | (string & {}); } export declare const CreateInstanceRequest: S.Schema; export type InstancesCreateResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesCreateResponseAiSearchModel: any; export type InstancesCreateResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesCreateResponseCacheThreshold: any; export type InstancesCreateResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesCreateResponseCacheTtl: any; export type InstancesCreateResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesCreateResponseCustomMetadataItemDataType: any; export interface InstancesCreateResponseCustomMetadataItem { dataType: InstancesCreateResponseCustomMetadataItemDataType; fieldName: string; } export declare const InstancesCreateResponseCustomMetadataItem: S.Schema; export type InstancesCreateResponseCustomMetadataList = Array; export declare const InstancesCreateResponseCustomMetadataList: S.Schema; export type InstancesCreateResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesCreateResponseEmbeddingModel: any; export type InstancesCreateResponseFusionMethod = "max" | "rrf"; export declare const InstancesCreateResponseFusionMethod: any; export type InstancesCreateResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const InstancesCreateResponseIndexMethod: S.Schema; export type InstancesCreateResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesCreateResponseIndexingOptionsKeywordTokenizer: any; export interface InstancesCreateResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesCreateResponseIndexingOptionsKeywordTokenizer | null; } export declare const InstancesCreateResponseIndexingOptions: S.Schema; export interface InstancesCreateResponseMetadata { createdFromAisearchWizard?: boolean | null; workerDomain?: string | null; } export declare const InstancesCreateResponseMetadata: S.Schema; export type InstancesCreateResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesCreateResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export interface InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint { /** Disable chat completions endpoint for this public endpoint */ disabled?: boolean | null; } export declare const InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesCreateResponsePublicEndpointParamsCustomDomainsList = Array; export declare const InstancesCreateResponsePublicEndpointParamsCustomDomainsList: S.Schema; export interface InstancesCreateResponsePublicEndpointParamsMcp { description?: string | null; /** Disable MCP endpoint for this public endpoint */ disabled?: boolean | null; } export declare const InstancesCreateResponsePublicEndpointParamsMcp: S.Schema; export type InstancesCreateResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesCreateResponsePublicEndpointParamsRateLimitTechnique: any; export interface InstancesCreateResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: InstancesCreateResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const InstancesCreateResponsePublicEndpointParamsRateLimit: S.Schema; export interface InstancesCreateResponsePublicEndpointParamsSearchEndpoint { /** Disable search endpoint for this public endpoint */ disabled?: boolean | null; } export declare const InstancesCreateResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesCreateResponsePublicEndpointParams { authorizedHosts?: InstancesCreateResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesCreateResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: InstancesCreateResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const InstancesCreateResponsePublicEndpointParams: S.Schema; export type InstancesCreateResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesCreateResponseRerankingModel: any; export type InstancesCreateResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesCreateResponseRetrievalOptionsBoostByItemDirection: any; export interface InstancesCreateResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesCreateResponseRetrievalOptionsBoostByItemDirection | null; } export declare const InstancesCreateResponseRetrievalOptionsBoostByItem: S.Schema; export type InstancesCreateResponseRetrievalOptionsBoostByList = Array; export declare const InstancesCreateResponseRetrievalOptionsBoostByList: S.Schema; export type InstancesCreateResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesCreateResponseRetrievalOptionsKeywordMatchMode: any; export interface InstancesCreateResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesCreateResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesCreateResponseRetrievalOptionsKeywordMatchMode | null; } export declare const InstancesCreateResponseRetrievalOptions: S.Schema; export type InstancesCreateResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesCreateResponseRewriteModel: any; export type InstancesCreateResponseSourceParamsExcludeItemsList = Array; export declare const InstancesCreateResponseSourceParamsExcludeItemsList: S.Schema; export type InstancesCreateResponseSourceParamsIncludeItemsList = Array; export declare const InstancesCreateResponseSourceParamsIncludeItemsList: S.Schema; export type InstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const InstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesCreateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesCreateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesCreateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesCreateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesCreateResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesCreateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesCreateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const InstancesCreateResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesCreateResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesCreateResponseSourceParamsWebCrawlerParseType: any; export interface InstancesCreateResponseSourceParamsWebCrawler { parseOptions?: InstancesCreateResponseSourceParamsWebCrawlerParseOptions | null; parseType?: InstancesCreateResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const InstancesCreateResponseSourceParamsWebCrawler: S.Schema; export interface InstancesCreateResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesCreateResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesCreateResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: InstancesCreateResponseSourceParamsWebCrawler | null; } export declare const InstancesCreateResponseSourceParams: S.Schema; export type InstancesCreateResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesCreateResponseSyncInterval: any; export type InstancesCreateResponseType = "r2" | "web-crawler"; export declare const InstancesCreateResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: InstancesCreateResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: InstancesCreateResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesCreateResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: InstancesCreateResponseCustomMetadataList | null; embeddingModel?: InstancesCreateResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: InstancesCreateResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: InstancesCreateResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: InstancesCreateResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: InstancesCreateResponseRerankingModel | null; retrievalOptions?: InstancesCreateResponseRetrievalOptions | null; rewriteModel?: InstancesCreateResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: InstancesCreateResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesCreateResponseSyncInterval | null; tokenId?: string | null; type?: InstancesCreateResponseType | null; } export declare const CreateInstanceResponse: S.Schema; export interface CreateInstanceJobRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; description?: string; } export declare const CreateInstanceJobRequest: S.Schema; export type InstancesJobsCreateResponseSource = "user" | "schedule"; export declare const InstancesJobsCreateResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateInstanceJobResponse { id: string; source: InstancesJobsCreateResponseSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const CreateInstanceJobResponse: S.Schema; export interface CreateNamespaceRequest { accountId: string; name: string; /** Optional description for the namespace. Max 256 characters. */ description?: string; } export declare const CreateNamespaceRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateNamespaceResponse { createdAt: string; name: string; /** Optional description for the namespace. Max 256 characters. */ description?: string | null; } export declare const CreateNamespaceResponse: S.Schema; export type NamespacesInstancesCreateRequestAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesCreateRequestAiSearchModel: any; export type NamespacesInstancesCreateRequestCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesCreateRequestCacheThreshold: any; export type NamespacesInstancesCreateRequestCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesCreateRequestCacheTtl: any; export type NamespacesInstancesCreateRequestCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesCreateRequestCustomMetadataItemDataType: any; export interface NamespacesInstancesCreateRequestCustomMetadataItem { dataType: NamespacesInstancesCreateRequestCustomMetadataItemDataType | (string & {}); fieldName: string; } export declare const NamespacesInstancesCreateRequestCustomMetadataItem: S.Schema; export type NamespacesInstancesCreateRequestCustomMetadataList = Array; export declare const NamespacesInstancesCreateRequestCustomMetadataList: S.Schema; export type NamespacesInstancesCreateRequestEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesCreateRequestEmbeddingModel: any; export type NamespacesInstancesCreateRequestFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesCreateRequestFusionMethod: any; export type NamespacesInstancesCreateRequestIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesCreateRequestIndexMethod: S.Schema; export type NamespacesInstancesCreateRequestIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesCreateRequestIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesCreateRequestIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesCreateRequestIndexingOptionsKeywordTokenizer | (string & {}); } export declare const NamespacesInstancesCreateRequestIndexingOptions: S.Schema; export type NamespacesInstancesCreateRequestMetadata = InstancesCreateRequestMetadata; export declare const NamespacesInstancesCreateRequestMetadata: S.Schema; export type NamespacesInstancesCreateRequestPublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesCreateRequestPublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint = InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesCreateRequestPublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesCreateRequestPublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesCreateRequestPublicEndpointParamsMcp = InstancesCreateRequestPublicEndpointParamsMcp; export declare const NamespacesInstancesCreateRequestPublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesCreateRequestPublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesCreateRequestPublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesCreateRequestPublicEndpointParamsRateLimit { periodMs?: number; requests?: number; technique?: NamespacesInstancesCreateRequestPublicEndpointParamsRateLimitTechnique | (string & {}); } export declare const NamespacesInstancesCreateRequestPublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesCreateRequestPublicEndpointParamsSearchEndpoint = InstancesCreateRequestPublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesCreateRequestPublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesCreateRequestPublicEndpointParams { authorizedHosts?: NamespacesInstancesCreateRequestPublicEndpointParamsAuthorizedHostsList; chatCompletionsEndpoint?: InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesCreateRequestPublicEndpointParamsCustomDomainsList; enabled?: boolean; mcp?: InstancesCreateRequestPublicEndpointParamsMcp; rateLimit?: NamespacesInstancesCreateRequestPublicEndpointParamsRateLimit; searchEndpoint?: InstancesCreateRequestPublicEndpointParamsSearchEndpoint; } export declare const NamespacesInstancesCreateRequestPublicEndpointParams: S.Schema; export type NamespacesInstancesCreateRequestRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesCreateRequestRerankingModel: any; export type NamespacesInstancesCreateRequestRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesCreateRequestRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesCreateRequestRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesCreateRequestRetrievalOptionsBoostByItemDirection | (string & {}); } export declare const NamespacesInstancesCreateRequestRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesCreateRequestRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesCreateRequestRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesCreateRequestRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesCreateRequestRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesCreateRequestRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesCreateRequestRetrievalOptionsBoostByList; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesCreateRequestRetrievalOptionsKeywordMatchMode | (string & {}); } export declare const NamespacesInstancesCreateRequestRetrievalOptions: S.Schema; export type NamespacesInstancesCreateRequestRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesCreateRequestRewriteModel: any; export type NamespacesInstancesCreateRequestSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesCreateRequestSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesCreateRequestSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesCreateRequestSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap; includeImages?: boolean; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList; useBrowserRendering?: boolean; } export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesCreateRequestSourceParamsWebCrawler { parseOptions?: NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseOptions; parseType?: NamespacesInstancesCreateRequestSourceParamsWebCrawlerParseType | (string & {}); /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions; } export declare const NamespacesInstancesCreateRequestSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesCreateRequestSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesCreateRequestSourceParamsExcludeItemsList; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesCreateRequestSourceParamsIncludeItemsList; prefix?: string; r2Jurisdiction?: string; webCrawler?: NamespacesInstancesCreateRequestSourceParamsWebCrawler; } export declare const NamespacesInstancesCreateRequestSourceParams: S.Schema; export type NamespacesInstancesCreateRequestSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesCreateRequestSyncInterval: any; export type NamespacesInstancesCreateRequestType = "r2" | "web-crawler"; export declare const NamespacesInstancesCreateRequestType: any; export interface CreateNamespaceInstanceRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; aiGatewayId?: string; aiSearchModel?: NamespacesInstancesCreateRequestAiSearchModel | (string & {}); cache?: boolean; cacheThreshold?: NamespacesInstancesCreateRequestCacheThreshold | (string & {}); /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesCreateRequestCacheTtl | (number & {}); chunk?: boolean; chunkOverlap?: number; chunkSize?: number; customMetadata?: NamespacesInstancesCreateRequestCustomMetadataList; embeddingModel?: NamespacesInstancesCreateRequestEmbeddingModel | (string & {}); fusionMethod?: NamespacesInstancesCreateRequestFusionMethod | (string & {}); /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod; indexingOptions?: NamespacesInstancesCreateRequestIndexingOptions; maxNumResults?: number; metadata?: InstancesCreateRequestMetadata; publicEndpointParams?: NamespacesInstancesCreateRequestPublicEndpointParams; reranking?: boolean; rerankingModel?: NamespacesInstancesCreateRequestRerankingModel | (string & {}); retrievalOptions?: NamespacesInstancesCreateRequestRetrievalOptions; rewriteModel?: NamespacesInstancesCreateRequestRewriteModel | (string & {}); rewriteQuery?: boolean; scoreThreshold?: number; source?: string; sourceParams?: NamespacesInstancesCreateRequestSourceParams; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesCreateRequestSyncInterval | (number & {}); tokenId?: string; type?: NamespacesInstancesCreateRequestType | (string & {}); } export declare const CreateNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesCreateResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesCreateResponseAiSearchModel: any; export type NamespacesInstancesCreateResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesCreateResponseCacheThreshold: any; export type NamespacesInstancesCreateResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesCreateResponseCacheTtl: any; export type NamespacesInstancesCreateResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesCreateResponseCustomMetadataItemDataType: any; export interface NamespacesInstancesCreateResponseCustomMetadataItem { dataType: NamespacesInstancesCreateResponseCustomMetadataItemDataType; fieldName: string; } export declare const NamespacesInstancesCreateResponseCustomMetadataItem: S.Schema; export type NamespacesInstancesCreateResponseCustomMetadataList = Array; export declare const NamespacesInstancesCreateResponseCustomMetadataList: S.Schema; export type NamespacesInstancesCreateResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesCreateResponseEmbeddingModel: any; export type NamespacesInstancesCreateResponseFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesCreateResponseFusionMethod: any; export type NamespacesInstancesCreateResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesCreateResponseIndexMethod: S.Schema; export type NamespacesInstancesCreateResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesCreateResponseIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesCreateResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesCreateResponseIndexingOptionsKeywordTokenizer | null; } export declare const NamespacesInstancesCreateResponseIndexingOptions: S.Schema; export type NamespacesInstancesCreateResponseMetadata = InstancesCreateResponseMetadata; export declare const NamespacesInstancesCreateResponseMetadata: S.Schema; export type NamespacesInstancesCreateResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesCreateResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesCreateResponsePublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesCreateResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesCreateResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const NamespacesInstancesCreateResponsePublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesCreateResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesCreateResponsePublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesCreateResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: NamespacesInstancesCreateResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const NamespacesInstancesCreateResponsePublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesCreateResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesCreateResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesCreateResponsePublicEndpointParams { authorizedHosts?: NamespacesInstancesCreateResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesCreateResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: NamespacesInstancesCreateResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const NamespacesInstancesCreateResponsePublicEndpointParams: S.Schema; export type NamespacesInstancesCreateResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesCreateResponseRerankingModel: any; export type NamespacesInstancesCreateResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesCreateResponseRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesCreateResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesCreateResponseRetrievalOptionsBoostByItemDirection | null; } export declare const NamespacesInstancesCreateResponseRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesCreateResponseRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesCreateResponseRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesCreateResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesCreateResponseRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesCreateResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesCreateResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesCreateResponseRetrievalOptionsKeywordMatchMode | null; } export declare const NamespacesInstancesCreateResponseRetrievalOptions: S.Schema; export type NamespacesInstancesCreateResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesCreateResponseRewriteModel: any; export type NamespacesInstancesCreateResponseSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesCreateResponseSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesCreateResponseSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesCreateResponseSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesCreateResponseSourceParamsWebCrawler { parseOptions?: NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseOptions | null; parseType?: NamespacesInstancesCreateResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const NamespacesInstancesCreateResponseSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesCreateResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesCreateResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesCreateResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: NamespacesInstancesCreateResponseSourceParamsWebCrawler | null; } export declare const NamespacesInstancesCreateResponseSourceParams: S.Schema; export type NamespacesInstancesCreateResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesCreateResponseSyncInterval: any; export type NamespacesInstancesCreateResponseType = "r2" | "web-crawler"; export declare const NamespacesInstancesCreateResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateNamespaceInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: NamespacesInstancesCreateResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: NamespacesInstancesCreateResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesCreateResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: NamespacesInstancesCreateResponseCustomMetadataList | null; embeddingModel?: NamespacesInstancesCreateResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: NamespacesInstancesCreateResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: NamespacesInstancesCreateResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: NamespacesInstancesCreateResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: NamespacesInstancesCreateResponseRerankingModel | null; retrievalOptions?: NamespacesInstancesCreateResponseRetrievalOptions | null; rewriteModel?: NamespacesInstancesCreateResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: NamespacesInstancesCreateResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesCreateResponseSyncInterval | null; tokenId?: string | null; type?: NamespacesInstancesCreateResponseType | null; } export declare const CreateNamespaceInstanceResponse: S.Schema; export interface CreateNamespaceInstanceJobRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; description?: string; } export declare const CreateNamespaceInstanceJobRequest: S.Schema; export type NamespacesInstancesJobsCreateResponseSource = "user" | "schedule"; export declare const NamespacesInstancesJobsCreateResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateNamespaceInstanceJobResponse { id: string; source: NamespacesInstancesJobsCreateResponseSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const CreateNamespaceInstanceJobResponse: S.Schema; export type NamespacesInstancesItemsCreateOrUpdateRequestNextAction = "INDEX"; export declare const NamespacesInstancesItemsCreateOrUpdateRequestNextAction: any; export interface CreateOrUpdateNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; /** Item key / filename. Must not exceed 128 characters. */ key: string; nextAction: NamespacesInstancesItemsCreateOrUpdateRequestNextAction | (string & {}); /** Wait for indexing to fully complete before responding. On RAGs with vector indexing enabled, this additionally waits for Vectorize ingestion confirmation (up to 40s) so the returned item reflects a queryable state. On timeout the item is returned in `running` state and the background alarm continues polling. Defaults to false. */ waitForCompletion?: boolean; } export declare const CreateOrUpdateNamespaceInstanceItemRequest: S.Schema; export type NamespacesInstancesItemsCreateOrUpdateResponseNextAction = "INDEX" | "DELETE"; export declare const NamespacesInstancesItemsCreateOrUpdateResponseNextAction: any; export type NamespacesInstancesItemsCreateOrUpdateResponseStatus = "queued" | "running" | "completed" | "error" | "skipped" | "outdated"; export declare const NamespacesInstancesItemsCreateOrUpdateResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateOrUpdateNamespaceInstanceItemResponse { id: string; checksum: string; chunksCount: number; createdAt: string; fileSize: number; key: string; lastSeenAt: string; namespace: string; nextAction: NamespacesInstancesItemsCreateOrUpdateResponseNextAction; /** Identifies which data source this item belongs to. "builtin" for uploaded files, "{type}:{source}" for external sources, null for legacy items. */ sourceId: string; status: NamespacesInstancesItemsCreateOrUpdateResponseStatus; error?: string | null; } export declare const CreateOrUpdateNamespaceInstanceItemResponse: S.Schema; export interface CreateTokenRequest { accountId: string; cfApiId: string; cfApiKey: string; name: string; legacy?: boolean; } export declare const CreateTokenRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateTokenResponse { id: string; cfApiId: string; createdAt: string; modifiedAt: string; name: string; createdBy?: string | null; enabled?: boolean | null; legacy?: boolean | null; modifiedBy?: string | null; } export declare const CreateTokenResponse: S.Schema; export interface DeleteInstanceRequest { accountId: string; id: string; } export declare const DeleteInstanceRequest: S.Schema; export type InstancesDeleteResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesDeleteResponseAiSearchModel: any; export type InstancesDeleteResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesDeleteResponseCacheThreshold: any; export type InstancesDeleteResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesDeleteResponseCacheTtl: any; export type InstancesDeleteResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesDeleteResponseCustomMetadataItemDataType: any; export interface InstancesDeleteResponseCustomMetadataItem { dataType: InstancesDeleteResponseCustomMetadataItemDataType; fieldName: string; } export declare const InstancesDeleteResponseCustomMetadataItem: S.Schema; export type InstancesDeleteResponseCustomMetadataList = Array; export declare const InstancesDeleteResponseCustomMetadataList: S.Schema; export type InstancesDeleteResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesDeleteResponseEmbeddingModel: any; export type InstancesDeleteResponseFusionMethod = "max" | "rrf"; export declare const InstancesDeleteResponseFusionMethod: any; export type InstancesDeleteResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const InstancesDeleteResponseIndexMethod: S.Schema; export type InstancesDeleteResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesDeleteResponseIndexingOptionsKeywordTokenizer: any; export interface InstancesDeleteResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesDeleteResponseIndexingOptionsKeywordTokenizer | null; } export declare const InstancesDeleteResponseIndexingOptions: S.Schema; export type InstancesDeleteResponseMetadata = InstancesCreateResponseMetadata; export declare const InstancesDeleteResponseMetadata: S.Schema; export type InstancesDeleteResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesDeleteResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type InstancesDeleteResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const InstancesDeleteResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesDeleteResponsePublicEndpointParamsCustomDomainsList = Array; export declare const InstancesDeleteResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type InstancesDeleteResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const InstancesDeleteResponsePublicEndpointParamsMcp: S.Schema; export type InstancesDeleteResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesDeleteResponsePublicEndpointParamsRateLimitTechnique: any; export interface InstancesDeleteResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: InstancesDeleteResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const InstancesDeleteResponsePublicEndpointParamsRateLimit: S.Schema; export type InstancesDeleteResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const InstancesDeleteResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesDeleteResponsePublicEndpointParams { authorizedHosts?: InstancesDeleteResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesDeleteResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: InstancesDeleteResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const InstancesDeleteResponsePublicEndpointParams: S.Schema; export type InstancesDeleteResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesDeleteResponseRerankingModel: any; export type InstancesDeleteResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesDeleteResponseRetrievalOptionsBoostByItemDirection: any; export interface InstancesDeleteResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesDeleteResponseRetrievalOptionsBoostByItemDirection | null; } export declare const InstancesDeleteResponseRetrievalOptionsBoostByItem: S.Schema; export type InstancesDeleteResponseRetrievalOptionsBoostByList = Array; export declare const InstancesDeleteResponseRetrievalOptionsBoostByList: S.Schema; export type InstancesDeleteResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesDeleteResponseRetrievalOptionsKeywordMatchMode: any; export interface InstancesDeleteResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesDeleteResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesDeleteResponseRetrievalOptionsKeywordMatchMode | null; } export declare const InstancesDeleteResponseRetrievalOptions: S.Schema; export type InstancesDeleteResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesDeleteResponseRewriteModel: any; export type InstancesDeleteResponseSourceParamsExcludeItemsList = Array; export declare const InstancesDeleteResponseSourceParamsExcludeItemsList: S.Schema; export type InstancesDeleteResponseSourceParamsIncludeItemsList = Array; export declare const InstancesDeleteResponseSourceParamsIncludeItemsList: S.Schema; export type InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesDeleteResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesDeleteResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const InstancesDeleteResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesDeleteResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesDeleteResponseSourceParamsWebCrawlerParseType: any; export interface InstancesDeleteResponseSourceParamsWebCrawler { parseOptions?: InstancesDeleteResponseSourceParamsWebCrawlerParseOptions | null; parseType?: InstancesDeleteResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const InstancesDeleteResponseSourceParamsWebCrawler: S.Schema; export interface InstancesDeleteResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesDeleteResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesDeleteResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: InstancesDeleteResponseSourceParamsWebCrawler | null; } export declare const InstancesDeleteResponseSourceParams: S.Schema; export type InstancesDeleteResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesDeleteResponseSyncInterval: any; export type InstancesDeleteResponseType = "r2" | "web-crawler"; export declare const InstancesDeleteResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: InstancesDeleteResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: InstancesDeleteResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesDeleteResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: InstancesDeleteResponseCustomMetadataList | null; embeddingModel?: InstancesDeleteResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: InstancesDeleteResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: InstancesDeleteResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: InstancesDeleteResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: InstancesDeleteResponseRerankingModel | null; retrievalOptions?: InstancesDeleteResponseRetrievalOptions | null; rewriteModel?: InstancesDeleteResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: InstancesDeleteResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesDeleteResponseSyncInterval | null; tokenId?: string | null; type?: InstancesDeleteResponseType | null; } export declare const DeleteInstanceResponse: S.Schema; export interface DeleteNamespaceRequest { accountId: string; name: string; } export declare const DeleteNamespaceRequest: S.Schema; export type DeleteNamespaceResponse = unknown; export declare const DeleteNamespaceResponse: S.Schema; export interface DeleteNamespaceInstanceRequest { accountId: string; name: string; id: string; } export declare const DeleteNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesDeleteResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesDeleteResponseAiSearchModel: any; export type NamespacesInstancesDeleteResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesDeleteResponseCacheThreshold: any; export type NamespacesInstancesDeleteResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesDeleteResponseCacheTtl: any; export type NamespacesInstancesDeleteResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesDeleteResponseCustomMetadataItemDataType: any; export interface NamespacesInstancesDeleteResponseCustomMetadataItem { dataType: NamespacesInstancesDeleteResponseCustomMetadataItemDataType; fieldName: string; } export declare const NamespacesInstancesDeleteResponseCustomMetadataItem: S.Schema; export type NamespacesInstancesDeleteResponseCustomMetadataList = Array; export declare const NamespacesInstancesDeleteResponseCustomMetadataList: S.Schema; export type NamespacesInstancesDeleteResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesDeleteResponseEmbeddingModel: any; export type NamespacesInstancesDeleteResponseFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesDeleteResponseFusionMethod: any; export type NamespacesInstancesDeleteResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesDeleteResponseIndexMethod: S.Schema; export type NamespacesInstancesDeleteResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesDeleteResponseIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesDeleteResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesDeleteResponseIndexingOptionsKeywordTokenizer | null; } export declare const NamespacesInstancesDeleteResponseIndexingOptions: S.Schema; export type NamespacesInstancesDeleteResponseMetadata = InstancesCreateResponseMetadata; export declare const NamespacesInstancesDeleteResponseMetadata: S.Schema; export type NamespacesInstancesDeleteResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesDeleteResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesDeleteResponsePublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesDeleteResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesDeleteResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesDeleteResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: NamespacesInstancesDeleteResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesDeleteResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesDeleteResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesDeleteResponsePublicEndpointParams { authorizedHosts?: NamespacesInstancesDeleteResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesDeleteResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: NamespacesInstancesDeleteResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const NamespacesInstancesDeleteResponsePublicEndpointParams: S.Schema; export type NamespacesInstancesDeleteResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesDeleteResponseRerankingModel: any; export type NamespacesInstancesDeleteResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesDeleteResponseRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesDeleteResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesDeleteResponseRetrievalOptionsBoostByItemDirection | null; } export declare const NamespacesInstancesDeleteResponseRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesDeleteResponseRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesDeleteResponseRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesDeleteResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesDeleteResponseRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesDeleteResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesDeleteResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesDeleteResponseRetrievalOptionsKeywordMatchMode | null; } export declare const NamespacesInstancesDeleteResponseRetrievalOptions: S.Schema; export type NamespacesInstancesDeleteResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesDeleteResponseRewriteModel: any; export type NamespacesInstancesDeleteResponseSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesDeleteResponseSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesDeleteResponseSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesDeleteResponseSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesDeleteResponseSourceParamsWebCrawler { parseOptions?: NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseOptions | null; parseType?: NamespacesInstancesDeleteResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const NamespacesInstancesDeleteResponseSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesDeleteResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesDeleteResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesDeleteResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: NamespacesInstancesDeleteResponseSourceParamsWebCrawler | null; } export declare const NamespacesInstancesDeleteResponseSourceParams: S.Schema; export type NamespacesInstancesDeleteResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesDeleteResponseSyncInterval: any; export type NamespacesInstancesDeleteResponseType = "r2" | "web-crawler"; export declare const NamespacesInstancesDeleteResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteNamespaceInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: NamespacesInstancesDeleteResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: NamespacesInstancesDeleteResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesDeleteResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: NamespacesInstancesDeleteResponseCustomMetadataList | null; embeddingModel?: NamespacesInstancesDeleteResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: NamespacesInstancesDeleteResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: NamespacesInstancesDeleteResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: NamespacesInstancesDeleteResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: NamespacesInstancesDeleteResponseRerankingModel | null; retrievalOptions?: NamespacesInstancesDeleteResponseRetrievalOptions | null; rewriteModel?: NamespacesInstancesDeleteResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: NamespacesInstancesDeleteResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesDeleteResponseSyncInterval | null; tokenId?: string | null; type?: NamespacesInstancesDeleteResponseType | null; } export declare const DeleteNamespaceInstanceResponse: S.Schema; export interface DeleteNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; itemId: string; } export declare const DeleteNamespaceInstanceItemRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteNamespaceInstanceItemResponse { key: string; } export declare const DeleteNamespaceInstanceItemResponse: S.Schema; export interface DeleteTokenRequest { accountId: string; id: string; } export declare const DeleteTokenRequest: S.Schema; export type DeleteTokenResponse = unknown; export declare const DeleteTokenResponse: S.Schema; export interface DownloadNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; itemId: string; } export declare const DownloadNamespaceInstanceItemRequest: S.Schema; export interface DownloadNamespaceInstanceItemResponse { } export declare const DownloadNamespaceInstanceItemResponse: S.Schema; export interface GetInstanceJobRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; jobId: string; } export declare const GetInstanceJobRequest: S.Schema; export type InstancesJobsGetResponseSource = "user" | "schedule"; export declare const InstancesJobsGetResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetInstanceJobResponse { id: string; source: InstancesJobsGetResponseSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const GetInstanceJobResponse: S.Schema; export interface GetNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; itemId: string; } export declare const GetNamespaceInstanceItemRequest: S.Schema; export type NamespacesInstancesItemsGetResponseNextAction = "INDEX" | "DELETE"; export declare const NamespacesInstancesItemsGetResponseNextAction: any; export type NamespacesInstancesItemsGetResponseStatus = "queued" | "running" | "completed" | "error" | "skipped" | "outdated"; export declare const NamespacesInstancesItemsGetResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetNamespaceInstanceItemResponse { id: string; checksum: string; chunksCount: number; createdAt: string; fileSize: number; key: string; lastSeenAt: string; namespace: string; nextAction: NamespacesInstancesItemsGetResponseNextAction; /** Identifies which data source this item belongs to. "builtin" for uploaded files, "{type}:{source}" for external sources, null for legacy items. */ sourceId: string; status: NamespacesInstancesItemsGetResponseStatus; error?: string | null; } export declare const GetNamespaceInstanceItemResponse: S.Schema; export interface GetNamespaceInstanceJobRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; jobId: string; } export declare const GetNamespaceInstanceJobRequest: S.Schema; export type NamespacesInstancesJobsGetResponseSource = "user" | "schedule"; export declare const NamespacesInstancesJobsGetResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetNamespaceInstanceJobResponse { id: string; source: NamespacesInstancesJobsGetResponseSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const GetNamespaceInstanceJobResponse: S.Schema; export interface ListInstanceJobsRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; page?: number; perPage?: number; } export declare const ListInstanceJobsRequest: S.Schema; export type InstancesJobsListResultItemSource = "user" | "schedule"; export declare const InstancesJobsListResultItemSource: any; export interface InstancesJobsListResultItem { id: string; source: InstancesJobsListResultItemSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const InstancesJobsListResultItem: S.Schema; export type InstancesJobsListResultList = Array; export declare const InstancesJobsListResultList: S.Schema; export interface ListInstanceJobsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: InstancesJobsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListInstanceJobsResponse: S.Schema; export type InstancesListRequestOrderBy = "created_at"; export declare const InstancesListRequestOrderBy: any; export type InstancesListRequestOrderByDirection = "asc" | "desc"; export declare const InstancesListRequestOrderByDirection: any; export interface ListInstancesRequest { accountId: string; /** Filter by namespace. */ namespace?: string; /** Field to order results by. */ orderBy?: InstancesListRequestOrderBy | (string & {}); /** Order direction. */ orderByDirection?: InstancesListRequestOrderByDirection | (string & {}); /** Page number (1-indexed). */ page?: number; /** Number of results per page. */ perPage?: number; /** Filter instances whose id contains this string (case-insensitive). */ search?: string; } export declare const ListInstancesRequest: S.Schema; export type InstancesListResultItemAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesListResultItemAiSearchModel: any; export type InstancesListResultItemCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesListResultItemCacheThreshold: any; export type InstancesListResultItemCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesListResultItemCacheTtl: any; export type InstancesListResultItemCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesListResultItemCustomMetadataItemDataType: any; export interface InstancesListResultItemCustomMetadataItem { dataType: InstancesListResultItemCustomMetadataItemDataType; fieldName: string; } export declare const InstancesListResultItemCustomMetadataItem: S.Schema; export type InstancesListResultItemCustomMetadataList = Array; export declare const InstancesListResultItemCustomMetadataList: S.Schema; export type InstancesListResultItemEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesListResultItemEmbeddingModel: any; export type InstancesListResultItemFusionMethod = "max" | "rrf"; export declare const InstancesListResultItemFusionMethod: any; export type InstancesListResultItemIndexMethod = InstancesCreateRequestIndexMethod; export declare const InstancesListResultItemIndexMethod: S.Schema; export type InstancesListResultItemIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesListResultItemIndexingOptionsKeywordTokenizer: any; export interface InstancesListResultItemIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesListResultItemIndexingOptionsKeywordTokenizer | null; } export declare const InstancesListResultItemIndexingOptions: S.Schema; export type InstancesListResultItemMetadata = InstancesCreateResponseMetadata; export declare const InstancesListResultItemMetadata: S.Schema; export type InstancesListResultItemPublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesListResultItemPublicEndpointParamsAuthorizedHostsList: S.Schema; export type InstancesListResultItemPublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const InstancesListResultItemPublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesListResultItemPublicEndpointParamsCustomDomainsList = Array; export declare const InstancesListResultItemPublicEndpointParamsCustomDomainsList: S.Schema; export type InstancesListResultItemPublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const InstancesListResultItemPublicEndpointParamsMcp: S.Schema; export type InstancesListResultItemPublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesListResultItemPublicEndpointParamsRateLimitTechnique: any; export interface InstancesListResultItemPublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: InstancesListResultItemPublicEndpointParamsRateLimitTechnique | null; } export declare const InstancesListResultItemPublicEndpointParamsRateLimit: S.Schema; export type InstancesListResultItemPublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const InstancesListResultItemPublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesListResultItemPublicEndpointParams { authorizedHosts?: InstancesListResultItemPublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesListResultItemPublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: InstancesListResultItemPublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const InstancesListResultItemPublicEndpointParams: S.Schema; export type InstancesListResultItemRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesListResultItemRerankingModel: any; export type InstancesListResultItemRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesListResultItemRetrievalOptionsBoostByItemDirection: any; export interface InstancesListResultItemRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesListResultItemRetrievalOptionsBoostByItemDirection | null; } export declare const InstancesListResultItemRetrievalOptionsBoostByItem: S.Schema; export type InstancesListResultItemRetrievalOptionsBoostByList = Array; export declare const InstancesListResultItemRetrievalOptionsBoostByList: S.Schema; export type InstancesListResultItemRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesListResultItemRetrievalOptionsKeywordMatchMode: any; export interface InstancesListResultItemRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesListResultItemRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesListResultItemRetrievalOptionsKeywordMatchMode | null; } export declare const InstancesListResultItemRetrievalOptions: S.Schema; export type InstancesListResultItemRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesListResultItemRewriteModel: any; export type InstancesListResultItemSourceParamsExcludeItemsList = Array; export declare const InstancesListResultItemSourceParamsExcludeItemsList: S.Schema; export type InstancesListResultItemSourceParamsIncludeItemsList = Array; export declare const InstancesListResultItemSourceParamsIncludeItemsList: S.Schema; export type InstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const InstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesListResultItemSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesListResultItemSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesListResultItemSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesListResultItemSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesListResultItemSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesListResultItemSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesListResultItemSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const InstancesListResultItemSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesListResultItemSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesListResultItemSourceParamsWebCrawlerParseType: any; export interface InstancesListResultItemSourceParamsWebCrawler { parseOptions?: InstancesListResultItemSourceParamsWebCrawlerParseOptions | null; parseType?: InstancesListResultItemSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const InstancesListResultItemSourceParamsWebCrawler: S.Schema; export interface InstancesListResultItemSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesListResultItemSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesListResultItemSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: InstancesListResultItemSourceParamsWebCrawler | null; } export declare const InstancesListResultItemSourceParams: S.Schema; export type InstancesListResultItemSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesListResultItemSyncInterval: any; export type InstancesListResultItemType = "r2" | "web-crawler"; export declare const InstancesListResultItemType: any; export interface InstancesListResultItem { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: InstancesListResultItemAiSearchModel | null; cache?: boolean | null; cacheThreshold?: InstancesListResultItemCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesListResultItemCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: InstancesListResultItemCustomMetadataList | null; embeddingModel?: InstancesListResultItemEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: InstancesListResultItemFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: InstancesListResultItemIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: InstancesListResultItemPublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: InstancesListResultItemRerankingModel | null; retrievalOptions?: InstancesListResultItemRetrievalOptions | null; rewriteModel?: InstancesListResultItemRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: InstancesListResultItemSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesListResultItemSyncInterval | null; tokenId?: string | null; type?: InstancesListResultItemType | null; } export declare const InstancesListResultItem: S.Schema; export type InstancesListResultList = Array; export declare const InstancesListResultList: S.Schema; export interface ListInstancesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: InstancesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListInstancesResponse: S.Schema; export type NamespacesInstancesItemsListRequestSortBy = "status" | "modified_at"; export declare const NamespacesInstancesItemsListRequestSortBy: any; export type NamespacesInstancesItemsListRequestStatus = "queued" | "running" | "completed" | "error" | "skipped" | "outdated"; export declare const NamespacesInstancesItemsListRequestStatus: any; export interface ListNamespaceInstanceItemsRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; /** Filter items by their unique ID. Returns at most one item. */ itemId?: string; /** JSON-encoded metadata filter using Vectorize filter syntax. Examples: {"folder":"reports/"}, {"timestamp":{"$gte":1700000000000}}, {"folder":{"$in":["docs/","reports/"]}} */ metadataFilter?: string; page?: number; perPage?: number; search?: string; /** Sort order for items. "status" (default) sorts by status priority then last_seen_at. "modified_at" sorts by file modification time (most recent first), falling back to created_at. */ sortBy?: NamespacesInstancesItemsListRequestSortBy | (string & {}); /** Filter items by source_id. Use "builtin" for uploaded files, or a source identifier like "web-crawler:https://example.com". */ source?: string; status?: NamespacesInstancesItemsListRequestStatus | (string & {}); } export declare const ListNamespaceInstanceItemsRequest: S.Schema; export type NamespacesInstancesItemsListResultItemNextAction = "INDEX" | "DELETE"; export declare const NamespacesInstancesItemsListResultItemNextAction: any; export type NamespacesInstancesItemsListResultItemStatus = "queued" | "running" | "completed" | "error" | "skipped" | "outdated"; export declare const NamespacesInstancesItemsListResultItemStatus: any; export interface NamespacesInstancesItemsListResultItem { id: string; checksum: string; chunksCount: number; createdAt: string; fileSize: number; key: string; lastSeenAt: string; namespace: string; nextAction: NamespacesInstancesItemsListResultItemNextAction; /** Identifies which data source this item belongs to. "builtin" for uploaded files, "{type}:{source}" for external sources, null for legacy items. */ sourceId: string; status: NamespacesInstancesItemsListResultItemStatus; error?: string | null; } export declare const NamespacesInstancesItemsListResultItem: S.Schema; export type NamespacesInstancesItemsListResultList = Array; export declare const NamespacesInstancesItemsListResultList: S.Schema; export interface ListNamespaceInstanceItemsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: NamespacesInstancesItemsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListNamespaceInstanceItemsResponse: S.Schema; export interface ListNamespaceInstanceJobsRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; page?: number; perPage?: number; } export declare const ListNamespaceInstanceJobsRequest: S.Schema; export type NamespacesInstancesJobsListResultItemSource = "user" | "schedule"; export declare const NamespacesInstancesJobsListResultItemSource: any; export interface NamespacesInstancesJobsListResultItem { id: string; source: NamespacesInstancesJobsListResultItemSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const NamespacesInstancesJobsListResultItem: S.Schema; export type NamespacesInstancesJobsListResultList = Array; export declare const NamespacesInstancesJobsListResultList: S.Schema; export interface ListNamespaceInstanceJobsResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: NamespacesInstancesJobsListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListNamespaceInstanceJobsResponse: S.Schema; export type NamespacesInstancesListRequestOrderBy = "created_at"; export declare const NamespacesInstancesListRequestOrderBy: any; export type NamespacesInstancesListRequestOrderByDirection = "asc" | "desc"; export declare const NamespacesInstancesListRequestOrderByDirection: any; export interface ListNamespaceInstancesRequest { accountId: string; name: string; /** Filter by namespace. */ namespace?: string; /** Field to order results by. */ orderBy?: NamespacesInstancesListRequestOrderBy | (string & {}); /** Order direction. */ orderByDirection?: NamespacesInstancesListRequestOrderByDirection | (string & {}); /** Page number (1-indexed). */ page?: number; /** Number of results per page. */ perPage?: number; /** Filter instances whose id contains this string (case-insensitive). */ search?: string; } export declare const ListNamespaceInstancesRequest: S.Schema; export type NamespacesInstancesListResultItemAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesListResultItemAiSearchModel: any; export type NamespacesInstancesListResultItemCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesListResultItemCacheThreshold: any; export type NamespacesInstancesListResultItemCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesListResultItemCacheTtl: any; export type NamespacesInstancesListResultItemCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesListResultItemCustomMetadataItemDataType: any; export interface NamespacesInstancesListResultItemCustomMetadataItem { dataType: NamespacesInstancesListResultItemCustomMetadataItemDataType; fieldName: string; } export declare const NamespacesInstancesListResultItemCustomMetadataItem: S.Schema; export type NamespacesInstancesListResultItemCustomMetadataList = Array; export declare const NamespacesInstancesListResultItemCustomMetadataList: S.Schema; export type NamespacesInstancesListResultItemEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesListResultItemEmbeddingModel: any; export type NamespacesInstancesListResultItemFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesListResultItemFusionMethod: any; export type NamespacesInstancesListResultItemIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesListResultItemIndexMethod: S.Schema; export type NamespacesInstancesListResultItemIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesListResultItemIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesListResultItemIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesListResultItemIndexingOptionsKeywordTokenizer | null; } export declare const NamespacesInstancesListResultItemIndexingOptions: S.Schema; export type NamespacesInstancesListResultItemMetadata = InstancesCreateResponseMetadata; export declare const NamespacesInstancesListResultItemMetadata: S.Schema; export type NamespacesInstancesListResultItemPublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesListResultItemPublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesListResultItemPublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesListResultItemPublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesListResultItemPublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesListResultItemPublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesListResultItemPublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const NamespacesInstancesListResultItemPublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesListResultItemPublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesListResultItemPublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesListResultItemPublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: NamespacesInstancesListResultItemPublicEndpointParamsRateLimitTechnique | null; } export declare const NamespacesInstancesListResultItemPublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesListResultItemPublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesListResultItemPublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesListResultItemPublicEndpointParams { authorizedHosts?: NamespacesInstancesListResultItemPublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesListResultItemPublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: NamespacesInstancesListResultItemPublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const NamespacesInstancesListResultItemPublicEndpointParams: S.Schema; export type NamespacesInstancesListResultItemRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesListResultItemRerankingModel: any; export type NamespacesInstancesListResultItemRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesListResultItemRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesListResultItemRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesListResultItemRetrievalOptionsBoostByItemDirection | null; } export declare const NamespacesInstancesListResultItemRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesListResultItemRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesListResultItemRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesListResultItemRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesListResultItemRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesListResultItemRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesListResultItemRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesListResultItemRetrievalOptionsKeywordMatchMode | null; } export declare const NamespacesInstancesListResultItemRetrievalOptions: S.Schema; export type NamespacesInstancesListResultItemRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesListResultItemRewriteModel: any; export type NamespacesInstancesListResultItemSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesListResultItemSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesListResultItemSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesListResultItemSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesListResultItemSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesListResultItemSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesListResultItemSourceParamsWebCrawler { parseOptions?: NamespacesInstancesListResultItemSourceParamsWebCrawlerParseOptions | null; parseType?: NamespacesInstancesListResultItemSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const NamespacesInstancesListResultItemSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesListResultItemSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesListResultItemSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesListResultItemSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: NamespacesInstancesListResultItemSourceParamsWebCrawler | null; } export declare const NamespacesInstancesListResultItemSourceParams: S.Schema; export type NamespacesInstancesListResultItemSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesListResultItemSyncInterval: any; export type NamespacesInstancesListResultItemType = "r2" | "web-crawler"; export declare const NamespacesInstancesListResultItemType: any; export interface NamespacesInstancesListResultItem { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: NamespacesInstancesListResultItemAiSearchModel | null; cache?: boolean | null; cacheThreshold?: NamespacesInstancesListResultItemCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesListResultItemCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: NamespacesInstancesListResultItemCustomMetadataList | null; embeddingModel?: NamespacesInstancesListResultItemEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: NamespacesInstancesListResultItemFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: NamespacesInstancesListResultItemIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: NamespacesInstancesListResultItemPublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: NamespacesInstancesListResultItemRerankingModel | null; retrievalOptions?: NamespacesInstancesListResultItemRetrievalOptions | null; rewriteModel?: NamespacesInstancesListResultItemRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: NamespacesInstancesListResultItemSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesListResultItemSyncInterval | null; tokenId?: string | null; type?: NamespacesInstancesListResultItemType | null; } export declare const NamespacesInstancesListResultItem: S.Schema; export type NamespacesInstancesListResultList = Array; export declare const NamespacesInstancesListResultList: S.Schema; export interface ListNamespaceInstancesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: NamespacesInstancesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListNamespaceInstancesResponse: S.Schema; export interface ListNamespacesRequest { accountId: string; /** Page number (1-indexed). */ page?: number; /** Number of results per page. */ perPage?: number; /** Filter namespaces whose name or description contains this string (case-insensitive). */ search?: string; } export declare const ListNamespacesRequest: S.Schema; export interface NamespacesListResultItem { createdAt: string; name: string; /** Optional description for the namespace. Max 256 characters. */ description?: string | null; } export declare const NamespacesListResultItem: S.Schema; export type NamespacesListResultList = Array; export declare const NamespacesListResultList: S.Schema; export interface ListNamespacesResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: NamespacesListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListNamespacesResponse: S.Schema; export interface ListTokensRequest { accountId: string; /** Page number (1-indexed). */ page?: number; /** Number of results per page. */ perPage?: number; /** Filter tokens whose name contains this string (case-insensitive). */ search?: string; } export declare const ListTokensRequest: S.Schema; export interface TokensListResultItem { id: string; cfApiId: string; createdAt: string; modifiedAt: string; name: string; createdBy?: string | null; enabled?: boolean | null; legacy?: boolean | null; modifiedBy?: string | null; } export declare const TokensListResultItem: S.Schema; export type TokensListResultList = Array; export declare const TokensListResultList: S.Schema; export interface ListTokensResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: TokensListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListTokensResponse: S.Schema; export interface LogsInstanceJobRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; jobId: string; page?: number; perPage?: number; } export declare const LogsInstanceJobRequest: S.Schema; export interface InstancesJobsLogsResultItem { id: number; createdAt: number; message: string; messageType: number; } export declare const InstancesJobsLogsResultItem: S.Schema; export type InstancesJobsLogsResultList = Array; export declare const InstancesJobsLogsResultList: S.Schema; export type LogsInstanceJobResponse = InstancesJobsLogsResultList; export declare const LogsInstanceJobResponse: S.Schema; export interface LogsNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; itemId: string; cursor?: string; limit?: number; } export declare const LogsNamespaceInstanceItemRequest: S.Schema; export interface NamespacesInstancesItemsLogsResultItem { action: string; chunkCount: number; errorType: string; fileKey: string; message: string; processingTimeMs: number; timestamp: string; } export declare const NamespacesInstancesItemsLogsResultItem: S.Schema; export type NamespacesInstancesItemsLogsResultList = Array; export declare const NamespacesInstancesItemsLogsResultList: S.Schema; export type LogsNamespaceInstanceItemResponse = NamespacesInstancesItemsLogsResultList; export declare const LogsNamespaceInstanceItemResponse: S.Schema; export interface LogsNamespaceInstanceJobRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; jobId: string; page?: number; perPage?: number; } export declare const LogsNamespaceInstanceJobRequest: S.Schema; export type NamespacesInstancesJobsLogsResultItem = InstancesJobsLogsResultItem; export declare const NamespacesInstancesJobsLogsResultItem: S.Schema; export type NamespacesInstancesJobsLogsResultList = Array; export declare const NamespacesInstancesJobsLogsResultList: S.Schema; export type LogsNamespaceInstanceJobResponse = NamespacesInstancesJobsLogsResultList; export declare const LogsNamespaceInstanceJobResponse: S.Schema; export type NamespacesInstancesJobsUpdateRequestAction = "cancel"; export declare const NamespacesInstancesJobsUpdateRequestAction: any; export interface PatchNamespaceInstanceJobRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; jobId: string; action: NamespacesInstancesJobsUpdateRequestAction | (string & {}); } export declare const PatchNamespaceInstanceJobRequest: S.Schema; export type NamespacesInstancesJobsUpdateResponseSource = "user" | "schedule"; export declare const NamespacesInstancesJobsUpdateResponseSource: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface PatchNamespaceInstanceJobResponse { id: string; source: NamespacesInstancesJobsUpdateResponseSource; description?: string | null; endReason?: string | null; endedAt?: string | null; lastSeenAt?: string | null; startedAt?: string | null; } export declare const PatchNamespaceInstanceJobResponse: S.Schema; export interface ReadInstanceRequest { accountId: string; id: string; } export declare const ReadInstanceRequest: S.Schema; export type InstancesReadResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesReadResponseAiSearchModel: any; export type InstancesReadResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesReadResponseCacheThreshold: any; export type InstancesReadResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesReadResponseCacheTtl: any; export type InstancesReadResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesReadResponseCustomMetadataItemDataType: any; export interface InstancesReadResponseCustomMetadataItem { dataType: InstancesReadResponseCustomMetadataItemDataType; fieldName: string; } export declare const InstancesReadResponseCustomMetadataItem: S.Schema; export type InstancesReadResponseCustomMetadataList = Array; export declare const InstancesReadResponseCustomMetadataList: S.Schema; export type InstancesReadResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesReadResponseEmbeddingModel: any; export type InstancesReadResponseFusionMethod = "max" | "rrf"; export declare const InstancesReadResponseFusionMethod: any; export type InstancesReadResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const InstancesReadResponseIndexMethod: S.Schema; export type InstancesReadResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesReadResponseIndexingOptionsKeywordTokenizer: any; export interface InstancesReadResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesReadResponseIndexingOptionsKeywordTokenizer | null; } export declare const InstancesReadResponseIndexingOptions: S.Schema; export type InstancesReadResponseMetadata = InstancesCreateResponseMetadata; export declare const InstancesReadResponseMetadata: S.Schema; export type InstancesReadResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesReadResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type InstancesReadResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const InstancesReadResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesReadResponsePublicEndpointParamsCustomDomainsList = Array; export declare const InstancesReadResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type InstancesReadResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const InstancesReadResponsePublicEndpointParamsMcp: S.Schema; export type InstancesReadResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesReadResponsePublicEndpointParamsRateLimitTechnique: any; export interface InstancesReadResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: InstancesReadResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const InstancesReadResponsePublicEndpointParamsRateLimit: S.Schema; export type InstancesReadResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const InstancesReadResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesReadResponsePublicEndpointParams { authorizedHosts?: InstancesReadResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesReadResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: InstancesReadResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const InstancesReadResponsePublicEndpointParams: S.Schema; export type InstancesReadResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesReadResponseRerankingModel: any; export type InstancesReadResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesReadResponseRetrievalOptionsBoostByItemDirection: any; export interface InstancesReadResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesReadResponseRetrievalOptionsBoostByItemDirection | null; } export declare const InstancesReadResponseRetrievalOptionsBoostByItem: S.Schema; export type InstancesReadResponseRetrievalOptionsBoostByList = Array; export declare const InstancesReadResponseRetrievalOptionsBoostByList: S.Schema; export type InstancesReadResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesReadResponseRetrievalOptionsKeywordMatchMode: any; export interface InstancesReadResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesReadResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesReadResponseRetrievalOptionsKeywordMatchMode | null; } export declare const InstancesReadResponseRetrievalOptions: S.Schema; export type InstancesReadResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesReadResponseRewriteModel: any; export type InstancesReadResponseSourceParamsExcludeItemsList = Array; export declare const InstancesReadResponseSourceParamsExcludeItemsList: S.Schema; export type InstancesReadResponseSourceParamsIncludeItemsList = Array; export declare const InstancesReadResponseSourceParamsIncludeItemsList: S.Schema; export type InstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const InstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesReadResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesReadResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesReadResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesReadResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesReadResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesReadResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesReadResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const InstancesReadResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesReadResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesReadResponseSourceParamsWebCrawlerParseType: any; export interface InstancesReadResponseSourceParamsWebCrawler { parseOptions?: InstancesReadResponseSourceParamsWebCrawlerParseOptions | null; parseType?: InstancesReadResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const InstancesReadResponseSourceParamsWebCrawler: S.Schema; export interface InstancesReadResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesReadResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesReadResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: InstancesReadResponseSourceParamsWebCrawler | null; } export declare const InstancesReadResponseSourceParams: S.Schema; export type InstancesReadResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesReadResponseSyncInterval: any; export type InstancesReadResponseType = "r2" | "web-crawler"; export declare const InstancesReadResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ReadInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: InstancesReadResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: InstancesReadResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesReadResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: InstancesReadResponseCustomMetadataList | null; embeddingModel?: InstancesReadResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: InstancesReadResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: InstancesReadResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: InstancesReadResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: InstancesReadResponseRerankingModel | null; retrievalOptions?: InstancesReadResponseRetrievalOptions | null; rewriteModel?: InstancesReadResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: InstancesReadResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesReadResponseSyncInterval | null; tokenId?: string | null; type?: InstancesReadResponseType | null; } export declare const ReadInstanceResponse: S.Schema; export interface ReadNamespaceRequest { accountId: string; name: string; } export declare const ReadNamespaceRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ReadNamespaceResponse { createdAt: string; name: string; /** Optional description for the namespace. Max 256 characters. */ description?: string | null; } export declare const ReadNamespaceResponse: S.Schema; export interface ReadNamespaceInstanceRequest { accountId: string; name: string; id: string; } export declare const ReadNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesReadResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesReadResponseAiSearchModel: any; export type NamespacesInstancesReadResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesReadResponseCacheThreshold: any; export type NamespacesInstancesReadResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesReadResponseCacheTtl: any; export type NamespacesInstancesReadResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesReadResponseCustomMetadataItemDataType: any; export interface NamespacesInstancesReadResponseCustomMetadataItem { dataType: NamespacesInstancesReadResponseCustomMetadataItemDataType; fieldName: string; } export declare const NamespacesInstancesReadResponseCustomMetadataItem: S.Schema; export type NamespacesInstancesReadResponseCustomMetadataList = Array; export declare const NamespacesInstancesReadResponseCustomMetadataList: S.Schema; export type NamespacesInstancesReadResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesReadResponseEmbeddingModel: any; export type NamespacesInstancesReadResponseFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesReadResponseFusionMethod: any; export type NamespacesInstancesReadResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesReadResponseIndexMethod: S.Schema; export type NamespacesInstancesReadResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesReadResponseIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesReadResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesReadResponseIndexingOptionsKeywordTokenizer | null; } export declare const NamespacesInstancesReadResponseIndexingOptions: S.Schema; export type NamespacesInstancesReadResponseMetadata = InstancesCreateResponseMetadata; export declare const NamespacesInstancesReadResponseMetadata: S.Schema; export type NamespacesInstancesReadResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesReadResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesReadResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesReadResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesReadResponsePublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesReadResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesReadResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const NamespacesInstancesReadResponsePublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesReadResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesReadResponsePublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesReadResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: NamespacesInstancesReadResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const NamespacesInstancesReadResponsePublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesReadResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesReadResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesReadResponsePublicEndpointParams { authorizedHosts?: NamespacesInstancesReadResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesReadResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: NamespacesInstancesReadResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const NamespacesInstancesReadResponsePublicEndpointParams: S.Schema; export type NamespacesInstancesReadResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesReadResponseRerankingModel: any; export type NamespacesInstancesReadResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesReadResponseRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesReadResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesReadResponseRetrievalOptionsBoostByItemDirection | null; } export declare const NamespacesInstancesReadResponseRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesReadResponseRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesReadResponseRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesReadResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesReadResponseRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesReadResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesReadResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesReadResponseRetrievalOptionsKeywordMatchMode | null; } export declare const NamespacesInstancesReadResponseRetrievalOptions: S.Schema; export type NamespacesInstancesReadResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesReadResponseRewriteModel: any; export type NamespacesInstancesReadResponseSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesReadResponseSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesReadResponseSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesReadResponseSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesReadResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesReadResponseSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesReadResponseSourceParamsWebCrawler { parseOptions?: NamespacesInstancesReadResponseSourceParamsWebCrawlerParseOptions | null; parseType?: NamespacesInstancesReadResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const NamespacesInstancesReadResponseSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesReadResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesReadResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesReadResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: NamespacesInstancesReadResponseSourceParamsWebCrawler | null; } export declare const NamespacesInstancesReadResponseSourceParams: S.Schema; export type NamespacesInstancesReadResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesReadResponseSyncInterval: any; export type NamespacesInstancesReadResponseType = "r2" | "web-crawler"; export declare const NamespacesInstancesReadResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ReadNamespaceInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: NamespacesInstancesReadResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: NamespacesInstancesReadResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesReadResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: NamespacesInstancesReadResponseCustomMetadataList | null; embeddingModel?: NamespacesInstancesReadResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: NamespacesInstancesReadResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: NamespacesInstancesReadResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: NamespacesInstancesReadResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: NamespacesInstancesReadResponseRerankingModel | null; retrievalOptions?: NamespacesInstancesReadResponseRetrievalOptions | null; rewriteModel?: NamespacesInstancesReadResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: NamespacesInstancesReadResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesReadResponseSyncInterval | null; tokenId?: string | null; type?: NamespacesInstancesReadResponseType | null; } export declare const ReadNamespaceInstanceResponse: S.Schema; export interface ReadTokenRequest { accountId: string; id: string; } export declare const ReadTokenRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ReadTokenResponse { id: string; cfApiId: string; createdAt: string; modifiedAt: string; name: string; createdBy?: string | null; enabled?: boolean | null; legacy?: boolean | null; modifiedBy?: string | null; } export declare const ReadTokenResponse: S.Schema; export type InstancesSearchRequestAiSearchOptionsCacheCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesSearchRequestAiSearchOptionsCacheCacheThreshold: any; export interface InstancesSearchRequestAiSearchOptionsCache { cacheThreshold?: InstancesSearchRequestAiSearchOptionsCacheCacheThreshold | (string & {}); enabled?: boolean; } export declare const InstancesSearchRequestAiSearchOptionsCache: S.Schema; export type InstancesSearchRequestAiSearchOptionsQueryRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesSearchRequestAiSearchOptionsQueryRewriteModel: any; export interface InstancesSearchRequestAiSearchOptionsQueryRewrite { enabled?: boolean; model?: InstancesSearchRequestAiSearchOptionsQueryRewriteModel | (string & {}); rewritePrompt?: string; } export declare const InstancesSearchRequestAiSearchOptionsQueryRewrite: S.Schema; export type InstancesSearchRequestAiSearchOptionsRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesSearchRequestAiSearchOptionsRerankingModel: any; export interface InstancesSearchRequestAiSearchOptionsReranking { enabled?: boolean; matchThreshold?: number; model?: InstancesSearchRequestAiSearchOptionsRerankingModel | (string & {}); } export declare const InstancesSearchRequestAiSearchOptionsReranking: S.Schema; export type InstancesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection: any; export interface InstancesSearchRequestAiSearchOptionsRetrievalBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection | (string & {}); } export declare const InstancesSearchRequestAiSearchOptionsRetrievalBoostByItem: S.Schema; export type InstancesSearchRequestAiSearchOptionsRetrievalBoostByList = Array; export declare const InstancesSearchRequestAiSearchOptionsRetrievalBoostByList: S.Schema; export type InstancesSearchRequestAiSearchOptionsRetrievalFiltersMap = { [key: string]: unknown | undefined; }; export declare const InstancesSearchRequestAiSearchOptionsRetrievalFiltersMap: S.Schema; export type InstancesSearchRequestAiSearchOptionsRetrievalFusionMethod = "max" | "rrf"; export declare const InstancesSearchRequestAiSearchOptionsRetrievalFusionMethod: any; export type InstancesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode = "and" | "or"; export declare const InstancesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode: any; export type InstancesSearchRequestAiSearchOptionsRetrievalRetrievalType = "vector" | "keyword" | "hybrid"; export declare const InstancesSearchRequestAiSearchOptionsRetrievalRetrievalType: any; export interface InstancesSearchRequestAiSearchOptionsRetrieval { /** Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesSearchRequestAiSearchOptionsRetrievalBoostByList; contextExpansion?: number; filters?: InstancesSearchRequestAiSearchOptionsRetrievalFiltersMap; fusionMethod?: InstancesSearchRequestAiSearchOptionsRetrievalFusionMethod | (string & {}); /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'. */ keywordMatchMode?: InstancesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode | (string & {}); matchThreshold?: number; maxNumResults?: number; retrievalType?: InstancesSearchRequestAiSearchOptionsRetrievalRetrievalType | (string & {}); returnOnFailure?: boolean; } export declare const InstancesSearchRequestAiSearchOptionsRetrieval: S.Schema; export interface InstancesSearchRequestAiSearchOptions { cache?: InstancesSearchRequestAiSearchOptionsCache; queryRewrite?: InstancesSearchRequestAiSearchOptionsQueryRewrite; reranking?: InstancesSearchRequestAiSearchOptionsReranking; retrieval?: InstancesSearchRequestAiSearchOptionsRetrieval; } export declare const InstancesSearchRequestAiSearchOptions: S.Schema; export type InstancesSearchRequestMessagesItemContentCase1ItemCase0Type = "text"; export declare const InstancesSearchRequestMessagesItemContentCase1ItemCase0Type: any; export interface InstancesSearchRequestMessagesItemContentCase1ItemCase0 { text: string; type: InstancesSearchRequestMessagesItemContentCase1ItemCase0Type; } export declare const InstancesSearchRequestMessagesItemContentCase1ItemCase0: S.Schema; export type InstancesSearchRequestMessagesItemContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const InstancesSearchRequestMessagesItemContentCase1ItemCase1ImageUrl: S.Schema; export type InstancesSearchRequestMessagesItemContentCase1ItemCase1Type = "image_url"; export declare const InstancesSearchRequestMessagesItemContentCase1ItemCase1Type: any; export interface InstancesSearchRequestMessagesItemContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: InstancesSearchRequestMessagesItemContentCase1ItemCase1Type; } export declare const InstancesSearchRequestMessagesItemContentCase1ItemCase1: S.Schema; export type InstancesSearchRequestMessagesItemContentCase1Item = InstancesSearchRequestMessagesItemContentCase1ItemCase0 | InstancesSearchRequestMessagesItemContentCase1ItemCase1; export declare const InstancesSearchRequestMessagesItemContentCase1Item: any; export type InstancesSearchRequestMessagesItemContentCase1List = Array; export declare const InstancesSearchRequestMessagesItemContentCase1List: S.Schema; export type InstancesSearchRequestMessagesItemContent = string | InstancesSearchRequestMessagesItemContentCase1List; export declare const InstancesSearchRequestMessagesItemContent: any; export type InstancesSearchRequestMessagesItemRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const InstancesSearchRequestMessagesItemRole: any; export interface InstancesSearchRequestMessagesItem { content: InstancesSearchRequestMessagesItemContent; role: InstancesSearchRequestMessagesItemRole | (string & {}); } export declare const InstancesSearchRequestMessagesItem: S.Schema; export type InstancesSearchRequestMessagesList = Array; export declare const InstancesSearchRequestMessagesList: S.Schema; export interface SearchInstanceRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; aiSearchOptions?: InstancesSearchRequestAiSearchOptions; /** OpenAI-compatible message array. For multimodal queries, set the last user message's `content` to an array of typed parts: `[{type:'text', text:'…'}, {type:'image_url', image_url:{url:'…'}}]`. Image inputs require the RAG's embedding_model to declare 'image' in supported_modalities. */ messages?: InstancesSearchRequestMessagesList; /** A simple text query string. Alternative to 'messages' — provide either this or 'messages', not both. */ query?: string; } export declare const SearchInstanceRequest: S.Schema; export type InstancesSearchResponseChunksItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const InstancesSearchResponseChunksItemItemMetadataMap: S.Schema; export interface InstancesSearchResponseChunksItemItem { key: string; metadata?: InstancesSearchResponseChunksItemItemMetadataMap | null; timestamp?: number | null; } export declare const InstancesSearchResponseChunksItemItem: S.Schema; export type InstancesSearchResponseChunksItemScoringDetailsFusionMethod = "rrf" | "max"; export declare const InstancesSearchResponseChunksItemScoringDetailsFusionMethod: any; export interface InstancesSearchResponseChunksItemScoringDetails { fusionMethod?: InstancesSearchResponseChunksItemScoringDetailsFusionMethod | null; keywordRank?: number | null; keywordScore?: number | null; rerankingScore?: number | null; vectorRank?: number | null; vectorScore?: number | null; } export declare const InstancesSearchResponseChunksItemScoringDetails: S.Schema; export interface InstancesSearchResponseChunksItem { id: string; score: number; text: string; type: string; item?: InstancesSearchResponseChunksItemItem | null; scoringDetails?: InstancesSearchResponseChunksItemScoringDetails | null; } export declare const InstancesSearchResponseChunksItem: S.Schema; export type InstancesSearchResponseChunksList = Array; export declare const InstancesSearchResponseChunksList: S.Schema; export type InstancesSearchResponseQueryKind = "text" | "image" | "multimodal"; export declare const InstancesSearchResponseQueryKind: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface SearchInstanceResponse { chunks: InstancesSearchResponseChunksList; queryKind: InstancesSearchResponseQueryKind; searchQuery?: string | null; } export declare const SearchInstanceResponse: S.Schema; export type NamespacesSearchRequestAiSearchOptionsInstanceIdsList = Array; export declare const NamespacesSearchRequestAiSearchOptionsInstanceIdsList: S.Schema; export type NamespacesSearchRequestAiSearchOptionsCacheCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesSearchRequestAiSearchOptionsCacheCacheThreshold: any; export interface NamespacesSearchRequestAiSearchOptionsCache { cacheThreshold?: NamespacesSearchRequestAiSearchOptionsCacheCacheThreshold | (string & {}); enabled?: boolean; } export declare const NamespacesSearchRequestAiSearchOptionsCache: S.Schema; export type NamespacesSearchRequestAiSearchOptionsQueryRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesSearchRequestAiSearchOptionsQueryRewriteModel: any; export interface NamespacesSearchRequestAiSearchOptionsQueryRewrite { enabled?: boolean; model?: NamespacesSearchRequestAiSearchOptionsQueryRewriteModel | (string & {}); rewritePrompt?: string; } export declare const NamespacesSearchRequestAiSearchOptionsQueryRewrite: S.Schema; export type NamespacesSearchRequestAiSearchOptionsRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesSearchRequestAiSearchOptionsRerankingModel: any; export interface NamespacesSearchRequestAiSearchOptionsReranking { enabled?: boolean; matchThreshold?: number; model?: NamespacesSearchRequestAiSearchOptionsRerankingModel | (string & {}); } export declare const NamespacesSearchRequestAiSearchOptionsReranking: S.Schema; export type NamespacesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection: any; export interface NamespacesSearchRequestAiSearchOptionsRetrievalBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection | (string & {}); } export declare const NamespacesSearchRequestAiSearchOptionsRetrievalBoostByItem: S.Schema; export type NamespacesSearchRequestAiSearchOptionsRetrievalBoostByList = Array; export declare const NamespacesSearchRequestAiSearchOptionsRetrievalBoostByList: S.Schema; export type NamespacesSearchRequestAiSearchOptionsRetrievalFiltersMap = { [key: string]: unknown | undefined; }; export declare const NamespacesSearchRequestAiSearchOptionsRetrievalFiltersMap: S.Schema; export type NamespacesSearchRequestAiSearchOptionsRetrievalFusionMethod = "max" | "rrf"; export declare const NamespacesSearchRequestAiSearchOptionsRetrievalFusionMethod: any; export type NamespacesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode = "and" | "or"; export declare const NamespacesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode: any; export type NamespacesSearchRequestAiSearchOptionsRetrievalRetrievalType = "vector" | "keyword" | "hybrid"; export declare const NamespacesSearchRequestAiSearchOptionsRetrievalRetrievalType: any; export interface NamespacesSearchRequestAiSearchOptionsRetrieval { /** Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesSearchRequestAiSearchOptionsRetrievalBoostByList; contextExpansion?: number; filters?: NamespacesSearchRequestAiSearchOptionsRetrievalFiltersMap; fusionMethod?: NamespacesSearchRequestAiSearchOptionsRetrievalFusionMethod | (string & {}); /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'. */ keywordMatchMode?: NamespacesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode | (string & {}); matchThreshold?: number; maxNumResults?: number; retrievalType?: NamespacesSearchRequestAiSearchOptionsRetrievalRetrievalType | (string & {}); returnOnFailure?: boolean; } export declare const NamespacesSearchRequestAiSearchOptionsRetrieval: S.Schema; export interface NamespacesSearchRequestAiSearchOptions { instanceIds: NamespacesSearchRequestAiSearchOptionsInstanceIdsList; cache?: NamespacesSearchRequestAiSearchOptionsCache; queryRewrite?: NamespacesSearchRequestAiSearchOptionsQueryRewrite; reranking?: NamespacesSearchRequestAiSearchOptionsReranking; retrieval?: NamespacesSearchRequestAiSearchOptionsRetrieval; } export declare const NamespacesSearchRequestAiSearchOptions: S.Schema; export type NamespacesSearchRequestMessagesItemContentCase1ItemCase0Type = "text"; export declare const NamespacesSearchRequestMessagesItemContentCase1ItemCase0Type: any; export interface NamespacesSearchRequestMessagesItemContentCase1ItemCase0 { text: string; type: NamespacesSearchRequestMessagesItemContentCase1ItemCase0Type; } export declare const NamespacesSearchRequestMessagesItemContentCase1ItemCase0: S.Schema; export type NamespacesSearchRequestMessagesItemContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const NamespacesSearchRequestMessagesItemContentCase1ItemCase1ImageUrl: S.Schema; export type NamespacesSearchRequestMessagesItemContentCase1ItemCase1Type = "image_url"; export declare const NamespacesSearchRequestMessagesItemContentCase1ItemCase1Type: any; export interface NamespacesSearchRequestMessagesItemContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: NamespacesSearchRequestMessagesItemContentCase1ItemCase1Type; } export declare const NamespacesSearchRequestMessagesItemContentCase1ItemCase1: S.Schema; export type NamespacesSearchRequestMessagesItemContentCase1Item = NamespacesSearchRequestMessagesItemContentCase1ItemCase0 | NamespacesSearchRequestMessagesItemContentCase1ItemCase1; export declare const NamespacesSearchRequestMessagesItemContentCase1Item: any; export type NamespacesSearchRequestMessagesItemContentCase1List = Array; export declare const NamespacesSearchRequestMessagesItemContentCase1List: S.Schema; export type NamespacesSearchRequestMessagesItemContent = string | NamespacesSearchRequestMessagesItemContentCase1List; export declare const NamespacesSearchRequestMessagesItemContent: any; export type NamespacesSearchRequestMessagesItemRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const NamespacesSearchRequestMessagesItemRole: any; export interface NamespacesSearchRequestMessagesItem { content: NamespacesSearchRequestMessagesItemContent; role: NamespacesSearchRequestMessagesItemRole | (string & {}); } export declare const NamespacesSearchRequestMessagesItem: S.Schema; export type NamespacesSearchRequestMessagesList = Array; export declare const NamespacesSearchRequestMessagesList: S.Schema; export interface SearchNamespaceRequest { accountId: string; name: string; aiSearchOptions: NamespacesSearchRequestAiSearchOptions; /** OpenAI-compatible message array. For multimodal queries, set the last user message's `content` to an array of typed parts: `[{type:'text', text:'…'}, {type:'image_url', image_url:{url:'…'}}]`. Image inputs require the RAG's embedding_model to declare 'image' in supported_modalities. */ messages?: NamespacesSearchRequestMessagesList; /** A simple text query string. Alternative to 'messages' — provide either this or 'messages', not both. */ query?: string; } export declare const SearchNamespaceRequest: S.Schema; export type NamespacesSearchResponseChunksItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const NamespacesSearchResponseChunksItemItemMetadataMap: S.Schema; export interface NamespacesSearchResponseChunksItemItem { key: string; metadata?: NamespacesSearchResponseChunksItemItemMetadataMap | null; timestamp?: number | null; } export declare const NamespacesSearchResponseChunksItemItem: S.Schema; export type NamespacesSearchResponseChunksItemScoringDetailsFusionMethod = "rrf" | "max"; export declare const NamespacesSearchResponseChunksItemScoringDetailsFusionMethod: any; export interface NamespacesSearchResponseChunksItemScoringDetails { fusionMethod?: NamespacesSearchResponseChunksItemScoringDetailsFusionMethod | null; keywordRank?: number | null; keywordScore?: number | null; rerankingScore?: number | null; vectorRank?: number | null; vectorScore?: number | null; } export declare const NamespacesSearchResponseChunksItemScoringDetails: S.Schema; export interface NamespacesSearchResponseChunksItem { id: string; instanceId: string; score: number; text: string; type: string; item?: NamespacesSearchResponseChunksItemItem | null; scoringDetails?: NamespacesSearchResponseChunksItemScoringDetails | null; } export declare const NamespacesSearchResponseChunksItem: S.Schema; export type NamespacesSearchResponseChunksList = Array; export declare const NamespacesSearchResponseChunksList: S.Schema; export type NamespacesSearchResponseQueryKind = "text" | "image" | "multimodal"; export declare const NamespacesSearchResponseQueryKind: any; export interface NamespacesSearchResponseErrorsItem { instanceId: string; message: string; } export declare const NamespacesSearchResponseErrorsItem: S.Schema; export type NamespacesSearchResponseErrorsList = Array; export declare const NamespacesSearchResponseErrorsList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface SearchNamespaceResponse { chunks: NamespacesSearchResponseChunksList; queryKind: NamespacesSearchResponseQueryKind; errors?: NamespacesSearchResponseErrorsList | null; searchQuery?: string | null; } export declare const SearchNamespaceResponse: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsCacheCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesSearchRequestAiSearchOptionsCacheCacheThreshold: any; export interface NamespacesInstancesSearchRequestAiSearchOptionsCache { cacheThreshold?: NamespacesInstancesSearchRequestAiSearchOptionsCacheCacheThreshold | (string & {}); enabled?: boolean; } export declare const NamespacesInstancesSearchRequestAiSearchOptionsCache: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsQueryRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesSearchRequestAiSearchOptionsQueryRewriteModel: any; export interface NamespacesInstancesSearchRequestAiSearchOptionsQueryRewrite { enabled?: boolean; model?: NamespacesInstancesSearchRequestAiSearchOptionsQueryRewriteModel | (string & {}); rewritePrompt?: string; } export declare const NamespacesInstancesSearchRequestAiSearchOptionsQueryRewrite: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRerankingModel: any; export interface NamespacesInstancesSearchRequestAiSearchOptionsReranking { enabled?: boolean; matchThreshold?: number; model?: NamespacesInstancesSearchRequestAiSearchOptionsRerankingModel | (string & {}); } export declare const NamespacesInstancesSearchRequestAiSearchOptionsReranking: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection: any; export interface NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByItemDirection | (string & {}); } export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByItem: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByList = Array; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByList: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsRetrievalFiltersMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalFiltersMap: S.Schema; export type NamespacesInstancesSearchRequestAiSearchOptionsRetrievalFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalFusionMethod: any; export type NamespacesInstancesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode: any; export type NamespacesInstancesSearchRequestAiSearchOptionsRetrievalRetrievalType = "vector" | "keyword" | "hybrid"; export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrievalRetrievalType: any; export interface NamespacesInstancesSearchRequestAiSearchOptionsRetrieval { /** Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesSearchRequestAiSearchOptionsRetrievalBoostByList; contextExpansion?: number; filters?: NamespacesInstancesSearchRequestAiSearchOptionsRetrievalFiltersMap; fusionMethod?: NamespacesInstancesSearchRequestAiSearchOptionsRetrievalFusionMethod | (string & {}); /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'. */ keywordMatchMode?: NamespacesInstancesSearchRequestAiSearchOptionsRetrievalKeywordMatchMode | (string & {}); matchThreshold?: number; maxNumResults?: number; retrievalType?: NamespacesInstancesSearchRequestAiSearchOptionsRetrievalRetrievalType | (string & {}); returnOnFailure?: boolean; } export declare const NamespacesInstancesSearchRequestAiSearchOptionsRetrieval: S.Schema; export interface NamespacesInstancesSearchRequestAiSearchOptions { cache?: NamespacesInstancesSearchRequestAiSearchOptionsCache; queryRewrite?: NamespacesInstancesSearchRequestAiSearchOptionsQueryRewrite; reranking?: NamespacesInstancesSearchRequestAiSearchOptionsReranking; retrieval?: NamespacesInstancesSearchRequestAiSearchOptionsRetrieval; } export declare const NamespacesInstancesSearchRequestAiSearchOptions: S.Schema; export type NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase0Type = "text"; export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase0Type: any; export interface NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase0 { text: string; type: NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase0Type; } export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase0: S.Schema; export type NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1ImageUrl = InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1ImageUrl: S.Schema; export type NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1Type = "image_url"; export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1Type: any; export interface NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1 { imageUrl: InstancesChatCompletionsRequestMessagesItemContentCase1ItemCase1ImageUrl; type: NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1Type; } export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1: S.Schema; export type NamespacesInstancesSearchRequestMessagesItemContentCase1Item = NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase0 | NamespacesInstancesSearchRequestMessagesItemContentCase1ItemCase1; export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1Item: any; export type NamespacesInstancesSearchRequestMessagesItemContentCase1List = Array; export declare const NamespacesInstancesSearchRequestMessagesItemContentCase1List: S.Schema; export type NamespacesInstancesSearchRequestMessagesItemContent = string | NamespacesInstancesSearchRequestMessagesItemContentCase1List; export declare const NamespacesInstancesSearchRequestMessagesItemContent: any; export type NamespacesInstancesSearchRequestMessagesItemRole = "system" | "developer" | "user" | "assistant" | "tool"; export declare const NamespacesInstancesSearchRequestMessagesItemRole: any; export interface NamespacesInstancesSearchRequestMessagesItem { content: NamespacesInstancesSearchRequestMessagesItemContent; role: NamespacesInstancesSearchRequestMessagesItemRole | (string & {}); } export declare const NamespacesInstancesSearchRequestMessagesItem: S.Schema; export type NamespacesInstancesSearchRequestMessagesList = Array; export declare const NamespacesInstancesSearchRequestMessagesList: S.Schema; export interface SearchNamespaceInstanceRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; aiSearchOptions?: NamespacesInstancesSearchRequestAiSearchOptions; /** OpenAI-compatible message array. For multimodal queries, set the last user message's `content` to an array of typed parts: `[{type:'text', text:'…'}, {type:'image_url', image_url:{url:'…'}}]`. Image inputs require the RAG's embedding_model to declare 'image' in supported_modalities. */ messages?: NamespacesInstancesSearchRequestMessagesList; /** A simple text query string. Alternative to 'messages' — provide either this or 'messages', not both. */ query?: string; } export declare const SearchNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesSearchResponseChunksItemItemMetadataMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesSearchResponseChunksItemItemMetadataMap: S.Schema; export interface NamespacesInstancesSearchResponseChunksItemItem { key: string; metadata?: NamespacesInstancesSearchResponseChunksItemItemMetadataMap | null; timestamp?: number | null; } export declare const NamespacesInstancesSearchResponseChunksItemItem: S.Schema; export type NamespacesInstancesSearchResponseChunksItemScoringDetailsFusionMethod = "rrf" | "max"; export declare const NamespacesInstancesSearchResponseChunksItemScoringDetailsFusionMethod: any; export interface NamespacesInstancesSearchResponseChunksItemScoringDetails { fusionMethod?: NamespacesInstancesSearchResponseChunksItemScoringDetailsFusionMethod | null; keywordRank?: number | null; keywordScore?: number | null; rerankingScore?: number | null; vectorRank?: number | null; vectorScore?: number | null; } export declare const NamespacesInstancesSearchResponseChunksItemScoringDetails: S.Schema; export interface NamespacesInstancesSearchResponseChunksItem { id: string; score: number; text: string; type: string; item?: NamespacesInstancesSearchResponseChunksItemItem | null; scoringDetails?: NamespacesInstancesSearchResponseChunksItemScoringDetails | null; } export declare const NamespacesInstancesSearchResponseChunksItem: S.Schema; export type NamespacesInstancesSearchResponseChunksList = Array; export declare const NamespacesInstancesSearchResponseChunksList: S.Schema; export type NamespacesInstancesSearchResponseQueryKind = "text" | "image" | "multimodal"; export declare const NamespacesInstancesSearchResponseQueryKind: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface SearchNamespaceInstanceResponse { chunks: NamespacesInstancesSearchResponseChunksList; queryKind: NamespacesInstancesSearchResponseQueryKind; searchQuery?: string | null; } export declare const SearchNamespaceInstanceResponse: S.Schema; export interface StatsInstanceRequest { accountId: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; } export declare const StatsInstanceRequest: S.Schema; export interface InstancesStatsResponseEngineR2 { metadataSizeBytes: number; objectCount: number; payloadSizeBytes: number; } export declare const InstancesStatsResponseEngineR2: S.Schema; export interface InstancesStatsResponseEngineVectorize { dimensions: number; vectorsCount: number; } export declare const InstancesStatsResponseEngineVectorize: S.Schema; export interface InstancesStatsResponseEngine { /** R2 bucket storage usage in bytes. */ r2?: InstancesStatsResponseEngineR2 | null; /** Vectorize index metadata (dimensions, vector count). */ vectorize?: InstancesStatsResponseEngineVectorize | null; } export declare const InstancesStatsResponseEngine: S.Schema; export type InstancesStatsResponseFileEmbedErrorsMap = { [key: string]: unknown | undefined; }; export declare const InstancesStatsResponseFileEmbedErrorsMap: S.Schema; export type InstancesStatsResponseIndexSourceErrorsMap = { [key: string]: unknown | undefined; }; export declare const InstancesStatsResponseIndexSourceErrorsMap: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface StatsInstanceResponse { completed?: number | null; /** True when status counts are unavailable (e.g. legacy stats query exceeded D1 statement-size limit). Counts are omitted in this case. */ degraded?: boolean | null; /** Engine-specific metadata. Present only for managed (v3) instances. */ engine?: InstancesStatsResponseEngine | null; error?: number | null; fileEmbedErrors?: InstancesStatsResponseFileEmbedErrorsMap | null; indexSourceErrors?: InstancesStatsResponseIndexSourceErrorsMap | null; lastActivity?: string | null; outdated?: number | null; queued?: number | null; running?: number | null; skipped?: number | null; } export declare const StatsInstanceResponse: S.Schema; export interface StatsNamespaceInstanceRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; } export declare const StatsNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesStatsResponseEngineR2 = InstancesStatsResponseEngineR2; export declare const NamespacesInstancesStatsResponseEngineR2: S.Schema; export type NamespacesInstancesStatsResponseEngineVectorize = InstancesStatsResponseEngineVectorize; export declare const NamespacesInstancesStatsResponseEngineVectorize: S.Schema; export type NamespacesInstancesStatsResponseEngine = InstancesStatsResponseEngine; export declare const NamespacesInstancesStatsResponseEngine: S.Schema; export type NamespacesInstancesStatsResponseFileEmbedErrorsMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesStatsResponseFileEmbedErrorsMap: S.Schema; export type NamespacesInstancesStatsResponseIndexSourceErrorsMap = { [key: string]: unknown | undefined; }; export declare const NamespacesInstancesStatsResponseIndexSourceErrorsMap: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface StatsNamespaceInstanceResponse { completed?: number | null; /** True when status counts are unavailable (e.g. legacy stats query exceeded D1 statement-size limit). Counts are omitted in this case. */ degraded?: boolean | null; /** Engine-specific metadata. Present only for managed (v3) instances. */ engine?: InstancesStatsResponseEngine | null; error?: number | null; fileEmbedErrors?: NamespacesInstancesStatsResponseFileEmbedErrorsMap | null; indexSourceErrors?: NamespacesInstancesStatsResponseIndexSourceErrorsMap | null; lastActivity?: string | null; outdated?: number | null; queued?: number | null; running?: number | null; skipped?: number | null; } export declare const StatsNamespaceInstanceResponse: S.Schema; export type NamespacesInstancesItemsSyncRequestNextAction = "INDEX"; export declare const NamespacesInstancesItemsSyncRequestNextAction: any; export interface SyncNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; itemId: string; nextAction: NamespacesInstancesItemsSyncRequestNextAction | (string & {}); /** Wait for indexing to fully complete before responding. On RAGs with vector indexing enabled, this additionally waits for Vectorize ingestion confirmation (up to 40s) so the returned item reflects a queryable state. On timeout the item is returned in `running` state and the background alarm continues polling. Defaults to false. */ waitForCompletion?: boolean; } export declare const SyncNamespaceInstanceItemRequest: S.Schema; export type NamespacesInstancesItemsSyncResponseNextAction = "INDEX" | "DELETE"; export declare const NamespacesInstancesItemsSyncResponseNextAction: any; export type NamespacesInstancesItemsSyncResponseStatus = "queued" | "running" | "completed" | "error" | "skipped" | "outdated"; export declare const NamespacesInstancesItemsSyncResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface SyncNamespaceInstanceItemResponse { id: string; checksum: string; chunksCount: number; createdAt: string; fileSize: number; key: string; lastSeenAt: string; namespace: string; nextAction: NamespacesInstancesItemsSyncResponseNextAction; /** Identifies which data source this item belongs to. "builtin" for uploaded files, "{type}:{source}" for external sources, null for legacy items. */ sourceId: string; status: NamespacesInstancesItemsSyncResponseStatus; error?: string | null; } export declare const SyncNamespaceInstanceItemResponse: S.Schema; export type InstancesUpdateRequestAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesUpdateRequestAiSearchModel: any; export type InstancesUpdateRequestCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesUpdateRequestCacheThreshold: any; export type InstancesUpdateRequestCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesUpdateRequestCacheTtl: any; export type InstancesUpdateRequestCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesUpdateRequestCustomMetadataItemDataType: any; export interface InstancesUpdateRequestCustomMetadataItem { dataType: InstancesUpdateRequestCustomMetadataItemDataType | (string & {}); fieldName: string; } export declare const InstancesUpdateRequestCustomMetadataItem: S.Schema; export type InstancesUpdateRequestCustomMetadataList = Array; export declare const InstancesUpdateRequestCustomMetadataList: S.Schema; export type InstancesUpdateRequestEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesUpdateRequestEmbeddingModel: any; export type InstancesUpdateRequestFusionMethod = "max" | "rrf"; export declare const InstancesUpdateRequestFusionMethod: any; export type InstancesUpdateRequestIndexMethod = InstancesCreateRequestIndexMethod; export declare const InstancesUpdateRequestIndexMethod: S.Schema; export type InstancesUpdateRequestIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesUpdateRequestIndexingOptionsKeywordTokenizer: any; export interface InstancesUpdateRequestIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesUpdateRequestIndexingOptionsKeywordTokenizer | (string & {}); } export declare const InstancesUpdateRequestIndexingOptions: S.Schema; export type InstancesUpdateRequestMetadata = InstancesCreateRequestMetadata; export declare const InstancesUpdateRequestMetadata: S.Schema; export type InstancesUpdateRequestPublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesUpdateRequestPublicEndpointParamsAuthorizedHostsList: S.Schema; export type InstancesUpdateRequestPublicEndpointParamsChatCompletionsEndpoint = InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; export declare const InstancesUpdateRequestPublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesUpdateRequestPublicEndpointParamsCustomDomainsList = Array; export declare const InstancesUpdateRequestPublicEndpointParamsCustomDomainsList: S.Schema; export type InstancesUpdateRequestPublicEndpointParamsMcp = InstancesCreateRequestPublicEndpointParamsMcp; export declare const InstancesUpdateRequestPublicEndpointParamsMcp: S.Schema; export type InstancesUpdateRequestPublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesUpdateRequestPublicEndpointParamsRateLimitTechnique: any; export interface InstancesUpdateRequestPublicEndpointParamsRateLimit { periodMs?: number; requests?: number; technique?: InstancesUpdateRequestPublicEndpointParamsRateLimitTechnique | (string & {}); } export declare const InstancesUpdateRequestPublicEndpointParamsRateLimit: S.Schema; export type InstancesUpdateRequestPublicEndpointParamsSearchEndpoint = InstancesCreateRequestPublicEndpointParamsSearchEndpoint; export declare const InstancesUpdateRequestPublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesUpdateRequestPublicEndpointParams { authorizedHosts?: InstancesUpdateRequestPublicEndpointParamsAuthorizedHostsList; chatCompletionsEndpoint?: InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesUpdateRequestPublicEndpointParamsCustomDomainsList; enabled?: boolean; mcp?: InstancesCreateRequestPublicEndpointParamsMcp; rateLimit?: InstancesUpdateRequestPublicEndpointParamsRateLimit; searchEndpoint?: InstancesCreateRequestPublicEndpointParamsSearchEndpoint; } export declare const InstancesUpdateRequestPublicEndpointParams: S.Schema; export type InstancesUpdateRequestRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesUpdateRequestRerankingModel: any; export type InstancesUpdateRequestRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesUpdateRequestRetrievalOptionsBoostByItemDirection: any; export interface InstancesUpdateRequestRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesUpdateRequestRetrievalOptionsBoostByItemDirection | (string & {}); } export declare const InstancesUpdateRequestRetrievalOptionsBoostByItem: S.Schema; export type InstancesUpdateRequestRetrievalOptionsBoostByList = Array; export declare const InstancesUpdateRequestRetrievalOptionsBoostByList: S.Schema; export type InstancesUpdateRequestRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesUpdateRequestRetrievalOptionsKeywordMatchMode: any; export interface InstancesUpdateRequestRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesUpdateRequestRetrievalOptionsBoostByList; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesUpdateRequestRetrievalOptionsKeywordMatchMode | (string & {}); } export declare const InstancesUpdateRequestRetrievalOptions: S.Schema; export type InstancesUpdateRequestRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesUpdateRequestRewriteModel: any; export type InstancesUpdateRequestSourceParamsExcludeItemsList = Array; export declare const InstancesUpdateRequestSourceParamsExcludeItemsList: S.Schema; export type InstancesUpdateRequestSourceParamsIncludeItemsList = Array; export declare const InstancesUpdateRequestSourceParamsIncludeItemsList: S.Schema; export type InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesUpdateRequestSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap; includeImages?: boolean; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesUpdateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList; useBrowserRendering?: boolean; } export declare const InstancesUpdateRequestSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesUpdateRequestSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesUpdateRequestSourceParamsWebCrawlerParseType: any; export interface InstancesUpdateRequestSourceParamsWebCrawler { parseOptions?: InstancesUpdateRequestSourceParamsWebCrawlerParseOptions; parseType?: InstancesUpdateRequestSourceParamsWebCrawlerParseType | (string & {}); /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions; } export declare const InstancesUpdateRequestSourceParamsWebCrawler: S.Schema; export interface InstancesUpdateRequestSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesUpdateRequestSourceParamsExcludeItemsList; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesUpdateRequestSourceParamsIncludeItemsList; prefix?: string; r2Jurisdiction?: string; webCrawler?: InstancesUpdateRequestSourceParamsWebCrawler; } export declare const InstancesUpdateRequestSourceParams: S.Schema; export type InstancesUpdateRequestSummarizationModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesUpdateRequestSummarizationModel: any; export type InstancesUpdateRequestSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesUpdateRequestSyncInterval: any; export interface UpdateInstanceRequest { accountId: string; id: string; aiGatewayId?: string; aiSearchModel?: InstancesUpdateRequestAiSearchModel | (string & {}); cache?: boolean; cacheThreshold?: InstancesUpdateRequestCacheThreshold | (string & {}); /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesUpdateRequestCacheTtl | (number & {}); chunk?: boolean; chunkOverlap?: number; chunkSize?: number; customMetadata?: InstancesUpdateRequestCustomMetadataList; embeddingModel?: InstancesUpdateRequestEmbeddingModel | (string & {}); fusionMethod?: InstancesUpdateRequestFusionMethod | (string & {}); /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod; indexingOptions?: InstancesUpdateRequestIndexingOptions; maxNumResults?: number; metadata?: InstancesCreateRequestMetadata; paused?: boolean; publicEndpointParams?: InstancesUpdateRequestPublicEndpointParams; reranking?: boolean; rerankingModel?: InstancesUpdateRequestRerankingModel | (string & {}); retrievalOptions?: InstancesUpdateRequestRetrievalOptions; rewriteModel?: InstancesUpdateRequestRewriteModel | (string & {}); rewriteQuery?: boolean; scoreThreshold?: number; source?: string; sourceParams?: InstancesUpdateRequestSourceParams; summarization?: boolean; summarizationModel?: InstancesUpdateRequestSummarizationModel | (string & {}); /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesUpdateRequestSyncInterval | (number & {}); systemPromptAiSearch?: string; systemPromptIndexSummarization?: string; systemPromptRewriteQuery?: string; tokenId?: string; } export declare const UpdateInstanceRequest: S.Schema; export type InstancesUpdateResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesUpdateResponseAiSearchModel: any; export type InstancesUpdateResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const InstancesUpdateResponseCacheThreshold: any; export type InstancesUpdateResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const InstancesUpdateResponseCacheTtl: any; export type InstancesUpdateResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const InstancesUpdateResponseCustomMetadataItemDataType: any; export interface InstancesUpdateResponseCustomMetadataItem { dataType: InstancesUpdateResponseCustomMetadataItemDataType; fieldName: string; } export declare const InstancesUpdateResponseCustomMetadataItem: S.Schema; export type InstancesUpdateResponseCustomMetadataList = Array; export declare const InstancesUpdateResponseCustomMetadataList: S.Schema; export type InstancesUpdateResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const InstancesUpdateResponseEmbeddingModel: any; export type InstancesUpdateResponseFusionMethod = "max" | "rrf"; export declare const InstancesUpdateResponseFusionMethod: any; export type InstancesUpdateResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const InstancesUpdateResponseIndexMethod: S.Schema; export type InstancesUpdateResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const InstancesUpdateResponseIndexingOptionsKeywordTokenizer: any; export interface InstancesUpdateResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: InstancesUpdateResponseIndexingOptionsKeywordTokenizer | null; } export declare const InstancesUpdateResponseIndexingOptions: S.Schema; export type InstancesUpdateResponseMetadata = InstancesCreateResponseMetadata; export declare const InstancesUpdateResponseMetadata: S.Schema; export type InstancesUpdateResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const InstancesUpdateResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type InstancesUpdateResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const InstancesUpdateResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type InstancesUpdateResponsePublicEndpointParamsCustomDomainsList = Array; export declare const InstancesUpdateResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type InstancesUpdateResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const InstancesUpdateResponsePublicEndpointParamsMcp: S.Schema; export type InstancesUpdateResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const InstancesUpdateResponsePublicEndpointParamsRateLimitTechnique: any; export interface InstancesUpdateResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: InstancesUpdateResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const InstancesUpdateResponsePublicEndpointParamsRateLimit: S.Schema; export type InstancesUpdateResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const InstancesUpdateResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface InstancesUpdateResponsePublicEndpointParams { authorizedHosts?: InstancesUpdateResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: InstancesUpdateResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: InstancesUpdateResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const InstancesUpdateResponsePublicEndpointParams: S.Schema; export type InstancesUpdateResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const InstancesUpdateResponseRerankingModel: any; export type InstancesUpdateResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const InstancesUpdateResponseRetrievalOptionsBoostByItemDirection: any; export interface InstancesUpdateResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: InstancesUpdateResponseRetrievalOptionsBoostByItemDirection | null; } export declare const InstancesUpdateResponseRetrievalOptionsBoostByItem: S.Schema; export type InstancesUpdateResponseRetrievalOptionsBoostByList = Array; export declare const InstancesUpdateResponseRetrievalOptionsBoostByList: S.Schema; export type InstancesUpdateResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const InstancesUpdateResponseRetrievalOptionsKeywordMatchMode: any; export interface InstancesUpdateResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: InstancesUpdateResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: InstancesUpdateResponseRetrievalOptionsKeywordMatchMode | null; } export declare const InstancesUpdateResponseRetrievalOptions: S.Schema; export type InstancesUpdateResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const InstancesUpdateResponseRewriteModel: any; export type InstancesUpdateResponseSourceParamsExcludeItemsList = Array; export declare const InstancesUpdateResponseSourceParamsExcludeItemsList: S.Schema; export type InstancesUpdateResponseSourceParamsIncludeItemsList = Array; export declare const InstancesUpdateResponseSourceParamsIncludeItemsList: S.Schema; export type InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface InstancesUpdateResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: InstancesUpdateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const InstancesUpdateResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type InstancesUpdateResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const InstancesUpdateResponseSourceParamsWebCrawlerParseType: any; export interface InstancesUpdateResponseSourceParamsWebCrawler { parseOptions?: InstancesUpdateResponseSourceParamsWebCrawlerParseOptions | null; parseType?: InstancesUpdateResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const InstancesUpdateResponseSourceParamsWebCrawler: S.Schema; export interface InstancesUpdateResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: InstancesUpdateResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: InstancesUpdateResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: InstancesUpdateResponseSourceParamsWebCrawler | null; } export declare const InstancesUpdateResponseSourceParams: S.Schema; export type InstancesUpdateResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const InstancesUpdateResponseSyncInterval: any; export type InstancesUpdateResponseType = "r2" | "web-crawler"; export declare const InstancesUpdateResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: InstancesUpdateResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: InstancesUpdateResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: InstancesUpdateResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: InstancesUpdateResponseCustomMetadataList | null; embeddingModel?: InstancesUpdateResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: InstancesUpdateResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: InstancesUpdateResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: InstancesUpdateResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: InstancesUpdateResponseRerankingModel | null; retrievalOptions?: InstancesUpdateResponseRetrievalOptions | null; rewriteModel?: InstancesUpdateResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: InstancesUpdateResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: InstancesUpdateResponseSyncInterval | null; tokenId?: string | null; type?: InstancesUpdateResponseType | null; } export declare const UpdateInstanceResponse: S.Schema; export interface UpdateNamespaceRequest { accountId: string; name: string; /** Optional description for the namespace. Max 256 characters. */ description?: string | null; } export declare const UpdateNamespaceRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateNamespaceResponse { createdAt: string; name: string; /** Optional description for the namespace. Max 256 characters. */ description?: string | null; } export declare const UpdateNamespaceResponse: S.Schema; export type NamespacesInstancesUpdateRequestAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesUpdateRequestAiSearchModel: any; export type NamespacesInstancesUpdateRequestCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesUpdateRequestCacheThreshold: any; export type NamespacesInstancesUpdateRequestCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesUpdateRequestCacheTtl: any; export type NamespacesInstancesUpdateRequestCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesUpdateRequestCustomMetadataItemDataType: any; export interface NamespacesInstancesUpdateRequestCustomMetadataItem { dataType: NamespacesInstancesUpdateRequestCustomMetadataItemDataType | (string & {}); fieldName: string; } export declare const NamespacesInstancesUpdateRequestCustomMetadataItem: S.Schema; export type NamespacesInstancesUpdateRequestCustomMetadataList = Array; export declare const NamespacesInstancesUpdateRequestCustomMetadataList: S.Schema; export type NamespacesInstancesUpdateRequestEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesUpdateRequestEmbeddingModel: any; export type NamespacesInstancesUpdateRequestFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesUpdateRequestFusionMethod: any; export type NamespacesInstancesUpdateRequestIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesUpdateRequestIndexMethod: S.Schema; export type NamespacesInstancesUpdateRequestIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesUpdateRequestIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesUpdateRequestIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesUpdateRequestIndexingOptionsKeywordTokenizer | (string & {}); } export declare const NamespacesInstancesUpdateRequestIndexingOptions: S.Schema; export type NamespacesInstancesUpdateRequestMetadata = InstancesCreateRequestMetadata; export declare const NamespacesInstancesUpdateRequestMetadata: S.Schema; export type NamespacesInstancesUpdateRequestPublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesUpdateRequestPublicEndpointParamsChatCompletionsEndpoint = InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesUpdateRequestPublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesUpdateRequestPublicEndpointParamsMcp = InstancesCreateRequestPublicEndpointParamsMcp; export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesUpdateRequestPublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesUpdateRequestPublicEndpointParamsRateLimit { periodMs?: number; requests?: number; technique?: NamespacesInstancesUpdateRequestPublicEndpointParamsRateLimitTechnique | (string & {}); } export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesUpdateRequestPublicEndpointParamsSearchEndpoint = InstancesCreateRequestPublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesUpdateRequestPublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesUpdateRequestPublicEndpointParams { authorizedHosts?: NamespacesInstancesUpdateRequestPublicEndpointParamsAuthorizedHostsList; chatCompletionsEndpoint?: InstancesCreateRequestPublicEndpointParamsChatCompletionsEndpoint; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesUpdateRequestPublicEndpointParamsCustomDomainsList; enabled?: boolean; mcp?: InstancesCreateRequestPublicEndpointParamsMcp; rateLimit?: NamespacesInstancesUpdateRequestPublicEndpointParamsRateLimit; searchEndpoint?: InstancesCreateRequestPublicEndpointParamsSearchEndpoint; } export declare const NamespacesInstancesUpdateRequestPublicEndpointParams: S.Schema; export type NamespacesInstancesUpdateRequestRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesUpdateRequestRerankingModel: any; export type NamespacesInstancesUpdateRequestRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesUpdateRequestRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesUpdateRequestRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesUpdateRequestRetrievalOptionsBoostByItemDirection | (string & {}); } export declare const NamespacesInstancesUpdateRequestRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesUpdateRequestRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesUpdateRequestRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesUpdateRequestRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesUpdateRequestRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesUpdateRequestRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesUpdateRequestRetrievalOptionsBoostByList; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesUpdateRequestRetrievalOptionsKeywordMatchMode | (string & {}); } export declare const NamespacesInstancesUpdateRequestRetrievalOptions: S.Schema; export type NamespacesInstancesUpdateRequestRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesUpdateRequestRewriteModel: any; export type NamespacesInstancesUpdateRequestSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesUpdateRequestSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesUpdateRequestSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesUpdateRequestSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsContentSelectorList; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsIncludeHeadersMap; includeImages?: boolean; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptionsSpecificSitemapsList; useBrowserRendering?: boolean; } export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesUpdateRequestSourceParamsWebCrawler { parseOptions?: NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseOptions; parseType?: NamespacesInstancesUpdateRequestSourceParamsWebCrawlerParseType | (string & {}); /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions; } export declare const NamespacesInstancesUpdateRequestSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesUpdateRequestSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesUpdateRequestSourceParamsExcludeItemsList; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesUpdateRequestSourceParamsIncludeItemsList; prefix?: string; r2Jurisdiction?: string; webCrawler?: NamespacesInstancesUpdateRequestSourceParamsWebCrawler; } export declare const NamespacesInstancesUpdateRequestSourceParams: S.Schema; export type NamespacesInstancesUpdateRequestSummarizationModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesUpdateRequestSummarizationModel: any; export type NamespacesInstancesUpdateRequestSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesUpdateRequestSyncInterval: any; export interface UpdateNamespaceInstanceRequest { accountId: string; name: string; id: string; aiGatewayId?: string; aiSearchModel?: NamespacesInstancesUpdateRequestAiSearchModel | (string & {}); cache?: boolean; cacheThreshold?: NamespacesInstancesUpdateRequestCacheThreshold | (string & {}); /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesUpdateRequestCacheTtl | (number & {}); chunk?: boolean; chunkOverlap?: number; chunkSize?: number; customMetadata?: NamespacesInstancesUpdateRequestCustomMetadataList; embeddingModel?: NamespacesInstancesUpdateRequestEmbeddingModel | (string & {}); fusionMethod?: NamespacesInstancesUpdateRequestFusionMethod | (string & {}); /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod; indexingOptions?: NamespacesInstancesUpdateRequestIndexingOptions; maxNumResults?: number; metadata?: InstancesCreateRequestMetadata; paused?: boolean; publicEndpointParams?: NamespacesInstancesUpdateRequestPublicEndpointParams; reranking?: boolean; rerankingModel?: NamespacesInstancesUpdateRequestRerankingModel | (string & {}); retrievalOptions?: NamespacesInstancesUpdateRequestRetrievalOptions; rewriteModel?: NamespacesInstancesUpdateRequestRewriteModel | (string & {}); rewriteQuery?: boolean; scoreThreshold?: number; source?: string; sourceParams?: NamespacesInstancesUpdateRequestSourceParams; summarization?: boolean; summarizationModel?: NamespacesInstancesUpdateRequestSummarizationModel | (string & {}); /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesUpdateRequestSyncInterval | (number & {}); systemPromptAiSearch?: string; systemPromptIndexSummarization?: string; systemPromptRewriteQuery?: string; tokenId?: string; } export declare const UpdateNamespaceInstanceRequest: S.Schema; export type NamespacesInstancesUpdateResponseAiSearchModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesUpdateResponseAiSearchModel: any; export type NamespacesInstancesUpdateResponseCacheThreshold = "super_strict_match" | "close_enough" | "flexible_friend" | "anything_goes"; export declare const NamespacesInstancesUpdateResponseCacheThreshold: any; export type NamespacesInstancesUpdateResponseCacheTtl = 600 | 1800 | 3600 | 7200 | 21600 | 43200 | 86400 | 172800 | 259200 | 518400; export declare const NamespacesInstancesUpdateResponseCacheTtl: any; export type NamespacesInstancesUpdateResponseCustomMetadataItemDataType = "text" | "number" | "boolean" | "datetime"; export declare const NamespacesInstancesUpdateResponseCustomMetadataItemDataType: any; export interface NamespacesInstancesUpdateResponseCustomMetadataItem { dataType: NamespacesInstancesUpdateResponseCustomMetadataItemDataType; fieldName: string; } export declare const NamespacesInstancesUpdateResponseCustomMetadataItem: S.Schema; export type NamespacesInstancesUpdateResponseCustomMetadataList = Array; export declare const NamespacesInstancesUpdateResponseCustomMetadataList: S.Schema; export type NamespacesInstancesUpdateResponseEmbeddingModel = "@cf/qwen/qwen3-embedding-0.6b" | "@cf/qwen/qwen3-vl-embedding-2b" | "@cf/baai/bge-m3" | "@cf/baai/bge-large-en-v1.5" | "@cf/google/embeddinggemma-300m" | "google-ai-studio/gemini-embedding-001" | "google-ai-studio/gemini-embedding-2-preview" | "google-ai-studio/gemini-embedding-2" | "openai/text-embedding-3-small" | "openai/text-embedding-3-large" | ""; export declare const NamespacesInstancesUpdateResponseEmbeddingModel: any; export type NamespacesInstancesUpdateResponseFusionMethod = "max" | "rrf"; export declare const NamespacesInstancesUpdateResponseFusionMethod: any; export type NamespacesInstancesUpdateResponseIndexMethod = InstancesCreateRequestIndexMethod; export declare const NamespacesInstancesUpdateResponseIndexMethod: S.Schema; export type NamespacesInstancesUpdateResponseIndexingOptionsKeywordTokenizer = "porter" | "trigram"; export declare const NamespacesInstancesUpdateResponseIndexingOptionsKeywordTokenizer: any; export interface NamespacesInstancesUpdateResponseIndexingOptions { /** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good for partial matches, code, identifiers). Changing this triggers a full re-index. Defaults to porter. */ keywordTokenizer?: NamespacesInstancesUpdateResponseIndexingOptionsKeywordTokenizer | null; } export declare const NamespacesInstancesUpdateResponseIndexingOptions: S.Schema; export type NamespacesInstancesUpdateResponseMetadata = InstancesCreateResponseMetadata; export declare const NamespacesInstancesUpdateResponseMetadata: S.Schema; export type NamespacesInstancesUpdateResponsePublicEndpointParamsAuthorizedHostsList = Array; export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsAuthorizedHostsList: S.Schema; export type NamespacesInstancesUpdateResponsePublicEndpointParamsChatCompletionsEndpoint = InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint; export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsChatCompletionsEndpoint: S.Schema; export type NamespacesInstancesUpdateResponsePublicEndpointParamsCustomDomainsList = Array; export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsCustomDomainsList: S.Schema; export type NamespacesInstancesUpdateResponsePublicEndpointParamsMcp = InstancesCreateResponsePublicEndpointParamsMcp; export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsMcp: S.Schema; export type NamespacesInstancesUpdateResponsePublicEndpointParamsRateLimitTechnique = "fixed" | "sliding"; export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsRateLimitTechnique: any; export interface NamespacesInstancesUpdateResponsePublicEndpointParamsRateLimit { periodMs?: number | null; requests?: number | null; technique?: NamespacesInstancesUpdateResponsePublicEndpointParamsRateLimitTechnique | null; } export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsRateLimit: S.Schema; export type NamespacesInstancesUpdateResponsePublicEndpointParamsSearchEndpoint = InstancesCreateResponsePublicEndpointParamsSearchEndpoint; export declare const NamespacesInstancesUpdateResponsePublicEndpointParamsSearchEndpoint: S.Schema; export interface NamespacesInstancesUpdateResponsePublicEndpointParams { authorizedHosts?: NamespacesInstancesUpdateResponsePublicEndpointParamsAuthorizedHostsList | null; chatCompletionsEndpoint?: InstancesCreateResponsePublicEndpointParamsChatCompletionsEndpoint | null; /** Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged). */ customDomains?: NamespacesInstancesUpdateResponsePublicEndpointParamsCustomDomainsList | null; enabled?: boolean | null; mcp?: InstancesCreateResponsePublicEndpointParamsMcp | null; rateLimit?: NamespacesInstancesUpdateResponsePublicEndpointParamsRateLimit | null; searchEndpoint?: InstancesCreateResponsePublicEndpointParamsSearchEndpoint | null; } export declare const NamespacesInstancesUpdateResponsePublicEndpointParams: S.Schema; export type NamespacesInstancesUpdateResponseRerankingModel = "@cf/baai/bge-reranker-base" | ""; export declare const NamespacesInstancesUpdateResponseRerankingModel: any; export type NamespacesInstancesUpdateResponseRetrievalOptionsBoostByItemDirection = "asc" | "desc" | "exists" | "not_exists"; export declare const NamespacesInstancesUpdateResponseRetrievalOptionsBoostByItemDirection: any; export interface NamespacesInstancesUpdateResponseRetrievalOptionsBoostByItem { /** Metadata field name to boost by. Use 'timestamp' for document freshness, or any custom_metadata field. Numeric and datetime fields support all four directions (asc, desc, exists, not_exists); text/boolean fields only support exists/not_exists. */ field: string; /** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the field. Optional — defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. */ direction?: NamespacesInstancesUpdateResponseRetrievalOptionsBoostByItemDirection | null; } export declare const NamespacesInstancesUpdateResponseRetrievalOptionsBoostByItem: S.Schema; export type NamespacesInstancesUpdateResponseRetrievalOptionsBoostByList = Array; export declare const NamespacesInstancesUpdateResponseRetrievalOptionsBoostByList: S.Schema; export type NamespacesInstancesUpdateResponseRetrievalOptionsKeywordMatchMode = "and" | "or"; export declare const NamespacesInstancesUpdateResponseRetrievalOptionsKeywordMatchMode: any; export interface NamespacesInstancesUpdateResponseRetrievalOptions { /** Metadata fields to boost search results by. Each entry specifies a metadata field and an optional direction. Direction defaults to 'asc' for numeric/datetime fields and 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. */ boostBy?: NamespacesInstancesUpdateResponseRetrievalOptionsBoostByList | null; /** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. Defaults to 'and'. */ keywordMatchMode?: NamespacesInstancesUpdateResponseRetrievalOptionsKeywordMatchMode | null; } export declare const NamespacesInstancesUpdateResponseRetrievalOptions: S.Schema; export type NamespacesInstancesUpdateResponseRewriteModel = "@cf/meta/llama-3.3-70b-instruct-fp8-fast" | "@cf/zai-org/glm-4.7-flash" | "@cf/meta/llama-3.1-8b-instruct-fast" | "@cf/meta/llama-3.1-8b-instruct-fp8" | "@cf/meta/llama-4-scout-17b-16e-instruct" | "@cf/qwen/qwen3-30b-a3b-fp8" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@cf/moonshotai/kimi-k2-instruct" | "@cf/google/gemma-3-12b-it" | "@cf/google/gemma-4-26b-a4b-it" | "@cf/moonshotai/kimi-k2.5" | "anthropic/claude-3-7-sonnet" | "anthropic/claude-sonnet-4" | "anthropic/claude-opus-4" | "anthropic/claude-3-5-haiku" | "cerebras/qwen-3-235b-a22b-instruct" | "cerebras/qwen-3-235b-a22b-thinking" | "cerebras/llama-3.3-70b" | "cerebras/llama-4-maverick-17b-128e-instruct" | "cerebras/llama-4-scout-17b-16e-instruct" | "cerebras/gpt-oss-120b" | "google-ai-studio/gemini-2.5-flash" | "google-ai-studio/gemini-2.5-pro" | "grok/grok-4" | "groq/llama-3.3-70b-versatile" | "groq/llama-3.1-8b-instant" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5-nano" | ""; export declare const NamespacesInstancesUpdateResponseRewriteModel: any; export type NamespacesInstancesUpdateResponseSourceParamsExcludeItemsList = Array; export declare const NamespacesInstancesUpdateResponseSourceParamsExcludeItemsList: S.Schema; export type NamespacesInstancesUpdateResponseSourceParamsIncludeItemsList = Array; export declare const NamespacesInstancesUpdateResponseSourceParamsIncludeItemsList: S.Schema; export type NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem = InstancesCreateRequestSourceParamsWebCrawlerParseOptionsContentSelectorItem; export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorItem: S.Schema; export type NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList = Array; export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList: S.Schema; export type NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap = { [key: string]: string | undefined; }; export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap: S.Schema; export type NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList = Array; export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList: S.Schema; export interface NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptions { /** List of path-to-selector mappings for extracting specific content from crawled pages. Each entry pairs a URL glob pattern with a CSS selector. The first matching path wins. Only the matched HTML fragment is stored and indexed. Omit the field to disable content selection — empty arrays are rejected. */ contentSelector?: NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsContentSelectorList | null; /** Up to 5 custom HTTP headers sent with each crawl request. Names must be RFC-7230 token characters (no spaces, colons, or control characters); values must be HTAB + printable ASCII (no CR/LF). */ includeHeaders?: NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsIncludeHeadersMap | null; includeImages?: boolean | null; /** List of specific sitemap URLs to use for crawling. Only valid when parse_type is 'sitemap'. */ specificSitemaps?: NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptionsSpecificSitemapsList | null; useBrowserRendering?: boolean | null; } export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptions: S.Schema; export type NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseType = "sitemap" | "crawl"; export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseType: any; export interface NamespacesInstancesUpdateResponseSourceParamsWebCrawler { parseOptions?: NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseOptions | null; parseType?: NamespacesInstancesUpdateResponseSourceParamsWebCrawlerParseType | null; /** Options controlling crawl discovery (e.g. { source: "links" }). */ crawlOptions?: WebCrawlerCrawlOptions | null; } export declare const NamespacesInstancesUpdateResponseSourceParamsWebCrawler: S.Schema; export interface NamespacesInstancesUpdateResponseSourceParams { /** List of path patterns to exclude. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /admin/** matches /admin/users and /admin/settings/advanced) */ excludeItems?: NamespacesInstancesUpdateResponseSourceParamsExcludeItemsList | null; /** List of path patterns to include. Uses micromatch glob syntax: * matches within a path segment, ** matches across path segments (e.g., /blog/** matches /blog/post and /blog/2024/post) */ includeItems?: NamespacesInstancesUpdateResponseSourceParamsIncludeItemsList | null; prefix?: string | null; r2Jurisdiction?: string | null; webCrawler?: NamespacesInstancesUpdateResponseSourceParamsWebCrawler | null; } export declare const NamespacesInstancesUpdateResponseSourceParams: S.Schema; export type NamespacesInstancesUpdateResponseSyncInterval = 900 | 1800 | 3600 | 7200 | 14400 | 21600 | 43200 | 86400; export declare const NamespacesInstancesUpdateResponseSyncInterval: any; export type NamespacesInstancesUpdateResponseType = "r2" | "web-crawler"; export declare const NamespacesInstancesUpdateResponseType: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateNamespaceInstanceResponse { /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; createdAt: string; modifiedAt: string; aiGatewayId?: string | null; aiSearchModel?: NamespacesInstancesUpdateResponseAiSearchModel | null; cache?: boolean | null; cacheThreshold?: NamespacesInstancesUpdateResponseCacheThreshold | null; /** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */ cacheTtl?: NamespacesInstancesUpdateResponseCacheTtl | null; chunkOverlap?: number | null; chunkSize?: number | null; createdBy?: string | null; customMetadata?: NamespacesInstancesUpdateResponseCustomMetadataList | null; embeddingModel?: NamespacesInstancesUpdateResponseEmbeddingModel | null; enable?: boolean | null; engineVersion?: number | null; fusionMethod?: NamespacesInstancesUpdateResponseFusionMethod | null; /** Deprecated — use index_method instead. */ hybridSearchEnabled?: boolean | null; /** Controls which storage backends are used during indexing. Defaults to vector-only. */ indexMethod?: InstancesCreateRequestIndexMethod | null; indexingOptions?: NamespacesInstancesUpdateResponseIndexingOptions | null; lastActivity?: string | null; maxNumResults?: number | null; metadata?: InstancesCreateResponseMetadata | null; modifiedBy?: string | null; namespace?: string | null; paused?: boolean | null; publicEndpointId?: string | null; publicEndpointParams?: NamespacesInstancesUpdateResponsePublicEndpointParams | null; reranking?: boolean | null; rerankingModel?: NamespacesInstancesUpdateResponseRerankingModel | null; retrievalOptions?: NamespacesInstancesUpdateResponseRetrievalOptions | null; rewriteModel?: NamespacesInstancesUpdateResponseRewriteModel | null; rewriteQuery?: boolean | null; scoreThreshold?: number | null; source?: string | null; sourceParams?: NamespacesInstancesUpdateResponseSourceParams | null; status?: string | null; /** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */ syncInterval?: NamespacesInstancesUpdateResponseSyncInterval | null; tokenId?: string | null; type?: NamespacesInstancesUpdateResponseType | null; } export declare const UpdateNamespaceInstanceResponse: S.Schema; export interface UpdateTokenRequest { accountId: string; id: string; cfApiId: string; cfApiKey: string; name: string; legacy?: boolean; } export declare const UpdateTokenRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateTokenResponse { id: string; cfApiId: string; createdAt: string; modifiedAt: string; name: string; createdBy?: string | null; enabled?: boolean | null; legacy?: boolean | null; modifiedBy?: string | null; } export declare const UpdateTokenResponse: S.Schema; export interface UploadNamespaceInstanceItemRequest { accountId: string; name: string; /** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */ id: string; } export declare const UploadNamespaceInstanceItemRequest: S.Schema; export type NamespacesInstancesItemsUploadResponseNextAction = "INDEX" | "DELETE"; export declare const NamespacesInstancesItemsUploadResponseNextAction: any; export type NamespacesInstancesItemsUploadResponseStatus = "queued" | "running" | "completed" | "error" | "skipped" | "outdated"; export declare const NamespacesInstancesItemsUploadResponseStatus: any; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UploadNamespaceInstanceItemResponse { id: string; checksum: string; chunksCount: number; createdAt: string; fileSize: number; key: string; lastSeenAt: string; namespace: string; nextAction: NamespacesInstancesItemsUploadResponseNextAction; /** Identifies which data source this item belongs to. "builtin" for uploaded files, "{type}:{source}" for external sources, null for legacy items. */ sourceId: string; status: NamespacesInstancesItemsUploadResponseStatus; error?: string | null; } export declare const UploadNamespaceInstanceItemResponse: S.Schema; export type ChatCompletionsInstanceError = CloudflareOpError; /** Performs a chat completion request against an AI Search instance, using indexed content as context for generating responses. */ export declare const chatCompletionsInstance: API.OperationMethod; export type ChatCompletionsNamespaceError = CloudflareOpError; /** Performs a chat completion request against multiple AI Search instances in parallel, merging retrieved content as context for generating a response. */ export declare const chatCompletionsNamespace: API.OperationMethod; export type ChatCompletionsNamespaceInstanceError = CloudflareOpError; /** Performs a chat completion request against an AI Search instance, using indexed content as context for generating responses. */ export declare const chatCompletionsNamespaceInstance: API.OperationMethod; export type ChunksNamespaceInstanceItemError = CloudflareOpError; /** Lists chunks for a specific item in an AI Search instance, including their text content. */ export declare const chunksNamespaceInstanceItem: API.OperationMethod; export type CreateInstanceError = ValidationError | NotFound | InvalidRoute | InstanceAlreadyExists | InvalidTokenCredentials | Forbidden | CloudflareOpError; /** Create a new instance. */ export declare const createInstance: API.OperationMethod; export type CreateInstanceJobError = ValidationError | NotFound | InvalidRoute | UnableToConnect | SyncInCooldown | CloudflareOpError; /** Creates a new indexing job for an AI Search instance. */ export declare const createInstanceJob: API.OperationMethod; export type CreateNamespaceError = NamespaceAlreadyExists | Forbidden | CloudflareOpError; /** Create a new namespace. */ export declare const createNamespace: API.OperationMethod; export type CreateNamespaceInstanceError = ValidationError | NamespaceNotFound | AiSearchInstanceNotFound | InvalidRoute | InstanceAlreadyExists | InvalidTokenCredentials | WebCrawlerDomainNotOwned | MissingSitemap | Forbidden | CloudflareOpError; /** Create a new instance. */ export declare const createNamespaceInstance: API.OperationMethod; export type CreateNamespaceInstanceJobError = CloudflareOpError; /** Creates a new indexing job for an AI Search instance. */ export declare const createNamespaceInstanceJob: API.OperationMethod; export type CreateOrUpdateNamespaceInstanceItemError = CloudflareOpError; /** Creates or updates an indexed item in an AI Search instance. */ export declare const createOrUpdateNamespaceInstanceItem: API.OperationMethod; export type CreateTokenError = ValidationError | NotFound | InvalidRoute | InvalidTokenCredentials | Forbidden | CloudflareOpError; /** Create a new token. */ export declare const createToken: API.OperationMethod; export type DeleteInstanceError = ValidationError | NotFound | InvalidRoute | Forbidden | CloudflareOpError; /** Delete instance. */ export declare const deleteInstance: API.OperationMethod; export type DeleteNamespaceError = NamespaceNotFound | Forbidden | CloudflareOpError; /** Delete namespace. */ export declare const deleteNamespace: API.OperationMethod; export type DeleteNamespaceInstanceError = ValidationError | NamespaceNotFound | AiSearchInstanceNotFound | InvalidRoute | Forbidden | CloudflareOpError; /** Delete instance. */ export declare const deleteNamespaceInstance: API.OperationMethod; export type DeleteNamespaceInstanceItemError = CloudflareOpError; /** Deletes a file from a managed AI Search instance and triggers a reindex. */ export declare const deleteNamespaceInstanceItem: API.OperationMethod; export type DeleteTokenError = ValidationError | NotFound | InvalidRoute | TokenNotFound | TokenInUseByInstances | Forbidden | CloudflareOpError; /** Delete token. */ export declare const deleteToken: API.OperationMethod; export type DownloadNamespaceInstanceItemError = CloudflareOpError; /** Downloads the raw file content for a specific item from the managed AI Search instance storage. */ export declare const downloadNamespaceInstanceItem: API.OperationMethod; export type GetInstanceJobError = ValidationError | NotFound | InvalidRoute | CloudflareOpError; /** Retrieves details for a specific AI Search indexing job. */ export declare const getInstanceJob: API.OperationMethod; export type GetNamespaceInstanceItemError = CloudflareOpError; /** Retrieves a specific indexed item from an AI Search instance. */ export declare const getNamespaceInstanceItem: API.OperationMethod; export type GetNamespaceInstanceJobError = CloudflareOpError; /** Retrieves details for a specific AI Search indexing job. */ export declare const getNamespaceInstanceJob: API.OperationMethod; export type ListInstanceJobsError = CloudflareOpError; /** Lists indexing jobs for an AI Search instance. */ export declare const listInstanceJobs: API.PaginatedOperationMethod; export type ListInstancesError = InvalidRoute | Forbidden | CloudflareOpError; /** List instances. */ export declare const listInstances: API.PaginatedOperationMethod; export type ListNamespaceInstanceItemsError = CloudflareOpError; /** Lists indexed items in an AI Search instance. */ export declare const listNamespaceInstanceItems: API.PaginatedOperationMethod; export type ListNamespaceInstanceJobsError = CloudflareOpError; /** Lists indexing jobs for an AI Search instance. */ export declare const listNamespaceInstanceJobs: API.PaginatedOperationMethod; export type ListNamespaceInstancesError = NamespaceNotFound | InvalidRoute | Forbidden | CloudflareOpError; /** List instances. */ export declare const listNamespaceInstances: API.PaginatedOperationMethod; export type ListNamespacesError = CloudflareOpError; /** List namespaces. */ export declare const listNamespaces: API.PaginatedOperationMethod; export type ListTokensError = InvalidRoute | Forbidden | CloudflareOpError; /** List tokens. */ export declare const listTokens: API.PaginatedOperationMethod; export type LogsInstanceJobError = ValidationError | NotFound | InvalidRoute | CloudflareOpError; /** Lists log entries for an AI Search indexing job. */ export declare const logsInstanceJob: API.OperationMethod; export type LogsNamespaceInstanceItemError = CloudflareOpError; /** Lists processing logs for a specific item in an AI Search instance. */ export declare const logsNamespaceInstanceItem: API.OperationMethod; export type LogsNamespaceInstanceJobError = CloudflareOpError; /** Lists log entries for an AI Search indexing job. */ export declare const logsNamespaceInstanceJob: API.OperationMethod; export type PatchNamespaceInstanceJobError = CloudflareOpError; /** Updates the status of an AI Search indexing job. */ export declare const patchNamespaceInstanceJob: API.OperationMethod; export type ReadInstanceError = ValidationError | NotFound | InvalidRoute | Forbidden | CloudflareOpError; /** Read instance. */ export declare const readInstance: API.OperationMethod; export type ReadNamespaceError = NamespaceNotFound | Forbidden | CloudflareOpError; /** Read namespace. */ export declare const readNamespace: API.OperationMethod; export type ReadNamespaceInstanceError = ValidationError | NamespaceNotFound | AiSearchInstanceNotFound | InvalidRoute | Forbidden | CloudflareOpError; /** Read instance. */ export declare const readNamespaceInstance: API.OperationMethod; export type ReadTokenError = ValidationError | NotFound | InvalidRoute | TokenNotFound | Forbidden | CloudflareOpError; /** Read token. */ export declare const readToken: API.OperationMethod; export type SearchInstanceError = CloudflareOpError; /** Executes a semantic search query against an AI Search instance to find relevant indexed content. */ export declare const searchInstance: API.OperationMethod; export type SearchNamespaceError = CloudflareOpError; /** Performs a semantic search query against multiple AI Search instances in parallel, merging the retrieved results into a single ranked response. */ export declare const searchNamespace: API.OperationMethod; export type SearchNamespaceInstanceError = CloudflareOpError; /** Executes a semantic search query against an AI Search instance to find relevant indexed content. */ export declare const searchNamespaceInstance: API.OperationMethod; export type StatsInstanceError = ValidationError | NotFound | InvalidRoute | CloudflareOpError; /** Retrieves usage statistics for AI Search instances. */ export declare const statsInstance: API.OperationMethod; export type StatsNamespaceInstanceError = CloudflareOpError; /** Retrieves usage statistics for AI Search instances. */ export declare const statsNamespaceInstance: API.OperationMethod; export type SyncNamespaceInstanceItemError = CloudflareOpError; /** Syncs an item to an AI Search instance index. */ export declare const syncNamespaceInstanceItem: API.OperationMethod; export type UpdateInstanceError = ValidationError | NotFound | InvalidRoute | InvalidTokenCredentials | Forbidden | CloudflareOpError; /** Update instance. */ export declare const updateInstance: API.OperationMethod; export type UpdateNamespaceError = NamespaceNotFound | Forbidden | CloudflareOpError; /** Update namespace. */ export declare const updateNamespace: API.OperationMethod; export type UpdateNamespaceInstanceError = ValidationError | NamespaceNotFound | AiSearchInstanceNotFound | InvalidRoute | InvalidTokenCredentials | WebCrawlerDomainNotOwned | Forbidden | CloudflareOpError; /** Update instance. */ export declare const updateNamespaceInstance: API.OperationMethod; export type UpdateTokenError = ValidationError | NotFound | InvalidRoute | TokenNotFound | Forbidden | InvalidTokenCredentials | CloudflareOpError; /** Update token. */ export declare const updateToken: API.OperationMethod; export type UploadNamespaceInstanceItemError = CloudflareOpError; /** Uploads a file to a managed AI Search instance via multipart/form-data (max 4MB). */ export declare const uploadNamespaceInstanceItem: API.OperationMethod; //# sourceMappingURL=ai_search.d.ts.map