@usecortex_ai/node 0.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/LICENSE +24 -0
- package/README.md +71 -0
- package/dist/Client.d.ts +64 -0
- package/dist/Client.js +137 -0
- package/dist/api/errors/BadRequestError.d.ts +9 -0
- package/dist/api/errors/BadRequestError.js +42 -0
- package/dist/api/errors/ForbiddenError.d.ts +9 -0
- package/dist/api/errors/ForbiddenError.js +42 -0
- package/dist/api/errors/InternalServerError.d.ts +9 -0
- package/dist/api/errors/InternalServerError.js +42 -0
- package/dist/api/errors/NotFoundError.d.ts +9 -0
- package/dist/api/errors/NotFoundError.js +42 -0
- package/dist/api/errors/ServiceUnavailableError.d.ts +9 -0
- package/dist/api/errors/ServiceUnavailableError.js +42 -0
- package/dist/api/errors/UnauthorizedError.d.ts +9 -0
- package/dist/api/errors/UnauthorizedError.js +42 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/errors/UnprocessableEntityError.js +42 -0
- package/dist/api/errors/index.d.ts +7 -0
- package/dist/api/errors/index.js +23 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/embeddings/client/Client.d.ts +157 -0
- package/dist/api/resources/embeddings/client/Client.js +410 -0
- package/dist/api/resources/embeddings/client/index.d.ts +2 -0
- package/dist/api/resources/embeddings/client/index.js +17 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsCreateCollectionRequest.d.ts +12 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsCreateCollectionRequest.js +5 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsDeleteRequest.d.ts +15 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsDeleteRequest.js +5 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRequest.d.ts +17 -0
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRequest.js +5 -0
- package/dist/api/resources/embeddings/client/requests/GetEmbeddingsBasedOnChunkIdsRequest.d.ts +15 -0
- package/dist/api/resources/embeddings/client/requests/GetEmbeddingsBasedOnChunkIdsRequest.js +5 -0
- package/dist/api/resources/embeddings/client/requests/index.d.ts +4 -0
- package/dist/api/resources/embeddings/client/requests/index.js +2 -0
- package/dist/api/resources/embeddings/index.d.ts +1 -0
- package/dist/api/resources/embeddings/index.js +17 -0
- package/dist/api/resources/fetch/client/Client.d.ts +54 -0
- package/dist/api/resources/fetch/client/Client.js +127 -0
- package/dist/api/resources/fetch/client/index.d.ts +2 -0
- package/dist/api/resources/fetch/client/index.js +17 -0
- package/dist/api/resources/fetch/client/requests/FetchContentRequest.d.ts +18 -0
- package/dist/api/resources/fetch/client/requests/FetchContentRequest.js +5 -0
- package/dist/api/resources/fetch/client/requests/index.d.ts +1 -0
- package/dist/api/resources/fetch/client/requests/index.js +2 -0
- package/dist/api/resources/fetch/index.d.ts +1 -0
- package/dist/api/resources/fetch/index.js +17 -0
- package/dist/api/resources/index.d.ts +16 -0
- package/dist/api/resources/index.js +45 -0
- package/dist/api/resources/search/client/Client.d.ts +133 -0
- package/dist/api/resources/search/client/Client.js +324 -0
- package/dist/api/resources/search/client/index.d.ts +2 -0
- package/dist/api/resources/search/client/index.js +17 -0
- package/dist/api/resources/search/client/requests/FullTextSearchRequest.d.ts +18 -0
- package/dist/api/resources/search/client/requests/FullTextSearchRequest.js +5 -0
- package/dist/api/resources/search/client/requests/QnARequest.d.ts +30 -0
- package/dist/api/resources/search/client/requests/QnARequest.js +5 -0
- package/dist/api/resources/search/client/requests/SearchRequest.d.ts +22 -0
- package/dist/api/resources/search/client/requests/SearchRequest.js +5 -0
- package/dist/api/resources/search/client/requests/index.d.ts +3 -0
- package/dist/api/resources/search/client/requests/index.js +2 -0
- package/dist/api/resources/search/index.d.ts +1 -0
- package/dist/api/resources/search/index.js +17 -0
- package/dist/api/resources/sources/client/Client.d.ts +72 -0
- package/dist/api/resources/sources/client/Client.js +207 -0
- package/dist/api/resources/sources/client/index.d.ts +2 -0
- package/dist/api/resources/sources/client/index.js +17 -0
- package/dist/api/resources/sources/client/requests/SourceBodyParams.d.ts +14 -0
- package/dist/api/resources/sources/client/requests/SourceBodyParams.js +5 -0
- package/dist/api/resources/sources/client/requests/SourcesGetAllRequest.d.ts +13 -0
- package/dist/api/resources/sources/client/requests/SourcesGetAllRequest.js +5 -0
- package/dist/api/resources/sources/client/requests/index.d.ts +2 -0
- package/dist/api/resources/sources/client/requests/index.js +2 -0
- package/dist/api/resources/sources/index.d.ts +1 -0
- package/dist/api/resources/sources/index.js +17 -0
- package/dist/api/resources/tenant/client/Client.d.ts +56 -0
- package/dist/api/resources/tenant/client/Client.js +132 -0
- package/dist/api/resources/tenant/client/index.d.ts +2 -0
- package/dist/api/resources/tenant/client/index.js +17 -0
- package/dist/api/resources/tenant/client/requests/TenantStatsRequest.d.ts +13 -0
- package/dist/api/resources/tenant/client/requests/TenantStatsRequest.js +5 -0
- package/dist/api/resources/tenant/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tenant/client/requests/index.js +2 -0
- package/dist/api/resources/tenant/index.d.ts +1 -0
- package/dist/api/resources/tenant/index.js +17 -0
- package/dist/api/resources/upload/client/Client.d.ts +369 -0
- package/dist/api/resources/upload/client/Client.js +1439 -0
- package/dist/api/resources/upload/client/index.d.ts +2 -0
- package/dist/api/resources/upload/client/index.js +17 -0
- package/dist/api/resources/upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.d.ts +19 -0
- package/dist/api/resources/upload/client/requests/BodyBatchUpdateUploadBatchUpdatePatch.js +5 -0
- package/dist/api/resources/upload/client/requests/BodyBatchUploadUploadBatchUploadPost.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/BodyBatchUploadUploadBatchUploadPost.js +5 -0
- package/dist/api/resources/upload/client/requests/BodyUpdateFileUploadUpdateDocumentPatch.d.ts +20 -0
- package/dist/api/resources/upload/client/requests/BodyUpdateFileUploadUpdateDocumentPatch.js +5 -0
- package/dist/api/resources/upload/client/requests/BodyUploadFilesUploadUploadDocumentPost.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/BodyUploadFilesUploadUploadDocumentPost.js +5 -0
- package/dist/api/resources/upload/client/requests/EmbeddingsUpdateRequest.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/EmbeddingsUpdateRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/EmbeddingsUploadRequest.d.ts +16 -0
- package/dist/api/resources/upload/client/requests/EmbeddingsUploadRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadScrapeWebpageRequest.d.ts +16 -0
- package/dist/api/resources/upload/client/requests/UploadScrapeWebpageRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadUpdateMarkdownRequest.d.ts +20 -0
- package/dist/api/resources/upload/client/requests/UploadUpdateMarkdownRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadUpdateTextRequest.d.ts +20 -0
- package/dist/api/resources/upload/client/requests/UploadUpdateTextRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadUpdateWebpageRequest.d.ts +17 -0
- package/dist/api/resources/upload/client/requests/UploadUpdateWebpageRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadUploadAppSourcesRequest.d.ts +16 -0
- package/dist/api/resources/upload/client/requests/UploadUploadAppSourcesRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadUploadMarkdownRequest.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/UploadUploadMarkdownRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadUploadTextRequest.d.ts +18 -0
- package/dist/api/resources/upload/client/requests/UploadUploadTextRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/UploadVerifyProcessingRequest.d.ts +13 -0
- package/dist/api/resources/upload/client/requests/UploadVerifyProcessingRequest.js +5 -0
- package/dist/api/resources/upload/client/requests/index.d.ts +14 -0
- package/dist/api/resources/upload/client/requests/index.js +2 -0
- package/dist/api/resources/upload/index.d.ts +1 -0
- package/dist/api/resources/upload/index.js +17 -0
- package/dist/api/resources/user/client/Client.d.ts +55 -0
- package/dist/api/resources/user/client/Client.js +144 -0
- package/dist/api/resources/user/client/index.d.ts +2 -0
- package/dist/api/resources/user/client/index.js +17 -0
- package/dist/api/resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.d.ts +11 -0
- package/dist/api/resources/user/client/requests/BodyCreateTenantUserCreateTenantPost.js +5 -0
- package/dist/api/resources/user/client/requests/index.d.ts +1 -0
- package/dist/api/resources/user/client/requests/index.js +2 -0
- package/dist/api/resources/user/index.d.ts +1 -0
- package/dist/api/resources/user/index.js +17 -0
- package/dist/api/resources/userMemory/client/Client.d.ts +108 -0
- package/dist/api/resources/userMemory/client/Client.js +370 -0
- package/dist/api/resources/userMemory/client/index.d.ts +2 -0
- package/dist/api/resources/userMemory/client/index.js +17 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryAddUserMemoryRequest.d.ts +16 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryAddUserMemoryRequest.js +5 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.d.ts +16 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryDeleteUserMemoryRequest.js +5 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryGenerateUserMemoryRequest.d.ts +18 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryGenerateUserMemoryRequest.js +5 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.d.ts +14 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryListUserMemoriesRequest.js +5 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryRetrieveUserMemoryRequest.d.ts +17 -0
- package/dist/api/resources/userMemory/client/requests/UserMemoryRetrieveUserMemoryRequest.js +5 -0
- package/dist/api/resources/userMemory/client/requests/index.d.ts +5 -0
- package/dist/api/resources/userMemory/client/requests/index.js +2 -0
- package/dist/api/resources/userMemory/index.d.ts +1 -0
- package/dist/api/resources/userMemory/index.js +17 -0
- package/dist/api/types/ActualErrorResponse.d.ts +7 -0
- package/dist/api/types/ActualErrorResponse.js +5 -0
- package/dist/api/types/AppSourcesUploadData.d.ts +9 -0
- package/dist/api/types/AppSourcesUploadData.js +5 -0
- package/dist/api/types/AttachmentModel.d.ts +13 -0
- package/dist/api/types/AttachmentModel.js +5 -0
- package/dist/api/types/BatchUploadData.d.ts +9 -0
- package/dist/api/types/BatchUploadData.js +5 -0
- package/dist/api/types/Bm25OperatorType.d.ts +8 -0
- package/dist/api/types/Bm25OperatorType.js +10 -0
- package/dist/api/types/ContentModel.d.ts +11 -0
- package/dist/api/types/ContentModel.js +5 -0
- package/dist/api/types/DeleteMemoryRequest.d.ts +8 -0
- package/dist/api/types/DeleteMemoryRequest.js +5 -0
- package/dist/api/types/EmbeddingsCreateCollectionData.d.ts +9 -0
- package/dist/api/types/EmbeddingsCreateCollectionData.js +5 -0
- package/dist/api/types/EmbeddingsDeleteData.d.ts +9 -0
- package/dist/api/types/EmbeddingsDeleteData.js +5 -0
- package/dist/api/types/EmbeddingsGetData.d.ts +9 -0
- package/dist/api/types/EmbeddingsGetData.js +5 -0
- package/dist/api/types/EmbeddingsSearchData.d.ts +9 -0
- package/dist/api/types/EmbeddingsSearchData.js +5 -0
- package/dist/api/types/ErrorResponse.d.ts +9 -0
- package/dist/api/types/ErrorResponse.js +5 -0
- package/dist/api/types/ExtendedContext.d.ts +7 -0
- package/dist/api/types/ExtendedContext.js +5 -0
- package/dist/api/types/FetchContentData.d.ts +10 -0
- package/dist/api/types/FetchContentData.js +5 -0
- package/dist/api/types/FileUploadResult.d.ts +7 -0
- package/dist/api/types/FileUploadResult.js +5 -0
- package/dist/api/types/FullTextSearchData.d.ts +9 -0
- package/dist/api/types/FullTextSearchData.js +5 -0
- package/dist/api/types/HttpValidationError.d.ts +7 -0
- package/dist/api/types/HttpValidationError.js +5 -0
- package/dist/api/types/ListSourcesResponse.d.ts +9 -0
- package/dist/api/types/ListSourcesResponse.js +5 -0
- package/dist/api/types/MarkdownUploadRequest.d.ts +8 -0
- package/dist/api/types/MarkdownUploadRequest.js +5 -0
- package/dist/api/types/ProcessingStatus.d.ts +9 -0
- package/dist/api/types/ProcessingStatus.js +5 -0
- package/dist/api/types/RelatedChunk.d.ts +9 -0
- package/dist/api/types/RelatedChunk.js +5 -0
- package/dist/api/types/SearchChunk.d.ts +21 -0
- package/dist/api/types/SearchChunk.js +5 -0
- package/dist/api/types/SearchData.d.ts +9 -0
- package/dist/api/types/SearchData.js +5 -0
- package/dist/api/types/SingleUploadData.d.ts +8 -0
- package/dist/api/types/SingleUploadData.js +5 -0
- package/dist/api/types/Source.d.ts +19 -0
- package/dist/api/types/Source.js +5 -0
- package/dist/api/types/SourceContent.d.ts +11 -0
- package/dist/api/types/SourceContent.js +5 -0
- package/dist/api/types/SourceModel.d.ts +18 -0
- package/dist/api/types/SourceModel.js +5 -0
- package/dist/api/types/TenantCreateData.d.ts +9 -0
- package/dist/api/types/TenantCreateData.js +5 -0
- package/dist/api/types/TenantStats.d.ts +10 -0
- package/dist/api/types/TenantStats.js +5 -0
- package/dist/api/types/ValidationError.d.ts +14 -0
- package/dist/api/types/ValidationError.js +5 -0
- package/dist/api/types/index.d.ts +30 -0
- package/dist/api/types/index.js +46 -0
- package/dist/core/auth/AuthProvider.d.ts +4 -0
- package/dist/core/auth/AuthProvider.js +2 -0
- package/dist/core/auth/AuthRequest.d.ts +9 -0
- package/dist/core/auth/AuthRequest.js +2 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +4 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/base64.js +27 -0
- package/dist/core/exports.d.ts +1 -0
- package/dist/core/exports.js +17 -0
- package/dist/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/core/fetcher/BinaryResponse.js +18 -0
- package/dist/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/core/fetcher/Fetcher.js +105 -0
- package/dist/core/fetcher/Headers.d.ts +3 -0
- package/dist/core/fetcher/Headers.js +92 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +92 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/core/fetcher/ResponseWithBody.js +7 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +13 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +9 -0
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +34 -0
- package/dist/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/core/fetcher/getFetchFn.js +7 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +13 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +45 -0
- package/dist/core/fetcher/index.d.ts +9 -0
- package/dist/core/fetcher/index.js +15 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +33 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +30 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/file/exports.d.ts +1 -0
- package/dist/core/file/exports.js +2 -0
- package/dist/core/file/file.d.ts +5 -0
- package/dist/core/file/file.js +177 -0
- package/dist/core/file/index.d.ts +2 -0
- package/dist/core/file/index.js +18 -0
- package/dist/core/file/types.d.ts +70 -0
- package/dist/core/file/types.js +2 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +16 -0
- package/dist/core/form-data-utils/FormDataWrapper.js +178 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.js +13 -0
- package/dist/core/form-data-utils/index.d.ts +2 -0
- package/dist/core/form-data-utils/index.js +20 -0
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +30 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.js +36 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +102 -0
- package/dist/core/url/index.d.ts +2 -0
- package/dist/core/url/index.js +7 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +70 -0
- package/dist/core/url/qs.d.ts +6 -0
- package/dist/core/url/qs.js +65 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/CortexAIError.d.ts +15 -0
- package/dist/errors/CortexAIError.js +30 -0
- package/dist/errors/CortexAITimeoutError.d.ts +6 -0
- package/dist/errors/CortexAITimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/exports.d.ts +1 -0
- package/dist/exports.js +17 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +38 -0
- package/package.json +30 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
|
+
import * as CortexAI from "../../../index.js";
|
|
7
|
+
export declare namespace Upload {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CortexAIEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class Upload {
|
|
30
|
+
protected readonly _options: Upload.Options;
|
|
31
|
+
constructor(_options?: Upload.Options);
|
|
32
|
+
/**
|
|
33
|
+
* @param {CortexAI.BodyBatchUploadUploadBatchUploadPost} request
|
|
34
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
37
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
38
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
39
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
40
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
41
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
42
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* import { createReadStream } from "fs";
|
|
46
|
+
* await client.upload.batchUpload({
|
|
47
|
+
* files: [fs.createReadStream("/path/to/your/file")],
|
|
48
|
+
* tenant_id: "tenant_id"
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
batchUpload(request: CortexAI.BodyBatchUploadUploadBatchUploadPost, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.BatchUploadData>;
|
|
52
|
+
private __batchUpload;
|
|
53
|
+
/**
|
|
54
|
+
* @param {CortexAI.BodyBatchUpdateUploadBatchUpdatePatch} request
|
|
55
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
58
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
59
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
60
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
61
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
62
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
63
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* import { createReadStream } from "fs";
|
|
67
|
+
* await client.upload.batchUpdate({
|
|
68
|
+
* files: [fs.createReadStream("/path/to/your/file")],
|
|
69
|
+
* tenant_id: "tenant_id"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
batchUpdate(request: CortexAI.BodyBatchUpdateUploadBatchUpdatePatch, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.BatchUploadData>;
|
|
73
|
+
private __batchUpdate;
|
|
74
|
+
/**
|
|
75
|
+
* @param {CortexAI.BodyUploadFilesUploadUploadDocumentPost} request
|
|
76
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
79
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
80
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
81
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
82
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
83
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
84
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* import { createReadStream } from "fs";
|
|
88
|
+
* await client.upload.uploadDocument({
|
|
89
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
90
|
+
* tenant_id: "tenant_id"
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
uploadDocument(request: CortexAI.BodyUploadFilesUploadUploadDocumentPost, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
94
|
+
private __uploadDocument;
|
|
95
|
+
/**
|
|
96
|
+
* @param {CortexAI.BodyUpdateFileUploadUpdateDocumentPatch} request
|
|
97
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
100
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
101
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
102
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
103
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
104
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
105
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* import { createReadStream } from "fs";
|
|
109
|
+
* await client.upload.updateDocument({
|
|
110
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
111
|
+
* source_id: "source_id",
|
|
112
|
+
* tenant_id: "tenant_id"
|
|
113
|
+
* })
|
|
114
|
+
*/
|
|
115
|
+
updateDocument(request: CortexAI.BodyUpdateFileUploadUpdateDocumentPatch, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
116
|
+
private __updateDocument;
|
|
117
|
+
/**
|
|
118
|
+
* @param {CortexAI.UploadUploadAppSourcesRequest} request
|
|
119
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
122
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
123
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
124
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
125
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
126
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
127
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.upload.uploadAppSources({
|
|
131
|
+
* tenant_id: "tenant_id",
|
|
132
|
+
* body: [{}]
|
|
133
|
+
* })
|
|
134
|
+
*/
|
|
135
|
+
uploadAppSources(request: CortexAI.UploadUploadAppSourcesRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.AppSourcesUploadData>;
|
|
136
|
+
private __uploadAppSources;
|
|
137
|
+
/**
|
|
138
|
+
* Upload markdown content. If request.document_metadata contains a 'file_id' key (non-empty), it will be used as the file ID;
|
|
139
|
+
* otherwise, a new file_id will be generated for that file. This allows file-specific IDs to be set directly in the metadata.
|
|
140
|
+
*
|
|
141
|
+
* @param {CortexAI.UploadUploadMarkdownRequest} request
|
|
142
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
145
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
146
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
147
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
148
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
149
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
150
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.upload.uploadMarkdown({
|
|
154
|
+
* tenant_id: "tenant_id",
|
|
155
|
+
* body: {
|
|
156
|
+
* content: "content"
|
|
157
|
+
* }
|
|
158
|
+
* })
|
|
159
|
+
*/
|
|
160
|
+
uploadMarkdown(request: CortexAI.UploadUploadMarkdownRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
161
|
+
private __uploadMarkdown;
|
|
162
|
+
/**
|
|
163
|
+
* Upload markdown content. If request.document_metadata contains a 'file_id' key (non-empty), it will be used as the file ID;
|
|
164
|
+
* otherwise, a new file_id will be generated for that file. This allows file-specific IDs to be set directly in the metadata.
|
|
165
|
+
*
|
|
166
|
+
* @param {CortexAI.UploadUploadTextRequest} request
|
|
167
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
|
+
*
|
|
169
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
170
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
171
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
172
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
173
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
174
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
175
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.upload.uploadText({
|
|
179
|
+
* tenant_id: "tenant_id",
|
|
180
|
+
* body: {
|
|
181
|
+
* content: "content"
|
|
182
|
+
* }
|
|
183
|
+
* })
|
|
184
|
+
*/
|
|
185
|
+
uploadText(request: CortexAI.UploadUploadTextRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
186
|
+
private __uploadText;
|
|
187
|
+
/**
|
|
188
|
+
* @param {CortexAI.UploadUpdateMarkdownRequest} request
|
|
189
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
192
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
193
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
194
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
195
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
196
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
197
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* await client.upload.updateMarkdown({
|
|
201
|
+
* source_id: "source_id",
|
|
202
|
+
* tenant_id: "tenant_id",
|
|
203
|
+
* body: {
|
|
204
|
+
* content: "content"
|
|
205
|
+
* }
|
|
206
|
+
* })
|
|
207
|
+
*/
|
|
208
|
+
updateMarkdown(request: CortexAI.UploadUpdateMarkdownRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
209
|
+
private __updateMarkdown;
|
|
210
|
+
/**
|
|
211
|
+
* @param {CortexAI.UploadUpdateTextRequest} request
|
|
212
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
|
+
*
|
|
214
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
215
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
216
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
217
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
218
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
219
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
220
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* await client.upload.updateText({
|
|
224
|
+
* source_id: "source_id",
|
|
225
|
+
* tenant_id: "tenant_id",
|
|
226
|
+
* body: {
|
|
227
|
+
* content: "content"
|
|
228
|
+
* }
|
|
229
|
+
* })
|
|
230
|
+
*/
|
|
231
|
+
updateText(request: CortexAI.UploadUpdateTextRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
232
|
+
private __updateText;
|
|
233
|
+
/**
|
|
234
|
+
* @param {CortexAI.EmbeddingsUploadRequest} request
|
|
235
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
236
|
+
*
|
|
237
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
238
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
239
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
240
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
241
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
242
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
243
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* await client.upload.uploadEmbeddings({
|
|
247
|
+
* tenant_id: "tenant_id",
|
|
248
|
+
* embeddings: [[1.1]]
|
|
249
|
+
* })
|
|
250
|
+
*/
|
|
251
|
+
uploadEmbeddings(request: CortexAI.EmbeddingsUploadRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
252
|
+
private __uploadEmbeddings;
|
|
253
|
+
/**
|
|
254
|
+
* @param {CortexAI.EmbeddingsUpdateRequest} request
|
|
255
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
256
|
+
*
|
|
257
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
258
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
259
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
260
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
261
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
262
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
263
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* await client.upload.updateEmbeddings({
|
|
267
|
+
* tenant_id: "tenant_id",
|
|
268
|
+
* embeddings: {
|
|
269
|
+
* "key": [1.1]
|
|
270
|
+
* }
|
|
271
|
+
* })
|
|
272
|
+
*/
|
|
273
|
+
updateEmbeddings(request: CortexAI.EmbeddingsUpdateRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
274
|
+
private __updateEmbeddings;
|
|
275
|
+
/**
|
|
276
|
+
* @param {CortexAI.UploadScrapeWebpageRequest} request
|
|
277
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
278
|
+
*
|
|
279
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
280
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
281
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
282
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
283
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
284
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
285
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* await client.upload.scrapeWebpage({
|
|
289
|
+
* web_url: "web_url",
|
|
290
|
+
* tenant_id: "tenant_id"
|
|
291
|
+
* })
|
|
292
|
+
*/
|
|
293
|
+
scrapeWebpage(request: CortexAI.UploadScrapeWebpageRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
294
|
+
private __scrapeWebpage;
|
|
295
|
+
/**
|
|
296
|
+
* @param {CortexAI.UploadUpdateWebpageRequest} request
|
|
297
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
298
|
+
*
|
|
299
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
300
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
301
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
302
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
303
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
304
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
305
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* await client.upload.updateWebpage({
|
|
309
|
+
* web_url: "web_url",
|
|
310
|
+
* source_id: "source_id",
|
|
311
|
+
* tenant_id: "tenant_id"
|
|
312
|
+
* })
|
|
313
|
+
*/
|
|
314
|
+
updateWebpage(request: CortexAI.UploadUpdateWebpageRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.SingleUploadData>;
|
|
315
|
+
private __updateWebpage;
|
|
316
|
+
/**
|
|
317
|
+
* @param {CortexAI.DeleteMemoryRequest} request
|
|
318
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
319
|
+
*
|
|
320
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
* await client.upload.deleteSource({
|
|
324
|
+
* tenant_id: "tenant_id",
|
|
325
|
+
* source_ids: ["source_ids"]
|
|
326
|
+
* })
|
|
327
|
+
*/
|
|
328
|
+
deleteSource(request: CortexAI.DeleteMemoryRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
329
|
+
private __deleteSource;
|
|
330
|
+
/**
|
|
331
|
+
* @param {CortexAI.DeleteMemoryRequest} request
|
|
332
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
|
+
*
|
|
334
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* await client.upload.deleteMemory({
|
|
338
|
+
* tenant_id: "tenant_id",
|
|
339
|
+
* source_ids: ["source_ids"]
|
|
340
|
+
* })
|
|
341
|
+
*/
|
|
342
|
+
deleteMemory(request: CortexAI.DeleteMemoryRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
343
|
+
private __deleteMemory;
|
|
344
|
+
/**
|
|
345
|
+
* Verify the processing status of an uploaded file.
|
|
346
|
+
*
|
|
347
|
+
* Returns:
|
|
348
|
+
* ProcessingStatusResponse: Processing status information
|
|
349
|
+
*
|
|
350
|
+
* @param {CortexAI.UploadVerifyProcessingRequest} request
|
|
351
|
+
* @param {Upload.RequestOptions} requestOptions - Request-specific configuration.
|
|
352
|
+
*
|
|
353
|
+
* @throws {@link CortexAI.BadRequestError}
|
|
354
|
+
* @throws {@link CortexAI.UnauthorizedError}
|
|
355
|
+
* @throws {@link CortexAI.ForbiddenError}
|
|
356
|
+
* @throws {@link CortexAI.NotFoundError}
|
|
357
|
+
* @throws {@link CortexAI.UnprocessableEntityError}
|
|
358
|
+
* @throws {@link CortexAI.InternalServerError}
|
|
359
|
+
* @throws {@link CortexAI.ServiceUnavailableError}
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* await client.upload.verifyProcessing({
|
|
363
|
+
* file_id: "file_id"
|
|
364
|
+
* })
|
|
365
|
+
*/
|
|
366
|
+
verifyProcessing(request: CortexAI.UploadVerifyProcessingRequest, requestOptions?: Upload.RequestOptions): core.HttpResponsePromise<CortexAI.ProcessingStatus>;
|
|
367
|
+
private __verifyProcessing;
|
|
368
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
369
|
+
}
|