Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-botservice

Package Overview
Dependencies
Maintainers
1
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-botservice - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

esm/models/hostSettingsMappers.d.ts

2

dist/arm-botservice.min.js

@@ -1,1 +0,1 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r(((e=e||self).Azure=e.Azure||{},e.Azure.ArmBotservice={}),e.msRestAzure,e.msRest)}(this,function(e,n,r){"use strict";var i=function(e,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(e,r)};function a(e,r){function a(){this.constructor=e}i(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}var t=function(){return(t=Object.assign||function(e){for(var r,a=1,i=arguments.length;a<i;a++)for(var t in r=arguments[a])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}).apply(this,arguments)},s=Object.freeze({__proto__:null}),o=n.CloudErrorMapper,p=n.BaseResourceMapper,l={serializedName:"Sku",type:{name:"Composite",className:"Sku",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},tier:{readOnly:!0,serializedName:"tier",type:{name:"String"}}}}},m={serializedName:"Resource",type:{name:"Composite",className:"Resource",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},kind:{serializedName:"kind",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},d={serializedName:"BotProperties",type:{name:"Composite",className:"BotProperties",modelProperties:{displayName:{required:!0,serializedName:"displayName",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},iconUrl:{serializedName:"iconUrl",type:{name:"String"}},endpoint:{required:!0,serializedName:"endpoint",type:{name:"String"}},endpointVersion:{readOnly:!0,serializedName:"endpointVersion",type:{name:"String"}},msaAppId:{required:!0,serializedName:"msaAppId",type:{name:"String"}},configuredChannels:{readOnly:!0,serializedName:"configuredChannels",type:{name:"Sequence",element:{type:{name:"String"}}}},enabledChannels:{readOnly:!0,serializedName:"enabledChannels",type:{name:"Sequence",element:{type:{name:"String"}}}},developerAppInsightKey:{serializedName:"developerAppInsightKey",type:{name:"String"}},developerAppInsightsApiKey:{serializedName:"developerAppInsightsApiKey",type:{name:"String"}},developerAppInsightsApplicationId:{serializedName:"developerAppInsightsApplicationId",type:{name:"String"}},luisAppIds:{serializedName:"luisAppIds",type:{name:"Sequence",element:{type:{name:"String"}}}},luisKey:{serializedName:"luisKey",type:{name:"String"}}}}},c={serializedName:"Bot",type:{name:"Composite",className:"Bot",modelProperties:t(t({},m.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"BotProperties"}}})}},u={serializedName:"Channel",type:{name:"Composite",polymorphicDiscriminator:{serializedName:"channelName",clientName:"channelName"},uberParent:"Channel",className:"Channel",modelProperties:{channelName:{required:!0,serializedName:"channelName",type:{name:"String"}}}}},h={serializedName:"BotChannel",type:{name:"Composite",className:"BotChannel",modelProperties:t(t({},m.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"Channel"}}})}},y={serializedName:"AlexaChannelProperties",type:{name:"Composite",className:"AlexaChannelProperties",modelProperties:{alexaSkillId:{required:!0,serializedName:"alexaSkillId",type:{name:"String"}},urlFragment:{readOnly:!0,serializedName:"urlFragment",type:{name:"String"}},serviceEndpointUri:{readOnly:!0,serializedName:"serviceEndpointUri",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},N={serializedName:"AlexaChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"AlexaChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"AlexaChannelProperties"}}})}},C={serializedName:"FacebookPage",type:{name:"Composite",className:"FacebookPage",modelProperties:{id:{required:!0,serializedName:"id",type:{name:"String"}},accessToken:{required:!0,serializedName:"accessToken",type:{name:"String"}}}}},P={serializedName:"FacebookChannelProperties",type:{name:"Composite",className:"FacebookChannelProperties",modelProperties:{verifyToken:{readOnly:!0,serializedName:"verifyToken",type:{name:"String"}},pages:{serializedName:"pages",type:{name:"Sequence",element:{type:{name:"Composite",className:"FacebookPage"}}}},appId:{required:!0,serializedName:"appId",type:{name:"String"}},appSecret:{required:!0,serializedName:"appSecret",type:{name:"String"}},callbackUrl:{readOnly:!0,serializedName:"callbackUrl",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},S={serializedName:"FacebookChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"FacebookChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"FacebookChannelProperties"}}})}},z={serializedName:"EmailChannelProperties",type:{name:"Composite",className:"EmailChannelProperties",modelProperties:{emailAddress:{required:!0,serializedName:"emailAddress",type:{name:"String"}},password:{required:!0,serializedName:"password",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},g={serializedName:"EmailChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"EmailChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"EmailChannelProperties"}}})}},b={serializedName:"MsTeamsChannelProperties",type:{name:"Composite",className:"MsTeamsChannelProperties",modelProperties:{enableCalling:{serializedName:"enableCalling",type:{name:"Boolean"}},callingWebHook:{serializedName:"callingWebHook",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},v={serializedName:"MsTeamsChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"MsTeamsChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"MsTeamsChannelProperties"}}})}},k={serializedName:"SkypeChannelProperties",type:{name:"Composite",className:"SkypeChannelProperties",modelProperties:{enableMessaging:{serializedName:"enableMessaging",type:{name:"Boolean"}},enableMediaCards:{serializedName:"enableMediaCards",type:{name:"Boolean"}},enableVideo:{serializedName:"enableVideo",type:{name:"Boolean"}},enableCalling:{serializedName:"enableCalling",type:{name:"Boolean"}},enableScreenSharing:{serializedName:"enableScreenSharing",type:{name:"Boolean"}},enableGroups:{serializedName:"enableGroups",type:{name:"Boolean"}},groupsMode:{serializedName:"groupsMode",type:{name:"String"}},callingWebHook:{serializedName:"callingWebHook",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},M={serializedName:"SkypeChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"SkypeChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"SkypeChannelProperties"}}})}},f={serializedName:"KikChannelProperties",type:{name:"Composite",className:"KikChannelProperties",modelProperties:{userName:{required:!0,serializedName:"userName",type:{name:"String"}},apiKey:{required:!0,serializedName:"apiKey",type:{name:"String"}},isValidated:{serializedName:"isValidated",type:{name:"Boolean"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},q={serializedName:"KikChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"KikChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"KikChannelProperties"}}})}},B={serializedName:"WebChatSite",type:{name:"Composite",className:"WebChatSite",modelProperties:{siteId:{readOnly:!0,serializedName:"siteId",type:{name:"String"}},siteName:{required:!0,serializedName:"siteName",type:{name:"String"}},key:{readOnly:!0,serializedName:"key",type:{name:"String"}},key2:{readOnly:!0,serializedName:"key2",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}},enablePreview:{required:!0,serializedName:"enablePreview",type:{name:"Boolean"}}}}},L={serializedName:"WebChatChannelProperties",type:{name:"Composite",className:"WebChatChannelProperties",modelProperties:{webChatEmbedCode:{readOnly:!0,serializedName:"webChatEmbedCode",type:{name:"String"}},sites:{serializedName:"sites",type:{name:"Sequence",element:{type:{name:"Composite",className:"WebChatSite"}}}}}}},O={serializedName:"WebChatChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"WebChatChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"WebChatChannelProperties"}}})}},E={serializedName:"DirectLineSite",type:{name:"Composite",className:"DirectLineSite",modelProperties:{siteId:{readOnly:!0,serializedName:"siteId",type:{name:"String"}},siteName:{required:!0,serializedName:"siteName",type:{name:"String"}},key:{readOnly:!0,serializedName:"key",type:{name:"String"}},key2:{readOnly:!0,serializedName:"key2",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}},isV1Enabled:{required:!0,serializedName:"isV1Enabled",type:{name:"Boolean"}},isV3Enabled:{required:!0,serializedName:"isV3Enabled",type:{name:"Boolean"}},isSecureSiteEnabled:{serializedName:"isSecureSiteEnabled",type:{name:"Boolean"}},trustedOrigins:{serializedName:"trustedOrigins",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},R={serializedName:"DirectLineChannelProperties",type:{name:"Composite",className:"DirectLineChannelProperties",modelProperties:{sites:{serializedName:"sites",type:{name:"Sequence",element:{type:{name:"Composite",className:"DirectLineSite"}}}}}}},D={serializedName:"DirectLineChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"DirectLineChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"DirectLineChannelProperties"}}})}},T={serializedName:"TelegramChannelProperties",type:{name:"Composite",className:"TelegramChannelProperties",modelProperties:{accessToken:{required:!0,serializedName:"accessToken",type:{name:"String"}},isValidated:{serializedName:"isValidated",type:{name:"Boolean"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},A={serializedName:"TelegramChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"TelegramChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"TelegramChannelProperties"}}})}},I={serializedName:"SmsChannelProperties",type:{name:"Composite",className:"SmsChannelProperties",modelProperties:{phone:{required:!0,serializedName:"phone",type:{name:"String"}},accountSID:{required:!0,serializedName:"accountSID",type:{name:"String"}},authToken:{required:!0,serializedName:"authToken",type:{name:"String"}},isValidated:{serializedName:"isValidated",type:{name:"Boolean"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},G={serializedName:"SmsChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"SmsChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"SmsChannelProperties"}}})}},x={serializedName:"SlackChannelProperties",type:{name:"Composite",className:"SlackChannelProperties",modelProperties:{clientId:{required:!0,serializedName:"clientId",type:{name:"String"}},clientSecret:{required:!0,serializedName:"clientSecret",type:{name:"String"}},verificationToken:{required:!0,serializedName:"verificationToken",type:{name:"String"}},landingPageUrl:{serializedName:"landingPageUrl",type:{name:"String"}},redirectAction:{readOnly:!0,serializedName:"redirectAction",type:{name:"String"}},lastSubmissionId:{readOnly:!0,serializedName:"lastSubmissionId",type:{name:"String"}},registerBeforeOAuthFlow:{readOnly:!0,serializedName:"registerBeforeOAuthFlow",type:{name:"Boolean"}},isValidated:{readOnly:!0,serializedName:"isValidated",type:{name:"Boolean"}},signingSecret:{serializedName:"signingSecret",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},_={serializedName:"SlackChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"SlackChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"SlackChannelProperties"}}})}},W={serializedName:"LineRegistration",type:{name:"Composite",className:"LineRegistration",modelProperties:{generatedId:{readOnly:!0,serializedName:"generatedId",type:{name:"String"}},channelSecret:{serializedName:"channelSecret",type:{name:"String"}},channelAccessToken:{serializedName:"channelAccessToken",type:{name:"String"}}}}},F={serializedName:"LineChannelProperties",type:{name:"Composite",className:"LineChannelProperties",modelProperties:{lineRegistrations:{required:!0,serializedName:"lineRegistrations",type:{name:"Sequence",element:{type:{name:"Composite",className:"LineRegistration"}}}},callbackUrl:{readOnly:!0,serializedName:"callbackUrl",type:{name:"String"}},isValidated:{readOnly:!0,serializedName:"isValidated",type:{name:"Boolean"}}}}},U={serializedName:"LineChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"LineChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"LineChannelProperties"}}})}},w={serializedName:"DirectLineSpeechChannelProperties",type:{name:"Composite",className:"DirectLineSpeechChannelProperties",modelProperties:{cognitiveServicesSubscriptionId:{required:!0,serializedName:"cognitiveServicesSubscriptionId",type:{name:"String"}},isEnabled:{serializedName:"isEnabled",type:{name:"Boolean"}},customVoiceDeploymentId:{serializedName:"customVoiceDeploymentId",type:{name:"String"}},customSpeechModelId:{serializedName:"customSpeechModelId",type:{name:"String"}},isDefaultBotForCogSvcAccount:{serializedName:"isDefaultBotForCogSvcAccount",type:{name:"Boolean"}}}}},K={serializedName:"DirectLineSpeechChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"DirectLineSpeechChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"DirectLineSpeechChannelProperties"}}})}},V={serializedName:"SiteInfo",type:{name:"Composite",className:"SiteInfo",modelProperties:{siteName:{required:!0,serializedName:"siteName",type:{name:"String"}},key:{required:!0,serializedName:"key",type:{name:"Enum",allowedValues:["key1","key2"]}}}}},j={serializedName:"ConnectionSettingParameter",type:{name:"Composite",className:"ConnectionSettingParameter",modelProperties:{key:{serializedName:"key",type:{name:"String"}},value:{serializedName:"value",type:{name:"String"}}}}},Z={serializedName:"ConnectionSettingProperties",type:{name:"Composite",className:"ConnectionSettingProperties",modelProperties:{clientId:{serializedName:"clientId",type:{name:"String"}},settingId:{readOnly:!0,serializedName:"settingId",type:{name:"String"}},clientSecret:{serializedName:"clientSecret",type:{name:"String"}},scopes:{serializedName:"scopes",type:{name:"String"}},serviceProviderId:{serializedName:"serviceProviderId",type:{name:"String"}},serviceProviderDisplayName:{serializedName:"serviceProviderDisplayName",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Sequence",element:{type:{name:"Composite",className:"ConnectionSettingParameter"}}}}}}},H={serializedName:"ConnectionSetting",type:{name:"Composite",className:"ConnectionSetting",modelProperties:t(t({},m.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"ConnectionSettingProperties"}}})}},$={serializedName:"ServiceProviderParameter",type:{name:"Composite",className:"ServiceProviderParameter",modelProperties:{name:{readOnly:!0,serializedName:"name",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}},displayName:{readOnly:!0,serializedName:"displayName",type:{name:"String"}},description:{readOnly:!0,serializedName:"description",type:{name:"String"}},helpUrl:{readOnly:!0,serializedName:"helpUrl",type:{name:"String"}},default:{readOnly:!0,serializedName:"default",type:{name:"String"}}}}},J={serializedName:"ServiceProviderProperties",type:{name:"Composite",className:"ServiceProviderProperties",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},displayName:{readOnly:!0,serializedName:"displayName",type:{name:"String"}},serviceProviderName:{readOnly:!0,serializedName:"serviceProviderName",type:{name:"String"}},devPortalUrl:{readOnly:!0,serializedName:"devPortalUrl",type:{name:"String"}},iconUrl:{readOnly:!0,serializedName:"iconUrl",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceProviderParameter"}}}}}}},Q={serializedName:"ServiceProvider",type:{name:"Composite",className:"ServiceProvider",modelProperties:{properties:{serializedName:"properties",type:{name:"Composite",className:"ServiceProviderProperties"}}}}},X={serializedName:"ServiceProviderResponseList",type:{name:"Composite",className:"ServiceProviderResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceProvider"}}}}}}},Y={serializedName:"ErrorBody",type:{name:"Composite",className:"ErrorBody",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},ee={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorBody"}}}}},re={serializedName:"OperationDisplayInfo",type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},ae={serializedName:"OperationEntity",type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Object"}}}}},ie={serializedName:"CheckNameAvailabilityRequestBody",type:{name:"Composite",className:"CheckNameAvailabilityRequestBody",modelProperties:{name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},te={serializedName:"CheckNameAvailabilityResponseBody",type:{name:"Composite",className:"CheckNameAvailabilityResponseBody",modelProperties:{valid:{serializedName:"valid",type:{name:"Boolean"}},message:{serializedName:"message",type:{name:"String"}}}}},ne={serializedName:"BotResponseList",type:{name:"Composite",className:"BotResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Bot"}}}}}}},se={serializedName:"ChannelResponseList",type:{name:"Composite",className:"ChannelResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"BotChannel"}}}}}}},oe={serializedName:"OperationEntityListResult",type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},pe={serializedName:"ConnectionSettingResponseList",type:{name:"Composite",className:"ConnectionSettingResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"ConnectionSetting"}}}}}}},le={Channel:u,"Channel.AlexaChannel":N,"Channel.FacebookChannel":S,"Channel.EmailChannel":g,"Channel.MsTeamsChannel":v,"Channel.SkypeChannel":M,"Channel.KikChannel":q,"Channel.WebChatChannel":O,"Channel.DirectLineChannel":D,"Channel.TelegramChannel":A,"Channel.SmsChannel":G,"Channel.SlackChannel":_,"Channel.LineChannel":U,"Channel.DirectLineSpeechChannel":K},me=Object.freeze({__proto__:null,CloudError:o,BaseResource:p,Sku:l,Resource:m,BotProperties:d,Bot:c,Channel:u,BotChannel:h,AlexaChannelProperties:y,AlexaChannel:N,FacebookPage:C,FacebookChannelProperties:P,FacebookChannel:S,EmailChannelProperties:z,EmailChannel:g,MsTeamsChannelProperties:b,MsTeamsChannel:v,SkypeChannelProperties:k,SkypeChannel:M,KikChannelProperties:f,KikChannel:q,WebChatSite:B,WebChatChannelProperties:L,WebChatChannel:O,DirectLineSite:E,DirectLineChannelProperties:R,DirectLineChannel:D,TelegramChannelProperties:T,TelegramChannel:A,SmsChannelProperties:I,SmsChannel:G,SlackChannelProperties:x,SlackChannel:_,LineRegistration:W,LineChannelProperties:F,LineChannel:U,DirectLineSpeechChannelProperties:w,DirectLineSpeechChannel:K,SiteInfo:V,ConnectionItemName:{serializedName:"ConnectionItemName",type:{name:"Composite",className:"ConnectionItemName",modelProperties:{name:{readOnly:!0,serializedName:"name",type:{name:"String"}}}}},ConnectionSettingParameter:j,ConnectionSettingProperties:Z,ConnectionSetting:H,ServiceProviderParameter:$,ServiceProviderProperties:J,ServiceProvider:Q,ServiceProviderResponseList:X,ErrorBody:Y,ErrorModel:ee,OperationDisplayInfo:re,OperationEntity:ae,CheckNameAvailabilityRequestBody:ie,CheckNameAvailabilityResponseBody:te,BotResponseList:ne,ChannelResponseList:se,OperationEntityListResult:oe,ConnectionSettingResponseList:pe,discriminators:le}),de=Object.freeze({__proto__:null,discriminators:le,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,BotResponseList:ne,Channel:u,CheckNameAvailabilityRequestBody:ie,CheckNameAvailabilityResponseBody:te,ConnectionSetting:H,ConnectionSettingParameter:j,ConnectionSettingProperties:Z,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:K,DirectLineSpeechChannelProperties:w,EmailChannel:g,EmailChannelProperties:z,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:q,KikChannelProperties:f,LineChannel:U,LineChannelProperties:F,LineRegistration:W,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:I,TelegramChannel:A,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:B}),ce={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},ue={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},he={parameterPath:"channelName",mapper:{required:!0,serializedName:"channelName",type:{name:"Enum",allowedValues:["AlexaChannel","FacebookChannel","EmailChannel","KikChannel","TelegramChannel","SlackChannel","MsTeamsChannel","SkypeChannel","WebChatChannel","DirectLineChannel","SmsChannel","LineChannel","DirectLineSpeechChannel"]}}},ye={parameterPath:"channelName",mapper:{required:!0,serializedName:"channelName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},Ne={parameterPath:"connectionName",mapper:{required:!0,serializedName:"connectionName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$/},type:{name:"String"}}},Ce={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},Pe={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},Se={parameterPath:"resourceName",mapper:{required:!0,serializedName:"resourceName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},ze={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},ge=(be.prototype.create=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,parameters:a,options:i},ve,t)},be.prototype.update=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},ke,i)},be.prototype.deleteMethod=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},Me,i)},be.prototype.get=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},fe,i)},be.prototype.listByResourceGroup=function(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,options:r},qe,a)},be.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},Be,r)},be.prototype.getCheckNameAvailability=function(e,r,a){return this.client.sendOperationRequest({parameters:e,options:r},Le,a)},be.prototype.listByResourceGroupNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},Oe,a)},be.prototype.listNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},Ee,a)},be);function be(e){this.client=e}var de=new r.Serializer(de),ve={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Pe,Se,ze],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:"parameters",mapper:t(t({},c),{required:!0})},responses:{200:{bodyMapper:c},201:{bodyMapper:c},default:{bodyMapper:ee}},serializer:de},ke={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Pe,Se,ze],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:{location:["options","location"],tags:["options","tags"],sku:["options","sku"],kind:["options","kind"],etag:["options","etag"],properties:["options","properties"]},mapper:t(t({},c),{required:!0})},responses:{200:{bodyMapper:c},201:{bodyMapper:c},default:{bodyMapper:ee}},serializer:de},Me={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Pe,Se,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{},204:{},default:{bodyMapper:ee}},serializer:de},fe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Pe,Se,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:c},default:{bodyMapper:ee}},serializer:de},qe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices",urlParameters:[Pe,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:ne},default:{bodyMapper:ee}},serializer:de},Be={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices",urlParameters:[ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:ne},default:{bodyMapper:ee}},serializer:de},Le={httpMethod:"POST",path:"providers/Microsoft.BotService/checkNameAvailability",queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:"parameters",mapper:t(t({},ie),{required:!0})},responses:{200:{bodyMapper:te},default:{bodyMapper:ee}},serializer:de},Oe={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Ce],headerParameters:[ce],responses:{200:{bodyMapper:ne},default:{bodyMapper:ee}},serializer:de},Ee={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Ce],headerParameters:[ce],responses:{200:{bodyMapper:ne},default:{bodyMapper:ee}},serializer:de},de=Object.freeze({__proto__:null,discriminators:le,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,Channel:u,ChannelResponseList:se,ConnectionSetting:H,ConnectionSettingParameter:j,ConnectionSettingProperties:Z,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:K,DirectLineSpeechChannelProperties:w,EmailChannel:g,EmailChannelProperties:z,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:q,KikChannelProperties:f,LineChannel:U,LineChannelProperties:F,LineRegistration:W,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:I,TelegramChannel:A,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:B}),Re=(De.prototype.create=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,parameters:i,options:t},Te,n)},De.prototype.update=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},Ae,t)},De.prototype.deleteMethod=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},Ie,t)},De.prototype.get=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},Ge,t)},De.prototype.listWithKeys=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},xe,t)},De.prototype.listByResourceGroup=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},_e,i)},De.prototype.listByResourceGroupNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},We,a)},De);function De(e){this.client=e}var de=new r.Serializer(de),Te={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Pe,Se,he,ze],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:"parameters",mapper:t(t({},h),{required:!0})},responses:{200:{bodyMapper:h},201:{bodyMapper:h},default:{bodyMapper:ee}},serializer:de},Ae={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Pe,Se,he,ze],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:{location:["options","location"],tags:["options","tags"],sku:["options","sku"],kind:["options","kind"],etag:["options","etag"],properties:["options","properties"]},mapper:t(t({},h),{required:!0})},responses:{200:{bodyMapper:h},201:{bodyMapper:h},default:{bodyMapper:ee}},serializer:de},Ie={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Pe,Se,ye,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{},204:{},default:{bodyMapper:ee}},serializer:de},Ge={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Pe,Se,ye,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:h},default:{bodyMapper:ee}},serializer:de},xe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/listChannelWithKeys",urlParameters:[Pe,Se,he,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:h},default:{bodyMapper:ee}},serializer:de},_e={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels",urlParameters:[Pe,Se,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:se},default:{bodyMapper:ee}},serializer:de},We={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Ce],headerParameters:[ce],responses:{200:{bodyMapper:se},default:{bodyMapper:ee}},serializer:de},de=Object.freeze({__proto__:null,discriminators:le,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,Channel:u,ConnectionSetting:H,ConnectionSettingParameter:j,ConnectionSettingProperties:Z,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:K,DirectLineSpeechChannelProperties:w,EmailChannel:g,EmailChannelProperties:z,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:q,KikChannelProperties:f,LineChannel:U,LineChannelProperties:F,LineRegistration:W,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,SiteInfo:V,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:I,TelegramChannel:A,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:B}),Fe=(Ue.prototype.regenerateKeys=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,parameters:i,options:t},we,n)},Ue);function Ue(e){this.client=e}var de=new r.Serializer(de),we={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys",urlParameters:[Pe,Se,ze,{parameterPath:"channelName",mapper:{required:!0,serializedName:"channelName",type:{name:"Enum",allowedValues:["WebChatChannel","DirectLineChannel"]}}}],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:"parameters",mapper:t(t({},V),{required:!0})},responses:{200:{bodyMapper:h},default:{bodyMapper:ee}},serializer:de},ae=Object.freeze({__proto__:null,discriminators:le,CloudError:o,OperationDisplayInfo:re,OperationEntity:ae,OperationEntityListResult:oe}),Ke=(Ve.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},je,r)},Ve.prototype.listNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},Ze,a)},Ve);function Ve(e){this.client=e}var ae=new r.Serializer(ae),je={httpMethod:"GET",path:"providers/Microsoft.BotService/operations",queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:oe},default:{bodyMapper:o}},serializer:ae},Ze={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Ce],headerParameters:[ce],responses:{200:{bodyMapper:oe},default:{bodyMapper:o}},serializer:ae},B=Object.freeze({__proto__:null,discriminators:le,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,Channel:u,ConnectionSetting:H,ConnectionSettingParameter:j,ConnectionSettingProperties:Z,ConnectionSettingResponseList:pe,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:K,DirectLineSpeechChannelProperties:w,EmailChannel:g,EmailChannelProperties:z,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:q,KikChannelProperties:f,LineChannel:U,LineChannelProperties:F,LineRegistration:W,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,ServiceProvider:Q,ServiceProviderParameter:$,ServiceProviderProperties:J,ServiceProviderResponseList:X,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:I,TelegramChannel:A,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:B}),He=($e.prototype.listServiceProviders=function(e,r){return this.client.sendOperationRequest({options:e},Qe,r)},$e.prototype.listWithSecrets=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,options:i},Xe,t)},$e.prototype.create=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,parameters:i,options:t},Ye,n)},$e.prototype.update=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,parameters:i,options:t},er,n)},$e.prototype.get=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,options:i},rr,t)},$e.prototype.deleteMethod=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,options:i},ar,t)},$e.prototype.listByBotService=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},ir,i)},$e.prototype.listByBotServiceNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},tr,a)},$e);function $e(e){this.client=e}var Je,B=new r.Serializer(B),Qe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders",urlParameters:[ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:X},default:{bodyMapper:ee}},serializer:B},Xe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}/listWithSecrets",urlParameters:[Pe,Se,Ne,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:H},default:{bodyMapper:ee}},serializer:B},Ye={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",urlParameters:[Pe,Se,Ne,ze],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:"parameters",mapper:t(t({},H),{required:!0})},responses:{200:{bodyMapper:H},201:{bodyMapper:H},default:{bodyMapper:ee}},serializer:B},er={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",urlParameters:[Pe,Se,Ne,ze],queryParameters:[ue],headerParameters:[ce],requestBody:{parameterPath:"parameters",mapper:t(t({},H),{required:!0})},responses:{200:{bodyMapper:H},201:{bodyMapper:H},default:{bodyMapper:ee}},serializer:B},rr={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",urlParameters:[Pe,Se,Ne,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:H},default:{bodyMapper:ee}},serializer:B},ar={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",urlParameters:[Pe,Se,Ne,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{},204:{},default:{bodyMapper:ee}},serializer:B},ir={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections",urlParameters:[Pe,Se,ze],queryParameters:[ue],headerParameters:[ce],responses:{200:{bodyMapper:pe},default:{bodyMapper:ee}},serializer:B},tr={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Ce],headerParameters:[ce],responses:{200:{bodyMapper:pe},default:{bodyMapper:ee}},serializer:B},ee=(a(nr,Je=n.AzureServiceClient),nr);function nr(e,r,a){var i,t=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");return(a=a||{}).userAgent||(i=n.getDefaultUserAgentValue(),a.userAgent="@azure/arm-botservice/2.1.0 "+i),(t=Je.call(this,e,a)||this).apiVersion="2020-06-02",t.acceptLanguage="en-US",t.longRunningOperationRetryTimeout=30,t.baseUri=a.baseUri||t.baseUri||"https://management.azure.com",t.requestContentType="application/json; charset=utf-8",t.credentials=e,t.subscriptionId=r,null!==a.acceptLanguage&&void 0!==a.acceptLanguage&&(t.acceptLanguage=a.acceptLanguage),null!==a.longRunningOperationRetryTimeout&&void 0!==a.longRunningOperationRetryTimeout&&(t.longRunningOperationRetryTimeout=a.longRunningOperationRetryTimeout),t}var sr,B=(a(or,sr=ee),or);function or(e,r,a){a=sr.call(this,e,r,a)||this;return a.bots=new ge(a),a.channels=new Re(a),a.directLine=new Fe(a),a.operations=new Ke(a),a.botConnection=new He(a),a}e.AzureBotService=B,e.AzureBotServiceContext=ee,e.AzureBotServiceMappers=me,e.AzureBotServiceModels=s,e.BotConnection=He,e.Bots=ge,e.Channels=Re,e.DirectLine=Fe,e.Operations=Ke,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r(((e=e||self).Azure=e.Azure||{},e.Azure.ArmBotservice={}),e.msRestAzure,e.msRest)}(this,function(e,n,r){"use strict";var i=function(e,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(e,r)};function a(e,r){function a(){this.constructor=e}i(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}var t=function(){return(t=Object.assign||function(e){for(var r,a=1,i=arguments.length;a<i;a++)for(var t in r=arguments[a])Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}).apply(this,arguments)},s=Object.freeze({__proto__:null}),o=n.CloudErrorMapper,p=n.BaseResourceMapper,l={serializedName:"Sku",type:{name:"Composite",className:"Sku",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},tier:{readOnly:!0,serializedName:"tier",type:{name:"String"}}}}},m={serializedName:"Resource",type:{name:"Composite",className:"Resource",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},kind:{serializedName:"kind",type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},d={serializedName:"BotProperties",type:{name:"Composite",className:"BotProperties",modelProperties:{displayName:{required:!0,serializedName:"displayName",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},iconUrl:{serializedName:"iconUrl",type:{name:"String"}},endpoint:{required:!0,serializedName:"endpoint",type:{name:"String"}},endpointVersion:{readOnly:!0,serializedName:"endpointVersion",type:{name:"String"}},msaAppId:{required:!0,serializedName:"msaAppId",type:{name:"String"}},configuredChannels:{readOnly:!0,serializedName:"configuredChannels",type:{name:"Sequence",element:{type:{name:"String"}}}},enabledChannels:{readOnly:!0,serializedName:"enabledChannels",type:{name:"Sequence",element:{type:{name:"String"}}}},developerAppInsightKey:{serializedName:"developerAppInsightKey",type:{name:"String"}},developerAppInsightsApiKey:{serializedName:"developerAppInsightsApiKey",type:{name:"String"}},developerAppInsightsApplicationId:{serializedName:"developerAppInsightsApplicationId",type:{name:"String"}},luisAppIds:{serializedName:"luisAppIds",type:{name:"Sequence",element:{type:{name:"String"}}}},luisKey:{serializedName:"luisKey",type:{name:"String"}},isCmekEnabled:{serializedName:"isCmekEnabled",type:{name:"Boolean"}},cmekKeyVaultUrl:{serializedName:"cmekKeyVaultUrl",type:{name:"String"}},isIsolated:{serializedName:"isIsolated",type:{name:"Boolean"}},schemaTransformationVersion:{serializedName:"schemaTransformationVersion",type:{name:"String"}}}}},c={serializedName:"Bot",type:{name:"Composite",className:"Bot",modelProperties:t(t({},m.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"BotProperties"}}})}},u={serializedName:"Channel",type:{name:"Composite",polymorphicDiscriminator:{serializedName:"channelName",clientName:"channelName"},uberParent:"Channel",className:"Channel",modelProperties:{channelName:{required:!0,serializedName:"channelName",type:{name:"String"}}}}},h={serializedName:"BotChannel",type:{name:"Composite",className:"BotChannel",modelProperties:t(t({},m.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"Channel"}}})}},y={serializedName:"AlexaChannelProperties",type:{name:"Composite",className:"AlexaChannelProperties",modelProperties:{alexaSkillId:{required:!0,serializedName:"alexaSkillId",type:{name:"String"}},urlFragment:{readOnly:!0,serializedName:"urlFragment",type:{name:"String"}},serviceEndpointUri:{readOnly:!0,serializedName:"serviceEndpointUri",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},N={serializedName:"AlexaChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"AlexaChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"AlexaChannelProperties"}}})}},C={serializedName:"FacebookPage",type:{name:"Composite",className:"FacebookPage",modelProperties:{id:{required:!0,serializedName:"id",type:{name:"String"}},accessToken:{serializedName:"accessToken",type:{name:"String"}}}}},P={serializedName:"FacebookChannelProperties",type:{name:"Composite",className:"FacebookChannelProperties",modelProperties:{verifyToken:{readOnly:!0,serializedName:"verifyToken",type:{name:"String"}},pages:{serializedName:"pages",type:{name:"Sequence",element:{type:{name:"Composite",className:"FacebookPage"}}}},appId:{required:!0,serializedName:"appId",type:{name:"String"}},appSecret:{serializedName:"appSecret",type:{name:"String"}},callbackUrl:{readOnly:!0,serializedName:"callbackUrl",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},S={serializedName:"FacebookChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"FacebookChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"FacebookChannelProperties"}}})}},g={serializedName:"EmailChannelProperties",type:{name:"Composite",className:"EmailChannelProperties",modelProperties:{emailAddress:{required:!0,serializedName:"emailAddress",type:{name:"String"}},password:{serializedName:"password",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},z={serializedName:"EmailChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"EmailChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"EmailChannelProperties"}}})}},b={serializedName:"MsTeamsChannelProperties",type:{name:"Composite",className:"MsTeamsChannelProperties",modelProperties:{enableCalling:{serializedName:"enableCalling",type:{name:"Boolean"}},callingWebHook:{serializedName:"callingWebHook",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},v={serializedName:"MsTeamsChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"MsTeamsChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"MsTeamsChannelProperties"}}})}},k={serializedName:"SkypeChannelProperties",type:{name:"Composite",className:"SkypeChannelProperties",modelProperties:{enableMessaging:{serializedName:"enableMessaging",type:{name:"Boolean"}},enableMediaCards:{serializedName:"enableMediaCards",type:{name:"Boolean"}},enableVideo:{serializedName:"enableVideo",type:{name:"Boolean"}},enableCalling:{serializedName:"enableCalling",type:{name:"Boolean"}},enableScreenSharing:{serializedName:"enableScreenSharing",type:{name:"Boolean"}},enableGroups:{serializedName:"enableGroups",type:{name:"Boolean"}},groupsMode:{serializedName:"groupsMode",type:{name:"String"}},callingWebHook:{serializedName:"callingWebHook",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},M={serializedName:"SkypeChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"SkypeChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"SkypeChannelProperties"}}})}},f={serializedName:"KikChannelProperties",type:{name:"Composite",className:"KikChannelProperties",modelProperties:{userName:{required:!0,serializedName:"userName",type:{name:"String"}},apiKey:{serializedName:"apiKey",type:{name:"String"}},isValidated:{serializedName:"isValidated",type:{name:"Boolean"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},B={serializedName:"KikChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"KikChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"KikChannelProperties"}}})}},q={serializedName:"WebChatSite",type:{name:"Composite",className:"WebChatSite",modelProperties:{siteId:{readOnly:!0,serializedName:"siteId",type:{name:"String"}},siteName:{required:!0,serializedName:"siteName",type:{name:"String"}},key:{readOnly:!0,serializedName:"key",type:{name:"String"}},key2:{readOnly:!0,serializedName:"key2",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}},enablePreview:{required:!0,serializedName:"enablePreview",type:{name:"Boolean"}}}}},L={serializedName:"WebChatChannelProperties",type:{name:"Composite",className:"WebChatChannelProperties",modelProperties:{webChatEmbedCode:{readOnly:!0,serializedName:"webChatEmbedCode",type:{name:"String"}},sites:{serializedName:"sites",type:{name:"Sequence",element:{type:{name:"Composite",className:"WebChatSite"}}}}}}},O={serializedName:"WebChatChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"WebChatChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"WebChatChannelProperties"}}})}},E={serializedName:"DirectLineSite",type:{name:"Composite",className:"DirectLineSite",modelProperties:{siteId:{readOnly:!0,serializedName:"siteId",type:{name:"String"}},siteName:{required:!0,serializedName:"siteName",type:{name:"String"}},key:{readOnly:!0,serializedName:"key",type:{name:"String"}},key2:{readOnly:!0,serializedName:"key2",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}},isV1Enabled:{required:!0,serializedName:"isV1Enabled",type:{name:"Boolean"}},isV3Enabled:{required:!0,serializedName:"isV3Enabled",type:{name:"Boolean"}},isSecureSiteEnabled:{serializedName:"isSecureSiteEnabled",type:{name:"Boolean"}},trustedOrigins:{serializedName:"trustedOrigins",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},R={serializedName:"DirectLineChannelProperties",type:{name:"Composite",className:"DirectLineChannelProperties",modelProperties:{sites:{serializedName:"sites",type:{name:"Sequence",element:{type:{name:"Composite",className:"DirectLineSite"}}}}}}},D={serializedName:"DirectLineChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"DirectLineChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"DirectLineChannelProperties"}}})}},T={serializedName:"TelegramChannelProperties",type:{name:"Composite",className:"TelegramChannelProperties",modelProperties:{accessToken:{serializedName:"accessToken",type:{name:"String"}},isValidated:{serializedName:"isValidated",type:{name:"Boolean"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},I={serializedName:"TelegramChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"TelegramChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"TelegramChannelProperties"}}})}},A={serializedName:"SmsChannelProperties",type:{name:"Composite",className:"SmsChannelProperties",modelProperties:{phone:{required:!0,serializedName:"phone",type:{name:"String"}},accountSID:{required:!0,serializedName:"accountSID",type:{name:"String"}},authToken:{serializedName:"authToken",type:{name:"String"}},isValidated:{serializedName:"isValidated",type:{name:"Boolean"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},G={serializedName:"SmsChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"SmsChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"SmsChannelProperties"}}})}},x={serializedName:"SlackChannelProperties",type:{name:"Composite",className:"SlackChannelProperties",modelProperties:{clientId:{serializedName:"clientId",type:{name:"String"}},clientSecret:{serializedName:"clientSecret",type:{name:"String"}},verificationToken:{serializedName:"verificationToken",type:{name:"String"}},landingPageUrl:{serializedName:"landingPageUrl",type:{name:"String"}},redirectAction:{readOnly:!0,serializedName:"redirectAction",type:{name:"String"}},lastSubmissionId:{readOnly:!0,serializedName:"lastSubmissionId",type:{name:"String"}},registerBeforeOAuthFlow:{readOnly:!0,serializedName:"registerBeforeOAuthFlow",type:{name:"Boolean"}},isValidated:{readOnly:!0,serializedName:"isValidated",type:{name:"Boolean"}},signingSecret:{serializedName:"signingSecret",type:{name:"String"}},isEnabled:{required:!0,serializedName:"isEnabled",type:{name:"Boolean"}}}}},_={serializedName:"SlackChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"SlackChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"SlackChannelProperties"}}})}},F={serializedName:"LineRegistration",type:{name:"Composite",className:"LineRegistration",modelProperties:{generatedId:{readOnly:!0,serializedName:"generatedId",type:{name:"String"}},channelSecret:{serializedName:"channelSecret",type:{name:"String"}},channelAccessToken:{serializedName:"channelAccessToken",type:{name:"String"}}}}},U={serializedName:"LineChannelProperties",type:{name:"Composite",className:"LineChannelProperties",modelProperties:{lineRegistrations:{required:!0,serializedName:"lineRegistrations",type:{name:"Sequence",element:{type:{name:"Composite",className:"LineRegistration"}}}},callbackUrl:{readOnly:!0,serializedName:"callbackUrl",type:{name:"String"}},isValidated:{readOnly:!0,serializedName:"isValidated",type:{name:"Boolean"}}}}},W={serializedName:"LineChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"LineChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"LineChannelProperties"}}})}},K={serializedName:"DirectLineSpeechChannelProperties",type:{name:"Composite",className:"DirectLineSpeechChannelProperties",modelProperties:{cognitiveServiceRegion:{required:!0,serializedName:"cognitiveServiceRegion",type:{name:"String"}},cognitiveServiceSubscriptionKey:{required:!0,serializedName:"cognitiveServiceSubscriptionKey",type:{name:"String"}},isEnabled:{serializedName:"isEnabled",type:{name:"Boolean"}},customVoiceDeploymentId:{serializedName:"customVoiceDeploymentId",type:{name:"String"}},customSpeechModelId:{serializedName:"customSpeechModelId",type:{name:"String"}},isDefaultBotForCogSvcAccount:{serializedName:"isDefaultBotForCogSvcAccount",type:{name:"Boolean"}}}}},V={serializedName:"DirectLineSpeechChannel",type:{name:"Composite",polymorphicDiscriminator:u.type.polymorphicDiscriminator,uberParent:"Channel",className:"DirectLineSpeechChannel",modelProperties:t(t({},u.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"DirectLineSpeechChannelProperties"}}})}},w={serializedName:"SiteInfo",type:{name:"Composite",className:"SiteInfo",modelProperties:{siteName:{required:!0,serializedName:"siteName",type:{name:"String"}},key:{required:!0,serializedName:"key",type:{name:"Enum",allowedValues:["key1","key2"]}}}}},j={serializedName:"ConnectionSettingParameter",type:{name:"Composite",className:"ConnectionSettingParameter",modelProperties:{key:{serializedName:"key",type:{name:"String"}},value:{serializedName:"value",type:{name:"String"}}}}},H={serializedName:"ConnectionSettingProperties",type:{name:"Composite",className:"ConnectionSettingProperties",modelProperties:{clientId:{serializedName:"clientId",type:{name:"String"}},settingId:{readOnly:!0,serializedName:"settingId",type:{name:"String"}},clientSecret:{serializedName:"clientSecret",type:{name:"String"}},scopes:{serializedName:"scopes",type:{name:"String"}},serviceProviderId:{serializedName:"serviceProviderId",type:{name:"String"}},serviceProviderDisplayName:{serializedName:"serviceProviderDisplayName",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Sequence",element:{type:{name:"Composite",className:"ConnectionSettingParameter"}}}}}}},Z={serializedName:"ConnectionSetting",type:{name:"Composite",className:"ConnectionSetting",modelProperties:t(t({},m.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"ConnectionSettingProperties"}}})}},$={serializedName:"ServiceProviderParameter",type:{name:"Composite",className:"ServiceProviderParameter",modelProperties:{name:{readOnly:!0,serializedName:"name",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}},displayName:{readOnly:!0,serializedName:"displayName",type:{name:"String"}},description:{readOnly:!0,serializedName:"description",type:{name:"String"}},helpUrl:{readOnly:!0,serializedName:"helpUrl",type:{name:"String"}},default:{readOnly:!0,serializedName:"default",type:{name:"String"}}}}},J={serializedName:"ServiceProviderProperties",type:{name:"Composite",className:"ServiceProviderProperties",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},displayName:{readOnly:!0,serializedName:"displayName",type:{name:"String"}},serviceProviderName:{readOnly:!0,serializedName:"serviceProviderName",type:{name:"String"}},devPortalUrl:{readOnly:!0,serializedName:"devPortalUrl",type:{name:"String"}},iconUrl:{readOnly:!0,serializedName:"iconUrl",type:{name:"String"}},parameters:{serializedName:"parameters",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceProviderParameter"}}}}}}},Q={serializedName:"ServiceProvider",type:{name:"Composite",className:"ServiceProvider",modelProperties:{properties:{serializedName:"properties",type:{name:"Composite",className:"ServiceProviderProperties"}}}}},X={serializedName:"ServiceProviderResponseList",type:{name:"Composite",className:"ServiceProviderResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceProvider"}}}}}}},Y={serializedName:"ErrorBody",type:{name:"Composite",className:"ErrorBody",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},ee={serializedName:"Error",type:{name:"Composite",className:"ErrorModel",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorBody"}}}}},re={serializedName:"OperationDisplayInfo",type:{name:"Composite",className:"OperationDisplayInfo",modelProperties:{description:{serializedName:"description",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}}}}},ae={serializedName:"OperationEntity",type:{name:"Composite",className:"OperationEntity",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplayInfo"}},origin:{serializedName:"origin",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Object"}}}}},ie={serializedName:"CheckNameAvailabilityRequestBody",type:{name:"Composite",className:"CheckNameAvailabilityRequestBody",modelProperties:{name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},te={serializedName:"CheckNameAvailabilityResponseBody",type:{name:"Composite",className:"CheckNameAvailabilityResponseBody",modelProperties:{valid:{serializedName:"valid",type:{name:"Boolean"}},message:{serializedName:"message",type:{name:"String"}}}}},ne={serializedName:"HostSettingsResponse",type:{name:"Composite",className:"HostSettingsResponse",modelProperties:{oAuthUrl:{serializedName:"OAuthUrl",type:{name:"String"}},toBotFromChannelOpenIdMetadataUrl:{serializedName:"ToBotFromChannelOpenIdMetadataUrl",type:{name:"String"}},toBotFromChannelTokenIssuer:{serializedName:"ToBotFromChannelTokenIssuer",type:{name:"String"}},toBotFromEmulatorOpenIdMetadataUrl:{serializedName:"ToBotFromEmulatorOpenIdMetadataUrl",type:{name:"String"}},toChannelFromBotLoginUrl:{serializedName:"ToChannelFromBotLoginUrl",type:{name:"String"}},toChannelFromBotOAuthScope:{serializedName:"ToChannelFromBotOAuthScope",type:{name:"String"}},validateAuthority:{serializedName:"ValidateAuthority",type:{name:"Boolean"}},botOpenIdMetadata:{serializedName:"BotOpenIdMetadata",type:{name:"String"}}}}},se={serializedName:"BotResponseList",type:{name:"Composite",className:"BotResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Bot"}}}}}}},oe={serializedName:"ChannelResponseList",type:{name:"Composite",className:"ChannelResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"BotChannel"}}}}}}},pe={serializedName:"OperationEntityListResult",type:{name:"Composite",className:"OperationEntityListResult",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"OperationEntity"}}}}}}},le={serializedName:"ConnectionSettingResponseList",type:{name:"Composite",className:"ConnectionSettingResponseList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"ConnectionSetting"}}}}}}},me={Channel:u,"Channel.AlexaChannel":N,"Channel.FacebookChannel":S,"Channel.EmailChannel":z,"Channel.MsTeamsChannel":v,"Channel.SkypeChannel":M,"Channel.KikChannel":B,"Channel.WebChatChannel":O,"Channel.DirectLineChannel":D,"Channel.TelegramChannel":I,"Channel.SmsChannel":G,"Channel.SlackChannel":_,"Channel.LineChannel":W,"Channel.DirectLineSpeechChannel":V},de=Object.freeze({__proto__:null,CloudError:o,BaseResource:p,Sku:l,Resource:m,BotProperties:d,Bot:c,Channel:u,BotChannel:h,AlexaChannelProperties:y,AlexaChannel:N,FacebookPage:C,FacebookChannelProperties:P,FacebookChannel:S,EmailChannelProperties:g,EmailChannel:z,MsTeamsChannelProperties:b,MsTeamsChannel:v,SkypeChannelProperties:k,SkypeChannel:M,KikChannelProperties:f,KikChannel:B,WebChatSite:q,WebChatChannelProperties:L,WebChatChannel:O,DirectLineSite:E,DirectLineChannelProperties:R,DirectLineChannel:D,TelegramChannelProperties:T,TelegramChannel:I,SmsChannelProperties:A,SmsChannel:G,SlackChannelProperties:x,SlackChannel:_,LineRegistration:F,LineChannelProperties:U,LineChannel:W,DirectLineSpeechChannelProperties:K,DirectLineSpeechChannel:V,SiteInfo:w,ConnectionItemName:{serializedName:"ConnectionItemName",type:{name:"Composite",className:"ConnectionItemName",modelProperties:{name:{readOnly:!0,serializedName:"name",type:{name:"String"}}}}},ConnectionSettingParameter:j,ConnectionSettingProperties:H,ConnectionSetting:Z,ServiceProviderParameter:$,ServiceProviderProperties:J,ServiceProvider:Q,ServiceProviderResponseList:X,ErrorBody:Y,ErrorModel:ee,OperationDisplayInfo:re,OperationEntity:ae,CheckNameAvailabilityRequestBody:ie,CheckNameAvailabilityResponseBody:te,HostSettingsResponse:ne,BotResponseList:se,ChannelResponseList:oe,OperationEntityListResult:pe,ConnectionSettingResponseList:le,discriminators:me}),ce=Object.freeze({__proto__:null,discriminators:me,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,BotResponseList:se,Channel:u,CheckNameAvailabilityRequestBody:ie,CheckNameAvailabilityResponseBody:te,ConnectionSetting:Z,ConnectionSettingParameter:j,ConnectionSettingProperties:H,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:V,DirectLineSpeechChannelProperties:K,EmailChannel:z,EmailChannelProperties:g,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:B,KikChannelProperties:f,LineChannel:W,LineChannelProperties:U,LineRegistration:F,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:A,TelegramChannel:I,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:q}),ue={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},he={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},ye={parameterPath:"channelName",mapper:{required:!0,serializedName:"channelName",type:{name:"Enum",allowedValues:["AlexaChannel","FacebookChannel","EmailChannel","KikChannel","TelegramChannel","SlackChannel","MsTeamsChannel","SkypeChannel","WebChatChannel","DirectLineChannel","SmsChannel","LineChannel","DirectLineSpeechChannel"]}}},Ne={parameterPath:"channelName",mapper:{required:!0,serializedName:"channelName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},Ce={parameterPath:"connectionName",mapper:{required:!0,serializedName:"connectionName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$/},type:{name:"String"}}},Pe={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},Se={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},ge={parameterPath:"resourceName",mapper:{required:!0,serializedName:"resourceName",constraints:{MaxLength:64,MinLength:2,Pattern:/^[a-zA-Z0-9][a-zA-Z0-9_.-]*$/},type:{name:"String"}}},o={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},ze=(be.prototype.create=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,parameters:a,options:i},ve,t)},be.prototype.update=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},ke,i)},be.prototype.deleteMethod=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},Me,i)},be.prototype.get=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},fe,i)},be.prototype.listByResourceGroup=function(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,options:r},Be,a)},be.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},qe,r)},be.prototype.getCheckNameAvailability=function(e,r,a){return this.client.sendOperationRequest({parameters:e,options:r},Le,a)},be.prototype.listByResourceGroupNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},Oe,a)},be.prototype.listNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},Ee,a)},be);function be(e){this.client=e}var ce=new r.Serializer(ce),ve={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Se,ge,o],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:"parameters",mapper:t(t({},c),{required:!0})},responses:{200:{bodyMapper:c},201:{bodyMapper:c},default:{bodyMapper:ee}},serializer:ce},ke={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Se,ge,o],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:{location:["options","location"],tags:["options","tags"],sku:["options","sku"],kind:["options","kind"],etag:["options","etag"],properties:["options","properties"]},mapper:t(t({},c),{required:!0})},responses:{200:{bodyMapper:c},201:{bodyMapper:c},default:{bodyMapper:ee}},serializer:ce},Me={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Se,ge,o],queryParameters:[he],headerParameters:[ue],responses:{200:{},204:{},default:{bodyMapper:ee}},serializer:ce},fe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}",urlParameters:[Se,ge,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:c},default:{bodyMapper:ee}},serializer:ce},Be={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices",urlParameters:[Se,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:se},default:{bodyMapper:ee}},serializer:ce},qe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices",urlParameters:[o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:se},default:{bodyMapper:ee}},serializer:ce},Le={httpMethod:"POST",path:"providers/Microsoft.BotService/checkNameAvailability",queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:"parameters",mapper:t(t({},ie),{required:!0})},responses:{200:{bodyMapper:te},default:{bodyMapper:ee}},serializer:ce},Oe={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Pe],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:se},default:{bodyMapper:ee}},serializer:ce},Ee={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Pe],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:se},default:{bodyMapper:ee}},serializer:ce},ce=Object.freeze({__proto__:null,discriminators:me,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,Channel:u,ChannelResponseList:oe,ConnectionSetting:Z,ConnectionSettingParameter:j,ConnectionSettingProperties:H,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:V,DirectLineSpeechChannelProperties:K,EmailChannel:z,EmailChannelProperties:g,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:B,KikChannelProperties:f,LineChannel:W,LineChannelProperties:U,LineRegistration:F,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:A,TelegramChannel:I,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:q}),Re=(De.prototype.create=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,parameters:i,options:t},Te,n)},De.prototype.update=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},Ie,t)},De.prototype.deleteMethod=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},Ae,t)},De.prototype.get=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},Ge,t)},De.prototype.listWithKeys=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,options:i},xe,t)},De.prototype.listByResourceGroup=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},_e,i)},De.prototype.listByResourceGroupNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},Fe,a)},De);function De(e){this.client=e}var ce=new r.Serializer(ce),Te={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Se,ge,ye,o],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:"parameters",mapper:t(t({},h),{required:!0})},responses:{200:{bodyMapper:h},201:{bodyMapper:h},default:{bodyMapper:ee}},serializer:ce},Ie={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Se,ge,ye,o],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:{location:["options","location"],tags:["options","tags"],sku:["options","sku"],kind:["options","kind"],etag:["options","etag"],properties:["options","properties"]},mapper:t(t({},h),{required:!0})},responses:{200:{bodyMapper:h},201:{bodyMapper:h},default:{bodyMapper:ee}},serializer:ce},Ae={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Se,ge,Ne,o],queryParameters:[he],headerParameters:[ue],responses:{200:{},204:{},default:{bodyMapper:ee}},serializer:ce},Ge={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}",urlParameters:[Se,ge,Ne,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:h},default:{bodyMapper:ee}},serializer:ce},xe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/listChannelWithKeys",urlParameters:[Se,ge,ye,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:h},default:{bodyMapper:ee}},serializer:ce},_e={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels",urlParameters:[Se,ge,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:oe},default:{bodyMapper:ee}},serializer:ce},Fe={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Pe],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:oe},default:{bodyMapper:ee}},serializer:ce},ce=Object.freeze({__proto__:null,discriminators:me,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,Channel:u,ConnectionSetting:Z,ConnectionSettingParameter:j,ConnectionSettingProperties:H,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:V,DirectLineSpeechChannelProperties:K,EmailChannel:z,EmailChannelProperties:g,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:B,KikChannelProperties:f,LineChannel:W,LineChannelProperties:U,LineRegistration:F,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,SiteInfo:w,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:A,TelegramChannel:I,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:q}),Ue=(We.prototype.regenerateKeys=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,channelName:a,parameters:i,options:t},Ke,n)},We);function We(e){this.client=e}var ce=new r.Serializer(ce),Ke={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys",urlParameters:[Se,ge,o,{parameterPath:"channelName",mapper:{required:!0,serializedName:"channelName",type:{name:"Enum",allowedValues:["WebChatChannel","DirectLineChannel"]}}}],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:"parameters",mapper:t(t({},w),{required:!0})},responses:{200:{bodyMapper:h},default:{bodyMapper:ee}},serializer:ce},ae=Object.freeze({__proto__:null,discriminators:me,ErrorBody:Y,ErrorModel:ee,OperationDisplayInfo:re,OperationEntity:ae,OperationEntityListResult:pe}),Ve=(we.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},je,r)},we.prototype.listNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},He,a)},we);function we(e){this.client=e}var ae=new r.Serializer(ae),je={httpMethod:"GET",path:"providers/Microsoft.BotService/operations",queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:pe},default:{bodyMapper:ee}},serializer:ae},He={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Pe],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:pe},default:{bodyMapper:ee}},serializer:ae},q=Object.freeze({__proto__:null,discriminators:me,AlexaChannel:N,AlexaChannelProperties:y,BaseResource:p,Bot:c,BotChannel:h,BotProperties:d,Channel:u,ConnectionSetting:Z,ConnectionSettingParameter:j,ConnectionSettingProperties:H,ConnectionSettingResponseList:le,DirectLineChannel:D,DirectLineChannelProperties:R,DirectLineSite:E,DirectLineSpeechChannel:V,DirectLineSpeechChannelProperties:K,EmailChannel:z,EmailChannelProperties:g,ErrorBody:Y,ErrorModel:ee,FacebookChannel:S,FacebookChannelProperties:P,FacebookPage:C,KikChannel:B,KikChannelProperties:f,LineChannel:W,LineChannelProperties:U,LineRegistration:F,MsTeamsChannel:v,MsTeamsChannelProperties:b,Resource:m,ServiceProvider:Q,ServiceProviderParameter:$,ServiceProviderProperties:J,ServiceProviderResponseList:X,Sku:l,SkypeChannel:M,SkypeChannelProperties:k,SlackChannel:_,SlackChannelProperties:x,SmsChannel:G,SmsChannelProperties:A,TelegramChannel:I,TelegramChannelProperties:T,WebChatChannel:O,WebChatChannelProperties:L,WebChatSite:q}),Ze=($e.prototype.listServiceProviders=function(e,r){return this.client.sendOperationRequest({options:e},Je,r)},$e.prototype.listWithSecrets=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,options:i},Qe,t)},$e.prototype.create=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,parameters:i,options:t},Xe,n)},$e.prototype.update=function(e,r,a,i,t,n){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,parameters:i,options:t},Ye,n)},$e.prototype.get=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,options:i},er,t)},$e.prototype.deleteMethod=function(e,r,a,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,connectionName:a,options:i},rr,t)},$e.prototype.listByBotService=function(e,r,a,i){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:r,options:a},ar,i)},$e.prototype.listByBotServiceNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},ir,a)},$e);function $e(e){this.client=e}var q=new r.Serializer(q),Je={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders",urlParameters:[o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:X},default:{bodyMapper:ee}},serializer:q},Qe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets",urlParameters:[Se,ge,Ce,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:Z},default:{bodyMapper:ee}},serializer:q},Xe={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",urlParameters:[Se,ge,Ce,o],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:"parameters",mapper:t(t({},Z),{required:!0})},responses:{200:{bodyMapper:Z},201:{bodyMapper:Z},default:{bodyMapper:ee}},serializer:q},Ye={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",urlParameters:[Se,ge,Ce,o],queryParameters:[he],headerParameters:[ue],requestBody:{parameterPath:"parameters",mapper:t(t({},Z),{required:!0})},responses:{200:{bodyMapper:Z},201:{bodyMapper:Z},default:{bodyMapper:ee}},serializer:q},er={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",urlParameters:[Se,ge,Ce,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:Z},default:{bodyMapper:ee}},serializer:q},rr={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",urlParameters:[Se,ge,Ce,o],queryParameters:[he],headerParameters:[ue],responses:{200:{},204:{},default:{bodyMapper:ee}},serializer:q},ar={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections",urlParameters:[Se,ge,o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:le},default:{bodyMapper:ee}},serializer:q},ir={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[Pe],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:le},default:{bodyMapper:ee}},serializer:q},Y=Object.freeze({__proto__:null,discriminators:me,ErrorBody:Y,ErrorModel:ee,HostSettingsResponse:ne}),tr=(nr.prototype.get=function(e,r){return this.client.sendOperationRequest({options:e},or,r)},nr);function nr(e){this.client=e}var sr,or={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings",urlParameters:[o],queryParameters:[he],headerParameters:[ue],responses:{200:{bodyMapper:ne},default:{bodyMapper:ee}},serializer:new r.Serializer(Y)},r=(a(pr,sr=n.AzureServiceClient),pr);function pr(e,r,a){var i,t=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");return(a=a||{}).userAgent||(i=n.getDefaultUserAgentValue(),a.userAgent="@azure/arm-botservice/3.0.0 "+i),(t=sr.call(this,e,a)||this).apiVersion="2021-03-01",t.acceptLanguage="en-US",t.longRunningOperationRetryTimeout=30,t.baseUri=a.baseUri||t.baseUri||"https://management.azure.com",t.requestContentType="application/json; charset=utf-8",t.credentials=e,t.subscriptionId=r,null!==a.acceptLanguage&&void 0!==a.acceptLanguage&&(t.acceptLanguage=a.acceptLanguage),null!==a.longRunningOperationRetryTimeout&&void 0!==a.longRunningOperationRetryTimeout&&(t.longRunningOperationRetryTimeout=a.longRunningOperationRetryTimeout),t}var lr,Y=(a(mr,lr=r),mr);function mr(e,r,a){a=lr.call(this,e,r,a)||this;return a.bots=new ze(a),a.channels=new Re(a),a.directLine=new Ue(a),a.operations=new Ve(a),a.botConnection=new Ze(a),a.hostSettings=new tr(a),a}e.AzureBotService=Y,e.AzureBotServiceContext=r,e.AzureBotServiceMappers=de,e.AzureBotServiceModels=s,e.BotConnection=Ze,e.Bots=ze,e.Channels=Re,e.DirectLine=Ue,e.HostSettings=tr,e.Operations=Ve,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -13,2 +13,3 @@ import * as msRest from "@azure/ms-rest-js";

botConnection: operations.BotConnection;
hostSettings: operations.HostSettings;
/**

@@ -15,0 +16,0 @@ * Initializes a new instance of the AzureBotService class.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -35,2 +34,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

_this.botConnection = new operations.BotConnection(_this);
_this.hostSettings = new operations.HostSettings(_this);
return _this;

@@ -37,0 +37,0 @@ }

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";
import * as msRestAzure from "@azure/ms-rest-azure-js";
export declare class AzureBotServiceContext extends msRestAzure.AzureServiceClient {

@@ -6,0 +6,0 @@ credentials: msRest.ServiceClientCredentials | TokenCredential;

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -13,3 +12,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

var packageName = "@azure/arm-botservice";
var packageVersion = "2.1.0";
var packageVersion = "3.0.0";
var AzureBotServiceContext = /** @class */ (function (_super) {

@@ -44,3 +43,3 @@ __extends(AzureBotServiceContext, _super);

_this = _super.call(this, credentials, options) || this;
_this.apiVersion = '2020-06-02';
_this.apiVersion = '2021-03-01';
_this.acceptLanguage = 'en-US';

@@ -47,0 +46,0 @@ _this.longRunningOperationRetryTimeout = 30;

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

@@ -53,3 +53,3 @@ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";

* Required. Gets or sets the Kind of the resource. Possible values include: 'sdk', 'designer',
* 'bot', 'function'
* 'bot', 'function', 'azurebot'
*/

@@ -121,2 +121,18 @@ kind?: Kind;

luisKey?: string;
/**
* Whether Cmek is enabled
*/
isCmekEnabled?: boolean;
/**
* The CMK Url
*/
cmekKeyVaultUrl?: string;
/**
* Whether the bot is in an isolated network
*/
isIsolated?: boolean;
/**
* The channel schema transformation version for the bot
*/
schemaTransformationVersion?: string;
}

@@ -202,3 +218,3 @@ /**

*/
accessToken: string;
accessToken?: string;
}

@@ -227,3 +243,3 @@ /**

*/
appSecret: string;
appSecret?: string;
/**

@@ -264,3 +280,3 @@ * Callback Url

*/
password: string;
password?: string;
/**

@@ -379,3 +395,3 @@ * Whether this channel is enabled for the bot

*/
apiKey: string;
apiKey?: string;
/**

@@ -539,3 +555,3 @@ * Whether this channel is validated for the bot

*/
accessToken: string;
accessToken?: string;
/**

@@ -580,3 +596,3 @@ * Whether this channel is validated for the bot

*/
authToken: string;
authToken?: string;
/**

@@ -611,3 +627,3 @@ * Whether this channel is validated for the bot

*/
clientId: string;
clientId?: string;
/**

@@ -617,3 +633,3 @@ * The Slack client secret. Value only returned through POST to the action Channel List API,

*/
clientSecret: string;
clientSecret?: string;
/**

@@ -623,3 +639,3 @@ * The Slack verification token. Value only returned through POST to the action Channel List API,

*/
verificationToken: string;
verificationToken?: string;
/**

@@ -726,6 +742,10 @@ * The Slack landing page Url

/**
* The cognitive service subscription ID to use with this channel registration.
* The cognitive service region with this channel registration.
*/
cognitiveServicesSubscriptionId: string;
cognitiveServiceRegion: string;
/**
* The cognitive service subscription key to use with this channel registration.
*/
cognitiveServiceSubscriptionKey: string;
/**
* Whether this channel is enabled or not.

@@ -1025,2 +1045,40 @@ */

/**
* The response body returned for a request to Bot Service Management to check per subscription
* hostSettings
*/
export interface HostSettingsResponse {
/**
* For in-conversation bot user authentication
*/
oAuthUrl?: string;
/**
* For verifying incoming tokens from the channels
*/
toBotFromChannelOpenIdMetadataUrl?: string;
/**
* For verifying incoming tokens from the channels
*/
toBotFromChannelTokenIssuer?: string;
/**
* For verifying incoming tokens from bot emulator
*/
toBotFromEmulatorOpenIdMetadataUrl?: string;
/**
* For getting access token to channels from bot host
*/
toChannelFromBotLoginUrl?: string;
/**
* For getting access token to channels from bot host
*/
toChannelFromBotOAuthScope?: string;
/**
* Per cloud OAuth setting on whether authority is validated
*/
validateAuthority?: boolean;
/**
* Same as ToBotFromChannelOpenIdMetadataUrl, used by SDK < v4.12
*/
botOpenIdMetadata?: string;
}
/**
* Optional Parameters.

@@ -1045,3 +1103,3 @@ */

* Required. Gets or sets the Kind of the resource. Possible values include: 'sdk', 'designer',
* 'bot', 'function'
* 'bot', 'function', 'azurebot'
*/

@@ -1078,3 +1136,3 @@ kind?: Kind;

* Required. Gets or sets the Kind of the resource. Possible values include: 'sdk', 'designer',
* 'bot', 'function'
* 'bot', 'function', 'azurebot'
*/

@@ -1157,7 +1215,7 @@ kind?: Kind;

* Defines values for Kind.
* Possible values include: 'sdk', 'designer', 'bot', 'function'
* Possible values include: 'sdk', 'designer', 'bot', 'function', 'azurebot'
* @readonly
* @enum {string}
*/
export declare type Kind = 'sdk' | 'designer' | 'bot' | 'function';
export declare type Kind = 'sdk' | 'designer' | 'bot' | 'function' | 'azurebot';
/**

@@ -1618,2 +1676,20 @@ * Defines values for Key.

};
/**
* Contains response data for the get operation.
*/
export declare type HostSettingsGetResponse = HostSettingsResponse & {
/**
* 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: HostSettingsResponse;
};
};
//# sourceMappingURL=index.d.ts.map
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

@@ -55,2 +55,3 @@ import * as msRest from "@azure/ms-rest-js";

export declare const CheckNameAvailabilityResponseBody: msRest.CompositeMapper;
export declare const HostSettingsResponse: msRest.CompositeMapper;
export declare const BotResponseList: msRest.CompositeMapper;

@@ -57,0 +58,0 @@ export declare const ChannelResponseList: msRest.CompositeMapper;

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -205,2 +205,26 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

}
},
isCmekEnabled: {
serializedName: "isCmekEnabled",
type: {
name: "Boolean"
}
},
cmekKeyVaultUrl: {
serializedName: "cmekKeyVaultUrl",
type: {
name: "String"
}
},
isIsolated: {
serializedName: "isIsolated",
type: {
name: "Boolean"
}
},
schemaTransformationVersion: {
serializedName: "schemaTransformationVersion",
type: {
name: "String"
}
}

@@ -326,3 +350,2 @@ }

accessToken: {
required: true,
serializedName: "accessToken",

@@ -369,3 +392,2 @@ type: {

appSecret: {
required: true,
serializedName: "appSecret",

@@ -423,3 +445,2 @@ type: {

password: {
required: true,
serializedName: "password",

@@ -594,3 +615,2 @@ type: {

apiKey: {
required: true,
serializedName: "apiKey",

@@ -847,3 +867,2 @@ type: {

accessToken: {
required: true,
serializedName: "accessToken",

@@ -907,3 +926,2 @@ type: {

authToken: {
required: true,
serializedName: "authToken",

@@ -953,3 +971,2 @@ type: {

clientId: {
required: true,
serializedName: "clientId",

@@ -961,3 +978,2 @@ type: {

clientSecret: {
required: true,
serializedName: "clientSecret",

@@ -969,3 +985,2 @@ type: {

verificationToken: {
required: true,
serializedName: "verificationToken",

@@ -1128,5 +1143,5 @@ type: {

modelProperties: {
cognitiveServicesSubscriptionId: {
cognitiveServiceRegion: {
required: true,
serializedName: "cognitiveServicesSubscriptionId",
serializedName: "cognitiveServiceRegion",
type: {

@@ -1136,2 +1151,9 @@ name: "String"

},
cognitiveServiceSubscriptionKey: {
required: true,
serializedName: "cognitiveServiceSubscriptionKey",
type: {
name: "String"
}
},
isEnabled: {

@@ -1615,2 +1637,59 @@ serializedName: "isEnabled",

};
export var HostSettingsResponse = {
serializedName: "HostSettingsResponse",
type: {
name: "Composite",
className: "HostSettingsResponse",
modelProperties: {
oAuthUrl: {
serializedName: "OAuthUrl",
type: {
name: "String"
}
},
toBotFromChannelOpenIdMetadataUrl: {
serializedName: "ToBotFromChannelOpenIdMetadataUrl",
type: {
name: "String"
}
},
toBotFromChannelTokenIssuer: {
serializedName: "ToBotFromChannelTokenIssuer",
type: {
name: "String"
}
},
toBotFromEmulatorOpenIdMetadataUrl: {
serializedName: "ToBotFromEmulatorOpenIdMetadataUrl",
type: {
name: "String"
}
},
toChannelFromBotLoginUrl: {
serializedName: "ToChannelFromBotLoginUrl",
type: {
name: "String"
}
},
toChannelFromBotOAuthScope: {
serializedName: "ToChannelFromBotOAuthScope",
type: {
name: "String"
}
},
validateAuthority: {
serializedName: "ValidateAuthority",
type: {
name: "Boolean"
}
},
botOpenIdMetadata: {
serializedName: "BotOpenIdMetadata",
type: {
name: "String"
}
}
}
}
};
export var BotResponseList = {

@@ -1617,0 +1696,0 @@ serializedName: "BotResponseList",

@@ -1,2 +0,2 @@

export { discriminators, CloudError, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers";
export { discriminators, ErrorBody, ErrorModel, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers";
//# sourceMappingURL=operationsMappers.d.ts.map
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -8,3 +8,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

*/
export { discriminators, CloudError, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers";
export { discriminators, ErrorBody, ErrorModel, OperationDisplayInfo, OperationEntity, OperationEntityListResult } from "../models/mappers";
//# sourceMappingURL=operationsMappers.js.map
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -6,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -112,3 +111,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}/listWithSecrets",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets",
urlParameters: [

@@ -138,3 +137,3 @@ Parameters.resourceGroupName,

httpMethod: "PUT",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -171,3 +170,3 @@ Parameters.resourceGroupName,

httpMethod: "PATCH",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -204,3 +203,3 @@ Parameters.resourceGroupName,

httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -230,3 +229,3 @@ Parameters.resourceGroupName,

httpMethod: "DELETE",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -284,2 +283,5 @@ Parameters.resourceGroupName,

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -286,0 +288,0 @@ Parameters.acceptLanguage

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -295,2 +294,5 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -316,2 +318,5 @@ Parameters.acceptLanguage

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -318,0 +323,0 @@ Parameters.acceptLanguage

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -276,2 +275,5 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -278,0 +280,0 @@ Parameters.acceptLanguage

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -6,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

@@ -6,2 +6,3 @@ export * from "./bots";

export * from "./botConnection";
export * from "./hostSettings";
//# sourceMappingURL=index.d.ts.map
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -15,2 +14,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

export * from "./botConnection";
export * from "./hostSettings";
//# sourceMappingURL=index.js.map
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -52,3 +51,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

default: {
bodyMapper: Mappers.CloudError
bodyMapper: Mappers.ErrorModel
}

@@ -65,2 +64,5 @@ },

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -74,3 +76,3 @@ Parameters.acceptLanguage

default: {
bodyMapper: Mappers.CloudError
bodyMapper: Mappers.ErrorModel
}

@@ -77,0 +79,0 @@ },

The MIT License (MIT)
Copyright (c) 2020 Microsoft
Copyright (c) 2021 Microsoft

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -5,3 +5,3 @@ {

"description": "AzureBotService Library with typescript type definitions for node.js and browser.",
"version": "2.1.0",
"version": "3.0.0",
"dependencies": {

@@ -31,3 +31,3 @@ "@azure/ms-rest-azure-js": "^2.1.0",

},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/botservice/arm-botservice",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/botservice/arm-botservice",
"repository": {

@@ -34,0 +34,0 @@ "type": "git",

## Azure AzureBotService SDK for JavaScript
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureBotService.
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureBotService.

@@ -8,3 +8,3 @@ ### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

@@ -25,3 +25,2 @@ ### Prerequisites

```
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.

@@ -42,3 +41,2 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.

Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
#### nodejs - Authentication, client creation, and get bots as an example written in JavaScript.

@@ -93,3 +91,3 @@

clientId: "<client id for your Azure AD app>",
tenantId: "<optional tenant for your organization>"
tenant: "<optional tenant for your organization>"
});

@@ -96,0 +94,0 @@ const client = new Azure.ArmBotservice.AzureBotService(creds, subscriptionId);

@@ -24,4 +24,4 @@ import rollup from "rollup";

banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -28,0 +28,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -26,2 +25,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

botConnection: operations.BotConnection;
hostSettings: operations.HostSettings;

@@ -46,2 +46,3 @@ /**

this.botConnection = new operations.BotConnection(this);
this.hostSettings = new operations.HostSettings(this);
}

@@ -48,0 +49,0 @@ }

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -13,7 +12,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-botservice";
const packageVersion = "2.1.0";
const packageVersion = "3.0.0";

@@ -54,3 +53,3 @@ export class AzureBotServiceContext extends msRestAzure.AzureServiceClient {

this.apiVersion = '2020-06-02';
this.apiVersion = '2021-03-01';
this.acceptLanguage = 'en-US';

@@ -57,0 +56,0 @@ this.longRunningOperationRetryTimeout = 30;

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -62,3 +62,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

* Required. Gets or sets the Kind of the resource. Possible values include: 'sdk', 'designer',
* 'bot', 'function'
* 'bot', 'function', 'azurebot'
*/

@@ -131,2 +131,18 @@ kind?: Kind;

luisKey?: string;
/**
* Whether Cmek is enabled
*/
isCmekEnabled?: boolean;
/**
* The CMK Url
*/
cmekKeyVaultUrl?: string;
/**
* Whether the bot is in an isolated network
*/
isIsolated?: boolean;
/**
* The channel schema transformation version for the bot
*/
schemaTransformationVersion?: string;
}

@@ -219,3 +235,3 @@

*/
accessToken: string;
accessToken?: string;
}

@@ -245,3 +261,3 @@

*/
appSecret: string;
appSecret?: string;
/**

@@ -284,3 +300,3 @@ * Callback Url

*/
password: string;
password?: string;
/**

@@ -405,3 +421,3 @@ * Whether this channel is enabled for the bot

*/
apiKey: string;
apiKey?: string;
/**

@@ -573,3 +589,3 @@ * Whether this channel is validated for the bot

*/
accessToken: string;
accessToken?: string;
/**

@@ -616,3 +632,3 @@ * Whether this channel is validated for the bot

*/
authToken: string;
authToken?: string;
/**

@@ -649,3 +665,3 @@ * Whether this channel is validated for the bot

*/
clientId: string;
clientId?: string;
/**

@@ -655,3 +671,3 @@ * The Slack client secret. Value only returned through POST to the action Channel List API,

*/
clientSecret: string;
clientSecret?: string;
/**

@@ -661,3 +677,3 @@ * The Slack verification token. Value only returned through POST to the action Channel List API,

*/
verificationToken: string;
verificationToken?: string;
/**

@@ -769,6 +785,10 @@ * The Slack landing page Url

/**
* The cognitive service subscription ID to use with this channel registration.
* The cognitive service region with this channel registration.
*/
cognitiveServicesSubscriptionId: string;
cognitiveServiceRegion: string;
/**
* The cognitive service subscription key to use with this channel registration.
*/
cognitiveServiceSubscriptionKey: string;
/**
* Whether this channel is enabled or not.

@@ -1085,2 +1105,41 @@ */

/**
* The response body returned for a request to Bot Service Management to check per subscription
* hostSettings
*/
export interface HostSettingsResponse {
/**
* For in-conversation bot user authentication
*/
oAuthUrl?: string;
/**
* For verifying incoming tokens from the channels
*/
toBotFromChannelOpenIdMetadataUrl?: string;
/**
* For verifying incoming tokens from the channels
*/
toBotFromChannelTokenIssuer?: string;
/**
* For verifying incoming tokens from bot emulator
*/
toBotFromEmulatorOpenIdMetadataUrl?: string;
/**
* For getting access token to channels from bot host
*/
toChannelFromBotLoginUrl?: string;
/**
* For getting access token to channels from bot host
*/
toChannelFromBotOAuthScope?: string;
/**
* Per cloud OAuth setting on whether authority is validated
*/
validateAuthority?: boolean;
/**
* Same as ToBotFromChannelOpenIdMetadataUrl, used by SDK < v4.12
*/
botOpenIdMetadata?: string;
}
/**
* Optional Parameters.

@@ -1103,3 +1162,3 @@ */

* Required. Gets or sets the Kind of the resource. Possible values include: 'sdk', 'designer',
* 'bot', 'function'
* 'bot', 'function', 'azurebot'
*/

@@ -1135,3 +1194,3 @@ kind?: Kind;

* Required. Gets or sets the Kind of the resource. Possible values include: 'sdk', 'designer',
* 'bot', 'function'
* 'bot', 'function', 'azurebot'
*/

@@ -1222,7 +1281,7 @@ kind?: Kind;

* Defines values for Kind.
* Possible values include: 'sdk', 'designer', 'bot', 'function'
* Possible values include: 'sdk', 'designer', 'bot', 'function', 'azurebot'
* @readonly
* @enum {string}
*/
export type Kind = 'sdk' | 'designer' | 'bot' | 'function';
export type Kind = 'sdk' | 'designer' | 'bot' | 'function' | 'azurebot';

@@ -1734,1 +1793,21 @@ /**

};
/**
* Contains response data for the get operation.
*/
export type HostSettingsGetResponse = HostSettingsResponse & {
/**
* 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: HostSettingsResponse;
};
};
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -210,2 +210,26 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

}
},
isCmekEnabled: {
serializedName: "isCmekEnabled",
type: {
name: "Boolean"
}
},
cmekKeyVaultUrl: {
serializedName: "cmekKeyVaultUrl",
type: {
name: "String"
}
},
isIsolated: {
serializedName: "isIsolated",
type: {
name: "Boolean"
}
},
schemaTransformationVersion: {
serializedName: "schemaTransformationVersion",
type: {
name: "String"
}
}

@@ -346,3 +370,2 @@ }

accessToken: {
required: true,
serializedName: "accessToken",

@@ -390,3 +413,2 @@ type: {

appSecret: {
required: true,
serializedName: "appSecret",

@@ -449,3 +471,2 @@ type: {

password: {
required: true,
serializedName: "password",

@@ -635,3 +656,2 @@ type: {

apiKey: {
required: true,
serializedName: "apiKey",

@@ -905,3 +925,2 @@ type: {

accessToken: {
required: true,
serializedName: "accessToken",

@@ -970,3 +989,2 @@ type: {

authToken: {
required: true,
serializedName: "authToken",

@@ -1021,3 +1039,2 @@ type: {

clientId: {
required: true,
serializedName: "clientId",

@@ -1029,3 +1046,2 @@ type: {

clientSecret: {
required: true,
serializedName: "clientSecret",

@@ -1037,3 +1053,2 @@ type: {

verificationToken: {
required: true,
serializedName: "verificationToken",

@@ -1207,5 +1222,5 @@ type: {

modelProperties: {
cognitiveServicesSubscriptionId: {
cognitiveServiceRegion: {
required: true,
serializedName: "cognitiveServicesSubscriptionId",
serializedName: "cognitiveServiceRegion",
type: {

@@ -1215,2 +1230,9 @@ name: "String"

},
cognitiveServiceSubscriptionKey: {
required: true,
serializedName: "cognitiveServiceSubscriptionKey",
type: {
name: "String"
}
},
isEnabled: {

@@ -1717,2 +1739,60 @@ serializedName: "isEnabled",

export const HostSettingsResponse: msRest.CompositeMapper = {
serializedName: "HostSettingsResponse",
type: {
name: "Composite",
className: "HostSettingsResponse",
modelProperties: {
oAuthUrl: {
serializedName: "OAuthUrl",
type: {
name: "String"
}
},
toBotFromChannelOpenIdMetadataUrl: {
serializedName: "ToBotFromChannelOpenIdMetadataUrl",
type: {
name: "String"
}
},
toBotFromChannelTokenIssuer: {
serializedName: "ToBotFromChannelTokenIssuer",
type: {
name: "String"
}
},
toBotFromEmulatorOpenIdMetadataUrl: {
serializedName: "ToBotFromEmulatorOpenIdMetadataUrl",
type: {
name: "String"
}
},
toChannelFromBotLoginUrl: {
serializedName: "ToChannelFromBotLoginUrl",
type: {
name: "String"
}
},
toChannelFromBotOAuthScope: {
serializedName: "ToChannelFromBotOAuthScope",
type: {
name: "String"
}
},
validateAuthority: {
serializedName: "ValidateAuthority",
type: {
name: "Boolean"
}
},
botOpenIdMetadata: {
serializedName: "BotOpenIdMetadata",
type: {
name: "String"
}
}
}
}
};
export const BotResponseList: msRest.CompositeMapper = {

@@ -1719,0 +1799,0 @@ serializedName: "BotResponseList",

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -11,3 +11,4 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

discriminators,
CloudError,
ErrorBody,
ErrorModel,
OperationDisplayInfo,

@@ -14,0 +15,0 @@ OperationEntity,

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -6,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -329,3 +328,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}/listWithSecrets",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets",
urlParameters: [

@@ -356,3 +355,3 @@ Parameters.resourceGroupName,

httpMethod: "PUT",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -393,3 +392,3 @@ Parameters.resourceGroupName,

httpMethod: "PATCH",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -430,3 +429,3 @@ Parameters.resourceGroupName,

httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -457,3 +456,3 @@ Parameters.resourceGroupName,

httpMethod: "DELETE",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/Connections/{connectionName}",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}",
urlParameters: [

@@ -513,2 +512,5 @@ Parameters.resourceGroupName,

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -515,0 +517,0 @@ Parameters.acceptLanguage

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -525,2 +524,5 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -547,2 +549,5 @@ Parameters.acceptLanguage

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -549,0 +554,0 @@ Parameters.acceptLanguage

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -509,2 +508,5 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -511,0 +513,0 @@ Parameters.acceptLanguage

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -6,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -16,1 +15,2 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

export * from "./botConnection";
export * from "./hostSettings";
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*

@@ -98,3 +97,3 @@ * Code generated by Microsoft (R) AutoRest Code Generator.

default: {
bodyMapper: Mappers.CloudError
bodyMapper: Mappers.ErrorModel
}

@@ -112,2 +111,5 @@ },

],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [

@@ -121,3 +123,3 @@ Parameters.acceptLanguage

default: {
bodyMapper: Mappers.CloudError
bodyMapper: Mappers.ErrorModel
}

@@ -124,0 +126,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc