| | | 1 | | using System.Text.Json; |
| | | 2 | | |
| | | 3 | | namespace Elsa.ExternalAuthentication.Models; |
| | | 4 | | |
| | | 5 | | public sealed record SettingFieldDescriptor( |
| | | 6 | | string Name, |
| | | 7 | | string DisplayName, |
| | | 8 | | string Description, |
| | | 9 | | string ValueType, |
| | | 10 | | bool IsRequired, |
| | | 11 | | string UiHint, |
| | | 12 | | JsonElement? DefaultValue, |
| | | 13 | | IReadOnlyCollection<string> AllowedValues, |
| | | 14 | | SettingFieldValidation Validation, |
| | | 15 | | bool IsSecretBinding, |
| | | 16 | | bool IsUnsafe, |
| | | 17 | | SettingFieldVisibilityCondition? VisibleWhen, |
| | | 18 | | string? HelpText, |
| | | 19 | | bool IsRedacted); |
| | | 20 | | |
| | | 21 | | public sealed record SettingFieldValidation(int? MinimumLength = null, int? MaximumLength = null, string? Pattern = null |
| | | 22 | | |
| | | 23 | | public sealed record SettingFieldVisibilityCondition(string Field, string ExpectedValue); |
| | | 24 | | |
| | | 25 | | public sealed record CustomEditorContract(string Key, int ContractVersion); |
| | | 26 | | |
| | | 27 | | public sealed record ExternalAuthenticationAdapterCapabilities(bool SupportsTest, bool SupportsPreview, bool SupportsUps |
| | | 28 | | |
| | | 29 | | public sealed record ExternalAuthenticationAdapterDescriptor( |
| | | 30 | | string Type, |
| | | 31 | | string DisplayName, |
| | | 32 | | string Description, |
| | | 33 | | int SettingsVersion, |
| | | 34 | | IReadOnlyList<SettingFieldDescriptor> Fields, |
| | | 35 | | ExternalAuthenticationAdapterCapabilities Capabilities, |
| | | 36 | | CustomEditorContract? CustomEditor); |
| | | 37 | | |
| | 23 | 38 | | public sealed record UnlinkedIdentityPolicyDescriptor(string Type, string DisplayName, string Description, int SettingsV |
| | | 39 | | |
| | | 40 | | public sealed record PermissionGrantSourceDescriptor(string Type, string DisplayName, string Description, int SettingsVe |
| | | 41 | | |
| | | 42 | | public sealed record ExternalUserMatcherDescriptor(string Type, string DisplayName, string Description, int SettingsVers |
| | | 43 | | |
| | | 44 | | public sealed record PermissionDescriptor(string Name, string DisplayName, string Description, string Category); |