@botpress/client
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -0,0 +0,0 @@ export type ClientProps = { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { AxiosInstance } from 'axios'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -66,7 +66,14 @@ declare const codes: { | ||
/** | ||
* The request payload isn\'t invalid. | ||
* The request payload is invalid. | ||
*/ | ||
export declare class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload isn\'t invalid.'> { | ||
export declare class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload is invalid.'> { | ||
constructor(message: string, error?: Error); | ||
} | ||
type UnsupportedMediaTypeType = 'UnsupportedMediaType'; | ||
/** | ||
* The request is invalid because the content-type is not supported. | ||
*/ | ||
export declare class UnsupportedMediaTypeError extends BaseApiError<415, UnsupportedMediaTypeType, 'The request is invalid because the content-type is not supported.'> { | ||
constructor(message: string, error?: Error); | ||
} | ||
type MethodNotFoundType = 'MethodNotFound'; | ||
@@ -135,5 +142,5 @@ /** | ||
} | ||
export type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime'; | ||
export type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError; | ||
export type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime'; | ||
export type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError; | ||
export declare const errorFrom: (err: unknown) => ApiError; | ||
export {}; |
@@ -0,0 +0,0 @@ /** |
export * as axios from 'axios'; | ||
import { ClientProps } from './config'; | ||
import { ClientProps, ClientConfig } from './config'; | ||
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration } from './gen'; | ||
@@ -7,3 +7,4 @@ export * from './gen/errors'; | ||
export declare class Client extends AutoGeneratedClient { | ||
readonly config: ClientConfig; | ||
constructor(clientProps?: ClientProps); | ||
} |
@@ -0,0 +0,0 @@ import { AxiosError, AxiosInstance, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios'; |
{ | ||
"name": "@botpress/client", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Botpress Client", | ||
@@ -9,8 +9,2 @@ "main": "./dist/index.cjs", | ||
"license": "MIT", | ||
"scripts": { | ||
"build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019", | ||
"build:browser": "esbuild --bundle --external:axios --external:browser-or-node --platform=browser --format=esm --minify --outfile=dist/index.mjs src/index.ts", | ||
"build:node": "esbuild --bundle --external:axios --external:browser-or-node --platform=node --minify --sourcemap --outfile=dist/index.cjs src/index.ts", | ||
"build": "pnpm build:type && pnpm build:node && pnpm build:browser" | ||
}, | ||
"dependencies": { | ||
@@ -23,3 +17,10 @@ "axios": "1.2.5", | ||
"esbuild": "^0.16.12" | ||
}, | ||
"scripts": { | ||
"build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019", | ||
"build:browser": "esbuild --bundle --external:axios --external:browser-or-node --platform=browser --format=esm --minify --outfile=dist/index.mjs src/index.ts", | ||
"build:node": "esbuild --bundle --external:axios --external:browser-or-node --platform=node --minify --sourcemap --outfile=dist/index.cjs src/index.ts", | ||
"build:bundle": "esbuild --bundle --platform=node --minify --sourcemap --outfile=dist/bundle.cjs src/index.ts", | ||
"build": "pnpm build:type && pnpm build:node && pnpm build:browser && pnpm build:bundle" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 14 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
1665055
17
7240
4
37
7