@hydradb/sdk 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.d.ts +5 -2
- package/dist/Client.js +9 -11
- package/dist/api/client/requests/SearchQueryRequest.d.ts +32 -0
- package/dist/api/errors/ConflictError.d.ts +1 -2
- package/dist/api/errors/InternalServerError.d.ts +1 -2
- package/dist/api/resources/connectors/client/Client.d.ts +68 -14
- package/dist/api/resources/connectors/client/Client.js +239 -94
- package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +8 -0
- package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +7 -7
- package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +20 -0
- package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +14 -2
- package/dist/api/resources/connectors/client/requests/StatusConnectorsRequest.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 +3 -0
- package/dist/api/resources/context/client/Client.d.ts +38 -2
- package/dist/api/resources/context/client/Client.js +125 -13
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +18 -4
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +3 -0
- package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +10 -0
- package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
- package/dist/api/resources/context/client/requests/index.d.ts +1 -0
- package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +5 -0
- package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.js +8 -0
- package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +5 -0
- package/dist/api/resources/context/types/SubgraphContextRequestType.js +8 -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 +17 -0
- package/dist/api/resources/databases/client/Client.js +75 -58
- package/dist/api/resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/Client.d.ts +32 -0
- package/dist/api/resources/feedback/client/Client.js +129 -0
- package/dist/api/resources/feedback/client/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/index.js +2 -0
- package/dist/api/resources/feedback/exports.d.ts +2 -0
- package/dist/api/resources/feedback/exports.js +21 -0
- package/dist/api/resources/feedback/index.d.ts +1 -0
- package/dist/api/resources/feedback/index.js +17 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +46 -1
- package/dist/api/resources/webhooks/client/Client.js +207 -1
- package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +8 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +3 -1
- package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/api/types/ConnectorsResource.d.ts +43 -0
- package/dist/api/types/FeedbackGroundTruth.d.ts +12 -0
- package/dist/api/types/FeedbackGroundTruth.js +3 -0
- package/dist/api/types/FeedbackRating.d.ts +6 -0
- package/dist/api/types/FeedbackRating.js +9 -0
- package/dist/api/types/FeedbackSource.d.ts +5 -0
- package/dist/api/types/FeedbackSource.js +8 -0
- package/dist/api/types/FeedbackSubmitRequest.d.ts +2 -0
- package/dist/api/types/FeedbackSubmitRequest.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +3 -0
- package/dist/api/types/FeedbackSubmitRequestFeedback.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +4 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruth.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +2 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +3 -0
- package/dist/api/types/FeedbackSubmitResponse.d.ts +12 -0
- package/dist/api/types/FeedbackSubmitResponse.js +3 -0
- package/dist/api/types/FetchV2SourceFetchResponse.d.ts +7 -1
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +36 -2
- package/dist/api/types/GraphEntity.d.ts +12 -0
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +30 -1
- 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 +26 -0
- package/dist/api/types/HandlerCatalogConnector.js +3 -0
- package/dist/api/types/HandlerConfigureResponse.d.ts +24 -0
- package/dist/api/types/HandlerConfigureResponse.js +3 -0
- package/dist/api/types/HandlerConfigureResponseMeta.d.ts +4 -0
- package/dist/api/types/HandlerConfigureResponseMeta.js +3 -0
- package/dist/api/types/HandlerConnectorApiView.d.ts +139 -0
- package/dist/api/types/HandlerConnectorApiView.js +3 -0
- package/dist/api/types/HandlerConnectorCatalogResponse.d.ts +4 -0
- package/dist/api/types/HandlerConnectorCatalogResponse.js +3 -0
- package/dist/api/types/HandlerConnectorCreateResponse.d.ts +143 -0
- package/dist/api/types/HandlerConnectorCreateResponse.js +3 -0
- package/dist/api/types/HandlerConnectorDeleteResponse.d.ts +6 -0
- package/dist/api/types/HandlerConnectorDeleteResponse.js +3 -0
- package/dist/api/types/HandlerConnectorListResponse.d.ts +11 -0
- package/dist/api/types/HandlerConnectorListResponse.js +3 -0
- package/dist/api/types/HandlerConnectorResourceStatus.d.ts +37 -0
- package/dist/api/types/HandlerConnectorResourceStatus.js +3 -0
- package/dist/api/types/HandlerConnectorResourcesResponse.d.ts +4 -0
- package/dist/api/types/HandlerConnectorResourcesResponse.js +3 -0
- package/dist/api/types/HandlerConnectorStatusError.d.ts +19 -0
- package/dist/api/types/HandlerConnectorStatusError.js +3 -0
- package/dist/api/types/HandlerConnectorStatusResponse.d.ts +37 -0
- package/dist/api/types/HandlerConnectorStatusResponse.js +3 -0
- package/dist/api/types/HandlerConnectorSyncResponse.d.ts +4 -0
- package/dist/api/types/HandlerConnectorSyncResponse.js +3 -0
- package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +22 -0
- package/dist/api/types/HandlerConnectorUpdateResponse.js +3 -0
- package/dist/api/types/HandlerCredentialsUpdateResponse.d.ts +6 -0
- package/dist/api/types/HandlerCredentialsUpdateResponse.js +3 -0
- package/dist/api/types/HandlerDiscoverResponseBody.d.ts +9 -0
- package/dist/api/types/HandlerDiscoverResponseBody.js +3 -0
- package/dist/api/types/HandlerDiscoveredResourceDto.d.ts +9 -0
- package/dist/api/types/HandlerDiscoveredResourceDto.js +3 -0
- package/dist/api/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +2 -2
- package/dist/api/types/HandlerEnvelopeFeedbackSubmitResponse.js +3 -0
- package/dist/api/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts → HandlerEnvelopeGraphSourceSubgraphResponse.d.ts} +2 -2
- 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/HandlerEnvelopeIngestionV2IngestResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2IngestResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeListV2ListResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeListV2ListResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +3 -0
- package/dist/api/types/HandlerErrorDetail.d.ts +8 -1
- package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +10 -0
- package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +3 -0
- package/dist/api/types/HandlerProviderListResponse.d.ts +4 -0
- package/dist/api/types/HandlerProviderListResponse.js +3 -0
- package/dist/api/types/HandlerResourceDeleteResponse.d.ts +8 -0
- package/dist/api/types/HandlerResourceDeleteResponse.js +3 -0
- package/dist/api/types/HandlerResourceMapping.d.ts +25 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.d.ts +14 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.js +17 -0
- package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
- package/dist/api/types/HandlerSupabaseWebhookAck.js +3 -0
- package/dist/api/types/HandlerTableConfigEntry.d.ts +5 -0
- package/dist/api/types/HandlerTableConfigEntry.js +3 -0
- package/dist/api/types/IngestionSourceStatus.d.ts +4 -0
- package/dist/api/types/IngestionSourceStatus.js +4 -0
- package/dist/api/types/IngestionV2IngestResponse.d.ts +21 -0
- package/dist/api/types/IngestionV2IngestResponse.js +3 -0
- package/dist/api/types/IngestionV2IngestResultItem.d.ts +30 -0
- package/dist/api/types/IngestionV2IngestResultItem.js +3 -0
- package/dist/api/types/IngestionV2ProcessingStatus.d.ts +9 -1
- package/dist/api/types/ListContentFilter.d.ts +8 -2
- package/dist/api/types/ListV2ListResponse.d.ts +23 -0
- package/dist/api/types/ListV2ListResponse.js +3 -0
- package/dist/api/types/ListV2MemoryItem.d.ts +66 -0
- package/dist/api/types/ListV2MemoryItem.js +3 -0
- package/dist/api/types/ListV2SourceItem.d.ts +70 -0
- package/dist/api/types/ListV2SourceItem.js +3 -0
- package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
- 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/SearchSourceInfo.d.ts +3 -1
- package/dist/api/types/SearchTemporalDuration.d.ts +24 -0
- package/dist/api/types/SearchTemporalDuration.js +3 -0
- package/dist/api/types/SearchTemporalFact.d.ts +25 -0
- package/dist/api/types/SearchTemporalFact.js +3 -0
- package/dist/api/types/SearchTemporalFilterInfo.d.ts +27 -0
- package/dist/api/types/SearchTemporalFilterInfo.js +3 -0
- package/dist/api/types/SearchTemporalIntentOverride.d.ts +14 -0
- package/dist/api/types/SearchTemporalIntentOverride.js +3 -0
- package/dist/api/types/SearchV2Chunk.d.ts +3 -1
- package/dist/api/types/SearchV2RetrievalResult.d.ts +13 -0
- package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +9 -1
- package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +0 -2
- package/dist/api/types/TenantsInfraV2.d.ts +2 -2
- package/dist/api/types/TenantsTenantMetadataSchemaResponse.d.ts +7 -0
- package/dist/api/types/TenantsTenantMetadataSchemaResponse.js +3 -0
- package/dist/api/types/WebhooksDeliveryItem.d.ts +6 -0
- package/dist/api/types/WebhooksSigningSecretResponse.d.ts +8 -0
- package/dist/api/types/WebhooksSigningSecretResponse.js +3 -0
- package/dist/api/types/WebhooksWebhookRegisterResponse.d.ts +2 -0
- package/dist/api/types/index.d.ts +55 -7
- package/dist/api/types/index.js +55 -7
- package/dist/helpers/buildString.js +140 -16
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +6 -1
- package/dist/helpers/verifyWebhook.d.ts +31 -0
- package/dist/helpers/verifyWebhook.js +56 -0
- package/dist/serialization/client/index.d.ts +0 -2
- package/dist/serialization/client/index.js +0 -25
- 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/index.d.ts +2 -9
- package/dist/serialization/resources/connectors/client/index.js +6 -13
- package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +2 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.js +2 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +11 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +43 -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/index.d.ts +1 -0
- package/dist/serialization/resources/connectors/client/requests/index.js +3 -1
- package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/{deleteResource.js → rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.js} +2 -2
- package/dist/serialization/resources/connectors/client/{rotateAConnectorsStoredOAuthRefreshToken.d.ts → updateResourceAcl.d.ts} +2 -2
- 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 +2 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +2 -0
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +1 -1
- package/dist/serialization/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +7 -0
- package/dist/serialization/resources/{connectors/client/delete.js → context/types/DeleteContextRequestXHydraDbDeleteStatus.js} +2 -2
- package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
- package/dist/serialization/resources/{connectors/client/configure.js → context/types/SubgraphContextRequestType.js} +2 -2
- 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/webhooks/client/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/index.js +24 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +9 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.js +41 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.js +1 -0
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/index.js +3 -1
- package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
- package/dist/serialization/resources/{connectors/client/discover.js → webhooks/client/supabaseRowChangeWebhook.js} +2 -2
- package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
- package/dist/serialization/types/ConnectorsResource.js +6 -0
- package/dist/serialization/types/FeedbackGroundTruth.d.ts +10 -0
- package/dist/serialization/types/FeedbackGroundTruth.js +42 -0
- package/dist/serialization/types/FeedbackRating.d.ts +7 -0
- package/dist/serialization/{client/catalog.js → types/FeedbackRating.js} +2 -2
- package/dist/serialization/types/FeedbackSource.d.ts +7 -0
- package/dist/serialization/{client/listProviders.js → types/FeedbackSource.js} +2 -2
- package/dist/serialization/types/FeedbackSubmitRequest.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequest.js +41 -0
- package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequestFeedback.js +41 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +10 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.js +42 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +44 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +9 -0
- package/dist/serialization/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js} +3 -4
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +41 -0
- package/dist/serialization/types/FeedbackSubmitResponse.d.ts +13 -0
- package/dist/serialization/types/FeedbackSubmitResponse.js +45 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +7 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +7 -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 +18 -0
- package/dist/serialization/types/HandlerCatalogConnector.js +50 -0
- package/dist/serialization/types/HandlerConfigureResponse.d.ts +16 -0
- package/dist/serialization/types/HandlerConfigureResponse.js +48 -0
- package/dist/serialization/types/HandlerConfigureResponseMeta.d.ts +10 -0
- package/dist/serialization/types/HandlerConfigureResponseMeta.js +42 -0
- package/dist/serialization/types/{ConnectorsConnector.d.ts → HandlerConnectorApiView.d.ts} +16 -7
- package/dist/serialization/types/{ConnectorsConnector.js → HandlerConnectorApiView.js} +16 -7
- package/dist/serialization/types/HandlerConnectorCatalogResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorCatalogResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +41 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.js +73 -0
- package/dist/serialization/types/HandlerConnectorDeleteResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorDeleteResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorListResponse.d.ts +11 -0
- package/dist/serialization/types/HandlerConnectorListResponse.js +43 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +20 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.js +52 -0
- package/dist/serialization/types/HandlerConnectorResourcesResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorResourcesResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorStatusError.d.ts +12 -0
- package/dist/serialization/types/HandlerConnectorStatusError.js +44 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +20 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.js +52 -0
- package/dist/serialization/types/HandlerConnectorSyncResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorSyncResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.js +47 -0
- package/dist/serialization/types/HandlerCredentialsUpdateResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerCredentialsUpdateResponse.js +42 -0
- package/dist/serialization/types/HandlerDiscoverResponseBody.d.ts +13 -0
- package/dist/serialization/types/HandlerDiscoverResponseBody.js +45 -0
- package/dist/serialization/types/HandlerDiscoveredResourceDto.d.ts +12 -0
- package/dist/serialization/types/HandlerDiscoveredResourceDto.js +44 -0
- package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +4 -4
- package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.js → HandlerEnvelopeFeedbackSubmitResponse.js} +4 -4
- 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/HandlerEnvelopeIngestionV2IngestResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeListV2ListResponse.d.ts +15 -0
- package/dist/serialization/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.js → HandlerEnvelopeListV2ListResponse.js} +4 -4
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +47 -0
- package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +17 -0
- package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +49 -0
- package/dist/serialization/types/HandlerProviderListResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerProviderListResponse.js +42 -0
- package/dist/serialization/types/HandlerResourceDeleteResponse.d.ts +11 -0
- package/dist/serialization/types/HandlerResourceDeleteResponse.js +43 -0
- package/dist/serialization/types/HandlerResourceMapping.d.ts +4 -0
- package/dist/serialization/types/HandlerResourceMapping.js +4 -0
- package/dist/serialization/types/HandlerResourceMappingSyncMode.d.ts +7 -0
- package/dist/serialization/types/HandlerResourceMappingSyncMode.js +39 -0
- package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
- package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
- package/dist/serialization/types/HandlerTableConfigEntry.d.ts +11 -0
- package/dist/serialization/types/HandlerTableConfigEntry.js +43 -0
- package/dist/serialization/types/IngestionV2IngestResponse.d.ts +14 -0
- package/dist/serialization/types/{IngestionV2SourceUploadResponse.js → IngestionV2IngestResponse.js} +4 -4
- package/dist/serialization/types/{IngestionV2SourceUploadResultItem.d.ts → IngestionV2IngestResultItem.d.ts} +4 -2
- package/dist/serialization/types/{IngestionV2SourceUploadResultItem.js → IngestionV2IngestResultItem.js} +4 -2
- package/dist/serialization/types/ListV2ListResponse.d.ts +17 -0
- package/dist/serialization/types/{ListSourceListResponse.js → ListV2ListResponse.js} +6 -5
- package/dist/serialization/types/ListV2MemoryItem.d.ts +29 -0
- package/dist/serialization/types/ListV2MemoryItem.js +63 -0
- package/dist/serialization/types/ListV2SourceItem.d.ts +29 -0
- package/dist/serialization/types/ListV2SourceItem.js +63 -0
- 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/SearchSourceInfo.d.ts +1 -0
- package/dist/serialization/types/SearchSourceInfo.js +1 -0
- package/dist/serialization/types/SearchTemporalDuration.d.ts +16 -0
- package/dist/serialization/types/SearchTemporalDuration.js +48 -0
- package/dist/serialization/types/SearchTemporalFact.d.ts +20 -0
- package/dist/serialization/types/SearchTemporalFact.js +52 -0
- package/dist/serialization/types/SearchTemporalFilterInfo.d.ts +16 -0
- package/dist/serialization/types/SearchTemporalFilterInfo.js +48 -0
- package/dist/serialization/types/SearchTemporalIntentOverride.d.ts +14 -0
- package/dist/serialization/types/SearchTemporalIntentOverride.js +46 -0
- package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
- package/dist/serialization/types/SearchV2Chunk.js +1 -0
- package/dist/serialization/types/SearchV2RetrievalResult.d.ts +10 -0
- package/dist/serialization/types/SearchV2RetrievalResult.js +10 -0
- package/dist/serialization/types/TenantsCustomPropertyDefinition.d.ts +0 -1
- package/dist/serialization/types/TenantsCustomPropertyDefinition.js +0 -1
- package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.d.ts +12 -0
- package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.js +44 -0
- package/dist/serialization/types/WebhooksDeliveryItem.d.ts +1 -0
- package/dist/serialization/types/WebhooksDeliveryItem.js +1 -0
- package/dist/serialization/types/WebhooksSigningSecretResponse.d.ts +11 -0
- package/dist/serialization/types/WebhooksSigningSecretResponse.js +43 -0
- package/dist/serialization/types/WebhooksWebhookRegisterResponse.d.ts +1 -0
- package/dist/serialization/types/WebhooksWebhookRegisterResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +55 -7
- package/dist/serialization/types/index.js +55 -7
- package/package.json +1 -1
- package/dist/api/types/ConnectorsConnector.d.ts +0 -58
- package/dist/api/types/IngestionV2SourceUploadResponse.d.ts +0 -13
- package/dist/api/types/IngestionV2SourceUploadResultItem.d.ts +0 -17
- package/dist/api/types/ListSourceListResponse.d.ts +0 -12
- package/dist/api/types/ListV2SourceListResponse.d.ts +0 -4
- package/dist/serialization/client/catalog.d.ts +0 -6
- package/dist/serialization/client/listProviders.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/configure.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/delete.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/deleteResource.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/discover.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/discoverPreview.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/discoverPreview.js +0 -39
- package/dist/serialization/resources/connectors/client/list.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/list.js +0 -39
- package/dist/serialization/resources/connectors/client/listResources.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/listResources.js +0 -39
- package/dist/serialization/resources/connectors/client/sync.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/sync.js +0 -39
- package/dist/serialization/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +0 -15
- package/dist/serialization/types/IngestionV2SourceUploadResponse.d.ts +0 -14
- package/dist/serialization/types/ListSourceListResponse.d.ts +0 -14
- package/dist/serialization/types/ListV2SourceListResponse.d.ts +0 -10
- /package/dist/api/{types/ConnectorsConnector.js → resources/connectors/client/requests/HandlerConnectorUpdateReq.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeIngestionV2SourceUploadResponse.js → resources/connectors/client/requests/StatusConnectorsRequest.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeListV2SourceListResponse.js → resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.js} +0 -0
- /package/dist/api/{types/IngestionV2SourceUploadResponse.js → resources/context/client/requests/SubgraphContextRequest.js} +0 -0
- /package/dist/api/{types/IngestionV2SourceUploadResultItem.js → resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.js} +0 -0
- /package/dist/api/{types/ListSourceListResponse.js → resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js} +0 -0
- /package/dist/api/{types/ListV2SourceListResponse.js → resources/webhooks/client/requests/WebhooksSigningSecretRequest.js} +0 -0
- /package/dist/serialization/resources/connectors/client/{rotateAConnectorsStoredOAuthRefreshToken.js → updateResourceAcl.js} +0 -0
|
@@ -96,7 +96,7 @@ class WebhooksClient {
|
|
|
96
96
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing");
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
|
-
* Register the indexing webhook for this API key's org.
|
|
99
|
+
* Register the indexing webhook for this API key's org. Set `generate_signing_secret` to register and enable signing in one request; the secret is returned once on the response. Omitting `signing_secret` preserves any secret already configured - to disable signing, call DELETE /webhooks/indexing/signing-secret.
|
|
100
100
|
*
|
|
101
101
|
* @param {HydraDB.WebhooksWebhookRegisterRequest} request
|
|
102
102
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -395,6 +395,132 @@ class WebhooksClient {
|
|
|
395
395
|
}
|
|
396
396
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/deliveries/{delivery_id}/retry");
|
|
397
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* Generates a signing secret, or stores one you supply. The plaintext is returned exactly once and cannot be retrieved afterwards. Takes effect immediately, so rotate only once your receiver accepts the new secret.
|
|
400
|
+
*
|
|
401
|
+
* @param {HydraDB.WebhooksSigningSecretRequest} request
|
|
402
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
403
|
+
*
|
|
404
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
405
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* await client.webhooks.setSigningSecret()
|
|
409
|
+
*/
|
|
410
|
+
setSigningSecret(request = {}, requestOptions) {
|
|
411
|
+
return core.HttpResponsePromise.fromPromise(this.__setSigningSecret(request, requestOptions));
|
|
412
|
+
}
|
|
413
|
+
async __setSigningSecret(request = {}, requestOptions) {
|
|
414
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
415
|
+
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);
|
|
416
|
+
const _response = await core.fetcher({
|
|
417
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
418
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
419
|
+
environments.HydraDBEnvironment.Default, "webhooks/indexing/signing-secret"),
|
|
420
|
+
method: "POST",
|
|
421
|
+
headers: _headers,
|
|
422
|
+
contentType: "application/json",
|
|
423
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
424
|
+
requestType: "json",
|
|
425
|
+
body: serializers.WebhooksSigningSecretRequest.jsonOrThrow(request, {
|
|
426
|
+
unrecognizedObjectKeys: "strip",
|
|
427
|
+
omitUndefined: true,
|
|
428
|
+
}),
|
|
429
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
430
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
431
|
+
abortSignal: requestOptions?.abortSignal,
|
|
432
|
+
fetchFn: this._options?.fetch,
|
|
433
|
+
logging: this._options.logging,
|
|
434
|
+
});
|
|
435
|
+
if (_response.ok) {
|
|
436
|
+
return {
|
|
437
|
+
data: serializers.HandlerEnvelopeWebhooksSigningSecretResponse.parseOrThrow(_response.body, {
|
|
438
|
+
unrecognizedObjectKeys: "passthrough",
|
|
439
|
+
allowUnrecognizedUnionMembers: true,
|
|
440
|
+
allowUnrecognizedEnumValues: true,
|
|
441
|
+
skipValidation: true,
|
|
442
|
+
breadcrumbsPrefix: ["response"],
|
|
443
|
+
}),
|
|
444
|
+
rawResponse: _response.rawResponse,
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
if (_response.error.reason === "status-code") {
|
|
448
|
+
switch (_response.error.statusCode) {
|
|
449
|
+
case 404:
|
|
450
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
451
|
+
case 422:
|
|
452
|
+
throw new HydraDB.UnprocessableEntityError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
453
|
+
unrecognizedObjectKeys: "passthrough",
|
|
454
|
+
allowUnrecognizedUnionMembers: true,
|
|
455
|
+
allowUnrecognizedEnumValues: true,
|
|
456
|
+
skipValidation: true,
|
|
457
|
+
breadcrumbsPrefix: ["response"],
|
|
458
|
+
}), _response.rawResponse);
|
|
459
|
+
default:
|
|
460
|
+
throw new errors.HydraDBError({
|
|
461
|
+
statusCode: _response.error.statusCode,
|
|
462
|
+
body: _response.error.body,
|
|
463
|
+
rawResponse: _response.rawResponse,
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/signing-secret");
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Removes the stored signing secret. Deliveries stop carrying the X-HydraDB-Signature header. This is the only way to disable signing - editing a registration never clears the secret.
|
|
471
|
+
*
|
|
472
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
473
|
+
*
|
|
474
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
475
|
+
*
|
|
476
|
+
* @example
|
|
477
|
+
* await client.webhooks.clearSigningSecret()
|
|
478
|
+
*/
|
|
479
|
+
clearSigningSecret(requestOptions) {
|
|
480
|
+
return core.HttpResponsePromise.fromPromise(this.__clearSigningSecret(requestOptions));
|
|
481
|
+
}
|
|
482
|
+
async __clearSigningSecret(requestOptions) {
|
|
483
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
484
|
+
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);
|
|
485
|
+
const _response = await core.fetcher({
|
|
486
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
487
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
488
|
+
environments.HydraDBEnvironment.Default, "webhooks/indexing/signing-secret"),
|
|
489
|
+
method: "DELETE",
|
|
490
|
+
headers: _headers,
|
|
491
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
492
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
493
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
494
|
+
abortSignal: requestOptions?.abortSignal,
|
|
495
|
+
fetchFn: this._options?.fetch,
|
|
496
|
+
logging: this._options.logging,
|
|
497
|
+
});
|
|
498
|
+
if (_response.ok) {
|
|
499
|
+
return {
|
|
500
|
+
data: serializers.HandlerEnvelopeWebhooksWebhookRegisterResponse.parseOrThrow(_response.body, {
|
|
501
|
+
unrecognizedObjectKeys: "passthrough",
|
|
502
|
+
allowUnrecognizedUnionMembers: true,
|
|
503
|
+
allowUnrecognizedEnumValues: true,
|
|
504
|
+
skipValidation: true,
|
|
505
|
+
breadcrumbsPrefix: ["response"],
|
|
506
|
+
}),
|
|
507
|
+
rawResponse: _response.rawResponse,
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
if (_response.error.reason === "status-code") {
|
|
511
|
+
switch (_response.error.statusCode) {
|
|
512
|
+
case 404:
|
|
513
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
514
|
+
default:
|
|
515
|
+
throw new errors.HydraDBError({
|
|
516
|
+
statusCode: _response.error.statusCode,
|
|
517
|
+
body: _response.error.body,
|
|
518
|
+
rawResponse: _response.rawResponse,
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/webhooks/indexing/signing-secret");
|
|
523
|
+
}
|
|
398
524
|
/**
|
|
399
525
|
* Send a test webhook event to the registered endpoint to verify connectivity.
|
|
400
526
|
*
|
|
@@ -450,5 +576,85 @@ class WebhooksClient {
|
|
|
450
576
|
}
|
|
451
577
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/test");
|
|
452
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
|
+
}
|
|
453
659
|
}
|
|
454
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface WebhooksSigningSecretRequest {
|
|
6
|
+
/** Secret used to sign webhook payloads. Deliveries carry `X-HydraDB-Signature: sha256=<hex>`, the HMAC-SHA256 of the raw request body keyed by this secret. Minimum 16 characters when you supply your own; omit it and one is generated for you. On registration, omitting this field preserves any existing secret - to disable signing, call DELETE /webhooks/indexing/signing-secret. */
|
|
7
|
+
signingSecret?: string;
|
|
8
|
+
}
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
export interface WebhooksWebhookRegisterRequest {
|
|
6
6
|
/** Event types to subscribe to (e.g. `["indexing.status_changed"]`). */
|
|
7
7
|
eventTypes?: string[];
|
|
8
|
-
/**
|
|
8
|
+
/** Generate a signing secret as part of this request, so registering and enabling signing are one atomic operation. The secret is returned once on the response and cannot be retrieved later. Mutually exclusive with `signing_secret`. */
|
|
9
|
+
generateSigningSecret?: boolean;
|
|
10
|
+
/** Secret used to sign webhook payloads. Deliveries carry `X-HydraDB-Signature: sha256=<hex>`, the HMAC-SHA256 of the raw request body keyed by this secret. Minimum 16 characters when you supply your own; omit it and one is generated for you. On registration, omitting this field preserves any existing secret - to disable signing, call DELETE /webhooks/indexing/signing-secret. */
|
|
9
11
|
signingSecret?: string;
|
|
10
12
|
/** Endpoint URL to deliver webhook events to. */
|
|
11
13
|
url?: string;
|
|
@@ -1,4 +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";
|
|
5
|
+
export type { WebhooksSigningSecretRequest } from "./WebhooksSigningSecretRequest.js";
|
|
4
6
|
export type { WebhooksWebhookRegisterRequest } from "./WebhooksWebhookRegisterRequest.js";
|
|
@@ -1,4 +1,20 @@
|
|
|
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;
|
|
2
18
|
/**
|
|
3
19
|
* AdditionalMetadata is merged into the additional_metadata (document
|
|
4
20
|
* metadata) layer of every object synced from this resource. User-supplied
|
|
@@ -34,6 +50,14 @@ export interface ConnectorsResource {
|
|
|
34
50
|
collectionOverride?: string;
|
|
35
51
|
/** Connector this resource belongs to. */
|
|
36
52
|
connectorId?: string;
|
|
53
|
+
/**
|
|
54
|
+
* CustomInstructions is optional free-text ingestion guidance scoped to
|
|
55
|
+
* this resource. When set it replaces the connector-level
|
|
56
|
+
* custom_instructions for documents synced from this resource; empty means
|
|
57
|
+
* the resource inherits the connector's value. Max 4000 characters;
|
|
58
|
+
* changes apply from the next sync cycle.
|
|
59
|
+
*/
|
|
60
|
+
customInstructions?: string;
|
|
37
61
|
/**
|
|
38
62
|
* DatabaseOverride/CollectionOverride are the canonical v2 names for the
|
|
39
63
|
* deprecated tenant_id_override/sub_tenant_id_override wire fields. Empty
|
|
@@ -66,6 +90,25 @@ export interface ConnectorsResource {
|
|
|
66
90
|
status?: string;
|
|
67
91
|
/** Overrides the connector-level collection for objects synced from this resource. */
|
|
68
92
|
subTenantIdOverride?: string;
|
|
93
|
+
/**
|
|
94
|
+
* SyncBlocked marks a resource the provider will go on refusing — a table
|
|
95
|
+
* that was dropped, a channel this credential was never invited to.
|
|
96
|
+
*
|
|
97
|
+
* Deliberately not a Status value. Status gates ListConnectorResources,
|
|
98
|
+
* which is what GET /connectors/{id}/status reads, so expressing this as a
|
|
99
|
+
* status would hide the resource from the one endpoint that explains why it
|
|
100
|
+
* stopped. The resource stays active and visible; this only takes it out of
|
|
101
|
+
* what gets synced.
|
|
102
|
+
*/
|
|
103
|
+
syncBlocked?: boolean;
|
|
104
|
+
/** SyncBlockedAt is when the resource was stopped (RFC3339). */
|
|
105
|
+
syncBlockedAt?: string;
|
|
106
|
+
/**
|
|
107
|
+
* SyncBlockedReason is the provider's own explanation, carried forward from
|
|
108
|
+
* the health that triggered the block so it survives the next sync
|
|
109
|
+
* overwriting that health.
|
|
110
|
+
*/
|
|
111
|
+
syncBlockedReason?: string;
|
|
69
112
|
/** Overrides the connector-level database for objects synced from this resource. Deprecated. */
|
|
70
113
|
tenantIdOverride?: string;
|
|
71
114
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FeedbackGroundTruth {
|
|
2
|
+
/**
|
|
3
|
+
* Answer is the response the caller expected — the text a correct system
|
|
4
|
+
* would have produced from the retrieved context.
|
|
5
|
+
*/
|
|
6
|
+
answer?: string;
|
|
7
|
+
/**
|
|
8
|
+
* SourceIDs are the ingested source IDs that actually contain the answer,
|
|
9
|
+
* as returned in query results and accepted by /context endpoints.
|
|
10
|
+
*/
|
|
11
|
+
sourceIds?: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FeedbackRating = void 0;
|
|
5
|
+
exports.FeedbackRating = {
|
|
6
|
+
Positive: "positive",
|
|
7
|
+
Negative: "negative",
|
|
8
|
+
Neutral: "neutral",
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FeedbackSubmitResponse {
|
|
2
|
+
/** RFC3339 timestamp when the feedback was recorded. */
|
|
3
|
+
createdAt?: string;
|
|
4
|
+
/** Unique identifier assigned to this feedback submission. */
|
|
5
|
+
feedbackId?: string;
|
|
6
|
+
/** Human-readable result message. */
|
|
7
|
+
message?: string;
|
|
8
|
+
/** Whether the feedback was durably stored. */
|
|
9
|
+
recorded?: boolean;
|
|
10
|
+
/** The query request ID this feedback was recorded against. */
|
|
11
|
+
requestId?: string;
|
|
12
|
+
}
|
|
@@ -17,6 +17,12 @@ export interface FetchV2SourceFetchResponse {
|
|
|
17
17
|
presignedUrl?: string;
|
|
18
18
|
/** File size in bytes. */
|
|
19
19
|
sizeBytes?: number;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Deprecated for API clients: to decide whether the request succeeded,
|
|
22
|
+
* check the HTTP status code — 2xx is success — or equivalently the
|
|
23
|
+
* envelope's top-level `success`. This nested copy always carries the same
|
|
24
|
+
* value as that flag and never carries independent information. Still
|
|
25
|
+
* emitted unchanged for existing clients (PRO-1208).
|
|
26
|
+
*/
|
|
21
27
|
success?: boolean;
|
|
22
28
|
}
|
package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
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. */
|
|
5
14
|
chunkRowsMatched?: number;
|
|
6
15
|
/** Number of MongoDB chunk rows modified by the source update. */
|
|
7
16
|
chunkRowsModified?: number;
|
|
17
|
+
/** Collection that contained the source. Canonical name; mirrors the deprecated `sub_tenant_id` alias. */
|
|
18
|
+
collection?: string;
|
|
19
|
+
/** Owning database. Canonical name; mirrors the deprecated `tenant_id` alias. */
|
|
20
|
+
database?: string;
|
|
8
21
|
/** Database metadata keys included in the update request. Canonical name; `tenant_metadata_keys` is a deprecated alias. */
|
|
9
22
|
databaseMetadataKeys?: string[];
|
|
10
23
|
/** Unique identifier for this resource. */
|
|
@@ -18,16 +31,37 @@ export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditRe
|
|
|
18
31
|
milvusSyncRequired?: boolean;
|
|
19
32
|
/** deprecated: use vector_synced */
|
|
20
33
|
milvusSynced?: boolean;
|
|
21
|
-
/**
|
|
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;
|
|
40
|
+
/** deprecated: use collection */
|
|
22
41
|
subTenantId?: string;
|
|
23
|
-
/**
|
|
42
|
+
/** deprecated: use database */
|
|
24
43
|
tenantId?: string;
|
|
25
44
|
/** deprecated: use database_metadata_keys */
|
|
26
45
|
tenantMetadataKeys?: string[];
|
|
27
46
|
/** Whether the source metadata was updated. */
|
|
28
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;
|
|
29
57
|
/** Number of chunk rows synced to the vector store when sync was required. */
|
|
30
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;
|
|
31
65
|
/**
|
|
32
66
|
* Vendor-neutral vector-sync signal (PRO-1185): the canonical field must not
|
|
33
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. */
|
|
@@ -8,6 +31,12 @@ export interface GraphGraphRelationsResponse {
|
|
|
8
31
|
nextCursor?: number;
|
|
9
32
|
/** Array of triplet groups with evidence for each relationship. */
|
|
10
33
|
relations?: HydraDB.GraphTripletWithEvidence[];
|
|
11
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Deprecated for API clients: to decide whether the request succeeded,
|
|
36
|
+
* check the HTTP status code — 2xx is success — or equivalently the
|
|
37
|
+
* envelope's top-level `success`. This nested copy always carries the same
|
|
38
|
+
* value and never carries independent information. Still emitted unchanged
|
|
39
|
+
* for existing clients (PRO-1208).
|
|
40
|
+
*/
|
|
12
41
|
success?: boolean;
|
|
13
42
|
}
|
|
@@ -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 */
|