@voiceflow/alexa-types 2.2.34 → 2.3.2
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/common/constants/intents.d.ts +5 -5
- package/build/common/constants/intents.js.map +1 -1
- package/build/common/constants/mappings.d.ts +7 -7
- package/build/common/constants/mappings.js +82 -82
- package/build/common/constants/mappings.js.map +1 -1
- package/build/common/diagram.d.ts +3 -3
- package/build/common/index.d.ts +8 -8
- package/build/common/index.js +9 -9
- package/build/common/index.js.map +1 -1
- package/build/common/{types.d.ts → models.d.ts} +0 -0
- package/build/common/{types.js → models.js} +1 -1
- package/build/common/models.js.map +1 -0
- package/build/common/node/accountLinking.d.ts +3 -3
- package/build/common/node/cancelPayment.d.ts +5 -5
- package/build/common/node/capture.d.ts +4 -4
- package/build/common/node/captureV2.d.ts +4 -4
- package/build/common/node/display.d.ts +5 -5
- package/build/common/node/event.d.ts +4 -4
- package/build/common/node/index.d.ts +9 -9
- package/build/common/node/interaction.d.ts +5 -5
- package/build/common/node/payment.d.ts +5 -5
- package/build/common/node/permission.d.ts +3 -3
- package/build/common/node/prompt.d.ts +3 -3
- package/build/common/node/reminder.d.ts +3 -3
- package/build/common/node/speak.d.ts +5 -5
- package/build/common/node/stream.d.ts +6 -6
- package/build/common/node/userInfo.d.ts +5 -5
- package/build/common/program.d.ts +3 -3
- package/build/common/project/index.d.ts +9 -10
- package/build/common/project/index.js +4 -4
- package/build/common/project/index.js.map +1 -1
- package/build/common/project/member.d.ts +5 -5
- package/build/common/project/member.js +4 -4
- package/build/common/project/member.js.map +1 -1
- package/build/common/project/product.d.ts +1 -1
- package/build/common/utils/index.d.ts +3 -0
- package/build/common/utils/index.js +17 -0
- package/build/common/utils/index.js.map +1 -1
- package/build/common/utils/node.d.ts +14 -0
- package/build/common/utils/node.js +37 -0
- package/build/common/utils/node.js.map +1 -0
- package/build/common/utils/step.d.ts +14 -0
- package/build/common/utils/step.js +38 -0
- package/build/common/utils/step.js.map +1 -0
- package/build/common/version/index.d.ts +14 -15
- package/build/common/version/index.js +12 -11
- package/build/common/version/index.js.map +1 -1
- package/build/common/version/publishing.d.ts +2 -2
- package/build/common/version/publishing.js +3 -3
- package/build/common/version/publishing.js.map +1 -1
- package/build/common/version/settings.d.ts +3 -3
- package/build/common/version/settings.js +5 -5
- package/build/common/version/settings.js.map +1 -1
- package/build/esm/constants/intents.d.ts +5 -5
- package/build/esm/constants/intents.js.map +1 -1
- package/build/esm/constants/mappings.d.ts +7 -7
- package/build/esm/constants/mappings.js +81 -81
- package/build/esm/constants/mappings.js.map +1 -1
- package/build/esm/diagram.d.ts +3 -3
- package/build/esm/index.d.ts +8 -8
- package/build/esm/index.js +8 -8
- package/build/esm/index.js.map +1 -1
- package/build/esm/{types.d.ts → models.d.ts} +0 -0
- package/build/esm/models.js +2 -0
- package/build/esm/models.js.map +1 -0
- package/build/esm/node/accountLinking.d.ts +3 -3
- package/build/esm/node/cancelPayment.d.ts +5 -5
- package/build/esm/node/capture.d.ts +4 -4
- package/build/esm/node/captureV2.d.ts +4 -4
- package/build/esm/node/display.d.ts +5 -5
- package/build/esm/node/event.d.ts +4 -4
- package/build/esm/node/index.d.ts +9 -9
- package/build/esm/node/interaction.d.ts +5 -5
- package/build/esm/node/payment.d.ts +5 -5
- package/build/esm/node/permission.d.ts +3 -3
- package/build/esm/node/prompt.d.ts +3 -3
- package/build/esm/node/reminder.d.ts +3 -3
- package/build/esm/node/speak.d.ts +5 -5
- package/build/esm/node/stream.d.ts +6 -6
- package/build/esm/node/userInfo.d.ts +5 -5
- package/build/esm/program.d.ts +3 -3
- package/build/esm/project/index.d.ts +9 -10
- package/build/esm/project/index.js +3 -3
- package/build/esm/project/index.js.map +1 -1
- package/build/esm/project/member.d.ts +5 -5
- package/build/esm/project/member.js +2 -2
- package/build/esm/project/member.js.map +1 -1
- package/build/esm/project/product.d.ts +1 -1
- package/build/esm/utils/index.d.ts +3 -0
- package/build/esm/utils/index.js +4 -0
- package/build/esm/utils/index.js.map +1 -1
- package/build/esm/utils/node.d.ts +14 -0
- package/build/esm/utils/node.js +15 -0
- package/build/esm/utils/node.js.map +1 -0
- package/build/esm/utils/step.d.ts +14 -0
- package/build/esm/utils/step.js +16 -0
- package/build/esm/utils/step.js.map +1 -0
- package/build/esm/version/index.d.ts +14 -15
- package/build/esm/version/index.js +13 -12
- package/build/esm/version/index.js.map +1 -1
- package/build/esm/version/publishing.d.ts +2 -2
- package/build/esm/version/publishing.js +1 -1
- package/build/esm/version/publishing.js.map +1 -1
- package/build/esm/version/settings.d.ts +3 -3
- package/build/esm/version/settings.js +3 -3
- package/build/esm/version/settings.js.map +1 -1
- package/package.json +6 -6
- package/build/common/types.js.map +0 -1
- package/build/esm/types.js +0 -2
- package/build/esm/types.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseNode } from '@voiceflow/base-types';
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
3
|
export declare enum ReminderType {
|
|
4
4
|
SCHEDULED_ABSOLUTE = "SCHEDULED_ABSOLUTE",
|
|
@@ -32,7 +32,7 @@ export interface Reminder {
|
|
|
32
32
|
export interface StepData {
|
|
33
33
|
reminder: Reminder;
|
|
34
34
|
}
|
|
35
|
-
export interface Step extends
|
|
35
|
+
export interface Step extends BaseNode.Utils.BaseStep<StepData> {
|
|
36
36
|
type: NodeType.REMINDER;
|
|
37
37
|
}
|
|
38
38
|
export interface NodeReminder extends Omit<Reminder, 'name' | 'recurrenceBool' | 'recurrence'> {
|
|
@@ -41,7 +41,7 @@ export interface NodeReminder extends Omit<Reminder, 'name' | 'recurrenceBool' |
|
|
|
41
41
|
freq: RecurrenceFreq;
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
export interface Node extends
|
|
44
|
+
export interface Node extends BaseNode.Utils.BaseNode, BaseNode.Utils.NodeSuccessFailID {
|
|
45
45
|
type: NodeType.REMINDER;
|
|
46
46
|
reminder: NodeReminder;
|
|
47
47
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoiceNode } from '@voiceflow/voice-types';
|
|
2
2
|
import { Voice } from "../constants";
|
|
3
|
-
export interface StepData extends
|
|
3
|
+
export interface StepData extends VoiceNode.Speak.StepData<Voice> {
|
|
4
4
|
}
|
|
5
|
-
export interface Step extends
|
|
5
|
+
export interface Step extends VoiceNode.Speak.Step<StepData> {
|
|
6
6
|
}
|
|
7
|
-
export interface SpeakNode extends
|
|
7
|
+
export interface SpeakNode extends VoiceNode.Speak.SpeakNode {
|
|
8
8
|
}
|
|
9
|
-
export interface RandomSpeakNode extends
|
|
9
|
+
export interface RandomSpeakNode extends VoiceNode.Speak.RandomSpeakNode {
|
|
10
10
|
}
|
|
11
11
|
export declare type Node = SpeakNode | RandomSpeakNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseNode } from '@voiceflow/base-types';
|
|
2
2
|
export interface StepData {
|
|
3
3
|
loop: boolean;
|
|
4
4
|
audio: string;
|
|
@@ -8,16 +8,16 @@ export interface StepData {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
backgroundImage?: string;
|
|
10
10
|
}
|
|
11
|
-
export interface Step extends
|
|
11
|
+
export interface Step extends BaseNode.Stream.Step<StepData> {
|
|
12
12
|
}
|
|
13
|
-
export interface Node extends Pick<
|
|
13
|
+
export interface Node extends Pick<BaseNode.Stream.Node, keyof BaseNode.Utils.BaseNode> {
|
|
14
14
|
loop: boolean;
|
|
15
15
|
play: string;
|
|
16
|
-
NEXT?:
|
|
16
|
+
NEXT?: BaseNode.Utils.NodeID;
|
|
17
17
|
title?: string;
|
|
18
|
-
nextId?:
|
|
18
|
+
nextId?: BaseNode.Utils.NodeID;
|
|
19
19
|
PAUSE_ID: string;
|
|
20
|
-
PREVIOUS?:
|
|
20
|
+
PREVIOUS?: BaseNode.Utils.NodeID;
|
|
21
21
|
icon_img?: string;
|
|
22
22
|
description?: string;
|
|
23
23
|
background_img?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseNode, Nullable } from '@voiceflow/base-types';
|
|
2
2
|
import { NodeType, PermissionType } from './constants';
|
|
3
3
|
export interface UserInfo {
|
|
4
4
|
type: Nullable<PermissionType>;
|
|
@@ -19,15 +19,15 @@ export interface Permission {
|
|
|
19
19
|
value: string;
|
|
20
20
|
}>;
|
|
21
21
|
}
|
|
22
|
-
export interface Step extends
|
|
22
|
+
export interface Step extends BaseNode.Utils.BaseStep<StepData> {
|
|
23
23
|
type: NodeType.USER_INFO;
|
|
24
24
|
}
|
|
25
|
-
export interface BaseTypedNode extends
|
|
25
|
+
export interface BaseTypedNode extends BaseNode.Utils.BaseNode {
|
|
26
26
|
type: NodeType.USER_INFO;
|
|
27
27
|
}
|
|
28
|
-
export interface NextNode extends
|
|
28
|
+
export interface NextNode extends BaseTypedNode, BaseNode.Utils.NodeNextID {
|
|
29
29
|
}
|
|
30
|
-
export interface UseInfoNode extends
|
|
30
|
+
export interface UseInfoNode extends BaseTypedNode, BaseNode.Utils.NodeSuccessFailID {
|
|
31
31
|
permissions: Permission[];
|
|
32
32
|
}
|
|
33
33
|
export declare type Node = NextNode | UseInfoNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
1
|
+
import { BaseModels } from '@voiceflow/base-types';
|
|
2
|
+
import { AnyCommand, AnyNode } from './node';
|
|
3
|
+
export interface Program extends BaseModels.Program.Model<AnyNode, AnyCommand> {
|
|
4
4
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { AlexaProduct } from './product';
|
|
1
|
+
import { VoiceProject } from '@voiceflow/voice-types';
|
|
2
|
+
import { MemberPlatformData } from './member';
|
|
3
|
+
import { Product } from './product';
|
|
5
4
|
export * from './member';
|
|
6
5
|
export * from './product';
|
|
7
|
-
export interface
|
|
8
|
-
products: Record<string,
|
|
6
|
+
export interface PlatformData {
|
|
7
|
+
products: Record<string, Product>;
|
|
9
8
|
}
|
|
10
|
-
export interface
|
|
11
|
-
|
|
9
|
+
export interface Project extends VoiceProject.Project<MemberPlatformData> {
|
|
10
|
+
type: 'voice';
|
|
12
11
|
platform: 'alexa';
|
|
13
|
-
platformData:
|
|
12
|
+
platformData: PlatformData;
|
|
14
13
|
}
|
|
15
|
-
export declare const
|
|
14
|
+
export declare const defaultPlatformData: ({ products, ...data }?: Partial<PlatformData>) => PlatformData;
|
|
@@ -21,13 +21,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.defaultPlatformData = void 0;
|
|
25
25
|
const voice_types_1 = require("@voiceflow/voice-types");
|
|
26
26
|
__exportStar(require("./member"), exports);
|
|
27
27
|
__exportStar(require("./product"), exports);
|
|
28
|
-
const
|
|
28
|
+
const defaultPlatformData = (_a = {}) => {
|
|
29
29
|
var { products = {} } = _a, data = __rest(_a, ["products"]);
|
|
30
|
-
return (Object.assign(Object.assign({}, voice_types_1.
|
|
30
|
+
return (Object.assign(Object.assign({}, voice_types_1.VoiceProject.defaultPlatformData(data)), { products }));
|
|
31
31
|
};
|
|
32
|
-
exports.
|
|
32
|
+
exports.defaultPlatformData = defaultPlatformData;
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/project/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/project/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAsD;AAKtD,2CAAyB;AACzB,4CAA0B;AAYnB,MAAM,mBAAmB,GAAG,CAAC,KAAoD,EAAE,EAAgB,EAAE;QAAxE,EAAE,QAAQ,GAAG,EAAE,OAAuC,EAAlC,IAAI,cAAxB,YAA0B,CAAF;IAAiD,OAAA,iCACxG,0BAAY,CAAC,mBAAmB,CAAC,IAAI,CAAC,KACzC,QAAQ,IACR,CAAA;CAAA,CAAC;AAHU,QAAA,mBAAmB,uBAG7B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Nullable } from '@voiceflow/base-types';
|
|
1
|
+
import { BaseProject, Nullable } from '@voiceflow/base-types';
|
|
2
2
|
export interface Vendor {
|
|
3
|
-
vendorID: string;
|
|
4
3
|
skillID: string;
|
|
4
|
+
vendorID: string;
|
|
5
5
|
products: Record<string, string>;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
8
|
-
selectedVendor: Nullable<string>;
|
|
7
|
+
export interface MemberPlatformData extends BaseProject.MemberPlatformData {
|
|
9
8
|
vendors: Vendor[];
|
|
9
|
+
selectedVendor: Nullable<string>;
|
|
10
10
|
}
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const defaultMemberPlatformData: ({ vendors, selectedVendor }?: Partial<MemberPlatformData>) => MemberPlatformData;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
selectedVendor,
|
|
3
|
+
exports.defaultMemberPlatformData = void 0;
|
|
4
|
+
const defaultMemberPlatformData = ({ vendors = [], selectedVendor = null } = {}) => ({
|
|
6
5
|
vendors,
|
|
6
|
+
selectedVendor,
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.defaultMemberPlatformData = defaultMemberPlatformData;
|
|
9
9
|
//# sourceMappingURL=member.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../../src/project/member.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../../src/project/member.ts"],"names":[],"mappings":";;;AAgBO,MAAM,yBAAyB,GAAG,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,cAAc,GAAG,IAAI,KAAkC,EAAE,EAAsB,EAAE,CAAC,CAAC;IAC3I,OAAO;IACP,cAAc;CACf,CAAC,CAAC;AAHU,QAAA,yBAAyB,6BAGnC"}
|
|
@@ -6,9 +6,26 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
6
6
|
if (k2 === undefined) k2 = k;
|
|
7
7
|
o[k2] = m[k];
|
|
8
8
|
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
9
21
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
22
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
23
|
};
|
|
12
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.step = exports.node = exports.invocationName = void 0;
|
|
26
|
+
exports.invocationName = __importStar(require("./invocationName"));
|
|
27
|
+
exports.node = __importStar(require("./node"));
|
|
28
|
+
exports.step = __importStar(require("./step"));
|
|
29
|
+
// TODO: remove after code migration
|
|
13
30
|
__exportStar(require("./invocationName"), exports);
|
|
14
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAAmD;AACnD,+CAA+B;AAC/B,+CAA+B;AAE/B,oCAAoC;AACpC,mDAAiC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseNode } from '@voiceflow/base-types';
|
|
2
|
+
import * as Node from "../node";
|
|
3
|
+
export declare const isSpeak: (value: BaseNode.Utils.BaseNode) => value is Node.Speak.Node;
|
|
4
|
+
export declare const isStream: (value: BaseNode.Utils.BaseNode) => value is Node.Stream.Node;
|
|
5
|
+
export declare const isCapture: (value: BaseNode.Utils.BaseNode) => value is Node.Capture.Node;
|
|
6
|
+
export declare const isDisplay: (value: BaseNode.Utils.BaseNode) => value is Node.Display.Node;
|
|
7
|
+
export declare const isPayment: (value: BaseNode.Utils.BaseNode) => value is Node.Payment.Node;
|
|
8
|
+
export declare const isReminder: (value: BaseNode.Utils.BaseNode) => value is Node.Reminder.Node;
|
|
9
|
+
export declare const isUserInfo: (value: BaseNode.Utils.BaseNode) => value is Node.UserInfo.Node;
|
|
10
|
+
export declare const isCaptureV2: (value: BaseNode.Utils.BaseNode) => value is Node.CaptureV2.Node;
|
|
11
|
+
export declare const isPermission: (value: BaseNode.Utils.BaseNode) => value is Node.Permission.Node;
|
|
12
|
+
export declare const isInteraction: (value: BaseNode.Utils.BaseNode) => value is Node.Interaction.Node;
|
|
13
|
+
export declare const isCancelPayment: (value: BaseNode.Utils.BaseNode) => value is Node.CancelPayment.Node;
|
|
14
|
+
export declare const isAccountLinking: (value: BaseNode.Utils.BaseNode) => value is Node.AccountLinking.Node;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.isAccountLinking = exports.isCancelPayment = exports.isInteraction = exports.isPermission = exports.isCaptureV2 = exports.isUserInfo = exports.isReminder = exports.isPayment = exports.isDisplay = exports.isCapture = exports.isStream = exports.isSpeak = void 0;
|
|
23
|
+
const base_types_1 = require("@voiceflow/base-types");
|
|
24
|
+
const Node = __importStar(require("../node"));
|
|
25
|
+
exports.isSpeak = base_types_1.BaseUtils.node.createNodeTypeguard(base_types_1.BaseNode.NodeType.SPEAK);
|
|
26
|
+
exports.isStream = base_types_1.BaseUtils.node.createNodeTypeguard(base_types_1.BaseNode.NodeType.STREAM);
|
|
27
|
+
exports.isCapture = base_types_1.BaseUtils.node.createNodeTypeguard(base_types_1.BaseNode.NodeType.CAPTURE);
|
|
28
|
+
exports.isDisplay = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.DISPLAY);
|
|
29
|
+
exports.isPayment = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.PAYMENT);
|
|
30
|
+
exports.isReminder = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.REMINDER);
|
|
31
|
+
exports.isUserInfo = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.USER_INFO);
|
|
32
|
+
exports.isCaptureV2 = base_types_1.BaseUtils.node.createNodeTypeguard(base_types_1.BaseNode.NodeType.CAPTURE_V2);
|
|
33
|
+
exports.isPermission = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.PERMISSION);
|
|
34
|
+
exports.isInteraction = base_types_1.BaseUtils.node.createNodeTypeguard(base_types_1.BaseNode.NodeType.INTERACTION);
|
|
35
|
+
exports.isCancelPayment = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.CANCEL_PAYMENT);
|
|
36
|
+
exports.isAccountLinking = base_types_1.BaseUtils.node.createNodeTypeguard(Node.NodeType.ACCOUNT_LINKING);
|
|
37
|
+
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/utils/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA4D;AAE5D,8CAA+B;AAElB,QAAA,OAAO,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAkB,qBAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvF,QAAA,QAAQ,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAmB,qBAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC1F,QAAA,SAAS,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAoB,qBAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC7F,QAAA,SAAS,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAoB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACzF,QAAA,SAAS,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAoB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACzF,QAAA,UAAU,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAqB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC5F,QAAA,UAAU,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAqB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC7F,QAAA,WAAW,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAsB,qBAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACpG,QAAA,YAAY,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAuB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClG,QAAA,aAAa,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAwB,qBAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACzG,QAAA,eAAe,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAA0B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;AAC5G,QAAA,gBAAgB,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAA2B,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Node from "../node";
|
|
2
|
+
export declare const isSpeak: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Speak.Step;
|
|
3
|
+
export declare const isPrompt: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Prompt.Step;
|
|
4
|
+
export declare const isStream: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Stream.Step;
|
|
5
|
+
export declare const isCapture: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Capture.Step;
|
|
6
|
+
export declare const isDisplay: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Display.Step;
|
|
7
|
+
export declare const isPayment: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Payment.Step;
|
|
8
|
+
export declare const isReminder: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Reminder.Step;
|
|
9
|
+
export declare const isUserInfo: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.UserInfo.Step;
|
|
10
|
+
export declare const isCaptureV2: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.CaptureV2.Step;
|
|
11
|
+
export declare const isPermission: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Permission.Step;
|
|
12
|
+
export declare const isInteraction: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.Interaction.Step;
|
|
13
|
+
export declare const isCancelPayment: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.CancelPayment.Step;
|
|
14
|
+
export declare const isAccountLinking: (value: import("../../../base-types/build/common/models").BaseDiagramNode<import("@voiceflow/base-types").AnyRecord>) => value is Node.AccountLinking.Step;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.isAccountLinking = exports.isCancelPayment = exports.isInteraction = exports.isPermission = exports.isCaptureV2 = exports.isUserInfo = exports.isReminder = exports.isPayment = exports.isDisplay = exports.isCapture = exports.isStream = exports.isPrompt = exports.isSpeak = void 0;
|
|
23
|
+
const base_types_1 = require("@voiceflow/base-types");
|
|
24
|
+
const Node = __importStar(require("../node"));
|
|
25
|
+
exports.isSpeak = base_types_1.BaseUtils.step.createStepTypeguard(base_types_1.BaseNode.NodeType.SPEAK);
|
|
26
|
+
exports.isPrompt = base_types_1.BaseUtils.step.createStepTypeguard(base_types_1.BaseNode.NodeType.PROMPT);
|
|
27
|
+
exports.isStream = base_types_1.BaseUtils.step.createStepTypeguard(base_types_1.BaseNode.NodeType.STREAM);
|
|
28
|
+
exports.isCapture = base_types_1.BaseUtils.step.createStepTypeguard(base_types_1.BaseNode.NodeType.CAPTURE);
|
|
29
|
+
exports.isDisplay = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.DISPLAY);
|
|
30
|
+
exports.isPayment = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.PAYMENT);
|
|
31
|
+
exports.isReminder = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.REMINDER);
|
|
32
|
+
exports.isUserInfo = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.USER_INFO);
|
|
33
|
+
exports.isCaptureV2 = base_types_1.BaseUtils.step.createStepTypeguard(base_types_1.BaseNode.NodeType.CAPTURE_V2);
|
|
34
|
+
exports.isPermission = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.PERMISSION);
|
|
35
|
+
exports.isInteraction = base_types_1.BaseUtils.step.createStepTypeguard(base_types_1.BaseNode.NodeType.INTERACTION);
|
|
36
|
+
exports.isCancelPayment = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.CANCEL_PAYMENT);
|
|
37
|
+
exports.isAccountLinking = base_types_1.BaseUtils.step.createStepTypeguard(Node.NodeType.ACCOUNT_LINKING);
|
|
38
|
+
//# sourceMappingURL=step.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step.js","sourceRoot":"","sources":["../../../src/utils/step.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA4D;AAE5D,8CAA+B;AAElB,QAAA,OAAO,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAkB,qBAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvF,QAAA,QAAQ,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAmB,qBAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC1F,QAAA,QAAQ,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAmB,qBAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC1F,QAAA,SAAS,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAoB,qBAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC7F,QAAA,SAAS,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAoB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACzF,QAAA,SAAS,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAoB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACzF,QAAA,UAAU,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAqB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC5F,QAAA,UAAU,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAqB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC7F,QAAA,WAAW,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAsB,qBAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACpG,QAAA,YAAY,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAuB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClG,QAAA,aAAa,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAAwB,qBAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACzG,QAAA,eAAe,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAA0B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;AAC5G,QAAA,gBAAgB,GAAG,sBAAS,CAAC,IAAI,CAAC,mBAAmB,CAA2B,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BaseModels, DeepPartialByKey } from '@voiceflow/base-types';
|
|
2
|
+
import { VoiceVersion } from '@voiceflow/voice-types';
|
|
3
|
+
import { VoiceflowConstants } from '@voiceflow/voiceflow-types';
|
|
4
4
|
import { Voice } from "../constants";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { AnyCommand } from "../node";
|
|
6
|
+
import { Publishing } from './publishing';
|
|
7
|
+
import { Settings } from './settings';
|
|
8
8
|
export * from './publishing';
|
|
9
9
|
export * from './settings';
|
|
10
|
-
export declare enum
|
|
10
|
+
export declare enum Stage {
|
|
11
11
|
DEV = "DEV",
|
|
12
12
|
LIVE = "LIVE",
|
|
13
13
|
REVIEW = "REVIEW"
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface PlatformData extends VoiceVersion.PlatformData<Voice> {
|
|
16
16
|
status: {
|
|
17
|
-
stage:
|
|
17
|
+
stage: Stage;
|
|
18
18
|
};
|
|
19
|
-
settings:
|
|
20
|
-
publishing:
|
|
19
|
+
settings: Settings;
|
|
20
|
+
publishing: Publishing;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
23
|
-
|
|
24
|
-
platformData: AlexaVersionData;
|
|
22
|
+
export interface Version extends VoiceVersion.Version<Voice, BaseModels.Version.Prototype<AnyCommand, VoiceflowConstants.Locale>> {
|
|
23
|
+
platformData: PlatformData;
|
|
25
24
|
}
|
|
26
|
-
export declare const
|
|
25
|
+
export declare const defaultPlatformData: ({ status: { stage }, settings, publishing, ...generalVersionData }: DeepPartialByKey<PlatformData, 'publishing' | 'settings'>) => PlatformData;
|
|
@@ -21,22 +21,23 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.defaultPlatformData = exports.Stage = void 0;
|
|
25
25
|
const voice_types_1 = require("@voiceflow/voice-types");
|
|
26
26
|
const constants_1 = require("../constants");
|
|
27
27
|
const publishing_1 = require("./publishing");
|
|
28
28
|
const settings_1 = require("./settings");
|
|
29
29
|
__exportStar(require("./publishing"), exports);
|
|
30
30
|
__exportStar(require("./settings"), exports);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
// shared only across voiceflow types
|
|
32
|
+
var Stage;
|
|
33
|
+
(function (Stage) {
|
|
34
|
+
Stage["DEV"] = "DEV";
|
|
35
|
+
Stage["LIVE"] = "LIVE";
|
|
36
|
+
Stage["REVIEW"] = "REVIEW";
|
|
37
|
+
})(Stage = exports.Stage || (exports.Stage = {}));
|
|
38
|
+
const defaultPlatformData = (_a) => {
|
|
39
|
+
var { status: { stage = Stage.DEV } = { stage: Stage.DEV }, settings, publishing } = _a, generalVersionData = __rest(_a, ["status", "settings", "publishing"]);
|
|
40
|
+
return (Object.assign(Object.assign({}, voice_types_1.VoiceVersion.defaultPlatformData(generalVersionData, { defaultPromptVoice: constants_1.Voice.ALEXA })), { status: { stage }, settings: (0, settings_1.defaultSettings)(settings), publishing: (0, publishing_1.defaultPublishing)(publishing) }));
|
|
40
41
|
};
|
|
41
|
-
exports.
|
|
42
|
+
exports.defaultPlatformData = defaultPlatformData;
|
|
42
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/version/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/version/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAAsD;AAGtD,4CAAoC;AAGpC,6CAA6D;AAC7D,yCAAuD;AAEvD,+CAA6B;AAC7B,6CAA2B;AAE3B,qCAAqC;AAErC,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,oBAAW,CAAA;IACX,sBAAa,CAAA;IACb,0BAAiB,CAAA;AACnB,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AAYM,MAAM,mBAAmB,GAAG,CAAC,EAKwB,EAAgB,EAAE;QAL1C,EAClC,MAAM,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,EACpD,QAAQ,EACR,UAAU,OAEgD,EADvD,kBAAkB,cAJa,oCAKnC,CADsB;IACwD,OAAA,iCAC1E,0BAAY,CAAC,mBAAmB,CAAQ,kBAAkB,EAAE,EAAE,kBAAkB,EAAE,iBAAK,CAAC,KAAK,EAAE,CAAC,KACnG,MAAM,EAAE,EAAE,KAAK,EAAE,EACjB,QAAQ,EAAE,IAAA,0BAAe,EAAC,QAAQ,CAAC,EACnC,UAAU,EAAE,IAAA,8BAAiB,EAAC,UAAU,CAAC,IACzC,CAAA;CAAA,CAAC;AAVU,QAAA,mBAAmB,uBAU7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Locale } from "../constants";
|
|
2
|
-
export interface
|
|
2
|
+
export interface Publishing {
|
|
3
3
|
forExport: boolean;
|
|
4
4
|
hasAds: boolean;
|
|
5
5
|
summary: string;
|
|
@@ -19,4 +19,4 @@ export interface AlexaVersionPublishing {
|
|
|
19
19
|
termsAndConditions: string;
|
|
20
20
|
updatesDescription?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const defaultPublishing: ({ invocationName, hasPurchase, forExport, hasAds, forChildren, personal, smallIcon, largeIcon, invocations, summary, description, instructions, privacyPolicy, termsAndConditions, keywords, category, locales, updatesDescription, }?: Partial<Publishing>) => Publishing;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.defaultPublishing = void 0;
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
|
-
const
|
|
5
|
+
const defaultPublishing = ({ invocationName = '', hasPurchase = false, forExport = true, hasAds = false, forChildren = false, personal = false, smallIcon = '', largeIcon = '', invocations = [], summary = '', description = '', instructions = '', privacyPolicy = '', termsAndConditions = '', keywords = '', category = '', locales = [constants_1.Locale.EN_US], updatesDescription, } = {}) => ({
|
|
6
6
|
summary,
|
|
7
7
|
invocations,
|
|
8
8
|
smallIcon,
|
|
@@ -22,5 +22,5 @@ const defaultAlexaVersionPublishing = ({ invocationName = '', hasPurchase = fals
|
|
|
22
22
|
locales,
|
|
23
23
|
updatesDescription,
|
|
24
24
|
});
|
|
25
|
-
exports.
|
|
25
|
+
exports.defaultPublishing = defaultPublishing;
|
|
26
26
|
//# sourceMappingURL=publishing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publishing.js","sourceRoot":"","sources":["../../../src/version/publishing.ts"],"names":[],"mappings":";;;AAAA,4CAAqC;AAuB9B,MAAM,
|
|
1
|
+
{"version":3,"file":"publishing.js","sourceRoot":"","sources":["../../../src/version/publishing.ts"],"names":[],"mappings":";;;AAAA,4CAAqC;AAuB9B,MAAM,iBAAiB,GAAG,CAAC,EAChC,cAAc,GAAG,EAAE,EACnB,WAAW,GAAG,KAAK,EACnB,SAAS,GAAG,IAAI,EAChB,MAAM,GAAG,KAAK,EACd,WAAW,GAAG,KAAK,EACnB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,EAAE,EAChB,OAAO,GAAG,EAAE,EACZ,WAAW,GAAG,EAAE,EAChB,YAAY,GAAG,EAAE,EACjB,aAAa,GAAG,EAAE,EAClB,kBAAkB,GAAG,EAAE,EACvB,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,OAAO,GAAG,CAAC,kBAAM,CAAC,KAAK,CAAC,EACxB,kBAAkB,MACK,EAAE,EAAc,EAAE,CAAC,CAAC;IAC3C,OAAO;IACP,WAAW;IACX,SAAS;IACT,SAAS;IACT,MAAM;IACN,QAAQ;IACR,SAAS;IACT,cAAc;IACd,WAAW;IACX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,aAAa;IACb,kBAAkB;IAClB,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,kBAAkB;CACnB,CAAC,CAAC;AAtCU,QAAA,iBAAiB,qBAsC3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Nullable } from '@voiceflow/base-types';
|
|
2
|
-
import {
|
|
2
|
+
import { VoiceVersion } from '@voiceflow/voice-types';
|
|
3
3
|
import { v1 } from 'ask-smapi-model';
|
|
4
4
|
import { Voice } from "../constants";
|
|
5
5
|
export declare enum AccountLinkingType {
|
|
@@ -26,7 +26,7 @@ export interface AccountLinking {
|
|
|
26
26
|
accessTokenScheme: v1.skill.accountLinking.AccessTokenSchemeType;
|
|
27
27
|
defaultTokenExpirationInSeconds: number;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface Settings extends VoiceVersion.Settings<Voice> {
|
|
30
30
|
events: Nullable<string>;
|
|
31
31
|
permissions: string[];
|
|
32
32
|
accountLinking: Nullable<AccountLinking>;
|
|
@@ -34,4 +34,4 @@ export interface AlexaVersionSettings extends Version.VoiceVersionSettings<Voice
|
|
|
34
34
|
modelSensitivity: Nullable<ModelSensitivity>;
|
|
35
35
|
}
|
|
36
36
|
export declare const defaultAccountLinking: (accountLinking?: Nullable<Partial<AccountLinking>> | undefined) => Nullable<AccountLinking>;
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const defaultSettings: ({ events, permissions, accountLinking, customInterface, modelSensitivity, ...voiceSettings }?: Partial<Settings>) => Settings;
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
14
|
+
exports.defaultSettings = exports.defaultAccountLinking = exports.AccountLinkingAccessTokenScheme = exports.ModelSensitivity = exports.AccountLinkingType = void 0;
|
|
15
15
|
const voice_types_1 = require("@voiceflow/voice-types");
|
|
16
16
|
const constants_1 = require("../constants");
|
|
17
17
|
var AccountLinkingType;
|
|
@@ -48,11 +48,11 @@ const defaultAccountLinking = (accountLinking) => {
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
exports.defaultAccountLinking = defaultAccountLinking;
|
|
51
|
-
const
|
|
51
|
+
const defaultSettings = (_a = {}) => {
|
|
52
52
|
var { events = null, permissions = [], accountLinking, customInterface = false, modelSensitivity = null } = _a, voiceSettings = __rest(_a, ["events", "permissions", "accountLinking", "customInterface", "modelSensitivity"]);
|
|
53
|
-
return (Object.assign(Object.assign({}, voice_types_1.
|
|
54
|
-
permissions, accountLinking: exports.defaultAccountLinking(accountLinking), customInterface,
|
|
53
|
+
return (Object.assign(Object.assign({}, voice_types_1.VoiceVersion.defaultSettings(voiceSettings, { defaultPromptVoice: constants_1.Voice.ALEXA })), { events,
|
|
54
|
+
permissions, accountLinking: (0, exports.defaultAccountLinking)(accountLinking), customInterface,
|
|
55
55
|
modelSensitivity }));
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
57
|
+
exports.defaultSettings = defaultSettings;
|
|
58
58
|
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/version/settings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/version/settings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,wDAAsD;AAGtD,4CAAoC;AAEpC,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;AACzB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;IACb,qCAAiB,CAAA;AACnB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,4DAAyB,CAAA;IACzB,wFAAqD,CAAA;AACvD,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AAsBM,MAAM,qBAAqB,GAAG,CAAC,cAAkD,EAA4B,EAAE;IACpH,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EACJ,IAAI,GAAG,kBAAkB,CAAC,SAAS,EACnC,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,EAAE,EACZ,QAAQ,GAAG,EAAE,EACb,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,EAAE,EACnB,gBAAgB,GAAG,EAAE,EACrB,iBAAiB,GAAG,+BAA+B,CAAC,UAAU,EAC9D,+BAA+B,GAAG,IAAI,GACvC,GAAG,cAAc,CAAC;IAEnB,OAAO;QACL,IAAI;QACJ,MAAM;QACN,OAAO;QACP,QAAQ;QACR,YAAY;QACZ,cAAc;QACd,gBAAgB;QAChB,iBAAiB;QACjB,+BAA+B;KAChC,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,qBAAqB,yBA4BhC;AAEK,MAAM,eAAe,GAAG,CAAC,KAOT,EAAE,EAAY,EAAE;QAPP,EAC9B,MAAM,GAAG,IAAI,EACb,WAAW,GAAG,EAAE,EAChB,cAAc,EACd,eAAe,GAAG,KAAK,EACvB,gBAAgB,GAAG,IAAI,OAEA,EADpB,aAAa,cANc,kFAO/B,CADiB;IACsB,OAAA,iCACnC,0BAAY,CAAC,eAAe,CAAQ,aAAa,EAAE,EAAE,kBAAkB,EAAE,iBAAK,CAAC,KAAK,EAAE,CAAC,KAC1F,MAAM;QACN,WAAW,EACX,cAAc,EAAE,IAAA,6BAAqB,EAAC,cAAc,CAAC,EACrD,eAAe;QACf,gBAAgB,IAChB,CAAA;CAAA,CAAC;AAdU,QAAA,eAAe,mBAczB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuiltinIntent } from '@voiceflow/common';
|
|
2
|
-
import {
|
|
2
|
+
import { VoiceflowConstants } from '@voiceflow/voiceflow-types';
|
|
3
3
|
import { v1 } from 'ask-smapi-model';
|
|
4
4
|
export declare type InterfaceType = v1.skill.Manifest.Interface['type'];
|
|
5
5
|
export declare enum AmazonIntent {
|
|
@@ -36,7 +36,7 @@ export declare enum IntentPrefix {
|
|
|
36
36
|
CUSTOM = "CUSTOM",
|
|
37
37
|
CAPTURE = "CAPTURE"
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface DefaultIntent extends VoiceflowConstants.DefaultIntent {
|
|
40
40
|
keep?: string[];
|
|
41
41
|
}
|
|
42
42
|
export declare const INTERFACE_INTENTS: Partial<Record<InterfaceType, {
|
|
@@ -44,7 +44,7 @@ export declare const INTERFACE_INTENTS: Partial<Record<InterfaceType, {
|
|
|
44
44
|
}[]>>;
|
|
45
45
|
export declare const BUILT_IN_INTENTS: BuiltinIntent[];
|
|
46
46
|
export declare const DEFAULT_INTENTS: Record<string, {
|
|
47
|
-
defaults:
|
|
48
|
-
builtIns:
|
|
47
|
+
defaults: DefaultIntent[];
|
|
48
|
+
builtIns: DefaultIntent[];
|
|
49
49
|
}>;
|
|
50
|
-
export declare const CATCH_ALL_INTENT: Record<string,
|
|
50
|
+
export declare const CATCH_ALL_INTENT: Record<string, DefaultIntent>;
|