@atproto/api 0.0.4 → 0.0.6
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/client/lexicons.d.ts +0 -3
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +5 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/ref.d.ts +7 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +3 -0
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +3 -0
- package/dist/client/types/app/bsky/embed/external.d.ts +9 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +5 -0
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/post.d.ts +13 -1
- package/dist/client/types/app/bsky/feed/repost.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/trend.d.ts +3 -0
- package/dist/client/types/app/bsky/feed/vote.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/assertion.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/follow.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +5 -0
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +3 -0
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +3 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +3 -0
- package/dist/client/types/app/bsky/system/declRef.d.ts +3 -0
- package/dist/client/types/app/bsky/system/declaration.d.ts +3 -0
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +7 -0
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +3 -0
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +3 -0
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +3 -0
- package/dist/client/util.d.ts +2 -0
- package/dist/index.js +571 -23
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/lexicons.ts +0 -3
- package/src/client/types/app/bsky/actor/createScene.ts +3 -0
- package/src/client/types/app/bsky/actor/getProfile.ts +15 -0
- package/src/client/types/app/bsky/actor/getSuggestions.ts +27 -0
- package/src/client/types/app/bsky/actor/profile.ts +17 -0
- package/src/client/types/app/bsky/actor/ref.ts +37 -0
- package/src/client/types/app/bsky/actor/search.ts +13 -0
- package/src/client/types/app/bsky/actor/searchTypeahead.ts +15 -0
- package/src/client/types/app/bsky/actor/updateProfile.ts +3 -0
- package/src/client/types/app/bsky/embed/external.ts +53 -0
- package/src/client/types/app/bsky/embed/images.ts +51 -0
- package/src/client/types/app/bsky/feed/feedViewPost.ts +52 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +3 -0
- package/src/client/types/app/bsky/feed/getPostThread.ts +27 -0
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +15 -0
- package/src/client/types/app/bsky/feed/getTimeline.ts +3 -0
- package/src/client/types/app/bsky/feed/getVotes.ts +13 -0
- package/src/client/types/app/bsky/feed/post.ts +69 -1
- package/src/client/types/app/bsky/feed/repost.ts +16 -0
- package/src/client/types/app/bsky/feed/setVote.ts +3 -0
- package/src/client/types/app/bsky/feed/trend.ts +16 -0
- package/src/client/types/app/bsky/feed/vote.ts +15 -0
- package/src/client/types/app/bsky/graph/assertCreator.ts +4 -0
- package/src/client/types/app/bsky/graph/assertMember.ts +4 -0
- package/src/client/types/app/bsky/graph/assertion.ts +16 -0
- package/src/client/types/app/bsky/graph/confirmation.ts +16 -0
- package/src/client/types/app/bsky/graph/follow.ts +16 -0
- package/src/client/types/app/bsky/graph/getAssertions.ts +27 -0
- package/src/client/types/app/bsky/graph/getFollowers.ts +15 -0
- package/src/client/types/app/bsky/graph/getFollows.ts +15 -0
- package/src/client/types/app/bsky/graph/getMembers.ts +15 -0
- package/src/client/types/app/bsky/graph/getMemberships.ts +15 -0
- package/src/client/types/app/bsky/graph/getMutes.ts +15 -0
- package/src/client/types/app/bsky/graph/mute.ts +3 -0
- package/src/client/types/app/bsky/graph/unmute.ts +3 -0
- package/src/client/types/app/bsky/notification/getCount.ts +3 -0
- package/src/client/types/app/bsky/notification/list.ts +15 -0
- package/src/client/types/app/bsky/notification/updateSeen.ts +3 -0
- package/src/client/types/app/bsky/system/actorScene.ts +4 -0
- package/src/client/types/app/bsky/system/actorUser.ts +4 -0
- package/src/client/types/app/bsky/system/declRef.ts +17 -0
- package/src/client/types/app/bsky/system/declaration.ts +17 -0
- package/src/client/types/com/atproto/account/create.ts +3 -0
- package/src/client/types/com/atproto/account/createInviteCode.ts +3 -0
- package/src/client/types/com/atproto/account/delete.ts +3 -0
- package/src/client/types/com/atproto/account/get.ts +3 -0
- package/src/client/types/com/atproto/account/requestPasswordReset.ts +3 -0
- package/src/client/types/com/atproto/account/resetPassword.ts +3 -0
- package/src/client/types/com/atproto/blob/upload.ts +3 -0
- package/src/client/types/com/atproto/handle/resolve.ts +3 -0
- package/src/client/types/com/atproto/repo/batchWrite.ts +39 -0
- package/src/client/types/com/atproto/repo/createRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/deleteRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/describe.ts +3 -0
- package/src/client/types/com/atproto/repo/getRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +15 -0
- package/src/client/types/com/atproto/repo/putRecord.ts +3 -0
- package/src/client/types/com/atproto/repo/strongRef.ts +17 -0
- package/src/client/types/com/atproto/server/getAccountsConfig.ts +15 -0
- package/src/client/types/com/atproto/session/create.ts +3 -0
- package/src/client/types/com/atproto/session/delete.ts +3 -0
- package/src/client/types/com/atproto/session/get.ts +3 -0
- package/src/client/types/com/atproto/session/refresh.ts +3 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +3 -0
- package/src/client/types/com/atproto/sync/getRoot.ts +3 -0
- package/src/client/types/com/atproto/sync/updateRepo.ts +3 -0
- package/src/client/util.ts +13 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
actor: string;
|
|
@@ -35,3 +36,5 @@ export interface MyState {
|
|
|
35
36
|
muted?: boolean;
|
|
36
37
|
[k: string]: unknown;
|
|
37
38
|
}
|
|
39
|
+
export declare function isMyState(v: unknown): v is MyState;
|
|
40
|
+
export declare function validateMyState(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
limit?: number;
|
|
@@ -30,7 +31,11 @@ export interface Actor {
|
|
|
30
31
|
myState?: MyState;
|
|
31
32
|
[k: string]: unknown;
|
|
32
33
|
}
|
|
34
|
+
export declare function isActor(v: unknown): v is Actor;
|
|
35
|
+
export declare function validateActor(v: unknown): ValidationResult;
|
|
33
36
|
export interface MyState {
|
|
34
37
|
follow?: string;
|
|
35
38
|
[k: string]: unknown;
|
|
36
39
|
}
|
|
40
|
+
export declare function isMyState(v: unknown): v is MyState;
|
|
41
|
+
export declare function validateMyState(v: unknown): ValidationResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
export interface Record {
|
|
2
3
|
displayName: string;
|
|
3
4
|
description?: string;
|
|
@@ -13,3 +14,5 @@ export interface Record {
|
|
|
13
14
|
};
|
|
14
15
|
[k: string]: unknown;
|
|
15
16
|
}
|
|
17
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
18
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
2
3
|
export interface Main {
|
|
3
4
|
did: string;
|
|
4
5
|
declarationCid: string;
|
|
5
6
|
[k: string]: unknown;
|
|
6
7
|
}
|
|
8
|
+
export declare function isMain(v: unknown): v is Main;
|
|
9
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
7
10
|
export interface WithInfo {
|
|
8
11
|
did: string;
|
|
9
12
|
declaration: AppBskySystemDeclRef.Main;
|
|
@@ -13,7 +16,11 @@ export interface WithInfo {
|
|
|
13
16
|
viewer?: ViewerState;
|
|
14
17
|
[k: string]: unknown;
|
|
15
18
|
}
|
|
19
|
+
export declare function isWithInfo(v: unknown): v is WithInfo;
|
|
20
|
+
export declare function validateWithInfo(v: unknown): ValidationResult;
|
|
16
21
|
export interface ViewerState {
|
|
17
22
|
muted?: boolean;
|
|
18
23
|
[k: string]: unknown;
|
|
19
24
|
}
|
|
25
|
+
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
26
|
+
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
term: string;
|
|
@@ -30,3 +31,5 @@ export interface User {
|
|
|
30
31
|
indexedAt?: string;
|
|
31
32
|
[k: string]: unknown;
|
|
32
33
|
}
|
|
34
|
+
export declare function isUser(v: unknown): v is User;
|
|
35
|
+
export declare function validateUser(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
term: string;
|
|
@@ -26,3 +27,5 @@ export interface User {
|
|
|
26
27
|
avatar?: string;
|
|
27
28
|
[k: string]: unknown;
|
|
28
29
|
}
|
|
30
|
+
export declare function isUser(v: unknown): v is User;
|
|
31
|
+
export declare function validateUser(v: unknown): ValidationResult;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
export interface Main {
|
|
2
3
|
external: External;
|
|
3
4
|
[k: string]: unknown;
|
|
4
5
|
}
|
|
6
|
+
export declare function isMain(v: unknown): v is Main;
|
|
7
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
5
8
|
export interface External {
|
|
6
9
|
uri: string;
|
|
7
10
|
title: string;
|
|
@@ -13,10 +16,14 @@ export interface External {
|
|
|
13
16
|
};
|
|
14
17
|
[k: string]: unknown;
|
|
15
18
|
}
|
|
19
|
+
export declare function isExternal(v: unknown): v is External;
|
|
20
|
+
export declare function validateExternal(v: unknown): ValidationResult;
|
|
16
21
|
export interface Presented {
|
|
17
22
|
external: PresentedExternal;
|
|
18
23
|
[k: string]: unknown;
|
|
19
24
|
}
|
|
25
|
+
export declare function isPresented(v: unknown): v is Presented;
|
|
26
|
+
export declare function validatePresented(v: unknown): ValidationResult;
|
|
20
27
|
export interface PresentedExternal {
|
|
21
28
|
uri: string;
|
|
22
29
|
title: string;
|
|
@@ -24,3 +31,5 @@ export interface PresentedExternal {
|
|
|
24
31
|
thumb?: string;
|
|
25
32
|
[k: string]: unknown;
|
|
26
33
|
}
|
|
34
|
+
export declare function isPresentedExternal(v: unknown): v is PresentedExternal;
|
|
35
|
+
export declare function validatePresentedExternal(v: unknown): ValidationResult;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
export interface Main {
|
|
2
3
|
images: Image[];
|
|
3
4
|
[k: string]: unknown;
|
|
4
5
|
}
|
|
6
|
+
export declare function isMain(v: unknown): v is Main;
|
|
7
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
5
8
|
export interface Image {
|
|
6
9
|
image: {
|
|
7
10
|
cid: string;
|
|
@@ -11,13 +14,19 @@ export interface Image {
|
|
|
11
14
|
alt: string;
|
|
12
15
|
[k: string]: unknown;
|
|
13
16
|
}
|
|
17
|
+
export declare function isImage(v: unknown): v is Image;
|
|
18
|
+
export declare function validateImage(v: unknown): ValidationResult;
|
|
14
19
|
export interface Presented {
|
|
15
20
|
images: PresentedImage[];
|
|
16
21
|
[k: string]: unknown;
|
|
17
22
|
}
|
|
23
|
+
export declare function isPresented(v: unknown): v is Presented;
|
|
24
|
+
export declare function validatePresented(v: unknown): ValidationResult;
|
|
18
25
|
export interface PresentedImage {
|
|
19
26
|
thumb: string;
|
|
20
27
|
fullsize: string;
|
|
21
28
|
alt: string;
|
|
22
29
|
[k: string]: unknown;
|
|
23
30
|
}
|
|
31
|
+
export declare function isPresentedImage(v: unknown): v is PresentedImage;
|
|
32
|
+
export declare function validatePresentedImage(v: unknown): ValidationResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as AppBskyFeedPost from './post';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
export interface Main {
|
|
@@ -9,18 +10,26 @@ export interface Main {
|
|
|
9
10
|
};
|
|
10
11
|
[k: string]: unknown;
|
|
11
12
|
}
|
|
13
|
+
export declare function isMain(v: unknown): v is Main;
|
|
14
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
12
15
|
export interface ReplyRef {
|
|
13
16
|
root: AppBskyFeedPost.View;
|
|
14
17
|
parent: AppBskyFeedPost.View;
|
|
15
18
|
[k: string]: unknown;
|
|
16
19
|
}
|
|
20
|
+
export declare function isReplyRef(v: unknown): v is ReplyRef;
|
|
21
|
+
export declare function validateReplyRef(v: unknown): ValidationResult;
|
|
17
22
|
export interface ReasonTrend {
|
|
18
23
|
by: AppBskyActorRef.WithInfo;
|
|
19
24
|
indexedAt: string;
|
|
20
25
|
[k: string]: unknown;
|
|
21
26
|
}
|
|
27
|
+
export declare function isReasonTrend(v: unknown): v is ReasonTrend;
|
|
28
|
+
export declare function validateReasonTrend(v: unknown): ValidationResult;
|
|
22
29
|
export interface ReasonRepost {
|
|
23
30
|
by: AppBskyActorRef.WithInfo;
|
|
24
31
|
indexedAt: string;
|
|
25
32
|
[k: string]: unknown;
|
|
26
33
|
}
|
|
34
|
+
export declare function isReasonRepost(v: unknown): v is ReasonRepost;
|
|
35
|
+
export declare function validateReasonRepost(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyFeedPost from './post';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
uri: string;
|
|
@@ -36,8 +37,12 @@ export interface ThreadViewPost {
|
|
|
36
37
|
})[];
|
|
37
38
|
[k: string]: unknown;
|
|
38
39
|
}
|
|
40
|
+
export declare function isThreadViewPost(v: unknown): v is ThreadViewPost;
|
|
41
|
+
export declare function validateThreadViewPost(v: unknown): ValidationResult;
|
|
39
42
|
export interface NotFoundPost {
|
|
40
43
|
uri: string;
|
|
41
44
|
notFound: true;
|
|
42
45
|
[k: string]: unknown;
|
|
43
46
|
}
|
|
47
|
+
export declare function isNotFoundPost(v: unknown): v is NotFoundPost;
|
|
48
|
+
export declare function validateNotFoundPost(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
uri: string;
|
|
@@ -33,3 +34,5 @@ export interface RepostedBy {
|
|
|
33
34
|
indexedAt: string;
|
|
34
35
|
[k: string]: unknown;
|
|
35
36
|
}
|
|
37
|
+
export declare function isRepostedBy(v: unknown): v is RepostedBy;
|
|
38
|
+
export declare function validateRepostedBy(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
uri: string;
|
|
@@ -31,3 +32,5 @@ export interface Vote {
|
|
|
31
32
|
actor: AppBskyActorRef.WithInfo;
|
|
32
33
|
[k: string]: unknown;
|
|
33
34
|
}
|
|
35
|
+
export declare function isVote(v: unknown): v is Vote;
|
|
36
|
+
export declare function validateVote(v: unknown): ValidationResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as AppBskyEmbedImages from '../embed/images';
|
|
2
3
|
import * as AppBskyEmbedExternal from '../embed/external';
|
|
3
4
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
@@ -13,22 +14,30 @@ export interface Record {
|
|
|
13
14
|
createdAt: string;
|
|
14
15
|
[k: string]: unknown;
|
|
15
16
|
}
|
|
17
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
18
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
16
19
|
export interface ReplyRef {
|
|
17
20
|
root: ComAtprotoRepoStrongRef.Main;
|
|
18
21
|
parent: ComAtprotoRepoStrongRef.Main;
|
|
19
22
|
[k: string]: unknown;
|
|
20
23
|
}
|
|
24
|
+
export declare function isReplyRef(v: unknown): v is ReplyRef;
|
|
25
|
+
export declare function validateReplyRef(v: unknown): ValidationResult;
|
|
21
26
|
export interface Entity {
|
|
22
27
|
index: TextSlice;
|
|
23
28
|
type: string;
|
|
24
29
|
value: string;
|
|
25
30
|
[k: string]: unknown;
|
|
26
31
|
}
|
|
32
|
+
export declare function isEntity(v: unknown): v is Entity;
|
|
33
|
+
export declare function validateEntity(v: unknown): ValidationResult;
|
|
27
34
|
export interface TextSlice {
|
|
28
35
|
start: number;
|
|
29
36
|
end: number;
|
|
30
37
|
[k: string]: unknown;
|
|
31
38
|
}
|
|
39
|
+
export declare function isTextSlice(v: unknown): v is TextSlice;
|
|
40
|
+
export declare function validateTextSlice(v: unknown): ValidationResult;
|
|
32
41
|
export interface View {
|
|
33
42
|
uri: string;
|
|
34
43
|
cid: string;
|
|
@@ -46,10 +55,13 @@ export interface View {
|
|
|
46
55
|
viewer: ViewerState;
|
|
47
56
|
[k: string]: unknown;
|
|
48
57
|
}
|
|
58
|
+
export declare function isView(v: unknown): v is View;
|
|
59
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
49
60
|
export interface ViewerState {
|
|
50
61
|
repost?: string;
|
|
51
62
|
upvote?: string;
|
|
52
63
|
downvote?: string;
|
|
53
|
-
muted?: boolean;
|
|
54
64
|
[k: string]: unknown;
|
|
55
65
|
}
|
|
66
|
+
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
67
|
+
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
2
3
|
export interface Record {
|
|
3
4
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
4
5
|
createdAt: string;
|
|
5
6
|
[k: string]: unknown;
|
|
6
7
|
}
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
2
3
|
export interface Record {
|
|
3
4
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
4
5
|
createdAt: string;
|
|
5
6
|
[k: string]: unknown;
|
|
6
7
|
}
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
2
3
|
export interface Record {
|
|
3
4
|
subject: ComAtprotoRepoStrongRef.Main;
|
|
@@ -5,3 +6,5 @@ export interface Record {
|
|
|
5
6
|
createdAt: string;
|
|
6
7
|
[k: string]: unknown;
|
|
7
8
|
}
|
|
9
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as AppBskyActorRef from '../actor/ref';
|
|
2
3
|
export interface Record {
|
|
3
4
|
assertion: string;
|
|
@@ -5,3 +6,5 @@ export interface Record {
|
|
|
5
6
|
createdAt: string;
|
|
6
7
|
[k: string]: unknown;
|
|
7
8
|
}
|
|
9
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as AppBskyActorRef from '../actor/ref';
|
|
2
3
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
4
|
export interface Record {
|
|
@@ -6,3 +7,5 @@ export interface Record {
|
|
|
6
7
|
createdAt: string;
|
|
7
8
|
[k: string]: unknown;
|
|
8
9
|
}
|
|
10
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
11
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
import * as AppBskyActorRef from '../actor/ref';
|
|
2
3
|
export interface Record {
|
|
3
4
|
subject: AppBskyActorRef.Main;
|
|
4
5
|
createdAt: string;
|
|
5
6
|
[k: string]: unknown;
|
|
6
7
|
}
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
author?: string;
|
|
@@ -34,6 +35,8 @@ export interface Assertion {
|
|
|
34
35
|
createdAt: string;
|
|
35
36
|
[k: string]: unknown;
|
|
36
37
|
}
|
|
38
|
+
export declare function isAssertion(v: unknown): v is Assertion;
|
|
39
|
+
export declare function validateAssertion(v: unknown): ValidationResult;
|
|
37
40
|
export interface Confirmation {
|
|
38
41
|
uri: string;
|
|
39
42
|
cid: string;
|
|
@@ -41,3 +44,5 @@ export interface Confirmation {
|
|
|
41
44
|
createdAt: string;
|
|
42
45
|
[k: string]: unknown;
|
|
43
46
|
}
|
|
47
|
+
export declare function isConfirmation(v: unknown): v is Confirmation;
|
|
48
|
+
export declare function validateConfirmation(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
4
5
|
export interface QueryParams {
|
|
@@ -32,3 +33,5 @@ export interface Follower {
|
|
|
32
33
|
indexedAt: string;
|
|
33
34
|
[k: string]: unknown;
|
|
34
35
|
}
|
|
36
|
+
export declare function isFollower(v: unknown): v is Follower;
|
|
37
|
+
export declare function validateFollower(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
4
5
|
export interface QueryParams {
|
|
@@ -31,3 +32,5 @@ export interface Follow {
|
|
|
31
32
|
indexedAt: string;
|
|
32
33
|
[k: string]: unknown;
|
|
33
34
|
}
|
|
35
|
+
export declare function isFollow(v: unknown): v is Follow;
|
|
36
|
+
export declare function validateFollow(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
4
5
|
export interface QueryParams {
|
|
@@ -31,3 +32,5 @@ export interface Member {
|
|
|
31
32
|
indexedAt: string;
|
|
32
33
|
[k: string]: unknown;
|
|
33
34
|
}
|
|
35
|
+
export declare function isMember(v: unknown): v is Member;
|
|
36
|
+
export declare function validateMember(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
4
5
|
export interface QueryParams {
|
|
@@ -31,3 +32,5 @@ export interface Membership {
|
|
|
31
32
|
indexedAt: string;
|
|
32
33
|
[k: string]: unknown;
|
|
33
34
|
}
|
|
35
|
+
export declare function isMembership(v: unknown): v is Membership;
|
|
36
|
+
export declare function validateMembership(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
limit?: number;
|
|
@@ -27,3 +28,5 @@ export interface Mute {
|
|
|
27
28
|
createdAt: string;
|
|
28
29
|
[k: string]: unknown;
|
|
29
30
|
}
|
|
31
|
+
export declare function isMute(v: unknown): v is Mute;
|
|
32
|
+
export declare function validateMute(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
import * as AppBskyActorRef from '../actor/ref';
|
|
3
4
|
export interface QueryParams {
|
|
4
5
|
limit?: number;
|
|
@@ -30,3 +31,5 @@ export interface Notification {
|
|
|
30
31
|
indexedAt: string;
|
|
31
32
|
[k: string]: unknown;
|
|
32
33
|
}
|
|
34
|
+
export declare function isNotification(v: unknown): v is Notification;
|
|
35
|
+
export declare function validateNotification(v: unknown): ValidationResult;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
export interface Main {
|
|
2
3
|
cid: string;
|
|
3
4
|
actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});
|
|
4
5
|
[k: string]: unknown;
|
|
5
6
|
}
|
|
7
|
+
export declare function isMain(v: unknown): v is Main;
|
|
8
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
1
2
|
export interface Record {
|
|
2
3
|
actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {});
|
|
3
4
|
[k: string]: unknown;
|
|
4
5
|
}
|
|
6
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
7
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
export interface QueryParams {
|
|
3
4
|
}
|
|
4
5
|
export interface InputSchema {
|
|
@@ -24,6 +25,8 @@ export interface Create {
|
|
|
24
25
|
value: {};
|
|
25
26
|
[k: string]: unknown;
|
|
26
27
|
}
|
|
28
|
+
export declare function isCreate(v: unknown): v is Create;
|
|
29
|
+
export declare function validateCreate(v: unknown): ValidationResult;
|
|
27
30
|
export interface Update {
|
|
28
31
|
action: 'update';
|
|
29
32
|
collection: string;
|
|
@@ -31,9 +34,13 @@ export interface Update {
|
|
|
31
34
|
value: {};
|
|
32
35
|
[k: string]: unknown;
|
|
33
36
|
}
|
|
37
|
+
export declare function isUpdate(v: unknown): v is Update;
|
|
38
|
+
export declare function validateUpdate(v: unknown): ValidationResult;
|
|
34
39
|
export interface Delete {
|
|
35
40
|
action: 'delete';
|
|
36
41
|
collection: string;
|
|
37
42
|
rkey: string;
|
|
38
43
|
[k: string]: unknown;
|
|
39
44
|
}
|
|
45
|
+
export declare function isDelete(v: unknown): v is Delete;
|
|
46
|
+
export declare function validateDelete(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
export interface QueryParams {
|
|
3
4
|
user: string;
|
|
4
5
|
collection: string;
|
|
@@ -28,3 +29,5 @@ export interface Record {
|
|
|
28
29
|
value: {};
|
|
29
30
|
[k: string]: unknown;
|
|
30
31
|
}
|
|
32
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
33
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
3
|
export interface QueryParams {
|
|
3
4
|
}
|
|
4
5
|
export declare type InputSchema = undefined;
|
|
@@ -22,3 +23,5 @@ export interface Links {
|
|
|
22
23
|
termsOfService?: string;
|
|
23
24
|
[k: string]: unknown;
|
|
24
25
|
}
|
|
26
|
+
export declare function isLinks(v: unknown): v is Links;
|
|
27
|
+
export declare function validateLinks(v: unknown): ValidationResult;
|