|
23 | 23 | "type": "array", |
24 | 24 | "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } |
25 | 25 | }, |
26 | | - "createdAt": { "type": "string", "format": "datetime" } |
| 26 | + "createdAt": { "type": "string", "format": "datetime" }, |
| 27 | + "verification": { |
| 28 | + "type": "ref", |
| 29 | + "ref": "#verificationState" |
| 30 | + }, |
| 31 | + "status": { |
| 32 | + "type": "ref", |
| 33 | + "ref": "#statusView" |
| 34 | + } |
27 | 35 | } |
28 | 36 | }, |
29 | 37 | "profileView": { |
|
53 | 61 | "labels": { |
54 | 62 | "type": "array", |
55 | 63 | "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } |
| 64 | + }, |
| 65 | + "verification": { |
| 66 | + "type": "ref", |
| 67 | + "ref": "#verificationState" |
| 68 | + }, |
| 69 | + "status": { |
| 70 | + "type": "ref", |
| 71 | + "ref": "#statusView" |
56 | 72 | } |
57 | 73 | } |
58 | 74 | }, |
|
95 | 111 | "pinnedPost": { |
96 | 112 | "type": "ref", |
97 | 113 | "ref": "com.atproto.repo.strongRef" |
| 114 | + }, |
| 115 | + "verification": { |
| 116 | + "type": "ref", |
| 117 | + "ref": "#verificationState" |
| 118 | + }, |
| 119 | + "status": { |
| 120 | + "type": "ref", |
| 121 | + "ref": "#statusView" |
98 | 122 | } |
99 | 123 | } |
100 | 124 | }, |
|
105 | 129 | "feedgens": { "type": "integer" }, |
106 | 130 | "starterPacks": { "type": "integer" }, |
107 | 131 | "labeler": { "type": "boolean" }, |
108 | | - "chat": { "type": "ref", "ref": "#profileAssociatedChat" } |
| 132 | + "chat": { "type": "ref", "ref": "#profileAssociatedChat" }, |
| 133 | + "activitySubscription": { |
| 134 | + "type": "ref", |
| 135 | + "ref": "#profileAssociatedActivitySubscription" |
| 136 | + } |
109 | 137 | } |
110 | 138 | }, |
111 | 139 | "profileAssociatedChat": { |
|
118 | 146 | } |
119 | 147 | } |
120 | 148 | }, |
| 149 | + "profileAssociatedActivitySubscription": { |
| 150 | + "type": "object", |
| 151 | + "required": ["allowSubscriptions"], |
| 152 | + "properties": { |
| 153 | + "allowSubscriptions": { |
| 154 | + "type": "string", |
| 155 | + "knownValues": ["followers", "mutuals", "none"] |
| 156 | + } |
| 157 | + } |
| 158 | + }, |
121 | 159 | "viewerState": { |
122 | 160 | "type": "object", |
123 | 161 | "description": "Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.", |
|
136 | 174 | "following": { "type": "string", "format": "at-uri" }, |
137 | 175 | "followedBy": { "type": "string", "format": "at-uri" }, |
138 | 176 | "knownFollowers": { |
| 177 | + "description": "This property is present only in selected cases, as an optimization.", |
139 | 178 | "type": "ref", |
140 | 179 | "ref": "#knownFollowers" |
| 180 | + }, |
| 181 | + "activitySubscription": { |
| 182 | + "description": "This property is present only in selected cases, as an optimization.", |
| 183 | + "type": "ref", |
| 184 | + "ref": "app.bsky.notification.defs#activitySubscription" |
141 | 185 | } |
142 | 186 | } |
143 | 187 | }, |
|
158 | 202 | } |
159 | 203 | } |
160 | 204 | }, |
| 205 | + "verificationState": { |
| 206 | + "type": "object", |
| 207 | + "description": "Represents the verification information about the user this object is attached to.", |
| 208 | + "required": ["verifications", "verifiedStatus", "trustedVerifierStatus"], |
| 209 | + "properties": { |
| 210 | + "verifications": { |
| 211 | + "type": "array", |
| 212 | + "description": "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.", |
| 213 | + "items": { "type": "ref", "ref": "#verificationView" } |
| 214 | + }, |
| 215 | + "verifiedStatus": { |
| 216 | + "type": "string", |
| 217 | + "description": "The user's status as a verified account.", |
| 218 | + "knownValues": ["valid", "invalid", "none"] |
| 219 | + }, |
| 220 | + "trustedVerifierStatus": { |
| 221 | + "type": "string", |
| 222 | + "description": "The user's status as a trusted verifier.", |
| 223 | + "knownValues": ["valid", "invalid", "none"] |
| 224 | + } |
| 225 | + } |
| 226 | + }, |
| 227 | + "verificationView": { |
| 228 | + "type": "object", |
| 229 | + "description": "An individual verification for an associated subject.", |
| 230 | + "required": ["issuer", "uri", "isValid", "createdAt"], |
| 231 | + "properties": { |
| 232 | + "issuer": { |
| 233 | + "type": "string", |
| 234 | + "description": "The user who issued this verification.", |
| 235 | + "format": "did" |
| 236 | + }, |
| 237 | + "uri": { |
| 238 | + "type": "string", |
| 239 | + "description": "The AT-URI of the verification record.", |
| 240 | + "format": "at-uri" |
| 241 | + }, |
| 242 | + "isValid": { |
| 243 | + "type": "boolean", |
| 244 | + "description": "True if the verification passes validation, otherwise false." |
| 245 | + }, |
| 246 | + "createdAt": { |
| 247 | + "type": "string", |
| 248 | + "description": "Timestamp when the verification was created.", |
| 249 | + "format": "datetime" |
| 250 | + } |
| 251 | + } |
| 252 | + }, |
161 | 253 | "preferences": { |
162 | 254 | "type": "array", |
163 | 255 | "items": { |
|
175 | 267 | "#hiddenPostsPref", |
176 | 268 | "#bskyAppStatePref", |
177 | 269 | "#labelersPref", |
178 | | - "#postInteractionSettingsPref" |
| 270 | + "#postInteractionSettingsPref", |
| 271 | + "#verificationPrefs" |
179 | 272 | ] |
180 | 273 | } |
181 | 274 | }, |
|
470 | 563 | } |
471 | 564 | } |
472 | 565 | }, |
| 566 | + "verificationPrefs": { |
| 567 | + "type": "object", |
| 568 | + "description": "Preferences for how verified accounts appear in the app.", |
| 569 | + "required": [], |
| 570 | + "properties": { |
| 571 | + "hideBadges": { |
| 572 | + "description": "Hide the blue check badges for verified accounts and trusted verifiers.", |
| 573 | + "type": "boolean", |
| 574 | + "default": false |
| 575 | + } |
| 576 | + } |
| 577 | + }, |
473 | 578 | "postInteractionSettingsPref": { |
474 | 579 | "type": "object", |
475 | 580 | "description": "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.", |
|
499 | 604 | } |
500 | 605 | } |
501 | 606 | } |
| 607 | + }, |
| 608 | + "statusView": { |
| 609 | + "type": "object", |
| 610 | + "required": ["status", "record"], |
| 611 | + "properties": { |
| 612 | + "status": { |
| 613 | + "type": "string", |
| 614 | + "description": "The status for the account.", |
| 615 | + "knownValues": ["app.bsky.actor.status#live"] |
| 616 | + }, |
| 617 | + "record": { "type": "unknown" }, |
| 618 | + "embed": { |
| 619 | + "type": "union", |
| 620 | + "description": "An optional embed associated with the status.", |
| 621 | + "refs": ["app.bsky.embed.external#view"] |
| 622 | + }, |
| 623 | + "expiresAt": { |
| 624 | + "type": "string", |
| 625 | + "description": "The date when this status will expire. The application might choose to no longer return the status after expiration.", |
| 626 | + "format": "datetime" |
| 627 | + }, |
| 628 | + "isActive": { |
| 629 | + "type": "boolean", |
| 630 | + "description": "True if the status is not expired, false if it is expired. Only present if expiration was set." |
| 631 | + } |
| 632 | + } |
502 | 633 | } |
503 | 634 | } |
504 | 635 | } |
0 commit comments