@botpress/sdk 4.0.0 → 4.0.2

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.
@@ -1,18 +1,18 @@
1
1
 
2
- > @botpress/sdk@4.0.0 build /home/runner/work/botpress/botpress/packages/sdk
2
+ > @botpress/sdk@4.0.2 build /home/runner/work/botpress/botpress/packages/sdk
3
3
  > pnpm build:type && pnpm build:node && pnpm build:browser
4
4
 
5
5
 
6
- > @botpress/sdk@4.0.0 build:type /home/runner/work/botpress/botpress/packages/sdk
6
+ > @botpress/sdk@4.0.2 build:type /home/runner/work/botpress/botpress/packages/sdk
7
7
  > tsc --emitDeclarationOnly --declaration
8
8
 
9
9
 
10
- > @botpress/sdk@4.0.0 build:node /home/runner/work/botpress/botpress/packages/sdk
10
+ > @botpress/sdk@4.0.2 build:node /home/runner/work/botpress/botpress/packages/sdk
11
11
  > ts-node -T ./build.ts --node
12
12
 
13
13
  Done
14
14
 
15
- > @botpress/sdk@4.0.0 build:browser /home/runner/work/botpress/botpress/packages/sdk
15
+ > @botpress/sdk@4.0.2 build:browser /home/runner/work/botpress/botpress/packages/sdk
16
16
  > ts-node -T ./build.ts --browser
17
17
 
18
18
  Done
@@ -103,12 +103,6 @@ export type MessagePayloads<TBot extends common.BaseBot> = {
103
103
  user: client.User;
104
104
  conversation: client.Conversation;
105
105
  event: client.Event;
106
- states: {
107
- [TState in utils.StringKeys<TBot['states']>]: {
108
- type: 'user' | 'conversation' | 'bot';
109
- payload: TBot['states'][TState];
110
- };
111
- };
112
106
  };
113
107
  };
114
108
  export type MessageHandlers<TBot extends common.BaseBot> = {
@@ -0,0 +1 @@
1
+ export declare const PLUGIN_PREFIX_SEPARATOR = "#";
@@ -224,6 +224,32 @@ export type FooBarBazPlugin = DefaultPlugin<{
224
224
  };
225
225
  };
226
226
  };
227
+ states: {
228
+ alpha: {
229
+ type: 'conversation';
230
+ payload: {
231
+ alpha: string;
232
+ };
233
+ };
234
+ beta: {
235
+ type: 'user';
236
+ payload: {
237
+ beta: number;
238
+ };
239
+ };
240
+ gamma: {
241
+ type: 'bot';
242
+ payload: {
243
+ gamma: boolean;
244
+ };
245
+ };
246
+ delta: {
247
+ type: 'conversation';
248
+ payload: {
249
+ delta: null;
250
+ };
251
+ };
252
+ };
227
253
  }>;
228
254
  export type EmptyBot = DefaultBot<{
229
255
  integrations: {};