@botpress/sdk 0.8.31 → 0.8.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/integration/definition/branded-schema.d.ts +19 -0
- package/dist/integration/definition/integration-definition.d.ts +4 -3
- package/dist/integration/index.d.ts +1 -0
- package/dist/interfaces/llm.d.ts +104 -86
- package/dist/interfaces/sync.d.ts +3 -9
- package/package.json +3 -3
- package/dist/integration/definition/entity-store.d.ts +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.33",
|
|
4
4
|
"description": "Botpress SDK",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@bpinternal/zui": "0.9.
|
|
18
|
-
"@botpress/client": "0.23.
|
|
17
|
+
"@bpinternal/zui": "0.9.3",
|
|
18
|
+
"@botpress/client": "0.23.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^18.11.17",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Cast } from '../../type-utils';
|
|
2
|
-
import { BaseEntities } from './generic';
|
|
3
|
-
declare const entityKey: unique symbol;
|
|
4
|
-
export type EntityStoreProps<TEntities extends BaseEntities = BaseEntities> = {
|
|
5
|
-
[K in keyof TEntities]: {
|
|
6
|
-
schema: TEntities[K];
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export type BrandedEntity<TEntity extends BaseEntities[string] = BaseEntities[string], TBrand extends string = string> = {
|
|
10
|
-
schema: TEntity;
|
|
11
|
-
[entityKey]: TBrand;
|
|
12
|
-
};
|
|
13
|
-
export type EntityStore<TEntities extends BaseEntities = BaseEntities> = {
|
|
14
|
-
[K in keyof TEntities]: BrandedEntity<TEntities[K], Cast<K, string>>;
|
|
15
|
-
};
|
|
16
|
-
export declare const createStore: <TEntities extends BaseEntities>(props: EntityStoreProps<TEntities> | undefined) => EntityStore<TEntities>;
|
|
17
|
-
export declare const isBranded: (entity: BrandedEntity) => boolean;
|
|
18
|
-
export declare const getName: (entity: BrandedEntity) => string;
|
|
19
|
-
export {};
|