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.0.0 to 2.1.0

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.0.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"}}}}},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})});
import * as msRest from "@azure/ms-rest-js";
import { TokenCredential } from "@azure/core-auth";
import * as Models from "./models";

@@ -14,7 +15,12 @@ import * as Mappers from "./models/mappers";

* Initializes a new instance of the AzureBotService class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param credentials Credentials needed for the client to connect to Azure. Credentials
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
* more information about these credentials, see
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Azure Subscription ID.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureBotServiceOptions);
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureBotServiceOptions);
}

@@ -21,0 +27,0 @@ export { AzureBotService, AzureBotServiceContext, Models as AzureBotServiceModels, Mappers as AzureBotServiceMappers };

@@ -19,3 +19,8 @@ /*

* Initializes a new instance of the AzureBotService class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param credentials Credentials needed for the client to connect to Azure. Credentials
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
* more information about these credentials, see
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Azure Subscription ID.

@@ -22,0 +27,0 @@ * @param [options] The parameter options

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

@@ -10,8 +11,13 @@ apiVersion?: string;

* Initializes a new instance of the AzureBotService class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param credentials Credentials needed for the client to connect to Azure. Credentials
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
* more information about these credentials, see
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Azure Subscription ID.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureBotServiceOptions);
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureBotServiceOptions);
}
//# sourceMappingURL=azureBotServiceContext.d.ts.map

@@ -13,3 +13,3 @@ /*

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

@@ -19,3 +19,8 @@ __extends(AzureBotServiceContext, _super);

* Initializes a new instance of the AzureBotService class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param credentials Credentials needed for the client to connect to Azure. Credentials
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
* more information about these credentials, see
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Azure Subscription ID.

@@ -22,0 +27,0 @@ * @param [options] The parameter options

@@ -5,6 +5,7 @@ {

"description": "AzureBotService Library with typescript type definitions for node.js and browser.",
"version": "2.0.0",
"version": "2.1.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"@azure/ms-rest-azure-js": "^2.1.0",
"@azure/ms-rest-js": "^2.2.0",
"@azure/core-auth": "^1.1.4",
"tslib": "^1.10.0"

@@ -24,3 +25,3 @@ },

"devDependencies": {
"typescript": "^3.5.3",
"typescript": "^3.6.0",
"rollup": "^1.18.0",

@@ -27,0 +28,0 @@ "rollup-plugin-node-resolve": "^5.2.0",

## Azure AzureBotService SDK for JavaScript
This package contains an isomorphic SDK for AzureBotService.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureBotService.
### Currently supported environments
- Node.js version 6.x.x or higher
- Browser JavaScript
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
### How to Install
### Prerequisites
You must have an [Azure subscription](https://azure.microsoft.com/free/).
### How to install
To use this SDK in your project, you will need to install two packages.
- `@azure/arm-botservice` that contains the client.
- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
Install both packages using the below command:
```bash
npm install @azure/arm-botservice
npm install --save @azure/arm-botservice @azure/identity
```
> **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.
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.
### How to use
#### nodejs - Authentication, client creation and get bots as an example written in TypeScript.
- If you are writing a client side browser application,
- Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
- Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
- If you are writing a server side application,
- [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
- Complete the set up steps required by the credential if any.
- Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
##### Install @azure/ms-rest-nodeauth
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
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.
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth@"^3.0.0"
```
#### nodejs - Authentication, client creation, and get bots as an example written in JavaScript.
##### Sample code
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { AzureBotService, AzureBotServiceModels, AzureBotServiceMappers } from "@azure/arm-botservice";
```javascript
const { DefaultAzureCredential } = require("@azure/identity");
const { AzureBotService } = require("@azure/arm-botservice");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new AzureBotService(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const resourceName = "testresourceName";
client.bots.get(resourceGroupName, resourceName).then((result) => {
console.log("The result is:");
console.log(result);
});
// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
const creds = new DefaultAzureCredential();
const client = new AzureBotService(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const resourceName = "testresourceName";
client.bots.get(resourceGroupName, resourceName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);

@@ -49,15 +65,12 @@ });

#### browser - Authentication, client creation and get bots as an example written in JavaScript.
#### browser - Authentication, client creation, and get bots as an example written in JavaScript.
##### Install @azure/ms-rest-browserauth
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
- Note down the client Id from the previous step and use it in the browser sample below.
```bash
npm install @azure/ms-rest-browserauth
```
##### Sample code
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
- index.html
- index.html
```html

@@ -68,27 +81,23 @@ <!DOCTYPE html>

<title>@azure/arm-botservice sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/identity/dist/index.js"></script>
<script src="node_modules/@azure/arm-botservice/dist/arm-botservice.js"></script>
<script type="text/javascript">
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
// Create credentials using the `@azure/identity` package.
// Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead.
const credential = new InteractiveBrowserCredential(
{
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
tenantId: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.ArmBotservice.AzureBotService(res.creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const resourceName = "testresourceName";
client.bots.get(resourceGroupName, resourceName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
const client = new Azure.ArmBotservice.AzureBotService(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const resourceName = "testresourceName";
client.bots.get(resourceGroupName, resourceName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});

@@ -95,0 +104,0 @@ </script>

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

import * as msRest from "@azure/ms-rest-js";
import { TokenCredential } from "@azure/core-auth";
import * as Models from "./models";

@@ -29,7 +30,12 @@ import * as Mappers from "./models/mappers";

* Initializes a new instance of the AzureBotService class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param credentials Credentials needed for the client to connect to Azure. Credentials
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
* more information about these credentials, see
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Azure Subscription ID.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureBotServiceOptions) {
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureBotServiceOptions) {
super(credentials, subscriptionId, options);

@@ -36,0 +42,0 @@ this.bots = new operations.Bots(this);

@@ -13,9 +13,10 @@ /*

import * as msRest from "@azure/ms-rest-js";
import { TokenCredential } from "@azure/core-auth";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-botservice";
const packageVersion = "2.0.0";
const packageVersion = "2.1.0";
export class AzureBotServiceContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
credentials: msRest.ServiceClientCredentials | TokenCredential;
subscriptionId: string;

@@ -26,7 +27,12 @@ apiVersion?: string;

* Initializes a new instance of the AzureBotService class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param credentials Credentials needed for the client to connect to Azure. Credentials
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
* more information about these credentials, see
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
* @azure/ms-rest-browserauth are also supported.
* @param subscriptionId Azure Subscription ID.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureBotServiceOptions) {
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureBotServiceOptions) {
if (credentials == undefined) {

@@ -33,0 +39,0 @@ throw new Error('\'credentials\' cannot be null.');

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

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