@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.
@@ -1,4 +1,5 @@
1
1
  import type * as esbuild from 'esbuild';
2
+ import { SchemaTransformOptions } from '../../common/types';
2
3
  import { InterfacePackage } from '../../package';
3
4
  import * as utils from '../../utils';
4
5
  import { z } from '../../zui';
@@ -40,12 +41,11 @@ export type IntegrationDefinitionProps<TName extends string = string, TVersion e
40
41
  [K in keyof TEntities]: EntityDefinition<TEntities[K]>;
41
42
  };
42
43
  interfaces?: Record<string, InterfaceExtension>;
43
- __advanced?: {
44
+ __advanced?: SchemaTransformOptions & {
44
45
  esbuild?: Partial<esbuild.BuildOptions>;
45
46
  extraOperations?: Record<string, {
46
47
  enabled: boolean;
47
48
  }>;
48
- useLegacyZuiTransformer?: boolean;
49
49
  };
50
50
  };
51
51
  type EntitiesOfPackage<TPackage extends InterfacePackage> = {
@@ -1,3 +1,4 @@
1
+ import { SchemaTransformOptions } from '../common/types';
1
2
  import { ActionDefinition, ChannelDefinition, EntityDefinition, EventDefinition } from '../integration/definition';
2
3
  import { z } from '../zui';
3
4
  type BaseEvents = Record<string, z.ZuiObjectSchema>;
@@ -52,9 +53,7 @@ export type InterfaceDefinitionProps<TName extends string = string, TVersion ext
52
53
  channels?: {
53
54
  [K in keyof TChannels]: GenericChannelDefinition<TEntities, TChannels[K]>;
54
55
  };
55
- __advanced?: {
56
- useLegacyZuiTransformer?: boolean;
57
- };
56
+ __advanced?: SchemaTransformOptions;
58
57
  };
59
58
  export declare class InterfaceDefinition<TName extends string = string, TVersion extends string = string, TEntities extends BaseEntities = BaseEntities, TActions extends BaseActions = BaseActions, TEvents extends BaseEvents = BaseEvents, TChannels extends BaseChannels = BaseChannels> {
60
59
  readonly props: InterfaceDefinitionProps<TName, TVersion, TEntities, TActions, TEvents, TChannels>;
@@ -1,4 +1,5 @@
1
1
  import { StateDefinition as BotStateDefinition, EventDefinition as BotEventDefinition, ConfigurationDefinition as BotConfigurationDefinition, UserDefinition, ConversationDefinition, MessageDefinition, ActionDefinition as BotActionDefinition, TableDefinition as BotTableDefinition, WorkflowDefinition } from '../bot/definition';
2
+ import { SchemaTransformOptions } from '../common/types';
2
3
  import { IntegrationPackage, InterfacePackage } from '../package';
3
4
  import * as typeUtils from '../utils/type-utils';
4
5
  import { z } from '../zui';
@@ -93,9 +94,7 @@ export type PluginDefinitionProps<TName extends string = string, TVersion extend
93
94
  workflows?: {
94
95
  [K in keyof TWorkflows]: WorkflowDefinition<TWorkflows[K]>;
95
96
  };
96
- __advanced?: {
97
- useLegacyZuiTransformer?: boolean;
98
- };
97
+ __advanced?: SchemaTransformOptions;
99
98
  };
100
99
  export declare class PluginDefinition<TName extends string = string, TVersion extends string = string, TConfig extends BaseConfig = BaseConfig, TStates extends BaseStates = BaseStates, TEvents extends BaseEvents = BaseEvents, TActions extends BaseActions = BaseActions, TInterfaces extends BaseInterfaces = BaseInterfaces, TIntegrations extends BaseIntegrations = BaseIntegrations, TTables extends BaseTables = BaseTables, TWorkflows extends BaseWorkflows = BaseWorkflows> {
101
100
  readonly props: PluginDefinitionProps<TName, TVersion, TConfig, TStates, TEvents, TActions, TInterfaces, TIntegrations, TTables, TWorkflows>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/sdk",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "description": "Botpress SDK",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "tsup": "^8.0.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@bpinternal/zui": "^2.0.0",
34
+ "@bpinternal/zui": "^2.1.0",
35
35
  "esbuild": "^0.16.12"
36
36
  },
37
37
  "peerDependenciesMeta": {