@hydradb/sdk 2.1.3 → 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 +47 -3
- package/dist/api/resources/connectors/client/Client.d.ts +102 -2
- package/dist/api/resources/connectors/client/Client.js +404 -2
- package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +6 -0
- package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +6 -0
- package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +12 -0
- 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/UpdateResourceAclConnectorsRequest.d.ts +17 -0
- package/dist/api/resources/connectors/client/requests/index.d.ts +5 -0
- package/dist/api/resources/context/client/Client.d.ts +61 -2
- package/dist/api/resources/context/client/Client.js +282 -5
- package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +31 -0
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +14 -0
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +6 -4
- package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +7 -1
- package/dist/api/resources/context/client/requests/ProfileContextRequest.d.ts +30 -0
- package/dist/api/resources/context/client/requests/ProfileContextRequest.js +3 -0
- package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +3 -1
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
- package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
- package/dist/api/resources/context/client/requests/SubgraphContextRequest.js +3 -0
- package/dist/api/resources/context/client/requests/index.d.ts +3 -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 +7 -0
- package/dist/api/resources/context/types/SubgraphContextRequestType.js +10 -0
- package/dist/api/resources/context/types/index.d.ts +3 -0
- package/dist/api/resources/context/types/index.js +3 -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/resources/webhooks/client/Client.d.ts +19 -0
- package/dist/api/resources/webhooks/client/Client.js +80 -0
- package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
- package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js +3 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/api/types/ConnectorsResource.d.ts +101 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +13 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +16 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +30 -0
- package/dist/api/types/GraphEntity.d.ts +12 -0
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +23 -0
- package/dist/api/types/GraphRelationEvidence.d.ts +8 -0
- package/dist/api/types/GraphSourceSubgraphResponse.d.ts +40 -0
- package/dist/api/types/GraphSourceSubgraphResponse.js +3 -0
- package/dist/api/types/GraphSubgraphSource.d.ts +28 -0
- package/dist/api/types/GraphSubgraphSource.js +3 -0
- package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
- package/dist/api/types/HandlerCatalogConnector.d.ts +15 -0
- package/dist/api/types/HandlerConnectorApiView.d.ts +30 -0
- package/dist/api/types/HandlerConnectorCreateResponse.d.ts +30 -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 +43 -0
- package/dist/api/types/HandlerConnectorStatusError.d.ts +4 -3
- package/dist/api/types/HandlerConnectorStatusResponse.d.ts +5 -2
- package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +5 -0
- package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +3 -0
- 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/HandlerResourceMapping.d.ts +14 -0
- package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
- package/dist/api/types/HandlerSupabaseWebhookAck.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/SearchSourceFact.d.ts +18 -0
- package/dist/api/types/SearchSourceFact.js +3 -0
- package/dist/api/types/SearchSourceFilterInfo.d.ts +15 -0
- package/dist/api/types/SearchSourceFilterInfo.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 +18 -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 +42 -6
- package/dist/api/types/index.js +42 -6
- package/dist/serialization/client/requests/SearchQueryRequest.d.ts +6 -0
- package/dist/serialization/client/requests/SearchQueryRequest.js +6 -0
- package/dist/serialization/resources/connectors/client/index.d.ts +1 -0
- package/dist/serialization/resources/connectors/client/index.js +2 -1
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +1 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +1 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.js +2 -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/connectors/client/updateResourceAcl.d.ts +10 -0
- package/dist/serialization/resources/connectors/client/updateResourceAcl.js +40 -0
- package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.js +1 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -0
- 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 +7 -0
- package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +39 -0
- package/dist/serialization/resources/context/types/index.d.ts +3 -0
- package/dist/serialization/resources/context/types/index.js +3 -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/resources/webhooks/client/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/index.js +24 -0
- package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
- package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.js +39 -0
- package/dist/serialization/types/ConnectorsResource.d.ts +12 -0
- package/dist/serialization/types/ConnectorsResource.js +12 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +7 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +39 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +5 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
- package/dist/serialization/types/GraphEntity.d.ts +1 -0
- package/dist/serialization/types/GraphEntity.js +1 -0
- package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +2 -0
- package/dist/serialization/types/GraphGraphRelationsResponse.js +2 -0
- package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
- package/dist/serialization/types/GraphRelationEvidence.js +1 -0
- package/dist/serialization/types/GraphSourceSubgraphResponse.d.ts +19 -0
- package/dist/serialization/types/GraphSourceSubgraphResponse.js +51 -0
- package/dist/serialization/types/GraphSubgraphSource.d.ts +18 -0
- package/dist/serialization/types/GraphSubgraphSource.js +50 -0
- package/dist/serialization/types/GraphTripletWithEvidence.d.ts +1 -0
- package/dist/serialization/types/GraphTripletWithEvidence.js +1 -0
- package/dist/serialization/types/HandlerCatalogConnector.d.ts +3 -0
- package/dist/serialization/types/HandlerCatalogConnector.js +3 -0
- package/dist/serialization/types/HandlerConnectorApiView.d.ts +5 -0
- package/dist/serialization/types/HandlerConnectorApiView.js +5 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +5 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.js +5 -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 +8 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.js +8 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +2 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.js +2 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +1 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.js +1 -0
- package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +47 -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/HandlerResourceMapping.d.ts +2 -0
- package/dist/serialization/types/HandlerResourceMapping.js +2 -0
- package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
- package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
- 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/SearchSourceFact.d.ts +20 -0
- package/dist/serialization/types/SearchSourceFact.js +52 -0
- package/dist/serialization/types/SearchSourceFilterInfo.d.ts +17 -0
- package/dist/serialization/types/SearchSourceFilterInfo.js +49 -0
- package/dist/serialization/types/SearchSourceType.d.ts +1 -1
- package/dist/serialization/types/SearchSourceType.js +1 -1
- package/dist/serialization/types/SearchV2RetrievalResult.d.ts +16 -0
- package/dist/serialization/types/SearchV2RetrievalResult.js +16 -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 +42 -6
- package/dist/serialization/types/index.js +42 -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/connectors/client/requests/UpdateResourceAclConnectorsRequest.js} +0 -0
- /package/dist/api/{types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js → resources/context/client/requests/ChunksContextRequest.js} +0 -0
|
@@ -20,4 +20,5 @@ export interface TenantsTenantCreateRequest {
|
|
|
20
20
|
tenantId?: string;
|
|
21
21
|
/** deprecated: use database_metadata_schema */
|
|
22
22
|
tenantMetadataSchema?: HydraDB.TenantsCustomPropertyDefinition[];
|
|
23
|
+
type?: HydraDB.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout;
|
|
23
24
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* database: "acme_corp",
|
|
5
|
+
* newName: "new_name"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface TenantsTenantRenameRequest {
|
|
9
|
+
/** Current database identifier */
|
|
10
|
+
database: string;
|
|
11
|
+
/**
|
|
12
|
+
* NewName is the database's new caller-facing name. Same rules as a
|
|
13
|
+
* create-time name (ValidateTenantName).
|
|
14
|
+
*
|
|
15
|
+
* binding:"required" is read by swag, so the published schema lists the
|
|
16
|
+
* field as required and generated SDKs make it a mandatory argument; it is
|
|
17
|
+
* inert at runtime, because the handler decodes through ParseRenameRequest,
|
|
18
|
+
* which rejects a missing or blank new_name itself.
|
|
19
|
+
*/
|
|
20
|
+
newName: string;
|
|
21
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export type { CollectionsDatabasesRequest } from "./CollectionsDatabasesRequest.js";
|
|
2
|
+
export type { DeleteCollectionDatabasesRequest } from "./DeleteCollectionDatabasesRequest.js";
|
|
2
3
|
export type { DeleteDatabasesRequest } from "./DeleteDatabasesRequest.js";
|
|
4
|
+
export type { GetInstructionsDatabasesRequest } from "./GetInstructionsDatabasesRequest.js";
|
|
3
5
|
export type { GetMetadataSchemaDatabasesRequest } from "./GetMetadataSchemaDatabasesRequest.js";
|
|
6
|
+
export type { HandlerInstructionsUpdateReq } from "./HandlerInstructionsUpdateReq.js";
|
|
4
7
|
export type { StatsDatabasesRequest } from "./StatsDatabasesRequest.js";
|
|
5
8
|
export type { StatusDatabasesRequest } from "./StatusDatabasesRequest.js";
|
|
6
9
|
export type { TenantsTenantCreateRequest } from "./TenantsTenantCreateRequest.js";
|
|
7
10
|
export type { TenantsTenantMetadataSchemaUpdateRequest } from "./TenantsTenantMetadataSchemaUpdateRequest.js";
|
|
11
|
+
export type { TenantsTenantRenameRequest } from "./TenantsTenantRenameRequest.js";
|
|
@@ -22,9 +22,7 @@ export declare class FeedbackClient {
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* await client.feedback.submit({
|
|
25
|
-
*
|
|
26
|
-
* "key": "value"
|
|
27
|
-
* }
|
|
25
|
+
* requestId: "9d13aef4-02f4-4e73-8c62-4c2601d04f9d"
|
|
28
26
|
* })
|
|
29
27
|
*/
|
|
30
28
|
submit(request: HydraDB.FeedbackSubmitRequest, requestOptions?: FeedbackClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeFeedbackSubmitResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as HydraDB from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* requestId: "9d13aef4-02f4-4e73-8c62-4c2601d04f9d"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface FeedbackSubmitRequest {
|
|
9
|
+
/** Optional collection scope for this feedback. A collection is scoped to a database, so `database` must be sent alongside it; sending `collection` on its own is rejected. */
|
|
10
|
+
collection?: string;
|
|
11
|
+
/** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
|
|
12
|
+
database?: string;
|
|
13
|
+
/** Free-text comment describing what was right or wrong about the results. Required unless `ground_truth` is supplied. */
|
|
14
|
+
feedback?: string;
|
|
15
|
+
/** What you already know the right answer to be, when you know it. Supply an expected `answer`, the `source_ids` that contain it, or both — at least one is required if the field is present. Machine-checkable, so it is a stronger signal than a comment: submit it alone and `feedback` becomes optional. */
|
|
16
|
+
groundTruth?: HydraDB.FeedbackGroundTruth;
|
|
17
|
+
/** Free-form key-value context stored alongside the feedback (e.g. agent name, conversation or eval-run ID). */
|
|
18
|
+
metadata?: Record<string, string>;
|
|
19
|
+
/** Optional overall judgement: `positive`, `negative`, or `neutral`. Omit to send a comment with no rating. */
|
|
20
|
+
rating?: HydraDB.FeedbackRating;
|
|
21
|
+
/** The `request_id` from `response.meta` of the query this feedback is about. Required — it is what links the feedback to the query that ran. */
|
|
22
|
+
requestId: string;
|
|
23
|
+
/** Who is submitting: `user` (default) or `agent`. */
|
|
24
|
+
source?: HydraDB.FeedbackSource;
|
|
25
|
+
/** deprecated: use collection */
|
|
26
|
+
subTenantId?: string;
|
|
27
|
+
/** deprecated: use database */
|
|
28
|
+
tenantId?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { FeedbackSubmitRequest } from "./FeedbackSubmitRequest.js";
|
|
@@ -5,6 +5,7 @@ export * as context from "./context/index.js";
|
|
|
5
5
|
export * from "./context/types/index.js";
|
|
6
6
|
export * from "./databases/client/requests/index.js";
|
|
7
7
|
export * as databases from "./databases/index.js";
|
|
8
|
+
export * from "./feedback/client/requests/index.js";
|
|
8
9
|
export * as feedback from "./feedback/index.js";
|
|
9
10
|
export * from "./webhooks/client/requests/index.js";
|
|
10
11
|
export * as webhooks from "./webhooks/index.js";
|
|
@@ -44,6 +44,7 @@ exports.context = __importStar(require("./context/index.js"));
|
|
|
44
44
|
__exportStar(require("./context/types/index.js"), exports);
|
|
45
45
|
__exportStar(require("./databases/client/requests/index.js"), exports);
|
|
46
46
|
exports.databases = __importStar(require("./databases/index.js"));
|
|
47
|
+
__exportStar(require("./feedback/client/requests/index.js"), exports);
|
|
47
48
|
exports.feedback = __importStar(require("./feedback/index.js"));
|
|
48
49
|
__exportStar(require("./webhooks/client/requests/index.js"), exports);
|
|
49
50
|
exports.webhooks = __importStar(require("./webhooks/index.js"));
|
|
@@ -124,4 +124,23 @@ export declare class WebhooksClient {
|
|
|
124
124
|
*/
|
|
125
125
|
test(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeWebhooksWebhookTestResponse>;
|
|
126
126
|
private __test;
|
|
127
|
+
/**
|
|
128
|
+
* Ingest a Supabase INSERT/UPDATE/DELETE row change into the graph.
|
|
129
|
+
*
|
|
130
|
+
* @param {HydraDB.PostWebhooksSupabaseRequest} request
|
|
131
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
134
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.webhooks.supabaseRowChangeWebhook({
|
|
138
|
+
* hydraDbConnector: "X-HydraDB-Connector",
|
|
139
|
+
* body: {
|
|
140
|
+
* "key": "value"
|
|
141
|
+
* }
|
|
142
|
+
* })
|
|
143
|
+
*/
|
|
144
|
+
supabaseRowChangeWebhook(request: HydraDB.PostWebhooksSupabaseRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeHandlerSupabaseWebhookAck>;
|
|
145
|
+
private __supabaseRowChangeWebhook;
|
|
127
146
|
}
|
|
@@ -576,5 +576,85 @@ class WebhooksClient {
|
|
|
576
576
|
}
|
|
577
577
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/test");
|
|
578
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* Ingest a Supabase INSERT/UPDATE/DELETE row change into the graph.
|
|
581
|
+
*
|
|
582
|
+
* @param {HydraDB.PostWebhooksSupabaseRequest} request
|
|
583
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
584
|
+
*
|
|
585
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
586
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
587
|
+
*
|
|
588
|
+
* @example
|
|
589
|
+
* await client.webhooks.supabaseRowChangeWebhook({
|
|
590
|
+
* hydraDbConnector: "X-HydraDB-Connector",
|
|
591
|
+
* body: {
|
|
592
|
+
* "key": "value"
|
|
593
|
+
* }
|
|
594
|
+
* })
|
|
595
|
+
*/
|
|
596
|
+
supabaseRowChangeWebhook(request, requestOptions) {
|
|
597
|
+
return core.HttpResponsePromise.fromPromise(this.__supabaseRowChangeWebhook(request, requestOptions));
|
|
598
|
+
}
|
|
599
|
+
async __supabaseRowChangeWebhook(request, requestOptions) {
|
|
600
|
+
const { hydraDbConnector, body: _body } = request;
|
|
601
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
602
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
603
|
+
"X-HydraDB-Connector": hydraDbConnector,
|
|
604
|
+
"API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2",
|
|
605
|
+
}), requestOptions?.headers);
|
|
606
|
+
const _response = await core.fetcher({
|
|
607
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
608
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
609
|
+
environments.HydraDBEnvironment.Default, "webhooks/supabase"),
|
|
610
|
+
method: "POST",
|
|
611
|
+
headers: _headers,
|
|
612
|
+
contentType: "application/json",
|
|
613
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
614
|
+
requestType: "json",
|
|
615
|
+
body: serializers.webhooks.supabaseRowChangeWebhook.Request.jsonOrThrow(_body, {
|
|
616
|
+
unrecognizedObjectKeys: "strip",
|
|
617
|
+
omitUndefined: true,
|
|
618
|
+
}),
|
|
619
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
620
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
621
|
+
abortSignal: requestOptions?.abortSignal,
|
|
622
|
+
fetchFn: this._options?.fetch,
|
|
623
|
+
logging: this._options.logging,
|
|
624
|
+
});
|
|
625
|
+
if (_response.ok) {
|
|
626
|
+
return {
|
|
627
|
+
data: serializers.HandlerEnvelopeHandlerSupabaseWebhookAck.parseOrThrow(_response.body, {
|
|
628
|
+
unrecognizedObjectKeys: "passthrough",
|
|
629
|
+
allowUnrecognizedUnionMembers: true,
|
|
630
|
+
allowUnrecognizedEnumValues: true,
|
|
631
|
+
skipValidation: true,
|
|
632
|
+
breadcrumbsPrefix: ["response"],
|
|
633
|
+
}),
|
|
634
|
+
rawResponse: _response.rawResponse,
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
if (_response.error.reason === "status-code") {
|
|
638
|
+
switch (_response.error.statusCode) {
|
|
639
|
+
case 400:
|
|
640
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
641
|
+
unrecognizedObjectKeys: "passthrough",
|
|
642
|
+
allowUnrecognizedUnionMembers: true,
|
|
643
|
+
allowUnrecognizedEnumValues: true,
|
|
644
|
+
skipValidation: true,
|
|
645
|
+
breadcrumbsPrefix: ["response"],
|
|
646
|
+
}), _response.rawResponse);
|
|
647
|
+
case 404:
|
|
648
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
649
|
+
default:
|
|
650
|
+
throw new errors.HydraDBError({
|
|
651
|
+
statusCode: _response.error.statusCode,
|
|
652
|
+
body: _response.error.body,
|
|
653
|
+
rawResponse: _response.rawResponse,
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/supabase");
|
|
658
|
+
}
|
|
579
659
|
}
|
|
580
660
|
exports.WebhooksClient = WebhooksClient;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* hydraDbConnector: "X-HydraDB-Connector",
|
|
5
|
+
* body: {
|
|
6
|
+
* "key": "value"
|
|
7
|
+
* }
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface PostWebhooksSupabaseRequest {
|
|
11
|
+
/** Connector id */
|
|
12
|
+
hydraDbConnector: string;
|
|
13
|
+
body: Record<string, unknown>;
|
|
14
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { GetDeliveryWebhooksRequest } from "./GetDeliveryWebhooksRequest.js";
|
|
2
2
|
export type { ListDeliveriesWebhooksRequest } from "./ListDeliveriesWebhooksRequest.js";
|
|
3
|
+
export type { PostWebhooksSupabaseRequest } from "./PostWebhooksSupabaseRequest.js";
|
|
3
4
|
export type { RetryDeliveryWebhooksRequest } from "./RetryDeliveryWebhooksRequest.js";
|
|
4
5
|
export type { WebhooksSigningSecretRequest } from "./WebhooksSigningSecretRequest.js";
|
|
5
6
|
export type { WebhooksWebhookRegisterRequest } from "./WebhooksWebhookRegisterRequest.js";
|
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
export interface ConnectorsResource {
|
|
2
|
+
/**
|
|
3
|
+
* ACL is the customer-declared access-control list stamped onto every
|
|
4
|
+
* object synced from this resource (PRO-1684; see internal/domain/acl).
|
|
5
|
+
* Stored in caller-supplied form and normalized at transform time. nil
|
|
6
|
+
* means no ACL, documents stay unrestricted. Provider-derived ACLs
|
|
7
|
+
* (Phase 2) take precedence over this when the provider supports them.
|
|
8
|
+
*/
|
|
9
|
+
acl?: string[];
|
|
10
|
+
/**
|
|
11
|
+
* ACLFingerprint is the stable identity of the ACL last APPLIED to this
|
|
12
|
+
* resource's already-indexed documents (PRO-1684). The sync compares the
|
|
13
|
+
* freshly-resolved provider ACL against it: equal means nothing to do,
|
|
14
|
+
* different means fan the new ACL out to existing documents. Empty means
|
|
15
|
+
* nothing has been applied yet (first capture-enabled sync).
|
|
16
|
+
*/
|
|
17
|
+
aclFingerprint?: string;
|
|
18
|
+
/**
|
|
19
|
+
* ACLWarning explains, in the provider's own words, why this resource's
|
|
20
|
+
* permissions could not be captured. Capture fails OPEN, so the resource
|
|
21
|
+
* is readable by everyone while this is set; without surfacing it, that
|
|
22
|
+
* widening would be invisible to the person who turned RBAC on. Cleared
|
|
23
|
+
* automatically by the next successful capture.
|
|
24
|
+
*/
|
|
25
|
+
aclWarning?: string;
|
|
26
|
+
/**
|
|
27
|
+
* ACLWarningAt is when this warning last CHANGED (RFC3339). An unchanged
|
|
28
|
+
* warning is not rewritten each cycle, so it reads as "open since".
|
|
29
|
+
*/
|
|
30
|
+
aclWarningAt?: string;
|
|
2
31
|
/**
|
|
3
32
|
* AdditionalMetadata is merged into the additional_metadata (document
|
|
4
33
|
* metadata) layer of every object synced from this resource. User-supplied
|
|
@@ -11,6 +40,26 @@ export interface ConnectorsResource {
|
|
|
11
40
|
* time so the scheduler can thread it into each chunk's workflow input.
|
|
12
41
|
*/
|
|
13
42
|
backfillChunkIntervalSeconds?: number;
|
|
43
|
+
/**
|
|
44
|
+
* BackfillFloor is the fixed oldest boundary the historical crawl is working
|
|
45
|
+
* towards, stamped once at configure time as now-lookback_days.
|
|
46
|
+
*
|
|
47
|
+
* It exists because the floor used to be recomputed per chunk from the
|
|
48
|
+
* workflow's own clock, which made it a *moving* target: every hour the
|
|
49
|
+
* crawl was delayed, the boundary advanced an hour with it. A connector
|
|
50
|
+
* paused mid-backfill (PRO-1762) makes that trivially reachable — pause for
|
|
51
|
+
* longer than the crawl has left and it resumes, finds backfill_oldest
|
|
52
|
+
* already at or past the recomputed floor, declares itself complete and
|
|
53
|
+
* clears the marker. The remaining history is never fetched and nothing
|
|
54
|
+
* reports it missing. Anchoring the boundary is what makes "backfill 30
|
|
55
|
+
* days" mean 30 days from when it was asked for, however long the crawl
|
|
56
|
+
* takes.
|
|
57
|
+
*
|
|
58
|
+
* Empty on rows configured before this field existed; the workflow falls
|
|
59
|
+
* back to the old now-relative computation for those, so their behaviour is
|
|
60
|
+
* unchanged rather than silently altered by a deploy.
|
|
61
|
+
*/
|
|
62
|
+
backfillFloor?: string;
|
|
14
63
|
/**
|
|
15
64
|
* BackfillNextChunkAt is the RFC3339 time the next chunk becomes due. The
|
|
16
65
|
* backfill workflow processes one chunk then sets this to now+interval and
|
|
@@ -34,6 +83,14 @@ export interface ConnectorsResource {
|
|
|
34
83
|
collectionOverride?: string;
|
|
35
84
|
/** Connector this resource belongs to. */
|
|
36
85
|
connectorId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* CustomInstructions is optional free-text ingestion guidance scoped to
|
|
88
|
+
* this resource. When set it replaces the connector-level
|
|
89
|
+
* custom_instructions for documents synced from this resource; empty means
|
|
90
|
+
* the resource inherits the connector's value. Max 4000 characters;
|
|
91
|
+
* changes apply from the next sync cycle.
|
|
92
|
+
*/
|
|
93
|
+
customInstructions?: string;
|
|
37
94
|
/**
|
|
38
95
|
* DatabaseOverride/CollectionOverride are the canonical v2 names for the
|
|
39
96
|
* deprecated tenant_id_override/sub_tenant_id_override wire fields. Empty
|
|
@@ -54,6 +111,31 @@ export interface ConnectorsResource {
|
|
|
54
111
|
* system-set fields.
|
|
55
112
|
*/
|
|
56
113
|
metadata?: Record<string, unknown>;
|
|
114
|
+
/**
|
|
115
|
+
* PageACLWarning is the same signal for SOURCE-level failures inside this
|
|
116
|
+
* resource: individual pages whose own restrictions could not be resolved
|
|
117
|
+
* and were therefore opened (Confluence, PRO-1684).
|
|
118
|
+
*
|
|
119
|
+
* A SEPARATE field from ACLWarning on purpose. The two are written by
|
|
120
|
+
* different steps at different points in a sync, and ACLWarning is CLEARED
|
|
121
|
+
* whenever resource capture succeeds. Sharing one field would let a healthy
|
|
122
|
+
* space wipe a live page warning every cycle, leaving a window in which the
|
|
123
|
+
* dashboard reports no problems while pages are still open — a false
|
|
124
|
+
* all-clear on an access-control surface, which is worse than no surface.
|
|
125
|
+
*/
|
|
126
|
+
pageAclWarning?: string;
|
|
127
|
+
/** PageACLWarningAt is when PageACLWarning last CHANGED (RFC3339). */
|
|
128
|
+
pageAclWarningAt?: string;
|
|
129
|
+
/**
|
|
130
|
+
* PageACLWarningRun is the drain run that last observed a page failing open
|
|
131
|
+
* here. It is what makes the warning self-clearing: the drain settles each
|
|
132
|
+
* resource at the END of a cycle, and a stored run that is not the current
|
|
133
|
+
* one means that whole cycle passed with nothing failing, so the warning is
|
|
134
|
+
* withdrawn. Durable on purpose — the alternative was remembering it in the
|
|
135
|
+
* worker, which a restart loses and which has no moment that means "all
|
|
136
|
+
* pages have now been judged".
|
|
137
|
+
*/
|
|
138
|
+
pageAclWarningRun?: string;
|
|
57
139
|
/** Bookmark of the last synced position. Non-empty value confirms the first sync has run. */
|
|
58
140
|
providerCursor?: string;
|
|
59
141
|
/** Additional provider-supplied metadata for this resource. */
|
|
@@ -66,6 +148,25 @@ export interface ConnectorsResource {
|
|
|
66
148
|
status?: string;
|
|
67
149
|
/** Overrides the connector-level collection for objects synced from this resource. */
|
|
68
150
|
subTenantIdOverride?: string;
|
|
151
|
+
/**
|
|
152
|
+
* SyncBlocked marks a resource the provider will go on refusing — a table
|
|
153
|
+
* that was dropped, a channel this credential was never invited to.
|
|
154
|
+
*
|
|
155
|
+
* Deliberately not a Status value. Status gates ListConnectorResources,
|
|
156
|
+
* which is what GET /connectors/{id}/status reads, so expressing this as a
|
|
157
|
+
* status would hide the resource from the one endpoint that explains why it
|
|
158
|
+
* stopped. The resource stays active and visible; this only takes it out of
|
|
159
|
+
* what gets synced.
|
|
160
|
+
*/
|
|
161
|
+
syncBlocked?: boolean;
|
|
162
|
+
/** SyncBlockedAt is when the resource was stopped (RFC3339). */
|
|
163
|
+
syncBlockedAt?: string;
|
|
164
|
+
/**
|
|
165
|
+
* SyncBlockedReason is the provider's own explanation, carried forward from
|
|
166
|
+
* the health that triggered the block so it survives the next sync
|
|
167
|
+
* overwriting that health.
|
|
168
|
+
*/
|
|
169
|
+
syncBlockedReason?: string;
|
|
69
170
|
/** Overrides the connector-level database for objects synced from this resource. Deprecated. */
|
|
70
171
|
tenantIdOverride?: string;
|
|
71
172
|
}
|
package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StorageLayout is the physical storage layout the database is created with
|
|
3
|
+
* (PRO-1618), from the request's `type` field. Absent or "split" keeps the
|
|
4
|
+
* two-collection layout every existing database uses; "unified" is the
|
|
5
|
+
* single-collection layout. Fixed at creation and IMMUTABLE thereafter: the
|
|
6
|
+
* layout decides how every entity id is hashed, so a database that changed
|
|
7
|
+
* its mind would orphan everything already stored.
|
|
8
|
+
*/
|
|
9
|
+
export declare const GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout: {
|
|
10
|
+
readonly Split: "split";
|
|
11
|
+
readonly Unified: "unified";
|
|
12
|
+
};
|
|
13
|
+
export type GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = (typeof GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout)[keyof typeof GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout];
|
package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* StorageLayout is the physical storage layout the database is created with
|
|
7
|
+
* (PRO-1618), from the request's `type` field. Absent or "split" keeps the
|
|
8
|
+
* two-collection layout every existing database uses; "unified" is the
|
|
9
|
+
* single-collection layout. Fixed at creation and IMMUTABLE thereafter: the
|
|
10
|
+
* layout decides how every entity id is hashed, so a database that changed
|
|
11
|
+
* its mind would orphan everything already stored.
|
|
12
|
+
*/
|
|
13
|
+
exports.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = {
|
|
14
|
+
Split: "split",
|
|
15
|
+
Unified: "unified",
|
|
16
|
+
};
|
package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult {
|
|
2
|
+
/**
|
|
3
|
+
* ACLDriftRecorded reports that a failed ACL mirror was durably recorded
|
|
4
|
+
* for reconciliation. Always true when vector_acl_synced is true. False
|
|
5
|
+
* beside acl_updated=true and vector_acl_synced=false is the one state
|
|
6
|
+
* the operator must act on (the error log names the document).
|
|
7
|
+
*/
|
|
8
|
+
aclDriftRecorded?: boolean;
|
|
9
|
+
/** ACLUpdated reports that this edit replaced the source's ACL (PRO-1684). */
|
|
10
|
+
aclUpdated?: boolean;
|
|
2
11
|
/** Additional metadata keys included in the update request. */
|
|
3
12
|
additionalMetadataKeys?: string[];
|
|
4
13
|
/** Number of MongoDB chunk rows matched by the source update. */
|
|
@@ -22,6 +31,12 @@ export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditRe
|
|
|
22
31
|
milvusSyncRequired?: boolean;
|
|
23
32
|
/** deprecated: use vector_synced */
|
|
24
33
|
milvusSynced?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* PartialCommit reports that the edit committed in at least one database
|
|
36
|
+
* of a shared deployment but a later write in another failed; the
|
|
37
|
+
* idempotent retry converges the database that fell behind.
|
|
38
|
+
*/
|
|
39
|
+
partialCommit?: string;
|
|
25
40
|
/** deprecated: use collection */
|
|
26
41
|
subTenantId?: string;
|
|
27
42
|
/** deprecated: use database */
|
|
@@ -30,8 +45,23 @@ export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditRe
|
|
|
30
45
|
tenantMetadataKeys?: string[];
|
|
31
46
|
/** Whether the source metadata was updated. */
|
|
32
47
|
updated?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* VectorACLSynced reports that the ACL edit also reached the vector rows'
|
|
50
|
+
* pushdown columns (PRO-1740). False with ACLUpdated true means the
|
|
51
|
+
* document's own-ACL projection is stale until its next re-index: still
|
|
52
|
+
* enforced correctly from Mongo, but invisible to the pushdown lane for
|
|
53
|
+
* any principal the edit ADDED. Always false for collections created
|
|
54
|
+
* before PRO-1740, which carry no pushdown columns.
|
|
55
|
+
*/
|
|
56
|
+
vectorAclSynced?: boolean;
|
|
33
57
|
/** Number of chunk rows synced to the vector store when sync was required. */
|
|
34
58
|
vectorRowsSynced?: number;
|
|
59
|
+
/**
|
|
60
|
+
* VectorSyncError explains a vector_synced=false when a sync was
|
|
61
|
+
* required: the authority (Mongo) committed, the vector metadata did
|
|
62
|
+
* not follow; the idempotent retry converges it.
|
|
63
|
+
*/
|
|
64
|
+
vectorSyncError?: string;
|
|
35
65
|
/**
|
|
36
66
|
* Vendor-neutral vector-sync signal (PRO-1185): the canonical field must not
|
|
37
67
|
* name the vector store. The milvus_* fields below are deprecated aliases kept
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
export interface GraphEntity {
|
|
2
2
|
/** Unique identifier for this entity in the graph. */
|
|
3
3
|
entityId?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Hydration is set on Source nodes in AuxiliaryRelations only, and omitted
|
|
6
|
+
* everywhere else. RELATES_TO MERGEs its target by source_id, so a target
|
|
7
|
+
* that has not been ingested yet still exists as a node — callers must be
|
|
8
|
+
* able to tell a real document from a forward reference to one.
|
|
9
|
+
*
|
|
10
|
+
* resolved — ingested; source_id and app_provider both present
|
|
11
|
+
* stub — MERGE-created target; source_id present, no app_provider
|
|
12
|
+
* placeholder — source_id IS NULL, keyed by app_external_id, awaiting
|
|
13
|
+
* builder.py's reconciliation pass
|
|
14
|
+
*/
|
|
15
|
+
hydration?: string;
|
|
4
16
|
/** NO omitempty — serialize as null */
|
|
5
17
|
identifier?: string;
|
|
6
18
|
/** Human-readable label for this resource. */
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface GraphGraphRelationsResponse {
|
|
3
|
+
/**
|
|
4
|
+
* AuxiliaryRelations carries the structural graph around the entity
|
|
5
|
+
* relations: Entity->Source presence, Source->Comment/Attachment,
|
|
6
|
+
* Actor->Source/Comment, and Source->Source links. Same item shape as
|
|
7
|
+
* Relations, so a caller wanting one graph concatenates the two.
|
|
8
|
+
*
|
|
9
|
+
* Deliberately a SEPARATE array rather than merged into Relations:
|
|
10
|
+
* capPreservingTies counts triplets against the caller's limit, and
|
|
11
|
+
* computeNextCursor keys on relation timestamps. Auxiliary edges carry
|
|
12
|
+
* created_at — a different clock — so merging them would both shrink the
|
|
13
|
+
* entity relations returned for a given limit and corrupt the cursor.
|
|
14
|
+
*/
|
|
15
|
+
auxiliaryRelations?: HydraDB.GraphTripletWithEvidence[];
|
|
16
|
+
/**
|
|
17
|
+
* AuxiliaryTruncated reports that an aggregate row ceiling clipped the
|
|
18
|
+
* auxiliary graph. Distinct from the per-triplet Truncated flag, which only
|
|
19
|
+
* covers a single node exceeding its fan-out cap: a wide page can blow the
|
|
20
|
+
* aggregate ceiling with every individual node still under its own cap, and
|
|
21
|
+
* without this the caller would receive a subset presented as complete.
|
|
22
|
+
*
|
|
23
|
+
* Independent of IsTruncated, which describes Relations pagination only.
|
|
24
|
+
*/
|
|
25
|
+
auxiliaryTruncated?: boolean;
|
|
3
26
|
/** Whether the response was truncated due to the result limit. */
|
|
4
27
|
isTruncated?: boolean;
|
|
5
28
|
/** Human-readable result message. */
|
|
@@ -13,6 +13,14 @@ export interface GraphRelationEvidence {
|
|
|
13
13
|
relationshipId?: string;
|
|
14
14
|
/** NO omitempty */
|
|
15
15
|
sourceEntityId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Synthesized marks a triplet with no stored edge behind it. Only
|
|
18
|
+
* `present_in` sets it: that edge is derived by collapsing
|
|
19
|
+
* Entity-PRESENT_IN->Chunk-HAS_CHUNK->Source, so its RelationshipID is a
|
|
20
|
+
* deterministic synthetic id rather than a graph relationship id. Omitted
|
|
21
|
+
* (false) on every stored edge.
|
|
22
|
+
*/
|
|
23
|
+
synthesized?: boolean;
|
|
16
24
|
/** NO omitempty */
|
|
17
25
|
targetEntityId?: string;
|
|
18
26
|
/** NO omitempty */
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface GraphSourceSubgraphResponse {
|
|
3
|
+
/**
|
|
4
|
+
* AuxiliaryRelations carries the structural graph around the member
|
|
5
|
+
* sources: Entity->Source presence, Source->Comment/Attachment and
|
|
6
|
+
* Actor->Source/Comment links. Same item shape as Relations, matching
|
|
7
|
+
* GraphRelationsResponse so the dashboard renderer works unchanged.
|
|
8
|
+
*/
|
|
9
|
+
auxiliaryRelations?: HydraDB.GraphTripletWithEvidence[];
|
|
10
|
+
/**
|
|
11
|
+
* AuxiliaryTruncated reports that a fetch ceiling clipped the auxiliary
|
|
12
|
+
* graph, same contract as GraphRelationsResponse.AuxiliaryTruncated.
|
|
13
|
+
*/
|
|
14
|
+
auxiliaryTruncated?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* IsTruncated reports that the traversal stopped before exhausting the
|
|
17
|
+
* connected component: the source budget or an edge/expansion fetch cap
|
|
18
|
+
* was hit, or the depth limit left an unexpanded frontier.
|
|
19
|
+
*/
|
|
20
|
+
isTruncated?: boolean;
|
|
21
|
+
/** MaxDepthReached is the deepest BFS level that admitted a member. */
|
|
22
|
+
maxDepthReached?: number;
|
|
23
|
+
/** Human-readable result message. */
|
|
24
|
+
message?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Relations holds the Source->Source triplets: every RELATES_TO edge whose
|
|
27
|
+
* endpoints are both members, plus synthesized same_thread / child_of
|
|
28
|
+
* provenance edges for members reached through a node property rather than
|
|
29
|
+
* a stored edge (those carry Synthesized on their evidence).
|
|
30
|
+
*/
|
|
31
|
+
relations?: HydraDB.GraphTripletWithEvidence[];
|
|
32
|
+
seedSourceId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Sources is every member of the subgraph in BFS discovery order, seed
|
|
35
|
+
* first.
|
|
36
|
+
*/
|
|
37
|
+
sources?: HydraDB.GraphSubgraphSource[];
|
|
38
|
+
/** Whether the request succeeded. */
|
|
39
|
+
success?: boolean;
|
|
40
|
+
}
|