| | | 1 | | using Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Models; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Responses; |
| | | 4 | | |
| | | 5 | | public sealed class ListExternalAuthenticationConnectionsResponse |
| | | 6 | | { |
| | | 7 | | public ICollection<ExternalAuthenticationConnection> Items { get; set; } = []; |
| | | 8 | | public string? NextCursor { get; set; } |
| | | 9 | | } |
| | | 10 | | |
| | | 11 | | public sealed class ValidateExternalAuthenticationConnectionResponse |
| | | 12 | | { |
| | | 13 | | public bool Valid { get; set; } |
| | | 14 | | public ICollection<ExternalAuthenticationConnectionValidationError> Errors { get; set; } = []; |
| | | 15 | | public ICollection<string> Warnings { get; set; } = []; |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public sealed class ExternalAuthenticationConnectionValidationError |
| | | 19 | | { |
| | 0 | 20 | | public string Field { get; set; } = ""; |
| | 0 | 21 | | public string Code { get; set; } = ""; |
| | 0 | 22 | | public string Message { get; set; } = ""; |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public sealed class TestExternalAuthenticationConnectionResponse |
| | | 26 | | { |
| | | 27 | | public string Status { get; set; } = ""; |
| | | 28 | | public DateTimeOffset ObservedAt { get; set; } |
| | | 29 | | public string TestedMaterialRevision { get; set; } = ""; |
| | | 30 | | public string Category { get; set; } = ""; |
| | | 31 | | public string Summary { get; set; } = ""; |
| | | 32 | | public ICollection<string> Warnings { get; set; } = []; |
| | | 33 | | public TimeSpan Duration { get; set; } |
| | | 34 | | public string CorrelationId { get; set; } = ""; |
| | | 35 | | } |
| | | 36 | | |
| | | 37 | | public sealed class InitiateExternalAuthenticationPreviewResponse |
| | | 38 | | { |
| | | 39 | | public string NavigationUrl { get; set; } = ""; |
| | | 40 | | public DateTimeOffset ExpiresAt { get; set; } |
| | | 41 | | } |
| | | 42 | | |
| | | 43 | | public sealed class ExternalAuthenticationPreviewResult |
| | | 44 | | { |
| | | 45 | | public string ConnectionId { get; set; } = ""; |
| | | 46 | | public string MaterialRevision { get; set; } = ""; |
| | | 47 | | public string Issuer { get; set; } = ""; |
| | | 48 | | public string MaskedSubject { get; set; } = ""; |
| | | 49 | | public Dictionary<string, ICollection<string>> ProjectedClaims { get; set; } = new(StringComparer.Ordinal); |
| | | 50 | | public string PolicyDecision { get; set; } = ""; |
| | | 51 | | public ICollection<ExternalAuthenticationPermissionGrant> PermissionProjection { get; set; } = []; |
| | | 52 | | public ICollection<string> Warnings { get; set; } = []; |
| | | 53 | | } |
| | | 54 | | |
| | | 55 | | public sealed class ExternalAuthenticationPermissionGrant |
| | | 56 | | { |
| | | 57 | | public string Permission { get; set; } = ""; |
| | | 58 | | public string SourceType { get; set; } = ""; |
| | | 59 | | public string SourceReference { get; set; } = ""; |
| | | 60 | | } |