@atproto/api 0.6.1 → 0.6.2
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 +18 -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 +41 -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 +69 -37
- package/dist/index.js.map +2 -2
- package/dist/mixins/bsky.d.ts +23 -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 +19 -1
- 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/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
token: string;
|
|
6
|
+
password: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
qp?: QueryParams;
|
|
12
|
+
encoding: 'application/json';
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare class ExpiredTokenError extends XRPCError {
|
|
19
|
+
constructor(src: XRPCError);
|
|
20
|
+
}
|
|
21
|
+
export declare class InvalidTokenError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
3
|
+
export interface View {
|
|
4
|
+
cid: string;
|
|
5
|
+
mimeType: string;
|
|
6
|
+
size: number;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
details?: ImageDetails | VideoDetails | {
|
|
9
|
+
$type: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
moderation?: Moderation;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export declare function isView(v: unknown): v is View;
|
|
16
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
17
|
+
export interface ImageDetails {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function isImageDetails(v: unknown): v is ImageDetails;
|
|
23
|
+
export declare function validateImageDetails(v: unknown): ValidationResult;
|
|
24
|
+
export interface VideoDetails {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
length: number;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export declare function isVideoDetails(v: unknown): v is VideoDetails;
|
|
31
|
+
export declare function validateVideoDetails(v: unknown): ValidationResult;
|
|
32
|
+
export interface Moderation {
|
|
33
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
37
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
4
|
+
import * as ComAtprotoAdminRepo from './repo';
|
|
5
|
+
import * as ComAtprotoAdminRecord from './record';
|
|
6
|
+
import * as ComAtprotoAdminBlob from './blob';
|
|
7
|
+
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
8
|
+
export interface View {
|
|
9
|
+
id: number;
|
|
10
|
+
action: ActionType;
|
|
11
|
+
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
|
|
12
|
+
$type: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
subjectBlobCids: string[];
|
|
16
|
+
reason: string;
|
|
17
|
+
createdBy: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
reversal?: Reversal;
|
|
20
|
+
resolvedReportIds: number[];
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export declare function isView(v: unknown): v is View;
|
|
24
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
25
|
+
export interface ViewDetail {
|
|
26
|
+
id: number;
|
|
27
|
+
action: ActionType;
|
|
28
|
+
subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
|
|
29
|
+
$type: string;
|
|
30
|
+
[k: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
subjectBlobs: ComAtprotoAdminBlob.View[];
|
|
33
|
+
reason: string;
|
|
34
|
+
createdBy: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
reversal?: Reversal;
|
|
37
|
+
resolvedReports: ComAtprotoAdminModerationReport.View[];
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
41
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
42
|
+
export interface ViewCurrent {
|
|
43
|
+
id: number;
|
|
44
|
+
action: ActionType;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare function isViewCurrent(v: unknown): v is ViewCurrent;
|
|
48
|
+
export declare function validateViewCurrent(v: unknown): ValidationResult;
|
|
49
|
+
export interface Reversal {
|
|
50
|
+
reason: string;
|
|
51
|
+
createdBy: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
[k: string]: unknown;
|
|
54
|
+
}
|
|
55
|
+
export declare function isReversal(v: unknown): v is Reversal;
|
|
56
|
+
export declare function validateReversal(v: unknown): ValidationResult;
|
|
57
|
+
export declare type ActionType = 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
|
|
58
|
+
export declare const TAKEDOWN = "com.atproto.admin.moderationAction#takedown";
|
|
59
|
+
export declare const FLAG = "com.atproto.admin.moderationAction#flag";
|
|
60
|
+
export declare const ACKNOWLEDGE = "com.atproto.admin.moderationAction#acknowledge";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoReportReasonType from '../report/reasonType';
|
|
3
|
+
import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
4
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
5
|
+
import * as ComAtprotoAdminRepo from './repo';
|
|
6
|
+
import * as ComAtprotoAdminRecord from './record';
|
|
7
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
8
|
+
export interface View {
|
|
9
|
+
id: number;
|
|
10
|
+
reasonType: ComAtprotoReportReasonType.Main;
|
|
11
|
+
reason?: string;
|
|
12
|
+
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
|
|
13
|
+
$type: string;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
reportedByDid: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
resolvedByActionIds: number[];
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare function isView(v: unknown): v is View;
|
|
22
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
23
|
+
export interface ViewDetail {
|
|
24
|
+
id: number;
|
|
25
|
+
reasonType: ComAtprotoReportReasonType.Main;
|
|
26
|
+
reason?: string;
|
|
27
|
+
subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
|
|
28
|
+
$type: string;
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
reportedByDid: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
resolvedByActions: ComAtprotoAdminModerationAction.View[];
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
37
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoAdminRepo from './repo';
|
|
3
|
+
import * as ComAtprotoAdminBlob from './blob';
|
|
4
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
5
|
+
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
6
|
+
export interface View {
|
|
7
|
+
uri: string;
|
|
8
|
+
cid: string;
|
|
9
|
+
value: {};
|
|
10
|
+
blobCids: string[];
|
|
11
|
+
indexedAt: string;
|
|
12
|
+
moderation: Moderation;
|
|
13
|
+
repo: ComAtprotoAdminRepo.View;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare function isView(v: unknown): v is View;
|
|
17
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
18
|
+
export interface ViewDetail {
|
|
19
|
+
uri: string;
|
|
20
|
+
cid: string;
|
|
21
|
+
value: {};
|
|
22
|
+
blobs: ComAtprotoAdminBlob.View[];
|
|
23
|
+
indexedAt: string;
|
|
24
|
+
moderation: ModerationDetail;
|
|
25
|
+
repo: ComAtprotoAdminRepo.View;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
29
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
30
|
+
export interface Moderation {
|
|
31
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
35
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
36
|
+
export interface ModerationDetail {
|
|
37
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
38
|
+
actions: ComAtprotoAdminModerationAction.View[];
|
|
39
|
+
reports: ComAtprotoAdminModerationReport.View[];
|
|
40
|
+
[k: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
43
|
+
export declare function validateModerationDetail(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
3
|
+
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
4
|
+
export interface View {
|
|
5
|
+
did: string;
|
|
6
|
+
handle: string;
|
|
7
|
+
account?: Account;
|
|
8
|
+
relatedRecords: {}[];
|
|
9
|
+
indexedAt: string;
|
|
10
|
+
moderation: Moderation;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function isView(v: unknown): v is View;
|
|
14
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
15
|
+
export interface ViewDetail {
|
|
16
|
+
did: string;
|
|
17
|
+
handle: string;
|
|
18
|
+
account?: Account;
|
|
19
|
+
relatedRecords: {}[];
|
|
20
|
+
indexedAt: string;
|
|
21
|
+
moderation: ModerationDetail;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
25
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
26
|
+
export interface Account {
|
|
27
|
+
email: string;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export declare function isAccount(v: unknown): v is Account;
|
|
31
|
+
export declare function validateAccount(v: unknown): ValidationResult;
|
|
32
|
+
export interface Moderation {
|
|
33
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
37
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
38
|
+
export interface ModerationDetail {
|
|
39
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
40
|
+
actions: ComAtprotoAdminModerationAction.View[];
|
|
41
|
+
reports: ComAtprotoAdminModerationReport.View[];
|
|
42
|
+
[k: string]: unknown;
|
|
43
|
+
}
|
|
44
|
+
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
45
|
+
export declare function validateModerationDetail(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = string | Uint8Array;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
cid: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
qp?: QueryParams;
|
|
12
|
+
encoding: string;
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
data: OutputSchema;
|
|
18
|
+
}
|
|
19
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
handle?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
did: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface CallOptions {
|
|
11
|
+
headers?: Headers;
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
data: OutputSchema;
|
|
17
|
+
}
|
|
18
|
+
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
|
+
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;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
2
|
-
import * as ComAtprotoLabelDefs from './defs'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoLabelDefs from './defs';
|
|
3
3
|
export interface Labels {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
seq: number;
|
|
5
|
+
labels: ComAtprotoLabelDefs.Label[];
|
|
6
|
+
[k: string]: unknown;
|
|
7
7
|
}
|
|
8
|
-
export declare function isLabels(v: unknown): v is Labels
|
|
9
|
-
export declare function validateLabels(v: unknown): ValidationResult
|
|
8
|
+
export declare function isLabels(v: unknown): v is Labels;
|
|
9
|
+
export declare function validateLabels(v: unknown): ValidationResult;
|
|
10
10
|
export interface Info {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
name: 'OutdatedCursor' | (string & {});
|
|
12
|
+
message?: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
|
-
export declare function isInfo(v: unknown): v is Info
|
|
16
|
-
export declare function validateInfo(v: unknown): ValidationResult
|
|
15
|
+
export declare function isInfo(v: unknown): v is Info;
|
|
16
|
+
export declare function validateInfo(v: unknown): ValidationResult;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
export declare type ReasonType =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
| (string & {})
|
|
9
|
-
export declare const REASONSPAM = 'com.atproto.moderation.defs#reasonSpam'
|
|
10
|
-
export declare const REASONVIOLATION =
|
|
11
|
-
'com.atproto.moderation.defs#reasonViolation'
|
|
12
|
-
export declare const REASONMISLEADING =
|
|
13
|
-
'com.atproto.moderation.defs#reasonMisleading'
|
|
14
|
-
export declare const REASONSEXUAL = 'com.atproto.moderation.defs#reasonSexual'
|
|
15
|
-
export declare const REASONRUDE = 'com.atproto.moderation.defs#reasonRude'
|
|
16
|
-
export declare const REASONOTHER = 'com.atproto.moderation.defs#reasonOther'
|
|
1
|
+
export declare type ReasonType = 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonOther' | (string & {});
|
|
2
|
+
export declare const REASONSPAM = "com.atproto.moderation.defs#reasonSpam";
|
|
3
|
+
export declare const REASONVIOLATION = "com.atproto.moderation.defs#reasonViolation";
|
|
4
|
+
export declare const REASONMISLEADING = "com.atproto.moderation.defs#reasonMisleading";
|
|
5
|
+
export declare const REASONSEXUAL = "com.atproto.moderation.defs#reasonSexual";
|
|
6
|
+
export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
|
|
7
|
+
export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
did: string;
|
|
7
|
+
validate?: boolean;
|
|
8
|
+
writes: (Create | Update | Delete)[];
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
13
|
+
qp?: QueryParams;
|
|
14
|
+
encoding: 'application/json';
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
}
|
|
20
|
+
export declare function toKnownErr(e: any): any;
|
|
21
|
+
export interface Create {
|
|
22
|
+
action: 'create';
|
|
23
|
+
collection: string;
|
|
24
|
+
rkey?: string;
|
|
25
|
+
value: {};
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export declare function isCreate(v: unknown): v is Create;
|
|
29
|
+
export declare function validateCreate(v: unknown): ValidationResult;
|
|
30
|
+
export interface Update {
|
|
31
|
+
action: 'update';
|
|
32
|
+
collection: string;
|
|
33
|
+
rkey: string;
|
|
34
|
+
value: {};
|
|
35
|
+
[k: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
export declare function isUpdate(v: unknown): v is Update;
|
|
38
|
+
export declare function validateUpdate(v: unknown): ValidationResult;
|
|
39
|
+
export interface Delete {
|
|
40
|
+
action: 'delete';
|
|
41
|
+
collection: string;
|
|
42
|
+
rkey: string;
|
|
43
|
+
[k: string]: unknown;
|
|
44
|
+
}
|
|
45
|
+
export declare function isDelete(v: unknown): v is Delete;
|
|
46
|
+
export declare function validateDelete(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
user: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
handle: string;
|
|
8
|
+
did: string;
|
|
9
|
+
didDoc: {};
|
|
10
|
+
collections: string[];
|
|
11
|
+
handleIsCorrect: boolean;
|
|
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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface Main {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
uri: string;
|
|
4
|
+
cid: string;
|
|
5
|
+
[k: string]: unknown;
|
|
6
6
|
}
|
|
7
|
-
export declare function isMain(v: unknown): v is Main
|
|
8
|
-
export declare function validateMain(v: unknown): ValidationResult
|
|
7
|
+
export declare function isMain(v: unknown): v is Main;
|
|
8
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoReportReasonType from './reasonType';
|
|
3
|
+
import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
4
|
+
import * as ComAtprotoRepoRecordRef from '../repo/recordRef';
|
|
5
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
reasonType: ComAtprotoReportReasonType.Main;
|
|
10
|
+
reason?: string;
|
|
11
|
+
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoRecordRef.Main | {
|
|
12
|
+
$type: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface OutputSchema {
|
|
18
|
+
id: number;
|
|
19
|
+
reasonType: ComAtprotoReportReasonType.Main;
|
|
20
|
+
reason?: string;
|
|
21
|
+
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
|
|
22
|
+
$type: string;
|
|
23
|
+
[k: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
reportedByDid: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export interface CallOptions {
|
|
30
|
+
headers?: Headers;
|
|
31
|
+
qp?: QueryParams;
|
|
32
|
+
encoding: 'application/json';
|
|
33
|
+
}
|
|
34
|
+
export interface Response {
|
|
35
|
+
success: boolean;
|
|
36
|
+
headers: Headers;
|
|
37
|
+
data: OutputSchema;
|
|
38
|
+
}
|
|
39
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
export interface Repo {
|
|
3
|
+
did: string;
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
export declare function isRepo(v: unknown): v is Repo;
|
|
7
|
+
export declare function validateRepo(v: unknown): ValidationResult;
|
|
8
|
+
export interface Record {
|
|
9
|
+
did: string;
|
|
10
|
+
collection: string;
|
|
11
|
+
rkey: string;
|
|
12
|
+
cid?: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
16
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
17
|
+
export interface RecordRef {
|
|
18
|
+
uri: string;
|
|
19
|
+
cid: string;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function isRecordRef(v: unknown): v is RecordRef;
|
|
23
|
+
export declare function validateRecordRef(v: unknown): ValidationResult;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ValidationResult } from '@atproto/lexicon'
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
export interface InviteCode {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
code: string;
|
|
4
|
+
available: number;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
forAccount: string;
|
|
7
|
+
createdBy: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
uses: InviteCodeUse[];
|
|
10
|
+
[k: string]: unknown;
|
|
11
11
|
}
|
|
12
|
-
export declare function isInviteCode(v: unknown): v is InviteCode
|
|
13
|
-
export declare function validateInviteCode(v: unknown): ValidationResult
|
|
12
|
+
export declare function isInviteCode(v: unknown): v is InviteCode;
|
|
13
|
+
export declare function validateInviteCode(v: unknown): ValidationResult;
|
|
14
14
|
export interface InviteCodeUse {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
usedBy: string;
|
|
16
|
+
usedAt: string;
|
|
17
|
+
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
|
-
export declare function isInviteCodeUse(v: unknown): v is InviteCodeUse
|
|
20
|
-
export declare function validateInviteCodeUse(v: unknown): ValidationResult
|
|
19
|
+
export declare function isInviteCodeUse(v: unknown): v is InviteCodeUse;
|
|
20
|
+
export declare function validateInviteCodeUse(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
inviteCodeRequired?: boolean;
|
|
8
|
+
availableUserDomains: string[];
|
|
9
|
+
links?: Links;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
data: OutputSchema;
|
|
19
|
+
}
|
|
20
|
+
export declare function toKnownErr(e: any): any;
|
|
21
|
+
export interface Links {
|
|
22
|
+
privacyPolicy?: string;
|
|
23
|
+
termsOfService?: string;
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
export declare function isLinks(v: unknown): v is Links;
|
|
27
|
+
export declare function validateLinks(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
identifier?: string;
|
|
6
|
+
password: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
accessJwt: string;
|
|
11
|
+
refreshJwt: string;
|
|
12
|
+
handle: string;
|
|
13
|
+
did: string;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface CallOptions {
|
|
17
|
+
headers?: Headers;
|
|
18
|
+
qp?: QueryParams;
|
|
19
|
+
encoding: 'application/json';
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare class AccountTakedownError extends XRPCError {
|
|
27
|
+
constructor(src: XRPCError);
|
|
28
|
+
}
|
|
29
|
+
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,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export declare type InputSchema = undefined;
|
|
5
|
+
export interface OutputSchema {
|
|
6
|
+
handle: string;
|
|
7
|
+
did: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface CallOptions {
|
|
11
|
+
headers?: Headers;
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
data: OutputSchema;
|
|
17
|
+
}
|
|
18
|
+
export declare function toKnownErr(e: any): any;
|