RynthChat settings: server tab, owner, pinned fields

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-11-15 08:23:24 -08:00
commit 626cc9dfc3
2 changed files with 51 additions and 0 deletions

View file

@ -41,6 +41,13 @@ internal sealed class RynthChatFilterDto
// 2026-10-05:
/// <summary>"contains" | "startswith" | "endswith"; absent: a regex (ChatRuleMatching).</summary>
[JsonPropertyName("mode")] public string? Mode { get; set; }
// 2026-11-15 (server default tabs, ChatServerTabs); each is absent on a player's own rule:
/// <summary>The server id whose plugin tab this rule belongs to; absent = every server.</summary>
[JsonPropertyName("server")] public string? Server { get; set; }
/// <summary>"&lt;server&gt;/&lt;entry id&gt;" of the plugin entry that owns this rule; absent = the player's rule.</summary>
[JsonPropertyName("owner")] public string? Owner { get; set; }
/// <summary>True on the rule whose pattern follows the room discovered from chat; absent = false.</summary>
[JsonPropertyName("globalRoom")] public bool? GlobalRoom { get; set; }
}
internal sealed class RynthChatSettingsDto
@ -71,6 +78,15 @@ internal sealed class RynthChatSettingsDto
// 2026-10-20: the tabs in a row across the top instead of the channels drawer; absent while off.
[JsonPropertyName("tabsAcross")] public bool? TabsAcross { get; set; }
[JsonPropertyName("customTabs")] public string[]? CustomTabs { get; set; }
// 2026-11-15: server default tabs (ChatServerTabs) and pinned channels (ChatPins); each absent while unused.
/// <summary>Owner keys ("server/id") of the plugin tabs already seeded, so a deleted tab is not re-created.</summary>
[JsonPropertyName("seededTabs")] public string[]? SeededTabs { get; set; }
/// <summary>Tab name -> the server id whose plugin declared it; the tab shows only while that server is active.</summary>
[JsonPropertyName("tabServers")] public Dictionary<string, string>? TabServers { get; set; }
/// <summary>Server id -> the Global room (General, Trade, LFG, Roleplay) last discovered from chat.</summary>
[JsonPropertyName("globalRooms")] public Dictionary<string, string>? GlobalRooms { get; set; }
/// <summary>Tabs pinned to the main chat window's top bar, in pin order.</summary>
[JsonPropertyName("pinnedTabs")] public string[]? PinnedTabs { get; set; }
[JsonPropertyName("filters")] public RynthChatFilterDto[]? Filters { get; set; }
/// <summary>Standard filters' user state (RynthChatPresets); absent while none was changed.</summary>
[JsonPropertyName("presets")] public RynthChatPresetDto[]? Presets { get; set; }