@botpress/client
Advanced tools
Comparing version 0.11.6 to 0.11.7
import { ClientProps, ClientConfig } from './config'; | ||
import { ApiClient as AutoGeneratedClient } from './gen/client'; | ||
export { isApiError } from './gen/errors'; | ||
export * as axios from 'axios'; | ||
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration, Issue, IssueEvent, } from './gen'; | ||
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration, Issue, IssueEvent, Account, Workspace, Usage, } from './gen'; | ||
export * from './gen/errors'; | ||
@@ -10,1 +11,11 @@ export declare class Client extends AutoGeneratedClient { | ||
} | ||
type Simplify<T> = { | ||
[KeyType in keyof T]: Simplify<T[KeyType]>; | ||
} & {}; | ||
type PickMatching<T, V> = { | ||
[K in keyof T as T[K] extends V ? K : never]: T[K]; | ||
}; | ||
type ExtractMethods<T> = PickMatching<T, (...rest: any[]) => any>; | ||
type FunctionNames = keyof ExtractMethods<Client>; | ||
export type ClientParams<T extends FunctionNames> = Simplify<Parameters<Client[T]>[0]>; | ||
export type ClientReturn<T extends FunctionNames> = Simplify<Awaited<ReturnType<Client[T]>>>; |
{ | ||
"name": "@botpress/client", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"description": "Botpress Client", | ||
@@ -9,2 +9,7 @@ "main": "./dist/index.cjs", | ||
"license": "MIT", | ||
"browser": { | ||
"crypto": false, | ||
"http": false, | ||
"https": false | ||
}, | ||
"scripts": { | ||
@@ -17,3 +22,5 @@ "build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019", | ||
"type:check": "tsc --noEmit --target es2019 --module commonjs --moduleResolution node --lib es2019", | ||
"generate": "ts-node ./openapi.ts" | ||
"generate": "ts-node ./openapi.ts", | ||
"test": "pnpm run e2e:test", | ||
"e2e:test": "ts-node -T ./e2e/node.ts && ts-node -T ./e2e/browser" | ||
}, | ||
@@ -27,4 +34,6 @@ "dependencies": { | ||
"@botpress/api": "0.18.1", | ||
"esbuild": "^0.16.12" | ||
"esbuild": "^0.16.12", | ||
"lodash": "^4.17.21", | ||
"puppeteer": "^22.0.0" | ||
} | ||
} |
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 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 9 instances in 1 package
3245171
21
15270
4
10