@atproto/api 0.6.0 → 0.6.1
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/dist/agent.d.ts +44 -25
- package/dist/bsky-agent.d.ts +62 -43
- package/dist/client/types/app/bsky/actor/defs.d.ts +74 -65
- 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/like.d.ts +7 -7
- 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/listitem.d.ts +7 -7
- package/dist/client/types/app/bsky/richtext/facet.d.ts +26 -22
- 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/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/package.json +1 -1
- 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,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,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,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,9 +1,9 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon'
|
|
2
2
|
export interface Record {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
subject: string
|
|
4
|
+
list: string
|
|
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,30 +1,34 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon'
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
index: ByteSlice
|
|
4
|
+
features: (
|
|
5
|
+
| Mention
|
|
6
|
+
| Link
|
|
7
|
+
| {
|
|
8
|
+
$type: string
|
|
9
|
+
[k: string]: unknown
|
|
10
|
+
}
|
|
11
|
+
)[]
|
|
12
|
+
[k: string]: unknown
|
|
9
13
|
}
|
|
10
|
-
export declare function isMain(v: unknown): v is Main
|
|
11
|
-
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
|
|
12
16
|
export interface Mention {
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
did: string
|
|
18
|
+
[k: string]: unknown
|
|
15
19
|
}
|
|
16
|
-
export declare function isMention(v: unknown): v is Mention
|
|
17
|
-
export declare function validateMention(v: unknown): ValidationResult
|
|
20
|
+
export declare function isMention(v: unknown): v is Mention
|
|
21
|
+
export declare function validateMention(v: unknown): ValidationResult
|
|
18
22
|
export interface Link {
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
uri: string
|
|
24
|
+
[k: string]: unknown
|
|
21
25
|
}
|
|
22
|
-
export declare function isLink(v: unknown): v is Link
|
|
23
|
-
export declare function validateLink(v: unknown): ValidationResult
|
|
26
|
+
export declare function isLink(v: unknown): v is Link
|
|
27
|
+
export declare function validateLink(v: unknown): ValidationResult
|
|
24
28
|
export interface ByteSlice {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
byteStart: number
|
|
30
|
+
byteEnd: number
|
|
31
|
+
[k: string]: unknown
|
|
28
32
|
}
|
|
29
|
-
export declare function isByteSlice(v: unknown): v is ByteSlice
|
|
30
|
-
export declare function validateByteSlice(v: unknown): ValidationResult
|
|
33
|
+
export declare function isByteSlice(v: unknown): v is ByteSlice
|
|
34
|
+
export declare function validateByteSlice(v: unknown): ValidationResult
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as ComAtprotoLabelDefs from './defs'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
+
import * as ComAtprotoLabelDefs from './defs'
|
|
3
3
|
export interface Labels {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
seq: number
|
|
5
|
+
labels: ComAtprotoLabelDefs.Label[]
|
|
6
|
+
[k: string]: unknown
|
|
7
7
|
}
|
|
8
|
-
export declare function isLabels(v: unknown): v is Labels
|
|
9
|
-
export declare function validateLabels(v: unknown): ValidationResult
|
|
8
|
+
export declare function isLabels(v: unknown): v is Labels
|
|
9
|
+
export declare function validateLabels(v: unknown): ValidationResult
|
|
10
10
|
export interface Info {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
name: 'OutdatedCursor' | (string & {})
|
|
12
|
+
message?: string
|
|
13
|
+
[k: string]: unknown
|
|
14
14
|
}
|
|
15
|
-
export declare function isInfo(v: unknown): v is Info
|
|
16
|
-
export declare function validateInfo(v: unknown): ValidationResult
|
|
15
|
+
export declare function isInfo(v: unknown): v is Info
|
|
16
|
+
export declare function validateInfo(v: unknown): ValidationResult
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
export declare type ReasonType =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare type ReasonType =
|
|
2
|
+
| 'com.atproto.moderation.defs#reasonSpam'
|
|
3
|
+
| 'com.atproto.moderation.defs#reasonViolation'
|
|
4
|
+
| 'com.atproto.moderation.defs#reasonMisleading'
|
|
5
|
+
| 'com.atproto.moderation.defs#reasonSexual'
|
|
6
|
+
| 'com.atproto.moderation.defs#reasonRude'
|
|
7
|
+
| 'com.atproto.moderation.defs#reasonOther'
|
|
8
|
+
| (string & {})
|
|
9
|
+
export declare const REASONSPAM = 'com.atproto.moderation.defs#reasonSpam'
|
|
10
|
+
export declare const REASONVIOLATION =
|
|
11
|
+
'com.atproto.moderation.defs#reasonViolation'
|
|
12
|
+
export declare const REASONMISLEADING =
|
|
13
|
+
'com.atproto.moderation.defs#reasonMisleading'
|
|
14
|
+
export declare const REASONSEXUAL = 'com.atproto.moderation.defs#reasonSexual'
|
|
15
|
+
export declare const REASONRUDE = 'com.atproto.moderation.defs#reasonRude'
|
|
16
|
+
export declare const REASONOTHER = 'com.atproto.moderation.defs#reasonOther'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon'
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
uri: string
|
|
4
|
+
cid: string
|
|
5
|
+
[k: string]: unknown
|
|
6
6
|
}
|
|
7
|
-
export declare function isMain(v: unknown): v is Main
|
|
8
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
7
|
+
export declare function isMain(v: unknown): v is Main
|
|
8
|
+
export declare function validateMain(v: unknown): ValidationResult
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon'
|
|
2
2
|
export interface InviteCode {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
code: string
|
|
4
|
+
available: number
|
|
5
|
+
disabled: boolean
|
|
6
|
+
forAccount: string
|
|
7
|
+
createdBy: string
|
|
8
|
+
createdAt: string
|
|
9
|
+
uses: InviteCodeUse[]
|
|
10
|
+
[k: string]: unknown
|
|
11
11
|
}
|
|
12
|
-
export declare function isInviteCode(v: unknown): v is InviteCode
|
|
13
|
-
export declare function validateInviteCode(v: unknown): ValidationResult
|
|
12
|
+
export declare function isInviteCode(v: unknown): v is InviteCode
|
|
13
|
+
export declare function validateInviteCode(v: unknown): ValidationResult
|
|
14
14
|
export interface InviteCodeUse {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
usedBy: string
|
|
16
|
+
usedAt: string
|
|
17
|
+
[k: string]: unknown
|
|
18
18
|
}
|
|
19
|
-
export declare function isInviteCodeUse(v: unknown): v is InviteCodeUse
|
|
20
|
-
export declare function validateInviteCodeUse(v: unknown): ValidationResult
|
|
19
|
+
export declare function isInviteCodeUse(v: unknown): v is InviteCodeUse
|
|
20
|
+
export declare function validateInviteCodeUse(v: unknown): ValidationResult
|