@voiceflow/base-types 2.50.0 → 2.51.1

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.
Files changed (71) hide show
  1. package/build/cjs/models/version/index.d.ts +12 -1
  2. package/build/cjs/node/captureV2.d.ts +1 -1
  3. package/build/cjs/node/cardV2.d.ts +1 -1
  4. package/build/cjs/node/carousel.d.ts +2 -2
  5. package/build/cjs/node/goTo.d.ts +1 -1
  6. package/build/cjs/node/interaction.d.ts +1 -1
  7. package/build/cjs/node/stream.d.ts +1 -1
  8. package/build/cjs/node/text.d.ts +1 -1
  9. package/build/cjs/node/utils/base.d.ts +1 -1
  10. package/build/cjs/node/utils/mappings.d.ts +1 -1
  11. package/build/cjs/project/index.d.ts +1 -1
  12. package/build/cjs/runtimeLogs/logs/base.d.ts +5 -5
  13. package/build/cjs/runtimeLogs/logs/kinds.d.ts +1 -1
  14. package/build/cjs/runtimeLogs/logs/logs.d.ts +1 -1
  15. package/build/cjs/runtimeLogs/logs/steps/api.d.ts +3 -2
  16. package/build/cjs/runtimeLogs/logs/steps/buttons.d.ts +1 -1
  17. package/build/cjs/runtimeLogs/logs/steps/capture.d.ts +2 -2
  18. package/build/cjs/runtimeLogs/logs/steps/code.d.ts +3 -3
  19. package/build/cjs/runtimeLogs/logs/steps/condition.d.ts +1 -1
  20. package/build/cjs/runtimeLogs/logs/steps/customAction.d.ts +1 -1
  21. package/build/cjs/runtimeLogs/logs/steps/exit.d.ts +3 -2
  22. package/build/cjs/runtimeLogs/logs/steps/flow.d.ts +2 -2
  23. package/build/cjs/runtimeLogs/logs/steps/intent.d.ts +2 -1
  24. package/build/cjs/runtimeLogs/logs/steps/random.d.ts +1 -1
  25. package/build/cjs/runtimeLogs/logs/steps/set.d.ts +2 -2
  26. package/build/cjs/runtimeLogs/logs/steps/speak.d.ts +2 -1
  27. package/build/cjs/runtimeLogs/logs/steps/start.d.ts +2 -1
  28. package/build/cjs/runtimeLogs/logs/steps/text.d.ts +3 -2
  29. package/build/cjs/trace/index.d.ts +20 -20
  30. package/build/cjs/utils/node.d.ts +2 -2
  31. package/build/cjs/utils/nodeType.d.ts +1 -1
  32. package/build/cjs/utils/step.d.ts +2 -2
  33. package/build/cjs/version/index.d.ts +2 -2
  34. package/build/cjs/version/settings.d.ts +1 -1
  35. package/build/esm/models/version/index.d.ts +12 -1
  36. package/build/esm/node/captureV2.d.ts +1 -1
  37. package/build/esm/node/cardV2.d.ts +1 -1
  38. package/build/esm/node/carousel.d.ts +2 -2
  39. package/build/esm/node/goTo.d.ts +1 -1
  40. package/build/esm/node/interaction.d.ts +1 -1
  41. package/build/esm/node/stream.d.ts +1 -1
  42. package/build/esm/node/text.d.ts +1 -1
  43. package/build/esm/node/utils/base.d.ts +1 -1
  44. package/build/esm/node/utils/mappings.d.ts +1 -1
  45. package/build/esm/project/index.d.ts +1 -1
  46. package/build/esm/runtimeLogs/logs/base.d.ts +5 -5
  47. package/build/esm/runtimeLogs/logs/kinds.d.ts +1 -1
  48. package/build/esm/runtimeLogs/logs/logs.d.ts +1 -1
  49. package/build/esm/runtimeLogs/logs/steps/api.d.ts +3 -2
  50. package/build/esm/runtimeLogs/logs/steps/buttons.d.ts +1 -1
  51. package/build/esm/runtimeLogs/logs/steps/capture.d.ts +2 -2
  52. package/build/esm/runtimeLogs/logs/steps/code.d.ts +3 -3
  53. package/build/esm/runtimeLogs/logs/steps/condition.d.ts +1 -1
  54. package/build/esm/runtimeLogs/logs/steps/customAction.d.ts +1 -1
  55. package/build/esm/runtimeLogs/logs/steps/exit.d.ts +3 -2
  56. package/build/esm/runtimeLogs/logs/steps/flow.d.ts +2 -2
  57. package/build/esm/runtimeLogs/logs/steps/intent.d.ts +2 -1
  58. package/build/esm/runtimeLogs/logs/steps/random.d.ts +1 -1
  59. package/build/esm/runtimeLogs/logs/steps/set.d.ts +2 -2
  60. package/build/esm/runtimeLogs/logs/steps/speak.d.ts +2 -1
  61. package/build/esm/runtimeLogs/logs/steps/start.d.ts +2 -1
  62. package/build/esm/runtimeLogs/logs/steps/text.d.ts +3 -2
  63. package/build/esm/trace/index.d.ts +20 -20
  64. package/build/esm/utils/node.d.ts +2 -2
  65. package/build/esm/utils/nodeType.d.ts +1 -1
  66. package/build/esm/utils/step.d.ts +2 -2
  67. package/build/esm/version/index.d.ts +2 -2
  68. package/build/esm/version/settings.d.ts +1 -1
  69. package/build/tsconfig.build.tsbuildinfo +1 -1
  70. package/build/tsconfig.esm.tsbuildinfo +1 -1
  71. 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
- topics?: FolderItem[];
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 '@base-types/models';
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 '@base-types/text';
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 '@base-types/request';
2
- import { SlateTextValue } from '@base-types/text';
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';
@@ -1,4 +1,4 @@
1
- import { IntentRequest } from '@base-types/request';
1
+ import { IntentRequest } from "../request";
2
2
  import { EmptyObject, Nullable } from '@voiceflow/common';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseNode, BaseNoMatchNodeData, BaseStep } from './utils';
@@ -1,4 +1,4 @@
1
- import { AnyRequestButton } from '@base-types/request';
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 '@base-types/models';
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 {
@@ -1,4 +1,4 @@
1
- import { SlateTextValue } from '@base-types/text';
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 '@base-types/models';
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,4 +1,4 @@
1
- import { SlotMapping } from '@base-types/models';
1
+ import { SlotMapping } from "../../models";
2
2
  export interface SlotMappings {
3
3
  mappings?: SlotMapping[];
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Project as ProjectModels } from '@base-types/models';
1
+ import { Project as ProjectModels } from "../models";
2
2
  import { AnyRecord } from '@voiceflow/common';
3
3
  export interface PlatformData extends AnyRecord {
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { EmptyObject } from '@voiceflow/common';
2
- import { DEFAULT_LOG_LEVEL, Iso8601Timestamp, PathReference } from '../utils';
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. */
@@ -7,16 +7,16 @@ interface BaseLog {
7
7
  kind: string;
8
8
  timestamp: Iso8601Timestamp;
9
9
  message: EmptyObject;
10
- level: LogLevel;
10
+ level: Exclude<LogLevel, LogLevel.OFF>;
11
11
  }
12
- export interface BaseGlobalLog<Kind extends GlobalLogKind, Message extends EmptyObject, Level extends LogLevel = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
12
+ export interface BaseGlobalLog<Kind extends GlobalLogKind, Message extends EmptyObject, Level extends Exclude<LogLevel, LogLevel.OFF> = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
13
13
  kind: `global.${Kind}`;
14
14
  level: Level;
15
15
  message: Message;
16
16
  }
17
- export interface BaseStepLog<Kind extends StepLogKind, Message extends EmptyObject, Level extends LogLevel = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
17
+ export interface BaseStepLog<Kind extends StepLogKind, Message extends EmptyObject, Level extends Exclude<LogLevel, LogLevel.OFF> = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
18
18
  kind: `step.${Kind}`;
19
19
  level: Level;
20
- message: PathReference & Message;
20
+ message: Message;
21
21
  }
22
22
  export {};
@@ -1,4 +1,4 @@
1
- import { NodeType } from '@base-types/node';
1
+ import { NodeType } from "../../node";
2
2
  /** Similar to {@link NodeType}, but for runtime logging */
3
3
  export declare enum StepLogKind {
4
4
  TEXT = "text",
@@ -14,7 +14,7 @@ import { SetStepLog } from './steps/set';
14
14
  import { SpeakStepLog } from './steps/speak';
15
15
  import { StartStepLog } from './steps/start';
16
16
  import { TextStepLog } from './steps/text';
17
- export { ApiStepLog, ButtonsStepLog, CaptureStepLog, CodeStepLog, ConditionStepLog, ConversationStartLog, CustomActionStepLog, ExitStepLog, FlowStepLog, IntentStepLog, RandomStepLog, SetStepLog, SpeakStepLog, StartStepLog, TextStepLog, };
17
+ export { ApiStepLog, ButtonsStepLog, CaptureStepLog, CodeStepLog, ConditionStepLog, ConversationStartLog, CustomActionStepLog, ExitStepLog, FlowStepLog, IntentStepLog, NluIntentResolvedLog, RandomStepLog, SetStepLog, SpeakStepLog, StartStepLog, TextStepLog, };
18
18
  /** All possible runtime logs for global events. */
19
19
  export declare type GlobalLog = ConversationStartLog | NluIntentResolvedLog;
20
20
  /** All possible runtime logs for steps. */
@@ -1,4 +1,5 @@
1
- import { APIBodyType, APIMethod } from '@base-types/node/api';
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 '@base-types/runtimeLogs/utils';
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 '@base-types/runtimeLogs/utils';
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 '../../utils';
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 '@base-types/runtimeLogs/utils';
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 '@base-types/node';
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 '@base-types/node/carousel';
2
- import { TraceFrame as ExitTrace } from '@base-types/node/exit';
3
- import { TraceFrame as FlowTrace } from '@base-types/node/flow';
4
- import { TraceFrame as ChoiceTrace } from '@base-types/node/interaction';
5
- import { TraceFrame as SpeakTrace } from '@base-types/node/speak';
6
- import { TraceFrame as StreamTrace } from '@base-types/node/stream';
7
- import { TraceFrame as TextTrace } from '@base-types/node/text';
8
- import { BaseTraceFrame, TraceType } from '@base-types/node/utils';
9
- import { TraceFrame as VisualTrace } from '@base-types/node/visual';
10
- import { IntentRequest } from '@base-types/request';
11
- import { Log as RuntimeLog } from '@base-types/runtimeLogs';
12
- export { TraceFrame as CarouselTrace } from '@base-types/node/carousel';
13
- export { TraceFrame as ExitTrace } from '@base-types/node/exit';
14
- export { TraceFrame as FlowTrace } from '@base-types/node/flow';
15
- export { TraceFrame as ChoiceTrace } from '@base-types/node/interaction';
16
- export { TraceFrame as SpeakTrace } from '@base-types/node/speak';
17
- export { TraceFrame as StreamTrace } from '@base-types/node/stream';
18
- export { TraceFrame as TextTrace } from '@base-types/node/text';
19
- export { TraceType } from '@base-types/node/utils/trace';
20
- export { TraceFrame as VisualTrace } from '@base-types/node/visual';
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 '@base-types/models';
2
- import * as Node from '@base-types/node';
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 '@base-types/node';
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 '@base-types/models';
2
- import * as Node from '@base-types/node';
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 '@base-types/models';
2
- import { DeepPartialByKey } from '@base-types/types';
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>> {
@@ -1,4 +1,4 @@
1
- import { CarouselLayout } from '@base-types/node/carousel';
1
+ import { CarouselLayout } from "../node/carousel";
2
2
  import { Nullable } from '@voiceflow/common';
3
3
  import { Utils } from '../node';
4
4
  export declare enum RepeatType {
@@ -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
- topics?: FolderItem[];
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 '@base-types/models';
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 '@base-types/text';
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 '@base-types/request';
2
- import { SlateTextValue } from '@base-types/text';
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';
@@ -1,4 +1,4 @@
1
- import { IntentRequest } from '@base-types/request';
1
+ import { IntentRequest } from "../request";
2
2
  import { EmptyObject, Nullable } from '@voiceflow/common';
3
3
  import { NodeType } from './constants';
4
4
  import { BaseNode, BaseNoMatchNodeData, BaseStep } from './utils';
@@ -1,4 +1,4 @@
1
- import { AnyRequestButton } from '@base-types/request';
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 '@base-types/models';
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 {
@@ -1,4 +1,4 @@
1
- import { SlateTextValue } from '@base-types/text';
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 '@base-types/models';
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,4 +1,4 @@
1
- import { SlotMapping } from '@base-types/models';
1
+ import { SlotMapping } from "../../models";
2
2
  export interface SlotMappings {
3
3
  mappings?: SlotMapping[];
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Project as ProjectModels } from '@base-types/models';
1
+ import { Project as ProjectModels } from "../models";
2
2
  import { AnyRecord } from '@voiceflow/common';
3
3
  export interface PlatformData extends AnyRecord {
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { EmptyObject } from '@voiceflow/common';
2
- import { DEFAULT_LOG_LEVEL, Iso8601Timestamp, PathReference } from '../utils';
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. */
@@ -7,16 +7,16 @@ interface BaseLog {
7
7
  kind: string;
8
8
  timestamp: Iso8601Timestamp;
9
9
  message: EmptyObject;
10
- level: LogLevel;
10
+ level: Exclude<LogLevel, LogLevel.OFF>;
11
11
  }
12
- export interface BaseGlobalLog<Kind extends GlobalLogKind, Message extends EmptyObject, Level extends LogLevel = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
12
+ export interface BaseGlobalLog<Kind extends GlobalLogKind, Message extends EmptyObject, Level extends Exclude<LogLevel, LogLevel.OFF> = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
13
13
  kind: `global.${Kind}`;
14
14
  level: Level;
15
15
  message: Message;
16
16
  }
17
- export interface BaseStepLog<Kind extends StepLogKind, Message extends EmptyObject, Level extends LogLevel = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
17
+ export interface BaseStepLog<Kind extends StepLogKind, Message extends EmptyObject, Level extends Exclude<LogLevel, LogLevel.OFF> = typeof DEFAULT_LOG_LEVEL> extends BaseLog {
18
18
  kind: `step.${Kind}`;
19
19
  level: Level;
20
- message: PathReference & Message;
20
+ message: Message;
21
21
  }
22
22
  export {};
@@ -1,4 +1,4 @@
1
- import { NodeType } from '@base-types/node';
1
+ import { NodeType } from "../../node";
2
2
  /** Similar to {@link NodeType}, but for runtime logging */
3
3
  export declare enum StepLogKind {
4
4
  TEXT = "text",
@@ -14,7 +14,7 @@ import { SetStepLog } from './steps/set';
14
14
  import { SpeakStepLog } from './steps/speak';
15
15
  import { StartStepLog } from './steps/start';
16
16
  import { TextStepLog } from './steps/text';
17
- export { ApiStepLog, ButtonsStepLog, CaptureStepLog, CodeStepLog, ConditionStepLog, ConversationStartLog, CustomActionStepLog, ExitStepLog, FlowStepLog, IntentStepLog, RandomStepLog, SetStepLog, SpeakStepLog, StartStepLog, TextStepLog, };
17
+ export { ApiStepLog, ButtonsStepLog, CaptureStepLog, CodeStepLog, ConditionStepLog, ConversationStartLog, CustomActionStepLog, ExitStepLog, FlowStepLog, IntentStepLog, NluIntentResolvedLog, RandomStepLog, SetStepLog, SpeakStepLog, StartStepLog, TextStepLog, };
18
18
  /** All possible runtime logs for global events. */
19
19
  export declare type GlobalLog = ConversationStartLog | NluIntentResolvedLog;
20
20
  /** All possible runtime logs for steps. */
@@ -1,4 +1,5 @@
1
- import { APIBodyType, APIMethod } from '@base-types/node/api';
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 '@base-types/runtimeLogs/utils';
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 '@base-types/runtimeLogs/utils';
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
  }>;