@botpress/sdk 4.15.10 → 4.15.11

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@4.15.10 build /home/runner/work/botpress/botpress/packages/sdk
2
+ > @botpress/sdk@4.15.11 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@4.15.10 build:type /home/runner/work/botpress/botpress/packages/sdk
6
+ > @botpress/sdk@4.15.11 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@4.15.10 build:node /home/runner/work/botpress/botpress/packages/sdk
10
+ > @botpress/sdk@4.15.11 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@4.15.10 build:browser /home/runner/work/botpress/botpress/packages/sdk
15
+ > @botpress/sdk@4.15.11 build:browser /home/runner/work/botpress/botpress/packages/sdk
16
16
  > ts-node -T ./build.ts --browser
17
17
 
18
- (node:3724) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
18
+ (node:3706) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
19
19
  (Use `node --trace-deprecation ...` to show where the warning was created)
20
20
  Done
@@ -111,6 +111,9 @@ export type BotDefinitionProps<TStates extends BaseStates = BaseStates, TEvents
111
111
  [K in keyof TWorkflows]: WorkflowDefinition<TWorkflows[K]>;
112
112
  };
113
113
  attributes?: Record<string, string>;
114
+ __advanced?: {
115
+ useLegacyZuiTransformer?: boolean;
116
+ };
114
117
  };
115
118
  export declare class BotDefinition<TStates extends BaseStates = BaseStates, TEvents extends BaseEvents = BaseEvents, TActions extends BaseActions = BaseActions, TTables extends BaseTables = BaseTables, TWorkflows extends BaseWorkflows = BaseWorkflows> {
116
119
  readonly props: BotDefinitionProps<TStates, TEvents, TActions, TTables, TWorkflows>;
@@ -127,6 +130,7 @@ export declare class BotDefinition<TStates extends BaseStates = BaseStates, TEve
127
130
  readonly tables: this['props']['tables'];
128
131
  readonly workflows: this['props']['workflows'];
129
132
  readonly attributes: this['props']['attributes'];
133
+ readonly __advanced: this['props']['__advanced'];
130
134
  /** Bot definition with plugins merged into it */
131
135
  readonly withPlugins: Pick<this['props'], 'user' | 'conversation' | 'message' | 'states' | 'events' | 'recurringEvents' | 'actions' | 'tables' | 'workflows'>;
132
136
  constructor(props: BotDefinitionProps<TStates, TEvents, TActions, TTables, TWorkflows>);
@@ -9,4 +9,5 @@ export declare const wrapWorkflowInstance: <TBot extends BaseBot, TWorkflowName
9
9
  client: BotSpecificClient<TBot> | client.Client;
10
10
  workflow: client.Workflow;
11
11
  event?: botServerTypes.WorkflowUpdateEvent;
12
+ onWorkflowUpdate?: (newState: client.Workflow) => Promise<void> | void;
12
13
  }) => WorkflowWithUtilities<TBot, TWorkflowName>;
@@ -52,7 +52,9 @@ export type WorkflowWithUtilities<TBot extends commonTypes.BaseBot, TWorkflowNam
52
52
  * Should a workflow not be acknowledged **in a timely fashion**, it will be
53
53
  * retriggered 3 times before being marked as failed.
54
54
  */
55
- acknowledgeStartOfProcessing(): Promise<void>;
55
+ acknowledgeStartOfProcessing(): Promise<{
56
+ workflow: WorkflowWithUtilities<TBot, TWorkflowName>;
57
+ }>;
56
58
  /**
57
59
  * Marks the current workflow instance as failed and stops execution
58
60
  */