@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
|
@@ -48,71 +48,35 @@ class ContextClient {
|
|
|
48
48
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Delete one or more knowledge sources or memories by ID.
|
|
52
|
+
*
|
|
53
|
+
* @param {HydraDB.SourcesV2SourceDeleteRequest} request
|
|
52
54
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
55
|
*
|
|
54
56
|
* @throws {@link HydraDB.BadRequestError}
|
|
55
|
-
* @throws {@link HydraDB.UnauthorizedError}
|
|
56
|
-
* @throws {@link HydraDB.ForbiddenError}
|
|
57
|
-
* @throws {@link HydraDB.NotFoundError}
|
|
58
|
-
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
59
|
-
* @throws {@link HydraDB.InternalServerError}
|
|
60
|
-
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
61
57
|
*
|
|
62
58
|
* @example
|
|
63
|
-
*
|
|
64
|
-
* await client.context.ingest({
|
|
65
|
-
* tenantId: "tenant_id"
|
|
66
|
-
* })
|
|
59
|
+
* await client.context.delete()
|
|
67
60
|
*/
|
|
68
|
-
|
|
69
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
61
|
+
delete(request = {}, requestOptions) {
|
|
62
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
70
63
|
}
|
|
71
|
-
async
|
|
72
|
-
const _body = await core.newFormData();
|
|
73
|
-
if (request.type != null) {
|
|
74
|
-
_body.append("type", serializers.IngestType.jsonOrThrow(request.type, {
|
|
75
|
-
unrecognizedObjectKeys: "strip",
|
|
76
|
-
omitUndefined: true,
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
_body.append("tenant_id", request.tenantId);
|
|
80
|
-
if (request.subTenantId != null) {
|
|
81
|
-
_body.append("sub_tenant_id", request.subTenantId);
|
|
82
|
-
}
|
|
83
|
-
if (request.upsert != null) {
|
|
84
|
-
_body.append("upsert", request.upsert?.toString());
|
|
85
|
-
}
|
|
86
|
-
if (request.documents != null) {
|
|
87
|
-
for (const _file of request.documents) {
|
|
88
|
-
await _body.appendFile("documents", _file);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (request.documentMetadata != null) {
|
|
92
|
-
_body.append("document_metadata", request.documentMetadata);
|
|
93
|
-
}
|
|
94
|
-
if (request.appKnowledge != null) {
|
|
95
|
-
_body.append("app_knowledge", request.appKnowledge);
|
|
96
|
-
}
|
|
97
|
-
if (request.memories != null) {
|
|
98
|
-
_body.append("memories", request.memories);
|
|
99
|
-
}
|
|
100
|
-
const _maybeEncodedRequest = await _body.getRequest();
|
|
64
|
+
async __delete(request = {}, requestOptions) {
|
|
101
65
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
102
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
103
|
-
"API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2",
|
|
104
|
-
..._maybeEncodedRequest.headers,
|
|
105
|
-
}), requestOptions?.headers);
|
|
66
|
+
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);
|
|
106
67
|
const _response = await core.fetcher({
|
|
107
68
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
108
69
|
(await core.Supplier.get(this._options.environment)) ??
|
|
109
|
-
environments.HydraDBEnvironment.
|
|
110
|
-
method: "
|
|
70
|
+
environments.HydraDBEnvironment.Default, "context"),
|
|
71
|
+
method: "DELETE",
|
|
111
72
|
headers: _headers,
|
|
73
|
+
contentType: "application/json",
|
|
112
74
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
113
|
-
requestType: "
|
|
114
|
-
|
|
115
|
-
|
|
75
|
+
requestType: "json",
|
|
76
|
+
body: serializers.SourcesV2SourceDeleteRequest.jsonOrThrow(request, {
|
|
77
|
+
unrecognizedObjectKeys: "strip",
|
|
78
|
+
omitUndefined: true,
|
|
79
|
+
}),
|
|
116
80
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
117
81
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
118
82
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -121,7 +85,7 @@ class ContextClient {
|
|
|
121
85
|
});
|
|
122
86
|
if (_response.ok) {
|
|
123
87
|
return {
|
|
124
|
-
data: serializers.
|
|
88
|
+
data: serializers.HandlerEnvelopeSourcesSourceDeleteResponse.parseOrThrow(_response.body, {
|
|
125
89
|
unrecognizedObjectKeys: "passthrough",
|
|
126
90
|
allowUnrecognizedUnionMembers: true,
|
|
127
91
|
allowUnrecognizedEnumValues: true,
|
|
@@ -134,19 +98,13 @@ class ContextClient {
|
|
|
134
98
|
if (_response.error.reason === "status-code") {
|
|
135
99
|
switch (_response.error.statusCode) {
|
|
136
100
|
case 400:
|
|
137
|
-
throw new HydraDB.BadRequestError(_response.error.body,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
case 422:
|
|
145
|
-
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
146
|
-
case 500:
|
|
147
|
-
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
148
|
-
case 503:
|
|
149
|
-
throw new HydraDB.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
101
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
102
|
+
unrecognizedObjectKeys: "passthrough",
|
|
103
|
+
allowUnrecognizedUnionMembers: true,
|
|
104
|
+
allowUnrecognizedEnumValues: true,
|
|
105
|
+
skipValidation: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}), _response.rawResponse);
|
|
150
108
|
default:
|
|
151
109
|
throw new errors.HydraDBError({
|
|
152
110
|
statusCode: _response.error.statusCode,
|
|
@@ -155,49 +113,69 @@ class ContextClient {
|
|
|
155
113
|
});
|
|
156
114
|
}
|
|
157
115
|
}
|
|
158
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
116
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/context");
|
|
159
117
|
}
|
|
160
118
|
/**
|
|
161
|
-
*
|
|
119
|
+
* Ingest knowledge documents or memories for a tenant.
|
|
120
|
+
*
|
|
121
|
+
* @param {HydraDB.IngestContextRequest} request
|
|
162
122
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
123
|
*
|
|
164
124
|
* @throws {@link HydraDB.BadRequestError}
|
|
165
|
-
* @throws {@link HydraDB.UnauthorizedError}
|
|
166
|
-
* @throws {@link HydraDB.ForbiddenError}
|
|
167
|
-
* @throws {@link HydraDB.NotFoundError}
|
|
168
125
|
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
169
|
-
* @throws {@link HydraDB.InternalServerError}
|
|
170
|
-
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
171
126
|
*
|
|
172
127
|
* @example
|
|
173
|
-
*
|
|
174
|
-
*
|
|
128
|
+
* import { createReadStream } from "fs";
|
|
129
|
+
* await client.context.ingest({
|
|
130
|
+
* tenantId: "tenant_id"
|
|
175
131
|
* })
|
|
176
132
|
*/
|
|
177
|
-
|
|
178
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
133
|
+
ingest(request, requestOptions) {
|
|
134
|
+
return core.HttpResponsePromise.fromPromise(this.__ingest(request, requestOptions));
|
|
179
135
|
}
|
|
180
|
-
async
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
136
|
+
async __ingest(request, requestOptions) {
|
|
137
|
+
const _body = await core.newFormData();
|
|
138
|
+
if (request.appKnowledge != null) {
|
|
139
|
+
_body.append("app_knowledge", request.appKnowledge);
|
|
140
|
+
}
|
|
141
|
+
if (request.documentMetadata != null) {
|
|
142
|
+
_body.append("document_metadata", request.documentMetadata);
|
|
143
|
+
}
|
|
144
|
+
if (request.documents != null) {
|
|
145
|
+
await _body.appendFile("documents", request.documents);
|
|
146
|
+
}
|
|
147
|
+
if (request.graphPayload != null) {
|
|
148
|
+
_body.append("graph_payload", request.graphPayload);
|
|
149
|
+
}
|
|
150
|
+
if (request.memories != null) {
|
|
151
|
+
_body.append("memories", request.memories);
|
|
152
|
+
}
|
|
153
|
+
if (request.subTenantId != null) {
|
|
154
|
+
_body.append("sub_tenant_id", request.subTenantId);
|
|
155
|
+
}
|
|
156
|
+
_body.append("tenant_id", request.tenantId);
|
|
157
|
+
if (request.type != null) {
|
|
158
|
+
_body.append("type", request.type);
|
|
159
|
+
}
|
|
160
|
+
if (request.upsert != null) {
|
|
161
|
+
_body.append("upsert", request.upsert);
|
|
162
|
+
}
|
|
163
|
+
const _maybeEncodedRequest = await _body.getRequest();
|
|
188
164
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
189
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
165
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
166
|
+
"API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2",
|
|
167
|
+
..._maybeEncodedRequest.headers,
|
|
168
|
+
}), requestOptions?.headers);
|
|
190
169
|
const _response = await core.fetcher({
|
|
191
170
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
192
171
|
(await core.Supplier.get(this._options.environment)) ??
|
|
193
|
-
environments.HydraDBEnvironment.
|
|
194
|
-
method: "
|
|
172
|
+
environments.HydraDBEnvironment.Default, "context/ingest"),
|
|
173
|
+
method: "POST",
|
|
195
174
|
headers: _headers,
|
|
196
|
-
queryString: core.url
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
.build(),
|
|
175
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
176
|
+
requestType: "file",
|
|
177
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
178
|
+
body: _maybeEncodedRequest.body,
|
|
201
179
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
202
180
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
203
181
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -206,7 +184,7 @@ class ContextClient {
|
|
|
206
184
|
});
|
|
207
185
|
if (_response.ok) {
|
|
208
186
|
return {
|
|
209
|
-
data: serializers.
|
|
187
|
+
data: serializers.HandlerEnvelopeIngestionV2SourceUploadResponse.parseOrThrow(_response.body, {
|
|
210
188
|
unrecognizedObjectKeys: "passthrough",
|
|
211
189
|
allowUnrecognizedUnionMembers: true,
|
|
212
190
|
allowUnrecognizedEnumValues: true,
|
|
@@ -219,19 +197,21 @@ class ContextClient {
|
|
|
219
197
|
if (_response.error.reason === "status-code") {
|
|
220
198
|
switch (_response.error.statusCode) {
|
|
221
199
|
case 400:
|
|
222
|
-
throw new HydraDB.BadRequestError(_response.error.body,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
200
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
201
|
+
unrecognizedObjectKeys: "passthrough",
|
|
202
|
+
allowUnrecognizedUnionMembers: true,
|
|
203
|
+
allowUnrecognizedEnumValues: true,
|
|
204
|
+
skipValidation: true,
|
|
205
|
+
breadcrumbsPrefix: ["response"],
|
|
206
|
+
}), _response.rawResponse);
|
|
229
207
|
case 422:
|
|
230
|
-
throw new HydraDB.UnprocessableEntityError(_response.error.body,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
208
|
+
throw new HydraDB.UnprocessableEntityError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
209
|
+
unrecognizedObjectKeys: "passthrough",
|
|
210
|
+
allowUnrecognizedUnionMembers: true,
|
|
211
|
+
allowUnrecognizedEnumValues: true,
|
|
212
|
+
skipValidation: true,
|
|
213
|
+
breadcrumbsPrefix: ["response"],
|
|
214
|
+
}), _response.rawResponse);
|
|
235
215
|
default:
|
|
236
216
|
throw new errors.HydraDBError({
|
|
237
217
|
statusCode: _response.error.statusCode,
|
|
@@ -240,45 +220,42 @@ class ContextClient {
|
|
|
240
220
|
});
|
|
241
221
|
}
|
|
242
222
|
}
|
|
243
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
223
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/context/ingest");
|
|
244
224
|
}
|
|
245
225
|
/**
|
|
226
|
+
* Fetch a previously ingested source's content, inferred content, and a downloadable URL.
|
|
227
|
+
*
|
|
246
228
|
* @param {HydraDB.InspectContextRequest} request
|
|
247
229
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
230
|
*
|
|
249
231
|
* @throws {@link HydraDB.BadRequestError}
|
|
250
|
-
* @throws {@link HydraDB.UnauthorizedError}
|
|
251
|
-
* @throws {@link HydraDB.ForbiddenError}
|
|
252
232
|
* @throws {@link HydraDB.NotFoundError}
|
|
253
|
-
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
254
|
-
* @throws {@link HydraDB.InternalServerError}
|
|
255
|
-
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
256
233
|
*
|
|
257
234
|
* @example
|
|
258
235
|
* await client.context.inspect({
|
|
259
|
-
* id: "
|
|
236
|
+
* id: "id",
|
|
260
237
|
* tenantId: "tenant_1234",
|
|
261
|
-
*
|
|
238
|
+
* subTenantId: "sub_tenant_4567"
|
|
262
239
|
* })
|
|
263
240
|
*/
|
|
264
241
|
inspect(request, requestOptions) {
|
|
265
242
|
return core.HttpResponsePromise.fromPromise(this.__inspect(request, requestOptions));
|
|
266
243
|
}
|
|
267
244
|
async __inspect(request, requestOptions) {
|
|
268
|
-
const { id, tenantId, subTenantId,
|
|
245
|
+
const { id, tenantId, subTenantId, expirySeconds, mode } = request;
|
|
269
246
|
const _queryParams = {
|
|
270
247
|
id,
|
|
271
248
|
tenant_id: tenantId,
|
|
272
249
|
sub_tenant_id: subTenantId,
|
|
273
|
-
mode,
|
|
274
250
|
expiry_seconds: expirySeconds,
|
|
251
|
+
mode,
|
|
275
252
|
};
|
|
276
253
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
277
254
|
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);
|
|
278
255
|
const _response = await core.fetcher({
|
|
279
256
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
280
257
|
(await core.Supplier.get(this._options.environment)) ??
|
|
281
|
-
environments.HydraDBEnvironment.
|
|
258
|
+
environments.HydraDBEnvironment.Default, "context/inspect"),
|
|
282
259
|
method: "GET",
|
|
283
260
|
headers: _headers,
|
|
284
261
|
queryString: core.url
|
|
@@ -294,7 +271,7 @@ class ContextClient {
|
|
|
294
271
|
});
|
|
295
272
|
if (_response.ok) {
|
|
296
273
|
return {
|
|
297
|
-
data: serializers.
|
|
274
|
+
data: serializers.HandlerEnvelopeFetchV2SourceFetchResponse.parseOrThrow(_response.body, {
|
|
298
275
|
unrecognizedObjectKeys: "passthrough",
|
|
299
276
|
allowUnrecognizedUnionMembers: true,
|
|
300
277
|
allowUnrecognizedEnumValues: true,
|
|
@@ -307,19 +284,21 @@ class ContextClient {
|
|
|
307
284
|
if (_response.error.reason === "status-code") {
|
|
308
285
|
switch (_response.error.statusCode) {
|
|
309
286
|
case 400:
|
|
310
|
-
throw new HydraDB.BadRequestError(_response.error.body,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
287
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
288
|
+
unrecognizedObjectKeys: "passthrough",
|
|
289
|
+
allowUnrecognizedUnionMembers: true,
|
|
290
|
+
allowUnrecognizedEnumValues: true,
|
|
291
|
+
skipValidation: true,
|
|
292
|
+
breadcrumbsPrefix: ["response"],
|
|
293
|
+
}), _response.rawResponse);
|
|
315
294
|
case 404:
|
|
316
|
-
throw new HydraDB.NotFoundError(_response.error.body,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
295
|
+
throw new HydraDB.NotFoundError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
296
|
+
unrecognizedObjectKeys: "passthrough",
|
|
297
|
+
allowUnrecognizedUnionMembers: true,
|
|
298
|
+
allowUnrecognizedEnumValues: true,
|
|
299
|
+
skipValidation: true,
|
|
300
|
+
breadcrumbsPrefix: ["response"],
|
|
301
|
+
}), _response.rawResponse);
|
|
323
302
|
default:
|
|
324
303
|
throw new errors.HydraDBError({
|
|
325
304
|
statusCode: _response.error.statusCode,
|
|
@@ -331,38 +310,32 @@ class ContextClient {
|
|
|
331
310
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/inspect");
|
|
332
311
|
}
|
|
333
312
|
/**
|
|
334
|
-
*
|
|
313
|
+
* List knowledge sources or memories (id + metadata) for a tenant.
|
|
314
|
+
*
|
|
315
|
+
* @param {HydraDB.ListV2ListContentRequest} request
|
|
335
316
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
336
317
|
*
|
|
337
318
|
* @throws {@link HydraDB.BadRequestError}
|
|
338
|
-
* @throws {@link HydraDB.UnauthorizedError}
|
|
339
|
-
* @throws {@link HydraDB.ForbiddenError}
|
|
340
|
-
* @throws {@link HydraDB.NotFoundError}
|
|
341
|
-
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
342
|
-
* @throws {@link HydraDB.InternalServerError}
|
|
343
|
-
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
344
319
|
*
|
|
345
320
|
* @example
|
|
346
|
-
* await client.context.list(
|
|
347
|
-
* tenantId: "tenant_1234"
|
|
348
|
-
* })
|
|
321
|
+
* await client.context.list()
|
|
349
322
|
*/
|
|
350
|
-
list(request, requestOptions) {
|
|
323
|
+
list(request = {}, requestOptions) {
|
|
351
324
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
352
325
|
}
|
|
353
|
-
async __list(request, requestOptions) {
|
|
326
|
+
async __list(request = {}, requestOptions) {
|
|
354
327
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
355
328
|
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);
|
|
356
329
|
const _response = await core.fetcher({
|
|
357
330
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
358
331
|
(await core.Supplier.get(this._options.environment)) ??
|
|
359
|
-
environments.HydraDBEnvironment.
|
|
332
|
+
environments.HydraDBEnvironment.Default, "context/list"),
|
|
360
333
|
method: "POST",
|
|
361
334
|
headers: _headers,
|
|
362
335
|
contentType: "application/json",
|
|
363
336
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
364
337
|
requestType: "json",
|
|
365
|
-
body: serializers.
|
|
338
|
+
body: serializers.ListV2ListContentRequest.jsonOrThrow(request, {
|
|
366
339
|
unrecognizedObjectKeys: "strip",
|
|
367
340
|
omitUndefined: true,
|
|
368
341
|
}),
|
|
@@ -374,7 +347,7 @@ class ContextClient {
|
|
|
374
347
|
});
|
|
375
348
|
if (_response.ok) {
|
|
376
349
|
return {
|
|
377
|
-
data: serializers.
|
|
350
|
+
data: serializers.HandlerEnvelopeListV2SourceListResponse.parseOrThrow(_response.body, {
|
|
378
351
|
unrecognizedObjectKeys: "passthrough",
|
|
379
352
|
allowUnrecognizedUnionMembers: true,
|
|
380
353
|
allowUnrecognizedEnumValues: true,
|
|
@@ -387,19 +360,13 @@ class ContextClient {
|
|
|
387
360
|
if (_response.error.reason === "status-code") {
|
|
388
361
|
switch (_response.error.statusCode) {
|
|
389
362
|
case 400:
|
|
390
|
-
throw new HydraDB.BadRequestError(_response.error.body,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
case 422:
|
|
398
|
-
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
399
|
-
case 500:
|
|
400
|
-
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
401
|
-
case 503:
|
|
402
|
-
throw new HydraDB.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
363
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
364
|
+
unrecognizedObjectKeys: "passthrough",
|
|
365
|
+
allowUnrecognizedUnionMembers: true,
|
|
366
|
+
allowUnrecognizedEnumValues: true,
|
|
367
|
+
skipValidation: true,
|
|
368
|
+
breadcrumbsPrefix: ["response"],
|
|
369
|
+
}), _response.rawResponse);
|
|
403
370
|
default:
|
|
404
371
|
throw new errors.HydraDBError({
|
|
405
372
|
statusCode: _response.error.statusCode,
|
|
@@ -411,42 +378,45 @@ class ContextClient {
|
|
|
411
378
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/context/list");
|
|
412
379
|
}
|
|
413
380
|
/**
|
|
414
|
-
*
|
|
381
|
+
* Return knowledge-graph relations for a tenant or a single source.
|
|
382
|
+
*
|
|
383
|
+
* @param {HydraDB.RelationsContextRequest} request
|
|
415
384
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
416
385
|
*
|
|
417
386
|
* @throws {@link HydraDB.BadRequestError}
|
|
418
|
-
* @throws {@link HydraDB.UnauthorizedError}
|
|
419
|
-
* @throws {@link HydraDB.ForbiddenError}
|
|
420
|
-
* @throws {@link HydraDB.NotFoundError}
|
|
421
|
-
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
422
|
-
* @throws {@link HydraDB.InternalServerError}
|
|
423
|
-
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
424
387
|
*
|
|
425
388
|
* @example
|
|
426
|
-
* await client.context.
|
|
389
|
+
* await client.context.relations({
|
|
427
390
|
* tenantId: "tenant_1234",
|
|
428
|
-
*
|
|
391
|
+
* subTenantId: "sub_tenant_4567"
|
|
429
392
|
* })
|
|
430
393
|
*/
|
|
431
|
-
|
|
432
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
394
|
+
relations(request, requestOptions) {
|
|
395
|
+
return core.HttpResponsePromise.fromPromise(this.__relations(request, requestOptions));
|
|
433
396
|
}
|
|
434
|
-
async
|
|
397
|
+
async __relations(request, requestOptions) {
|
|
398
|
+
const { tenantId, subTenantId, id, type: type_, limit, cursor } = request;
|
|
399
|
+
const _queryParams = {
|
|
400
|
+
tenant_id: tenantId,
|
|
401
|
+
sub_tenant_id: subTenantId,
|
|
402
|
+
id,
|
|
403
|
+
type: type_,
|
|
404
|
+
limit,
|
|
405
|
+
cursor,
|
|
406
|
+
};
|
|
435
407
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
436
408
|
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);
|
|
437
409
|
const _response = await core.fetcher({
|
|
438
410
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
439
411
|
(await core.Supplier.get(this._options.environment)) ??
|
|
440
|
-
environments.HydraDBEnvironment.
|
|
441
|
-
method: "
|
|
412
|
+
environments.HydraDBEnvironment.Default, "context/relations"),
|
|
413
|
+
method: "GET",
|
|
442
414
|
headers: _headers,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
omitUndefined: true,
|
|
449
|
-
}),
|
|
415
|
+
queryString: core.url
|
|
416
|
+
.queryBuilder()
|
|
417
|
+
.addMany(_queryParams)
|
|
418
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
419
|
+
.build(),
|
|
450
420
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
451
421
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
452
422
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -455,7 +425,7 @@ class ContextClient {
|
|
|
455
425
|
});
|
|
456
426
|
if (_response.ok) {
|
|
457
427
|
return {
|
|
458
|
-
data: serializers.
|
|
428
|
+
data: serializers.HandlerEnvelopeGraphGraphRelationsResponse.parseOrThrow(_response.body, {
|
|
459
429
|
unrecognizedObjectKeys: "passthrough",
|
|
460
430
|
allowUnrecognizedUnionMembers: true,
|
|
461
431
|
allowUnrecognizedEnumValues: true,
|
|
@@ -468,19 +438,13 @@ class ContextClient {
|
|
|
468
438
|
if (_response.error.reason === "status-code") {
|
|
469
439
|
switch (_response.error.statusCode) {
|
|
470
440
|
case 400:
|
|
471
|
-
throw new HydraDB.BadRequestError(_response.error.body,
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
case 422:
|
|
479
|
-
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
480
|
-
case 500:
|
|
481
|
-
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
482
|
-
case 503:
|
|
483
|
-
throw new HydraDB.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
441
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
442
|
+
unrecognizedObjectKeys: "passthrough",
|
|
443
|
+
allowUnrecognizedUnionMembers: true,
|
|
444
|
+
allowUnrecognizedEnumValues: true,
|
|
445
|
+
skipValidation: true,
|
|
446
|
+
breadcrumbsPrefix: ["response"],
|
|
447
|
+
}), _response.rawResponse);
|
|
484
448
|
default:
|
|
485
449
|
throw new errors.HydraDBError({
|
|
486
450
|
statusCode: _response.error.statusCode,
|
|
@@ -489,49 +453,39 @@ class ContextClient {
|
|
|
489
453
|
});
|
|
490
454
|
}
|
|
491
455
|
}
|
|
492
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
456
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/relations");
|
|
493
457
|
}
|
|
494
458
|
/**
|
|
495
|
-
*
|
|
459
|
+
* Return the processing status for one or more source IDs.
|
|
460
|
+
*
|
|
461
|
+
* @param {HydraDB.StatusContextRequest} request
|
|
496
462
|
* @param {ContextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
497
463
|
*
|
|
498
464
|
* @throws {@link HydraDB.BadRequestError}
|
|
499
|
-
* @throws {@link HydraDB.UnauthorizedError}
|
|
500
|
-
* @throws {@link HydraDB.ForbiddenError}
|
|
501
|
-
* @throws {@link HydraDB.NotFoundError}
|
|
502
|
-
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
503
|
-
* @throws {@link HydraDB.InternalServerError}
|
|
504
|
-
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
505
465
|
*
|
|
506
466
|
* @example
|
|
507
|
-
* await client.context.
|
|
508
|
-
* tenantId: "tenant_1234"
|
|
467
|
+
* await client.context.status({
|
|
468
|
+
* tenantId: "tenant_1234",
|
|
469
|
+
* subTenantId: "sub_tenant_4567"
|
|
509
470
|
* })
|
|
510
471
|
*/
|
|
511
|
-
|
|
512
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
472
|
+
status(request, requestOptions) {
|
|
473
|
+
return core.HttpResponsePromise.fromPromise(this.__status(request, requestOptions));
|
|
513
474
|
}
|
|
514
|
-
async
|
|
515
|
-
const {
|
|
475
|
+
async __status(request, requestOptions) {
|
|
476
|
+
const { id, ids, tenantId, subTenantId } = request;
|
|
516
477
|
const _queryParams = {
|
|
517
|
-
tenant_id: tenantId,
|
|
518
478
|
id,
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
unrecognizedObjectKeys: "strip",
|
|
522
|
-
omitUndefined: true,
|
|
523
|
-
})
|
|
524
|
-
: undefined,
|
|
479
|
+
ids,
|
|
480
|
+
tenant_id: tenantId,
|
|
525
481
|
sub_tenant_id: subTenantId,
|
|
526
|
-
limit,
|
|
527
|
-
cursor,
|
|
528
482
|
};
|
|
529
483
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
530
484
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
531
485
|
const _response = await core.fetcher({
|
|
532
486
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
533
487
|
(await core.Supplier.get(this._options.environment)) ??
|
|
534
|
-
environments.HydraDBEnvironment.
|
|
488
|
+
environments.HydraDBEnvironment.Default, "context/status"),
|
|
535
489
|
method: "GET",
|
|
536
490
|
headers: _headers,
|
|
537
491
|
queryString: core.url
|
|
@@ -547,7 +501,7 @@ class ContextClient {
|
|
|
547
501
|
});
|
|
548
502
|
if (_response.ok) {
|
|
549
503
|
return {
|
|
550
|
-
data: serializers.
|
|
504
|
+
data: serializers.HandlerEnvelopeIngestionV2BatchProcessingStatus.parseOrThrow(_response.body, {
|
|
551
505
|
unrecognizedObjectKeys: "passthrough",
|
|
552
506
|
allowUnrecognizedUnionMembers: true,
|
|
553
507
|
allowUnrecognizedEnumValues: true,
|
|
@@ -560,19 +514,13 @@ class ContextClient {
|
|
|
560
514
|
if (_response.error.reason === "status-code") {
|
|
561
515
|
switch (_response.error.statusCode) {
|
|
562
516
|
case 400:
|
|
563
|
-
throw new HydraDB.BadRequestError(_response.error.body,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
case 422:
|
|
571
|
-
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
572
|
-
case 500:
|
|
573
|
-
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
574
|
-
case 503:
|
|
575
|
-
throw new HydraDB.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
517
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
518
|
+
unrecognizedObjectKeys: "passthrough",
|
|
519
|
+
allowUnrecognizedUnionMembers: true,
|
|
520
|
+
allowUnrecognizedEnumValues: true,
|
|
521
|
+
skipValidation: true,
|
|
522
|
+
breadcrumbsPrefix: ["response"],
|
|
523
|
+
}), _response.rawResponse);
|
|
576
524
|
default:
|
|
577
525
|
throw new errors.HydraDBError({
|
|
578
526
|
statusCode: _response.error.statusCode,
|
|
@@ -581,7 +529,7 @@ class ContextClient {
|
|
|
581
529
|
});
|
|
582
530
|
}
|
|
583
531
|
}
|
|
584
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/
|
|
532
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/context/status");
|
|
585
533
|
}
|
|
586
534
|
}
|
|
587
535
|
exports.ContextClient = ContextClient;
|