@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/collections/client/Client.d.ts +0 -63
- package/dist/cjs/api/resources/collections/client/Client.js +0 -181
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/collections/index.d.ts +0 -1
- package/dist/cjs/api/resources/collections/index.js +0 -1
- package/dist/cjs/api/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/index.js +2 -3
- package/dist/cjs/api/types/AgenticSearchRequest.d.ts +7 -7
- package/dist/cjs/api/types/ClassicSearchRequest.d.ts +17 -0
- package/dist/cjs/api/types/EventType.d.ts +7 -1
- package/dist/cjs/api/types/EventType.js +6 -0
- package/dist/cjs/api/types/FeatureFlag.d.ts +1 -2
- package/dist/cjs/api/types/FeatureFlag.js +0 -1
- package/dist/cjs/api/types/{AgenticSearchFilterCondition.d.ts → FilterCondition.d.ts} +8 -8
- package/dist/cjs/api/types/{AgenticSearchFilterGroup.d.ts → FilterGroup.d.ts} +2 -2
- package/dist/cjs/api/types/{AgenticSearchFilterOperator.d.ts → FilterOperator.d.ts} +2 -2
- package/dist/cjs/api/types/{AgenticSearchFilterOperator.js → FilterOperator.js} +2 -2
- package/dist/{esm/api/types/AgenticSearchFilterableField.d.mts → cjs/api/types/FilterableField.d.ts} +3 -3
- package/dist/cjs/api/types/{AgenticSearchFilterableField.js → FilterableField.js} +2 -2
- package/dist/cjs/api/types/InstantSearchRequest.d.ts +19 -0
- package/dist/cjs/api/types/InternalAgenticSearchRequest.d.ts +19 -0
- package/dist/cjs/api/types/{AgenticSearchAccessControl.d.ts → SearchAccessControl.d.ts} +2 -2
- package/dist/{esm/api/types/AgenticSearchBreadcrumb.d.mts → cjs/api/types/SearchBreadcrumb.d.ts} +2 -2
- package/dist/cjs/api/types/{AgenticSearchResult.d.ts → SearchResult.d.ts} +5 -5
- package/dist/cjs/api/types/{AgenticSearchSystemMetadata.d.ts → SearchSystemMetadata.d.ts} +6 -6
- package/dist/cjs/api/types/SearchV2Response.d.ts +11 -0
- package/dist/cjs/api/types/UsageSnapshot.d.ts +4 -0
- package/dist/cjs/api/types/index.d.ts +13 -18
- package/dist/cjs/api/types/index.js +13 -18
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/collections/client/Client.d.mts +0 -63
- package/dist/esm/api/resources/collections/client/Client.mjs +0 -181
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/collections/index.d.mts +0 -1
- package/dist/esm/api/resources/collections/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/index.mjs +1 -2
- package/dist/esm/api/types/AgenticSearchRequest.d.mts +7 -7
- package/dist/esm/api/types/ClassicSearchRequest.d.mts +17 -0
- package/dist/esm/api/types/EventType.d.mts +7 -1
- package/dist/esm/api/types/EventType.mjs +6 -0
- package/dist/esm/api/types/FeatureFlag.d.mts +1 -2
- package/dist/esm/api/types/FeatureFlag.mjs +0 -1
- package/dist/esm/api/types/{AgenticSearchFilterCondition.d.mts → FilterCondition.d.mts} +8 -8
- package/dist/esm/api/types/{AgenticSearchFilterGroup.d.mts → FilterGroup.d.mts} +2 -2
- package/dist/esm/api/types/{AgenticSearchFilterOperator.d.mts → FilterOperator.d.mts} +2 -2
- package/dist/esm/api/types/{AgenticSearchFilterOperator.mjs → FilterOperator.mjs} +1 -1
- package/dist/{cjs/api/types/AgenticSearchFilterableField.d.ts → esm/api/types/FilterableField.d.mts} +3 -3
- package/dist/esm/api/types/{AgenticSearchFilterableField.mjs → FilterableField.mjs} +1 -1
- package/dist/esm/api/types/InstantSearchRequest.d.mts +19 -0
- package/dist/esm/api/types/InternalAgenticSearchRequest.d.mts +19 -0
- package/dist/esm/api/types/{AgenticSearchAccessControl.d.mts → SearchAccessControl.d.mts} +2 -2
- package/dist/{cjs/api/types/AgenticSearchBreadcrumb.d.ts → esm/api/types/SearchBreadcrumb.d.mts} +2 -2
- package/dist/esm/api/types/{AgenticSearchResult.d.mts → SearchResult.d.mts} +5 -5
- package/dist/esm/api/types/{AgenticSearchSystemMetadata.d.mts → SearchSystemMetadata.d.mts} +6 -6
- package/dist/esm/api/types/SearchV2Response.d.mts +11 -0
- package/dist/esm/api/types/UsageSnapshot.d.mts +4 -0
- package/dist/esm/api/types/index.d.mts +13 -18
- package/dist/esm/api/types/index.mjs +13 -18
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +0 -175
- package/dist/cjs/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.ts +0 -26
- package/dist/cjs/api/resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.d.ts +0 -5
- package/dist/cjs/api/resources/collections/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/collections/types/index.js +0 -17
- package/dist/cjs/api/types/AgenticSearchAnswer.d.ts +0 -13
- package/dist/cjs/api/types/AgenticSearchCitation.d.ts +0 -10
- package/dist/cjs/api/types/AgenticSearchMode.d.ts +0 -14
- package/dist/cjs/api/types/AgenticSearchMode.js +0 -10
- package/dist/cjs/api/types/AgenticSearchResponse.d.ts +0 -11
- package/dist/cjs/api/types/AgenticSearchSystemMetadata.js +0 -5
- package/dist/cjs/api/types/LegacySearchRequest.d.ts +0 -39
- package/dist/cjs/api/types/LegacySearchRequest.js +0 -14
- package/dist/cjs/api/types/LegacySearchResponse.d.ts +0 -17
- package/dist/cjs/api/types/LegacySearchResponse.js +0 -5
- package/dist/cjs/api/types/QueryExpansionStrategy.d.ts +0 -12
- package/dist/cjs/api/types/QueryExpansionStrategy.js +0 -11
- package/dist/cjs/api/types/ResponseType.d.ts +0 -11
- package/dist/cjs/api/types/ResponseType.js +0 -10
- package/dist/cjs/api/types/SearchStatus.d.ts +0 -12
- package/dist/cjs/api/types/SearchStatus.js +0 -11
- package/dist/esm/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.mts +0 -26
- package/dist/esm/api/resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.d.mts +0 -5
- package/dist/esm/api/resources/collections/types/index.d.mts +0 -1
- package/dist/esm/api/resources/collections/types/index.mjs +0 -1
- package/dist/esm/api/types/AgenticSearchAnswer.d.mts +0 -13
- package/dist/esm/api/types/AgenticSearchCitation.d.mts +0 -10
- package/dist/esm/api/types/AgenticSearchMode.d.mts +0 -14
- package/dist/esm/api/types/AgenticSearchMode.mjs +0 -7
- package/dist/esm/api/types/AgenticSearchResponse.d.mts +0 -11
- package/dist/esm/api/types/AgenticSearchSystemMetadata.mjs +0 -4
- package/dist/esm/api/types/LegacySearchRequest.d.mts +0 -39
- package/dist/esm/api/types/LegacySearchRequest.mjs +0 -11
- package/dist/esm/api/types/LegacySearchResponse.d.mts +0 -17
- package/dist/esm/api/types/LegacySearchResponse.mjs +0 -4
- package/dist/esm/api/types/QueryExpansionStrategy.d.mts +0 -12
- package/dist/esm/api/types/QueryExpansionStrategy.mjs +0 -8
- package/dist/esm/api/types/ResponseType.d.mts +0 -11
- package/dist/esm/api/types/ResponseType.mjs +0 -7
- package/dist/esm/api/types/SearchStatus.d.mts +0 -12
- package/dist/esm/api/types/SearchStatus.mjs +0 -8
- /package/dist/cjs/api/{resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.js → types/ClassicSearchRequest.js} +0 -0
- /package/dist/cjs/api/{resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.js → types/FilterCondition.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchAccessControl.js → FilterGroup.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchAnswer.js → InstantSearchRequest.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchBreadcrumb.js → InternalAgenticSearchRequest.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchCitation.js → SearchAccessControl.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchFilterCondition.js → SearchBreadcrumb.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchFilterGroup.js → SearchResult.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchResponse.js → SearchSystemMetadata.js} +0 -0
- /package/dist/cjs/api/types/{AgenticSearchResult.js → SearchV2Response.js} +0 -0
- /package/dist/esm/api/{resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.mjs → types/ClassicSearchRequest.mjs} +0 -0
- /package/dist/esm/api/{resources/collections/types/SearchCollectionsReadableIdSearchPostRequest.mjs → types/FilterCondition.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchAccessControl.mjs → FilterGroup.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchAnswer.mjs → InstantSearchRequest.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchBreadcrumb.mjs → InternalAgenticSearchRequest.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchCitation.mjs → SearchAccessControl.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchFilterCondition.mjs → SearchBreadcrumb.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchFilterGroup.mjs → SearchResult.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchResponse.mjs → SearchSystemMetadata.mjs} +0 -0
- /package/dist/esm/api/types/{AgenticSearchResult.mjs → SearchV2Response.mjs} +0 -0
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* System metadata in
|
|
5
|
+
* System metadata in search result.
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface SearchSystemMetadata {
|
|
8
8
|
/** Name of the source this entity belongs to. */
|
|
9
9
|
source_name: string;
|
|
10
10
|
/** Type of the entity this entity represents in the source. */
|
|
11
11
|
entity_type: string;
|
|
12
|
-
/** ID of the sync this entity belongs to. */
|
|
13
|
-
sync_id
|
|
14
|
-
/** ID of the sync job this entity belongs to. */
|
|
15
|
-
sync_job_id
|
|
12
|
+
/** ID of the sync this entity belongs to (None for federated). */
|
|
13
|
+
sync_id?: string;
|
|
14
|
+
/** ID of the sync job this entity belongs to (None for federated). */
|
|
15
|
+
sync_job_id?: string;
|
|
16
16
|
/** Index of the chunk in the file. */
|
|
17
17
|
chunk_index: number;
|
|
18
18
|
/** Original entity ID */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Unified response for all search tiers.
|
|
7
|
+
*/
|
|
8
|
+
export interface SearchV2Response {
|
|
9
|
+
/** Search results ordered by relevance. */
|
|
10
|
+
results?: AirweaveSDK.SearchResult[];
|
|
11
|
+
}
|
|
@@ -9,6 +9,8 @@ export interface UsageSnapshot {
|
|
|
9
9
|
entities: number;
|
|
10
10
|
/** Search queries executed */
|
|
11
11
|
queries: number;
|
|
12
|
+
/** Normalized token usage from agentic search */
|
|
13
|
+
tokens?: number;
|
|
12
14
|
/** Source connections configured */
|
|
13
15
|
source_connections: number;
|
|
14
16
|
/** Team members in the organization */
|
|
@@ -17,6 +19,8 @@ export interface UsageSnapshot {
|
|
|
17
19
|
max_entities?: number;
|
|
18
20
|
/** Maximum queries allowed */
|
|
19
21
|
max_queries?: number;
|
|
22
|
+
/** Maximum normalized tokens allowed */
|
|
23
|
+
max_tokens?: number;
|
|
20
24
|
/** Maximum source connections allowed */
|
|
21
25
|
max_source_connections?: number;
|
|
22
26
|
/** Maximum team members allowed */
|
|
@@ -4,19 +4,7 @@ export * from "./ActionCheckRequest.js";
|
|
|
4
4
|
export * from "./ActionCheckResponse.js";
|
|
5
5
|
export * from "./AdminSearchDestination.js";
|
|
6
6
|
export * from "./AdminSyncInfo.js";
|
|
7
|
-
export * from "./AgenticSearchAccessControl.js";
|
|
8
|
-
export * from "./AgenticSearchAnswer.js";
|
|
9
|
-
export * from "./AgenticSearchBreadcrumb.js";
|
|
10
|
-
export * from "./AgenticSearchCitation.js";
|
|
11
|
-
export * from "./AgenticSearchFilterCondition.js";
|
|
12
|
-
export * from "./AgenticSearchFilterGroup.js";
|
|
13
|
-
export * from "./AgenticSearchFilterOperator.js";
|
|
14
|
-
export * from "./AgenticSearchFilterableField.js";
|
|
15
|
-
export * from "./AgenticSearchMode.js";
|
|
16
7
|
export * from "./AgenticSearchRequest.js";
|
|
17
|
-
export * from "./AgenticSearchResponse.js";
|
|
18
|
-
export * from "./AgenticSearchResult.js";
|
|
19
|
-
export * from "./AgenticSearchSystemMetadata.js";
|
|
20
8
|
export * from "./AuthProviderAuthentication.js";
|
|
21
9
|
export * from "./AuthProviderConnection.js";
|
|
22
10
|
export * from "./AuthProviderConnectionCreate.js";
|
|
@@ -38,6 +26,7 @@ export * from "./BrowseTreeResponse.js";
|
|
|
38
26
|
export * from "./CheckStatus.js";
|
|
39
27
|
export * from "./CheckoutSessionRequest.js";
|
|
40
28
|
export * from "./CheckoutSessionResponse.js";
|
|
29
|
+
export * from "./ClassicSearchRequest.js";
|
|
41
30
|
export * from "./Collection.js";
|
|
42
31
|
export * from "./CollectionStatus.js";
|
|
43
32
|
export * from "./ConfigField.js";
|
|
@@ -61,13 +50,17 @@ export * from "./EntityTypeStats.js";
|
|
|
61
50
|
export * from "./EventType.js";
|
|
62
51
|
export * from "./FeatureFlag.js";
|
|
63
52
|
export * from "./Fields.js";
|
|
53
|
+
export * from "./FilterCondition.js";
|
|
54
|
+
export * from "./FilterGroup.js";
|
|
55
|
+
export * from "./FilterOperator.js";
|
|
56
|
+
export * from "./FilterableField.js";
|
|
64
57
|
export * from "./HttpValidationError.js";
|
|
65
58
|
export * from "./HandlerConfig.js";
|
|
66
59
|
export * from "./HealthStatus.js";
|
|
60
|
+
export * from "./InstantSearchRequest.js";
|
|
61
|
+
export * from "./InternalAgenticSearchRequest.js";
|
|
67
62
|
export * from "./InvitationCreate.js";
|
|
68
63
|
export * from "./InvitationResponse.js";
|
|
69
|
-
export * from "./LegacySearchRequest.js";
|
|
70
|
-
export * from "./LegacySearchResponse.js";
|
|
71
64
|
export * from "./LivenessResponse.js";
|
|
72
65
|
export * from "./MemberResponse.js";
|
|
73
66
|
export * from "./MessageResponse.js";
|
|
@@ -82,17 +75,18 @@ export * from "./OrganizationBilling.js";
|
|
|
82
75
|
export * from "./OrganizationCreate.js";
|
|
83
76
|
export * from "./OrganizationMetrics.js";
|
|
84
77
|
export * from "./OrganizationWithRole.js";
|
|
85
|
-
export * from "./QueryExpansionStrategy.js";
|
|
86
78
|
export * from "./RateLimitErrorResponse.js";
|
|
87
79
|
export * from "./ReadinessResponse.js";
|
|
88
80
|
export * from "./RecoveryTask.js";
|
|
89
|
-
export * from "./ResponseType.js";
|
|
90
|
-
export * from "./RetrievalStrategy.js";
|
|
91
81
|
export * from "./ScheduleConfig.js";
|
|
92
82
|
export * from "./ScheduleDetails.js";
|
|
83
|
+
export * from "./SearchAccessControl.js";
|
|
84
|
+
export * from "./SearchBreadcrumb.js";
|
|
93
85
|
export * from "./SearchRequest.js";
|
|
94
86
|
export * from "./SearchResponse.js";
|
|
95
|
-
export * from "./
|
|
87
|
+
export * from "./SearchResult.js";
|
|
88
|
+
export * from "./SearchSystemMetadata.js";
|
|
89
|
+
export * from "./SearchV2Response.js";
|
|
96
90
|
export * from "./SingleActionCheckResponse.js";
|
|
97
91
|
export * from "./Source.js";
|
|
98
92
|
export * from "./SourceConnection.js";
|
|
@@ -125,3 +119,4 @@ export * from "./WebhookMessage.js";
|
|
|
125
119
|
export * from "./WebhookMessageWithAttempts.js";
|
|
126
120
|
export * from "./WebhookSubscription.js";
|
|
127
121
|
export * from "./WebhookSubscriptionDetail.js";
|
|
122
|
+
export * from "./RetrievalStrategy.js";
|
|
@@ -20,19 +20,7 @@ __exportStar(require("./ActionCheckRequest.js"), exports);
|
|
|
20
20
|
__exportStar(require("./ActionCheckResponse.js"), exports);
|
|
21
21
|
__exportStar(require("./AdminSearchDestination.js"), exports);
|
|
22
22
|
__exportStar(require("./AdminSyncInfo.js"), exports);
|
|
23
|
-
__exportStar(require("./AgenticSearchAccessControl.js"), exports);
|
|
24
|
-
__exportStar(require("./AgenticSearchAnswer.js"), exports);
|
|
25
|
-
__exportStar(require("./AgenticSearchBreadcrumb.js"), exports);
|
|
26
|
-
__exportStar(require("./AgenticSearchCitation.js"), exports);
|
|
27
|
-
__exportStar(require("./AgenticSearchFilterCondition.js"), exports);
|
|
28
|
-
__exportStar(require("./AgenticSearchFilterGroup.js"), exports);
|
|
29
|
-
__exportStar(require("./AgenticSearchFilterOperator.js"), exports);
|
|
30
|
-
__exportStar(require("./AgenticSearchFilterableField.js"), exports);
|
|
31
|
-
__exportStar(require("./AgenticSearchMode.js"), exports);
|
|
32
23
|
__exportStar(require("./AgenticSearchRequest.js"), exports);
|
|
33
|
-
__exportStar(require("./AgenticSearchResponse.js"), exports);
|
|
34
|
-
__exportStar(require("./AgenticSearchResult.js"), exports);
|
|
35
|
-
__exportStar(require("./AgenticSearchSystemMetadata.js"), exports);
|
|
36
24
|
__exportStar(require("./AuthProviderAuthentication.js"), exports);
|
|
37
25
|
__exportStar(require("./AuthProviderConnection.js"), exports);
|
|
38
26
|
__exportStar(require("./AuthProviderConnectionCreate.js"), exports);
|
|
@@ -54,6 +42,7 @@ __exportStar(require("./BrowseTreeResponse.js"), exports);
|
|
|
54
42
|
__exportStar(require("./CheckStatus.js"), exports);
|
|
55
43
|
__exportStar(require("./CheckoutSessionRequest.js"), exports);
|
|
56
44
|
__exportStar(require("./CheckoutSessionResponse.js"), exports);
|
|
45
|
+
__exportStar(require("./ClassicSearchRequest.js"), exports);
|
|
57
46
|
__exportStar(require("./Collection.js"), exports);
|
|
58
47
|
__exportStar(require("./CollectionStatus.js"), exports);
|
|
59
48
|
__exportStar(require("./ConfigField.js"), exports);
|
|
@@ -77,13 +66,17 @@ __exportStar(require("./EntityTypeStats.js"), exports);
|
|
|
77
66
|
__exportStar(require("./EventType.js"), exports);
|
|
78
67
|
__exportStar(require("./FeatureFlag.js"), exports);
|
|
79
68
|
__exportStar(require("./Fields.js"), exports);
|
|
69
|
+
__exportStar(require("./FilterCondition.js"), exports);
|
|
70
|
+
__exportStar(require("./FilterGroup.js"), exports);
|
|
71
|
+
__exportStar(require("./FilterOperator.js"), exports);
|
|
72
|
+
__exportStar(require("./FilterableField.js"), exports);
|
|
80
73
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
81
74
|
__exportStar(require("./HandlerConfig.js"), exports);
|
|
82
75
|
__exportStar(require("./HealthStatus.js"), exports);
|
|
76
|
+
__exportStar(require("./InstantSearchRequest.js"), exports);
|
|
77
|
+
__exportStar(require("./InternalAgenticSearchRequest.js"), exports);
|
|
83
78
|
__exportStar(require("./InvitationCreate.js"), exports);
|
|
84
79
|
__exportStar(require("./InvitationResponse.js"), exports);
|
|
85
|
-
__exportStar(require("./LegacySearchRequest.js"), exports);
|
|
86
|
-
__exportStar(require("./LegacySearchResponse.js"), exports);
|
|
87
80
|
__exportStar(require("./LivenessResponse.js"), exports);
|
|
88
81
|
__exportStar(require("./MemberResponse.js"), exports);
|
|
89
82
|
__exportStar(require("./MessageResponse.js"), exports);
|
|
@@ -98,17 +91,18 @@ __exportStar(require("./OrganizationBilling.js"), exports);
|
|
|
98
91
|
__exportStar(require("./OrganizationCreate.js"), exports);
|
|
99
92
|
__exportStar(require("./OrganizationMetrics.js"), exports);
|
|
100
93
|
__exportStar(require("./OrganizationWithRole.js"), exports);
|
|
101
|
-
__exportStar(require("./QueryExpansionStrategy.js"), exports);
|
|
102
94
|
__exportStar(require("./RateLimitErrorResponse.js"), exports);
|
|
103
95
|
__exportStar(require("./ReadinessResponse.js"), exports);
|
|
104
96
|
__exportStar(require("./RecoveryTask.js"), exports);
|
|
105
|
-
__exportStar(require("./ResponseType.js"), exports);
|
|
106
|
-
__exportStar(require("./RetrievalStrategy.js"), exports);
|
|
107
97
|
__exportStar(require("./ScheduleConfig.js"), exports);
|
|
108
98
|
__exportStar(require("./ScheduleDetails.js"), exports);
|
|
99
|
+
__exportStar(require("./SearchAccessControl.js"), exports);
|
|
100
|
+
__exportStar(require("./SearchBreadcrumb.js"), exports);
|
|
109
101
|
__exportStar(require("./SearchRequest.js"), exports);
|
|
110
102
|
__exportStar(require("./SearchResponse.js"), exports);
|
|
111
|
-
__exportStar(require("./
|
|
103
|
+
__exportStar(require("./SearchResult.js"), exports);
|
|
104
|
+
__exportStar(require("./SearchSystemMetadata.js"), exports);
|
|
105
|
+
__exportStar(require("./SearchV2Response.js"), exports);
|
|
112
106
|
__exportStar(require("./SingleActionCheckResponse.js"), exports);
|
|
113
107
|
__exportStar(require("./Source.js"), exports);
|
|
114
108
|
__exportStar(require("./SourceConnection.js"), exports);
|
|
@@ -141,3 +135,4 @@ __exportStar(require("./WebhookMessage.js"), exports);
|
|
|
141
135
|
__exportStar(require("./WebhookMessageWithAttempts.js"), exports);
|
|
142
136
|
__exportStar(require("./WebhookSubscription.js"), exports);
|
|
143
137
|
__exportStar(require("./WebhookSubscriptionDetail.js"), exports);
|
|
138
|
+
__exportStar(require("./RetrievalStrategy.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.9.
|
|
1
|
+
export declare const SDK_VERSION = "v0.9.41";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
|
|
|
12
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
13
|
"X-Fern-Language": "JavaScript",
|
|
14
14
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
15
|
-
"X-Fern-SDK-Version": "v0.9.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.9.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.9.41",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.9.41",
|
|
17
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/esm/api/index.d.mts
CHANGED
package/dist/esm/api/index.mjs
CHANGED
|
@@ -149,68 +149,5 @@ export declare class Collections {
|
|
|
149
149
|
*/
|
|
150
150
|
update(readableId: string, request?: AirweaveSDK.CollectionUpdate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
151
151
|
private __update;
|
|
152
|
-
/**
|
|
153
|
-
* **DEPRECATED**: Use POST /collections/{readable_id}/search instead.
|
|
154
|
-
*
|
|
155
|
-
* This legacy GET endpoint provides basic search functionality via query parameters.
|
|
156
|
-
* Migrate to the POST endpoint for access to advanced features like:
|
|
157
|
-
* - Structured filters
|
|
158
|
-
* - Query expansion
|
|
159
|
-
* - Reranking
|
|
160
|
-
* - Streaming responses
|
|
161
|
-
*
|
|
162
|
-
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
163
|
-
* @param {AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest} request
|
|
164
|
-
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
|
-
*
|
|
166
|
-
* @throws {@link AirweaveSDK.NotFoundError}
|
|
167
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
168
|
-
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* await client.collections.searchGetLegacy("customer-support-tickets-x7k9m", {
|
|
172
|
-
* query: "How do I reset my password?",
|
|
173
|
-
* response_type: "raw",
|
|
174
|
-
* limit: 10,
|
|
175
|
-
* offset: 0,
|
|
176
|
-
* recency_bias: 1.1
|
|
177
|
-
* })
|
|
178
|
-
*/
|
|
179
|
-
searchGetLegacy(readableId: string, request: AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.LegacySearchResponse>;
|
|
180
|
-
private __searchGetLegacy;
|
|
181
|
-
/**
|
|
182
|
-
* Search your collection using semantic and hybrid search.
|
|
183
|
-
*
|
|
184
|
-
* This is the primary search endpoint providing powerful AI-powered search capabilities:
|
|
185
|
-
*
|
|
186
|
-
* **Search Strategies:**
|
|
187
|
-
* - **hybrid** (default): Combines neural (semantic) and keyword (BM25) matching
|
|
188
|
-
* - **neural**: Pure semantic search using embeddings
|
|
189
|
-
* - **keyword**: Traditional keyword-based BM25 search
|
|
190
|
-
*
|
|
191
|
-
* **Features:**
|
|
192
|
-
* - **Query expansion**: Generate query variations to improve recall
|
|
193
|
-
* - **Filter interpretation**: Extract structured filters from natural language
|
|
194
|
-
* - **Reranking**: LLM-based reranking for improved relevance
|
|
195
|
-
* - **Answer generation**: AI-generated answers based on search results
|
|
196
|
-
*
|
|
197
|
-
* **Note**: Accepts both new SearchRequest and legacy LegacySearchRequest formats
|
|
198
|
-
* for backwards compatibility.
|
|
199
|
-
*
|
|
200
|
-
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
201
|
-
* @param {AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest} request
|
|
202
|
-
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
|
-
*
|
|
204
|
-
* @throws {@link AirweaveSDK.NotFoundError}
|
|
205
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
206
|
-
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* await client.collections.search("customer-support-tickets-x7k9m", {
|
|
210
|
-
* query: "How do I reset my password?"
|
|
211
|
-
* })
|
|
212
|
-
*/
|
|
213
|
-
search(readableId: string, request: AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchResponse>;
|
|
214
|
-
private __search;
|
|
215
152
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
216
153
|
}
|
|
@@ -402,187 +402,6 @@ export class Collections {
|
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
-
/**
|
|
406
|
-
* **DEPRECATED**: Use POST /collections/{readable_id}/search instead.
|
|
407
|
-
*
|
|
408
|
-
* This legacy GET endpoint provides basic search functionality via query parameters.
|
|
409
|
-
* Migrate to the POST endpoint for access to advanced features like:
|
|
410
|
-
* - Structured filters
|
|
411
|
-
* - Query expansion
|
|
412
|
-
* - Reranking
|
|
413
|
-
* - Streaming responses
|
|
414
|
-
*
|
|
415
|
-
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
416
|
-
* @param {AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest} request
|
|
417
|
-
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
418
|
-
*
|
|
419
|
-
* @throws {@link AirweaveSDK.NotFoundError}
|
|
420
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
421
|
-
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
422
|
-
*
|
|
423
|
-
* @example
|
|
424
|
-
* await client.collections.searchGetLegacy("customer-support-tickets-x7k9m", {
|
|
425
|
-
* query: "How do I reset my password?",
|
|
426
|
-
* response_type: "raw",
|
|
427
|
-
* limit: 10,
|
|
428
|
-
* offset: 0,
|
|
429
|
-
* recency_bias: 1.1
|
|
430
|
-
* })
|
|
431
|
-
*/
|
|
432
|
-
searchGetLegacy(readableId, request, requestOptions) {
|
|
433
|
-
return core.HttpResponsePromise.fromPromise(this.__searchGetLegacy(readableId, request, requestOptions));
|
|
434
|
-
}
|
|
435
|
-
__searchGetLegacy(readableId, request, requestOptions) {
|
|
436
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
437
|
-
var _a, _b, _c;
|
|
438
|
-
const { query, response_type: responseType, limit, offset, recency_bias: recencyBias } = request;
|
|
439
|
-
const _queryParams = {};
|
|
440
|
-
_queryParams["query"] = query;
|
|
441
|
-
if (responseType != null) {
|
|
442
|
-
_queryParams["response_type"] = responseType;
|
|
443
|
-
}
|
|
444
|
-
if (limit != null) {
|
|
445
|
-
_queryParams["limit"] = limit.toString();
|
|
446
|
-
}
|
|
447
|
-
if (offset != null) {
|
|
448
|
-
_queryParams["offset"] = offset.toString();
|
|
449
|
-
}
|
|
450
|
-
if (recencyBias != null) {
|
|
451
|
-
_queryParams["recency_bias"] = recencyBias.toString();
|
|
452
|
-
}
|
|
453
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
454
|
-
const _response = yield core.fetcher({
|
|
455
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}/search`),
|
|
456
|
-
method: "GET",
|
|
457
|
-
headers: _headers,
|
|
458
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
459
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
460
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
461
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
462
|
-
});
|
|
463
|
-
if (_response.ok) {
|
|
464
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
465
|
-
}
|
|
466
|
-
if (_response.error.reason === "status-code") {
|
|
467
|
-
switch (_response.error.statusCode) {
|
|
468
|
-
case 404:
|
|
469
|
-
throw new AirweaveSDK.NotFoundError(_response.error.body, _response.rawResponse);
|
|
470
|
-
case 422:
|
|
471
|
-
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
472
|
-
case 429:
|
|
473
|
-
throw new AirweaveSDK.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
474
|
-
default:
|
|
475
|
-
throw new errors.AirweaveSDKError({
|
|
476
|
-
statusCode: _response.error.statusCode,
|
|
477
|
-
body: _response.error.body,
|
|
478
|
-
rawResponse: _response.rawResponse,
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
switch (_response.error.reason) {
|
|
483
|
-
case "non-json":
|
|
484
|
-
throw new errors.AirweaveSDKError({
|
|
485
|
-
statusCode: _response.error.statusCode,
|
|
486
|
-
body: _response.error.rawBody,
|
|
487
|
-
rawResponse: _response.rawResponse,
|
|
488
|
-
});
|
|
489
|
-
case "timeout":
|
|
490
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /collections/{readable_id}/search.");
|
|
491
|
-
case "unknown":
|
|
492
|
-
throw new errors.AirweaveSDKError({
|
|
493
|
-
message: _response.error.errorMessage,
|
|
494
|
-
rawResponse: _response.rawResponse,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Search your collection using semantic and hybrid search.
|
|
501
|
-
*
|
|
502
|
-
* This is the primary search endpoint providing powerful AI-powered search capabilities:
|
|
503
|
-
*
|
|
504
|
-
* **Search Strategies:**
|
|
505
|
-
* - **hybrid** (default): Combines neural (semantic) and keyword (BM25) matching
|
|
506
|
-
* - **neural**: Pure semantic search using embeddings
|
|
507
|
-
* - **keyword**: Traditional keyword-based BM25 search
|
|
508
|
-
*
|
|
509
|
-
* **Features:**
|
|
510
|
-
* - **Query expansion**: Generate query variations to improve recall
|
|
511
|
-
* - **Filter interpretation**: Extract structured filters from natural language
|
|
512
|
-
* - **Reranking**: LLM-based reranking for improved relevance
|
|
513
|
-
* - **Answer generation**: AI-generated answers based on search results
|
|
514
|
-
*
|
|
515
|
-
* **Note**: Accepts both new SearchRequest and legacy LegacySearchRequest formats
|
|
516
|
-
* for backwards compatibility.
|
|
517
|
-
*
|
|
518
|
-
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
519
|
-
* @param {AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest} request
|
|
520
|
-
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
521
|
-
*
|
|
522
|
-
* @throws {@link AirweaveSDK.NotFoundError}
|
|
523
|
-
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
524
|
-
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
525
|
-
*
|
|
526
|
-
* @example
|
|
527
|
-
* await client.collections.search("customer-support-tickets-x7k9m", {
|
|
528
|
-
* query: "How do I reset my password?"
|
|
529
|
-
* })
|
|
530
|
-
*/
|
|
531
|
-
search(readableId, request, requestOptions) {
|
|
532
|
-
return core.HttpResponsePromise.fromPromise(this.__search(readableId, request, requestOptions));
|
|
533
|
-
}
|
|
534
|
-
__search(readableId, request, requestOptions) {
|
|
535
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
-
var _a, _b, _c;
|
|
537
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
538
|
-
const _response = yield core.fetcher({
|
|
539
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}/search`),
|
|
540
|
-
method: "POST",
|
|
541
|
-
headers: _headers,
|
|
542
|
-
contentType: "application/json",
|
|
543
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
544
|
-
requestType: "json",
|
|
545
|
-
body: request,
|
|
546
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
547
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
548
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
549
|
-
});
|
|
550
|
-
if (_response.ok) {
|
|
551
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
552
|
-
}
|
|
553
|
-
if (_response.error.reason === "status-code") {
|
|
554
|
-
switch (_response.error.statusCode) {
|
|
555
|
-
case 404:
|
|
556
|
-
throw new AirweaveSDK.NotFoundError(_response.error.body, _response.rawResponse);
|
|
557
|
-
case 422:
|
|
558
|
-
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
559
|
-
case 429:
|
|
560
|
-
throw new AirweaveSDK.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
561
|
-
default:
|
|
562
|
-
throw new errors.AirweaveSDKError({
|
|
563
|
-
statusCode: _response.error.statusCode,
|
|
564
|
-
body: _response.error.body,
|
|
565
|
-
rawResponse: _response.rawResponse,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
switch (_response.error.reason) {
|
|
570
|
-
case "non-json":
|
|
571
|
-
throw new errors.AirweaveSDKError({
|
|
572
|
-
statusCode: _response.error.statusCode,
|
|
573
|
-
body: _response.error.rawBody,
|
|
574
|
-
rawResponse: _response.rawResponse,
|
|
575
|
-
});
|
|
576
|
-
case "timeout":
|
|
577
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /collections/{readable_id}/search.");
|
|
578
|
-
case "unknown":
|
|
579
|
-
throw new errors.AirweaveSDKError({
|
|
580
|
-
message: _response.error.errorMessage,
|
|
581
|
-
rawResponse: _response.rawResponse,
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
405
|
_getCustomAuthorizationHeaders() {
|
|
587
406
|
return __awaiter(this, void 0, void 0, function* () {
|
|
588
407
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type ListCollectionsGetRequest } from "./ListCollectionsGetRequest.mjs";
|
|
2
2
|
export { type CollectionCreate } from "./CollectionCreate.mjs";
|
|
3
3
|
export { type CollectionUpdate } from "./CollectionUpdate.mjs";
|
|
4
|
-
export { type SearchGetLegacyCollectionsReadableIdSearchGetRequest } from "./SearchGetLegacyCollectionsReadableIdSearchGetRequest.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * as collections from "./collections/index.mjs";
|
|
2
|
-
export * from "./collections/types/index.mjs";
|
|
3
1
|
export * as sources from "./sources/index.mjs";
|
|
2
|
+
export * as collections from "./collections/index.mjs";
|
|
4
3
|
export * as sourceConnections from "./sourceConnections/index.mjs";
|
|
5
4
|
export * as webhooks from "./webhooks/index.mjs";
|
|
6
5
|
export * from "./collections/client/requests/index.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * as collections from "./collections/index.mjs";
|
|
2
|
-
export * from "./collections/types/index.mjs";
|
|
3
1
|
export * as sources from "./sources/index.mjs";
|
|
2
|
+
export * as collections from "./collections/index.mjs";
|
|
4
3
|
export * as sourceConnections from "./sourceConnections/index.mjs";
|
|
5
4
|
export * as webhooks from "./webhooks/index.mjs";
|
|
6
5
|
export * from "./collections/client/requests/index.mjs";
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as AirweaveSDK from "../index.mjs";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Agentic search request — full agent loop with tool calling.
|
|
7
7
|
*/
|
|
8
8
|
export interface AgenticSearchRequest {
|
|
9
|
-
/**
|
|
9
|
+
/** Search query text. */
|
|
10
10
|
query: string;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
11
|
+
/** Enable extended thinking / chain-of-thought. */
|
|
12
|
+
thinking?: boolean;
|
|
13
|
+
/** Filter groups (combined with OR). */
|
|
14
|
+
filter?: AirweaveSDK.FilterGroup[];
|
|
15
|
+
/** Max results. None means agent decides. */
|
|
16
16
|
limit?: number;
|
|
17
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Classic search request — LLM generates a search plan, execute against Vespa.
|
|
7
|
+
*/
|
|
8
|
+
export interface ClassicSearchRequest {
|
|
9
|
+
/** Search query text. */
|
|
10
|
+
query: string;
|
|
11
|
+
/** Filter groups (combined with OR). */
|
|
12
|
+
filter?: AirweaveSDK.FilterGroup[];
|
|
13
|
+
/** Max results to return. */
|
|
14
|
+
limit?: number;
|
|
15
|
+
/** Number of results to skip. */
|
|
16
|
+
offset?: number;
|
|
17
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled" | "entity.batch_processed" | "query.processed" | "access_control.batch_processed" | "collection.created" | "collection.updated" | "collection.deleted" | "source_connection.created" | "source_connection.auth_completed" | "source_connection.deleted" | "organization.created" | "organization.deleted" | "organization.member_added" | "organization.member_removed";
|
|
4
|
+
export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled" | "entity.batch_processed" | "query.processed" | "access_control.batch_processed" | "collection.created" | "collection.updated" | "collection.deleted" | "source_connection.created" | "source_connection.auth_completed" | "source_connection.deleted" | "organization.created" | "organization.deleted" | "organization.member_added" | "organization.member_removed" | "search.started" | "search.completed" | "search.failed" | "search.reranking" | "search.thinking" | "search.tool_called";
|
|
5
5
|
export declare const EventType: {
|
|
6
6
|
readonly SyncPending: "sync.pending";
|
|
7
7
|
readonly SyncRunning: "sync.running";
|
|
@@ -21,4 +21,10 @@ export declare const EventType: {
|
|
|
21
21
|
readonly OrganizationDeleted: "organization.deleted";
|
|
22
22
|
readonly OrganizationMemberAdded: "organization.member_added";
|
|
23
23
|
readonly OrganizationMemberRemoved: "organization.member_removed";
|
|
24
|
+
readonly SearchStarted: "search.started";
|
|
25
|
+
readonly SearchCompleted: "search.completed";
|
|
26
|
+
readonly SearchFailed: "search.failed";
|
|
27
|
+
readonly SearchReranking: "search.reranking";
|
|
28
|
+
readonly SearchThinking: "search.thinking";
|
|
29
|
+
readonly SearchToolCalled: "search.tool_called";
|
|
24
30
|
};
|
|
@@ -20,4 +20,10 @@ export const EventType = {
|
|
|
20
20
|
OrganizationDeleted: "organization.deleted",
|
|
21
21
|
OrganizationMemberAdded: "organization.member_added",
|
|
22
22
|
OrganizationMemberRemoved: "organization.member_removed",
|
|
23
|
+
SearchStarted: "search.started",
|
|
24
|
+
SearchCompleted: "search.completed",
|
|
25
|
+
SearchFailed: "search.failed",
|
|
26
|
+
SearchReranking: "search.reranking",
|
|
27
|
+
SearchThinking: "search.thinking",
|
|
28
|
+
SearchToolCalled: "search.tool_called",
|
|
23
29
|
};
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Add new flags here to enable feature gating at the organization level.
|
|
8
8
|
*/
|
|
9
|
-
export type FeatureFlag = "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "
|
|
9
|
+
export type FeatureFlag = "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "api_key_admin_sync" | "connect";
|
|
10
10
|
export declare const FeatureFlag: {
|
|
11
11
|
readonly PrioritySupport: "priority_support";
|
|
12
12
|
readonly SourceRateLimiting: "source_rate_limiting";
|
|
13
13
|
readonly ZephyrScale: "zephyr_scale";
|
|
14
14
|
readonly Sharepoint2019V2: "sharepoint_2019_v2";
|
|
15
|
-
readonly AgenticSearch: "agentic_search";
|
|
16
15
|
readonly ApiKeyAdminSync: "api_key_admin_sync";
|
|
17
16
|
readonly Connect: "connect";
|
|
18
17
|
};
|