@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.
- package/README.md +11 -3
- package/dist/agent.d.ts +44 -25
- package/dist/bsky-agent.d.ts +62 -43
- package/dist/client/lexicons.d.ts +48 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +74 -65
- package/dist/client/types/app/bsky/actor/profile.d.ts +5 -0
- package/dist/client/types/app/bsky/embed/external.d.ts +23 -23
- package/dist/client/types/app/bsky/embed/images.d.ts +20 -20
- package/dist/client/types/app/bsky/embed/record.d.ts +53 -41
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +26 -20
- package/dist/client/types/app/bsky/feed/defs.d.ts +141 -107
- package/dist/client/types/app/bsky/feed/generator.d.ts +5 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/like.d.ts +7 -7
- package/dist/client/types/app/bsky/feed/post.d.ts +5 -0
- package/dist/client/types/app/bsky/feed/repost.d.ts +7 -7
- package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/defs.d.ts +36 -36
- package/dist/client/types/app/bsky/graph/follow.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/list.d.ts +5 -0
- package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
- package/dist/client/types/app/bsky/richtext/facet.d.ts +26 -22
- package/dist/client/types/com/atproto/label/defs.d.ts +12 -0
- package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
- package/dist/client/types/com/atproto/moderation/defs.d.ts +16 -7
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
- package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +46 -46
- package/dist/client/util.d.ts +5 -2
- package/dist/index.js +94 -22
- package/dist/index.js.map +2 -2
- package/dist/moderation/types.d.ts +7 -3
- package/dist/moderation/util.d.ts +1 -3
- package/dist/rich-text/detection.d.ts +4 -4
- package/dist/rich-text/rich-text.d.ts +31 -31
- package/dist/rich-text/sanitization.d.ts +7 -4
- package/dist/rich-text/unicode.d.ts +9 -9
- package/dist/types.d.ts +34 -22
- package/docs/moderation.md +14 -5
- package/package.json +1 -1
- package/src/client/lexicons.ts +55 -0
- package/src/client/types/app/bsky/actor/profile.ts +4 -0
- package/src/client/types/app/bsky/feed/generator.ts +4 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +5 -0
- package/src/client/types/app/bsky/feed/post.ts +4 -0
- package/src/client/types/app/bsky/graph/list.ts +4 -0
- package/src/client/types/com/atproto/label/defs.ts +37 -0
- package/src/moderation/accumulator.ts +17 -12
- package/src/moderation/types.ts +5 -3
- package/tests/moderation.test.ts +334 -0
- package/tests/util/moderation-behavior.ts +3 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -40
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +0 -21
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/saveFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +0 -21
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/listblock.d.ts +0 -8
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
- 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
|
-
|
|
12
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
42
|
-
|
|
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
|
-
|
|
48
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
$type: string
|
|
53
|
-
[k: string]: unknown
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
$type: string
|
|
74
|
-
[k: string]: unknown
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
112
|
-
|
|
135
|
+
like?: string
|
|
136
|
+
[k: string]: unknown
|
|
113
137
|
}
|
|
114
|
-
export declare function isGeneratorViewerState(
|
|
115
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
128
|
-
|
|
157
|
+
repost: string
|
|
158
|
+
[k: string]: unknown
|
|
129
159
|
}
|
|
130
|
-
export declare function isSkeletonReasonRepost(
|
|
131
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
33
|
-
|
|
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 =
|
|
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
|
-
|
|
41
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
}
|