From 5892f6ce51a37045848ca0217d59ecf23bb6643f Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik <41709775+kpajdzik@users.noreply.github.com> Date: Fri, 15 Feb 2019 14:52:51 -0800 Subject: [PATCH] Regenerate @azure/cognitiveservices-luis-authoring package (#1249) --- .../LICENSE.txt | 2 +- .../README.md | 8 +- .../lib/lUISAuthoringClient.ts | 2 + .../lib/lUISAuthoringClientContext.ts | 6 +- .../lib/models/appsMappers.ts | 49 +- .../lib/models/azureAccountsMappers.ts | 13 + .../lib/models/examplesMappers.ts | 21 +- .../lib/models/featuresMappers.ts | 15 +- .../lib/models/index.ts | 1824 +++++++---------- .../lib/models/mappers.ts | 43 +- .../lib/models/modelMappers.ts | 79 +- .../lib/models/parameters.ts | 23 + .../lib/models/patternMappers.ts | 13 +- .../lib/models/permissionsMappers.ts | 13 +- .../lib/models/settingsMappers.ts | 7 +- .../lib/models/trainMappers.ts | 11 +- .../lib/models/versionsMappers.ts | 35 +- .../lib/operations/apps.ts | 128 +- .../lib/operations/azureAccounts.ts | 249 +++ .../lib/operations/index.ts | 1 + .../package.json | 8 +- .../rollup.config.js | 22 +- 22 files changed, 1349 insertions(+), 1223 deletions(-) create mode 100644 packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts create mode 100644 packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts diff --git a/packages/@azure/cognitiveservices-luis-authoring/LICENSE.txt b/packages/@azure/cognitiveservices-luis-authoring/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/LICENSE.txt +++ b/packages/@azure/cognitiveservices-luis-authoring/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/cognitiveservices-luis-authoring/README.md b/packages/@azure/cognitiveservices-luis-authoring/README.md index 7e4b452f7101..fa4621cc5d30 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/README.md +++ b/packages/@azure/cognitiveservices-luis-authoring/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for LUISAuthoringClient. ### How to Install -``` +```bash npm install @azure/cognitiveservices-luis-authoring ``` @@ -19,13 +19,13 @@ npm install @azure/cognitiveservices-luis-authoring ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import { LUISAuthoringClient, LUISAuthoringModels, LUISAuthoringMappers } from "@azure/cognitiveservices-luis-authoring"; @@ -50,7 +50,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts index 71b9741455da..4f3ceab4cdff 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClient.ts @@ -25,6 +25,7 @@ class LUISAuthoringClient extends LUISAuthoringClientContext { permissions: operations.Permissions; pattern: operations.Pattern; settings: operations.Settings; + azureAccounts: operations.AzureAccounts; /** * Initializes a new instance of the LUISAuthoringClient class. @@ -44,6 +45,7 @@ class LUISAuthoringClient extends LUISAuthoringClientContext { this.permissions = new operations.Permissions(this); this.pattern = new operations.Pattern(this); this.settings = new operations.Settings(this); + this.azureAccounts = new operations.AzureAccounts(this); } } diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts index b5ecfb0092c1..ff1b4d866d87 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/lUISAuthoringClientContext.ts @@ -11,7 +11,7 @@ import * as msRest from "@azure/ms-rest-js"; const packageName = "@azure/cognitiveservices-luis-authoring"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class LUISAuthoringClientContext extends msRest.ServiceClient { endpoint: string; @@ -35,7 +35,8 @@ export class LUISAuthoringClientContext extends msRest.ServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { + + if (!options.userAgent) { const defaultUserAgent = msRest.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -46,6 +47,5 @@ export class LUISAuthoringClientContext extends msRest.ServiceClient { this.requestContentType = "application/json; charset=utf-8"; this.endpoint = endpoint; this.credentials = credentials; - } } diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts index 02a233a2e700..f6e23c3abc3e 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/appsMappers.ts @@ -1,44 +1,41 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { ApplicationCreateObject, - ErrorResponse, ApplicationInfoResponse, - LuisApp, - HierarchicalModel, - PrebuiltDomainObject, + ApplicationPublishObject, + ApplicationSettings, + ApplicationSettingUpdateObject, + ApplicationUpdateObject, + AvailableCulture, ClosedList, - SubClosedList, - PatternAny, - RegexEntity, - PrebuiltEntity, - JSONRegexFeature, + EndpointInfo, + ErrorResponse, + HierarchicalModel, + JSONEntity, JSONModelFeature, - PatternRule, + JSONRegexFeature, JSONUtterance, - JSONEntity, - PersonalAssistantsResponse, - AvailableCulture, - ApplicationUpdateObject, + LuisApp, OperationStatus, - ApplicationPublishObject, + PatternAny, + PatternRule, + PersonalAssistantsResponse, + PrebuiltDomain, + PrebuiltDomainCreateObject, + PrebuiltDomainItem, + PrebuiltDomainObject, + PrebuiltEntity, ProductionOrStagingEndpointInfo, - EndpointInfo, - ApplicationSettings, - ApplicationSettingUpdateObject, PublishSettings, PublishSettingUpdateObject, - PrebuiltDomain, - PrebuiltDomainItem, - PrebuiltDomainCreateObject, + RegexEntity, + SubClosedList, SubClosedListResponse } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts new file mode 100644 index 000000000000..6f0cd86cc21b --- /dev/null +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/azureAccountsMappers.ts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureAccountInfoObject, + ErrorResponse, + OperationStatus +} from "../models/mappers"; diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts index 60a7199bfda1..d4cb41a958a7 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/examplesMappers.ts @@ -1,23 +1,20 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ExampleLabelObject, - EntityLabelObject, - LabelExampleResponse, - ErrorResponse, BatchLabelExample, - OperationStatus, - LabeledUtterance, EntityLabel, + EntityLabelObject, + EntityPrediction, + ErrorResponse, + ExampleLabelObject, IntentPrediction, - EntityPrediction + LabeledUtterance, + LabelExampleResponse, + OperationStatus } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts index 95b7269b865d..51b9484e0c2a 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/featuresMappers.ts @@ -1,21 +1,18 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - PhraselistCreateObject, ErrorResponse, - PhraseListFeatureInfo, FeatureInfoObject, FeaturesResponseObject, + OperationStatus, PatternFeatureInfo, - PhraselistUpdateObject, - OperationStatus + PhraselistCreateObject, + PhraseListFeatureInfo, + PhraselistUpdateObject } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts index 302879e4e043..2c9103de7fb3 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/index.ts @@ -1,2785 +1,2167 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import * as msRest from "@azure/ms-rest-js"; /** - * @interface - * An interface representing EntityLabelObject. - * Defines the entity type and position of the extracted entity within the - * example. - * + * Defines the entity type and position of the extracted entity within the example. */ export interface EntityLabelObject { /** - * @member {string} entityName The entity type. + * The entity type. */ entityName: string; /** - * @member {number} startCharIndex The index within the utterance where the - * extracted entity starts. + * The index within the utterance where the extracted entity starts. */ startCharIndex: number; /** - * @member {number} endCharIndex The index within the utterance where the - * extracted entity ends. + * The index within the utterance where the extracted entity ends. */ endCharIndex: number; } /** - * @interface - * An interface representing ApplicationCreateObject. * Properties for creating a new LUIS Application - * */ export interface ApplicationCreateObject { /** - * @member {string} culture The culture for the new application. It is the - * language that your app understands and speaks. E.g.: "en-us". Note: the - * culture cannot be changed after the app is created. + * The culture for the new application. It is the language that your app understands and speaks. + * E.g.: "en-us". Note: the culture cannot be changed after the app is created. */ culture: string; /** - * @member {string} [domain] The domain for the new application. Optional. - * E.g.: Comics. + * The domain for the new application. Optional. E.g.: Comics. */ domain?: string; /** - * @member {string} [description] Description of the new application. - * Optional. + * Description of the new application. Optional. */ description?: string; /** - * @member {string} [initialVersionId] The initial version ID. Optional. - * Default value is: "0.1" + * The initial version ID. Optional. Default value is: "0.1" */ initialVersionId?: string; /** - * @member {string} [usageScenario] Defines the scenario for the new - * application. Optional. E.g.: IoT. + * Defines the scenario for the new application. Optional. E.g.: IoT. */ usageScenario?: string; /** - * @member {string} name The name for the new application. + * The name for the new application. */ name: string; } /** - * @interface - * An interface representing PrebuiltDomainCreateBaseObject. - * A model object containing the name of the custom prebuilt entity and the - * name of the domain to which this model belongs. - * + * A model object containing the name of the custom prebuilt entity and the name of the domain to + * which this model belongs. */ export interface PrebuiltDomainCreateBaseObject { /** - * @member {string} [domainName] The domain name. + * The domain name. */ domainName?: string; } /** - * @interface - * An interface representing PrebuiltDomainCreateObject. - * A prebuilt domain create object containing the name and culture of the - * domain. - * + * A prebuilt domain create object containing the name and culture of the domain. */ export interface PrebuiltDomainCreateObject { /** - * @member {string} [domainName] The domain name. + * The domain name. */ domainName?: string; /** - * @member {string} [culture] The culture of the new domain. + * The culture of the new domain. */ culture?: string; } /** - * @interface - * An interface representing PrebuiltDomainModelCreateObject. - * A model object containing the name of the custom prebuilt intent or entity - * and the name of the domain to which this model belongs. - * + * A model object containing the name of the custom prebuilt intent or entity and the name of the + * domain to which this model belongs. */ export interface PrebuiltDomainModelCreateObject { /** - * @member {string} [domainName] The domain name. + * The domain name. */ domainName?: string; /** - * @member {string} [modelName] The intent name or entity name. + * The intent name or entity name. */ modelName?: string; } /** - * @interface - * An interface representing HierarchicalEntityModel. * A Hierarchical Entity Extractor. - * */ export interface HierarchicalEntityModel { /** - * @member {string[]} [children] Child entities. + * Child entities. */ children?: string[]; /** - * @member {string} [name] Entity name. + * Entity name. */ name?: string; } /** - * @interface - * An interface representing CompositeEntityModel. * A composite entity. - * */ export interface CompositeEntityModel { /** - * @member {string[]} [children] Child entities. + * Child entities. */ children?: string[]; /** - * @member {string} [name] Entity name. + * Entity name. */ name?: string; } /** - * @interface - * An interface representing JSONEntity. * Exported Model - Extracted Entity from utterance. - * */ export interface JSONEntity { /** - * @member {number} startPos The index within the utterance where the - * extracted entity starts. + * The index within the utterance where the extracted entity starts. */ startPos: number; /** - * @member {number} endPos The index within the utterance where the extracted - * entity ends. + * The index within the utterance where the extracted entity ends. */ endPos: number; /** - * @member {string} entity The entity name. + * The entity name. */ entity: string; } /** - * @interface - * An interface representing ApplicationSettingUpdateObject. * Object model for updating an application's settings. - * */ export interface ApplicationSettingUpdateObject { /** - * @member {boolean} [publicProperty] Setting your application as public - * allows other people to use your application's endpoint using their own - * keys. + * Setting your application as public allows other people to use your application's endpoint + * using their own keys. */ publicProperty?: boolean; } /** - * @interface - * An interface representing PublishSettingUpdateObject. * Object model for updating an application's publish settings. - * */ export interface PublishSettingUpdateObject { /** - * @member {boolean} [sentimentAnalysis] Setting sentiment analysis as true - * returns the Sentiment of the input utterance along with the resopnse + * Setting sentiment analysis as true returns the Sentiment of the input utterance along with the + * response */ sentimentAnalysis?: boolean; /** - * @member {boolean} [speech] Setting speech as public enables speech priming - * in your app + * Setting speech as public enables speech priming in your app */ speech?: boolean; /** - * @member {boolean} [spellChecker] Setting spell checker as public enables - * spell checking the input utterance. + * Setting spell checker as public enables spell checking the input utterance. */ spellChecker?: boolean; } /** - * @interface - * An interface representing ExampleLabelObject. * A labeled example. - * */ export interface ExampleLabelObject { /** - * @member {string} [text] The sample's utterance. + * The sample's utterance. */ text?: string; /** - * @member {EntityLabelObject[]} [entityLabels] The idenfied entities within - * the utterance. + * The identified entities within the utterance. */ entityLabels?: EntityLabelObject[]; /** - * @member {string} [intentName] The idenfitied intent representing the - * utterance. + * The identified intent representing the utterance. */ intentName?: string; } /** - * @interface - * An interface representing PhraselistCreateObject. * Object model for creating a phraselist model. - * */ export interface PhraselistCreateObject { /** - * @member {string} [phrases] List of comma-separated phrases that represent - * the Phraselist. + * List of comma-separated phrases that represent the Phraselist. */ phrases?: string; /** - * @member {string} [name] The Phraselist name. + * The Phraselist name. */ name?: string; /** - * @member {boolean} [isExchangeable] An exchangeable phrase list feature are - * serves as single feature to the LUIS underlying training algorithm. It is - * used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a - * synonyms list. A non-exchangeable phrase list feature has all the phrases - * in the list serve as separate features to the underlying training - * algorithm. So, if you your phrase list feature contains 5 phrases, they - * will be mapped to 5 separate features. You can think of the - * non-exchangeable phrase list feature as an additional bag of words that - * you are willing to add to LUIS existing vocabulary features. Think of a - * non-exchangeable as set of different words. Default value is true. Default - * value: true . + * An exchangeable phrase list feature are serves as single feature to the LUIS underlying + * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A + * non-exchangeable phrase list feature has all the phrases in the list serve as separate + * features to the underlying training algorithm. So, if you your phrase list feature contains 5 + * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable + * phrase list feature as an additional bag of words that you are willing to add to LUIS existing + * vocabulary features. Think of a non-exchangeable as set of different words. Default value is + * true. Default value: true. */ isExchangeable?: boolean; } /** - * @interface - * An interface representing SubClosedList. * Sublist of items for a Closed list. - * */ export interface SubClosedList { /** - * @member {string} [canonicalForm] The standard form that the list - * represents. + * The standard form that the list represents. */ canonicalForm?: string; /** - * @member {string[]} [list] List of synonym words. + * List of synonym words. */ list?: string[]; } /** - * @interface - * An interface representing SubClosedListResponse. * Sublist of items for a Closed list. - * - * @extends SubClosedList */ export interface SubClosedListResponse extends SubClosedList { /** - * @member {number} [id] The sublist ID + * The sublist ID */ id?: number; } /** - * @interface - * An interface representing ApplicationUpdateObject. * Object model for updating the name or description of an application. - * */ export interface ApplicationUpdateObject { /** - * @member {string} [name] The application's new name. + * The application's new name. */ name?: string; /** - * @member {string} [description] The application's new description. + * The application's new description. */ description?: string; } /** - * @interface - * An interface representing JSONRegexFeature. * Exported Model - A Pattern feature. - * */ export interface JSONRegexFeature { /** - * @member {string} [pattern] The Regular Expression to match. + * The Regular Expression to match. */ pattern?: string; /** - * @member {boolean} [activated] Indicates if the Pattern feature is enabled. + * Indicates if the Pattern feature is enabled. */ activated?: boolean; /** - * @member {string} [name] Name of the feature. + * Name of the feature. */ name?: string; } /** - * @interface - * An interface representing PatternUpdateObject. * Object model for updating an existing Pattern feature. - * */ export interface PatternUpdateObject { /** - * @member {string} [pattern] The Regular Expression to match. + * The Regular Expression to match. */ pattern?: string; /** - * @member {string} [name] Name of the feature. + * Name of the feature. */ name?: string; /** - * @member {boolean} [isActive] Indicates if the Pattern feature is enabled. - * Default value: true . + * Indicates if the Pattern feature is enabled. Default value: true. */ isActive?: boolean; } /** - * @interface - * An interface representing ClosedList. * Exported Model - A Closed List. - * */ export interface ClosedList { /** - * @member {string} [name] Name of the closed list feature. + * Name of the closed list feature. */ name?: string; /** - * @member {SubClosedList[]} [subLists] Sublists for the feature. + * Sublists for the feature. */ subLists?: SubClosedList[]; - /** - * @member {string[]} [roles] - */ roles?: string[]; } /** - * @interface - * An interface representing WordListObject. * Sublist of items for a Closed list. - * */ export interface WordListObject { /** - * @member {string} [canonicalForm] The standard form that the list - * represents. + * The standard form that the list represents. */ canonicalForm?: string; /** - * @member {string[]} [list] List of synonym words. + * List of synonym words. */ list?: string[]; } /** - * @interface - * An interface representing ClosedListModelPatchObject. * Object model for adding a batch of sublists to an existing closedlist. - * */ export interface ClosedListModelPatchObject { /** - * @member {WordListObject[]} [subLists] Sublists to add. + * Sublists to add. */ subLists?: WordListObject[]; } /** - * @interface - * An interface representing JSONModelFeature. * Exported Model - Phraselist Model Feature. - * */ export interface JSONModelFeature { /** - * @member {boolean} [activated] Indicates if the feature is enabled. + * Indicates if the feature is enabled. */ activated?: boolean; /** - * @member {string} [name] The Phraselist name. + * The Phraselist name. */ name?: string; /** - * @member {string} [words] List of comma-separated phrases that represent - * the Phraselist. + * List of comma-separated phrases that represent the Phraselist. */ words?: string; /** - * @member {boolean} [mode] An exchangeable phrase list feature are serves as - * single feature to the LUIS underlying training algorithm. It is used as a - * lexicon lookup feature where its value is 1 if the lexicon contains a - * given word or 0 if it doesn’t. Think of an exchangeable as a synonyms - * list. A non-exchangeable phrase list feature has all the phrases in the - * list serve as separate features to the underlying training algorithm. So, - * if you your phrase list feature contains 5 phrases, they will be mapped to - * 5 separate features. You can think of the non-exchangeable phrase list - * feature as an additional bag of words that you are willing to add to LUIS - * existing vocabulary features. Think of a non-exchangeable as set of - * different words. Default value is true. + * An exchangeable phrase list feature are serves as single feature to the LUIS underlying + * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A + * non-exchangeable phrase list feature has all the phrases in the list serve as separate + * features to the underlying training algorithm. So, if you your phrase list feature contains 5 + * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable + * phrase list feature as an additional bag of words that you are willing to add to LUIS existing + * vocabulary features. Think of a non-exchangeable as set of different words. Default value is + * true. */ mode?: boolean; } /** - * @interface - * An interface representing ModelCreateObject. * Object model for creating a new entity extractor. - * */ export interface ModelCreateObject { /** - * @member {string} [name] Name of the new entity extractor. + * Name of the new entity extractor. */ name?: string; } /** - * @interface - * An interface representing PatternCreateObject. * Object model for creating a Pattern feature. - * */ export interface PatternCreateObject { /** - * @member {string} [pattern] The Regular Expression to match. + * The Regular Expression to match. */ pattern?: string; /** - * @member {string} [name] Name of the feature. + * Name of the feature. */ name?: string; } /** - * @interface - * An interface representing WordListBaseUpdateObject. * Object model for updating one of the closed list's sublists. - * */ export interface WordListBaseUpdateObject { /** - * @member {string} [canonicalForm] The standard form that the list - * represents. + * The standard form that the list represents. */ canonicalForm?: string; /** - * @member {string[]} [list] List of synonym words. + * List of synonym words. */ list?: string[]; } /** - * @interface - * An interface representing JSONUtterance. * Exported Model - Utterance that was used to train the model. - * */ export interface JSONUtterance { /** - * @member {string} [text] The utterance. + * The utterance. */ text?: string; /** - * @member {string} [intent] The matched intent. + * The matched intent. */ intent?: string; /** - * @member {JSONEntity[]} [entities] The matched entities. + * The matched entities. */ entities?: JSONEntity[]; } /** - * @interface - * An interface representing ModelUpdateObject. * Object model for updating an intent classifier. - * */ export interface ModelUpdateObject { /** - * @member {string} [name] The entity's new name. + * The entity's new name. */ name?: string; } /** - * @interface - * An interface representing ClosedListModelUpdateObject. * Object model for updating a closed list. - * */ export interface ClosedListModelUpdateObject { /** - * @member {WordListObject[]} [subLists] The new sublists for the feature. + * The new sublists for the feature. */ subLists?: WordListObject[]; /** - * @member {string} [name] The new name of the closed list feature. + * The new name of the closed list feature. */ name?: string; } /** - * @interface - * An interface representing ClosedListModelCreateObject. * Object model for creating a closed list. - * */ export interface ClosedListModelCreateObject { /** - * @member {WordListObject[]} [subLists] Sublists for the feature. + * Sublists for the feature. */ subLists?: WordListObject[]; /** - * @member {string} [name] Name of the closed list feature. + * Name of the closed list feature. */ name?: string; } /** - * @interface - * An interface representing VersionInfo. * Object model of an application version. - * */ export interface VersionInfo { /** - * @member {string} version The version ID. E.g.: "0.1" + * The version ID. E.g.: "0.1" */ version: string; /** - * @member {Date} [createdDateTime] The version's creation timestamp. + * The version's creation timestamp. */ createdDateTime?: Date; /** - * @member {Date} [lastModifiedDateTime] Timestamp of the last update. + * Timestamp of the last update. */ lastModifiedDateTime?: Date; /** - * @member {Date} [lastTrainedDateTime] Timestamp of the last time the model - * was trained. + * Timestamp of the last time the model was trained. */ lastTrainedDateTime?: Date; /** - * @member {Date} [lastPublishedDateTime] Timestamp when was last published. + * Timestamp when was last published. */ lastPublishedDateTime?: Date; /** - * @member {string} [endpointUrl] The Runtime endpoint URL for this model - * version. + * The Runtime endpoint URL for this model version. */ endpointUrl?: string; /** - * @member {{ [propertyName: string]: string }} [assignedEndpointKey] The - * endpoint key. + * The endpoint key. */ assignedEndpointKey?: { [propertyName: string]: string }; /** - * @member {any} [externalApiKeys] External keys. + * External keys. */ externalApiKeys?: any; /** - * @member {number} [intentsCount] Number of intents in this model. + * Number of intents in this model. */ intentsCount?: number; /** - * @member {number} [entitiesCount] Number of entities in this model. + * Number of entities in this model. */ entitiesCount?: number; /** - * @member {number} [endpointHitsCount] Number of calls made to this - * endpoint. + * Number of calls made to this endpoint. */ endpointHitsCount?: number; /** - * @member {TrainingStatus} trainingStatus The current training status. - * Possible values include: 'NeedsTraining', 'InProgress', 'Trained' + * The current training status. Possible values include: 'NeedsTraining', 'InProgress', 'Trained' */ trainingStatus: TrainingStatus; } /** - * @interface - * An interface representing TaskUpdateObject. * Object model for cloning an application's version. - * */ export interface TaskUpdateObject { /** - * @member {string} [version] The new version for the cloned model. + * The new version for the cloned model. */ version?: string; } /** - * @interface - * An interface representing PhraselistUpdateObject. * Object model for updating a Phraselist. - * */ export interface PhraselistUpdateObject { /** - * @member {string} [phrases] List of comma-separated phrases that represent - * the Phraselist. + * List of comma-separated phrases that represent the Phraselist. */ phrases?: string; /** - * @member {string} [name] The Phraselist name. + * The Phraselist name. */ name?: string; /** - * @member {boolean} [isActive] Indicates if the Phraselist is enabled. - * Default value: true . + * Indicates if the Phraselist is enabled. Default value: true. */ isActive?: boolean; /** - * @member {boolean} [isExchangeable] An exchangeable phrase list feature are - * serves as single feature to the LUIS underlying training algorithm. It is - * used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a - * synonyms list. A non-exchangeable phrase list feature has all the phrases - * in the list serve as separate features to the underlying training - * algorithm. So, if you your phrase list feature contains 5 phrases, they - * will be mapped to 5 separate features. You can think of the - * non-exchangeable phrase list feature as an additional bag of words that - * you are willing to add to LUIS existing vocabulary features. Think of a - * non-exchangeable as set of different words. Default value is true. Default - * value: true . + * An exchangeable phrase list feature are serves as single feature to the LUIS underlying + * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A + * non-exchangeable phrase list feature has all the phrases in the list serve as separate + * features to the underlying training algorithm. So, if you your phrase list feature contains 5 + * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable + * phrase list feature as an additional bag of words that you are willing to add to LUIS existing + * vocabulary features. Think of a non-exchangeable as set of different words. Default value is + * true. Default value: true. */ isExchangeable?: boolean; } /** - * @interface * An interface representing PrebuiltDomainObject. */ export interface PrebuiltDomainObject { - /** - * @member {string} [domainName] - */ domainName?: string; - /** - * @member {string} [modelName] - */ modelName?: string; } /** - * @interface * An interface representing HierarchicalModel. */ export interface HierarchicalModel { - /** - * @member {string} [name] - */ name?: string; - /** - * @member {string[]} [children] - */ children?: string[]; - /** - * @member {PrebuiltDomainObject} [inherits] - */ inherits?: PrebuiltDomainObject; - /** - * @member {string[]} [roles] - */ roles?: string[]; } /** - * @interface - * An interface representing ApplicationPublishObject. * Object model for publishing a specific application version. - * */ export interface ApplicationPublishObject { /** - * @member {string} [versionId] The version ID to publish. + * The version ID to publish. */ versionId?: string; /** - * @member {boolean} [isStaging] Indicates if the staging slot should be - * used, instead of the Production one. Default value: false . + * Indicates if the staging slot should be used, instead of the Production one. Default value: + * false. */ isStaging?: boolean; } /** - * @interface - * An interface representing PatternAny. * Pattern.Any Entity Extractor. - * */ export interface PatternAny { - /** - * @member {string} [name] - */ name?: string; - /** - * @member {string[]} [explicitList] - */ explicitList?: string[]; - /** - * @member {string[]} [roles] - */ roles?: string[]; } /** - * @interface - * An interface representing RegexEntity. * Regular Expression Entity Extractor. - * */ export interface RegexEntity { - /** - * @member {string} [name] - */ name?: string; - /** - * @member {string} [regexPattern] - */ regexPattern?: string; - /** - * @member {string[]} [roles] - */ roles?: string[]; } /** - * @interface - * An interface representing PrebuiltEntity. * Prebuilt Entity Extractor. - * */ export interface PrebuiltEntity { - /** - * @member {string} [name] - */ name?: string; - /** - * @member {string[]} [roles] - */ roles?: string[]; } /** - * @interface - * An interface representing PatternRule. * Pattern - * */ export interface PatternRule { /** - * @member {string} [pattern] The pattern text. + * The pattern text. */ pattern?: string; /** - * @member {string} [intent] The intent's name where the pattern belongs to. + * The intent's name where the pattern belongs to. */ intent?: string; } /** - * @interface - * An interface representing LuisApp. * Exported Model - An exported LUIS Application. - * */ export interface LuisApp { /** - * @member {string} [name] The name of the application. + * The name of the application. */ name?: string; /** - * @member {string} [versionId] The version ID of the application that was - * exported. + * The version ID of the application that was exported. */ versionId?: string; /** - * @member {string} [desc] The description of the application. + * The description of the application. */ desc?: string; /** - * @member {string} [culture] The culture of the application. E.g.: en-us. + * The culture of the application. E.g.: en-us. */ culture?: string; /** - * @member {HierarchicalModel[]} [intents] List of intents. + * List of intents. */ intents?: HierarchicalModel[]; /** - * @member {HierarchicalModel[]} [entities] List of entities. + * List of entities. */ entities?: HierarchicalModel[]; /** - * @member {ClosedList[]} [closedLists] List of closed lists. + * List of closed lists. */ closedLists?: ClosedList[]; /** - * @member {HierarchicalModel[]} [composites] List of composite entities. + * List of composite entities. */ composites?: HierarchicalModel[]; /** - * @member {PatternAny[]} [patternAnyEntities] List of Pattern.Any entities. + * List of Pattern.Any entities. */ patternAnyEntities?: PatternAny[]; /** - * @member {RegexEntity[]} [regexEntities] List of regular expression - * entities. + * List of regular expression entities. */ regexEntities?: RegexEntity[]; /** - * @member {PrebuiltEntity[]} [prebuiltEntities] List of prebuilt entities. + * List of prebuilt entities. */ prebuiltEntities?: PrebuiltEntity[]; /** - * @member {JSONRegexFeature[]} [regexFeatures] List of pattern features. + * List of pattern features. */ regexFeatures?: JSONRegexFeature[]; /** - * @member {JSONModelFeature[]} [modelFeatures] List of model features. + * List of model features. */ modelFeatures?: JSONModelFeature[]; /** - * @member {PatternRule[]} [patterns] List of patterns. + * List of patterns. */ patterns?: PatternRule[]; /** - * @member {JSONUtterance[]} [utterances] List of sample utterances. + * List of sample utterances. */ utterances?: JSONUtterance[]; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; } /** - * @interface - * An interface representing EntityLabel. - * Defines the entity type and position of the extracted entity within the - * example. - * + * Defines the entity type and position of the extracted entity within the example. */ export interface EntityLabel { /** - * @member {string} entityName The entity type. + * The entity type. */ entityName: string; /** - * @member {number} startTokenIndex The index within the utterance where the - * extracted entity starts. + * The index within the utterance where the extracted entity starts. */ startTokenIndex: number; /** - * @member {number} endTokenIndex The index within the utterance where the - * extracted entity ends. + * The index within the utterance where the extracted entity ends. */ endTokenIndex: number; } /** - * @interface - * An interface representing IntentPrediction. * A suggested intent. - * */ export interface IntentPrediction { /** - * @member {string} [name] The intent's name + * The intent's name */ name?: string; /** - * @member {number} [score] The intent's score, based on the prediction - * model. + * The intent's score, based on the prediction model. */ score?: number; } /** - * @interface - * An interface representing EntityPrediction. * A suggested entity. - * */ export interface EntityPrediction { /** - * @member {string} entityName The entity's name + * The entity's name */ entityName: string; /** - * @member {number} startTokenIndex The index within the utterance where the - * extracted entity starts. + * The index within the utterance where the extracted entity starts. */ startTokenIndex: number; /** - * @member {number} endTokenIndex The index within the utterance where the - * extracted entity ends. + * The index within the utterance where the extracted entity ends. */ endTokenIndex: number; /** - * @member {string} phrase The actual token(s) that comprise the entity. + * The actual token(s) that comprise the entity. */ phrase: string; } /** - * @interface - * An interface representing LabeledUtterance. * A prediction and label pair of an example. - * */ export interface LabeledUtterance { /** - * @member {number} [id] ID of Labeled Utterance. + * ID of Labeled Utterance. */ id?: number; /** - * @member {string} [text] The utterance. E.g.: what's the weather like in - * seattle? + * The utterance. E.g.: what's the weather like in seattle? */ text?: string; /** - * @member {string[]} [tokenizedText] The utterance tokenized. + * The utterance tokenized. */ tokenizedText?: string[]; /** - * @member {string} [intentLabel] The intent matching the example. + * The intent matching the example. */ intentLabel?: string; /** - * @member {EntityLabel[]} [entityLabels] The entities matching the example. + * The entities matching the example. */ entityLabels?: EntityLabel[]; /** - * @member {IntentPrediction[]} [intentPredictions] List of suggested - * intents. + * List of suggested intents. */ intentPredictions?: IntentPrediction[]; /** - * @member {EntityPrediction[]} [entityPredictions] List of suggested - * entities. + * List of suggested entities. */ entityPredictions?: EntityPrediction[]; } /** - * @interface - * An interface representing IntentsSuggestionExample. * Predicted/suggested intent. - * */ export interface IntentsSuggestionExample { /** - * @member {string} [text] The utterance. E.g.: what's the weather like in - * seattle? + * The utterance. E.g.: what's the weather like in seattle? */ text?: string; /** - * @member {string[]} [tokenizedText] The utterance tokenized. + * The utterance tokenized. */ tokenizedText?: string[]; /** - * @member {IntentPrediction[]} [intentPredictions] Predicted/suggested - * intents. + * Predicted/suggested intents. */ intentPredictions?: IntentPrediction[]; /** - * @member {EntityPrediction[]} [entityPredictions] Predicted/suggested - * entities. + * Predicted/suggested entities. */ entityPredictions?: EntityPrediction[]; } /** - * @interface - * An interface representing EntitiesSuggestionExample. * Predicted/suggested entity. - * */ export interface EntitiesSuggestionExample { /** - * @member {string} [text] The utterance. E.g.: what's the weather like in - * seattle? + * The utterance. E.g.: what's the weather like in seattle? */ text?: string; /** - * @member {string[]} [tokenizedText] The utterance tokenized. + * The utterance tokenized. */ tokenizedText?: string[]; /** - * @member {IntentPrediction[]} [intentPredictions] Predicted/suggested - * intents. + * Predicted/suggested intents. */ intentPredictions?: IntentPrediction[]; /** - * @member {EntityPrediction[]} [entityPredictions] Predicted/suggested - * entities. + * Predicted/suggested entities. */ entityPredictions?: EntityPrediction[]; } /** - * @interface - * An interface representing PersonalAssistantsResponse. - * Response containing user's endpoint keys and the endpoint URLs of the - * prebuilt Cortana applications. - * + * Response containing user's endpoint keys and the endpoint URLs of the prebuilt Cortana + * applications. */ export interface PersonalAssistantsResponse { - /** - * @member {string[]} [endpointKeys] - */ endpointKeys?: string[]; - /** - * @member {{ [propertyName: string]: string }} [endpointUrls] - */ endpointUrls?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ModelInfo. * Base type used in entity types. - * */ export interface ModelInfo { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType; } /** - * @interface - * An interface representing EntityRole. * Entity extractor role - * */ export interface EntityRole { /** - * @member {string} [id] The entity role ID. + * The entity role ID. */ id?: string; /** - * @member {string} [name] The entity role name. + * The entity role name. */ name?: string; } /** - * @interface - * An interface representing ChildEntity. * The base child entity type. - * */ export interface ChildEntity { /** - * @member {string} id The ID (GUID) belonging to a child entity. + * The ID (GUID) belonging to a child entity. */ id: string; /** - * @member {string} [name] The name of a child entity. + * The name of a child entity. */ name?: string; } /** - * @interface - * An interface representing ExplicitListItem. * Explicit list item - * */ export interface ExplicitListItem { /** - * @member {number} [id] The explicit list item ID. + * The explicit list item ID. */ id?: number; /** - * @member {string} [explicitListItem] The explicit list item value. + * The explicit list item value. */ explicitListItem?: string; } /** - * @interface - * An interface representing ModelInfoResponse. * An application model info. - * */ export interface ModelInfoResponse { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType1} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType1; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; /** - * @member {ChildEntity[]} [children] List of child entities. + * List of child entities. */ children?: ChildEntity[]; /** - * @member {SubClosedListResponse[]} [subLists] List of sub-lists. + * List of sub-lists. */ subLists?: SubClosedListResponse[]; /** - * @member {string} [customPrebuiltDomainName] The domain name. + * The domain name. */ customPrebuiltDomainName?: string; /** - * @member {string} [customPrebuiltModelName] The intent name or entity name. + * The intent name or entity name. */ customPrebuiltModelName?: string; /** - * @member {string} [regexPattern] The Regex entity pattern. + * The Regex entity pattern. */ regexPattern?: string; - /** - * @member {ExplicitListItem[]} [explicitList] - */ explicitList?: ExplicitListItem[]; } /** - * @interface - * An interface representing EntityModelInfo. * An Entity Extractor model info. - * - * @extends ModelInfo */ export interface EntityModelInfo extends ModelInfo { - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; } /** - * @interface - * An interface representing HierarchicalEntityExtractor. * Hierarchical Entity Extractor. - * */ export interface HierarchicalEntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType2} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType2; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; /** - * @member {ChildEntity[]} [children] List of child entities. + * List of child entities. */ children?: ChildEntity[]; } /** - * @interface - * An interface representing CompositeEntityExtractor. * A Composite Entity Extractor. - * */ export interface CompositeEntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType3} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType3; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; /** - * @member {ChildEntity[]} [children] List of child entities. + * List of child entities. */ children?: ChildEntity[]; } /** - * @interface - * An interface representing ClosedListEntityExtractor. * Closed List Entity Extractor. - * */ export interface ClosedListEntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType4} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType4; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; /** - * @member {SubClosedListResponse[]} [subLists] List of sub-lists. + * List of sub-lists. */ subLists?: SubClosedListResponse[]; } /** - * @interface - * An interface representing PrebuiltEntityExtractor. * Prebuilt Entity Extractor. - * */ export interface PrebuiltEntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType5} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType5; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; } /** - * @interface - * An interface representing HierarchicalChildEntity. * A Hierarchical Child Entity. - * - * @extends ChildEntity */ export interface HierarchicalChildEntity extends ChildEntity { /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType6} [readableType] Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType?: ReadableType6; } /** - * @interface - * An interface representing CustomPrebuiltModel. * A Custom Prebuilt model. - * */ export interface CustomPrebuiltModel { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType7} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType7; /** - * @member {string} [customPrebuiltDomainName] The domain name. + * The domain name. */ customPrebuiltDomainName?: string; /** - * @member {string} [customPrebuiltModelName] The intent name or entity name. + * The intent name or entity name. */ customPrebuiltModelName?: string; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; } /** - * @interface - * An interface representing IntentClassifier. * Intent Classifier. - * - * @extends ModelInfo */ export interface IntentClassifier extends ModelInfo { /** - * @member {string} [customPrebuiltDomainName] The domain name. + * The domain name. */ customPrebuiltDomainName?: string; /** - * @member {string} [customPrebuiltModelName] The intent name or entity name. + * The intent name or entity name. */ customPrebuiltModelName?: string; } /** - * @interface - * An interface representing EntityExtractor. * Entity Extractor. - * */ export interface EntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType8} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType8; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; /** - * @member {string} [customPrebuiltDomainName] The domain name. + * The domain name. */ customPrebuiltDomainName?: string; /** - * @member {string} [customPrebuiltModelName] The intent name or entity name. + * The intent name or entity name. */ customPrebuiltModelName?: string; } /** - * @interface - * An interface representing FeatureInfoObject. * The base class Features-related response objects inherit from. - * */ export interface FeatureInfoObject { /** - * @member {number} [id] A six-digit ID used for Features. + * A six-digit ID used for Features. */ id?: number; /** - * @member {string} [name] The name of the Feature. + * The name of the Feature. */ name?: string; /** - * @member {boolean} [isActive] Indicates if the feature is enabled. + * Indicates if the feature is enabled. */ isActive?: boolean; } /** - * @interface - * An interface representing PhraseListFeatureInfo. * Phraselist Feature. - * - * @extends FeatureInfoObject */ export interface PhraseListFeatureInfo extends FeatureInfoObject { /** - * @member {string} [phrases] A list of comma-separated values. + * A list of comma-separated values. */ phrases?: string; /** - * @member {boolean} [isExchangeable] An exchangeable phrase list feature are - * serves as single feature to the LUIS underlying training algorithm. It is - * used as a lexicon lookup feature where its value is 1 if the lexicon - * contains a given word or 0 if it doesn’t. Think of an exchangeable as a - * synonyms list. A non-exchangeable phrase list feature has all the phrases - * in the list serve as separate features to the underlying training - * algorithm. So, if you your phrase list feature contains 5 phrases, they - * will be mapped to 5 separate features. You can think of the - * non-exchangeable phrase list feature as an additional bag of words that - * you are willing to add to LUIS existing vocabulary features. Think of a - * non-exchangeable as set of different words. Default value is true. + * An exchangeable phrase list feature are serves as single feature to the LUIS underlying + * training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon + * contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A + * non-exchangeable phrase list feature has all the phrases in the list serve as separate + * features to the underlying training algorithm. So, if you your phrase list feature contains 5 + * phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable + * phrase list feature as an additional bag of words that you are willing to add to LUIS existing + * vocabulary features. Think of a non-exchangeable as set of different words. Default value is + * true. */ isExchangeable?: boolean; } /** - * @interface - * An interface representing PatternFeatureInfo. * Pattern feature. - * - * @extends FeatureInfoObject */ export interface PatternFeatureInfo extends FeatureInfoObject { /** - * @member {string} [pattern] The Regular Expression to match. + * The Regular Expression to match. */ pattern?: string; } /** - * @interface - * An interface representing FeaturesResponseObject. * Model Features, including Patterns and Phraselists. - * */ export interface FeaturesResponseObject { - /** - * @member {PhraseListFeatureInfo[]} [phraselistFeatures] - */ phraselistFeatures?: PhraseListFeatureInfo[]; - /** - * @member {PatternFeatureInfo[]} [patternFeatures] - */ patternFeatures?: PatternFeatureInfo[]; } /** - * @interface - * An interface representing LabelExampleResponse. * Response when adding a labeled example. - * */ export interface LabelExampleResponse { /** - * @member {string} [utteranceText] The sample's utterance. + * The sample's utterance. */ utteranceText?: string; /** - * @member {number} [exampleId] The newly created sample ID. + * The newly created sample ID. */ exampleId?: number; } /** - * @interface - * An interface representing OperationStatus. * Response of an Operation status. - * */ export interface OperationStatus { /** - * @member {OperationStatusType} [code] Status Code. Possible values include: - * 'Failed', 'FAILED', 'Success' + * Status Code. Possible values include: 'Failed', 'FAILED', 'Success' */ code?: OperationStatusType; /** - * @member {string} [message] Status details. + * Status details. */ message?: string; } /** - * @interface - * An interface representing BatchLabelExample. * Response when adding a batch of labeled examples. - * */ export interface BatchLabelExample { - /** - * @member {LabelExampleResponse} [value] - */ value?: LabelExampleResponse; - /** - * @member {boolean} [hasError] - */ hasError?: boolean; - /** - * @member {OperationStatus} [error] - */ error?: OperationStatus; } /** - * @interface - * An interface representing ApplicationInfoResponse. * Response containing the Application Info. - * */ export interface ApplicationInfoResponse { /** - * @member {string} [id] The ID (GUID) of the application. + * The ID (GUID) of the application. */ id?: string; /** - * @member {string} [name] The name of the application. + * The name of the application. */ name?: string; /** - * @member {string} [description] The description of the application. + * The description of the application. */ description?: string; /** - * @member {string} [culture] The culture of the application. E.g.: en-us. + * The culture of the application. E.g.: en-us. */ culture?: string; /** - * @member {string} [usageScenario] Defines the scenario for the new - * application. Optional. E.g.: IoT. + * Defines the scenario for the new application. Optional. E.g.: IoT. */ usageScenario?: string; /** - * @member {string} [domain] The domain for the new application. Optional. - * E.g.: Comics. + * The domain for the new application. Optional. E.g.: Comics. */ domain?: string; /** - * @member {number} [versionsCount] Amount of model versions within the - * application. + * Amount of model versions within the application. */ versionsCount?: number; /** - * @member {string} [createdDateTime] The version's creation timestamp. + * The version's creation timestamp. */ createdDateTime?: string; /** - * @member {any} [endpoints] The Runtime endpoint URL for this model version. + * The Runtime endpoint URL for this model version. */ endpoints?: any; /** - * @member {number} [endpointHitsCount] Number of calls made to this - * endpoint. + * Number of calls made to this endpoint. */ endpointHitsCount?: number; /** - * @member {string} [activeVersion] The version ID currently marked as - * active. + * The version ID currently marked as active. */ activeVersion?: string; } /** - * @interface - * An interface representing EndpointInfo. * The base class "ProductionOrStagingEndpointInfo" inherits from. - * */ export interface EndpointInfo { /** - * @member {string} [versionId] The version ID to publish. + * The version ID to publish. */ versionId?: string; /** - * @member {boolean} [isStaging] Indicates if the staging slot should be - * used, instead of the Production one. + * Indicates if the staging slot should be used, instead of the Production one. */ isStaging?: boolean; /** - * @member {string} [endpointUrl] The Runtime endpoint URL for this model - * version. + * The Runtime endpoint URL for this model version. */ endpointUrl?: string; /** - * @member {string} [region] The target region that the application is - * published to. + * The target region that the application is published to. */ region?: string; /** - * @member {string} [assignedEndpointKey] The endpoint key. + * The endpoint key. */ assignedEndpointKey?: string; /** - * @member {string} [endpointRegion] The endpoint's region. + * The endpoint's region. */ endpointRegion?: string; /** - * @member {string} [publishedDateTime] Timestamp when was last published. + * Regions where publishing failed. + */ + failedRegions?: string; + /** + * Timestamp when was last published. */ publishedDateTime?: string; } /** - * @interface * An interface representing ProductionOrStagingEndpointInfo. - * @extends EndpointInfo */ export interface ProductionOrStagingEndpointInfo extends EndpointInfo { } /** - * @interface - * An interface representing AvailableCulture. * Available culture for using in a new application. - * */ export interface AvailableCulture { /** - * @member {string} [name] The language name. + * The language name. */ name?: string; /** - * @member {string} [code] The ISO value for the language. + * The ISO value for the language. */ code?: string; } /** - * @interface - * An interface representing ApplicationSettings. * The application settings. - * */ export interface ApplicationSettings { /** - * @member {string} id The application ID. + * The application ID. */ id: string; /** - * @member {boolean} isPublic Setting your application as public allows other - * people to use your application's endpoint using their own keys. + * Setting your application as public allows other people to use your application's endpoint + * using their own keys. */ isPublic: boolean; } /** - * @interface - * An interface representing PublishSettings. * The application publish settings. - * */ export interface PublishSettings { /** - * @member {string} id The application ID. + * The application ID. */ id: string; /** - * @member {boolean} isSentimentAnalysisEnabled Setting sentiment analysis as - * true returns the Sentiment of the input utterance along with the resopnse + * Setting sentiment analysis as true returns the Sentiment of the input utterance along with the + * response */ isSentimentAnalysisEnabled: boolean; /** - * @member {boolean} isSpeechEnabled Setting speech as public enables speech - * priming in your app + * Setting speech as public enables speech priming in your app */ isSpeechEnabled: boolean; /** - * @member {boolean} isSpellCheckerEnabled Setting spell checker as public - * enables spell checking the input utterance. + * Setting spell checker as public enables spell checking the input utterance. */ isSpellCheckerEnabled: boolean; } /** - * @interface - * An interface representing AvailablePrebuiltEntityModel. * Available Prebuilt entity model for using in an application. - * */ export interface AvailablePrebuiltEntityModel { /** - * @member {string} [name] The entity name. + * The entity name. */ name?: string; /** - * @member {string} [description] The entity description and usage - * information. + * The entity description and usage information. */ description?: string; /** - * @member {string} [examples] Usage examples. + * Usage examples. */ examples?: string; } /** - * @interface - * An interface representing EnqueueTrainingResponse. * Response model when requesting to train the model. - * */ export interface EnqueueTrainingResponse { /** - * @member {number} [statusId] The train request status ID. + * The train request status ID. */ statusId?: number; /** - * @member {Status} [status] Possible values include: 'Queued', 'InProgress', - * 'UpToDate', 'Fail', 'Success' + * Possible values include: 'Queued', 'InProgress', 'UpToDate', 'Fail', 'Success' */ status?: Status; } /** - * @interface - * An interface representing ModelTrainingDetails. * Model Training Details. - * */ export interface ModelTrainingDetails { /** - * @member {number} [statusId] The train request status ID. + * The train request status ID. */ statusId?: number; /** - * @member {Status1} [status] Possible values include: 'Queued', - * 'InProgress', 'UpToDate', 'Fail', 'Success' + * Possible values include: 'Queued', 'InProgress', 'UpToDate', 'Fail', 'Success' */ status?: Status1; /** - * @member {number} [exampleCount] The count of examples used to train the - * model. + * The count of examples used to train the model. */ exampleCount?: number; /** - * @member {Date} [trainingDateTime] When the model was trained. + * When the model was trained. */ trainingDateTime?: Date; /** - * @member {string} [failureReason] Reason for the training failure. + * Reason for the training failure. */ failureReason?: string; } /** - * @interface - * An interface representing ModelTrainingInfo. * Model Training Info. - * */ export interface ModelTrainingInfo { /** - * @member {string} [modelId] The ID (GUID) of the model. + * The ID (GUID) of the model. */ modelId?: string; - /** - * @member {ModelTrainingDetails} [details] - */ details?: ModelTrainingDetails; } /** - * @interface - * An interface representing UserAccessList. * List of user permissions. - * */ export interface UserAccessList { /** - * @member {string} [owner] The email address of owner of the application. + * The email address of owner of the application. */ owner?: string; - /** - * @member {string[]} [emails] - */ emails?: string[]; } /** - * @interface * An interface representing UserCollaborator. */ export interface UserCollaborator { /** - * @member {string} [email] The email address of the user. + * The email address of the user. */ email?: string; } /** - * @interface * An interface representing CollaboratorsArray. */ export interface CollaboratorsArray { /** - * @member {string[]} [emails] The email address of the users. + * The email address of the users. */ emails?: string[]; } /** - * @interface - * An interface representing ErrorResponse. * Error response when invoking an operation on the API. - * */ export interface ErrorResponse { - /** - * @member {string} [errorType] - */ errorType?: string; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; } /** - * @interface - * An interface representing OperationError. * Operation error details when invoking an operation on the API. - * */ export interface OperationError { - /** - * @member {string} [code] - */ code?: string; - /** - * @member {string} [message] - */ message?: string; } /** - * @interface * An interface representing PrebuiltDomainItem. */ export interface PrebuiltDomainItem { - /** - * @member {string} [name] - */ name?: string; - /** - * @member {string} [description] - */ description?: string; - /** - * @member {string} [examples] - */ examples?: string; } /** - * @interface - * An interface representing PrebuiltDomain. * Prebuilt Domain. - * */ export interface PrebuiltDomain { - /** - * @member {string} [name] - */ name?: string; - /** - * @member {string} [culture] - */ culture?: string; - /** - * @member {string} [description] - */ description?: string; - /** - * @member {string} [examples] - */ examples?: string; - /** - * @member {PrebuiltDomainItem[]} [intents] - */ intents?: PrebuiltDomainItem[]; - /** - * @member {PrebuiltDomainItem[]} [entities] - */ entities?: PrebuiltDomainItem[]; } /** - * @interface - * An interface representing EntityRoleCreateObject. * Object model for creating an entity role. - * */ export interface EntityRoleCreateObject { /** - * @member {string} [name] The entity role name. + * The entity role name. */ name?: string; } /** - * @interface - * An interface representing RegexModelCreateObject. * Model object for creating a regex entity model. - * */ export interface RegexModelCreateObject { /** - * @member {string} [regexPattern] The regex entity pattern. + * The regex entity pattern. */ regexPattern?: string; /** - * @member {string} [name] The model name. + * The model name. */ name?: string; } /** - * @interface - * An interface representing PatternAnyModelCreateObject. * Model object for creating a Pattern.Any entity model. - * */ export interface PatternAnyModelCreateObject { /** - * @member {string} [name] The model name. + * The model name. */ name?: string; /** - * @member {string[]} [explicitList] The Pattern.Any explicit list. + * The Pattern.Any explicit list. */ explicitList?: string[]; } /** - * @interface - * An interface representing ExplicitListItemCreateObject. * Object model for creating an explicit list item. - * */ export interface ExplicitListItemCreateObject { /** - * @member {string} [explicitListItem] The explicit list item. + * The explicit list item. */ explicitListItem?: string; } /** - * @interface - * An interface representing RegexModelUpdateObject. * Model object for updating a regex entity model. - * */ export interface RegexModelUpdateObject { /** - * @member {string} [regexPattern] The regex entity pattern. + * The regex entity pattern. */ regexPattern?: string; /** - * @member {string} [name] The model name. + * The model name. */ name?: string; } /** - * @interface - * An interface representing PatternAnyModelUpdateObject. * Model object for updating a Pattern.Any entity model. - * */ export interface PatternAnyModelUpdateObject { /** - * @member {string} [name] The model name. + * The model name. */ name?: string; /** - * @member {string[]} [explicitList] The Pattern.Any explicit list. + * The Pattern.Any explicit list. */ explicitList?: string[]; } /** - * @interface - * An interface representing EntityRoleUpdateObject. * Object model for updating an entity role. - * */ export interface EntityRoleUpdateObject { /** - * @member {string} [name] The entity role name. + * The entity role name. */ name?: string; } /** - * @interface - * An interface representing ExplicitListItemUpdateObject. * Model object for updating an explicit list item. - * */ export interface ExplicitListItemUpdateObject { /** - * @member {string} [explicitListItem] The explicit list item. + * The explicit list item. */ explicitListItem?: string; } /** - * @interface - * An interface representing PatternRuleCreateObject. * Object model for creating a pattern - * */ export interface PatternRuleCreateObject { /** - * @member {string} [pattern] The pattern text. + * The pattern text. */ pattern?: string; /** - * @member {string} [intent] The intent's name which the pattern belongs to. + * The intent's name which the pattern belongs to. */ intent?: string; } /** - * @interface - * An interface representing PatternRuleUpdateObject. * Object model for updating a pattern. - * */ export interface PatternRuleUpdateObject { /** - * @member {string} [id] The pattern ID. + * The pattern ID. */ id?: string; /** - * @member {string} [pattern] The pattern text. + * The pattern text. */ pattern?: string; /** - * @member {string} [intent] The intent's name which the pattern belongs to. + * The intent's name which the pattern belongs to. */ intent?: string; } /** - * @interface - * An interface representing RegexEntityExtractor. * Regex Entity Extractor. - * */ export interface RegexEntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType9} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType9; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; /** - * @member {string} [regexPattern] The Regex entity pattern. + * The Regex entity pattern. */ regexPattern?: string; } /** - * @interface - * An interface representing PatternAnyEntityExtractor. * Pattern.Any Entity Extractor. - * */ export interface PatternAnyEntityExtractor { /** - * @member {string} id The ID of the Entity Model. + * The ID of the Entity Model. */ id: string; /** - * @member {string} [name] Name of the Entity Model. + * Name of the Entity Model. */ name?: string; /** - * @member {number} [typeId] The type ID of the Entity Model. + * The type ID of the Entity Model. */ typeId?: number; /** - * @member {ReadableType10} readableType Possible values include: 'Entity - * Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - * Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', - * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity - * Extractor', 'Regex Entity Extractor' + * Possible values include: 'Entity Extractor', 'Hierarchical Entity Extractor', 'Hierarchical + * Child Entity Extractor', 'Composite Entity Extractor', 'Closed List Entity Extractor', + * 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex + * Entity Extractor' */ readableType: ReadableType10; - /** - * @member {EntityRole[]} [roles] - */ roles?: EntityRole[]; - /** - * @member {ExplicitListItem[]} [explicitList] - */ explicitList?: ExplicitListItem[]; } /** - * @interface - * An interface representing PatternRuleInfo. * Pattern rule - * */ export interface PatternRuleInfo { /** - * @member {string} [id] The pattern ID. + * The pattern ID. */ id?: string; /** - * @member {string} [pattern] The pattern text. + * The pattern text. */ pattern?: string; /** - * @member {string} [intent] The intent's name where the pattern belongs to. + * The intent's name where the pattern belongs to. */ intent?: string; } /** - * @interface - * An interface representing LabelTextObject. * An object containing the example's text. - * */ export interface LabelTextObject { /** - * @member {number} [id] The ID of the Label. + * The ID of the Label. */ id?: number; /** - * @member {string} [text] The text of the label. + * The text of the label. */ text?: string; } /** - * @interface - * An interface representing AppVersionSettingObject. * Object model of an application version setting. - * */ export interface AppVersionSettingObject { /** - * @member {string} [name] The application version setting name. + * The application version setting name. */ name?: string; /** - * @member {string} [value] The application version setting value. + * The application version setting value. */ value?: string; } /** - * @interface - * An interface representing HierarchicalChildModelUpdateObject. + * Defines the azure account information object. */ -export interface HierarchicalChildModelUpdateObject { +export interface AzureAccountInfoObject { /** - * @member {string} [name] + * The id for the azure subscription. */ + azureSubscriptionId: string; + /** + * The azure resource group name. + */ + resourceGroup: string; + /** + * The azure account name. + */ + accountName: string; +} + +/** + * An interface representing HierarchicalChildModelUpdateObject. + */ +export interface HierarchicalChildModelUpdateObject { name?: string; } /** - * @interface * An interface representing HierarchicalChildModelCreateObject. */ export interface HierarchicalChildModelCreateObject { - /** - * @member {string} [name] - */ name?: string; } /** - * @interface * An interface representing CompositeChildModelCreateObject. */ export interface CompositeChildModelCreateObject { - /** - * @member {string} [name] - */ name?: string; } /** - * @interface - * An interface representing FeaturesListPhraseListsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface FeaturesListPhraseListsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing FeaturesListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface FeaturesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing FeaturesUpdatePhraseListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface FeaturesUpdatePhraseListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {PhraselistUpdateObject} [phraselistUpdateObject] The new values - * for: - Just a boolean called IsActive, in which case the status of the - * feature will be changed. - Name, Pattern, Mode, and a boolean called - * IsActive to update the feature. + * The new values for: - Just a boolean called IsActive, in which case the status of the feature + * will be changed. - Name, Pattern, Mode, and a boolean called IsActive to update the feature. */ phraselistUpdateObject?: PhraselistUpdateObject; } /** - * @interface - * An interface representing ExamplesListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ExamplesListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListIntentsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListIntentsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListEntitiesOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListEntitiesOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListHierarchicalEntitiesOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListHierarchicalEntitiesOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListCompositeEntitiesOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListCompositeEntitiesOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListClosedListsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListClosedListsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListPrebuiltsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListPrebuiltsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelListModelsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelListModelsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelExamplesMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelExamplesMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelDeleteIntentOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelDeleteIntentOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [deleteUtterances] Also delete the intent's utterances - * (true). Or move the utterances to the None intent (false - the default - * value). Default value: false . + * Also delete the intent's utterances (true). Or move the utterances to the None intent (false - + * the default value). Default value: false. */ deleteUtterances?: boolean; } /** - * @interface - * An interface representing ModelGetIntentSuggestionsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelGetIntentSuggestionsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelGetEntitySuggestionsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelGetEntitySuggestionsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelGetRegexEntityInfosOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelGetRegexEntityInfosOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing ModelGetPatternAnyEntityInfosOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface ModelGetPatternAnyEntityInfosOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing AppsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface AppsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing AppsImportMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface AppsImportMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [appName] The application name to create. If not - * specified, the application name will be read from the imported object. + * The application name to create. If not specified, the application name will be read from the + * imported object. */ appName?: string; } /** - * @interface - * An interface representing VersionsCloneOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase + */ +export interface AppsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * A flag to indicate whether to force an operation. Default value: false. + */ + force?: boolean; +} + +/** + * Optional Parameters. */ export interface VersionsCloneOptionalParams extends msRest.RequestOptionsBase { /** - * @member {TaskUpdateObject} [versionCloneObject] A model containing the new - * version ID. + * A model containing the new version ID. */ versionCloneObject?: TaskUpdateObject; } /** - * @interface - * An interface representing VersionsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface VersionsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing VersionsImportMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface VersionsImportMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [versionId] The new versionId to import. If not - * specified, the versionId will be read from the imported object. + * The new versionId to import. If not specified, the versionId will be read from the imported + * object. */ versionId?: string; } /** - * @interface - * An interface representing PatternGetPatternsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface PatternGetPatternsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } /** - * @interface - * An interface representing PatternGetIntentPatternsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface PatternGetIntentPatternsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] The number of entries to skip. Default value is 0. - * Default value: 0 . + * The number of entries to skip. Default value is 0. Default value: 0. */ skip?: number; /** - * @member {number} [take] The number of entries to return. Maximum page size - * is 500. Default is 100. Default value: 100 . + * The number of entries to return. Maximum page size is 500. Default is 100. Default value: 100. */ take?: number; } +/** + * Optional Parameters. + */ +export interface AzureAccountsAssignToAppOptionalParams extends msRest.RequestOptionsBase { + /** + * The azure account information object. + */ + azureAccountInfoObject?: AzureAccountInfoObject; +} + +/** + * Optional Parameters. + */ +export interface AzureAccountsRemoveFromAppOptionalParams extends msRest.RequestOptionsBase { + /** + * The azure account information object. + */ + azureAccountInfoObject?: AzureAccountInfoObject; +} + /** * Defines values for TrainingStatus. * Possible values include: 'NeedsTraining', 'InProgress', 'Trained' @@ -2930,6 +2312,7 @@ export type FeaturesAddPhraseListResponse = { * The parsed response body. */ body: number; + /** * The underlying HTTP response. */ @@ -2938,6 +2321,7 @@ export type FeaturesAddPhraseListResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2957,6 +2341,7 @@ export type FeaturesListPhraseListsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2976,6 +2361,7 @@ export type FeaturesListResponse = FeaturesResponseObject & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2995,6 +2381,7 @@ export type FeaturesGetPhraseListResponse = PhraseListFeatureInfo & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3014,6 +2401,7 @@ export type FeaturesUpdatePhraseListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3033,6 +2421,7 @@ export type FeaturesDeletePhraseListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3052,6 +2441,7 @@ export type ExamplesAddResponse = LabelExampleResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3071,6 +2461,7 @@ export type ExamplesBatchResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3090,6 +2481,7 @@ export type ExamplesListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3109,6 +2501,7 @@ export type ExamplesDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3124,6 +2517,7 @@ export type ModelAddIntentResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -3132,6 +2526,7 @@ export type ModelAddIntentResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3151,6 +2546,7 @@ export type ModelListIntentsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3166,6 +2562,7 @@ export type ModelAddEntityResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -3174,6 +2571,7 @@ export type ModelAddEntityResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3193,6 +2591,7 @@ export type ModelListEntitiesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3208,6 +2607,7 @@ export type ModelAddHierarchicalEntityResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -3216,6 +2616,7 @@ export type ModelAddHierarchicalEntityResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3235,6 +2636,7 @@ export type ModelListHierarchicalEntitiesResponse = Array * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3296,6 +2701,7 @@ export type ModelListClosedListsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3311,6 +2717,7 @@ export type ModelAddClosedListResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -3319,6 +2726,7 @@ export type ModelAddClosedListResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3338,6 +2746,7 @@ export type ModelAddPrebuiltResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3357,6 +2766,7 @@ export type ModelListPrebuiltsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3376,6 +2786,7 @@ export type ModelListPrebuiltEntitiesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3414,6 +2826,7 @@ export type ModelExamplesMethodResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3433,6 +2846,7 @@ export type ModelGetIntentResponse = IntentClassifier & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3452,6 +2866,7 @@ export type ModelUpdateIntentResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3471,6 +2886,7 @@ export type ModelDeleteIntentResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3490,6 +2906,7 @@ export type ModelGetEntityResponse = EntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3509,6 +2926,7 @@ export type ModelUpdateEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3528,6 +2946,7 @@ export type ModelDeleteEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3547,6 +2966,7 @@ export type ModelGetHierarchicalEntityResponse = HierarchicalEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3566,6 +2986,7 @@ export type ModelUpdateHierarchicalEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3585,6 +3006,7 @@ export type ModelDeleteHierarchicalEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3604,6 +3026,7 @@ export type ModelGetCompositeEntityResponse = CompositeEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3623,6 +3046,7 @@ export type ModelUpdateCompositeEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3642,6 +3066,7 @@ export type ModelDeleteCompositeEntityResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3661,6 +3086,7 @@ export type ModelGetClosedListResponse = ClosedListEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3680,6 +3106,7 @@ export type ModelUpdateClosedListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3699,6 +3126,7 @@ export type ModelPatchClosedListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3718,6 +3146,7 @@ export type ModelDeleteClosedListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3737,6 +3166,7 @@ export type ModelGetPrebuiltResponse = PrebuiltEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3756,6 +3186,7 @@ export type ModelDeletePrebuiltResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3775,6 +3206,7 @@ export type ModelDeleteSubListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3794,6 +3226,7 @@ export type ModelUpdateSubListResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3813,6 +3246,7 @@ export type ModelGetIntentSuggestionsResponse = Array * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3832,6 +3266,7 @@ export type ModelGetEntitySuggestionsResponse = Array * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3847,6 +3282,7 @@ export type ModelAddSubListResponse = { * The parsed response body. */ body: number; + /** * The underlying HTTP response. */ @@ -3855,6 +3291,7 @@ export type ModelAddSubListResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3874,6 +3311,7 @@ export type ModelAddCustomPrebuiltDomainResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3889,6 +3327,7 @@ export type ModelAddCustomPrebuiltIntentResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -3897,6 +3336,7 @@ export type ModelAddCustomPrebuiltIntentResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3916,6 +3356,7 @@ export type ModelListCustomPrebuiltIntentsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3931,6 +3372,7 @@ export type ModelAddCustomPrebuiltEntityResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -3939,6 +3381,7 @@ export type ModelAddCustomPrebuiltEntityResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3958,6 +3401,7 @@ export type ModelListCustomPrebuiltEntitiesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3977,6 +3421,7 @@ export type ModelListCustomPrebuiltModelsResponse = Array & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3996,6 +3441,7 @@ export type ModelDeleteCustomPrebuiltDomainResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4015,6 +3461,7 @@ export type ModelGetHierarchicalEntityChildResponse = HierarchicalChildEntity & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4034,6 +3481,7 @@ export type ModelUpdateHierarchicalEntityChildResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4053,6 +3501,7 @@ export type ModelDeleteHierarchicalEntityChildResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4068,6 +3517,7 @@ export type ModelAddHierarchicalEntityChildResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4076,6 +3526,7 @@ export type ModelAddHierarchicalEntityChildResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4091,6 +3542,7 @@ export type ModelAddCompositeEntityChildResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4099,6 +3551,7 @@ export type ModelAddCompositeEntityChildResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4118,6 +3571,7 @@ export type ModelDeleteCompositeEntityChildResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4137,6 +3591,7 @@ export type ModelGetRegexEntityInfosResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4152,6 +3607,7 @@ export type ModelCreateRegexEntityModelResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4160,6 +3616,7 @@ export type ModelCreateRegexEntityModelResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4179,6 +3636,7 @@ export type ModelGetPatternAnyEntityInfosResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4236,6 +3697,7 @@ export type ModelCreateEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4244,6 +3706,7 @@ export type ModelCreateEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4263,6 +3726,7 @@ export type ModelGetPrebuiltEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4278,6 +3742,7 @@ export type ModelCreatePrebuiltEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4286,6 +3751,7 @@ export type ModelCreatePrebuiltEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4305,6 +3771,7 @@ export type ModelGetClosedListEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4320,6 +3787,7 @@ export type ModelCreateClosedListEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4328,6 +3796,7 @@ export type ModelCreateClosedListEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4347,6 +3816,7 @@ export type ModelGetRegexEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4362,6 +3832,7 @@ export type ModelCreateRegexEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4370,6 +3841,7 @@ export type ModelCreateRegexEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4389,6 +3861,7 @@ export type ModelGetCompositeEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4404,6 +3877,7 @@ export type ModelCreateCompositeEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4412,6 +3886,7 @@ export type ModelCreateCompositeEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4431,6 +3906,7 @@ export type ModelGetPatternAnyEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4446,6 +3922,7 @@ export type ModelCreatePatternAnyEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4454,6 +3931,7 @@ export type ModelCreatePatternAnyEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4473,6 +3951,7 @@ export type ModelGetHierarchicalEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4488,6 +3967,7 @@ export type ModelCreateHierarchicalEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4496,6 +3976,7 @@ export type ModelCreateHierarchicalEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4515,6 +3996,7 @@ export type ModelGetCustomPrebuiltEntityRolesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4530,6 +4012,7 @@ export type ModelCreateCustomPrebuiltEntityRoleResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -4538,6 +4021,7 @@ export type ModelCreateCustomPrebuiltEntityRoleResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4557,6 +4041,7 @@ export type ModelGetExplicitListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4572,6 +4057,7 @@ export type ModelAddExplicitListItemResponse = { * The parsed response body. */ body: number; + /** * The underlying HTTP response. */ @@ -4580,6 +4066,7 @@ export type ModelAddExplicitListItemResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4599,6 +4086,7 @@ export type ModelGetRegexEntityEntityInfoResponse = RegexEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4618,6 +4106,7 @@ export type ModelUpdateRegexEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4637,6 +4126,7 @@ export type ModelDeleteRegexEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4656,6 +4146,7 @@ export type ModelGetPatternAnyEntityInfoResponse = PatternAnyEntityExtractor & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4675,6 +4166,7 @@ export type ModelUpdatePatternAnyEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4694,6 +4186,7 @@ export type ModelDeletePatternAnyEntityModelResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4713,6 +4206,7 @@ export type ModelGetEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4732,6 +4226,7 @@ export type ModelUpdateEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4751,6 +4246,7 @@ export type ModelDeleteEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4770,6 +4266,7 @@ export type ModelGetPrebuiltEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4789,6 +4286,7 @@ export type ModelUpdatePrebuiltEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4808,6 +4306,7 @@ export type ModelDeletePrebuiltEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4827,6 +4326,7 @@ export type ModelGetClosedListEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4846,6 +4346,7 @@ export type ModelUpdateClosedListEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4865,6 +4366,7 @@ export type ModelDeleteClosedListEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4884,6 +4386,7 @@ export type ModelGetRegexEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4903,6 +4406,7 @@ export type ModelUpdateRegexEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4922,6 +4426,7 @@ export type ModelDeleteRegexEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4941,6 +4446,7 @@ export type ModelGetCompositeEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4960,6 +4466,7 @@ export type ModelUpdateCompositeEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4979,6 +4486,7 @@ export type ModelDeleteCompositeEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -4998,6 +4506,7 @@ export type ModelGetPatternAnyEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5017,6 +4526,7 @@ export type ModelUpdatePatternAnyEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5036,6 +4546,7 @@ export type ModelDeletePatternAnyEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5055,6 +4566,7 @@ export type ModelGetHierarchicalEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5074,6 +4586,7 @@ export type ModelUpdateHierarchicalEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5093,6 +4606,7 @@ export type ModelDeleteHierarchicalEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5112,6 +4626,7 @@ export type ModelGetCustomEntityRoleResponse = EntityRole & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5131,6 +4646,7 @@ export type ModelUpdateCustomPrebuiltEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5150,6 +4666,7 @@ export type ModelDeleteCustomEntityRoleResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5169,6 +4686,7 @@ export type ModelGetExplicitListItemResponse = ExplicitListItem & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5188,6 +4706,7 @@ export type ModelUpdateExplicitListItemResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5207,6 +4726,7 @@ export type ModelDeleteExplicitListItemResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5222,6 +4742,7 @@ export type AppsAddResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -5230,6 +4751,7 @@ export type AppsAddResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5249,6 +4771,7 @@ export type AppsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5264,6 +4787,7 @@ export type AppsImportMethodResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -5272,6 +4796,7 @@ export type AppsImportMethodResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5291,6 +4816,7 @@ export type AppsListCortanaEndpointsResponse = PersonalAssistantsResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5310,6 +4836,7 @@ export type AppsListDomainsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5329,6 +4856,7 @@ export type AppsListUsageScenariosResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5348,6 +4876,7 @@ export type AppsListSupportedCulturesResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5366,6 +4895,7 @@ export type AppsDownloadQueryLogsResponse = { * Always undefined in node.js. */ blobBody?: Promise; + /** * NODEJS ONLY * @@ -5373,6 +4903,7 @@ export type AppsDownloadQueryLogsResponse = { * Always undefined in the browser. */ readableStreamBody?: NodeJS.ReadableStream; + /** * The underlying HTTP response. */ @@ -5391,6 +4922,7 @@ export type AppsGetResponse = ApplicationInfoResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5410,6 +4942,7 @@ export type AppsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5429,6 +4962,7 @@ export type AppsDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5448,6 +4982,7 @@ export type AppsPublishResponse = ProductionOrStagingEndpointInfo & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5467,6 +5002,7 @@ export type AppsGetSettingsResponse = ApplicationSettings & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5486,6 +5022,7 @@ export type AppsUpdateSettingsResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5505,6 +5042,7 @@ export type AppsGetPublishSettingsResponse = PublishSettings & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5524,6 +5062,7 @@ export type AppsUpdatePublishSettingsResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5548,6 +5087,7 @@ export type AppsListEndpointsResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5567,6 +5107,7 @@ export type AppsListAvailableCustomPrebuiltDomainsResponse = Array; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the packageTrainedApplicationAsGzip operation. + */ +export type AppsPackageTrainedApplicationAsGzipResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + /** * Contains response data for the clone operation. */ @@ -5624,6 +5220,7 @@ export type VersionsCloneResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -5632,6 +5229,7 @@ export type VersionsCloneResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5651,6 +5249,7 @@ export type VersionsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5670,6 +5269,7 @@ export type VersionsGetResponse = VersionInfo & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5689,6 +5289,7 @@ export type VersionsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5708,6 +5309,7 @@ export type VersionsDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5727,6 +5329,7 @@ export type VersionsExportMethodResponse = LuisApp & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5742,6 +5345,7 @@ export type VersionsImportMethodResponse = { * The parsed response body. */ body: string; + /** * The underlying HTTP response. */ @@ -5750,6 +5354,7 @@ export type VersionsImportMethodResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5769,6 +5374,7 @@ export type VersionsDeleteUnlabelledUtteranceResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5788,6 +5394,7 @@ export type TrainTrainVersionResponse = EnqueueTrainingResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5807,6 +5414,7 @@ export type TrainGetStatusResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5826,6 +5434,7 @@ export type PermissionsListResponse = UserAccessList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5845,6 +5454,7 @@ export type PermissionsAddResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5864,6 +5474,7 @@ export type PermissionsDeleteMethodResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5883,6 +5494,7 @@ export type PermissionsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5902,6 +5514,7 @@ export type PatternAddPatternResponse = PatternRuleInfo & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5921,6 +5534,7 @@ export type PatternGetPatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5940,6 +5554,7 @@ export type PatternUpdatePatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5959,6 +5574,7 @@ export type PatternBatchAddPatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5978,6 +5594,7 @@ export type PatternDeletePatternsResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -5997,6 +5614,7 @@ export type PatternUpdatePatternResponse = PatternRuleInfo & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -6016,6 +5634,7 @@ export type PatternDeletePatternResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -6035,6 +5654,7 @@ export type PatternGetIntentPatternsResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -6054,6 +5674,7 @@ export type SettingsListResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -6073,9 +5694,90 @@ export type SettingsUpdateResponse = OperationStatus & { * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the assignToApp operation. + */ +export type AzureAccountsAssignToAppResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationStatus; + }; +}; + +/** + * Contains response data for the getAssigned operation. + */ +export type AzureAccountsGetAssignedResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureAccountInfoObject[]; + }; +}; + +/** + * Contains response data for the removeFromApp operation. + */ +export type AzureAccountsRemoveFromAppResponse = OperationStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ parsedBody: OperationStatus; }; }; + +/** + * Contains response data for the getUserLUISAccounts operation. + */ +export type AzureAccountsGetUserLUISAccountsResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureAccountInfoObject[]; + }; +}; diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts index 2a0908aade4b..33f1bb11cb4e 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as msRest from "@azure/ms-rest-js"; @@ -2506,6 +2504,12 @@ export const EndpointInfo: msRest.CompositeMapper = { name: "String" } }, + failedRegions: { + serializedName: "failedRegions", + type: { + name: "String" + } + }, publishedDateTime: { serializedName: "publishedDateTime", type: { @@ -3319,6 +3323,37 @@ export const AppVersionSettingObject: msRest.CompositeMapper = { } }; +export const AzureAccountInfoObject: msRest.CompositeMapper = { + serializedName: "AzureAccountInfoObject", + type: { + name: "Composite", + className: "AzureAccountInfoObject", + modelProperties: { + azureSubscriptionId: { + required: true, + serializedName: "azureSubscriptionId", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + accountName: { + required: true, + serializedName: "accountName", + type: { + name: "String" + } + } + } + } +}; + export const HierarchicalChildModelUpdateObject: msRest.CompositeMapper = { serializedName: "hierarchicalChildModelUpdateObject", type: { diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/modelMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/modelMappers.ts index 0c3fc51bddab..2fe2c1e6e0b4 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/modelMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/modelMappers.ts @@ -1,61 +1,58 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ModelCreateObject, - IntentClassifier, - ModelInfo, - ErrorResponse, - EntityExtractor, - EntityRole, - HierarchicalEntityModel, - HierarchicalEntityExtractor, + AvailablePrebuiltEntityModel, ChildEntity, - CompositeEntityModel, - CompositeEntityExtractor, ClosedListEntityExtractor, - SubClosedListResponse, - SubClosedList, ClosedListModelCreateObject, - WordListObject, - PrebuiltEntityExtractor, - AvailablePrebuiltEntityModel, - ModelInfoResponse, + ClosedListModelPatchObject, + ClosedListModelUpdateObject, + CompositeChildModelCreateObject, + CompositeEntityExtractor, + CompositeEntityModel, + CustomPrebuiltModel, + EntitiesSuggestionExample, + EntityExtractor, + EntityModelInfo, + EntityPrediction, + EntityRole, + EntityRoleCreateObject, + EntityRoleUpdateObject, + ErrorResponse, ExplicitListItem, + ExplicitListItemCreateObject, + ExplicitListItemUpdateObject, + HierarchicalChildEntity, + HierarchicalChildModelCreateObject, + HierarchicalChildModelUpdateObject, + HierarchicalEntityExtractor, + HierarchicalEntityModel, + IntentClassifier, + IntentPrediction, + IntentsSuggestionExample, LabelTextObject, + ModelCreateObject, + ModelInfo, + ModelInfoResponse, ModelUpdateObject, OperationStatus, - ClosedListModelUpdateObject, - ClosedListModelPatchObject, - WordListBaseUpdateObject, - IntentsSuggestionExample, - IntentPrediction, - EntityPrediction, - EntitiesSuggestionExample, + PatternAnyEntityExtractor, + PatternAnyModelCreateObject, + PatternAnyModelUpdateObject, PrebuiltDomainCreateBaseObject, PrebuiltDomainModelCreateObject, - CustomPrebuiltModel, - HierarchicalChildEntity, - HierarchicalChildModelUpdateObject, - HierarchicalChildModelCreateObject, - CompositeChildModelCreateObject, + PrebuiltEntityExtractor, RegexEntityExtractor, RegexModelCreateObject, - PatternAnyEntityExtractor, - PatternAnyModelCreateObject, - EntityRoleCreateObject, - ExplicitListItemCreateObject, RegexModelUpdateObject, - PatternAnyModelUpdateObject, - EntityRoleUpdateObject, - ExplicitListItemUpdateObject, - EntityModelInfo + SubClosedList, + SubClosedListResponse, + WordListBaseUpdateObject, + WordListObject } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts index f4e7dbfdbdeb..b9c571063d50 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/parameters.ts @@ -127,6 +127,19 @@ export const exampleId: msRest.OperationURLParameter = { } } }; +export const force: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "force" + ], + mapper: { + serializedName: "force", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; export const hChildId: msRest.OperationURLParameter = { parameterPath: "hChildId", mapper: { @@ -243,6 +256,16 @@ export const skip: msRest.OperationQueryParameter = { } } }; +export const slotName: msRest.OperationURLParameter = { + parameterPath: "slotName", + mapper: { + required: true, + serializedName: "slotName", + type: { + name: "Uuid" + } + } +}; export const subListId: msRest.OperationURLParameter = { parameterPath: "subListId", mapper: { diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/patternMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/patternMappers.ts index 5c345ee4df01..9f1faa030ec8 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/patternMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/patternMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ErrorResponse, + OperationStatus, PatternRuleCreateObject, PatternRuleInfo, - ErrorResponse, - PatternRuleUpdateObject, - OperationStatus + PatternRuleUpdateObject } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts index bbdce51ba195..7d554657bbf2 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/permissionsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - UserAccessList, + CollaboratorsArray, ErrorResponse, - UserCollaborator, OperationStatus, - CollaboratorsArray + UserAccessList, + UserCollaborator } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts index a59aab16aea2..d63ba99f76e8 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/settingsMappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { @@ -13,4 +11,3 @@ export { ErrorResponse, OperationStatus } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/trainMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/trainMappers.ts index 2e32aae652ff..e1343a5e9476 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/trainMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/trainMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { EnqueueTrainingResponse, ErrorResponse, - ModelTrainingInfo, - ModelTrainingDetails + ModelTrainingDetails, + ModelTrainingInfo } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts index 0863b09c65bf..acce9250cc8c 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/models/versionsMappers.ts @@ -1,31 +1,28 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - TaskUpdateObject, + ClosedList, ErrorResponse, - VersionInfo, - OperationStatus, - LuisApp, HierarchicalModel, - PrebuiltDomainObject, - ClosedList, - SubClosedList, - PatternAny, - RegexEntity, - PrebuiltEntity, - JSONRegexFeature, + JSONEntity, JSONModelFeature, - PatternRule, + JSONRegexFeature, JSONUtterance, - JSONEntity, - SubClosedListResponse + LuisApp, + OperationStatus, + PatternAny, + PatternRule, + PrebuiltDomainObject, + PrebuiltEntity, + RegexEntity, + SubClosedList, + SubClosedListResponse, + TaskUpdateObject, + VersionInfo } from "../models/mappers"; - diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts index 06f13a1f422b..0bf00a4a1ec1 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/apps.ts @@ -88,7 +88,7 @@ export class Apps { } /** - * Imports an application to LUIS, the application's structure should be included in in the request + * Imports an application to LUIS, the application's structure should be included in the request * body. * @param luisApp A LUIS application structure. * @param [options] The optional parameters @@ -306,7 +306,7 @@ export class Apps { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(appId: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams): Promise; /** * @param appId The application ID. * @param callback The callback @@ -317,8 +317,8 @@ export class Apps { * @param options The optional parameters * @param callback The callback */ - deleteMethod(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(appId: string, options: Models.AppsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(appId: string, options?: Models.AppsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { appId, @@ -593,6 +593,72 @@ export class Apps { listAvailableCustomPrebuiltDomainsForCultureOperationSpec, callback) as Promise; } + + /** + * Packages published LUIS application as GZip. + * @summary package - Gets published LUIS application package in binary stream GZip format + * @param appId The application ID. + * @param slotName The publishing slot name. + * @param [options] The optional parameters + * @returns Promise + */ + packagePublishedApplicationAsGzip(appId: string, slotName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param slotName The publishing slot name. + * @param callback The callback + */ + packagePublishedApplicationAsGzip(appId: string, slotName: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param slotName The publishing slot name. + * @param options The optional parameters + * @param callback The callback + */ + packagePublishedApplicationAsGzip(appId: string, slotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packagePublishedApplicationAsGzip(appId: string, slotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + slotName, + options + }, + packagePublishedApplicationAsGzipOperationSpec, + callback) as Promise; + } + + /** + * Packages trained LUIS application as GZip. + * @summary package - Gets trained LUIS application package in binary stream GZip format + * @param appId The application ID. + * @param versionId The version ID. + * @param [options] The optional parameters + * @returns Promise + */ + packageTrainedApplicationAsGzip(appId: string, versionId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param callback The callback + */ + packageTrainedApplicationAsGzip(appId: string, versionId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param versionId The version ID. + * @param options The optional parameters + * @param callback The callback + */ + packageTrainedApplicationAsGzip(appId: string, versionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packageTrainedApplicationAsGzip(appId: string, versionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + versionId, + options + }, + packageTrainedApplicationAsGzipOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -860,6 +926,9 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.endpoint, Parameters.appId ], + queryParameters: [ + Parameters.force + ], responses: { 200: { bodyMapper: Mappers.OperationStatus @@ -889,6 +958,9 @@ const publishOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ProductionOrStagingEndpointInfo }, + 207: { + bodyMapper: Mappers.ProductionOrStagingEndpointInfo + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -1095,3 +1167,51 @@ const listAvailableCustomPrebuiltDomainsForCultureOperationSpec: msRest.Operatio }, serializer }; + +const packagePublishedApplicationAsGzipOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "package/{appId}/slot/{slotName}/gzip", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.slotName + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const packageTrainedApplicationAsGzipOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "package/{appId}/versions/{versionId}/gzip", + urlParameters: [ + Parameters.endpoint, + Parameters.appId, + Parameters.versionId0 + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts new file mode 100644 index 000000000000..a907fd51326b --- /dev/null +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/azureAccounts.ts @@ -0,0 +1,249 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/azureAccountsMappers"; +import * as Parameters from "../models/parameters"; +import { LUISAuthoringClientContext } from "../lUISAuthoringClientContext"; + +/** Class representing a AzureAccounts. */ +export class AzureAccounts { + private readonly client: LUISAuthoringClientContext; + + /** + * Create a AzureAccounts. + * @param {LUISAuthoringClientContext} client Reference to the service client. + */ + constructor(client: LUISAuthoringClientContext) { + this.client = client; + } + + /** + * Assigns an azure account to the application. + * @summary apps - Assign a LUIS azure account to an application + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + assignToApp(appId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param options The optional parameters + * @param callback The callback + */ + assignToApp(appId: string, options: Models.AzureAccountsAssignToAppOptionalParams, callback: msRest.ServiceCallback): void; + assignToApp(appId: string, options?: Models.AzureAccountsAssignToAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + options + }, + assignToAppOperationSpec, + callback) as Promise; + } + + /** + * Gets the LUIS azure accounts assigned to the application for the user using his ARM token. + * @summary apps - Get LUIS azure accounts assigned to the application + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + getAssigned(appId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + getAssigned(appId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param options The optional parameters + * @param callback The callback + */ + getAssigned(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAssigned(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + options + }, + getAssignedOperationSpec, + callback) as Promise; + } + + /** + * Removes assigned azure account from the application. + * @summary apps - Removes an assigned LUIS azure account from an application + * @param appId The application ID. + * @param [options] The optional parameters + * @returns Promise + */ + removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams): Promise; + /** + * @param appId The application ID. + * @param callback The callback + */ + removeFromApp(appId: string, callback: msRest.ServiceCallback): void; + /** + * @param appId The application ID. + * @param options The optional parameters + * @param callback The callback + */ + removeFromApp(appId: string, options: Models.AzureAccountsRemoveFromAppOptionalParams, callback: msRest.ServiceCallback): void; + removeFromApp(appId: string, options?: Models.AzureAccountsRemoveFromAppOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + appId, + options + }, + removeFromAppOperationSpec, + callback) as Promise; + } + + /** + * Gets the LUIS azure accounts for the user using his ARM token. + * @summary user - Get LUIS azure accounts + * @param [options] The optional parameters + * @returns Promise + */ + getUserLUISAccounts(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + getUserLUISAccounts(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getUserLUISAccounts(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getUserLUISAccounts(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getUserLUISAccountsOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const assignToAppOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "apps/{appId}/azureaccounts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: [ + "options", + "azureAccountInfoObject" + ], + mapper: Mappers.AzureAccountInfoObject + }, + responses: { + 201: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getAssignedOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "apps/{appId}/azureaccounts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureAccountInfoObject" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const removeFromAppOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "apps/{appId}/azureaccounts", + urlParameters: [ + Parameters.endpoint, + Parameters.appId + ], + requestBody: { + parameterPath: [ + "options", + "azureAccountInfoObject" + ], + mapper: Mappers.AzureAccountInfoObject + }, + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getUserLUISAccountsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "azureaccounts", + urlParameters: [ + Parameters.endpoint + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureAccountInfoObject" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts index b337d37a5fa8..213f356bb13f 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts +++ b/packages/@azure/cognitiveservices-luis-authoring/lib/operations/index.ts @@ -17,3 +17,4 @@ export * from "./train"; export * from "./permissions"; export * from "./pattern"; export * from "./settings"; +export * from "./azureAccounts"; diff --git a/packages/@azure/cognitiveservices-luis-authoring/package.json b/packages/@azure/cognitiveservices-luis-authoring/package.json index c3b17c3acb64..341ae0f9b372 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/package.json +++ b/packages/@azure/cognitiveservices-luis-authoring/package.json @@ -2,9 +2,9 @@ "name": "@azure/cognitiveservices-luis-authoring", "author": "Microsoft Corporation", "description": "LUISAuthoringClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "2.1.0", "dependencies": { - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-js": "^1.6.0", "tslib": "^1.9.3" }, "keywords": [ @@ -22,6 +22,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/cognitiveservices-luis-authoring", @@ -42,6 +43,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -51,5 +53,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js b/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js index 0c169c310fa4..91e4025bf176 100644 --- a/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js +++ b/packages/@azure/cognitiveservices-luis-authoring/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/lUISAuthoringClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/lUISAuthoringClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/cognitiveservices-luis-authoring.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;