@botpress/sdk 4.18.1 → 4.20.0
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 +5 -5
- package/dist/bot/client/index.d.ts +1 -0
- package/dist/bot/client/types.d.ts +9 -0
- package/dist/bot/definition.d.ts +3 -0
- package/dist/index.cjs +15 -15
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +47 -47
- package/dist/index.mjs.map +4 -4
- package/dist/integration/definition/index.d.ts +3 -0
- package/dist/interface/definition.d.ts +3 -0
- package/dist/plugin/definition.d.ts +3 -0
- package/dist/version-utils.d.ts +18 -0
- package/dist/version.d.ts +1 -0
- package/package.json +4 -2
|
@@ -114,6 +114,9 @@ export declare class IntegrationDefinition<TName extends string = string, TVersi
|
|
|
114
114
|
readonly __advanced: this['props']['__advanced'];
|
|
115
115
|
readonly attributes: this['props']['attributes'];
|
|
116
116
|
constructor(props: IntegrationDefinitionProps<TName, TVersion, TConfig, TConfigs, TEvents, TActions, TChannels, TStates, TEntities>);
|
|
117
|
+
get metadata(): {
|
|
118
|
+
readonly sdkVersion: string;
|
|
119
|
+
};
|
|
117
120
|
extend<P extends InterfacePackage>(interfacePkg: P, builder: ExtensionBuilder<TEntities, TActions, TEvents, TChannels, EntitiesOfPackage<P>, ActionsOfPackage<P>, EventsOfPackage<P>, ChannelsOfPackage<P>>): this;
|
|
118
121
|
private _callBuilder;
|
|
119
122
|
private _mergeActions;
|
|
@@ -79,6 +79,9 @@ export declare class InterfaceDefinition<TName extends string = string, TVersion
|
|
|
79
79
|
};
|
|
80
80
|
readonly __advanced: this['props']['__advanced'];
|
|
81
81
|
constructor(props: InterfaceDefinitionProps<TName, TVersion, TEntities, TActions, TEvents, TChannels>);
|
|
82
|
+
get metadata(): {
|
|
83
|
+
readonly sdkVersion: string;
|
|
84
|
+
};
|
|
82
85
|
private _getEntityReference;
|
|
83
86
|
}
|
|
84
87
|
export {};
|
|
@@ -128,6 +128,9 @@ export declare class PluginDefinition<TName extends string = string, TVersion ex
|
|
|
128
128
|
readonly workflows: this['props']['workflows'];
|
|
129
129
|
readonly __advanced: this['props']['__advanced'];
|
|
130
130
|
constructor(props: PluginDefinitionProps<TName, TVersion, TConfig, TStates, TEvents, TActions, TInterfaces, TIntegrations, TTables, TWorkflows>);
|
|
131
|
+
get metadata(): {
|
|
132
|
+
readonly sdkVersion: string;
|
|
133
|
+
};
|
|
131
134
|
/**
|
|
132
135
|
* Returns a copy of the plugin definition where all entity references are
|
|
133
136
|
* resolved to the base entity schema defined by the interface. This does not
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Package } from './package';
|
|
2
|
+
import { PluginDefinition } from './plugin/definition';
|
|
3
|
+
type GenericPackage = Exclude<Package, PluginDefinition>;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the major version range for a given package.
|
|
6
|
+
* Version utility helpers are only intended to be used with plugins.
|
|
7
|
+
**/
|
|
8
|
+
export declare function allWithinMajorOf<T extends GenericPackage>(pkg: T): T & {
|
|
9
|
+
version: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Returns the minor version range for a given package.
|
|
13
|
+
* Version utility helpers are only intended to be used with plugins.
|
|
14
|
+
**/
|
|
15
|
+
export declare function allWithinMinorOf<T extends GenericPackage>(pkg: T): T & {
|
|
16
|
+
version: string;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SDK_VERSION: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.0",
|
|
4
4
|
"description": "Botpress SDK",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@botpress/client": "1.27.1",
|
|
23
|
-
"browser-or-node": "^2.1.1"
|
|
23
|
+
"browser-or-node": "^2.1.1",
|
|
24
|
+
"semver": "^7.3.8"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
27
|
+
"@types/semver": "^7.3.11",
|
|
26
28
|
"esbuild": "^0.25.10",
|
|
27
29
|
"esbuild-plugin-polyfill-node": "^0.3.0",
|
|
28
30
|
"tsup": "^8.0.2"
|