@voiceflow/base-types 2.50.1 → 2.51.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/build/cjs/models/version/index.d.ts +12 -1
- package/build/cjs/node/captureV2.d.ts +1 -1
- package/build/cjs/node/cardV2.d.ts +1 -1
- package/build/cjs/node/carousel.d.ts +2 -2
- package/build/cjs/node/goTo.d.ts +1 -1
- package/build/cjs/node/interaction.d.ts +1 -1
- package/build/cjs/node/stream.d.ts +1 -1
- package/build/cjs/node/text.d.ts +1 -1
- package/build/cjs/node/utils/base.d.ts +1 -1
- package/build/cjs/node/utils/mappings.d.ts +1 -1
- package/build/cjs/project/index.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/base.d.ts +2 -2
- package/build/cjs/runtimeLogs/logs/kinds.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/steps/api.d.ts +3 -2
- package/build/cjs/runtimeLogs/logs/steps/buttons.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/steps/capture.d.ts +2 -2
- package/build/cjs/runtimeLogs/logs/steps/code.d.ts +3 -3
- package/build/cjs/runtimeLogs/logs/steps/condition.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/steps/customAction.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/steps/exit.d.ts +3 -2
- package/build/cjs/runtimeLogs/logs/steps/flow.d.ts +2 -2
- package/build/cjs/runtimeLogs/logs/steps/intent.d.ts +2 -1
- package/build/cjs/runtimeLogs/logs/steps/random.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/steps/set.d.ts +2 -2
- package/build/cjs/runtimeLogs/logs/steps/speak.d.ts +2 -1
- package/build/cjs/runtimeLogs/logs/steps/start.d.ts +2 -1
- package/build/cjs/runtimeLogs/logs/steps/text.d.ts +3 -2
- package/build/cjs/trace/index.d.ts +20 -20
- package/build/cjs/utils/node.d.ts +2 -2
- package/build/cjs/utils/nodeType.d.ts +1 -1
- package/build/cjs/utils/step.d.ts +2 -2
- package/build/cjs/version/index.d.ts +2 -2
- package/build/cjs/version/settings.d.ts +1 -1
- package/build/esm/models/version/index.d.ts +12 -1
- package/build/esm/node/captureV2.d.ts +1 -1
- package/build/esm/node/cardV2.d.ts +1 -1
- package/build/esm/node/carousel.d.ts +2 -2
- package/build/esm/node/goTo.d.ts +1 -1
- package/build/esm/node/interaction.d.ts +1 -1
- package/build/esm/node/stream.d.ts +1 -1
- package/build/esm/node/text.d.ts +1 -1
- package/build/esm/node/utils/base.d.ts +1 -1
- package/build/esm/node/utils/mappings.d.ts +1 -1
- package/build/esm/project/index.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/base.d.ts +2 -2
- package/build/esm/runtimeLogs/logs/kinds.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/steps/api.d.ts +3 -2
- package/build/esm/runtimeLogs/logs/steps/buttons.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/steps/capture.d.ts +2 -2
- package/build/esm/runtimeLogs/logs/steps/code.d.ts +3 -3
- package/build/esm/runtimeLogs/logs/steps/condition.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/steps/customAction.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/steps/exit.d.ts +3 -2
- package/build/esm/runtimeLogs/logs/steps/flow.d.ts +2 -2
- package/build/esm/runtimeLogs/logs/steps/intent.d.ts +2 -1
- package/build/esm/runtimeLogs/logs/steps/random.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/steps/set.d.ts +2 -2
- package/build/esm/runtimeLogs/logs/steps/speak.d.ts +2 -1
- package/build/esm/runtimeLogs/logs/steps/start.d.ts +2 -1
- package/build/esm/runtimeLogs/logs/steps/text.d.ts +3 -2
- package/build/esm/trace/index.d.ts +20 -20
- package/build/esm/utils/node.d.ts +2 -2
- package/build/esm/utils/nodeType.d.ts +1 -1
- package/build/esm/utils/step.d.ts +2 -2
- package/build/esm/version/index.d.ts +2 -2
- package/build/esm/version/settings.d.ts +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/build/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -29,6 +29,13 @@ export interface Folder {
|
|
|
29
29
|
name: string;
|
|
30
30
|
items: FolderItem[];
|
|
31
31
|
}
|
|
32
|
+
export interface Domain {
|
|
33
|
+
id: string;
|
|
34
|
+
live: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
topicIDs: string[];
|
|
37
|
+
rootDiagramID: string;
|
|
38
|
+
}
|
|
32
39
|
export interface Model<_PlatformData extends PlatformData, Command extends BaseCommand = BaseCommand, Locale extends string = string> {
|
|
33
40
|
_id: string;
|
|
34
41
|
_version?: number;
|
|
@@ -37,7 +44,7 @@ export interface Model<_PlatformData extends PlatformData, Command extends BaseC
|
|
|
37
44
|
rootDiagramID: string;
|
|
38
45
|
name: string;
|
|
39
46
|
notes?: Record<string, BaseNote>;
|
|
40
|
-
|
|
47
|
+
domains?: Domain[];
|
|
41
48
|
folders?: Record<string, Folder>;
|
|
42
49
|
variables: Variable[];
|
|
43
50
|
prototype?: Prototype<Command, Locale>;
|
|
@@ -45,4 +52,8 @@ export interface Model<_PlatformData extends PlatformData, Command extends BaseC
|
|
|
45
52
|
platformData: _PlatformData;
|
|
46
53
|
manualSave: boolean;
|
|
47
54
|
autoSaveFromRestore: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated replaced with domains
|
|
57
|
+
*/
|
|
58
|
+
topics?: FolderItem[];
|
|
48
59
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Intent } from
|
|
1
|
+
import { Intent } from "../models";
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, NodeIntentScope, NodeNextID, StepIntentScope } from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlateTextValue } from
|
|
1
|
+
import { SlateTextValue } from "../text";
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseNoMatchStepData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, DataID } from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneralRequestButton } from
|
|
2
|
-
import { SlateTextValue } from
|
|
1
|
+
import { GeneralRequestButton } from "../request";
|
|
2
|
+
import { SlateTextValue } from "../text";
|
|
3
3
|
import { Nullable } from '@voiceflow/common';
|
|
4
4
|
import { NodeType } from './constants';
|
|
5
5
|
import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BaseTraceFrame, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, DataID, NodeNextID, TraceType } from './utils';
|
package/build/cjs/node/goTo.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyRequestButton } from
|
|
1
|
+
import { AnyRequestButton } from "../request";
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseEvent, BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, BaseTraceFrame, DeprecatedBaseNodeNoMatch, NodeIntentScope, NodeNextID, NoMatchNoReplyStepPorts, SlotMappings, StepIntentScope, TraceType } from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PortType } from
|
|
1
|
+
import { PortType } from "../models";
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
3
|
import { BaseNode, BasePort, BaseStep, BaseStepPorts, BaseTraceFrame, BuiltInNextPort, NodeID, TraceType } from './utils';
|
|
4
4
|
export interface StepData {
|
package/build/cjs/node/text.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlateTextValue } from
|
|
1
|
+
import { SlateTextValue } from "../text";
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
3
|
import { BaseNode, BaseStep, BaseTraceFrame, DataID, NodeNextID, StepCanvasNodeVisibility, TraceType } from './utils';
|
|
4
4
|
export interface TextData extends DataID {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Nullable } from '@voiceflow/common';
|
|
2
|
-
export { BaseCommand, BaseNode, BasePort, BasePortList, BaseStep, BaseStepPorts, BuiltInFailPort, BuiltInNextFailPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, BuiltInNoMatchPort, BuiltInNoReplyPort, DynamicOnlyStepPorts, EmptyStepPorts, NextStepPorts, NoMatchNoReplyStepPorts, SuccessFailStepPorts, } from
|
|
2
|
+
export { BaseCommand, BaseNode, BasePort, BasePortList, BaseStep, BaseStepPorts, BuiltInFailPort, BuiltInNextFailPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, BuiltInNoMatchPort, BuiltInNoReplyPort, DynamicOnlyStepPorts, EmptyStepPorts, NextStepPorts, NoMatchNoReplyStepPorts, SuccessFailStepPorts, } from "../../models";
|
|
3
3
|
export declare type NodeID = Nullable<string>;
|
|
4
4
|
export interface DataID {
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyObject } from '@voiceflow/common';
|
|
2
|
-
import { DEFAULT_LOG_LEVEL, Iso8601Timestamp
|
|
2
|
+
import { DEFAULT_LOG_LEVEL, Iso8601Timestamp } from '../utils';
|
|
3
3
|
import { GlobalLogKind, StepLogKind } from './kinds';
|
|
4
4
|
import { LogLevel } from './levels';
|
|
5
5
|
/** The base log interface. This should not be used directly, use one of the subtypes instead. */
|
|
@@ -17,6 +17,6 @@ export interface BaseGlobalLog<Kind extends GlobalLogKind, Message extends Empty
|
|
|
17
17
|
export interface BaseStepLog<Kind extends StepLogKind, Message extends EmptyObject, Level extends LogLevel = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
|
|
18
18
|
kind: `step.${Kind}`;
|
|
19
19
|
level: Level;
|
|
20
|
-
message:
|
|
20
|
+
message: Message;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { APIBodyType, APIMethod } from
|
|
1
|
+
import { APIBodyType, APIMethod } from "../../../node/api";
|
|
2
|
+
import { PathReference } from "../../utils";
|
|
2
3
|
import { BaseStepLog } from '../base';
|
|
3
4
|
import { StepLogKind } from '../kinds';
|
|
4
5
|
import { LogLevel } from '../levels';
|
|
@@ -43,5 +44,5 @@ interface VerboseApiLogMessage {
|
|
|
43
44
|
request: VerboseApiLogMessageRequest;
|
|
44
45
|
response: VerboseApiLogMessageResponse;
|
|
45
46
|
}
|
|
46
|
-
export declare type ApiStepLog = BaseStepLog<StepLogKind.API, ApiLogMessage, LogLevel.INFO> | BaseStepLog<StepLogKind.API, VerboseApiLogMessage, LogLevel.VERBOSE> | BaseStepLog<StepLogKind.API, ApiLogMessage | VerboseApiLogMessage, LogLevel.ERROR>;
|
|
47
|
+
export declare type ApiStepLog = BaseStepLog<StepLogKind.API, PathReference & ApiLogMessage, LogLevel.INFO> | BaseStepLog<StepLogKind.API, PathReference & VerboseApiLogMessage, LogLevel.VERBOSE> | BaseStepLog<StepLogKind.API, PathReference & (ApiLogMessage | VerboseApiLogMessage), LogLevel.ERROR>;
|
|
47
48
|
export {};
|
|
@@ -13,5 +13,5 @@ interface GoToIntentButtonLogMessage extends UrlButtonLogMessage {
|
|
|
13
13
|
intent: string;
|
|
14
14
|
path: null;
|
|
15
15
|
}
|
|
16
|
-
export declare type ButtonsStepLog = BaseStepLog<StepLogKind.BUTTONS, FollowPathButtonLogMessage | GoToIntentButtonLogMessage>;
|
|
16
|
+
export declare type ButtonsStepLog = BaseStepLog<StepLogKind.BUTTONS, PathReference & (FollowPathButtonLogMessage | GoToIntentButtonLogMessage)>;
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangedVariables, VariableValue } from
|
|
1
|
+
import { ChangedVariables, PathReference, VariableValue } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type CaptureStepLog = BaseStepLog<StepLogKind.CAPTURE, ChangedVariables<VariableValue | null, string, VariableValue>>;
|
|
4
|
+
export declare type CaptureStepLog = BaseStepLog<StepLogKind.CAPTURE, PathReference & ChangedVariables<VariableValue | null, string, VariableValue>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChangedVariables } from
|
|
1
|
+
import { ChangedVariables, PathReference } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
4
|
import { LogLevel } from '../levels';
|
|
5
|
-
export declare type CodeStepLog = BaseStepLog<StepLogKind.CUSTOM_CODE, {
|
|
5
|
+
export declare type CodeStepLog = BaseStepLog<StepLogKind.CUSTOM_CODE, PathReference & {
|
|
6
6
|
error: null;
|
|
7
|
-
} & ChangedVariables<any>, LogLevel.INFO> | BaseStepLog<StepLogKind.CUSTOM_CODE, {
|
|
7
|
+
} & ChangedVariables<any>, LogLevel.INFO> | BaseStepLog<StepLogKind.CUSTOM_CODE, PathReference & {
|
|
8
8
|
error: any;
|
|
9
9
|
} & Record<keyof ChangedVariables<never>, null>, LogLevel.ERROR>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PathReference } from '../../utils';
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type ConditionStepLog = BaseStepLog<StepLogKind.CONDITION, {
|
|
4
|
+
export declare type ConditionStepLog = BaseStepLog<StepLogKind.CONDITION, PathReference & {
|
|
5
5
|
path: PathReference | null;
|
|
6
6
|
}>;
|
|
@@ -2,7 +2,7 @@ import { Nullable } from '@voiceflow/common';
|
|
|
2
2
|
import { PathReference } from '../../utils';
|
|
3
3
|
import { BaseStepLog } from '../base';
|
|
4
4
|
import { StepLogKind } from '../kinds';
|
|
5
|
-
export declare type CustomActionStepLog = BaseStepLog<StepLogKind.CUSTOM_ACTION, {
|
|
5
|
+
export declare type CustomActionStepLog = BaseStepLog<StepLogKind.CUSTOM_ACTION, Record<keyof PathReference, null> & {
|
|
6
6
|
actionBody: Nullable<string>;
|
|
7
7
|
path: PathReference;
|
|
8
8
|
}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { PathReference } from "../../utils";
|
|
1
2
|
import { EmptyObject } from '@voiceflow/common';
|
|
2
3
|
import { BaseStepLog } from '../base';
|
|
3
4
|
import { StepLogKind } from '../kinds';
|
|
4
5
|
import { LogLevel } from '../levels';
|
|
5
|
-
export declare type ExitStepLog = BaseStepLog<StepLogKind.EXIT, {
|
|
6
|
+
export declare type ExitStepLog = BaseStepLog<StepLogKind.EXIT, PathReference & {
|
|
6
7
|
state: null;
|
|
7
|
-
}, LogLevel.INFO> | BaseStepLog<StepLogKind.EXIT, {
|
|
8
|
+
}, LogLevel.INFO> | BaseStepLog<StepLogKind.EXIT, PathReference & {
|
|
8
9
|
/** The state of the program on exit. */
|
|
9
10
|
state: EmptyObject;
|
|
10
11
|
}, LogLevel.VERBOSE>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FlowReference, ValueChange } from
|
|
1
|
+
import { FlowReference, PathReference, ValueChange } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, {
|
|
4
|
+
export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, PathReference & {
|
|
5
5
|
flow: null | ValueChange<FlowReference>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { PathReference } from "../../utils";
|
|
1
2
|
import { BaseStepLog } from '../base';
|
|
2
3
|
import { StepLogKind } from '../kinds';
|
|
3
|
-
export declare type IntentStepLog = BaseStepLog<StepLogKind.INTENT, {
|
|
4
|
+
export declare type IntentStepLog = BaseStepLog<StepLogKind.INTENT, PathReference & {
|
|
4
5
|
intentName: string;
|
|
5
6
|
utterance: string;
|
|
6
7
|
confidence: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PathReference } from '../../utils';
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type RandomStepLog = BaseStepLog<StepLogKind.RANDOM, {
|
|
4
|
+
export declare type RandomStepLog = BaseStepLog<StepLogKind.RANDOM, PathReference & {
|
|
5
5
|
path: PathReference | null;
|
|
6
6
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangedVariables } from
|
|
1
|
+
import { ChangedVariables, PathReference } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type SetStepLog = BaseStepLog<StepLogKind.SET, ChangedVariables<any>>;
|
|
4
|
+
export declare type SetStepLog = BaseStepLog<StepLogKind.SET, PathReference & ChangedVariables<any>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { PathReference } from "../../utils";
|
|
1
2
|
import { BaseStepLog } from '../base';
|
|
2
3
|
import { StepLogKind } from '../kinds';
|
|
3
|
-
export declare type SpeakStepLog = BaseStepLog<StepLogKind.SPEAK, {
|
|
4
|
+
export declare type SpeakStepLog = BaseStepLog<StepLogKind.SPEAK, (PathReference | Record<keyof PathReference, null>) & {
|
|
4
5
|
text: string;
|
|
5
6
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { PathReference } from "../../utils";
|
|
1
2
|
import { EmptyObject } from '@voiceflow/common';
|
|
2
3
|
import { BaseStepLog } from '../base';
|
|
3
4
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type StartStepLog = BaseStepLog<StepLogKind.START, EmptyObject>;
|
|
5
|
+
export declare type StartStepLog = BaseStepLog<StepLogKind.START, PathReference | EmptyObject>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Text as TextNode } from
|
|
1
|
+
import { Text as TextNode } from "../../../node";
|
|
2
|
+
import { PathReference } from "../../utils";
|
|
2
3
|
import { BaseStepLog } from '../base';
|
|
3
4
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type TextStepLog = BaseStepLog<StepLogKind.TEXT, {
|
|
5
|
+
export declare type TextStepLog = BaseStepLog<StepLogKind.TEXT, (PathReference | Record<keyof PathReference, null>) & {
|
|
5
6
|
plainContent: string;
|
|
6
7
|
richContent: TextNode.TextData;
|
|
7
8
|
}>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { TraceFrame as CarouselTrace } from
|
|
2
|
-
import { TraceFrame as ExitTrace } from
|
|
3
|
-
import { TraceFrame as FlowTrace } from
|
|
4
|
-
import { TraceFrame as ChoiceTrace } from
|
|
5
|
-
import { TraceFrame as SpeakTrace } from
|
|
6
|
-
import { TraceFrame as StreamTrace } from
|
|
7
|
-
import { TraceFrame as TextTrace } from
|
|
8
|
-
import { BaseTraceFrame, TraceType } from
|
|
9
|
-
import { TraceFrame as VisualTrace } from
|
|
10
|
-
import { IntentRequest } from
|
|
11
|
-
import { Log as RuntimeLog } from
|
|
12
|
-
export { TraceFrame as CarouselTrace } from
|
|
13
|
-
export { TraceFrame as ExitTrace } from
|
|
14
|
-
export { TraceFrame as FlowTrace } from
|
|
15
|
-
export { TraceFrame as ChoiceTrace } from
|
|
16
|
-
export { TraceFrame as SpeakTrace } from
|
|
17
|
-
export { TraceFrame as StreamTrace } from
|
|
18
|
-
export { TraceFrame as TextTrace } from
|
|
19
|
-
export { TraceType } from
|
|
20
|
-
export { TraceFrame as VisualTrace } from
|
|
1
|
+
import { TraceFrame as CarouselTrace } from "../node/carousel";
|
|
2
|
+
import { TraceFrame as ExitTrace } from "../node/exit";
|
|
3
|
+
import { TraceFrame as FlowTrace } from "../node/flow";
|
|
4
|
+
import { TraceFrame as ChoiceTrace } from "../node/interaction";
|
|
5
|
+
import { TraceFrame as SpeakTrace } from "../node/speak";
|
|
6
|
+
import { TraceFrame as StreamTrace } from "../node/stream";
|
|
7
|
+
import { TraceFrame as TextTrace } from "../node/text";
|
|
8
|
+
import { BaseTraceFrame, TraceType } from "../node/utils";
|
|
9
|
+
import { TraceFrame as VisualTrace } from "../node/visual";
|
|
10
|
+
import { IntentRequest } from "../request";
|
|
11
|
+
import { Log as RuntimeLog } from "../runtimeLogs";
|
|
12
|
+
export { TraceFrame as CarouselTrace } from "../node/carousel";
|
|
13
|
+
export { TraceFrame as ExitTrace } from "../node/exit";
|
|
14
|
+
export { TraceFrame as FlowTrace } from "../node/flow";
|
|
15
|
+
export { TraceFrame as ChoiceTrace } from "../node/interaction";
|
|
16
|
+
export { TraceFrame as SpeakTrace } from "../node/speak";
|
|
17
|
+
export { TraceFrame as StreamTrace } from "../node/stream";
|
|
18
|
+
export { TraceFrame as TextTrace } from "../node/text";
|
|
19
|
+
export { TraceType } from "../node/utils/trace";
|
|
20
|
+
export { TraceFrame as VisualTrace } from "../node/visual";
|
|
21
21
|
export interface DebugTracePayload {
|
|
22
22
|
type?: string;
|
|
23
23
|
message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as BaseModels from
|
|
2
|
-
import * as Node from
|
|
1
|
+
import * as BaseModels from "../models";
|
|
2
|
+
import * as Node from "../node";
|
|
3
3
|
export declare const createNodeTypeguard: <R extends BaseModels.BaseNode>(values: R["type"] | R["type"][]) => (value: BaseModels.BaseNode) => value is R;
|
|
4
4
|
export declare const isV1: (node: BaseModels.BaseNode) => node is Node._v1.Node<Node.Utils.BaseEvent>;
|
|
5
5
|
export declare const isIf: (value: BaseModels.BaseNode) => value is Node.If.Node;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Node from
|
|
1
|
+
import * as Node from "../node";
|
|
2
2
|
export declare const createNodeTypeTypeguard: <R extends Node.NodeType>(values: R | readonly R[] | R[]) => (value?: unknown) => value is R;
|
|
3
3
|
export declare const isIf: (value?: unknown) => value is Node.NodeType.IF;
|
|
4
4
|
export declare const isUrl: (value?: unknown) => value is Node.NodeType.URL;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as BaseModels from
|
|
2
|
-
import * as Node from
|
|
1
|
+
import * as BaseModels from "../models";
|
|
2
|
+
import * as Node from "../node";
|
|
3
3
|
export declare const createStepTypeguard: <R extends BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>>(values: R["type"] | R["type"][]) => (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is R;
|
|
4
4
|
export declare const isIf: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.If.Step<Node.If.StepData>;
|
|
5
5
|
export declare const isUrl: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Url.Step<Node.Url.StepData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Version as VersionModels } from
|
|
2
|
-
import { DeepPartialByKey } from
|
|
1
|
+
import { Version as VersionModels } from "../models";
|
|
2
|
+
import { DeepPartialByKey } from "../types";
|
|
3
3
|
import { Settings } from './settings';
|
|
4
4
|
export * from './settings';
|
|
5
5
|
export interface PlatformData<Prompt = unknown> extends VersionModels.PlatformData<Settings<Prompt>> {
|
|
@@ -29,6 +29,13 @@ export interface Folder {
|
|
|
29
29
|
name: string;
|
|
30
30
|
items: FolderItem[];
|
|
31
31
|
}
|
|
32
|
+
export interface Domain {
|
|
33
|
+
id: string;
|
|
34
|
+
live: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
topicIDs: string[];
|
|
37
|
+
rootDiagramID: string;
|
|
38
|
+
}
|
|
32
39
|
export interface Model<_PlatformData extends PlatformData, Command extends BaseCommand = BaseCommand, Locale extends string = string> {
|
|
33
40
|
_id: string;
|
|
34
41
|
_version?: number;
|
|
@@ -37,7 +44,7 @@ export interface Model<_PlatformData extends PlatformData, Command extends BaseC
|
|
|
37
44
|
rootDiagramID: string;
|
|
38
45
|
name: string;
|
|
39
46
|
notes?: Record<string, BaseNote>;
|
|
40
|
-
|
|
47
|
+
domains?: Domain[];
|
|
41
48
|
folders?: Record<string, Folder>;
|
|
42
49
|
variables: Variable[];
|
|
43
50
|
prototype?: Prototype<Command, Locale>;
|
|
@@ -45,4 +52,8 @@ export interface Model<_PlatformData extends PlatformData, Command extends BaseC
|
|
|
45
52
|
platformData: _PlatformData;
|
|
46
53
|
manualSave: boolean;
|
|
47
54
|
autoSaveFromRestore: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated replaced with domains
|
|
57
|
+
*/
|
|
58
|
+
topics?: FolderItem[];
|
|
48
59
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Intent } from
|
|
1
|
+
import { Intent } from "../models";
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, NodeIntentScope, NodeNextID, StepIntentScope } from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlateTextValue } from
|
|
1
|
+
import { SlateTextValue } from "../text";
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseNoMatchStepData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, DataID } from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneralRequestButton } from
|
|
2
|
-
import { SlateTextValue } from
|
|
1
|
+
import { GeneralRequestButton } from "../request";
|
|
2
|
+
import { SlateTextValue } from "../text";
|
|
3
3
|
import { Nullable } from '@voiceflow/common';
|
|
4
4
|
import { NodeType } from './constants';
|
|
5
5
|
import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BaseTraceFrame, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, DataID, NodeNextID, TraceType } from './utils';
|
package/build/esm/node/goTo.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyRequestButton } from
|
|
1
|
+
import { AnyRequestButton } from "../request";
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseEvent, BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, BaseTraceFrame, DeprecatedBaseNodeNoMatch, NodeIntentScope, NodeNextID, NoMatchNoReplyStepPorts, SlotMappings, StepIntentScope, TraceType } from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PortType } from
|
|
1
|
+
import { PortType } from "../models";
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
3
|
import { BaseNode, BasePort, BaseStep, BaseStepPorts, BaseTraceFrame, BuiltInNextPort, NodeID, TraceType } from './utils';
|
|
4
4
|
export interface StepData {
|
package/build/esm/node/text.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlateTextValue } from
|
|
1
|
+
import { SlateTextValue } from "../text";
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
3
|
import { BaseNode, BaseStep, BaseTraceFrame, DataID, NodeNextID, StepCanvasNodeVisibility, TraceType } from './utils';
|
|
4
4
|
export interface TextData extends DataID {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Nullable } from '@voiceflow/common';
|
|
2
|
-
export { BaseCommand, BaseNode, BasePort, BasePortList, BaseStep, BaseStepPorts, BuiltInFailPort, BuiltInNextFailPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, BuiltInNoMatchPort, BuiltInNoReplyPort, DynamicOnlyStepPorts, EmptyStepPorts, NextStepPorts, NoMatchNoReplyStepPorts, SuccessFailStepPorts, } from
|
|
2
|
+
export { BaseCommand, BaseNode, BasePort, BasePortList, BaseStep, BaseStepPorts, BuiltInFailPort, BuiltInNextFailPorts, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, BuiltInNoMatchPort, BuiltInNoReplyPort, DynamicOnlyStepPorts, EmptyStepPorts, NextStepPorts, NoMatchNoReplyStepPorts, SuccessFailStepPorts, } from "../../models";
|
|
3
3
|
export declare type NodeID = Nullable<string>;
|
|
4
4
|
export interface DataID {
|
|
5
5
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyObject } from '@voiceflow/common';
|
|
2
|
-
import { DEFAULT_LOG_LEVEL, Iso8601Timestamp
|
|
2
|
+
import { DEFAULT_LOG_LEVEL, Iso8601Timestamp } from '../utils';
|
|
3
3
|
import { GlobalLogKind, StepLogKind } from './kinds';
|
|
4
4
|
import { LogLevel } from './levels';
|
|
5
5
|
/** The base log interface. This should not be used directly, use one of the subtypes instead. */
|
|
@@ -17,6 +17,6 @@ export interface BaseGlobalLog<Kind extends GlobalLogKind, Message extends Empty
|
|
|
17
17
|
export interface BaseStepLog<Kind extends StepLogKind, Message extends EmptyObject, Level extends LogLevel = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
|
|
18
18
|
kind: `step.${Kind}`;
|
|
19
19
|
level: Level;
|
|
20
|
-
message:
|
|
20
|
+
message: Message;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { APIBodyType, APIMethod } from
|
|
1
|
+
import { APIBodyType, APIMethod } from "../../../node/api";
|
|
2
|
+
import { PathReference } from "../../utils";
|
|
2
3
|
import { BaseStepLog } from '../base';
|
|
3
4
|
import { StepLogKind } from '../kinds';
|
|
4
5
|
import { LogLevel } from '../levels';
|
|
@@ -43,5 +44,5 @@ interface VerboseApiLogMessage {
|
|
|
43
44
|
request: VerboseApiLogMessageRequest;
|
|
44
45
|
response: VerboseApiLogMessageResponse;
|
|
45
46
|
}
|
|
46
|
-
export declare type ApiStepLog = BaseStepLog<StepLogKind.API, ApiLogMessage, LogLevel.INFO> | BaseStepLog<StepLogKind.API, VerboseApiLogMessage, LogLevel.VERBOSE> | BaseStepLog<StepLogKind.API, ApiLogMessage | VerboseApiLogMessage, LogLevel.ERROR>;
|
|
47
|
+
export declare type ApiStepLog = BaseStepLog<StepLogKind.API, PathReference & ApiLogMessage, LogLevel.INFO> | BaseStepLog<StepLogKind.API, PathReference & VerboseApiLogMessage, LogLevel.VERBOSE> | BaseStepLog<StepLogKind.API, PathReference & (ApiLogMessage | VerboseApiLogMessage), LogLevel.ERROR>;
|
|
47
48
|
export {};
|
|
@@ -13,5 +13,5 @@ interface GoToIntentButtonLogMessage extends UrlButtonLogMessage {
|
|
|
13
13
|
intent: string;
|
|
14
14
|
path: null;
|
|
15
15
|
}
|
|
16
|
-
export declare type ButtonsStepLog = BaseStepLog<StepLogKind.BUTTONS, FollowPathButtonLogMessage | GoToIntentButtonLogMessage>;
|
|
16
|
+
export declare type ButtonsStepLog = BaseStepLog<StepLogKind.BUTTONS, PathReference & (FollowPathButtonLogMessage | GoToIntentButtonLogMessage)>;
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangedVariables, VariableValue } from
|
|
1
|
+
import { ChangedVariables, PathReference, VariableValue } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type CaptureStepLog = BaseStepLog<StepLogKind.CAPTURE, ChangedVariables<VariableValue | null, string, VariableValue>>;
|
|
4
|
+
export declare type CaptureStepLog = BaseStepLog<StepLogKind.CAPTURE, PathReference & ChangedVariables<VariableValue | null, string, VariableValue>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChangedVariables } from
|
|
1
|
+
import { ChangedVariables, PathReference } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
4
|
import { LogLevel } from '../levels';
|
|
5
|
-
export declare type CodeStepLog = BaseStepLog<StepLogKind.CUSTOM_CODE, {
|
|
5
|
+
export declare type CodeStepLog = BaseStepLog<StepLogKind.CUSTOM_CODE, PathReference & {
|
|
6
6
|
error: null;
|
|
7
|
-
} & ChangedVariables<any>, LogLevel.INFO> | BaseStepLog<StepLogKind.CUSTOM_CODE, {
|
|
7
|
+
} & ChangedVariables<any>, LogLevel.INFO> | BaseStepLog<StepLogKind.CUSTOM_CODE, PathReference & {
|
|
8
8
|
error: any;
|
|
9
9
|
} & Record<keyof ChangedVariables<never>, null>, LogLevel.ERROR>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PathReference } from '../../utils';
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type ConditionStepLog = BaseStepLog<StepLogKind.CONDITION, {
|
|
4
|
+
export declare type ConditionStepLog = BaseStepLog<StepLogKind.CONDITION, PathReference & {
|
|
5
5
|
path: PathReference | null;
|
|
6
6
|
}>;
|
|
@@ -2,7 +2,7 @@ import { Nullable } from '@voiceflow/common';
|
|
|
2
2
|
import { PathReference } from '../../utils';
|
|
3
3
|
import { BaseStepLog } from '../base';
|
|
4
4
|
import { StepLogKind } from '../kinds';
|
|
5
|
-
export declare type CustomActionStepLog = BaseStepLog<StepLogKind.CUSTOM_ACTION, {
|
|
5
|
+
export declare type CustomActionStepLog = BaseStepLog<StepLogKind.CUSTOM_ACTION, Record<keyof PathReference, null> & {
|
|
6
6
|
actionBody: Nullable<string>;
|
|
7
7
|
path: PathReference;
|
|
8
8
|
}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { PathReference } from "../../utils";
|
|
1
2
|
import { EmptyObject } from '@voiceflow/common';
|
|
2
3
|
import { BaseStepLog } from '../base';
|
|
3
4
|
import { StepLogKind } from '../kinds';
|
|
4
5
|
import { LogLevel } from '../levels';
|
|
5
|
-
export declare type ExitStepLog = BaseStepLog<StepLogKind.EXIT, {
|
|
6
|
+
export declare type ExitStepLog = BaseStepLog<StepLogKind.EXIT, PathReference & {
|
|
6
7
|
state: null;
|
|
7
|
-
}, LogLevel.INFO> | BaseStepLog<StepLogKind.EXIT, {
|
|
8
|
+
}, LogLevel.INFO> | BaseStepLog<StepLogKind.EXIT, PathReference & {
|
|
8
9
|
/** The state of the program on exit. */
|
|
9
10
|
state: EmptyObject;
|
|
10
11
|
}, LogLevel.VERBOSE>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FlowReference, ValueChange } from
|
|
1
|
+
import { FlowReference, PathReference, ValueChange } from "../../utils";
|
|
2
2
|
import { BaseStepLog } from '../base';
|
|
3
3
|
import { StepLogKind } from '../kinds';
|
|
4
|
-
export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, {
|
|
4
|
+
export declare type FlowStepLog = BaseStepLog<StepLogKind.FLOW, PathReference & {
|
|
5
5
|
flow: null | ValueChange<FlowReference>;
|
|
6
6
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { PathReference } from "../../utils";
|
|
1
2
|
import { BaseStepLog } from '../base';
|
|
2
3
|
import { StepLogKind } from '../kinds';
|
|
3
|
-
export declare type IntentStepLog = BaseStepLog<StepLogKind.INTENT, {
|
|
4
|
+
export declare type IntentStepLog = BaseStepLog<StepLogKind.INTENT, PathReference & {
|
|
4
5
|
intentName: string;
|
|
5
6
|
utterance: string;
|
|
6
7
|
confidence: number;
|