@botpress/client
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 0.3.1 | ||
* The version of the OpenAPI document: 0.3.3 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
* | ||
* The version of the OpenAPI document: 0.3.1 | ||
* The version of the OpenAPI document: 0.3.3 | ||
* | ||
@@ -9,0 +9,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 0.3.1 | ||
* The version of the OpenAPI document: 0.3.3 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -147,5 +147,19 @@ declare const codes: { | ||
} | ||
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; | ||
type AlreadyExistsType = 'AlreadyExists'; | ||
/** | ||
* The record attempted to be created already exists. | ||
*/ | ||
export declare class AlreadyExistsError extends BaseApiError<409, AlreadyExistsType, 'The record attempted to be created already exists.'> { | ||
constructor(message: string, error?: Error); | ||
} | ||
type RateLimitedType = 'RateLimited'; | ||
/** | ||
* The request has been rate limited. | ||
*/ | ||
export declare class RateLimitedError extends BaseApiError<429, RateLimitedType, 'The request has been rate limited.'> { | ||
constructor(message: string, error?: Error); | ||
} | ||
export type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime' | 'AlreadyExists' | 'RateLimited'; | ||
export type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError | AlreadyExistsError | RateLimitedError; | ||
export declare const errorFrom: (err: unknown) => ApiError; | ||
export {}; |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 0.3.1 | ||
* The version of the OpenAPI document: 0.3.3 | ||
* | ||
@@ -8,0 +8,0 @@ * |
{ | ||
"name": "@botpress/client", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Botpress Client", | ||
@@ -24,5 +24,5 @@ "main": "./dist/index.cjs", | ||
"devDependencies": { | ||
"esbuild": "^0.16.12", | ||
"@botpress/api": "0.3.1" | ||
"@botpress/api": "0.3.3", | ||
"esbuild": "^0.16.12" | ||
} | ||
} |
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 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
2082202
8215