@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.
@@ -1,20 +1,20 @@
1
1
 
2
- > @botpress/sdk@5.4.4 build /home/runner/work/botpress/botpress/packages/sdk
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.4.4 build:type /home/runner/work/botpress/botpress/packages/sdk
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.4.4 build:node /home/runner/work/botpress/botpress/packages/sdk
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.4.4 build:browser /home/runner/work/botpress/botpress/packages/sdk
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:3394) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
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
@@ -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 z, { ZuiObjectSchema, ZuiObjectOrRefSchema } from '../zui';
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'>, {