@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
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface DeleteSubTenantData {
|
|
5
|
-
/** The status of the deletion operation. */
|
|
6
|
-
status: string;
|
|
7
|
-
/** The tenant ID from which the sub-tenant was deleted. */
|
|
8
|
-
tenant_id: string;
|
|
9
|
-
/** The ID of the sub-tenant that was deleted. */
|
|
10
|
-
sub_tenant_id: string;
|
|
11
|
-
/** Indicates whether the sub-tenant deletion was successful. */
|
|
12
|
-
success?: boolean;
|
|
13
|
-
/** Response message describing the operation result. */
|
|
14
|
-
message?: string;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface EmbeddingsCreateCollectionData {
|
|
5
|
-
/** Identifier for the tenant/organization */
|
|
6
|
-
tenant_id: string;
|
|
7
|
-
/** Identifier for the sub-tenant within the tenant */
|
|
8
|
-
sub_tenant_id: string;
|
|
9
|
-
/** Indicates whether the embeddings tenant creation completed successfully */
|
|
10
|
-
success?: boolean;
|
|
11
|
-
/** Status message about the tenant creation operation */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface EmbeddingsDeleteData {
|
|
5
|
-
/** Total number of embeddings that were successfully deleted */
|
|
6
|
-
total_deleted: number;
|
|
7
|
-
/** Dictionary mapping chunk IDs to their deletion status (true if deleted successfully). Example: {'chunk_1234': true} */
|
|
8
|
-
status: Record<string, boolean>;
|
|
9
|
-
/** Indicates whether the embeddings deletion operation completed successfully */
|
|
10
|
-
success?: boolean;
|
|
11
|
-
/** Status message about the deletion operation */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface EmbeddingsGetData {
|
|
5
|
-
/** Dictionary mapping chunk IDs to their embedding vectors (lists of float values) */
|
|
6
|
-
embeddings: Record<string, number[]>;
|
|
7
|
-
/** List of chunk IDs that were not found in the embeddings collection */
|
|
8
|
-
not_found_chunk_ids: string[];
|
|
9
|
-
/** Indicates whether the embeddings retrieval operation completed successfully */
|
|
10
|
-
success?: boolean;
|
|
11
|
-
/** Status message about the retrieval operation */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface EmbeddingsSearchData {
|
|
5
|
-
/** List of chunk IDs that match the search query */
|
|
6
|
-
chunk_ids: string[];
|
|
7
|
-
/** Similarity scores for each matching chunk (higher is more similar) */
|
|
8
|
-
scores: number[];
|
|
9
|
-
/** Indicates whether the embeddings search operation completed successfully */
|
|
10
|
-
success?: boolean;
|
|
11
|
-
/** Status message about the search operation */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface FetchContentData {
|
|
5
|
-
/** Unique identifier for the file being fetched */
|
|
6
|
-
file_id: string;
|
|
7
|
-
/** Content of the fetched file */
|
|
8
|
-
file_content?: string;
|
|
9
|
-
/** Indicates whether the fetch operation completed successfully */
|
|
10
|
-
success?: boolean;
|
|
11
|
-
/** Status message about the fetch operation */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as CortexAI from "../index.js";
|
|
5
|
-
export interface ListSourcesResponse {
|
|
6
|
-
/** List of source documents retrieved */
|
|
7
|
-
sources: (CortexAI.Source | undefined)[];
|
|
8
|
-
/** Indicates whether the request was successful */
|
|
9
|
-
success?: boolean;
|
|
10
|
-
/** Response message describing the operation result */
|
|
11
|
-
message?: string;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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 listing all user memories.
|
|
7
|
-
*/
|
|
8
|
-
export interface ListUserMemoriesResponse {
|
|
9
|
-
/** Indicates whether the memory listing operation was successful */
|
|
10
|
-
success: boolean;
|
|
11
|
-
/** Array of all user memories associated with your tenant */
|
|
12
|
-
user_memories?: CortexAI.UserMemory[];
|
|
13
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface MarkdownUploadRequest {
|
|
5
|
-
/** The text or markdown content to upload */
|
|
6
|
-
content: string;
|
|
7
|
-
/** Optional file ID for the uploaded content. If not provided, will be generated automatically. */
|
|
8
|
-
file_id?: string;
|
|
9
|
-
/**
|
|
10
|
-
* JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
|
|
11
|
-
*
|
|
12
|
-
* Example: > "{"department":"Finance","compliance_tag":"GDPR"}"
|
|
13
|
-
*/
|
|
14
|
-
tenant_metadata?: Record<string, unknown>;
|
|
15
|
-
/**
|
|
16
|
-
* 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.
|
|
17
|
-
*
|
|
18
|
-
* Example: > "{"title":"Q1 Report.pdf","author":"Alice Smith","file_id":"custom_file_123"}"
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
document_metadata?: Record<string, unknown>;
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface Relations {
|
|
5
|
-
/** List of cortex source IDs to directly relate with */
|
|
6
|
-
cortex_source_ids?: string[];
|
|
7
|
-
/** Key value pairs to allow cortex to automatically discover relations */
|
|
8
|
-
auto_discovery?: Record<string, unknown>;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as CortexAI from "../index.js";
|
|
5
|
-
export interface RetrieveResponse {
|
|
6
|
-
/** Retrieved content chunks */
|
|
7
|
-
chunks?: CortexAI.SearchChunk[];
|
|
8
|
-
/** Extra graph context which will help you agent get better understanding of the entities involved in query. */
|
|
9
|
-
extra_graph_context?: CortexAI.TripleWithEvidence[];
|
|
10
|
-
/** Additional metadata about the retrieval run */
|
|
11
|
-
metadata?: Record<string, unknown>;
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 retrieving user memories through semantic search.
|
|
7
|
-
*/
|
|
8
|
-
export interface RetrieveUserMemoryResponse {
|
|
9
|
-
/** Indicates whether the memory retrieval operation was successful */
|
|
10
|
-
success: boolean;
|
|
11
|
-
/** Array of user memories ranked by relevance to your search query */
|
|
12
|
-
retrieved_user_memories?: CortexAI.UserMemory[];
|
|
13
|
-
/** Array of relations extracted from the user query */
|
|
14
|
-
relations?: CortexAI.TripleWithEvidence[];
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface SingleUploadData {
|
|
5
|
-
/** Unique identifier for the file being processed */
|
|
6
|
-
file_id: string;
|
|
7
|
-
/** Status message indicating document parsing scheduled or update completed */
|
|
8
|
-
message: string;
|
|
9
|
-
success?: boolean;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface Source {
|
|
5
|
-
/** Unique identifier for the source document */
|
|
6
|
-
id: string;
|
|
7
|
-
/** Display title of the source document */
|
|
8
|
-
title: string;
|
|
9
|
-
/** Type of content (document, file, text, etc.) */
|
|
10
|
-
type: string;
|
|
11
|
-
/** When the source was originally created or uploaded */
|
|
12
|
-
timestamp: string;
|
|
13
|
-
/** Brief summary or description of the source content */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** Additional metadata specific to the document */
|
|
16
|
-
document_metadata?: Record<string, unknown>;
|
|
17
|
-
/** Metadata related to the tenant and organizational context */
|
|
18
|
-
tenant_metadata?: Record<string, unknown>;
|
|
19
|
-
}
|
package/dist/api/types/Source.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface SubTenantIdsData {
|
|
5
|
-
/** The tenant ID that was queried */
|
|
6
|
-
tenant_id: string;
|
|
7
|
-
/** Array of all sub-tenant IDs within the tenant */
|
|
8
|
-
sub_tenant_ids: string[];
|
|
9
|
-
/** Total number of sub-tenants found */
|
|
10
|
-
count: number;
|
|
11
|
-
/** Schema configuration for the tenant collection */
|
|
12
|
-
tenant_schema?: Record<string, unknown>;
|
|
13
|
-
/** Indicates whether the sub-tenant retrieval was successful */
|
|
14
|
-
success?: boolean;
|
|
15
|
-
/** Response message describing the operation result */
|
|
16
|
-
message?: string;
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface TenantCreateData {
|
|
5
|
-
/** Current status of the tenant creation process */
|
|
6
|
-
status: string;
|
|
7
|
-
/** Unique identifier assigned to the new tenant */
|
|
8
|
-
tenant_id: string;
|
|
9
|
-
/** Indicates whether the tenant creation was successful */
|
|
10
|
-
success?: boolean;
|
|
11
|
-
/** Response message describing the creation result */
|
|
12
|
-
message?: string;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface TenantStats {
|
|
5
|
-
/** Total number of objects stored for this tenant */
|
|
6
|
-
object_count: number;
|
|
7
|
-
/** identifier for the tenant */
|
|
8
|
-
tenant_id: string;
|
|
9
|
-
/** Dimensions of the vector embeddings used for this tenant. Null when the tenant is empty. */
|
|
10
|
-
vector_dimension?: number;
|
|
11
|
-
/** Indicates whether the stats retrieval was successful */
|
|
12
|
-
success?: boolean;
|
|
13
|
-
/** Response message describing the operation result */
|
|
14
|
-
message?: string;
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Represents a user memory stored in the system.
|
|
6
|
-
*/
|
|
7
|
-
export interface UserMemory {
|
|
8
|
-
/** Unique identifier for the user memory */
|
|
9
|
-
memory_id: string;
|
|
10
|
-
/** The actual memory content text that was stored */
|
|
11
|
-
memory_content: string;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface WebpageScrapeRequest {
|
|
5
|
-
/** The URL of the webpage to scrape and index */
|
|
6
|
-
web_url: string;
|
|
7
|
-
/** Optional custom file ID for the scraped content. If not provided, a unique ID will be generated */
|
|
8
|
-
file_id?: string;
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/api/{resources/upload/client/requests/UploadUploadTextRequest.js → types/Infra.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/api/types/{BodyScrapeWebpageUploadScrapeWebpagePost.js → RawEmbeddingVector.js}
RENAMED
|
File without changes
|
/package/dist/api/types/{BodyUpdateScrapeJobUploadUpdateWebpagePatch.js → RetrievalResult.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|