@botpress/sdk 5.4.4 → 5.5.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 +5 -5
- package/dist/bot/definition.d.ts +9 -9
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +57 -57
- package/dist/index.mjs.map +4 -4
- package/dist/integration/client/types.d.ts +9 -1
- package/dist/integration/definition/generic.d.ts +7 -7
- package/dist/integration/definition/index.d.ts +1 -0
- package/dist/integration/definition/types.d.ts +2 -2
- package/dist/integration/server/context.d.ts +2 -1
- package/dist/interface/definition.d.ts +10 -10
- package/dist/interface/resolve.d.ts +2 -2
- package/dist/message.d.ts +121 -120
- package/dist/plugin/definition.d.ts +10 -10
- package/dist/schema.d.ts +1 -1
- package/dist/zui.d.ts +9 -7
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/sdk@5.
|
|
2
|
+
> @botpress/sdk@5.5.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@5.
|
|
6
|
+
> @botpress/sdk@5.5.0 build:type /home/runner/work/botpress/botpress/packages/sdk
|
|
7
7
|
> tsc -p ./tsconfig.package.json --emitDeclarationOnly --declaration
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/sdk@5.
|
|
10
|
+
> @botpress/sdk@5.5.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@5.
|
|
15
|
+
> @botpress/sdk@5.5.0 build:browser /home/runner/work/botpress/botpress/packages/sdk
|
|
16
16
|
> ts-node -T ./build.ts --browser
|
|
17
17
|
|
|
18
|
-
(node:
|
|
18
|
+
(node:3403) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
|
|
19
19
|
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
20
20
|
Done
|
package/dist/bot/definition.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { IntegrationPackage, PluginPackage } from '../package';
|
|
|
3
3
|
import { PluginInterfaceExtension, PluginIntegrationExtension } from '../plugin';
|
|
4
4
|
import { SchemaDefinition } from '../schema';
|
|
5
5
|
import { ValueOf, Merge, StringKeys } from '../utils/type-utils';
|
|
6
|
-
import
|
|
7
|
-
type BaseConfig = ZuiObjectSchema;
|
|
8
|
-
type BaseStates = Record<string, ZuiObjectOrRefSchema>;
|
|
9
|
-
type BaseEvents = Record<string, ZuiObjectOrRefSchema>;
|
|
10
|
-
type BaseActions = Record<string, ZuiObjectOrRefSchema>;
|
|
11
|
-
type BaseTables = Record<string, ZuiObjectOrRefSchema>;
|
|
12
|
-
type BaseWorkflows = Record<string, ZuiObjectSchema>;
|
|
6
|
+
import { z } from '../zui';
|
|
7
|
+
type BaseConfig = z.ZuiObjectSchema;
|
|
8
|
+
type BaseStates = Record<string, z.ZuiObjectOrRefSchema>;
|
|
9
|
+
type BaseEvents = Record<string, z.ZuiObjectOrRefSchema>;
|
|
10
|
+
type BaseActions = Record<string, z.ZuiObjectOrRefSchema>;
|
|
11
|
+
type BaseTables = Record<string, z.ZuiObjectOrRefSchema>;
|
|
12
|
+
type BaseWorkflows = Record<string, z.ZuiObjectSchema>;
|
|
13
13
|
export type TagDefinition = {
|
|
14
14
|
title?: string;
|
|
15
15
|
description?: string;
|
|
@@ -45,14 +45,14 @@ export type ActionDefinition<TAction extends BaseActions[string] = BaseActions[s
|
|
|
45
45
|
title?: string;
|
|
46
46
|
description?: string;
|
|
47
47
|
input: SchemaDefinition<TAction>;
|
|
48
|
-
output: SchemaDefinition<ZuiObjectOrRefSchema>;
|
|
48
|
+
output: SchemaDefinition<z.ZuiObjectOrRefSchema>;
|
|
49
49
|
attributes?: Record<string, string>;
|
|
50
50
|
};
|
|
51
51
|
export type WorkflowDefinition<TWorkflow extends BaseWorkflows[string] = BaseWorkflows[string]> = {
|
|
52
52
|
title?: string;
|
|
53
53
|
description?: string;
|
|
54
54
|
input: SchemaDefinition<TWorkflow>;
|
|
55
|
-
output: SchemaDefinition<ZuiObjectSchema>;
|
|
55
|
+
output: SchemaDefinition<z.ZuiObjectSchema>;
|
|
56
56
|
tags?: Record<string, TagDefinition>;
|
|
57
57
|
};
|
|
58
58
|
export type TableDefinition<TTable extends BaseTables[string] = BaseTables[string]> = Merge<Omit<Table, 'id' | 'createdAt' | 'updatedAt' | 'name'>, {
|