@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.
- package/.turbo/turbo-build.log +4 -4
- package/dist/bot/server/types.d.ts +0 -6
- package/dist/consts.d.ts +1 -0
- package/dist/fixtures.d.ts +26 -0
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +4 -4
- package/dist/plugin/action-proxy/proxy.d.ts +2 -2
- package/dist/plugin/common/types.d.ts +6 -0
- package/dist/plugin/implementation.d.ts +2 -7
- package/dist/plugin/server/types.d.ts +3 -8
- package/dist/plugin/state-proxy/index.d.ts +2 -0
- package/dist/plugin/state-proxy/proxy.d.ts +5 -0
- package/dist/plugin/state-proxy/types.d.ts +25 -0
- package/dist/plugin/state-proxy/types.test.d.ts +1 -0
- package/dist/utils/type-utils.d.ts +4 -1
- package/package.json +2 -2
- package/readme.md +1 -48
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/sdk@4.0.
|
|
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.
|
|
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.
|
|
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.
|
|
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> = {
|
package/dist/consts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLUGIN_PREFIX_SEPARATOR = "#";
|
package/dist/fixtures.d.ts
CHANGED
|
@@ -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: {};
|