@hydradb/sdk 2.0.1 → 2.1.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 +494 -554
- package/dist/Client.d.ts +4 -7
- package/dist/Client.js +6 -10
- package/dist/api/client/requests/SearchQueryRequest.d.ts +26 -15
- package/dist/api/errors/index.d.ts +0 -1
- package/dist/api/errors/index.js +0 -1
- package/dist/api/resources/context/client/Client.d.ts +18 -1
- package/dist/api/resources/context/client/Client.js +90 -1
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +15 -0
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +9 -0
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +9 -0
- package/dist/api/resources/context/client/requests/index.d.ts +1 -0
- package/dist/api/resources/databases/client/Client.d.ts +109 -0
- package/dist/api/resources/{tenants → databases}/client/Client.js +61 -61
- package/dist/api/resources/databases/client/requests/CollectionsDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/DeleteDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/StatsDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/StatusDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +7 -0
- package/dist/api/resources/databases/client/requests/index.d.ts +5 -0
- package/dist/api/resources/databases/exports.d.ts +2 -0
- package/dist/api/resources/{tenants → databases}/exports.js +2 -2
- package/dist/api/resources/index.d.ts +2 -4
- package/dist/api/resources/index.js +3 -5
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +13 -0
- package/dist/api/types/HandlerDeprecationNotice.d.ts +7 -0
- package/dist/api/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +7 -0
- package/dist/api/types/{HandlerEnvelopeEmbeddingsDeleteResult.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +2 -2
- package/dist/api/types/HandlerErrorDetail.d.ts +3 -0
- package/dist/api/types/HandlerResponseMeta.d.ts +14 -0
- package/dist/api/types/ListContentFilter.d.ts +8 -2
- package/dist/api/types/SearchGraphContext.d.ts +5 -0
- package/dist/api/types/SearchMetadataFilters.d.ts +4 -0
- package/dist/api/types/SearchQueryRequestCollections.d.ts +4 -0
- package/dist/api/types/SearchQueryRequestSubTenantIds.d.ts +4 -0
- package/dist/api/types/SearchRecallMode.d.ts +1 -0
- package/dist/api/types/SearchRecallMode.js +1 -0
- package/dist/api/types/SearchSourceInfo.d.ts +1 -0
- package/dist/api/types/SearchV2Chunk.d.ts +1 -0
- package/dist/api/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +2 -1
- package/dist/api/types/TenantsFailedTenant.d.ts +1 -0
- package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +1 -0
- package/dist/api/types/TenantsSubTenantIdsResponse.d.ts +1 -0
- package/dist/api/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
- package/dist/api/types/TenantsTenantDeleteResponse.d.ts +1 -0
- package/dist/api/types/TenantsTenantIdsResponse.d.ts +2 -0
- package/dist/api/types/TenantsTenantStatsResponse.d.ts +1 -0
- package/dist/api/types/index.d.ts +8 -10
- package/dist/api/types/index.js +8 -10
- package/dist/serialization/client/requests/SearchQueryRequest.d.ts +9 -3
- package/dist/serialization/client/requests/SearchQueryRequest.js +9 -3
- package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +6 -6
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +2 -0
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.js +2 -0
- package/dist/serialization/resources/context/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/index.js +3 -1
- package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
- package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -4
- package/dist/serialization/resources/index.js +3 -5
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +19 -0
- package/dist/serialization/types/{EmbeddingsRawEmbeddingDocument.js → GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +11 -6
- package/dist/serialization/types/HandlerDeprecationNotice.d.ts +13 -0
- package/dist/serialization/types/HandlerDeprecationNotice.js +45 -0
- package/dist/serialization/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +15 -0
- package/dist/serialization/types/{HandlerEnvelopeEmbeddingsInsertResult.js → HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +4 -4
- package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +4 -4
- package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +4 -4
- package/dist/serialization/types/HandlerErrorDetail.d.ts +3 -0
- package/dist/serialization/types/HandlerErrorDetail.js +3 -0
- package/dist/serialization/types/HandlerResponseMeta.d.ts +7 -0
- package/dist/serialization/types/HandlerResponseMeta.js +7 -0
- package/dist/serialization/types/ListContentFilter.d.ts +2 -2
- package/dist/serialization/types/ListContentFilter.js +2 -2
- package/dist/serialization/types/SearchMetadataFilters.d.ts +7 -0
- package/dist/serialization/types/{EmbeddingsRawEmbeddingVector.js → SearchMetadataFilters.js} +2 -5
- package/dist/serialization/types/SearchQueryRequestCollections.d.ts +7 -0
- package/dist/serialization/types/{EmbeddingsDeleteResult.js → SearchQueryRequestCollections.js} +5 -6
- package/dist/serialization/types/SearchQueryRequestSubTenantIds.d.ts +7 -0
- package/dist/serialization/types/{EmbeddingsInsertResult.js → SearchQueryRequestSubTenantIds.js} +5 -7
- package/dist/serialization/types/SearchRecallMode.d.ts +1 -1
- package/dist/serialization/types/SearchRecallMode.js +1 -1
- package/dist/serialization/types/SearchSourceInfo.d.ts +1 -0
- package/dist/serialization/types/SearchSourceInfo.js +1 -0
- package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
- package/dist/serialization/types/SearchV2Chunk.js +1 -0
- package/dist/serialization/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +3 -2
- package/dist/serialization/types/{SourcesSourceDeleteResponse.js → SourcesMemoryDeleteResponse.js} +3 -2
- package/dist/serialization/types/TenantsFailedTenant.d.ts +1 -0
- package/dist/serialization/types/TenantsFailedTenant.js +1 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +1 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2.js +1 -0
- package/dist/serialization/types/TenantsSubTenantIdsResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsSubTenantIdsResponse.js +1 -0
- package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.js +1 -0
- package/dist/serialization/types/TenantsTenantDeleteResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsTenantDeleteResponse.js +1 -0
- package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
- package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
- package/dist/serialization/types/TenantsTenantStatsResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsTenantStatsResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +8 -10
- package/dist/serialization/types/index.js +8 -10
- package/package.json +1 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +0 -6
- package/dist/api/errors/TooManyRequestsError.js +0 -54
- package/dist/api/resources/embeddings/client/Client.d.ts +0 -80
- package/dist/api/resources/embeddings/client/Client.js +0 -351
- package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +0 -18
- package/dist/api/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -15
- package/dist/api/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -14
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.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/tenants/client/Client.d.ts +0 -109
- package/dist/api/resources/tenants/client/requests/DeleteTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/StatsTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/StatusTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/SubTenantsTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/index.d.ts +0 -5
- package/dist/api/resources/tenants/client/requests/index.js +0 -2
- package/dist/api/resources/tenants/exports.d.ts +0 -2
- package/dist/api/types/EmbeddingsDeleteResult.d.ts +0 -5
- package/dist/api/types/EmbeddingsInsertResult.d.ts +0 -6
- package/dist/api/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -8
- package/dist/api/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -8
- package/dist/api/types/EmbeddingsRawEmbeddingVector.d.ts +0 -5
- package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -7
- package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -3
- package/dist/api/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -3
- package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -7
- package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.js +0 -3
- package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.d.ts +0 -7
- package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.js +0 -3
- package/dist/api/types/SourcesSourceDeleteResponse.js +0 -3
- package/dist/serialization/resources/embeddings/client/index.d.ts +0 -1
- package/dist/serialization/resources/embeddings/client/index.js +0 -17
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -14
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js +0 -46
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -13
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -14
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js +0 -46
- package/dist/serialization/resources/embeddings/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/embeddings/client/requests/index.js +0 -9
- package/dist/serialization/resources/embeddings/index.d.ts +0 -1
- package/dist/serialization/resources/embeddings/index.js +0 -17
- package/dist/serialization/resources/tenants/client/index.d.ts +0 -1
- package/dist/serialization/resources/tenants/client/index.js +0 -17
- package/dist/serialization/resources/tenants/index.d.ts +0 -1
- package/dist/serialization/resources/tenants/index.js +0 -17
- package/dist/serialization/types/EmbeddingsDeleteResult.d.ts +0 -11
- package/dist/serialization/types/EmbeddingsInsertResult.d.ts +0 -12
- package/dist/serialization/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -14
- package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -14
- package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.js +0 -46
- package/dist/serialization/types/EmbeddingsRawEmbeddingVector.d.ts +0 -10
- package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -15
- package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -47
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +0 -15
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -47
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -15
- /package/dist/api/resources/{embeddings/client/requests/DeleteEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +0 -0
- /package/dist/api/resources/{embeddings → databases}/client/index.d.ts +0 -0
- /package/dist/api/resources/{embeddings → databases}/client/index.js +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js → databases/client/requests/CollectionsDatabasesRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → databases/client/requests/DeleteDatabasesRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js → databases/client/requests/StatsDatabasesRequest.js} +0 -0
- /package/dist/api/resources/{tenants/client/requests/DeleteTenantsRequest.js → databases/client/requests/StatusDatabasesRequest.js} +0 -0
- /package/dist/api/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +0 -0
- /package/dist/api/resources/{embeddings → databases}/client/requests/index.js +0 -0
- /package/dist/api/resources/{embeddings → databases}/index.d.ts +0 -0
- /package/dist/api/resources/{embeddings → databases}/index.js +0 -0
- /package/dist/api/{resources/tenants/client/requests/StatsTenantsRequest.js → types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +0 -0
- /package/dist/api/{resources/tenants/client/requests/StatusTenantsRequest.js → types/HandlerDeprecationNotice.js} +0 -0
- /package/dist/api/{resources/tenants/client/requests/SubTenantsTenantsRequest.js → types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +0 -0
- /package/dist/api/types/{EmbeddingsDeleteResult.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsInsertResult.js → SearchMetadataFilters.js} +0 -0
- /package/dist/api/types/{EmbeddingsRawEmbeddingDocument.js → SearchQueryRequestCollections.js} +0 -0
- /package/dist/api/types/{EmbeddingsRawEmbeddingSearchResult.js → SearchQueryRequestSubTenantIds.js} +0 -0
- /package/dist/api/types/{EmbeddingsRawEmbeddingVector.js → SourcesMemoryDeleteResponse.js} +0 -0
- /package/dist/{api/resources/tenants → serialization/resources/databases}/client/index.d.ts +0 -0
- /package/dist/{api/resources/tenants → serialization/resources/databases}/client/index.js +0 -0
- /package/dist/serialization/resources/{tenants → databases}/client/requests/index.d.ts +0 -0
- /package/dist/serialization/resources/{tenants → databases}/client/requests/index.js +0 -0
- /package/dist/{api/resources/tenants → serialization/resources/databases}/index.d.ts +0 -0
- /package/dist/{api/resources/tenants → serialization/resources/databases}/index.js +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as HydraDB from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const SearchQueryRequestCollections: core.serialization.Schema<serializers.SearchQueryRequestCollections.Raw, HydraDB.SearchQueryRequestCollections>;
|
|
5
|
+
export declare namespace SearchQueryRequestCollections {
|
|
6
|
+
type Raw = string[] | Record<string, number>;
|
|
7
|
+
}
|
package/dist/serialization/types/{EmbeddingsDeleteResult.js → SearchQueryRequestCollections.js}
RENAMED
|
@@ -34,10 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.SearchQueryRequestCollections = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
});
|
|
39
|
+
exports.SearchQueryRequestCollections = core.serialization.undiscriminatedUnion([
|
|
40
|
+
core.serialization.list(core.serialization.string()),
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.number()),
|
|
42
|
+
]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as HydraDB from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const SearchQueryRequestSubTenantIds: core.serialization.Schema<serializers.SearchQueryRequestSubTenantIds.Raw, HydraDB.SearchQueryRequestSubTenantIds>;
|
|
5
|
+
export declare namespace SearchQueryRequestSubTenantIds {
|
|
6
|
+
type Raw = string[] | Record<string, number>;
|
|
7
|
+
}
|
package/dist/serialization/types/{EmbeddingsInsertResult.js → SearchQueryRequestSubTenantIds.js}
RENAMED
|
@@ -34,11 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.SearchQueryRequestSubTenantIds = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
success: core.serialization.boolean().optional(),
|
|
44
|
-
});
|
|
39
|
+
exports.SearchQueryRequestSubTenantIds = core.serialization.undiscriminatedUnion([
|
|
40
|
+
core.serialization.list(core.serialization.string()),
|
|
41
|
+
core.serialization.record(core.serialization.string(), core.serialization.number()),
|
|
42
|
+
]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
export declare const SearchRecallMode: core.serialization.Schema<serializers.SearchRecallMode.Raw, HydraDB.SearchRecallMode>;
|
|
5
5
|
export declare namespace SearchRecallMode {
|
|
6
|
-
type Raw = "fast" | "thinking";
|
|
6
|
+
type Raw = "fast" | "thinking" | "auto";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.SearchRecallMode = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.SearchRecallMode = core.serialization.enum_(["fast", "thinking"]);
|
|
39
|
+
exports.SearchRecallMode = core.serialization.enum_(["fast", "thinking", "auto"]);
|
|
@@ -44,6 +44,7 @@ exports.SearchSourceInfo = core.serialization.object({
|
|
|
44
44
|
description: core.serialization.string().optional(),
|
|
45
45
|
id: core.serialization.string().optional(),
|
|
46
46
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
47
|
+
subTenantId: core.serialization.property("sub_tenant_id", core.serialization.string().optional()),
|
|
47
48
|
timestamp: core.serialization.string().optional(),
|
|
48
49
|
title: core.serialization.string().optional(),
|
|
49
50
|
type: core.serialization.string().optional(),
|
|
@@ -49,4 +49,5 @@ exports.SearchV2Chunk = core.serialization.object({
|
|
|
49
49
|
sourceTitle: core.serialization.property("source_title", core.serialization.string().optional()),
|
|
50
50
|
sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
|
|
51
51
|
sourceUploadTime: core.serialization.property("source_upload_time", core.serialization.string().optional()),
|
|
52
|
+
subTenantId: core.serialization.property("sub_tenant_id", core.serialization.string().optional()),
|
|
52
53
|
});
|
|
@@ -2,12 +2,13 @@ import type * as HydraDB from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { SourcesSourceDeleteResultItem } from "./SourcesSourceDeleteResultItem.js";
|
|
5
|
-
export declare const
|
|
6
|
-
export declare namespace
|
|
5
|
+
export declare const SourcesMemoryDeleteResponse: core.serialization.ObjectSchema<serializers.SourcesMemoryDeleteResponse.Raw, HydraDB.SourcesMemoryDeleteResponse>;
|
|
6
|
+
export declare namespace SourcesMemoryDeleteResponse {
|
|
7
7
|
interface Raw {
|
|
8
8
|
deleted_count?: number | null;
|
|
9
9
|
message?: string | null;
|
|
10
10
|
results?: SourcesSourceDeleteResultItem.Raw[] | null;
|
|
11
11
|
success?: boolean | null;
|
|
12
|
+
user_memory_deleted?: number | null;
|
|
12
13
|
}
|
|
13
14
|
}
|
package/dist/serialization/types/{SourcesSourceDeleteResponse.js → SourcesMemoryDeleteResponse.js}
RENAMED
|
@@ -34,12 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.SourcesMemoryDeleteResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const SourcesSourceDeleteResultItem_js_1 = require("./SourcesSourceDeleteResultItem.js");
|
|
40
|
-
exports.
|
|
40
|
+
exports.SourcesMemoryDeleteResponse = core.serialization.object({
|
|
41
41
|
deletedCount: core.serialization.property("deleted_count", core.serialization.number().optional()),
|
|
42
42
|
message: core.serialization.string().optional(),
|
|
43
43
|
results: core.serialization.list(SourcesSourceDeleteResultItem_js_1.SourcesSourceDeleteResultItem).optional(),
|
|
44
44
|
success: core.serialization.boolean().optional(),
|
|
45
|
+
userMemoryDeleted: core.serialization.property("user_memory_deleted", core.serialization.number().optional()),
|
|
45
46
|
});
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TenantsFailedTenant: core.serialization.ObjectSchema<serializers.TenantsFailedTenant.Raw, HydraDB.TenantsFailedTenant>;
|
|
5
5
|
export declare namespace TenantsFailedTenant {
|
|
6
6
|
interface Raw {
|
|
7
|
+
database?: string | null;
|
|
7
8
|
error?: string | null;
|
|
8
9
|
tenant_id?: string | null;
|
|
9
10
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TenantsFailedTenant = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TenantsFailedTenant = core.serialization.object({
|
|
40
|
+
database: core.serialization.string().optional(),
|
|
40
41
|
error: core.serialization.string().optional(),
|
|
41
42
|
tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
|
|
42
43
|
});
|
|
@@ -5,6 +5,7 @@ import { TenantsInfraV2 } from "./TenantsInfraV2.js";
|
|
|
5
5
|
export declare const TenantsInfraStatusResponseV2: core.serialization.ObjectSchema<serializers.TenantsInfraStatusResponseV2.Raw, HydraDB.TenantsInfraStatusResponseV2>;
|
|
6
6
|
export declare namespace TenantsInfraStatusResponseV2 {
|
|
7
7
|
interface Raw {
|
|
8
|
+
database?: string | null;
|
|
8
9
|
infra?: TenantsInfraV2.Raw | null;
|
|
9
10
|
message?: string | null;
|
|
10
11
|
org_id?: string | null;
|
|
@@ -38,6 +38,7 @@ exports.TenantsInfraStatusResponseV2 = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const TenantsInfraV2_js_1 = require("./TenantsInfraV2.js");
|
|
40
40
|
exports.TenantsInfraStatusResponseV2 = core.serialization.object({
|
|
41
|
+
database: core.serialization.string().optional(),
|
|
41
42
|
infra: TenantsInfraV2_js_1.TenantsInfraV2.optional(),
|
|
42
43
|
message: core.serialization.string().optional(),
|
|
43
44
|
orgId: core.serialization.property("org_id", core.serialization.string().optional()),
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TenantsSubTenantIdsResponse: core.serialization.ObjectSchema<serializers.TenantsSubTenantIdsResponse.Raw, HydraDB.TenantsSubTenantIdsResponse>;
|
|
5
5
|
export declare namespace TenantsSubTenantIdsResponse {
|
|
6
6
|
interface Raw {
|
|
7
|
+
collections?: string[] | null;
|
|
7
8
|
message?: string | null;
|
|
8
9
|
sub_tenant_ids?: string[] | null;
|
|
9
10
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TenantsSubTenantIdsResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TenantsSubTenantIdsResponse = core.serialization.object({
|
|
40
|
+
collections: core.serialization.list(core.serialization.string()).optional(),
|
|
40
41
|
message: core.serialization.string().optional(),
|
|
41
42
|
subTenantIds: core.serialization.property("sub_tenant_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
42
43
|
});
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TenantsTenantCreateAcceptedResponse: core.serialization.ObjectSchema<serializers.TenantsTenantCreateAcceptedResponse.Raw, HydraDB.TenantsTenantCreateAcceptedResponse>;
|
|
5
5
|
export declare namespace TenantsTenantCreateAcceptedResponse {
|
|
6
6
|
interface Raw {
|
|
7
|
+
database?: string | null;
|
|
7
8
|
message?: string | null;
|
|
8
9
|
status?: string | null;
|
|
9
10
|
tenant_id?: string | null;
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TenantsTenantCreateAcceptedResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TenantsTenantCreateAcceptedResponse = core.serialization.object({
|
|
40
|
+
database: core.serialization.string().optional(),
|
|
40
41
|
message: core.serialization.string().optional(),
|
|
41
42
|
status: core.serialization.string().optional(),
|
|
42
43
|
tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TenantsTenantDeleteResponse: core.serialization.ObjectSchema<serializers.TenantsTenantDeleteResponse.Raw, HydraDB.TenantsTenantDeleteResponse>;
|
|
5
5
|
export declare namespace TenantsTenantDeleteResponse {
|
|
6
6
|
interface Raw {
|
|
7
|
+
database?: string | null;
|
|
7
8
|
message?: string | null;
|
|
8
9
|
status?: string | null;
|
|
9
10
|
tenant_id?: string | null;
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TenantsTenantDeleteResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TenantsTenantDeleteResponse = core.serialization.object({
|
|
40
|
+
database: core.serialization.string().optional(),
|
|
40
41
|
message: core.serialization.string().optional(),
|
|
41
42
|
status: core.serialization.string().optional(),
|
|
42
43
|
tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
|
|
@@ -5,6 +5,8 @@ import { TenantsFailedTenant } from "./TenantsFailedTenant.js";
|
|
|
5
5
|
export declare const TenantsTenantIdsResponse: core.serialization.ObjectSchema<serializers.TenantsTenantIdsResponse.Raw, HydraDB.TenantsTenantIdsResponse>;
|
|
6
6
|
export declare namespace TenantsTenantIdsResponse {
|
|
7
7
|
interface Raw {
|
|
8
|
+
databases?: string[] | null;
|
|
9
|
+
failed_databases?: TenantsFailedTenant.Raw[] | null;
|
|
8
10
|
failed_tenant_ids?: TenantsFailedTenant.Raw[] | null;
|
|
9
11
|
message?: string | null;
|
|
10
12
|
tenant_ids?: string[] | null;
|
|
@@ -38,6 +38,8 @@ exports.TenantsTenantIdsResponse = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const TenantsFailedTenant_js_1 = require("./TenantsFailedTenant.js");
|
|
40
40
|
exports.TenantsTenantIdsResponse = core.serialization.object({
|
|
41
|
+
databases: core.serialization.list(core.serialization.string()).optional(),
|
|
42
|
+
failedDatabases: core.serialization.property("failed_databases", core.serialization.list(TenantsFailedTenant_js_1.TenantsFailedTenant).optional()),
|
|
41
43
|
failedTenantIds: core.serialization.property("failed_tenant_ids", core.serialization.list(TenantsFailedTenant_js_1.TenantsFailedTenant).optional()),
|
|
42
44
|
message: core.serialization.string().optional(),
|
|
43
45
|
tenantIds: core.serialization.property("tenant_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
@@ -5,6 +5,7 @@ import { TenantsCollectionStats } from "./TenantsCollectionStats.js";
|
|
|
5
5
|
export declare const TenantsTenantStatsResponse: core.serialization.ObjectSchema<serializers.TenantsTenantStatsResponse.Raw, HydraDB.TenantsTenantStatsResponse>;
|
|
6
6
|
export declare namespace TenantsTenantStatsResponse {
|
|
7
7
|
interface Raw {
|
|
8
|
+
database?: string | null;
|
|
8
9
|
knowledge_collection?: TenantsCollectionStats.Raw | null;
|
|
9
10
|
memory_collection?: TenantsCollectionStats.Raw | null;
|
|
10
11
|
message?: string | null;
|
|
@@ -38,6 +38,7 @@ exports.TenantsTenantStatsResponse = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const TenantsCollectionStats_js_1 = require("./TenantsCollectionStats.js");
|
|
40
40
|
exports.TenantsTenantStatsResponse = core.serialization.object({
|
|
41
|
+
database: core.serialization.string().optional(),
|
|
41
42
|
knowledgeCollection: core.serialization.property("knowledge_collection", TenantsCollectionStats_js_1.TenantsCollectionStats.optional()),
|
|
42
43
|
memoryCollection: core.serialization.property("memory_collection", TenantsCollectionStats_js_1.TenantsCollectionStats.optional()),
|
|
43
44
|
message: core.serialization.string().optional(),
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
export * from "./DashboardPaginationMeta.js";
|
|
2
|
-
export * from "./EmbeddingsDeleteResult.js";
|
|
3
|
-
export * from "./EmbeddingsInsertResult.js";
|
|
4
|
-
export * from "./EmbeddingsRawEmbeddingDocument.js";
|
|
5
|
-
export * from "./EmbeddingsRawEmbeddingSearchResult.js";
|
|
6
|
-
export * from "./EmbeddingsRawEmbeddingVector.js";
|
|
7
2
|
export * from "./FetchV2SourceFetchResponse.js";
|
|
3
|
+
export * from "./GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js";
|
|
8
4
|
export * from "./GraphEntity.js";
|
|
9
5
|
export * from "./GraphGraphRelationsResponse.js";
|
|
10
6
|
export * from "./GraphRelationEvidence.js";
|
|
11
7
|
export * from "./GraphTripletWithEvidence.js";
|
|
12
8
|
export * from "./HandlerApiError.js";
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./HandlerEnvelopeEmbeddingsDeleteResult.js";
|
|
15
|
-
export * from "./HandlerEnvelopeEmbeddingsInsertResult.js";
|
|
9
|
+
export * from "./HandlerDeprecationNotice.js";
|
|
16
10
|
export * from "./HandlerEnvelopeFetchV2SourceFetchResponse.js";
|
|
11
|
+
export * from "./HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js";
|
|
17
12
|
export * from "./HandlerEnvelopeGraphGraphRelationsResponse.js";
|
|
18
13
|
export * from "./HandlerEnvelopeIngestionV2BatchProcessingStatus.js";
|
|
19
14
|
export * from "./HandlerEnvelopeIngestionV2SourceUploadResponse.js";
|
|
20
15
|
export * from "./HandlerEnvelopeListV2SourceListResponse.js";
|
|
21
16
|
export * from "./HandlerEnvelopeSearchV2RetrievalResult.js";
|
|
22
|
-
export * from "./
|
|
17
|
+
export * from "./HandlerEnvelopeSourcesMemoryDeleteResponse.js";
|
|
23
18
|
export * from "./HandlerEnvelopeTenantsInfraStatusResponseV2.js";
|
|
24
19
|
export * from "./HandlerEnvelopeTenantsSubTenantIdsResponse.js";
|
|
25
20
|
export * from "./HandlerEnvelopeTenantsTenantCreateAcceptedResponse.js";
|
|
@@ -45,16 +40,19 @@ export * from "./ListContentFilter.js";
|
|
|
45
40
|
export * from "./ListSourceListResponse.js";
|
|
46
41
|
export * from "./ListV2SourceListResponse.js";
|
|
47
42
|
export * from "./SearchGraphContext.js";
|
|
43
|
+
export * from "./SearchMetadataFilters.js";
|
|
48
44
|
export * from "./SearchOperator.js";
|
|
49
45
|
export * from "./SearchPathTriplet.js";
|
|
50
46
|
export * from "./SearchQueryBy.js";
|
|
47
|
+
export * from "./SearchQueryRequestCollections.js";
|
|
48
|
+
export * from "./SearchQueryRequestSubTenantIds.js";
|
|
51
49
|
export * from "./SearchRecallMode.js";
|
|
52
50
|
export * from "./SearchScoredPathResponse.js";
|
|
53
51
|
export * from "./SearchSourceInfo.js";
|
|
54
52
|
export * from "./SearchSourceType.js";
|
|
55
53
|
export * from "./SearchV2Chunk.js";
|
|
56
54
|
export * from "./SearchV2RetrievalResult.js";
|
|
57
|
-
export * from "./
|
|
55
|
+
export * from "./SourcesMemoryDeleteResponse.js";
|
|
58
56
|
export * from "./SourcesSourceDeleteResultItem.js";
|
|
59
57
|
export * from "./TenantsCollectionStats.js";
|
|
60
58
|
export * from "./TenantsCustomPropertyDefinition.js";
|
|
@@ -15,27 +15,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./DashboardPaginationMeta.js"), exports);
|
|
18
|
-
__exportStar(require("./EmbeddingsDeleteResult.js"), exports);
|
|
19
|
-
__exportStar(require("./EmbeddingsInsertResult.js"), exports);
|
|
20
|
-
__exportStar(require("./EmbeddingsRawEmbeddingDocument.js"), exports);
|
|
21
|
-
__exportStar(require("./EmbeddingsRawEmbeddingSearchResult.js"), exports);
|
|
22
|
-
__exportStar(require("./EmbeddingsRawEmbeddingVector.js"), exports);
|
|
23
18
|
__exportStar(require("./FetchV2SourceFetchResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js"), exports);
|
|
24
20
|
__exportStar(require("./GraphEntity.js"), exports);
|
|
25
21
|
__exportStar(require("./GraphGraphRelationsResponse.js"), exports);
|
|
26
22
|
__exportStar(require("./GraphRelationEvidence.js"), exports);
|
|
27
23
|
__exportStar(require("./GraphTripletWithEvidence.js"), exports);
|
|
28
24
|
__exportStar(require("./HandlerApiError.js"), exports);
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./HandlerEnvelopeEmbeddingsDeleteResult.js"), exports);
|
|
31
|
-
__exportStar(require("./HandlerEnvelopeEmbeddingsInsertResult.js"), exports);
|
|
25
|
+
__exportStar(require("./HandlerDeprecationNotice.js"), exports);
|
|
32
26
|
__exportStar(require("./HandlerEnvelopeFetchV2SourceFetchResponse.js"), exports);
|
|
27
|
+
__exportStar(require("./HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js"), exports);
|
|
33
28
|
__exportStar(require("./HandlerEnvelopeGraphGraphRelationsResponse.js"), exports);
|
|
34
29
|
__exportStar(require("./HandlerEnvelopeIngestionV2BatchProcessingStatus.js"), exports);
|
|
35
30
|
__exportStar(require("./HandlerEnvelopeIngestionV2SourceUploadResponse.js"), exports);
|
|
36
31
|
__exportStar(require("./HandlerEnvelopeListV2SourceListResponse.js"), exports);
|
|
37
32
|
__exportStar(require("./HandlerEnvelopeSearchV2RetrievalResult.js"), exports);
|
|
38
|
-
__exportStar(require("./
|
|
33
|
+
__exportStar(require("./HandlerEnvelopeSourcesMemoryDeleteResponse.js"), exports);
|
|
39
34
|
__exportStar(require("./HandlerEnvelopeTenantsInfraStatusResponseV2.js"), exports);
|
|
40
35
|
__exportStar(require("./HandlerEnvelopeTenantsSubTenantIdsResponse.js"), exports);
|
|
41
36
|
__exportStar(require("./HandlerEnvelopeTenantsTenantCreateAcceptedResponse.js"), exports);
|
|
@@ -61,16 +56,19 @@ __exportStar(require("./ListContentFilter.js"), exports);
|
|
|
61
56
|
__exportStar(require("./ListSourceListResponse.js"), exports);
|
|
62
57
|
__exportStar(require("./ListV2SourceListResponse.js"), exports);
|
|
63
58
|
__exportStar(require("./SearchGraphContext.js"), exports);
|
|
59
|
+
__exportStar(require("./SearchMetadataFilters.js"), exports);
|
|
64
60
|
__exportStar(require("./SearchOperator.js"), exports);
|
|
65
61
|
__exportStar(require("./SearchPathTriplet.js"), exports);
|
|
66
62
|
__exportStar(require("./SearchQueryBy.js"), exports);
|
|
63
|
+
__exportStar(require("./SearchQueryRequestCollections.js"), exports);
|
|
64
|
+
__exportStar(require("./SearchQueryRequestSubTenantIds.js"), exports);
|
|
67
65
|
__exportStar(require("./SearchRecallMode.js"), exports);
|
|
68
66
|
__exportStar(require("./SearchScoredPathResponse.js"), exports);
|
|
69
67
|
__exportStar(require("./SearchSourceInfo.js"), exports);
|
|
70
68
|
__exportStar(require("./SearchSourceType.js"), exports);
|
|
71
69
|
__exportStar(require("./SearchV2Chunk.js"), exports);
|
|
72
70
|
__exportStar(require("./SearchV2RetrievalResult.js"), exports);
|
|
73
|
-
__exportStar(require("./
|
|
71
|
+
__exportStar(require("./SourcesMemoryDeleteResponse.js"), exports);
|
|
74
72
|
__exportStar(require("./SourcesSourceDeleteResultItem.js"), exports);
|
|
75
73
|
__exportStar(require("./TenantsCollectionStats.js"), exports);
|
|
76
74
|
__exportStar(require("./TenantsCustomPropertyDefinition.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
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.HandlerErrorResponse, rawResponse?: core.RawResponse);
|
|
6
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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.TooManyRequestsError = void 0;
|
|
38
|
-
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
-
class TooManyRequestsError extends errors.HydraDBError {
|
|
40
|
-
constructor(body, rawResponse) {
|
|
41
|
-
super({
|
|
42
|
-
message: "TooManyRequestsError",
|
|
43
|
-
statusCode: 429,
|
|
44
|
-
body: body,
|
|
45
|
-
rawResponse: rawResponse,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
-
if (Error.captureStackTrace) {
|
|
49
|
-
Error.captureStackTrace(this, this.constructor);
|
|
50
|
-
}
|
|
51
|
-
this.name = this.constructor.name;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as HydraDB from "../../../index.js";
|
|
5
|
-
export declare namespace EmbeddingsClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class EmbeddingsClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<EmbeddingsClient.Options>;
|
|
12
|
-
constructor(options: EmbeddingsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* Delete raw embeddings by source ID or chunk IDs.
|
|
15
|
-
*
|
|
16
|
-
* @param {HydraDB.DeleteEmbeddingsRequest} request
|
|
17
|
-
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
-
*
|
|
19
|
-
* @throws {@link HydraDB.BadRequestError}
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* await client.embeddings.delete({
|
|
23
|
-
* tenantId: "tenant_1234",
|
|
24
|
-
* subTenantId: "sub_tenant_4567",
|
|
25
|
-
* sourceId: "HydraDoc1234"
|
|
26
|
-
* })
|
|
27
|
-
*/
|
|
28
|
-
delete(request: HydraDB.DeleteEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeEmbeddingsDeleteResult>;
|
|
29
|
-
private __delete;
|
|
30
|
-
/**
|
|
31
|
-
* Fetch raw embeddings by source ID or chunk IDs.
|
|
32
|
-
*
|
|
33
|
-
* @param {HydraDB.EmbeddingsFilterRawEmbeddingsRequest} request
|
|
34
|
-
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
-
*
|
|
36
|
-
* @throws {@link HydraDB.BadRequestError}
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* await client.embeddings.filter({
|
|
40
|
-
* subTenantId: "sub_tenant_4567",
|
|
41
|
-
* tenantId: "tenant_1234"
|
|
42
|
-
* })
|
|
43
|
-
*/
|
|
44
|
-
filter(request: HydraDB.EmbeddingsFilterRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult>;
|
|
45
|
-
private __filter;
|
|
46
|
-
/**
|
|
47
|
-
* Bring-your-own-embeddings: insert raw embedding vectors directly.
|
|
48
|
-
*
|
|
49
|
-
* @param {HydraDB.EmbeddingsInsertRawEmbeddingsRequest} request
|
|
50
|
-
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
-
*
|
|
52
|
-
* @throws {@link HydraDB.BadRequestError}
|
|
53
|
-
* @throws {@link HydraDB.TooManyRequestsError}
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* await client.embeddings.insert({
|
|
57
|
-
* embeddings: [{}],
|
|
58
|
-
* tenantId: "tenant_1234"
|
|
59
|
-
* })
|
|
60
|
-
*/
|
|
61
|
-
insert(request: HydraDB.EmbeddingsInsertRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeEmbeddingsInsertResult>;
|
|
62
|
-
private __insert;
|
|
63
|
-
/**
|
|
64
|
-
* Vector similarity search over raw embeddings.
|
|
65
|
-
*
|
|
66
|
-
* @param {HydraDB.EmbeddingsSearchRawEmbeddingsRequest} request
|
|
67
|
-
* @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link HydraDB.BadRequestError}
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* await client.embeddings.search({
|
|
73
|
-
* queryEmbedding: [1.1],
|
|
74
|
-
* subTenantId: "sub_tenant_4567",
|
|
75
|
-
* tenantId: "tenant_1234"
|
|
76
|
-
* })
|
|
77
|
-
*/
|
|
78
|
-
search(request: HydraDB.EmbeddingsSearchRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult>;
|
|
79
|
-
private __search;
|
|
80
|
-
}
|