@botpress/sdk 4.17.3 → 4.18.1
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/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/dist/plugin/state-proxy/types.d.ts +6 -2
- package/package.json +2 -2
|
@@ -12,8 +12,12 @@ type _FilterStates<TPlugin extends BasePlugin, TStateType extends bot.StateType>
|
|
|
12
12
|
type _GetStatePayload<TPlugin extends BasePlugin, TStateName extends string | number | symbol> = TPlugin['states'][utils.Cast<TStateName, keyof TPlugin['states']>]['payload'];
|
|
13
13
|
export type StateRepo<TPayload> = {
|
|
14
14
|
get: (id: string) => Promise<TPayload>;
|
|
15
|
-
set: (id: string, payload: TPayload
|
|
16
|
-
|
|
15
|
+
set: (id: string, payload: TPayload, options?: {
|
|
16
|
+
expiryMs: number;
|
|
17
|
+
}) => Promise<void>;
|
|
18
|
+
getOrSet: (id: string, payload: TPayload, options?: {
|
|
19
|
+
expiryMs: number;
|
|
20
|
+
}) => Promise<TPayload>;
|
|
17
21
|
delete: (id: string) => Promise<void>;
|
|
18
22
|
patch: (id: string, payload: Partial<TPayload>) => Promise<void>;
|
|
19
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.1",
|
|
4
4
|
"description": "Botpress SDK",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@botpress/client": "1.27.
|
|
22
|
+
"@botpress/client": "1.27.1",
|
|
23
23
|
"browser-or-node": "^2.1.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|