@hydradb/sdk 2.1.1 → 2.1.3
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 +6 -3
- package/dist/Client.js +10 -12
- package/dist/api/client/requests/SearchQueryRequest.d.ts +20 -0
- package/dist/api/errors/ConflictError.d.ts +1 -2
- package/dist/api/errors/InternalServerError.d.ts +1 -2
- package/dist/api/errors/UnsupportedMediaTypeError.d.ts +6 -0
- package/dist/api/errors/UnsupportedMediaTypeError.js +54 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/connectors/client/Client.d.ts +50 -19
- package/dist/api/resources/connectors/client/Client.js +187 -108
- package/dist/api/resources/connectors/client/requests/DiscoverConnectorsRequest.d.ts +4 -0
- package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +9 -3
- package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -7
- package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +14 -0
- package/dist/api/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +4 -0
- package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -2
- package/dist/api/resources/connectors/client/requests/StatusConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/index.d.ts +2 -0
- package/dist/api/resources/context/client/Client.d.ts +20 -2
- package/dist/api/resources/context/client/Client.js +41 -11
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +4 -4
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +3 -0
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +8 -0
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -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/index.d.ts +1 -0
- package/dist/api/resources/context/types/index.js +1 -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 +27 -1
- package/dist/api/resources/webhooks/client/Client.js +127 -1
- 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 +1 -0
- package/dist/api/types/FeedbackGroundTruth.d.ts +12 -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/FeedbackSubmitRequestFeedback.d.ts +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 +23 -5
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +7 -1
- package/dist/api/types/HandlerCatalogConnector.d.ts +11 -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 +124 -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 +128 -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 +21 -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 +17 -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 → HandlerEnvelopeIngestionV2IngestResponse.d.ts} +2 -2
- 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/HandlerErrorMeta.d.ts +6 -0
- package/dist/api/types/HandlerErrorMeta.js +3 -0
- package/dist/api/types/HandlerErrorResponse.d.ts +6 -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 +11 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.d.ts +14 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.js +17 -0
- package/dist/api/types/HandlerResponseMeta.d.ts +7 -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/SearchGraphContext.d.ts +0 -2
- package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
- 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 +7 -0
- package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +9 -1
- package/dist/api/types/TenantsCollectionStats.d.ts +0 -2
- package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +0 -2
- package/dist/api/types/TenantsInfraV2.d.ts +3 -1
- 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 +49 -7
- package/dist/api/types/index.js +49 -7
- package/dist/helpers/buildString.js +140 -22
- 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 +4 -0
- package/dist/serialization/client/requests/SearchQueryRequest.js +4 -0
- package/dist/serialization/resources/connectors/client/index.d.ts +1 -9
- package/dist/serialization/resources/connectors/client/index.js +5 -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 +0 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +0 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +10 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +42 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +1 -1
- 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/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -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/discover.js → context/types/DeleteContextRequestXHydraDbDeleteStatus.js} +2 -2
- package/dist/serialization/resources/context/types/index.d.ts +1 -0
- package/dist/serialization/resources/context/types/index.js +1 -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/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/{resources/connectors/client/delete.js → types/FeedbackSubmitRequestFeedback.js} +5 -3
- 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 +5 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
- package/dist/serialization/types/HandlerCatalogConnector.d.ts +15 -0
- package/dist/serialization/types/HandlerCatalogConnector.js +47 -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} +14 -7
- package/dist/serialization/types/{ConnectorsConnector.js → HandlerConnectorApiView.js} +14 -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 +39 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.js +71 -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 +16 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.js +48 -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 +14 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.js +46 -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/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/HandlerErrorMeta.d.ts +11 -0
- package/dist/serialization/types/HandlerErrorMeta.js +43 -0
- package/dist/serialization/types/HandlerErrorResponse.d.ts +6 -0
- package/dist/serialization/types/HandlerErrorResponse.js +6 -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 +2 -0
- package/dist/serialization/types/HandlerResourceMapping.js +2 -0
- package/dist/serialization/types/HandlerResourceMappingSyncMode.d.ts +7 -0
- package/dist/serialization/{resources/connectors/client/configure.js → types/HandlerResourceMappingSyncMode.js} +3 -3
- package/dist/serialization/types/HandlerResponseMeta.d.ts +1 -0
- package/dist/serialization/types/HandlerResponseMeta.js +1 -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/SearchGraphContext.d.ts +0 -1
- package/dist/serialization/types/SearchGraphContext.js +0 -1
- 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 +6 -0
- package/dist/serialization/types/SearchV2RetrievalResult.js +6 -0
- package/dist/serialization/types/TenantsCollectionStats.d.ts +0 -1
- package/dist/serialization/types/TenantsCollectionStats.js +0 -1
- package/dist/serialization/types/TenantsCustomPropertyDefinition.d.ts +0 -1
- package/dist/serialization/types/TenantsCustomPropertyDefinition.js +0 -1
- package/dist/serialization/types/TenantsInfraV2.d.ts +1 -0
- package/dist/serialization/types/TenantsInfraV2.js +1 -0
- 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 +49 -7
- package/dist/serialization/types/index.js +49 -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/rotateAConnectorsStoredOAuthRefreshToken.d.ts +0 -10
- package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshToken.js +0 -40
- 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/databases/client/requests/GetMetadataSchemaDatabasesRequest.js} +0 -0
- /package/dist/api/{types/IngestionV2SourceUploadResponse.js → resources/webhooks/client/requests/WebhooksSigningSecretRequest.js} +0 -0
- /package/dist/api/types/{IngestionV2SourceUploadResultItem.js → FeedbackGroundTruth.js} +0 -0
- /package/dist/api/types/{ListSourceListResponse.js → FeedbackSubmitRequest.js} +0 -0
- /package/dist/api/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestFeedback.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface HandlerErrorEnvelopeSourcesMemoryDeleteResponse {
|
|
3
|
+
data?: HydraDB.SourcesMemoryDeleteResponse;
|
|
4
|
+
detail?: HydraDB.HandlerErrorDetail;
|
|
5
|
+
/** Error message, empty string on success. */
|
|
6
|
+
error?: HydraDB.HandlerApiError;
|
|
7
|
+
meta?: HydraDB.HandlerErrorMeta;
|
|
8
|
+
/** Whether the request succeeded. */
|
|
9
|
+
success?: boolean;
|
|
10
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerErrorResponse {
|
|
3
|
+
data?: unknown;
|
|
3
4
|
/** Structured error detail with code, message, and deprecation hints. */
|
|
4
5
|
detail?: HydraDB.HandlerErrorDetail;
|
|
6
|
+
/** Error message, empty string on success. */
|
|
7
|
+
error?: HydraDB.HandlerApiError;
|
|
8
|
+
meta?: HydraDB.HandlerErrorMeta;
|
|
9
|
+
/** Whether the request succeeded. */
|
|
10
|
+
success?: boolean;
|
|
5
11
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface HandlerResourceDeleteResponse {
|
|
2
|
+
/** Connector this resource belongs to. */
|
|
3
|
+
connectorId?: string;
|
|
4
|
+
/** Whether this specific item was deleted. */
|
|
5
|
+
deleted?: boolean;
|
|
6
|
+
/** Resource identifier from the Discover endpoint. */
|
|
7
|
+
resourceId?: string;
|
|
8
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
1
2
|
export interface HandlerResourceMapping {
|
|
2
3
|
/**
|
|
3
4
|
* AdditionalMetadata is merged into the additional_metadata layer of every
|
|
@@ -37,6 +38,16 @@ export interface HandlerResourceMapping {
|
|
|
37
38
|
* collection.
|
|
38
39
|
*/
|
|
39
40
|
subTenantId?: string;
|
|
41
|
+
/**
|
|
42
|
+
* SyncMode is the per-resource update strategy for taps that support one
|
|
43
|
+
* (today: attio objects/lists). "rescan" (default) re-reads the full set
|
|
44
|
+
* every sync — the only way edits are seen on APIs with no updated_at.
|
|
45
|
+
* "new_only" bounds each scan to the sync window and stops paging at its
|
|
46
|
+
* floor — cheap, and an explicit opt-in to not seeing edits until
|
|
47
|
+
* webhooks land. Stored in the resource's filters and carried to the tap
|
|
48
|
+
* on every window.
|
|
49
|
+
*/
|
|
50
|
+
syncMode?: HydraDB.HandlerResourceMappingSyncMode;
|
|
40
51
|
/**
|
|
41
52
|
* Optional per-resource tenant override (for "route specific resources to
|
|
42
53
|
* different tenants"). Empty means the resource inherits the connector
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SyncMode is the per-resource update strategy for taps that support one
|
|
3
|
+
* (today: attio objects/lists). "rescan" (default) re-reads the full set
|
|
4
|
+
* every sync — the only way edits are seen on APIs with no updated_at.
|
|
5
|
+
* "new_only" bounds each scan to the sync window and stops paging at its
|
|
6
|
+
* floor — cheap, and an explicit opt-in to not seeing edits until
|
|
7
|
+
* webhooks land. Stored in the resource's filters and carried to the tap
|
|
8
|
+
* on every window.
|
|
9
|
+
*/
|
|
10
|
+
export declare const HandlerResourceMappingSyncMode: {
|
|
11
|
+
readonly Rescan: "rescan";
|
|
12
|
+
readonly NewOnly: "new_only";
|
|
13
|
+
};
|
|
14
|
+
export type HandlerResourceMappingSyncMode = (typeof HandlerResourceMappingSyncMode)[keyof typeof HandlerResourceMappingSyncMode];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.HandlerResourceMappingSyncMode = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* SyncMode is the per-resource update strategy for taps that support one
|
|
7
|
+
* (today: attio objects/lists). "rescan" (default) re-reads the full set
|
|
8
|
+
* every sync — the only way edits are seen on APIs with no updated_at.
|
|
9
|
+
* "new_only" bounds each scan to the sync window and stops paging at its
|
|
10
|
+
* floor — cheap, and an explicit opt-in to not seeing edits until
|
|
11
|
+
* webhooks land. Stored in the resource's filters and carried to the tap
|
|
12
|
+
* on every window.
|
|
13
|
+
*/
|
|
14
|
+
exports.HandlerResourceMappingSyncMode = {
|
|
15
|
+
Rescan: "rescan",
|
|
16
|
+
NewOnly: "new_only",
|
|
17
|
+
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerResponseMeta {
|
|
3
|
+
/**
|
|
4
|
+
* APIVersion echoes the version of the API that served the request (PRO-1209),
|
|
5
|
+
* sourced from reqmeta.APIVersion — the same value carried by OpenAPI
|
|
6
|
+
* info.version and /health — so a client always knows which API version
|
|
7
|
+
* produced a response. Always present (no omitempty).
|
|
8
|
+
*/
|
|
9
|
+
apiVersion?: string;
|
|
3
10
|
/** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
|
|
4
11
|
collection?: string;
|
|
5
12
|
/** Owning database. Formerly `tenant_id`; the `tenant_id` alias is still accepted (deprecated). */
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.IngestionSourceStatus = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Status is the item's initial lifecycle state. Both modes share this
|
|
7
|
+
* vocabulary — memory mode reuses the same values.
|
|
8
|
+
*/
|
|
5
9
|
exports.IngestionSourceStatus = {
|
|
6
10
|
Queued: "queued",
|
|
7
11
|
Processing: "processing",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface IngestionV2IngestResponse {
|
|
3
|
+
/** Number of uploaded files that failed to queue. */
|
|
4
|
+
failedCount?: number;
|
|
5
|
+
/** Human-readable result message. */
|
|
6
|
+
message?: string;
|
|
7
|
+
/** Per-item results. */
|
|
8
|
+
results?: HydraDB.IngestionV2IngestResultItem[];
|
|
9
|
+
/**
|
|
10
|
+
* Deprecated for API clients: whether the REQUEST was accepted is the HTTP
|
|
11
|
+
* status code (202) or equivalently the envelope's top-level `success`.
|
|
12
|
+
* Whether each SOURCE ingested is per-item — read results[].status and
|
|
13
|
+
* results[].error, then poll GET /context/status, since a 202 only means
|
|
14
|
+
* queued. This flag answers neither question independently: it always
|
|
15
|
+
* mirrors the envelope. Still emitted unchanged for existing clients
|
|
16
|
+
* (PRO-1208).
|
|
17
|
+
*/
|
|
18
|
+
success?: boolean;
|
|
19
|
+
/** Number of files successfully queued for processing. */
|
|
20
|
+
successCount?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface IngestionV2IngestResultItem {
|
|
3
|
+
/** Error is the failure message for this item, null on success. Both modes. */
|
|
4
|
+
error?: string;
|
|
5
|
+
/**
|
|
6
|
+
* ErrorCode is the machine-readable failure classification, null on success.
|
|
7
|
+
* Both modes; always null on the memory path, which produces no per-item code.
|
|
8
|
+
*/
|
|
9
|
+
errorCode?: string;
|
|
10
|
+
/** Filename is the original filename as submitted. type=knowledge only. */
|
|
11
|
+
filename?: string;
|
|
12
|
+
/** ID is the source identifier assigned to this item. Both modes. */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Infer reports whether the memory was queued for inference. type=memory only. */
|
|
15
|
+
infer?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* RelationsCreated is the number of graph relations extracted from this file.
|
|
18
|
+
* type=knowledge only, and only for items that carried a `relations` payload.
|
|
19
|
+
*/
|
|
20
|
+
relationsCreated?: number;
|
|
21
|
+
/**
|
|
22
|
+
* RelationsError is the relation-extraction failure message, if any.
|
|
23
|
+
* type=knowledge only.
|
|
24
|
+
*/
|
|
25
|
+
relationsError?: string;
|
|
26
|
+
/** Current lifecycle or processing state. */
|
|
27
|
+
status?: HydraDB.IngestionSourceStatus;
|
|
28
|
+
/** Title is the memory's title. type=memory only. */
|
|
29
|
+
title?: string;
|
|
30
|
+
}
|
|
@@ -9,6 +9,14 @@ export interface IngestionV2ProcessingStatus {
|
|
|
9
9
|
indexingStatus?: string;
|
|
10
10
|
/** Human-readable status description. */
|
|
11
11
|
message?: string;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated for API clients: this reads like a per-source outcome but is
|
|
14
|
+
* a constant echo of the envelope's `success` — it is true even for a
|
|
15
|
+
* source that failed indexing. For the state of THIS source read
|
|
16
|
+
* indexing_status (and error_code/error_message when it is errored); for
|
|
17
|
+
* whether the request itself succeeded read the HTTP status code or the
|
|
18
|
+
* envelope's top-level `success`. Still emitted unchanged for existing
|
|
19
|
+
* clients (PRO-1208).
|
|
20
|
+
*/
|
|
13
21
|
success?: boolean;
|
|
14
22
|
}
|
|
@@ -4,8 +4,14 @@ export interface ListContentFilter {
|
|
|
4
4
|
/** Filters /context/list by tenant/source metadata. Example: {"department": "finance"}. */
|
|
5
5
|
metadata?: Record<string, unknown>;
|
|
6
6
|
/**
|
|
7
|
-
* SourceFields filters by well-known source fields
|
|
8
|
-
* description, url, and
|
|
7
|
+
* SourceFields filters by well-known source fields: title, type,
|
|
8
|
+
* description, url, timestamp, and the app-source keys app_provider,
|
|
9
|
+
* app_kind, app_external_id, app_parent_id.
|
|
10
|
+
*
|
|
11
|
+
* app_external_id and app_parent_id are provider-scoped: a Jira issue key
|
|
12
|
+
* and a Linear id can collide, so pair either with app_provider in the
|
|
13
|
+
* same filter to identify one object. Without it a match may span
|
|
14
|
+
* providers that reuse the same external id.
|
|
9
15
|
*/
|
|
10
16
|
sourceFields?: Record<string, unknown>;
|
|
11
17
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface ListV2ListResponse {
|
|
3
|
+
/** Human-readable result message. */
|
|
4
|
+
message?: string;
|
|
5
|
+
pagination?: HydraDB.DashboardPaginationMeta;
|
|
6
|
+
/** Sources carries the rows when type=knowledge (the default). */
|
|
7
|
+
sources?: HydraDB.ListV2SourceItem[];
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated for API clients: to decide whether the request succeeded,
|
|
10
|
+
* check the HTTP status code — 2xx is success — or equivalently the
|
|
11
|
+
* envelope's top-level `success`. This nested copy always carries the same
|
|
12
|
+
* value and never carries independent information. Still emitted unchanged
|
|
13
|
+
* for existing clients (PRO-1208).
|
|
14
|
+
*/
|
|
15
|
+
success?: boolean;
|
|
16
|
+
/** Total is the total number of matching rows across all pages. */
|
|
17
|
+
total?: number;
|
|
18
|
+
/**
|
|
19
|
+
* UserMemories carries the rows when type=memory. Same item shape as Sources
|
|
20
|
+
* except each row is keyed by memory_id rather than id.
|
|
21
|
+
*/
|
|
22
|
+
userMemories?: HydraDB.ListV2MemoryItem[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface ListV2MemoryItem {
|
|
2
|
+
/**
|
|
3
|
+
* AdditionalMetadata is the caller-supplied per-document metadata (stored as
|
|
4
|
+
* document_metadata).
|
|
5
|
+
*/
|
|
6
|
+
additionalMetadata?: Record<string, unknown>;
|
|
7
|
+
/** Provider-assigned identifier for this source (e.g. Slack channel ID). */
|
|
8
|
+
appExternalId?: string;
|
|
9
|
+
/** App integration category, populated for connector-synced sources. */
|
|
10
|
+
appKind?: string;
|
|
11
|
+
/**
|
|
12
|
+
* AppParentID is the provider external id of this source's conversational
|
|
13
|
+
* parent (a Jira comment carries its issue key, a Slack reply its thread
|
|
14
|
+
* root), and AppThreadID the discussion grouping key. Mirrored from the
|
|
15
|
+
* ingestion pipeline; absent for sources without a parent/thread.
|
|
16
|
+
*/
|
|
17
|
+
appParentId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* App* carry connector provenance, mirrored onto the source document by the
|
|
20
|
+
* ingestion pipeline. Null for sources that were not connector-ingested.
|
|
21
|
+
*/
|
|
22
|
+
appProvider?: string;
|
|
23
|
+
appRelations?: unknown;
|
|
24
|
+
appThreadId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Collection is the canonical name for the sub-scope this row was listed
|
|
27
|
+
* from. Empty string when the row lives in the database's default collection.
|
|
28
|
+
*/
|
|
29
|
+
collection: string;
|
|
30
|
+
/**
|
|
31
|
+
* Comments is the group_threads discussion: the source's comment/message
|
|
32
|
+
* children as full sibling rows, newest first, capped per parent with
|
|
33
|
+
* CommentsTruncated marking an overflow. Present (possibly empty) on every
|
|
34
|
+
* row of a group_threads response; absent otherwise.
|
|
35
|
+
*/
|
|
36
|
+
comments?: Record<string, unknown>[];
|
|
37
|
+
commentsTruncated?: boolean;
|
|
38
|
+
/** Database is the canonical name for the scope this row was listed from. */
|
|
39
|
+
database: string;
|
|
40
|
+
/** Human-readable description of the source. */
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* MemoryID is the memory identifier — the type=memory spelling of ID, and
|
|
44
|
+
* present on exactly the same terms.
|
|
45
|
+
*/
|
|
46
|
+
memoryId: string;
|
|
47
|
+
/** Metadata is the caller-supplied source metadata (stored as tenant_metadata). */
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
49
|
+
note?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Relations/AppRelations are passthrough graph subtrees, returned only when
|
|
52
|
+
* requested via include_fields. Their internal source_id/source_ids keys are
|
|
53
|
+
* renamed to id/ids on the way out; the rest of the subtree is unconstrained.
|
|
54
|
+
*/
|
|
55
|
+
relations?: unknown;
|
|
56
|
+
/** SubTenantID is the deprecated spelling of Collection, carrying an identical value. */
|
|
57
|
+
subTenantId: string;
|
|
58
|
+
/** TenantID is the deprecated spelling of Database, carrying an identical value. */
|
|
59
|
+
tenantId: string;
|
|
60
|
+
/** RFC3339 timestamp associated with this item. */
|
|
61
|
+
timestamp?: string;
|
|
62
|
+
/** Title or name of the source. */
|
|
63
|
+
title?: string;
|
|
64
|
+
/** Type is the source kind, e.g. "knowledge" or "memory". */
|
|
65
|
+
type?: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface ListV2SourceItem {
|
|
2
|
+
/**
|
|
3
|
+
* AdditionalMetadata is the caller-supplied per-document metadata (stored as
|
|
4
|
+
* document_metadata).
|
|
5
|
+
*/
|
|
6
|
+
additionalMetadata?: Record<string, unknown>;
|
|
7
|
+
/** Provider-assigned identifier for this source (e.g. Slack channel ID). */
|
|
8
|
+
appExternalId?: string;
|
|
9
|
+
/** App integration category, populated for connector-synced sources. */
|
|
10
|
+
appKind?: string;
|
|
11
|
+
/**
|
|
12
|
+
* AppParentID is the provider external id of this source's conversational
|
|
13
|
+
* parent (a Jira comment carries its issue key, a Slack reply its thread
|
|
14
|
+
* root), and AppThreadID the discussion grouping key. Mirrored from the
|
|
15
|
+
* ingestion pipeline; absent for sources without a parent/thread.
|
|
16
|
+
*/
|
|
17
|
+
appParentId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* App* carry connector provenance, mirrored onto the source document by the
|
|
20
|
+
* ingestion pipeline. Null for sources that were not connector-ingested.
|
|
21
|
+
*/
|
|
22
|
+
appProvider?: string;
|
|
23
|
+
/** Connector-derived relations for this source. Present on connector-ingested rows. */
|
|
24
|
+
appRelations?: unknown;
|
|
25
|
+
/** Discussion grouping key shared by a thread root and its replies/comments. Absent for unthreaded sources. */
|
|
26
|
+
appThreadId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Collection is the canonical name for the sub-scope this row was listed
|
|
29
|
+
* from. Empty string when the row lives in the database's default collection.
|
|
30
|
+
*/
|
|
31
|
+
collection: string;
|
|
32
|
+
/**
|
|
33
|
+
* Comments is the group_threads discussion: the source's comment/message
|
|
34
|
+
* children as full sibling rows, newest first, capped per parent with
|
|
35
|
+
* CommentsTruncated marking an overflow. Present (possibly empty) on every
|
|
36
|
+
* row of a group_threads response; absent otherwise.
|
|
37
|
+
*/
|
|
38
|
+
comments?: Record<string, unknown>[];
|
|
39
|
+
/** True when the inline `comments` array hit the per-parent cap and more children exist. Fetch them via `filters.additional_metadata` on the parent's external ID. */
|
|
40
|
+
commentsTruncated?: boolean;
|
|
41
|
+
/** Database is the canonical name for the scope this row was listed from. */
|
|
42
|
+
database: string;
|
|
43
|
+
/** Human-readable description of the source. */
|
|
44
|
+
description?: string;
|
|
45
|
+
/**
|
|
46
|
+
* ID is the source identifier. Always present: buildProjection pins
|
|
47
|
+
* source.id as an identity field on every projection path.
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/** Metadata is the caller-supplied source metadata (stored as tenant_metadata). */
|
|
51
|
+
metadata?: Record<string, unknown>;
|
|
52
|
+
/** Free-form note attached to the source. */
|
|
53
|
+
note?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Relations/AppRelations are passthrough graph subtrees, returned only when
|
|
56
|
+
* requested via include_fields. Their internal source_id/source_ids keys are
|
|
57
|
+
* renamed to id/ids on the way out; the rest of the subtree is unconstrained.
|
|
58
|
+
*/
|
|
59
|
+
relations?: unknown;
|
|
60
|
+
/** SubTenantID is the deprecated spelling of Collection, carrying an identical value. */
|
|
61
|
+
subTenantId: string;
|
|
62
|
+
/** TenantID is the deprecated spelling of Database, carrying an identical value. */
|
|
63
|
+
tenantId: string;
|
|
64
|
+
/** RFC3339 timestamp associated with this item. */
|
|
65
|
+
timestamp?: string;
|
|
66
|
+
/** Title or name of the source. */
|
|
67
|
+
title?: string;
|
|
68
|
+
/** Type is the source kind, e.g. "knowledge" or "memory". */
|
|
69
|
+
type?: string;
|
|
70
|
+
}
|
|
@@ -11,6 +11,4 @@ export interface SearchGraphContext {
|
|
|
11
11
|
chunkRelations?: HydraDB.SearchScoredPathResponse[];
|
|
12
12
|
/** Scored relation paths ranked by relevance to the query. */
|
|
13
13
|
queryPaths?: HydraDB.SearchScoredPathResponse[];
|
|
14
|
-
/** LLM-synthesized summary of the most relevant graph entities and relationships. */
|
|
15
|
-
synthesisContext?: string;
|
|
16
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Filters results by source metadata. Top-level keys target tenant metadata (for example department, priority, active, or tags). Nested additional_metadata keys target document metadata.
|
|
2
|
+
* Filters results by source metadata. Top-level keys target tenant metadata (for example department, priority, active, or tags). Nested additional_metadata keys target document metadata. Separate keys are ANDed. A scalar value is an exact match; an array means match ANY one of the listed values (OR) - there is no ALL/AND operator within a single key. Arrays are supported on VARCHAR fields only: an array passed for a declared field of any other type is rejected with 400 VALIDATION_ERROR. Size limits: each list may hold at most 500 values, and the whole metadata_filters object is capped at 64 KiB measured on its compact JSON encoding in UTF-8 bytes (keys and punctuation count). Exceeding either returns 400 naming the offending key or the actual byte count.
|
|
3
3
|
*/
|
|
4
4
|
export type SearchMetadataFilters = Record<string, unknown>;
|
|
@@ -10,6 +10,8 @@ export interface SearchSourceInfo {
|
|
|
10
10
|
appKind?: string;
|
|
11
11
|
/** Provider name for app-sourced items (e.g. `slack`, `github`). */
|
|
12
12
|
appProvider?: string;
|
|
13
|
+
/** Collection this source belongs to. Canonical name; mirrors the deprecated `sub_tenant_id` alias. */
|
|
14
|
+
collection?: string;
|
|
13
15
|
/** Human-readable description of the source. */
|
|
14
16
|
description?: string;
|
|
15
17
|
/** Unique identifier for this resource. */
|
|
@@ -19,7 +21,7 @@ export interface SearchSourceInfo {
|
|
|
19
21
|
* the wire (Python default_factory=dict), unlike chunk metadata which is null.
|
|
20
22
|
*/
|
|
21
23
|
metadata?: Record<string, unknown>;
|
|
22
|
-
/**
|
|
24
|
+
/** deprecated: use collection */
|
|
23
25
|
subTenantId?: string;
|
|
24
26
|
/** RFC3339 timestamp associated with this item. */
|
|
25
27
|
timestamp?: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* TemporalDuration is the computed event-duration answer, when resolved.
|
|
4
|
+
*/
|
|
5
|
+
export interface SearchTemporalDuration {
|
|
6
|
+
/**
|
|
7
|
+
* Approximate is set when either endpoint's granularity is coarser than a
|
|
8
|
+
* day (month/year brackets) — the day count is then a floor-to-floor
|
|
9
|
+
* estimate, not an exact span; consumers should not present it as exact.
|
|
10
|
+
*/
|
|
11
|
+
approximate?: boolean;
|
|
12
|
+
days?: number;
|
|
13
|
+
from?: HydraDB.SearchTemporalFact;
|
|
14
|
+
fromDate?: string;
|
|
15
|
+
/**
|
|
16
|
+
* PairingConfidence is the normalized pair-scorer margin (0..1); low values
|
|
17
|
+
* mean the endpoints were weakly anchored to the question. Durations whose
|
|
18
|
+
* endpoints share no entity token with the question are suppressed
|
|
19
|
+
* entirely (P4: a wrong confident day count misleads answerers).
|
|
20
|
+
*/
|
|
21
|
+
pairingConfidence?: number;
|
|
22
|
+
to?: HydraDB.SearchTemporalFact;
|
|
23
|
+
toDate?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface SearchTemporalFact {
|
|
2
|
+
/** Chunk that provides evidence for this relation. */
|
|
3
|
+
chunkId?: string;
|
|
4
|
+
/**
|
|
5
|
+
* DatePrecision is the resolution of the resolved dates: "day", "month",
|
|
6
|
+
* "year" (coarser-than-day dates are floored to bracket starts).
|
|
7
|
+
*/
|
|
8
|
+
datePrecision?: string;
|
|
9
|
+
eventEnd?: number;
|
|
10
|
+
eventStart?: number;
|
|
11
|
+
/**
|
|
12
|
+
* EvidencePhrase is the verbatim source phrase the dates were resolved
|
|
13
|
+
* from (e.g. "today", "two weeks ago").
|
|
14
|
+
*/
|
|
15
|
+
evidencePhrase?: string;
|
|
16
|
+
factType?: string;
|
|
17
|
+
object?: string;
|
|
18
|
+
relation?: string;
|
|
19
|
+
/** Unique identifier for this relationship instance. */
|
|
20
|
+
relationshipId?: string;
|
|
21
|
+
sourceId?: string;
|
|
22
|
+
/** Current lifecycle or processing state. */
|
|
23
|
+
status?: string;
|
|
24
|
+
subject?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TemporalFilter reports what the temporal layer did for this request.
|
|
3
|
+
*/
|
|
4
|
+
export interface SearchTemporalFilterInfo {
|
|
5
|
+
/**
|
|
6
|
+
* Applied is true when the temporal layer engaged for a classified temporal
|
|
7
|
+
* query — including when it matched zero dated facts; MatchedFacts carries the
|
|
8
|
+
* actual count. It is false only when the fact lookup degraded (Degraded).
|
|
9
|
+
*/
|
|
10
|
+
applied?: boolean;
|
|
11
|
+
chunkScope?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Degraded is true when the fact lookup FAILED (as opposed to matching
|
|
14
|
+
* nothing) — callers must not read an empty payload as "no temporal facts
|
|
15
|
+
* exist" when this is set.
|
|
16
|
+
*/
|
|
17
|
+
degraded?: boolean;
|
|
18
|
+
matchedFacts?: number;
|
|
19
|
+
mode?: string;
|
|
20
|
+
promoted?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Scope reports how the chunk scope was applied: "soft" (bounded ranking
|
|
23
|
+
* promotion) or "" (no scope). Hard scoping was removed after TEMPO.
|
|
24
|
+
*/
|
|
25
|
+
scope?: string;
|
|
26
|
+
truncated?: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TemporalIntent (EXPERIMENTAL) lets the caller supply the classification
|
|
3
|
+
* (mode/window/phrases) directly, bypassing the regex classifier — for
|
|
4
|
+
* agents whose own LLM already understands the query, and for non-English
|
|
5
|
+
* queries. Invalid overrides fall back to the classifier.
|
|
6
|
+
*/
|
|
7
|
+
export interface SearchTemporalIntentOverride {
|
|
8
|
+
cutoff?: string;
|
|
9
|
+
durationToNow?: boolean;
|
|
10
|
+
eventPhrases?: string[];
|
|
11
|
+
mode?: string;
|
|
12
|
+
windowEnd?: string;
|
|
13
|
+
windowStart?: string;
|
|
14
|
+
}
|
|
@@ -8,6 +8,8 @@ export interface SearchV2Chunk {
|
|
|
8
8
|
chunkContent?: string;
|
|
9
9
|
/** Unique identifier for this individual chunk. */
|
|
10
10
|
chunkUuid?: string;
|
|
11
|
+
/** Collection this chunk belongs to. Canonical name; mirrors the deprecated `sub_tenant_id` alias. */
|
|
12
|
+
collection?: string;
|
|
11
13
|
/** IDs of adjacent chunks pulled in as surrounding context. */
|
|
12
14
|
extraContextIds?: string[];
|
|
13
15
|
/** Unique identifier for this resource. */
|
|
@@ -26,6 +28,6 @@ export interface SearchV2Chunk {
|
|
|
26
28
|
sourceType?: string;
|
|
27
29
|
/** RFC3339 timestamp when the source was ingested. */
|
|
28
30
|
sourceUploadTime?: string;
|
|
29
|
-
/**
|
|
31
|
+
/** deprecated: use collection */
|
|
30
32
|
subTenantId?: string;
|
|
31
33
|
}
|
|
@@ -7,4 +7,11 @@ export interface SearchV2RetrievalResult {
|
|
|
7
7
|
graphContext?: HydraDB.SearchGraphContext;
|
|
8
8
|
/** Deduplicated source-level metadata for all returned chunks. */
|
|
9
9
|
sources?: HydraDB.SearchSourceInfo[];
|
|
10
|
+
temporalDuration?: HydraDB.SearchTemporalDuration;
|
|
11
|
+
/**
|
|
12
|
+
* TemporalFacts surface the matched edge-level temporal facts when
|
|
13
|
+
* temporal_reasoning was requested; omitted otherwise.
|
|
14
|
+
*/
|
|
15
|
+
temporalFacts?: HydraDB.SearchTemporalFact[];
|
|
16
|
+
temporalFilter?: HydraDB.SearchTemporalFilterInfo;
|
|
10
17
|
}
|