@botpress/sdk 0.6.6 → 0.6.8

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.
@@ -43,7 +43,7 @@ export type GetState<TBot extends BaseBot> = <TState extends keyof TBot['states'
43
43
  }>;
44
44
  export type SetState<TBot extends BaseBot> = <TState extends keyof TBot['states']>(x: Merge<Arg<Client['setState']>, {
45
45
  name: Cast<TState, string>;
46
- payload: TBot['states'][TState];
46
+ payload: TBot['states'][TState] | null;
47
47
  }>) => Promise<{
48
48
  state: Merge<Awaited<Res<Client['setState']>>['state'], {
49
49
  payload: TBot['states'][TState];
@@ -106,7 +106,7 @@ export type GetState<TIntegration extends BaseIntegration> = <TState extends key
106
106
  }>) => Promise<StateResponse<TIntegration, TState>>;
107
107
  export type SetState<TIntegration extends BaseIntegration> = <TState extends keyof TIntegration['states']>(x: Merge<Arg<Client['setState']>, {
108
108
  name: Cast<TState, string>;
109
- payload: TIntegration['states'][TState];
109
+ payload: TIntegration['states'][TState] | null;
110
110
  }>) => Promise<StateResponse<TIntegration, TState>>;
111
111
  export type GetOrSetState<TIntegration extends BaseIntegration> = <TState extends keyof TIntegration['states']>(x: Merge<Arg<Client['getOrSetState']>, {
112
112
  name: Cast<TState, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/sdk",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "Botpress SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "author": "",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@botpress/client": "0.12.0",
17
+ "@botpress/client": "0.12.1",
18
18
  "zod": "^3.20.6"
19
19
  },
20
20
  "devDependencies": {