@hydradb/sdk 2.1.4 → 2.1.5
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/README.md +10 -7
- package/dist/Client.d.ts +1 -1
- package/dist/Client.js +1 -1
- package/dist/api/client/requests/SearchQueryRequest.d.ts +35 -3
- package/dist/api/resources/connectors/client/Client.d.ts +80 -1
- package/dist/api/resources/connectors/client/Client.js +322 -1
- package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +12 -0
- package/dist/api/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +15 -0
- package/dist/api/resources/connectors/client/requests/PauseConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/ResumeConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/index.d.ts +4 -0
- package/dist/api/resources/context/client/Client.d.ts +45 -5
- package/dist/api/resources/context/client/Client.js +194 -8
- package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +31 -0
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +6 -4
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +5 -1
- package/dist/api/resources/context/client/requests/ProfileContextRequest.d.ts +30 -0
- package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +1 -1
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
- package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +8 -8
- package/dist/api/resources/context/client/requests/index.d.ts +2 -0
- package/dist/api/resources/context/types/ChunksContextRequestType.d.ts +7 -0
- package/dist/api/resources/context/types/ChunksContextRequestType.js +10 -0
- package/dist/api/resources/context/types/IngestContextRequestType.d.ts +1 -0
- package/dist/api/resources/context/types/IngestContextRequestType.js +1 -0
- package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +7 -1
- package/dist/api/resources/context/types/ListV2ListContentRequestType.js +7 -1
- package/dist/api/resources/context/types/ProfileContextRequestType.d.ts +5 -0
- package/dist/api/resources/context/types/ProfileContextRequestType.js +8 -0
- package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +2 -0
- package/dist/api/resources/context/types/RelationsContextRequestType.js +2 -0
- package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +6 -1
- package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +6 -1
- package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +2 -0
- package/dist/api/resources/context/types/SubgraphContextRequestType.js +2 -0
- package/dist/api/resources/context/types/index.d.ts +2 -0
- package/dist/api/resources/context/types/index.js +2 -0
- package/dist/api/resources/databases/client/Client.d.ts +71 -0
- package/dist/api/resources/databases/client/Client.js +309 -0
- package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.d.ts +13 -0
- package/dist/api/resources/databases/client/requests/DeleteCollectionDatabasesRequest.js +3 -0
- package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/GetInstructionsDatabasesRequest.js +3 -0
- package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +20 -0
- package/dist/api/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +3 -0
- package/dist/api/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
- package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +21 -0
- package/dist/api/resources/databases/client/requests/TenantsTenantRenameRequest.js +3 -0
- package/dist/api/resources/databases/client/requests/index.d.ts +4 -0
- package/dist/api/resources/feedback/client/Client.d.ts +1 -3
- package/dist/api/resources/feedback/client/Client.js +1 -3
- package/dist/api/resources/feedback/client/index.d.ts +1 -1
- package/dist/api/resources/feedback/client/index.js +15 -0
- package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +29 -0
- package/dist/api/resources/feedback/client/requests/FeedbackSubmitRequest.js +3 -0
- package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/requests/index.js +2 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/types/ConnectorsResource.d.ts +58 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +13 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +16 -0
- package/dist/api/types/HandlerConnectorApiView.d.ts +15 -0
- package/dist/api/types/HandlerConnectorCreateResponse.d.ts +15 -0
- package/dist/api/types/HandlerConnectorListResponse.d.ts +7 -3
- package/dist/api/types/HandlerConnectorPauseResponse.d.ts +6 -0
- package/dist/api/types/HandlerConnectorPauseResponse.js +3 -0
- package/dist/api/types/HandlerConnectorResourceStatus.d.ts +27 -0
- package/dist/api/types/HandlerConnectorStatusError.d.ts +4 -3
- package/dist/api/types/HandlerConnectorStatusResponse.d.ts +5 -2
- package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeSearchChunkInspectResult.js +3 -0
- package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeSearchEntityProfileView.js +3 -0
- package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantRenameResponse.js +3 -0
- package/dist/api/types/HandlerInstructionsResponse.d.ts +13 -0
- package/dist/api/types/HandlerInstructionsResponse.js +3 -0
- package/dist/api/types/HandlerPlanCapView.d.ts +11 -0
- package/dist/api/types/HandlerPlanCapView.js +3 -0
- package/dist/api/types/HandlerVaultCredentialEntry.d.ts +13 -0
- package/dist/api/types/HandlerVaultCredentialEntry.js +3 -0
- package/dist/api/types/HandlerVaultCredentialListResponse.d.ts +8 -0
- package/dist/api/types/HandlerVaultCredentialListResponse.js +3 -0
- package/dist/api/types/HandlerVaultCredentialRevealResponse.d.ts +7 -0
- package/dist/api/types/HandlerVaultCredentialRevealResponse.js +3 -0
- package/dist/api/types/HandlerVaultCredentialUpdateResponse.d.ts +5 -0
- package/dist/api/types/HandlerVaultCredentialUpdateResponse.js +3 -0
- package/dist/api/types/MemoriesConversationTurn.d.ts +7 -0
- package/dist/api/types/MemoriesConversationTurn.js +3 -0
- package/dist/api/types/MemoriesIngestItem.d.ts +56 -0
- package/dist/api/types/MemoriesIngestItem.js +3 -0
- package/dist/api/types/MemoriesIngestItemContextCategory.d.ts +13 -0
- package/dist/api/types/MemoriesIngestItemContextCategory.js +16 -0
- package/dist/api/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
- package/dist/api/types/MemoriesUnifiedIngestRequest.js +3 -0
- package/dist/api/types/SearchAliasExpansionNote.d.ts +4 -0
- package/dist/api/types/SearchAliasExpansionNote.js +3 -0
- package/dist/api/types/SearchAppSearchFusionDiagnostics.d.ts +31 -0
- package/dist/api/types/SearchAppSearchFusionDiagnostics.js +3 -0
- package/dist/api/types/SearchAppSearchFusionStats.d.ts +43 -0
- package/dist/api/types/SearchAppSearchFusionStats.js +3 -0
- package/dist/api/types/SearchChunkInspectResult.d.ts +24 -0
- package/dist/api/types/SearchChunkInspectResult.js +3 -0
- package/dist/api/types/SearchEntityProfileView.d.ts +18 -0
- package/dist/api/types/SearchEntityProfileView.js +3 -0
- package/dist/api/types/SearchForcefulRelationEntry.d.ts +5 -0
- package/dist/api/types/SearchForcefulRelationEntry.js +3 -0
- package/dist/api/types/SearchForcefulRelationsBucket.d.ts +11 -0
- package/dist/api/types/SearchForcefulRelationsBucket.js +3 -0
- package/dist/api/types/SearchGraphPath.d.ts +10 -0
- package/dist/api/types/SearchGraphPath.js +3 -0
- package/dist/api/types/SearchGraphPlane.d.ts +11 -0
- package/dist/api/types/SearchGraphPlane.js +3 -0
- package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
- package/dist/api/types/SearchProfileContext.d.ts +17 -0
- package/dist/api/types/SearchProfileContext.js +3 -0
- package/dist/api/types/SearchProfileEntry.d.ts +11 -0
- package/dist/api/types/SearchProfileEntry.js +3 -0
- package/dist/api/types/SearchProfileFilterInfo.d.ts +10 -0
- package/dist/api/types/SearchProfileFilterInfo.js +3 -0
- package/dist/api/types/SearchRelationVia.d.ts +4 -0
- package/dist/api/types/SearchRelationVia.js +3 -0
- package/dist/api/types/SearchSourceType.d.ts +1 -0
- package/dist/api/types/SearchSourceType.js +1 -0
- package/dist/api/types/SearchV2RetrievalResult.d.ts +12 -1
- package/dist/api/types/SearchVectorStoreChunk.d.ts +28 -0
- package/dist/api/types/SearchVectorStoreChunk.js +3 -0
- package/dist/api/types/TenantsDatabaseDetail.d.ts +11 -0
- package/dist/api/types/TenantsDatabaseDetail.js +3 -0
- package/dist/api/types/TenantsDatabaseDetailType.d.ts +10 -0
- package/dist/api/types/TenantsDatabaseDetailType.js +13 -0
- package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +5 -0
- package/dist/api/types/TenantsInfraStatusResponseV2Type.d.ts +9 -0
- package/dist/api/types/TenantsInfraStatusResponseV2Type.js +12 -0
- package/dist/api/types/TenantsMilvusDataType.d.ts +1 -0
- package/dist/api/types/TenantsMilvusDataType.js +1 -0
- package/dist/api/types/TenantsSubTenantDeleteResponse.d.ts +12 -0
- package/dist/api/types/TenantsSubTenantDeleteResponse.js +3 -0
- package/dist/api/types/TenantsTenantIdsResponse.d.ts +6 -0
- package/dist/api/types/TenantsTenantRenameResponse.d.ts +20 -0
- package/dist/api/types/TenantsTenantRenameResponse.js +3 -0
- package/dist/api/types/index.d.ts +35 -6
- package/dist/api/types/index.js +35 -6
- package/dist/serialization/client/requests/SearchQueryRequest.d.ts +5 -0
- package/dist/serialization/client/requests/SearchQueryRequest.js +5 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.d.ts +9 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js +41 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.d.ts +9 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js +41 -0
- package/dist/serialization/resources/connectors/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/connectors/client/requests/index.js +5 -1
- package/dist/serialization/resources/context/types/ChunksContextRequestType.d.ts +7 -0
- package/dist/serialization/resources/context/types/ChunksContextRequestType.js +39 -0
- package/dist/serialization/resources/context/types/IngestContextRequestType.d.ts +1 -1
- package/dist/serialization/resources/context/types/IngestContextRequestType.js +1 -1
- package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +1 -1
- package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +1 -1
- package/dist/serialization/resources/context/types/ProfileContextRequestType.d.ts +7 -0
- package/dist/serialization/resources/context/types/ProfileContextRequestType.js +39 -0
- package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +1 -1
- package/dist/serialization/resources/context/types/RelationsContextRequestType.js +1 -1
- package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +1 -1
- package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +1 -1
- package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +1 -1
- package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +1 -1
- package/dist/serialization/resources/context/types/index.d.ts +2 -0
- package/dist/serialization/resources/context/types/index.js +2 -0
- package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.d.ts +10 -0
- package/dist/serialization/resources/databases/client/requests/HandlerInstructionsUpdateReq.js +44 -0
- package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +2 -0
- package/dist/serialization/resources/databases/client/requests/TenantsTenantCreateRequest.js +2 -0
- package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.d.ts +9 -0
- package/dist/serialization/resources/databases/client/requests/TenantsTenantRenameRequest.js +41 -0
- package/dist/serialization/resources/databases/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/databases/client/requests/index.js +5 -1
- package/dist/serialization/resources/feedback/client/index.d.ts +1 -0
- package/dist/serialization/resources/feedback/client/index.js +17 -0
- package/dist/serialization/resources/feedback/client/requests/FeedbackSubmitRequest.d.ts +21 -0
- package/dist/serialization/{types → resources/feedback/client/requests}/FeedbackSubmitRequest.js +16 -4
- package/dist/serialization/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/feedback/client/requests/index.js +5 -0
- package/dist/serialization/resources/feedback/index.d.ts +1 -0
- package/dist/serialization/resources/feedback/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
- package/dist/serialization/types/ConnectorsResource.js +6 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +7 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +39 -0
- package/dist/serialization/types/HandlerConnectorApiView.d.ts +3 -0
- package/dist/serialization/types/HandlerConnectorApiView.js +3 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +3 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.js +3 -0
- package/dist/serialization/types/HandlerConnectorListResponse.d.ts +2 -0
- package/dist/serialization/types/HandlerConnectorListResponse.js +2 -0
- package/dist/serialization/types/HandlerConnectorPauseResponse.d.ts +11 -0
- package/dist/serialization/types/{FeedbackSubmitRequestGroundTruth.js → HandlerConnectorPauseResponse.js} +5 -4
- package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +4 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.js +4 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +2 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.js +2 -0
- package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeSearchChunkInspectResult.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeSearchEntityProfileView.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantDeleteResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantRenameResponse.js +47 -0
- package/dist/serialization/types/HandlerInstructionsResponse.d.ts +12 -0
- package/dist/serialization/types/HandlerInstructionsResponse.js +44 -0
- package/dist/serialization/types/HandlerPlanCapView.d.ts +11 -0
- package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → HandlerPlanCapView.js} +5 -3
- package/dist/serialization/types/HandlerVaultCredentialEntry.d.ts +15 -0
- package/dist/serialization/types/HandlerVaultCredentialEntry.js +47 -0
- package/dist/serialization/types/HandlerVaultCredentialListResponse.d.ts +12 -0
- package/dist/serialization/types/HandlerVaultCredentialListResponse.js +44 -0
- package/dist/serialization/types/HandlerVaultCredentialRevealResponse.d.ts +12 -0
- package/dist/serialization/types/HandlerVaultCredentialRevealResponse.js +44 -0
- package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerVaultCredentialUpdateResponse.js +42 -0
- package/dist/serialization/types/MemoriesConversationTurn.d.ts +11 -0
- package/dist/serialization/types/MemoriesConversationTurn.js +43 -0
- package/dist/serialization/types/MemoriesIngestItem.d.ts +25 -0
- package/dist/serialization/types/MemoriesIngestItem.js +57 -0
- package/dist/serialization/types/MemoriesIngestItemContextCategory.d.ts +7 -0
- package/dist/serialization/types/MemoriesIngestItemContextCategory.js +39 -0
- package/dist/serialization/types/MemoriesUnifiedIngestRequest.d.ts +14 -0
- package/dist/serialization/types/MemoriesUnifiedIngestRequest.js +46 -0
- package/dist/serialization/types/SearchAliasExpansionNote.d.ts +10 -0
- package/dist/serialization/types/SearchAliasExpansionNote.js +42 -0
- package/dist/serialization/types/SearchAppSearchFusionDiagnostics.d.ts +13 -0
- package/dist/serialization/types/SearchAppSearchFusionDiagnostics.js +45 -0
- package/dist/serialization/types/SearchAppSearchFusionStats.d.ts +19 -0
- package/dist/serialization/types/SearchAppSearchFusionStats.js +51 -0
- package/dist/serialization/types/SearchChunkInspectResult.d.ts +14 -0
- package/dist/serialization/types/SearchChunkInspectResult.js +46 -0
- package/dist/serialization/types/SearchEntityProfileView.d.ts +22 -0
- package/dist/serialization/types/SearchEntityProfileView.js +54 -0
- package/dist/serialization/types/SearchForcefulRelationEntry.d.ts +12 -0
- package/dist/serialization/types/SearchForcefulRelationEntry.js +44 -0
- package/dist/serialization/types/SearchForcefulRelationsBucket.d.ts +11 -0
- package/dist/serialization/types/SearchForcefulRelationsBucket.js +43 -0
- package/dist/serialization/types/SearchGraphPath.d.ts +13 -0
- package/dist/serialization/types/SearchGraphPath.js +45 -0
- package/dist/serialization/types/SearchGraphPlane.d.ts +10 -0
- package/dist/serialization/types/SearchGraphPlane.js +42 -0
- package/dist/serialization/types/SearchProfileContext.d.ts +17 -0
- package/dist/serialization/types/SearchProfileContext.js +49 -0
- package/dist/serialization/types/SearchProfileEntry.d.ts +15 -0
- package/dist/serialization/types/SearchProfileEntry.js +47 -0
- package/dist/serialization/types/SearchProfileFilterInfo.d.ts +15 -0
- package/dist/serialization/types/SearchProfileFilterInfo.js +47 -0
- package/dist/serialization/types/SearchRelationVia.d.ts +10 -0
- package/dist/serialization/types/{FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → SearchRelationVia.js} +4 -3
- package/dist/serialization/types/SearchSourceType.d.ts +1 -1
- package/dist/serialization/types/SearchSourceType.js +1 -1
- package/dist/serialization/types/SearchV2RetrievalResult.d.ts +12 -0
- package/dist/serialization/types/SearchV2RetrievalResult.js +12 -0
- package/dist/serialization/types/SearchVectorStoreChunk.d.ts +21 -0
- package/dist/serialization/types/SearchVectorStoreChunk.js +53 -0
- package/dist/serialization/types/TenantsDatabaseDetail.d.ts +11 -0
- package/dist/serialization/types/TenantsDatabaseDetail.js +43 -0
- package/dist/serialization/types/TenantsDatabaseDetailType.d.ts +7 -0
- package/dist/serialization/types/{FeedbackSubmitRequestFeedback.js → TenantsDatabaseDetailType.js} +2 -4
- package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +2 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2.js +2 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2Type.d.ts +7 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2Type.js +39 -0
- package/dist/serialization/types/TenantsSubTenantDeleteResponse.d.ts +14 -0
- package/dist/serialization/types/TenantsSubTenantDeleteResponse.js +46 -0
- package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
- package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
- package/dist/serialization/types/TenantsTenantRenameResponse.d.ts +15 -0
- package/dist/serialization/types/TenantsTenantRenameResponse.js +47 -0
- package/dist/serialization/types/index.d.ts +35 -6
- package/dist/serialization/types/index.js +35 -6
- package/package.json +1 -1
- package/dist/api/types/FeedbackSubmitRequest.d.ts +0 -2
- package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +0 -3
- package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -4
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -2
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -3
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -3
- package/dist/serialization/types/FeedbackSubmitRequest.d.ts +0 -9
- package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +0 -9
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +0 -10
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +0 -9
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +0 -44
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +0 -9
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +0 -9
- /package/dist/api/{types/FeedbackSubmitRequest.js → resources/connectors/client/requests/HandlerVaultCredentialRevealReq.js} +0 -0
- /package/dist/api/{types/FeedbackSubmitRequestFeedback.js → resources/connectors/client/requests/HandlerVaultCredentialUpdateReq.js} +0 -0
- /package/dist/api/{types/FeedbackSubmitRequestGroundTruth.js → resources/connectors/client/requests/PauseConnectorsRequest.js} +0 -0
- /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruth.js → resources/connectors/client/requests/ResumeConnectorsRequest.js} +0 -0
- /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js → resources/context/client/requests/ChunksContextRequest.js} +0 -0
- /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → resources/context/client/requests/ProfileContextRequest.js} +0 -0
|
@@ -7,9 +7,13 @@ export type { HandlerConnectorCreateReq } from "./HandlerConnectorCreateReq.js";
|
|
|
7
7
|
export type { HandlerConnectorUpdateReq } from "./HandlerConnectorUpdateReq.js";
|
|
8
8
|
export type { HandlerDiscoverPreviewReq } from "./HandlerDiscoverPreviewReq.js";
|
|
9
9
|
export type { HandlerResourceCreateReq } from "./HandlerResourceCreateReq.js";
|
|
10
|
+
export type { HandlerVaultCredentialRevealReq } from "./HandlerVaultCredentialRevealReq.js";
|
|
11
|
+
export type { HandlerVaultCredentialUpdateReq } from "./HandlerVaultCredentialUpdateReq.js";
|
|
10
12
|
export type { ListConnectorsRequest } from "./ListConnectorsRequest.js";
|
|
11
13
|
export type { ListResourcesConnectorsRequest } from "./ListResourcesConnectorsRequest.js";
|
|
12
14
|
export type { PatchConnectorsIdCredentialsRequest } from "./PatchConnectorsIdCredentialsRequest.js";
|
|
15
|
+
export type { PauseConnectorsRequest } from "./PauseConnectorsRequest.js";
|
|
16
|
+
export type { ResumeConnectorsRequest } from "./ResumeConnectorsRequest.js";
|
|
13
17
|
export type { StatusConnectorsRequest } from "./StatusConnectorsRequest.js";
|
|
14
18
|
export type { SyncConnectorsRequest } from "./SyncConnectorsRequest.js";
|
|
15
19
|
export type { UpdateResourceAclConnectorsRequest } from "./UpdateResourceAclConnectorsRequest.js";
|
|
@@ -41,7 +41,26 @@ export declare class ContextClient {
|
|
|
41
41
|
delete(request?: HydraDB.SourcesV2SourceDeleteRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeSourcesMemoryDeleteResponse>;
|
|
42
42
|
private __delete;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Return the indexed chunk text for a source, or for a specific set of chunk ids (the ids a graph relation cites as its evidence). Chunk rows are read from the document store first and from the vector store for anything it does not hold. Chunks whose source the request's principals may not see are omitted, and so are chunks whose source cannot be established.
|
|
45
|
+
*
|
|
46
|
+
* @param {HydraDB.ChunksContextRequest} request
|
|
47
|
+
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.context.chunks({
|
|
53
|
+
* database: "acme_corp",
|
|
54
|
+
* collection: "team_docs",
|
|
55
|
+
* tenantId: "tenant_1234",
|
|
56
|
+
* subTenantId: "sub_tenant_4567",
|
|
57
|
+
* id: "HydraDoc1234"
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
chunks(request: HydraDB.ChunksContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeSearchChunkInspectResult>;
|
|
61
|
+
private __chunks;
|
|
62
|
+
/**
|
|
63
|
+
* Ingest content for a database. `items` is the unified shape (text or a conversation per item) and the only one a unified database accepts; a split database still takes the deprecated `documents`, `app_knowledge` and `memories` fields selected by `type`. The same `items` array may also be sent as an application/json body.
|
|
45
64
|
*
|
|
46
65
|
* @param {HydraDB.IngestContextRequest} request
|
|
47
66
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -81,7 +100,7 @@ export declare class ContextClient {
|
|
|
81
100
|
inspect(request: HydraDB.InspectContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeFetchV2SourceFetchResponse>;
|
|
82
101
|
private __inspect;
|
|
83
102
|
/**
|
|
84
|
-
* List
|
|
103
|
+
* List items (id + metadata) for a database. Split database: knowledge sources (default) or memories, selected by `type`. Unified database: every item in one page (type=unified, the default).
|
|
85
104
|
*
|
|
86
105
|
* @param {HydraDB.ListV2ListContentRequest} request
|
|
87
106
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -93,6 +112,27 @@ export declare class ContextClient {
|
|
|
93
112
|
*/
|
|
94
113
|
list(request?: HydraDB.ListV2ListContentRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeListV2ListResponse>;
|
|
95
114
|
private __list;
|
|
115
|
+
/**
|
|
116
|
+
* Return the compiled profile of one entity in one collection: identity headline, a cited summary, and the current admitted entries (each pointing at the statements behind it). Profiles are maintained continuously by the ingestion pipeline's entity keeper; this endpoint reads the materialized view and never triggers recomputation.
|
|
117
|
+
*
|
|
118
|
+
* @param {HydraDB.ProfileContextRequest} request
|
|
119
|
+
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
122
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* await client.context.profile({
|
|
126
|
+
* database: "acme_corp",
|
|
127
|
+
* collection: "team_docs",
|
|
128
|
+
* tenantId: "tenant_1234",
|
|
129
|
+
* subTenantId: "sub_tenant_4567",
|
|
130
|
+
* subject: "subject",
|
|
131
|
+
* namespace: "organization"
|
|
132
|
+
* })
|
|
133
|
+
*/
|
|
134
|
+
profile(request: HydraDB.ProfileContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeSearchEntityProfileView>;
|
|
135
|
+
private __profile;
|
|
96
136
|
/**
|
|
97
137
|
* Return knowledge-graph relations for a tenant or a single source.
|
|
98
138
|
*
|
|
@@ -132,7 +172,7 @@ export declare class ContextClient {
|
|
|
132
172
|
status(request: HydraDB.StatusContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeIngestionV2BatchProcessingStatus>;
|
|
133
173
|
private __status;
|
|
134
174
|
/**
|
|
135
|
-
* Return the connected subgraph of
|
|
175
|
+
* Query-string form of GET /context/{id}/subgraph: the same parameters, the same response, and the same rules. It exists for an id that contains '/', which cannot be spelled as one path segment; generated SDKs call this form for every id. Return the connected subgraph of one ingested item: every item reachable from it through item-level relations (explicit `relates_to` links, a shared thread, parent/child hierarchy, traversed breadth-first up to `depth` hops), the relations among those members, and the structural graph around them (entities, comments, attachments, actors). Chunk-level entity relations are not included; use Inspecting Context Relations for those. An unknown id returns an empty subgraph, not an error.
|
|
136
176
|
*
|
|
137
177
|
* @param {HydraDB.SubgraphContextRequest} request
|
|
138
178
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -141,11 +181,11 @@ export declare class ContextClient {
|
|
|
141
181
|
*
|
|
142
182
|
* @example
|
|
143
183
|
* await client.context.subgraph({
|
|
184
|
+
* id: "HydraDoc1234",
|
|
144
185
|
* database: "acme_corp",
|
|
145
186
|
* collection: "team_docs",
|
|
146
187
|
* tenantId: "tenant_1234",
|
|
147
|
-
* subTenantId: "sub_tenant_4567"
|
|
148
|
-
* id: "HydraDoc1234"
|
|
188
|
+
* subTenantId: "sub_tenant_4567"
|
|
149
189
|
* })
|
|
150
190
|
*/
|
|
151
191
|
subgraph(request: HydraDB.SubgraphContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeGraphSourceSubgraphResponse>;
|
|
@@ -143,7 +143,96 @@ class ContextClient {
|
|
|
143
143
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/context");
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Return the indexed chunk text for a source, or for a specific set of chunk ids (the ids a graph relation cites as its evidence). Chunk rows are read from the document store first and from the vector store for anything it does not hold. Chunks whose source the request's principals may not see are omitted, and so are chunks whose source cannot be established.
|
|
147
|
+
*
|
|
148
|
+
* @param {HydraDB.ChunksContextRequest} request
|
|
149
|
+
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* await client.context.chunks({
|
|
155
|
+
* database: "acme_corp",
|
|
156
|
+
* collection: "team_docs",
|
|
157
|
+
* tenantId: "tenant_1234",
|
|
158
|
+
* subTenantId: "sub_tenant_4567",
|
|
159
|
+
* id: "HydraDoc1234"
|
|
160
|
+
* })
|
|
161
|
+
*/
|
|
162
|
+
chunks(request, requestOptions) {
|
|
163
|
+
return core.HttpResponsePromise.fromPromise(this.__chunks(request, requestOptions));
|
|
164
|
+
}
|
|
165
|
+
async __chunks(request, requestOptions) {
|
|
166
|
+
const { database, collection, tenantId, subTenantId, id, chunkIds, type: type_, limit, acl } = request;
|
|
167
|
+
const _queryParams = {
|
|
168
|
+
database,
|
|
169
|
+
collection,
|
|
170
|
+
tenant_id: tenantId,
|
|
171
|
+
sub_tenant_id: subTenantId,
|
|
172
|
+
id,
|
|
173
|
+
chunk_ids: chunkIds,
|
|
174
|
+
type: type_ != null
|
|
175
|
+
? serializers.ChunksContextRequestType.jsonOrThrow(type_, {
|
|
176
|
+
unrecognizedObjectKeys: "strip",
|
|
177
|
+
omitUndefined: true,
|
|
178
|
+
})
|
|
179
|
+
: undefined,
|
|
180
|
+
limit,
|
|
181
|
+
acl,
|
|
182
|
+
};
|
|
183
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
184
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
185
|
+
const _response = await core.fetcher({
|
|
186
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
187
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
188
|
+
environments.HydraDBEnvironment.Default, "context/chunks"),
|
|
189
|
+
method: "GET",
|
|
190
|
+
headers: _headers,
|
|
191
|
+
queryString: core.url
|
|
192
|
+
.queryBuilder()
|
|
193
|
+
.addMany(_queryParams)
|
|
194
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
195
|
+
.build(),
|
|
196
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
197
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
198
|
+
abortSignal: requestOptions?.abortSignal,
|
|
199
|
+
fetchFn: this._options?.fetch,
|
|
200
|
+
logging: this._options.logging,
|
|
201
|
+
});
|
|
202
|
+
if (_response.ok) {
|
|
203
|
+
return {
|
|
204
|
+
data: serializers.HandlerEnvelopeSearchChunkInspectResult.parseOrThrow(_response.body, {
|
|
205
|
+
unrecognizedObjectKeys: "passthrough",
|
|
206
|
+
allowUnrecognizedUnionMembers: true,
|
|
207
|
+
allowUnrecognizedEnumValues: true,
|
|
208
|
+
skipValidation: true,
|
|
209
|
+
breadcrumbsPrefix: ["response"],
|
|
210
|
+
}),
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
if (_response.error.reason === "status-code") {
|
|
215
|
+
switch (_response.error.statusCode) {
|
|
216
|
+
case 400:
|
|
217
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
218
|
+
unrecognizedObjectKeys: "passthrough",
|
|
219
|
+
allowUnrecognizedUnionMembers: true,
|
|
220
|
+
allowUnrecognizedEnumValues: true,
|
|
221
|
+
skipValidation: true,
|
|
222
|
+
breadcrumbsPrefix: ["response"],
|
|
223
|
+
}), _response.rawResponse);
|
|
224
|
+
default:
|
|
225
|
+
throw new errors.HydraDBError({
|
|
226
|
+
statusCode: _response.error.statusCode,
|
|
227
|
+
body: _response.error.body,
|
|
228
|
+
rawResponse: _response.rawResponse,
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/chunks");
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Ingest content for a database. `items` is the unified shape (text or a conversation per item) and the only one a unified database accepts; a split database still takes the deprecated `documents`, `app_knowledge` and `memories` fields selected by `type`. The same `items` array may also be sent as an application/json body.
|
|
147
236
|
*
|
|
148
237
|
* @param {HydraDB.IngestContextRequest} request
|
|
149
238
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -175,11 +264,16 @@ class ContextClient {
|
|
|
175
264
|
_body.append("document_metadata", request.documentMetadata);
|
|
176
265
|
}
|
|
177
266
|
if (request.documents != null) {
|
|
178
|
-
|
|
267
|
+
for (const _file of request.documents) {
|
|
268
|
+
await _body.appendFile("documents", _file);
|
|
269
|
+
}
|
|
179
270
|
}
|
|
180
271
|
if (request.graphPayload != null) {
|
|
181
272
|
_body.append("graph_payload", request.graphPayload);
|
|
182
273
|
}
|
|
274
|
+
if (request.items != null) {
|
|
275
|
+
_body.append("items", request.items);
|
|
276
|
+
}
|
|
183
277
|
if (request.memories != null) {
|
|
184
278
|
_body.append("memories", request.memories);
|
|
185
279
|
}
|
|
@@ -364,7 +458,7 @@ class ContextClient {
|
|
|
364
458
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/inspect");
|
|
365
459
|
}
|
|
366
460
|
/**
|
|
367
|
-
* List
|
|
461
|
+
* List items (id + metadata) for a database. Split database: knowledge sources (default) or memories, selected by `type`. Unified database: every item in one page (type=unified, the default).
|
|
368
462
|
*
|
|
369
463
|
* @param {HydraDB.ListV2ListContentRequest} request
|
|
370
464
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -431,6 +525,98 @@ class ContextClient {
|
|
|
431
525
|
}
|
|
432
526
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/context/list");
|
|
433
527
|
}
|
|
528
|
+
/**
|
|
529
|
+
* Return the compiled profile of one entity in one collection: identity headline, a cited summary, and the current admitted entries (each pointing at the statements behind it). Profiles are maintained continuously by the ingestion pipeline's entity keeper; this endpoint reads the materialized view and never triggers recomputation.
|
|
530
|
+
*
|
|
531
|
+
* @param {HydraDB.ProfileContextRequest} request
|
|
532
|
+
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
533
|
+
*
|
|
534
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
535
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
536
|
+
*
|
|
537
|
+
* @example
|
|
538
|
+
* await client.context.profile({
|
|
539
|
+
* database: "acme_corp",
|
|
540
|
+
* collection: "team_docs",
|
|
541
|
+
* tenantId: "tenant_1234",
|
|
542
|
+
* subTenantId: "sub_tenant_4567",
|
|
543
|
+
* subject: "subject",
|
|
544
|
+
* namespace: "organization"
|
|
545
|
+
* })
|
|
546
|
+
*/
|
|
547
|
+
profile(request, requestOptions) {
|
|
548
|
+
return core.HttpResponsePromise.fromPromise(this.__profile(request, requestOptions));
|
|
549
|
+
}
|
|
550
|
+
async __profile(request, requestOptions) {
|
|
551
|
+
const { database, collection, tenantId, subTenantId, subject, type: type_, entityType, namespace } = request;
|
|
552
|
+
const _queryParams = {
|
|
553
|
+
database,
|
|
554
|
+
collection,
|
|
555
|
+
tenant_id: tenantId,
|
|
556
|
+
sub_tenant_id: subTenantId,
|
|
557
|
+
subject,
|
|
558
|
+
type: type_ != null
|
|
559
|
+
? serializers.ProfileContextRequestType.jsonOrThrow(type_, {
|
|
560
|
+
unrecognizedObjectKeys: "strip",
|
|
561
|
+
omitUndefined: true,
|
|
562
|
+
})
|
|
563
|
+
: undefined,
|
|
564
|
+
entity_type: entityType,
|
|
565
|
+
namespace,
|
|
566
|
+
};
|
|
567
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
568
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
569
|
+
const _response = await core.fetcher({
|
|
570
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
571
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
572
|
+
environments.HydraDBEnvironment.Default, "context/profile"),
|
|
573
|
+
method: "GET",
|
|
574
|
+
headers: _headers,
|
|
575
|
+
queryString: core.url
|
|
576
|
+
.queryBuilder()
|
|
577
|
+
.addMany(_queryParams)
|
|
578
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
579
|
+
.build(),
|
|
580
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
581
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
582
|
+
abortSignal: requestOptions?.abortSignal,
|
|
583
|
+
fetchFn: this._options?.fetch,
|
|
584
|
+
logging: this._options.logging,
|
|
585
|
+
});
|
|
586
|
+
if (_response.ok) {
|
|
587
|
+
return {
|
|
588
|
+
data: serializers.HandlerEnvelopeSearchEntityProfileView.parseOrThrow(_response.body, {
|
|
589
|
+
unrecognizedObjectKeys: "passthrough",
|
|
590
|
+
allowUnrecognizedUnionMembers: true,
|
|
591
|
+
allowUnrecognizedEnumValues: true,
|
|
592
|
+
skipValidation: true,
|
|
593
|
+
breadcrumbsPrefix: ["response"],
|
|
594
|
+
}),
|
|
595
|
+
rawResponse: _response.rawResponse,
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
if (_response.error.reason === "status-code") {
|
|
599
|
+
switch (_response.error.statusCode) {
|
|
600
|
+
case 400:
|
|
601
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
602
|
+
unrecognizedObjectKeys: "passthrough",
|
|
603
|
+
allowUnrecognizedUnionMembers: true,
|
|
604
|
+
allowUnrecognizedEnumValues: true,
|
|
605
|
+
skipValidation: true,
|
|
606
|
+
breadcrumbsPrefix: ["response"],
|
|
607
|
+
}), _response.rawResponse);
|
|
608
|
+
case 404:
|
|
609
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
610
|
+
default:
|
|
611
|
+
throw new errors.HydraDBError({
|
|
612
|
+
statusCode: _response.error.statusCode,
|
|
613
|
+
body: _response.error.body,
|
|
614
|
+
rawResponse: _response.rawResponse,
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/profile");
|
|
619
|
+
}
|
|
434
620
|
/**
|
|
435
621
|
* Return knowledge-graph relations for a tenant or a single source.
|
|
436
622
|
*
|
|
@@ -602,7 +788,7 @@ class ContextClient {
|
|
|
602
788
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/status");
|
|
603
789
|
}
|
|
604
790
|
/**
|
|
605
|
-
* Return the connected subgraph of
|
|
791
|
+
* Query-string form of GET /context/{id}/subgraph: the same parameters, the same response, and the same rules. It exists for an id that contains '/', which cannot be spelled as one path segment; generated SDKs call this form for every id. Return the connected subgraph of one ingested item: every item reachable from it through item-level relations (explicit `relates_to` links, a shared thread, parent/child hierarchy, traversed breadth-first up to `depth` hops), the relations among those members, and the structural graph around them (entities, comments, attachments, actors). Chunk-level entity relations are not included; use Inspecting Context Relations for those. An unknown id returns an empty subgraph, not an error.
|
|
606
792
|
*
|
|
607
793
|
* @param {HydraDB.SubgraphContextRequest} request
|
|
608
794
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -611,24 +797,24 @@ class ContextClient {
|
|
|
611
797
|
*
|
|
612
798
|
* @example
|
|
613
799
|
* await client.context.subgraph({
|
|
800
|
+
* id: "HydraDoc1234",
|
|
614
801
|
* database: "acme_corp",
|
|
615
802
|
* collection: "team_docs",
|
|
616
803
|
* tenantId: "tenant_1234",
|
|
617
|
-
* subTenantId: "sub_tenant_4567"
|
|
618
|
-
* id: "HydraDoc1234"
|
|
804
|
+
* subTenantId: "sub_tenant_4567"
|
|
619
805
|
* })
|
|
620
806
|
*/
|
|
621
807
|
subgraph(request, requestOptions) {
|
|
622
808
|
return core.HttpResponsePromise.fromPromise(this.__subgraph(request, requestOptions));
|
|
623
809
|
}
|
|
624
810
|
async __subgraph(request, requestOptions) {
|
|
625
|
-
const { database, collection, tenantId, subTenantId,
|
|
811
|
+
const { id, database, collection, tenantId, subTenantId, type: type_, depth, maxSources, acl } = request;
|
|
626
812
|
const _queryParams = {
|
|
813
|
+
id,
|
|
627
814
|
database,
|
|
628
815
|
collection,
|
|
629
816
|
tenant_id: tenantId,
|
|
630
817
|
sub_tenant_id: subTenantId,
|
|
631
|
-
id,
|
|
632
818
|
type: type_ != null
|
|
633
819
|
? serializers.SubgraphContextRequestType.jsonOrThrow(type_, {
|
|
634
820
|
unrecognizedObjectKeys: "strip",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as HydraDB from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* database: "acme_corp",
|
|
6
|
+
* collection: "team_docs",
|
|
7
|
+
* tenantId: "tenant_1234",
|
|
8
|
+
* subTenantId: "sub_tenant_4567",
|
|
9
|
+
* id: "HydraDoc1234"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ChunksContextRequest {
|
|
13
|
+
/** Database (canonical name for the tenant scope) */
|
|
14
|
+
database: string;
|
|
15
|
+
/** Collection (canonical name for the sub-tenant scope) */
|
|
16
|
+
collection?: string;
|
|
17
|
+
/** Deprecated alias for database */
|
|
18
|
+
tenantId?: string;
|
|
19
|
+
/** Deprecated alias for collection */
|
|
20
|
+
subTenantId?: string;
|
|
21
|
+
/** Source ID whose chunks to return. Required unless chunk_ids is given. */
|
|
22
|
+
id?: string;
|
|
23
|
+
/** Chunk IDs to return. Repeated (chunk_ids=a&chunk_ids=b) or comma-separated. Takes precedence over id. */
|
|
24
|
+
chunkIds?: string | string[];
|
|
25
|
+
/** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
|
|
26
|
+
type?: HydraDB.ChunksContextRequestType;
|
|
27
|
+
/** Max chunks to return */
|
|
28
|
+
limit?: number;
|
|
29
|
+
/** Principals to answer as (PRO-1684 document ACLs): only chunks whose source they may see are returned. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
|
|
30
|
+
acl?: string | string[];
|
|
31
|
+
}
|
|
@@ -7,15 +7,17 @@ import type * as HydraDB from "../../../../index.js";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface IngestContextRequest {
|
|
10
|
-
/** App-knowledge items as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). The deprecated `tenant_metadata` / `document_metadata` spellings are accepted here and held to the same caps. Over-cap returns 400 with the actual byte count. Each item may also carry `acl`, a list of principals (`user_email:<email>`, a bare email, `group:<provider>:<id>`, `domain:<domain>`, or `__public__`) restricting who may retrieve it; omit it to leave the document unrestricted, and send an empty list to restrict it to nobody. A malformed principal rejects the whole request with 400. */
|
|
10
|
+
/** App-knowledge items as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). The deprecated `tenant_metadata` / `document_metadata` spellings are accepted here and held to the same caps. Over-cap returns 400 with the actual byte count. Each item may also carry `acl`, a list of principals (`user_email:<email>`, a bare email, `group:<provider>:<id>`, `domain:<domain>`, or `__public__`) restricting who may retrieve it; omit it to leave the document unrestricted, and send an empty list to restrict it to nobody. A malformed principal rejects the whole request with 400. Items may also carry `evidence_kind`/`evidence_subject` provenance labels (see document_metadata); an unknown kind returns 400. */
|
|
11
11
|
appKnowledge?: string;
|
|
12
12
|
collection?: string;
|
|
13
13
|
database: string;
|
|
14
|
-
/** Per-document metadata as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB. Both caps are measured on the compact JSON encoding of the whole map in UTF-8 bytes, so keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
|
|
14
|
+
/** Per-document metadata as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB. Both caps are measured on the compact JSON encoding of the whole map in UTF-8 bytes, so keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. Each item may also carry evidence labels (`evidence_kind`: one of assertion, record, said, done, third_party, inferred; `evidence_subject`: a stable handle for who the evidence is about, e.g. `user:kiran@acme.com`) declaring the content's provenance for entity understanding; an unknown kind returns 400. */
|
|
15
15
|
documentMetadata?: string;
|
|
16
|
-
documents?: core.file.Uploadable | undefined;
|
|
16
|
+
documents?: core.file.Uploadable[] | undefined;
|
|
17
17
|
graphPayload?: string;
|
|
18
|
-
/**
|
|
18
|
+
/** JSON-encoded array of ingest items -- the unified shape (text or a conversation per item), and the only one a unified database accepts. The same array may also be POSTed as an application/json body; that variant is not listed here so SDK generators emit this form, which carries every field. */
|
|
19
|
+
items?: string;
|
|
20
|
+
/** Memory items as a JSON array (type=memory). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). Over-cap returns 400 with the actual byte count. Items may also carry `evidence_kind`/`evidence_subject` provenance labels (see document_metadata); an unknown kind returns 400. */
|
|
19
21
|
memories?: string;
|
|
20
22
|
subTenantId?: string;
|
|
21
23
|
tenantId?: string;
|
|
@@ -35,6 +35,10 @@ export interface ListV2ListContentRequest {
|
|
|
35
35
|
subTenantId?: string;
|
|
36
36
|
/** deprecated: use database */
|
|
37
37
|
tenantId?: string;
|
|
38
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Type names the corpus. Split database: knowledge (default) or memory.
|
|
40
|
+
* Unified database: unified (default), every item in one page;
|
|
41
|
+
* knowledge/memory are rejected there.
|
|
42
|
+
*/
|
|
39
43
|
type?: HydraDB.ListV2ListContentRequestType;
|
|
40
44
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as HydraDB from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* database: "acme_corp",
|
|
6
|
+
* collection: "team_docs",
|
|
7
|
+
* tenantId: "tenant_1234",
|
|
8
|
+
* subTenantId: "sub_tenant_4567",
|
|
9
|
+
* subject: "subject",
|
|
10
|
+
* namespace: "organization"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ProfileContextRequest {
|
|
14
|
+
/** Database (canonical name for the tenant scope) */
|
|
15
|
+
database: string;
|
|
16
|
+
/** Collection (canonical name for the sub-tenant scope) */
|
|
17
|
+
collection: string;
|
|
18
|
+
/** Deprecated alias for database */
|
|
19
|
+
tenantId?: string;
|
|
20
|
+
/** Deprecated alias for collection */
|
|
21
|
+
subTenantId?: string;
|
|
22
|
+
/** Entity whose profile to return (e.g. a person's name) */
|
|
23
|
+
subject: string;
|
|
24
|
+
/** Corpus type: 'knowledge' or 'memory' */
|
|
25
|
+
type?: HydraDB.ProfileContextRequestType;
|
|
26
|
+
/** Graph entity type of the subject */
|
|
27
|
+
entityType?: string;
|
|
28
|
+
/** Graph namespace of the subject */
|
|
29
|
+
namespace?: string;
|
|
30
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface RelationsContextRequest {
|
|
|
20
20
|
subTenantId?: string;
|
|
21
21
|
/** Source ID (omit for database-wide relations) */
|
|
22
22
|
id?: string;
|
|
23
|
-
/** Corpus type: 'knowledge' or 'memory' */
|
|
23
|
+
/** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
|
|
24
24
|
type?: HydraDB.RelationsContextRequestType;
|
|
25
25
|
/** Max relations to return */
|
|
26
26
|
limit?: number;
|
|
@@ -20,6 +20,9 @@ export interface SourcesV2SourceDeleteRequest {
|
|
|
20
20
|
subTenantId?: string;
|
|
21
21
|
/** deprecated: use database */
|
|
22
22
|
tenantId?: string;
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Type names the corpus. Split database: knowledge (default) or memory.
|
|
25
|
+
* Unified database: unified (default); knowledge/memory are rejected there.
|
|
26
|
+
*/
|
|
24
27
|
type?: HydraDB.SourcesV2SourceDeleteRequestType;
|
|
25
28
|
}
|
|
@@ -2,14 +2,16 @@ import type * as HydraDB from "../../../../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* id: "HydraDoc1234",
|
|
5
6
|
* database: "acme_corp",
|
|
6
7
|
* collection: "team_docs",
|
|
7
8
|
* tenantId: "tenant_1234",
|
|
8
|
-
* subTenantId: "sub_tenant_4567"
|
|
9
|
-
* id: "HydraDoc1234"
|
|
9
|
+
* subTenantId: "sub_tenant_4567"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface SubgraphContextRequest {
|
|
13
|
+
/** Item ID: the ingested item whose connected subgraph to return. This form takes any id, including one that contains '/'. */
|
|
14
|
+
id: string;
|
|
13
15
|
/** Database (canonical name for the tenant scope) */
|
|
14
16
|
database: string;
|
|
15
17
|
/** Collection (canonical name for the sub-tenant scope) */
|
|
@@ -18,14 +20,12 @@ export interface SubgraphContextRequest {
|
|
|
18
20
|
tenantId?: string;
|
|
19
21
|
/** Deprecated alias for collection */
|
|
20
22
|
subTenantId?: string;
|
|
21
|
-
/**
|
|
22
|
-
id: string;
|
|
23
|
-
/** Corpus type: 'knowledge' or 'memory' */
|
|
23
|
+
/** Corpus type. Split database: 'knowledge' (default), 'memory', or 'all'. Unified database: 'unified' (default); knowledge/memory are rejected. This read addresses one corpus, so 'all' answers from knowledge and meta.source_type reports which corpus answered. */
|
|
24
24
|
type?: HydraDB.SubgraphContextRequestType;
|
|
25
|
-
/** Max
|
|
25
|
+
/** Max traversal depth in hops */
|
|
26
26
|
depth?: number;
|
|
27
|
-
/** Max
|
|
27
|
+
/** Max members returned; `is_truncated` reports when this clipped the traversal */
|
|
28
28
|
maxSources?: number;
|
|
29
|
-
/** Principals to answer as (
|
|
29
|
+
/** Principals to answer as (document ACLs): the subgraph contains only items they may see, filtered at every hop. Repeated (acl=a&acl=b) or comma-separated. Omit for no ACL scoping. */
|
|
30
30
|
acl?: string | string[];
|
|
31
31
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export type { ChunksContextRequest } from "./ChunksContextRequest.js";
|
|
1
2
|
export type { HandlerContextMetadataUpdateRequest } from "./HandlerContextMetadataUpdateRequest.js";
|
|
2
3
|
export type { IngestContextRequest } from "./IngestContextRequest.js";
|
|
3
4
|
export type { InspectContextRequest } from "./InspectContextRequest.js";
|
|
4
5
|
export type { ListV2ListContentRequest } from "./ListV2ListContentRequest.js";
|
|
6
|
+
export type { ProfileContextRequest } from "./ProfileContextRequest.js";
|
|
5
7
|
export type { RelationsContextRequest } from "./RelationsContextRequest.js";
|
|
6
8
|
export type { SourcesV2SourceDeleteRequest } from "./SourcesV2SourceDeleteRequest.js";
|
|
7
9
|
export type { StatusContextRequest } from "./StatusContextRequest.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ChunksContextRequestType: {
|
|
2
|
+
readonly Knowledge: "knowledge";
|
|
3
|
+
readonly Memory: "memory";
|
|
4
|
+
readonly Unified: "unified";
|
|
5
|
+
readonly All: "all";
|
|
6
|
+
};
|
|
7
|
+
export type ChunksContextRequestType = (typeof ChunksContextRequestType)[keyof typeof ChunksContextRequestType];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ChunksContextRequestType = void 0;
|
|
5
|
+
exports.ChunksContextRequestType = {
|
|
6
|
+
Knowledge: "knowledge",
|
|
7
|
+
Memory: "memory",
|
|
8
|
+
Unified: "unified",
|
|
9
|
+
All: "all",
|
|
10
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Type names the corpus. Split database: knowledge (default) or memory.
|
|
3
|
+
* Unified database: unified (default), every item in one page;
|
|
4
|
+
* knowledge/memory are rejected there.
|
|
5
|
+
*/
|
|
2
6
|
export declare const ListV2ListContentRequestType: {
|
|
3
7
|
readonly Knowledge: "knowledge";
|
|
4
8
|
readonly Memory: "memory";
|
|
9
|
+
readonly Unified: "unified";
|
|
10
|
+
readonly All: "all";
|
|
5
11
|
};
|
|
6
12
|
export type ListV2ListContentRequestType = (typeof ListV2ListContentRequestType)[keyof typeof ListV2ListContentRequestType];
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ListV2ListContentRequestType = void 0;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Type names the corpus. Split database: knowledge (default) or memory.
|
|
7
|
+
* Unified database: unified (default), every item in one page;
|
|
8
|
+
* knowledge/memory are rejected there.
|
|
9
|
+
*/
|
|
6
10
|
exports.ListV2ListContentRequestType = {
|
|
7
11
|
Knowledge: "knowledge",
|
|
8
12
|
Memory: "memory",
|
|
13
|
+
Unified: "unified",
|
|
14
|
+
All: "all",
|
|
9
15
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ProfileContextRequestType = void 0;
|
|
5
|
+
exports.ProfileContextRequestType = {
|
|
6
|
+
Knowledge: "knowledge",
|
|
7
|
+
Memory: "memory",
|
|
8
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const RelationsContextRequestType: {
|
|
2
2
|
readonly Knowledge: "knowledge";
|
|
3
3
|
readonly Memory: "memory";
|
|
4
|
+
readonly Unified: "unified";
|
|
5
|
+
readonly All: "all";
|
|
4
6
|
};
|
|
5
7
|
export type RelationsContextRequestType = (typeof RelationsContextRequestType)[keyof typeof RelationsContextRequestType];
|