{"version":3,"sources":["src/common.speech/ServiceMessages/IntentResponse.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,aAAa,CAAC;IAChC,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,cAAe,YAAW,eAAe;IAClD,OAAO,CAAC,kBAAkB,CAAkB;IAE5C,OAAO;WAIO,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc;aAIzC,KAAK,EAAI,MAAM;aAIf,gBAAgB,EAAI,aAAa;aAIjC,QAAQ,EAAI,aAAa,EAAE;CAGzC","file":"IntentResponse.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n// response\n\nexport interface IIntentResponse {\n    query: string;\n    topScoringIntent: ISingleIntent;\n    entities: IIntentEntity[];\n}\n\nexport interface IIntentEntity {\n    entity: string;\n    type: string;\n    startIndex: number;\n    endIndex: number;\n    score: number;\n}\n\nexport interface ISingleIntent {\n    intent: string;\n    score: number;\n}\n\nexport class IntentResponse implements IIntentResponse {\n    private privIntentResponse: IIntentResponse;\n\n    private constructor(json: string) {\n        this.privIntentResponse = JSON.parse(json);\n    }\n\n    public static fromJSON(json: string): IntentResponse {\n        return new IntentResponse(json);\n    }\n\n    public get query(): string {\n        return this.privIntentResponse.query;\n    }\n\n    public get topScoringIntent(): ISingleIntent {\n        return this.privIntentResponse.topScoringIntent;\n    }\n\n    public get entities(): IIntentEntity[] {\n        return this.privIntentResponse.entities;\n    }\n}\n"]}