@botpress/sdk 6.2.0 → 6.3.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 +2 -3
- package/dist/common/types.d.ts +5 -0
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +45 -45
- package/dist/index.mjs.map +3 -3
- package/dist/integration/definition/index.d.ts +2 -2
- package/dist/interface/definition.d.ts +2 -3
- package/dist/plugin/definition.d.ts +2 -3
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/sdk@6.
|
|
2
|
+
> @botpress/sdk@6.3.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@6.
|
|
6
|
+
> @botpress/sdk@6.3.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@6.
|
|
10
|
+
> @botpress/sdk@6.3.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@6.
|
|
15
|
+
> @botpress/sdk@6.3.0 build:browser /home/runner/work/botpress/botpress/packages/sdk
|
|
16
16
|
> ts-node -T ./build.ts --browser
|
|
17
17
|
|
|
18
|
-
(node:
|
|
18
|
+
(node:3373) [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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Table } from '@botpress/client';
|
|
2
|
+
import { SchemaTransformOptions } from '../common/types';
|
|
2
3
|
import { IntegrationPackage, PluginPackage } from '../package';
|
|
3
4
|
import { PluginInterfaceExtension, PluginIntegrationExtension } from '../plugin';
|
|
4
5
|
import { SchemaDefinition } from '../schema';
|
|
@@ -155,9 +156,7 @@ export type BotDefinitionProps<TStates extends BaseStates = BaseStates, TEvents
|
|
|
155
156
|
[K in keyof TWorkflows]: WorkflowDefinition<TWorkflows[K]>;
|
|
156
157
|
};
|
|
157
158
|
attributes?: Record<string, string>;
|
|
158
|
-
__advanced?:
|
|
159
|
-
useLegacyZuiTransformer?: boolean;
|
|
160
|
-
};
|
|
159
|
+
__advanced?: SchemaTransformOptions;
|
|
161
160
|
};
|
|
162
161
|
export declare class BotDefinition<TStates extends BaseStates = BaseStates, TEvents extends BaseEvents = BaseEvents, TActions extends BaseActions = BaseActions, TTables extends BaseTables = BaseTables, TWorkflows extends BaseWorkflows = BaseWorkflows> {
|
|
163
162
|
readonly props: BotDefinitionProps<TStates, TEvents, TActions, TTables, TWorkflows>;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import * as typeUtils from '../utils/type-utils';
|
|
2
|
+
import { z } from '../zui';
|
|
2
3
|
export type ToTags<TTags extends string | number | symbol> = typeUtils.Cast<Partial<Record<TTags, string>>, Record<string, string>>;
|
|
4
|
+
export type SchemaTransformOptions = {
|
|
5
|
+
useLegacyZuiTransformer?: boolean;
|
|
6
|
+
toJSONSchemaOptions?: Partial<z.transforms.JSONSchemaGenerationOptions>;
|
|
7
|
+
};
|