@botpress/sdk 4.3.3 → 4.4.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 +4 -4
- package/dist/bot/definition.d.ts +4 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs.map +2 -2
- package/dist/integration/definition/index.d.ts +1 -1
- package/dist/integration/definition/types.d.ts +1 -0
- package/dist/interface/definition.d.ts +1 -0
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/sdk@4.
|
|
2
|
+
> @botpress/sdk@4.4.0 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.
|
|
6
|
+
> @botpress/sdk@4.4.0 build:type /home/runner/work/botpress/botpress/packages/sdk
|
|
7
7
|
> tsc --emitDeclarationOnly --declaration
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/sdk@4.
|
|
10
|
+
> @botpress/sdk@4.4.0 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.
|
|
15
|
+
> @botpress/sdk@4.4.0 build:browser /home/runner/work/botpress/botpress/packages/sdk
|
|
16
16
|
> ts-node -T ./build.ts --browser
|
|
17
17
|
|
|
18
18
|
Done
|
package/dist/bot/definition.d.ts
CHANGED
|
@@ -28,7 +28,9 @@ export type RecurringEventDefinition<TEvents extends BaseEvents = BaseEvents> =
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
}[keyof TEvents];
|
|
31
|
-
export type EventDefinition<TEvent extends BaseEvents[string] = BaseEvents[string]> = SchemaDefinition<TEvent
|
|
31
|
+
export type EventDefinition<TEvent extends BaseEvents[string] = BaseEvents[string]> = SchemaDefinition<TEvent> & {
|
|
32
|
+
attributes?: Record<string, string>;
|
|
33
|
+
};
|
|
32
34
|
export type ConfigurationDefinition<TConfig extends BaseConfig = BaseConfig> = SchemaDefinition<TConfig>;
|
|
33
35
|
export type UserDefinition = {
|
|
34
36
|
tags?: Record<string, TagDefinition>;
|
|
@@ -44,6 +46,7 @@ export type ActionDefinition<TAction extends BaseActions[string] = BaseActions[s
|
|
|
44
46
|
description?: string;
|
|
45
47
|
input: SchemaDefinition<TAction>;
|
|
46
48
|
output: SchemaDefinition<ZuiObjectSchema>;
|
|
49
|
+
attributes?: Record<string, string>;
|
|
47
50
|
};
|
|
48
51
|
export type WorkflowDefinition<TWorkflow extends BaseWorkflows[string] = BaseWorkflows[string]> = {
|
|
49
52
|
title?: string;
|