@atproto/api 0.6.4 → 0.6.6
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/bsky-agent.d.ts +1 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/lexicons.d.ts +87 -0
- package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -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/searchTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +40 -0
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
- package/dist/client/types/app/bsky/feed/getActorLikes.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/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/confirmation.d.ts +11 -0
- 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/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/notification/registerPush.d.ts +20 -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/registerPushNotification.d.ts +16 -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/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/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/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/updateRepo.d.ts +15 -0
- package/dist/helpers/bsky.d.ts +20 -0
- package/dist/index.js +226 -85
- package/dist/index.js.map +4 -4
- package/dist/mixins/bsky.d.ts +23 -0
- package/dist/rich-text/sanitize.d.ts +4 -0
- package/dist/session.d.ts +42 -0
- package/package.json +1 -1
- package/src/bsky-agent.ts +3 -0
- package/src/client/index.ts +26 -0
- package/src/client/lexicons.ts +93 -0
- package/src/client/types/app/bsky/feed/getActorLikes.ts +53 -0
- package/src/client/types/app/bsky/notification/registerPush.ts +35 -0
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/bsky-agent.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare class BskyAgent extends AtpAgent {
|
|
|
4
4
|
get app(): import("./client").AppNS;
|
|
5
5
|
getTimeline: typeof this.api.app.bsky.feed.getTimeline;
|
|
6
6
|
getAuthorFeed: typeof this.api.app.bsky.feed.getAuthorFeed;
|
|
7
|
+
getActorLikes: typeof this.api.app.bsky.feed.getActorLikes;
|
|
7
8
|
getPostThread: typeof this.api.app.bsky.feed.getPostThread;
|
|
8
9
|
getPost: typeof this.api.app.bsky.feed.post.get;
|
|
9
10
|
getPosts: typeof this.api.app.bsky.feed.getPosts;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searc
|
|
|
68
68
|
import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator';
|
|
69
69
|
import * as AppBskyFeedGenerator from './types/app/bsky/feed/generator';
|
|
70
70
|
import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds';
|
|
71
|
+
import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes';
|
|
71
72
|
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
72
73
|
import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed';
|
|
73
74
|
import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator';
|
|
@@ -98,6 +99,7 @@ import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor';
|
|
|
98
99
|
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList';
|
|
99
100
|
import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount';
|
|
100
101
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
|
|
102
|
+
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
|
|
101
103
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
102
104
|
import * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels';
|
|
103
105
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
|
|
@@ -185,6 +187,7 @@ export * as AppBskyFeedDefs from './types/app/bsky/feed/defs';
|
|
|
185
187
|
export * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator';
|
|
186
188
|
export * as AppBskyFeedGenerator from './types/app/bsky/feed/generator';
|
|
187
189
|
export * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds';
|
|
190
|
+
export * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes';
|
|
188
191
|
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
189
192
|
export * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed';
|
|
190
193
|
export * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator';
|
|
@@ -216,6 +219,7 @@ export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor';
|
|
|
216
219
|
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList';
|
|
217
220
|
export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount';
|
|
218
221
|
export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
|
|
222
|
+
export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
|
|
219
223
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
220
224
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet';
|
|
221
225
|
export * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels';
|
|
@@ -416,6 +420,7 @@ export declare class FeedNS {
|
|
|
416
420
|
constructor(service: AtpServiceClient);
|
|
417
421
|
describeFeedGenerator(params?: AppBskyFeedDescribeFeedGenerator.QueryParams, opts?: AppBskyFeedDescribeFeedGenerator.CallOptions): Promise<AppBskyFeedDescribeFeedGenerator.Response>;
|
|
418
422
|
getActorFeeds(params?: AppBskyFeedGetActorFeeds.QueryParams, opts?: AppBskyFeedGetActorFeeds.CallOptions): Promise<AppBskyFeedGetActorFeeds.Response>;
|
|
423
|
+
getActorLikes(params?: AppBskyFeedGetActorLikes.QueryParams, opts?: AppBskyFeedGetActorLikes.CallOptions): Promise<AppBskyFeedGetActorLikes.Response>;
|
|
419
424
|
getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
|
|
420
425
|
getFeed(params?: AppBskyFeedGetFeed.QueryParams, opts?: AppBskyFeedGetFeed.CallOptions): Promise<AppBskyFeedGetFeed.Response>;
|
|
421
426
|
getFeedGenerator(params?: AppBskyFeedGetFeedGenerator.QueryParams, opts?: AppBskyFeedGetFeedGenerator.CallOptions): Promise<AppBskyFeedGetFeedGenerator.Response>;
|
|
@@ -619,6 +624,7 @@ export declare class NotificationNS {
|
|
|
619
624
|
constructor(service: AtpServiceClient);
|
|
620
625
|
getUnreadCount(params?: AppBskyNotificationGetUnreadCount.QueryParams, opts?: AppBskyNotificationGetUnreadCount.CallOptions): Promise<AppBskyNotificationGetUnreadCount.Response>;
|
|
621
626
|
listNotifications(params?: AppBskyNotificationListNotifications.QueryParams, opts?: AppBskyNotificationListNotifications.CallOptions): Promise<AppBskyNotificationListNotifications.Response>;
|
|
627
|
+
registerPush(data?: AppBskyNotificationRegisterPush.InputSchema, opts?: AppBskyNotificationRegisterPush.CallOptions): Promise<AppBskyNotificationRegisterPush.Response>;
|
|
622
628
|
updateSeen(data?: AppBskyNotificationUpdateSeen.InputSchema, opts?: AppBskyNotificationUpdateSeen.CallOptions): Promise<AppBskyNotificationUpdateSeen.Response>;
|
|
623
629
|
}
|
|
624
630
|
export declare class RichtextNS {
|
|
@@ -3301,6 +3301,7 @@ export declare const schemaDict: {
|
|
|
3301
3301
|
};
|
|
3302
3302
|
repoOp: {
|
|
3303
3303
|
type: string;
|
|
3304
|
+
description: string;
|
|
3304
3305
|
required: string[];
|
|
3305
3306
|
nullable: string[];
|
|
3306
3307
|
properties: {
|
|
@@ -4498,6 +4499,57 @@ export declare const schemaDict: {
|
|
|
4498
4499
|
};
|
|
4499
4500
|
};
|
|
4500
4501
|
};
|
|
4502
|
+
AppBskyFeedGetActorLikes: {
|
|
4503
|
+
lexicon: number;
|
|
4504
|
+
id: string;
|
|
4505
|
+
defs: {
|
|
4506
|
+
main: {
|
|
4507
|
+
type: string;
|
|
4508
|
+
description: string;
|
|
4509
|
+
parameters: {
|
|
4510
|
+
type: string;
|
|
4511
|
+
required: string[];
|
|
4512
|
+
properties: {
|
|
4513
|
+
actor: {
|
|
4514
|
+
type: string;
|
|
4515
|
+
format: string;
|
|
4516
|
+
};
|
|
4517
|
+
limit: {
|
|
4518
|
+
type: string;
|
|
4519
|
+
minimum: number;
|
|
4520
|
+
maximum: number;
|
|
4521
|
+
default: number;
|
|
4522
|
+
};
|
|
4523
|
+
cursor: {
|
|
4524
|
+
type: string;
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
};
|
|
4528
|
+
output: {
|
|
4529
|
+
encoding: string;
|
|
4530
|
+
schema: {
|
|
4531
|
+
type: string;
|
|
4532
|
+
required: string[];
|
|
4533
|
+
properties: {
|
|
4534
|
+
cursor: {
|
|
4535
|
+
type: string;
|
|
4536
|
+
};
|
|
4537
|
+
feed: {
|
|
4538
|
+
type: string;
|
|
4539
|
+
items: {
|
|
4540
|
+
type: string;
|
|
4541
|
+
ref: string;
|
|
4542
|
+
};
|
|
4543
|
+
};
|
|
4544
|
+
};
|
|
4545
|
+
};
|
|
4546
|
+
};
|
|
4547
|
+
errors: {
|
|
4548
|
+
name: string;
|
|
4549
|
+
}[];
|
|
4550
|
+
};
|
|
4551
|
+
};
|
|
4552
|
+
};
|
|
4501
4553
|
AppBskyFeedGetAuthorFeed: {
|
|
4502
4554
|
lexicon: number;
|
|
4503
4555
|
id: string;
|
|
@@ -5949,6 +6001,39 @@ export declare const schemaDict: {
|
|
|
5949
6001
|
};
|
|
5950
6002
|
};
|
|
5951
6003
|
};
|
|
6004
|
+
AppBskyNotificationRegisterPush: {
|
|
6005
|
+
lexicon: number;
|
|
6006
|
+
id: string;
|
|
6007
|
+
defs: {
|
|
6008
|
+
main: {
|
|
6009
|
+
type: string;
|
|
6010
|
+
description: string;
|
|
6011
|
+
input: {
|
|
6012
|
+
encoding: string;
|
|
6013
|
+
schema: {
|
|
6014
|
+
type: string;
|
|
6015
|
+
required: string[];
|
|
6016
|
+
properties: {
|
|
6017
|
+
serviceDid: {
|
|
6018
|
+
type: string;
|
|
6019
|
+
format: string;
|
|
6020
|
+
};
|
|
6021
|
+
token: {
|
|
6022
|
+
type: string;
|
|
6023
|
+
};
|
|
6024
|
+
platform: {
|
|
6025
|
+
type: string;
|
|
6026
|
+
knownValues: string[];
|
|
6027
|
+
};
|
|
6028
|
+
appId: {
|
|
6029
|
+
type: string;
|
|
6030
|
+
};
|
|
6031
|
+
};
|
|
6032
|
+
};
|
|
6033
|
+
};
|
|
6034
|
+
};
|
|
6035
|
+
};
|
|
6036
|
+
};
|
|
5952
6037
|
AppBskyNotificationUpdateSeen: {
|
|
5953
6038
|
lexicon: number;
|
|
5954
6039
|
id: string;
|
|
@@ -6283,6 +6368,7 @@ export declare const ids: {
|
|
|
6283
6368
|
AppBskyFeedDescribeFeedGenerator: string;
|
|
6284
6369
|
AppBskyFeedGenerator: string;
|
|
6285
6370
|
AppBskyFeedGetActorFeeds: string;
|
|
6371
|
+
AppBskyFeedGetActorLikes: string;
|
|
6286
6372
|
AppBskyFeedGetAuthorFeed: string;
|
|
6287
6373
|
AppBskyFeedGetFeed: string;
|
|
6288
6374
|
AppBskyFeedGetFeedGenerator: string;
|
|
@@ -6314,6 +6400,7 @@ export declare const ids: {
|
|
|
6314
6400
|
AppBskyGraphUnmuteActorList: string;
|
|
6315
6401
|
AppBskyNotificationGetUnreadCount: string;
|
|
6316
6402
|
AppBskyNotificationListNotifications: string;
|
|
6403
|
+
AppBskyNotificationRegisterPush: string;
|
|
6317
6404
|
AppBskyNotificationUpdateSeen: string;
|
|
6318
6405
|
AppBskyRichtextFacet: string;
|
|
6319
6406
|
AppBskyUnspeccedApplyLabels: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
handle: string;
|
|
7
|
+
recoveryKey?: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
handle: string;
|
|
12
|
+
did: string;
|
|
13
|
+
declaration: AppBskySystemDeclRef.Main;
|
|
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 InvalidHandleError extends XRPCError {
|
|
27
|
+
constructor(src: XRPCError);
|
|
28
|
+
}
|
|
29
|
+
export declare class HandleNotAvailableError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
32
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
3
|
+
export interface Main {
|
|
4
|
+
did: string;
|
|
5
|
+
declarationCid: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare function isMain(v: unknown): v is Main;
|
|
9
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
10
|
+
export interface WithInfo {
|
|
11
|
+
did: string;
|
|
12
|
+
declaration: AppBskySystemDeclRef.Main;
|
|
13
|
+
handle: string;
|
|
14
|
+
displayName?: string;
|
|
15
|
+
avatar?: string;
|
|
16
|
+
viewer?: ViewerState;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare function isWithInfo(v: unknown): v is WithInfo;
|
|
20
|
+
export declare function validateWithInfo(v: unknown): ValidationResult;
|
|
21
|
+
export interface ViewerState {
|
|
22
|
+
muted?: boolean;
|
|
23
|
+
following?: string;
|
|
24
|
+
followedBy?: string;
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
28
|
+
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyActorProfile from './profile';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
term?: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
before?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
users: AppBskyActorProfile.ViewBasic[];
|
|
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,20 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyActorRef from './ref';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
term?: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
users: AppBskyActorRef.WithInfo[];
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import { BlobRef } from '@atproto/lexicon';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
displayName?: string;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
avatar?: BlobRef | null;
|
|
9
|
+
banner?: BlobRef | null;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
uri: string;
|
|
14
|
+
cid: string;
|
|
15
|
+
record: {};
|
|
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 InvalidBlobError extends XRPCError {
|
|
29
|
+
constructor(src: XRPCError);
|
|
30
|
+
}
|
|
31
|
+
export declare class BlobTooLargeError extends XRPCError {
|
|
32
|
+
constructor(src: XRPCError);
|
|
33
|
+
}
|
|
34
|
+
export declare class InvalidMimeTypeError extends XRPCError {
|
|
35
|
+
constructor(src: XRPCError);
|
|
36
|
+
}
|
|
37
|
+
export declare class InvalidImageDimensionsError extends XRPCError {
|
|
38
|
+
constructor(src: XRPCError);
|
|
39
|
+
}
|
|
40
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyFeedPost from './post';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
export interface Main {
|
|
5
|
+
post: AppBskyFeedPost.View;
|
|
6
|
+
reply?: ReplyRef;
|
|
7
|
+
reason?: ReasonRepost | {
|
|
8
|
+
$type: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function isMain(v: unknown): v is Main;
|
|
14
|
+
export declare function validateMain(v: unknown): ValidationResult;
|
|
15
|
+
export interface ReplyRef {
|
|
16
|
+
root: AppBskyFeedPost.View;
|
|
17
|
+
parent: AppBskyFeedPost.View;
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export declare function isReplyRef(v: unknown): v is ReplyRef;
|
|
21
|
+
export declare function validateReplyRef(v: unknown): ValidationResult;
|
|
22
|
+
export interface ReasonRepost {
|
|
23
|
+
by: AppBskyActorRef.WithInfo;
|
|
24
|
+
indexedAt: string;
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
export declare function isReasonRepost(v: unknown): v is ReasonRepost;
|
|
28
|
+
export declare function validateReasonRepost(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
actor: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
feed: AppBskyFeedDefs.FeedViewPost[];
|
|
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 class BlockedActorError extends XRPCError {
|
|
23
|
+
constructor(src: XRPCError);
|
|
24
|
+
}
|
|
25
|
+
export declare class BlockedByActorError extends XRPCError {
|
|
26
|
+
constructor(src: XRPCError);
|
|
27
|
+
}
|
|
28
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
uri: string;
|
|
6
|
+
cid?: string;
|
|
7
|
+
direction?: 'up' | 'down';
|
|
8
|
+
limit?: number;
|
|
9
|
+
before?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type InputSchema = undefined;
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
uri: string;
|
|
14
|
+
cid?: string;
|
|
15
|
+
cursor?: string;
|
|
16
|
+
votes: Vote[];
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface CallOptions {
|
|
20
|
+
headers?: Headers;
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
28
|
+
export interface Vote {
|
|
29
|
+
direction: 'up' | 'down';
|
|
30
|
+
indexedAt: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
actor: AppBskyActorRef.WithInfo;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare function isVote(v: unknown): v is Vote;
|
|
36
|
+
export declare function validateVote(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
feed: 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,25 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
7
|
+
direction: 'up' | 'down' | 'none';
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
upvote?: string;
|
|
12
|
+
downvote?: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
headers?: Headers;
|
|
17
|
+
qp?: QueryParams;
|
|
18
|
+
encoding: 'application/json';
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
+
export interface Record {
|
|
4
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
9
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
feed: 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,10 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
|
+
export interface Record {
|
|
4
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
5
|
+
direction: 'up' | 'down';
|
|
6
|
+
createdAt: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAIN = "app.bsky.graph.assertCreator#main";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAIN = "app.bsky.graph.assertMember#main";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
+
export interface Record {
|
|
4
|
+
assertion: string;
|
|
5
|
+
subject: AppBskyActorRef.Main;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
10
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
4
|
+
export interface Record {
|
|
5
|
+
originator: AppBskyActorRef.Main;
|
|
6
|
+
assertion: ComAtprotoRepoStrongRef.Main;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
11
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
author?: string;
|
|
6
|
+
subject?: string;
|
|
7
|
+
assertion?: string;
|
|
8
|
+
confirmed?: boolean;
|
|
9
|
+
limit?: number;
|
|
10
|
+
before?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type InputSchema = undefined;
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
cursor?: string;
|
|
15
|
+
assertions: Assertion[];
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
headers?: Headers;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
27
|
+
export interface Assertion {
|
|
28
|
+
uri: string;
|
|
29
|
+
cid: string;
|
|
30
|
+
assertion: string;
|
|
31
|
+
confirmation?: Confirmation;
|
|
32
|
+
author: AppBskyActorRef.WithInfo;
|
|
33
|
+
subject: AppBskyActorRef.WithInfo;
|
|
34
|
+
indexedAt: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
[k: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
export declare function isAssertion(v: unknown): v is Assertion;
|
|
39
|
+
export declare function validateAssertion(v: unknown): ValidationResult;
|
|
40
|
+
export interface Confirmation {
|
|
41
|
+
uri: string;
|
|
42
|
+
cid: string;
|
|
43
|
+
indexedAt: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare function isConfirmation(v: unknown): v is Confirmation;
|
|
48
|
+
export declare function validateConfirmation(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyGraphDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
lists: AppBskyGraphDefs.ListView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import * as AppBskyActorRef from '../actor/ref';
|
|
4
|
+
import * as AppBskySystemDeclRef from '../system/declRef';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
actor: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
before?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type InputSchema = undefined;
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
subject: AppBskyActorRef.WithInfo;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
members: Member[];
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
headers?: Headers;
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
export interface Member {
|
|
27
|
+
did: string;
|
|
28
|
+
declaration: AppBskySystemDeclRef.Main;
|
|
29
|
+
handle: string;
|
|
30
|
+
displayName?: string;
|
|
31
|
+
createdAt?: string;
|
|
32
|
+
indexedAt: string;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare function isMember(v: unknown): v is Member;
|
|
36
|
+
export declare function validateMember(v: unknown): ValidationResult;
|