@atproto/api 0.2.6 → 0.2.8
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 +4 -4
- package/dist/agent.d.ts +27 -0
- package/dist/bsky-agent.d.ts +43 -0
- package/dist/client/index.d.ts +16 -0
- package/dist/client/lexicons.d.ts +207 -2
- package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +16 -0
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +19 -0
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +21 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts +10 -0
- 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/searchActors.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +20 -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 +31 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +28 -0
- package/dist/client/types/app/bsky/embed/record.d.ts +41 -0
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +24 -0
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getLikes.d.ts +34 -0
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +26 -0
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +25 -0
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
- package/dist/client/types/app/bsky/feed/like.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/post.d.ts +43 -0
- package/dist/client/types/app/bsky/feed/repost.d.ts +9 -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/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/confirmation.d.ts +11 -0
- package/dist/client/types/app/bsky/graph/follow.d.ts +8 -0
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +23 -0
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +23 -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/getMutes.d.ts +21 -0
- package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/muteActor.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmuteActor.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +18 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
- package/dist/client/types/app/bsky/richtext/facet.d.ts +30 -0
- 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/app/bsky/unspecced/getPopular.d.ts +21 -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/defs.d.ts +3 -0
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +23 -0
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +16 -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/admin/resolveModerationReports.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/updateAccountEmail.d.ts +18 -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/identity/resolveHandle.d.ts +18 -0
- 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 +7 -0
- package/dist/client/types/com/atproto/repo/applyWrites.d.ts +47 -0
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
- package/dist/client/types/com/atproto/repo/createRecord.d.ts +31 -0
- package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +24 -0
- package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/describeRepo.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +23 -0
- package/dist/client/types/com/atproto/repo/putRecord.d.ts +32 -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 +8 -0
- package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +20 -0
- 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/createAccount.d.ts +44 -0
- package/dist/client/types/com/atproto/server/createAppPassword.d.ts +31 -0
- package/dist/client/types/com/atproto/server/createInviteCodes.d.ts +10 -2
- package/dist/client/types/com/atproto/server/deleteAccount.d.ts +25 -0
- package/dist/client/types/com/atproto/server/deleteSession.d.ts +13 -0
- package/dist/client/types/com/atproto/server/describeServer.d.ts +27 -0
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
- package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +28 -0
- package/dist/client/types/com/atproto/server/refreshSession.d.ts +24 -0
- package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +13 -0
- 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/server/revokeAppPassword.d.ts +17 -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/getBlob.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/getHead.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +17 -0
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +16 -0
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +13 -0
- package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +13 -0
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +58 -0
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/client/util.d.ts +2 -0
- package/dist/helpers/bsky.d.ts +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +517 -182
- package/dist/index.js.map +4 -4
- package/dist/mixins/bsky.d.ts +23 -0
- 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/sanitize.d.ts +4 -0
- package/dist/rich-text/unicode.d.ts +11 -0
- package/dist/session.d.ts +42 -0
- package/package.json +1 -1
- package/src/client/index.ts +56 -0
- package/src/client/lexicons.ts +221 -7
- package/src/client/types/app/bsky/notification/getUnreadCount.ts +3 -1
- package/src/client/types/app/bsky/notification/listNotifications.ts +1 -0
- package/src/client/types/com/atproto/admin/defs.ts +3 -0
- package/src/client/types/com/atproto/admin/updateAccountEmail.ts +34 -0
- package/src/client/types/com/atproto/moderation/defs.ts +14 -2
- package/src/client/types/com/atproto/server/createAppPassword.ts +64 -0
- package/src/client/types/com/atproto/server/createInviteCodes.ts +23 -2
- package/src/client/types/com/atproto/server/listAppPasswords.ts +58 -0
- package/src/client/types/com/atproto/server/revokeAppPassword.ts +32 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
subject?: string;
|
|
5
|
+
resolved?: boolean;
|
|
6
|
+
limit?: number;
|
|
7
|
+
cursor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
cursor?: string;
|
|
12
|
+
reports: ComAtprotoAdminDefs.ReportView[];
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
headers?: Headers;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
uri: string;
|
|
5
|
+
cid?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.RecordViewDetail;
|
|
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,16 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
did: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.RepoViewDetail;
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
}
|
|
11
|
+
export interface Response {
|
|
12
|
+
success: boolean;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
data: OutputSchema;
|
|
15
|
+
}
|
|
16
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -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,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
actionId: number;
|
|
7
|
+
reportIds: number[];
|
|
8
|
+
createdBy: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
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,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
id: number;
|
|
7
|
+
reason: string;
|
|
8
|
+
createdBy: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
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,18 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
account: string;
|
|
6
|
+
email: 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 function toKnownErr(e: any): any;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoModerationDefs from './defs';
|
|
3
|
+
import * as ComAtprotoAdminDefs from '../admin/defs';
|
|
4
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
}
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
9
|
+
reason?: string;
|
|
10
|
+
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
11
|
+
$type: string;
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
id: number;
|
|
18
|
+
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
19
|
+
reason?: string;
|
|
20
|
+
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
21
|
+
$type: string;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
reportedBy: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface CallOptions {
|
|
29
|
+
headers?: Headers;
|
|
30
|
+
qp?: QueryParams;
|
|
31
|
+
encoding: 'application/json';
|
|
32
|
+
}
|
|
33
|
+
export interface Response {
|
|
34
|
+
success: boolean;
|
|
35
|
+
headers: Headers;
|
|
36
|
+
data: OutputSchema;
|
|
37
|
+
}
|
|
38
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,7 @@
|
|
|
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,47 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
repo: string;
|
|
7
|
+
validate?: boolean;
|
|
8
|
+
writes: (Create | Update | Delete)[];
|
|
9
|
+
swapCommit?: 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
|
+
}
|
|
21
|
+
export declare class InvalidSwapError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
25
|
+
export interface Create {
|
|
26
|
+
collection: string;
|
|
27
|
+
rkey?: string;
|
|
28
|
+
value: {};
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
export declare function isCreate(v: unknown): v is Create;
|
|
32
|
+
export declare function validateCreate(v: unknown): ValidationResult;
|
|
33
|
+
export interface Update {
|
|
34
|
+
collection: string;
|
|
35
|
+
rkey: string;
|
|
36
|
+
value: {};
|
|
37
|
+
[k: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
export declare function isUpdate(v: unknown): v is Update;
|
|
40
|
+
export declare function validateUpdate(v: unknown): ValidationResult;
|
|
41
|
+
export interface Delete {
|
|
42
|
+
collection: string;
|
|
43
|
+
rkey: string;
|
|
44
|
+
[k: string]: unknown;
|
|
45
|
+
}
|
|
46
|
+
export declare function isDelete(v: unknown): v is Delete;
|
|
47
|
+
export declare function validateDelete(v: unknown): ValidationResult;
|
|
@@ -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,31 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
repo: string;
|
|
6
|
+
collection: string;
|
|
7
|
+
rkey?: string;
|
|
8
|
+
validate?: boolean;
|
|
9
|
+
record: {};
|
|
10
|
+
swapCommit?: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
uri: string;
|
|
15
|
+
cid: string;
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
headers?: Headers;
|
|
20
|
+
qp?: QueryParams;
|
|
21
|
+
encoding: 'application/json';
|
|
22
|
+
}
|
|
23
|
+
export interface Response {
|
|
24
|
+
success: boolean;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
data: OutputSchema;
|
|
27
|
+
}
|
|
28
|
+
export declare class InvalidSwapError extends XRPCError {
|
|
29
|
+
constructor(src: XRPCError);
|
|
30
|
+
}
|
|
31
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
repo: string;
|
|
6
|
+
collection: string;
|
|
7
|
+
rkey: string;
|
|
8
|
+
swapRecord?: string;
|
|
9
|
+
swapCommit?: 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
|
+
}
|
|
21
|
+
export declare class InvalidSwapError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
repo: 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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
repo: string;
|
|
4
|
+
collection: string;
|
|
5
|
+
rkey: string;
|
|
6
|
+
cid?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
uri: string;
|
|
11
|
+
cid?: string;
|
|
12
|
+
value: {};
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
headers?: Headers;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare function toKnownErr(e: any): any;
|