@@ -1659,32 +1659,32 @@ extension AppBskyLexicon.Actor {
16591659 /// - Note: According to the AT Protocol specifications: "Matches threadgate record. List of rules
16601660 /// defining who can reply to this users posts. If value is an empty array, no one can reply. If
16611661 /// value is undefined, anyone can reply."
1662- public let threadgateAllowRules : [ ThreadgateAllowRulesUnion ]
1662+ public let threadgateAllowRules : [ ThreadgateAllowRulesUnion ] ?
16631663
16641664 /// An array of rules that determines the default settings for determining who can embed the post.
16651665 ///
16661666 /// - Note: According to the AT Protocol specifications: "Matches postgate record. List of rules
16671667 /// defining who can embed this users posts. If value is an empty array or is undefined, no
16681668 /// particular rules apply and anyone can embed."
1669- public let postgateEmbeddingRules : [ PostgateEmbeddingRulesUnion ]
1669+ public let postgateEmbeddingRules : [ PostgateEmbeddingRulesUnion ] ?
16701670
1671- public init ( threadgateAllowRules: [ ThreadgateAllowRulesUnion ] , postgateEmbeddingRules: [ PostgateEmbeddingRulesUnion ] ) {
1671+ public init ( threadgateAllowRules: [ ThreadgateAllowRulesUnion ] ? = nil , postgateEmbeddingRules: [ PostgateEmbeddingRulesUnion ] ? = nil ) {
16721672 self . threadgateAllowRules = threadgateAllowRules
16731673 self . postgateEmbeddingRules = postgateEmbeddingRules
16741674 }
16751675
16761676 public init ( from decoder: any Decoder ) throws {
16771677 let container = try decoder. container ( keyedBy: CodingKeys . self)
16781678
1679- self . threadgateAllowRules = try container. decode ( [ ThreadgateAllowRulesUnion ] . self, forKey: . threadgateAllowRules)
1680- self . postgateEmbeddingRules = try container. decode ( [ PostgateEmbeddingRulesUnion ] . self, forKey: . postgateEmbeddingRules)
1679+ self . threadgateAllowRules = try container. decodeIfPresent ( [ ThreadgateAllowRulesUnion ] . self, forKey: . threadgateAllowRules)
1680+ self . postgateEmbeddingRules = try container. decodeIfPresent ( [ PostgateEmbeddingRulesUnion ] . self, forKey: . postgateEmbeddingRules)
16811681 }
16821682
16831683 public func encode( to encoder: any Encoder ) throws {
16841684 var container = encoder. container ( keyedBy: CodingKeys . self)
16851685
1686- try container. truncatedEncode ( self . threadgateAllowRules, forKey: . threadgateAllowRules, upToArrayLength: 5 )
1687- try container. truncatedEncode ( self . postgateEmbeddingRules, forKey: . postgateEmbeddingRules, upToArrayLength: 5 )
1686+ try container. truncatedEncodeIfPresent ( self . threadgateAllowRules, forKey: . threadgateAllowRules, upToArrayLength: 5 )
1687+ try container. truncatedEncodeIfPresent ( self . postgateEmbeddingRules, forKey: . postgateEmbeddingRules, upToArrayLength: 5 )
16881688 }
16891689
16901690 enum CodingKeys : String , CodingKey {
0 commit comments