@atproto/api
Advanced tools
Comparing version 0.6.24 to 0.7.0
# @atproto/api | ||
## 0.7.0 | ||
### Minor Changes | ||
- [#1937](https://github.com/bluesky-social/atproto/pull/1937) [`45352f9b`](https://github.com/bluesky-social/atproto/commit/45352f9b6d02aa405be94e9102424d983912ca5d) Thanks [@pfrazee](https://github.com/pfrazee)! - Add the !no-unauthenticated label to the moderation SDK | ||
## 0.6.24 | ||
@@ -4,0 +10,0 @@ |
@@ -23,2 +23,8 @@ [ | ||
"onwarn": "blur" | ||
}, | ||
{ | ||
"id": "!no-unauthenticated", | ||
"preferences": ["hide"], | ||
"flags": ["no-override", "unauthed"], | ||
"onwarn": "blur" | ||
} | ||
@@ -25,0 +31,0 @@ ] |
@@ -44,2 +44,16 @@ { | ||
}, | ||
"!no-unauthenticated": { | ||
"settings": { | ||
"name": "Sign-in Required", | ||
"description": "This user has requested that their account only be shown to signed-in users." | ||
}, | ||
"account": { | ||
"name": "Sign-in Required", | ||
"description": "This user has requested that their account only be shown to signed-in users." | ||
}, | ||
"content": { | ||
"name": "Sign-in Required", | ||
"description": "This user has requested that their content only be shown to signed-in users." | ||
} | ||
}, | ||
"dmca-violation": { | ||
@@ -46,0 +60,0 @@ "settings": { |
@@ -44,2 +44,3 @@ import type { LabelPreference } from '../src' | ||
{ | ||
authed?: boolean | ||
adultContentEnabled: boolean | ||
@@ -46,0 +47,0 @@ settings: Record<string, LabelPreference> |
@@ -92,2 +92,5 @@ { | ||
"settings": { "porn": "warn", "intolerant": "hide" } | ||
}, | ||
"logged-out": { | ||
"authed": false | ||
} | ||
@@ -252,2 +255,117 @@ }, | ||
"Imperative label ('!no-unauthenticated') on post when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "post", | ||
"author": "alice", | ||
"labels": { "post": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"content": { | ||
"cause": "label:!no-unauthenticated", | ||
"filter": true, | ||
"blur": true, | ||
"noOverride": true | ||
} | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on author profile when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "post", | ||
"author": "alice", | ||
"labels": { "profile": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"avatar": { | ||
"cause": "label:!no-unauthenticated", | ||
"blur": true, | ||
"noOverride": true | ||
} | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on author account when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "post", | ||
"author": "alice", | ||
"labels": { "account": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"content": { | ||
"cause": "label:!no-unauthenticated", | ||
"filter": true, | ||
"blur": true, | ||
"noOverride": true | ||
}, | ||
"avatar": { | ||
"cause": "label:!no-unauthenticated", | ||
"blur": true, | ||
"noOverride": true | ||
} | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on quoted post when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "post", | ||
"author": "alice", | ||
"quoteAuthor": "alice", | ||
"labels": { "quotedPost": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"content": { "cause": "label:!no-unauthenticated", "filter": true }, | ||
"embed": { | ||
"cause": "label:!no-unauthenticated", | ||
"blur": true, | ||
"noOverride": true | ||
} | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on quoted author account when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "post", | ||
"author": "alice", | ||
"quoteAuthor": "alice", | ||
"labels": { "quotedAccount": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"content": { "cause": "label:!no-unauthenticated", "filter": true }, | ||
"embed": { | ||
"cause": "label:!no-unauthenticated", | ||
"blur": true, | ||
"noOverride": true | ||
} | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on post when logged in": { | ||
"cfg": "none", | ||
"subject": "post", | ||
"author": "alice", | ||
"labels": { "post": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on author profile when logged in": { | ||
"cfg": "none", | ||
"subject": "post", | ||
"author": "alice", | ||
"labels": { "profile": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on author account when logged in": { | ||
"cfg": "none", | ||
"subject": "post", | ||
"author": "alice", | ||
"labels": { "account": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on quoted post when logged in": { | ||
"cfg": "none", | ||
"subject": "post", | ||
"author": "alice", | ||
"quoteAuthor": "alice", | ||
"labels": { "quotedPost": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on quoted author account when logged in": { | ||
"cfg": "none", | ||
"subject": "post", | ||
"author": "alice", | ||
"quoteAuthor": "alice", | ||
"labels": { "quotedAccount": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Blur label ('intolerant') on post (hide)": { | ||
@@ -254,0 +372,0 @@ "cfg": "intolerant-hide", |
@@ -97,2 +97,5 @@ { | ||
"settings": { "intolerant": "hide", "scam": "hide" } | ||
}, | ||
"logged-out": { | ||
"authed": false | ||
} | ||
@@ -165,2 +168,47 @@ }, | ||
"Imperative label ('!no-unauthenticated') on account when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "profile", | ||
"author": "alice", | ||
"labels": { "account": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"account": { | ||
"cause": "label:!no-unauthenticated", | ||
"filter": true, | ||
"blur": true, | ||
"noOverride": true | ||
}, | ||
"avatar": { "blur": true, "noOverride": true } | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on profile when logged out": { | ||
"cfg": "logged-out", | ||
"subject": "profile", | ||
"author": "alice", | ||
"labels": { "profile": ["!no-unauthenticated"] }, | ||
"behaviors": { | ||
"profile": { | ||
"cause": "label:!no-unauthenticated", | ||
"blur": true, | ||
"noOverride": true | ||
}, | ||
"avatar": { "blur": true, "noOverride": true } | ||
} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on account when logged in": { | ||
"cfg": "none", | ||
"subject": "profile", | ||
"author": "alice", | ||
"labels": { "account": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Imperative label ('!no-unauthenticated') on profile when logged in": { | ||
"cfg": "none", | ||
"subject": "profile", | ||
"author": "alice", | ||
"labels": { "profile": ["!no-unauthenticated"] }, | ||
"behaviors": {} | ||
}, | ||
"Blur label ('intolerant') on account (hide)": { | ||
@@ -167,0 +215,0 @@ "cfg": "intolerant-hide", |
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc'; | ||
import * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'; | ||
import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'; | ||
@@ -64,2 +65,5 @@ import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'; | ||
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'; | ||
import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'; | ||
import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'; | ||
import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'; | ||
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'; | ||
@@ -122,2 +126,3 @@ import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'; | ||
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'; | ||
export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'; | ||
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'; | ||
@@ -191,2 +196,5 @@ export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'; | ||
export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'; | ||
export * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'; | ||
export * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'; | ||
export * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'; | ||
export * as AppBskyActorDefs from './types/app/bsky/actor/defs'; | ||
@@ -307,2 +315,3 @@ export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'; | ||
constructor(service: AtpServiceClient); | ||
deleteAccount(data?: ComAtprotoAdminDeleteAccount.InputSchema, opts?: ComAtprotoAdminDeleteAccount.CallOptions): Promise<ComAtprotoAdminDeleteAccount.Response>; | ||
disableAccountInvites(data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions): Promise<ComAtprotoAdminDisableAccountInvites.Response>; | ||
@@ -398,2 +407,5 @@ disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>; | ||
fetchLabels(params?: ComAtprotoTempFetchLabels.QueryParams, opts?: ComAtprotoTempFetchLabels.CallOptions): Promise<ComAtprotoTempFetchLabels.Response>; | ||
importRepo(data?: ComAtprotoTempImportRepo.InputSchema, opts?: ComAtprotoTempImportRepo.CallOptions): Promise<ComAtprotoTempImportRepo.Response>; | ||
pushBlob(data?: ComAtprotoTempPushBlob.InputSchema, opts?: ComAtprotoTempPushBlob.CallOptions): Promise<ComAtprotoTempPushBlob.Response>; | ||
transferAccount(data?: ComAtprotoTempTransferAccount.InputSchema, opts?: ComAtprotoTempTransferAccount.CallOptions): Promise<ComAtprotoTempTransferAccount.Response>; | ||
} | ||
@@ -400,0 +412,0 @@ export declare class AppNS { |
import { AppBskyActorDefs, AppBskyFeedDefs, AppBskyGraphDefs, ComAtprotoLabelDefs } from '../client/index'; | ||
export declare type Label = ComAtprotoLabelDefs.Label; | ||
export declare type LabelPreference = 'ignore' | 'warn' | 'hide'; | ||
export declare type LabelDefinitionFlag = 'no-override' | 'adult'; | ||
export declare type LabelDefinitionFlag = 'no-override' | 'adult' | 'unauthed'; | ||
export declare type LabelDefinitionOnWarnBehavior = 'blur' | 'blur-media' | 'alert' | null; | ||
@@ -6,0 +6,0 @@ export interface LabelDefinitionLocalizedStrings { |
@@ -77,2 +77,10 @@ <!-- this doc is generated by ./scripts/docs/labels.mjs --> | ||
<tr> | ||
<td>!no-unauthenticated</td> | ||
<td>system</td> | ||
<td>hide</td> | ||
<td>❌</td> | ||
<td>no-override, unauthed</td> | ||
<td>blur</td> | ||
</tr> | ||
<tr> | ||
<td>dmca-violation</td> | ||
@@ -348,2 +356,10 @@ <td>legal</td> | ||
<tr> | ||
<td>!no-unauthenticated</td> | ||
<td> | ||
<code>general</code><br><strong>Sign-in Required</strong><br>This user has requested that their account only be shown to signed-in users.<br><br> | ||
<code>on an account</code><br><strong>Sign-in Required</strong><br>This user has requested that their account only be shown to signed-in users.<br><br> | ||
<code>on content</code><br><strong>Sign-in Required</strong><br>This user has requested that their content only be shown to signed-in users.<br><br> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>dmca-violation</td> | ||
@@ -350,0 +366,0 @@ <td> |
@@ -37,3 +37,2 @@ <!-- this doc is generated by ./scripts/docs/post-moderation-behaviors.mjs --> | ||
🚫 | ||
</td> | ||
@@ -58,3 +57,2 @@ <td> | ||
🚫 | ||
</td> | ||
@@ -73,7 +71,5 @@ <td> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -98,3 +94,2 @@ <td> | ||
🚫 | ||
</td> | ||
@@ -116,3 +111,2 @@ </tr> | ||
🚫 | ||
</td> | ||
@@ -208,3 +202,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -229,3 +222,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -244,7 +236,5 @@ <td> | ||
✋ | ||
</td> | ||
<td> | ||
✋ | ||
</td> | ||
@@ -269,3 +259,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -287,6 +276,165 @@ </tr> | ||
✋ | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on post when logged out</strong></td> | ||
<td> | ||
❌ | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on author profile when logged out</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on author account when logged out</strong></td> | ||
<td> | ||
❌ | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on quoted post when logged out</strong></td> | ||
<td> | ||
❌ | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on quoted author account when logged out</strong></td> | ||
<td> | ||
❌ | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on post when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on author profile when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on author account when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on quoted post when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on quoted author account when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr><th>Scenario</th><th>Filter</th><th>Content</th><th>Avatar</th><th>Embed</th></tr> | ||
@@ -300,3 +448,2 @@ <tr> | ||
✋ | ||
</td> | ||
@@ -321,3 +468,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -336,7 +482,5 @@ <td> | ||
✋ | ||
</td> | ||
<td> | ||
✋ | ||
</td> | ||
@@ -361,3 +505,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -379,3 +522,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -391,3 +533,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -412,3 +553,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -427,7 +567,5 @@ <td> | ||
✋ | ||
</td> | ||
<td> | ||
✋ | ||
</td> | ||
@@ -452,3 +590,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -470,3 +607,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -569,3 +705,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -584,3 +719,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -602,7 +736,5 @@ <td> | ||
✋ | ||
</td> | ||
<td> | ||
✋ | ||
</td> | ||
@@ -624,3 +756,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -658,3 +789,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -673,3 +803,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -691,7 +820,5 @@ <td> | ||
✋ | ||
</td> | ||
<td> | ||
✋ | ||
</td> | ||
@@ -713,3 +840,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -821,5 +947,3 @@ </tr> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -843,5 +967,3 @@ <td> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -859,10 +981,6 @@ <td> | ||
<td> | ||
🪧 | ||
</td> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -886,5 +1004,3 @@ <td> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -905,5 +1021,3 @@ </tr> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -918,5 +1032,3 @@ </tr> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -940,5 +1052,3 @@ <td> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -956,10 +1066,6 @@ <td> | ||
<td> | ||
🪧 | ||
</td> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -983,5 +1089,3 @@ <td> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -1002,5 +1106,3 @@ </tr> | ||
<td> | ||
🪧 | ||
</td> | ||
@@ -1103,3 +1205,2 @@ </tr> | ||
🚫 | ||
</td> | ||
@@ -1118,3 +1219,2 @@ </tr> | ||
🚫 | ||
</td> | ||
@@ -1136,7 +1236,5 @@ <td> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -1158,3 +1256,2 @@ </tr> | ||
🚫 | ||
</td> | ||
@@ -1187,3 +1284,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1243,3 +1339,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -1271,3 +1366,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1327,3 +1421,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -1361,3 +1454,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1411,3 +1503,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1445,3 +1536,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1495,3 +1585,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1524,7 +1613,5 @@ </tr> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -1549,3 +1636,2 @@ <td> | ||
🚫 | ||
</td> | ||
@@ -1561,7 +1647,5 @@ </tr> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -1586,3 +1670,2 @@ <td> | ||
🚫 | ||
</td> | ||
@@ -1598,3 +1681,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1622,3 +1704,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -1634,3 +1715,2 @@ </tr> | ||
✋ | ||
</td> | ||
@@ -1658,3 +1738,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -1671,7 +1750,5 @@ </tr> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -1696,3 +1773,2 @@ <td> | ||
🚫 | ||
</td> | ||
@@ -1708,7 +1784,5 @@ </tr> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -1727,11 +1801,8 @@ <td> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
@@ -1747,3 +1818,2 @@ </tr> | ||
🚫 | ||
</td> | ||
@@ -1765,3 +1835,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -1783,3 +1852,2 @@ <td> | ||
🚫 | ||
</td> | ||
@@ -1807,3 +1875,2 @@ <td> | ||
✋ | ||
</td> | ||
@@ -1810,0 +1877,0 @@ </tr> |
@@ -134,2 +134,70 @@ <!-- this doc is generated by ./scripts/docs/profile-moderation-behaviors.mjs --> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on account when logged out</strong></td> | ||
<td> | ||
❌ | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on profile when logged out</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
<td> | ||
🚫 | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on account when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Imperative label ('!no-unauthenticated') on profile when logged in</strong></td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr><th>Scenario</th><th>Filter</th><th>Account</th><th>Profile</td><th>Avatar</th></tr> | ||
@@ -136,0 +204,0 @@ <tr> |
{ | ||
"name": "@atproto/api", | ||
"version": "0.6.24", | ||
"version": "0.7.0", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "description": "Client library for atproto and Bluesky", | ||
"@atproto/lex-cli": "^0.2.5", | ||
"@atproto/dev-env": "^0.2.16" | ||
"@atproto/dev-env": "^0.2.17" | ||
}, | ||
@@ -34,0 +34,0 @@ "scripts": { |
@@ -99,2 +99,7 @@ import { AppBskyGraphDefs } from '../client/index' | ||
// ignore 'unauthed' labels when the user is authed | ||
if (labelDef.flags.includes('unauthed') && !!opts.userDid) { | ||
return | ||
} | ||
// establish the priority of the label | ||
@@ -101,0 +106,0 @@ let priority: 1 | 2 | 5 | 7 | 8 |
@@ -9,3 +9,8 @@ /** this doc is generated by ./scripts/code/labels.mjs **/ | ||
configurable: false, | ||
labels: [LABELS['!hide'], LABELS['!no-promote'], LABELS['!warn']], | ||
labels: [ | ||
LABELS['!hide'], | ||
LABELS['!no-promote'], | ||
LABELS['!warn'], | ||
LABELS['!no-unauthenticated'], | ||
], | ||
strings: { | ||
@@ -12,0 +17,0 @@ settings: { |
@@ -92,2 +92,33 @@ /** this doc is generated by ./scripts/code/labels.mjs **/ | ||
}, | ||
'!no-unauthenticated': { | ||
id: '!no-unauthenticated', | ||
preferences: ['hide'], | ||
flags: ['no-override', 'unauthed'], | ||
onwarn: 'blur', | ||
groupId: 'system', | ||
configurable: false, | ||
strings: { | ||
settings: { | ||
en: { | ||
name: 'Requested Hidden to Logged-out Users', | ||
description: | ||
'This user has requested that their content only be shown to logged-in accounts.', | ||
}, | ||
}, | ||
account: { | ||
en: { | ||
name: 'Sign-in Required', | ||
description: | ||
'This user has requested that their content only be shown to logged-in accounts.', | ||
}, | ||
}, | ||
content: { | ||
en: { | ||
name: 'Sign-in Required', | ||
description: | ||
'This user has requested that their content only be shown to logged-in accounts.', | ||
}, | ||
}, | ||
}, | ||
}, | ||
'dmca-violation': { | ||
@@ -94,0 +125,0 @@ id: 'dmca-violation', |
@@ -14,3 +14,3 @@ import { | ||
export type LabelPreference = 'ignore' | 'warn' | 'hide' | ||
export type LabelDefinitionFlag = 'no-override' | 'adult' | ||
export type LabelDefinitionFlag = 'no-override' | 'adult' | 'unauthed' | ||
export type LabelDefinitionOnWarnBehavior = | ||
@@ -17,0 +17,0 @@ | 'blur' |
@@ -173,3 +173,6 @@ import { ModerationUI, ModerationOpts, ComAtprotoLabelDefs } from '../../src' | ||
return { | ||
userDid: 'did:web:self.test', | ||
userDid: | ||
this.suite.configurations[scenario.cfg].authed === false | ||
? '' | ||
: 'did:web:self.test', | ||
adultContentEnabled: Boolean( | ||
@@ -176,0 +179,0 @@ this.suite.configurations[scenario.cfg].adultContentEnabled, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4502132
367
70614