@atproto/api 0.1.3 → 0.2.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/README.md +179 -25
- package/build.js +2 -1
- package/dist/agent.d.ts +11 -6
- package/dist/bsky-agent.d.ts +43 -0
- package/dist/client/index.d.ts +117 -215
- package/dist/client/lexicons.d.ts +1447 -1401
- package/dist/client/types/app/bsky/actor/defs.d.ts +47 -0
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/profile.d.ts +4 -60
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/embed/complexRecord.d.ts +24 -0
- package/dist/client/types/app/bsky/embed/external.d.ts +9 -13
- package/dist/client/types/app/bsky/embed/images.d.ts +9 -13
- package/dist/client/types/app/bsky/embed/post.d.ts +33 -0
- package/dist/client/types/app/bsky/embed/record.d.ts +21 -13
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +24 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +77 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +4 -4
- package/dist/client/types/app/bsky/{graph/getMembers.d.ts → feed/getLikes.d.ts} +12 -14
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +2 -24
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +3 -3
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +3 -3
- package/dist/client/types/app/bsky/feed/post.d.ts +4 -29
- package/dist/client/types/app/bsky/graph/follow.d.ts +1 -2
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +5 -5
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +5 -5
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +3 -3
- package/dist/client/types/app/bsky/{notification/updateSeen.d.ts → graph/muteActor.d.ts} +1 -1
- package/dist/client/types/app/bsky/graph/unmuteActor.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +17 -0
- package/dist/client/types/app/bsky/{graph/getMemberships.d.ts → notification/listNotifications.d.ts} +13 -14
- package/dist/client/types/app/bsky/richtext/facet.d.ts +30 -0
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +21 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +181 -0
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +3 -3
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +3 -3
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +3 -3
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -6
- package/dist/client/types/com/atproto/{sync/getHead.d.ts → identity/resolveHandle.d.ts} +2 -2
- package/dist/client/types/com/atproto/identity/updateHandle.d.ts +17 -0
- package/dist/client/types/com/atproto/moderation/createReport.d.ts +38 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts +3 -0
- package/dist/client/types/com/atproto/repo/applyWrites.d.ts +47 -0
- package/dist/client/types/com/atproto/repo/createRecord.d.ts +7 -2
- package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +7 -2
- package/dist/client/types/com/atproto/repo/describeRepo.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +1 -1
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +3 -3
- package/dist/client/types/com/atproto/repo/putRecord.d.ts +7 -2
- package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +20 -0
- package/dist/client/types/{app/bsky/actor/createScene.d.ts → com/atproto/server/createAccount.d.ts} +14 -2
- package/dist/client/types/com/atproto/server/createInviteCode.d.ts +22 -0
- package/dist/client/types/com/atproto/server/createSession.d.ts +29 -0
- package/dist/client/types/com/atproto/server/deleteAccount.d.ts +25 -0
- package/dist/client/types/com/atproto/{sync/getRecord.d.ts → server/deleteSession.d.ts} +1 -5
- package/dist/client/types/com/atproto/server/describeServer.d.ts +27 -0
- package/dist/client/types/com/atproto/{sync/getRoot.d.ts → server/getSession.d.ts} +2 -2
- package/dist/client/types/com/atproto/server/refreshSession.d.ts +24 -0
- package/dist/client/types/com/atproto/{sync/updateRepo.d.ts → server/requestAccountDelete.d.ts} +1 -3
- package/dist/client/types/com/atproto/server/requestPasswordReset.d.ts +17 -0
- package/dist/client/types/com/atproto/server/resetPassword.d.ts +24 -0
- package/dist/client/types/com/atproto/sync/{getCheckout.d.ts → getBlob.d.ts} +1 -1
- package/dist/client/types/com/atproto/sync/{getCommitPath.d.ts → listBlobs.d.ts} +1 -1
- package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +1 -0
- package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -1
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +58 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8055 -3651
- package/dist/index.js.map +4 -4
- package/dist/rich-text/detection.d.ts +4 -0
- package/dist/rich-text/rich-text.d.ts +39 -0
- package/dist/rich-text/sanitization.d.ts +4 -0
- package/dist/rich-text/unicode.d.ts +11 -0
- package/dist/types.d.ts +2 -2
- package/docs/rn-fetch-handler.ts +88 -0
- package/package.json +4 -1
- package/src/agent.ts +51 -15
- package/src/bsky-agent.ts +228 -0
- package/src/client/index.ts +330 -581
- package/src/client/lexicons.ts +1833 -1779
- package/src/client/types/app/bsky/actor/defs.ts +97 -0
- package/src/client/types/app/bsky/actor/getProfile.ts +4 -3
- package/src/client/types/app/bsky/actor/getProfiles.ts +4 -3
- package/src/client/types/app/bsky/actor/getSuggestions.ts +4 -3
- package/src/client/types/app/bsky/actor/profile.ts +5 -95
- package/src/client/types/app/bsky/actor/{searchTypeahead.ts → searchActors.ts} +6 -3
- package/src/client/types/app/bsky/actor/{search.ts → searchActorsTypeahead.ts} +4 -5
- package/src/client/types/app/bsky/embed/external.ts +14 -13
- package/src/client/types/app/bsky/embed/images.ts +14 -15
- package/src/client/types/app/bsky/embed/record.ts +32 -25
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +53 -0
- package/src/client/types/app/bsky/feed/defs.ts +156 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +6 -5
- package/src/client/types/app/bsky/feed/{getVotes.ts → getLikes.ts} +11 -12
- package/src/client/types/app/bsky/feed/getPostThread.ts +5 -48
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +5 -4
- package/src/client/types/app/bsky/feed/getTimeline.ts +5 -4
- package/src/client/types/app/bsky/feed/{vote.ts → like.ts} +4 -4
- package/src/client/types/app/bsky/feed/post.ts +10 -52
- package/src/client/types/app/bsky/feed/repost.ts +2 -1
- package/src/client/types/app/bsky/graph/follow.ts +3 -3
- package/src/client/types/app/bsky/graph/getFollowers.ts +7 -6
- package/src/client/types/app/bsky/graph/getFollows.ts +7 -6
- package/src/client/types/app/bsky/graph/getMutes.ts +5 -4
- package/src/client/types/app/bsky/graph/{mute.ts → muteActor.ts} +3 -2
- package/src/client/types/app/bsky/graph/{unmute.ts → unmuteActor.ts} +3 -2
- package/src/client/types/app/bsky/notification/{getCount.ts → getUnreadCount.ts} +2 -1
- package/src/client/types/app/bsky/notification/{list.ts → listNotifications.ts} +13 -9
- package/src/client/types/app/bsky/notification/updateSeen.ts +2 -1
- package/src/client/types/app/bsky/richtext/facet.ts +81 -0
- package/src/client/types/app/bsky/unspecced/getPopular.ts +38 -0
- package/src/client/types/com/atproto/admin/defs.ts +366 -0
- package/src/client/types/com/atproto/admin/getModerationAction.ts +4 -3
- package/src/client/types/com/atproto/admin/getModerationActions.ts +5 -4
- package/src/client/types/com/atproto/admin/getModerationReport.ts +4 -3
- package/src/client/types/com/atproto/admin/getModerationReports.ts +5 -4
- package/src/client/types/com/atproto/admin/getRecord.ts +4 -3
- package/src/client/types/com/atproto/admin/getRepo.ts +4 -3
- package/src/client/types/com/atproto/admin/resolveModerationReports.ts +4 -3
- package/src/client/types/com/atproto/admin/reverseModerationAction.ts +4 -3
- package/src/client/types/com/atproto/admin/searchRepos.ts +5 -4
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +10 -10
- package/src/client/types/com/atproto/{handle/resolve.ts → identity/resolveHandle.ts} +2 -1
- package/src/client/types/com/atproto/{handle/update.ts → identity/updateHandle.ts} +2 -1
- package/src/client/types/com/atproto/{report/create.ts → moderation/createReport.ts} +10 -10
- package/src/client/types/com/atproto/moderation/defs.ts +17 -0
- package/src/client/types/com/atproto/repo/{batchWrite.ts → applyWrites.ts} +21 -12
- package/src/client/types/com/atproto/repo/createRecord.ts +15 -3
- package/src/client/types/com/atproto/repo/deleteRecord.ts +15 -3
- package/src/client/types/com/atproto/repo/{describe.ts → describeRepo.ts} +3 -2
- package/src/client/types/com/atproto/repo/getRecord.ts +4 -3
- package/src/client/types/com/atproto/repo/listRecords.ts +7 -6
- package/src/client/types/com/atproto/repo/putRecord.ts +18 -6
- package/src/client/types/com/atproto/repo/strongRef.ts +2 -1
- package/src/client/types/com/atproto/{blob/upload.ts → repo/uploadBlob.ts} +3 -2
- package/src/client/types/com/atproto/{account/create.ts → server/createAccount.ts} +9 -1
- package/src/client/types/com/atproto/{account → server}/createInviteCode.ts +2 -1
- package/src/client/types/com/atproto/{session/create.ts → server/createSession.ts} +2 -1
- package/src/client/types/com/atproto/{account/delete.ts → server/deleteAccount.ts} +2 -1
- package/src/client/types/com/atproto/{account/requestDelete.ts → server/deleteSession.ts} +2 -1
- package/src/client/types/com/atproto/server/{getAccountsConfig.ts → describeServer.ts} +4 -3
- package/src/client/types/com/atproto/{session/get.ts → server/getSession.ts} +2 -1
- package/src/client/types/com/atproto/{session/refresh.ts → server/refreshSession.ts} +2 -1
- package/src/client/types/com/atproto/{session/delete.ts → server/requestAccountDelete.ts} +2 -1
- package/src/client/types/com/atproto/{account → server}/requestPasswordReset.ts +2 -1
- package/src/client/types/com/atproto/{account → server}/resetPassword.ts +2 -1
- package/src/client/types/com/atproto/sync/getBlob.ts +33 -0
- package/src/client/types/com/atproto/sync/getBlocks.ts +2 -1
- package/src/client/types/com/atproto/sync/getCheckout.ts +2 -1
- package/src/client/types/com/atproto/sync/getCommitPath.ts +2 -1
- package/src/client/types/com/atproto/sync/getHead.ts +2 -1
- package/src/client/types/com/atproto/sync/getRecord.ts +2 -1
- package/src/client/types/com/atproto/sync/getRepo.ts +2 -1
- package/src/client/types/com/atproto/sync/listBlobs.ts +40 -0
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +6 -2
- package/src/client/types/com/atproto/sync/requestCrawl.ts +3 -2
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +131 -0
- package/src/index.ts +12 -0
- package/src/rich-text/detection.ts +83 -0
- package/src/rich-text/rich-text.ts +401 -0
- package/src/rich-text/sanitization.ts +40 -0
- package/src/rich-text/unicode.ts +47 -0
- package/src/types.ts +2 -2
- package/tests/agent.test.ts +10 -6
- package/tests/bsky-agent.test.ts +140 -0
- package/tests/errors.test.ts +4 -4
- package/tests/rich-text-detection.test.ts +229 -0
- package/tests/rich-text-sanitization.test.ts +211 -0
- package/tests/rich-text.test.ts +661 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/com/atproto/repo/strongRef.d.ts +0 -8
- package/dist/client/util.d.ts +0 -2
- package/src/client/types/app/bsky/actor/ref.ts +0 -64
- package/src/client/types/app/bsky/actor/updateProfile.ts +0 -71
- package/src/client/types/app/bsky/feed/feedViewPost.ts +0 -64
- package/src/client/types/app/bsky/feed/setVote.ts +0 -40
- package/src/client/types/app/bsky/graph/assertCreator.ts +0 -9
- package/src/client/types/app/bsky/graph/assertMember.ts +0 -9
- package/src/client/types/app/bsky/graph/assertion.ts +0 -27
- package/src/client/types/app/bsky/graph/confirmation.ts +0 -28
- package/src/client/types/app/bsky/system/actorUser.ts +0 -9
- package/src/client/types/app/bsky/system/declRef.ts +0 -26
- package/src/client/types/app/bsky/system/declaration.ts +0 -24
- package/src/client/types/com/atproto/account/get.ts +0 -26
- package/src/client/types/com/atproto/admin/blob.ts +0 -84
- package/src/client/types/com/atproto/admin/moderationAction.ts +0 -118
- package/src/client/types/com/atproto/admin/moderationReport.ts +0 -64
- package/src/client/types/com/atproto/admin/record.ts +0 -92
- package/src/client/types/com/atproto/admin/repo.ts +0 -103
- package/src/client/types/com/atproto/repo/recordRef.ts +0 -25
- package/src/client/types/com/atproto/repo/repoRef.ts +0 -24
- package/src/client/types/com/atproto/report/reasonType.ts +0 -16
- package/src/client/types/com/atproto/report/subject.ts +0 -66
- package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +0 -7
- /package/dist/client/types/app/bsky/feed/{repost.d.ts → like.d.ts} +0 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyRichtextFacet from '../richtext/facet';
|
|
2
3
|
import * as AppBskyEmbedImages from '../embed/images';
|
|
3
4
|
import * as AppBskyEmbedExternal from '../embed/external';
|
|
4
5
|
import * as AppBskyEmbedRecord from '../embed/record';
|
|
6
|
+
import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia';
|
|
5
7
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
6
|
-
import * as AppBskyActorRef from '../actor/ref';
|
|
7
8
|
export interface Record {
|
|
8
9
|
text: string;
|
|
9
10
|
entities?: Entity[];
|
|
11
|
+
facets?: AppBskyRichtextFacet.Main[];
|
|
10
12
|
reply?: ReplyRef;
|
|
11
|
-
embed?: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | AppBskyEmbedRecord.Main | {
|
|
13
|
+
embed?: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | AppBskyEmbedRecord.Main | AppBskyEmbedRecordWithMedia.Main | {
|
|
12
14
|
$type: string;
|
|
13
15
|
[k: string]: unknown;
|
|
14
16
|
};
|
|
@@ -39,30 +41,3 @@ export interface TextSlice {
|
|
|
39
41
|
}
|
|
40
42
|
export declare function isTextSlice(v: unknown): v is TextSlice;
|
|
41
43
|
export declare function validateTextSlice(v: unknown): ValidationResult;
|
|
42
|
-
export interface View {
|
|
43
|
-
uri: string;
|
|
44
|
-
cid: string;
|
|
45
|
-
author: AppBskyActorRef.WithInfo;
|
|
46
|
-
record: {};
|
|
47
|
-
embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | AppBskyEmbedRecord.Presented | {
|
|
48
|
-
$type: string;
|
|
49
|
-
[k: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
replyCount: number;
|
|
52
|
-
repostCount: number;
|
|
53
|
-
upvoteCount: number;
|
|
54
|
-
downvoteCount: number;
|
|
55
|
-
indexedAt: string;
|
|
56
|
-
viewer: ViewerState;
|
|
57
|
-
[k: string]: unknown;
|
|
58
|
-
}
|
|
59
|
-
export declare function isView(v: unknown): v is View;
|
|
60
|
-
export declare function validateView(v: unknown): ValidationResult;
|
|
61
|
-
export interface ViewerState {
|
|
62
|
-
repost?: string;
|
|
63
|
-
upvote?: string;
|
|
64
|
-
downvote?: string;
|
|
65
|
-
[k: string]: unknown;
|
|
66
|
-
}
|
|
67
|
-
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
68
|
-
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
|
-
|
|
4
|
+
actor: string;
|
|
5
5
|
limit?: number;
|
|
6
|
-
|
|
6
|
+
cursor?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare type InputSchema = undefined;
|
|
9
9
|
export interface OutputSchema {
|
|
10
|
-
subject:
|
|
10
|
+
subject: AppBskyActorDefs.ProfileView;
|
|
11
11
|
cursor?: string;
|
|
12
|
-
followers:
|
|
12
|
+
followers: AppBskyActorDefs.ProfileView[];
|
|
13
13
|
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
15
|
export interface CallOptions {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
|
-
|
|
4
|
+
actor: string;
|
|
5
5
|
limit?: number;
|
|
6
|
-
|
|
6
|
+
cursor?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare type InputSchema = undefined;
|
|
9
9
|
export interface OutputSchema {
|
|
10
|
-
subject:
|
|
10
|
+
subject: AppBskyActorDefs.ProfileView;
|
|
11
11
|
cursor?: string;
|
|
12
|
-
follows:
|
|
12
|
+
follows: AppBskyActorDefs.ProfileView[];
|
|
13
13
|
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
15
|
export interface CallOptions {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
limit?: number;
|
|
5
|
-
|
|
5
|
+
cursor?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare type InputSchema = undefined;
|
|
8
8
|
export interface OutputSchema {
|
|
9
9
|
cursor?: string;
|
|
10
|
-
mutes:
|
|
10
|
+
mutes: AppBskyActorDefs.ProfileView[];
|
|
11
11
|
[k: string]: unknown;
|
|
12
12
|
}
|
|
13
13
|
export interface CallOptions {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
actor: 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;
|
package/dist/client/types/app/bsky/{graph/getMemberships.d.ts → notification/listNotifications.d.ts}
RENAMED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
2
|
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
-
import * as
|
|
4
|
-
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
+
import * as AppBskyActorDefs from '../actor/defs';
|
|
5
4
|
export interface QueryParams {
|
|
6
|
-
actor: string;
|
|
7
5
|
limit?: number;
|
|
8
|
-
|
|
6
|
+
cursor?: string;
|
|
9
7
|
}
|
|
10
8
|
export declare type InputSchema = undefined;
|
|
11
9
|
export interface OutputSchema {
|
|
12
|
-
subject: AppBskyActorRef.WithInfo;
|
|
13
10
|
cursor?: string;
|
|
14
|
-
|
|
11
|
+
notifications: Notification[];
|
|
15
12
|
[k: string]: unknown;
|
|
16
13
|
}
|
|
17
14
|
export interface CallOptions {
|
|
@@ -23,14 +20,16 @@ export interface Response {
|
|
|
23
20
|
data: OutputSchema;
|
|
24
21
|
}
|
|
25
22
|
export declare function toKnownErr(e: any): any;
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
export interface Notification {
|
|
24
|
+
uri: string;
|
|
25
|
+
cid: string;
|
|
26
|
+
author: AppBskyActorDefs.ProfileView;
|
|
27
|
+
reason: 'like' | 'repost' | 'follow' | 'mention' | 'reply' | 'quote' | (string & {});
|
|
28
|
+
reasonSubject?: string;
|
|
29
|
+
record: {};
|
|
30
|
+
isRead: boolean;
|
|
32
31
|
indexedAt: string;
|
|
33
32
|
[k: string]: unknown;
|
|
34
33
|
}
|
|
35
|
-
export declare function
|
|
36
|
-
export declare function
|
|
34
|
+
export declare function isNotification(v: unknown): v is Notification;
|
|
35
|
+
export declare function validateNotification(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface Main {
|
|
3
|
+
index: ByteSlice;
|
|
4
|
+
features: (Mention | Link | {
|
|
5
|
+
$type: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
})[];
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export declare function isMain(v: unknown): v is Main;
|
|
11
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
12
|
+
export interface Mention {
|
|
13
|
+
did: string;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare function isMention(v: unknown): v is Mention;
|
|
17
|
+
export declare function validateMention(v: unknown): ValidationResult;
|
|
18
|
+
export interface Link {
|
|
19
|
+
uri: string;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function isLink(v: unknown): v is Link;
|
|
23
|
+
export declare function validateLink(v: unknown): ValidationResult;
|
|
24
|
+
export interface ByteSlice {
|
|
25
|
+
byteStart: number;
|
|
26
|
+
byteEnd: number;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export declare function isByteSlice(v: unknown): v is ByteSlice;
|
|
30
|
+
export declare function validateByteSlice(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from '../feed/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
|
+
feed: AppBskyFeedDefs.FeedViewPost[];
|
|
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,181 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
3
|
+
import * as ComAtprotoModerationDefs from '../moderation/defs';
|
|
4
|
+
export interface ActionView {
|
|
5
|
+
id: number;
|
|
6
|
+
action: ActionType;
|
|
7
|
+
subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
8
|
+
$type: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
subjectBlobCids: string[];
|
|
12
|
+
reason: string;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
reversal?: ActionReversal;
|
|
16
|
+
resolvedReportIds: number[];
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare function isActionView(v: unknown): v is ActionView;
|
|
20
|
+
export declare function validateActionView(v: unknown): ValidationResult;
|
|
21
|
+
export interface ActionViewDetail {
|
|
22
|
+
id: number;
|
|
23
|
+
action: ActionType;
|
|
24
|
+
subject: RepoView | RecordView | {
|
|
25
|
+
$type: string;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
subjectBlobs: BlobView[];
|
|
29
|
+
reason: string;
|
|
30
|
+
createdBy: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
reversal?: ActionReversal;
|
|
33
|
+
resolvedReports: ReportView[];
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isActionViewDetail(v: unknown): v is ActionViewDetail;
|
|
37
|
+
export declare function validateActionViewDetail(v: unknown): ValidationResult;
|
|
38
|
+
export interface ActionViewCurrent {
|
|
39
|
+
id: number;
|
|
40
|
+
action: ActionType;
|
|
41
|
+
[k: string]: unknown;
|
|
42
|
+
}
|
|
43
|
+
export declare function isActionViewCurrent(v: unknown): v is ActionViewCurrent;
|
|
44
|
+
export declare function validateActionViewCurrent(v: unknown): ValidationResult;
|
|
45
|
+
export interface ActionReversal {
|
|
46
|
+
reason: string;
|
|
47
|
+
createdBy: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
[k: string]: unknown;
|
|
50
|
+
}
|
|
51
|
+
export declare function isActionReversal(v: unknown): v is ActionReversal;
|
|
52
|
+
export declare function validateActionReversal(v: unknown): ValidationResult;
|
|
53
|
+
export declare type ActionType = 'lex:com.atproto.admin.defs#takedown' | 'lex:com.atproto.admin.defs#flag' | 'lex:com.atproto.admin.defs#acknowledge' | (string & {});
|
|
54
|
+
export declare const TAKEDOWN = "com.atproto.admin.defs#takedown";
|
|
55
|
+
export declare const FLAG = "com.atproto.admin.defs#flag";
|
|
56
|
+
export declare const ACKNOWLEDGE = "com.atproto.admin.defs#acknowledge";
|
|
57
|
+
export interface ReportView {
|
|
58
|
+
id: number;
|
|
59
|
+
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
60
|
+
reason?: string;
|
|
61
|
+
subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
62
|
+
$type: string;
|
|
63
|
+
[k: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
reportedBy: string;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
resolvedByActionIds: number[];
|
|
68
|
+
[k: string]: unknown;
|
|
69
|
+
}
|
|
70
|
+
export declare function isReportView(v: unknown): v is ReportView;
|
|
71
|
+
export declare function validateReportView(v: unknown): ValidationResult;
|
|
72
|
+
export interface ReportViewDetail {
|
|
73
|
+
id: number;
|
|
74
|
+
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
75
|
+
reason?: string;
|
|
76
|
+
subject: RepoView | RecordView | {
|
|
77
|
+
$type: string;
|
|
78
|
+
[k: string]: unknown;
|
|
79
|
+
};
|
|
80
|
+
reportedBy: string;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
resolvedByActions: ActionView[];
|
|
83
|
+
[k: string]: unknown;
|
|
84
|
+
}
|
|
85
|
+
export declare function isReportViewDetail(v: unknown): v is ReportViewDetail;
|
|
86
|
+
export declare function validateReportViewDetail(v: unknown): ValidationResult;
|
|
87
|
+
export interface RepoView {
|
|
88
|
+
did: string;
|
|
89
|
+
handle: string;
|
|
90
|
+
email?: string;
|
|
91
|
+
relatedRecords: {}[];
|
|
92
|
+
indexedAt: string;
|
|
93
|
+
moderation: Moderation;
|
|
94
|
+
[k: string]: unknown;
|
|
95
|
+
}
|
|
96
|
+
export declare function isRepoView(v: unknown): v is RepoView;
|
|
97
|
+
export declare function validateRepoView(v: unknown): ValidationResult;
|
|
98
|
+
export interface RepoViewDetail {
|
|
99
|
+
did: string;
|
|
100
|
+
handle: string;
|
|
101
|
+
email?: string;
|
|
102
|
+
relatedRecords: {}[];
|
|
103
|
+
indexedAt: string;
|
|
104
|
+
moderation: ModerationDetail;
|
|
105
|
+
[k: string]: unknown;
|
|
106
|
+
}
|
|
107
|
+
export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
|
|
108
|
+
export declare function validateRepoViewDetail(v: unknown): ValidationResult;
|
|
109
|
+
export interface RepoRef {
|
|
110
|
+
did: string;
|
|
111
|
+
[k: string]: unknown;
|
|
112
|
+
}
|
|
113
|
+
export declare function isRepoRef(v: unknown): v is RepoRef;
|
|
114
|
+
export declare function validateRepoRef(v: unknown): ValidationResult;
|
|
115
|
+
export interface RecordView {
|
|
116
|
+
uri: string;
|
|
117
|
+
cid: string;
|
|
118
|
+
value: {};
|
|
119
|
+
blobCids: string[];
|
|
120
|
+
indexedAt: string;
|
|
121
|
+
moderation: Moderation;
|
|
122
|
+
repo: RepoView;
|
|
123
|
+
[k: string]: unknown;
|
|
124
|
+
}
|
|
125
|
+
export declare function isRecordView(v: unknown): v is RecordView;
|
|
126
|
+
export declare function validateRecordView(v: unknown): ValidationResult;
|
|
127
|
+
export interface RecordViewDetail {
|
|
128
|
+
uri: string;
|
|
129
|
+
cid: string;
|
|
130
|
+
value: {};
|
|
131
|
+
blobs: BlobView[];
|
|
132
|
+
indexedAt: string;
|
|
133
|
+
moderation: ModerationDetail;
|
|
134
|
+
repo: RepoView;
|
|
135
|
+
[k: string]: unknown;
|
|
136
|
+
}
|
|
137
|
+
export declare function isRecordViewDetail(v: unknown): v is RecordViewDetail;
|
|
138
|
+
export declare function validateRecordViewDetail(v: unknown): ValidationResult;
|
|
139
|
+
export interface Moderation {
|
|
140
|
+
currentAction?: ActionViewCurrent;
|
|
141
|
+
[k: string]: unknown;
|
|
142
|
+
}
|
|
143
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
144
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
145
|
+
export interface ModerationDetail {
|
|
146
|
+
currentAction?: ActionViewCurrent;
|
|
147
|
+
actions: ActionView[];
|
|
148
|
+
reports: ReportView[];
|
|
149
|
+
[k: string]: unknown;
|
|
150
|
+
}
|
|
151
|
+
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
152
|
+
export declare function validateModerationDetail(v: unknown): ValidationResult;
|
|
153
|
+
export interface BlobView {
|
|
154
|
+
cid: string;
|
|
155
|
+
mimeType: string;
|
|
156
|
+
size: number;
|
|
157
|
+
createdAt: string;
|
|
158
|
+
details?: ImageDetails | VideoDetails | {
|
|
159
|
+
$type: string;
|
|
160
|
+
[k: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
moderation?: Moderation;
|
|
163
|
+
[k: string]: unknown;
|
|
164
|
+
}
|
|
165
|
+
export declare function isBlobView(v: unknown): v is BlobView;
|
|
166
|
+
export declare function validateBlobView(v: unknown): ValidationResult;
|
|
167
|
+
export interface ImageDetails {
|
|
168
|
+
width: number;
|
|
169
|
+
height: number;
|
|
170
|
+
[k: string]: unknown;
|
|
171
|
+
}
|
|
172
|
+
export declare function isImageDetails(v: unknown): v is ImageDetails;
|
|
173
|
+
export declare function validateImageDetails(v: unknown): ValidationResult;
|
|
174
|
+
export interface VideoDetails {
|
|
175
|
+
width: number;
|
|
176
|
+
height: number;
|
|
177
|
+
length: number;
|
|
178
|
+
[k: string]: unknown;
|
|
179
|
+
}
|
|
180
|
+
export declare function isVideoDetails(v: unknown): v is VideoDetails;
|
|
181
|
+
export declare function validateVideoDetails(v: unknown): ValidationResult;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
id: number;
|
|
5
5
|
}
|
|
6
6
|
export declare type InputSchema = undefined;
|
|
7
|
-
export declare type OutputSchema =
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionViewDetail;
|
|
8
8
|
export interface CallOptions {
|
|
9
9
|
headers?: Headers;
|
|
10
10
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
subject?: string;
|
|
5
5
|
limit?: number;
|
|
6
|
-
|
|
6
|
+
cursor?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare type InputSchema = undefined;
|
|
9
9
|
export interface OutputSchema {
|
|
10
10
|
cursor?: string;
|
|
11
|
-
actions:
|
|
11
|
+
actions: ComAtprotoAdminDefs.ActionView[];
|
|
12
12
|
[k: string]: unknown;
|
|
13
13
|
}
|
|
14
14
|
export interface CallOptions {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
id: number;
|
|
5
5
|
}
|
|
6
6
|
export declare type InputSchema = undefined;
|
|
7
|
-
export declare type OutputSchema =
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ReportViewDetail;
|
|
8
8
|
export interface CallOptions {
|
|
9
9
|
headers?: Headers;
|
|
10
10
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
subject?: string;
|
|
5
5
|
resolved?: boolean;
|
|
6
6
|
limit?: number;
|
|
7
|
-
|
|
7
|
+
cursor?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare type InputSchema = undefined;
|
|
10
10
|
export interface OutputSchema {
|
|
11
11
|
cursor?: string;
|
|
12
|
-
reports:
|
|
12
|
+
reports: ComAtprotoAdminDefs.ReportView[];
|
|
13
13
|
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
15
|
export interface CallOptions {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
uri: string;
|
|
5
5
|
cid?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare type InputSchema = undefined;
|
|
8
|
-
export declare type OutputSchema =
|
|
8
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.RecordViewDetail;
|
|
9
9
|
export interface CallOptions {
|
|
10
10
|
headers?: Headers;
|
|
11
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
did: string;
|
|
5
5
|
}
|
|
6
6
|
export declare type InputSchema = undefined;
|
|
7
|
-
export declare type OutputSchema =
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.RepoViewDetail;
|
|
8
8
|
export interface CallOptions {
|
|
9
9
|
headers?: Headers;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
}
|
|
5
5
|
export interface InputSchema {
|
|
@@ -8,7 +8,7 @@ export interface InputSchema {
|
|
|
8
8
|
createdBy: string;
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
}
|
|
11
|
-
export declare type OutputSchema =
|
|
11
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
12
12
|
export interface CallOptions {
|
|
13
13
|
headers?: Headers;
|
|
14
14
|
qp?: QueryParams;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
}
|
|
5
5
|
export interface InputSchema {
|
|
@@ -8,7 +8,7 @@ export interface InputSchema {
|
|
|
8
8
|
createdBy: string;
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
}
|
|
11
|
-
export declare type OutputSchema =
|
|
11
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
12
12
|
export interface CallOptions {
|
|
13
13
|
headers?: Headers;
|
|
14
14
|
qp?: QueryParams;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
term?: string;
|
|
5
5
|
limit?: number;
|
|
6
|
-
|
|
6
|
+
cursor?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare type InputSchema = undefined;
|
|
9
9
|
export interface OutputSchema {
|
|
10
10
|
cursor?: string;
|
|
11
|
-
repos:
|
|
11
|
+
repos: ComAtprotoAdminDefs.RepoView[];
|
|
12
12
|
[k: string]: unknown;
|
|
13
13
|
}
|
|
14
14
|
export interface CallOptions {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
5
4
|
export interface QueryParams {
|
|
6
5
|
}
|
|
7
6
|
export interface InputSchema {
|
|
8
|
-
action: 'com.atproto.admin.
|
|
9
|
-
subject:
|
|
7
|
+
action: 'com.atproto.admin.defs#takedown' | 'com.atproto.admin.defs#flag' | 'com.atproto.admin.defs#acknowledge' | (string & {});
|
|
8
|
+
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
10
9
|
$type: string;
|
|
11
10
|
[k: string]: unknown;
|
|
12
11
|
};
|
|
@@ -15,7 +14,7 @@ export interface InputSchema {
|
|
|
15
14
|
createdBy: string;
|
|
16
15
|
[k: string]: unknown;
|
|
17
16
|
}
|
|
18
|
-
export declare type OutputSchema =
|
|
17
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
19
18
|
export interface CallOptions {
|
|
20
19
|
headers?: Headers;
|
|
21
20
|
qp?: QueryParams;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
2
|
export interface QueryParams {
|
|
3
|
-
|
|
3
|
+
handle?: string;
|
|
4
4
|
}
|
|
5
5
|
export declare type InputSchema = undefined;
|
|
6
6
|
export interface OutputSchema {
|
|
7
|
-
|
|
7
|
+
did: string;
|
|
8
8
|
[k: string]: unknown;
|
|
9
9
|
}
|
|
10
10
|
export interface CallOptions {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
handle: 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;
|