1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import Foundation
/// AT Protocol blob reference returned from uploadBlob
struct BlobRef: Codable, Sendable {
let type: String?
let ref: BlobLink?
let mimeType: String?
let size: Int?
enum CodingKeys: String, CodingKey {
case type = "$type"
case ref
case mimeType
case size
}
struct BlobLink: Codable, Sendable {
let link: String
enum CodingKeys: String, CodingKey {
case link = "$link"
}
}
}
/// Label definition (com.atproto.label.defs#label)
struct ATLabel: Codable, Sendable {
let src: String?
let uri: String?
let val: String?
let cts: String?
}
/// Self-label values (com.atproto.label.defs#selfLabels)
struct SelfLabels: Codable, Sendable {
let type: String?
let values: [SelfLabel]?
enum CodingKeys: String, CodingKey {
case type = "$type"
case values
}
}
struct SelfLabel: Codable, Sendable {
let val: String
}