New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@botpress/client

Package Overview
Dependencies
Maintainers
7
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botpress/client - npm Package Compare versions

Comparing version 0.14.2 to 0.15.0

36

dist/index.d.ts

@@ -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> = {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc