@hydradb/sdk 0.0.2 → 2.0.0
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/README.md +526 -354
- package/dist/BaseClient.d.ts +6 -2
- package/dist/BaseClient.js +31 -15
- package/dist/Client.d.ts +28 -32
- package/dist/Client.js +99 -73
- package/dist/api/client/requests/QueryRequest.d.ts +40 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/errors/BadRequestError.js +17 -7
- package/dist/api/errors/ForbiddenError.js +17 -7
- package/dist/api/errors/InternalServerError.js +17 -7
- package/dist/api/errors/NotFoundError.js +17 -7
- package/dist/api/errors/ServiceUnavailableError.js +17 -7
- package/dist/api/errors/TooManyRequestsError.d.ts +1 -2
- package/dist/api/errors/TooManyRequestsError.js +17 -7
- package/dist/api/errors/UnauthorizedError.js +17 -7
- package/dist/api/errors/UnprocessableEntityError.js +17 -7
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/resources/context/client/Client.d.ts +131 -0
- package/dist/api/resources/context/client/Client.js +587 -0
- package/dist/api/resources/context/client/requests/BodyIngestContextIngestPost.d.ts +26 -0
- package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +20 -0
- package/dist/api/resources/{fetch/client/requests/GraphRelationsBySourceIdFetchRequest.d.ts → context/client/requests/RelationsContextRequest.d.ts} +10 -9
- package/dist/api/resources/context/client/requests/StatusContextRequest.d.ts +16 -0
- package/dist/api/resources/context/client/requests/V2ListContentRequest.d.ts +25 -0
- package/dist/api/resources/context/client/requests/V2SourceDeleteRequest.d.ts +16 -0
- package/dist/api/resources/context/client/requests/index.d.ts +6 -0
- package/dist/api/resources/context/exports.d.ts +2 -0
- package/dist/api/resources/{recall → context}/exports.js +2 -2
- package/dist/api/resources/index.d.ts +6 -19
- package/dist/api/resources/index.js +24 -27
- package/dist/api/resources/{tenant → tenants}/client/Client.d.ts +39 -39
- package/dist/api/resources/{tenant → tenants}/client/Client.js +204 -130
- package/dist/api/resources/tenants/client/requests/DeleteTenantsRequest.d.ts +10 -0
- package/dist/api/resources/tenants/client/requests/StatsTenantsRequest.d.ts +10 -0
- package/dist/api/resources/tenants/client/requests/StatusTenantsRequest.d.ts +10 -0
- package/dist/api/resources/tenants/client/requests/SubTenantsTenantsRequest.d.ts +10 -0
- package/dist/api/resources/tenants/client/requests/index.d.ts +4 -0
- package/dist/api/resources/tenants/exports.d.ts +2 -0
- package/dist/api/resources/{data → tenants}/exports.js +2 -2
- package/dist/api/resources/webhooks/client/Client.d.ts +87 -0
- package/dist/api/resources/webhooks/client/Client.js +429 -0
- package/dist/api/resources/webhooks/client/requests/GetDeliveryWebhooksRequest.d.ts +9 -0
- package/dist/api/resources/webhooks/client/requests/ListDeliveriesWebhooksRequest.d.ts +12 -0
- package/dist/api/resources/webhooks/client/requests/RetryDeliveryWebhooksRequest.d.ts +9 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +3 -0
- package/dist/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/api/resources/{fetch → webhooks}/exports.js +2 -2
- package/dist/api/types/CollectionStats.d.ts +1 -1
- package/dist/api/types/ContentFilter.d.ts +9 -5
- package/dist/api/types/CustomPropertyDefinition.d.ts +7 -7
- package/dist/api/types/DeleteUserMemoryResponse.d.ts +2 -2
- package/dist/api/types/DeliveryItem.d.ts +12 -0
- package/dist/api/types/DeliveryListResponse.d.ts +7 -0
- package/dist/api/types/Entity.d.ts +3 -3
- package/dist/api/types/ErrorDetail.d.ts +4 -0
- package/dist/api/types/GraphContext.d.ts +4 -4
- package/dist/api/types/InfraStatusResponseV2.d.ts +17 -0
- package/dist/api/types/InfraV2.d.ts +11 -0
- package/dist/api/types/IngestType.d.ts +5 -0
- package/dist/api/types/{ListContentKind.js → IngestType.js} +3 -3
- package/dist/api/types/ListUserMemoriesResponse.d.ts +3 -3
- package/dist/api/types/PaginationMeta.d.ts +4 -4
- package/dist/api/types/QueryApiResponse.d.ts +7 -0
- package/dist/api/types/QueryBy.d.ts +6 -0
- package/dist/api/types/QueryBy.js +9 -0
- package/dist/api/types/QueryRequestAlpha.d.ts +4 -0
- package/dist/api/types/RelationEvidence.d.ts +9 -9
- package/dist/api/types/ResponseMeta.d.ts +4 -0
- package/dist/api/types/RetryResponse.d.ts +5 -0
- package/dist/api/types/ScoredPathResponse.d.ts +4 -4
- package/dist/api/types/SourceDeleteApiResponse.d.ts +7 -0
- package/dist/api/types/SourceDeleteApiResponseData.d.ts +2 -0
- package/dist/api/types/SourceDeleteResponse.d.ts +4 -4
- package/dist/api/types/SourceDeleteResultItem.d.ts +2 -2
- package/dist/api/types/SourceFetchApiResponse.d.ts +7 -0
- package/dist/api/types/SourceGraphRelationsResponse.d.ts +4 -4
- package/dist/api/types/SourceInfo.d.ts +13 -7
- package/dist/api/types/SourceIngestApiResponse.d.ts +7 -0
- package/dist/api/types/SourceIngestApiResponseData.d.ts +2 -0
- package/dist/api/types/SourceListApiResponse.d.ts +7 -0
- package/dist/api/types/SourceListApiResponseData.d.ts +2 -0
- package/dist/api/types/SourceRelationsApiResponse.d.ts +7 -0
- package/dist/api/types/SourceStatusApiResponse.d.ts +7 -0
- package/dist/api/types/SourceType.d.ts +7 -0
- package/dist/api/types/SourceType.js +10 -0
- package/dist/api/types/SubTenantIdsResponse.d.ts +2 -2
- package/dist/api/types/TenantCreateAcceptedResponse.d.ts +3 -3
- package/dist/api/types/TenantCreateApiResponse.d.ts +7 -0
- package/dist/api/{resources/tenant/client/requests → types}/TenantCreateRequest.d.ts +9 -9
- package/dist/api/types/TenantDeleteApiResponse.d.ts +7 -0
- package/dist/api/types/TenantDeleteResponse.d.ts +3 -3
- package/dist/api/types/TenantIdsResponse.d.ts +3 -3
- package/dist/api/types/TenantInfraStatusApiResponse.d.ts +7 -0
- package/dist/api/types/TenantListApiResponse.d.ts +7 -0
- package/dist/api/types/TenantStatsApiResponse.d.ts +7 -0
- package/dist/api/types/TenantStatsResponse.d.ts +5 -5
- package/dist/api/types/TenantSubTenantsApiResponse.d.ts +7 -0
- package/dist/api/types/TripletWithEvidence.d.ts +1 -1
- package/dist/api/types/UserMemory.d.ts +4 -2
- package/dist/api/types/V2AddMemoryResponse.d.ts +11 -0
- package/dist/api/types/V2BatchProcessingStatus.d.ts +5 -0
- package/dist/api/types/V2Chunk.d.ts +29 -0
- package/dist/api/types/{MemoryResultItem.d.ts → V2MemoryResultItem.d.ts} +8 -9
- package/dist/api/types/V2ProcessingStatus.d.ts +18 -0
- package/dist/api/types/V2ProcessingStatusIndexingStatus.d.ts +10 -0
- package/dist/api/types/V2ProcessingStatusIndexingStatus.js +13 -0
- package/dist/api/types/V2RetrievalResult.d.ts +12 -0
- package/dist/api/types/V2SourceFetchResponse.d.ts +23 -0
- package/dist/api/types/V2SourceListResponse.d.ts +1 -0
- package/dist/api/types/V2SourceUploadResponse.d.ts +11 -0
- package/dist/api/types/V2SourceUploadResultItem.d.ts +13 -0
- package/dist/api/types/VectorstoreStatus.d.ts +6 -0
- package/dist/api/types/WebhookDeleteApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookDeleteResponse.d.ts +4 -0
- package/dist/api/types/WebhookDeliveryItemApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookDeliveryListApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookGetApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookGetResponse.d.ts +6 -0
- package/dist/api/types/WebhookRegisterApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookRegisterRequest.d.ts +8 -0
- package/dist/api/types/WebhookRegisterRequest.js +3 -0
- package/dist/api/types/WebhookRegisterResponse.d.ts +7 -0
- package/dist/api/types/WebhookRegisterResponse.js +3 -0
- package/dist/api/types/WebhookRetryApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookRetryApiResponse.js +3 -0
- package/dist/api/types/WebhookTestApiResponse.d.ts +7 -0
- package/dist/api/types/WebhookTestApiResponse.js +3 -0
- package/dist/api/types/WebhookTestResponse.d.ts +5 -0
- package/dist/api/types/WebhookTestResponse.js +3 -0
- package/dist/api/types/index.d.ts +52 -39
- package/dist/api/types/index.js +52 -39
- package/dist/auth/BearerAuthProvider.d.ts +1 -1
- package/dist/auth/BearerAuthProvider.js +18 -8
- package/dist/core/auth/AuthProvider.js +1 -2
- package/dist/core/auth/BasicAuth.js +2 -3
- package/dist/core/base64.js +2 -3
- package/dist/core/fetcher/BinaryResponse.js +1 -2
- package/dist/core/fetcher/Fetcher.js +7 -9
- package/dist/core/fetcher/Headers.d.ts +1 -2
- package/dist/core/fetcher/Headers.js +3 -11
- package/dist/core/fetcher/RawResponse.js +2 -2
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getErrorResponseBody.js +3 -5
- package/dist/core/fetcher/getFetchFn.js +1 -2
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +1 -2
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/makePassthroughRequest.js +12 -13
- package/dist/core/fetcher/makeRequest.js +13 -6
- package/dist/core/fetcher/requestWithRetries.js +1 -2
- package/dist/core/fetcher/signals.js +4 -5
- package/dist/core/file/file.js +29 -21
- package/dist/core/file/types.d.ts +0 -4
- package/dist/core/form-data-utils/FormDataWrapper.js +22 -32
- package/dist/core/form-data-utils/encodeAsFormParameter.js +1 -2
- package/dist/core/headers.d.ts +2 -3
- package/dist/core/headers.js +10 -9
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +19 -8
- package/dist/core/json.d.ts +1 -1
- package/dist/core/json.js +2 -2
- package/dist/core/logging/exports.js +17 -7
- package/dist/core/logging/logger.js +6 -7
- package/dist/core/runtime/runtime.js +7 -8
- package/dist/core/schemas/Schema.d.ts +88 -0
- package/dist/core/schemas/Schema.js +25 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +56 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +65 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +3 -0
- package/dist/core/schemas/builders/enum/enum.js +45 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +6 -0
- package/dist/core/schemas/builders/index.d.ts +14 -0
- package/dist/core/schemas/builders/index.js +30 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +27 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +20 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +52 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +28 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +28 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +385 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +15 -0
- package/dist/core/schemas/builders/object/types.d.ts +31 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +66 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +2 -0
- package/dist/core/schemas/builders/primitives/any.js +9 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +2 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +6 -0
- package/dist/core/schemas/builders/primitives/index.js +15 -0
- package/dist/core/schemas/builders/primitives/never.d.ts +2 -0
- package/dist/core/schemas/builders/primitives/never.js +14 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +2 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +2 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +2 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +6 -0
- package/dist/core/schemas/builders/record/record.d.ts +4 -0
- package/dist/core/schemas/builders/record/record.js +137 -0
- package/dist/core/schemas/builders/record/types.d.ts +6 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +13 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +13 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +21 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +157 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +9 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +45 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +42 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +9 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +130 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +18 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +6 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +13 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +27 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +15 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +6 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +31 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +15 -0
- package/dist/core/url/QueryStringBuilder.js +2 -3
- package/dist/core/url/encodePathParam.js +1 -2
- package/dist/core/url/join.js +4 -5
- package/dist/core/url/qs.js +5 -3
- package/dist/errors/HydraDBTimeoutError.js +1 -1
- package/dist/errors/handleNonStatusCodeError.js +18 -9
- package/dist/helpers/buildString.d.ts +16 -0
- package/dist/helpers/buildString.js +204 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +21 -8
- package/dist/serialization/client/requests/QueryRequest.d.ts +28 -0
- package/dist/serialization/client/requests/QueryRequest.js +60 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +5 -0
- package/dist/{api/resources/fetch → serialization}/index.d.ts +1 -0
- package/dist/{api/resources/fetch → serialization}/index.js +1 -0
- package/dist/serialization/resources/context/client/requests/V2ListContentRequest.d.ts +18 -0
- package/dist/serialization/resources/context/client/requests/V2ListContentRequest.js +50 -0
- package/dist/serialization/resources/context/client/requests/V2SourceDeleteRequest.d.ts +13 -0
- package/dist/serialization/resources/context/client/requests/V2SourceDeleteRequest.js +45 -0
- package/dist/serialization/resources/context/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/context/client/requests/index.js +7 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +41 -0
- package/dist/serialization/types/Bm25OperatorType.d.ts +7 -0
- package/dist/serialization/types/Bm25OperatorType.js +39 -0
- package/dist/serialization/types/CollectionStats.d.ts +10 -0
- package/dist/serialization/types/CollectionStats.js +42 -0
- package/dist/serialization/types/ContentFilter.d.ts +11 -0
- package/dist/serialization/types/ContentFilter.js +43 -0
- package/dist/serialization/types/CustomPropertyDefinition.d.ts +17 -0
- package/dist/serialization/types/CustomPropertyDefinition.js +49 -0
- package/dist/serialization/types/DeleteUserMemoryResponse.d.ts +10 -0
- package/dist/serialization/types/DeleteUserMemoryResponse.js +42 -0
- package/dist/serialization/types/DeliveryItem.d.ts +18 -0
- package/dist/serialization/types/DeliveryItem.js +50 -0
- package/dist/serialization/types/DeliveryListResponse.d.ts +12 -0
- package/dist/serialization/types/DeliveryListResponse.js +44 -0
- package/dist/serialization/types/Entity.d.ts +13 -0
- package/dist/serialization/types/Entity.js +45 -0
- package/dist/serialization/types/ErrorDetail.d.ts +10 -0
- package/dist/serialization/types/ErrorDetail.js +42 -0
- package/dist/serialization/types/GraphContext.d.ts +13 -0
- package/dist/serialization/types/GraphContext.js +47 -0
- package/dist/serialization/types/InfraStatusResponseV2.d.ts +13 -0
- package/dist/serialization/types/InfraStatusResponseV2.js +45 -0
- package/dist/serialization/types/InfraV2.d.ts +13 -0
- package/dist/serialization/types/InfraV2.js +45 -0
- package/dist/serialization/types/IngestType.d.ts +7 -0
- package/dist/serialization/types/IngestType.js +39 -0
- package/dist/serialization/types/ListUserMemoriesResponse.d.ts +14 -0
- package/dist/serialization/types/ListUserMemoriesResponse.js +46 -0
- package/dist/serialization/types/MilvusDataType.d.ts +7 -0
- package/dist/serialization/types/MilvusDataType.js +52 -0
- package/dist/serialization/types/PaginationMeta.d.ts +14 -0
- package/dist/serialization/types/PaginationMeta.js +46 -0
- package/dist/serialization/types/PathTriplet.d.ts +13 -0
- package/dist/serialization/types/PathTriplet.js +45 -0
- package/dist/serialization/types/QueryApiResponse.d.ts +15 -0
- package/dist/serialization/types/QueryApiResponse.js +47 -0
- package/dist/serialization/types/QueryBy.d.ts +7 -0
- package/dist/serialization/types/QueryBy.js +42 -0
- package/dist/serialization/types/QueryRequestAlpha.d.ts +7 -0
- package/dist/serialization/types/QueryRequestAlpha.js +39 -0
- package/dist/serialization/types/RelationEvidence.d.ts +18 -0
- package/dist/serialization/types/RelationEvidence.js +50 -0
- package/dist/serialization/types/ResponseMeta.d.ts +10 -0
- package/dist/serialization/types/ResponseMeta.js +42 -0
- package/dist/serialization/types/RetrieveMode.d.ts +7 -0
- package/dist/serialization/types/RetrieveMode.js +39 -0
- package/dist/serialization/types/RetryResponse.d.ts +11 -0
- package/dist/serialization/types/RetryResponse.js +43 -0
- package/dist/serialization/types/ScoredPathResponse.d.ts +14 -0
- package/dist/serialization/types/ScoredPathResponse.js +46 -0
- package/dist/serialization/types/SourceDeleteApiResponse.d.ts +15 -0
- package/dist/serialization/types/SourceDeleteApiResponse.js +47 -0
- package/dist/serialization/types/SourceDeleteApiResponseData.d.ts +9 -0
- package/dist/serialization/types/SourceDeleteApiResponseData.js +41 -0
- package/dist/serialization/types/SourceDeleteResponse.d.ts +13 -0
- package/dist/serialization/types/SourceDeleteResponse.js +45 -0
- package/dist/serialization/types/SourceDeleteResultItem.d.ts +11 -0
- package/dist/serialization/types/SourceDeleteResultItem.js +43 -0
- package/dist/serialization/types/SourceFetchApiResponse.d.ts +15 -0
- package/dist/serialization/types/SourceFetchApiResponse.js +47 -0
- package/dist/serialization/types/SourceGraphRelationsResponse.d.ts +14 -0
- package/dist/serialization/types/SourceGraphRelationsResponse.js +46 -0
- package/dist/serialization/types/SourceInfo.d.ts +19 -0
- package/dist/serialization/types/SourceInfo.js +51 -0
- package/dist/serialization/types/SourceIngestApiResponse.d.ts +15 -0
- package/dist/serialization/types/SourceIngestApiResponse.js +47 -0
- package/dist/serialization/types/SourceIngestApiResponseData.d.ts +9 -0
- package/dist/serialization/types/SourceIngestApiResponseData.js +41 -0
- package/dist/serialization/types/SourceListApiResponse.d.ts +15 -0
- package/dist/serialization/types/SourceListApiResponse.js +47 -0
- package/dist/serialization/types/SourceListApiResponseData.d.ts +9 -0
- package/dist/serialization/types/SourceListApiResponseData.js +41 -0
- package/dist/serialization/types/SourceRelationsApiResponse.d.ts +15 -0
- package/dist/serialization/types/SourceRelationsApiResponse.js +47 -0
- package/dist/serialization/types/SourceStatus.d.ts +7 -0
- package/dist/serialization/types/SourceStatus.js +39 -0
- package/dist/serialization/types/SourceStatusApiResponse.d.ts +15 -0
- package/dist/serialization/types/SourceStatusApiResponse.js +47 -0
- package/dist/serialization/types/SourceType.d.ts +7 -0
- package/dist/serialization/types/SourceType.js +39 -0
- package/dist/serialization/types/SubTenantIdsResponse.d.ts +10 -0
- package/dist/serialization/types/SubTenantIdsResponse.js +42 -0
- package/dist/serialization/types/TenantCreateAcceptedResponse.d.ts +11 -0
- package/dist/serialization/types/TenantCreateAcceptedResponse.js +43 -0
- package/dist/serialization/types/TenantCreateApiResponse.d.ts +15 -0
- package/dist/serialization/types/TenantCreateApiResponse.js +47 -0
- package/dist/serialization/types/TenantCreateRequest.d.ts +13 -0
- package/dist/serialization/types/TenantCreateRequest.js +45 -0
- package/dist/serialization/types/TenantDeleteApiResponse.d.ts +15 -0
- package/dist/serialization/types/TenantDeleteApiResponse.js +47 -0
- package/dist/serialization/types/TenantDeleteResponse.d.ts +11 -0
- package/dist/serialization/types/TenantDeleteResponse.js +43 -0
- package/dist/serialization/types/TenantIdsResponse.d.ts +11 -0
- package/dist/serialization/types/TenantIdsResponse.js +45 -0
- package/dist/serialization/types/TenantInfraStatusApiResponse.d.ts +15 -0
- package/dist/serialization/types/TenantInfraStatusApiResponse.js +47 -0
- package/dist/serialization/types/TenantListApiResponse.d.ts +15 -0
- package/dist/serialization/types/TenantListApiResponse.js +47 -0
- package/dist/serialization/types/TenantStatsApiResponse.d.ts +15 -0
- package/dist/serialization/types/TenantStatsApiResponse.js +47 -0
- package/dist/serialization/types/TenantStatsResponse.d.ts +13 -0
- package/dist/serialization/types/TenantStatsResponse.js +45 -0
- package/dist/serialization/types/TenantSubTenantsApiResponse.d.ts +15 -0
- package/dist/serialization/types/TenantSubTenantsApiResponse.js +47 -0
- package/dist/serialization/types/TripletWithEvidence.d.ts +14 -0
- package/dist/serialization/types/TripletWithEvidence.js +46 -0
- package/dist/serialization/types/UserMemory.d.ts +11 -0
- package/dist/serialization/types/UserMemory.js +43 -0
- package/dist/serialization/types/V2AddMemoryResponse.d.ts +14 -0
- package/dist/serialization/types/V2AddMemoryResponse.js +46 -0
- package/dist/serialization/types/V2BatchProcessingStatus.d.ts +10 -0
- package/dist/serialization/types/V2BatchProcessingStatus.js +42 -0
- package/dist/serialization/types/V2Chunk.d.ts +20 -0
- package/dist/serialization/types/V2Chunk.js +54 -0
- package/dist/serialization/types/V2MemoryResultItem.d.ts +15 -0
- package/dist/serialization/types/V2MemoryResultItem.js +47 -0
- package/dist/serialization/types/V2ProcessingStatus.d.ts +15 -0
- package/dist/serialization/types/V2ProcessingStatus.js +47 -0
- package/dist/serialization/types/V2ProcessingStatusIndexingStatus.d.ts +7 -0
- package/dist/serialization/types/V2ProcessingStatusIndexingStatus.js +39 -0
- package/dist/serialization/types/V2RetrievalResult.d.ts +15 -0
- package/dist/serialization/types/V2RetrievalResult.js +47 -0
- package/dist/serialization/types/V2SourceFetchResponse.d.ts +17 -0
- package/dist/serialization/types/V2SourceFetchResponse.js +49 -0
- package/dist/serialization/types/V2SourceListResponse.d.ts +7 -0
- package/dist/serialization/types/V2SourceListResponse.js +39 -0
- package/dist/serialization/types/V2SourceUploadResponse.d.ts +14 -0
- package/dist/serialization/types/V2SourceUploadResponse.js +46 -0
- package/dist/serialization/types/V2SourceUploadResultItem.d.ts +14 -0
- package/dist/serialization/types/V2SourceUploadResultItem.js +46 -0
- package/dist/serialization/types/VectorstoreStatus.d.ts +10 -0
- package/dist/serialization/types/VectorstoreStatus.js +42 -0
- package/dist/serialization/types/WebhookDeleteApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookDeleteApiResponse.js +47 -0
- package/dist/serialization/types/WebhookDeleteResponse.d.ts +10 -0
- package/dist/serialization/types/WebhookDeleteResponse.js +42 -0
- package/dist/serialization/types/WebhookDeliveryItemApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookDeliveryItemApiResponse.js +47 -0
- package/dist/serialization/types/WebhookDeliveryListApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookDeliveryListApiResponse.js +47 -0
- package/dist/serialization/types/WebhookGetApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookGetApiResponse.js +47 -0
- package/dist/serialization/types/WebhookGetResponse.d.ts +12 -0
- package/dist/serialization/types/WebhookGetResponse.js +44 -0
- package/dist/serialization/types/WebhookRegisterApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookRegisterApiResponse.js +47 -0
- package/dist/serialization/types/WebhookRegisterRequest.d.ts +11 -0
- package/dist/serialization/types/WebhookRegisterRequest.js +43 -0
- package/dist/serialization/types/WebhookRegisterResponse.d.ts +13 -0
- package/dist/serialization/types/WebhookRegisterResponse.js +45 -0
- package/dist/serialization/types/WebhookRetryApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookRetryApiResponse.js +47 -0
- package/dist/serialization/types/WebhookTestApiResponse.d.ts +15 -0
- package/dist/serialization/types/WebhookTestApiResponse.js +47 -0
- package/dist/serialization/types/WebhookTestResponse.d.ts +11 -0
- package/dist/serialization/types/WebhookTestResponse.js +43 -0
- package/dist/serialization/types/index.d.ts +78 -0
- package/dist/serialization/types/index.js +94 -0
- package/package.json +12 -2
- package/dist/api/resources/data/client/Client.d.ts +0 -33
- package/dist/api/resources/data/client/Client.js +0 -108
- package/dist/api/resources/data/client/requests/SourceDeleteRequest.d.ts +0 -13
- package/dist/api/resources/data/client/requests/index.d.ts +0 -1
- package/dist/api/resources/data/exports.d.ts +0 -2
- package/dist/api/resources/embeddings/client/Client.d.ts +0 -111
- package/dist/api/resources/embeddings/client/Client.js +0 -339
- package/dist/api/resources/embeddings/client/requests/BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.d.ts +0 -21
- package/dist/api/resources/embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.d.ts +0 -36
- package/dist/api/resources/embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.d.ts +0 -22
- package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +0 -16
- package/dist/api/resources/embeddings/client/requests/index.d.ts +0 -4
- package/dist/api/resources/embeddings/exports.d.ts +0 -2
- package/dist/api/resources/embeddings/exports.js +0 -21
- package/dist/api/resources/fetch/client/Client.d.ts +0 -72
- package/dist/api/resources/fetch/client/Client.js +0 -252
- package/dist/api/resources/fetch/client/requests/ListContentRequest.d.ts +0 -25
- package/dist/api/resources/fetch/client/requests/SourceFetchRequest.d.ts +0 -20
- package/dist/api/resources/fetch/client/requests/index.d.ts +0 -3
- package/dist/api/resources/fetch/exports.d.ts +0 -2
- package/dist/api/resources/fetch/types/ListDataFetchResponse.d.ts +0 -2
- package/dist/api/resources/fetch/types/index.d.ts +0 -1
- package/dist/api/resources/fetch/types/index.js +0 -17
- package/dist/api/resources/graphHealth/client/Client.d.ts +0 -32
- package/dist/api/resources/graphHealth/client/Client.js +0 -115
- package/dist/api/resources/graphHealth/client/requests/GetSuperNodesGraphHealthSuperNodesGetRequest.d.ts +0 -16
- package/dist/api/resources/graphHealth/client/requests/index.d.ts +0 -1
- package/dist/api/resources/graphHealth/exports.d.ts +0 -2
- package/dist/api/resources/graphHealth/exports.js +0 -21
- package/dist/api/resources/ingestionPipeline/client/Client.d.ts +0 -27
- package/dist/api/resources/ingestionPipeline/client/Client.js +0 -90
- package/dist/api/resources/ingestionPipeline/client/requests/MemoryIngestRequest.d.ts +0 -19
- package/dist/api/resources/ingestionPipeline/client/requests/index.d.ts +0 -1
- package/dist/api/resources/ingestionPipeline/exports.d.ts +0 -2
- package/dist/api/resources/ingestionPipeline/exports.js +0 -21
- package/dist/api/resources/key/client/Client.d.ts +0 -30
- package/dist/api/resources/key/client/Client.js +0 -104
- package/dist/api/resources/key/client/requests/ApiKeyCreateRequest.d.ts +0 -14
- package/dist/api/resources/key/client/requests/index.d.ts +0 -1
- package/dist/api/resources/key/exports.d.ts +0 -2
- package/dist/api/resources/key/exports.js +0 -21
- package/dist/api/resources/key/index.d.ts +0 -1
- package/dist/api/resources/key/index.js +0 -17
- package/dist/api/resources/recall/client/Client.d.ts +0 -97
- package/dist/api/resources/recall/client/Client.js +0 -324
- package/dist/api/resources/recall/client/index.d.ts +0 -1
- package/dist/api/resources/recall/client/index.js +0 -17
- package/dist/api/resources/recall/client/requests/FullTextSearchRequest.d.ts +0 -22
- package/dist/api/resources/recall/client/requests/QnASearchRequest.d.ts +0 -38
- package/dist/api/resources/recall/client/requests/index.d.ts +0 -2
- package/dist/api/resources/recall/exports.d.ts +0 -2
- package/dist/api/resources/recall/index.d.ts +0 -1
- package/dist/api/resources/recall/index.js +0 -17
- package/dist/api/resources/tenant/client/index.d.ts +0 -1
- package/dist/api/resources/tenant/client/index.js +0 -17
- package/dist/api/resources/tenant/client/requests/DeleteTenantTenantRequest.d.ts +0 -10
- package/dist/api/resources/tenant/client/requests/GetInfraStatusTenantRequest.d.ts +0 -10
- package/dist/api/resources/tenant/client/requests/GetSubTenantIdsTenantRequest.d.ts +0 -10
- package/dist/api/resources/tenant/client/requests/MonitorTenantRequest.d.ts +0 -10
- package/dist/api/resources/tenant/client/requests/index.d.ts +0 -5
- package/dist/api/resources/tenant/exports.d.ts +0 -2
- package/dist/api/resources/tenant/exports.js +0 -21
- package/dist/api/resources/tenant/index.d.ts +0 -1
- package/dist/api/resources/tenant/index.js +0 -17
- package/dist/api/resources/upload/client/Client.d.ts +0 -92
- package/dist/api/resources/upload/client/Client.js +0 -349
- package/dist/api/resources/upload/client/index.d.ts +0 -1
- package/dist/api/resources/upload/client/index.js +0 -17
- package/dist/api/resources/upload/client/requests/BodyAddMemoryMemoriesAddMemoryPost.d.ts +0 -18
- package/dist/api/resources/upload/client/requests/BodyUploadKnowledgeIngestionUploadKnowledgePost.d.ts +0 -23
- package/dist/api/resources/upload/client/requests/DeleteMemoryUploadRequest.d.ts +0 -15
- package/dist/api/resources/upload/client/requests/VerifyProcessingUploadRequest.d.ts +0 -16
- package/dist/api/resources/upload/client/requests/index.d.ts +0 -4
- package/dist/api/resources/upload/exports.d.ts +0 -2
- package/dist/api/resources/upload/exports.js +0 -21
- package/dist/api/resources/upload/index.d.ts +0 -1
- package/dist/api/resources/upload/index.js +0 -17
- package/dist/api/types/ActualErrorResponse.d.ts +0 -4
- package/dist/api/types/AddMemoryResponse.d.ts +0 -14
- package/dist/api/types/ApiKeyCreateResponse.d.ts +0 -14
- package/dist/api/types/AttachmentModel.d.ts +0 -17
- package/dist/api/types/BatchProcessingStatus.d.ts +0 -5
- package/dist/api/types/ContentModel.d.ts +0 -14
- package/dist/api/types/CortexModelsResponseCommonsActualErrorResponse.d.ts +0 -4
- package/dist/api/types/CortexModelsResponseCommonsErrorResponse.d.ts +0 -5
- package/dist/api/types/DeleteResult.d.ts +0 -11
- package/dist/api/types/ErrorResponse.d.ts +0 -5
- package/dist/api/types/FetchMode.d.ts +0 -7
- package/dist/api/types/FetchMode.js +0 -10
- package/dist/api/types/ForcefulRelationsPayload.d.ts +0 -6
- package/dist/api/types/HttpValidationError.d.ts +0 -4
- package/dist/api/types/Infra.d.ts +0 -5
- package/dist/api/types/InfraStatusResponse.d.ts +0 -14
- package/dist/api/types/IngestResponse.d.ts +0 -4
- package/dist/api/types/InsertResult.d.ts +0 -13
- package/dist/api/types/ListContentKind.d.ts +0 -5
- package/dist/api/types/MemoryItem.d.ts +0 -44
- package/dist/api/types/ProcessingStatus.d.ts +0 -26
- package/dist/api/types/ProcessingStatus.js +0 -16
- package/dist/api/types/QnASearchResponse.d.ts +0 -17
- package/dist/api/types/RawEmbeddingDocument.d.ts +0 -16
- package/dist/api/types/RawEmbeddingSearchResult.d.ts +0 -16
- package/dist/api/types/RawEmbeddingVector.d.ts +0 -9
- package/dist/api/types/RecallSearchRequest.d.ts +0 -34
- package/dist/api/types/RetrievalResult.d.ts +0 -12
- package/dist/api/types/SearchMode.d.ts +0 -6
- package/dist/api/types/SearchMode.js +0 -9
- package/dist/api/types/SourceFetchResponse.d.ts +0 -23
- package/dist/api/types/SourceListResponse.d.ts +0 -1
- package/dist/api/types/SourceModel.d.ts +0 -42
- package/dist/api/types/SourceUploadResponse.d.ts +0 -11
- package/dist/api/types/SourceUploadResultItem.d.ts +0 -11
- package/dist/api/types/SuperNodeItem.d.ts +0 -9
- package/dist/api/types/SuperNodeResponse.d.ts +0 -11
- package/dist/api/types/SupportedLlmProviders.d.ts +0 -8
- package/dist/api/types/SupportedLlmProviders.js +0 -11
- package/dist/api/types/UserAssistantPair.d.ts +0 -9
- package/dist/api/types/ValidationError.d.ts +0 -11
- package/dist/api/types/VectorStoreChunk.d.ts +0 -26
- /package/dist/api/{resources/data/client → client}/index.d.ts +0 -0
- /package/dist/api/{resources/data/client → client}/index.js +0 -0
- /package/dist/api/{resources/data/client/requests/SourceDeleteRequest.js → client/requests/QueryRequest.js} +0 -0
- /package/dist/api/{resources/data/client → client}/requests/index.js +0 -0
- /package/dist/api/resources/{embeddings → context}/client/index.d.ts +0 -0
- /package/dist/api/resources/{embeddings → context}/client/index.js +0 -0
- /package/dist/api/resources/{embeddings/client/requests/BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.js → context/client/requests/BodyIngestContextIngestPost.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.js → context/client/requests/InspectContextRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.js → context/client/requests/RelationsContextRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/DeleteEmbeddingsRequest.js → context/client/requests/StatusContextRequest.js} +0 -0
- /package/dist/api/resources/{fetch/client/requests/GraphRelationsBySourceIdFetchRequest.js → context/client/requests/V2ListContentRequest.js} +0 -0
- /package/dist/api/resources/{fetch/client/requests/ListContentRequest.js → context/client/requests/V2SourceDeleteRequest.js} +0 -0
- /package/dist/api/resources/{embeddings → context}/client/requests/index.js +0 -0
- /package/dist/api/resources/{data → context}/index.d.ts +0 -0
- /package/dist/api/resources/{data → context}/index.js +0 -0
- /package/dist/api/resources/{fetch → tenants}/client/index.d.ts +0 -0
- /package/dist/api/resources/{fetch → tenants}/client/index.js +0 -0
- /package/dist/api/resources/{fetch/client/requests/SourceFetchRequest.js → tenants/client/requests/DeleteTenantsRequest.js} +0 -0
- /package/dist/api/resources/{fetch/types/ListDataFetchResponse.js → tenants/client/requests/StatsTenantsRequest.js} +0 -0
- /package/dist/api/resources/{graphHealth/client/requests/GetSuperNodesGraphHealthSuperNodesGetRequest.js → tenants/client/requests/StatusTenantsRequest.js} +0 -0
- /package/dist/api/resources/{ingestionPipeline/client/requests/MemoryIngestRequest.js → tenants/client/requests/SubTenantsTenantsRequest.js} +0 -0
- /package/dist/api/resources/{fetch → tenants}/client/requests/index.js +0 -0
- /package/dist/api/resources/{embeddings → tenants}/index.d.ts +0 -0
- /package/dist/api/resources/{embeddings → tenants}/index.js +0 -0
- /package/dist/api/resources/{graphHealth → webhooks}/client/index.d.ts +0 -0
- /package/dist/api/resources/{graphHealth → webhooks}/client/index.js +0 -0
- /package/dist/api/resources/{key/client/requests/ApiKeyCreateRequest.js → webhooks/client/requests/GetDeliveryWebhooksRequest.js} +0 -0
- /package/dist/api/resources/{recall/client/requests/FullTextSearchRequest.js → webhooks/client/requests/ListDeliveriesWebhooksRequest.js} +0 -0
- /package/dist/api/resources/{recall/client/requests/QnASearchRequest.js → webhooks/client/requests/RetryDeliveryWebhooksRequest.js} +0 -0
- /package/dist/api/resources/{graphHealth → webhooks}/client/requests/index.js +0 -0
- /package/dist/api/resources/{graphHealth → webhooks}/index.d.ts +0 -0
- /package/dist/api/resources/{graphHealth → webhooks}/index.js +0 -0
- /package/dist/api/{resources/tenant/client/requests/DeleteTenantTenantRequest.js → types/DeliveryItem.js} +0 -0
- /package/dist/api/{resources/tenant/client/requests/GetInfraStatusTenantRequest.js → types/DeliveryListResponse.js} +0 -0
- /package/dist/api/{resources/tenant/client/requests/GetSubTenantIdsTenantRequest.js → types/ErrorDetail.js} +0 -0
- /package/dist/api/{resources/tenant/client/requests/MonitorTenantRequest.js → types/InfraStatusResponseV2.js} +0 -0
- /package/dist/api/{resources/tenant/client/requests/TenantCreateRequest.js → types/InfraV2.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/BodyAddMemoryMemoriesAddMemoryPost.js → types/QueryApiResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/BodyUploadKnowledgeIngestionUploadKnowledgePost.js → types/QueryRequestAlpha.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/DeleteMemoryUploadRequest.js → types/ResponseMeta.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/VerifyProcessingUploadRequest.js → types/RetryResponse.js} +0 -0
- /package/dist/api/types/{ActualErrorResponse.js → SourceDeleteApiResponse.js} +0 -0
- /package/dist/api/types/{AddMemoryResponse.js → SourceDeleteApiResponseData.js} +0 -0
- /package/dist/api/types/{ApiKeyCreateResponse.js → SourceFetchApiResponse.js} +0 -0
- /package/dist/api/types/{AttachmentModel.js → SourceIngestApiResponse.js} +0 -0
- /package/dist/api/types/{BatchProcessingStatus.js → SourceIngestApiResponseData.js} +0 -0
- /package/dist/api/types/{ContentModel.js → SourceListApiResponse.js} +0 -0
- /package/dist/api/types/{CortexModelsResponseCommonsActualErrorResponse.js → SourceListApiResponseData.js} +0 -0
- /package/dist/api/types/{CortexModelsResponseCommonsErrorResponse.js → SourceRelationsApiResponse.js} +0 -0
- /package/dist/api/types/{DeleteResult.js → SourceStatusApiResponse.js} +0 -0
- /package/dist/api/types/{ErrorResponse.js → TenantCreateApiResponse.js} +0 -0
- /package/dist/api/types/{ForcefulRelationsPayload.js → TenantCreateRequest.js} +0 -0
- /package/dist/api/types/{HttpValidationError.js → TenantDeleteApiResponse.js} +0 -0
- /package/dist/api/types/{Infra.js → TenantInfraStatusApiResponse.js} +0 -0
- /package/dist/api/types/{InfraStatusResponse.js → TenantListApiResponse.js} +0 -0
- /package/dist/api/types/{IngestResponse.js → TenantStatsApiResponse.js} +0 -0
- /package/dist/api/types/{InsertResult.js → TenantSubTenantsApiResponse.js} +0 -0
- /package/dist/api/types/{MemoryItem.js → V2AddMemoryResponse.js} +0 -0
- /package/dist/api/types/{MemoryResultItem.js → V2BatchProcessingStatus.js} +0 -0
- /package/dist/api/types/{QnASearchResponse.js → V2Chunk.js} +0 -0
- /package/dist/api/types/{RawEmbeddingDocument.js → V2MemoryResultItem.js} +0 -0
- /package/dist/api/types/{RawEmbeddingSearchResult.js → V2ProcessingStatus.js} +0 -0
- /package/dist/api/types/{RawEmbeddingVector.js → V2RetrievalResult.js} +0 -0
- /package/dist/api/types/{RecallSearchRequest.js → V2SourceFetchResponse.js} +0 -0
- /package/dist/api/types/{RetrievalResult.js → V2SourceListResponse.js} +0 -0
- /package/dist/api/types/{SourceFetchResponse.js → V2SourceUploadResponse.js} +0 -0
- /package/dist/api/types/{SourceListResponse.js → V2SourceUploadResultItem.js} +0 -0
- /package/dist/api/types/{SourceModel.js → VectorstoreStatus.js} +0 -0
- /package/dist/api/types/{SourceUploadResponse.js → WebhookDeleteApiResponse.js} +0 -0
- /package/dist/api/types/{SourceUploadResultItem.js → WebhookDeleteResponse.js} +0 -0
- /package/dist/api/types/{SuperNodeItem.js → WebhookDeliveryItemApiResponse.js} +0 -0
- /package/dist/api/types/{SuperNodeResponse.js → WebhookDeliveryListApiResponse.js} +0 -0
- /package/dist/api/types/{UserAssistantPair.js → WebhookGetApiResponse.js} +0 -0
- /package/dist/api/types/{ValidationError.js → WebhookGetResponse.js} +0 -0
- /package/dist/api/types/{VectorStoreChunk.js → WebhookRegisterApiResponse.js} +0 -0
- /package/dist/{api/resources/key/client/requests/index.js → core/schemas/builders/object/types.js} +0 -0
- /package/dist/{api/resources/ingestionPipeline/client/requests/index.js → core/schemas/builders/object-like/types.js} +0 -0
- /package/dist/{api/resources/recall/client/requests/index.js → core/schemas/builders/record/types.js} +0 -0
- /package/dist/{api/resources/tenant/client/requests/index.js → core/schemas/builders/undiscriminated-union/types.js} +0 -0
- /package/dist/{api/resources/upload/client/requests/index.js → core/schemas/builders/union/types.js} +0 -0
- /package/dist/{api/resources/ingestionPipeline → serialization}/client/index.d.ts +0 -0
- /package/dist/{api/resources/ingestionPipeline → serialization}/client/index.js +0 -0
- /package/dist/{api/resources/key → serialization/resources/context}/client/index.d.ts +0 -0
- /package/dist/{api/resources/key → serialization/resources/context}/client/index.js +0 -0
- /package/dist/{api/resources/ingestionPipeline → serialization/resources/context}/index.d.ts +0 -0
- /package/dist/{api/resources/ingestionPipeline → serialization/resources/context}/index.js +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as HydraDB from "../../../index.js";
|
|
5
|
+
export declare namespace WebhooksClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class WebhooksClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<WebhooksClient.Options>;
|
|
12
|
+
constructor(options: WebhooksClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* await client.webhooks.get()
|
|
18
|
+
*/
|
|
19
|
+
get(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookGetApiResponse>;
|
|
20
|
+
private __get;
|
|
21
|
+
/**
|
|
22
|
+
* @param {HydraDB.WebhookRegisterRequest} request
|
|
23
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.webhooks.register({
|
|
29
|
+
* url: "<url>"
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
register(request: HydraDB.WebhookRegisterRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookRegisterApiResponse>;
|
|
33
|
+
private __register;
|
|
34
|
+
/**
|
|
35
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.webhooks.delete()
|
|
39
|
+
*/
|
|
40
|
+
delete(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookDeleteApiResponse>;
|
|
41
|
+
private __delete;
|
|
42
|
+
/**
|
|
43
|
+
* @param {HydraDB.ListDeliveriesWebhooksRequest} request
|
|
44
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.webhooks.listDeliveries()
|
|
50
|
+
*/
|
|
51
|
+
listDeliveries(request?: HydraDB.ListDeliveriesWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookDeliveryListApiResponse>;
|
|
52
|
+
private __listDeliveries;
|
|
53
|
+
/**
|
|
54
|
+
* @param {HydraDB.GetDeliveryWebhooksRequest} request
|
|
55
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.webhooks.getDelivery({
|
|
61
|
+
* deliveryId: "delivery_id"
|
|
62
|
+
* })
|
|
63
|
+
*/
|
|
64
|
+
getDelivery(request: HydraDB.GetDeliveryWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookDeliveryItemApiResponse>;
|
|
65
|
+
private __getDelivery;
|
|
66
|
+
/**
|
|
67
|
+
* @param {HydraDB.RetryDeliveryWebhooksRequest} request
|
|
68
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.webhooks.retryDelivery({
|
|
74
|
+
* deliveryId: "delivery_id"
|
|
75
|
+
* })
|
|
76
|
+
*/
|
|
77
|
+
retryDelivery(request: HydraDB.RetryDeliveryWebhooksRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookRetryApiResponse>;
|
|
78
|
+
private __retryDelivery;
|
|
79
|
+
/**
|
|
80
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.webhooks.test()
|
|
84
|
+
*/
|
|
85
|
+
test(requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<HydraDB.WebhookTestApiResponse>;
|
|
86
|
+
private __test;
|
|
87
|
+
}
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.WebhooksClient = void 0;
|
|
38
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
39
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
42
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
43
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
44
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
45
|
+
const HydraDB = __importStar(require("../../../index.js"));
|
|
46
|
+
class WebhooksClient {
|
|
47
|
+
constructor(options) {
|
|
48
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.webhooks.get()
|
|
55
|
+
*/
|
|
56
|
+
get(requestOptions) {
|
|
57
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
58
|
+
}
|
|
59
|
+
async __get(requestOptions) {
|
|
60
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
61
|
+
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);
|
|
62
|
+
const _response = await core.fetcher({
|
|
63
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
64
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
65
|
+
environments.HydraDBEnvironment.HydradDb, "webhooks/indexing"),
|
|
66
|
+
method: "GET",
|
|
67
|
+
headers: _headers,
|
|
68
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
69
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
70
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
71
|
+
abortSignal: requestOptions?.abortSignal,
|
|
72
|
+
fetchFn: this._options?.fetch,
|
|
73
|
+
logging: this._options.logging,
|
|
74
|
+
});
|
|
75
|
+
if (_response.ok) {
|
|
76
|
+
return {
|
|
77
|
+
data: serializers.WebhookGetApiResponse.parseOrThrow(_response.body, {
|
|
78
|
+
unrecognizedObjectKeys: "passthrough",
|
|
79
|
+
allowUnrecognizedUnionMembers: true,
|
|
80
|
+
allowUnrecognizedEnumValues: true,
|
|
81
|
+
skipValidation: true,
|
|
82
|
+
breadcrumbsPrefix: ["response"],
|
|
83
|
+
}),
|
|
84
|
+
rawResponse: _response.rawResponse,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
if (_response.error.reason === "status-code") {
|
|
88
|
+
throw new errors.HydraDBError({
|
|
89
|
+
statusCode: _response.error.statusCode,
|
|
90
|
+
body: _response.error.body,
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing");
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @param {HydraDB.WebhookRegisterRequest} request
|
|
98
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* await client.webhooks.register({
|
|
104
|
+
* url: "<url>"
|
|
105
|
+
* })
|
|
106
|
+
*/
|
|
107
|
+
register(request, requestOptions) {
|
|
108
|
+
return core.HttpResponsePromise.fromPromise(this.__register(request, requestOptions));
|
|
109
|
+
}
|
|
110
|
+
async __register(request, requestOptions) {
|
|
111
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
112
|
+
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);
|
|
113
|
+
const _response = await core.fetcher({
|
|
114
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
115
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
116
|
+
environments.HydraDBEnvironment.HydradDb, "webhooks/indexing"),
|
|
117
|
+
method: "POST",
|
|
118
|
+
headers: _headers,
|
|
119
|
+
contentType: "application/json",
|
|
120
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
121
|
+
requestType: "json",
|
|
122
|
+
body: serializers.WebhookRegisterRequest.jsonOrThrow(request, {
|
|
123
|
+
unrecognizedObjectKeys: "strip",
|
|
124
|
+
omitUndefined: true,
|
|
125
|
+
}),
|
|
126
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
127
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
128
|
+
abortSignal: requestOptions?.abortSignal,
|
|
129
|
+
fetchFn: this._options?.fetch,
|
|
130
|
+
logging: this._options.logging,
|
|
131
|
+
});
|
|
132
|
+
if (_response.ok) {
|
|
133
|
+
return {
|
|
134
|
+
data: serializers.WebhookRegisterApiResponse.parseOrThrow(_response.body, {
|
|
135
|
+
unrecognizedObjectKeys: "passthrough",
|
|
136
|
+
allowUnrecognizedUnionMembers: true,
|
|
137
|
+
allowUnrecognizedEnumValues: true,
|
|
138
|
+
skipValidation: true,
|
|
139
|
+
breadcrumbsPrefix: ["response"],
|
|
140
|
+
}),
|
|
141
|
+
rawResponse: _response.rawResponse,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (_response.error.reason === "status-code") {
|
|
145
|
+
switch (_response.error.statusCode) {
|
|
146
|
+
case 422:
|
|
147
|
+
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
148
|
+
default:
|
|
149
|
+
throw new errors.HydraDBError({
|
|
150
|
+
statusCode: _response.error.statusCode,
|
|
151
|
+
body: _response.error.body,
|
|
152
|
+
rawResponse: _response.rawResponse,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing");
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.webhooks.delete()
|
|
163
|
+
*/
|
|
164
|
+
delete(requestOptions) {
|
|
165
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(requestOptions));
|
|
166
|
+
}
|
|
167
|
+
async __delete(requestOptions) {
|
|
168
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
169
|
+
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);
|
|
170
|
+
const _response = await core.fetcher({
|
|
171
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
172
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
173
|
+
environments.HydraDBEnvironment.HydradDb, "webhooks/indexing"),
|
|
174
|
+
method: "DELETE",
|
|
175
|
+
headers: _headers,
|
|
176
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
177
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
178
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
179
|
+
abortSignal: requestOptions?.abortSignal,
|
|
180
|
+
fetchFn: this._options?.fetch,
|
|
181
|
+
logging: this._options.logging,
|
|
182
|
+
});
|
|
183
|
+
if (_response.ok) {
|
|
184
|
+
return {
|
|
185
|
+
data: serializers.WebhookDeleteApiResponse.parseOrThrow(_response.body, {
|
|
186
|
+
unrecognizedObjectKeys: "passthrough",
|
|
187
|
+
allowUnrecognizedUnionMembers: true,
|
|
188
|
+
allowUnrecognizedEnumValues: true,
|
|
189
|
+
skipValidation: true,
|
|
190
|
+
breadcrumbsPrefix: ["response"],
|
|
191
|
+
}),
|
|
192
|
+
rawResponse: _response.rawResponse,
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
if (_response.error.reason === "status-code") {
|
|
196
|
+
throw new errors.HydraDBError({
|
|
197
|
+
statusCode: _response.error.statusCode,
|
|
198
|
+
body: _response.error.body,
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/webhooks/indexing");
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @param {HydraDB.ListDeliveriesWebhooksRequest} request
|
|
206
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
|
+
*
|
|
208
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* await client.webhooks.listDeliveries()
|
|
212
|
+
*/
|
|
213
|
+
listDeliveries(request = {}, requestOptions) {
|
|
214
|
+
return core.HttpResponsePromise.fromPromise(this.__listDeliveries(request, requestOptions));
|
|
215
|
+
}
|
|
216
|
+
async __listDeliveries(request = {}, requestOptions) {
|
|
217
|
+
const { limit, cursor, status } = request;
|
|
218
|
+
const _queryParams = {
|
|
219
|
+
limit,
|
|
220
|
+
cursor,
|
|
221
|
+
status,
|
|
222
|
+
};
|
|
223
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
224
|
+
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);
|
|
225
|
+
const _response = await core.fetcher({
|
|
226
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
227
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
228
|
+
environments.HydraDBEnvironment.HydradDb, "webhooks/indexing/deliveries"),
|
|
229
|
+
method: "GET",
|
|
230
|
+
headers: _headers,
|
|
231
|
+
queryString: core.url
|
|
232
|
+
.queryBuilder()
|
|
233
|
+
.addMany(_queryParams)
|
|
234
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
235
|
+
.build(),
|
|
236
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
237
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
238
|
+
abortSignal: requestOptions?.abortSignal,
|
|
239
|
+
fetchFn: this._options?.fetch,
|
|
240
|
+
logging: this._options.logging,
|
|
241
|
+
});
|
|
242
|
+
if (_response.ok) {
|
|
243
|
+
return {
|
|
244
|
+
data: serializers.WebhookDeliveryListApiResponse.parseOrThrow(_response.body, {
|
|
245
|
+
unrecognizedObjectKeys: "passthrough",
|
|
246
|
+
allowUnrecognizedUnionMembers: true,
|
|
247
|
+
allowUnrecognizedEnumValues: true,
|
|
248
|
+
skipValidation: true,
|
|
249
|
+
breadcrumbsPrefix: ["response"],
|
|
250
|
+
}),
|
|
251
|
+
rawResponse: _response.rawResponse,
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
if (_response.error.reason === "status-code") {
|
|
255
|
+
switch (_response.error.statusCode) {
|
|
256
|
+
case 422:
|
|
257
|
+
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
258
|
+
default:
|
|
259
|
+
throw new errors.HydraDBError({
|
|
260
|
+
statusCode: _response.error.statusCode,
|
|
261
|
+
body: _response.error.body,
|
|
262
|
+
rawResponse: _response.rawResponse,
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing/deliveries");
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @param {HydraDB.GetDeliveryWebhooksRequest} request
|
|
270
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
271
|
+
*
|
|
272
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* await client.webhooks.getDelivery({
|
|
276
|
+
* deliveryId: "delivery_id"
|
|
277
|
+
* })
|
|
278
|
+
*/
|
|
279
|
+
getDelivery(request, requestOptions) {
|
|
280
|
+
return core.HttpResponsePromise.fromPromise(this.__getDelivery(request, requestOptions));
|
|
281
|
+
}
|
|
282
|
+
async __getDelivery(request, requestOptions) {
|
|
283
|
+
const { deliveryId } = request;
|
|
284
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
285
|
+
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);
|
|
286
|
+
const _response = await core.fetcher({
|
|
287
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
288
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
289
|
+
environments.HydraDBEnvironment.HydradDb, `webhooks/indexing/deliveries/${core.url.encodePathParam(deliveryId)}`),
|
|
290
|
+
method: "GET",
|
|
291
|
+
headers: _headers,
|
|
292
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
293
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
294
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
295
|
+
abortSignal: requestOptions?.abortSignal,
|
|
296
|
+
fetchFn: this._options?.fetch,
|
|
297
|
+
logging: this._options.logging,
|
|
298
|
+
});
|
|
299
|
+
if (_response.ok) {
|
|
300
|
+
return {
|
|
301
|
+
data: serializers.WebhookDeliveryItemApiResponse.parseOrThrow(_response.body, {
|
|
302
|
+
unrecognizedObjectKeys: "passthrough",
|
|
303
|
+
allowUnrecognizedUnionMembers: true,
|
|
304
|
+
allowUnrecognizedEnumValues: true,
|
|
305
|
+
skipValidation: true,
|
|
306
|
+
breadcrumbsPrefix: ["response"],
|
|
307
|
+
}),
|
|
308
|
+
rawResponse: _response.rawResponse,
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
if (_response.error.reason === "status-code") {
|
|
312
|
+
switch (_response.error.statusCode) {
|
|
313
|
+
case 422:
|
|
314
|
+
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
315
|
+
default:
|
|
316
|
+
throw new errors.HydraDBError({
|
|
317
|
+
statusCode: _response.error.statusCode,
|
|
318
|
+
body: _response.error.body,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing/deliveries/{delivery_id}");
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @param {HydraDB.RetryDeliveryWebhooksRequest} request
|
|
327
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
|
+
*
|
|
329
|
+
* @throws {@link HydraDB.UnprocessableEntityError}
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* await client.webhooks.retryDelivery({
|
|
333
|
+
* deliveryId: "delivery_id"
|
|
334
|
+
* })
|
|
335
|
+
*/
|
|
336
|
+
retryDelivery(request, requestOptions) {
|
|
337
|
+
return core.HttpResponsePromise.fromPromise(this.__retryDelivery(request, requestOptions));
|
|
338
|
+
}
|
|
339
|
+
async __retryDelivery(request, requestOptions) {
|
|
340
|
+
const { deliveryId } = request;
|
|
341
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
342
|
+
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);
|
|
343
|
+
const _response = await core.fetcher({
|
|
344
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
345
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
346
|
+
environments.HydraDBEnvironment.HydradDb, `webhooks/indexing/deliveries/${core.url.encodePathParam(deliveryId)}/retry`),
|
|
347
|
+
method: "POST",
|
|
348
|
+
headers: _headers,
|
|
349
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
350
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
351
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
352
|
+
abortSignal: requestOptions?.abortSignal,
|
|
353
|
+
fetchFn: this._options?.fetch,
|
|
354
|
+
logging: this._options.logging,
|
|
355
|
+
});
|
|
356
|
+
if (_response.ok) {
|
|
357
|
+
return {
|
|
358
|
+
data: serializers.WebhookRetryApiResponse.parseOrThrow(_response.body, {
|
|
359
|
+
unrecognizedObjectKeys: "passthrough",
|
|
360
|
+
allowUnrecognizedUnionMembers: true,
|
|
361
|
+
allowUnrecognizedEnumValues: true,
|
|
362
|
+
skipValidation: true,
|
|
363
|
+
breadcrumbsPrefix: ["response"],
|
|
364
|
+
}),
|
|
365
|
+
rawResponse: _response.rawResponse,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
if (_response.error.reason === "status-code") {
|
|
369
|
+
switch (_response.error.statusCode) {
|
|
370
|
+
case 422:
|
|
371
|
+
throw new HydraDB.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
372
|
+
default:
|
|
373
|
+
throw new errors.HydraDBError({
|
|
374
|
+
statusCode: _response.error.statusCode,
|
|
375
|
+
body: _response.error.body,
|
|
376
|
+
rawResponse: _response.rawResponse,
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/deliveries/{delivery_id}/retry");
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
384
|
+
*
|
|
385
|
+
* @example
|
|
386
|
+
* await client.webhooks.test()
|
|
387
|
+
*/
|
|
388
|
+
test(requestOptions) {
|
|
389
|
+
return core.HttpResponsePromise.fromPromise(this.__test(requestOptions));
|
|
390
|
+
}
|
|
391
|
+
async __test(requestOptions) {
|
|
392
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
393
|
+
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);
|
|
394
|
+
const _response = await core.fetcher({
|
|
395
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
396
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
397
|
+
environments.HydraDBEnvironment.HydradDb, "webhooks/indexing/test"),
|
|
398
|
+
method: "POST",
|
|
399
|
+
headers: _headers,
|
|
400
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
401
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
402
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
403
|
+
abortSignal: requestOptions?.abortSignal,
|
|
404
|
+
fetchFn: this._options?.fetch,
|
|
405
|
+
logging: this._options.logging,
|
|
406
|
+
});
|
|
407
|
+
if (_response.ok) {
|
|
408
|
+
return {
|
|
409
|
+
data: serializers.WebhookTestApiResponse.parseOrThrow(_response.body, {
|
|
410
|
+
unrecognizedObjectKeys: "passthrough",
|
|
411
|
+
allowUnrecognizedUnionMembers: true,
|
|
412
|
+
allowUnrecognizedEnumValues: true,
|
|
413
|
+
skipValidation: true,
|
|
414
|
+
breadcrumbsPrefix: ["response"],
|
|
415
|
+
}),
|
|
416
|
+
rawResponse: _response.rawResponse,
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
if (_response.error.reason === "status-code") {
|
|
420
|
+
throw new errors.HydraDBError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.body,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/test");
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
exports.WebhooksClient = WebhooksClient;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {}
|
|
4
|
+
*/
|
|
5
|
+
export interface ListDeliveriesWebhooksRequest {
|
|
6
|
+
/** Number of deliveries to return. */
|
|
7
|
+
limit?: number;
|
|
8
|
+
/** Pagination cursor from a previous response. */
|
|
9
|
+
cursor?: string | null;
|
|
10
|
+
/** Filter by delivery status: pending, failed, delivered, permanently_failed. */
|
|
11
|
+
status?: string | null;
|
|
12
|
+
}
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.WebhooksClient = void 0;
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "WebhooksClient", { enumerable: true, get: function () { return Client_js_1.WebhooksClient; } });
|
|
21
21
|
__exportStar(require("./client/index.js"), exports);
|
|
@@ -4,21 +4,25 @@
|
|
|
4
4
|
* All filter categories use **AND** logic — every provided key-value pair
|
|
5
5
|
* must match for a document to be included.
|
|
6
6
|
*
|
|
7
|
+
* Both ``additional_metadata`` (canonical, matches the ingestion field name)
|
|
8
|
+
* and ``document_metadata`` (legacy alias) are accepted for the document-
|
|
9
|
+
* level filter.
|
|
10
|
+
*
|
|
7
11
|
* Examples
|
|
8
12
|
* --------
|
|
9
13
|
* ```json
|
|
10
14
|
* {
|
|
11
15
|
* "tenant_metadata": {"department": "Finance", "region": "US"},
|
|
12
|
-
* "
|
|
16
|
+
* "additional_metadata": {"author": "Alice Smith"},
|
|
13
17
|
* "source_fields": {"type": "slack", "title": "standup notes"}
|
|
14
18
|
* }
|
|
15
19
|
* ```
|
|
16
20
|
*/
|
|
17
21
|
export interface ContentFilter {
|
|
18
22
|
/** Key-value pairs matched against source.tenant_metadata. All provided pairs must match (AND logic). */
|
|
19
|
-
|
|
20
|
-
/** Key-value pairs matched against source.document_metadata. All provided pairs must match (AND logic). */
|
|
21
|
-
|
|
23
|
+
tenantMetadata?: Record<string, unknown> | null;
|
|
24
|
+
/** Key-value pairs matched against source.document_metadata (the data you sent as 'additional_metadata' at ingestion). All provided pairs must match (AND logic). Accepts either 'additional_metadata' (canonical) or 'document_metadata' (legacy). */
|
|
25
|
+
additionalMetadata?: Record<string, unknown> | null;
|
|
22
26
|
/** Key-value pairs matched against top-level source fields that you supply during ingestion. Allowed keys: description, timestamp, title, type, url. All provided pairs must match (AND logic). */
|
|
23
|
-
|
|
27
|
+
sourceFields?: Record<string, unknown> | null;
|
|
24
28
|
}
|
|
@@ -18,17 +18,17 @@ export interface CustomPropertyDefinition {
|
|
|
18
18
|
/** Property name */
|
|
19
19
|
name: string;
|
|
20
20
|
/** Field data type. Accepts friendly names: 'string', 'integer', 'float', 'boolean', 'array', 'object'. Raw internal types are also accepted. */
|
|
21
|
-
|
|
21
|
+
dataType?: HydraDB.MilvusDataType;
|
|
22
22
|
/** Max length for string fields. Increase for longer text content. */
|
|
23
|
-
|
|
23
|
+
maxLength?: number;
|
|
24
24
|
/** Enable text analyzer for full-text search capabilities */
|
|
25
|
-
|
|
25
|
+
enableAnalyzer?: boolean;
|
|
26
26
|
/** Enable exact keyword filtering on this field */
|
|
27
|
-
|
|
27
|
+
enableMatch?: boolean;
|
|
28
28
|
/** Index this field for semantic similarity search. Only applicable to string fields. */
|
|
29
|
-
|
|
29
|
+
enableDenseEmbedding?: boolean;
|
|
30
30
|
/** Index this field for keyword (BM25) search. Only applicable to string fields. */
|
|
31
|
-
|
|
31
|
+
enableSparseEmbedding?: boolean;
|
|
32
32
|
/** Whether field can be null */
|
|
33
|
-
nullable?: boolean
|
|
33
|
+
nullable?: boolean;
|
|
34
34
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface DeleteUserMemoryResponse {
|
|
5
5
|
/** Indicates whether the memory deletion operation was successful */
|
|
6
|
-
success?: boolean
|
|
6
|
+
success?: boolean;
|
|
7
7
|
/** Confirms whether the specific memory was successfully deleted */
|
|
8
|
-
|
|
8
|
+
userMemoryDeleted: boolean;
|
|
9
9
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DeliveryItem {
|
|
2
|
+
deliveryId: string;
|
|
3
|
+
docId: string;
|
|
4
|
+
status: string;
|
|
5
|
+
indexingStatus: string;
|
|
6
|
+
eventType: string;
|
|
7
|
+
attempts: number;
|
|
8
|
+
errorCode?: string | null;
|
|
9
|
+
errorMessage?: string | null;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
}
|