@hydradb/sdk 0.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/LICENSE +24 -0
- package/README.md +578 -0
- package/dist/BaseClient.d.ts +42 -0
- package/dist/BaseClient.js +65 -0
- package/dist/Client.d.ts +58 -0
- package/dist/Client.js +142 -0
- package/dist/api/errors/BadRequestError.d.ts +5 -0
- package/dist/api/errors/BadRequestError.js +44 -0
- package/dist/api/errors/ForbiddenError.d.ts +5 -0
- package/dist/api/errors/ForbiddenError.js +44 -0
- package/dist/api/errors/InternalServerError.d.ts +5 -0
- package/dist/api/errors/InternalServerError.js +44 -0
- package/dist/api/errors/NotFoundError.d.ts +5 -0
- package/dist/api/errors/NotFoundError.js +44 -0
- package/dist/api/errors/ServiceUnavailableError.d.ts +5 -0
- package/dist/api/errors/ServiceUnavailableError.js +44 -0
- package/dist/api/errors/TooManyRequestsError.d.ts +6 -0
- package/dist/api/errors/TooManyRequestsError.js +44 -0
- package/dist/api/errors/UnauthorizedError.d.ts +5 -0
- package/dist/api/errors/UnauthorizedError.js +44 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +5 -0
- package/dist/api/errors/UnprocessableEntityError.js +44 -0
- package/dist/api/errors/index.d.ts +8 -0
- package/dist/api/errors/index.js +24 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/data/client/Client.d.ts +33 -0
- package/dist/api/resources/data/client/Client.js +108 -0
- package/dist/api/resources/data/client/index.d.ts +1 -0
- package/dist/api/resources/data/client/index.js +17 -0
- package/dist/api/resources/data/client/requests/SourceDeleteRequest.d.ts +13 -0
- package/dist/api/resources/data/client/requests/SourceDeleteRequest.js +3 -0
- package/dist/api/resources/data/client/requests/index.d.ts +1 -0
- package/dist/api/resources/data/client/requests/index.js +2 -0
- package/dist/api/resources/data/exports.d.ts +2 -0
- package/dist/api/resources/data/exports.js +21 -0
- package/dist/api/resources/data/index.d.ts +1 -0
- package/dist/api/resources/data/index.js +17 -0
- package/dist/api/resources/embeddings/client/Client.d.ts +111 -0
- package/dist/api/resources/embeddings/client/Client.js +339 -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/BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.d.ts +21 -0
- package/dist/api/resources/embeddings/client/requests/BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.js +3 -0
- package/dist/api/resources/embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.d.ts +36 -0
- package/dist/api/resources/embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.js +3 -0
- package/dist/api/resources/embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.d.ts +22 -0
- package/dist/api/resources/embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.js +3 -0
- package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +16 -0
- package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.js +3 -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/fetch/client/Client.d.ts +72 -0
- package/dist/api/resources/fetch/client/Client.js +252 -0
- package/dist/api/resources/fetch/client/index.d.ts +1 -0
- package/dist/api/resources/fetch/client/index.js +17 -0
- package/dist/api/resources/fetch/client/requests/GraphRelationsBySourceIdFetchRequest.d.ts +19 -0
- package/dist/api/resources/fetch/client/requests/GraphRelationsBySourceIdFetchRequest.js +3 -0
- package/dist/api/resources/fetch/client/requests/ListContentRequest.d.ts +25 -0
- package/dist/api/resources/fetch/client/requests/ListContentRequest.js +3 -0
- package/dist/api/resources/fetch/client/requests/SourceFetchRequest.d.ts +20 -0
- package/dist/api/resources/fetch/client/requests/SourceFetchRequest.js +3 -0
- package/dist/api/resources/fetch/client/requests/index.d.ts +3 -0
- package/dist/api/resources/fetch/client/requests/index.js +2 -0
- package/dist/api/resources/fetch/exports.d.ts +2 -0
- package/dist/api/resources/fetch/exports.js +21 -0
- package/dist/api/resources/fetch/index.d.ts +2 -0
- package/dist/api/resources/fetch/index.js +18 -0
- package/dist/api/resources/fetch/types/ListDataFetchResponse.d.ts +2 -0
- package/dist/api/resources/fetch/types/ListDataFetchResponse.js +3 -0
- package/dist/api/resources/fetch/types/index.d.ts +1 -0
- package/dist/api/resources/fetch/types/index.js +17 -0
- package/dist/api/resources/graphHealth/client/Client.d.ts +32 -0
- package/dist/api/resources/graphHealth/client/Client.js +115 -0
- package/dist/api/resources/graphHealth/client/index.d.ts +1 -0
- package/dist/api/resources/graphHealth/client/index.js +17 -0
- package/dist/api/resources/graphHealth/client/requests/GetSuperNodesGraphHealthSuperNodesGetRequest.d.ts +16 -0
- package/dist/api/resources/graphHealth/client/requests/GetSuperNodesGraphHealthSuperNodesGetRequest.js +3 -0
- package/dist/api/resources/graphHealth/client/requests/index.d.ts +1 -0
- package/dist/api/resources/graphHealth/client/requests/index.js +2 -0
- package/dist/api/resources/graphHealth/exports.d.ts +2 -0
- package/dist/api/resources/graphHealth/exports.js +21 -0
- package/dist/api/resources/graphHealth/index.d.ts +1 -0
- package/dist/api/resources/graphHealth/index.js +17 -0
- package/dist/api/resources/index.d.ts +19 -0
- package/dist/api/resources/index.js +48 -0
- package/dist/api/resources/ingestionPipeline/client/Client.d.ts +27 -0
- package/dist/api/resources/ingestionPipeline/client/Client.js +90 -0
- package/dist/api/resources/ingestionPipeline/client/index.d.ts +1 -0
- package/dist/api/resources/ingestionPipeline/client/index.js +17 -0
- package/dist/api/resources/ingestionPipeline/client/requests/MemoryIngestRequest.d.ts +19 -0
- package/dist/api/resources/ingestionPipeline/client/requests/MemoryIngestRequest.js +3 -0
- package/dist/api/resources/ingestionPipeline/client/requests/index.d.ts +1 -0
- package/dist/api/resources/ingestionPipeline/client/requests/index.js +2 -0
- package/dist/api/resources/ingestionPipeline/exports.d.ts +2 -0
- package/dist/api/resources/ingestionPipeline/exports.js +21 -0
- package/dist/api/resources/ingestionPipeline/index.d.ts +1 -0
- package/dist/api/resources/ingestionPipeline/index.js +17 -0
- package/dist/api/resources/key/client/Client.d.ts +30 -0
- package/dist/api/resources/key/client/Client.js +104 -0
- package/dist/api/resources/key/client/index.d.ts +1 -0
- package/dist/api/resources/key/client/index.js +17 -0
- package/dist/api/resources/key/client/requests/ApiKeyCreateRequest.d.ts +14 -0
- package/dist/api/resources/key/client/requests/ApiKeyCreateRequest.js +3 -0
- package/dist/api/resources/key/client/requests/index.d.ts +1 -0
- package/dist/api/resources/key/client/requests/index.js +2 -0
- package/dist/api/resources/key/exports.d.ts +2 -0
- package/dist/api/resources/key/exports.js +21 -0
- package/dist/api/resources/key/index.d.ts +1 -0
- package/dist/api/resources/key/index.js +17 -0
- package/dist/api/resources/recall/client/Client.d.ts +97 -0
- package/dist/api/resources/recall/client/Client.js +324 -0
- package/dist/api/resources/recall/client/index.d.ts +1 -0
- package/dist/api/resources/recall/client/index.js +17 -0
- package/dist/api/resources/recall/client/requests/FullTextSearchRequest.d.ts +22 -0
- package/dist/api/resources/recall/client/requests/FullTextSearchRequest.js +3 -0
- package/dist/api/resources/recall/client/requests/QnASearchRequest.d.ts +38 -0
- package/dist/api/resources/recall/client/requests/QnASearchRequest.js +3 -0
- package/dist/api/resources/recall/client/requests/index.d.ts +2 -0
- package/dist/api/resources/recall/client/requests/index.js +2 -0
- package/dist/api/resources/recall/exports.d.ts +2 -0
- package/dist/api/resources/recall/exports.js +21 -0
- package/dist/api/resources/recall/index.d.ts +1 -0
- package/dist/api/resources/recall/index.js +17 -0
- package/dist/api/resources/tenant/client/Client.d.ts +124 -0
- package/dist/api/resources/tenant/client/Client.js +456 -0
- package/dist/api/resources/tenant/client/index.d.ts +1 -0
- package/dist/api/resources/tenant/client/index.js +17 -0
- package/dist/api/resources/tenant/client/requests/DeleteTenantTenantRequest.d.ts +10 -0
- package/dist/api/resources/tenant/client/requests/DeleteTenantTenantRequest.js +3 -0
- package/dist/api/resources/tenant/client/requests/GetInfraStatusTenantRequest.d.ts +10 -0
- package/dist/api/resources/tenant/client/requests/GetInfraStatusTenantRequest.js +3 -0
- package/dist/api/resources/tenant/client/requests/GetSubTenantIdsTenantRequest.d.ts +10 -0
- package/dist/api/resources/tenant/client/requests/GetSubTenantIdsTenantRequest.js +3 -0
- package/dist/api/resources/tenant/client/requests/MonitorTenantRequest.d.ts +10 -0
- package/dist/api/resources/tenant/client/requests/MonitorTenantRequest.js +3 -0
- package/dist/api/resources/tenant/client/requests/TenantCreateRequest.d.ts +17 -0
- package/dist/api/resources/tenant/client/requests/TenantCreateRequest.js +3 -0
- package/dist/api/resources/tenant/client/requests/index.d.ts +5 -0
- package/dist/api/resources/tenant/client/requests/index.js +2 -0
- package/dist/api/resources/tenant/exports.d.ts +2 -0
- package/dist/api/resources/tenant/exports.js +21 -0
- package/dist/api/resources/tenant/index.d.ts +1 -0
- package/dist/api/resources/tenant/index.js +17 -0
- package/dist/api/resources/upload/client/Client.d.ts +92 -0
- package/dist/api/resources/upload/client/Client.js +349 -0
- package/dist/api/resources/upload/client/index.d.ts +1 -0
- package/dist/api/resources/upload/client/index.js +17 -0
- package/dist/api/resources/upload/client/requests/BodyAddMemoryMemoriesAddMemoryPost.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/BodyAddMemoryMemoriesAddMemoryPost.js +3 -0
- package/dist/api/resources/upload/client/requests/BodyUploadKnowledgeIngestionUploadKnowledgePost.d.ts +23 -0
- package/dist/api/resources/upload/client/requests/BodyUploadKnowledgeIngestionUploadKnowledgePost.js +3 -0
- package/dist/api/resources/upload/client/requests/DeleteMemoryUploadRequest.d.ts +15 -0
- package/dist/api/resources/upload/client/requests/DeleteMemoryUploadRequest.js +3 -0
- package/dist/api/resources/upload/client/requests/VerifyProcessingUploadRequest.d.ts +16 -0
- package/dist/api/resources/upload/client/requests/VerifyProcessingUploadRequest.js +3 -0
- package/dist/api/resources/upload/client/requests/index.d.ts +4 -0
- package/dist/api/resources/upload/client/requests/index.js +2 -0
- package/dist/api/resources/upload/exports.d.ts +2 -0
- package/dist/api/resources/upload/exports.js +21 -0
- package/dist/api/resources/upload/index.d.ts +1 -0
- package/dist/api/resources/upload/index.js +17 -0
- package/dist/api/types/ActualErrorResponse.d.ts +4 -0
- package/dist/api/types/ActualErrorResponse.js +3 -0
- package/dist/api/types/AddMemoryResponse.d.ts +14 -0
- package/dist/api/types/AddMemoryResponse.js +3 -0
- package/dist/api/types/ApiKeyCreateResponse.d.ts +14 -0
- package/dist/api/types/ApiKeyCreateResponse.js +3 -0
- package/dist/api/types/AttachmentModel.d.ts +17 -0
- package/dist/api/types/AttachmentModel.js +3 -0
- package/dist/api/types/BatchProcessingStatus.d.ts +5 -0
- package/dist/api/types/BatchProcessingStatus.js +3 -0
- package/dist/api/types/Bm25OperatorType.d.ts +6 -0
- package/dist/api/types/Bm25OperatorType.js +9 -0
- package/dist/api/types/CollectionStats.d.ts +6 -0
- package/dist/api/types/CollectionStats.js +3 -0
- package/dist/api/types/ContentFilter.d.ts +24 -0
- package/dist/api/types/ContentFilter.js +3 -0
- package/dist/api/types/ContentModel.d.ts +14 -0
- package/dist/api/types/ContentModel.js +3 -0
- package/dist/api/types/CortexModelsResponseCommonsActualErrorResponse.d.ts +4 -0
- package/dist/api/types/CortexModelsResponseCommonsActualErrorResponse.js +3 -0
- package/dist/api/types/CortexModelsResponseCommonsErrorResponse.d.ts +5 -0
- package/dist/api/types/CortexModelsResponseCommonsErrorResponse.js +3 -0
- package/dist/api/types/CustomPropertyDefinition.d.ts +34 -0
- package/dist/api/types/CustomPropertyDefinition.js +3 -0
- package/dist/api/types/DeleteResult.d.ts +11 -0
- package/dist/api/types/DeleteResult.js +3 -0
- package/dist/api/types/DeleteUserMemoryResponse.d.ts +9 -0
- package/dist/api/types/DeleteUserMemoryResponse.js +3 -0
- package/dist/api/types/Entity.d.ts +12 -0
- package/dist/api/types/Entity.js +3 -0
- package/dist/api/types/ErrorResponse.d.ts +5 -0
- package/dist/api/types/ErrorResponse.js +3 -0
- package/dist/api/types/FetchMode.d.ts +7 -0
- package/dist/api/types/FetchMode.js +10 -0
- package/dist/api/types/ForcefulRelationsPayload.d.ts +6 -0
- package/dist/api/types/ForcefulRelationsPayload.js +3 -0
- package/dist/api/types/GraphContext.d.ts +11 -0
- package/dist/api/types/GraphContext.js +3 -0
- package/dist/api/types/HttpValidationError.d.ts +4 -0
- package/dist/api/types/HttpValidationError.js +3 -0
- package/dist/api/types/Infra.d.ts +5 -0
- package/dist/api/types/Infra.js +3 -0
- package/dist/api/types/InfraStatusResponse.d.ts +14 -0
- package/dist/api/types/InfraStatusResponse.js +3 -0
- package/dist/api/types/IngestResponse.d.ts +4 -0
- package/dist/api/types/IngestResponse.js +3 -0
- package/dist/api/types/InsertResult.d.ts +13 -0
- package/dist/api/types/InsertResult.js +3 -0
- package/dist/api/types/ListContentKind.d.ts +5 -0
- package/dist/api/types/ListContentKind.js +8 -0
- package/dist/api/types/ListUserMemoriesResponse.d.ts +14 -0
- package/dist/api/types/ListUserMemoriesResponse.js +3 -0
- package/dist/api/types/MemoryItem.d.ts +44 -0
- package/dist/api/types/MemoryItem.js +3 -0
- package/dist/api/types/MemoryResultItem.d.ts +16 -0
- package/dist/api/types/MemoryResultItem.js +3 -0
- package/dist/api/types/MilvusDataType.d.ts +16 -0
- package/dist/api/types/MilvusDataType.js +19 -0
- package/dist/api/types/PaginationMeta.d.ts +17 -0
- package/dist/api/types/PaginationMeta.js +3 -0
- package/dist/api/types/PathTriplet.d.ts +6 -0
- package/dist/api/types/PathTriplet.js +3 -0
- package/dist/api/types/ProcessingStatus.d.ts +26 -0
- package/dist/api/types/ProcessingStatus.js +16 -0
- package/dist/api/types/QnASearchResponse.d.ts +17 -0
- package/dist/api/types/QnASearchResponse.js +3 -0
- package/dist/api/types/RawEmbeddingDocument.d.ts +16 -0
- package/dist/api/types/RawEmbeddingDocument.js +3 -0
- package/dist/api/types/RawEmbeddingSearchResult.d.ts +16 -0
- package/dist/api/types/RawEmbeddingSearchResult.js +3 -0
- package/dist/api/types/RawEmbeddingVector.d.ts +9 -0
- package/dist/api/types/RawEmbeddingVector.js +3 -0
- package/dist/api/types/RecallSearchRequest.d.ts +34 -0
- package/dist/api/types/RecallSearchRequest.js +3 -0
- package/dist/api/types/RelationEvidence.d.ts +25 -0
- package/dist/api/types/RelationEvidence.js +3 -0
- package/dist/api/types/RetrievalResult.d.ts +12 -0
- package/dist/api/types/RetrievalResult.js +3 -0
- package/dist/api/types/RetrieveMode.d.ts +5 -0
- package/dist/api/types/RetrieveMode.js +8 -0
- package/dist/api/types/ScoredPathResponse.d.ts +10 -0
- package/dist/api/types/ScoredPathResponse.js +3 -0
- package/dist/api/types/SearchMode.d.ts +6 -0
- package/dist/api/types/SearchMode.js +9 -0
- package/dist/api/types/SourceDeleteResponse.d.ts +11 -0
- package/dist/api/types/SourceDeleteResponse.js +3 -0
- package/dist/api/types/SourceDeleteResultItem.d.ts +11 -0
- package/dist/api/types/SourceDeleteResultItem.js +3 -0
- package/dist/api/types/SourceFetchResponse.d.ts +23 -0
- package/dist/api/types/SourceFetchResponse.js +3 -0
- package/dist/api/types/SourceGraphRelationsResponse.d.ts +9 -0
- package/dist/api/types/SourceGraphRelationsResponse.js +3 -0
- package/dist/api/types/SourceInfo.d.ts +18 -0
- package/dist/api/types/SourceInfo.js +3 -0
- package/dist/api/types/SourceListResponse.d.ts +1 -0
- package/dist/api/types/SourceListResponse.js +3 -0
- package/dist/api/types/SourceModel.d.ts +42 -0
- package/dist/api/types/SourceModel.js +3 -0
- package/dist/api/types/SourceStatus.d.ts +7 -0
- package/dist/api/types/SourceStatus.js +10 -0
- package/dist/api/types/SourceUploadResponse.d.ts +11 -0
- package/dist/api/types/SourceUploadResponse.js +3 -0
- package/dist/api/types/SourceUploadResultItem.d.ts +11 -0
- package/dist/api/types/SourceUploadResultItem.js +3 -0
- package/dist/api/types/SubTenantIdsResponse.d.ts +9 -0
- package/dist/api/types/SubTenantIdsResponse.js +3 -0
- package/dist/api/types/SuperNodeItem.d.ts +9 -0
- package/dist/api/types/SuperNodeItem.js +3 -0
- package/dist/api/types/SuperNodeResponse.d.ts +11 -0
- package/dist/api/types/SuperNodeResponse.js +3 -0
- package/dist/api/types/SupportedLlmProviders.d.ts +8 -0
- package/dist/api/types/SupportedLlmProviders.js +11 -0
- package/dist/api/types/TenantCreateAcceptedResponse.d.ts +11 -0
- package/dist/api/types/TenantCreateAcceptedResponse.js +3 -0
- package/dist/api/types/TenantDeleteResponse.d.ts +6 -0
- package/dist/api/types/TenantDeleteResponse.js +3 -0
- package/dist/api/types/TenantIdsResponse.d.ts +8 -0
- package/dist/api/types/TenantIdsResponse.js +3 -0
- package/dist/api/types/TenantStatsResponse.d.ts +11 -0
- package/dist/api/types/TenantStatsResponse.js +3 -0
- package/dist/api/types/TripletWithEvidence.d.ts +12 -0
- package/dist/api/types/TripletWithEvidence.js +3 -0
- package/dist/api/types/UserAssistantPair.d.ts +9 -0
- package/dist/api/types/UserAssistantPair.js +3 -0
- package/dist/api/types/UserMemory.d.ts +9 -0
- package/dist/api/types/UserMemory.js +3 -0
- package/dist/api/types/ValidationError.d.ts +11 -0
- package/dist/api/types/ValidationError.js +3 -0
- package/dist/api/types/VectorStoreChunk.d.ts +26 -0
- package/dist/api/types/VectorStoreChunk.js +3 -0
- package/dist/api/types/index.d.ts +65 -0
- package/dist/api/types/index.js +81 -0
- package/dist/auth/BearerAuthProvider.d.ts +20 -0
- package/dist/auth/BearerAuthProvider.js +58 -0
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +5 -0
- package/dist/core/auth/AuthProvider.d.ts +8 -0
- package/dist/core/auth/AuthProvider.js +10 -0
- package/dist/core/auth/AuthRequest.d.ts +9 -0
- package/dist/core/auth/AuthRequest.js +2 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +33 -0
- package/dist/core/auth/BearerToken.d.ts +7 -0
- package/dist/core/auth/BearerToken.js +16 -0
- package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/core/auth/index.d.ts +5 -0
- package/dist/core/auth/index.js +11 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/base64.js +27 -0
- package/dist/core/exports.d.ts +2 -0
- package/dist/core/exports.js +18 -0
- package/dist/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/core/fetcher/BinaryResponse.js +18 -0
- package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/core/fetcher/EndpointSupplier.js +13 -0
- package/dist/core/fetcher/Fetcher.d.ts +56 -0
- package/dist/core/fetcher/Fetcher.js +312 -0
- package/dist/core/fetcher/Headers.d.ts +3 -0
- package/dist/core/fetcher/Headers.js +92 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +92 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +13 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +9 -0
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +35 -0
- package/dist/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/core/fetcher/getFetchFn.js +7 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +17 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +59 -0
- package/dist/core/fetcher/index.d.ts +13 -0
- package/dist/core/fetcher/index.js +19 -0
- package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/core/fetcher/makePassthroughRequest.js +123 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -0
- package/dist/core/fetcher/makeRequest.js +52 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +60 -0
- package/dist/core/fetcher/signals.d.ts +5 -0
- package/dist/core/fetcher/signals.js +25 -0
- package/dist/core/file/exports.d.ts +1 -0
- package/dist/core/file/exports.js +2 -0
- package/dist/core/file/file.d.ts +10 -0
- package/dist/core/file/file.js +194 -0
- package/dist/core/file/index.d.ts +2 -0
- package/dist/core/file/index.js +18 -0
- package/dist/core/file/types.d.ts +70 -0
- package/dist/core/file/types.js +2 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +15 -0
- package/dist/core/form-data-utils/FormDataWrapper.js +155 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.js +13 -0
- package/dist/core/form-data-utils/index.d.ts +2 -0
- package/dist/core/form-data-utils/index.js +20 -0
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +30 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.js +37 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/logging/exports.d.ts +18 -0
- package/dist/core/logging/exports.js +35 -0
- package/dist/core/logging/index.d.ts +1 -0
- package/dist/core/logging/index.js +17 -0
- package/dist/core/logging/logger.d.ts +126 -0
- package/dist/core/logging/logger.js +144 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +104 -0
- package/dist/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/core/url/QueryStringBuilder.js +84 -0
- package/dist/core/url/encodePathParam.d.ts +1 -0
- package/dist/core/url/encodePathParam.js +22 -0
- package/dist/core/url/index.d.ts +4 -0
- package/dist/core/url/index.js +11 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +69 -0
- package/dist/core/url/qs.d.ts +7 -0
- package/dist/core/url/qs.js +77 -0
- package/dist/environments.d.ts +4 -0
- package/dist/environments.js +7 -0
- package/dist/errors/HydraDBError.d.ts +14 -0
- package/dist/errors/HydraDBError.js +35 -0
- package/dist/errors/HydraDBTimeoutError.d.ts +6 -0
- package/dist/errors/HydraDBTimeoutError.js +18 -0
- package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/errors/handleNonStatusCodeError.js +59 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/exports.d.ts +1 -0
- package/dist/exports.js +17 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +38 -0
- package/package.json +34 -0
package/dist/Client.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DataClient } from "./api/resources/data/client/Client.js";
|
|
2
|
+
import { EmbeddingsClient } from "./api/resources/embeddings/client/Client.js";
|
|
3
|
+
import { FetchClient } from "./api/resources/fetch/client/Client.js";
|
|
4
|
+
import { GraphHealthClient } from "./api/resources/graphHealth/client/Client.js";
|
|
5
|
+
import { IngestionPipelineClient } from "./api/resources/ingestionPipeline/client/Client.js";
|
|
6
|
+
import { KeyClient } from "./api/resources/key/client/Client.js";
|
|
7
|
+
import { RecallClient } from "./api/resources/recall/client/Client.js";
|
|
8
|
+
import { TenantClient } from "./api/resources/tenant/client/Client.js";
|
|
9
|
+
import { UploadClient } from "./api/resources/upload/client/Client.js";
|
|
10
|
+
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
11
|
+
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
|
|
12
|
+
import * as core from "./core/index.js";
|
|
13
|
+
export declare namespace HydraDBClient {
|
|
14
|
+
type Options = BaseClientOptions;
|
|
15
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare class HydraDBClient {
|
|
19
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<HydraDBClient.Options>;
|
|
20
|
+
protected _upload: UploadClient | undefined;
|
|
21
|
+
protected _ingestionPipeline: IngestionPipelineClient | undefined;
|
|
22
|
+
protected _tenant: TenantClient | undefined;
|
|
23
|
+
protected _key: KeyClient | undefined;
|
|
24
|
+
protected _embeddings: EmbeddingsClient | undefined;
|
|
25
|
+
protected _fetch: FetchClient | undefined;
|
|
26
|
+
protected _data: DataClient | undefined;
|
|
27
|
+
protected _recall: RecallClient | undefined;
|
|
28
|
+
protected _graphHealth: GraphHealthClient | undefined;
|
|
29
|
+
constructor(options?: HydraDBClient.Options);
|
|
30
|
+
get upload(): UploadClient;
|
|
31
|
+
get ingestionPipeline(): IngestionPipelineClient;
|
|
32
|
+
get tenant(): TenantClient;
|
|
33
|
+
get key(): KeyClient;
|
|
34
|
+
get embeddings(): EmbeddingsClient;
|
|
35
|
+
get fetch(): FetchClient;
|
|
36
|
+
get data(): DataClient;
|
|
37
|
+
get recall(): RecallClient;
|
|
38
|
+
get graphHealth(): GraphHealthClient;
|
|
39
|
+
/**
|
|
40
|
+
* @param {HydraDBClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.metricsMetricsGet()
|
|
44
|
+
*/
|
|
45
|
+
metricsMetricsGet(requestOptions?: HydraDBClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
46
|
+
private __metricsMetricsGet;
|
|
47
|
+
/**
|
|
48
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
49
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
50
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
51
|
+
*
|
|
52
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
53
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
54
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
55
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
56
|
+
*/
|
|
57
|
+
passthroughFetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
58
|
+
}
|
package/dist/Client.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.HydraDBClient = void 0;
|
|
28
|
+
const Client_js_1 = require("./api/resources/data/client/Client.js");
|
|
29
|
+
const Client_js_2 = require("./api/resources/embeddings/client/Client.js");
|
|
30
|
+
const Client_js_3 = require("./api/resources/fetch/client/Client.js");
|
|
31
|
+
const Client_js_4 = require("./api/resources/graphHealth/client/Client.js");
|
|
32
|
+
const Client_js_5 = require("./api/resources/ingestionPipeline/client/Client.js");
|
|
33
|
+
const Client_js_6 = require("./api/resources/key/client/Client.js");
|
|
34
|
+
const Client_js_7 = require("./api/resources/recall/client/Client.js");
|
|
35
|
+
const Client_js_8 = require("./api/resources/tenant/client/Client.js");
|
|
36
|
+
const Client_js_9 = require("./api/resources/upload/client/Client.js");
|
|
37
|
+
const BaseClient_js_1 = require("./BaseClient.js");
|
|
38
|
+
const headers_js_1 = require("./core/headers.js");
|
|
39
|
+
const core = __importStar(require("./core/index.js"));
|
|
40
|
+
const environments = __importStar(require("./environments.js"));
|
|
41
|
+
const handleNonStatusCodeError_js_1 = require("./errors/handleNonStatusCodeError.js");
|
|
42
|
+
const errors = __importStar(require("./errors/index.js"));
|
|
43
|
+
class HydraDBClient {
|
|
44
|
+
constructor(options = {}) {
|
|
45
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
46
|
+
}
|
|
47
|
+
get upload() {
|
|
48
|
+
var _a;
|
|
49
|
+
return ((_a = this._upload) !== null && _a !== void 0 ? _a : (this._upload = new Client_js_9.UploadClient(this._options)));
|
|
50
|
+
}
|
|
51
|
+
get ingestionPipeline() {
|
|
52
|
+
var _a;
|
|
53
|
+
return ((_a = this._ingestionPipeline) !== null && _a !== void 0 ? _a : (this._ingestionPipeline = new Client_js_5.IngestionPipelineClient(this._options)));
|
|
54
|
+
}
|
|
55
|
+
get tenant() {
|
|
56
|
+
var _a;
|
|
57
|
+
return ((_a = this._tenant) !== null && _a !== void 0 ? _a : (this._tenant = new Client_js_8.TenantClient(this._options)));
|
|
58
|
+
}
|
|
59
|
+
get key() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._key) !== null && _a !== void 0 ? _a : (this._key = new Client_js_6.KeyClient(this._options)));
|
|
62
|
+
}
|
|
63
|
+
get embeddings() {
|
|
64
|
+
var _a;
|
|
65
|
+
return ((_a = this._embeddings) !== null && _a !== void 0 ? _a : (this._embeddings = new Client_js_2.EmbeddingsClient(this._options)));
|
|
66
|
+
}
|
|
67
|
+
get fetch() {
|
|
68
|
+
var _a;
|
|
69
|
+
return ((_a = this._fetch) !== null && _a !== void 0 ? _a : (this._fetch = new Client_js_3.FetchClient(this._options)));
|
|
70
|
+
}
|
|
71
|
+
get data() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._data) !== null && _a !== void 0 ? _a : (this._data = new Client_js_1.DataClient(this._options)));
|
|
74
|
+
}
|
|
75
|
+
get recall() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._recall) !== null && _a !== void 0 ? _a : (this._recall = new Client_js_7.RecallClient(this._options)));
|
|
78
|
+
}
|
|
79
|
+
get graphHealth() {
|
|
80
|
+
var _a;
|
|
81
|
+
return ((_a = this._graphHealth) !== null && _a !== void 0 ? _a : (this._graphHealth = new Client_js_4.GraphHealthClient(this._options)));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @param {HydraDBClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.metricsMetricsGet()
|
|
88
|
+
*/
|
|
89
|
+
metricsMetricsGet(requestOptions) {
|
|
90
|
+
return core.HttpResponsePromise.fromPromise(this.__metricsMetricsGet(requestOptions));
|
|
91
|
+
}
|
|
92
|
+
async __metricsMetricsGet(requestOptions) {
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
94
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
95
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
|
+
const _response = await core.fetcher({
|
|
97
|
+
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.HydraDBEnvironment.HydradDb, "metrics"),
|
|
98
|
+
method: "GET",
|
|
99
|
+
headers: _headers,
|
|
100
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
101
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
102
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
103
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
104
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
105
|
+
logging: this._options.logging,
|
|
106
|
+
});
|
|
107
|
+
if (_response.ok) {
|
|
108
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
109
|
+
}
|
|
110
|
+
if (_response.error.reason === "status-code") {
|
|
111
|
+
throw new errors.HydraDBError({
|
|
112
|
+
statusCode: _response.error.statusCode,
|
|
113
|
+
body: _response.error.body,
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/metrics");
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
121
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
122
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
123
|
+
*
|
|
124
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
125
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
126
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
127
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
128
|
+
*/
|
|
129
|
+
async passthroughFetch(input, init, requestOptions) {
|
|
130
|
+
var _a;
|
|
131
|
+
return core.makePassthroughRequest(input, init, {
|
|
132
|
+
baseUrl: (_a = this._options.baseUrl) !== null && _a !== void 0 ? _a : this._options.environment,
|
|
133
|
+
headers: this._options.headers,
|
|
134
|
+
timeoutInSeconds: this._options.timeoutInSeconds,
|
|
135
|
+
maxRetries: this._options.maxRetries,
|
|
136
|
+
fetch: this._options.fetch,
|
|
137
|
+
logging: this._options.logging,
|
|
138
|
+
getAuthHeaders: async () => (await this._options.authProvider.getAuthRequest()).headers,
|
|
139
|
+
}, requestOptions);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.HydraDBClient = HydraDBClient;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.BadRequestError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class BadRequestError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "BadRequestError",
|
|
33
|
+
statusCode: 400,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.BadRequestError = BadRequestError;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.ForbiddenError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class ForbiddenError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "ForbiddenError",
|
|
33
|
+
statusCode: 403,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.InternalServerError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class InternalServerError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "InternalServerError",
|
|
33
|
+
statusCode: 500,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerError = InternalServerError;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.NotFoundError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class NotFoundError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "NotFoundError",
|
|
33
|
+
statusCode: 404,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.ServiceUnavailableError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class ServiceUnavailableError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "ServiceUnavailableError",
|
|
33
|
+
statusCode: 503,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as HydraDB from "../index.js";
|
|
4
|
+
export declare class TooManyRequestsError extends errors.HydraDBError {
|
|
5
|
+
constructor(body: HydraDB.ActualErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.TooManyRequestsError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class TooManyRequestsError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "TooManyRequestsError",
|
|
33
|
+
statusCode: 429,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.UnauthorizedError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class UnauthorizedError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "UnauthorizedError",
|
|
33
|
+
statusCode: 401,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.UnprocessableEntityError = void 0;
|
|
28
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
29
|
+
class UnprocessableEntityError extends errors.HydraDBError {
|
|
30
|
+
constructor(body, rawResponse) {
|
|
31
|
+
super({
|
|
32
|
+
message: "UnprocessableEntityError",
|
|
33
|
+
statusCode: 422,
|
|
34
|
+
body: body,
|
|
35
|
+
rawResponse: rawResponse,
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
38
|
+
if (Error.captureStackTrace) {
|
|
39
|
+
Error.captureStackTrace(this, this.constructor);
|
|
40
|
+
}
|
|
41
|
+
this.name = this.constructor.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./BadRequestError.js";
|
|
2
|
+
export * from "./ForbiddenError.js";
|
|
3
|
+
export * from "./InternalServerError.js";
|
|
4
|
+
export * from "./NotFoundError.js";
|
|
5
|
+
export * from "./ServiceUnavailableError.js";
|
|
6
|
+
export * from "./TooManyRequestsError.js";
|
|
7
|
+
export * from "./UnauthorizedError.js";
|
|
8
|
+
export * from "./UnprocessableEntityError.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
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("./BadRequestError.js"), exports);
|
|
18
|
+
__exportStar(require("./ForbiddenError.js"), exports);
|
|
19
|
+
__exportStar(require("./InternalServerError.js"), exports);
|
|
20
|
+
__exportStar(require("./NotFoundError.js"), exports);
|
|
21
|
+
__exportStar(require("./ServiceUnavailableError.js"), exports);
|
|
22
|
+
__exportStar(require("./TooManyRequestsError.js"), exports);
|
|
23
|
+
__exportStar(require("./UnauthorizedError.js"), exports);
|
|
24
|
+
__exportStar(require("./UnprocessableEntityError.js"), exports);
|