From 7759e7003a1e66e4c10d76ec4c984fe1edb44cbd Mon Sep 17 00:00:00 2001 From: Chris McConnell Date: Fri, 30 Oct 2020 18:02:49 -0700 Subject: [PATCH] Add schemas from C# to packages. (#2986) --- .../botbuilder-ai-orchestrator/package.json | 2 +- .../Microsoft.OrchestratorRecognizer.schema | 30 +-- libraries/botbuilder-ai/package.json | 1 + .../schemas/Microsoft.LuisRecognizer.schema | 121 ++++++++++ .../schemas/Microsoft.QnAMakerDialog.schema | 141 +++++++++++ .../Microsoft.QnAMakerRecognizer.schema | 166 +++++++++++++ .../package.json | 9 +- .../Microsoft.Test.AssertCondition.schema | 25 ++ .../Microsoft.Test.AssertNoActivity.schema | 14 ++ .../schemas/Microsoft.Test.AssertReply.schema | 42 ++++ .../Microsoft.Test.AssertReplyActivity.schema | 35 +++ .../Microsoft.Test.AssertReplyOneOf.schema | 47 ++++ .../schemas/Microsoft.Test.CustomEvent.schema | 23 ++ ...rosoft.Test.HttpRequestSequenceMock.schema | 187 +++++++++++++++ .../Microsoft.Test.IHttpRequestMock.schema | 6 + .../Microsoft.Test.IPropertyMock.schema | 6 + .../schemas/Microsoft.Test.ITestAction.schema | 6 + .../Microsoft.Test.IUserTokenMock.schema | 6 + .../Microsoft.Test.MemoryAssertions.schema | 31 +++ .../schemas/Microsoft.Test.Script.schema | 64 +++++ .../Microsoft.Test.SetProperties.schema | 42 ++++ .../Microsoft.Test.UserActivity.schema | 23 ++ ...crosoft.Test.UserConversationUpdate.schema | 30 +++ .../schemas/Microsoft.Test.UserDelay.schema | 17 ++ .../schemas/Microsoft.Test.UserSays.schema | 22 ++ .../Microsoft.Test.UserTokenBasicMock.schema | 53 +++++ .../schemas/Microsoft.Test.UserTyping.schema | 15 ++ .../botbuilder-dialogs-adaptive/package.json | 3 +- .../Actions/Microsoft.BeginDialog.schema | 68 ++++++ .../Actions/Microsoft.BeginDialog.uischema | 21 ++ .../Actions/Microsoft.BeginSkill.schema | 91 ++++++++ .../Actions/Microsoft.BeginSkill.uischema | 15 ++ .../Actions/Microsoft.BreakLoop.schema | 23 ++ .../Actions/Microsoft.BreakLoop.uischema | 7 + .../Actions/Microsoft.CancelAllDialogs.schema | 39 ++++ .../Microsoft.CancelAllDialogs.uischema | 8 + .../Actions/Microsoft.CancelDialog.schema | 39 ++++ ...Microsoft.ContinueConversationLater.schema | 40 ++++ .../Actions/Microsoft.ContinueLoop.schema | 23 ++ .../Actions/Microsoft.ContinueLoop.uischema | 7 + .../Actions/Microsoft.DebugBreak.schema | 22 ++ .../Actions/Microsoft.DebugBreak.uischema | 6 + .../Actions/Microsoft.DeleteActivity.schema | 33 +++ .../Actions/Microsoft.DeleteProperties.schema | 35 +++ .../Microsoft.DeleteProperties.uischema | 15 ++ .../Actions/Microsoft.DeleteProperty.schema | 30 +++ .../Actions/Microsoft.DeleteProperty.uischema | 15 ++ .../Actions/Microsoft.EditActions.schema | 55 +++++ .../Actions/Microsoft.EditActions.uischema | 7 + .../Actions/Microsoft.EditArray.schema | 66 ++++++ .../Actions/Microsoft.EditArray.uischema | 20 ++ .../Actions/Microsoft.EmitEvent.schema | 70 ++++++ .../Actions/Microsoft.EmitEvent.uischema | 8 + .../Actions/Microsoft.EndDialog.schema | 31 +++ .../Actions/Microsoft.EndDialog.uischema | 8 + .../schemas/Actions/Microsoft.EndTurn.schema | 22 ++ .../Actions/Microsoft.EndTurn.uischema | 8 + .../schemas/Actions/Microsoft.Foreach.schema | 54 +++++ .../Actions/Microsoft.Foreach.uischema | 32 +++ .../Actions/Microsoft.ForeachPage.schema | 60 +++++ .../Actions/Microsoft.ForeachPage.uischema | 33 +++ .../Microsoft.GetActivityMembers.schema | 38 +++ .../Microsoft.GetConversationMembers.schema | 30 +++ .../Actions/Microsoft.GotoAction.schema | 30 +++ .../Actions/Microsoft.HttpRequest.schema | 104 +++++++++ .../Actions/Microsoft.HttpRequest.uischema | 22 ++ .../Actions/Microsoft.IfCondition.schema | 51 ++++ .../Actions/Microsoft.IfCondition.uischema | 12 + .../Actions/Microsoft.LogAction.schema | 41 ++++ .../Actions/Microsoft.LogAction.uischema | 8 + .../Actions/Microsoft.RepeatDialog.schema | 46 ++++ .../Actions/Microsoft.RepeatDialog.uischema | 12 + .../Actions/Microsoft.ReplaceDialog.schema | 55 +++++ .../Actions/Microsoft.ReplaceDialog.uischema | 13 ++ .../Actions/Microsoft.SendActivity.schema | 27 +++ .../Actions/Microsoft.SendActivity.uischema | 12 + .../Actions/Microsoft.SetProperties.schema | 56 +++++ .../Actions/Microsoft.SetProperties.uischema | 19 ++ .../Actions/Microsoft.SetProperty.schema | 45 ++++ .../Actions/Microsoft.SetProperty.uischema | 15 ++ .../Actions/Microsoft.SignOutUser.schema | 34 +++ .../Actions/Microsoft.SignOutUser.uischema | 7 + .../Actions/Microsoft.SwitchCondition.schema | 81 +++++++ .../Microsoft.SwitchCondition.uischema | 23 ++ .../Microsoft.TelemetryTrackEvent.schema | 43 ++++ .../Actions/Microsoft.ThrowException.schema | 30 +++ .../Actions/Microsoft.ThrowException.uischema | 7 + .../Actions/Microsoft.TraceActivity.schema | 43 ++++ .../Actions/Microsoft.TraceActivity.uischema | 8 + .../Actions/Microsoft.UpdateActivity.schema | 36 +++ .../schemas/Dialogs/Microsoft.Ask.schema | 34 +++ .../schemas/Dialogs/Microsoft.Ask.uischema | 12 + .../Dialogs/Microsoft.AttachmentInput.schema | 58 +++++ .../Microsoft.AttachmentInput.uischema | 15 ++ .../Dialogs/Microsoft.ChoiceInput.schema | 218 ++++++++++++++++++ .../Dialogs/Microsoft.ChoiceInput.uischema | 15 ++ .../Dialogs/Microsoft.ConfirmInput.schema | 164 +++++++++++++ .../Dialogs/Microsoft.ConfirmInput.uischema | 15 ++ .../Dialogs/Microsoft.DateTimeInput.schema | 41 ++++ .../Dialogs/Microsoft.DateTimeInput.uischema | 15 ++ .../Dialogs/Microsoft.InputDialog.schema | 107 +++++++++ .../Dialogs/Microsoft.NumberInput.schema | 42 ++++ .../Dialogs/Microsoft.NumberInput.uischema | 15 ++ .../Dialogs/Microsoft.OAuthInput.schema | 112 +++++++++ .../Dialogs/Microsoft.OAuthInput.uischema | 12 + .../Dialogs/Microsoft.TextInput.schema | 38 +++ .../Dialogs/Microsoft.TextInput.uischema | 15 ++ ...soft.ResourceMultiLanguageGenerator.schema | 25 ++ ...oft.TemplateEngineLanguageGenerator.schema | 14 ++ .../schemas/Microsoft.AdaptiveDialog.schema | 65 ++++++ .../schemas/Microsoft.AdaptiveDialog.uischema | 24 ++ .../Microsoft.IEntityRecognizer.schema | 7 + .../Microsoft.ILanguageGenerator.schema | 11 + .../schemas/Microsoft.ITrigger.schema | 6 + .../schemas/Microsoft.ITriggerSelector.schema | 6 + .../schemas/Microsoft.LanguagePolicy.schema | 16 ++ .../Microsoft.AgeEntityRecognizer.schema | 8 + ...soft.ChannelMentionEntityRecognizer.schema | 8 + ...rosoft.ConfirmationEntityRecognizer.schema | 8 + .../Microsoft.CurrencyEntityRecognizer.schema | 8 + .../Microsoft.DateTimeEntityRecognizer.schema | 8 + ...Microsoft.DimensionEntityRecognizer.schema | 8 + .../Microsoft.EmailEntityRecognizer.schema | 8 + .../Microsoft.GuidEntityRecognizer.schema | 8 + .../Microsoft.HashtagEntityRecognizer.schema | 8 + .../Microsoft.IpEntityRecognizer.schema | 8 + .../Microsoft.MentionEntityRecognizer.schema | 8 + .../Microsoft.NumberEntityRecognizer.schema | 8 + ...crosoft.NumberRangeEntityRecognizer.schema | 8 + .../Microsoft.OrdinalEntityRecognizer.schema | 8 + ...icrosoft.PercentageEntityRecognizer.schema | 8 + ...crosoft.PhoneNumberEntityRecognizer.schema | 8 + .../Microsoft.RegexEntityRecognizer.schema | 23 ++ ...crosoft.TemperatureEntityRecognizer.schema | 8 + .../Microsoft.UrlEntityRecognizer.schema | 8 + ...Microsoft.CrossTrainedRecognizerSet.schema | 25 ++ .../Microsoft.MultiLanguageRecognizer.schema | 31 +++ .../Microsoft.RecognizerSet.schema | 25 ++ .../Microsoft.RegexRecognizer.schema | 44 ++++ .../Microsoft.RegexRecognizer.uischema | 8 + .../Microsoft.ConditionalSelector.schema | 25 ++ .../Selectors/Microsoft.FirstSelector.schema | 7 + .../Microsoft.MostSpecificSelector.schema | 12 + .../Selectors/Microsoft.RandomSelector.schema | 14 ++ .../Selectors/Microsoft.TrueSelector.schema | 7 + .../Microsoft.ActivityTemplate.schema | 16 ++ .../Microsoft.StaticActivityTemplate.schema | 20 ++ .../Templates/Microsoft.TextTemplate.schema | 17 ++ .../Microsoft.OnActivity.schema | 18 ++ .../Microsoft.OnActivity.uischema | 14 ++ .../Microsoft.OnAssignEntity.schema | 24 ++ .../Microsoft.OnAssignEntity.uischema | 14 ++ .../Microsoft.OnBeginDialog.schema | 7 + .../Microsoft.OnBeginDialog.uischema | 14 ++ .../Microsoft.OnCancelDialog.schema | 7 + .../Microsoft.OnCancelDialog.uischema | 14 ++ .../Microsoft.OnChooseEntity.schema | 19 ++ .../Microsoft.OnChooseIntent.schema | 22 ++ .../Microsoft.OnChooseProperty.schema | 34 +++ .../Microsoft.OnCondition.schema | 42 ++++ .../Microsoft.OnCondition.uischema | 14 ++ .../Microsoft.OnContinueConversation.schema | 10 + ...rosoft.OnConversationUpdateActivity.schema | 10 + ...soft.OnConversationUpdateActivity.uischema | 16 ++ .../Microsoft.OnDialogEvent.schema | 18 ++ .../Microsoft.OnDialogEvent.uischema | 14 ++ .../Microsoft.OnEndOfActions.schema | 6 + .../Microsoft.OnEndOfActions.uischema | 14 ++ ...crosoft.OnEndOfConversationActivity.schema | 10 + ...osoft.OnEndOfConversationActivity.uischema | 14 ++ .../Microsoft.OnError.schema | 7 + .../Microsoft.OnError.uischema | 14 ++ .../Microsoft.OnEventActivity.schema | 10 + .../Microsoft.OnEventActivity.uischema | 14 ++ .../Microsoft.OnHandoffActivity.schema | 10 + .../Microsoft.OnHandoffActivity.uischema | 14 ++ ...rosoft.OnInstallationUpdateActivity.schema | 10 + ...soft.OnInstallationUpdateActivity.uischema | 14 ++ .../Microsoft.OnIntent.schema | 27 +++ .../Microsoft.OnIntent.uischema | 16 ++ .../Microsoft.OnInvokeActivity.schema | 10 + .../Microsoft.OnInvokeActivity.uischema | 14 ++ .../Microsoft.OnMessageActivity.schema | 10 + .../Microsoft.OnMessageActivity.uischema | 14 ++ .../Microsoft.OnMessageDeleteActivity.schema | 10 + ...Microsoft.OnMessageDeleteActivity.uischema | 14 ++ ...Microsoft.OnMessageReactionActivity.schema | 10 + ...crosoft.OnMessageReactionActivity.uischema | 14 ++ .../Microsoft.OnMessageUpdateActivity.schema | 10 + ...Microsoft.OnMessageUpdateActivity.uischema | 14 ++ .../Microsoft.OnQnAMatch.schema | 10 + .../Microsoft.OnRepromptDialog.schema | 7 + .../Microsoft.OnRepromptDialog.uischema | 14 ++ .../Microsoft.OnTypingActivity.schema | 10 + .../Microsoft.OnTypingActivity.uischema | 14 ++ .../Microsoft.OnUnknownIntent.schema | 10 + .../Microsoft.OnUnknownIntent.uischema | 14 ++ .../package.json | 1 + .../Microsoft.IActivityTemplate.schema | 17 ++ .../schemas/Microsoft.IDialog.schema | 11 + .../schemas/Microsoft.IRecognizer.schema | 11 + .../schemas/Microsoft.ITextTemplate.schema | 11 + 202 files changed, 5363 insertions(+), 24 deletions(-) rename libraries/botbuilder-ai-orchestrator/{schema => schemas}/Microsoft.OrchestratorRecognizer.schema (68%) create mode 100644 libraries/botbuilder-ai/schemas/Microsoft.LuisRecognizer.schema create mode 100644 libraries/botbuilder-ai/schemas/Microsoft.QnAMakerDialog.schema create mode 100644 libraries/botbuilder-ai/schemas/Microsoft.QnAMakerRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertCondition.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertNoActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReply.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyOneOf.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.CustomEvent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.HttpRequestSequenceMock.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IHttpRequestMock.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IPropertyMock.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.ITestAction.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IUserTokenMock.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.MemoryAssertions.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.Script.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.SetProperties.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserConversationUpdate.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserDelay.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserSays.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTokenBasicMock.schema create mode 100644 libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTyping.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueConversationLater.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetActivityMembers.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetConversationMembers.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GotoAction.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TelemetryTrackEvent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.UpdateActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.InputDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.ResourceMultiLanguageGenerator.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.TemplateEngineLanguageGenerator.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.IEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ILanguageGenerator.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITrigger.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITriggerSelector.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.LanguagePolicy.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.AgeEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ChannelMentionEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ConfirmationEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.CurrencyEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DateTimeEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DimensionEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.EmailEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.GuidEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.HashtagEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.IpEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.MentionEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberRangeEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.OrdinalEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PercentageEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PhoneNumberEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.RegexEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.TemperatureEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.UrlEntityRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.CrossTrainedRecognizerSet.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.MultiLanguageRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RecognizerSet.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.ConditionalSelector.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.FirstSelector.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.MostSpecificSelector.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.RandomSelector.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.TrueSelector.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.ActivityTemplate.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.StaticActivityTemplate.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.TextTemplate.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseEntity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseIntent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseProperty.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnContinueConversation.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnQnAMatch.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.uischema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.schema create mode 100644 libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.uischema create mode 100644 libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IActivityTemplate.schema create mode 100644 libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IDialog.schema create mode 100644 libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IRecognizer.schema create mode 100644 libraries/botbuilder-dialogs-declarative/schemas/Microsoft.ITextTemplate.schema diff --git a/libraries/botbuilder-ai-orchestrator/package.json b/libraries/botbuilder-ai-orchestrator/package.json index b8fe100d08..8a5aecdbc1 100644 --- a/libraries/botbuilder-ai-orchestrator/package.json +++ b/libraries/botbuilder-ai-orchestrator/package.json @@ -47,7 +47,7 @@ }, "files": [ "lib", - "schema", + "schemas", "src" ] } diff --git a/libraries/botbuilder-ai-orchestrator/schema/Microsoft.OrchestratorRecognizer.schema b/libraries/botbuilder-ai-orchestrator/schemas/Microsoft.OrchestratorRecognizer.schema similarity index 68% rename from libraries/botbuilder-ai-orchestrator/schema/Microsoft.OrchestratorRecognizer.schema rename to libraries/botbuilder-ai-orchestrator/schemas/Microsoft.OrchestratorRecognizer.schema index b8a54cc2b6..8717884162 100644 --- a/libraries/botbuilder-ai-orchestrator/schema/Microsoft.OrchestratorRecognizer.schema +++ b/libraries/botbuilder-ai-orchestrator/schemas/Microsoft.OrchestratorRecognizer.schema @@ -1,8 +1,8 @@ { "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", "$role": "implements(Microsoft.IRecognizer)", - "title": "QnAMaker Recognizer", - "description": "Recognizer for generating QnAMatch intents from a KB.", + "title": "Orchestrator recognizer", + "description": "Orchestrator recognizer.", "type": "object", "properties": { "id": { @@ -14,23 +14,13 @@ "$ref": "schema:#/definitions/stringExpression", "title": "Model", "description": "NLR model file path.", - "default": "settings.orchestrator.modelpath" + "default": "=settings.orchestrator.modelpath" }, "snapshotPath": { "$ref": "schema:#/definitions/stringExpression", - "title": "Endpoint Key", + "title": "Endpoint key", "description": "SnapShot file path.", - "default": "settings.orchestrator.shapshotpath" - }, - "useCompactEmbeddings": { - "$ref": "schema:#/definitions/booleanExpression", - "title": "Use compact embeddings", - "description": "If true, compact embeddings will be used.", - "default": "true", - "examples": [ - true, - "=turn.useCompactEmbeddings" - ] + "default": "=settings.orchestrator.shapshotpath" }, "entityRecognizers": { "type": "array", @@ -46,20 +36,20 @@ "description": "Recognizer returns ChooseIntent (disambiguation) if other intents are classified within this score of the top scoring intent.", "default": 0.05, "examples": [ - true, + "=true", "=turn.scoreThreshold", - "=settings.orchestrator.disambigscorethreshold" + "=settings.orchestrator.disambigScoreThreshold" ] }, "detectAmbiguousIntents": { "$ref": "schema:#/definitions/booleanExpression", - "title": "Threshold", + "title": "Detect ambiguous intents", "description": "If true, recognizer will look for ambiguous intents (intents with close recognition scores from top scoring intent).", "default": false, "examples": [ - true, + "=true", "=turn.detectAmbiguousIntents", - "=settings.orchestrator.detectambiguousintents" + "=settings.orchestrator.detectAmbiguousIntents" ] } }, diff --git a/libraries/botbuilder-ai/package.json b/libraries/botbuilder-ai/package.json index db7bf9aa98..b1dbe74661 100644 --- a/libraries/botbuilder-ai/package.json +++ b/libraries/botbuilder-ai/package.json @@ -55,6 +55,7 @@ }, "files": [ "lib", + "schemas", "src" ] } diff --git a/libraries/botbuilder-ai/schemas/Microsoft.LuisRecognizer.schema b/libraries/botbuilder-ai/schemas/Microsoft.LuisRecognizer.schema new file mode 100644 index 0000000000..7e7acb71e8 --- /dev/null +++ b/libraries/botbuilder-ai/schemas/Microsoft.LuisRecognizer.schema @@ -0,0 +1,121 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IRecognizer)", + "title": "LUIS Recognizer", + "description": "LUIS recognizer.", + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional unique id using with RecognizerSet. Other recognizers should return 'DeferToRecognizer_{Id}' intent when cross training data for this recognizer." + }, + "applicationId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "LUIS application id", + "description": "Application ID for your model from the LUIS service." + }, + "version": { + "$ref": "schema:#/definitions/stringExpression", + "title": "LUIS version", + "description": "Optional version to target. If null then predictionOptions.Slot is used." + }, + "endpoint": { + "$ref": "schema:#/definitions/stringExpression", + "title": "LUIS endpoint", + "description": "Endpoint to use for LUIS service like https://westus.api.cognitive.microsoft.com." + }, + "endpointKey": { + "$ref": "schema:#/definitions/stringExpression", + "title": "LUIS prediction key", + "description": "LUIS prediction key used to call endpoint." + }, + "externalEntityRecognizer": { + "$kind": "Microsoft.IRecognizer", + "title": "External entity recognizer", + "description": "Entities recognized by this recognizer will be passed to LUIS as external entities." + }, + "dynamicLists": { + "$ref": "schema:#/definitions/arrayExpression", + "title": "Dynamic lists", + "description": "Runtime defined entity lists.", + "items": { + "title": "Entity list", + "description": "Lists of canonical values and synonyms for an entity.", + "type": "object", + "properties": { + "entity": { + "title": "Entity", + "description": "Entity to extend with a dynamic list.", + "type": "string" + }, + "list": { + "title": "Dynamic list", + "description": "List of canonical forms and synonyms.", + "type": "array", + "items": { + "type": "object", + "title": "List entry", + "description": "Canonical form and synonynms.", + "properties": { + "canonicalForm": { + "title": "Canonical form", + "description": "Resolution if any synonym matches.", + "type": "string" + }, + "synonyms": { + "title": "Synonyms", + "description": "List of synonyms for a canonical form.", + "type": "array", + "items": { + "title": "Synonym", + "description": "Synonym for canonical form.", + "type": "string" + } + } + } + } + } + } + } + }, + "predictionOptions": { + "type": "object", + "title": "Prediction options", + "description": "Options to control LUIS prediction behavior.", + "properties": { + "includeAllIntents": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Include all intents", + "description": "True for all intents, false for only top intent." + }, + "includeInstanceData": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Include $instance", + "description": "True to include $instance metadata in the LUIS response." + }, + "log": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Log utterances", + "description": "True to log utterances on LUIS service." + }, + "preferExternalEntities": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Prefer external entities", + "description": "True to prefer external entities to those generated by LUIS models." + }, + "slot": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Slot", + "description": "Slot to use for talking to LUIS service like production or staging." + } + } + } + }, + "required": [ + "applicationId", + "endpoint", + "endpointKey" + ] +} diff --git a/libraries/botbuilder-ai/schemas/Microsoft.QnAMakerDialog.schema b/libraries/botbuilder-ai/schemas/Microsoft.QnAMakerDialog.schema new file mode 100644 index 0000000000..fc02d265ff --- /dev/null +++ b/libraries/botbuilder-ai/schemas/Microsoft.QnAMakerDialog.schema @@ -0,0 +1,141 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "QnAMaker dialog", + "description": "Dialog which uses QnAMAker knowledge base to answer questions.", + "type": "object", + "additionalProperties": false, + "properties": { + "knowledgeBaseId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "KnowledgeBase Id", + "description": "KnowledgeBase Id of your QnA Maker KnowledgeBase.", + "default": "=settings.qna.knowledgebaseid" + }, + "endpointKey": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Endpoint key", + "description": "Endpoint key for the QnA Maker KB.", + "default": "=settings.qna.endpointkey" + }, + "hostname": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Hostname", + "description": "Hostname for your QnA Maker service.", + "default": "=settings.qna.hostname", + "examples": [ + "https://yourserver.azurewebsites.net/qnamaker" + ] + }, + "noAnswer": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Fallback answer", + "description": "Default answer to return when none found in KB.", + "default": "Sorry, I did not find an answer." + }, + "threshold": { + "$ref": "schema:#/definitions/numberExpression", + "title": "Threshold", + "description": "Threshold score to filter results.", + "default": 0.3 + }, + "activeLearningCardTitle": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Active learning card title", + "description": "Title for active learning suggestions card.", + "default": "Did you mean:" + }, + "cardNoMatchText": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Card no match text", + "description": "Text for no match option.", + "default": "None of the above." + }, + "cardNoMatchResponse": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Card no match response", + "description": "Custom response when no match option was selected.", + "default": "Thanks for the feedback." + }, + "strictFilters": { + "$ref": "schema:#/definitions/arrayExpression", + "title": "Strict filters", + "description": "Metadata filters to use when calling the QnA Maker KB.", + "items": { + "type": "object", + "title": "Metadata filter", + "description": "Metadata filter.", + "properties": { + "name": { + "type": "string", + "title": "Name", + "description": "Name of filter property.", + "maximum": 100 + }, + "value": { + "type": "string", + "title": "Value", + "description": "Value to filter on.", + "maximum": 100 + } + } + } + }, + "top": { + "$ref": "schema:#/definitions/numberExpression", + "title": "Top", + "description": "The number of answers you want to retrieve.", + "default": 3 + }, + "isTest": { + "type": "boolean", + "title": "IsTest", + "description": "True, if pointing to Test environment, else false.", + "default": false + }, + "rankerType": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Ranker type", + "description": "Type of Ranker.", + "oneOf": [ + { + "title": "Standard ranker", + "description": "Standard ranker types.", + "enum": [ + "default", + "questionOnly", + "autoSuggestQuestion" + ], + "default": "default" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "strictFiltersJoinOperator": { + "$ref": "schema:#/definitions/stringExpression", + "title": "StrictFiltersJoinOperator", + "description": "Join operator for Strict Filters.", + "oneOf": [ + { + "title": "Join operator", + "description": "Value of Join Operator to be used as conjunction with Strict Filter values.", + "enum": [ + "AND", + "OR" + ], + "default": "AND" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + } + }, + "required": [ + "knowledgeBaseId", + "endpointKey", + "hostname" + ] +} diff --git a/libraries/botbuilder-ai/schemas/Microsoft.QnAMakerRecognizer.schema b/libraries/botbuilder-ai/schemas/Microsoft.QnAMakerRecognizer.schema new file mode 100644 index 0000000000..0a2d443a64 --- /dev/null +++ b/libraries/botbuilder-ai/schemas/Microsoft.QnAMakerRecognizer.schema @@ -0,0 +1,166 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IRecognizer)", + "title": "QnAMaker recognizer", + "description": "Recognizer for generating QnAMatch intents from a KB.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional unique id using with RecognizerSet." + }, + "knowledgeBaseId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "KnowledgeBase Id", + "description": "Knowledge base Id of your QnA Maker knowledge base.", + "default": "=settings.qna.knowledgebaseid" + }, + "endpointKey": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Endpoint key", + "description": "Endpoint key for the QnA Maker KB.", + "default": "=settings.qna.endpointkey" + }, + "hostname": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Hostname", + "description": "Hostname for your QnA Maker service.", + "default": "=settings.qna.hostname", + "examples": [ + "https://yourserver.azurewebsites.net/qnamaker" + ] + }, + "threshold": { + "$ref": "schema:#/definitions/numberExpression", + "title": "Threshold", + "description": "Threshold score to filter results.", + "default": 0.3 + }, + "strictFilters": { + "$ref": "schema:#/definitions/arrayExpression", + "title": "Strict filters", + "description": "Metadata filters to use when calling the QnA Maker KB.", + "items": { + "type": "object", + "title": "Metadata filters", + "description": "Metadata filters to use when querying QnA Maker KB.", + "properties": { + "name": { + "type": "string", + "title": "Name", + "description": "Name to filter on.", + "maximum": 100 + }, + "value": { + "type": "string", + "title": "Value", + "description": "Value to restrict filter.", + "maximum": 100 + } + } + } + }, + "top": { + "$ref": "schema:#/definitions/numberExpression", + "title": "Top", + "description": "The number of answers you want to retrieve.", + "default": 3 + }, + "isTest": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Use test environment", + "description": "True, if pointing to Test environment, else false.", + "examples": [ + true, + "=f(x)" + ] + }, + "rankerType": { + "title": "Ranker type", + "description": "Type of Ranker.", + "oneOf": [ + { + "type": "string", + "title": "Ranker type", + "description": "Type of Ranker.", + "enum": [ + "default", + "questionOnly", + "autoSuggestQuestion" + ], + "default": "default" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "strictFiltersJoinOperator": { + "$ref": "schema:#/definitions/stringExpression", + "title": "StrictFiltersJoinOperator", + "description": "Join operator for Strict Filters.", + "oneOf": [ + { + "title": "Join operator", + "description": "Value of Join Operator to be used as onjuction with Strict Filter values.", + "enum": [ + "AND", + "OR" + ], + "default": "AND" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "includeDialogNameInMetadata": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Include dialog name", + "description": "When set to false, the dialog name will not be passed to QnAMaker. (default) is true", + "default": true, + "examples": [ + true, + "=f(x)" + ] + }, + "metadata": { + "$ref": "schema:#/definitions/arrayExpression", + "title": "Metadata filters", + "description": "Metadata filters to use when calling the QnA Maker KB.", + "items": { + "type": "object", + "title": "Metadata filter", + "description": "Metadata filter to use when calling the QnA Maker KB.", + "properties": { + "name": { + "type": "string", + "title": "Name", + "description": "Name of value to test." + }, + "value": { + "type": "string", + "title": "Value", + "description": "Value to filter against." + } + } + } + }, + "context": { + "$ref": "schema:#/definitions/objectExpression", + "title": "QnA request context", + "description": "Context to use for ranking." + }, + "qnaId": { + "$ref": "schema:#/definitions/integerExpression", + "title": "QnA Id", + "description": "A number or expression which is the QnAId to paass to QnAMaker API." + } + }, + "required": [ + "knowledgeBaseId", + "endpointKey", + "hostname" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/package.json b/libraries/botbuilder-dialogs-adaptive-testing/package.json index b5847edb72..b6ef56688e 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/package.json +++ b/libraries/botbuilder-dialogs-adaptive-testing/package.json @@ -27,5 +27,10 @@ "typescript": "3.5.3" }, "author": "Microsoft", - "license": "MIT" -} + "license": "MIT", + "files": [ + "lib", + "schemas", + "src" + ] +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertCondition.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertCondition.schema new file mode 100644 index 0000000000..1cbad8db48 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertCondition.schema @@ -0,0 +1,25 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Assert Condition", + "description": "Assert condition is true.", + "type": "object", + "required": [ + "condition" + ], + "properties": { + "condition": { + "$ref": "schema:#/definitions/condition", + "title": "Condition", + "description": "Expression to evalute", + "examples": [ + "user.age > 10" + ] + }, + "description": { + "type": "string", + "title": "Description", + "description": "Description of what the condition is testing" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertNoActivity.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertNoActivity.schema new file mode 100644 index 0000000000..86959d7f5a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertNoActivity.schema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Assert Reply Activity", + "description": "Asserts that there is no activity.", + "type": "object", + "properties": { + "description": { + "type": "string", + "title": "Description", + "description": "The description of the assertion" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReply.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReply.schema new file mode 100644 index 0000000000..50ff7a06ad --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReply.schema @@ -0,0 +1,42 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Assert reply", + "description": "Asserts that a reply text is valid.", + "type": "object", + "properties": { + "text": { + "type": "string", + "title": "Reply text", + "description": "Expected reply text" + }, + "exact": { + "type": "boolean", + "title": "Exact match", + "description": "If true then an exact match must happen, if false then the reply activity.text must contain the reply text. [Default:false]" + }, + "description": { + "type": "string", + "title": "Description", + "description": "The description of what the assertion is testing" + }, + "timeout": { + "type": "number", + "title": "Timeout", + "description": "The amount of time in milliseconds to wait for a reply (default is 3000)" + }, + "assertions": { + "type": "array", + "title": "Assertions to validate activity", + "description": "Sequence of expressions which must evaluate to true.", + "items": { + "$ref": "schema:#/definitions/condition", + "title": "Assertion", + "description": "Assertion as an expression, which must evaluate to true or it will fail the test script.", + "examples": [ + "user.vip == true" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyActivity.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyActivity.schema new file mode 100644 index 0000000000..2d93cd283c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyActivity.schema @@ -0,0 +1,35 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Assert reply activity", + "description": "Asserts that a reply activity is valid.", + "type": "object", + "required": [ + "assertions" + ], + "properties": { + "description": { + "type": "string", + "title": "Description", + "description": "The description of what the assertion is testing" + }, + "timeout": { + "type": "number", + "title": "Timeout", + "description": "The amount of time in milliseconds to wait for a reply (default is 3000)" + }, + "assertions": { + "type": "array", + "title": "Assertions to validate Activity that is sent by the dialog", + "description": "Sequence of expressions which must evaluate to true.", + "items": { + "$ref": "schema:#/definitions/condition", + "title": "Assertion", + "description": "Assertion as an expression, which must evaluate to true or it will fail the test script.", + "examples": [ + "user.vip == true" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyOneOf.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyOneOf.schema new file mode 100644 index 0000000000..ace3e52bc3 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.AssertReplyOneOf.schema @@ -0,0 +1,47 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Assert activity text matches at least one", + "description": "Asserts that a reply text is one of multiple optional responses.", + "type": "object", + "properties": { + "text": { + "type": "array", + "title": "Replies", + "description": "Expected replies (one of which must match).", + "items": { + "type": "string", + "title": "Expected reply", + "description": "Expected reply." + } + }, + "exact": { + "type": "boolean", + "title": "Exact match", + "description": "If true then an exact match must happen, if false then the reply activity.text must contain the reply text. [Default:false]" + }, + "description": { + "type": "string", + "title": "Description", + "description": "The description of what the assertion is testing" + }, + "timeout": { + "type": "number", + "title": "Timeout", + "description": "The amount of time in milliseconds to wait for a reply (default is 3000)" + }, + "assertions": { + "type": "array", + "title": "Assertions to validate activity", + "description": "Sequence of expressions which must evaluate to true.", + "items": { + "$ref": "schema:#/definitions/condition", + "title": "Assertion", + "description": "Assertion as an expression, which must evaluate to true or it will fail the test script.", + "examples": [ + "user.vip == true" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.CustomEvent.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.CustomEvent.schema new file mode 100644 index 0000000000..bd8aca21e3 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.CustomEvent.schema @@ -0,0 +1,23 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "User event", + "description": "Sends event to the bot from the user.", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string", + "title": "Event name", + "description": "Event name to send to the bot." + }, + "value": { + "type": "object", + "title": "Event value", + "description": "Event value to send to the bot." + } + } +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.HttpRequestSequenceMock.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.HttpRequestSequenceMock.schema new file mode 100644 index 0000000000..ba4e17d331 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.HttpRequestSequenceMock.schema @@ -0,0 +1,187 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.IHttpRequestMock)", + "title": "HTTP request sequence mock", + "description": "Mock HttpRequest in sequence order.", + "type": "object", + "required": [ + "url" + ], + "properties": { + "method": { + "type": "string", + "title": "HTTP method", + "description": "HTTP method to match. If null, match to any method.", + "enum": [ + "GET", + "POST", + "PATCH", + "PUT", + "DELETE" + ], + "examples": [ + "GET", + "POST" + ] + }, + "url": { + "type": "string", + "title": "Url", + "description": "URL to match. Absolute or relative, may contain * wildcards.", + "examples": [ + "https://contoso.com" + ] + }, + "matchType": { + "type": "string", + "title": "Body match type", + "description": "The match type for body.", + "enum": [ + "Exact", + "Partial" + ], + "examples": [ + "Exact", + "Partial" + ], + "default": "Partial" + }, + "body": { + "type": "string", + "title": "Body", + "description": "The body to match against request's body.", + "examples": [ + "content" + ] + }, + "responses": { + "type": "array", + "title": "Responses", + "description": "Sequence of responses to reply. The last one will be repeated.", + "items": { + "type": "object", + "title": "HttpResponseMock", + "description": "Mocked http response.", + "properties": { + "statusCode": { + "title": "Status code", + "description": "The status code. Default is OK(200).", + "oneOf": [ + { + "type": "string", + "title": "String status code", + "description": "Use string as status code.", + "enum": [ + "Continue", + "SwitchingProtocols", + "OK", + "Created", + "Accepted", + "NonAuthoritativeInformation", + "NoContent", + "ResetContent", + "PartialContent", + "Ambiguous", + "MultipleChoices", + "Moved", + "MovedPermanently", + "Found", + "Redirect", + "RedirectMethod", + "SeeOther", + "NotModified", + "UseProxy", + "Unused", + "RedirectKeepVerb", + "TemporaryRedirect", + "BadRequest", + "Unauthorized", + "PaymentRequired", + "Forbidden", + "NotFound", + "MethodNotAllowed", + "NotAcceptable", + "ProxyAuthenticationRequired", + "RequestTimeout", + "Conflict", + "Gone", + "LengthRequired", + "PreconditionFailed", + "RequestEntityTooLarge", + "RequestUriTooLong", + "UnsupportedMediaType", + "RequestedRangeNotSatisfiable", + "ExpectationFailed", + "UpgradeRequired", + "InternalServerError", + "NotImplemented", + "BadGateway", + "ServiceUnavailable", + "GatewayTimeout", + "HttpVersionNotSupported" + ], + "examples": [ + "OK" + ] + }, + { + "type": "number", + "title": "Number status code", + "description": "Use number as status code.", + "examples": [ + 200 + ] + } + ], + "default": "OK" + }, + "reasonPhrase": { + "type": "string", + "title": "Reason phrase", + "description": "The reason phrase.", + "examples": [ + "Server is stolen." + ] + }, + "contentType": { + "type": "string", + "title": "ContentType", + "description": "Content type of response.", + "enum": [ + "String", + "ByteArray" + ], + "examples": [ + "String" + ], + "default": "String" + }, + "content": { + "title": "Content", + "description": "Content of response.", + "oneOf": [ + { + "type": "string", + "title": "String content", + "description": "Use string as content.", + "examples": [ + "string response" + ] + }, + { + "type": "object", + "title": "Object content", + "description": "Use object as content. It will be serialized to string.", + "examples": [ + { + "data": "object response" + } + ] + } + ] + } + } + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IHttpRequestMock.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IHttpRequestMock.schema new file mode 100644 index 0000000000..9f23c515e7 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IHttpRequestMock.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "HTTP request mock", + "description": "Components which derive from HttpRequestMock class", + "$role": "interface" +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IPropertyMock.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IPropertyMock.schema new file mode 100644 index 0000000000..cc5e0cc81e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IPropertyMock.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Property mock", + "description": "Components which derive from PropertyMock class", + "$role": "interface" +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.ITestAction.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.ITestAction.schema new file mode 100644 index 0000000000..122ba46da8 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.ITestAction.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Test action", + "description": "Components which derive from TestAction class", + "$role": "interface" +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IUserTokenMock.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IUserTokenMock.schema new file mode 100644 index 0000000000..e617d17de5 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.IUserTokenMock.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "User token mock", + "description": "Components which derive from UserTokenMock class", + "$role": "interface" +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.MemoryAssertions.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.MemoryAssertions.schema new file mode 100644 index 0000000000..f834b96f10 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.MemoryAssertions.schema @@ -0,0 +1,31 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Memory assertions", + "description": "Run assertions against current memory.", + "type": "object", + "required": [ + "assertions" + ], + "properties": { + "assertions": { + "type": "array", + "title": "Assertions against memory", + "description": "Sequence of expressions which must evaluate to true.", + "items": { + "$ref": "schema:#/definitions/condition", + "title": "Assertion", + "description": "Assertion as an expression, which must evaluate to true or it will fail the test script.", + "examples": [ + "user.vip == true" + ] + } + }, + "description": { + "type": "string", + "title": "Description", + "description": "The description of what the assertion is testing" + } + } +} + diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.Script.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.Script.schema new file mode 100644 index 0000000000..55c9004678 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.Script.schema @@ -0,0 +1,64 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [], + "title": "Test script", + "description": "Defines a sequence of test actions to perform to validate the behavior of dialogs.", + "type": "object", + "properties": { + "dialog": { + "$kind": "Microsoft.IDialog", + "title": "Dialog", + "description": "The root dialog to execute the test script against." + }, + "languagePolicy": { + "type": "object", + "title": "Language policy", + "description": "Defines fall back languages to try per user input language." + }, + "description": { + "type": "string", + "title": "Description", + "description": "Description of the test script" + }, + "httpRequestMocks": { + "type": "array", + "title": "Http request mocks", + "description": "Mock data for Microsoft.HttpRequest.", + "items": { + "$kind": "Microsoft.Test.IHttpRequestMock" + } + }, + "userTokenMocks": { + "type": "array", + "title": "User token mocks", + "description": "Mock data for Microsoft.OAuthInput.", + "items": { + "$kind": "Microsoft.Test.IUserTokenMock" + } + }, + "script": { + "type": "array", + "title": "Test actions", + "description": "Sequence of test actions to execute.", + "items": { + "$kind": "Microsoft.Test.ITestAction" + } + }, + "locale": { + "type": "string", + "title": "Locale", + "description": "Set the locale for the user utterances in the script.", + "default": "en-us" + }, + "enableTrace": { + "type": "boolean", + "title": "Enable trace activity", + "description": "Enable trace activities in the unit test (default is false)", + "default": false + } + }, + "required": [ + "dialog", + "script" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.SetProperties.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.SetProperties.schema new file mode 100644 index 0000000000..27fabe73ad --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.SetProperties.schema @@ -0,0 +1,42 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Set properties", + "description": "Set one or more property values.", + "type": "object", + "required": [ + "assignments" + ], + "properties": { + "assignments": { + "type": "array", + "title": "Assignments", + "description": "Property value assignments to set.", + "items": { + "type": "object", + "title": "Assignment", + "description": "Property assignment.", + "properties": { + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property (named location to store information).", + "examples": [ + "user.age" + ] + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "New value or expression.", + "examples": [ + "='milk'", + "=dialog.favColor", + "=dialog.favColor == 'red'" + ] + } + } + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserActivity.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserActivity.schema new file mode 100644 index 0000000000..26320a91b6 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserActivity.schema @@ -0,0 +1,23 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Send activity", + "description": "Sends activity to the bot.", + "type": "object", + "required": [ + "activity" + ], + "properties": { + "activity": { + "type": "object", + "title": "Activity", + "description": "Activity to send to bot.", + "additionalProperties": true + }, + "user": { + "type": "string", + "title": "User name", + "description": "The activity.from.id and activity.from.name will be this if specified." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserConversationUpdate.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserConversationUpdate.schema new file mode 100644 index 0000000000..c5942257f9 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserConversationUpdate.schema @@ -0,0 +1,30 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Send ConversationUpdate", + "description": "Sends ConversationUpdate activity to the bot.", + "type": "object", + "required": [], + "properties": { + "membersAdded": { + "type": "array", + "title": "Members added", + "description": "Names of the members to add", + "items": { + "type": "string", + "title": "Name", + "description": "Name of member to add." + } + }, + "membersRemoved": { + "type": "array", + "title": "Members removed", + "description": "Names of the members to remove", + "items": { + "type": "string", + "title": "Name", + "description": "Name of member to remove." + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserDelay.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserDelay.schema new file mode 100644 index 0000000000..6fe952c5a7 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserDelay.schema @@ -0,0 +1,17 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Delay execution", + "description": "Delays text script for time period.", + "type": "object", + "required": [ + "timespan" + ], + "properties": { + "timespan": { + "type": "number", + "title": "Timespan", + "description": "The amount of time in milliseconds to delay the execution of the test script" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserSays.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserSays.schema new file mode 100644 index 0000000000..7aea6019d5 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserSays.schema @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "User text", + "description": "Sends text to the bot from the user.", + "type": "object", + "required": [ + "text" + ], + "properties": { + "text": { + "type": "string", + "title": "Text", + "description": "Text to send to the bot." + }, + "user": { + "type": "string", + "title": "User name", + "description": "The activity.from.id and activity.from.name will be this if specified." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTokenBasicMock.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTokenBasicMock.schema new file mode 100644 index 0000000000..b247ffe9b8 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTokenBasicMock.schema @@ -0,0 +1,53 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.IUserTokenMock)", + "title": "User token mock", + "description": "Mock Basic UserToken", + "type": "object", + "required": [ + "connectionName", + "token" + ], + "properties": { + "connectionName": { + "type": "string", + "title": "Connection name", + "description": "The connection name.", + "examples": [ + "graph" + ] + }, + "channelId": { + "type": "string", + "title": "Channel Id", + "description": "The channel ID. If empty, same as adapter.Conversation.ChannelId.", + "examples": [ + "test" + ] + }, + "userId": { + "type": "string", + "title": "User Id", + "description": "The user ID. If empty, same as adapter.Conversation.User.Id.", + "examples": [ + "user1" + ] + }, + "token": { + "type": "string", + "title": "Token", + "description": "The token to store.", + "examples": [ + "token" + ] + }, + "magicCode": { + "type": "string", + "title": "Magic code", + "description": "The optional magic code to associate with this token.", + "examples": [ + "000000" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTyping.schema b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTyping.schema new file mode 100644 index 0000000000..29ce84a486 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive-testing/schemas/Microsoft.Test.UserTyping.schema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.Test.ITestAction)", + "title": "Send typing", + "description": "Sends typing activity to the bot.", + "type": "object", + "required": [], + "properties": { + "user": { + "type": "string", + "title": "User name", + "description": "The activity.from.id and activity.from.name will be this if specified." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/package.json b/libraries/botbuilder-dialogs-adaptive/package.json index 50bb826a54..df8e49a77d 100644 --- a/libraries/botbuilder-dialogs-adaptive/package.json +++ b/libraries/botbuilder-dialogs-adaptive/package.json @@ -55,6 +55,7 @@ }, "files": [ "lib", + "schemas", "src" ] -} +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.schema new file mode 100644 index 0000000000..2eec0b0abd --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.schema @@ -0,0 +1,68 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Begin a dialog", + "description": "Begin another dialog.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "dialog": { + "oneOf": [ + { + "$kind": "Microsoft.IDialog", + "pattern": "^(?!(=)).*", + "title": "Dialog" + }, + { + "$ref": "schema:#/definitions/equalsExpression", + "examples": [ + "=settings.dialogId" + ] + } + ], + "title": "Dialog name", + "description": "Name of the dialog to call." + }, + "options": { + "$ref": "schema:#/definitions/objectExpression", + "title": "Options", + "description": "One or more options that are passed to the dialog that is called.", + "additionalProperties": { + "type": "string", + "title": "Options", + "description": "Options for dialog." + }, + "examples": [ + { + "arg1": "=expression" + } + ] + }, + "activityProcessed": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Activity processed", + "description": "When set to false, the dialog that is called can process the current activity.", + "default": true + }, + "resultProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property to store any value returned by the dialog that is called.", + "examples": [ + "dialog.userName" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.uischema new file mode 100644 index 0000000000..1b8bfa2032 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginDialog.uischema @@ -0,0 +1,21 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Begin a new dialog", + "subtitle": "Begin Dialog", + "helpLink": "https://aka.ms/bfc-understanding-dialogs", + "order": [ + "dialog", + "options", + "resultProperty", + "*" + ], + "properties": { + "resultProperty": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.schema new file mode 100644 index 0000000000..97dc3586de --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.schema @@ -0,0 +1,91 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Begin a skill", + "description": "Begin a remote skill.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the skill dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=f(x)" + ] + }, + "activityProcessed": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Activity processed", + "description": "When set to false, the skill will be started using the activity in the current turn context instead of the activity in the Activity property.", + "default": true, + "examples": [ + true, + "=f(x)" + ] + }, + "resultProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property to store any value returned by the dialog that is called.", + "examples": [ + "dialog.userName" + ] + }, + "botId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Skill host bot ID", + "description": "The Microsoft App ID that will be calling the skill.", + "default": "=settings.MicrosoftAppId" + }, + "skillHostEndpoint": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Skill host", + "description": "The callback Url for the skill host.", + "default": "=settings.skillHostEndpoint", + "examples": [ + "https://mybot.contoso.com/api/skills/" + ] + }, + "connectionName": { + "$ref": "schema:#/definitions/stringExpression", + "title": "OAuth connection name (SSO)", + "description": "The OAuth Connection Name, that would be used to perform Single SignOn with a skill.", + "default": "=settings.connectionName" + }, + "skillAppId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Skill App Id", + "description": "The Microsoft App ID for the skill." + }, + "skillEndpoint": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Skill endpoint ", + "description": "The /api/messages endpoint for the skill.", + "examples": [ + "https://myskill.contoso.com/api/messages/" + ] + }, + "activity": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Activity", + "description": "The activity to send to the skill." + }, + "allowInterruptions": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Allow interruptions", + "description": "A boolean expression that determines whether the parent should be allowed to interrupt the skill.", + "default": true, + "examples": [ + true, + "=user.xyz" + ] + } + + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.uischema new file mode 100644 index 0000000000..8b9fa9a227 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BeginSkill.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Connect to a skill", + "subtitle": "Skill Dialog", + "helpLink": "https://aka.ms/bf-composer-docs-connect-skill", + "properties": { + "resultProperty": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.schema new file mode 100644 index 0000000000..2ed79ebb06 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.schema @@ -0,0 +1,23 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Break loop", + "description": "Stop executing this loop", + "type": "object", + "required": [], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.uischema new file mode 100644 index 0000000000..89d63a76ba --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.BreakLoop.uischema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Break out of loop", + "subtitle": "Break out of loop" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.schema new file mode 100644 index 0000000000..9164e9efae --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.schema @@ -0,0 +1,39 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Cancel all dialogs", + "description": "Cancel all active dialogs. All dialogs in the dialog chain will need a trigger to capture the event configured in this action.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "activityProcessed": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Activity processed", + "description": "When set to false, the caller dialog is told it should process the current activity.", + "default": true + }, + "eventName": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Event name", + "description": "Name of the event to emit." + }, + "eventValue": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Event value", + "description": "Value to emit with the event (optional).", + "additionalProperties": true + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.uischema new file mode 100644 index 0000000000..6ca302a43a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelAllDialogs.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Cancel all active dialogs", + "subtitle": "Cancel All Dialogs", + "helpLink": "https://aka.ms/bfc-understanding-dialogs" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelDialog.schema new file mode 100644 index 0000000000..9164e9efae --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.CancelDialog.schema @@ -0,0 +1,39 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Cancel all dialogs", + "description": "Cancel all active dialogs. All dialogs in the dialog chain will need a trigger to capture the event configured in this action.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "activityProcessed": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Activity processed", + "description": "When set to false, the caller dialog is told it should process the current activity.", + "default": true + }, + "eventName": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Event name", + "description": "Name of the event to emit." + }, + "eventValue": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Event value", + "description": "Value to emit with the event (optional).", + "additionalProperties": true + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueConversationLater.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueConversationLater.schema new file mode 100644 index 0000000000..39d23a365f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueConversationLater.schema @@ -0,0 +1,40 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Continue conversation later (Queue)", + "description": "Continue conversation at later time (via Azure Storage Queue).", + "type": "object", + "required": [ + "date", + "connectionString" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "date": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Date", + "description": "Date in the future as a ISO string when the conversation should continue.", + "examples": [ + "=addHours(utcNow(), 1)" + ] + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "Value to send in the activity.value." + } + + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.schema new file mode 100644 index 0000000000..a2efa95821 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.schema @@ -0,0 +1,23 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Continue loop", + "description": "Stop executing this template and continue with the next iteration of the loop.", + "type": "object", + "required": [], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.uischema new file mode 100644 index 0000000000..d9c8b1c897 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ContinueLoop.uischema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Continue loop", + "subtitle": "Continue loop" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.schema new file mode 100644 index 0000000000..17ea5acc6c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.schema @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Debugger break", + "description": "If debugger is attached, stop the execution at this point in the conversation.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.uischema new file mode 100644 index 0000000000..97a628ccf3 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DebugBreak.uischema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Debug Break" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteActivity.schema new file mode 100644 index 0000000000..b2d21c0f55 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteActivity.schema @@ -0,0 +1,33 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Delete Activity", + "description": "Delete an activity that was previously sent.", + "type": "object", + "required": [ + "activityId" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "activityId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "ActivityId", + "description": "expression to an activityId to delete", + "examples": [ + "=$lastActivity" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.schema new file mode 100644 index 0000000000..d37715028c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.schema @@ -0,0 +1,35 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Delete Properties", + "description": "Delete multiple properties and any value it holds.", + "type": "object", + "required": [ + "properties" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "properties": { + "type": "array", + "title": "Properties", + "description": "Properties to delete.", + "items": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property to delete." + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.uischema new file mode 100644 index 0000000000..44b1bb6d88 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperties.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Delete properties", + "subtitle": "Delete Properties", + "helpLink": "https://aka.ms/bfc-using-memory", + "properties": { + "properties": { + "intellisenseScopes": [ + "user-variables" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.schema new file mode 100644 index 0000000000..b216adf388 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.schema @@ -0,0 +1,30 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Delete property", + "description": "Delete a property and any value it holds.", + "type": "object", + "required": [ + "property" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property to delete." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.uischema new file mode 100644 index 0000000000..6f14ce0dbe --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.DeleteProperty.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Delete a property", + "subtitle": "Delete Property", + "helpLink": "https://aka.ms/bfc-using-memory", + "properties": { + "property": { + "intellisenseScopes": [ + "user-variables" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.schema new file mode 100644 index 0000000000..d347368d4f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.schema @@ -0,0 +1,55 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Edit actions.", + "description": "Edit the current list of actions.", + "type": "object", + "required": [ + "changeType", + "actions" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "changeType": { + "title": "Type of change", + "description": "Type of change to apply to the current actions.", + "oneOf": [ + { + "type": "string", + "title": "Standard change", + "description": "Standard change types.", + "enum": [ + "insertActions", + "insertActionsBeforeTags", + "appendActions", + "endSequence", + "replaceSequence" + ] + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "actions": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Actions", + "description": "Actions to apply." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.uischema new file mode 100644 index 0000000000..d04ee1ea96 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditActions.uischema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Modify active dialog", + "subtitle": "Edit Actions" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.schema new file mode 100644 index 0000000000..4d3336e0e8 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.schema @@ -0,0 +1,66 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Edit array", + "description": "Modify an array in memory", + "type": "object", + "required": [ + "itemsProperty" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "changeType": { + "title": "Type of change", + "description": "Type of change to the array in memory.", + "oneOf": [ + { + "type": "string", + "title": "Change type", + "description": "Standard change type.", + "enum": [ + "push", + "pop", + "take", + "remove", + "clear" + ] + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "itemsProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Items property", + "description": "Property that holds the array to update." + }, + "resultProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Result property", + "description": "Property to store the result of this action." + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "New value or expression.", + "examples": [ + "milk", + "=dialog.favColor", + "=dialog.favColor == 'red'" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.uischema new file mode 100644 index 0000000000..49177e057c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EditArray.uischema @@ -0,0 +1,20 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Edit an array property", + "subtitle": "Edit Array", + "helpLink": "https://aka.ms/bfc-using-memory", + "properties": { + "itemsProperty": { + "intellisenseScopes": [ + "user-variables" + ] + }, + "resultProperty": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.schema new file mode 100644 index 0000000000..35ceeab057 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.schema @@ -0,0 +1,70 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Emit a custom event", + "description": "Emit an event. Capture this event with a trigger.", + "type": "object", + "required": [ + "eventName" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "eventName": { + "$role": "expression", + "title": "Event name", + "description": "Name of the event to emit.", + "oneOf": [ + { + "type": "string", + "title": "Built-in event", + "description": "Standard event type.", + "enum": [ + "beginDialog", + "resumeDialog", + "repromptDialog", + "cancelDialog", + "endDialog", + "activityReceived", + "recognizedIntent", + "unknownIntent", + "actionsStarted", + "actionsSaved", + "actionsEnded", + "actionsResumed" + ] + }, + { + "type": "string", + "title": "Custom event", + "description": "Custom event type", + "pattern": "^(?!(beginDialog$|resumeDialog$|repromptDialog$|cancelDialog$|endDialog$|activityReceived$|recognizedIntent$|unknownIntent$|actionsStarted$|actionsSaved$|actionsEnded$|actionsResumed))(\\S){1}.*" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "eventValue": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Event value", + "description": "Value to emit with the event (optional)." + }, + "bubbleEvent": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Bubble event", + "description": "If true this event is passed on to parent dialogs." + } + } +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.uischema new file mode 100644 index 0000000000..f114de2a86 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EmitEvent.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Emit a custom event", + "subtitle": "Emit Event", + "helpLink": "https://aka.ms/bfc-custom-events" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.schema new file mode 100644 index 0000000000..cb047a1d9d --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.schema @@ -0,0 +1,31 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "End dialog", + "description": "End this dialog.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "Result value returned to the parent dialog.", + "examples": [ + "=dialog.userName", + "='tomato'" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.uischema new file mode 100644 index 0000000000..08cc7602a6 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndDialog.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "End this dialog", + "subtitle": "End Dialog", + "helpLink": "https://aka.ms/bfc-understanding-dialogs" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.schema new file mode 100644 index 0000000000..5c59acf176 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.schema @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "End turn", + "description": "End the current turn without ending the dialog.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.uischema new file mode 100644 index 0000000000..8009dbf15f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.EndTurn.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "End turn", + "subtitle": "End Turn", + "helpLink": "https://aka.ms/bfc-understanding-dialogs" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.schema new file mode 100644 index 0000000000..86ee998c3c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.schema @@ -0,0 +1,54 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "For each item", + "description": "Execute actions on each item in an a collection.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "itemsProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Items property", + "description": "Property that holds the array.", + "examples": [ + "user.todoList" + ] + }, + "index": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Index property", + "description": "Property that holds the index of the item.", + "default": "dialog.foreach.index" + }, + "value": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Value property", + "description": "Property that holds the value of the item.", + "default": "dialog.foreach.value" + }, + "actions": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Actions", + "description": "Actions to execute for each item. Use '$foreach.value' to access the value of each item. Use '$foreach.index' to access the index of each item." + } + }, + "required": [ + "itemsProperty", + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.uischema new file mode 100644 index 0000000000..ad4817921f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.Foreach.uischema @@ -0,0 +1,32 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Loop: For each item", + "subtitle": "For Each", + "order": [ + "itemsProperty", + "*" + ], + "hidden": [ + "actions" + ], + "helpLink": "https://aka.ms/bfc-controlling-conversation-flow", + "properties": { + "itemsProperty": { + "intellisenseScopes": [ + "user-variables" + ] + }, + "index": { + "intellisenseScopes": [ + "variable-scopes" + ] + }, + "value": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.schema new file mode 100644 index 0000000000..73620429cb --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.schema @@ -0,0 +1,60 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "For each page", + "description": "Execute actions on each page (collection of items) in an array.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "itemsProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Items property", + "description": "Property that holds the array.", + "examples": [ + "user.todoList" + ] + }, + "actions": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Actions", + "description": "Actions to execute for each page. Use '$foreach.page' to access each page." + }, + "pageIndex": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Index property", + "description": "Property that holds the index of the page.", + "default": "dialog.foreach.pageindex" + }, + "page": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Page property", + "description": "Property that holds the value of the page.", + "default": "dialog.foreach.page" + }, + "pageSize": { + "$ref": "schema:#/definitions/integerExpression", + "title": "Page size", + "description": "Number of items in each page.", + "default": 10 + } + }, + "required": [ + "itemsProperty", + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.uischema new file mode 100644 index 0000000000..328af416da --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ForeachPage.uischema @@ -0,0 +1,33 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Loop: For each page (multiple items)", + "subtitle": "For Each Page", + "order": [ + "itemsProperty", + "pageSize", + "*" + ], + "hidden": [ + "actions" + ], + "helpLink": "https://aka.ms/bfc-controlling-conversation-flow", + "properties": { + "itemsProperty": { + "intellisenseScopes": [ + "user-variables" + ] + }, + "pageIndex": { + "intellisenseScopes": [ + "variable-scopes" + ] + }, + "page": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetActivityMembers.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetActivityMembers.schema new file mode 100644 index 0000000000..a383d096d6 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetActivityMembers.schema @@ -0,0 +1,38 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Get activity members", + "description": "Get the members who are participating in an activity. (BotFrameworkAdapter only)", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property (named location to store information).", + "examples": [ + "user.age" + ] + }, + "activityId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Activity Id", + "description": "Activity ID or expression to an activityId to use to get the members. If none is defined then the current activity id will be used.", + "examples": [ + "$lastActivity" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetConversationMembers.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetConversationMembers.schema new file mode 100644 index 0000000000..0193114689 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GetConversationMembers.schema @@ -0,0 +1,30 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Get conversation members", + "description": "Get the members who are participating in an conversation. (BotFrameworkAdapter only)", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property (named location to store information).", + "examples": [ + "user.age" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GotoAction.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GotoAction.schema new file mode 100644 index 0000000000..d7f9fac0ae --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.GotoAction.schema @@ -0,0 +1,30 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Go to action", + "description": "Go to an an action by id.", + "type": "object", + "required": [ + "actionId" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "actionId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Action Id", + "description": "Action Id to execute next" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.schema new file mode 100644 index 0000000000..ffa3414eec --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.schema @@ -0,0 +1,104 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "type": "object", + "title": "HTTP request", + "description": "Make a HTTP request.", + "required": [ + "url", + "method" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "method": { + "type": "string", + "title": "HTTP method", + "description": "HTTP method to use.", + "enum": [ + "GET", + "POST", + "PATCH", + "PUT", + "DELETE" + ], + "examples": [ + "GET", + "POST" + ] + }, + "url": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Url", + "description": "URL to call (supports data binding).", + "examples": [ + "https://contoso.com" + ] + }, + "body": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Body", + "description": "Body to include in the HTTP call (supports data binding).", + "additionalProperties": true + }, + "resultProperty": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Result property", + "description": "A property to store the result of this action. The result can include any of the 4 properties from the HTTP response: statusCode, reasonPhrase, content, and headers. If the content is JSON it will be a deserialized object. The values can be accessed via .content for example.", + "examples": [ + "dialog.contosodata" + ] + }, + "contentType": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Content type", + "description": "Content media type for the body.", + "examples": [ + "application/json", + "text/plain" + ] + }, + "headers": { + "type": "object", + "additionalProperties": { + "$ref": "schema:#/definitions/stringExpression" + }, + "title": "Headers", + "description": "One or more headers to include in the request (supports data binding)." + }, + "responseType": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Response type", + "description": "Defines the type of HTTP response. Automatically calls the 'Send a response' action if set to 'Activity' or 'Activities'.", + "oneOf": [ + { + "type": "string", + "title": "Standard response", + "description": "Standard response type.", + "enum": [ + "none", + "json", + "activity", + "activities", + "binary" + ], + "default": "json" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.uischema new file mode 100644 index 0000000000..081a558905 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.HttpRequest.uischema @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Send an HTTP request", + "subtitle": "HTTP Request", + "order": [ + "method", + "url", + "body", + "headers", + "*" + ], + "helpLink": "https://aka.ms/bfc-using-http", + "properties": { + "resultProperty": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.schema new file mode 100644 index 0000000000..795b1b6864 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.schema @@ -0,0 +1,51 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "If condition", + "description": "Two-way branch the conversation flow based on a condition.", + "type": "object", + "required": [ + "condition", + "actions" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "condition": { + "$ref": "schema:#/definitions/condition", + "title": "Condition", + "description": "Expression to evaluate.", + "examples": [ + "user.age > 3" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "actions": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Actions", + "description": "Actions to execute if condition is true." + }, + "elseActions": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Else", + "description": "Actions to execute if condition is false." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.uischema new file mode 100644 index 0000000000..9a4358a395 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.IfCondition.uischema @@ -0,0 +1,12 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Branch: If/Else", + "subtitle": "If Condition", + "hidden": [ + "actions", + "elseActions" + ], + "helpLink": "https://aka.ms/bfc-controlling-conversation-flow" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.schema new file mode 100644 index 0000000000..70f4501788 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.schema @@ -0,0 +1,41 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Log to console", + "description": "Log a message to the host application. Send a TraceActivity to Bot Framework Emulator (optional).", + "type": "object", + "required": [ + "text" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "text": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Text", + "description": "Information to log." + }, + "label": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Label", + "description": "Label for the trace activity (used to identify it in a list of trace activities.)" + }, + "traceActivity": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Send trace activity", + "description": "If true, automatically sends a TraceActivity (view in Bot Framework Emulator)." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.uischema new file mode 100644 index 0000000000..34b87ce5b7 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.LogAction.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Log to console", + "subtitle": "Log Action", + "helpLink": "https://aka.ms/bfc-debugging-bots" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.schema new file mode 100644 index 0000000000..8846b62392 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.schema @@ -0,0 +1,46 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "type": "object", + "title": "Repeat dialog", + "description": "Repeat current dialog.", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "allowLoop": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "AllowLoop", + "description": "Optional condition which if true will allow loop of the repeated dialog.", + "examples": [ + "user.age > 3" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "options": { + "$ref": "schema:#/definitions/objectExpression", + "title": "Options", + "description": "One or more options that are passed to the dialog that is called.", + "additionalProperties": { + "type": "string", + "title": "Options", + "description": "Options for repeating dialog." + } + }, + "activityProcessed": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Activity processed", + "description": "When set to false, the dialog that is called can process the current activity.", + "default": true + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.uischema new file mode 100644 index 0000000000..698f12482a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.RepeatDialog.uischema @@ -0,0 +1,12 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Repeat this dialog", + "subtitle": "Repeat Dialog", + "helpLink": "https://aka.ms/bfc-understanding-dialogs", + "order": [ + "options", + "*" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.schema new file mode 100644 index 0000000000..7be19bfea5 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.schema @@ -0,0 +1,55 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "type": "object", + "title": "Replace dialog", + "description": "Replace current dialog with another dialog.", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "dialog": { + "oneOf": [ + { + "$kind": "Microsoft.IDialog", + "pattern": "^(?!(=)).*", + "title": "Dialog" + }, + { + "$ref": "schema:#/definitions/equalsExpression", + "examples": [ + "=settings.dialogId" + ] + } + ], + "title": "Dialog name", + "description": "Name of the dialog to call." + }, + "options": { + "$ref": "schema:#/definitions/objectExpression", + "title": "Options", + "description": "One or more options that are passed to the dialog that is called.", + "additionalProperties": { + "type": "string", + "title": "Options", + "description": "Options for replacing dialog." + } + }, + "activityProcessed": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Activity processed", + "description": "When set to false, the dialog that is called can process the current activity.", + "default": true + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.uischema new file mode 100644 index 0000000000..7c90202168 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ReplaceDialog.uischema @@ -0,0 +1,13 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Replace this dialog", + "subtitle": "Replace Dialog", + "helpLink": "https://aka.ms/bfc-understanding-dialogs", + "order": [ + "dialog", + "options", + "*" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.schema new file mode 100644 index 0000000000..6bd536933b --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.schema @@ -0,0 +1,27 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Send an activity", + "description": "Respond with an activity.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "activity": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Activity", + "description": "Activity to send." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.uischema new file mode 100644 index 0000000000..ae857eed26 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SendActivity.uischema @@ -0,0 +1,12 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Send a response", + "subtitle": "Send Activity", + "helpLink": "https://aka.ms/bfc-send-activity", + "order": [ + "activity", + "*" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.schema new file mode 100644 index 0000000000..e5b7ef0809 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.schema @@ -0,0 +1,56 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Set property", + "description": "Set one or more property values.", + "type": "object", + "required": [ + "assignments" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "assignments": { + "type": "array", + "title": "Assignments", + "description": "Property value assignments to set.", + "items": { + "type": "object", + "title": "Assignment", + "description": "Property assignment.", + "properties": { + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property (named location to store information).", + "examples": [ + "user.age" + ] + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "New value or expression.", + "examples": [ + "='milk'", + "=dialog.favColor", + "=dialog.favColor == 'red'" + ] + } + } + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.uischema new file mode 100644 index 0000000000..450e8e96a2 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperties.uischema @@ -0,0 +1,19 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Set properties", + "subtitle": "Set Properties", + "helpLink": "https://aka.ms/bfc-using-memory", + "properties": { + "assignments": { + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.schema new file mode 100644 index 0000000000..24504f4a32 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.schema @@ -0,0 +1,45 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Set property", + "description": "Set property to a value.", + "type": "object", + "required": [ + "property", + "value" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property (named location to store information).", + "examples": [ + "user.age" + ] + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "New value or expression.", + "examples": [ + "='milk'", + "=dialog.favColor", + "=dialog.favColor == 'red'" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.uischema new file mode 100644 index 0000000000..56855ca42f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SetProperty.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Set a property", + "subtitle": "Set Property", + "helpLink": "https://aka.ms/bfc-using-memory", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.schema new file mode 100644 index 0000000000..29b07ca023 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.schema @@ -0,0 +1,34 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Sign out user", + "description": "Sign a user out that was logged in previously using OAuthInput.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "userId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "UserId", + "description": "Expression to an user to signout. Default is user.id.", + "default": "=user.id" + }, + "connectionName": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Connection name", + "description": "Connection name that was used with OAuthInput to log a user in." + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.uischema new file mode 100644 index 0000000000..701624dce7 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SignOutUser.uischema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Sign out user", + "subtitle": "Signout User" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.schema new file mode 100644 index 0000000000..af9f8cc8cc --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.schema @@ -0,0 +1,81 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Switch condition", + "description": "Execute different actions based on the value of a property.", + "type": "object", + "required": [ + "condition" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "condition": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Condition", + "description": "Property to evaluate.", + "examples": [ + "user.favColor" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "cases": { + "type": "array", + "title": "Cases", + "description": "Actions for each possible condition.", + "items": { + "type": "object", + "title": "Case", + "description": "Case and actions.", + "properties": { + "value": { + "type": [ + "number", + "integer", + "boolean", + "string" + ], + "title": "Value", + "description": "The value to compare the condition with.", + "examples": [ + "red", + "true", + "13" + ] + }, + "actions": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Actions", + "description": "Actions to execute." + } + }, + "required": [ + "value", + "actions" + ] + } + }, + "default": { + "type": "array", + "items": { + "$kind": "Microsoft.IDialog" + }, + "title": "Default", + "description": "Actions to execute if none of the cases meet the condition." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.uischema new file mode 100644 index 0000000000..a76888d705 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.SwitchCondition.uischema @@ -0,0 +1,23 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Branch: Switch (multiple options)", + "subtitle": "Switch Condition", + "helpLink": "https://aka.ms/bfc-controlling-conversation-flow", + "hidden": [ + "default" + ], + "properties": { + "cases": { + "hidden": [ + "actions" + ] + }, + "condition": { + "intellisenseScopes": [ + "user-variables" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TelemetryTrackEvent.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TelemetryTrackEvent.schema new file mode 100644 index 0000000000..26ea27a4be --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TelemetryTrackEvent.schema @@ -0,0 +1,43 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "type": "object", + "title": "Telemetry - track event", + "description": "Track a custom event using the registered Telemetry Client.", + "required": [ + "url", + "method" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "eventName": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Event name", + "description": "The name of the event to track.", + "examples": [ + "MyEventStarted", + "MyEventCompleted" + ] + }, + "properties": { + "type": "object", + "additionalProperties": { + "$ref": "schema:#/definitions/stringExpression" + }, + "title": "Properties", + "description": "One or more properties to attach to the event being tracked." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.schema new file mode 100644 index 0000000000..63089013d1 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.schema @@ -0,0 +1,30 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Throw an exception", + "description": "Throw an exception. Capture this exception with OnError trigger.", + "type": "object", + "required": [ + "errorValue" + ], + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + "user.age > 3" + ] + }, + "errorValue": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Error value", + "description": "Error value to throw." + } + } +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.uischema new file mode 100644 index 0000000000..f6a9c833c4 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.ThrowException.uischema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Throw an exception", + "subtitle": "Throw an exception" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.schema new file mode 100644 index 0000000000..9dd644e70f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.schema @@ -0,0 +1,43 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Send a TraceActivity", + "description": "Send a trace activity to the transcript logger and/ or Bot Framework Emulator.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "name": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Name", + "description": "Name of the trace activity" + }, + "label": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Label", + "description": "Label for the trace activity (used to identify it in a list of trace activities.)" + }, + "valueType": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Value type", + "description": "Type of value" + }, + "value": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Value", + "description": "Property that holds the value to send as trace activity." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.uischema new file mode 100644 index 0000000000..2554409a03 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.TraceActivity.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Emit a trace event", + "subtitle": "Trace Activity", + "helpLink": "https://aka.ms/bfc-debugging-bots" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.UpdateActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.UpdateActivity.schema new file mode 100644 index 0000000000..16ce792361 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Actions/Microsoft.UpdateActivity.schema @@ -0,0 +1,36 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Send an activity", + "description": "Respond with an activity.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "activityId": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Activity Id", + "description": "An string expression with the activity id to update.", + "examples": [ + "=dialog.lastActivityId" + ] + }, + "activity": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Activity", + "description": "Activity to send." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.schema new file mode 100644 index 0000000000..9265596d78 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.schema @@ -0,0 +1,34 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.SendActivity)" ], + "title": "Send activity to ask a question", + "description": "This is an action which sends an activity to the user when a response is expected", + "type": "object", + "properties": { + "expectedProperties": { + "$ref": "schema:#/definitions/arrayExpression", + "title": "Expected properties", + "description": "Properties expected from the user.", + "items": { + "type": "string", + "title": "Name", + "description": "Name of the property" + }, + "examples": [ + [ + "age", + "name" + ] + ] + }, + "defaultOperation": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default operation", + "description": "Sets the default operation that will be used when no operation is recognized in the response to this Ask.", + "examples": [ + "Add()", + "Remove()" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.uischema new file mode 100644 index 0000000000..f6ca2f3afd --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.Ask.uischema @@ -0,0 +1,12 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Send a response to ask a question", + "subtitle": "Ask Activity", + "helpLink": "https://aka.ms/bfc-send-activity", + "order": [ + "activity", + "*" + ] + } +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.schema new file mode 100644 index 0000000000..b3694f21bc --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.schema @@ -0,0 +1,58 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.InputDialog)" ], + "title": "Attachment input dialog", + "description": "Collect information - Ask for a file or image.", + "properties": { + "defaultValue": { + "$role": "expression", + "title": "Default value", + "description": "'Property' will be set to the object or the result of this expression when max turn count is exceeded.", + "oneOf": [ + { + "$ref": "https://schemas.botframework.com/schemas/protocol/botframework.json#/definitions/Attachment", + "title": "Object", + "description": "Attachment object." + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "value": { + "$role": "expression", + "title": "Value", + "description": "'Property' will be set to the object or the result of this expression unless it evaluates to null.", + "oneOf": [ + { + "$ref": "https://schemas.botframework.com/schemas/protocol/botframework.json#/definitions/Attachment", + "title": "Object", + "description": "Attachment object." + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "outputFormat": { + "$role": "expression", + "title": "Output format", + "description": "Attachment output format.", + "oneOf": [ + { + "type": "string", + "title": "Standard format", + "description": "Standard output formats.", + "enum": [ + "all", + "first" + ], + "default": "first" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.uischema new file mode 100644 index 0000000000..dbba000d1c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.AttachmentInput.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Prompt for a file or an attachment", + "subtitle": "Attachment Input", + "helpLink": "https://aka.ms/bfc-ask-for-user-input", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.schema new file mode 100644 index 0000000000..302d02cc9c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.schema @@ -0,0 +1,218 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.InputDialog)" ], + "title": "Choice input dialog", + "description": "Collect information - Pick from a list of choices", + "type": "object", + "properties": { + "defaultValue": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default value", + "description": "'Property' will be set to the value of this expression when max turn count is exceeded.", + "examples": [ + "hello world", + "Hello ${user.name}", + "=concat(user.firstname, user.lastName)" + ] + }, + "value": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Value", + "description": "'Property' will be set to the value of this expression unless it evaluates to null.", + "examples": [ + "hello world", + "Hello ${user.name}", + "=concat(user.firstname, user.lastName)" + ] + }, + "outputFormat": { + "$role": "expression", + "title": "Output format", + "description": "Sets the desired choice output format (either value or index into choices).", + "oneOf": [ + { + "type": "string", + "title": "Standard", + "description": "Standard output format.", + "enum": [ + "value", + "index" + ], + "default": "value" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "choices": { + "$role": "expression", + "title": "Array of choices", + "description": "Choices to choose from.", + "oneOf": [ + { + "type": "array", + "title": "Simple choices", + "description": "Simple choices to choose from.", + "items": [ + { + "type": "string", + "title": "Simple choice", + "description": "One choice for choice input." + } + ] + }, + { + "type": "array", + "title": "Structured choices", + "description": "Choices that allow full control.", + "items": [ + { + "type": "object", + "title": "Structured choice", + "description": "Structured choice to choose from.", + "properties": { + "value": { + "type": "string", + "title": "Value", + "description": "Value to return when this choice is selected." + }, + "action": { + "$ref": "https://schemas.botframework.com/schemas/protocol/botframework.json#/definitions/CardAction", + "title": "Action", + "description": "Card action for the choice." + }, + "synonyms": { + "type": "array", + "title": "Synonyms", + "description": "List of synonyms to recognize in addition to the value (optional).", + "items": { + "type": "string", + "title": "Synonym", + "description": "Synonym for value." + } + } + } + } + ] + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "defaultLocale": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default locale", + "description": "The default locale to use to parse confirmation choices if there is not one passed by the caller.", + "default": "en-us", + "examples": [ + "en-us" + ] + }, + "style": { + "$role": "expression", + "title": "List style", + "description": "Sets the ListStyle to control how choices are rendered.", + "oneOf": [ + { + "type": "string", + "title": "List style", + "description": "Standard list style.", + "enum": [ + "none", + "auto", + "inline", + "list", + "suggestedAction", + "heroCard" + ], + "default": "auto" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "choiceOptions": { + "title": "Choice options", + "description": "Sets the choice options used for controlling how choices are combined.", + "oneOf": [ + { + "type": "object", + "title": "Object", + "description": "Choice options object.", + "properties": { + "inlineSeparator": { + "type": "string", + "title": "Inline separator", + "description": "Character used to separate individual choices when there are more than 2 choices", + "default": ", " + }, + "inlineOr": { + "type": "string", + "title": "Inline or", + "description": "Separator inserted between the choices when there are only 2 choices", + "default": " or " + }, + "inlineOrMore": { + "type": "string", + "title": "Inline or more", + "description": "Separator inserted between the last 2 choices when their are more than 2 choices.", + "default": ", or " + }, + "includeNumbers": { + "type": "boolean", + "title": "Include numbers", + "description": "If true, 'inline' and 'list' list style will be prefixed with the index of the choice.", + "default": true + } + } + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "recognizerOptions": { + "title": "Recognizer options", + "description": "Sets how to recognize choices in the response", + "oneOf": [ + { + "type": "object", + "title": "Object", + "description": "Options for recognizer.", + "properties": { + "noValue": { + "type": "boolean", + "title": "No value", + "description": "If true, the choices value field will NOT be search over", + "default": false + }, + "noAction": { + "type": "boolean", + "title": "No action", + "description": "If true, the choices action.title field will NOT be searched over", + "default": false + }, + "recognizeNumbers": { + "type": "boolean", + "title": "Recognize numbers", + "description": "If true, the number recognizer will be used to recognize an index response (1,2,3...) to the prompt.", + "default": true + }, + "recognizeOrdinals": { + "type": "boolean", + "title": "Recognize ordinals", + "description": "If true, the ordinal recognizer will be used to recognize ordinal response (first/second/...) to the prompt.", + "default": true + } + } + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.uischema new file mode 100644 index 0000000000..dbf406b5da --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ChoiceInput.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Prompt with multi-choice", + "subtitle": "Choice Input", + "helpLink": "https://aka.ms/bfc-ask-for-user-input", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.schema new file mode 100644 index 0000000000..016dc57cbe --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.schema @@ -0,0 +1,164 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.InputDialog)" ], + "title": "Confirm input dialog", + "description": "Collect information - Ask for confirmation (yes or no).", + "type": "object", + "properties": { + "outputFormat": { + "$ref": "schema:#/definitions/valueExpression", + "title": "Output format", + "description": "Optional expression to use to format the output.", + "examples": [ + "=concat('confirmation:', this.value)" + ] + }, + "defaultLocale": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default locale", + "description": "The Default locale or an expression which provides the default locale to use as default if not found in the activity.", + "default": "en-us", + "examples": [ + "en-us" + ] + }, + "style": { + "$role": "expression", + "title": "List style", + "description": "Sets the ListStyle to control how choices are rendered.", + "oneOf": [ + { + "type": "string", + "title": "Standard style", + "description": "Standard style for rendering choices.", + "enum": [ + "none", + "auto", + "inline", + "list", + "suggestedAction", + "heroCard" + ], + "default": "auto" + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "choiceOptions": { + "title": "Choice options", + "description": "Choice Options or expression which provides Choice Options to control display choices to the user.", + "oneOf": [ + { + "type": "object", + "title": "Choice options", + "description": "Choice options.", + "properties": { + "inlineSeparator": { + "type": "string", + "title": "Inline separator", + "description": "Text to separate individual choices when there are more than 2 choices", + "default": ", " + }, + "inlineOr": { + "type": "string", + "title": "Inline or", + "description": "Text to be inserted between the choices when their are only 2 choices", + "default": " or " + }, + "inlineOrMore": { + "type": "string", + "title": "Inline or more", + "description": "Text to be inserted between the last 2 choices when their are more than 2 choices.", + "default": ", or " + }, + "includeNumbers": { + "type": "boolean", + "title": "Include numbers", + "description": "If true, inline and list style choices will be prefixed with the index of the choice.", + "default": true + } + } + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + }, + "defaultValue": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Default value", + "description": "'Property' will be set to the value of this expression when max turn count is exceeded.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "value": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Value", + "description": "'Property' will be set to the value of this expression unless it evaluates to null.", + "examples": [ + true, + "=user.isVip" + ] + }, + "confirmChoices": { + "$role": "expression", + "title": "Array of choice objects", + "description": "Array of simple or structured choices.", + "oneOf": [ + { + "type": "array", + "title": "Simple choices", + "description": "Simple choices to confirm from.", + "items": [ + { + "type": "string", + "title": "Simple choice", + "description": "Simple choice to confirm." + } + ] + }, + { + "type": "array", + "title": "Structured choices", + "description": "Structured choices for confirmations.", + "items": [ + { + "type": "object", + "title": "Choice", + "description": "Choice to confirm.", + "properties": { + "value": { + "type": "string", + "title": "Value", + "description": "Value to return when this choice is selected." + }, + "action": { + "$ref": "https://schemas.botframework.com/schemas/protocol/botframework.json#/definitions/CardAction", + "title": "Action", + "description": "Card action for the choice." + }, + "synonyms": { + "type": "array", + "title": "Synonyms", + "description": "List of synonyms to recognize in addition to the value (optional).", + "items": { + "type": "string", + "title": "Synonym", + "description": "Synonym for choice." + } + } + } + } + ] + }, + { + "$ref": "schema:#/definitions/equalsExpression" + } + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.uischema new file mode 100644 index 0000000000..cf31642ecd --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.ConfirmInput.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Prompt for confirmation", + "subtitle": "Confirm Input", + "helpLink": "https://aka.ms/bfc-ask-for-user-input", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.schema new file mode 100644 index 0000000000..5663c6501a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.schema @@ -0,0 +1,41 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.InputDialog)" ], + "title": "Date/time input dialog", + "description": "Collect information - Ask for date and/ or time", + "type": "object", + "properties": { + "defaultValue": { + "$ref": "schema:#/definitions/stringExpression", + "format": "date-time", + "title": "Default date", + "description": "'Property' will be set to the value or the result of the expression when max turn count is exceeded.", + "examples": [ + "=user.birthday" + ] + }, + "value": { + "$ref": "schema:#/definitions/stringExpression", + "format": "date-time", + "title": "Value", + "description": "'Property' will be set to the value or the result of the expression unless it evaluates to null.", + "examples": [ + "=user.birthday" + ] + }, + "outputFormat": { + "$ref": "schema:#/definitions/expression", + "title": "Output format", + "description": "Expression to use for formatting the output.", + "examples": [ + "=this.value[0].Value" + ] + } + }, + "defaultLocale": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default locale", + "description": "Default locale.", + "default": "en-us" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.uischema new file mode 100644 index 0000000000..3a9c2c183b --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.DateTimeInput.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Prompt for a date or a time", + "subtitle": "Date Time Input", + "helpLink": "https://aka.ms/bfc-ask-for-user-input", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.InputDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.InputDialog.schema new file mode 100644 index 0000000000..2ac9533a0b --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.InputDialog.schema @@ -0,0 +1,107 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional id for the dialog" + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "default": false, + "examples": [ + false, + "=user.isVip" + ] + }, + "prompt": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Initial prompt", + "description": "Message to send to collect information.", + "examples": [ + "What is your birth date?" + ] + }, + "unrecognizedPrompt": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Unrecognized prompt", + "description": "Message to send when max turn count (if specified) has been exceeded and the default value is selected as the value.", + "examples": [ + "Sorry, I'm having trouble understanding you. I will just use {this.options.defaultValue} for now. You can say 'I'm 36 years old' to change it." + ] + }, + "invalidPrompt": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Invalid prompt", + "description": "Message to send when the user input does not meet any validation expression.", + "examples": [ + "Sorry, '{this.value}' does not work. I need a number between 1-150. What is your age?" + ] + }, + "defaultValueResponse": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Default value response", + "description": "Message to send when max turn count (if specified) has been exceeded and the default value is selected as the value.", + "examples": [ + "Sorry, I'm having trouble understanding you. I will just use {this.options.defaultValue} for now. You can say 'I'm 36 years old' to change it." + ] + }, + "maxTurnCount": { + "$ref": "schema:#/definitions/integerExpression", + "title": "Max turn count", + "description": "Maximum number of re-prompt attempts to collect information.", + "default": 3, + "examples": [ + 3, + "=settings.xyz" + ] + }, + "validations": { + "type": "array", + "title": "Validation expressions", + "description": "Expression to validate user input.", + "items": { + "$ref": "schema:#/definitions/condition", + "title": "Condition", + "description": "Expression which needs to met for the input to be considered valid", + "examples": [ + "int(this.value) > 1 && int(this.value) <= 150", + "count(this.value) < 300" + ] + } + }, + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Property", + "description": "Property to store collected information. Input will be skipped if property has value (unless 'Always prompt' is true).", + "examples": [ + "$birthday", + "dialog.${user.name}", + "=f(x)" + ] + }, + "alwaysPrompt": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Always prompt", + "description": "Collect information even if the specified 'property' is not empty.", + "default": false, + "examples": [ + false, + "=$val" + ] + }, + "allowInterruptions": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Allow Interruptions", + "description": "A boolean expression that determines whether the parent should be allowed to interrupt the input.", + "default": true, + "examples": [ + true, + "=user.xyz" + ] + } + } +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.schema new file mode 100644 index 0000000000..3964944db0 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.schema @@ -0,0 +1,42 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.InputDialog)" ], + "title": "Number input dialog", + "description": "Collect information - Ask for a number.", + "type": "object", + "properties": { + "defaultValue": { + "$ref": "schema:#/definitions/numberExpression", + "title": "Default value", + "description": "'Property' will be set to the value of this expression when max turn count is exceeded.", + "examples": [ + 13, + "=user.age" + ] + }, + "value": { + "$ref": "schema:#/definitions/numberExpression", + "title": "Value", + "description": "'Property' will be set to the value of this expression unless it evaluates to null.", + "examples": [ + 13, + "=user.age" + ] + }, + "outputFormat": { + "$ref": "schema:#/definitions/expression", + "title": "Output format", + "description": "Expression to format the number output.", + "examples": [ + "=this.value", + "=int(this.text)" + ] + }, + "defaultLocale": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default locale", + "description": "Default locale to use if there is no locale available..", + "default": "en-us" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.uischema new file mode 100644 index 0000000000..9b7b73f5ac --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.NumberInput.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Prompt for a number", + "subtitle": "Number Input", + "helpLink": "https://aka.ms/bfc-ask-for-user-input", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.schema new file mode 100644 index 0000000000..dd9d4c0754 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.schema @@ -0,0 +1,112 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "OAuthInput Dialog", + "description": "Collect login information.", + "type": "object", + "properties": { + "connectionName": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Connection name", + "description": "The connection name configured in Azure Web App Bot OAuth settings.", + "examples": [ + "msgraphOAuthConnection" + ] + }, + "disabled": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Disabled", + "description": "Optional condition which if true will disable this action.", + "examples": [ + true, + "=user.age > 3" + ] + }, + "text": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Text", + "description": "Text shown in the OAuth signin card.", + "examples": [ + "Please sign in. ", + "=concat(x,y,z)" + ] + }, + "title": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Title", + "description": "Title shown in the OAuth signin card.", + "examples": [ + "Login" + ] + }, + "timeout": { + "$ref": "schema:#/definitions/integerExpression", + "title": "Timeout", + "description": "Time out setting for the OAuth signin card.", + "default": 900000 + }, + "property": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Token property", + "description": "Property to store the OAuth token result.", + "examples": [ + "dialog.token" + ] + }, + "invalidPrompt": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Invalid prompt", + "description": "Message to send if user response is invalid.", + "examples": [ + "Sorry, the login info you provided is not valid." + ] + }, + "defaultValueResponse": { + "$kind": "Microsoft.IActivityTemplate", + "title": "Default value response", + "description": "Message to send when max turn count (if specified) has been exceeded and the default value is selected as the value.", + "examples": [ + "Login failed." + ] + }, + "maxTurnCount": { + "$ref": "schema:#/definitions/integerExpression", + "title": "Max turn count", + "description": "Maximum number of re-prompt attempts to collect information.", + "default": 3, + "examples": [ + 3 + ] + }, + "defaultValue": { + "$ref": "schema:#/definitions/expression", + "title": "Default value", + "description": "Expression to examine on each turn of the conversation as possible value to the property.", + "examples": [ + "@token" + ] + }, + "allowInterruptions": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Allow interruptions", + "description": "A boolean expression that determines whether the parent should be allowed to interrupt the input.", + "default": true, + "examples": [ + true, + "=f(x)" + ] + }, + "alwaysPrompt": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Always prompt", + "description": "Collect information even if the specified 'property' is not empty.", + "examples": [ + true, + "=f(x)" + ] + } + }, + "required": [ + "connectionName" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.uischema new file mode 100644 index 0000000000..83e3d7b535 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.OAuthInput.uischema @@ -0,0 +1,12 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "OAuth login", + "subtitle": "OAuth Input", + "helpLink": "https://aka.ms/bfc-using-oauth", + "order": [ + "connectionName", + "*" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.schema new file mode 100644 index 0000000000..3c28166bb3 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.schema @@ -0,0 +1,38 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IDialog)", "extends(Microsoft.InputDialog)" ], + "type": "object", + "title": "Text input dialog", + "description": "Collection information - Ask for a word or sentence.", + "properties": { + "defaultValue": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Default value", + "description": "'Property' will be set to the value of this expression when max turn count is exceeded.", + "examples": [ + "hello world", + "Hello ${user.name}", + "=concat(user.firstname, user.lastName)" + ] + }, + "value": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Value", + "description": "'Property' will be set to the value of this expression unless it evaluates to null.", + "examples": [ + "hello world", + "Hello ${user.name}", + "=concat(user.firstname, user.lastName)" + ] + }, + "outputFormat": { + "$ref": "schema:#/definitions/stringExpression", + "title": "Output format", + "description": "Expression to format the output.", + "examples": [ + "=toUpper(this.value)", + "${toUpper(this.value)}" + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.uischema new file mode 100644 index 0000000000..f2373a6eaa --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Dialogs/Microsoft.TextInput.uischema @@ -0,0 +1,15 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Prompt for text", + "subtitle": "Text Input", + "helpLink": "https://aka.ms/bfc-ask-for-user-input", + "properties": { + "property": { + "intellisenseScopes": [ + "variable-scopes" + ] + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.ResourceMultiLanguageGenerator.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.ResourceMultiLanguageGenerator.schema new file mode 100644 index 0000000000..9c39420e6c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.ResourceMultiLanguageGenerator.schema @@ -0,0 +1,25 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ILanguageGenerator)", + "title": "Resource multi-language generator", + "description": "MultiLanguage Generator which is bound to resource by resource Id.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional generator ID." + }, + "resourceId": { + "type": "string", + "title": "Resource Id", + "description": "Resource which is the root language generator. Other generaters with the same name and language suffix will be loaded into this generator and used based on the Language Policy.", + "default": "dialog.result" + }, + "languagePolicy": { + "type": "object", + "title": "Language policy", + "description": "Set alternate language policy for this generator. If not set, the global language policy will be used." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.TemplateEngineLanguageGenerator.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.TemplateEngineLanguageGenerator.schema new file mode 100644 index 0000000000..ee1b78bde3 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Generators/Microsoft.TemplateEngineLanguageGenerator.schema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ILanguageGenerator)", + "title": "Template multi-language generator", + "description": "Template Generator which allows only inline evaluation of templates.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional generator ID." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.schema new file mode 100644 index 0000000000..efc7054899 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.schema @@ -0,0 +1,65 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IDialog)", + "title": "Adaptive dialog", + "description": "Flexible, data driven dialog that can adapt to the conversation.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional dialog ID." + }, + "autoEndDialog": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Auto end dialog", + "description": "If set to true the dialog will automatically end when there are no further actions. If set to false, remember to manually end the dialog using EndDialog action.", + "default": true + }, + "defaultResultProperty": { + "type": "string", + "title": "Default result property", + "description": "Value that will be passed back to the parent dialog.", + "default": "dialog.result" + }, + "recognizer": { + "$kind": "Microsoft.IRecognizer", + "title": "Recognizer", + "description": "Input recognizer that interprets user input into intent and entities." + }, + "generator": { + "$kind": "Microsoft.ILanguageGenerator", + "title": "Language generator", + "description": "Language generator that generates bot responses." + }, + "selector": { + "$kind": "Microsoft.ITriggerSelector", + "title": "Selector", + "description": "Policy to determine which trigger is executed. Defaults to a 'best match' selector (optional)." + }, + "triggers": { + "type": "array", + "description": "List of triggers defined for this dialog.", + "title": "Triggers", + "items": { + "$kind": "Microsoft.ITrigger", + "title": "Event triggers", + "description": "Event triggers for handling events." + } + }, + "schema": { + "title": "Schema", + "description": "Schema to fill in.", + "anyOf": [ + { + "$ref": "http://json-schema.org/draft-07/schema#" + }, + { + "type": "string", + "title": "Reference to JSON schema", + "description": "Reference to JSON schema .dialog file." + } + ] + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.uischema new file mode 100644 index 0000000000..37553d1424 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.AdaptiveDialog.uischema @@ -0,0 +1,24 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Adaptive dialog", + "description": "This configures a data driven dialog via a collection of events and actions.", + "helpLink": "https://aka.ms/bf-composer-docs-dialog", + "order": [ + "recognizer", + "*" + ], + "hidden": [ + "triggers", + "generator", + "selector", + "schema" + ], + "properties": { + "recognizer": { + "label": "Language Understanding", + "description": "To understand what the user says, your dialog needs a \"Recognizer\"; that includes example words and sentences that users may use." + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.IEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.IEntityRecognizer.schema new file mode 100644 index 0000000000..0031eedb06 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.IEntityRecognizer.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "interface", + "title": "Entity recognizers", + "description": "Components which derive from EntityRecognizer.", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ILanguageGenerator.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ILanguageGenerator.schema new file mode 100644 index 0000000000..8526111a24 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ILanguageGenerator.schema @@ -0,0 +1,11 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Microsoft LanguageGenerator", + "description": "Components which dervie from the LanguageGenerator class", + "$role": "interface", + "oneOf": [ + { + "type": "string" + } + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITrigger.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITrigger.schema new file mode 100644 index 0000000000..ad1463c867 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITrigger.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "interface", + "title": "Microsoft Triggers", + "description": "Components which derive from OnCondition class." +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITriggerSelector.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITriggerSelector.schema new file mode 100644 index 0000000000..fdfccdd05a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.ITriggerSelector.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "interface", + "title": "Selectors", + "description": "Components which derive from TriggerSelector class." +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.LanguagePolicy.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.LanguagePolicy.schema new file mode 100644 index 0000000000..31c1b28e1f --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Microsoft.LanguagePolicy.schema @@ -0,0 +1,16 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Language policy", + "description": "This represents a policy map for locales lookups to use for language", + "type": "object", + "additionalProperties": { + "type": "array", + "title": "Per-locale policy", + "description": "Language policy per locale.", + "items": { + "type": "string", + "title": "Locale", + "description": "Locale like en-us." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.AgeEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.AgeEntityRecognizer.schema new file mode 100644 index 0000000000..c7fee34e50 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.AgeEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Age entity recognizer", + "description": "Recognizer which recognizes age.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ChannelMentionEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ChannelMentionEntityRecognizer.schema new file mode 100644 index 0000000000..1db7fc0eb7 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ChannelMentionEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)" ], + "title": "Channel mention entity recognizer", + "description": "Promotes mention entities passed by a channel via the activity.entities into recognizer result.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ConfirmationEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ConfirmationEntityRecognizer.schema new file mode 100644 index 0000000000..e35ebe516b --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.ConfirmationEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Confirmation entity recognizer", + "description": "Recognizer which recognizes confirmation choices (yes/no).", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.CurrencyEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.CurrencyEntityRecognizer.schema new file mode 100644 index 0000000000..e8b144a859 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.CurrencyEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Currency entity recognizer", + "description": "Recognizer which recognizes currency.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DateTimeEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DateTimeEntityRecognizer.schema new file mode 100644 index 0000000000..23d01d6099 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DateTimeEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Date and time entity recognizer", + "description": "Recognizer which recognizes dates and time fragments.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DimensionEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DimensionEntityRecognizer.schema new file mode 100644 index 0000000000..97ef8b2fbe --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.DimensionEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Dimension entity recognizer", + "description": "Recognizer which recognizes dimension.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.EmailEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.EmailEntityRecognizer.schema new file mode 100644 index 0000000000..e61259fad1 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.EmailEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Email entity recognizer", + "description": "Recognizer which recognizes email.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.GuidEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.GuidEntityRecognizer.schema new file mode 100644 index 0000000000..8af6a2fd05 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.GuidEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Guid entity recognizer", + "description": "Recognizer which recognizes guids.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.HashtagEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.HashtagEntityRecognizer.schema new file mode 100644 index 0000000000..97eca72732 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.HashtagEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Hashtag entity recognizer", + "description": "Recognizer which recognizes Hashtags.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.IpEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.IpEntityRecognizer.schema new file mode 100644 index 0000000000..437b854599 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.IpEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "IP entity recognizer", + "description": "Recognizer which recognizes internet IP patterns (like 192.1.1.1).", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.MentionEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.MentionEntityRecognizer.schema new file mode 100644 index 0000000000..f92db28866 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.MentionEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Mentions entity recognizer", + "description": "Recognizer which recognizes @Mentions", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberEntityRecognizer.schema new file mode 100644 index 0000000000..aabc59d548 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Number entity recognizer", + "description": "Recognizer which recognizes numbers.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberRangeEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberRangeEntityRecognizer.schema new file mode 100644 index 0000000000..97d41abe7d --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.NumberRangeEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Number range entity recognizer", + "description": "Recognizer which recognizes ranges of numbers (Example:2 to 5).", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.OrdinalEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.OrdinalEntityRecognizer.schema new file mode 100644 index 0000000000..b1b461e1c0 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.OrdinalEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Ordinal entity recognizer", + "description": "Recognizer which recognizes ordinals (example: first, second, 3rd).", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PercentageEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PercentageEntityRecognizer.schema new file mode 100644 index 0000000000..72d36e4ad3 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PercentageEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Percentage entity recognizer", + "description": "Recognizer which recognizes percentages.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PhoneNumberEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PhoneNumberEntityRecognizer.schema new file mode 100644 index 0000000000..33859afabb --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.PhoneNumberEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Phone number entity recognizer", + "description": "Recognizer which recognizes phone numbers.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.RegexEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.RegexEntityRecognizer.schema new file mode 100644 index 0000000000..973e0d3dba --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.RegexEntityRecognizer.schema @@ -0,0 +1,23 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Regex entity recognizer", + "description": "Recognizer which recognizes patterns of input based on regex.", + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name", + "description": "Name of the entity" + }, + "pattern": { + "type": "string", + "title": "Pattern", + "description": "Pattern expressed as regular expression." + } + }, + "required": [ + "name", + "pattern" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.TemperatureEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.TemperatureEntityRecognizer.schema new file mode 100644 index 0000000000..c7aedd601e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.TemperatureEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Temperature recognizer", + "description": "Recognizer which recognizes temperatures.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.UrlEntityRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.UrlEntityRecognizer.schema new file mode 100644 index 0000000000..21cf7766b2 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/EntityRecognizers/Microsoft.UrlEntityRecognizer.schema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.IRecognizer)", "implements(Microsoft.IEntityRecognizer)" ], + "title": "Url recognizer", + "description": "Recognizer which recognizes urls.", + "type": "object", + "properties": {} +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.CrossTrainedRecognizerSet.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.CrossTrainedRecognizerSet.schema new file mode 100644 index 0000000000..ebaa3ad2b1 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.CrossTrainedRecognizerSet.schema @@ -0,0 +1,25 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IRecognizer)", + "title": "Cross-trained recognizer set", + "description": "Recognizer for selecting between cross trained recognizers.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional unique id using with RecognizerSet." + }, + "recognizers": { + "type": "array", + "title": "Recognizers", + "description": "List of Recognizers defined for this set.", + "items": { + "$kind": "Microsoft.IRecognizer" + } + } + }, + "required": [ + "recognizers" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.MultiLanguageRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.MultiLanguageRecognizer.schema new file mode 100644 index 0000000000..b904458632 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.MultiLanguageRecognizer.schema @@ -0,0 +1,31 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IRecognizer)", + "title": "Multi-language recognizer", + "description": "Configure one recognizer per language and the specify the language fallback policy.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional unique id using with RecognizerSet. Other recognizers should return 'DeferToRecognizer_{Id}' intent when cross training data for this recognizer." + }, + "languagePolicy": { + "$kind": "Microsoft.LanguagePolicy", + "type": "object", + "title": "Language policy", + "description": "Defines fall back languages to try per user input language." + }, + "recognizers": { + "type": "object", + "title": "Recognizers", + "description": "Map of language -> Recognizer", + "additionalProperties": { + "$kind": "Microsoft.IRecognizer" + } + } + }, + "required": [ + "recognizers" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RecognizerSet.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RecognizerSet.schema new file mode 100644 index 0000000000..75920fc9d8 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RecognizerSet.schema @@ -0,0 +1,25 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IRecognizer)", + "title": "Recognizer set", + "description": "Creates the union of the intents and entities of the recognizers in the set.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional unique id using with RecognizerSet. Other recognizers should return 'DeferToRecognizer_{Id}' intent when cross training data for this recognizer." + }, + "recognizers": { + "type": "array", + "title": "Recognizers", + "description": "List of Recognizers defined for this set.", + "items": { + "$kind": "Microsoft.IRecognizer" + } + } + }, + "required": [ + "recognizers" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.schema new file mode 100644 index 0000000000..f4d4103f6a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.schema @@ -0,0 +1,44 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IRecognizer)", + "title": "Regex recognizer", + "description": "Use regular expressions to recognize intents and entities from user input.", + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "Id", + "description": "Optional unique id using with RecognizerSet. Other recognizers should return 'DeferToRecognizer_{Id}' intent when cross training data for this recognizer." + }, + "intents": { + "type": "array", + "title": "RegEx patterns to intents", + "description": "Collection of patterns to match for an intent.", + "items": { + "type": "object", + "title": "Pattern", + "description": "Intent and regex pattern.", + "properties": { + "intent": { + "type": "string", + "title": "Intent", + "description": "The intent name." + }, + "pattern": { + "type": "string", + "title": "Pattern", + "description": "The regular expression pattern." + } + } + } + }, + "entities": { + "type": "array", + "items": { + "$kind": "Microsoft.IEntityRecognizer" + }, + "title": "Entity recognizers", + "description": "Collection of entity recognizers to use." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.uischema new file mode 100644 index 0000000000..b1b53afd07 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Recognizers/Microsoft.RegexRecognizer.uischema @@ -0,0 +1,8 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "hidden": [ + "entities" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.ConditionalSelector.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.ConditionalSelector.schema new file mode 100644 index 0000000000..3213504b80 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.ConditionalSelector.schema @@ -0,0 +1,25 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITriggerSelector)", + "title": "Conditional trigger selector", + "description": "Use a rule selector based on a condition", + "type": "object", + "properties": { + "condition": { + "$ref": "schema:#/definitions/condition", + "title": "Condition", + "description": "Expression to evaluate" + }, + "ifTrue": { + "$kind": "Microsoft.ITriggerSelector" + }, + "ifFalse": { + "$kind": "Microsoft.ITriggerSelector" + } + }, + "required": [ + "condition", + "ifTrue", + "ifFalse" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.FirstSelector.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.FirstSelector.schema new file mode 100644 index 0000000000..e93d42a117 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.FirstSelector.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITriggerSelector)", + "title": "First trigger selector", + "description": "Selector for first true rule", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.MostSpecificSelector.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.MostSpecificSelector.schema new file mode 100644 index 0000000000..adb06c9230 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.MostSpecificSelector.schema @@ -0,0 +1,12 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITriggerSelector)", + "title": "Most specific trigger selector", + "description": "Select most specific true events with optional additional selector", + "type": "object", + "properties": { + "selector": { + "$kind": "Microsoft.ITriggerSelector" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.RandomSelector.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.RandomSelector.schema new file mode 100644 index 0000000000..e78932793e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.RandomSelector.schema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITriggerSelector)", + "title": "Random rule selector", + "description": "Select most specific true rule.", + "type": "object", + "properties": { + "seed": { + "type": "integer", + "title": "Random seed", + "description": "Random seed to start random number generation." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.TrueSelector.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.TrueSelector.schema new file mode 100644 index 0000000000..b76d37ec69 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Selectors/Microsoft.TrueSelector.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITriggerSelector)", + "title": "True trigger selector", + "description": "Selector for all true events", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.ActivityTemplate.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.ActivityTemplate.schema new file mode 100644 index 0000000000..8a7563a0fa --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.ActivityTemplate.schema @@ -0,0 +1,16 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IActivityTemplate)", + "title": "Microsoft activity template", + "type": "object", + "properties": { + "template": { + "title": "Template", + "description": "Language Generator template to use to create the activity", + "type": "string" + } + }, + "required": [ + "template" + ] +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.StaticActivityTemplate.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.StaticActivityTemplate.schema new file mode 100644 index 0000000000..46e6e9fc07 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.StaticActivityTemplate.schema @@ -0,0 +1,20 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.IActivityTemplate)", + "title": "Microsoft static activity template", + "description": "This allows you to define a static Activity object", + "type": "object", + "properties": { + "activity": { + "$ref": "https://schemas.botframework.com/schemas/protocol/botframework.json#/definitions/Activity", + "title": "Activity", + "description": "A static Activity to used.", + "required": [ + "type" + ] + } + }, + "required": [ + "activity" + ] +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.TextTemplate.schema b/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.TextTemplate.schema new file mode 100644 index 0000000000..00df0286a0 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/Templates/Microsoft.TextTemplate.schema @@ -0,0 +1,17 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITextTemplate)", + "title": "Microsoft TextTemplate", + "description": "Use LG Templates to create text", + "type": "object", + "properties": { + "template": { + "title": "Template", + "description": "Language Generator template to evaluate to create the text.", + "type": "string" + } + }, + "required": [ + "template" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.schema new file mode 100644 index 0000000000..a3dae29b5e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.schema @@ -0,0 +1,18 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On activity", + "description": "Actions to perform on receipt of a generic activity.", + "type": "object", + "properties": { + "type": { + "type": "string", + "title": "Activity type", + "description": "The Activity.Type to match" + } + }, + "required": [ + "type", + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.uischema new file mode 100644 index 0000000000..e46a6690a0 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Activities", + "subtitle": "Activity received" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.schema new file mode 100644 index 0000000000..8894b1d143 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.schema @@ -0,0 +1,24 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On entity assignment", + "description": "Actions to take when an entity should be assigned to a property.", + "type": "object", + "properties": { + "property": { + "type": "string", + "title": "Property", + "description": "Property that will be set after entity is selected." + }, + "entity": { + "type": "string", + "title": "Entity", + "description": "Entity being put into property" + }, + "operation": { + "type": "string", + "title": "Operation", + "description": "Operation for assigning entity." + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.uischema new file mode 100644 index 0000000000..6ce0e718d1 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnAssignEntity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Handle a condition when an entity is assigned", + "subtitle": "EntityAssigned activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.schema new file mode 100644 index 0000000000..579164c7f4 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On begin dialog", + "description": "Actions to perform when this dialog begins.", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.uischema new file mode 100644 index 0000000000..01f2cb85f7 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnBeginDialog.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Dialog started", + "subtitle": "Begin dialog event" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.schema new file mode 100644 index 0000000000..5ddf9dc502 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On cancel dialog", + "description": "Actions to perform on cancel dialog event.", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.uischema new file mode 100644 index 0000000000..6a4535d44e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCancelDialog.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Dialog cancelled", + "subtitle": "Cancel dialog event", + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseEntity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseEntity.schema new file mode 100644 index 0000000000..91ddab95ba --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseEntity.schema @@ -0,0 +1,19 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On choose entity", + "description": "Actions to be performed when an entity value needs to be resolved.", + "type": "object", + "properties": { + "property": { + "type": "string", + "title": "Property to be set", + "description": "Property that will be set after entity is selected." + }, + "entity": { + "type": "string", + "title": "Ambiguous entity", + "description": "Ambiguous entity" + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseIntent.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseIntent.schema new file mode 100644 index 0000000000..f345ccb969 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseIntent.schema @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On ambigious intent", + "description": "Actions to perform on when an intent is ambigious.", + "type": "object", + "properties": { + "intents": { + "type": "array", + "title": "Intents", + "description": "Intents that must be in the ChooseIntent result for this condition to trigger.", + "items": { + "title": "Intent", + "description": "Intent name to trigger on.", + "type": "string" + } + } + }, + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseProperty.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseProperty.schema new file mode 100644 index 0000000000..b985adc226 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnChooseProperty.schema @@ -0,0 +1,34 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On choose property", + "description": "Actions to take when there are multiple possible mappings of entities to properties.", + "type": "object", + "properties": { + "entity": { + "type": "string", + "title": "Entity being assigned", + "description": "Entity being assigned to property choice" + }, + "properties": { + "type": "array", + "title": "Possible properties", + "description": "Properties to be chosen between.", + "items": { + "type": "string", + "title": "Property name", + "description": "Possible property to choose." + } + }, + "entities": { + "type": "array", + "title": "Entities", + "description": "Ambiguous entity names.", + "items": { + "type": "string", + "title": "Entity name", + "description": "Entity name being chosen between." + } + } + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.schema new file mode 100644 index 0000000000..8d8dc78a4a --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.schema @@ -0,0 +1,42 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": "implements(Microsoft.ITrigger)", + "title": "On condition", + "description": "Actions to perform when specified condition is true.", + "type": "object", + "properties": { + "condition": { + "$ref": "schema:#/definitions/condition", + "title": "Condition", + "description": "Condition (expression).", + "examples": [ + "user.vip == true" + ] + }, + "actions": { + "type": "array", + "title": "Actions", + "description": "Sequence of actions to execute.", + "items": { + "$kind": "Microsoft.IDialog" + } + }, + "priority": { + "$ref": "schema:#/definitions/integerExpression", + "title": "Priority", + "description": "Priority for trigger with 0 being the highest and < 0 ignored." + }, + "runOnce": { + "$ref": "schema:#/definitions/booleanExpression", + "title": "Run Once", + "description": "True if rule should run once per unique conditions", + "examples": [ + true, + "=f(x)" + ] + } + }, + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.uischema new file mode 100644 index 0000000000..dd55ce18e9 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnCondition.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Handle a condition", + "subtitle": "Condition" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnContinueConversation.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnContinueConversation.schema new file mode 100644 index 0000000000..7ede45aaf4 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnContinueConversation.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On continue conversation", + "description": "Actions to perform when a conversation is started up again from a ContinueConversationLater action.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.schema new file mode 100644 index 0000000000..000ad09aec --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On ConversationUpdate activity", + "description": "Actions to perform on receipt of an activity with type 'ConversationUpdate'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.uischema new file mode 100644 index 0000000000..a6da4fe667 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnConversationUpdateActivity.uischema @@ -0,0 +1,16 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Greeting", + "subtitle": "ConversationUpdate activity", + "description": "Handle the events fired when a user begins a new conversation with the bot.", + "helpLink": "https://aka.ms/bf-composer-docs-conversation-update-activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.schema new file mode 100644 index 0000000000..7a3d519d3b --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.schema @@ -0,0 +1,18 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On dialog event", + "description": "Actions to perform when a specific dialog event occurs.", + "type": "object", + "properties": { + "event": { + "type": "string", + "title": "Dialog event name", + "description": "Name of dialog event." + } + }, + "required": [ + "actions", + "event" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.uischema new file mode 100644 index 0000000000..6c63ce9151 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnDialogEvent.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Dialog events", + "subtitle": "Dialog event" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.schema new file mode 100644 index 0000000000..aca20219a5 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.schema @@ -0,0 +1,6 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On end of actions", + "description": "Actions to take when there are no more actions in the current dialog." +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.uischema new file mode 100644 index 0000000000..69131c3f08 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfActions.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Handle a condition when actions have ended", + "subtitle": "EndOfActions activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.schema new file mode 100644 index 0000000000..8cb5642612 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On EndOfConversation activity", + "description": "Actions to perform on receipt of an activity with type 'EndOfConversation'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.uischema new file mode 100644 index 0000000000..de3616b6d4 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEndOfConversationActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Conversation ended", + "subtitle": "EndOfConversation activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.schema new file mode 100644 index 0000000000..ddce686825 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On error", + "description": "Action to perform when an 'Error' dialog event occurs.", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.uischema new file mode 100644 index 0000000000..88ae962e39 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnError.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Error occurred", + "subtitle": "Error event" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.schema new file mode 100644 index 0000000000..eddb72d993 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On Event activity", + "description": "Actions to perform on receipt of an activity with type 'Event'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.uischema new file mode 100644 index 0000000000..be45903402 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnEventActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Event received", + "subtitle": "Event activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.schema new file mode 100644 index 0000000000..fceb6c8915 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On Handoff activity", + "description": "Actions to perform on receipt of an activity with type 'HandOff'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.uischema new file mode 100644 index 0000000000..1d239a4777 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnHandoffActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Handover to human", + "subtitle": "Handoff activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.schema new file mode 100644 index 0000000000..f9e0ad15ff --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On InstallationUpdate activity", + "description": "Actions to perform on receipt of an activity with type 'InstallationUpdate'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.uischema new file mode 100644 index 0000000000..2014fd9340 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInstallationUpdateActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Installation updated", + "subtitle": "Installation updated activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.schema new file mode 100644 index 0000000000..23cd6a89ce --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.schema @@ -0,0 +1,27 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On intent recognition", + "description": "Actions to perform when specified intent is recognized.", + "type": "object", + "properties": { + "intent": { + "type": "string", + "title": "Intent", + "description": "Name of intent." + }, + "entities": { + "type": "array", + "title": "Entities", + "description": "Required entities.", + "items": { + "type": "string", + "title": "Entity", + "description": "Entity that must be present." + } + } + }, + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.uischema new file mode 100644 index 0000000000..b9d49934f8 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnIntent.uischema @@ -0,0 +1,16 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "label": "Intent recognized", + "subtitle": "Intent recognized", + "order": [ + "intent", + "condition", + "entities", + "*" + ], + "hidden": [ + "actions" + ] + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.schema new file mode 100644 index 0000000000..c0f35dd3d6 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On Invoke activity", + "description": "Actions to perform on receipt of an activity with type 'Invoke'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.uischema new file mode 100644 index 0000000000..e13e900c7e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnInvokeActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Conversation invoked", + "subtitle": "Invoke activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.schema new file mode 100644 index 0000000000..9f071b210c --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On Message activity", + "description": "Actions to perform on receipt of an activity with type 'Message'. Overrides Intent trigger.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.uischema new file mode 100644 index 0000000000..ef3f2dfaef --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Message received", + "subtitle": "Message received activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.schema new file mode 100644 index 0000000000..1d126640ee --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On MessageDelete activity", + "description": "Actions to perform on receipt of an activity with type 'MessageDelete'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.uischema new file mode 100644 index 0000000000..ab2494fcce --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageDeleteActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Message deleted", + "subtitle": "Message deleted activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.schema new file mode 100644 index 0000000000..d08304e688 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On MessageReaction activity", + "description": "Actions to perform on receipt of an activity with type 'MessageReaction'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.uischema new file mode 100644 index 0000000000..2bf12dca05 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageReactionActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Message reaction", + "subtitle": "Message reaction activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.schema new file mode 100644 index 0000000000..a60d3776ba --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On MessageUpdate activity", + "description": "Actions to perform on receipt of an activity with type 'MessageUpdate'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.uischema new file mode 100644 index 0000000000..efe59a59df --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnMessageUpdateActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Message updated", + "subtitle": "Message updated activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnQnAMatch.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnQnAMatch.schema new file mode 100644 index 0000000000..5c07d75876 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnQnAMatch.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On QnAMaker match", + "description": "Actions to perform on when an match from QnAMaker is found.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.schema new file mode 100644 index 0000000000..7e38b332ae --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.schema @@ -0,0 +1,7 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On RepromptDialog", + "description": "Actions to perform when 'RepromptDialog' event occurs.", + "type": "object" +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.uischema new file mode 100644 index 0000000000..c45ee92cf8 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnRepromptDialog.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Re-prompt for input", + "subtitle": "Reprompt dialog event" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.schema new file mode 100644 index 0000000000..e9ca5ceb2e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On Typing activity", + "description": "Actions to perform on receipt of an activity with type 'Typing'.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.uischema new file mode 100644 index 0000000000..37836a94d6 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnTypingActivity.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "User is typing", + "subtitle": "Typing activity" + } +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.schema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.schema new file mode 100644 index 0000000000..287c0e9f1e --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.schema @@ -0,0 +1,10 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "$role": [ "implements(Microsoft.ITrigger)", "extends(Microsoft.OnCondition)" ], + "title": "On unknown intent", + "description": "Action to perform when user input is unrecognized or if none of the 'on intent recognition' triggers match recognized intent.", + "type": "object", + "required": [ + "actions" + ] +} diff --git a/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.uischema b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.uischema new file mode 100644 index 0000000000..4c86fb86b9 --- /dev/null +++ b/libraries/botbuilder-dialogs-adaptive/schemas/TriggerConditions/Microsoft.OnUnknownIntent.uischema @@ -0,0 +1,14 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/ui/v1.0/ui.schema", + "form": { + "order": [ + "condition", + "*" + ], + "hidden": [ + "actions" + ], + "label": "Unknown intent", + "subtitle": "Unknown intent recognized" + } +} diff --git a/libraries/botbuilder-dialogs-declarative/package.json b/libraries/botbuilder-dialogs-declarative/package.json index ff881a4667..51c491b8e9 100644 --- a/libraries/botbuilder-dialogs-declarative/package.json +++ b/libraries/botbuilder-dialogs-declarative/package.json @@ -47,6 +47,7 @@ }, "files": [ "lib", + "schemas", "src" ] } diff --git a/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IActivityTemplate.schema b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IActivityTemplate.schema new file mode 100644 index 0000000000..3506ba051f --- /dev/null +++ b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IActivityTemplate.schema @@ -0,0 +1,17 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Microsoft ActivityTemplates", + "description": "Components which are ActivityTemplate, which is string template, an activity, or a implementation of ActivityTemplate", + "$role": "interface", + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "https://schemas.botframework.com/schemas/protocol/botframework.json#/definitions/Activity", + "required": [ + "type" + ] + } + ] +} \ No newline at end of file diff --git a/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IDialog.schema b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IDialog.schema new file mode 100644 index 0000000000..d5d123a51a --- /dev/null +++ b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IDialog.schema @@ -0,0 +1,11 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Microsoft dialogs", + "description": "Components which derive from Dialog", + "$role": "interface", + "oneOf": [ + { + "type": "string" + } + ] +} diff --git a/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IRecognizer.schema b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IRecognizer.schema new file mode 100644 index 0000000000..809ead3be1 --- /dev/null +++ b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.IRecognizer.schema @@ -0,0 +1,11 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Microsoft recognizer", + "description": "Components which derive from Recognizer class", + "$role": "interface", + "oneOf": [ + { + "type": "string" + } + ] +} diff --git a/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.ITextTemplate.schema b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.ITextTemplate.schema new file mode 100644 index 0000000000..02daa2c1d4 --- /dev/null +++ b/libraries/botbuilder-dialogs-declarative/schemas/Microsoft.ITextTemplate.schema @@ -0,0 +1,11 @@ +{ + "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema", + "title": "Microsoft TextTemplate", + "description": "Components which derive from TextTemplate class", + "$role": "interface", + "oneOf": [ + { + "type": "string" + } + ] +}