@airweave/sdk 0.9.42 → 0.9.44
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/resources/collections/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/collections/client/Client.js +261 -0
- package/dist/cjs/api/{types → resources/collections/client/requests}/ClassicSearchRequest.d.ts +5 -2
- package/dist/cjs/api/{types → resources/collections/client/requests}/InstantSearchRequest.d.ts +5 -2
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/AgenticSearchDoneEvent.d.ts +25 -0
- package/dist/cjs/api/types/AgenticSearchErrorEvent.d.ts +8 -0
- package/dist/cjs/api/types/AgenticSearchEvent.d.ts +25 -0
- package/dist/cjs/api/types/AgenticSearchRerankingEvent.d.ts +16 -0
- package/dist/cjs/api/types/AgenticSearchStartedEvent.d.ts +12 -0
- package/dist/cjs/api/types/AgenticSearchThinkingEvent.d.ts +18 -0
- package/dist/cjs/api/types/AgenticSearchToolCallEvent.d.ts +38 -0
- package/dist/cjs/api/types/AgenticSearchToolCallEvent.js +21 -0
- package/dist/cjs/api/types/CollectToolStats.d.ts +15 -0
- package/dist/cjs/api/types/CountToolStats.d.ts +10 -0
- package/dist/cjs/api/types/EntitySummary.d.ts +5 -0
- package/dist/cjs/api/types/ErrorToolStats.d.ts +9 -0
- package/dist/cjs/api/types/FinishToolStats.d.ts +13 -0
- package/dist/cjs/api/types/NavigateToolStats.d.ts +13 -0
- package/dist/cjs/api/types/ReadToolStats.d.ts +15 -0
- package/dist/cjs/api/types/RetrievalStrategy.d.ts +4 -4
- package/dist/cjs/api/types/RetrievalStrategy.js +2 -2
- package/dist/cjs/api/types/ReviewToolStats.d.ts +12 -0
- package/dist/cjs/api/types/SearchToolStats.d.ts +14 -0
- package/dist/cjs/api/types/index.d.ts +15 -68
- package/dist/cjs/api/types/index.js +15 -68
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +1 -0
- package/dist/cjs/core/stream/Stream.d.ts +46 -0
- package/dist/cjs/core/stream/Stream.js +169 -0
- package/dist/cjs/core/stream/index.d.ts +1 -0
- package/dist/cjs/core/stream/index.js +5 -0
- 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/resources/collections/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/collections/client/Client.mjs +261 -0
- package/dist/esm/api/{types → resources/collections/client/requests}/ClassicSearchRequest.d.mts +5 -2
- package/dist/esm/api/{types → resources/collections/client/requests}/InstantSearchRequest.d.mts +5 -2
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/AgenticSearchDoneEvent.d.mts +25 -0
- package/dist/esm/api/types/AgenticSearchErrorEvent.d.mts +8 -0
- package/dist/esm/api/types/AgenticSearchEvent.d.mts +25 -0
- package/dist/esm/api/types/AgenticSearchRerankingEvent.d.mts +16 -0
- package/dist/esm/api/types/AgenticSearchStartedEvent.d.mts +12 -0
- package/dist/esm/api/types/AgenticSearchThinkingEvent.d.mts +18 -0
- package/dist/esm/api/types/AgenticSearchToolCallEvent.d.mts +38 -0
- package/dist/esm/api/types/AgenticSearchToolCallEvent.mjs +18 -0
- package/dist/esm/api/types/CollectToolStats.d.mts +15 -0
- package/dist/esm/api/types/CountToolStats.d.mts +10 -0
- package/dist/esm/api/types/EntitySummary.d.mts +5 -0
- package/dist/esm/api/types/ErrorToolStats.d.mts +9 -0
- package/dist/esm/api/types/FinishToolStats.d.mts +13 -0
- package/dist/esm/api/types/NavigateToolStats.d.mts +13 -0
- package/dist/esm/api/types/ReadToolStats.d.mts +15 -0
- package/dist/esm/api/types/RetrievalStrategy.d.mts +4 -4
- package/dist/esm/api/types/RetrievalStrategy.mjs +2 -2
- package/dist/esm/api/types/ReviewToolStats.d.mts +12 -0
- package/dist/esm/api/types/SearchToolStats.d.mts +14 -0
- package/dist/esm/api/types/index.d.mts +15 -68
- package/dist/esm/api/types/index.mjs +15 -68
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/stream/Stream.d.mts +46 -0
- package/dist/esm/core/stream/Stream.mjs +164 -0
- package/dist/esm/core/stream/index.d.mts +1 -0
- package/dist/esm/core/stream/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +295 -0
- package/dist/cjs/api/types/ActionCheckRequest.d.ts +0 -10
- package/dist/cjs/api/types/ActionCheckResponse.d.ts +0 -10
- package/dist/cjs/api/types/AdminSearchDestination.d.ts +0 -7
- package/dist/cjs/api/types/AdminSyncInfo.d.ts +0 -36
- package/dist/cjs/api/types/ApiKey.d.ts +0 -17
- package/dist/cjs/api/types/ApiKeyCreate.d.ts +0 -10
- package/dist/cjs/api/types/AuthProviderConnection.d.ts +0 -23
- package/dist/cjs/api/types/AuthProviderConnectionCreate.d.ts +0 -19
- package/dist/cjs/api/types/AuthProviderConnectionUpdate.d.ts +0 -15
- package/dist/cjs/api/types/AuthProviderMetadata.d.ts +0 -17
- package/dist/cjs/api/types/BillingPeriod.d.ts +0 -30
- package/dist/cjs/api/types/BillingPeriodStatus.d.ts +0 -14
- package/dist/cjs/api/types/BillingPeriodStatus.js +0 -13
- package/dist/cjs/api/types/BillingPeriodUsage.d.ts +0 -27
- package/dist/cjs/api/types/BillingPlan.d.ts +0 -14
- package/dist/cjs/api/types/BillingPlan.js +0 -13
- package/dist/cjs/api/types/BillingStatus.d.ts +0 -16
- package/dist/cjs/api/types/BillingStatus.js +0 -15
- package/dist/cjs/api/types/BillingTransition.d.ts +0 -15
- package/dist/cjs/api/types/BillingTransition.js +0 -14
- package/dist/cjs/api/types/BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.d.ts +0 -6
- package/dist/cjs/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.ts +0 -10
- package/dist/cjs/api/types/BrowseNode.d.ts +0 -15
- package/dist/cjs/api/types/BrowseNode.js +0 -5
- package/dist/cjs/api/types/BrowseTreeResponse.d.ts +0 -12
- package/dist/cjs/api/types/BrowseTreeResponse.js +0 -5
- package/dist/cjs/api/types/CheckStatus.d.ts +0 -12
- package/dist/cjs/api/types/CheckStatus.js +0 -11
- package/dist/cjs/api/types/CheckoutSessionRequest.d.ts +0 -14
- package/dist/cjs/api/types/CheckoutSessionRequest.js +0 -5
- package/dist/cjs/api/types/CheckoutSessionResponse.d.ts +0 -10
- package/dist/cjs/api/types/CheckoutSessionResponse.js +0 -5
- package/dist/cjs/api/types/ConfigValues.d.ts +0 -9
- package/dist/cjs/api/types/ConfigValues.js +0 -5
- package/dist/cjs/api/types/ConnectSessionContext.d.ts +0 -26
- package/dist/cjs/api/types/ConnectSessionContext.js +0 -5
- package/dist/cjs/api/types/ConnectSessionCreate.d.ts +0 -20
- package/dist/cjs/api/types/ConnectSessionCreate.js +0 -5
- package/dist/cjs/api/types/ConnectSessionMode.d.ts +0 -18
- package/dist/cjs/api/types/ConnectSessionMode.js +0 -12
- package/dist/cjs/api/types/ConnectSessionResponse.d.ts +0 -16
- package/dist/cjs/api/types/ConnectSessionResponse.js +0 -5
- package/dist/cjs/api/types/CustomerPortalRequest.d.ts +0 -10
- package/dist/cjs/api/types/CustomerPortalRequest.js +0 -5
- package/dist/cjs/api/types/CustomerPortalResponse.d.ts +0 -10
- package/dist/cjs/api/types/CustomerPortalResponse.js +0 -5
- package/dist/cjs/api/types/DependencyCheck.d.ts +0 -12
- package/dist/cjs/api/types/DependencyCheck.js +0 -5
- package/dist/cjs/api/types/EntityCountWithDefinition.d.ts +0 -17
- package/dist/cjs/api/types/EntityCountWithDefinition.js +0 -5
- package/dist/cjs/api/types/EntityDefinitionMetadata.d.ts +0 -15
- package/dist/cjs/api/types/EntityDefinitionMetadata.js +0 -5
- package/dist/cjs/api/types/FeatureFlag.d.ts +0 -17
- package/dist/cjs/api/types/FeatureFlag.js +0 -14
- package/dist/cjs/api/types/InternalAgenticSearchRequest.d.ts +0 -19
- package/dist/cjs/api/types/InternalAgenticSearchRequest.js +0 -5
- package/dist/cjs/api/types/InvitationCreate.d.ts +0 -10
- package/dist/cjs/api/types/InvitationCreate.js +0 -5
- package/dist/cjs/api/types/InvitationResponse.d.ts +0 -13
- package/dist/cjs/api/types/InvitationResponse.js +0 -5
- package/dist/cjs/api/types/LivenessResponse.d.ts +0 -9
- package/dist/cjs/api/types/LivenessResponse.js +0 -5
- package/dist/cjs/api/types/MemberResponse.d.ts +0 -15
- package/dist/cjs/api/types/MemberResponse.js +0 -5
- package/dist/cjs/api/types/MessageResponse.d.ts +0 -10
- package/dist/cjs/api/types/MessageResponse.js +0 -5
- package/dist/cjs/api/types/NodeSelectionData.d.ts +0 -12
- package/dist/cjs/api/types/NodeSelectionData.js +0 -5
- package/dist/cjs/api/types/NodeSelectionRequest.d.ts +0 -10
- package/dist/cjs/api/types/NodeSelectionRequest.js +0 -5
- package/dist/cjs/api/types/NodeSelectionResponse.d.ts +0 -14
- package/dist/cjs/api/types/NodeSelectionResponse.js +0 -5
- package/dist/cjs/api/types/Organization.d.ts +0 -29
- package/dist/cjs/api/types/Organization.js +0 -5
- package/dist/cjs/api/types/OrganizationBilling.d.ts +0 -44
- package/dist/cjs/api/types/OrganizationBilling.js +0 -5
- package/dist/cjs/api/types/OrganizationCreate.d.ts +0 -16
- package/dist/cjs/api/types/OrganizationCreate.js +0 -5
- package/dist/cjs/api/types/OrganizationMetrics.d.ts +0 -47
- package/dist/cjs/api/types/OrganizationMetrics.js +0 -5
- package/dist/cjs/api/types/OrganizationWithRole.d.ts +0 -22
- package/dist/cjs/api/types/OrganizationWithRole.js +0 -5
- package/dist/cjs/api/types/ReadinessResponse.d.ts +0 -18
- package/dist/cjs/api/types/ReadinessResponse.js +0 -13
- package/dist/cjs/api/types/SearchRequest.d.ts +0 -34
- package/dist/cjs/api/types/SearchRequest.js +0 -5
- package/dist/cjs/api/types/SearchResponse.d.ts +0 -15
- package/dist/cjs/api/types/SearchResponse.js +0 -5
- package/dist/cjs/api/types/SingleActionCheckResponse.d.ts +0 -23
- package/dist/cjs/api/types/SingleActionCheckResponse.js +0 -13
- package/dist/cjs/api/types/SourceRateLimit.d.ts +0 -18
- package/dist/cjs/api/types/SourceRateLimit.js +0 -5
- package/dist/cjs/api/types/SourceRateLimitResponse.d.ts +0 -17
- package/dist/cjs/api/types/SourceRateLimitResponse.js +0 -5
- package/dist/cjs/api/types/SourceRateLimitUpdateRequest.d.ts +0 -12
- package/dist/cjs/api/types/SourceRateLimitUpdateRequest.js +0 -5
- package/dist/cjs/api/types/SubscriptionInfo.d.ts +0 -52
- package/dist/cjs/api/types/SubscriptionInfo.js +0 -5
- package/dist/cjs/api/types/SyncJob.d.ts +0 -33
- package/dist/cjs/api/types/SyncJob.js +0 -5
- package/dist/cjs/api/types/SyncStatus.d.ts +0 -12
- package/dist/cjs/api/types/SyncStatus.js +0 -11
- package/dist/cjs/api/types/UpdatePlanRequest.d.ts +0 -12
- package/dist/cjs/api/types/UpdatePlanRequest.js +0 -5
- package/dist/cjs/api/types/UsageDashboard.d.ts +0 -23
- package/dist/cjs/api/types/UsageDashboard.js +0 -5
- package/dist/cjs/api/types/UsageSnapshot.d.ts +0 -32
- package/dist/cjs/api/types/UsageSnapshot.js +0 -5
- package/dist/cjs/api/types/UsageTrend.d.ts +0 -14
- package/dist/cjs/api/types/UsageTrend.js +0 -5
- package/dist/cjs/api/types/User.d.ts +0 -18
- package/dist/cjs/api/types/User.js +0 -5
- package/dist/cjs/api/types/UserCreate.d.ts +0 -11
- package/dist/cjs/api/types/UserCreate.js +0 -5
- package/dist/cjs/api/types/UserOrganization.d.ts +0 -14
- package/dist/cjs/api/types/UserOrganization.js +0 -5
- package/dist/cjs/api/types/VerifyOAuthRequest.d.ts +0 -10
- package/dist/cjs/api/types/VerifyOAuthRequest.js +0 -5
- package/dist/esm/api/types/ActionCheckRequest.d.mts +0 -10
- package/dist/esm/api/types/ActionCheckResponse.d.mts +0 -10
- package/dist/esm/api/types/AdminSearchDestination.d.mts +0 -7
- package/dist/esm/api/types/AdminSyncInfo.d.mts +0 -36
- package/dist/esm/api/types/ApiKey.d.mts +0 -17
- package/dist/esm/api/types/ApiKeyCreate.d.mts +0 -10
- package/dist/esm/api/types/AuthProviderConnection.d.mts +0 -23
- package/dist/esm/api/types/AuthProviderConnectionCreate.d.mts +0 -19
- package/dist/esm/api/types/AuthProviderConnectionUpdate.d.mts +0 -15
- package/dist/esm/api/types/AuthProviderMetadata.d.mts +0 -17
- package/dist/esm/api/types/BillingPeriod.d.mts +0 -30
- package/dist/esm/api/types/BillingPeriodStatus.d.mts +0 -14
- package/dist/esm/api/types/BillingPeriodStatus.mjs +0 -10
- package/dist/esm/api/types/BillingPeriodUsage.d.mts +0 -27
- package/dist/esm/api/types/BillingPlan.d.mts +0 -14
- package/dist/esm/api/types/BillingPlan.mjs +0 -10
- package/dist/esm/api/types/BillingStatus.d.mts +0 -16
- package/dist/esm/api/types/BillingStatus.mjs +0 -12
- package/dist/esm/api/types/BillingTransition.d.mts +0 -15
- package/dist/esm/api/types/BillingTransition.mjs +0 -11
- package/dist/esm/api/types/BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.d.mts +0 -6
- package/dist/esm/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.mts +0 -10
- package/dist/esm/api/types/BrowseNode.d.mts +0 -15
- package/dist/esm/api/types/BrowseNode.mjs +0 -4
- package/dist/esm/api/types/BrowseTreeResponse.d.mts +0 -12
- package/dist/esm/api/types/BrowseTreeResponse.mjs +0 -4
- package/dist/esm/api/types/CheckStatus.d.mts +0 -12
- package/dist/esm/api/types/CheckStatus.mjs +0 -8
- package/dist/esm/api/types/CheckoutSessionRequest.d.mts +0 -14
- package/dist/esm/api/types/CheckoutSessionRequest.mjs +0 -4
- package/dist/esm/api/types/CheckoutSessionResponse.d.mts +0 -10
- package/dist/esm/api/types/CheckoutSessionResponse.mjs +0 -4
- package/dist/esm/api/types/ConfigValues.d.mts +0 -9
- package/dist/esm/api/types/ConfigValues.mjs +0 -4
- package/dist/esm/api/types/ConnectSessionContext.d.mts +0 -26
- package/dist/esm/api/types/ConnectSessionContext.mjs +0 -4
- package/dist/esm/api/types/ConnectSessionCreate.d.mts +0 -20
- package/dist/esm/api/types/ConnectSessionCreate.mjs +0 -4
- package/dist/esm/api/types/ConnectSessionMode.d.mts +0 -18
- package/dist/esm/api/types/ConnectSessionMode.mjs +0 -9
- package/dist/esm/api/types/ConnectSessionResponse.d.mts +0 -16
- package/dist/esm/api/types/ConnectSessionResponse.mjs +0 -4
- package/dist/esm/api/types/CustomerPortalRequest.d.mts +0 -10
- package/dist/esm/api/types/CustomerPortalRequest.mjs +0 -4
- package/dist/esm/api/types/CustomerPortalResponse.d.mts +0 -10
- package/dist/esm/api/types/CustomerPortalResponse.mjs +0 -4
- package/dist/esm/api/types/DependencyCheck.d.mts +0 -12
- package/dist/esm/api/types/DependencyCheck.mjs +0 -4
- package/dist/esm/api/types/EntityCountWithDefinition.d.mts +0 -17
- package/dist/esm/api/types/EntityCountWithDefinition.mjs +0 -4
- package/dist/esm/api/types/EntityDefinitionMetadata.d.mts +0 -15
- package/dist/esm/api/types/EntityDefinitionMetadata.mjs +0 -4
- package/dist/esm/api/types/FeatureFlag.d.mts +0 -17
- package/dist/esm/api/types/FeatureFlag.mjs +0 -11
- package/dist/esm/api/types/InternalAgenticSearchRequest.d.mts +0 -19
- package/dist/esm/api/types/InternalAgenticSearchRequest.mjs +0 -4
- package/dist/esm/api/types/InvitationCreate.d.mts +0 -10
- package/dist/esm/api/types/InvitationCreate.mjs +0 -4
- package/dist/esm/api/types/InvitationResponse.d.mts +0 -13
- package/dist/esm/api/types/InvitationResponse.mjs +0 -4
- package/dist/esm/api/types/LivenessResponse.d.mts +0 -9
- package/dist/esm/api/types/LivenessResponse.mjs +0 -4
- package/dist/esm/api/types/MemberResponse.d.mts +0 -15
- package/dist/esm/api/types/MemberResponse.mjs +0 -4
- package/dist/esm/api/types/MessageResponse.d.mts +0 -10
- package/dist/esm/api/types/MessageResponse.mjs +0 -4
- package/dist/esm/api/types/NodeSelectionData.d.mts +0 -12
- package/dist/esm/api/types/NodeSelectionData.mjs +0 -4
- package/dist/esm/api/types/NodeSelectionRequest.d.mts +0 -10
- package/dist/esm/api/types/NodeSelectionRequest.mjs +0 -4
- package/dist/esm/api/types/NodeSelectionResponse.d.mts +0 -14
- package/dist/esm/api/types/NodeSelectionResponse.mjs +0 -4
- package/dist/esm/api/types/Organization.d.mts +0 -29
- package/dist/esm/api/types/Organization.mjs +0 -4
- package/dist/esm/api/types/OrganizationBilling.d.mts +0 -44
- package/dist/esm/api/types/OrganizationBilling.mjs +0 -4
- package/dist/esm/api/types/OrganizationCreate.d.mts +0 -16
- package/dist/esm/api/types/OrganizationCreate.mjs +0 -4
- package/dist/esm/api/types/OrganizationMetrics.d.mts +0 -47
- package/dist/esm/api/types/OrganizationMetrics.mjs +0 -4
- package/dist/esm/api/types/OrganizationWithRole.d.mts +0 -22
- package/dist/esm/api/types/OrganizationWithRole.mjs +0 -4
- package/dist/esm/api/types/ReadinessResponse.d.mts +0 -18
- package/dist/esm/api/types/ReadinessResponse.mjs +0 -10
- package/dist/esm/api/types/SearchRequest.d.mts +0 -34
- package/dist/esm/api/types/SearchRequest.mjs +0 -4
- package/dist/esm/api/types/SearchResponse.d.mts +0 -15
- package/dist/esm/api/types/SearchResponse.mjs +0 -4
- package/dist/esm/api/types/SingleActionCheckResponse.d.mts +0 -23
- package/dist/esm/api/types/SingleActionCheckResponse.mjs +0 -10
- package/dist/esm/api/types/SourceRateLimit.d.mts +0 -18
- package/dist/esm/api/types/SourceRateLimit.mjs +0 -4
- package/dist/esm/api/types/SourceRateLimitResponse.d.mts +0 -17
- package/dist/esm/api/types/SourceRateLimitResponse.mjs +0 -4
- package/dist/esm/api/types/SourceRateLimitUpdateRequest.d.mts +0 -12
- package/dist/esm/api/types/SourceRateLimitUpdateRequest.mjs +0 -4
- package/dist/esm/api/types/SubscriptionInfo.d.mts +0 -52
- package/dist/esm/api/types/SubscriptionInfo.mjs +0 -4
- package/dist/esm/api/types/SyncJob.d.mts +0 -33
- package/dist/esm/api/types/SyncJob.mjs +0 -4
- package/dist/esm/api/types/SyncStatus.d.mts +0 -12
- package/dist/esm/api/types/SyncStatus.mjs +0 -8
- package/dist/esm/api/types/UpdatePlanRequest.d.mts +0 -12
- package/dist/esm/api/types/UpdatePlanRequest.mjs +0 -4
- package/dist/esm/api/types/UsageDashboard.d.mts +0 -23
- package/dist/esm/api/types/UsageDashboard.mjs +0 -4
- package/dist/esm/api/types/UsageSnapshot.d.mts +0 -32
- package/dist/esm/api/types/UsageSnapshot.mjs +0 -4
- package/dist/esm/api/types/UsageTrend.d.mts +0 -14
- package/dist/esm/api/types/UsageTrend.mjs +0 -4
- package/dist/esm/api/types/User.d.mts +0 -18
- package/dist/esm/api/types/User.mjs +0 -4
- package/dist/esm/api/types/UserCreate.d.mts +0 -11
- package/dist/esm/api/types/UserCreate.mjs +0 -4
- package/dist/esm/api/types/UserOrganization.d.mts +0 -14
- package/dist/esm/api/types/UserOrganization.mjs +0 -4
- package/dist/esm/api/types/VerifyOAuthRequest.d.mts +0 -10
- package/dist/esm/api/types/VerifyOAuthRequest.mjs +0 -4
- /package/dist/cjs/api/{types → resources/collections/client/requests}/ClassicSearchRequest.js +0 -0
- /package/dist/cjs/api/{types → resources/collections/client/requests}/InstantSearchRequest.js +0 -0
- /package/dist/cjs/api/types/{ActionCheckRequest.js → AgenticSearchDoneEvent.js} +0 -0
- /package/dist/cjs/api/types/{ActionCheckResponse.js → AgenticSearchErrorEvent.js} +0 -0
- /package/dist/cjs/api/types/{AdminSearchDestination.js → AgenticSearchEvent.js} +0 -0
- /package/dist/cjs/api/types/{AdminSyncInfo.js → AgenticSearchRerankingEvent.js} +0 -0
- /package/dist/cjs/api/types/{ApiKey.js → AgenticSearchStartedEvent.js} +0 -0
- /package/dist/cjs/api/types/{ApiKeyCreate.js → AgenticSearchThinkingEvent.js} +0 -0
- /package/dist/cjs/api/types/{AuthProviderConnection.js → CollectToolStats.js} +0 -0
- /package/dist/cjs/api/types/{AuthProviderConnectionCreate.js → CountToolStats.js} +0 -0
- /package/dist/cjs/api/types/{AuthProviderConnectionUpdate.js → ErrorToolStats.js} +0 -0
- /package/dist/cjs/api/types/{AuthProviderMetadata.js → FinishToolStats.js} +0 -0
- /package/dist/cjs/api/types/{BillingPeriod.js → NavigateToolStats.js} +0 -0
- /package/dist/cjs/api/types/{BillingPeriodUsage.js → ReadToolStats.js} +0 -0
- /package/dist/cjs/api/types/{BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.js → ReviewToolStats.js} +0 -0
- /package/dist/cjs/api/types/{BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js → SearchToolStats.js} +0 -0
- /package/dist/esm/api/{types → resources/collections/client/requests}/ClassicSearchRequest.mjs +0 -0
- /package/dist/esm/api/{types → resources/collections/client/requests}/InstantSearchRequest.mjs +0 -0
- /package/dist/esm/api/types/{ActionCheckRequest.mjs → AgenticSearchDoneEvent.mjs} +0 -0
- /package/dist/esm/api/types/{ActionCheckResponse.mjs → AgenticSearchErrorEvent.mjs} +0 -0
- /package/dist/esm/api/types/{AdminSearchDestination.mjs → AgenticSearchEvent.mjs} +0 -0
- /package/dist/esm/api/types/{AdminSyncInfo.mjs → AgenticSearchRerankingEvent.mjs} +0 -0
- /package/dist/esm/api/types/{ApiKey.mjs → AgenticSearchStartedEvent.mjs} +0 -0
- /package/dist/esm/api/types/{ApiKeyCreate.mjs → AgenticSearchThinkingEvent.mjs} +0 -0
- /package/dist/esm/api/types/{AuthProviderConnection.mjs → CollectToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{AuthProviderConnectionCreate.mjs → CountToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{AuthProviderConnectionUpdate.mjs → ErrorToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{AuthProviderMetadata.mjs → FinishToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{BillingPeriod.mjs → NavigateToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{BillingPeriodUsage.mjs → ReadToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.mjs → ReviewToolStats.mjs} +0 -0
- /package/dist/esm/api/types/{BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs → SearchToolStats.mjs} +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Supported retrieval strategies.
|
|
6
6
|
*/
|
|
7
|
-
export type RetrievalStrategy = "
|
|
7
|
+
export type RetrievalStrategy = "semantic" | "keyword" | "hybrid";
|
|
8
8
|
export declare const RetrievalStrategy: {
|
|
9
|
-
readonly
|
|
10
|
-
readonly Neural: "neural";
|
|
9
|
+
readonly Semantic: "semantic";
|
|
11
10
|
readonly Keyword: "keyword";
|
|
11
|
+
readonly Hybrid: "hybrid";
|
|
12
12
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Stats from review_results.
|
|
7
|
+
*/
|
|
8
|
+
export interface ReviewToolStats {
|
|
9
|
+
total_collected?: number;
|
|
10
|
+
entity_count?: number;
|
|
11
|
+
first_results?: AirweaveSDK.EntitySummary[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Stats from a search tool call.
|
|
7
|
+
*/
|
|
8
|
+
export interface SearchToolStats {
|
|
9
|
+
/** Total results returned. */
|
|
10
|
+
result_count?: number;
|
|
11
|
+
/** Results not seen in previous searches. */
|
|
12
|
+
new_results?: number;
|
|
13
|
+
first_results?: AirweaveSDK.EntitySummary[];
|
|
14
|
+
}
|
|
@@ -1,54 +1,19 @@
|
|
|
1
|
-
export * from "./ApiKey.js";
|
|
2
|
-
export * from "./ApiKeyCreate.js";
|
|
3
|
-
export * from "./ActionCheckRequest.js";
|
|
4
|
-
export * from "./ActionCheckResponse.js";
|
|
5
|
-
export * from "./AdminSearchDestination.js";
|
|
6
|
-
export * from "./AdminSyncInfo.js";
|
|
7
1
|
export * from "./AgenticSearchRequest.js";
|
|
8
2
|
export * from "./AuthProviderAuthentication.js";
|
|
9
|
-
export * from "./AuthProviderConnection.js";
|
|
10
|
-
export * from "./AuthProviderConnectionCreate.js";
|
|
11
|
-
export * from "./AuthProviderConnectionUpdate.js";
|
|
12
|
-
export * from "./AuthProviderMetadata.js";
|
|
13
3
|
export * from "./AuthenticationDetails.js";
|
|
14
4
|
export * from "./AuthenticationMethod.js";
|
|
15
5
|
export * from "./BehaviorConfig.js";
|
|
16
|
-
export * from "./BillingPeriod.js";
|
|
17
|
-
export * from "./BillingPeriodStatus.js";
|
|
18
|
-
export * from "./BillingPeriodUsage.js";
|
|
19
|
-
export * from "./BillingPlan.js";
|
|
20
|
-
export * from "./BillingStatus.js";
|
|
21
|
-
export * from "./BillingTransition.js";
|
|
22
|
-
export * from "./BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.js";
|
|
23
|
-
export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js";
|
|
24
|
-
export * from "./BrowseNode.js";
|
|
25
|
-
export * from "./BrowseTreeResponse.js";
|
|
26
|
-
export * from "./CheckStatus.js";
|
|
27
|
-
export * from "./CheckoutSessionRequest.js";
|
|
28
|
-
export * from "./CheckoutSessionResponse.js";
|
|
29
|
-
export * from "./ClassicSearchRequest.js";
|
|
30
6
|
export * from "./Collection.js";
|
|
31
7
|
export * from "./CollectionStatus.js";
|
|
32
8
|
export * from "./ConfigField.js";
|
|
33
|
-
export * from "./ConfigValues.js";
|
|
34
9
|
export * from "./ConflictErrorResponse.js";
|
|
35
|
-
export * from "./ConnectSessionContext.js";
|
|
36
|
-
export * from "./ConnectSessionCreate.js";
|
|
37
|
-
export * from "./ConnectSessionMode.js";
|
|
38
|
-
export * from "./ConnectSessionResponse.js";
|
|
39
10
|
export * from "./CursorConfig.js";
|
|
40
|
-
export * from "./CustomerPortalRequest.js";
|
|
41
|
-
export * from "./CustomerPortalResponse.js";
|
|
42
11
|
export * from "./DeliveryAttempt.js";
|
|
43
|
-
export * from "./DependencyCheck.js";
|
|
44
12
|
export * from "./DestinationConfig.js";
|
|
45
13
|
export * from "./DirectAuthentication.js";
|
|
46
|
-
export * from "./EntityCountWithDefinition.js";
|
|
47
|
-
export * from "./EntityDefinitionMetadata.js";
|
|
48
14
|
export * from "./EntitySummary.js";
|
|
49
15
|
export * from "./EntityTypeStats.js";
|
|
50
16
|
export * from "./EventType.js";
|
|
51
|
-
export * from "./FeatureFlag.js";
|
|
52
17
|
export * from "./Fields.js";
|
|
53
18
|
export * from "./FilterCondition.js";
|
|
54
19
|
export * from "./FilterGroup.js";
|
|
@@ -57,66 +22,48 @@ export * from "./FilterableField.js";
|
|
|
57
22
|
export * from "./HttpValidationError.js";
|
|
58
23
|
export * from "./HandlerConfig.js";
|
|
59
24
|
export * from "./HealthStatus.js";
|
|
60
|
-
export * from "./InstantSearchRequest.js";
|
|
61
|
-
export * from "./InternalAgenticSearchRequest.js";
|
|
62
|
-
export * from "./InvitationCreate.js";
|
|
63
|
-
export * from "./InvitationResponse.js";
|
|
64
|
-
export * from "./LivenessResponse.js";
|
|
65
|
-
export * from "./MemberResponse.js";
|
|
66
|
-
export * from "./MessageResponse.js";
|
|
67
|
-
export * from "./NodeSelectionData.js";
|
|
68
|
-
export * from "./NodeSelectionRequest.js";
|
|
69
|
-
export * from "./NodeSelectionResponse.js";
|
|
70
25
|
export * from "./NotFoundErrorResponse.js";
|
|
71
26
|
export * from "./OAuthBrowserAuthentication.js";
|
|
72
27
|
export * from "./OAuthTokenAuthentication.js";
|
|
73
|
-
export * from "./Organization.js";
|
|
74
|
-
export * from "./OrganizationBilling.js";
|
|
75
|
-
export * from "./OrganizationCreate.js";
|
|
76
|
-
export * from "./OrganizationMetrics.js";
|
|
77
|
-
export * from "./OrganizationWithRole.js";
|
|
78
28
|
export * from "./RateLimitErrorResponse.js";
|
|
79
|
-
export * from "./ReadinessResponse.js";
|
|
80
29
|
export * from "./RecoveryTask.js";
|
|
81
30
|
export * from "./ScheduleConfig.js";
|
|
82
31
|
export * from "./ScheduleDetails.js";
|
|
83
32
|
export * from "./SearchAccessControl.js";
|
|
84
33
|
export * from "./SearchBreadcrumb.js";
|
|
85
|
-
export * from "./SearchRequest.js";
|
|
86
|
-
export * from "./SearchResponse.js";
|
|
87
34
|
export * from "./SearchResult.js";
|
|
88
35
|
export * from "./SearchSystemMetadata.js";
|
|
89
36
|
export * from "./SearchV2Response.js";
|
|
90
|
-
export * from "./SingleActionCheckResponse.js";
|
|
91
37
|
export * from "./Source.js";
|
|
92
38
|
export * from "./SourceConnection.js";
|
|
93
39
|
export * from "./SourceConnectionJob.js";
|
|
94
40
|
export * from "./SourceConnectionListItem.js";
|
|
95
41
|
export * from "./SourceConnectionStatus.js";
|
|
96
42
|
export * from "./SourceConnectionSummary.js";
|
|
97
|
-
export * from "./SourceRateLimit.js";
|
|
98
|
-
export * from "./SourceRateLimitResponse.js";
|
|
99
|
-
export * from "./SourceRateLimitUpdateRequest.js";
|
|
100
|
-
export * from "./SubscriptionInfo.js";
|
|
101
43
|
export * from "./SyncConfig.js";
|
|
102
44
|
export * from "./SyncDetails.js";
|
|
103
|
-
export * from "./SyncJob.js";
|
|
104
45
|
export * from "./SyncJobDetails.js";
|
|
105
46
|
export * from "./SyncJobStatus.js";
|
|
106
|
-
export * from "./SyncStatus.js";
|
|
107
|
-
export * from "./UpdatePlanRequest.js";
|
|
108
|
-
export * from "./UsageDashboard.js";
|
|
109
|
-
export * from "./UsageSnapshot.js";
|
|
110
|
-
export * from "./UsageTrend.js";
|
|
111
|
-
export * from "./User.js";
|
|
112
|
-
export * from "./UserCreate.js";
|
|
113
|
-
export * from "./UserOrganization.js";
|
|
114
47
|
export * from "./ValidationError.js";
|
|
115
48
|
export * from "./ValidationErrorDetail.js";
|
|
116
49
|
export * from "./ValidationErrorResponse.js";
|
|
117
|
-
export * from "./VerifyOAuthRequest.js";
|
|
118
50
|
export * from "./WebhookMessage.js";
|
|
119
51
|
export * from "./WebhookMessageWithAttempts.js";
|
|
120
52
|
export * from "./WebhookSubscription.js";
|
|
121
53
|
export * from "./WebhookSubscriptionDetail.js";
|
|
122
54
|
export * from "./RetrievalStrategy.js";
|
|
55
|
+
export * from "./AgenticSearchEvent.js";
|
|
56
|
+
export * from "./AgenticSearchStartedEvent.js";
|
|
57
|
+
export * from "./AgenticSearchThinkingEvent.js";
|
|
58
|
+
export * from "./AgenticSearchToolCallEvent.js";
|
|
59
|
+
export * from "./SearchToolStats.js";
|
|
60
|
+
export * from "./ReadToolStats.js";
|
|
61
|
+
export * from "./CollectToolStats.js";
|
|
62
|
+
export * from "./CountToolStats.js";
|
|
63
|
+
export * from "./NavigateToolStats.js";
|
|
64
|
+
export * from "./ReviewToolStats.js";
|
|
65
|
+
export * from "./FinishToolStats.js";
|
|
66
|
+
export * from "./ErrorToolStats.js";
|
|
67
|
+
export * from "./AgenticSearchRerankingEvent.js";
|
|
68
|
+
export * from "./AgenticSearchDoneEvent.js";
|
|
69
|
+
export * from "./AgenticSearchErrorEvent.js";
|
|
@@ -14,57 +14,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ApiKey.js"), exports);
|
|
18
|
-
__exportStar(require("./ApiKeyCreate.js"), exports);
|
|
19
|
-
__exportStar(require("./ActionCheckRequest.js"), exports);
|
|
20
|
-
__exportStar(require("./ActionCheckResponse.js"), exports);
|
|
21
|
-
__exportStar(require("./AdminSearchDestination.js"), exports);
|
|
22
|
-
__exportStar(require("./AdminSyncInfo.js"), exports);
|
|
23
17
|
__exportStar(require("./AgenticSearchRequest.js"), exports);
|
|
24
18
|
__exportStar(require("./AuthProviderAuthentication.js"), exports);
|
|
25
|
-
__exportStar(require("./AuthProviderConnection.js"), exports);
|
|
26
|
-
__exportStar(require("./AuthProviderConnectionCreate.js"), exports);
|
|
27
|
-
__exportStar(require("./AuthProviderConnectionUpdate.js"), exports);
|
|
28
|
-
__exportStar(require("./AuthProviderMetadata.js"), exports);
|
|
29
19
|
__exportStar(require("./AuthenticationDetails.js"), exports);
|
|
30
20
|
__exportStar(require("./AuthenticationMethod.js"), exports);
|
|
31
21
|
__exportStar(require("./BehaviorConfig.js"), exports);
|
|
32
|
-
__exportStar(require("./BillingPeriod.js"), exports);
|
|
33
|
-
__exportStar(require("./BillingPeriodStatus.js"), exports);
|
|
34
|
-
__exportStar(require("./BillingPeriodUsage.js"), exports);
|
|
35
|
-
__exportStar(require("./BillingPlan.js"), exports);
|
|
36
|
-
__exportStar(require("./BillingStatus.js"), exports);
|
|
37
|
-
__exportStar(require("./BillingTransition.js"), exports);
|
|
38
|
-
__exportStar(require("./BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.js"), exports);
|
|
39
|
-
__exportStar(require("./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js"), exports);
|
|
40
|
-
__exportStar(require("./BrowseNode.js"), exports);
|
|
41
|
-
__exportStar(require("./BrowseTreeResponse.js"), exports);
|
|
42
|
-
__exportStar(require("./CheckStatus.js"), exports);
|
|
43
|
-
__exportStar(require("./CheckoutSessionRequest.js"), exports);
|
|
44
|
-
__exportStar(require("./CheckoutSessionResponse.js"), exports);
|
|
45
|
-
__exportStar(require("./ClassicSearchRequest.js"), exports);
|
|
46
22
|
__exportStar(require("./Collection.js"), exports);
|
|
47
23
|
__exportStar(require("./CollectionStatus.js"), exports);
|
|
48
24
|
__exportStar(require("./ConfigField.js"), exports);
|
|
49
|
-
__exportStar(require("./ConfigValues.js"), exports);
|
|
50
25
|
__exportStar(require("./ConflictErrorResponse.js"), exports);
|
|
51
|
-
__exportStar(require("./ConnectSessionContext.js"), exports);
|
|
52
|
-
__exportStar(require("./ConnectSessionCreate.js"), exports);
|
|
53
|
-
__exportStar(require("./ConnectSessionMode.js"), exports);
|
|
54
|
-
__exportStar(require("./ConnectSessionResponse.js"), exports);
|
|
55
26
|
__exportStar(require("./CursorConfig.js"), exports);
|
|
56
|
-
__exportStar(require("./CustomerPortalRequest.js"), exports);
|
|
57
|
-
__exportStar(require("./CustomerPortalResponse.js"), exports);
|
|
58
27
|
__exportStar(require("./DeliveryAttempt.js"), exports);
|
|
59
|
-
__exportStar(require("./DependencyCheck.js"), exports);
|
|
60
28
|
__exportStar(require("./DestinationConfig.js"), exports);
|
|
61
29
|
__exportStar(require("./DirectAuthentication.js"), exports);
|
|
62
|
-
__exportStar(require("./EntityCountWithDefinition.js"), exports);
|
|
63
|
-
__exportStar(require("./EntityDefinitionMetadata.js"), exports);
|
|
64
30
|
__exportStar(require("./EntitySummary.js"), exports);
|
|
65
31
|
__exportStar(require("./EntityTypeStats.js"), exports);
|
|
66
32
|
__exportStar(require("./EventType.js"), exports);
|
|
67
|
-
__exportStar(require("./FeatureFlag.js"), exports);
|
|
68
33
|
__exportStar(require("./Fields.js"), exports);
|
|
69
34
|
__exportStar(require("./FilterCondition.js"), exports);
|
|
70
35
|
__exportStar(require("./FilterGroup.js"), exports);
|
|
@@ -73,66 +38,48 @@ __exportStar(require("./FilterableField.js"), exports);
|
|
|
73
38
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
74
39
|
__exportStar(require("./HandlerConfig.js"), exports);
|
|
75
40
|
__exportStar(require("./HealthStatus.js"), exports);
|
|
76
|
-
__exportStar(require("./InstantSearchRequest.js"), exports);
|
|
77
|
-
__exportStar(require("./InternalAgenticSearchRequest.js"), exports);
|
|
78
|
-
__exportStar(require("./InvitationCreate.js"), exports);
|
|
79
|
-
__exportStar(require("./InvitationResponse.js"), exports);
|
|
80
|
-
__exportStar(require("./LivenessResponse.js"), exports);
|
|
81
|
-
__exportStar(require("./MemberResponse.js"), exports);
|
|
82
|
-
__exportStar(require("./MessageResponse.js"), exports);
|
|
83
|
-
__exportStar(require("./NodeSelectionData.js"), exports);
|
|
84
|
-
__exportStar(require("./NodeSelectionRequest.js"), exports);
|
|
85
|
-
__exportStar(require("./NodeSelectionResponse.js"), exports);
|
|
86
41
|
__exportStar(require("./NotFoundErrorResponse.js"), exports);
|
|
87
42
|
__exportStar(require("./OAuthBrowserAuthentication.js"), exports);
|
|
88
43
|
__exportStar(require("./OAuthTokenAuthentication.js"), exports);
|
|
89
|
-
__exportStar(require("./Organization.js"), exports);
|
|
90
|
-
__exportStar(require("./OrganizationBilling.js"), exports);
|
|
91
|
-
__exportStar(require("./OrganizationCreate.js"), exports);
|
|
92
|
-
__exportStar(require("./OrganizationMetrics.js"), exports);
|
|
93
|
-
__exportStar(require("./OrganizationWithRole.js"), exports);
|
|
94
44
|
__exportStar(require("./RateLimitErrorResponse.js"), exports);
|
|
95
|
-
__exportStar(require("./ReadinessResponse.js"), exports);
|
|
96
45
|
__exportStar(require("./RecoveryTask.js"), exports);
|
|
97
46
|
__exportStar(require("./ScheduleConfig.js"), exports);
|
|
98
47
|
__exportStar(require("./ScheduleDetails.js"), exports);
|
|
99
48
|
__exportStar(require("./SearchAccessControl.js"), exports);
|
|
100
49
|
__exportStar(require("./SearchBreadcrumb.js"), exports);
|
|
101
|
-
__exportStar(require("./SearchRequest.js"), exports);
|
|
102
|
-
__exportStar(require("./SearchResponse.js"), exports);
|
|
103
50
|
__exportStar(require("./SearchResult.js"), exports);
|
|
104
51
|
__exportStar(require("./SearchSystemMetadata.js"), exports);
|
|
105
52
|
__exportStar(require("./SearchV2Response.js"), exports);
|
|
106
|
-
__exportStar(require("./SingleActionCheckResponse.js"), exports);
|
|
107
53
|
__exportStar(require("./Source.js"), exports);
|
|
108
54
|
__exportStar(require("./SourceConnection.js"), exports);
|
|
109
55
|
__exportStar(require("./SourceConnectionJob.js"), exports);
|
|
110
56
|
__exportStar(require("./SourceConnectionListItem.js"), exports);
|
|
111
57
|
__exportStar(require("./SourceConnectionStatus.js"), exports);
|
|
112
58
|
__exportStar(require("./SourceConnectionSummary.js"), exports);
|
|
113
|
-
__exportStar(require("./SourceRateLimit.js"), exports);
|
|
114
|
-
__exportStar(require("./SourceRateLimitResponse.js"), exports);
|
|
115
|
-
__exportStar(require("./SourceRateLimitUpdateRequest.js"), exports);
|
|
116
|
-
__exportStar(require("./SubscriptionInfo.js"), exports);
|
|
117
59
|
__exportStar(require("./SyncConfig.js"), exports);
|
|
118
60
|
__exportStar(require("./SyncDetails.js"), exports);
|
|
119
|
-
__exportStar(require("./SyncJob.js"), exports);
|
|
120
61
|
__exportStar(require("./SyncJobDetails.js"), exports);
|
|
121
62
|
__exportStar(require("./SyncJobStatus.js"), exports);
|
|
122
|
-
__exportStar(require("./SyncStatus.js"), exports);
|
|
123
|
-
__exportStar(require("./UpdatePlanRequest.js"), exports);
|
|
124
|
-
__exportStar(require("./UsageDashboard.js"), exports);
|
|
125
|
-
__exportStar(require("./UsageSnapshot.js"), exports);
|
|
126
|
-
__exportStar(require("./UsageTrend.js"), exports);
|
|
127
|
-
__exportStar(require("./User.js"), exports);
|
|
128
|
-
__exportStar(require("./UserCreate.js"), exports);
|
|
129
|
-
__exportStar(require("./UserOrganization.js"), exports);
|
|
130
63
|
__exportStar(require("./ValidationError.js"), exports);
|
|
131
64
|
__exportStar(require("./ValidationErrorDetail.js"), exports);
|
|
132
65
|
__exportStar(require("./ValidationErrorResponse.js"), exports);
|
|
133
|
-
__exportStar(require("./VerifyOAuthRequest.js"), exports);
|
|
134
66
|
__exportStar(require("./WebhookMessage.js"), exports);
|
|
135
67
|
__exportStar(require("./WebhookMessageWithAttempts.js"), exports);
|
|
136
68
|
__exportStar(require("./WebhookSubscription.js"), exports);
|
|
137
69
|
__exportStar(require("./WebhookSubscriptionDetail.js"), exports);
|
|
138
70
|
__exportStar(require("./RetrievalStrategy.js"), exports);
|
|
71
|
+
__exportStar(require("./AgenticSearchEvent.js"), exports);
|
|
72
|
+
__exportStar(require("./AgenticSearchStartedEvent.js"), exports);
|
|
73
|
+
__exportStar(require("./AgenticSearchThinkingEvent.js"), exports);
|
|
74
|
+
__exportStar(require("./AgenticSearchToolCallEvent.js"), exports);
|
|
75
|
+
__exportStar(require("./SearchToolStats.js"), exports);
|
|
76
|
+
__exportStar(require("./ReadToolStats.js"), exports);
|
|
77
|
+
__exportStar(require("./CollectToolStats.js"), exports);
|
|
78
|
+
__exportStar(require("./CountToolStats.js"), exports);
|
|
79
|
+
__exportStar(require("./NavigateToolStats.js"), exports);
|
|
80
|
+
__exportStar(require("./ReviewToolStats.js"), exports);
|
|
81
|
+
__exportStar(require("./FinishToolStats.js"), exports);
|
|
82
|
+
__exportStar(require("./ErrorToolStats.js"), exports);
|
|
83
|
+
__exportStar(require("./AgenticSearchRerankingEvent.js"), exports);
|
|
84
|
+
__exportStar(require("./AgenticSearchDoneEvent.js"), exports);
|
|
85
|
+
__exportStar(require("./AgenticSearchErrorEvent.js"), exports);
|
package/dist/cjs/core/index.d.ts
CHANGED
package/dist/cjs/core/index.js
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare namespace Stream {
|
|
2
|
+
interface Args {
|
|
3
|
+
/**
|
|
4
|
+
* The HTTP response stream to read from.
|
|
5
|
+
*/
|
|
6
|
+
stream: ReadableStream;
|
|
7
|
+
/**
|
|
8
|
+
* The event shape to use for parsing the stream data.
|
|
9
|
+
*/
|
|
10
|
+
eventShape: JsonEvent | SseEvent;
|
|
11
|
+
/**
|
|
12
|
+
* An abort signal to stop the stream.
|
|
13
|
+
*/
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
}
|
|
16
|
+
interface JsonEvent {
|
|
17
|
+
type: "json";
|
|
18
|
+
messageTerminator: string;
|
|
19
|
+
}
|
|
20
|
+
interface SseEvent {
|
|
21
|
+
type: "sse";
|
|
22
|
+
streamTerminator?: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class Stream<T> implements AsyncIterable<T> {
|
|
26
|
+
private stream;
|
|
27
|
+
private parse;
|
|
28
|
+
/**
|
|
29
|
+
* The prefix to use for each message. For example,
|
|
30
|
+
* for SSE, the prefix is "data: ".
|
|
31
|
+
*/
|
|
32
|
+
private prefix;
|
|
33
|
+
private messageTerminator;
|
|
34
|
+
private streamTerminator;
|
|
35
|
+
private controller;
|
|
36
|
+
constructor({ stream, parse, eventShape, signal }: Stream.Args & {
|
|
37
|
+
parse: (val: unknown) => Promise<T>;
|
|
38
|
+
});
|
|
39
|
+
private iterMessages;
|
|
40
|
+
[Symbol.asyncIterator](): AsyncIterator<T, void, unknown>;
|
|
41
|
+
private decodeChunk;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Browser polyfill for ReadableStream
|
|
45
|
+
*/
|
|
46
|
+
export declare function readableStreamAsyncIterable<T>(stream: any): AsyncIterableIterator<T>;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
12
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
13
|
+
var m = o[Symbol.asyncIterator], i;
|
|
14
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
15
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
16
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
17
|
+
};
|
|
18
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
19
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
20
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
22
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
23
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
24
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
25
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
26
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
27
|
+
function fulfill(value) { resume("next", value); }
|
|
28
|
+
function reject(value) { resume("throw", value); }
|
|
29
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.Stream = void 0;
|
|
33
|
+
exports.readableStreamAsyncIterable = readableStreamAsyncIterable;
|
|
34
|
+
const index_js_1 = require("../runtime/index.js");
|
|
35
|
+
const DATA_PREFIX = "data:";
|
|
36
|
+
class Stream {
|
|
37
|
+
constructor({ stream, parse, eventShape, signal }) {
|
|
38
|
+
this.controller = new AbortController();
|
|
39
|
+
this.stream = stream;
|
|
40
|
+
this.parse = parse;
|
|
41
|
+
if (eventShape.type === "sse") {
|
|
42
|
+
this.prefix = DATA_PREFIX;
|
|
43
|
+
this.messageTerminator = "\n";
|
|
44
|
+
this.streamTerminator = eventShape.streamTerminator;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.messageTerminator = eventShape.messageTerminator;
|
|
48
|
+
}
|
|
49
|
+
signal === null || signal === void 0 ? void 0 : signal.addEventListener("abort", () => this.controller.abort());
|
|
50
|
+
}
|
|
51
|
+
iterMessages() {
|
|
52
|
+
return __asyncGenerator(this, arguments, function* iterMessages_1() {
|
|
53
|
+
var _a, e_1, _b, _c;
|
|
54
|
+
this.controller.signal;
|
|
55
|
+
const stream = readableStreamAsyncIterable(this.stream);
|
|
56
|
+
let buf = "";
|
|
57
|
+
let prefixSeen = false;
|
|
58
|
+
try {
|
|
59
|
+
for (var _d = true, stream_1 = __asyncValues(stream), stream_1_1; stream_1_1 = yield __await(stream_1.next()), _a = stream_1_1.done, !_a; _d = true) {
|
|
60
|
+
_c = stream_1_1.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const chunk = _c;
|
|
63
|
+
buf += this.decodeChunk(chunk);
|
|
64
|
+
let terminatorIndex;
|
|
65
|
+
while ((terminatorIndex = buf.indexOf(this.messageTerminator)) >= 0) {
|
|
66
|
+
let line = buf.slice(0, terminatorIndex + 1);
|
|
67
|
+
buf = buf.slice(terminatorIndex + this.messageTerminator.length);
|
|
68
|
+
if (!line.trim()) {
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
if (!prefixSeen && this.prefix != null) {
|
|
72
|
+
const prefixIndex = line.indexOf(this.prefix);
|
|
73
|
+
if (prefixIndex === -1) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
prefixSeen = true;
|
|
77
|
+
line = line.slice(prefixIndex + this.prefix.length);
|
|
78
|
+
}
|
|
79
|
+
if (this.streamTerminator != null && line.includes(this.streamTerminator)) {
|
|
80
|
+
return yield __await(void 0);
|
|
81
|
+
}
|
|
82
|
+
const message = yield __await(this.parse(JSON.parse(line)));
|
|
83
|
+
yield yield __await(message);
|
|
84
|
+
prefixSeen = false;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
89
|
+
finally {
|
|
90
|
+
try {
|
|
91
|
+
if (!_d && !_a && (_b = stream_1.return)) yield __await(_b.call(stream_1));
|
|
92
|
+
}
|
|
93
|
+
finally { if (e_1) throw e_1.error; }
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
99
|
+
var _b, e_2, _c, _d;
|
|
100
|
+
try {
|
|
101
|
+
for (var _e = true, _f = __asyncValues(this.iterMessages()), _g; _g = yield __await(_f.next()), _b = _g.done, !_b; _e = true) {
|
|
102
|
+
_d = _g.value;
|
|
103
|
+
_e = false;
|
|
104
|
+
const message = _d;
|
|
105
|
+
yield yield __await(message);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
109
|
+
finally {
|
|
110
|
+
try {
|
|
111
|
+
if (!_e && !_b && (_c = _f.return)) yield __await(_c.call(_f));
|
|
112
|
+
}
|
|
113
|
+
finally { if (e_2) throw e_2.error; }
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
decodeChunk(chunk) {
|
|
118
|
+
let decoded = "";
|
|
119
|
+
// If TextDecoder is present, use it
|
|
120
|
+
if (typeof TextDecoder !== "undefined") {
|
|
121
|
+
const decoder = new TextDecoder("utf8");
|
|
122
|
+
decoded += decoder.decode(chunk);
|
|
123
|
+
}
|
|
124
|
+
// Buffer is present in Node.js environment
|
|
125
|
+
else if (index_js_1.RUNTIME.type === "node" && typeof chunk !== "undefined") {
|
|
126
|
+
decoded += Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
127
|
+
}
|
|
128
|
+
return decoded;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.Stream = Stream;
|
|
132
|
+
/**
|
|
133
|
+
* Browser polyfill for ReadableStream
|
|
134
|
+
*/
|
|
135
|
+
// biome-ignore lint/suspicious/noExplicitAny: allow explicit any
|
|
136
|
+
function readableStreamAsyncIterable(stream) {
|
|
137
|
+
if (stream[Symbol.asyncIterator]) {
|
|
138
|
+
return stream;
|
|
139
|
+
}
|
|
140
|
+
const reader = stream.getReader();
|
|
141
|
+
return {
|
|
142
|
+
next() {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
try {
|
|
145
|
+
const result = yield reader.read();
|
|
146
|
+
if (result === null || result === void 0 ? void 0 : result.done) {
|
|
147
|
+
reader.releaseLock();
|
|
148
|
+
} // release lock when stream becomes closed
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
catch (e) {
|
|
152
|
+
reader.releaseLock(); // release lock when stream becomes errored
|
|
153
|
+
throw e;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
return() {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const cancelPromise = reader.cancel();
|
|
160
|
+
reader.releaseLock();
|
|
161
|
+
yield cancelPromise;
|
|
162
|
+
return { done: true, value: undefined };
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
[Symbol.asyncIterator]() {
|
|
166
|
+
return this;
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stream } from "./Stream.js";
|
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.44";
|
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.44",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.9.44",
|
|
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) });
|
|
@@ -149,5 +149,58 @@ 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
|
+
* Direct vector search.
|
|
154
|
+
*
|
|
155
|
+
* @param {string} readableId
|
|
156
|
+
* @param {AirweaveSDK.InstantSearchRequest} request
|
|
157
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.collections.instantSearch("readable_id", {
|
|
163
|
+
* query: "query"
|
|
164
|
+
* })
|
|
165
|
+
*/
|
|
166
|
+
instantSearch(readableId: string, request: AirweaveSDK.InstantSearchRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchV2Response>;
|
|
167
|
+
private __instantSearch;
|
|
168
|
+
/**
|
|
169
|
+
* AI-optimized search.
|
|
170
|
+
*
|
|
171
|
+
* @param {string} readableId
|
|
172
|
+
* @param {AirweaveSDK.ClassicSearchRequest} request
|
|
173
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.collections.classicSearch("readable_id", {
|
|
179
|
+
* query: "query"
|
|
180
|
+
* })
|
|
181
|
+
*/
|
|
182
|
+
classicSearch(readableId: string, request: AirweaveSDK.ClassicSearchRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchV2Response>;
|
|
183
|
+
private __classicSearch;
|
|
184
|
+
/**
|
|
185
|
+
* Agent that iteratively searches, reads, navigates hierarchies, and collects results.
|
|
186
|
+
*
|
|
187
|
+
* @param {string} readableId
|
|
188
|
+
* @param {AirweaveSDK.AgenticSearchRequest} request
|
|
189
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* await client.collections.agenticSearch("readable_id", {
|
|
195
|
+
* query: "query"
|
|
196
|
+
* })
|
|
197
|
+
*/
|
|
198
|
+
agenticSearch(readableId: string, request: AirweaveSDK.AgenticSearchRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchV2Response>;
|
|
199
|
+
private __agenticSearch;
|
|
200
|
+
/**
|
|
201
|
+
* Streaming agentic search via Server-Sent Events. Returns real-time events as the agent searches.
|
|
202
|
+
*/
|
|
203
|
+
streamAgenticSearch(readableId: string, request: AirweaveSDK.AgenticSearchRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<core.Stream<AirweaveSDK.AgenticSearchEvent>>;
|
|
204
|
+
private __streamAgenticSearch;
|
|
152
205
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
153
206
|
}
|