@botpress/runtime 1.13.9 → 1.13.10
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/dist/define-config.d.ts +23 -1
- package/dist/define-config.d.ts.map +1 -1
- package/dist/definition.js +400 -290
- package/dist/definition.js.map +4 -4
- package/dist/internal.js +494 -384
- package/dist/internal.js.map +4 -4
- package/dist/library.d.ts +4 -2
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +427 -284
- package/dist/library.js.map +4 -4
- package/dist/primitives/conversation.d.ts +24 -11
- package/dist/primitives/conversation.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-base.d.ts +1 -1
- package/dist/primitives/data-sources/source-base.d.ts.map +1 -1
- package/dist/primitives/index.d.ts +1 -1
- package/dist/primitives/workflow-instance.d.ts +45 -1
- package/dist/primitives/workflow-instance.d.ts.map +1 -1
- package/dist/primitives/workflow.d.ts +3 -2
- package/dist/primitives/workflow.d.ts.map +1 -1
- package/dist/runtime/autonomous.d.ts +1 -0
- package/dist/runtime/autonomous.d.ts.map +1 -1
- package/dist/runtime/context/context.d.ts +3 -0
- package/dist/runtime/context/context.d.ts.map +1 -1
- package/dist/runtime/context/handlers.d.ts.map +1 -1
- package/dist/runtime/handlers/event.d.ts.map +1 -1
- package/dist/runtime/handlers/workflow.d.ts.map +1 -1
- package/dist/runtime/tracked-tags.d.ts.map +1 -1
- package/dist/runtime.js +451 -302
- package/dist/runtime.js.map +4 -4
- package/dist/utilities/events.d.ts +28 -0
- package/dist/utilities/events.d.ts.map +1 -1
- package/dist/utilities/validate-event-name.d.ts +20 -0
- package/dist/utilities/validate-event-name.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/define-config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Autonomous } from './runtime/autonomous';
|
|
2
|
-
import { z } from '@botpress/sdk';
|
|
2
|
+
import { z, ZodType } from '@botpress/sdk';
|
|
3
3
|
import type { Dependencies } from './_types/dependencies';
|
|
4
4
|
declare const configSchema: import("@bpinternal/zui").ZodObject<{
|
|
5
5
|
name: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
@@ -144,6 +144,16 @@ declare const configSchema: import("@bpinternal/zui").ZodObject<{
|
|
|
144
144
|
autonomous: Autonomous.Model | Autonomous.Model[];
|
|
145
145
|
} | undefined>;
|
|
146
146
|
dependencies: z.Schema<Dependencies, import("@bpinternal/zui").ZodTypeDef, Dependencies>;
|
|
147
|
+
events: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodRecord<import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodObject<{
|
|
148
|
+
schema: import("@bpinternal/zui").ZodOptional<z.Schema<z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>, import("@bpinternal/zui").ZodTypeDef, z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>>>;
|
|
149
|
+
description: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
150
|
+
}, "strip", {
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
schema?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
schema?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
|
|
156
|
+
}>>>;
|
|
147
157
|
}, "strip", {
|
|
148
158
|
defaultModels: {
|
|
149
159
|
zai: Autonomous.Model | Autonomous.Model[];
|
|
@@ -187,6 +197,10 @@ declare const configSchema: import("@bpinternal/zui").ZodObject<{
|
|
|
187
197
|
description?: string | undefined;
|
|
188
198
|
}> | undefined;
|
|
189
199
|
} | undefined;
|
|
200
|
+
events?: Record<string, {
|
|
201
|
+
description?: string | undefined;
|
|
202
|
+
schema?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
|
|
203
|
+
}> | undefined;
|
|
190
204
|
}, {
|
|
191
205
|
dependencies: Dependencies;
|
|
192
206
|
description?: string | undefined;
|
|
@@ -226,6 +240,10 @@ declare const configSchema: import("@bpinternal/zui").ZodObject<{
|
|
|
226
240
|
description?: string | undefined;
|
|
227
241
|
}> | undefined;
|
|
228
242
|
} | undefined;
|
|
243
|
+
events?: Record<string, {
|
|
244
|
+
description?: string | undefined;
|
|
245
|
+
schema?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
|
|
246
|
+
}> | undefined;
|
|
229
247
|
defaultModels?: {
|
|
230
248
|
zai: Autonomous.Model | Autonomous.Model[];
|
|
231
249
|
autonomous: Autonomous.Model | Autonomous.Model[];
|
|
@@ -239,6 +257,10 @@ export type TagDefinition = Record<string, {
|
|
|
239
257
|
title: string;
|
|
240
258
|
description?: string;
|
|
241
259
|
}>;
|
|
260
|
+
export type EventDefinition = Record<string, {
|
|
261
|
+
schema?: ZodType;
|
|
262
|
+
description?: string;
|
|
263
|
+
}>;
|
|
242
264
|
export declare const defineConfig: (config: AgentConfigProps) => AgentConfig;
|
|
243
265
|
export declare const isAgentConfig: (value: unknown) => value is AgentConfig;
|
|
244
266
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../src/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../src/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA0CzD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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