@atproto/api 0.6.24 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/definitions/labels.json +6 -0
  3. package/definitions/locale/en/labels.json +14 -0
  4. package/definitions/moderation-behaviors.d.ts +1 -0
  5. package/definitions/post-moderation-behaviors.json +118 -0
  6. package/definitions/profile-moderation-behaviors.json +48 -0
  7. package/dist/client/index.d.ts +12 -0
  8. package/dist/client/lexicons.d.ts +134 -0
  9. package/dist/client/types/com/atproto/admin/deleteAccount.d.ts +17 -0
  10. package/dist/client/types/com/atproto/temp/importRepo.d.ts +16 -0
  11. package/dist/client/types/com/atproto/temp/pushBlob.d.ts +15 -0
  12. package/dist/client/types/com/atproto/temp/transferAccount.d.ts +48 -0
  13. package/dist/index.js +635 -325
  14. package/dist/index.js.map +3 -3
  15. package/dist/moderation/types.d.ts +1 -1
  16. package/docs/labels.md +16 -0
  17. package/docs/moderation-behaviors/posts.md +159 -92
  18. package/docs/moderation-behaviors/profiles.md +68 -0
  19. package/package.json +2 -2
  20. package/scripts/docs/labels.mjs +27 -27
  21. package/scripts/docs/post-moderation-behaviors.mjs +43 -48
  22. package/src/client/index.ts +52 -0
  23. package/src/client/lexicons.ts +156 -0
  24. package/src/client/types/com/atproto/admin/deleteAccount.ts +32 -0
  25. package/src/client/types/com/atproto/temp/importRepo.ts +33 -0
  26. package/src/client/types/com/atproto/temp/pushBlob.ts +32 -0
  27. package/src/client/types/com/atproto/temp/transferAccount.ts +92 -0
  28. package/src/moderation/accumulator.ts +5 -0
  29. package/src/moderation/const/label-groups.ts +6 -1
  30. package/src/moderation/const/labels.ts +31 -0
  31. package/src/moderation/types.ts +1 -1
  32. package/tests/util/moderation-behavior.ts +4 -1
@@ -1,7 +1,7 @@
1
1
  import { AppBskyActorDefs, AppBskyFeedDefs, AppBskyGraphDefs, ComAtprotoLabelDefs } from '../client/index';
2
2
  export declare type Label = ComAtprotoLabelDefs.Label;
3
3
  export declare type LabelPreference = 'ignore' | 'warn' | 'hide';
4
- export declare type LabelDefinitionFlag = 'no-override' | 'adult';
4
+ export declare type LabelDefinitionFlag = 'no-override' | 'adult' | 'unauthed';
5
5
  export declare type LabelDefinitionOnWarnBehavior = 'blur' | 'blur-media' | 'alert' | null;
6
6
  export interface LabelDefinitionLocalizedStrings {
7
7
  name: string;
package/docs/labels.md CHANGED
@@ -73,6 +73,14 @@ The kind of UI behavior used when a warning must be applied.
73
73
  <td></td>
74
74
  <td>blur</td>
75
75
  </tr>
76
+ <tr>
77
+ <td>!no-unauthenticated</td>
78
+ <td>system</td>
79
+ <td>hide</td>
80
+ <td>❌</td>
81
+ <td>no-override, unauthed</td>
82
+ <td>blur</td>
83
+ </tr>
76
84
  <tr>
77
85
  <td>dmca-violation</td>
78
86
  <td>legal</td>
@@ -343,6 +351,14 @@ The kind of UI behavior used when a warning must be applied.
343
351
  <code>on content</code><br><strong>Content Warning</strong><br>This content has received a general warning from moderators.<br><br>
344
352
  </td>
345
353
  </tr>
354
+ <tr>
355
+ <td>!no-unauthenticated</td>
356
+ <td>
357
+ <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>
358
+ <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>
359
+ <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>
360
+ </td>
361
+ </tr>
346
362
  <tr>
347
363
  <td>dmca-violation</td>
348
364
  <td>