@botpress/sdk 6.1.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 +8 -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 +22 -22
- 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 +3 -3
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';
|
|
@@ -41,6 +42,10 @@ export type ConversationDefinition = {
|
|
|
41
42
|
export type MessageDefinition = {
|
|
42
43
|
tags?: Record<string, TagDefinition>;
|
|
43
44
|
};
|
|
45
|
+
export type SecretDefinition = {
|
|
46
|
+
optional?: boolean;
|
|
47
|
+
description?: string;
|
|
48
|
+
};
|
|
44
49
|
export type ActionDefinition<TAction extends BaseActions[string] = BaseActions[string]> = {
|
|
45
50
|
title?: string;
|
|
46
51
|
description?: string;
|
|
@@ -142,6 +147,7 @@ export type BotDefinitionProps<TStates extends BaseStates = BaseStates, TEvents
|
|
|
142
147
|
tables?: {
|
|
143
148
|
[K in keyof TTables]: TableDefinition<TTables[K]>;
|
|
144
149
|
};
|
|
150
|
+
secrets?: Record<string, SecretDefinition>;
|
|
145
151
|
/**
|
|
146
152
|
* # EXPERIMENTAL
|
|
147
153
|
* This API is experimental and may change in the future.
|
|
@@ -150,9 +156,7 @@ export type BotDefinitionProps<TStates extends BaseStates = BaseStates, TEvents
|
|
|
150
156
|
[K in keyof TWorkflows]: WorkflowDefinition<TWorkflows[K]>;
|
|
151
157
|
};
|
|
152
158
|
attributes?: Record<string, string>;
|
|
153
|
-
__advanced?:
|
|
154
|
-
useLegacyZuiTransformer?: boolean;
|
|
155
|
-
};
|
|
159
|
+
__advanced?: SchemaTransformOptions;
|
|
156
160
|
};
|
|
157
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> {
|
|
158
162
|
readonly props: BotDefinitionProps<TStates, TEvents, TActions, TTables, TWorkflows>;
|
|
@@ -167,6 +171,7 @@ export declare class BotDefinition<TStates extends BaseStates = BaseStates, TEve
|
|
|
167
171
|
readonly recurringEvents: this['props']['recurringEvents'];
|
|
168
172
|
readonly actions: this['props']['actions'];
|
|
169
173
|
readonly tables: this['props']['tables'];
|
|
174
|
+
readonly secrets: this['props']['secrets'];
|
|
170
175
|
readonly workflows: this['props']['workflows'];
|
|
171
176
|
readonly attributes: this['props']['attributes'];
|
|
172
177
|
readonly __advanced: this['props']['__advanced'];
|
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
|
+
};
|