@botpress/client
Advanced tools
Comparing version 0.14.2 to 0.15.0
@@ -1,6 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
import { ClientProps, ClientConfig } from './config'; | ||
import { CreateFileResponse } from './gen'; | ||
import { ApiClient as AutoGeneratedClient } from './gen/client'; | ||
@@ -11,37 +7,5 @@ export { isApiError } from './gen/errors'; | ||
export * from './gen/errors'; | ||
type CreateFileProps = { | ||
/** | ||
* The name of the file. | ||
*/ | ||
name: string; | ||
/** | ||
* The data to be uploaded. | ||
*/ | ||
data: Blob | Buffer | Readable; | ||
/** | ||
* Set to a value of "true" to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota. | ||
* @default false | ||
*/ | ||
index?: boolean; | ||
/** | ||
* Tags to associate with the file. | ||
*/ | ||
tags?: { | ||
[key: string]: string; | ||
}; | ||
/** | ||
* File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is "application/octet-stream". | ||
*/ | ||
contentType?: string; | ||
contentLength?: number; | ||
/** | ||
* File access policies. Add "public_content" to allow public access to the file content. Add "integrations" to allo read, search and list operations for any integration installed in the bot. | ||
*/ | ||
accessPolicies?: ('integrations' | 'public_content')[]; | ||
}; | ||
export declare class Client extends AutoGeneratedClient { | ||
readonly config: Readonly<ClientConfig>; | ||
private readonly axiosClient; | ||
constructor(clientProps?: ClientProps); | ||
createFile: ({ name, data, index, tags, contentType, contentLength, accessPolicies, }: CreateFileProps) => Promise<CreateFileResponse>; | ||
} | ||
@@ -48,0 +12,0 @@ type Simplify<T> = { |
{ | ||
"name": "@botpress/client", | ||
"version": "0.14.2", | ||
"version": "0.15.0", | ||
"description": "Botpress Client", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
4424402
16827