using System.Collections.Generic; using System.Text.Json.Serialization; namespace CarpaNet.Jetstream; /// /// A client-to-server message to dynamically update subscription filters. /// public sealed class JetstreamOptionsUpdate { /// /// The message type. Must be "options_update". /// [JsonPropertyName("type")] public string Type { get; set; } = "options_update"; /// /// The updated options payload. /// [JsonPropertyName("payload")] public JetstreamOptionsPayload Payload { get; set; } = new(); } /// /// Payload for an options_update message. /// public sealed class JetstreamOptionsPayload { /// /// Collection NSIDs to filter on. Empty list disables the filter. /// [JsonPropertyName("wantedCollections")] public List? WantedCollections { get; set; } /// /// Repo DIDs to filter on. Empty list disables the filter. /// [JsonPropertyName("wantedDids")] public List? WantedDids { get; set; } /// /// Maximum event payload size in bytes. /// [JsonPropertyName("maxMessageSizeBytes")] public int? MaxMessageSizeBytes { get; set; } }