Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Manifest Integrity / Validate Schema Integrity (push) Has been cancelled
Manifest Integrity / Validate Contract Documents (push) Has been cancelled
Manifest Integrity / Validate Pack Fixtures (push) Has been cancelled
Manifest Integrity / Audit SHA256SUMS Files (push) Has been cancelled
Manifest Integrity / Verify Merkle Roots (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Risk Bundle CI / risk-bundle-build (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Risk Bundle CI / risk-bundle-offline-kit (push) Has been cancelled
Risk Bundle CI / publish-checksums (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
87 lines
1.6 KiB
C#
87 lines
1.6 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace StellaOps.Notify.Models;
|
|
|
|
/// <summary>
|
|
/// Supported Notify channel types.
|
|
/// </summary>
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public enum NotifyChannelType
|
|
{
|
|
Slack,
|
|
Teams,
|
|
Email,
|
|
Webhook,
|
|
Custom,
|
|
PagerDuty,
|
|
OpsGenie,
|
|
Cli,
|
|
InAppInbox,
|
|
InApp,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Delivery lifecycle states tracked for audit and retries.
|
|
/// </summary>
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public enum NotifyDeliveryStatus
|
|
{
|
|
Pending,
|
|
Queued,
|
|
Sending,
|
|
Delivered,
|
|
Sent,
|
|
Failed,
|
|
Throttled,
|
|
Digested,
|
|
Dropped,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Individual attempt status recorded during delivery retries.
|
|
/// </summary>
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public enum NotifyDeliveryAttemptStatus
|
|
{
|
|
Enqueued,
|
|
Sending,
|
|
Succeeded,
|
|
Success = Succeeded,
|
|
Failed,
|
|
Throttled,
|
|
Skipped,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Rendering modes for templates to help connectors decide format handling.
|
|
/// </summary>
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public enum NotifyTemplateRenderMode
|
|
{
|
|
Markdown,
|
|
Html,
|
|
AdaptiveCard,
|
|
PlainText,
|
|
Json,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Structured representation of rendered payload format.
|
|
/// </summary>
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public enum NotifyDeliveryFormat
|
|
{
|
|
Markdown,
|
|
Html,
|
|
PlainText,
|
|
Slack,
|
|
Teams,
|
|
Email,
|
|
Webhook,
|
|
Json,
|
|
PagerDuty,
|
|
OpsGenie,
|
|
Cli,
|
|
InAppInbox,
|
|
}
|