New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@voiceflow/alexa-types

Package Overview
Dependencies
Maintainers
14
Versions
539
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voiceflow/alexa-types - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

build/lib/nodes/flow.js

1

.eslintrc.js

@@ -39,2 +39,3 @@ module.exports = {

'no-useless-constructor': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/camelcase': 'off',

@@ -41,0 +42,0 @@ '@typescript-eslint/no-explicit-any': 'off',

2

build/lib/nodes/index.js

@@ -13,3 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./speak"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DialogType = void 0;
var DialogType;
(function (DialogType) {
DialogType["AUDIO"] = "audio";
DialogType["VOICE"] = "voice";
})(DialogType = exports.DialogType || (exports.DialogType = {}));
//# sourceMappingURL=speak.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeType = void 0;
exports.DialogType = exports.NodeType = void 0;
// eslint-disable-next-line import/prefer-default-export

@@ -8,3 +8,9 @@ var NodeType;

NodeType["SPEAK"] = "speak";
NodeType["FLOW"] = "flow";
})(NodeType = exports.NodeType || (exports.NodeType = {}));
var DialogType;
(function (DialogType) {
DialogType["AUDIO"] = "audio";
DialogType["VOICE"] = "voice";
})(DialogType = exports.DialogType || (exports.DialogType = {}));
//# sourceMappingURL=types.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultAlexaSettings = exports.defaultPrompt = exports.defaultAccountLinking = exports.Session = exports.Repeat = void 0;
exports.defaultAlexaSettings = exports.defaultPrompt = exports.defaultAccountLinking = exports.SessionType = exports.RepeatType = void 0;
const types_1 = require("../types");
var Repeat;
(function (Repeat) {
Repeat["OFF"] = "OFF";
Repeat["DIALOG"] = "DIALOG";
Repeat["ALL"] = "ALL";
})(Repeat = exports.Repeat || (exports.Repeat = {}));
var Session;
(function (Session) {
Session["RESTART"] = "restart";
Session["RESUME"] = "resume";
})(Session = exports.Session || (exports.Session = {}));
var RepeatType;
(function (RepeatType) {
RepeatType["OFF"] = "OFF";
RepeatType["DIALOG"] = "DIALOG";
RepeatType["ALL"] = "ALL";
})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));
var SessionType;
(function (SessionType) {
SessionType["RESTART"] = "restart";
SessionType["RESUME"] = "resume";
})(SessionType = exports.SessionType || (exports.SessionType = {}));
exports.defaultAccountLinking = (accountLinking) => {

@@ -39,3 +39,3 @@ if (!accountLinking)

};
exports.defaultAlexaSettings = ({ events = null, customInterface = false, session = { type: Session.RESTART }, repeat = Repeat.ALL, accountLinking, error, } = {}) => ({
exports.defaultAlexaSettings = ({ events = null, customInterface = false, session = { type: SessionType.RESTART }, repeat = RepeatType.ALL, accountLinking, error, } = {}) => ({
events,

@@ -42,0 +42,0 @@ customInterface,

import { Diagram } from '@voiceflow/api-sdk';
import { AlexaStep } from './nodes';
import { AlexaSteps } from './nodes';
export type AlexaDiagram = Diagram<AlexaStep>;
export type AlexaDiagram = Diagram<AlexaSteps>;

@@ -0,7 +1,18 @@

import { FlowNode, FlowStep } from './flow';
import { SpeakNode, SpeakStep } from './speak';
export * from './speak';
export * from './types';
export type AlexaStep = SpeakStep;
export namespace AlexaStep {
export type Speak = SpeakStep;
export type Flow = FlowStep;
}
export type AlexaNode = SpeakNode;
export namespace AlexaNode {
export type Speak = SpeakNode;
export type Flow = FlowNode;
}
export type AlexaSteps = AlexaStep.Speak | AlexaStep.Flow;
export type AlexaNodes = AlexaNode.Speak | AlexaNode.Flow;
import { Node, Step } from '@voiceflow/api-sdk';
import { Voice } from '../types';
import { NodeType } from './types';
import { DialogType, NodeType } from './types';
export enum DialogType {
AUDIO = 'audio',
VOICE = 'voice',
}
export type SpeakDialog =

@@ -34,8 +29,5 @@ | {

{
audio?: string;
speak?: string;
prompt?: string;
nextId?: string;
random_speak?: string[];
}
nextId?: string | null;
} & ({ speak: string } | { random_speak: string[] })
>;
// eslint-disable-next-line import/prefer-default-export
export enum NodeType {
SPEAK = 'speak',
FLOW = 'flow',
}
export enum DialogType {
AUDIO = 'audio',
VOICE = 'voice',
}
import { Program } from '@voiceflow/api-sdk';
import { AlexaNode } from './nodes';
import { AlexaNodes } from './nodes';
export type AlexaProgram = Program<AlexaNode>;
export type AlexaProgram = Program<AlexaNodes>;

@@ -1,5 +0,3 @@

export type VendorID = string; // reference to external amazon vendor
export type Vendor = {
vendorID: VendorID;
vendorID: string;
skillID: string; // reference id to external alexa skill

@@ -13,3 +11,3 @@ products: {

export type AlexaProjectMemberData = {
selectedVendor: null | VendorID;
selectedVendor: null | string;
vendors: Vendor[];

@@ -16,0 +14,0 @@ };

import { Prompt, Voice } from '../types';
export enum Repeat {
export enum RepeatType {
OFF = 'OFF',

@@ -20,3 +20,3 @@ DIALOG = 'DIALOG',

export enum Session {
export enum SessionType {
RESTART = 'restart',

@@ -27,7 +27,7 @@ RESUME = 'resume',

export type RestartSession = {
type: Session.RESTART;
type: SessionType.RESTART;
};
export type ResumeSession = {
type: Session.RESUME;
type: SessionType.RESUME;
resume: null | Prompt;

@@ -42,3 +42,3 @@ follow: null | Prompt;

session: RestartSession | ResumeSession;
repeat: Repeat;
repeat: RepeatType;
error: null | Prompt;

@@ -82,4 +82,4 @@ };

customInterface = false,
session = { type: Session.RESTART },
repeat = Repeat.ALL,
session = { type: SessionType.RESTART },
repeat = RepeatType.ALL,
accountLinking,

@@ -86,0 +86,0 @@ error,

{
"name": "@voiceflow/alexa-types",
"description": "Alexa service types",
"version": "1.0.1",
"version": "1.0.2",
"author": "Voiceflow",

@@ -6,0 +6,0 @@ "bugs": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc