@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
|
@@ -4,9 +4,11 @@ export type { DiscoverConnectorsRequest } from "./DiscoverConnectorsRequest.js";
|
|
|
4
4
|
export type { GetConnectorsRequest } from "./GetConnectorsRequest.js";
|
|
5
5
|
export type { HandlerConfigureReq } from "./HandlerConfigureReq.js";
|
|
6
6
|
export type { HandlerConnectorCreateReq } from "./HandlerConnectorCreateReq.js";
|
|
7
|
+
export type { HandlerConnectorUpdateReq } from "./HandlerConnectorUpdateReq.js";
|
|
7
8
|
export type { HandlerDiscoverPreviewReq } from "./HandlerDiscoverPreviewReq.js";
|
|
8
9
|
export type { HandlerResourceCreateReq } from "./HandlerResourceCreateReq.js";
|
|
9
10
|
export type { ListConnectorsRequest } from "./ListConnectorsRequest.js";
|
|
10
11
|
export type { ListResourcesConnectorsRequest } from "./ListResourcesConnectorsRequest.js";
|
|
11
12
|
export type { PatchConnectorsIdCredentialsRequest } from "./PatchConnectorsIdCredentialsRequest.js";
|
|
13
|
+
export type { StatusConnectorsRequest } from "./StatusConnectorsRequest.js";
|
|
12
14
|
export type { SyncConnectorsRequest } from "./SyncConnectorsRequest.js";
|
|
@@ -13,10 +13,27 @@ export declare class ContextClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Delete one or more knowledge sources or memories by ID.
|
|
15
15
|
*
|
|
16
|
+
* By default this endpoint answers 200 for every outcome, including a delete
|
|
17
|
+
* that removed nothing — check `data.deleted_count` and `data.results` rather
|
|
18
|
+
* than the status code.
|
|
19
|
+
*
|
|
20
|
+
* Send `X-HydraDB-Delete-Status: strict` to opt in to honest status codes: a
|
|
21
|
+
* delete that did not happen then answers 404/409/500 and never 200. This is
|
|
22
|
+
* the recommended mode for new integrations. On those failures the response
|
|
23
|
+
* `data` still carries the same `results` / `deleted_count` payload a 200
|
|
24
|
+
* carries, so per-id outcomes stay readable either way.
|
|
25
|
+
*
|
|
26
|
+
* The default is expected to become strict in a future release, at which
|
|
27
|
+
* point `X-HydraDB-Delete-Status: legacy` keeps the unconditional 200 for a
|
|
28
|
+
* caller that is not ready.
|
|
29
|
+
*
|
|
16
30
|
* @param {HydraDB.SourcesV2SourceDeleteRequest} request
|
|
17
31
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
32
|
*
|
|
19
33
|
* @throws {@link HydraDB.BadRequestError}
|
|
34
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
35
|
+
* @throws {@link HydraDB.ConflictError}
|
|
36
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
20
37
|
*
|
|
21
38
|
* @example
|
|
22
39
|
* await client.context.delete()
|
|
@@ -31,6 +48,7 @@ export declare class ContextClient {
|
|
|
31
48
|
*
|
|
32
49
|
* @throws {@link HydraDB.BadRequestError}
|
|
33
50
|
* @throws {@link HydraDB.ContentTooLargeError}
|
|
51
|
+
* @throws {@link HydraDB.UnsupportedMediaTypeError}
|
|
34
52
|
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
35
53
|
*
|
|
36
54
|
* @example
|
|
@@ -39,7 +57,7 @@ export declare class ContextClient {
|
|
|
39
57
|
* database: "database"
|
|
40
58
|
* })
|
|
41
59
|
*/
|
|
42
|
-
ingest(request: HydraDB.IngestContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.
|
|
60
|
+
ingest(request: HydraDB.IngestContextRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeIngestionV2IngestResponse>;
|
|
43
61
|
private __ingest;
|
|
44
62
|
/**
|
|
45
63
|
* Fetch a previously ingested source's content, inferred content, and a downloadable URL.
|
|
@@ -73,7 +91,7 @@ export declare class ContextClient {
|
|
|
73
91
|
* @example
|
|
74
92
|
* await client.context.list()
|
|
75
93
|
*/
|
|
76
|
-
list(request?: HydraDB.ListV2ListContentRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.
|
|
94
|
+
list(request?: HydraDB.ListV2ListContentRequest, requestOptions?: ContextClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeListV2ListResponse>;
|
|
77
95
|
private __list;
|
|
78
96
|
/**
|
|
79
97
|
* Return knowledge-graph relations for a tenant or a single source.
|
|
@@ -50,10 +50,27 @@ class ContextClient {
|
|
|
50
50
|
/**
|
|
51
51
|
* Delete one or more knowledge sources or memories by ID.
|
|
52
52
|
*
|
|
53
|
+
* By default this endpoint answers 200 for every outcome, including a delete
|
|
54
|
+
* that removed nothing — check `data.deleted_count` and `data.results` rather
|
|
55
|
+
* than the status code.
|
|
56
|
+
*
|
|
57
|
+
* Send `X-HydraDB-Delete-Status: strict` to opt in to honest status codes: a
|
|
58
|
+
* delete that did not happen then answers 404/409/500 and never 200. This is
|
|
59
|
+
* the recommended mode for new integrations. On those failures the response
|
|
60
|
+
* `data` still carries the same `results` / `deleted_count` payload a 200
|
|
61
|
+
* carries, so per-id outcomes stay readable either way.
|
|
62
|
+
*
|
|
63
|
+
* The default is expected to become strict in a future release, at which
|
|
64
|
+
* point `X-HydraDB-Delete-Status: legacy` keeps the unconditional 200 for a
|
|
65
|
+
* caller that is not ready.
|
|
66
|
+
*
|
|
53
67
|
* @param {HydraDB.SourcesV2SourceDeleteRequest} request
|
|
54
68
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
69
|
*
|
|
56
70
|
* @throws {@link HydraDB.BadRequestError}
|
|
71
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
72
|
+
* @throws {@link HydraDB.ConflictError}
|
|
73
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
57
74
|
*
|
|
58
75
|
* @example
|
|
59
76
|
* await client.context.delete()
|
|
@@ -62,8 +79,12 @@ class ContextClient {
|
|
|
62
79
|
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
63
80
|
}
|
|
64
81
|
async __delete(request = {}, requestOptions) {
|
|
82
|
+
const { hydraDbDeleteStatus, ..._body } = request;
|
|
65
83
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
66
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
84
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
85
|
+
"X-HydraDB-Delete-Status": hydraDbDeleteStatus,
|
|
86
|
+
"API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2",
|
|
87
|
+
}), requestOptions?.headers);
|
|
67
88
|
const _response = await core.fetcher({
|
|
68
89
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
69
90
|
(await core.Supplier.get(this._options.environment)) ??
|
|
@@ -73,7 +94,7 @@ class ContextClient {
|
|
|
73
94
|
contentType: "application/json",
|
|
74
95
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
75
96
|
requestType: "json",
|
|
76
|
-
body: serializers.SourcesV2SourceDeleteRequest.jsonOrThrow(
|
|
97
|
+
body: serializers.SourcesV2SourceDeleteRequest.jsonOrThrow(_body, {
|
|
77
98
|
unrecognizedObjectKeys: "strip",
|
|
78
99
|
omitUndefined: true,
|
|
79
100
|
}),
|
|
@@ -105,6 +126,12 @@ class ContextClient {
|
|
|
105
126
|
skipValidation: true,
|
|
106
127
|
breadcrumbsPrefix: ["response"],
|
|
107
128
|
}), _response.rawResponse);
|
|
129
|
+
case 404:
|
|
130
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
131
|
+
case 409:
|
|
132
|
+
throw new HydraDB.ConflictError(_response.error.body, _response.rawResponse);
|
|
133
|
+
case 500:
|
|
134
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
108
135
|
default:
|
|
109
136
|
throw new errors.HydraDBError({
|
|
110
137
|
statusCode: _response.error.statusCode,
|
|
@@ -123,6 +150,7 @@ class ContextClient {
|
|
|
123
150
|
*
|
|
124
151
|
* @throws {@link HydraDB.BadRequestError}
|
|
125
152
|
* @throws {@link HydraDB.ContentTooLargeError}
|
|
153
|
+
* @throws {@link HydraDB.UnsupportedMediaTypeError}
|
|
126
154
|
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
127
155
|
*
|
|
128
156
|
* @example
|
|
@@ -194,7 +222,7 @@ class ContextClient {
|
|
|
194
222
|
});
|
|
195
223
|
if (_response.ok) {
|
|
196
224
|
return {
|
|
197
|
-
data: serializers.
|
|
225
|
+
data: serializers.HandlerEnvelopeIngestionV2IngestResponse.parseOrThrow(_response.body, {
|
|
198
226
|
unrecognizedObjectKeys: "passthrough",
|
|
199
227
|
allowUnrecognizedUnionMembers: true,
|
|
200
228
|
allowUnrecognizedEnumValues: true,
|
|
@@ -222,6 +250,14 @@ class ContextClient {
|
|
|
222
250
|
skipValidation: true,
|
|
223
251
|
breadcrumbsPrefix: ["response"],
|
|
224
252
|
}), _response.rawResponse);
|
|
253
|
+
case 415:
|
|
254
|
+
throw new HydraDB.UnsupportedMediaTypeError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
255
|
+
unrecognizedObjectKeys: "passthrough",
|
|
256
|
+
allowUnrecognizedUnionMembers: true,
|
|
257
|
+
allowUnrecognizedEnumValues: true,
|
|
258
|
+
skipValidation: true,
|
|
259
|
+
breadcrumbsPrefix: ["response"],
|
|
260
|
+
}), _response.rawResponse);
|
|
225
261
|
case 422:
|
|
226
262
|
throw new HydraDB.UnprocessableEntityError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
227
263
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -364,7 +400,7 @@ class ContextClient {
|
|
|
364
400
|
});
|
|
365
401
|
if (_response.ok) {
|
|
366
402
|
return {
|
|
367
|
-
data: serializers.
|
|
403
|
+
data: serializers.HandlerEnvelopeListV2ListResponse.parseOrThrow(_response.body, {
|
|
368
404
|
unrecognizedObjectKeys: "passthrough",
|
|
369
405
|
allowUnrecognizedUnionMembers: true,
|
|
370
406
|
allowUnrecognizedEnumValues: true,
|
|
@@ -629,13 +665,7 @@ class ContextClient {
|
|
|
629
665
|
case 404:
|
|
630
666
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
631
667
|
case 500:
|
|
632
|
-
throw new HydraDB.InternalServerError(
|
|
633
|
-
unrecognizedObjectKeys: "passthrough",
|
|
634
|
-
allowUnrecognizedUnionMembers: true,
|
|
635
|
-
allowUnrecognizedEnumValues: true,
|
|
636
|
-
skipValidation: true,
|
|
637
|
-
breadcrumbsPrefix: ["response"],
|
|
638
|
-
}), _response.rawResponse);
|
|
668
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
639
669
|
default:
|
|
640
670
|
throw new errors.HydraDBError({
|
|
641
671
|
statusCode: _response.error.statusCode,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export interface HandlerContextMetadataUpdateRequest {
|
|
8
8
|
/** Source ID */
|
|
9
9
|
id: string;
|
|
10
|
-
/** Free-form key-value pairs to merge into the source's `additional_metadata`. */
|
|
10
|
+
/** Free-form key-value pairs to merge into the source's `additional_metadata`. The only accepted spelling for document metadata on this endpoint. Capped at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
|
|
11
11
|
additionalMetadata?: Record<string, unknown>;
|
|
12
12
|
/** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
|
|
13
13
|
collection?: string;
|
|
@@ -17,14 +17,14 @@ export interface HandlerContextMetadataUpdateRequest {
|
|
|
17
17
|
* the request body before binding, so the handler reads TenantID/SubTenantID.
|
|
18
18
|
*/
|
|
19
19
|
database?: string;
|
|
20
|
-
/** Schema-backed metadata fields to merge into the source's `metadata` (database metadata). Canonical name; `tenant_metadata` is a deprecated alias. */
|
|
20
|
+
/** Schema-backed metadata fields to merge into the source's `metadata` (database metadata). Canonical name; `tenant_metadata` is a deprecated alias. Capped at 16 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
|
|
21
21
|
databaseMetadata?: Record<string, unknown>;
|
|
22
|
-
/**
|
|
22
|
+
/** Not accepted on this endpoint. Sending any non-null value returns 400 (`document_metadata is not accepted; use additional_metadata`), regardless of size. Use `additional_metadata` instead. Accepted as an alias on /context/ingest only. */
|
|
23
23
|
documentMetadata?: Record<string, unknown>;
|
|
24
24
|
/** deprecated: use collection */
|
|
25
25
|
subTenantId?: string;
|
|
26
26
|
/** deprecated: use database */
|
|
27
27
|
tenantId?: string;
|
|
28
|
-
/**
|
|
28
|
+
/** Deprecated alias for `database_metadata`, still accepted here; `database_metadata` wins when both are sent. Capped at 16 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
|
|
29
29
|
tenantMetadata?: Record<string, unknown>;
|
|
30
30
|
}
|
|
@@ -7,12 +7,15 @@ import type * as HydraDB from "../../../../index.js";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface IngestContextRequest {
|
|
10
|
+
/** App-knowledge items as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). The deprecated `tenant_metadata` / `document_metadata` spellings are accepted here and held to the same caps. Over-cap returns 400 with the actual byte count. */
|
|
10
11
|
appKnowledge?: string;
|
|
11
12
|
collection?: string;
|
|
12
13
|
database: string;
|
|
14
|
+
/** Per-document metadata as a JSON array (type=knowledge). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB. Both caps are measured on the compact JSON encoding of the whole map in UTF-8 bytes, so keys, quotes, commas and braces count toward the budget. Over-cap returns 400 with the actual byte count. */
|
|
13
15
|
documentMetadata?: string;
|
|
14
16
|
documents?: core.file.Uploadable | undefined;
|
|
15
17
|
graphPayload?: string;
|
|
18
|
+
/** Memory items as a JSON array (type=memory). Per item, `metadata` is capped at 16 KiB and `additional_metadata` at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes (keys and punctuation count). Over-cap returns 400 with the actual byte count. */
|
|
16
19
|
memories?: string;
|
|
17
20
|
subTenantId?: string;
|
|
18
21
|
tenantId?: string;
|
|
@@ -13,6 +13,14 @@ export interface ListV2ListContentRequest {
|
|
|
13
13
|
*/
|
|
14
14
|
database?: string;
|
|
15
15
|
filters?: HydraDB.ListContentFilter;
|
|
16
|
+
/**
|
|
17
|
+
* GroupThreads (type=knowledge only) folds each ticket's/thread root's
|
|
18
|
+
* discussion (comment and message app sources carrying an app_parent_id)
|
|
19
|
+
* under the parent row as `comments`, newest first, instead of listing them
|
|
20
|
+
* as separate top-level rows. Off by default: the flat shape is the
|
|
21
|
+
* existing contract.
|
|
22
|
+
*/
|
|
23
|
+
groupThreads?: boolean;
|
|
16
24
|
/** When provided, only items with these IDs are returned. Pagination and filters still apply. */
|
|
17
25
|
ids?: string[];
|
|
18
26
|
/** Field projection — only the listed fields plus id, database, collection are returned. Only applies to type=knowledge. */
|
|
@@ -4,6 +4,8 @@ import type * as HydraDB from "../../../../index.js";
|
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
6
|
export interface SourcesV2SourceDeleteRequest {
|
|
7
|
+
/** Selects the status behaviour for this request. `strict` opts in to honest 404/409/500 codes when the delete did not happen; `legacy` forces the unconditional 200. Omitted, the server default applies — currently `legacy`. */
|
|
8
|
+
hydraDbDeleteStatus?: HydraDB.DeleteContextRequestXHydraDbDeleteStatus;
|
|
7
9
|
/** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
|
|
8
10
|
collection?: string;
|
|
9
11
|
/**
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const DeleteContextRequestXHydraDbDeleteStatus: {
|
|
2
|
+
readonly Strict: "strict";
|
|
3
|
+
readonly Legacy: "legacy";
|
|
4
|
+
};
|
|
5
|
+
export type DeleteContextRequestXHydraDbDeleteStatus = (typeof DeleteContextRequestXHydraDbDeleteStatus)[keyof typeof DeleteContextRequestXHydraDbDeleteStatus];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DeleteContextRequestXHydraDbDeleteStatus = void 0;
|
|
5
|
+
exports.DeleteContextRequestXHydraDbDeleteStatus = {
|
|
6
|
+
Strict: "strict",
|
|
7
|
+
Legacy: "legacy",
|
|
8
|
+
};
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeleteContextRequestXHydraDbDeleteStatus.js"), exports);
|
|
17
18
|
__exportStar(require("./IngestContextRequestType.js"), exports);
|
|
18
19
|
__exportStar(require("./ListV2ListContentRequestType.js"), exports);
|
|
19
20
|
__exportStar(require("./RelationsContextRequestType.js"), exports);
|
|
@@ -106,6 +106,23 @@ export declare class DatabasesClient {
|
|
|
106
106
|
*/
|
|
107
107
|
status(request: HydraDB.StatusDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsInfraStatusResponseV2>;
|
|
108
108
|
private __status;
|
|
109
|
+
/**
|
|
110
|
+
* Read the database's declared metadata schema fields. Returns the same field shape accepted by database creation and by Update Metadata Schema, so the response round-trips into add_fields.
|
|
111
|
+
*
|
|
112
|
+
* @param {HydraDB.GetMetadataSchemaDatabasesRequest} request
|
|
113
|
+
* @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
116
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
117
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* await client.databases.getMetadataSchema({
|
|
121
|
+
* database: "acme_corp"
|
|
122
|
+
* })
|
|
123
|
+
*/
|
|
124
|
+
getMetadataSchema(request: HydraDB.GetMetadataSchemaDatabasesRequest, requestOptions?: DatabasesClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeTenantsTenantMetadataSchemaResponse>;
|
|
125
|
+
private __getMetadataSchema;
|
|
109
126
|
/**
|
|
110
127
|
* Add new metadata schema fields to an existing database. Additive only — existing fields cannot be deleted or retyped.
|
|
111
128
|
*
|
|
@@ -91,13 +91,7 @@ class DatabasesClient {
|
|
|
91
91
|
if (_response.error.reason === "status-code") {
|
|
92
92
|
switch (_response.error.statusCode) {
|
|
93
93
|
case 500:
|
|
94
|
-
throw new HydraDB.InternalServerError(
|
|
95
|
-
unrecognizedObjectKeys: "passthrough",
|
|
96
|
-
allowUnrecognizedUnionMembers: true,
|
|
97
|
-
allowUnrecognizedEnumValues: true,
|
|
98
|
-
skipValidation: true,
|
|
99
|
-
breadcrumbsPrefix: ["response"],
|
|
100
|
-
}), _response.rawResponse);
|
|
94
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
101
95
|
default:
|
|
102
96
|
throw new errors.HydraDBError({
|
|
103
97
|
statusCode: _response.error.statusCode,
|
|
@@ -178,21 +172,9 @@ class DatabasesClient {
|
|
|
178
172
|
breadcrumbsPrefix: ["response"],
|
|
179
173
|
}), _response.rawResponse);
|
|
180
174
|
case 409:
|
|
181
|
-
throw new HydraDB.ConflictError(
|
|
182
|
-
unrecognizedObjectKeys: "passthrough",
|
|
183
|
-
allowUnrecognizedUnionMembers: true,
|
|
184
|
-
allowUnrecognizedEnumValues: true,
|
|
185
|
-
skipValidation: true,
|
|
186
|
-
breadcrumbsPrefix: ["response"],
|
|
187
|
-
}), _response.rawResponse);
|
|
175
|
+
throw new HydraDB.ConflictError(_response.error.body, _response.rawResponse);
|
|
188
176
|
case 500:
|
|
189
|
-
throw new HydraDB.InternalServerError(
|
|
190
|
-
unrecognizedObjectKeys: "passthrough",
|
|
191
|
-
allowUnrecognizedUnionMembers: true,
|
|
192
|
-
allowUnrecognizedEnumValues: true,
|
|
193
|
-
skipValidation: true,
|
|
194
|
-
breadcrumbsPrefix: ["response"],
|
|
195
|
-
}), _response.rawResponse);
|
|
177
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
196
178
|
default:
|
|
197
179
|
throw new errors.HydraDBError({
|
|
198
180
|
statusCode: _response.error.statusCode,
|
|
@@ -270,13 +252,7 @@ class DatabasesClient {
|
|
|
270
252
|
case 404:
|
|
271
253
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
272
254
|
case 500:
|
|
273
|
-
throw new HydraDB.InternalServerError(
|
|
274
|
-
unrecognizedObjectKeys: "passthrough",
|
|
275
|
-
allowUnrecognizedUnionMembers: true,
|
|
276
|
-
allowUnrecognizedEnumValues: true,
|
|
277
|
-
skipValidation: true,
|
|
278
|
-
breadcrumbsPrefix: ["response"],
|
|
279
|
-
}), _response.rawResponse);
|
|
255
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
280
256
|
default:
|
|
281
257
|
throw new errors.HydraDBError({
|
|
282
258
|
statusCode: _response.error.statusCode,
|
|
@@ -354,13 +330,7 @@ class DatabasesClient {
|
|
|
354
330
|
case 404:
|
|
355
331
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
356
332
|
case 500:
|
|
357
|
-
throw new HydraDB.InternalServerError(
|
|
358
|
-
unrecognizedObjectKeys: "passthrough",
|
|
359
|
-
allowUnrecognizedUnionMembers: true,
|
|
360
|
-
allowUnrecognizedEnumValues: true,
|
|
361
|
-
skipValidation: true,
|
|
362
|
-
breadcrumbsPrefix: ["response"],
|
|
363
|
-
}), _response.rawResponse);
|
|
333
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
364
334
|
default:
|
|
365
335
|
throw new errors.HydraDBError({
|
|
366
336
|
statusCode: _response.error.statusCode,
|
|
@@ -438,13 +408,7 @@ class DatabasesClient {
|
|
|
438
408
|
case 404:
|
|
439
409
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
440
410
|
case 500:
|
|
441
|
-
throw new HydraDB.InternalServerError(
|
|
442
|
-
unrecognizedObjectKeys: "passthrough",
|
|
443
|
-
allowUnrecognizedUnionMembers: true,
|
|
444
|
-
allowUnrecognizedEnumValues: true,
|
|
445
|
-
skipValidation: true,
|
|
446
|
-
breadcrumbsPrefix: ["response"],
|
|
447
|
-
}), _response.rawResponse);
|
|
411
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
448
412
|
default:
|
|
449
413
|
throw new errors.HydraDBError({
|
|
450
414
|
statusCode: _response.error.statusCode,
|
|
@@ -522,13 +486,78 @@ class DatabasesClient {
|
|
|
522
486
|
case 404:
|
|
523
487
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
524
488
|
case 500:
|
|
525
|
-
throw new HydraDB.InternalServerError(
|
|
489
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
490
|
+
default:
|
|
491
|
+
throw new errors.HydraDBError({
|
|
492
|
+
statusCode: _response.error.statusCode,
|
|
493
|
+
body: _response.error.body,
|
|
494
|
+
rawResponse: _response.rawResponse,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/databases/status");
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Read the database's declared metadata schema fields. Returns the same field shape accepted by database creation and by Update Metadata Schema, so the response round-trips into add_fields.
|
|
502
|
+
*
|
|
503
|
+
* @param {HydraDB.GetMetadataSchemaDatabasesRequest} request
|
|
504
|
+
* @param {DatabasesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
505
|
+
*
|
|
506
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
507
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
508
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
509
|
+
*
|
|
510
|
+
* @example
|
|
511
|
+
* await client.databases.getMetadataSchema({
|
|
512
|
+
* database: "acme_corp"
|
|
513
|
+
* })
|
|
514
|
+
*/
|
|
515
|
+
getMetadataSchema(request, requestOptions) {
|
|
516
|
+
return core.HttpResponsePromise.fromPromise(this.__getMetadataSchema(request, requestOptions));
|
|
517
|
+
}
|
|
518
|
+
async __getMetadataSchema(request, requestOptions) {
|
|
519
|
+
const { database } = request;
|
|
520
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
521
|
+
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);
|
|
522
|
+
const _response = await core.fetcher({
|
|
523
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
524
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
525
|
+
environments.HydraDBEnvironment.Default, `databases/${core.url.encodePathParam(database)}/metadata-schema`),
|
|
526
|
+
method: "GET",
|
|
527
|
+
headers: _headers,
|
|
528
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
529
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
530
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
531
|
+
abortSignal: requestOptions?.abortSignal,
|
|
532
|
+
fetchFn: this._options?.fetch,
|
|
533
|
+
logging: this._options.logging,
|
|
534
|
+
});
|
|
535
|
+
if (_response.ok) {
|
|
536
|
+
return {
|
|
537
|
+
data: serializers.HandlerEnvelopeTenantsTenantMetadataSchemaResponse.parseOrThrow(_response.body, {
|
|
538
|
+
unrecognizedObjectKeys: "passthrough",
|
|
539
|
+
allowUnrecognizedUnionMembers: true,
|
|
540
|
+
allowUnrecognizedEnumValues: true,
|
|
541
|
+
skipValidation: true,
|
|
542
|
+
breadcrumbsPrefix: ["response"],
|
|
543
|
+
}),
|
|
544
|
+
rawResponse: _response.rawResponse,
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
if (_response.error.reason === "status-code") {
|
|
548
|
+
switch (_response.error.statusCode) {
|
|
549
|
+
case 400:
|
|
550
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
526
551
|
unrecognizedObjectKeys: "passthrough",
|
|
527
552
|
allowUnrecognizedUnionMembers: true,
|
|
528
553
|
allowUnrecognizedEnumValues: true,
|
|
529
554
|
skipValidation: true,
|
|
530
555
|
breadcrumbsPrefix: ["response"],
|
|
531
556
|
}), _response.rawResponse);
|
|
557
|
+
case 404:
|
|
558
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
559
|
+
case 500:
|
|
560
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
532
561
|
default:
|
|
533
562
|
throw new errors.HydraDBError({
|
|
534
563
|
statusCode: _response.error.statusCode,
|
|
@@ -537,7 +566,7 @@ class DatabasesClient {
|
|
|
537
566
|
});
|
|
538
567
|
}
|
|
539
568
|
}
|
|
540
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/databases/
|
|
569
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/databases/{database}/metadata-schema");
|
|
541
570
|
}
|
|
542
571
|
/**
|
|
543
572
|
* Add new metadata schema fields to an existing database. Additive only — existing fields cannot be deleted or retyped.
|
|
@@ -606,21 +635,9 @@ class DatabasesClient {
|
|
|
606
635
|
case 404:
|
|
607
636
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
608
637
|
case 409:
|
|
609
|
-
throw new HydraDB.ConflictError(
|
|
610
|
-
unrecognizedObjectKeys: "passthrough",
|
|
611
|
-
allowUnrecognizedUnionMembers: true,
|
|
612
|
-
allowUnrecognizedEnumValues: true,
|
|
613
|
-
skipValidation: true,
|
|
614
|
-
breadcrumbsPrefix: ["response"],
|
|
615
|
-
}), _response.rawResponse);
|
|
638
|
+
throw new HydraDB.ConflictError(_response.error.body, _response.rawResponse);
|
|
616
639
|
case 500:
|
|
617
|
-
throw new HydraDB.InternalServerError(
|
|
618
|
-
unrecognizedObjectKeys: "passthrough",
|
|
619
|
-
allowUnrecognizedUnionMembers: true,
|
|
620
|
-
allowUnrecognizedEnumValues: true,
|
|
621
|
-
skipValidation: true,
|
|
622
|
-
breadcrumbsPrefix: ["response"],
|
|
623
|
-
}), _response.rawResponse);
|
|
640
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
624
641
|
default:
|
|
625
642
|
throw new errors.HydraDBError({
|
|
626
643
|
statusCode: _response.error.statusCode,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CollectionsDatabasesRequest } from "./CollectionsDatabasesRequest.js";
|
|
2
2
|
export type { DeleteDatabasesRequest } from "./DeleteDatabasesRequest.js";
|
|
3
|
+
export type { GetMetadataSchemaDatabasesRequest } from "./GetMetadataSchemaDatabasesRequest.js";
|
|
3
4
|
export type { StatsDatabasesRequest } from "./StatsDatabasesRequest.js";
|
|
4
5
|
export type { StatusDatabasesRequest } from "./StatusDatabasesRequest.js";
|
|
5
6
|
export type { TenantsTenantCreateRequest } from "./TenantsTenantCreateRequest.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as HydraDB from "../../../index.js";
|
|
5
|
+
export declare namespace FeedbackClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class FeedbackClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<FeedbackClient.Options>;
|
|
12
|
+
constructor(options?: FeedbackClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Record feedback about a query that already ran, correlated by the `request_id` returned in that query's `response.meta.request_id`. Accepts a free-text comment plus an optional positive/negative/neutral rating, and is intended for both end users and agents (`source`). Feeds internal retrieval-quality validation; it does not change the result of the original query.
|
|
15
|
+
*
|
|
16
|
+
* @param {HydraDB.FeedbackSubmitRequest} request
|
|
17
|
+
* @param {FeedbackClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
20
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
21
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.feedback.submit({
|
|
25
|
+
* feedback: {
|
|
26
|
+
* "key": "value"
|
|
27
|
+
* }
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
submit(request: HydraDB.FeedbackSubmitRequest, requestOptions?: FeedbackClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeFeedbackSubmitResponse>;
|
|
31
|
+
private __submit;
|
|
32
|
+
}
|