@hydradb/sdk 2.0.0 → 2.0.1
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 +10 -13
- package/dist/Client.js +40 -34
- package/dist/api/client/requests/SearchQueryRequest.d.ts +39 -0
- package/dist/api/client/requests/index.d.ts +1 -1
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/ConflictError.d.ts +6 -0
- package/dist/api/errors/{UnauthorizedError.js → ConflictError.js} +5 -5
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -1
- package/dist/api/errors/index.d.ts +1 -2
- package/dist/api/errors/index.js +1 -2
- package/dist/api/resources/context/client/Client.d.ts +39 -64
- package/dist/api/resources/context/client/Client.js +180 -232
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +18 -0
- package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +9 -9
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +15 -0
- package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +12 -12
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +10 -0
- package/dist/api/resources/context/client/requests/StatusContextRequest.d.ts +9 -8
- package/dist/api/resources/context/client/requests/index.d.ts +3 -3
- package/dist/api/resources/embeddings/client/Client.d.ts +80 -0
- package/dist/api/resources/embeddings/client/Client.js +351 -0
- package/dist/api/resources/embeddings/client/index.d.ts +1 -0
- package/dist/api/resources/embeddings/client/index.js +17 -0
- package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +18 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +15 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +14 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +16 -0
- package/dist/api/resources/embeddings/client/requests/index.d.ts +4 -0
- package/dist/api/resources/embeddings/client/requests/index.js +2 -0
- package/dist/api/resources/embeddings/exports.d.ts +2 -0
- package/dist/api/resources/embeddings/exports.js +21 -0
- package/dist/api/resources/embeddings/index.d.ts +1 -0
- package/dist/api/resources/embeddings/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/tenants/client/Client.d.ts +30 -45
- package/dist/api/resources/tenants/client/Client.js +168 -131
- package/dist/api/resources/tenants/client/requests/DeleteTenantsRequest.d.ts +1 -1
- package/dist/api/resources/tenants/client/requests/StatsTenantsRequest.d.ts +1 -1
- package/dist/api/resources/tenants/client/requests/StatusTenantsRequest.d.ts +1 -1
- package/dist/api/resources/tenants/client/requests/SubTenantsTenantsRequest.d.ts +1 -1
- package/dist/api/resources/tenants/client/requests/TenantsTenantCreateRequest.d.ts +11 -0
- package/dist/api/resources/tenants/client/requests/index.d.ts +1 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +18 -16
- package/dist/api/resources/webhooks/client/Client.js +89 -52
- package/dist/api/resources/webhooks/client/requests/GetDeliveryWebhooksRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.d.ts +5 -5
- package/dist/api/resources/webhooks/client/requests/RetryDeliveryWebhooksRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +9 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/api/types/DashboardPaginationMeta.d.ts +8 -0
- package/dist/api/types/EmbeddingsDeleteResult.d.ts +5 -0
- package/dist/api/types/EmbeddingsInsertResult.d.ts +6 -0
- package/dist/api/types/EmbeddingsRawEmbeddingDocument.d.ts +8 -0
- package/dist/api/types/EmbeddingsRawEmbeddingSearchResult.d.ts +8 -0
- package/dist/api/types/EmbeddingsRawEmbeddingVector.d.ts +5 -0
- package/dist/api/types/FetchV2SourceFetchResponse.d.ts +12 -0
- package/dist/api/types/GraphEntity.d.ts +8 -0
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +9 -0
- package/dist/api/types/GraphRelationEvidence.d.ts +16 -0
- package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
- package/dist/api/types/HandlerApiError.d.ts +4 -0
- package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeFetchV2SourceFetchResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeGraphGraphRelationsResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2BatchProcessingStatus.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeListV2SourceListResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeTenantsInfraStatusResponseV2.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeTenantsSubTenantIdsResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantCreateAcceptedResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantDeleteResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantIdsResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantStatsResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksDeliveryItem.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksDeliveryListResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksRetryResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookDeleteResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookGetResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookRegisterResponse.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookTestResponse.d.ts +7 -0
- package/dist/api/types/HandlerErrorDetail.d.ts +5 -0
- package/dist/api/types/HandlerErrorResponse.d.ts +4 -0
- package/dist/api/types/HandlerResponseMeta.d.ts +4 -0
- package/dist/api/types/IngestionSourceStatus.d.ts +7 -0
- package/dist/api/types/{SourceStatus.js → IngestionSourceStatus.js} +2 -2
- package/dist/api/types/IngestionV2BatchProcessingStatus.d.ts +4 -0
- package/dist/api/types/IngestionV2ProcessingStatus.d.ts +8 -0
- package/dist/api/types/IngestionV2SourceUploadResponse.d.ts +8 -0
- package/dist/api/types/IngestionV2SourceUploadResultItem.d.ts +10 -0
- package/dist/api/types/ListContentFilter.d.ts +5 -0
- package/dist/api/types/ListSourceListResponse.d.ts +8 -0
- package/dist/api/types/ListV2SourceListResponse.d.ts +4 -0
- package/dist/api/types/SearchGraphContext.d.ts +7 -0
- package/dist/api/types/SearchOperator.d.ts +6 -0
- package/dist/api/types/{Bm25OperatorType.js → SearchOperator.js} +2 -2
- package/dist/api/types/SearchPathTriplet.d.ts +5 -0
- package/dist/api/types/SearchQueryBy.d.ts +5 -0
- package/dist/api/types/{QueryBy.js → SearchQueryBy.js} +2 -3
- package/dist/api/types/SearchRecallMode.d.ts +5 -0
- package/dist/api/types/{RetrieveMode.js → SearchRecallMode.js} +2 -2
- package/dist/api/types/SearchScoredPathResponse.d.ts +8 -0
- package/dist/api/types/SearchSourceInfo.d.ts +21 -0
- package/dist/api/types/SearchSourceType.d.ts +11 -0
- package/dist/api/types/SearchSourceType.js +14 -0
- package/dist/api/types/SearchV2Chunk.d.ts +18 -0
- package/dist/api/types/SearchV2RetrievalResult.d.ts +7 -0
- package/dist/api/types/SourcesSourceDeleteResponse.d.ts +7 -0
- package/dist/api/types/SourcesSourceDeleteResultItem.d.ts +5 -0
- package/dist/api/types/TenantsCollectionStats.d.ts +4 -0
- package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +10 -0
- package/dist/api/types/TenantsFailedTenant.d.ts +4 -0
- package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +7 -0
- package/dist/api/types/TenantsInfraV2.d.ts +6 -0
- package/dist/api/types/{MilvusDataType.d.ts → TenantsMilvusDataType.d.ts} +2 -5
- package/dist/api/types/{MilvusDataType.js → TenantsMilvusDataType.js} +2 -5
- package/dist/api/types/TenantsSubTenantIdsResponse.d.ts +4 -0
- package/dist/api/types/TenantsTenantCreateAcceptedResponse.d.ts +5 -0
- package/dist/api/types/TenantsTenantDeleteResponse.d.ts +5 -0
- package/dist/api/types/TenantsTenantIdsResponse.d.ts +6 -0
- package/dist/api/types/TenantsTenantStatsResponse.d.ts +7 -0
- package/dist/api/types/TenantsVectorstoreStatusV2.d.ts +4 -0
- package/dist/api/types/WebhooksDeliveryItem.d.ts +12 -0
- package/dist/api/types/WebhooksDeliveryItem.js +3 -0
- package/dist/api/types/WebhooksDeliveryListResponse.d.ts +6 -0
- package/dist/api/types/WebhooksDeliveryListResponse.js +3 -0
- package/dist/api/types/WebhooksRetryResponse.d.ts +5 -0
- package/dist/api/types/WebhooksRetryResponse.js +3 -0
- package/dist/api/types/WebhooksWebhookDeleteResponse.d.ts +4 -0
- package/dist/api/types/WebhooksWebhookDeleteResponse.js +3 -0
- package/dist/api/types/WebhooksWebhookGetResponse.d.ts +6 -0
- package/dist/api/types/WebhooksWebhookGetResponse.js +3 -0
- package/dist/api/types/WebhooksWebhookRegisterResponse.d.ts +7 -0
- package/dist/api/types/WebhooksWebhookRegisterResponse.js +3 -0
- package/dist/api/types/WebhooksWebhookTestResponse.d.ts +5 -0
- package/dist/api/types/WebhooksWebhookTestResponse.js +3 -0
- package/dist/api/types/index.d.ts +77 -78
- package/dist/api/types/index.js +77 -78
- package/dist/auth/BearerAuthProvider.d.ts +1 -1
- package/dist/auth/BearerAuthProvider.js +1 -1
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/helpers/buildString.d.ts +3 -4
- package/dist/helpers/buildString.js +16 -16
- package/dist/helpers/index.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/serialization/client/requests/SearchQueryRequest.d.ts +30 -0
- package/dist/serialization/client/requests/{QueryRequest.js → SearchQueryRequest.js} +22 -20
- package/dist/serialization/client/requests/index.d.ts +1 -1
- package/dist/serialization/client/requests/index.js +3 -3
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +17 -0
- package/dist/serialization/resources/context/client/requests/{V2ListContentRequest.js → ListV2ListContentRequest.js} +9 -10
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +12 -0
- package/dist/serialization/resources/context/client/requests/{V2SourceDeleteRequest.js → SourcesV2SourceDeleteRequest.js} +6 -7
- package/dist/serialization/resources/context/client/requests/index.d.ts +2 -2
- package/dist/serialization/resources/context/client/requests/index.js +5 -5
- package/dist/serialization/resources/embeddings/client/index.d.ts +1 -0
- package/dist/serialization/resources/embeddings/client/index.js +17 -0
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +14 -0
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js +46 -0
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +13 -0
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js +45 -0
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +14 -0
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js +46 -0
- package/dist/serialization/resources/embeddings/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/embeddings/client/requests/index.js +9 -0
- package/dist/serialization/resources/embeddings/index.d.ts +1 -0
- package/dist/serialization/resources/embeddings/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +6 -0
- package/dist/serialization/resources/index.js +7 -1
- package/dist/serialization/resources/tenants/client/index.d.ts +1 -0
- package/dist/serialization/resources/tenants/client/index.js +17 -0
- package/dist/serialization/resources/tenants/client/requests/TenantsTenantCreateRequest.d.ts +13 -0
- package/dist/serialization/{types/TenantCreateRequest.js → resources/tenants/client/requests/TenantsTenantCreateRequest.js} +7 -7
- package/dist/serialization/resources/tenants/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/tenants/client/requests/index.js +5 -0
- package/dist/serialization/resources/tenants/index.d.ts +1 -0
- package/dist/serialization/resources/tenants/index.js +17 -0
- package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/index.js +17 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +11 -0
- package/dist/serialization/{types/WebhookRegisterRequest.js → resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.js} +5 -5
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/index.js +5 -0
- package/dist/serialization/resources/webhooks/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/index.js +17 -0
- package/dist/serialization/types/DashboardPaginationMeta.d.ts +14 -0
- package/dist/serialization/types/{PaginationMeta.js → DashboardPaginationMeta.js} +8 -8
- package/dist/serialization/types/EmbeddingsDeleteResult.d.ts +11 -0
- package/dist/serialization/types/{PathTriplet.js → EmbeddingsDeleteResult.js} +5 -7
- package/dist/serialization/types/EmbeddingsInsertResult.d.ts +12 -0
- package/dist/serialization/types/EmbeddingsInsertResult.js +44 -0
- package/dist/serialization/types/EmbeddingsRawEmbeddingDocument.d.ts +14 -0
- package/dist/serialization/types/EmbeddingsRawEmbeddingDocument.js +46 -0
- package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.d.ts +14 -0
- package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.js +46 -0
- package/dist/serialization/types/EmbeddingsRawEmbeddingVector.d.ts +10 -0
- package/dist/serialization/types/EmbeddingsRawEmbeddingVector.js +42 -0
- package/dist/serialization/types/FetchV2SourceFetchResponse.d.ts +18 -0
- package/dist/serialization/types/{V2SourceFetchResponse.js → FetchV2SourceFetchResponse.js} +11 -10
- package/dist/serialization/types/GraphEntity.d.ts +13 -0
- package/dist/serialization/types/{Entity.js → GraphEntity.js} +6 -6
- package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +14 -0
- package/dist/serialization/types/{SourceGraphRelationsResponse.js → GraphGraphRelationsResponse.js} +6 -6
- package/dist/serialization/types/GraphRelationEvidence.d.ts +18 -0
- package/dist/serialization/types/{RelationEvidence.js → GraphRelationEvidence.js} +11 -11
- package/dist/serialization/types/GraphTripletWithEvidence.d.ts +14 -0
- package/dist/serialization/types/{TripletWithEvidence.js → GraphTripletWithEvidence.js} +8 -8
- package/dist/serialization/types/HandlerApiError.d.ts +10 -0
- package/dist/serialization/types/{WebhookDeleteResponse.js → HandlerApiError.js} +3 -3
- package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +15 -0
- package/dist/serialization/types/{WebhookTestApiResponse.js → HandlerEnvelopeEmbeddingsDeleteResult.js} +8 -8
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +15 -0
- package/dist/serialization/types/{SourceDeleteApiResponse.js → HandlerEnvelopeEmbeddingsInsertResult.js} +8 -8
- package/dist/serialization/types/HandlerEnvelopeFetchV2SourceFetchResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeFetchV2SourceFetchResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeGraphGraphRelationsResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeGraphGraphRelationsResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeIngestionV2BatchProcessingStatus.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeIngestionV2BatchProcessingStatus.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +15 -0
- package/dist/serialization/types/{WebhookRegisterApiResponse.js → HandlerEnvelopeIngestionV2SourceUploadResponse.js} +8 -8
- package/dist/serialization/types/HandlerEnvelopeListV2SourceListResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeListV2SourceListResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResult.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeSourcesSourceDeleteResponse.d.ts +15 -0
- package/dist/serialization/types/{QueryApiResponse.js → HandlerEnvelopeSourcesSourceDeleteResponse.js} +8 -8
- package/dist/serialization/types/HandlerEnvelopeTenantsInfraStatusResponseV2.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsInfraStatusResponseV2.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantIdsResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsSubTenantIdsResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantCreateAcceptedResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantCreateAcceptedResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantDeleteResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantDeleteResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantIdsResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantIdsResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantStatsResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantStatsResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksDeliveryItem.d.ts +15 -0
- package/dist/serialization/types/{TenantStatsApiResponse.js → HandlerEnvelopeWebhooksDeliveryItem.js} +8 -8
- package/dist/serialization/types/HandlerEnvelopeWebhooksDeliveryListResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksDeliveryListResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksRetryResponse.d.ts +15 -0
- package/dist/serialization/types/{SourceFetchApiResponse.js → HandlerEnvelopeWebhooksRetryResponse.js} +8 -8
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookDeleteResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookDeleteResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookGetResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookGetResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookRegisterResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookRegisterResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookTestResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksWebhookTestResponse.js +47 -0
- package/dist/serialization/types/HandlerErrorDetail.d.ts +11 -0
- package/dist/serialization/types/{DeleteUserMemoryResponse.js → HandlerErrorDetail.js} +4 -3
- package/dist/serialization/types/HandlerErrorResponse.d.ts +10 -0
- package/dist/serialization/types/{VectorstoreStatus.js → HandlerErrorResponse.js} +4 -4
- package/dist/serialization/types/HandlerResponseMeta.d.ts +10 -0
- package/dist/serialization/types/{ResponseMeta.js → HandlerResponseMeta.js} +3 -3
- package/dist/serialization/types/{SourceStatus.d.ts → IngestionSourceStatus.d.ts} +2 -2
- package/dist/serialization/types/{QueryBy.js → IngestionSourceStatus.js} +2 -5
- package/dist/serialization/types/IngestionV2BatchProcessingStatus.d.ts +10 -0
- package/dist/serialization/types/IngestionV2BatchProcessingStatus.js +42 -0
- package/dist/serialization/types/IngestionV2ProcessingStatus.d.ts +14 -0
- package/dist/serialization/types/{V2ProcessingStatus.js → IngestionV2ProcessingStatus.js} +5 -6
- package/dist/serialization/types/IngestionV2SourceUploadResponse.d.ts +14 -0
- package/dist/serialization/types/{V2AddMemoryResponse.js → IngestionV2SourceUploadResponse.js} +6 -6
- package/dist/serialization/types/IngestionV2SourceUploadResultItem.d.ts +16 -0
- package/dist/serialization/types/{V2MemoryResultItem.js → IngestionV2SourceUploadResultItem.js} +10 -9
- package/dist/serialization/types/ListContentFilter.d.ts +11 -0
- package/dist/serialization/types/{ContentFilter.js → ListContentFilter.js} +5 -5
- package/dist/serialization/types/ListSourceListResponse.d.ts +14 -0
- package/dist/serialization/types/{ListUserMemoriesResponse.js → ListSourceListResponse.js} +8 -6
- package/dist/serialization/types/ListV2SourceListResponse.d.ts +10 -0
- package/dist/serialization/types/{V2BatchProcessingStatus.js → ListV2SourceListResponse.js} +4 -4
- package/dist/serialization/types/SearchGraphContext.d.ts +13 -0
- package/dist/serialization/types/{GraphContext.js → SearchGraphContext.js} +6 -6
- package/dist/serialization/types/{Bm25OperatorType.d.ts → SearchOperator.d.ts} +2 -2
- package/dist/serialization/types/{SourceType.js → SearchOperator.js} +2 -2
- package/dist/serialization/types/SearchPathTriplet.d.ts +11 -0
- package/dist/serialization/types/SearchPathTriplet.js +43 -0
- package/dist/serialization/types/{QueryBy.d.ts → SearchQueryBy.d.ts} +2 -2
- package/dist/serialization/types/{IngestType.js → SearchQueryBy.js} +2 -2
- package/dist/serialization/types/{RetrieveMode.d.ts → SearchRecallMode.d.ts} +2 -2
- package/dist/serialization/types/{RetrieveMode.js → SearchRecallMode.js} +2 -2
- package/dist/serialization/types/SearchScoredPathResponse.d.ts +14 -0
- package/dist/serialization/types/{ScoredPathResponse.js → SearchScoredPathResponse.js} +8 -8
- package/dist/serialization/types/{SourceInfo.d.ts → SearchSourceInfo.d.ts} +10 -10
- package/dist/serialization/types/{SourceInfo.js → SearchSourceInfo.js} +10 -10
- package/dist/serialization/types/{SourceType.d.ts → SearchSourceType.d.ts} +2 -2
- package/dist/serialization/types/{Bm25OperatorType.js → SearchSourceType.js} +2 -2
- package/dist/serialization/types/SearchV2Chunk.d.ts +20 -0
- package/dist/serialization/types/{V2Chunk.js → SearchV2Chunk.js} +12 -14
- package/dist/serialization/types/SearchV2RetrievalResult.d.ts +15 -0
- package/dist/serialization/types/{V2RetrievalResult.js → SearchV2RetrievalResult.js} +9 -9
- package/dist/serialization/types/SourcesSourceDeleteResponse.d.ts +13 -0
- package/dist/serialization/types/{SourceDeleteResponse.js → SourcesSourceDeleteResponse.js} +6 -6
- package/dist/serialization/types/SourcesSourceDeleteResultItem.d.ts +11 -0
- package/dist/serialization/types/SourcesSourceDeleteResultItem.js +43 -0
- package/dist/serialization/types/TenantsCollectionStats.d.ts +10 -0
- package/dist/serialization/types/{CollectionStats.js → TenantsCollectionStats.js} +4 -4
- package/dist/serialization/types/{CustomPropertyDefinition.d.ts → TenantsCustomPropertyDefinition.d.ts} +7 -8
- package/dist/serialization/types/{CustomPropertyDefinition.js → TenantsCustomPropertyDefinition.js} +7 -8
- package/dist/serialization/types/TenantsFailedTenant.d.ts +10 -0
- package/dist/serialization/types/TenantsFailedTenant.js +42 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +13 -0
- package/dist/serialization/types/{InfraStatusResponseV2.js → TenantsInfraStatusResponseV2.js} +6 -6
- package/dist/serialization/types/TenantsInfraV2.d.ts +12 -0
- package/dist/serialization/types/{InfraV2.js → TenantsInfraV2.js} +6 -7
- package/dist/serialization/types/TenantsMilvusDataType.d.ts +7 -0
- package/dist/serialization/types/{MilvusDataType.js → TenantsMilvusDataType.js} +2 -4
- package/dist/serialization/types/{SubTenantIdsResponse.d.ts → TenantsSubTenantIdsResponse.d.ts} +3 -3
- package/dist/serialization/types/{SubTenantIdsResponse.js → TenantsSubTenantIdsResponse.js} +3 -3
- package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.d.ts +11 -0
- package/dist/serialization/types/{TenantCreateAcceptedResponse.js → TenantsTenantCreateAcceptedResponse.js} +4 -4
- package/dist/serialization/types/TenantsTenantDeleteResponse.d.ts +11 -0
- package/dist/serialization/types/{TenantDeleteResponse.js → TenantsTenantDeleteResponse.js} +4 -4
- package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +12 -0
- package/dist/serialization/types/{TenantIdsResponse.js → TenantsTenantIdsResponse.js} +5 -6
- package/dist/serialization/types/TenantsTenantStatsResponse.d.ts +13 -0
- package/dist/serialization/types/{TenantStatsResponse.js → TenantsTenantStatsResponse.js} +6 -6
- package/dist/serialization/types/TenantsVectorstoreStatusV2.d.ts +10 -0
- package/dist/serialization/types/{ErrorDetail.js → TenantsVectorstoreStatusV2.js} +4 -4
- package/dist/serialization/types/WebhooksDeliveryItem.d.ts +18 -0
- package/dist/serialization/types/{DeliveryItem.js → WebhooksDeliveryItem.js} +12 -12
- package/dist/serialization/types/WebhooksDeliveryListResponse.d.ts +12 -0
- package/dist/serialization/types/{DeliveryListResponse.js → WebhooksDeliveryListResponse.js} +6 -6
- package/dist/serialization/types/WebhooksRetryResponse.d.ts +11 -0
- package/dist/serialization/types/{RetryResponse.js → WebhooksRetryResponse.js} +4 -4
- package/dist/serialization/types/WebhooksWebhookDeleteResponse.d.ts +10 -0
- package/dist/serialization/types/{SourceDeleteResultItem.js → WebhooksWebhookDeleteResponse.js} +3 -4
- package/dist/serialization/types/WebhooksWebhookGetResponse.d.ts +12 -0
- package/dist/serialization/types/{WebhookGetResponse.js → WebhooksWebhookGetResponse.js} +6 -6
- package/dist/serialization/types/WebhooksWebhookRegisterResponse.d.ts +13 -0
- package/dist/serialization/types/{WebhookRegisterResponse.js → WebhooksWebhookRegisterResponse.js} +6 -6
- package/dist/serialization/types/WebhooksWebhookTestResponse.d.ts +11 -0
- package/dist/serialization/types/{WebhookTestResponse.js → WebhooksWebhookTestResponse.js} +4 -4
- package/dist/serialization/types/index.d.ts +77 -78
- package/dist/serialization/types/index.js +77 -78
- package/package.json +1 -1
- package/dist/api/client/requests/QueryRequest.d.ts +0 -40
- package/dist/api/errors/ServiceUnavailableError.d.ts +0 -5
- package/dist/api/errors/ServiceUnavailableError.js +0 -54
- package/dist/api/errors/UnauthorizedError.d.ts +0 -5
- package/dist/api/resources/context/client/requests/BodyIngestContextIngestPost.d.ts +0 -26
- package/dist/api/resources/context/client/requests/V2ListContentRequest.d.ts +0 -25
- package/dist/api/resources/context/client/requests/V2SourceDeleteRequest.d.ts +0 -16
- package/dist/api/types/Bm25OperatorType.d.ts +0 -6
- package/dist/api/types/CollectionStats.d.ts +0 -6
- package/dist/api/types/ContentFilter.d.ts +0 -28
- package/dist/api/types/CustomPropertyDefinition.d.ts +0 -34
- package/dist/api/types/DeleteUserMemoryResponse.d.ts +0 -9
- package/dist/api/types/DeliveryItem.d.ts +0 -12
- package/dist/api/types/DeliveryListResponse.d.ts +0 -7
- package/dist/api/types/Entity.d.ts +0 -12
- package/dist/api/types/ErrorDetail.d.ts +0 -4
- package/dist/api/types/GraphContext.d.ts +0 -11
- package/dist/api/types/InfraStatusResponseV2.d.ts +0 -17
- package/dist/api/types/InfraV2.d.ts +0 -11
- package/dist/api/types/IngestType.d.ts +0 -5
- package/dist/api/types/IngestType.js +0 -8
- package/dist/api/types/ListUserMemoriesResponse.d.ts +0 -14
- package/dist/api/types/PaginationMeta.d.ts +0 -17
- package/dist/api/types/PathTriplet.d.ts +0 -6
- package/dist/api/types/QueryApiResponse.d.ts +0 -7
- package/dist/api/types/QueryBy.d.ts +0 -6
- package/dist/api/types/QueryRequestAlpha.d.ts +0 -4
- package/dist/api/types/RelationEvidence.d.ts +0 -25
- package/dist/api/types/ResponseMeta.d.ts +0 -4
- package/dist/api/types/RetrieveMode.d.ts +0 -5
- package/dist/api/types/RetryResponse.d.ts +0 -5
- package/dist/api/types/ScoredPathResponse.d.ts +0 -10
- package/dist/api/types/SourceDeleteApiResponse.d.ts +0 -7
- package/dist/api/types/SourceDeleteApiResponseData.d.ts +0 -2
- package/dist/api/types/SourceDeleteResponse.d.ts +0 -11
- package/dist/api/types/SourceDeleteResultItem.d.ts +0 -11
- package/dist/api/types/SourceFetchApiResponse.d.ts +0 -7
- package/dist/api/types/SourceGraphRelationsResponse.d.ts +0 -13
- package/dist/api/types/SourceInfo.d.ts +0 -24
- package/dist/api/types/SourceIngestApiResponse.d.ts +0 -7
- package/dist/api/types/SourceIngestApiResponseData.d.ts +0 -2
- package/dist/api/types/SourceListApiResponse.d.ts +0 -7
- package/dist/api/types/SourceListApiResponseData.d.ts +0 -2
- package/dist/api/types/SourceRelationsApiResponse.d.ts +0 -7
- package/dist/api/types/SourceStatus.d.ts +0 -7
- package/dist/api/types/SourceStatusApiResponse.d.ts +0 -7
- package/dist/api/types/SourceType.d.ts +0 -7
- package/dist/api/types/SourceType.js +0 -10
- package/dist/api/types/SubTenantIdsResponse.d.ts +0 -9
- package/dist/api/types/TenantCreateAcceptedResponse.d.ts +0 -11
- package/dist/api/types/TenantCreateApiResponse.d.ts +0 -7
- package/dist/api/types/TenantCreateRequest.d.ts +0 -17
- package/dist/api/types/TenantDeleteApiResponse.d.ts +0 -7
- package/dist/api/types/TenantDeleteResponse.d.ts +0 -6
- package/dist/api/types/TenantIdsResponse.d.ts +0 -8
- package/dist/api/types/TenantInfraStatusApiResponse.d.ts +0 -7
- package/dist/api/types/TenantListApiResponse.d.ts +0 -7
- package/dist/api/types/TenantStatsApiResponse.d.ts +0 -7
- package/dist/api/types/TenantStatsResponse.d.ts +0 -11
- package/dist/api/types/TenantSubTenantsApiResponse.d.ts +0 -7
- package/dist/api/types/TripletWithEvidence.d.ts +0 -12
- package/dist/api/types/UserMemory.d.ts +0 -11
- package/dist/api/types/V2AddMemoryResponse.d.ts +0 -11
- package/dist/api/types/V2BatchProcessingStatus.d.ts +0 -5
- package/dist/api/types/V2Chunk.d.ts +0 -29
- package/dist/api/types/V2MemoryResultItem.d.ts +0 -15
- package/dist/api/types/V2ProcessingStatus.d.ts +0 -18
- package/dist/api/types/V2ProcessingStatusIndexingStatus.d.ts +0 -10
- package/dist/api/types/V2ProcessingStatusIndexingStatus.js +0 -13
- package/dist/api/types/V2RetrievalResult.d.ts +0 -12
- package/dist/api/types/V2SourceFetchResponse.d.ts +0 -23
- package/dist/api/types/V2SourceListResponse.d.ts +0 -1
- package/dist/api/types/V2SourceUploadResponse.d.ts +0 -11
- package/dist/api/types/V2SourceUploadResultItem.d.ts +0 -13
- package/dist/api/types/VectorstoreStatus.d.ts +0 -6
- package/dist/api/types/WebhookDeleteApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookDeleteResponse.d.ts +0 -4
- package/dist/api/types/WebhookDeliveryItemApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookDeliveryListApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookGetApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookGetResponse.d.ts +0 -6
- package/dist/api/types/WebhookRegisterApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookRegisterRequest.d.ts +0 -8
- package/dist/api/types/WebhookRegisterResponse.d.ts +0 -7
- package/dist/api/types/WebhookRetryApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookTestApiResponse.d.ts +0 -7
- package/dist/api/types/WebhookTestResponse.d.ts +0 -5
- package/dist/serialization/client/requests/QueryRequest.d.ts +0 -28
- package/dist/serialization/resources/context/client/requests/V2ListContentRequest.d.ts +0 -18
- package/dist/serialization/resources/context/client/requests/V2SourceDeleteRequest.d.ts +0 -13
- package/dist/serialization/types/CollectionStats.d.ts +0 -10
- package/dist/serialization/types/ContentFilter.d.ts +0 -11
- package/dist/serialization/types/DeleteUserMemoryResponse.d.ts +0 -10
- package/dist/serialization/types/DeliveryItem.d.ts +0 -18
- package/dist/serialization/types/DeliveryListResponse.d.ts +0 -12
- package/dist/serialization/types/Entity.d.ts +0 -13
- package/dist/serialization/types/ErrorDetail.d.ts +0 -10
- package/dist/serialization/types/GraphContext.d.ts +0 -13
- package/dist/serialization/types/InfraStatusResponseV2.d.ts +0 -13
- package/dist/serialization/types/InfraV2.d.ts +0 -13
- package/dist/serialization/types/IngestType.d.ts +0 -7
- package/dist/serialization/types/ListUserMemoriesResponse.d.ts +0 -14
- package/dist/serialization/types/MilvusDataType.d.ts +0 -7
- package/dist/serialization/types/PaginationMeta.d.ts +0 -14
- package/dist/serialization/types/PathTriplet.d.ts +0 -13
- package/dist/serialization/types/QueryApiResponse.d.ts +0 -15
- package/dist/serialization/types/QueryRequestAlpha.d.ts +0 -7
- package/dist/serialization/types/QueryRequestAlpha.js +0 -39
- package/dist/serialization/types/RelationEvidence.d.ts +0 -18
- package/dist/serialization/types/ResponseMeta.d.ts +0 -10
- package/dist/serialization/types/RetryResponse.d.ts +0 -11
- package/dist/serialization/types/ScoredPathResponse.d.ts +0 -14
- package/dist/serialization/types/SourceDeleteApiResponse.d.ts +0 -15
- package/dist/serialization/types/SourceDeleteApiResponseData.d.ts +0 -9
- package/dist/serialization/types/SourceDeleteApiResponseData.js +0 -41
- package/dist/serialization/types/SourceDeleteResponse.d.ts +0 -13
- package/dist/serialization/types/SourceDeleteResultItem.d.ts +0 -11
- package/dist/serialization/types/SourceFetchApiResponse.d.ts +0 -15
- package/dist/serialization/types/SourceGraphRelationsResponse.d.ts +0 -14
- package/dist/serialization/types/SourceIngestApiResponse.d.ts +0 -15
- package/dist/serialization/types/SourceIngestApiResponse.js +0 -47
- package/dist/serialization/types/SourceIngestApiResponseData.d.ts +0 -9
- package/dist/serialization/types/SourceIngestApiResponseData.js +0 -41
- package/dist/serialization/types/SourceListApiResponse.d.ts +0 -15
- package/dist/serialization/types/SourceListApiResponse.js +0 -47
- package/dist/serialization/types/SourceListApiResponseData.d.ts +0 -9
- package/dist/serialization/types/SourceListApiResponseData.js +0 -41
- package/dist/serialization/types/SourceRelationsApiResponse.d.ts +0 -15
- package/dist/serialization/types/SourceRelationsApiResponse.js +0 -47
- package/dist/serialization/types/SourceStatus.js +0 -39
- package/dist/serialization/types/SourceStatusApiResponse.d.ts +0 -15
- package/dist/serialization/types/SourceStatusApiResponse.js +0 -47
- package/dist/serialization/types/TenantCreateAcceptedResponse.d.ts +0 -11
- package/dist/serialization/types/TenantCreateApiResponse.d.ts +0 -15
- package/dist/serialization/types/TenantCreateApiResponse.js +0 -47
- package/dist/serialization/types/TenantCreateRequest.d.ts +0 -13
- package/dist/serialization/types/TenantDeleteApiResponse.d.ts +0 -15
- package/dist/serialization/types/TenantDeleteApiResponse.js +0 -47
- package/dist/serialization/types/TenantDeleteResponse.d.ts +0 -11
- package/dist/serialization/types/TenantIdsResponse.d.ts +0 -11
- package/dist/serialization/types/TenantInfraStatusApiResponse.d.ts +0 -15
- package/dist/serialization/types/TenantInfraStatusApiResponse.js +0 -47
- package/dist/serialization/types/TenantListApiResponse.d.ts +0 -15
- package/dist/serialization/types/TenantListApiResponse.js +0 -47
- package/dist/serialization/types/TenantStatsApiResponse.d.ts +0 -15
- package/dist/serialization/types/TenantStatsResponse.d.ts +0 -13
- package/dist/serialization/types/TenantSubTenantsApiResponse.d.ts +0 -15
- package/dist/serialization/types/TenantSubTenantsApiResponse.js +0 -47
- package/dist/serialization/types/TripletWithEvidence.d.ts +0 -14
- package/dist/serialization/types/UserMemory.d.ts +0 -11
- package/dist/serialization/types/UserMemory.js +0 -43
- package/dist/serialization/types/V2AddMemoryResponse.d.ts +0 -14
- package/dist/serialization/types/V2BatchProcessingStatus.d.ts +0 -10
- package/dist/serialization/types/V2Chunk.d.ts +0 -20
- package/dist/serialization/types/V2MemoryResultItem.d.ts +0 -15
- package/dist/serialization/types/V2ProcessingStatus.d.ts +0 -15
- package/dist/serialization/types/V2ProcessingStatusIndexingStatus.d.ts +0 -7
- package/dist/serialization/types/V2ProcessingStatusIndexingStatus.js +0 -39
- package/dist/serialization/types/V2RetrievalResult.d.ts +0 -15
- package/dist/serialization/types/V2SourceFetchResponse.d.ts +0 -17
- package/dist/serialization/types/V2SourceListResponse.d.ts +0 -7
- package/dist/serialization/types/V2SourceListResponse.js +0 -39
- package/dist/serialization/types/V2SourceUploadResponse.d.ts +0 -14
- package/dist/serialization/types/V2SourceUploadResponse.js +0 -46
- package/dist/serialization/types/V2SourceUploadResultItem.d.ts +0 -14
- package/dist/serialization/types/V2SourceUploadResultItem.js +0 -46
- package/dist/serialization/types/VectorstoreStatus.d.ts +0 -10
- package/dist/serialization/types/WebhookDeleteApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookDeleteApiResponse.js +0 -47
- package/dist/serialization/types/WebhookDeleteResponse.d.ts +0 -10
- package/dist/serialization/types/WebhookDeliveryItemApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookDeliveryItemApiResponse.js +0 -47
- package/dist/serialization/types/WebhookDeliveryListApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookDeliveryListApiResponse.js +0 -47
- package/dist/serialization/types/WebhookGetApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookGetApiResponse.js +0 -47
- package/dist/serialization/types/WebhookGetResponse.d.ts +0 -12
- package/dist/serialization/types/WebhookRegisterApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookRegisterRequest.d.ts +0 -11
- package/dist/serialization/types/WebhookRegisterResponse.d.ts +0 -13
- package/dist/serialization/types/WebhookRetryApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookRetryApiResponse.js +0 -47
- package/dist/serialization/types/WebhookTestApiResponse.d.ts +0 -15
- package/dist/serialization/types/WebhookTestResponse.d.ts +0 -11
- /package/dist/api/client/requests/{QueryRequest.js → SearchQueryRequest.js} +0 -0
- /package/dist/api/resources/context/client/requests/{BodyIngestContextIngestPost.js → IngestContextRequest.js} +0 -0
- /package/dist/api/resources/context/client/requests/{V2ListContentRequest.js → ListV2ListContentRequest.js} +0 -0
- /package/dist/api/resources/context/client/requests/{V2SourceDeleteRequest.js → SourcesV2SourceDeleteRequest.js} +0 -0
- /package/dist/api/{types/CollectionStats.js → resources/embeddings/client/requests/DeleteEmbeddingsRequest.js} +0 -0
- /package/dist/api/{types/ContentFilter.js → resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js} +0 -0
- /package/dist/api/{types/CustomPropertyDefinition.js → resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js} +0 -0
- /package/dist/api/{types/DeleteUserMemoryResponse.js → resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js} +0 -0
- /package/dist/api/{types/DeliveryItem.js → resources/tenants/client/requests/TenantsTenantCreateRequest.js} +0 -0
- /package/dist/api/{types/DeliveryListResponse.js → resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.js} +0 -0
- /package/dist/api/types/{Entity.js → DashboardPaginationMeta.js} +0 -0
- /package/dist/api/types/{ErrorDetail.js → EmbeddingsDeleteResult.js} +0 -0
- /package/dist/api/types/{GraphContext.js → EmbeddingsInsertResult.js} +0 -0
- /package/dist/api/types/{InfraStatusResponseV2.js → EmbeddingsRawEmbeddingDocument.js} +0 -0
- /package/dist/api/types/{InfraV2.js → EmbeddingsRawEmbeddingSearchResult.js} +0 -0
- /package/dist/api/types/{ListUserMemoriesResponse.js → EmbeddingsRawEmbeddingVector.js} +0 -0
- /package/dist/api/types/{PaginationMeta.js → FetchV2SourceFetchResponse.js} +0 -0
- /package/dist/api/types/{PathTriplet.js → GraphEntity.js} +0 -0
- /package/dist/api/types/{QueryApiResponse.js → GraphGraphRelationsResponse.js} +0 -0
- /package/dist/api/types/{QueryRequestAlpha.js → GraphRelationEvidence.js} +0 -0
- /package/dist/api/types/{RelationEvidence.js → GraphTripletWithEvidence.js} +0 -0
- /package/dist/api/types/{ResponseMeta.js → HandlerApiError.js} +0 -0
- /package/dist/api/types/{RetryResponse.js → HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js} +0 -0
- /package/dist/api/types/{ScoredPathResponse.js → HandlerEnvelopeEmbeddingsDeleteResult.js} +0 -0
- /package/dist/api/types/{SourceDeleteApiResponse.js → HandlerEnvelopeEmbeddingsInsertResult.js} +0 -0
- /package/dist/api/types/{SourceDeleteApiResponseData.js → HandlerEnvelopeFetchV2SourceFetchResponse.js} +0 -0
- /package/dist/api/types/{SourceDeleteResponse.js → HandlerEnvelopeGraphGraphRelationsResponse.js} +0 -0
- /package/dist/api/types/{SourceDeleteResultItem.js → HandlerEnvelopeIngestionV2BatchProcessingStatus.js} +0 -0
- /package/dist/api/types/{SourceFetchApiResponse.js → HandlerEnvelopeIngestionV2SourceUploadResponse.js} +0 -0
- /package/dist/api/types/{SourceGraphRelationsResponse.js → HandlerEnvelopeListV2SourceListResponse.js} +0 -0
- /package/dist/api/types/{SourceInfo.js → HandlerEnvelopeSearchV2RetrievalResult.js} +0 -0
- /package/dist/api/types/{SourceIngestApiResponse.js → HandlerEnvelopeSourcesSourceDeleteResponse.js} +0 -0
- /package/dist/api/types/{SourceIngestApiResponseData.js → HandlerEnvelopeTenantsInfraStatusResponseV2.js} +0 -0
- /package/dist/api/types/{SourceListApiResponse.js → HandlerEnvelopeTenantsSubTenantIdsResponse.js} +0 -0
- /package/dist/api/types/{SourceListApiResponseData.js → HandlerEnvelopeTenantsTenantCreateAcceptedResponse.js} +0 -0
- /package/dist/api/types/{SourceRelationsApiResponse.js → HandlerEnvelopeTenantsTenantDeleteResponse.js} +0 -0
- /package/dist/api/types/{SourceStatusApiResponse.js → HandlerEnvelopeTenantsTenantIdsResponse.js} +0 -0
- /package/dist/api/types/{SubTenantIdsResponse.js → HandlerEnvelopeTenantsTenantStatsResponse.js} +0 -0
- /package/dist/api/types/{TenantCreateAcceptedResponse.js → HandlerEnvelopeWebhooksDeliveryItem.js} +0 -0
- /package/dist/api/types/{TenantCreateApiResponse.js → HandlerEnvelopeWebhooksDeliveryListResponse.js} +0 -0
- /package/dist/api/types/{TenantCreateRequest.js → HandlerEnvelopeWebhooksRetryResponse.js} +0 -0
- /package/dist/api/types/{TenantDeleteApiResponse.js → HandlerEnvelopeWebhooksWebhookDeleteResponse.js} +0 -0
- /package/dist/api/types/{TenantDeleteResponse.js → HandlerEnvelopeWebhooksWebhookGetResponse.js} +0 -0
- /package/dist/api/types/{TenantIdsResponse.js → HandlerEnvelopeWebhooksWebhookRegisterResponse.js} +0 -0
- /package/dist/api/types/{TenantInfraStatusApiResponse.js → HandlerEnvelopeWebhooksWebhookTestResponse.js} +0 -0
- /package/dist/api/types/{TenantListApiResponse.js → HandlerErrorDetail.js} +0 -0
- /package/dist/api/types/{TenantStatsApiResponse.js → HandlerErrorResponse.js} +0 -0
- /package/dist/api/types/{TenantStatsResponse.js → HandlerResponseMeta.js} +0 -0
- /package/dist/api/types/{TenantSubTenantsApiResponse.js → IngestionV2BatchProcessingStatus.js} +0 -0
- /package/dist/api/types/{TripletWithEvidence.js → IngestionV2ProcessingStatus.js} +0 -0
- /package/dist/api/types/{UserMemory.js → IngestionV2SourceUploadResponse.js} +0 -0
- /package/dist/api/types/{V2AddMemoryResponse.js → IngestionV2SourceUploadResultItem.js} +0 -0
- /package/dist/api/types/{V2BatchProcessingStatus.js → ListContentFilter.js} +0 -0
- /package/dist/api/types/{V2Chunk.js → ListSourceListResponse.js} +0 -0
- /package/dist/api/types/{V2MemoryResultItem.js → ListV2SourceListResponse.js} +0 -0
- /package/dist/api/types/{V2ProcessingStatus.js → SearchGraphContext.js} +0 -0
- /package/dist/api/types/{V2RetrievalResult.js → SearchPathTriplet.js} +0 -0
- /package/dist/api/types/{V2SourceFetchResponse.js → SearchScoredPathResponse.js} +0 -0
- /package/dist/api/types/{V2SourceListResponse.js → SearchSourceInfo.js} +0 -0
- /package/dist/api/types/{V2SourceUploadResponse.js → SearchV2Chunk.js} +0 -0
- /package/dist/api/types/{V2SourceUploadResultItem.js → SearchV2RetrievalResult.js} +0 -0
- /package/dist/api/types/{VectorstoreStatus.js → SourcesSourceDeleteResponse.js} +0 -0
- /package/dist/api/types/{WebhookDeleteApiResponse.js → SourcesSourceDeleteResultItem.js} +0 -0
- /package/dist/api/types/{WebhookDeleteResponse.js → TenantsCollectionStats.js} +0 -0
- /package/dist/api/types/{WebhookDeliveryItemApiResponse.js → TenantsCustomPropertyDefinition.js} +0 -0
- /package/dist/api/types/{WebhookDeliveryListApiResponse.js → TenantsFailedTenant.js} +0 -0
- /package/dist/api/types/{WebhookGetApiResponse.js → TenantsInfraStatusResponseV2.js} +0 -0
- /package/dist/api/types/{WebhookGetResponse.js → TenantsInfraV2.js} +0 -0
- /package/dist/api/types/{WebhookRegisterApiResponse.js → TenantsSubTenantIdsResponse.js} +0 -0
- /package/dist/api/types/{WebhookRegisterRequest.js → TenantsTenantCreateAcceptedResponse.js} +0 -0
- /package/dist/api/types/{WebhookRegisterResponse.js → TenantsTenantDeleteResponse.js} +0 -0
- /package/dist/api/types/{WebhookRetryApiResponse.js → TenantsTenantIdsResponse.js} +0 -0
- /package/dist/api/types/{WebhookTestApiResponse.js → TenantsTenantStatsResponse.js} +0 -0
- /package/dist/api/types/{WebhookTestResponse.js → TenantsVectorstoreStatusV2.js} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as core from "../../../../../core/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* tenantId: "tenant_id"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface IngestContextRequest {
|
|
9
|
+
appKnowledge?: string;
|
|
10
|
+
documentMetadata?: string;
|
|
11
|
+
documents?: core.file.Uploadable | undefined;
|
|
12
|
+
graphPayload?: string;
|
|
13
|
+
memories?: string;
|
|
14
|
+
subTenantId?: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
type?: string;
|
|
17
|
+
upsert?: string;
|
|
18
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* id: "
|
|
4
|
+
* id: "id",
|
|
5
5
|
* tenantId: "tenant_1234",
|
|
6
|
-
*
|
|
6
|
+
* subTenantId: "sub_tenant_4567"
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface InspectContextRequest {
|
|
10
|
-
/** Source ID
|
|
10
|
+
/** Source ID */
|
|
11
11
|
id: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Tenant ID */
|
|
13
13
|
tenantId: string;
|
|
14
|
-
/**
|
|
15
|
-
subTenantId?: string
|
|
16
|
-
/**
|
|
17
|
-
mode?: string;
|
|
18
|
-
/** Presigned URL expiry (seconds) */
|
|
14
|
+
/** Sub-tenant ID */
|
|
15
|
+
subTenantId?: string;
|
|
16
|
+
/** Presigned URL expiry in seconds */
|
|
19
17
|
expirySeconds?: number;
|
|
18
|
+
/** Fetch mode */
|
|
19
|
+
mode?: string;
|
|
20
20
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as HydraDB from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface ListV2ListContentRequest {
|
|
7
|
+
filters?: HydraDB.ListContentFilter;
|
|
8
|
+
ids?: string[];
|
|
9
|
+
includeFields?: string[];
|
|
10
|
+
page?: number;
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
subTenantId?: string;
|
|
13
|
+
tenantId?: string;
|
|
14
|
+
type?: string;
|
|
15
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type * as HydraDB from "../../../../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* @example
|
|
4
3
|
* {
|
|
5
|
-
* tenantId: "tenant_1234"
|
|
4
|
+
* tenantId: "tenant_1234",
|
|
5
|
+
* subTenantId: "sub_tenant_4567"
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface RelationsContextRequest {
|
|
9
|
-
/**
|
|
9
|
+
/** Tenant ID */
|
|
10
10
|
tenantId: string;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
11
|
+
/** Sub-tenant ID */
|
|
12
|
+
subTenantId?: string;
|
|
13
|
+
/** Source ID (omit for tenant-wide relations) */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** Corpus type: 'knowledge' or 'memory' */
|
|
16
|
+
type?: string;
|
|
17
|
+
/** Max relations to return */
|
|
18
18
|
limit?: number;
|
|
19
|
-
/** Pagination cursor
|
|
20
|
-
cursor?: number
|
|
19
|
+
/** Pagination cursor */
|
|
20
|
+
cursor?: number;
|
|
21
21
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* tenantId: "tenant_1234"
|
|
4
|
+
* tenantId: "tenant_1234",
|
|
5
|
+
* subTenantId: "sub_tenant_4567"
|
|
5
6
|
* }
|
|
6
7
|
*/
|
|
7
8
|
export interface StatusContextRequest {
|
|
8
|
-
/** Single source ID
|
|
9
|
-
id?: string
|
|
10
|
-
/** One or more source IDs
|
|
9
|
+
/** Single source ID */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** One or more source IDs */
|
|
11
12
|
ids?: string | string[];
|
|
12
|
-
/**
|
|
13
|
-
tenantId
|
|
14
|
-
/**
|
|
15
|
-
subTenantId?: string
|
|
13
|
+
/** Tenant ID */
|
|
14
|
+
tenantId: string;
|
|
15
|
+
/** Sub-tenant ID */
|
|
16
|
+
subTenantId?: string;
|
|
16
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { IngestContextRequest } from "./IngestContextRequest.js";
|
|
2
2
|
export type { InspectContextRequest } from "./InspectContextRequest.js";
|
|
3
|
+
export type { ListV2ListContentRequest } from "./ListV2ListContentRequest.js";
|
|
3
4
|
export type { RelationsContextRequest } from "./RelationsContextRequest.js";
|
|
5
|
+
export type { SourcesV2SourceDeleteRequest } from "./SourcesV2SourceDeleteRequest.js";
|
|
4
6
|
export type { StatusContextRequest } from "./StatusContextRequest.js";
|
|
5
|
-
export type { V2ListContentRequest } from "./V2ListContentRequest.js";
|
|
6
|
-
export type { V2SourceDeleteRequest } from "./V2SourceDeleteRequest.js";
|
|
@@ -0,0 +1,80 @@
|
|
|
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 EmbeddingsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class EmbeddingsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<EmbeddingsClient.Options>;
|
|
12
|
+
constructor(options: EmbeddingsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Delete raw embeddings by source ID or chunk IDs.
|
|
15
|
+
*
|
|
16
|
+
* @param {HydraDB.DeleteEmbeddingsRequest} request
|
|
17
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.embeddings.delete({
|
|
23
|
+
* tenantId: "tenant_1234",
|
|
24
|
+
* subTenantId: "sub_tenant_4567",
|
|
25
|
+
* sourceId: "HydraDoc1234"
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
delete(request: HydraDB.DeleteEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeEmbeddingsDeleteResult>;
|
|
29
|
+
private __delete;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch raw embeddings by source ID or chunk IDs.
|
|
32
|
+
*
|
|
33
|
+
* @param {HydraDB.EmbeddingsFilterRawEmbeddingsRequest} request
|
|
34
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.embeddings.filter({
|
|
40
|
+
* subTenantId: "sub_tenant_4567",
|
|
41
|
+
* tenantId: "tenant_1234"
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
filter(request: HydraDB.EmbeddingsFilterRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult>;
|
|
45
|
+
private __filter;
|
|
46
|
+
/**
|
|
47
|
+
* Bring-your-own-embeddings: insert raw embedding vectors directly.
|
|
48
|
+
*
|
|
49
|
+
* @param {HydraDB.EmbeddingsInsertRawEmbeddingsRequest} request
|
|
50
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
53
|
+
* @throws {@link HydraDB.TooManyRequestsError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.embeddings.insert({
|
|
57
|
+
* embeddings: [{}],
|
|
58
|
+
* tenantId: "tenant_1234"
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
insert(request: HydraDB.EmbeddingsInsertRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeEmbeddingsInsertResult>;
|
|
62
|
+
private __insert;
|
|
63
|
+
/**
|
|
64
|
+
* Vector similarity search over raw embeddings.
|
|
65
|
+
*
|
|
66
|
+
* @param {HydraDB.EmbeddingsSearchRawEmbeddingsRequest} request
|
|
67
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.embeddings.search({
|
|
73
|
+
* queryEmbedding: [1.1],
|
|
74
|
+
* subTenantId: "sub_tenant_4567",
|
|
75
|
+
* tenantId: "tenant_1234"
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
search(request: HydraDB.EmbeddingsSearchRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult>;
|
|
79
|
+
private __search;
|
|
80
|
+
}
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.EmbeddingsClient = void 0;
|
|
38
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
39
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
42
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
43
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
44
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
45
|
+
const HydraDB = __importStar(require("../../../index.js"));
|
|
46
|
+
class EmbeddingsClient {
|
|
47
|
+
constructor(options) {
|
|
48
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Delete raw embeddings by source ID or chunk IDs.
|
|
52
|
+
*
|
|
53
|
+
* @param {HydraDB.DeleteEmbeddingsRequest} request
|
|
54
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.embeddings.delete({
|
|
60
|
+
* tenantId: "tenant_1234",
|
|
61
|
+
* subTenantId: "sub_tenant_4567",
|
|
62
|
+
* sourceId: "HydraDoc1234"
|
|
63
|
+
* })
|
|
64
|
+
*/
|
|
65
|
+
delete(request, requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
67
|
+
}
|
|
68
|
+
async __delete(request, requestOptions) {
|
|
69
|
+
const { tenantId, subTenantId, sourceId, chunkIds } = request;
|
|
70
|
+
const _queryParams = {
|
|
71
|
+
tenant_id: tenantId,
|
|
72
|
+
sub_tenant_id: subTenantId,
|
|
73
|
+
source_id: sourceId,
|
|
74
|
+
chunk_ids: chunkIds,
|
|
75
|
+
};
|
|
76
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
77
|
+
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);
|
|
78
|
+
const _response = await core.fetcher({
|
|
79
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
80
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
81
|
+
environments.HydraDBEnvironment.Default, "v2/embeddings/delete_raw_embeddings"),
|
|
82
|
+
method: "DELETE",
|
|
83
|
+
headers: _headers,
|
|
84
|
+
queryString: core.url
|
|
85
|
+
.queryBuilder()
|
|
86
|
+
.addMany(_queryParams)
|
|
87
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
88
|
+
.build(),
|
|
89
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
90
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
91
|
+
abortSignal: requestOptions?.abortSignal,
|
|
92
|
+
fetchFn: this._options?.fetch,
|
|
93
|
+
logging: this._options.logging,
|
|
94
|
+
});
|
|
95
|
+
if (_response.ok) {
|
|
96
|
+
return {
|
|
97
|
+
data: serializers.HandlerEnvelopeEmbeddingsDeleteResult.parseOrThrow(_response.body, {
|
|
98
|
+
unrecognizedObjectKeys: "passthrough",
|
|
99
|
+
allowUnrecognizedUnionMembers: true,
|
|
100
|
+
allowUnrecognizedEnumValues: true,
|
|
101
|
+
skipValidation: true,
|
|
102
|
+
breadcrumbsPrefix: ["response"],
|
|
103
|
+
}),
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (_response.error.reason === "status-code") {
|
|
108
|
+
switch (_response.error.statusCode) {
|
|
109
|
+
case 400:
|
|
110
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
111
|
+
unrecognizedObjectKeys: "passthrough",
|
|
112
|
+
allowUnrecognizedUnionMembers: true,
|
|
113
|
+
allowUnrecognizedEnumValues: true,
|
|
114
|
+
skipValidation: true,
|
|
115
|
+
breadcrumbsPrefix: ["response"],
|
|
116
|
+
}), _response.rawResponse);
|
|
117
|
+
default:
|
|
118
|
+
throw new errors.HydraDBError({
|
|
119
|
+
statusCode: _response.error.statusCode,
|
|
120
|
+
body: _response.error.body,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v2/embeddings/delete_raw_embeddings");
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Fetch raw embeddings by source ID or chunk IDs.
|
|
129
|
+
*
|
|
130
|
+
* @param {HydraDB.EmbeddingsFilterRawEmbeddingsRequest} request
|
|
131
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* await client.embeddings.filter({
|
|
137
|
+
* subTenantId: "sub_tenant_4567",
|
|
138
|
+
* tenantId: "tenant_1234"
|
|
139
|
+
* })
|
|
140
|
+
*/
|
|
141
|
+
filter(request, requestOptions) {
|
|
142
|
+
return core.HttpResponsePromise.fromPromise(this.__filter(request, requestOptions));
|
|
143
|
+
}
|
|
144
|
+
async __filter(request, requestOptions) {
|
|
145
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
146
|
+
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);
|
|
147
|
+
const _response = await core.fetcher({
|
|
148
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
149
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
150
|
+
environments.HydraDBEnvironment.Default, "v2/embeddings/filter_raw_embeddings"),
|
|
151
|
+
method: "POST",
|
|
152
|
+
headers: _headers,
|
|
153
|
+
contentType: "application/json",
|
|
154
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
155
|
+
requestType: "json",
|
|
156
|
+
body: serializers.EmbeddingsFilterRawEmbeddingsRequest.jsonOrThrow(request, {
|
|
157
|
+
unrecognizedObjectKeys: "strip",
|
|
158
|
+
omitUndefined: true,
|
|
159
|
+
}),
|
|
160
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
161
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
162
|
+
abortSignal: requestOptions?.abortSignal,
|
|
163
|
+
fetchFn: this._options?.fetch,
|
|
164
|
+
logging: this._options.logging,
|
|
165
|
+
});
|
|
166
|
+
if (_response.ok) {
|
|
167
|
+
return {
|
|
168
|
+
data: serializers.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.parseOrThrow(_response.body, {
|
|
169
|
+
unrecognizedObjectKeys: "passthrough",
|
|
170
|
+
allowUnrecognizedUnionMembers: true,
|
|
171
|
+
allowUnrecognizedEnumValues: true,
|
|
172
|
+
skipValidation: true,
|
|
173
|
+
breadcrumbsPrefix: ["response"],
|
|
174
|
+
}),
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
if (_response.error.reason === "status-code") {
|
|
179
|
+
switch (_response.error.statusCode) {
|
|
180
|
+
case 400:
|
|
181
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
182
|
+
unrecognizedObjectKeys: "passthrough",
|
|
183
|
+
allowUnrecognizedUnionMembers: true,
|
|
184
|
+
allowUnrecognizedEnumValues: true,
|
|
185
|
+
skipValidation: true,
|
|
186
|
+
breadcrumbsPrefix: ["response"],
|
|
187
|
+
}), _response.rawResponse);
|
|
188
|
+
default:
|
|
189
|
+
throw new errors.HydraDBError({
|
|
190
|
+
statusCode: _response.error.statusCode,
|
|
191
|
+
body: _response.error.body,
|
|
192
|
+
rawResponse: _response.rawResponse,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/embeddings/filter_raw_embeddings");
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Bring-your-own-embeddings: insert raw embedding vectors directly.
|
|
200
|
+
*
|
|
201
|
+
* @param {HydraDB.EmbeddingsInsertRawEmbeddingsRequest} request
|
|
202
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
|
+
*
|
|
204
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
205
|
+
* @throws {@link HydraDB.TooManyRequestsError}
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* await client.embeddings.insert({
|
|
209
|
+
* embeddings: [{}],
|
|
210
|
+
* tenantId: "tenant_1234"
|
|
211
|
+
* })
|
|
212
|
+
*/
|
|
213
|
+
insert(request, requestOptions) {
|
|
214
|
+
return core.HttpResponsePromise.fromPromise(this.__insert(request, requestOptions));
|
|
215
|
+
}
|
|
216
|
+
async __insert(request, requestOptions) {
|
|
217
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
218
|
+
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);
|
|
219
|
+
const _response = await core.fetcher({
|
|
220
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
221
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
222
|
+
environments.HydraDBEnvironment.Default, "v2/embeddings/insert_raw_embeddings"),
|
|
223
|
+
method: "POST",
|
|
224
|
+
headers: _headers,
|
|
225
|
+
contentType: "application/json",
|
|
226
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
227
|
+
requestType: "json",
|
|
228
|
+
body: serializers.EmbeddingsInsertRawEmbeddingsRequest.jsonOrThrow(request, {
|
|
229
|
+
unrecognizedObjectKeys: "strip",
|
|
230
|
+
omitUndefined: true,
|
|
231
|
+
}),
|
|
232
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
233
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
234
|
+
abortSignal: requestOptions?.abortSignal,
|
|
235
|
+
fetchFn: this._options?.fetch,
|
|
236
|
+
logging: this._options.logging,
|
|
237
|
+
});
|
|
238
|
+
if (_response.ok) {
|
|
239
|
+
return {
|
|
240
|
+
data: serializers.HandlerEnvelopeEmbeddingsInsertResult.parseOrThrow(_response.body, {
|
|
241
|
+
unrecognizedObjectKeys: "passthrough",
|
|
242
|
+
allowUnrecognizedUnionMembers: true,
|
|
243
|
+
allowUnrecognizedEnumValues: true,
|
|
244
|
+
skipValidation: true,
|
|
245
|
+
breadcrumbsPrefix: ["response"],
|
|
246
|
+
}),
|
|
247
|
+
rawResponse: _response.rawResponse,
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
if (_response.error.reason === "status-code") {
|
|
251
|
+
switch (_response.error.statusCode) {
|
|
252
|
+
case 400:
|
|
253
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
254
|
+
unrecognizedObjectKeys: "passthrough",
|
|
255
|
+
allowUnrecognizedUnionMembers: true,
|
|
256
|
+
allowUnrecognizedEnumValues: true,
|
|
257
|
+
skipValidation: true,
|
|
258
|
+
breadcrumbsPrefix: ["response"],
|
|
259
|
+
}), _response.rawResponse);
|
|
260
|
+
case 429:
|
|
261
|
+
throw new HydraDB.TooManyRequestsError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
262
|
+
unrecognizedObjectKeys: "passthrough",
|
|
263
|
+
allowUnrecognizedUnionMembers: true,
|
|
264
|
+
allowUnrecognizedEnumValues: true,
|
|
265
|
+
skipValidation: true,
|
|
266
|
+
breadcrumbsPrefix: ["response"],
|
|
267
|
+
}), _response.rawResponse);
|
|
268
|
+
default:
|
|
269
|
+
throw new errors.HydraDBError({
|
|
270
|
+
statusCode: _response.error.statusCode,
|
|
271
|
+
body: _response.error.body,
|
|
272
|
+
rawResponse: _response.rawResponse,
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/embeddings/insert_raw_embeddings");
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Vector similarity search over raw embeddings.
|
|
280
|
+
*
|
|
281
|
+
* @param {HydraDB.EmbeddingsSearchRawEmbeddingsRequest} request
|
|
282
|
+
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
|
+
*
|
|
284
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* await client.embeddings.search({
|
|
288
|
+
* queryEmbedding: [1.1],
|
|
289
|
+
* subTenantId: "sub_tenant_4567",
|
|
290
|
+
* tenantId: "tenant_1234"
|
|
291
|
+
* })
|
|
292
|
+
*/
|
|
293
|
+
search(request, requestOptions) {
|
|
294
|
+
return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
|
|
295
|
+
}
|
|
296
|
+
async __search(request, requestOptions) {
|
|
297
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
298
|
+
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);
|
|
299
|
+
const _response = await core.fetcher({
|
|
300
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
301
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
302
|
+
environments.HydraDBEnvironment.Default, "v2/embeddings/search_raw_embeddings"),
|
|
303
|
+
method: "POST",
|
|
304
|
+
headers: _headers,
|
|
305
|
+
contentType: "application/json",
|
|
306
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
307
|
+
requestType: "json",
|
|
308
|
+
body: serializers.EmbeddingsSearchRawEmbeddingsRequest.jsonOrThrow(request, {
|
|
309
|
+
unrecognizedObjectKeys: "strip",
|
|
310
|
+
omitUndefined: true,
|
|
311
|
+
}),
|
|
312
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
313
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
314
|
+
abortSignal: requestOptions?.abortSignal,
|
|
315
|
+
fetchFn: this._options?.fetch,
|
|
316
|
+
logging: this._options.logging,
|
|
317
|
+
});
|
|
318
|
+
if (_response.ok) {
|
|
319
|
+
return {
|
|
320
|
+
data: serializers.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.parseOrThrow(_response.body, {
|
|
321
|
+
unrecognizedObjectKeys: "passthrough",
|
|
322
|
+
allowUnrecognizedUnionMembers: true,
|
|
323
|
+
allowUnrecognizedEnumValues: true,
|
|
324
|
+
skipValidation: true,
|
|
325
|
+
breadcrumbsPrefix: ["response"],
|
|
326
|
+
}),
|
|
327
|
+
rawResponse: _response.rawResponse,
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
if (_response.error.reason === "status-code") {
|
|
331
|
+
switch (_response.error.statusCode) {
|
|
332
|
+
case 400:
|
|
333
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
334
|
+
unrecognizedObjectKeys: "passthrough",
|
|
335
|
+
allowUnrecognizedUnionMembers: true,
|
|
336
|
+
allowUnrecognizedEnumValues: true,
|
|
337
|
+
skipValidation: true,
|
|
338
|
+
breadcrumbsPrefix: ["response"],
|
|
339
|
+
}), _response.rawResponse);
|
|
340
|
+
default:
|
|
341
|
+
throw new errors.HydraDBError({
|
|
342
|
+
statusCode: _response.error.statusCode,
|
|
343
|
+
body: _response.error.body,
|
|
344
|
+
rawResponse: _response.rawResponse,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/embeddings/search_raw_embeddings");
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
exports.EmbeddingsClient = EmbeddingsClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* tenantId: "tenant_1234",
|
|
5
|
+
* subTenantId: "sub_tenant_4567",
|
|
6
|
+
* sourceId: "HydraDoc1234"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface DeleteEmbeddingsRequest {
|
|
10
|
+
/** Tenant ID */
|
|
11
|
+
tenantId: string;
|
|
12
|
+
/** Sub-tenant ID */
|
|
13
|
+
subTenantId?: string;
|
|
14
|
+
/** Source ID to delete (mutually exclusive with chunk_ids) */
|
|
15
|
+
sourceId?: string;
|
|
16
|
+
/** Chunk IDs to delete (mutually exclusive with source_id) */
|
|
17
|
+
chunkIds?: string | string[];
|
|
18
|
+
}
|
package/dist/api/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* subTenantId: "sub_tenant_4567",
|
|
5
|
+
* tenantId: "tenant_1234"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface EmbeddingsFilterRawEmbeddingsRequest {
|
|
9
|
+
chunkIds?: string[];
|
|
10
|
+
limit?: number;
|
|
11
|
+
outputFields?: string[];
|
|
12
|
+
sourceId?: string;
|
|
13
|
+
subTenantId: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
}
|
package/dist/api/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as HydraDB from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* embeddings: [{}],
|
|
6
|
+
* tenantId: "tenant_1234"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface EmbeddingsInsertRawEmbeddingsRequest {
|
|
10
|
+
embeddings: HydraDB.EmbeddingsRawEmbeddingDocument[];
|
|
11
|
+
subTenantId?: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
upsert?: boolean;
|
|
14
|
+
}
|