@voiceflow/base-types 2.50.1 → 2.52.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/constants.d.ts +1 -0
- package/build/cjs/node/constants.js +1 -0
- package/build/cjs/node/constants.js.map +1 -1
- package/build/cjs/node/goTo.d.ts +1 -1
- package/build/cjs/node/index.d.ts +4 -2
- package/build/cjs/node/index.js +2 -1
- package/build/cjs/node/index.js.map +1 -1
- package/build/cjs/node/interaction.d.ts +1 -1
- package/build/cjs/node/randomV2.d.ts +21 -0
- package/build/cjs/node/randomV2.js +9 -0
- package/build/cjs/node/randomV2.js.map +1 -0
- 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 +5 -5
- package/build/cjs/runtimeLogs/logs/kinds.d.ts +1 -1
- package/build/cjs/runtimeLogs/logs/logs.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 +3 -2
- package/build/cjs/utils/node.js +2 -1
- package/build/cjs/utils/node.js.map +1 -1
- package/build/cjs/utils/nodeType.d.ts +2 -1
- package/build/cjs/utils/nodeType.js +2 -1
- package/build/cjs/utils/nodeType.js.map +1 -1
- package/build/cjs/utils/step.d.ts +3 -2
- package/build/cjs/utils/step.js +2 -1
- package/build/cjs/utils/step.js.map +1 -1
- package/build/cjs/version/index.d.ts +2 -2
- package/build/cjs/version/settings.d.ts +1 -1
- package/build/esm/index.js +21 -21
- package/build/esm/index.js.map +1 -1
- package/build/esm/models/base/index.js +8 -8
- package/build/esm/models/base/index.js.map +1 -1
- package/build/esm/models/index.js +8 -8
- package/build/esm/models/index.js.map +1 -1
- package/build/esm/models/project/index.js +3 -3
- package/build/esm/models/project/index.js.map +1 -1
- package/build/esm/models/version/index.d.ts +12 -1
- package/build/esm/models/version/index.js +1 -1
- package/build/esm/models/version/index.js.map +1 -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/constants.d.ts +1 -0
- package/build/esm/node/constants.js +1 -0
- package/build/esm/node/constants.js.map +1 -1
- package/build/esm/node/goTo.d.ts +1 -1
- package/build/esm/node/index.d.ts +4 -2
- package/build/esm/node/index.js +37 -36
- package/build/esm/node/index.js.map +1 -1
- package/build/esm/node/interaction.d.ts +1 -1
- package/build/esm/node/randomV2.d.ts +21 -0
- package/build/esm/node/randomV2.js +6 -0
- package/build/esm/node/randomV2.js.map +1 -0
- package/build/esm/node/stream.d.ts +1 -1
- package/build/esm/node/stream.js +1 -1
- package/build/esm/node/stream.js.map +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/index.js +11 -11
- package/build/esm/node/utils/index.js.map +1 -1
- package/build/esm/node/utils/mappings.d.ts +1 -1
- package/build/esm/project/index.d.ts +1 -1
- package/build/esm/request/index.js +1 -1
- package/build/esm/request/index.js.map +1 -1
- package/build/esm/runtimeLogs/index.js +3 -3
- package/build/esm/runtimeLogs/index.js.map +1 -1
- package/build/esm/runtimeLogs/logs/base.d.ts +5 -5
- package/build/esm/runtimeLogs/logs/index.js +3 -3
- package/build/esm/runtimeLogs/logs/index.js.map +1 -1
- package/build/esm/runtimeLogs/logs/kinds.d.ts +1 -1
- package/build/esm/runtimeLogs/logs/kinds.js +1 -1
- package/build/esm/runtimeLogs/logs/kinds.js.map +1 -1
- package/build/esm/runtimeLogs/logs/logs.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/runtimeLogs/runtime/index.js +1 -1
- package/build/esm/runtimeLogs/runtime/index.js.map +1 -1
- package/build/esm/runtimeLogs/utils/index.js +2 -2
- package/build/esm/runtimeLogs/utils/index.js.map +1 -1
- package/build/esm/runtimeLogs/utils/logs.js +1 -1
- package/build/esm/runtimeLogs/utils/logs.js.map +1 -1
- package/build/esm/trace/index.d.ts +20 -20
- package/build/esm/trace/index.js +1 -1
- package/build/esm/trace/index.js.map +1 -1
- package/build/esm/utils/index.js +3 -3
- package/build/esm/utils/index.js.map +1 -1
- package/build/esm/utils/node.d.ts +3 -2
- package/build/esm/utils/node.js +2 -1
- package/build/esm/utils/node.js.map +1 -1
- package/build/esm/utils/nodeType.d.ts +2 -1
- package/build/esm/utils/nodeType.js +2 -1
- package/build/esm/utils/nodeType.js.map +1 -1
- package/build/esm/utils/step.d.ts +3 -2
- package/build/esm/utils/step.js +2 -1
- package/build/esm/utils/step.js.map +1 -1
- package/build/esm/version/index.d.ts +2 -2
- package/build/esm/version/index.js +2 -2
- package/build/esm/version/index.js.map +1 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/logs/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/logs/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAyB;AAE5C,2DAA2D;AAC3D,MAAM,CAAN,IAAY,WAgCX;AAhCD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IAErB,aAAa;IACb,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,kCAAmB,CA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AAO;IACvC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO;IAE1C,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG;IAC/B,kBAAkB;IAClB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa;IAEnD,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM;IACrC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,WAAW;IACxC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,IAAI;IACjC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM;IAErC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO;CAC9B,CAAC;AAQX,+DAA+D;AAC/D,MAAM,UAAU,qBAAqB,CAAC,QAAkB;IACtD,OAAO,QAAQ,IAAI,0BAA0B,CAAC,CAAC,CAAC,0BAA0B,CAAC,QAA4B,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvH,CAAC"}
|
|
@@ -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
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './logBuffer';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/runtime/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/runtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './logs';
|
|
2
|
+
export * from './types';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/utils/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/utils/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../../src/runtimeLogs/utils/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,cAAc,GAAuC;IACzD,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;IACnB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IAClB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IAClB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;CACtB,CAAC;AAEF,6LAA6L;AAC7L,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAAe,EAAU,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtF,MAAM,cAAc,GAA0B,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAa,EAAqB,EAAE;IAC7D,OAAO,cAAc,CAAC,GAAG,CAAC,KAAY,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC"}
|
|
@@ -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;
|
package/build/esm/trace/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TraceType } from "../node/utils/trace
|
|
1
|
+
export { TraceType } from "../node/utils/trace";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/trace/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/trace/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,EAAE,4BAAqC"}
|
package/build/esm/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as node from
|
|
2
|
-
export * as nodeType from
|
|
3
|
-
export * as step from
|
|
1
|
+
export * as node from './node';
|
|
2
|
+
export * as nodeType from './nodeType';
|
|
3
|
+
export * as step from './step';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC"}
|
|
@@ -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;
|
|
@@ -19,6 +19,7 @@ export declare const isVisual: (value: BaseModels.BaseNode) => value is Node.Vis
|
|
|
19
19
|
export declare const isCarousel: (value: BaseModels.BaseNode) => value is Node.Carousel.Node;
|
|
20
20
|
export declare const isStream: (value: BaseModels.BaseNode) => value is Node.Stream.Node;
|
|
21
21
|
export declare const isRandom: (value: BaseModels.BaseNode) => value is Node.Random.Node;
|
|
22
|
+
export declare const isRandomV2: (value: BaseModels.BaseNode) => value is Node.RandomV2.Node;
|
|
22
23
|
export declare const isCapture: (value: BaseModels.BaseNode) => value is Node.Capture.Node;
|
|
23
24
|
export declare const isGeneral: (value: BaseModels.BaseNode) => value is Node.General.Node<Node.General.AnyTrace>;
|
|
24
25
|
export declare const isGoToNode: (value: BaseModels.BaseNode) => value is Node.GoToNode.Node;
|
package/build/esm/utils/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Node from "../node
|
|
1
|
+
import * as Node from "../node";
|
|
2
2
|
import { Utils } from '@voiceflow/common';
|
|
3
3
|
export const createNodeTypeguard = Utils.typeguard.createTypedTypeguardCreator();
|
|
4
4
|
export const isV1 = (node) => Utils.object.hasProperty(node, '_v') && node._v === 1;
|
|
@@ -19,6 +19,7 @@ export const isVisual = createNodeTypeguard(Node.NodeType.VISUAL);
|
|
|
19
19
|
export const isCarousel = createNodeTypeguard(Node.NodeType.CAROUSEL);
|
|
20
20
|
export const isStream = createNodeTypeguard(Node.NodeType.STREAM);
|
|
21
21
|
export const isRandom = createNodeTypeguard(Node.NodeType.RANDOM);
|
|
22
|
+
export const isRandomV2 = createNodeTypeguard(Node.NodeType.RANDOM_V2);
|
|
22
23
|
export const isCapture = createNodeTypeguard(Node.NodeType.CAPTURE);
|
|
23
24
|
export const isGeneral = createNodeTypeguard(Node.NodeType.GENERAL);
|
|
24
25
|
export const isGoToNode = createNodeTypeguard(Node.NodeType.GOTO_NODE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/utils/node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/utils/node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,gBAAyB;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,SAAS,CAAC,2BAA2B,EAAuB,CAAC;AAEtG,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,IAAyB,EAAyB,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;AAChI,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAe,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAgB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAgB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/E,M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,CAAC;AACvF,MAAM,CAAC,MAAM,UAAU,GAAG,mBAAmB,CAAqB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAsB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAsB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC9F,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,CAAwB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACnG,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAwB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -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;
|
|
@@ -21,6 +21,7 @@ export declare const isIntent: (value?: unknown) => value is Node.NodeType.INTEN
|
|
|
21
21
|
export declare const isStream: (value?: unknown) => value is Node.NodeType.STREAM;
|
|
22
22
|
export declare const isZapier: (value?: unknown) => value is Node.NodeType.ZAPIER;
|
|
23
23
|
export declare const isRandom: (value?: unknown) => value is Node.NodeType.RANDOM;
|
|
24
|
+
export declare const isRandomV2: (value?: unknown) => value is Node.NodeType.RANDOM_V2;
|
|
24
25
|
export declare const isCommand: (value?: unknown) => value is Node.NodeType.COMMAND;
|
|
25
26
|
export declare const isButtons: (value?: unknown) => value is Node.NodeType.BUTTONS;
|
|
26
27
|
export declare const isCapture: (value?: unknown) => value is Node.NodeType.CAPTURE;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Node from "../node
|
|
1
|
+
import * as Node from "../node";
|
|
2
2
|
import { Utils } from '@voiceflow/common';
|
|
3
3
|
export const createNodeTypeTypeguard = Utils.typeguard.createTypeguardCreator();
|
|
4
4
|
export const isIf = createNodeTypeTypeguard(Node.NodeType.IF);
|
|
@@ -22,6 +22,7 @@ export const isIntent = createNodeTypeTypeguard(Node.NodeType.INTENT);
|
|
|
22
22
|
export const isStream = createNodeTypeTypeguard(Node.NodeType.STREAM);
|
|
23
23
|
export const isZapier = createNodeTypeTypeguard(Node.NodeType.ZAPIER);
|
|
24
24
|
export const isRandom = createNodeTypeTypeguard(Node.NodeType.RANDOM);
|
|
25
|
+
export const isRandomV2 = createNodeTypeTypeguard(Node.NodeType.RANDOM_V2);
|
|
25
26
|
export const isCommand = createNodeTypeTypeguard(Node.NodeType.COMMAND);
|
|
26
27
|
export const isButtons = createNodeTypeTypeguard(Node.NodeType.BUTTONS);
|
|
27
28
|
export const isCapture = createNodeTypeTypeguard(Node.NodeType.CAPTURE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeType.js","sourceRoot":"","sources":["../../../src/utils/nodeType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"nodeType.js","sourceRoot":"","sources":["../../../src/utils/nodeType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,gBAAyB;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC,SAAS,CAAC,sBAAsB,EAAiB,CAAC;AAE/F,MAAM,CAAC,MAAM,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,KAAK,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAChE,MAAM,CAAC,MAAM,KAAK,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uB,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,YAAY,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,aAAa,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;AAClF,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,aAAa,GAAG,uBAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -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>;
|
|
@@ -22,6 +22,7 @@ export declare const isIntent: (value: BaseModels.BaseDiagramNode<import("@voice
|
|
|
22
22
|
export declare const isStream: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Stream.Step<Node.Stream.StepData, Node.Stream.StepPorts<Node.Stream.StepDefaultBuiltPorts>>;
|
|
23
23
|
export declare const isZapier: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Zapier.Step<Node.Zapier.StepData>;
|
|
24
24
|
export declare const isRandom: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Random.Step<Node.Random.StepData>;
|
|
25
|
+
export declare const isRandomV2: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.RandomV2.Step<Node.RandomV2.StepData>;
|
|
25
26
|
export declare const isCommand: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Command.Step<Node.Command.StepData>;
|
|
26
27
|
export declare const isButtons: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Buttons.Step<Node.Buttons.StepData>;
|
|
27
28
|
export declare const isCapture: (value: BaseModels.BaseDiagramNode<import("@voiceflow/common").AnyRecord>) => value is Node.Capture.Step<Node.Capture.StepData>;
|
package/build/esm/utils/step.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Node from "../node
|
|
1
|
+
import * as Node from "../node";
|
|
2
2
|
import { Utils } from '@voiceflow/common';
|
|
3
3
|
export const createStepTypeguard = Utils.typeguard.createTypedTypeguardCreator();
|
|
4
4
|
export const isIf = createStepTypeguard(Node.NodeType.IF);
|
|
@@ -22,6 +22,7 @@ export const isIntent = createStepTypeguard(Node.NodeType.INTENT);
|
|
|
22
22
|
export const isStream = createStepTypeguard(Node.NodeType.STREAM);
|
|
23
23
|
export const isZapier = createStepTypeguard(Node.NodeType.ZAPIER);
|
|
24
24
|
export const isRandom = createStepTypeguard(Node.NodeType.RANDOM);
|
|
25
|
+
export const isRandomV2 = createStepTypeguard(Node.NodeType.RANDOM_V2);
|
|
25
26
|
export const isCommand = createStepTypeguard(Node.NodeType.COMMAND);
|
|
26
27
|
export const isButtons = createStepTypeguard(Node.NodeType.BUTTONS);
|
|
27
28
|
export const isCapture = createStepTypeguard(Node.NodeType.CAPTURE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.js","sourceRoot":"","sources":["../../../src/utils/step.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"step.js","sourceRoot":"","sources":["../../../src/utils/step.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,gBAAyB;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,SAAS,CAAC,2BAA2B,EAA8B,CAAC;AAE7G,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAe,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAgB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAgB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAAgB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,MA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
+
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,5 +1,5 @@
|
|
|
1
|
-
import { defaultSettings } from
|
|
2
|
-
export * from
|
|
1
|
+
import { defaultSettings } from './settings';
|
|
2
|
+
export * from './settings';
|
|
3
3
|
export const defaultPlatformData = ({ slots = [], intents = [], settings = {}, publishing = {}, }) => ({
|
|
4
4
|
slots,
|
|
5
5
|
intents,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/version/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/version/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAY,MAAM,YAAY,CAAC;AAEvD,cAAc,YAAY,CAAC;AAS3B,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAS,EAC1C,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,EAAE,EACZ,QAAQ,GAAG,EAAE,EACb,UAAU,GAAG,EAAE,GACoC,EAAwB,EAAE,CAAC,CAAC;IAC/E,KAAK;IACL,OAAO;IACP,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC;IACnC,UAAU;CACX,CAAC,CAAC"}
|