@antfly/sdk 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -332,29 +332,6 @@ interface paths {
332
332
  patch?: never;
333
333
  trace?: never;
334
334
  };
335
- "/agents/answer": {
336
- parameters: {
337
- query?: never;
338
- header?: never;
339
- path?: never;
340
- cookie?: never;
341
- };
342
- get?: never;
343
- put?: never;
344
- /**
345
- * [DEPRECATED] Answer Agent - use /agents/retrieval instead
346
- * @deprecated
347
- * @description DEPRECATED: Use /agents/retrieval instead.
348
- * This endpoint accepts the old AnswerAgentRequest format and internally
349
- * delegates to the retrieval agent for backward compatibility.
350
- */
351
- post: operations["answerAgent"];
352
- delete?: never;
353
- options?: never;
354
- head?: never;
355
- patch?: never;
356
- trace?: never;
357
- };
358
335
  "/agents/query-builder": {
359
336
  parameters: {
360
337
  query?: never;
@@ -410,13 +387,17 @@ interface paths {
410
387
  * - `hybrid`: Combine strategies with RRF or rerank
411
388
  *
412
389
  * **SSE Event Types:**
413
- * - `dfa_state`: DFA state transition
414
- * - `tree_level`: Tree search progress
415
- * - `sufficiency_check`: Whether collected documents are sufficient
416
- * - `hit`: Individual document result
417
- * - `clarification_required`: Need user input
418
- * - `done`: Retrieval complete
419
- * - `error`: Error occurred
390
+ * - `step_started`: Pipeline step began (see SSEStepStarted schema)
391
+ * - `step_progress`: Progress within a step (see SSEStepProgress schema)
392
+ * - `step_completed`: Pipeline step finished (see SSEStepCompleted schema)
393
+ * - `classification`: Query classification result (see ClassificationTransformationResult)
394
+ * - `reasoning`: Streamed reasoning text chunk (string)
395
+ * - `followup`: Generated follow-up question (string)
396
+ * - `hit`: Individual document result (see QueryHit)
397
+ * - `tool_mode`: Tool calling mode selected (see SSEToolMode)
398
+ * - `eval`: Evaluation metrics (see EvalResult)
399
+ * - `done`: Retrieval complete (see RetrievalAgentResult)
400
+ * - `error`: Error occurred (see SSEError)
420
401
  */
421
402
  post: operations["retrievalAgent"];
422
403
  delete?: never;
@@ -985,6 +966,16 @@ interface components$1 {
985
966
  };
986
967
  /** @description Sort direction for a single field. true = descending, false = ascending. */
987
968
  SortDirection: boolean;
969
+ /** @description A single sort field with direction. */
970
+ SortField: {
971
+ /** @description The field name to sort by. */
972
+ field: string;
973
+ /**
974
+ * @description Sort direction. true = descending, false = ascending.
975
+ * @default false
976
+ */
977
+ desc?: boolean;
978
+ };
988
979
  /**
989
980
  * @description Overall health status of the cluster
990
981
  * @enum {string}
@@ -1151,9 +1142,17 @@ interface components$1 {
1151
1142
  [key: string]: components$1["schemas"]["ShardConfig"];
1152
1143
  };
1153
1144
  schema?: components$1["schemas"]["TableSchema"];
1145
+ /** @description Present only when the table is migrating between schema versions. Absent means the table is stable. */
1146
+ migration?: components$1["schemas"]["TableMigration"];
1154
1147
  /** @description PostgreSQL CDC replication sources configured for this table. */
1155
1148
  replication_sources?: components$1["schemas"]["ReplicationSource"][];
1156
1149
  };
1150
+ /** @description Describes an in-progress schema migration. The table serves reads from read_schema while rebuilding full-text indexes for the new schema. */
1151
+ TableMigration: {
1152
+ /** @enum {string} */
1153
+ state: "rebuilding";
1154
+ read_schema: components$1["schemas"]["TableSchema"];
1155
+ };
1157
1156
  /**
1158
1157
  * @description Type of aggregation to compute:
1159
1158
  * - Metrics: sum, avg, min, max, count, sumsquares, stats, cardinality
@@ -2084,6 +2083,59 @@ interface components$1 {
2084
2083
  [key: string]: unknown;
2085
2084
  };
2086
2085
  };
2086
+ /**
2087
+ * @description SSE event types emitted by the retrieval agent streaming endpoint
2088
+ * @enum {string}
2089
+ */
2090
+ SSEEvent: "step_started" | "step_progress" | "step_completed" | "classification" | "reasoning" | "generation" | "followup" | "hit" | "tool_mode" | "eval" | "error" | "done";
2091
+ /** @description Emitted when a pipeline step begins execution */
2092
+ SSEStepStarted: {
2093
+ /**
2094
+ * @description Unique step ID for correlating with step_completed
2095
+ * @example step_cr3ig20h5tbs73e3ahrg
2096
+ */
2097
+ id: string;
2098
+ /**
2099
+ * @description Name of the step (e.g., "semantic_search", "tree_search")
2100
+ * @example semantic_search
2101
+ */
2102
+ step: string;
2103
+ /**
2104
+ * @description Human-readable description of the action being taken
2105
+ * @example Searching for OAuth configuration in doc_embeddings index
2106
+ */
2107
+ action: string;
2108
+ };
2109
+ /**
2110
+ * @description Emitted to report progress within a running step. The `step` field
2111
+ * identifies which step this progress belongs to. Additional properties
2112
+ * vary by step type (e.g., tree_search includes depth, num_nodes, sufficient, etc.).
2113
+ */
2114
+ SSEStepProgress: {
2115
+ /**
2116
+ * @description Name of the step this progress belongs to
2117
+ * @example tree_search
2118
+ */
2119
+ step: string;
2120
+ } & {
2121
+ [key: string]: unknown;
2122
+ };
2123
+ SSEStepCompleted: components$1["schemas"]["RetrievalReasoningStep"];
2124
+ /** @description Emitted when the agent selects a tool-calling mode */
2125
+ SSEToolMode: {
2126
+ /**
2127
+ * @description Tool calling mode selected
2128
+ * @enum {string}
2129
+ */
2130
+ mode: "native" | "structured_output";
2131
+ /** @description Number of tools available (present for native mode) */
2132
+ tools_count?: number;
2133
+ };
2134
+ /** @description Emitted when an error occurs during retrieval */
2135
+ SSEError: {
2136
+ /** @description Error message */
2137
+ error: string;
2138
+ };
2087
2139
  /** @description Statistics from token-based document pruning */
2088
2140
  PruneStats: {
2089
2141
  /** @description Number of resources kept after pruning */
@@ -2584,16 +2636,32 @@ interface components$1 {
2584
2636
  */
2585
2637
  offset?: number;
2586
2638
  /**
2587
- * @description Sort order for results. Map of field names to sort direction (true = descending, false = ascending).
2639
+ * @description Sort order for results. Array of sort fields with direction.
2588
2640
  * Only applicable for full_text_search queries. Semantic searches are always sorted by similarity score.
2589
- * @example {
2590
- * "created_at": true,
2591
- * "score": true
2592
- * }
2641
+ * @example [
2642
+ * {
2643
+ * "field": "created_at",
2644
+ * "desc": true
2645
+ * },
2646
+ * {
2647
+ * "field": "score",
2648
+ * "desc": true
2649
+ * }
2650
+ * ]
2593
2651
  */
2594
- order_by?: {
2595
- [key: string]: components$1["schemas"]["SortDirection"];
2596
- };
2652
+ order_by?: components$1["schemas"]["SortField"][];
2653
+ /**
2654
+ * @description Cursor for forward pagination. Pass the `_sort` values from the last hit
2655
+ * of the previous page. Mutually exclusive with `offset`.
2656
+ * Requires `order_by` to be set. Only supported for full_text_search queries.
2657
+ */
2658
+ search_after?: string[];
2659
+ /**
2660
+ * @description Cursor for backward pagination. Pass the `_sort` values from the first hit
2661
+ * of the current page. Mutually exclusive with `offset`.
2662
+ * Requires `order_by` to be set. Only supported for full_text_search queries.
2663
+ */
2664
+ search_before?: string[];
2597
2665
  /**
2598
2666
  * Format: float
2599
2667
  * @description Maximum distance threshold for semantic similarity search. Results with distance
@@ -2623,6 +2691,14 @@ interface components$1 {
2623
2691
  * @example false
2624
2692
  */
2625
2693
  count?: boolean;
2694
+ /**
2695
+ * @description If true, includes detailed execution profiling in the response.
2696
+ * Adds a `profile` object with per-phase timing breakdowns, shard statistics,
2697
+ * join metadata, reranker stats, and merge details.
2698
+ * Has minor performance overhead — not recommended for production traffic.
2699
+ * @example false
2700
+ */
2701
+ profile?: boolean;
2626
2702
  /**
2627
2703
  * @description Optional reranker configuration to improve result relevance.
2628
2704
  *
@@ -2916,8 +2992,31 @@ interface components$1 {
2916
2992
  * @enum {string}
2917
2993
  */
2918
2994
  JoinStrategy: "broadcast" | "index_lookup" | "shuffle";
2919
- /** @description Statistics and metadata about join execution. */
2920
- JoinResult: {
2995
+ /**
2996
+ * @description Detailed execution profiling for a query. Present in the response
2997
+ * when the request sets `profile: true`.
2998
+ */
2999
+ QueryProfile: {
3000
+ /** @description Shard-level execution statistics. */
3001
+ shards?: components$1["schemas"]["ShardsProfile"];
3002
+ /** @description Join execution statistics (present when query used a join). */
3003
+ join?: components$1["schemas"]["JoinProfile"];
3004
+ /** @description Reranking statistics (present when a reranker was used). */
3005
+ reranker?: components$1["schemas"]["RerankerProfile"];
3006
+ /** @description Result merge statistics (present for hybrid search). */
3007
+ merge?: components$1["schemas"]["MergeProfile"];
3008
+ };
3009
+ /** @description Shard-level execution statistics. */
3010
+ ShardsProfile: {
3011
+ /** @description Total shards targeted by the query. */
3012
+ total?: number;
3013
+ /** @description Shards that returned results successfully. */
3014
+ successful?: number;
3015
+ /** @description Shards that failed during execution. */
3016
+ failed?: number;
3017
+ };
3018
+ /** @description Join execution statistics. */
3019
+ JoinProfile: {
2921
3020
  /** @description The join strategy that was used. */
2922
3021
  strategy_used?: components$1["schemas"]["JoinStrategy"];
2923
3022
  /**
@@ -2949,7 +3048,33 @@ interface components$1 {
2949
3048
  * Format: int64
2950
3049
  * @description Time spent executing the join in milliseconds.
2951
3050
  */
2952
- join_time_ms?: number;
3051
+ duration_ms?: number;
3052
+ };
3053
+ /** @description Reranking execution statistics. */
3054
+ RerankerProfile: {
3055
+ /** @description Reranker model that was used. */
3056
+ model?: string;
3057
+ /** @description Number of documents that were reranked. */
3058
+ documents_reranked?: number;
3059
+ /**
3060
+ * Format: int64
3061
+ * @description Time spent reranking in milliseconds.
3062
+ */
3063
+ duration_ms?: number;
3064
+ };
3065
+ /** @description Result merge statistics for hybrid search. */
3066
+ MergeProfile: {
3067
+ /** @description Merge strategy that was used. */
3068
+ strategy?: components$1["schemas"]["MergeStrategy"];
3069
+ /** @description Number of hits from full-text search before merge. */
3070
+ full_text_hits?: number;
3071
+ /** @description Number of hits from semantic search before merge. */
3072
+ semantic_hits?: number;
3073
+ /**
3074
+ * Format: int64
3075
+ * @description Time spent merging results in milliseconds.
3076
+ */
3077
+ duration_ms?: number;
2953
3078
  };
2954
3079
  /** @description Statistics about a table used for query planning. */
2955
3080
  TableStatistics: {
@@ -3012,6 +3137,11 @@ interface components$1 {
3012
3137
  _source?: {
3013
3138
  [key: string]: unknown;
3014
3139
  };
3140
+ /**
3141
+ * @description Sort key values for this hit. Pass as search_after or search_before
3142
+ * to paginate to the next/previous page. Only present when order_by is specified.
3143
+ */
3144
+ _sort?: string[];
3015
3145
  };
3016
3146
  /** @description A list of query hits. */
3017
3147
  QueryHits: {
@@ -3049,8 +3179,8 @@ interface components$1 {
3049
3179
  graph_results?: {
3050
3180
  [key: string]: components$1["schemas"]["GraphQueryResult"];
3051
3181
  };
3052
- /** @description Statistics and metadata about join execution (when join was used). */
3053
- join_result?: components$1["schemas"]["JoinResult"];
3182
+ /** @description Detailed execution profile (present when `profile: true` in request). */
3183
+ profile?: components$1["schemas"]["QueryProfile"];
3054
3184
  /**
3055
3185
  * Format: int64
3056
3186
  * @description Duration of the query in milliseconds.
@@ -4027,9 +4157,10 @@ interface components$1 {
4027
4157
  min_score_ratio?: number;
4028
4158
  /**
4029
4159
  * Format: double
4030
- * @description Stop returning results when score drops more than this percentage
4031
- * from the previous result. Detects "elbows" in score distribution.
4032
- * For example, 30.0 stops when score drops 30% from previous result.
4160
+ * @description Stop returning results when the gap between consecutive scores
4161
+ * exceeds this percentage of the total score range (max - min).
4162
+ * Detects "elbows" in score distributions regardless of score scale.
4163
+ * For example, 30.0 stops when a gap spans 30% of the score range.
4033
4164
  * @example 30
4034
4165
  */
4035
4166
  max_score_gap_percent?: number;
@@ -4805,205 +4936,6 @@ interface components$1 {
4805
4936
  /** @description Total evaluation duration in milliseconds */
4806
4937
  duration_ms?: number;
4807
4938
  };
4808
- /** @description Retry configuration for generator calls */
4809
- RetryConfig: {
4810
- /**
4811
- * @description Maximum number of retry attempts
4812
- * @default 3
4813
- */
4814
- max_attempts?: number;
4815
- /**
4816
- * @description Initial backoff delay in milliseconds
4817
- * @default 1000
4818
- */
4819
- initial_backoff_ms?: number;
4820
- /**
4821
- * Format: float
4822
- * @description Multiplier for exponential backoff
4823
- * @default 2
4824
- */
4825
- backoff_multiplier?: number;
4826
- /**
4827
- * @description Maximum backoff delay in milliseconds
4828
- * @default 30000
4829
- */
4830
- max_backoff_ms?: number;
4831
- };
4832
- /**
4833
- * @description Condition for trying the next generator in chain:
4834
- * - always: Always try next regardless of outcome
4835
- * - on_error: Try next on any error (default)
4836
- * - on_timeout: Try next only on timeout errors
4837
- * - on_rate_limit: Try next only on rate limit errors
4838
- * @default on_error
4839
- * @enum {string}
4840
- */
4841
- ChainCondition: "always" | "on_error" | "on_timeout" | "on_rate_limit";
4842
- /** @description A single link in a generator chain with optional retry and condition */
4843
- ChainLink: {
4844
- generator: components$1["schemas"]["GeneratorConfig"];
4845
- /** @description Retry configuration for this generator */
4846
- retry?: components$1["schemas"]["RetryConfig"];
4847
- /** @description When to try the next generator in chain */
4848
- condition?: components$1["schemas"]["ChainCondition"];
4849
- };
4850
- /**
4851
- * @description Strategy for query transformation and retrieval:
4852
- * - simple: Direct query with multi-phrase expansion. Best for straightforward factual queries.
4853
- * - decompose: Break complex queries into sub-questions, retrieve for each. Best for multi-part questions.
4854
- * - step_back: Generate broader background query first, then specific query. Best for questions needing context.
4855
- * - hyde: Generate hypothetical answer document, embed that for retrieval. Best for abstract/conceptual questions.
4856
- * @enum {string}
4857
- */
4858
- QueryStrategy: "simple" | "decompose" | "step_back" | "hyde";
4859
- /**
4860
- * @description Mode for semantic query generation:
4861
- * - rewrite: Transform query into expanded keywords/concepts optimized for vector search (Level 2 optimization)
4862
- * - hypothetical: Generate a hypothetical answer that would appear in relevant documents (HyDE - Level 3 optimization)
4863
- * @enum {string}
4864
- */
4865
- SemanticQueryMode: "rewrite" | "hypothetical";
4866
- /**
4867
- * @description Configuration for the classification step. This step analyzes the query,
4868
- * selects the optimal retrieval strategy, and generates semantic transformations.
4869
- */
4870
- ClassificationStepConfig: {
4871
- /**
4872
- * @description Enable query classification and strategy selection
4873
- * @default false
4874
- */
4875
- enabled?: boolean;
4876
- /** @description Generator to use for classification. If not specified, uses the default summarizer. */
4877
- generator?: components$1["schemas"]["GeneratorConfig"];
4878
- /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
4879
- chain?: components$1["schemas"]["ChainLink"][];
4880
- /**
4881
- * @description Include pre-retrieval reasoning explaining query analysis and strategy selection
4882
- * @default false
4883
- */
4884
- with_reasoning?: boolean;
4885
- /** @description Override LLM strategy selection. If not set, the LLM chooses optimal strategy. */
4886
- force_strategy?: components$1["schemas"]["QueryStrategy"];
4887
- /** @description Override semantic query mode selection. */
4888
- force_semantic_mode?: components$1["schemas"]["SemanticQueryMode"];
4889
- /**
4890
- * @description Number of alternative query phrasings to generate
4891
- * @default 3
4892
- */
4893
- multi_phrase_count?: number;
4894
- };
4895
- /**
4896
- * @description Configuration for the generation step. This step generates the final
4897
- * response from retrieved documents using the reasoning as context.
4898
- */
4899
- GenerationStepConfig: {
4900
- /**
4901
- * @description Enable generation from retrieved documents
4902
- * @default false
4903
- */
4904
- enabled?: boolean;
4905
- /** @description Generator to use for generation. If not specified, uses the default summarizer. */
4906
- generator?: components$1["schemas"]["GeneratorConfig"];
4907
- /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
4908
- chain?: components$1["schemas"]["ChainLink"][];
4909
- /** @description Custom system prompt for answer generation */
4910
- system_prompt?: string;
4911
- /**
4912
- * @description Custom guidance for generation tone, detail level, and style
4913
- * @example Be concise and technical. Include code examples where relevant.
4914
- */
4915
- generation_context?: string;
4916
- };
4917
- /**
4918
- * @description Configuration for generating follow-up questions. Uses a separate generator
4919
- * call which can use a cheaper/faster model.
4920
- */
4921
- FollowupStepConfig: {
4922
- /**
4923
- * @description Enable follow-up question generation
4924
- * @default false
4925
- */
4926
- enabled?: boolean;
4927
- /** @description Generator for follow-up questions. If not specified, uses the answer step's generator. */
4928
- generator?: components$1["schemas"]["GeneratorConfig"];
4929
- /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
4930
- chain?: components$1["schemas"]["ChainLink"][];
4931
- /**
4932
- * @description Number of follow-up questions to generate
4933
- * @default 3
4934
- */
4935
- count?: number;
4936
- /**
4937
- * @description Custom guidance for follow-up question focus and style
4938
- * @example Focus on implementation details and edge cases
4939
- */
4940
- context?: string;
4941
- };
4942
- /**
4943
- * @description Configuration for confidence assessment. Evaluates answer quality and
4944
- * resource relevance. Can use a model calibrated for scoring tasks.
4945
- */
4946
- ConfidenceStepConfig: {
4947
- /**
4948
- * @description Enable confidence scoring
4949
- * @default false
4950
- */
4951
- enabled?: boolean;
4952
- /** @description Generator for confidence assessment. If not specified, uses the answer step's generator. */
4953
- generator?: components$1["schemas"]["GeneratorConfig"];
4954
- /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
4955
- chain?: components$1["schemas"]["ChainLink"][];
4956
- /**
4957
- * @description Custom guidance for confidence assessment approach
4958
- * @example Be conservative - only give high confidence if resources directly address the question
4959
- */
4960
- context?: string;
4961
- };
4962
- /**
4963
- * @description Configuration for inline evaluation of query results.
4964
- * Add to RAGRequest, QueryRequest, or AnswerAgentRequest.
4965
- */
4966
- EvalConfig: {
4967
- /** @description List of evaluators to run */
4968
- evaluators?: components$1["schemas"]["EvaluatorName"][];
4969
- /**
4970
- * @description LLM configuration for judge-based evaluators.
4971
- * Falls back to default if not specified.
4972
- */
4973
- judge?: components$1["schemas"]["GeneratorConfig"];
4974
- /** @description Ground truth data for retrieval metrics */
4975
- ground_truth?: components$1["schemas"]["GroundTruth"];
4976
- /** @description Evaluation options (k, thresholds, etc.) */
4977
- options?: components$1["schemas"]["EvalOptions"];
4978
- };
4979
- /**
4980
- * @description Classification of query type: question (specific factual query) or search (exploratory query)
4981
- * @enum {string}
4982
- */
4983
- RouteType: "question" | "search";
4984
- /** @description Query classification and transformation result combining all query enhancements including strategy selection and semantic optimization */
4985
- ClassificationTransformationResult: {
4986
- route_type: components$1["schemas"]["RouteType"];
4987
- strategy: components$1["schemas"]["QueryStrategy"];
4988
- semantic_mode: components$1["schemas"]["SemanticQueryMode"];
4989
- /** @description Clarified query with added context for answer generation (human-readable) */
4990
- improved_query: string;
4991
- /** @description Optimized query for vector/semantic search. Content style depends on semantic_mode: keywords for 'rewrite', hypothetical answer for 'hypothetical' */
4992
- semantic_query: string;
4993
- /** @description Broader background query for context (only present when strategy is 'step_back') */
4994
- step_back_query?: string;
4995
- /** @description Decomposed sub-questions (only present when strategy is 'decompose') */
4996
- sub_questions?: string[];
4997
- /** @description Alternative phrasings of the query for expanded retrieval coverage */
4998
- multi_phrases?: string[];
4999
- /** @description Pre-retrieval reasoning explaining query analysis and strategy selection (only present when with_classification_reasoning is enabled) */
5000
- reasoning?: string;
5001
- /**
5002
- * Format: float
5003
- * @description Classification confidence (0.0 to 1.0)
5004
- */
5005
- confidence: number;
5006
- };
5007
4939
  /**
5008
4940
  * @description Role of the message sender in the conversation
5009
4941
  * @enum {string}
@@ -5061,6 +4993,48 @@ interface components$1 {
5061
4993
  /** @description Filter value (string, number, boolean, or array for range/in operators) */
5062
4994
  value: unknown;
5063
4995
  };
4996
+ /** @description Retry configuration for generator calls */
4997
+ RetryConfig: {
4998
+ /**
4999
+ * @description Maximum number of retry attempts
5000
+ * @default 3
5001
+ */
5002
+ max_attempts?: number;
5003
+ /**
5004
+ * @description Initial backoff delay in milliseconds
5005
+ * @default 1000
5006
+ */
5007
+ initial_backoff_ms?: number;
5008
+ /**
5009
+ * Format: float
5010
+ * @description Multiplier for exponential backoff
5011
+ * @default 2
5012
+ */
5013
+ backoff_multiplier?: number;
5014
+ /**
5015
+ * @description Maximum backoff delay in milliseconds
5016
+ * @default 30000
5017
+ */
5018
+ max_backoff_ms?: number;
5019
+ };
5020
+ /**
5021
+ * @description Condition for trying the next generator in chain:
5022
+ * - always: Always try next regardless of outcome
5023
+ * - on_error: Try next on any error (default)
5024
+ * - on_timeout: Try next only on timeout errors
5025
+ * - on_rate_limit: Try next only on rate limit errors
5026
+ * @default on_error
5027
+ * @enum {string}
5028
+ */
5029
+ ChainCondition: "always" | "on_error" | "on_timeout" | "on_rate_limit";
5030
+ /** @description A single link in a generator chain with optional retry and condition */
5031
+ ChainLink: {
5032
+ generator: components$1["schemas"]["GeneratorConfig"];
5033
+ /** @description Retry configuration for this generator */
5034
+ retry?: components$1["schemas"]["RetryConfig"];
5035
+ /** @description When to try the next generator in chain */
5036
+ condition?: components$1["schemas"]["ChainCondition"];
5037
+ };
5064
5038
  /**
5065
5039
  * @description Available tool names for the chat and retrieval agents.
5066
5040
  * - add_filter: Add search filters (field constraints)
@@ -5447,6 +5421,163 @@ interface components$1 {
5447
5421
  */
5448
5422
  max_tool_iterations?: number;
5449
5423
  };
5424
+ /**
5425
+ * @description Strategy for query transformation and retrieval:
5426
+ * - simple: Direct query with multi-phrase expansion. Best for straightforward factual queries.
5427
+ * - decompose: Break complex queries into sub-questions, retrieve for each. Best for multi-part questions.
5428
+ * - step_back: Generate broader background query first, then specific query. Best for questions needing context.
5429
+ * - hyde: Generate hypothetical answer document, embed that for retrieval. Best for abstract/conceptual questions.
5430
+ * @enum {string}
5431
+ */
5432
+ QueryStrategy: "simple" | "decompose" | "step_back" | "hyde";
5433
+ /**
5434
+ * @description Mode for semantic query generation:
5435
+ * - rewrite: Transform query into expanded keywords/concepts optimized for vector search (Level 2 optimization)
5436
+ * - hypothetical: Generate a hypothetical answer that would appear in relevant documents (HyDE - Level 3 optimization)
5437
+ * @enum {string}
5438
+ */
5439
+ SemanticQueryMode: "rewrite" | "hypothetical";
5440
+ /**
5441
+ * @description Configuration for the classification step. This step analyzes the query,
5442
+ * selects the optimal retrieval strategy, and generates semantic transformations.
5443
+ */
5444
+ ClassificationStepConfig: {
5445
+ /**
5446
+ * @description Enable query classification and strategy selection
5447
+ * @default false
5448
+ */
5449
+ enabled?: boolean;
5450
+ /** @description Generator to use for classification. If not specified, uses the default summarizer. */
5451
+ generator?: components$1["schemas"]["GeneratorConfig"];
5452
+ /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
5453
+ chain?: components$1["schemas"]["ChainLink"][];
5454
+ /**
5455
+ * @description Include pre-retrieval reasoning explaining query analysis and strategy selection
5456
+ * @default false
5457
+ */
5458
+ with_reasoning?: boolean;
5459
+ /** @description Override LLM strategy selection. If not set, the LLM chooses optimal strategy. */
5460
+ force_strategy?: components$1["schemas"]["QueryStrategy"];
5461
+ /** @description Override semantic query mode selection. */
5462
+ force_semantic_mode?: components$1["schemas"]["SemanticQueryMode"];
5463
+ /**
5464
+ * @description Number of alternative query phrasings to generate
5465
+ * @default 3
5466
+ */
5467
+ multi_phrase_count?: number;
5468
+ };
5469
+ /**
5470
+ * @description Configuration for the generation step. This step generates the final
5471
+ * response from retrieved documents using the reasoning as context.
5472
+ */
5473
+ GenerationStepConfig: {
5474
+ /**
5475
+ * @description Enable generation from retrieved documents
5476
+ * @default false
5477
+ */
5478
+ enabled?: boolean;
5479
+ /** @description Generator to use for generation. If not specified, uses the default summarizer. */
5480
+ generator?: components$1["schemas"]["GeneratorConfig"];
5481
+ /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
5482
+ chain?: components$1["schemas"]["ChainLink"][];
5483
+ /** @description Custom system prompt for answer generation */
5484
+ system_prompt?: string;
5485
+ /**
5486
+ * @description Custom guidance for generation tone, detail level, and style
5487
+ * @example Be concise and technical. Include code examples where relevant.
5488
+ */
5489
+ generation_context?: string;
5490
+ };
5491
+ /**
5492
+ * @description Configuration for generating follow-up questions. Uses a separate generator
5493
+ * call which can use a cheaper/faster model.
5494
+ */
5495
+ FollowupStepConfig: {
5496
+ /**
5497
+ * @description Enable follow-up question generation
5498
+ * @default false
5499
+ */
5500
+ enabled?: boolean;
5501
+ /** @description Generator for follow-up questions. If not specified, uses the answer step's generator. */
5502
+ generator?: components$1["schemas"]["GeneratorConfig"];
5503
+ /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
5504
+ chain?: components$1["schemas"]["ChainLink"][];
5505
+ /**
5506
+ * @description Number of follow-up questions to generate
5507
+ * @default 3
5508
+ */
5509
+ count?: number;
5510
+ /**
5511
+ * @description Custom guidance for follow-up question focus and style
5512
+ * @example Focus on implementation details and edge cases
5513
+ */
5514
+ context?: string;
5515
+ };
5516
+ /**
5517
+ * @description Configuration for confidence assessment. Evaluates answer quality and
5518
+ * resource relevance. Can use a model calibrated for scoring tasks.
5519
+ */
5520
+ ConfidenceStepConfig: {
5521
+ /**
5522
+ * @description Enable confidence scoring
5523
+ * @default false
5524
+ */
5525
+ enabled?: boolean;
5526
+ /** @description Generator for confidence assessment. If not specified, uses the answer step's generator. */
5527
+ generator?: components$1["schemas"]["GeneratorConfig"];
5528
+ /** @description Chain of generators to try in order. Mutually exclusive with 'generator'. */
5529
+ chain?: components$1["schemas"]["ChainLink"][];
5530
+ /**
5531
+ * @description Custom guidance for confidence assessment approach
5532
+ * @example Be conservative - only give high confidence if resources directly address the question
5533
+ */
5534
+ context?: string;
5535
+ };
5536
+ /**
5537
+ * @description Configuration for inline evaluation of query results.
5538
+ * Add to RAGRequest, QueryRequest, or AnswerAgentRequest.
5539
+ */
5540
+ EvalConfig: {
5541
+ /** @description List of evaluators to run */
5542
+ evaluators?: components$1["schemas"]["EvaluatorName"][];
5543
+ /**
5544
+ * @description LLM configuration for judge-based evaluators.
5545
+ * Falls back to default if not specified.
5546
+ */
5547
+ judge?: components$1["schemas"]["GeneratorConfig"];
5548
+ /** @description Ground truth data for retrieval metrics */
5549
+ ground_truth?: components$1["schemas"]["GroundTruth"];
5550
+ /** @description Evaluation options (k, thresholds, etc.) */
5551
+ options?: components$1["schemas"]["EvalOptions"];
5552
+ };
5553
+ /**
5554
+ * @description Classification of query type: question (specific factual query) or search (exploratory query)
5555
+ * @enum {string}
5556
+ */
5557
+ RouteType: "question" | "search";
5558
+ /** @description Query classification and transformation result combining all query enhancements including strategy selection and semantic optimization */
5559
+ ClassificationTransformationResult: {
5560
+ route_type: components$1["schemas"]["RouteType"];
5561
+ strategy: components$1["schemas"]["QueryStrategy"];
5562
+ semantic_mode: components$1["schemas"]["SemanticQueryMode"];
5563
+ /** @description Clarified query with added context for answer generation (human-readable) */
5564
+ improved_query: string;
5565
+ /** @description Optimized query for vector/semantic search. Content style depends on semantic_mode: keywords for 'rewrite', hypothetical answer for 'hypothetical' */
5566
+ semantic_query: string;
5567
+ /** @description Broader background query for context (only present when strategy is 'step_back') */
5568
+ step_back_query?: string;
5569
+ /** @description Decomposed sub-questions (only present when strategy is 'decompose') */
5570
+ sub_questions?: string[];
5571
+ /** @description Alternative phrasings of the query for expanded retrieval coverage */
5572
+ multi_phrases?: string[];
5573
+ /** @description Pre-retrieval reasoning explaining query analysis and strategy selection (only present when with_classification_reasoning is enabled) */
5574
+ reasoning?: string;
5575
+ /**
5576
+ * Format: float
5577
+ * @description Classification confidence (0.0 to 1.0)
5578
+ */
5579
+ confidence: number;
5580
+ };
5450
5581
  FullTextIndexConfig: {
5451
5582
  /** @description Whether to use memory-only storage */
5452
5583
  mem_only?: boolean;
@@ -5927,6 +6058,28 @@ interface components$1 {
5927
6058
  */
5928
6059
  EmbedderConfig: (components$1["schemas"]["GoogleEmbedderConfig"] | components$1["schemas"]["VertexEmbedderConfig"] | components$1["schemas"]["OllamaEmbedderConfig"] | components$1["schemas"]["OpenAIEmbedderConfig"] | components$1["schemas"]["OpenRouterEmbedderConfig"] | components$1["schemas"]["BedrockEmbedderConfig"] | components$1["schemas"]["CohereEmbedderConfig"] | components$1["schemas"]["TermiteEmbedderConfig"] | components$1["schemas"]["AntflyEmbedderConfig"]) & {
5929
6060
  provider: components$1["schemas"]["EmbedderProvider"];
6061
+ /**
6062
+ * @description Declare that this model supports non-text content (images, audio, video, PDFs),
6063
+ * even if the model isn't in Antfly's built-in model registry yet.
6064
+ *
6065
+ * When `true`, Antfly treats the model as multimodal and will send binary content
6066
+ * (images, audio, etc.) to the provider instead of extracting text. The provider's
6067
+ * API is still responsible for accepting the content — this flag just tells Antfly
6068
+ * not to strip it.
6069
+ *
6070
+ * Not needed for models already in the registry (e.g., `multimodalembedding`,
6071
+ * `gemini-embedding-2-preview`, `clip-*`, `clipclap`).
6072
+ *
6073
+ * **Example:**
6074
+ * ```json
6075
+ * {
6076
+ * "provider": "vertex",
6077
+ * "model": "some-future-multimodal-model",
6078
+ * "multimodal": true
6079
+ * }
6080
+ * ```
6081
+ */
6082
+ multimodal?: boolean;
5930
6083
  };
5931
6084
  /** @description Options specific to text chunking. */
5932
6085
  TextChunkOptions: {
@@ -6917,49 +7070,6 @@ interface operations {
6917
7070
  };
6918
7071
  };
6919
7072
  };
6920
- answerAgent: {
6921
- parameters: {
6922
- query?: never;
6923
- header?: never;
6924
- path?: never;
6925
- cookie?: never;
6926
- };
6927
- requestBody: {
6928
- content: {
6929
- "application/json": components$1["schemas"]["AnswerAgentRequest"];
6930
- };
6931
- };
6932
- responses: {
6933
- /** @description Answer agent response */
6934
- 200: {
6935
- headers: {
6936
- [name: string]: unknown;
6937
- };
6938
- content: {
6939
- "text/event-stream": string;
6940
- "application/json": components$1["schemas"]["AnswerAgentResult"];
6941
- };
6942
- };
6943
- /** @description Invalid request */
6944
- 400: {
6945
- headers: {
6946
- [name: string]: unknown;
6947
- };
6948
- content: {
6949
- "application/json": components$1["schemas"]["Error"];
6950
- };
6951
- };
6952
- /** @description Internal server error */
6953
- 500: {
6954
- headers: {
6955
- [name: string]: unknown;
6956
- };
6957
- content: {
6958
- "application/json": components$1["schemas"]["Error"];
6959
- };
6960
- };
6961
- };
6962
- };
6963
7073
  queryBuilderAgent: {
6964
7074
  parameters: {
6965
7075
  query?: never;
@@ -8362,6 +8472,7 @@ interface BatchRequest {
8362
8472
  type Table = components$1["schemas"]["Table"];
8363
8473
  type CreateTableRequest = components$1["schemas"]["CreateTableRequest"];
8364
8474
  type TableSchema = components$1["schemas"]["TableSchema"];
8475
+ type TableMigration = components$1["schemas"]["TableMigration"];
8365
8476
  type TableStatus = components$1["schemas"]["TableStatus"];
8366
8477
  type IndexConfig = components$1["schemas"]["IndexConfig"];
8367
8478
  type IndexType = components$1["schemas"]["IndexType"];
@@ -8449,9 +8560,13 @@ type JoinClause = components$1["schemas"]["JoinClause"];
8449
8560
  type JoinCondition = components$1["schemas"]["JoinCondition"];
8450
8561
  type JoinFilters = components$1["schemas"]["JoinFilters"];
8451
8562
  type JoinOperator = components$1["schemas"]["JoinOperator"];
8452
- type JoinResult = components$1["schemas"]["JoinResult"];
8563
+ type JoinProfile = components$1["schemas"]["JoinProfile"];
8453
8564
  type JoinStrategy = components$1["schemas"]["JoinStrategy"];
8454
8565
  type JoinType = components$1["schemas"]["JoinType"];
8566
+ type QueryProfile = components$1["schemas"]["QueryProfile"];
8567
+ type ShardsProfile = components$1["schemas"]["ShardsProfile"];
8568
+ type RerankerProfile = components$1["schemas"]["RerankerProfile"];
8569
+ type MergeProfile = components$1["schemas"]["MergeProfile"];
8455
8570
  type ResponseData<T extends keyof operations> = operations[T]["responses"] extends {
8456
8571
  200: infer R;
8457
8572
  } ? R extends {
@@ -8501,6 +8616,7 @@ interface RetrievalAgentStreamCallbacks {
8501
8616
  step: string;
8502
8617
  action: string;
8503
8618
  }) => void;
8619
+ onStepProgress?: (data: Record<string, unknown>) => void;
8504
8620
  onStepCompleted?: (step: RetrievalReasoningStep) => void;
8505
8621
  onDone?: (data?: {
8506
8622
  complete: boolean;
@@ -8679,6 +8795,7 @@ declare class AntflyClient {
8679
8795
  api_key?: string | undefined;
8680
8796
  url?: string | undefined;
8681
8797
  provider: components$1["schemas"]["EmbedderProvider"];
8798
+ multimodal?: boolean | undefined;
8682
8799
  } | {
8683
8800
  model: string;
8684
8801
  project_id?: string | undefined;
@@ -8686,39 +8803,47 @@ declare class AntflyClient {
8686
8803
  credentials_path?: string | undefined;
8687
8804
  dimension?: number | undefined;
8688
8805
  provider: components$1["schemas"]["EmbedderProvider"];
8806
+ multimodal?: boolean | undefined;
8689
8807
  } | {
8690
8808
  model: string;
8691
8809
  url?: string | undefined;
8692
8810
  provider: components$1["schemas"]["EmbedderProvider"];
8811
+ multimodal?: boolean | undefined;
8693
8812
  } | {
8694
8813
  model: string;
8695
8814
  url?: string | undefined;
8696
8815
  api_key?: string | undefined;
8697
8816
  dimensions?: number | undefined;
8698
8817
  provider: components$1["schemas"]["EmbedderProvider"];
8818
+ multimodal?: boolean | undefined;
8699
8819
  } | {
8700
8820
  model: string;
8701
8821
  api_key?: string | undefined;
8702
8822
  dimensions?: number | undefined;
8703
8823
  provider: components$1["schemas"]["EmbedderProvider"];
8824
+ multimodal?: boolean | undefined;
8704
8825
  } | {
8705
8826
  model: string;
8706
8827
  region?: string | undefined;
8707
8828
  strip_new_lines?: boolean | undefined;
8708
8829
  batch_size?: number | undefined;
8709
8830
  provider: components$1["schemas"]["EmbedderProvider"];
8831
+ multimodal?: boolean | undefined;
8710
8832
  } | {
8711
8833
  model: string;
8712
8834
  api_key?: string | undefined;
8713
8835
  input_type?: "search_document" | "search_query" | "classification" | "clustering" | undefined;
8714
8836
  truncate?: "NONE" | "START" | "END" | undefined;
8715
8837
  provider: components$1["schemas"]["EmbedderProvider"];
8838
+ multimodal?: boolean | undefined;
8716
8839
  } | {
8717
8840
  model: string;
8718
8841
  api_url?: string | undefined;
8719
8842
  provider: components$1["schemas"]["EmbedderProvider"];
8843
+ multimodal?: boolean | undefined;
8720
8844
  } | {
8721
8845
  provider: components$1["schemas"]["EmbedderProvider"];
8846
+ multimodal?: boolean | undefined;
8722
8847
  } | undefined;
8723
8848
  summarizer?: {
8724
8849
  project_id?: string | undefined;
@@ -8989,6 +9114,40 @@ declare class AntflyClient {
8989
9114
  } | undefined;
8990
9115
  }[] | undefined;
8991
9116
  } | undefined;
9117
+ migration?: {
9118
+ state: "rebuilding";
9119
+ read_schema: {
9120
+ version?: number | undefined;
9121
+ default_type?: string | undefined;
9122
+ enforce_types?: boolean | undefined;
9123
+ document_schemas?: {
9124
+ [x: string]: {
9125
+ description?: string | undefined;
9126
+ schema?: {
9127
+ [x: string]: unknown;
9128
+ } | undefined;
9129
+ };
9130
+ } | undefined;
9131
+ ttl_field?: string | undefined;
9132
+ ttl_duration?: string | undefined;
9133
+ dynamic_templates?: {
9134
+ name?: string | undefined;
9135
+ match?: string | undefined;
9136
+ unmatch?: string | undefined;
9137
+ path_match?: string | undefined;
9138
+ path_unmatch?: string | undefined;
9139
+ match_mapping_type?: "string" | "number" | "boolean" | "date" | "object" | undefined;
9140
+ mapping?: {
9141
+ type?: components$1["schemas"]["schemas-AntflyType"] | undefined;
9142
+ analyzer?: string | undefined;
9143
+ index?: boolean | undefined;
9144
+ store?: boolean | undefined;
9145
+ include_in_all?: boolean | undefined;
9146
+ doc_values?: boolean | undefined;
9147
+ } | undefined;
9148
+ }[] | undefined;
9149
+ };
9150
+ } | undefined;
8992
9151
  replication_sources?: {
8993
9152
  type: "postgres";
8994
9153
  dsn: string;
@@ -15006,6 +15165,7 @@ declare class AntflyClient {
15006
15165
  api_key?: string | undefined;
15007
15166
  url?: string | undefined;
15008
15167
  provider: components$1["schemas"]["EmbedderProvider"];
15168
+ multimodal?: boolean | undefined;
15009
15169
  } | {
15010
15170
  model: string;
15011
15171
  project_id?: string | undefined;
@@ -15013,39 +15173,47 @@ declare class AntflyClient {
15013
15173
  credentials_path?: string | undefined;
15014
15174
  dimension?: number | undefined;
15015
15175
  provider: components$1["schemas"]["EmbedderProvider"];
15176
+ multimodal?: boolean | undefined;
15016
15177
  } | {
15017
15178
  model: string;
15018
15179
  url?: string | undefined;
15019
15180
  provider: components$1["schemas"]["EmbedderProvider"];
15181
+ multimodal?: boolean | undefined;
15020
15182
  } | {
15021
15183
  model: string;
15022
15184
  url?: string | undefined;
15023
15185
  api_key?: string | undefined;
15024
15186
  dimensions?: number | undefined;
15025
15187
  provider: components$1["schemas"]["EmbedderProvider"];
15188
+ multimodal?: boolean | undefined;
15026
15189
  } | {
15027
15190
  model: string;
15028
15191
  api_key?: string | undefined;
15029
15192
  dimensions?: number | undefined;
15030
15193
  provider: components$1["schemas"]["EmbedderProvider"];
15194
+ multimodal?: boolean | undefined;
15031
15195
  } | {
15032
15196
  model: string;
15033
15197
  region?: string | undefined;
15034
15198
  strip_new_lines?: boolean | undefined;
15035
15199
  batch_size?: number | undefined;
15036
15200
  provider: components$1["schemas"]["EmbedderProvider"];
15201
+ multimodal?: boolean | undefined;
15037
15202
  } | {
15038
15203
  model: string;
15039
15204
  api_key?: string | undefined;
15040
15205
  input_type?: "search_document" | "search_query" | "classification" | "clustering" | undefined;
15041
15206
  truncate?: "NONE" | "START" | "END" | undefined;
15042
15207
  provider: components$1["schemas"]["EmbedderProvider"];
15208
+ multimodal?: boolean | undefined;
15043
15209
  } | {
15044
15210
  model: string;
15045
15211
  api_url?: string | undefined;
15046
15212
  provider: components$1["schemas"]["EmbedderProvider"];
15213
+ multimodal?: boolean | undefined;
15047
15214
  } | {
15048
15215
  provider: components$1["schemas"]["EmbedderProvider"];
15216
+ multimodal?: boolean | undefined;
15049
15217
  } | undefined;
15050
15218
  summarizer?: {
15051
15219
  project_id?: string | undefined;
@@ -15316,6 +15484,40 @@ declare class AntflyClient {
15316
15484
  } | undefined;
15317
15485
  }[] | undefined;
15318
15486
  } | undefined;
15487
+ migration?: {
15488
+ state: "rebuilding";
15489
+ read_schema: {
15490
+ version?: number | undefined;
15491
+ default_type?: string | undefined;
15492
+ enforce_types?: boolean | undefined;
15493
+ document_schemas?: {
15494
+ [x: string]: {
15495
+ description?: string | undefined;
15496
+ schema?: {
15497
+ [x: string]: unknown;
15498
+ } | undefined;
15499
+ };
15500
+ } | undefined;
15501
+ ttl_field?: string | undefined;
15502
+ ttl_duration?: string | undefined;
15503
+ dynamic_templates?: {
15504
+ name?: string | undefined;
15505
+ match?: string | undefined;
15506
+ unmatch?: string | undefined;
15507
+ path_match?: string | undefined;
15508
+ path_unmatch?: string | undefined;
15509
+ match_mapping_type?: "string" | "number" | "boolean" | "date" | "object" | undefined;
15510
+ mapping?: {
15511
+ type?: components$1["schemas"]["schemas-AntflyType"] | undefined;
15512
+ analyzer?: string | undefined;
15513
+ index?: boolean | undefined;
15514
+ store?: boolean | undefined;
15515
+ include_in_all?: boolean | undefined;
15516
+ doc_values?: boolean | undefined;
15517
+ } | undefined;
15518
+ }[] | undefined;
15519
+ };
15520
+ } | undefined;
15319
15521
  replication_sources?: {
15320
15522
  type: "postgres";
15321
15523
  dsn: string;
@@ -21333,6 +21535,7 @@ declare class AntflyClient {
21333
21535
  api_key?: string | undefined;
21334
21536
  url?: string | undefined;
21335
21537
  provider: components$1["schemas"]["EmbedderProvider"];
21538
+ multimodal?: boolean | undefined;
21336
21539
  } | {
21337
21540
  model: string;
21338
21541
  project_id?: string | undefined;
@@ -21340,39 +21543,47 @@ declare class AntflyClient {
21340
21543
  credentials_path?: string | undefined;
21341
21544
  dimension?: number | undefined;
21342
21545
  provider: components$1["schemas"]["EmbedderProvider"];
21546
+ multimodal?: boolean | undefined;
21343
21547
  } | {
21344
21548
  model: string;
21345
21549
  url?: string | undefined;
21346
21550
  provider: components$1["schemas"]["EmbedderProvider"];
21551
+ multimodal?: boolean | undefined;
21347
21552
  } | {
21348
21553
  model: string;
21349
21554
  url?: string | undefined;
21350
21555
  api_key?: string | undefined;
21351
21556
  dimensions?: number | undefined;
21352
21557
  provider: components$1["schemas"]["EmbedderProvider"];
21558
+ multimodal?: boolean | undefined;
21353
21559
  } | {
21354
21560
  model: string;
21355
21561
  api_key?: string | undefined;
21356
21562
  dimensions?: number | undefined;
21357
21563
  provider: components$1["schemas"]["EmbedderProvider"];
21564
+ multimodal?: boolean | undefined;
21358
21565
  } | {
21359
21566
  model: string;
21360
21567
  region?: string | undefined;
21361
21568
  strip_new_lines?: boolean | undefined;
21362
21569
  batch_size?: number | undefined;
21363
21570
  provider: components$1["schemas"]["EmbedderProvider"];
21571
+ multimodal?: boolean | undefined;
21364
21572
  } | {
21365
21573
  model: string;
21366
21574
  api_key?: string | undefined;
21367
21575
  input_type?: "search_document" | "search_query" | "classification" | "clustering" | undefined;
21368
21576
  truncate?: "NONE" | "START" | "END" | undefined;
21369
21577
  provider: components$1["schemas"]["EmbedderProvider"];
21578
+ multimodal?: boolean | undefined;
21370
21579
  } | {
21371
21580
  model: string;
21372
21581
  api_url?: string | undefined;
21373
21582
  provider: components$1["schemas"]["EmbedderProvider"];
21583
+ multimodal?: boolean | undefined;
21374
21584
  } | {
21375
21585
  provider: components$1["schemas"]["EmbedderProvider"];
21586
+ multimodal?: boolean | undefined;
21376
21587
  } | undefined;
21377
21588
  summarizer?: {
21378
21589
  project_id?: string | undefined;
@@ -21643,6 +21854,40 @@ declare class AntflyClient {
21643
21854
  } | undefined;
21644
21855
  }[] | undefined;
21645
21856
  } | undefined;
21857
+ migration?: {
21858
+ state: "rebuilding";
21859
+ read_schema: {
21860
+ version?: number | undefined;
21861
+ default_type?: string | undefined;
21862
+ enforce_types?: boolean | undefined;
21863
+ document_schemas?: {
21864
+ [x: string]: {
21865
+ description?: string | undefined;
21866
+ schema?: {
21867
+ [x: string]: unknown;
21868
+ } | undefined;
21869
+ };
21870
+ } | undefined;
21871
+ ttl_field?: string | undefined;
21872
+ ttl_duration?: string | undefined;
21873
+ dynamic_templates?: {
21874
+ name?: string | undefined;
21875
+ match?: string | undefined;
21876
+ unmatch?: string | undefined;
21877
+ path_match?: string | undefined;
21878
+ path_unmatch?: string | undefined;
21879
+ match_mapping_type?: "string" | "number" | "boolean" | "date" | "object" | undefined;
21880
+ mapping?: {
21881
+ type?: components$1["schemas"]["schemas-AntflyType"] | undefined;
21882
+ analyzer?: string | undefined;
21883
+ index?: boolean | undefined;
21884
+ store?: boolean | undefined;
21885
+ include_in_all?: boolean | undefined;
21886
+ doc_values?: boolean | undefined;
21887
+ } | undefined;
21888
+ }[] | undefined;
21889
+ };
21890
+ } | undefined;
21646
21891
  replication_sources?: {
21647
21892
  type: "postgres";
21648
21893
  dsn: string;
@@ -27660,6 +27905,7 @@ declare class AntflyClient {
27660
27905
  api_key?: string | undefined;
27661
27906
  url?: string | undefined;
27662
27907
  provider: components$1["schemas"]["EmbedderProvider"];
27908
+ multimodal?: boolean | undefined;
27663
27909
  } | {
27664
27910
  model: string;
27665
27911
  project_id?: string | undefined;
@@ -27667,39 +27913,47 @@ declare class AntflyClient {
27667
27913
  credentials_path?: string | undefined;
27668
27914
  dimension?: number | undefined;
27669
27915
  provider: components$1["schemas"]["EmbedderProvider"];
27916
+ multimodal?: boolean | undefined;
27670
27917
  } | {
27671
27918
  model: string;
27672
27919
  url?: string | undefined;
27673
27920
  provider: components$1["schemas"]["EmbedderProvider"];
27921
+ multimodal?: boolean | undefined;
27674
27922
  } | {
27675
27923
  model: string;
27676
27924
  url?: string | undefined;
27677
27925
  api_key?: string | undefined;
27678
27926
  dimensions?: number | undefined;
27679
27927
  provider: components$1["schemas"]["EmbedderProvider"];
27928
+ multimodal?: boolean | undefined;
27680
27929
  } | {
27681
27930
  model: string;
27682
27931
  api_key?: string | undefined;
27683
27932
  dimensions?: number | undefined;
27684
27933
  provider: components$1["schemas"]["EmbedderProvider"];
27934
+ multimodal?: boolean | undefined;
27685
27935
  } | {
27686
27936
  model: string;
27687
27937
  region?: string | undefined;
27688
27938
  strip_new_lines?: boolean | undefined;
27689
27939
  batch_size?: number | undefined;
27690
27940
  provider: components$1["schemas"]["EmbedderProvider"];
27941
+ multimodal?: boolean | undefined;
27691
27942
  } | {
27692
27943
  model: string;
27693
27944
  api_key?: string | undefined;
27694
27945
  input_type?: "search_document" | "search_query" | "classification" | "clustering" | undefined;
27695
27946
  truncate?: "NONE" | "START" | "END" | undefined;
27696
27947
  provider: components$1["schemas"]["EmbedderProvider"];
27948
+ multimodal?: boolean | undefined;
27697
27949
  } | {
27698
27950
  model: string;
27699
27951
  api_url?: string | undefined;
27700
27952
  provider: components$1["schemas"]["EmbedderProvider"];
27953
+ multimodal?: boolean | undefined;
27701
27954
  } | {
27702
27955
  provider: components$1["schemas"]["EmbedderProvider"];
27956
+ multimodal?: boolean | undefined;
27703
27957
  } | undefined;
27704
27958
  summarizer?: {
27705
27959
  project_id?: string | undefined;
@@ -27970,6 +28224,40 @@ declare class AntflyClient {
27970
28224
  } | undefined;
27971
28225
  }[] | undefined;
27972
28226
  } | undefined;
28227
+ migration?: {
28228
+ state: "rebuilding";
28229
+ read_schema: {
28230
+ version?: number | undefined;
28231
+ default_type?: string | undefined;
28232
+ enforce_types?: boolean | undefined;
28233
+ document_schemas?: {
28234
+ [x: string]: {
28235
+ description?: string | undefined;
28236
+ schema?: {
28237
+ [x: string]: unknown;
28238
+ } | undefined;
28239
+ };
28240
+ } | undefined;
28241
+ ttl_field?: string | undefined;
28242
+ ttl_duration?: string | undefined;
28243
+ dynamic_templates?: {
28244
+ name?: string | undefined;
28245
+ match?: string | undefined;
28246
+ unmatch?: string | undefined;
28247
+ path_match?: string | undefined;
28248
+ path_unmatch?: string | undefined;
28249
+ match_mapping_type?: "string" | "number" | "boolean" | "date" | "object" | undefined;
28250
+ mapping?: {
28251
+ type?: components$1["schemas"]["schemas-AntflyType"] | undefined;
28252
+ analyzer?: string | undefined;
28253
+ index?: boolean | undefined;
28254
+ store?: boolean | undefined;
28255
+ include_in_all?: boolean | undefined;
28256
+ doc_values?: boolean | undefined;
28257
+ } | undefined;
28258
+ }[] | undefined;
28259
+ };
28260
+ } | undefined;
27973
28261
  replication_sources?: {
27974
28262
  type: "postgres";
27975
28263
  dsn: string;
@@ -34080,6 +34368,7 @@ declare class AntflyClient {
34080
34368
  api_key?: string | undefined;
34081
34369
  url?: string | undefined;
34082
34370
  provider: components$1["schemas"]["EmbedderProvider"];
34371
+ multimodal?: boolean | undefined;
34083
34372
  } | {
34084
34373
  model: string;
34085
34374
  project_id?: string | undefined;
@@ -34087,39 +34376,47 @@ declare class AntflyClient {
34087
34376
  credentials_path?: string | undefined;
34088
34377
  dimension?: number | undefined;
34089
34378
  provider: components$1["schemas"]["EmbedderProvider"];
34379
+ multimodal?: boolean | undefined;
34090
34380
  } | {
34091
34381
  model: string;
34092
34382
  url?: string | undefined;
34093
34383
  provider: components$1["schemas"]["EmbedderProvider"];
34384
+ multimodal?: boolean | undefined;
34094
34385
  } | {
34095
34386
  model: string;
34096
34387
  url?: string | undefined;
34097
34388
  api_key?: string | undefined;
34098
34389
  dimensions?: number | undefined;
34099
34390
  provider: components$1["schemas"]["EmbedderProvider"];
34391
+ multimodal?: boolean | undefined;
34100
34392
  } | {
34101
34393
  model: string;
34102
34394
  api_key?: string | undefined;
34103
34395
  dimensions?: number | undefined;
34104
34396
  provider: components$1["schemas"]["EmbedderProvider"];
34397
+ multimodal?: boolean | undefined;
34105
34398
  } | {
34106
34399
  model: string;
34107
34400
  region?: string | undefined;
34108
34401
  strip_new_lines?: boolean | undefined;
34109
34402
  batch_size?: number | undefined;
34110
34403
  provider: components$1["schemas"]["EmbedderProvider"];
34404
+ multimodal?: boolean | undefined;
34111
34405
  } | {
34112
34406
  model: string;
34113
34407
  api_key?: string | undefined;
34114
34408
  input_type?: "search_document" | "search_query" | "classification" | "clustering" | undefined;
34115
34409
  truncate?: "NONE" | "START" | "END" | undefined;
34116
34410
  provider: components$1["schemas"]["EmbedderProvider"];
34411
+ multimodal?: boolean | undefined;
34117
34412
  } | {
34118
34413
  model: string;
34119
34414
  api_url?: string | undefined;
34120
34415
  provider: components$1["schemas"]["EmbedderProvider"];
34416
+ multimodal?: boolean | undefined;
34121
34417
  } | {
34122
34418
  provider: components$1["schemas"]["EmbedderProvider"];
34419
+ multimodal?: boolean | undefined;
34123
34420
  } | undefined;
34124
34421
  summarizer?: {
34125
34422
  project_id?: string | undefined;
@@ -34441,6 +34738,7 @@ declare class AntflyClient {
34441
34738
  api_key?: string | undefined;
34442
34739
  url?: string | undefined;
34443
34740
  provider: components$1["schemas"]["EmbedderProvider"];
34741
+ multimodal?: boolean | undefined;
34444
34742
  } | {
34445
34743
  model: string;
34446
34744
  project_id?: string | undefined;
@@ -34448,39 +34746,47 @@ declare class AntflyClient {
34448
34746
  credentials_path?: string | undefined;
34449
34747
  dimension?: number | undefined;
34450
34748
  provider: components$1["schemas"]["EmbedderProvider"];
34749
+ multimodal?: boolean | undefined;
34451
34750
  } | {
34452
34751
  model: string;
34453
34752
  url?: string | undefined;
34454
34753
  provider: components$1["schemas"]["EmbedderProvider"];
34754
+ multimodal?: boolean | undefined;
34455
34755
  } | {
34456
34756
  model: string;
34457
34757
  url?: string | undefined;
34458
34758
  api_key?: string | undefined;
34459
34759
  dimensions?: number | undefined;
34460
34760
  provider: components$1["schemas"]["EmbedderProvider"];
34761
+ multimodal?: boolean | undefined;
34461
34762
  } | {
34462
34763
  model: string;
34463
34764
  api_key?: string | undefined;
34464
34765
  dimensions?: number | undefined;
34465
34766
  provider: components$1["schemas"]["EmbedderProvider"];
34767
+ multimodal?: boolean | undefined;
34466
34768
  } | {
34467
34769
  model: string;
34468
34770
  region?: string | undefined;
34469
34771
  strip_new_lines?: boolean | undefined;
34470
34772
  batch_size?: number | undefined;
34471
34773
  provider: components$1["schemas"]["EmbedderProvider"];
34774
+ multimodal?: boolean | undefined;
34472
34775
  } | {
34473
34776
  model: string;
34474
34777
  api_key?: string | undefined;
34475
34778
  input_type?: "search_document" | "search_query" | "classification" | "clustering" | undefined;
34476
34779
  truncate?: "NONE" | "START" | "END" | undefined;
34477
34780
  provider: components$1["schemas"]["EmbedderProvider"];
34781
+ multimodal?: boolean | undefined;
34478
34782
  } | {
34479
34783
  model: string;
34480
34784
  api_url?: string | undefined;
34481
34785
  provider: components$1["schemas"]["EmbedderProvider"];
34786
+ multimodal?: boolean | undefined;
34482
34787
  } | {
34483
34788
  provider: components$1["schemas"]["EmbedderProvider"];
34789
+ multimodal?: boolean | undefined;
34484
34790
  } | undefined;
34485
34791
  summarizer?: {
34486
34792
  project_id?: string | undefined;
@@ -35061,4 +35367,4 @@ declare function geoBoundingBox(field: string, bounds: {
35061
35367
  * ```
35062
35368
  */
35063
35369
 
35064
- export { type AggregationBucket, type AggregationDateRange, type AggregationRange, type AggregationRequest, type AggregationResult, type AggregationType, type AntflyAuth, AntflyClient, type AntflyConfig, type AntflyError, type AntflyType, type BackupRequest, type BatchRequest, type CalendarInterval, type ChatAgentConfig, type ChatAgentTurnResult, type ChatMessage, type ChatMessageRole, type ChatStreamCallbacks, type ChatToolCall, type ChatToolName, type ChatToolResult, type ChatToolsConfig, type ClarificationRequest, type ClassificationTransformationResult, type CreateTableRequest, type CreateUserRequest, type DenseEmbedding, type DistanceRange, type DistanceUnit, type DocumentSchema, type Edge, type EdgeDirection, type EdgeTopology, type EdgeTypeConfig, type EdgesResponse, type EmbedderConfig, type EmbedderProvider, type Embedding, type EvalConfig, type EvalResult, type EvalScores, type EvalSummary, type EvaluatorName, type EvaluatorScore, type FetchConfig, type FilterSpec, type GenerationConfidence, type GeneratorConfig, type GeneratorProvider, type GraphIndexConfig, type GraphNodeSelector, type GraphQuery, type GraphQueryParams, type GraphQueryResult, type GraphQueryType, type GraphResultNode, type IndexConfig, type IndexStatus, type IndexType, type JoinClause, type JoinCondition, type JoinFilters, type JoinOperator, type JoinResult, type JoinStrategy, type JoinType, type Permission, type PermissionType, type QueryBuilderRequest, type QueryBuilderResult, type QueryHit, type QueryOptions, type QueryRequest, type QueryResponses, type QueryResult, type QueryStrategy, type RerankerConfig, type ResourceType, type ResponseData, type RestoreRequest, type RetrievalAgentRequest, type RetrievalAgentResult, type RetrievalAgentSteps, type RetrievalAgentStreamCallbacks, type RetrievalReasoningStep, type RouteType, type SemanticQueryMode, type SignificanceAlgorithm, type SparseEmbedding, type Table, type TableSchema, type TableStatus, type TraversalResult, type TraversalRules, type UpdatePasswordRequest, type User, type WebSearchConfig, type WebSearchResultItem, type components as bleve_components, boolean, type components$1 as components, conjunction, dateRange, AntflyClient as default, disjunction, docIds, embedderProviders, fuzzy, generatorProviders, geoBoundingBox, geoDistance, match, matchAll, matchNone, matchPhrase, numericRange, type operations, type paths, prefix, queryString, term };
35370
+ export { type AggregationBucket, type AggregationDateRange, type AggregationRange, type AggregationRequest, type AggregationResult, type AggregationType, type AntflyAuth, AntflyClient, type AntflyConfig, type AntflyError, type AntflyType, type BackupRequest, type BatchRequest, type CalendarInterval, type ChatAgentConfig, type ChatAgentTurnResult, type ChatMessage, type ChatMessageRole, type ChatStreamCallbacks, type ChatToolCall, type ChatToolName, type ChatToolResult, type ChatToolsConfig, type ClarificationRequest, type ClassificationTransformationResult, type CreateTableRequest, type CreateUserRequest, type DenseEmbedding, type DistanceRange, type DistanceUnit, type DocumentSchema, type Edge, type EdgeDirection, type EdgeTopology, type EdgeTypeConfig, type EdgesResponse, type EmbedderConfig, type EmbedderProvider, type Embedding, type EvalConfig, type EvalResult, type EvalScores, type EvalSummary, type EvaluatorName, type EvaluatorScore, type FetchConfig, type FilterSpec, type GenerationConfidence, type GeneratorConfig, type GeneratorProvider, type GraphIndexConfig, type GraphNodeSelector, type GraphQuery, type GraphQueryParams, type GraphQueryResult, type GraphQueryType, type GraphResultNode, type IndexConfig, type IndexStatus, type IndexType, type JoinClause, type JoinCondition, type JoinFilters, type JoinOperator, type JoinProfile, type JoinStrategy, type JoinType, type MergeProfile, type Permission, type PermissionType, type QueryBuilderRequest, type QueryBuilderResult, type QueryHit, type QueryOptions, type QueryProfile, type QueryRequest, type QueryResponses, type QueryResult, type QueryStrategy, type RerankerConfig, type RerankerProfile, type ResourceType, type ResponseData, type RestoreRequest, type RetrievalAgentRequest, type RetrievalAgentResult, type RetrievalAgentSteps, type RetrievalAgentStreamCallbacks, type RetrievalReasoningStep, type RouteType, type SemanticQueryMode, type ShardsProfile, type SignificanceAlgorithm, type SparseEmbedding, type Table, type TableMigration, type TableSchema, type TableStatus, type TraversalResult, type TraversalRules, type UpdatePasswordRequest, type User, type WebSearchConfig, type WebSearchResultItem, type components as bleve_components, boolean, type components$1 as components, conjunction, dateRange, AntflyClient as default, disjunction, docIds, embedderProviders, fuzzy, generatorProviders, geoBoundingBox, geoDistance, match, matchAll, matchNone, matchPhrase, numericRange, type operations, type paths, prefix, queryString, term };