@jargon/platform-alexa-skill-kit
Version:
Jargon Platform SDK adapter for the Alexa Skills Kit
33 lines (32 loc) • 1.41 kB
TypeScript
import { BaseSkillBuilder } from 'ask-sdk-core';
import { ResourceManagerFactory, ResourceManagerOptions } from '@jargon/platform-sdk-core';
import { JargonResponseBuilderOptions } from '../responseBuilder';
export interface SkillBuilderOptions extends ResourceManagerOptions, JargonResponseBuilderOptions {
/** The ResourceManagerFactory to use. If not provided DefaultResourceManagerFactory will be used */
resourceManagerFactory?: ResourceManagerFactory;
}
export declare const DefaultSkillBuilderOptions: SkillBuilderOptions;
/**
* JargonSkillBuilder installs itself onto an ASK SkillBuilder. Under the covers it creates
* a Jargon ResourceManager, and installs interceptors on the base skill builder that handle
* augmenting the ASK request objects with Jargon's additions (such as JargonResponseBuilder)
*/
export declare class JargonSkillBuilder {
private _options;
private _rmf;
/**
* Constructs a new JargonSkillBuilder
* @param opts Options for the skill builder; defaults to an empty object
*/
constructor(opts?: SkillBuilderOptions);
/**
* Installs onto a base ASK skill builder
* @param base The base ASK skill builder
*/
installOnto<T extends BaseSkillBuilder>(base: T): T;
/**
* @deprecated Use installOnto instead
* @param base The base ASK skill builder
*/
wrap<T extends BaseSkillBuilder>(base: T): T;
}