@airweave/sdk 0.9.39 → 0.9.41

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.
Files changed (130) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/index.d.ts +1 -1
  3. package/dist/cjs/api/index.js +1 -1
  4. package/dist/cjs/api/resources/collections/client/Client.d.ts +0 -63
  5. package/dist/cjs/api/resources/collections/client/Client.js +0 -181
  6. package/dist/cjs/api/resources/collections/client/requests/index.d.ts +0 -1
  7. package/dist/cjs/api/resources/collections/index.d.ts +0 -1
  8. package/dist/cjs/api/resources/collections/index.js +0 -1
  9. package/dist/cjs/api/resources/index.d.ts +1 -2
  10. package/dist/cjs/api/resources/index.js +2 -3
  11. package/dist/cjs/api/types/AgenticSearchRequest.d.ts +7 -7
  12. package/dist/cjs/api/types/ClassicSearchRequest.d.ts +17 -0
  13. package/dist/cjs/api/types/EventType.d.ts +7 -1
  14. package/dist/cjs/api/types/EventType.js +6 -0
  15. package/dist/cjs/api/types/FeatureFlag.d.ts +1 -2
  16. package/dist/cjs/api/types/FeatureFlag.js +0 -1
  17. package/dist/cjs/api/types/{AgenticSearchFilterCondition.d.ts → FilterCondition.d.ts} +8 -8
  18. package/dist/cjs/api/types/{AgenticSearchFilterGroup.d.ts → FilterGroup.d.ts} +2 -2
  19. package/dist/cjs/api/types/{AgenticSearchFilterOperator.d.ts → FilterOperator.d.ts} +2 -2
  20. package/dist/cjs/api/types/{AgenticSearchFilterOperator.js → FilterOperator.js} +2 -2
  21. package/dist/{esm/api/types/AgenticSearchFilterableField.d.mts → cjs/api/types/FilterableField.d.ts} +3 -3
  22. package/dist/cjs/api/types/{AgenticSearchFilterableField.js → FilterableField.js} +2 -2
  23. package/dist/cjs/api/types/InstantSearchRequest.d.ts +19 -0
  24. package/dist/cjs/api/types/InternalAgenticSearchRequest.d.ts +19 -0
  25. package/dist/cjs/api/types/{AgenticSearchAccessControl.d.ts → SearchAccessControl.d.ts} +2 -2
  26. package/dist/{esm/api/types/AgenticSearchBreadcrumb.d.mts → cjs/api/types/SearchBreadcrumb.d.ts} +2 -2
  27. package/dist/cjs/api/types/{AgenticSearchResult.d.ts → SearchResult.d.ts} +5 -5
  28. package/dist/cjs/api/types/{AgenticSearchSystemMetadata.d.ts → SearchSystemMetadata.d.ts} +6 -6
  29. package/dist/cjs/api/types/SearchV2Response.d.ts +11 -0
  30. package/dist/cjs/api/types/UsageSnapshot.d.ts +4 -0
  31. package/dist/cjs/api/types/index.d.ts +13 -18
  32. package/dist/cjs/api/types/index.js +13 -18
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/esm/Client.mjs +2 -2
  36. package/dist/esm/api/index.d.mts +1 -1
  37. package/dist/esm/api/index.mjs +1 -1
  38. package/dist/esm/api/resources/collections/client/Client.d.mts +0 -63
  39. package/dist/esm/api/resources/collections/client/Client.mjs +0 -181
  40. package/dist/esm/api/resources/collections/client/requests/index.d.mts +0 -1
  41. package/dist/esm/api/resources/collections/index.d.mts +0 -1
  42. package/dist/esm/api/resources/collections/index.mjs +0 -1
  43. package/dist/esm/api/resources/index.d.mts +1 -2
  44. package/dist/esm/api/resources/index.mjs +1 -2
  45. package/dist/esm/api/types/AgenticSearchRequest.d.mts +7 -7
  46. package/dist/esm/api/types/ClassicSearchRequest.d.mts +17 -0
  47. package/dist/esm/api/types/EventType.d.mts +7 -1
  48. package/dist/esm/api/types/EventType.mjs +6 -0
  49. package/dist/esm/api/types/FeatureFlag.d.mts +1 -2
  50. package/dist/esm/api/types/FeatureFlag.mjs +0 -1
  51. package/dist/esm/api/types/{AgenticSearchFilterCondition.d.mts → FilterCondition.d.mts} +8 -8
  52. package/dist/esm/api/types/{AgenticSearchFilterGroup.d.mts → FilterGroup.d.mts} +2 -2
  53. package/dist/esm/api/types/{AgenticSearchFilterOperator.d.mts → FilterOperator.d.mts} +2 -2
  54. package/dist/esm/api/types/{AgenticSearchFilterOperator.mjs → FilterOperator.mjs} +1 -1
  55. package/dist/{cjs/api/types/AgenticSearchFilterableField.d.ts → esm/api/types/FilterableField.d.mts} +3 -3
  56. package/dist/esm/api/types/{AgenticSearchFilterableField.mjs → FilterableField.mjs} +1 -1
  57. package/dist/esm/api/types/InstantSearchRequest.d.mts +19 -0
  58. package/dist/esm/api/types/InternalAgenticSearchRequest.d.mts +19 -0
  59. package/dist/esm/api/types/{AgenticSearchAccessControl.d.mts → SearchAccessControl.d.mts} +2 -2
  60. package/dist/{cjs/api/types/AgenticSearchBreadcrumb.d.ts → esm/api/types/SearchBreadcrumb.d.mts} +2 -2
  61. package/dist/esm/api/types/{AgenticSearchResult.d.mts → SearchResult.d.mts} +5 -5
  62. package/dist/esm/api/types/{AgenticSearchSystemMetadata.d.mts → SearchSystemMetadata.d.mts} +6 -6
  63. package/dist/esm/api/types/SearchV2Response.d.mts +11 -0
  64. package/dist/esm/api/types/UsageSnapshot.d.mts +4 -0
  65. package/dist/esm/api/types/index.d.mts +13 -18
  66. package/dist/esm/api/types/index.mjs +13 -18
  67. package/dist/esm/version.d.mts +1 -1
  68. package/dist/esm/version.mjs +1 -1
  69. package/package.json +1 -1
  70. package/reference.md +0 -175
  71. package/dist/cjs/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.ts +0 -26
  72. package/dist/cjs/api/resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.d.ts +0 -5
  73. package/dist/cjs/api/resources/collections/types/index.d.ts +0 -1
  74. package/dist/cjs/api/resources/collections/types/index.js +0 -17
  75. package/dist/cjs/api/types/AgenticSearchAnswer.d.ts +0 -13
  76. package/dist/cjs/api/types/AgenticSearchCitation.d.ts +0 -10
  77. package/dist/cjs/api/types/AgenticSearchMode.d.ts +0 -14
  78. package/dist/cjs/api/types/AgenticSearchMode.js +0 -10
  79. package/dist/cjs/api/types/AgenticSearchResponse.d.ts +0 -11
  80. package/dist/cjs/api/types/AgenticSearchSystemMetadata.js +0 -5
  81. package/dist/cjs/api/types/LegacySearchRequest.d.ts +0 -39
  82. package/dist/cjs/api/types/LegacySearchRequest.js +0 -14
  83. package/dist/cjs/api/types/LegacySearchResponse.d.ts +0 -17
  84. package/dist/cjs/api/types/LegacySearchResponse.js +0 -5
  85. package/dist/cjs/api/types/QueryExpansionStrategy.d.ts +0 -12
  86. package/dist/cjs/api/types/QueryExpansionStrategy.js +0 -11
  87. package/dist/cjs/api/types/ResponseType.d.ts +0 -11
  88. package/dist/cjs/api/types/ResponseType.js +0 -10
  89. package/dist/cjs/api/types/SearchStatus.d.ts +0 -12
  90. package/dist/cjs/api/types/SearchStatus.js +0 -11
  91. package/dist/esm/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.mts +0 -26
  92. package/dist/esm/api/resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.d.mts +0 -5
  93. package/dist/esm/api/resources/collections/types/index.d.mts +0 -1
  94. package/dist/esm/api/resources/collections/types/index.mjs +0 -1
  95. package/dist/esm/api/types/AgenticSearchAnswer.d.mts +0 -13
  96. package/dist/esm/api/types/AgenticSearchCitation.d.mts +0 -10
  97. package/dist/esm/api/types/AgenticSearchMode.d.mts +0 -14
  98. package/dist/esm/api/types/AgenticSearchMode.mjs +0 -7
  99. package/dist/esm/api/types/AgenticSearchResponse.d.mts +0 -11
  100. package/dist/esm/api/types/AgenticSearchSystemMetadata.mjs +0 -4
  101. package/dist/esm/api/types/LegacySearchRequest.d.mts +0 -39
  102. package/dist/esm/api/types/LegacySearchRequest.mjs +0 -11
  103. package/dist/esm/api/types/LegacySearchResponse.d.mts +0 -17
  104. package/dist/esm/api/types/LegacySearchResponse.mjs +0 -4
  105. package/dist/esm/api/types/QueryExpansionStrategy.d.mts +0 -12
  106. package/dist/esm/api/types/QueryExpansionStrategy.mjs +0 -8
  107. package/dist/esm/api/types/ResponseType.d.mts +0 -11
  108. package/dist/esm/api/types/ResponseType.mjs +0 -7
  109. package/dist/esm/api/types/SearchStatus.d.mts +0 -12
  110. package/dist/esm/api/types/SearchStatus.mjs +0 -8
  111. /package/dist/cjs/api/{resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.js → types/ClassicSearchRequest.js} +0 -0
  112. /package/dist/cjs/api/{resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.js → types/FilterCondition.js} +0 -0
  113. /package/dist/cjs/api/types/{AgenticSearchAccessControl.js → FilterGroup.js} +0 -0
  114. /package/dist/cjs/api/types/{AgenticSearchAnswer.js → InstantSearchRequest.js} +0 -0
  115. /package/dist/cjs/api/types/{AgenticSearchBreadcrumb.js → InternalAgenticSearchRequest.js} +0 -0
  116. /package/dist/cjs/api/types/{AgenticSearchCitation.js → SearchAccessControl.js} +0 -0
  117. /package/dist/cjs/api/types/{AgenticSearchFilterCondition.js → SearchBreadcrumb.js} +0 -0
  118. /package/dist/cjs/api/types/{AgenticSearchFilterGroup.js → SearchResult.js} +0 -0
  119. /package/dist/cjs/api/types/{AgenticSearchResponse.js → SearchSystemMetadata.js} +0 -0
  120. /package/dist/cjs/api/types/{AgenticSearchResult.js → SearchV2Response.js} +0 -0
  121. /package/dist/esm/api/{resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.mjs → types/ClassicSearchRequest.mjs} +0 -0
  122. /package/dist/esm/api/{resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.mjs → types/FilterCondition.mjs} +0 -0
  123. /package/dist/esm/api/types/{AgenticSearchAccessControl.mjs → FilterGroup.mjs} +0 -0
  124. /package/dist/esm/api/types/{AgenticSearchAnswer.mjs → InstantSearchRequest.mjs} +0 -0
  125. /package/dist/esm/api/types/{AgenticSearchBreadcrumb.mjs → InternalAgenticSearchRequest.mjs} +0 -0
  126. /package/dist/esm/api/types/{AgenticSearchCitation.mjs → SearchAccessControl.mjs} +0 -0
  127. /package/dist/esm/api/types/{AgenticSearchFilterCondition.mjs → SearchBreadcrumb.mjs} +0 -0
  128. /package/dist/esm/api/types/{AgenticSearchFilterGroup.mjs → SearchResult.mjs} +0 -0
  129. /package/dist/esm/api/types/{AgenticSearchResponse.mjs → SearchSystemMetadata.mjs} +0 -0
  130. /package/dist/esm/api/types/{AgenticSearchResult.mjs → SearchV2Response.mjs} +0 -0
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Answer generated from search results.
7
- */
8
- export interface AgenticSearchAnswer {
9
- /** The answer text. Should be clear and well-structured. */
10
- text: string;
11
- /** List of entity_ids from search results used to compose the answer. */
12
- citations: AirweaveSDK.AgenticSearchCitation[];
13
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Citation for a source used in the answer.
6
- */
7
- export interface AgenticSearchCitation {
8
- /** The entity ID of a search result used in the answer */
9
- entity_id: string;
10
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Search execution mode.
6
- *
7
- * - FAST: Performs a single search pass.
8
- * - THINKING: Performs an intelligent multi-step search to find the best results.
9
- */
10
- export type AgenticSearchMode = "fast" | "thinking";
11
- export declare const AgenticSearchMode: {
12
- readonly Fast: "fast";
13
- readonly Thinking: "thinking";
14
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AgenticSearchMode = void 0;
7
- exports.AgenticSearchMode = {
8
- Fast: "fast",
9
- Thinking: "thinking",
10
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Response schema for agentic search.
7
- */
8
- export interface AgenticSearchResponse {
9
- results: AirweaveSDK.AgenticSearchResult[];
10
- answer: AirweaveSDK.AgenticSearchAnswer;
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Legacy search request schema for backwards compatibility.
7
- */
8
- export interface LegacySearchRequest {
9
- /** The search query text (max 2048 tokens) */
10
- query: string;
11
- /** Filter for metadata-based filtering */
12
- filter?: Record<string, unknown>;
13
- /** Number of results to skip */
14
- offset?: number;
15
- /** Maximum number of results */
16
- limit?: number;
17
- /** Minimum similarity score threshold (deprecated, will be ignored) */
18
- score_threshold?: number;
19
- /** Type of response - 'raw' or 'completion' */
20
- response_type?: AirweaveSDK.ResponseType;
21
- /** Search method to use */
22
- search_method?: LegacySearchRequest.SearchMethod;
23
- /** How much document age affects the similarity score (0..1) */
24
- recency_bias?: number;
25
- /** Query expansion strategy */
26
- expansion_strategy?: AirweaveSDK.QueryExpansionStrategy;
27
- /** Enable LLM-based reranking to improve result relevance */
28
- enable_reranking?: boolean;
29
- /** Enable automatic filter extraction from natural language query */
30
- enable_query_interpretation?: boolean;
31
- }
32
- export declare namespace LegacySearchRequest {
33
- type SearchMethod = "hybrid" | "neural" | "keyword";
34
- const SearchMethod: {
35
- readonly Hybrid: "hybrid";
36
- readonly Neural: "neural";
37
- readonly Keyword: "keyword";
38
- };
39
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LegacySearchRequest = void 0;
7
- var LegacySearchRequest;
8
- (function (LegacySearchRequest) {
9
- LegacySearchRequest.SearchMethod = {
10
- Hybrid: "hybrid",
11
- Neural: "neural",
12
- Keyword: "keyword",
13
- };
14
- })(LegacySearchRequest || (exports.LegacySearchRequest = LegacySearchRequest = {}));
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Legacy search response schema for backwards compatibility.
7
- */
8
- export interface LegacySearchResponse {
9
- /** Array of search result objects */
10
- results: Record<string, unknown>[];
11
- /** Indicates whether results are raw search matches or AI-generated completions */
12
- response_type: AirweaveSDK.ResponseType;
13
- /** AI-generated natural language answer when response_type is 'completion' */
14
- completion?: string;
15
- /** Status of the search operation */
16
- status: AirweaveSDK.SearchStatus;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Query expansion strategies for search.
6
- */
7
- export type QueryExpansionStrategy = "auto" | "llm" | "no_expansion";
8
- export declare const QueryExpansionStrategy: {
9
- readonly Auto: "auto";
10
- readonly Llm: "llm";
11
- readonly NoExpansion: "no_expansion";
12
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryExpansionStrategy = void 0;
7
- exports.QueryExpansionStrategy = {
8
- Auto: "auto",
9
- Llm: "llm",
10
- NoExpansion: "no_expansion",
11
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Response format options for search results.
6
- */
7
- export type ResponseType = "raw" | "completion";
8
- export declare const ResponseType: {
9
- readonly Raw: "raw";
10
- readonly Completion: "completion";
11
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ResponseType = void 0;
7
- exports.ResponseType = {
8
- Raw: "raw",
9
- Completion: "completion",
10
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Status indicators for search operation outcomes.
6
- */
7
- export type SearchStatus = "success" | "no_relevant_results" | "no_results";
8
- export declare const SearchStatus: {
9
- readonly Success: "success";
10
- readonly NoRelevantResults: "no_relevant_results";
11
- readonly NoResults: "no_results";
12
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SearchStatus = void 0;
7
- exports.SearchStatus = {
8
- Success: "success",
9
- NoRelevantResults: "no_relevant_results",
10
- NoResults: "no_results",
11
- };
@@ -1,26 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../../../../index.mjs";
5
- /**
6
- * @example
7
- * {
8
- * query: "How do I reset my password?",
9
- * response_type: "raw",
10
- * limit: 10,
11
- * offset: 0,
12
- * recency_bias: 1.1
13
- * }
14
- */
15
- export interface SearchGetLegacyCollectionsReadableIdSearchGetRequest {
16
- /** The search query text to find relevant documents and data */
17
- query: string;
18
- /** Format of the response: 'raw' returns search results, 'completion' returns AI-generated answers */
19
- response_type?: AirweaveSDK.ResponseType;
20
- /** Maximum number of results to return */
21
- limit?: number;
22
- /** Number of results to skip for pagination */
23
- offset?: number;
24
- /** How much to weigh recency vs similarity (0=similarity only, 1=recency only) */
25
- recency_bias?: number;
26
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../../../index.mjs";
5
- export type SearchCollectionsReadableIdSearchPostRequest = AirweaveSDK.SearchRequest | AirweaveSDK.LegacySearchRequest;
@@ -1 +0,0 @@
1
- export * from "./SearchCollectionsReadableIdSearchPostRequest.mjs";
@@ -1 +0,0 @@
1
- export * from "./SearchCollectionsReadableIdSearchPostRequest.mjs";
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Answer generated from search results.
7
- */
8
- export interface AgenticSearchAnswer {
9
- /** The answer text. Should be clear and well-structured. */
10
- text: string;
11
- /** List of entity_ids from search results used to compose the answer. */
12
- citations: AirweaveSDK.AgenticSearchCitation[];
13
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Citation for a source used in the answer.
6
- */
7
- export interface AgenticSearchCitation {
8
- /** The entity ID of a search result used in the answer */
9
- entity_id: string;
10
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Search execution mode.
6
- *
7
- * - FAST: Performs a single search pass.
8
- * - THINKING: Performs an intelligent multi-step search to find the best results.
9
- */
10
- export type AgenticSearchMode = "fast" | "thinking";
11
- export declare const AgenticSearchMode: {
12
- readonly Fast: "fast";
13
- readonly Thinking: "thinking";
14
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const AgenticSearchMode = {
5
- Fast: "fast",
6
- Thinking: "thinking",
7
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Response schema for agentic search.
7
- */
8
- export interface AgenticSearchResponse {
9
- results: AirweaveSDK.AgenticSearchResult[];
10
- answer: AirweaveSDK.AgenticSearchAnswer;
11
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,39 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Legacy search request schema for backwards compatibility.
7
- */
8
- export interface LegacySearchRequest {
9
- /** The search query text (max 2048 tokens) */
10
- query: string;
11
- /** Filter for metadata-based filtering */
12
- filter?: Record<string, unknown>;
13
- /** Number of results to skip */
14
- offset?: number;
15
- /** Maximum number of results */
16
- limit?: number;
17
- /** Minimum similarity score threshold (deprecated, will be ignored) */
18
- score_threshold?: number;
19
- /** Type of response - 'raw' or 'completion' */
20
- response_type?: AirweaveSDK.ResponseType;
21
- /** Search method to use */
22
- search_method?: LegacySearchRequest.SearchMethod;
23
- /** How much document age affects the similarity score (0..1) */
24
- recency_bias?: number;
25
- /** Query expansion strategy */
26
- expansion_strategy?: AirweaveSDK.QueryExpansionStrategy;
27
- /** Enable LLM-based reranking to improve result relevance */
28
- enable_reranking?: boolean;
29
- /** Enable automatic filter extraction from natural language query */
30
- enable_query_interpretation?: boolean;
31
- }
32
- export declare namespace LegacySearchRequest {
33
- type SearchMethod = "hybrid" | "neural" | "keyword";
34
- const SearchMethod: {
35
- readonly Hybrid: "hybrid";
36
- readonly Neural: "neural";
37
- readonly Keyword: "keyword";
38
- };
39
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export var LegacySearchRequest;
5
- (function (LegacySearchRequest) {
6
- LegacySearchRequest.SearchMethod = {
7
- Hybrid: "hybrid",
8
- Neural: "neural",
9
- Keyword: "keyword",
10
- };
11
- })(LegacySearchRequest || (LegacySearchRequest = {}));
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Legacy search response schema for backwards compatibility.
7
- */
8
- export interface LegacySearchResponse {
9
- /** Array of search result objects */
10
- results: Record<string, unknown>[];
11
- /** Indicates whether results are raw search matches or AI-generated completions */
12
- response_type: AirweaveSDK.ResponseType;
13
- /** AI-generated natural language answer when response_type is 'completion' */
14
- completion?: string;
15
- /** Status of the search operation */
16
- status: AirweaveSDK.SearchStatus;
17
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Query expansion strategies for search.
6
- */
7
- export type QueryExpansionStrategy = "auto" | "llm" | "no_expansion";
8
- export declare const QueryExpansionStrategy: {
9
- readonly Auto: "auto";
10
- readonly Llm: "llm";
11
- readonly NoExpansion: "no_expansion";
12
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const QueryExpansionStrategy = {
5
- Auto: "auto",
6
- Llm: "llm",
7
- NoExpansion: "no_expansion",
8
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Response format options for search results.
6
- */
7
- export type ResponseType = "raw" | "completion";
8
- export declare const ResponseType: {
9
- readonly Raw: "raw";
10
- readonly Completion: "completion";
11
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const ResponseType = {
5
- Raw: "raw",
6
- Completion: "completion",
7
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Status indicators for search operation outcomes.
6
- */
7
- export type SearchStatus = "success" | "no_relevant_results" | "no_results";
8
- export declare const SearchStatus: {
9
- readonly Success: "success";
10
- readonly NoRelevantResults: "no_relevant_results";
11
- readonly NoResults: "no_results";
12
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const SearchStatus = {
5
- Success: "success",
6
- NoRelevantResults: "no_relevant_results",
7
- NoResults: "no_results",
8
- };