@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 { AtpAgentType } from '../types';
|
|
2
|
+
export declare function addBsky<TBase extends AtpAgentType>(Base: TBase): {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
like(uri: string, cid: string): Promise<{
|
|
5
|
+
uri: string;
|
|
6
|
+
cid: string;
|
|
7
|
+
}>;
|
|
8
|
+
unlike(likeUri: string): Promise<void>;
|
|
9
|
+
repost(uri: string, cid: string): Promise<{
|
|
10
|
+
uri: string;
|
|
11
|
+
cid: string;
|
|
12
|
+
}>;
|
|
13
|
+
unrepost(repostUri: string): Promise<void>;
|
|
14
|
+
follow(subjectDid: string): Promise<{
|
|
15
|
+
uri: string;
|
|
16
|
+
cid: string;
|
|
17
|
+
}>;
|
|
18
|
+
unfollow(followUri: string): Promise<void>;
|
|
19
|
+
service: URL;
|
|
20
|
+
api: import("..").AtpServiceClient;
|
|
21
|
+
session?: import("../types").AtpSessionData | undefined;
|
|
22
|
+
};
|
|
23
|
+
} & TBase;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AtpAgent } from '../agent';
|
|
2
|
+
import { AppBskyFeedPost, AppBskyRichtextFacet } from '../client';
|
|
3
|
+
import { UnicodeString } from './unicode';
|
|
4
|
+
export declare type Facet = AppBskyRichtextFacet.Main;
|
|
5
|
+
export declare type FacetLink = AppBskyRichtextFacet.Link;
|
|
6
|
+
export declare type FacetMention = AppBskyRichtextFacet.Mention;
|
|
7
|
+
export declare type Entity = AppBskyFeedPost.Entity;
|
|
8
|
+
export interface RichTextProps {
|
|
9
|
+
text: string;
|
|
10
|
+
facets?: Facet[];
|
|
11
|
+
entities?: Entity[];
|
|
12
|
+
}
|
|
13
|
+
export interface RichTextOpts {
|
|
14
|
+
cleanNewlines?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class RichTextSegment {
|
|
17
|
+
text: string;
|
|
18
|
+
facet?: AppBskyRichtextFacet.Main | undefined;
|
|
19
|
+
constructor(text: string, facet?: AppBskyRichtextFacet.Main | undefined);
|
|
20
|
+
get link(): FacetLink | undefined;
|
|
21
|
+
isLink(): boolean;
|
|
22
|
+
get mention(): FacetMention | undefined;
|
|
23
|
+
isMention(): boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare class RichText {
|
|
26
|
+
unicodeText: UnicodeString;
|
|
27
|
+
facets?: Facet[];
|
|
28
|
+
constructor(props: RichTextProps, opts?: RichTextOpts);
|
|
29
|
+
get text(): string;
|
|
30
|
+
get length(): number;
|
|
31
|
+
get graphemeLength(): number;
|
|
32
|
+
clone(): RichText;
|
|
33
|
+
copyInto(target: RichText): void;
|
|
34
|
+
segments(): Generator<RichTextSegment, void, void>;
|
|
35
|
+
insert(insertIndex: number, insertText: string): this;
|
|
36
|
+
delete(removeStartIndex: number, removeEndIndex: number): this;
|
|
37
|
+
detectFacets(agent: AtpAgent): Promise<void>;
|
|
38
|
+
detectFacetsWithoutResolution(): void;
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class UnicodeString {
|
|
2
|
+
utf16: string;
|
|
3
|
+
utf8: Uint8Array;
|
|
4
|
+
private _graphemeLen?;
|
|
5
|
+
constructor(utf16: string);
|
|
6
|
+
get length(): number;
|
|
7
|
+
get graphemeLength(): number;
|
|
8
|
+
slice(start?: number, end?: number): string;
|
|
9
|
+
utf16IndexToUtf8Index(i: number): number;
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CallOptions, Client as XrpcClient, ServiceClient as XrpcServiceClient, QueryParams, XRPCResponse } from '@atproto/xrpc';
|
|
2
|
+
import TypedEmitter from 'typed-emitter';
|
|
3
|
+
import { Client, ServiceClient } from './client';
|
|
4
|
+
export declare class SessionClient extends Client {
|
|
5
|
+
service(serviceUri: string | URL): SessionServiceClient;
|
|
6
|
+
}
|
|
7
|
+
declare const defaultInst: SessionClient;
|
|
8
|
+
export default defaultInst;
|
|
9
|
+
export declare class SessionServiceClient extends ServiceClient {
|
|
10
|
+
xrpc: SessionXrpcServiceClient;
|
|
11
|
+
sessionManager: SessionManager;
|
|
12
|
+
constructor(baseClient: Client, xrpcService: SessionXrpcServiceClient);
|
|
13
|
+
}
|
|
14
|
+
export declare class SessionXrpcServiceClient extends XrpcServiceClient {
|
|
15
|
+
sessionManager: SessionManager;
|
|
16
|
+
refreshing?: Promise<XRPCResponse>;
|
|
17
|
+
constructor(baseClient: XrpcClient, serviceUri: string | URL);
|
|
18
|
+
call(methodNsid: string, params?: QueryParams, data?: unknown, opts?: CallOptions): Promise<XRPCResponse>;
|
|
19
|
+
refresh(opts?: CallOptions): Promise<XRPCResponse>;
|
|
20
|
+
private _refresh;
|
|
21
|
+
}
|
|
22
|
+
declare const SessionManager_base: new () => TypedEmitter<SessionEvents>;
|
|
23
|
+
export declare class SessionManager extends SessionManager_base {
|
|
24
|
+
session?: Session;
|
|
25
|
+
get(): Session | undefined;
|
|
26
|
+
set(session: Session): void;
|
|
27
|
+
unset(): void;
|
|
28
|
+
active(): boolean;
|
|
29
|
+
accessHeaders(): {
|
|
30
|
+
authorization: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
refreshHeaders(): {
|
|
33
|
+
authorization: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}
|
|
36
|
+
export declare type Session = {
|
|
37
|
+
refreshJwt: string;
|
|
38
|
+
accessJwt: string;
|
|
39
|
+
};
|
|
40
|
+
declare type SessionEvents = {
|
|
41
|
+
session: (session?: Session) => void;
|
|
42
|
+
};
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/ad
|
|
|
20
20
|
import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
|
|
21
21
|
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
|
|
22
22
|
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
23
|
+
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
|
|
23
24
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
24
25
|
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
|
|
25
26
|
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
|
|
@@ -38,6 +39,7 @@ import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
|
38
39
|
import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
39
40
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
40
41
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
42
|
+
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
41
43
|
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
42
44
|
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
|
|
43
45
|
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
|
|
@@ -47,10 +49,12 @@ import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/delet
|
|
|
47
49
|
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
|
|
48
50
|
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
|
|
49
51
|
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
|
|
52
|
+
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
50
53
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
51
54
|
import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
|
|
52
55
|
import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
|
|
53
56
|
import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
|
|
57
|
+
import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword'
|
|
54
58
|
import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
|
|
55
59
|
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
|
|
56
60
|
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
@@ -108,6 +112,7 @@ export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/ad
|
|
|
108
112
|
export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
|
|
109
113
|
export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
|
|
110
114
|
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
115
|
+
export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
|
|
111
116
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
112
117
|
export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
|
|
113
118
|
export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
|
|
@@ -126,6 +131,7 @@ export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
|
126
131
|
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
127
132
|
export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
128
133
|
export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
134
|
+
export * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
129
135
|
export * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
130
136
|
export * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
|
|
131
137
|
export * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
|
|
@@ -135,10 +141,12 @@ export * as ComAtprotoServerDeleteSession from './types/com/atproto/server/delet
|
|
|
135
141
|
export * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
|
|
136
142
|
export * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
|
|
137
143
|
export * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
|
|
144
|
+
export * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
138
145
|
export * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
139
146
|
export * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
|
|
140
147
|
export * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
|
|
141
148
|
export * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
|
|
149
|
+
export * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword'
|
|
142
150
|
export * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
|
|
143
151
|
export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
|
|
144
152
|
export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
@@ -190,6 +198,10 @@ export const COM_ATPROTO_ADMIN = {
|
|
|
190
198
|
}
|
|
191
199
|
export const COM_ATPROTO_MODERATION = {
|
|
192
200
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
201
|
+
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
202
|
+
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
203
|
+
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
204
|
+
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
193
205
|
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
194
206
|
}
|
|
195
207
|
|
|
@@ -394,6 +406,17 @@ export class AdminNS {
|
|
|
394
406
|
})
|
|
395
407
|
}
|
|
396
408
|
|
|
409
|
+
updateAccountEmail(
|
|
410
|
+
data?: ComAtprotoAdminUpdateAccountEmail.InputSchema,
|
|
411
|
+
opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions,
|
|
412
|
+
): Promise<ComAtprotoAdminUpdateAccountEmail.Response> {
|
|
413
|
+
return this._service.xrpc
|
|
414
|
+
.call('com.atproto.admin.updateAccountEmail', opts?.qp, data, opts)
|
|
415
|
+
.catch((e) => {
|
|
416
|
+
throw ComAtprotoAdminUpdateAccountEmail.toKnownErr(e)
|
|
417
|
+
})
|
|
418
|
+
}
|
|
419
|
+
|
|
397
420
|
updateAccountHandle(
|
|
398
421
|
data?: ComAtprotoAdminUpdateAccountHandle.InputSchema,
|
|
399
422
|
opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions,
|
|
@@ -588,6 +611,17 @@ export class ServerNS {
|
|
|
588
611
|
})
|
|
589
612
|
}
|
|
590
613
|
|
|
614
|
+
createAppPassword(
|
|
615
|
+
data?: ComAtprotoServerCreateAppPassword.InputSchema,
|
|
616
|
+
opts?: ComAtprotoServerCreateAppPassword.CallOptions,
|
|
617
|
+
): Promise<ComAtprotoServerCreateAppPassword.Response> {
|
|
618
|
+
return this._service.xrpc
|
|
619
|
+
.call('com.atproto.server.createAppPassword', opts?.qp, data, opts)
|
|
620
|
+
.catch((e) => {
|
|
621
|
+
throw ComAtprotoServerCreateAppPassword.toKnownErr(e)
|
|
622
|
+
})
|
|
623
|
+
}
|
|
624
|
+
|
|
591
625
|
createInviteCode(
|
|
592
626
|
data?: ComAtprotoServerCreateInviteCode.InputSchema,
|
|
593
627
|
opts?: ComAtprotoServerCreateInviteCode.CallOptions,
|
|
@@ -676,6 +710,17 @@ export class ServerNS {
|
|
|
676
710
|
})
|
|
677
711
|
}
|
|
678
712
|
|
|
713
|
+
listAppPasswords(
|
|
714
|
+
params?: ComAtprotoServerListAppPasswords.QueryParams,
|
|
715
|
+
opts?: ComAtprotoServerListAppPasswords.CallOptions,
|
|
716
|
+
): Promise<ComAtprotoServerListAppPasswords.Response> {
|
|
717
|
+
return this._service.xrpc
|
|
718
|
+
.call('com.atproto.server.listAppPasswords', params, undefined, opts)
|
|
719
|
+
.catch((e) => {
|
|
720
|
+
throw ComAtprotoServerListAppPasswords.toKnownErr(e)
|
|
721
|
+
})
|
|
722
|
+
}
|
|
723
|
+
|
|
679
724
|
refreshSession(
|
|
680
725
|
data?: ComAtprotoServerRefreshSession.InputSchema,
|
|
681
726
|
opts?: ComAtprotoServerRefreshSession.CallOptions,
|
|
@@ -719,6 +764,17 @@ export class ServerNS {
|
|
|
719
764
|
throw ComAtprotoServerResetPassword.toKnownErr(e)
|
|
720
765
|
})
|
|
721
766
|
}
|
|
767
|
+
|
|
768
|
+
revokeAppPassword(
|
|
769
|
+
data?: ComAtprotoServerRevokeAppPassword.InputSchema,
|
|
770
|
+
opts?: ComAtprotoServerRevokeAppPassword.CallOptions,
|
|
771
|
+
): Promise<ComAtprotoServerRevokeAppPassword.Response> {
|
|
772
|
+
return this._service.xrpc
|
|
773
|
+
.call('com.atproto.server.revokeAppPassword', opts?.qp, data, opts)
|
|
774
|
+
.catch((e) => {
|
|
775
|
+
throw ComAtprotoServerRevokeAppPassword.toKnownErr(e)
|
|
776
|
+
})
|
|
777
|
+
}
|
|
722
778
|
}
|
|
723
779
|
|
|
724
780
|
export class SyncNS {
|
package/src/client/lexicons.ts
CHANGED
|
@@ -364,6 +364,13 @@ export const schemaDict = {
|
|
|
364
364
|
type: 'ref',
|
|
365
365
|
ref: 'lex:com.atproto.admin.defs#moderationDetail',
|
|
366
366
|
},
|
|
367
|
+
labels: {
|
|
368
|
+
type: 'array',
|
|
369
|
+
items: {
|
|
370
|
+
type: 'ref',
|
|
371
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
372
|
+
},
|
|
373
|
+
},
|
|
367
374
|
invitedBy: {
|
|
368
375
|
type: 'ref',
|
|
369
376
|
ref: 'lex:com.atproto.server.defs#inviteCode',
|
|
@@ -461,6 +468,13 @@ export const schemaDict = {
|
|
|
461
468
|
ref: 'lex:com.atproto.admin.defs#blobView',
|
|
462
469
|
},
|
|
463
470
|
},
|
|
471
|
+
labels: {
|
|
472
|
+
type: 'array',
|
|
473
|
+
items: {
|
|
474
|
+
type: 'ref',
|
|
475
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
476
|
+
},
|
|
477
|
+
},
|
|
464
478
|
indexedAt: {
|
|
465
479
|
type: 'string',
|
|
466
480
|
format: 'datetime',
|
|
@@ -1049,13 +1063,40 @@ export const schemaDict = {
|
|
|
1049
1063
|
},
|
|
1050
1064
|
},
|
|
1051
1065
|
},
|
|
1066
|
+
ComAtprotoAdminUpdateAccountEmail: {
|
|
1067
|
+
lexicon: 1,
|
|
1068
|
+
id: 'com.atproto.admin.updateAccountEmail',
|
|
1069
|
+
defs: {
|
|
1070
|
+
main: {
|
|
1071
|
+
type: 'procedure',
|
|
1072
|
+
description: "Administrative action to update an account's email",
|
|
1073
|
+
input: {
|
|
1074
|
+
encoding: 'application/json',
|
|
1075
|
+
schema: {
|
|
1076
|
+
type: 'object',
|
|
1077
|
+
required: ['account', 'email'],
|
|
1078
|
+
properties: {
|
|
1079
|
+
account: {
|
|
1080
|
+
type: 'string',
|
|
1081
|
+
format: 'at-identifier',
|
|
1082
|
+
description: 'The handle or DID of the repo.',
|
|
1083
|
+
},
|
|
1084
|
+
email: {
|
|
1085
|
+
type: 'string',
|
|
1086
|
+
},
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
},
|
|
1090
|
+
},
|
|
1091
|
+
},
|
|
1092
|
+
},
|
|
1052
1093
|
ComAtprotoAdminUpdateAccountHandle: {
|
|
1053
1094
|
lexicon: 1,
|
|
1054
1095
|
id: 'com.atproto.admin.updateAccountHandle',
|
|
1055
1096
|
defs: {
|
|
1056
1097
|
main: {
|
|
1057
1098
|
type: 'procedure',
|
|
1058
|
-
description:
|
|
1099
|
+
description: "Administrative action to update an account's handle",
|
|
1059
1100
|
input: {
|
|
1060
1101
|
encoding: 'application/json',
|
|
1061
1102
|
schema: {
|
|
@@ -1382,16 +1423,37 @@ export const schemaDict = {
|
|
|
1382
1423
|
type: 'string',
|
|
1383
1424
|
knownValues: [
|
|
1384
1425
|
'com.atproto.moderation.defs#reasonSpam',
|
|
1426
|
+
'com.atproto.moderation.defs#reasonViolation',
|
|
1427
|
+
'com.atproto.moderation.defs#reasonMisleading',
|
|
1428
|
+
'com.atproto.moderation.defs#reasonSexual',
|
|
1429
|
+
'com.atproto.moderation.defs#reasonRude',
|
|
1385
1430
|
'com.atproto.moderation.defs#reasonOther',
|
|
1386
1431
|
],
|
|
1387
1432
|
},
|
|
1388
1433
|
reasonSpam: {
|
|
1389
1434
|
type: 'token',
|
|
1390
|
-
description: '
|
|
1435
|
+
description: 'Spam: frequent unwanted promotion, replies, mentions',
|
|
1436
|
+
},
|
|
1437
|
+
reasonViolation: {
|
|
1438
|
+
type: 'token',
|
|
1439
|
+
description: 'Direct violation of server rules, laws, terms of service',
|
|
1440
|
+
},
|
|
1441
|
+
reasonMisleading: {
|
|
1442
|
+
type: 'token',
|
|
1443
|
+
description: 'Misleading identity, affiliation, or content',
|
|
1444
|
+
},
|
|
1445
|
+
reasonSexual: {
|
|
1446
|
+
type: 'token',
|
|
1447
|
+
description: 'Unwanted or mis-labeled sexual content',
|
|
1448
|
+
},
|
|
1449
|
+
reasonRude: {
|
|
1450
|
+
type: 'token',
|
|
1451
|
+
description:
|
|
1452
|
+
'Rude, harassing, explicit, or otherwise unwelcoming behavior',
|
|
1391
1453
|
},
|
|
1392
1454
|
reasonOther: {
|
|
1393
1455
|
type: 'token',
|
|
1394
|
-
description: '
|
|
1456
|
+
description: 'Other: reports not falling under another report category',
|
|
1395
1457
|
},
|
|
1396
1458
|
},
|
|
1397
1459
|
},
|
|
@@ -2013,6 +2075,56 @@ export const schemaDict = {
|
|
|
2013
2075
|
},
|
|
2014
2076
|
},
|
|
2015
2077
|
},
|
|
2078
|
+
ComAtprotoServerCreateAppPassword: {
|
|
2079
|
+
lexicon: 1,
|
|
2080
|
+
id: 'com.atproto.server.createAppPassword',
|
|
2081
|
+
defs: {
|
|
2082
|
+
main: {
|
|
2083
|
+
type: 'procedure',
|
|
2084
|
+
description: 'Create an app-specific password.',
|
|
2085
|
+
input: {
|
|
2086
|
+
encoding: 'application/json',
|
|
2087
|
+
schema: {
|
|
2088
|
+
type: 'object',
|
|
2089
|
+
required: ['name'],
|
|
2090
|
+
properties: {
|
|
2091
|
+
name: {
|
|
2092
|
+
type: 'string',
|
|
2093
|
+
},
|
|
2094
|
+
},
|
|
2095
|
+
},
|
|
2096
|
+
},
|
|
2097
|
+
output: {
|
|
2098
|
+
encoding: 'application/json',
|
|
2099
|
+
schema: {
|
|
2100
|
+
type: 'ref',
|
|
2101
|
+
ref: 'lex:com.atproto.server.createAppPassword#appPassword',
|
|
2102
|
+
},
|
|
2103
|
+
},
|
|
2104
|
+
errors: [
|
|
2105
|
+
{
|
|
2106
|
+
name: 'AccountTakedown',
|
|
2107
|
+
},
|
|
2108
|
+
],
|
|
2109
|
+
},
|
|
2110
|
+
appPassword: {
|
|
2111
|
+
type: 'object',
|
|
2112
|
+
required: ['name', 'password', 'createdAt'],
|
|
2113
|
+
properties: {
|
|
2114
|
+
name: {
|
|
2115
|
+
type: 'string',
|
|
2116
|
+
},
|
|
2117
|
+
password: {
|
|
2118
|
+
type: 'string',
|
|
2119
|
+
},
|
|
2120
|
+
createdAt: {
|
|
2121
|
+
type: 'string',
|
|
2122
|
+
format: 'datetime',
|
|
2123
|
+
},
|
|
2124
|
+
},
|
|
2125
|
+
},
|
|
2126
|
+
},
|
|
2127
|
+
},
|
|
2016
2128
|
ComAtprotoServerCreateInviteCode: {
|
|
2017
2129
|
lexicon: 1,
|
|
2018
2130
|
id: 'com.atproto.server.createInviteCode',
|
|
@@ -2071,9 +2183,12 @@ export const schemaDict = {
|
|
|
2071
2183
|
useCount: {
|
|
2072
2184
|
type: 'integer',
|
|
2073
2185
|
},
|
|
2074
|
-
|
|
2075
|
-
type: '
|
|
2076
|
-
|
|
2186
|
+
forAccounts: {
|
|
2187
|
+
type: 'array',
|
|
2188
|
+
items: {
|
|
2189
|
+
type: 'string',
|
|
2190
|
+
format: 'did',
|
|
2191
|
+
},
|
|
2077
2192
|
},
|
|
2078
2193
|
},
|
|
2079
2194
|
},
|
|
@@ -2087,13 +2202,29 @@ export const schemaDict = {
|
|
|
2087
2202
|
codes: {
|
|
2088
2203
|
type: 'array',
|
|
2089
2204
|
items: {
|
|
2090
|
-
type: '
|
|
2205
|
+
type: 'ref',
|
|
2206
|
+
ref: 'lex:com.atproto.server.createInviteCodes#accountCodes',
|
|
2091
2207
|
},
|
|
2092
2208
|
},
|
|
2093
2209
|
},
|
|
2094
2210
|
},
|
|
2095
2211
|
},
|
|
2096
2212
|
},
|
|
2213
|
+
accountCodes: {
|
|
2214
|
+
type: 'object',
|
|
2215
|
+
required: ['account', 'codes'],
|
|
2216
|
+
properties: {
|
|
2217
|
+
account: {
|
|
2218
|
+
type: 'string',
|
|
2219
|
+
},
|
|
2220
|
+
codes: {
|
|
2221
|
+
type: 'array',
|
|
2222
|
+
items: {
|
|
2223
|
+
type: 'string',
|
|
2224
|
+
},
|
|
2225
|
+
},
|
|
2226
|
+
},
|
|
2227
|
+
},
|
|
2097
2228
|
},
|
|
2098
2229
|
},
|
|
2099
2230
|
ComAtprotoServerCreateSession: {
|
|
@@ -2379,6 +2510,50 @@ export const schemaDict = {
|
|
|
2379
2510
|
},
|
|
2380
2511
|
},
|
|
2381
2512
|
},
|
|
2513
|
+
ComAtprotoServerListAppPasswords: {
|
|
2514
|
+
lexicon: 1,
|
|
2515
|
+
id: 'com.atproto.server.listAppPasswords',
|
|
2516
|
+
defs: {
|
|
2517
|
+
main: {
|
|
2518
|
+
type: 'query',
|
|
2519
|
+
description: 'List all app-specific passwords.',
|
|
2520
|
+
output: {
|
|
2521
|
+
encoding: 'application/json',
|
|
2522
|
+
schema: {
|
|
2523
|
+
type: 'object',
|
|
2524
|
+
required: ['passwords'],
|
|
2525
|
+
properties: {
|
|
2526
|
+
passwords: {
|
|
2527
|
+
type: 'array',
|
|
2528
|
+
items: {
|
|
2529
|
+
type: 'ref',
|
|
2530
|
+
ref: 'lex:com.atproto.server.listAppPasswords#appPassword',
|
|
2531
|
+
},
|
|
2532
|
+
},
|
|
2533
|
+
},
|
|
2534
|
+
},
|
|
2535
|
+
},
|
|
2536
|
+
errors: [
|
|
2537
|
+
{
|
|
2538
|
+
name: 'AccountTakedown',
|
|
2539
|
+
},
|
|
2540
|
+
],
|
|
2541
|
+
},
|
|
2542
|
+
appPassword: {
|
|
2543
|
+
type: 'object',
|
|
2544
|
+
required: ['name', 'createdAt'],
|
|
2545
|
+
properties: {
|
|
2546
|
+
name: {
|
|
2547
|
+
type: 'string',
|
|
2548
|
+
},
|
|
2549
|
+
createdAt: {
|
|
2550
|
+
type: 'string',
|
|
2551
|
+
format: 'datetime',
|
|
2552
|
+
},
|
|
2553
|
+
},
|
|
2554
|
+
},
|
|
2555
|
+
},
|
|
2556
|
+
},
|
|
2382
2557
|
ComAtprotoServerRefreshSession: {
|
|
2383
2558
|
lexicon: 1,
|
|
2384
2559
|
id: 'com.atproto.server.refreshSession',
|
|
@@ -2482,6 +2657,28 @@ export const schemaDict = {
|
|
|
2482
2657
|
},
|
|
2483
2658
|
},
|
|
2484
2659
|
},
|
|
2660
|
+
ComAtprotoServerRevokeAppPassword: {
|
|
2661
|
+
lexicon: 1,
|
|
2662
|
+
id: 'com.atproto.server.revokeAppPassword',
|
|
2663
|
+
defs: {
|
|
2664
|
+
main: {
|
|
2665
|
+
type: 'procedure',
|
|
2666
|
+
description: 'Revoke an app-specific password by name.',
|
|
2667
|
+
input: {
|
|
2668
|
+
encoding: 'application/json',
|
|
2669
|
+
schema: {
|
|
2670
|
+
type: 'object',
|
|
2671
|
+
required: ['name'],
|
|
2672
|
+
properties: {
|
|
2673
|
+
name: {
|
|
2674
|
+
type: 'string',
|
|
2675
|
+
},
|
|
2676
|
+
},
|
|
2677
|
+
},
|
|
2678
|
+
},
|
|
2679
|
+
},
|
|
2680
|
+
},
|
|
2681
|
+
},
|
|
2485
2682
|
ComAtprotoSyncGetBlob: {
|
|
2486
2683
|
lexicon: 1,
|
|
2487
2684
|
id: 'com.atproto.sync.getBlob',
|
|
@@ -4495,6 +4692,15 @@ export const schemaDict = {
|
|
|
4495
4692
|
defs: {
|
|
4496
4693
|
main: {
|
|
4497
4694
|
type: 'query',
|
|
4695
|
+
parameters: {
|
|
4696
|
+
type: 'params',
|
|
4697
|
+
properties: {
|
|
4698
|
+
seenAt: {
|
|
4699
|
+
type: 'string',
|
|
4700
|
+
format: 'datetime',
|
|
4701
|
+
},
|
|
4702
|
+
},
|
|
4703
|
+
},
|
|
4498
4704
|
output: {
|
|
4499
4705
|
encoding: 'application/json',
|
|
4500
4706
|
schema: {
|
|
@@ -4528,6 +4734,10 @@ export const schemaDict = {
|
|
|
4528
4734
|
cursor: {
|
|
4529
4735
|
type: 'string',
|
|
4530
4736
|
},
|
|
4737
|
+
seenAt: {
|
|
4738
|
+
type: 'string',
|
|
4739
|
+
format: 'datetime',
|
|
4740
|
+
},
|
|
4531
4741
|
},
|
|
4532
4742
|
},
|
|
4533
4743
|
output: {
|
|
@@ -4761,6 +4971,7 @@ export const ids = {
|
|
|
4761
4971
|
'com.atproto.admin.reverseModerationAction',
|
|
4762
4972
|
ComAtprotoAdminSearchRepos: 'com.atproto.admin.searchRepos',
|
|
4763
4973
|
ComAtprotoAdminTakeModerationAction: 'com.atproto.admin.takeModerationAction',
|
|
4974
|
+
ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
|
|
4764
4975
|
ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
|
|
4765
4976
|
ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
|
|
4766
4977
|
ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
|
|
@@ -4779,6 +4990,7 @@ export const ids = {
|
|
|
4779
4990
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
4780
4991
|
ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
|
|
4781
4992
|
ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
|
|
4993
|
+
ComAtprotoServerCreateAppPassword: 'com.atproto.server.createAppPassword',
|
|
4782
4994
|
ComAtprotoServerCreateInviteCode: 'com.atproto.server.createInviteCode',
|
|
4783
4995
|
ComAtprotoServerCreateInviteCodes: 'com.atproto.server.createInviteCodes',
|
|
4784
4996
|
ComAtprotoServerCreateSession: 'com.atproto.server.createSession',
|
|
@@ -4789,12 +5001,14 @@ export const ids = {
|
|
|
4789
5001
|
ComAtprotoServerGetAccountInviteCodes:
|
|
4790
5002
|
'com.atproto.server.getAccountInviteCodes',
|
|
4791
5003
|
ComAtprotoServerGetSession: 'com.atproto.server.getSession',
|
|
5004
|
+
ComAtprotoServerListAppPasswords: 'com.atproto.server.listAppPasswords',
|
|
4792
5005
|
ComAtprotoServerRefreshSession: 'com.atproto.server.refreshSession',
|
|
4793
5006
|
ComAtprotoServerRequestAccountDelete:
|
|
4794
5007
|
'com.atproto.server.requestAccountDelete',
|
|
4795
5008
|
ComAtprotoServerRequestPasswordReset:
|
|
4796
5009
|
'com.atproto.server.requestPasswordReset',
|
|
4797
5010
|
ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
|
|
5011
|
+
ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
|
|
4798
5012
|
ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
|
|
4799
5013
|
ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
|
|
4800
5014
|
ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
|
|
@@ -7,7 +7,9 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
9
|
|
|
10
|
-
export interface QueryParams {
|
|
10
|
+
export interface QueryParams {
|
|
11
|
+
seenAt?: string
|
|
12
|
+
}
|
|
11
13
|
|
|
12
14
|
export type InputSchema = undefined
|
|
13
15
|
|
|
@@ -8,6 +8,7 @@ import { CID } from 'multiformats/cid'
|
|
|
8
8
|
import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
|
|
9
9
|
import * as ComAtprotoModerationDefs from '../moderation/defs'
|
|
10
10
|
import * as ComAtprotoServerDefs from '../server/defs'
|
|
11
|
+
import * as ComAtprotoLabelDefs from '../label/defs'
|
|
11
12
|
|
|
12
13
|
export interface ActionView {
|
|
13
14
|
id: number
|
|
@@ -195,6 +196,7 @@ export interface RepoViewDetail {
|
|
|
195
196
|
relatedRecords: {}[]
|
|
196
197
|
indexedAt: string
|
|
197
198
|
moderation: ModerationDetail
|
|
199
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
|
198
200
|
invitedBy?: ComAtprotoServerDefs.InviteCode
|
|
199
201
|
invites?: ComAtprotoServerDefs.InviteCode[]
|
|
200
202
|
[k: string]: unknown
|
|
@@ -257,6 +259,7 @@ export interface RecordViewDetail {
|
|
|
257
259
|
cid: string
|
|
258
260
|
value: {}
|
|
259
261
|
blobs: BlobView[]
|
|
262
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
|
260
263
|
indexedAt: string
|
|
261
264
|
moderation: ModerationDetail
|
|
262
265
|
repo: RepoView
|