@atproto/api 0.5.3 → 0.5.5

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 (118) hide show
  1. package/README.md +11 -3
  2. package/dist/agent.d.ts +44 -25
  3. package/dist/bsky-agent.d.ts +62 -43
  4. package/dist/client/lexicons.d.ts +48 -0
  5. package/dist/client/types/app/bsky/actor/defs.d.ts +74 -65
  6. package/dist/client/types/app/bsky/actor/profile.d.ts +5 -0
  7. package/dist/client/types/app/bsky/embed/external.d.ts +23 -23
  8. package/dist/client/types/app/bsky/embed/images.d.ts +20 -20
  9. package/dist/client/types/app/bsky/embed/record.d.ts +53 -41
  10. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +26 -20
  11. package/dist/client/types/app/bsky/feed/defs.d.ts +141 -107
  12. package/dist/client/types/app/bsky/feed/generator.d.ts +5 -0
  13. package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +1 -0
  14. package/dist/client/types/app/bsky/feed/like.d.ts +7 -7
  15. package/dist/client/types/app/bsky/feed/post.d.ts +5 -0
  16. package/dist/client/types/app/bsky/feed/repost.d.ts +7 -7
  17. package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
  18. package/dist/client/types/app/bsky/graph/defs.d.ts +36 -36
  19. package/dist/client/types/app/bsky/graph/follow.d.ts +6 -6
  20. package/dist/client/types/app/bsky/graph/list.d.ts +5 -0
  21. package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
  22. package/dist/client/types/app/bsky/richtext/facet.d.ts +26 -22
  23. package/dist/client/types/com/atproto/label/defs.d.ts +12 -0
  24. package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
  25. package/dist/client/types/com/atproto/moderation/defs.d.ts +16 -7
  26. package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
  27. package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
  28. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +46 -46
  29. package/dist/client/util.d.ts +5 -2
  30. package/dist/index.js +94 -22
  31. package/dist/index.js.map +2 -2
  32. package/dist/moderation/types.d.ts +7 -3
  33. package/dist/moderation/util.d.ts +1 -3
  34. package/dist/rich-text/detection.d.ts +4 -4
  35. package/dist/rich-text/rich-text.d.ts +31 -31
  36. package/dist/rich-text/sanitization.d.ts +7 -4
  37. package/dist/rich-text/unicode.d.ts +9 -9
  38. package/dist/types.d.ts +34 -22
  39. package/docs/moderation.md +14 -5
  40. package/package.json +1 -1
  41. package/src/client/lexicons.ts +55 -0
  42. package/src/client/types/app/bsky/actor/profile.ts +4 -0
  43. package/src/client/types/app/bsky/feed/generator.ts +4 -0
  44. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +5 -0
  45. package/src/client/types/app/bsky/feed/post.ts +4 -0
  46. package/src/client/types/app/bsky/graph/list.ts +4 -0
  47. package/src/client/types/com/atproto/label/defs.ts +37 -0
  48. package/src/moderation/accumulator.ts +17 -12
  49. package/src/moderation/types.ts +5 -3
  50. package/tests/moderation.test.ts +334 -0
  51. package/tests/util/moderation-behavior.ts +3 -2
  52. package/tsconfig.build.tsbuildinfo +1 -1
  53. package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
  54. package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
  55. package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
  56. package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
  57. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
  58. package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
  59. package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
  60. package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
  61. package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
  62. package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
  63. package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
  64. package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
  65. package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
  66. package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  67. package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  68. package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
  69. package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
  70. package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
  71. package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +0 -21
  72. package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
  73. package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
  74. package/dist/client/types/app/bsky/graph/listblock.d.ts +0 -8
  75. package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
  76. package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
  77. package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
  78. package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
  79. package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
  80. package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
  81. package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
  82. package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
  83. package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
  84. package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
  85. package/dist/client/types/com/atproto/account/create.d.ts +0 -41
  86. package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  87. package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
  88. package/dist/client/types/com/atproto/account/get.d.ts +0 -12
  89. package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
  90. package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  91. package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  92. package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
  93. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
  94. package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
  95. package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
  96. package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
  97. package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
  98. package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
  99. package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
  100. package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
  101. package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
  102. package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
  103. package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
  104. package/dist/client/types/com/atproto/report/create.d.ts +0 -39
  105. package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
  106. package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
  107. package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
  108. package/dist/client/types/com/atproto/session/create.d.ts +0 -29
  109. package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
  110. package/dist/client/types/com/atproto/session/get.d.ts +0 -18
  111. package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
  112. package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  113. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
  114. package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  115. package/dist/helpers/bsky.d.ts +0 -20
  116. package/dist/mixins/bsky.d.ts +0 -23
  117. package/dist/rich-text/sanitize.d.ts +0 -4
  118. package/dist/session.d.ts +0 -42
@@ -1,51 +1,63 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
- import * as AppBskyFeedDefs from '../feed/defs';
4
- import * as AppBskyGraphDefs from '../graph/defs';
5
- import * as AppBskyActorDefs from '../actor/defs';
6
- import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
7
- import * as AppBskyEmbedImages from './images';
8
- import * as AppBskyEmbedExternal from './external';
9
- import * as AppBskyEmbedRecordWithMedia from './recordWithMedia';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
3
+ import * as AppBskyFeedDefs from '../feed/defs'
4
+ import * as AppBskyGraphDefs from '../graph/defs'
5
+ import * as AppBskyActorDefs from '../actor/defs'
6
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
7
+ import * as AppBskyEmbedImages from './images'
8
+ import * as AppBskyEmbedExternal from './external'
9
+ import * as AppBskyEmbedRecordWithMedia from './recordWithMedia'
10
10
  export interface Main {
11
- record: ComAtprotoRepoStrongRef.Main;
12
- [k: string]: unknown;
11
+ record: ComAtprotoRepoStrongRef.Main
12
+ [k: string]: unknown
13
13
  }
14
- export declare function isMain(v: unknown): v is Main;
15
- export declare function validateMain(v: unknown): ValidationResult;
14
+ export declare function isMain(v: unknown): v is Main
15
+ export declare function validateMain(v: unknown): ValidationResult
16
16
  export interface View {
17
- record: ViewRecord | ViewNotFound | ViewBlocked | AppBskyFeedDefs.GeneratorView | AppBskyGraphDefs.ListView | {
18
- $type: string;
19
- [k: string]: unknown;
20
- };
21
- [k: string]: unknown;
17
+ record:
18
+ | ViewRecord
19
+ | ViewNotFound
20
+ | ViewBlocked
21
+ | AppBskyFeedDefs.GeneratorView
22
+ | AppBskyGraphDefs.ListView
23
+ | {
24
+ $type: string
25
+ [k: string]: unknown
26
+ }
27
+ [k: string]: unknown
22
28
  }
23
- export declare function isView(v: unknown): v is View;
24
- export declare function validateView(v: unknown): ValidationResult;
29
+ export declare function isView(v: unknown): v is View
30
+ export declare function validateView(v: unknown): ValidationResult
25
31
  export interface ViewRecord {
26
- uri: string;
27
- cid: string;
28
- author: AppBskyActorDefs.ProfileViewBasic;
29
- value: {};
30
- labels?: ComAtprotoLabelDefs.Label[];
31
- embeds?: (AppBskyEmbedImages.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {
32
- $type: string;
33
- [k: string]: unknown;
34
- })[];
35
- indexedAt: string;
36
- [k: string]: unknown;
32
+ uri: string
33
+ cid: string
34
+ author: AppBskyActorDefs.ProfileViewBasic
35
+ value: {}
36
+ labels?: ComAtprotoLabelDefs.Label[]
37
+ embeds?: (
38
+ | AppBskyEmbedImages.View
39
+ | AppBskyEmbedExternal.View
40
+ | View
41
+ | AppBskyEmbedRecordWithMedia.View
42
+ | {
43
+ $type: string
44
+ [k: string]: unknown
45
+ }
46
+ )[]
47
+ indexedAt: string
48
+ [k: string]: unknown
37
49
  }
38
- export declare function isViewRecord(v: unknown): v is ViewRecord;
39
- export declare function validateViewRecord(v: unknown): ValidationResult;
50
+ export declare function isViewRecord(v: unknown): v is ViewRecord
51
+ export declare function validateViewRecord(v: unknown): ValidationResult
40
52
  export interface ViewNotFound {
41
- uri: string;
42
- [k: string]: unknown;
53
+ uri: string
54
+ [k: string]: unknown
43
55
  }
44
- export declare function isViewNotFound(v: unknown): v is ViewNotFound;
45
- export declare function validateViewNotFound(v: unknown): ValidationResult;
56
+ export declare function isViewNotFound(v: unknown): v is ViewNotFound
57
+ export declare function validateViewNotFound(v: unknown): ValidationResult
46
58
  export interface ViewBlocked {
47
- uri: string;
48
- [k: string]: unknown;
59
+ uri: string
60
+ [k: string]: unknown
49
61
  }
50
- export declare function isViewBlocked(v: unknown): v is ViewBlocked;
51
- export declare function validateViewBlocked(v: unknown): ValidationResult;
62
+ export declare function isViewBlocked(v: unknown): v is ViewBlocked
63
+ export declare function validateViewBlocked(v: unknown): ValidationResult
@@ -1,24 +1,30 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as AppBskyEmbedRecord from './record';
3
- import * as AppBskyEmbedImages from './images';
4
- import * as AppBskyEmbedExternal from './external';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as AppBskyEmbedRecord from './record'
3
+ import * as AppBskyEmbedImages from './images'
4
+ import * as AppBskyEmbedExternal from './external'
5
5
  export interface Main {
6
- record: AppBskyEmbedRecord.Main;
7
- media: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | {
8
- $type: string;
9
- [k: string]: unknown;
10
- };
11
- [k: string]: unknown;
6
+ record: AppBskyEmbedRecord.Main
7
+ media:
8
+ | AppBskyEmbedImages.Main
9
+ | AppBskyEmbedExternal.Main
10
+ | {
11
+ $type: string
12
+ [k: string]: unknown
13
+ }
14
+ [k: string]: unknown
12
15
  }
13
- export declare function isMain(v: unknown): v is Main;
14
- export declare function validateMain(v: unknown): ValidationResult;
16
+ export declare function isMain(v: unknown): v is Main
17
+ export declare function validateMain(v: unknown): ValidationResult
15
18
  export interface View {
16
- record: AppBskyEmbedRecord.View;
17
- media: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | {
18
- $type: string;
19
- [k: string]: unknown;
20
- };
21
- [k: string]: unknown;
19
+ record: AppBskyEmbedRecord.View
20
+ media:
21
+ | AppBskyEmbedImages.View
22
+ | AppBskyEmbedExternal.View
23
+ | {
24
+ $type: string
25
+ [k: string]: unknown
26
+ }
27
+ [k: string]: unknown
22
28
  }
23
- export declare function isView(v: unknown): v is View;
24
- export declare function validateView(v: unknown): ValidationResult;
29
+ export declare function isView(v: unknown): v is View
30
+ export declare function validateView(v: unknown): ValidationResult
@@ -1,131 +1,165 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as AppBskyActorDefs from '../actor/defs';
3
- import * as AppBskyEmbedImages from '../embed/images';
4
- import * as AppBskyEmbedExternal from '../embed/external';
5
- import * as AppBskyEmbedRecord from '../embed/record';
6
- import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia';
7
- import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
8
- import * as AppBskyRichtextFacet from '../richtext/facet';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as AppBskyActorDefs from '../actor/defs'
3
+ import * as AppBskyEmbedImages from '../embed/images'
4
+ import * as AppBskyEmbedExternal from '../embed/external'
5
+ import * as AppBskyEmbedRecord from '../embed/record'
6
+ import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia'
7
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
8
+ import * as AppBskyRichtextFacet from '../richtext/facet'
9
9
  export interface PostView {
10
- uri: string;
11
- cid: string;
12
- author: AppBskyActorDefs.ProfileViewBasic;
13
- record: {};
14
- embed?: AppBskyEmbedImages.View | AppBskyEmbedExternal.View | AppBskyEmbedRecord.View | AppBskyEmbedRecordWithMedia.View | {
15
- $type: string;
16
- [k: string]: unknown;
17
- };
18
- replyCount?: number;
19
- repostCount?: number;
20
- likeCount?: number;
21
- indexedAt: string;
22
- viewer?: ViewerState;
23
- labels?: ComAtprotoLabelDefs.Label[];
24
- [k: string]: unknown;
10
+ uri: string
11
+ cid: string
12
+ author: AppBskyActorDefs.ProfileViewBasic
13
+ record: {}
14
+ embed?:
15
+ | AppBskyEmbedImages.View
16
+ | AppBskyEmbedExternal.View
17
+ | AppBskyEmbedRecord.View
18
+ | AppBskyEmbedRecordWithMedia.View
19
+ | {
20
+ $type: string
21
+ [k: string]: unknown
22
+ }
23
+ replyCount?: number
24
+ repostCount?: number
25
+ likeCount?: number
26
+ indexedAt: string
27
+ viewer?: ViewerState
28
+ labels?: ComAtprotoLabelDefs.Label[]
29
+ [k: string]: unknown
25
30
  }
26
- export declare function isPostView(v: unknown): v is PostView;
27
- export declare function validatePostView(v: unknown): ValidationResult;
31
+ export declare function isPostView(v: unknown): v is PostView
32
+ export declare function validatePostView(v: unknown): ValidationResult
28
33
  export interface ViewerState {
29
- repost?: string;
30
- like?: string;
31
- [k: string]: unknown;
34
+ repost?: string
35
+ like?: string
36
+ [k: string]: unknown
32
37
  }
33
- export declare function isViewerState(v: unknown): v is ViewerState;
34
- export declare function validateViewerState(v: unknown): ValidationResult;
38
+ export declare function isViewerState(v: unknown): v is ViewerState
39
+ export declare function validateViewerState(v: unknown): ValidationResult
35
40
  export interface FeedViewPost {
36
- post: PostView;
37
- reply?: ReplyRef;
38
- reason?: ReasonRepost | {
39
- $type: string;
40
- [k: string]: unknown;
41
- };
42
- [k: string]: unknown;
41
+ post: PostView
42
+ reply?: ReplyRef
43
+ reason?:
44
+ | ReasonRepost
45
+ | {
46
+ $type: string
47
+ [k: string]: unknown
48
+ }
49
+ [k: string]: unknown
43
50
  }
44
- export declare function isFeedViewPost(v: unknown): v is FeedViewPost;
45
- export declare function validateFeedViewPost(v: unknown): ValidationResult;
51
+ export declare function isFeedViewPost(v: unknown): v is FeedViewPost
52
+ export declare function validateFeedViewPost(v: unknown): ValidationResult
46
53
  export interface ReplyRef {
47
- root: PostView | NotFoundPost | BlockedPost | {
48
- $type: string;
49
- [k: string]: unknown;
50
- };
51
- parent: PostView | NotFoundPost | BlockedPost | {
52
- $type: string;
53
- [k: string]: unknown;
54
- };
55
- [k: string]: unknown;
54
+ root:
55
+ | PostView
56
+ | NotFoundPost
57
+ | BlockedPost
58
+ | {
59
+ $type: string
60
+ [k: string]: unknown
61
+ }
62
+ parent:
63
+ | PostView
64
+ | NotFoundPost
65
+ | BlockedPost
66
+ | {
67
+ $type: string
68
+ [k: string]: unknown
69
+ }
70
+ [k: string]: unknown
56
71
  }
57
- export declare function isReplyRef(v: unknown): v is ReplyRef;
58
- export declare function validateReplyRef(v: unknown): ValidationResult;
72
+ export declare function isReplyRef(v: unknown): v is ReplyRef
73
+ export declare function validateReplyRef(v: unknown): ValidationResult
59
74
  export interface ReasonRepost {
60
- by: AppBskyActorDefs.ProfileViewBasic;
61
- indexedAt: string;
62
- [k: string]: unknown;
75
+ by: AppBskyActorDefs.ProfileViewBasic
76
+ indexedAt: string
77
+ [k: string]: unknown
63
78
  }
64
- export declare function isReasonRepost(v: unknown): v is ReasonRepost;
65
- export declare function validateReasonRepost(v: unknown): ValidationResult;
79
+ export declare function isReasonRepost(v: unknown): v is ReasonRepost
80
+ export declare function validateReasonRepost(v: unknown): ValidationResult
66
81
  export interface ThreadViewPost {
67
- post: PostView;
68
- parent?: ThreadViewPost | NotFoundPost | BlockedPost | {
69
- $type: string;
70
- [k: string]: unknown;
71
- };
72
- replies?: (ThreadViewPost | NotFoundPost | BlockedPost | {
73
- $type: string;
74
- [k: string]: unknown;
75
- })[];
76
- [k: string]: unknown;
82
+ post: PostView
83
+ parent?:
84
+ | ThreadViewPost
85
+ | NotFoundPost
86
+ | BlockedPost
87
+ | {
88
+ $type: string
89
+ [k: string]: unknown
90
+ }
91
+ replies?: (
92
+ | ThreadViewPost
93
+ | NotFoundPost
94
+ | BlockedPost
95
+ | {
96
+ $type: string
97
+ [k: string]: unknown
98
+ }
99
+ )[]
100
+ [k: string]: unknown
77
101
  }
78
- export declare function isThreadViewPost(v: unknown): v is ThreadViewPost;
79
- export declare function validateThreadViewPost(v: unknown): ValidationResult;
102
+ export declare function isThreadViewPost(v: unknown): v is ThreadViewPost
103
+ export declare function validateThreadViewPost(v: unknown): ValidationResult
80
104
  export interface NotFoundPost {
81
- uri: string;
82
- notFound: true;
83
- [k: string]: unknown;
105
+ uri: string
106
+ notFound: true
107
+ [k: string]: unknown
84
108
  }
85
- export declare function isNotFoundPost(v: unknown): v is NotFoundPost;
86
- export declare function validateNotFoundPost(v: unknown): ValidationResult;
109
+ export declare function isNotFoundPost(v: unknown): v is NotFoundPost
110
+ export declare function validateNotFoundPost(v: unknown): ValidationResult
87
111
  export interface BlockedPost {
88
- uri: string;
89
- blocked: true;
90
- [k: string]: unknown;
112
+ uri: string
113
+ blocked: true
114
+ [k: string]: unknown
91
115
  }
92
- export declare function isBlockedPost(v: unknown): v is BlockedPost;
93
- export declare function validateBlockedPost(v: unknown): ValidationResult;
116
+ export declare function isBlockedPost(v: unknown): v is BlockedPost
117
+ export declare function validateBlockedPost(v: unknown): ValidationResult
94
118
  export interface GeneratorView {
95
- uri: string;
96
- cid: string;
97
- did: string;
98
- creator: AppBskyActorDefs.ProfileView;
99
- displayName: string;
100
- description?: string;
101
- descriptionFacets?: AppBskyRichtextFacet.Main[];
102
- avatar?: string;
103
- likeCount?: number;
104
- viewer?: GeneratorViewerState;
105
- indexedAt: string;
106
- [k: string]: unknown;
119
+ uri: string
120
+ cid: string
121
+ did: string
122
+ creator: AppBskyActorDefs.ProfileView
123
+ displayName: string
124
+ description?: string
125
+ descriptionFacets?: AppBskyRichtextFacet.Main[]
126
+ avatar?: string
127
+ likeCount?: number
128
+ viewer?: GeneratorViewerState
129
+ indexedAt: string
130
+ [k: string]: unknown
107
131
  }
108
- export declare function isGeneratorView(v: unknown): v is GeneratorView;
109
- export declare function validateGeneratorView(v: unknown): ValidationResult;
132
+ export declare function isGeneratorView(v: unknown): v is GeneratorView
133
+ export declare function validateGeneratorView(v: unknown): ValidationResult
110
134
  export interface GeneratorViewerState {
111
- like?: string;
112
- [k: string]: unknown;
135
+ like?: string
136
+ [k: string]: unknown
113
137
  }
114
- export declare function isGeneratorViewerState(v: unknown): v is GeneratorViewerState;
115
- export declare function validateGeneratorViewerState(v: unknown): ValidationResult;
138
+ export declare function isGeneratorViewerState(
139
+ v: unknown,
140
+ ): v is GeneratorViewerState
141
+ export declare function validateGeneratorViewerState(
142
+ v: unknown,
143
+ ): ValidationResult
116
144
  export interface SkeletonFeedPost {
117
- post: string;
118
- reason?: SkeletonReasonRepost | {
119
- $type: string;
120
- [k: string]: unknown;
121
- };
122
- [k: string]: unknown;
145
+ post: string
146
+ reason?:
147
+ | SkeletonReasonRepost
148
+ | {
149
+ $type: string
150
+ [k: string]: unknown
151
+ }
152
+ [k: string]: unknown
123
153
  }
124
- export declare function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost;
125
- export declare function validateSkeletonFeedPost(v: unknown): ValidationResult;
154
+ export declare function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost
155
+ export declare function validateSkeletonFeedPost(v: unknown): ValidationResult
126
156
  export interface SkeletonReasonRepost {
127
- repost: string;
128
- [k: string]: unknown;
157
+ repost: string
158
+ [k: string]: unknown
129
159
  }
130
- export declare function isSkeletonReasonRepost(v: unknown): v is SkeletonReasonRepost;
131
- export declare function validateSkeletonReasonRepost(v: unknown): ValidationResult;
160
+ export declare function isSkeletonReasonRepost(
161
+ v: unknown,
162
+ ): v is SkeletonReasonRepost
163
+ export declare function validateSkeletonReasonRepost(
164
+ v: unknown,
165
+ ): ValidationResult
@@ -1,11 +1,16 @@
1
1
  import { ValidationResult, BlobRef } from '@atproto/lexicon';
2
2
  import * as AppBskyRichtextFacet from '../richtext/facet';
3
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
3
4
  export interface Record {
4
5
  did: string;
5
6
  displayName: string;
6
7
  description?: string;
7
8
  descriptionFacets?: AppBskyRichtextFacet.Main[];
8
9
  avatar?: BlobRef;
10
+ labels?: ComAtprotoLabelDefs.SelfLabels | {
11
+ $type: string;
12
+ [k: string]: unknown;
13
+ };
9
14
  createdAt: string;
10
15
  [k: string]: unknown;
11
16
  }
@@ -4,6 +4,7 @@ export interface QueryParams {
4
4
  actor: string;
5
5
  limit?: number;
6
6
  cursor?: string;
7
+ filter?: 'posts_with_replies' | 'posts_no_replies' | 'posts_with_media' | (string & {});
7
8
  }
8
9
  export declare type InputSchema = undefined;
9
10
  export interface OutputSchema {
@@ -1,9 +1,9 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
3
3
  export interface Record {
4
- subject: ComAtprotoRepoStrongRef.Main;
5
- createdAt: string;
6
- [k: string]: unknown;
4
+ subject: ComAtprotoRepoStrongRef.Main
5
+ createdAt: string
6
+ [k: string]: unknown
7
7
  }
8
- export declare function isRecord(v: unknown): v is Record;
9
- export declare function validateRecord(v: unknown): ValidationResult;
8
+ export declare function isRecord(v: unknown): v is Record
9
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -4,6 +4,7 @@ import * as AppBskyEmbedImages from '../embed/images';
4
4
  import * as AppBskyEmbedExternal from '../embed/external';
5
5
  import * as AppBskyEmbedRecord from '../embed/record';
6
6
  import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia';
7
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
7
8
  import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
8
9
  export interface Record {
9
10
  text: string;
@@ -15,6 +16,10 @@ export interface Record {
15
16
  [k: string]: unknown;
16
17
  };
17
18
  langs?: string[];
19
+ labels?: ComAtprotoLabelDefs.SelfLabels | {
20
+ $type: string;
21
+ [k: string]: unknown;
22
+ };
18
23
  createdAt: string;
19
24
  [k: string]: unknown;
20
25
  }
@@ -1,9 +1,9 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
3
3
  export interface Record {
4
- subject: ComAtprotoRepoStrongRef.Main;
5
- createdAt: string;
6
- [k: string]: unknown;
4
+ subject: ComAtprotoRepoStrongRef.Main
5
+ createdAt: string
6
+ [k: string]: unknown
7
7
  }
8
- export declare function isRecord(v: unknown): v is Record;
9
- export declare function validateRecord(v: unknown): ValidationResult;
8
+ export declare function isRecord(v: unknown): v is Record
9
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -1,8 +1,8 @@
1
- import { ValidationResult } from '@atproto/lexicon';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
2
  export interface Record {
3
- subject: string;
4
- createdAt: string;
5
- [k: string]: unknown;
3
+ subject: string
4
+ createdAt: string
5
+ [k: string]: unknown
6
6
  }
7
- export declare function isRecord(v: unknown): v is Record;
8
- export declare function validateRecord(v: unknown): ValidationResult;
7
+ export declare function isRecord(v: unknown): v is Record
8
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -1,44 +1,44 @@
1
- import { ValidationResult } from '@atproto/lexicon';
2
- import * as AppBskyActorDefs from '../actor/defs';
3
- import * as AppBskyRichtextFacet from '../richtext/facet';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
+ import * as AppBskyActorDefs from '../actor/defs'
3
+ import * as AppBskyRichtextFacet from '../richtext/facet'
4
4
  export interface ListViewBasic {
5
- uri: string;
6
- cid: string;
7
- name: string;
8
- purpose: ListPurpose;
9
- avatar?: string;
10
- viewer?: ListViewerState;
11
- indexedAt?: string;
12
- [k: string]: unknown;
5
+ uri: string
6
+ cid: string
7
+ name: string
8
+ purpose: ListPurpose
9
+ avatar?: string
10
+ viewer?: ListViewerState
11
+ indexedAt?: string
12
+ [k: string]: unknown
13
13
  }
14
- export declare function isListViewBasic(v: unknown): v is ListViewBasic;
15
- export declare function validateListViewBasic(v: unknown): ValidationResult;
14
+ export declare function isListViewBasic(v: unknown): v is ListViewBasic
15
+ export declare function validateListViewBasic(v: unknown): ValidationResult
16
16
  export interface ListView {
17
- uri: string;
18
- cid: string;
19
- creator: AppBskyActorDefs.ProfileView;
20
- name: string;
21
- purpose: ListPurpose;
22
- description?: string;
23
- descriptionFacets?: AppBskyRichtextFacet.Main[];
24
- avatar?: string;
25
- viewer?: ListViewerState;
26
- indexedAt: string;
27
- [k: string]: unknown;
17
+ uri: string
18
+ cid: string
19
+ creator: AppBskyActorDefs.ProfileView
20
+ name: string
21
+ purpose: ListPurpose
22
+ description?: string
23
+ descriptionFacets?: AppBskyRichtextFacet.Main[]
24
+ avatar?: string
25
+ viewer?: ListViewerState
26
+ indexedAt: string
27
+ [k: string]: unknown
28
28
  }
29
- export declare function isListView(v: unknown): v is ListView;
30
- export declare function validateListView(v: unknown): ValidationResult;
29
+ export declare function isListView(v: unknown): v is ListView
30
+ export declare function validateListView(v: unknown): ValidationResult
31
31
  export interface ListItemView {
32
- subject: AppBskyActorDefs.ProfileView;
33
- [k: string]: unknown;
32
+ subject: AppBskyActorDefs.ProfileView
33
+ [k: string]: unknown
34
34
  }
35
- export declare function isListItemView(v: unknown): v is ListItemView;
36
- export declare function validateListItemView(v: unknown): ValidationResult;
37
- export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {});
38
- export declare const MODLIST = "app.bsky.graph.defs#modlist";
35
+ export declare function isListItemView(v: unknown): v is ListItemView
36
+ export declare function validateListItemView(v: unknown): ValidationResult
37
+ export declare type ListPurpose = 'app.bsky.graph.defs#modlist' | (string & {})
38
+ export declare const MODLIST = 'app.bsky.graph.defs#modlist'
39
39
  export interface ListViewerState {
40
- muted?: boolean;
41
- [k: string]: unknown;
40
+ muted?: boolean
41
+ [k: string]: unknown
42
42
  }
43
- export declare function isListViewerState(v: unknown): v is ListViewerState;
44
- export declare function validateListViewerState(v: unknown): ValidationResult;
43
+ export declare function isListViewerState(v: unknown): v is ListViewerState
44
+ export declare function validateListViewerState(v: unknown): ValidationResult
@@ -1,8 +1,8 @@
1
- import { ValidationResult } from '@atproto/lexicon';
1
+ import { ValidationResult } from '@atproto/lexicon'
2
2
  export interface Record {
3
- subject: string;
4
- createdAt: string;
5
- [k: string]: unknown;
3
+ subject: string
4
+ createdAt: string
5
+ [k: string]: unknown
6
6
  }
7
- export declare function isRecord(v: unknown): v is Record;
8
- export declare function validateRecord(v: unknown): ValidationResult;
7
+ export declare function isRecord(v: unknown): v is Record
8
+ export declare function validateRecord(v: unknown): ValidationResult
@@ -1,12 +1,17 @@
1
1
  import { ValidationResult, BlobRef } from '@atproto/lexicon';
2
2
  import * as AppBskyGraphDefs from './defs';
3
3
  import * as AppBskyRichtextFacet from '../richtext/facet';
4
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
4
5
  export interface Record {
5
6
  purpose: AppBskyGraphDefs.ListPurpose;
6
7
  name: string;
7
8
  description?: string;
8
9
  descriptionFacets?: AppBskyRichtextFacet.Main[];
9
10
  avatar?: BlobRef;
11
+ labels?: ComAtprotoLabelDefs.SelfLabels | {
12
+ $type: string;
13
+ [k: string]: unknown;
14
+ };
10
15
  createdAt: string;
11
16
  [k: string]: unknown;
12
17
  }