@usecortex_ai/node 0.3.5 → 0.4.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/dist/Client.d.ts +20 -24
- package/dist/Client.js +26 -34
- package/dist/api/errors/BadRequestError.d.ts +1 -2
- package/dist/api/errors/ForbiddenError.d.ts +1 -2
- package/dist/api/errors/InternalServerError.d.ts +1 -2
- package/dist/api/errors/NotFoundError.d.ts +1 -2
- package/dist/api/errors/ServiceUnavailableError.d.ts +1 -2
- package/dist/api/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/api/errors/TooManyRequestsError.js +42 -0
- package/dist/api/errors/UnauthorizedError.d.ts +1 -2
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/dashboard/client/Client.d.ts +136 -0
- package/dist/api/resources/{userMemory → dashboard}/client/Client.js +191 -138
- package/dist/api/resources/dashboard/client/requests/CreateUserDashboardUserCreateUserPostRequest.d.ts +12 -0
- package/dist/api/resources/dashboard/client/requests/ListSourcesDashboardSourcesGetRequest.d.ts +16 -0
- package/dist/api/resources/dashboard/client/requests/index.d.ts +2 -0
- package/dist/api/resources/embeddings/client/Client.d.ts +40 -27
- package/dist/api/resources/embeddings/client/Client.js +68 -44
- package/dist/api/resources/embeddings/client/requests/BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.d.ts +24 -0
- package/dist/api/resources/embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.d.ts +27 -0
- package/dist/api/resources/embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.d.ts +25 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsDeleteRequest.d.ts +6 -5
- package/dist/api/resources/embeddings/client/requests/index.d.ts +3 -3
- package/dist/api/resources/fetch/client/Client.d.ts +96 -7
- package/dist/api/resources/fetch/client/Client.js +288 -10
- package/dist/api/resources/{sources/client/requests/SourcesGetGraphRelationsByIdRequest.d.ts → fetch/client/requests/FetchGraphRelationsBySourceIdRequest.d.ts} +2 -3
- package/dist/api/resources/{sources/client/requests/SourcesGetAllRequest.d.ts → fetch/client/requests/FetchSourcesRequest.d.ts} +2 -3
- package/dist/api/resources/fetch/client/requests/ListSourcesByIdRequest.d.ts +18 -0
- package/dist/api/resources/{upload/client/requests/UploadUpdateTextRequest.d.ts → fetch/client/requests/SourceFetchRequest.d.ts} +9 -10
- package/dist/api/resources/fetch/client/requests/index.d.ts +4 -1
- package/dist/api/resources/index.d.ts +10 -13
- package/dist/api/resources/index.js +11 -14
- package/dist/api/resources/search/client/Client.d.ts +50 -26
- package/dist/api/resources/search/client/Client.js +65 -35
- package/dist/api/resources/search/client/requests/FullTextSearchRequest.d.ts +6 -4
- package/dist/api/resources/search/client/requests/{SearchRequest.d.ts → HybridSearchRequest.d.ts} +13 -9
- package/dist/api/resources/search/client/requests/QnASearchRequest.d.ts +39 -0
- package/dist/api/resources/search/client/requests/index.d.ts +2 -2
- package/dist/api/resources/sources/client/Client.d.ts +11 -61
- package/dist/api/resources/sources/client/Client.js +14 -191
- package/dist/api/resources/sources/client/requests/SourceDeleteRequest.d.ts +17 -0
- package/dist/api/resources/sources/client/requests/index.d.ts +1 -3
- package/dist/api/resources/tenant/client/Client.d.ts +54 -38
- package/dist/api/resources/tenant/client/Client.js +67 -114
- package/dist/api/resources/tenant/client/requests/TenantCreateRequest.d.ts +20 -0
- package/dist/api/resources/tenant/client/requests/TenantStatsRequest.d.ts +1 -4
- package/dist/api/resources/tenant/client/requests/index.d.ts +1 -2
- package/dist/api/resources/upload/client/Client.d.ts +54 -428
- package/dist/api/resources/upload/client/Client.js +97 -1417
- package/dist/api/resources/upload/client/requests/{UploadUploadMarkdownRequest.d.ts → BodyAddMemoryMemoriesAddMemoryPost.d.ts} +7 -7
- package/dist/api/resources/upload/client/requests/BodyUploadAppIngestionUploadAppPost.d.ts +31 -0
- package/dist/api/resources/upload/client/requests/BodyUploadDocumentIngestionUploadDocumentPost.d.ts +22 -0
- package/dist/api/resources/upload/client/requests/UploadDeleteMemoryRequest.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/UploadVerifyProcessingRequest.d.ts +1 -2
- package/dist/api/resources/upload/client/requests/index.d.ts +4 -16
- package/dist/api/types/AddMemoryResponse.d.ts +17 -0
- package/dist/api/types/ApiKeyInfo.d.ts +17 -0
- package/dist/api/types/AppSourcesUploadData.d.ts +10 -4
- package/dist/api/types/CollectionStats.d.ts +9 -0
- package/dist/api/types/CustomPropertyDefinition.d.ts +38 -0
- package/dist/api/types/DashboardApisResponse.d.ts +12 -0
- package/dist/api/types/DashboardSourcesResponse.d.ts +12 -0
- package/dist/api/types/DashboardTenantsResponse.d.ts +12 -0
- package/dist/api/types/DeleteResult.d.ts +14 -0
- package/dist/api/types/DeleteUserMemoryResponse.d.ts +1 -1
- package/dist/api/types/Entity.d.ts +2 -2
- package/dist/api/types/FetchMode.d.ts +12 -0
- package/dist/api/types/FetchMode.js +11 -0
- package/dist/api/types/GraphContext.d.ts +12 -0
- package/dist/api/types/Infra.d.ts +8 -0
- package/dist/api/types/InsertResult.d.ts +16 -0
- package/dist/api/types/MemoryItem.d.ts +41 -0
- package/dist/api/types/MemoryResultItem.d.ts +19 -0
- package/dist/api/types/MilvusDataType.d.ts +21 -0
- package/dist/api/types/MilvusDataType.js +20 -0
- package/dist/api/types/PathTriplet.d.ts +9 -0
- package/dist/api/types/ProcessingStatus.d.ts +16 -2
- package/dist/api/types/ProcessingStatus.js +12 -0
- package/dist/api/types/QnASearchResponse.d.ts +20 -0
- package/dist/api/types/RawEmbeddingDocument.d.ts +15 -0
- package/dist/api/types/RawEmbeddingSearchResult.d.ts +19 -0
- package/dist/api/types/RawEmbeddingVector.d.ts +12 -0
- package/dist/api/types/RelationEvidence.d.ts +8 -0
- package/dist/api/types/RetrievalResult.d.ts +11 -0
- package/dist/api/types/ScoredPathResponse.d.ts +11 -0
- package/dist/api/types/SearchMode.d.ts +11 -0
- package/dist/api/types/SearchMode.js +10 -0
- package/dist/api/types/SourceDeleteResponse.d.ts +14 -0
- package/dist/api/types/SourceDeleteResultItem.d.ts +14 -0
- package/dist/api/types/SourceFetchResponse.d.ts +26 -0
- package/dist/api/types/{GraphRelationsResponse.d.ts → SourceGraphRelationsResponse.d.ts} +2 -2
- package/dist/api/types/SourceListResponse.d.ts +11 -0
- package/dist/api/types/SourceModel.d.ts +5 -1
- package/dist/api/types/SourceStatus.d.ts +10 -0
- package/dist/api/types/SourceStatus.js +12 -0
- package/dist/api/types/SourceUploadResponse.d.ts +14 -0
- package/dist/api/types/SourceUploadResultItem.d.ts +14 -0
- package/dist/api/types/SupportedLlmProviders.d.ts +11 -0
- package/dist/api/types/SupportedLlmProviders.js +13 -0
- package/dist/api/types/TenantCreateResponse.d.ts +14 -0
- package/dist/api/types/TenantInfo.d.ts +11 -0
- package/dist/api/types/TenantMetadataSchemaInfo.d.ts +14 -0
- package/dist/api/types/TenantStatsResponse.d.ts +14 -0
- package/dist/api/types/{TripleWithEvidence.d.ts → TripletWithEvidence.d.ts} +1 -1
- package/dist/api/types/UserAssistantPair.d.ts +3 -0
- package/dist/api/types/{SearchChunk.d.ts → VectorStoreChunk.d.ts} +3 -6
- package/dist/api/types/index.d.ts +38 -31
- package/dist/api/types/index.js +38 -31
- package/package.json +30 -33
- package/dist/api/resources/document/client/Client.d.ts +0 -59
- package/dist/api/resources/document/client/Client.js +0 -132
- package/dist/api/resources/document/client/index.d.ts +0 -1
- package/dist/api/resources/embeddings/client/requests/EmbeddingsCreateCollectionRequest.d.ts +0 -13
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRequest.d.ts +0 -18
- package/dist/api/resources/embeddings/client/requests/GetEmbeddingsBasedOnChunkIdsRequest.d.ts +0 -18
- package/dist/api/resources/fetch/client/requests/FetchContentRequest.d.ts +0 -18
- package/dist/api/resources/search/client/requests/QnARequest.d.ts +0 -47
- package/dist/api/resources/sources/client/requests/SourceBodyParams.d.ts +0 -18
- package/dist/api/resources/tenant/client/requests/TenantDeleteSubTenantRequest.d.ts +0 -14
- package/dist/api/resources/tenant/client/requests/TenantGetSubTenantIdsRequest.d.ts +0 -12
- package/dist/api/resources/upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.d.ts +0 -37
- package/dist/api/resources/upload/client/requests/BodyBatchUploadUploadBatchUploadPost.d.ts +0 -37
- package/dist/api/resources/upload/client/requests/BodyUpdateFileUploadUpdateDocumentPatch.d.ts +0 -38
- package/dist/api/resources/upload/client/requests/BodyUploadFilesUploadUploadDocumentPost.d.ts +0 -37
- package/dist/api/resources/upload/client/requests/EmbeddingsUpdateRequest.d.ts +0 -18
- package/dist/api/resources/upload/client/requests/EmbeddingsUploadRequest.d.ts +0 -21
- package/dist/api/resources/upload/client/requests/UploadBatchScrapeWebpageRequest.d.ts +0 -22
- package/dist/api/resources/upload/client/requests/UploadBatchUploadMarkdownRequest.d.ts +0 -22
- package/dist/api/resources/upload/client/requests/UploadBatchUploadTextRequest.d.ts +0 -22
- package/dist/api/resources/upload/client/requests/UploadScrapeWebpageRequest.d.ts +0 -25
- package/dist/api/resources/upload/client/requests/UploadUpdateMarkdownRequest.d.ts +0 -24
- package/dist/api/resources/upload/client/requests/UploadUpdateWebpageRequest.d.ts +0 -25
- package/dist/api/resources/upload/client/requests/UploadUploadAppSourcesRequest.d.ts +0 -20
- package/dist/api/resources/upload/client/requests/UploadUploadTextRequest.d.ts +0 -21
- package/dist/api/resources/user/client/Client.d.ts +0 -60
- package/dist/api/resources/user/client/Client.js +0 -152
- package/dist/api/resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.d.ts +0 -15
- package/dist/api/resources/user/client/requests/index.d.ts +0 -1
- package/dist/api/resources/user/client/requests/index.js +0 -2
- package/dist/api/resources/user/index.d.ts +0 -1
- package/dist/api/resources/user/index.js +0 -17
- package/dist/api/resources/userMemory/client/Client.d.ts +0 -150
- package/dist/api/resources/userMemory/client/index.d.ts +0 -2
- package/dist/api/resources/userMemory/client/index.js +0 -17
- package/dist/api/resources/userMemory/client/requests/AddUserMemoryRequest.d.ts +0 -27
- package/dist/api/resources/userMemory/client/requests/RetrieveUserMemoryRequest.d.ts +0 -24
- package/dist/api/resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.d.ts +0 -19
- package/dist/api/resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.d.ts +0 -16
- package/dist/api/resources/userMemory/client/requests/index.d.ts +0 -4
- package/dist/api/resources/userMemory/client/requests/index.js +0 -2
- package/dist/api/resources/userMemory/index.d.ts +0 -1
- package/dist/api/resources/userMemory/index.js +0 -17
- package/dist/api/types/AddUserMemoryResponse.d.ts +0 -16
- package/dist/api/types/BatchUploadData.d.ts +0 -11
- package/dist/api/types/BodyScrapeWebpageUploadScrapeWebpagePost.d.ts +0 -5
- package/dist/api/types/BodyUpdateScrapeJobUploadUpdateWebpagePatch.d.ts +0 -5
- package/dist/api/types/DeleteMemoryRequest.d.ts +0 -11
- package/dist/api/types/DeleteSources.d.ts +0 -7
- package/dist/api/types/DeleteSubTenantData.d.ts +0 -15
- package/dist/api/types/EmbeddingsCreateCollectionData.d.ts +0 -13
- package/dist/api/types/EmbeddingsDeleteData.d.ts +0 -13
- package/dist/api/types/EmbeddingsGetData.d.ts +0 -13
- package/dist/api/types/EmbeddingsSearchData.d.ts +0 -13
- package/dist/api/types/ExtendedContext.d.ts +0 -8
- package/dist/api/types/FetchContentData.d.ts +0 -13
- package/dist/api/types/FileUploadResult.d.ts +0 -9
- package/dist/api/types/ListSourcesResponse.d.ts +0 -12
- package/dist/api/types/ListUserMemoriesResponse.d.ts +0 -13
- package/dist/api/types/MarkdownUploadRequest.d.ts +0 -22
- package/dist/api/types/RelatedChunk.d.ts +0 -9
- package/dist/api/types/RelatedChunk.js +0 -5
- package/dist/api/types/Relations.d.ts +0 -9
- package/dist/api/types/Relations.js +0 -5
- package/dist/api/types/RetrieveResponse.d.ts +0 -12
- package/dist/api/types/RetrieveResponse.js +0 -5
- package/dist/api/types/RetrieveUserMemoryResponse.d.ts +0 -15
- package/dist/api/types/RetrieveUserMemoryResponse.js +0 -5
- package/dist/api/types/SearchChunk.js +0 -5
- package/dist/api/types/SingleUploadData.d.ts +0 -10
- package/dist/api/types/SingleUploadData.js +0 -5
- package/dist/api/types/Source.d.ts +0 -19
- package/dist/api/types/Source.js +0 -5
- package/dist/api/types/SubTenantIdsData.d.ts +0 -17
- package/dist/api/types/SubTenantIdsData.js +0 -5
- package/dist/api/types/TenantCreateData.d.ts +0 -13
- package/dist/api/types/TenantCreateData.js +0 -5
- package/dist/api/types/TenantStats.d.ts +0 -15
- package/dist/api/types/TenantStats.js +0 -5
- package/dist/api/types/TripleWithEvidence.js +0 -5
- package/dist/api/types/UserMemory.d.ts +0 -12
- package/dist/api/types/UserMemory.js +0 -5
- package/dist/api/types/WebpageScrapeRequest.d.ts +0 -9
- package/dist/api/types/WebpageScrapeRequest.js +0 -5
- /package/dist/api/resources/{user → dashboard}/client/index.d.ts +0 -0
- /package/dist/api/resources/{user → dashboard}/client/index.js +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsCreateCollectionRequest.js → dashboard/client/requests/CreateUserDashboardUserCreateUserPostRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsSearchRequest.js → dashboard/client/requests/ListSourcesDashboardSourcesGetRequest.js} +0 -0
- /package/dist/api/resources/{document/client → dashboard/client/requests}/index.js +0 -0
- /package/dist/api/resources/{document → dashboard}/index.d.ts +0 -0
- /package/dist/api/resources/{document → dashboard}/index.js +0 -0
- /package/dist/api/resources/embeddings/client/requests/{GetEmbeddingsBasedOnChunkIdsRequest.js → BodyFilterRawEmbeddingsEndpointEmbeddingsFilterRawEmbeddingsPost.js} +0 -0
- /package/dist/api/resources/{fetch/client/requests/FetchContentRequest.js → embeddings/client/requests/BodyInsertRawEmbeddingsEndpointEmbeddingsInsertRawEmbeddingsPost.js} +0 -0
- /package/dist/api/resources/{search/client/requests/QnARequest.js → embeddings/client/requests/BodySearchRawEmbeddingsEndpointEmbeddingsSearchRawEmbeddingsPost.js} +0 -0
- /package/dist/api/resources/{search/client/requests/SearchRequest.js → fetch/client/requests/FetchGraphRelationsBySourceIdRequest.js} +0 -0
- /package/dist/api/resources/{sources/client/requests/SourceBodyParams.js → fetch/client/requests/FetchSourcesRequest.js} +0 -0
- /package/dist/api/resources/{sources/client/requests/SourcesGetAllRequest.js → fetch/client/requests/ListSourcesByIdRequest.js} +0 -0
- /package/dist/api/resources/{sources/client/requests/SourcesGetGraphRelationsByIdRequest.js → fetch/client/requests/SourceFetchRequest.js} +0 -0
- /package/dist/api/resources/{tenant/client/requests/TenantDeleteSubTenantRequest.js → search/client/requests/HybridSearchRequest.js} +0 -0
- /package/dist/api/resources/{tenant/client/requests/TenantGetSubTenantIdsRequest.js → search/client/requests/QnASearchRequest.js} +0 -0
- /package/dist/api/resources/{upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.js → sources/client/requests/SourceDeleteRequest.js} +0 -0
- /package/dist/api/resources/{upload/client/requests/BodyBatchUploadUploadBatchUploadPost.js → tenant/client/requests/TenantCreateRequest.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{BodyUpdateFileUploadUpdateDocumentPatch.js → BodyAddMemoryMemoriesAddMemoryPost.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{BodyUploadFilesUploadUploadDocumentPost.js → BodyUploadAppIngestionUploadAppPost.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{EmbeddingsUpdateRequest.js → BodyUploadDocumentIngestionUploadDocumentPost.js} +0 -0
- /package/dist/api/resources/upload/client/requests/{EmbeddingsUploadRequest.js → UploadDeleteMemoryRequest.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadBatchScrapeWebpageRequest.js → types/AddMemoryResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadBatchUploadMarkdownRequest.js → types/ApiKeyInfo.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadBatchUploadTextRequest.js → types/CollectionStats.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadScrapeWebpageRequest.js → types/CustomPropertyDefinition.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUpdateMarkdownRequest.js → types/DashboardApisResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUpdateTextRequest.js → types/DashboardSourcesResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUpdateWebpageRequest.js → types/DashboardTenantsResponse.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUploadAppSourcesRequest.js → types/DeleteResult.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUploadMarkdownRequest.js → types/GraphContext.js} +0 -0
- /package/dist/api/{resources/upload/client/requests/UploadUploadTextRequest.js → types/Infra.js} +0 -0
- /package/dist/api/{resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.js → types/InsertResult.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/AddUserMemoryRequest.js → types/MemoryItem.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/RetrieveUserMemoryRequest.js → types/MemoryResultItem.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.js → types/PathTriplet.js} +0 -0
- /package/dist/api/{resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.js → types/QnASearchResponse.js} +0 -0
- /package/dist/api/types/{AddUserMemoryResponse.js → RawEmbeddingDocument.js} +0 -0
- /package/dist/api/types/{BatchUploadData.js → RawEmbeddingSearchResult.js} +0 -0
- /package/dist/api/types/{BodyScrapeWebpageUploadScrapeWebpagePost.js → RawEmbeddingVector.js} +0 -0
- /package/dist/api/types/{BodyUpdateScrapeJobUploadUpdateWebpagePatch.js → RetrievalResult.js} +0 -0
- /package/dist/api/types/{DeleteMemoryRequest.js → ScoredPathResponse.js} +0 -0
- /package/dist/api/types/{DeleteSources.js → SourceDeleteResponse.js} +0 -0
- /package/dist/api/types/{DeleteSubTenantData.js → SourceDeleteResultItem.js} +0 -0
- /package/dist/api/types/{EmbeddingsCreateCollectionData.js → SourceFetchResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsDeleteData.js → SourceGraphRelationsResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsGetData.js → SourceListResponse.js} +0 -0
- /package/dist/api/types/{EmbeddingsSearchData.js → SourceUploadResponse.js} +0 -0
- /package/dist/api/types/{ExtendedContext.js → SourceUploadResultItem.js} +0 -0
- /package/dist/api/types/{FetchContentData.js → TenantCreateResponse.js} +0 -0
- /package/dist/api/types/{FileUploadResult.js → TenantInfo.js} +0 -0
- /package/dist/api/types/{GraphRelationsResponse.js → TenantMetadataSchemaInfo.js} +0 -0
- /package/dist/api/types/{ListSourcesResponse.js → TenantStatsResponse.js} +0 -0
- /package/dist/api/types/{ListUserMemoriesResponse.js → TripletWithEvidence.js} +0 -0
- /package/dist/api/types/{MarkdownUploadRequest.js → VectorStoreChunk.js} +0 -0
|
@@ -5,17 +5,17 @@ import * as CortexAI from "../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* body: {
|
|
11
|
-
* content: "<content>"
|
|
12
|
-
* }
|
|
8
|
+
* memories: [{}],
|
|
9
|
+
* tenant_id: "tenant_id"
|
|
13
10
|
* }
|
|
14
11
|
*/
|
|
15
|
-
export interface
|
|
12
|
+
export interface BodyAddMemoryMemoriesAddMemoryPost {
|
|
13
|
+
/** List of memory items to ingest */
|
|
14
|
+
memories: CortexAI.MemoryItem[];
|
|
16
15
|
/** Unique identifier for the tenant/organization */
|
|
17
16
|
tenant_id: string;
|
|
18
17
|
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
19
18
|
sub_tenant_id?: string;
|
|
20
|
-
|
|
19
|
+
/** If true, update existing sources with the same source_id. */
|
|
20
|
+
upsert?: boolean;
|
|
21
21
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* app_sources: {
|
|
9
|
+
* id: "id",
|
|
10
|
+
* tenant_id: "tenant_id",
|
|
11
|
+
* sub_tenant_id: "sub_tenant_id"
|
|
12
|
+
* },
|
|
13
|
+
* tenant_id: "tenant_id"
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface BodyUploadAppIngestionUploadAppPost {
|
|
17
|
+
/** Single source object or list of structured source objects containing app-generated data to be indexed */
|
|
18
|
+
app_sources: BodyUploadAppIngestionUploadAppPost.AppSources;
|
|
19
|
+
/** Unique identifier for the tenant/organization */
|
|
20
|
+
tenant_id: string;
|
|
21
|
+
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
22
|
+
sub_tenant_id?: string;
|
|
23
|
+
/** If true, update existing sources with the same source_id. Defaults to True. */
|
|
24
|
+
upsert?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace BodyUploadAppIngestionUploadAppPost {
|
|
27
|
+
/**
|
|
28
|
+
* Single source object or list of structured source objects containing app-generated data to be indexed
|
|
29
|
+
*/
|
|
30
|
+
type AppSources = CortexAI.SourceModel | CortexAI.SourceModel[];
|
|
31
|
+
}
|
package/dist/api/resources/upload/client/requests/BodyUploadDocumentIngestionUploadDocumentPost.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../../core/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* files: [fs.createReadStream("/path/to/your/file")],
|
|
9
|
+
* tenant_id: "tenant_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface BodyUploadDocumentIngestionUploadDocumentPost {
|
|
13
|
+
/** Files to be uploaded */
|
|
14
|
+
files: core.file.Uploadable.FileLike[];
|
|
15
|
+
/** Unique identifier for the tenant/organization */
|
|
16
|
+
tenant_id: string;
|
|
17
|
+
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
18
|
+
sub_tenant_id?: string;
|
|
19
|
+
upsert?: boolean;
|
|
20
|
+
/** JSON Array of file metadata objects */
|
|
21
|
+
file_metadata?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* tenant_id: "tenant_id",
|
|
8
|
+
* memory_id: "memory_id"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface UploadDeleteMemoryRequest {
|
|
12
|
+
/** Tenant ID */
|
|
13
|
+
tenant_id: string;
|
|
14
|
+
/** Unique identifier of the memory to delete */
|
|
15
|
+
memory_id: string;
|
|
16
|
+
/** Sub-tenant ID */
|
|
17
|
+
sub_tenant_id?: string;
|
|
18
|
+
}
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type
|
|
3
|
-
export { type BodyUploadFilesUploadUploadDocumentPost } from "./BodyUploadFilesUploadUploadDocumentPost.js";
|
|
4
|
-
export { type BodyUpdateFileUploadUpdateDocumentPatch } from "./BodyUpdateFileUploadUpdateDocumentPatch.js";
|
|
5
|
-
export { type UploadUploadAppSourcesRequest } from "./UploadUploadAppSourcesRequest.js";
|
|
6
|
-
export { type UploadUploadMarkdownRequest } from "./UploadUploadMarkdownRequest.js";
|
|
7
|
-
export { type UploadUploadTextRequest } from "./UploadUploadTextRequest.js";
|
|
8
|
-
export { type UploadUpdateMarkdownRequest } from "./UploadUpdateMarkdownRequest.js";
|
|
9
|
-
export { type UploadUpdateTextRequest } from "./UploadUpdateTextRequest.js";
|
|
10
|
-
export { type UploadBatchUploadMarkdownRequest } from "./UploadBatchUploadMarkdownRequest.js";
|
|
11
|
-
export { type UploadBatchUploadTextRequest } from "./UploadBatchUploadTextRequest.js";
|
|
12
|
-
export { type EmbeddingsUploadRequest } from "./EmbeddingsUploadRequest.js";
|
|
13
|
-
export { type EmbeddingsUpdateRequest } from "./EmbeddingsUpdateRequest.js";
|
|
14
|
-
export { type UploadScrapeWebpageRequest } from "./UploadScrapeWebpageRequest.js";
|
|
15
|
-
export { type UploadUpdateWebpageRequest } from "./UploadUpdateWebpageRequest.js";
|
|
16
|
-
export { type UploadBatchScrapeWebpageRequest } from "./UploadBatchScrapeWebpageRequest.js";
|
|
1
|
+
export { type BodyUploadDocumentIngestionUploadDocumentPost } from "./BodyUploadDocumentIngestionUploadDocumentPost.js";
|
|
2
|
+
export { type BodyUploadAppIngestionUploadAppPost } from "./BodyUploadAppIngestionUploadAppPost.js";
|
|
17
3
|
export { type UploadVerifyProcessingRequest } from "./UploadVerifyProcessingRequest.js";
|
|
4
|
+
export { type BodyAddMemoryMemoriesAddMemoryPost } from "./BodyAddMemoryMemoriesAddMemoryPost.js";
|
|
5
|
+
export { type UploadDeleteMemoryRequest } from "./UploadDeleteMemoryRequest.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Response model for add_memory endpoint.
|
|
7
|
+
*/
|
|
8
|
+
export interface AddMemoryResponse {
|
|
9
|
+
success?: boolean;
|
|
10
|
+
message?: string;
|
|
11
|
+
/** List of results for each ingested memory item. */
|
|
12
|
+
results?: CortexAI.MemoryResultItem[];
|
|
13
|
+
/** Number of items successfully queued for ingestion. */
|
|
14
|
+
success_count?: number;
|
|
15
|
+
/** Number of items that failed to queue. */
|
|
16
|
+
failed_count?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ApiKeyInfo {
|
|
5
|
+
/** API key identifier */
|
|
6
|
+
api_key_id: string;
|
|
7
|
+
/** Owner email */
|
|
8
|
+
user_email: string;
|
|
9
|
+
/** User ID */
|
|
10
|
+
user_id: string;
|
|
11
|
+
/** API key scopes */
|
|
12
|
+
scopes?: string[];
|
|
13
|
+
/** Whether the API key is valid */
|
|
14
|
+
is_valid: boolean;
|
|
15
|
+
/** Creation timestamp */
|
|
16
|
+
created_at: string;
|
|
17
|
+
}
|
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Response model for uploads of app-generated sources.
|
|
7
|
+
*/
|
|
5
8
|
export interface AppSourcesUploadData {
|
|
6
|
-
/** List of successfully uploaded app source for indexing */
|
|
7
|
-
uploaded: CortexAI.FileUploadResult[];
|
|
8
|
-
/** Status message indicating app sources upload scheduled */
|
|
9
|
-
message: string;
|
|
10
9
|
success?: boolean;
|
|
10
|
+
message?: string;
|
|
11
|
+
/** List of upload results for each source. */
|
|
12
|
+
results?: CortexAI.SourceUploadResultItem[];
|
|
13
|
+
/** Number of sources successfully queued. */
|
|
14
|
+
success_count?: number;
|
|
15
|
+
/** Number of sources that failed to upload. */
|
|
16
|
+
failed_count?: number;
|
|
11
17
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Definition for custom/dynamic properties on a collection.
|
|
7
|
+
*
|
|
8
|
+
* Use this to define tenant metadata fields that can enhance search capabilities:
|
|
9
|
+
* - enable_dense_embedding: Creates a dense vector field for semantic similarity search
|
|
10
|
+
* - enable_sparse_embedding: Creates a sparse vector field for BM25 keyword search
|
|
11
|
+
*
|
|
12
|
+
* Example:
|
|
13
|
+
* CustomPropertyDefinition(
|
|
14
|
+
* name="product_description",
|
|
15
|
+
* data_type=MilvusDataType.VARCHAR,
|
|
16
|
+
* max_length=4096,
|
|
17
|
+
* enable_dense_embedding=True, # Enables semantic search on this field
|
|
18
|
+
* enable_sparse_embedding=True, # Enables keyword search on this field
|
|
19
|
+
* )
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomPropertyDefinition {
|
|
22
|
+
/** Property name (used as field name in Milvus) */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Milvus data type. Use VARCHAR for text fields that need embeddings. */
|
|
25
|
+
data_type?: CortexAI.MilvusDataType;
|
|
26
|
+
/** Max length for VARCHAR fields. Increase for longer text content. */
|
|
27
|
+
max_length?: number;
|
|
28
|
+
/** Enable text analyzer for full-text search capabilities */
|
|
29
|
+
enable_analyzer?: boolean;
|
|
30
|
+
/** Enable TEXT_MATCH filtering on this field */
|
|
31
|
+
enable_match?: boolean;
|
|
32
|
+
/** Create a dense embedding field (FLOAT_VECTOR) for semantic similarity search. Only applicable to VARCHAR fields. A corresponding '{name}_embedding' field will be created. */
|
|
33
|
+
enable_dense_embedding?: boolean;
|
|
34
|
+
/** Create a sparse embedding field (BM25) for keyword search. Only applicable to VARCHAR fields. A corresponding '{name}_sparse' field and BM25 function will be created. */
|
|
35
|
+
enable_sparse_embedding?: boolean;
|
|
36
|
+
/** Whether field can be null */
|
|
37
|
+
nullable?: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
export interface DashboardApisResponse {
|
|
6
|
+
/** List of API keys */
|
|
7
|
+
api_keys?: CortexAI.ApiKeyInfo[];
|
|
8
|
+
/** Total number of API keys */
|
|
9
|
+
count: number;
|
|
10
|
+
/** Response message */
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
export interface DashboardSourcesResponse {
|
|
6
|
+
/** List of sources */
|
|
7
|
+
sources?: CortexAI.SourceModel[];
|
|
8
|
+
/** Total number of sources */
|
|
9
|
+
count: number;
|
|
10
|
+
/** Response message */
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
export interface DashboardTenantsResponse {
|
|
6
|
+
/** List of tenants */
|
|
7
|
+
tenants?: CortexAI.TenantInfo[];
|
|
8
|
+
/** Total number of tenants */
|
|
9
|
+
count: number;
|
|
10
|
+
/** Response message */
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Result of a delete operation.
|
|
6
|
+
*/
|
|
7
|
+
export interface DeleteResult {
|
|
8
|
+
/** Number of entities deleted */
|
|
9
|
+
delete_count: number;
|
|
10
|
+
/** Whether delete succeeded */
|
|
11
|
+
success?: boolean;
|
|
12
|
+
/** Error message if failed */
|
|
13
|
+
error?: string;
|
|
14
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface DeleteUserMemoryResponse {
|
|
8
8
|
/** Indicates whether the memory deletion operation was successful */
|
|
9
|
-
success
|
|
9
|
+
success?: boolean;
|
|
10
10
|
/** Confirms whether the specific memory was successfully deleted */
|
|
11
11
|
user_memory_deleted: boolean;
|
|
12
12
|
}
|
|
@@ -8,8 +8,8 @@ export interface Entity {
|
|
|
8
8
|
type: string;
|
|
9
9
|
/** Context category like 'employees', 'projects' */
|
|
10
10
|
namespace?: string;
|
|
11
|
+
/** Internal unique entity ID from graph database */
|
|
12
|
+
entity_id: string;
|
|
11
13
|
/** Unique ID like email, employee_id, URL */
|
|
12
14
|
identifier?: string;
|
|
13
|
-
/** Internal unique entity ID from graph database */
|
|
14
|
-
entity_id?: string;
|
|
15
15
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Mode for fetching file content.
|
|
6
|
+
*/
|
|
7
|
+
export type FetchMode = "content" | "url" | "both";
|
|
8
|
+
export declare const FetchMode: {
|
|
9
|
+
readonly Content: "content";
|
|
10
|
+
readonly Url: "url";
|
|
11
|
+
readonly Both: "both";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FetchMode = void 0;
|
|
7
|
+
exports.FetchMode = {
|
|
8
|
+
Content: "content",
|
|
9
|
+
Url: "url",
|
|
10
|
+
Both: "both",
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Graph context containing query-based paths and chunk-based relation paths.
|
|
7
|
+
*/
|
|
8
|
+
export interface GraphContext {
|
|
9
|
+
query_paths?: CortexAI.ScoredPathResponse[];
|
|
10
|
+
chunk_relations?: CortexAI.ScoredPathResponse[];
|
|
11
|
+
chunk_id_to_group_ids?: Record<string, string[]>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Result of an insert operation.
|
|
6
|
+
*/
|
|
7
|
+
export interface InsertResult {
|
|
8
|
+
/** Number of entities inserted */
|
|
9
|
+
insert_count: number;
|
|
10
|
+
/** Inserted entity IDs */
|
|
11
|
+
ids?: string[];
|
|
12
|
+
/** Whether insert succeeded */
|
|
13
|
+
success?: boolean;
|
|
14
|
+
/** Error message if failed */
|
|
15
|
+
error?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Represents a single memory item for ingestion.
|
|
7
|
+
* Supports raw text, markdown, and user/assistant conversation pairs.
|
|
8
|
+
*/
|
|
9
|
+
export interface MemoryItem {
|
|
10
|
+
/** Optional unique identifier. Auto-generated if not provided. */
|
|
11
|
+
source_id?: string;
|
|
12
|
+
/** Display title for this memory item. */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Raw text or markdown content to be indexed. */
|
|
15
|
+
text?: string;
|
|
16
|
+
/** Array of user/assistant conversation pairs to store as memory. */
|
|
17
|
+
user_assistant_pairs?: CortexAI.UserAssistantPair[];
|
|
18
|
+
/** Whether the text is markdown formatted. */
|
|
19
|
+
is_markdown?: boolean;
|
|
20
|
+
/** If true, process and extract additional insights/inferences from the content before indexing. Useful for extracting implicit information from conversations. */
|
|
21
|
+
infer?: boolean;
|
|
22
|
+
/** Custom instructions to guide inference processing. */
|
|
23
|
+
custom_instructions?: string;
|
|
24
|
+
/** User's name for personalization in conversation pairs. */
|
|
25
|
+
user_name?: string;
|
|
26
|
+
/** Optional TTL in seconds for this memory. */
|
|
27
|
+
expiry_time?: number;
|
|
28
|
+
/**
|
|
29
|
+
* JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
|
|
30
|
+
*
|
|
31
|
+
* Example: > "{"department":"Finance","compliance_tag":"GDPR"}"
|
|
32
|
+
*/
|
|
33
|
+
tenant_metadata?: string;
|
|
34
|
+
/**
|
|
35
|
+
* JSON string containing document-specific metadata (e.g., title, author, file_id). If file_id is not provided, the system will generate an ID automatically.
|
|
36
|
+
*
|
|
37
|
+
* Example: > "{"title":"Q1 Report.pdf","author":"Alice Smith","file_id":"custom_file_123"}"
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
document_metadata?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Result for a single ingested memory item.
|
|
7
|
+
*/
|
|
8
|
+
export interface MemoryResultItem {
|
|
9
|
+
/** Unique identifier for the ingested source. */
|
|
10
|
+
source_id: string;
|
|
11
|
+
/** Title of the memory if provided. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Initial processing status. */
|
|
14
|
+
status?: CortexAI.SourceStatus;
|
|
15
|
+
/** Whether inference was requested for this memory. */
|
|
16
|
+
infer?: boolean;
|
|
17
|
+
/** Error message if ingestion failed. */
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Milvus data types mapped from Weaviate schema.
|
|
6
|
+
*/
|
|
7
|
+
export type MilvusDataType = "BOOL" | "INT8" | "INT16" | "INT32" | "INT64" | "FLOAT" | "DOUBLE" | "VARCHAR" | "JSON" | "ARRAY" | "FLOAT_VECTOR" | "SPARSE_FLOAT_VECTOR";
|
|
8
|
+
export declare const MilvusDataType: {
|
|
9
|
+
readonly Bool: "BOOL";
|
|
10
|
+
readonly Int8: "INT8";
|
|
11
|
+
readonly Int16: "INT16";
|
|
12
|
+
readonly Int32: "INT32";
|
|
13
|
+
readonly Int64: "INT64";
|
|
14
|
+
readonly Float: "FLOAT";
|
|
15
|
+
readonly Double: "DOUBLE";
|
|
16
|
+
readonly Varchar: "VARCHAR";
|
|
17
|
+
readonly Json: "JSON";
|
|
18
|
+
readonly Array: "ARRAY";
|
|
19
|
+
readonly FloatVector: "FLOAT_VECTOR";
|
|
20
|
+
readonly SparseFloatVector: "SPARSE_FLOAT_VECTOR";
|
|
21
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MilvusDataType = void 0;
|
|
7
|
+
exports.MilvusDataType = {
|
|
8
|
+
Bool: "BOOL",
|
|
9
|
+
Int8: "INT8",
|
|
10
|
+
Int16: "INT16",
|
|
11
|
+
Int32: "INT32",
|
|
12
|
+
Int64: "INT64",
|
|
13
|
+
Float: "FLOAT",
|
|
14
|
+
Double: "DOUBLE",
|
|
15
|
+
Varchar: "VARCHAR",
|
|
16
|
+
Json: "JSON",
|
|
17
|
+
Array: "ARRAY",
|
|
18
|
+
FloatVector: "FLOAT_VECTOR",
|
|
19
|
+
SparseFloatVector: "SPARSE_FLOAT_VECTOR",
|
|
20
|
+
};
|
|
@@ -4,11 +4,25 @@
|
|
|
4
4
|
export interface ProcessingStatus {
|
|
5
5
|
/** Identifier for the file whose status is being retrieved */
|
|
6
6
|
file_id: string;
|
|
7
|
-
/** Current status of the file. Possible values are 'queued', 'processing', 'completed', 'errored' */
|
|
8
|
-
indexing_status:
|
|
7
|
+
/** Current status of the file. Possible values are 'queued', 'processing', 'completed', 'errored', 'graph_creation', 'success'. 'graph_creation' indicates the file is indexed but the knowledge graph is still being created. 'success' is an alias for 'completed'. */
|
|
8
|
+
indexing_status: ProcessingStatus.IndexingStatus;
|
|
9
9
|
/** Error code for the file. You may share this code with us to help us diagnose and resolve the issue. */
|
|
10
10
|
error_code?: string;
|
|
11
11
|
success?: boolean;
|
|
12
12
|
/** Detailed status message about the processing operation */
|
|
13
13
|
message?: string;
|
|
14
14
|
}
|
|
15
|
+
export declare namespace ProcessingStatus {
|
|
16
|
+
/**
|
|
17
|
+
* Current status of the file. Possible values are 'queued', 'processing', 'completed', 'errored', 'graph_creation', 'success'. 'graph_creation' indicates the file is indexed but the knowledge graph is still being created. 'success' is an alias for 'completed'.
|
|
18
|
+
*/
|
|
19
|
+
type IndexingStatus = "queued" | "processing" | "completed" | "errored" | "graph_creation" | "success";
|
|
20
|
+
const IndexingStatus: {
|
|
21
|
+
readonly Queued: "queued";
|
|
22
|
+
readonly Processing: "processing";
|
|
23
|
+
readonly Completed: "completed";
|
|
24
|
+
readonly Errored: "errored";
|
|
25
|
+
readonly GraphCreation: "graph_creation";
|
|
26
|
+
readonly Success: "success";
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -3,3 +3,15 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProcessingStatus = void 0;
|
|
7
|
+
var ProcessingStatus;
|
|
8
|
+
(function (ProcessingStatus) {
|
|
9
|
+
ProcessingStatus.IndexingStatus = {
|
|
10
|
+
Queued: "queued",
|
|
11
|
+
Processing: "processing",
|
|
12
|
+
Completed: "completed",
|
|
13
|
+
Errored: "errored",
|
|
14
|
+
GraphCreation: "graph_creation",
|
|
15
|
+
Success: "success",
|
|
16
|
+
};
|
|
17
|
+
})(ProcessingStatus || (exports.ProcessingStatus = ProcessingStatus = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Response model for the QnA search API.
|
|
7
|
+
*/
|
|
8
|
+
export interface QnASearchResponse {
|
|
9
|
+
success?: boolean;
|
|
10
|
+
/** The AI-generated answer based on retrieved context */
|
|
11
|
+
answer: string;
|
|
12
|
+
/** Retrieved context chunks used to generate the answer */
|
|
13
|
+
chunks?: CortexAI.VectorStoreChunk[];
|
|
14
|
+
/** Knowledge graph context (entity paths and chunk relations) */
|
|
15
|
+
graph_context?: CortexAI.GraphContext;
|
|
16
|
+
/** The LLM model used for answer generation */
|
|
17
|
+
model_used?: string;
|
|
18
|
+
/** Timing information (retrieval_ms, answer_generation_ms, total_ms) */
|
|
19
|
+
timing?: Record<string, number>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* A raw embedding document for direct insert/upsert operations.
|
|
7
|
+
*/
|
|
8
|
+
export interface RawEmbeddingDocument {
|
|
9
|
+
/** Source identifier for the embedding */
|
|
10
|
+
source_id: string;
|
|
11
|
+
/** Metadata to store */
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
/** Embedding payloads containing ids and vectors */
|
|
14
|
+
embeddings: CortexAI.RawEmbeddingVector[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Search result for raw embedding collections.
|
|
7
|
+
*/
|
|
8
|
+
export interface RawEmbeddingSearchResult {
|
|
9
|
+
/** Source identifier */
|
|
10
|
+
source_id: string;
|
|
11
|
+
/** Embedding payload with chunk id and vector (if set) */
|
|
12
|
+
embedding?: CortexAI.RawEmbeddingVector;
|
|
13
|
+
/** Similarity score */
|
|
14
|
+
score?: number;
|
|
15
|
+
/** Vector distance */
|
|
16
|
+
distance?: number;
|
|
17
|
+
/** Metadata associated with the embedding */
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Embedding payload containing the chunk identifier and vector.
|
|
6
|
+
*/
|
|
7
|
+
export interface RawEmbeddingVector {
|
|
8
|
+
/** Primary key / chunk identifier */
|
|
9
|
+
chunk_id: string;
|
|
10
|
+
/** Embedding vector */
|
|
11
|
+
embedding: number[];
|
|
12
|
+
}
|
|
@@ -17,4 +17,12 @@ export interface RelationEvidence {
|
|
|
17
17
|
temporal_details?: string;
|
|
18
18
|
/** Timestamp when this relation was introduced */
|
|
19
19
|
timestamp?: string;
|
|
20
|
+
/** Unique ID for this relationship from graph database */
|
|
21
|
+
relationship_id: string;
|
|
22
|
+
/** ID of the chunk this relation was extracted from */
|
|
23
|
+
chunk_id?: string;
|
|
24
|
+
/** The entity ID of source node */
|
|
25
|
+
source_entity_id?: string;
|
|
26
|
+
/** The entity ID of target node */
|
|
27
|
+
target_entity_id?: string;
|
|
20
28
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CortexAI from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Result of a hybrid search retrieval operation.
|
|
7
|
+
*/
|
|
8
|
+
export interface RetrievalResult {
|
|
9
|
+
chunks?: CortexAI.VectorStoreChunk[];
|
|
10
|
+
graph_context?: CortexAI.GraphContext;
|
|
11
|
+
}
|