@atproto/api 0.6.1 → 0.6.3
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 +25 -44
- package/dist/bsky-agent.d.ts +43 -62
- package/dist/client/lexicons.d.ts +30 -0
- package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +65 -74
- package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +40 -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 +44 -53
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +20 -26
- package/dist/client/types/app/bsky/feed/defs.d.ts +115 -141
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
- package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
- 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/feed/saveFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
- package/dist/client/types/app/bsky/graph/block.d.ts +6 -6
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
- 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/getAssertions.d.ts +48 -0
- package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +21 -0
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/listblock.d.ts +8 -0
- package/dist/client/types/app/bsky/graph/listitem.d.ts +7 -7
- package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
- package/dist/client/types/app/bsky/richtext/facet.d.ts +22 -26
- package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
- package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
- package/dist/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
- package/dist/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
- package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
- package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
- package/dist/client/types/com/atproto/label/subscribeLabels.d.ts +12 -12
- package/dist/client/types/com/atproto/moderation/defs.d.ts +7 -16
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
- package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +6 -6
- package/dist/client/types/com/atproto/report/create.d.ts +39 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
- package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
- package/dist/client/types/com/atproto/server/defs.d.ts +16 -16
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
- package/dist/client/types/com/atproto/session/create.d.ts +29 -0
- package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +46 -46
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/client/util.d.ts +2 -5
- package/dist/helpers/bsky.d.ts +20 -0
- package/dist/index.js +79 -12
- package/dist/index.js.map +2 -2
- package/dist/mixins/bsky.d.ts +23 -0
- package/dist/moderation/accumulator.d.ts +1 -0
- package/dist/moderation/types.d.ts +4 -0
- 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 +4 -7
- package/dist/rich-text/sanitize.d.ts +4 -0
- package/dist/rich-text/unicode.d.ts +9 -9
- package/dist/session.d.ts +42 -0
- package/dist/types.d.ts +22 -34
- package/package.json +1 -1
- package/src/client/lexicons.ts +33 -3
- package/src/client/types/app/bsky/embed/record.ts +3 -0
- package/src/client/types/app/bsky/feed/defs.ts +19 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +2 -2
- package/src/client/types/app/bsky/feed/getFeed.ts +1 -1
- package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +1 -1
- package/src/client/types/app/bsky/feed/getPostThread.ts +1 -1
- package/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts +1 -1
- package/src/client/types/com/atproto/admin/getRecord.ts +1 -1
- package/src/client/types/com/atproto/admin/getRepo.ts +1 -1
- package/src/client/types/com/atproto/admin/rebaseRepo.ts +2 -2
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +1 -1
- package/src/client/types/com/atproto/repo/applyWrites.ts +1 -1
- package/src/client/types/com/atproto/repo/createRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/deleteRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/putRecord.ts +1 -1
- package/src/client/types/com/atproto/repo/rebaseRepo.ts +2 -2
- package/src/client/types/com/atproto/server/createAccount.ts +7 -7
- package/src/client/types/com/atproto/server/createAppPassword.ts +1 -1
- package/src/client/types/com/atproto/server/createSession.ts +1 -1
- package/src/client/types/com/atproto/server/deleteAccount.ts +2 -2
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +1 -1
- package/src/client/types/com/atproto/server/listAppPasswords.ts +1 -1
- package/src/client/types/com/atproto/server/refreshSession.ts +1 -1
- package/src/client/types/com/atproto/server/resetPassword.ts +2 -2
- package/src/client/types/com/atproto/sync/getHead.ts +1 -1
- package/src/moderation/accumulator.ts +15 -1
- package/src/moderation/subjects/quoted-post.ts +18 -0
- package/src/moderation/types.ts +1 -0
- package/src/moderation/util.ts +2 -14
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
+
export interface Record {
|
|
4
|
+
assertion: string;
|
|
5
|
+
subject: AppBskyActorRef.Main;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
+
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
4
|
+
export interface Record {
|
|
5
|
+
originator: AppBskyActorRef.Main;
|
|
6
|
+
assertion: ComAtprotoRepoStrongRef.Main;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
11
|
+
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;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
author?: string;
|
|
6
|
+
subject?: string;
|
|
7
|
+
assertion?: string;
|
|
8
|
+
confirmed?: boolean;
|
|
9
|
+
limit?: number;
|
|
10
|
+
before?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type InputSchema = undefined;
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
cursor?: string;
|
|
15
|
+
assertions: Assertion[];
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
headers?: Headers;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
27
|
+
export interface Assertion {
|
|
28
|
+
uri: string;
|
|
29
|
+
cid: string;
|
|
30
|
+
assertion: string;
|
|
31
|
+
confirmation?: Confirmation;
|
|
32
|
+
author: AppBskyActorRef.WithInfo;
|
|
33
|
+
subject: AppBskyActorRef.WithInfo;
|
|
34
|
+
indexedAt: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
[k: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
export declare function isAssertion(v: unknown): v is Assertion;
|
|
39
|
+
export declare function validateAssertion(v: unknown): ValidationResult;
|
|
40
|
+
export interface Confirmation {
|
|
41
|
+
uri: string;
|
|
42
|
+
cid: string;
|
|
43
|
+
indexedAt: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare function isConfirmation(v: unknown): v is Confirmation;
|
|
48
|
+
export declare function validateConfirmation(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyGraphDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
lists: AppBskyGraphDefs.ListView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
actor: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
before?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type InputSchema = undefined;
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
subject: AppBskyActorRef.WithInfo;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
members: Member[];
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
headers?: Headers;
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
export interface Member {
|
|
27
|
+
did: string;
|
|
28
|
+
declaration: AppBskySystemDeclRef.Main;
|
|
29
|
+
handle: string;
|
|
30
|
+
displayName?: string;
|
|
31
|
+
createdAt?: string;
|
|
32
|
+
indexedAt: string;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare function isMember(v: unknown): v is Member;
|
|
36
|
+
export declare function validateMember(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
actor: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
before?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type InputSchema = undefined;
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
subject: AppBskyActorRef.WithInfo;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
memberships: Membership[];
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
headers?: Headers;
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
export interface Membership {
|
|
27
|
+
did: string;
|
|
28
|
+
declaration: AppBskySystemDeclRef.Main;
|
|
29
|
+
handle: string;
|
|
30
|
+
displayName?: string;
|
|
31
|
+
createdAt?: string;
|
|
32
|
+
indexedAt: string;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare function isMembership(v: unknown): v is Membership;
|
|
36
|
+
export declare function validateMembership(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface Record {
|
|
3
|
+
subject: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
[k: string]: unknown;
|
|
6
|
+
}
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
user: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
qp?: QueryParams;
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
list: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
qp?: QueryParams;
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
user: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
qp?: QueryParams;
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
list: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
qp?: QueryParams;
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
count: number;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
}
|
|
12
|
+
export interface Response {
|
|
13
|
+
success: boolean;
|
|
14
|
+
headers: Headers;
|
|
15
|
+
data: OutputSchema;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
limit?: number;
|
|
6
|
+
before?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
notifications: Notification[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
23
|
+
export interface Notification {
|
|
24
|
+
uri: string;
|
|
25
|
+
cid: string;
|
|
26
|
+
author: AppBskyActorRef.WithInfo;
|
|
27
|
+
reason: 'vote' | 'repost' | 'follow' | 'invite' | 'mention' | 'reply' | (string & {});
|
|
28
|
+
reasonSubject?: string;
|
|
29
|
+
record: {};
|
|
30
|
+
isRead: boolean;
|
|
31
|
+
indexedAt: string;
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
export declare function isNotification(v: unknown): v is Notification;
|
|
35
|
+
export declare function validateNotification(v: unknown): ValidationResult;
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[k: string]: unknown
|
|
10
|
-
}
|
|
11
|
-
)[]
|
|
12
|
-
[k: string]: unknown
|
|
3
|
+
index: ByteSlice;
|
|
4
|
+
features: (Mention | Link | {
|
|
5
|
+
$type: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
})[];
|
|
8
|
+
[k: string]: unknown;
|
|
13
9
|
}
|
|
14
|
-
export declare function isMain(v: unknown): v is Main
|
|
15
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
10
|
+
export declare function isMain(v: unknown): v is Main;
|
|
11
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
16
12
|
export interface Mention {
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
did: string;
|
|
14
|
+
[k: string]: unknown;
|
|
19
15
|
}
|
|
20
|
-
export declare function isMention(v: unknown): v is Mention
|
|
21
|
-
export declare function validateMention(v: unknown): ValidationResult
|
|
16
|
+
export declare function isMention(v: unknown): v is Mention;
|
|
17
|
+
export declare function validateMention(v: unknown): ValidationResult;
|
|
22
18
|
export interface Link {
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
uri: string;
|
|
20
|
+
[k: string]: unknown;
|
|
25
21
|
}
|
|
26
|
-
export declare function isLink(v: unknown): v is Link
|
|
27
|
-
export declare function validateLink(v: unknown): ValidationResult
|
|
22
|
+
export declare function isLink(v: unknown): v is Link;
|
|
23
|
+
export declare function validateLink(v: unknown): ValidationResult;
|
|
28
24
|
export interface ByteSlice {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
byteStart: number;
|
|
26
|
+
byteEnd: number;
|
|
27
|
+
[k: string]: unknown;
|
|
32
28
|
}
|
|
33
|
-
export declare function isByteSlice(v: unknown): v is ByteSlice
|
|
34
|
-
export declare function validateByteSlice(v: unknown): ValidationResult
|
|
29
|
+
export declare function isByteSlice(v: unknown): v is ByteSlice;
|
|
30
|
+
export declare function validateByteSlice(v: unknown): ValidationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAIN = "app.bsky.system.actorScene#main";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAIN = "app.bsky.system.actorUser#main";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface Main {
|
|
3
|
+
cid: string;
|
|
4
|
+
actorType: 'app.bsky.system.actorUser' | (string & {});
|
|
5
|
+
[k: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
export declare function isMain(v: unknown): v is Main;
|
|
8
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface Record {
|
|
3
|
+
actorType: 'app.bsky.system.actorUser' | (string & {});
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
7
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
email: string;
|
|
6
|
+
handle: string;
|
|
7
|
+
inviteCode?: string;
|
|
8
|
+
password: string;
|
|
9
|
+
recoveryKey?: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
accessJwt: string;
|
|
14
|
+
refreshJwt: string;
|
|
15
|
+
handle: string;
|
|
16
|
+
did: string;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface CallOptions {
|
|
20
|
+
headers?: Headers;
|
|
21
|
+
qp?: QueryParams;
|
|
22
|
+
encoding: 'application/json';
|
|
23
|
+
}
|
|
24
|
+
export interface Response {
|
|
25
|
+
success: boolean;
|
|
26
|
+
headers: Headers;
|
|
27
|
+
data: OutputSchema;
|
|
28
|
+
}
|
|
29
|
+
export declare class InvalidHandleError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
32
|
+
export declare class InvalidPasswordError extends XRPCError {
|
|
33
|
+
constructor(src: XRPCError);
|
|
34
|
+
}
|
|
35
|
+
export declare class InvalidInviteCodeError extends XRPCError {
|
|
36
|
+
constructor(src: XRPCError);
|
|
37
|
+
}
|
|
38
|
+
export declare class HandleNotAvailableError extends XRPCError {
|
|
39
|
+
constructor(src: XRPCError);
|
|
40
|
+
}
|
|
41
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
useCount: number;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
code: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
qp?: QueryParams;
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
did: string;
|
|
6
|
+
password: string;
|
|
7
|
+
token: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface CallOptions {
|
|
11
|
+
headers?: Headers;
|
|
12
|
+
qp?: QueryParams;
|
|
13
|
+
encoding: 'application/json';
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare class ExpiredTokenError extends XRPCError {
|
|
20
|
+
constructor(src: XRPCError);
|
|
21
|
+
}
|
|
22
|
+
export declare class InvalidTokenError extends XRPCError {
|
|
23
|
+
constructor(src: XRPCError);
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface CallOptions {
|
|
6
|
+
headers?: Headers;
|
|
7
|
+
}
|
|
8
|
+
export interface Response {
|
|
9
|
+
success: boolean;
|
|
10
|
+
headers: Headers;
|
|
11
|
+
}
|
|
12
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface CallOptions {
|
|
6
|
+
headers?: Headers;
|
|
7
|
+
qp?: QueryParams;
|
|
8
|
+
}
|
|
9
|
+
export interface Response {
|
|
10
|
+
success: boolean;
|
|
11
|
+
headers: Headers;
|
|
12
|
+
}
|
|
13
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
email: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
qp?: QueryParams;
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|