@atproto/api 0.6.3 → 0.6.5
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 +3 -0
- package/dist/client/lexicons.d.ts +68 -0
- package/dist/client/types/app/bsky/feed/getActorLikes.d.ts +28 -0
- package/dist/client/types/app/bsky/unspecced/registerPushNotification.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +3 -0
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +1 -0
- package/dist/index.js +225 -119
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/bsky-agent.ts +3 -0
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +77 -0
- package/src/client/types/app/bsky/feed/getActorLikes.ts +53 -0
- package/src/client/types/com/atproto/admin/defs.ts +6 -0
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +2 -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';
|
|
@@ -185,6 +186,7 @@ export * as AppBskyFeedDefs from './types/app/bsky/feed/defs';
|
|
|
185
186
|
export * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator';
|
|
186
187
|
export * as AppBskyFeedGenerator from './types/app/bsky/feed/generator';
|
|
187
188
|
export * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds';
|
|
189
|
+
export * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes';
|
|
188
190
|
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
189
191
|
export * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed';
|
|
190
192
|
export * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator';
|
|
@@ -416,6 +418,7 @@ export declare class FeedNS {
|
|
|
416
418
|
constructor(service: AtpServiceClient);
|
|
417
419
|
describeFeedGenerator(params?: AppBskyFeedDescribeFeedGenerator.QueryParams, opts?: AppBskyFeedDescribeFeedGenerator.CallOptions): Promise<AppBskyFeedDescribeFeedGenerator.Response>;
|
|
418
420
|
getActorFeeds(params?: AppBskyFeedGetActorFeeds.QueryParams, opts?: AppBskyFeedGetActorFeeds.CallOptions): Promise<AppBskyFeedGetActorFeeds.Response>;
|
|
421
|
+
getActorLikes(params?: AppBskyFeedGetActorLikes.QueryParams, opts?: AppBskyFeedGetActorLikes.CallOptions): Promise<AppBskyFeedGetActorLikes.Response>;
|
|
419
422
|
getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
|
|
420
423
|
getFeed(params?: AppBskyFeedGetFeed.QueryParams, opts?: AppBskyFeedGetFeed.CallOptions): Promise<AppBskyFeedGetFeed.Response>;
|
|
421
424
|
getFeedGenerator(params?: AppBskyFeedGetFeedGenerator.QueryParams, opts?: AppBskyFeedGetFeedGenerator.CallOptions): Promise<AppBskyFeedGetFeedGenerator.Response>;
|
|
@@ -15,6 +15,10 @@ export declare const schemaDict: {
|
|
|
15
15
|
type: string;
|
|
16
16
|
ref: string;
|
|
17
17
|
};
|
|
18
|
+
durationInHours: {
|
|
19
|
+
type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
18
22
|
subject: {
|
|
19
23
|
type: string;
|
|
20
24
|
refs: string[];
|
|
@@ -71,6 +75,10 @@ export declare const schemaDict: {
|
|
|
71
75
|
type: string;
|
|
72
76
|
ref: string;
|
|
73
77
|
};
|
|
78
|
+
durationInHours: {
|
|
79
|
+
type: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
74
82
|
subject: {
|
|
75
83
|
type: string;
|
|
76
84
|
refs: string[];
|
|
@@ -129,6 +137,10 @@ export declare const schemaDict: {
|
|
|
129
137
|
type: string;
|
|
130
138
|
ref: string;
|
|
131
139
|
};
|
|
140
|
+
durationInHours: {
|
|
141
|
+
type: string;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
132
144
|
};
|
|
133
145
|
};
|
|
134
146
|
actionReversal: {
|
|
@@ -1144,6 +1156,10 @@ export declare const schemaDict: {
|
|
|
1144
1156
|
reason: {
|
|
1145
1157
|
type: string;
|
|
1146
1158
|
};
|
|
1159
|
+
durationInHours: {
|
|
1160
|
+
type: string;
|
|
1161
|
+
description: string;
|
|
1162
|
+
};
|
|
1147
1163
|
createdBy: {
|
|
1148
1164
|
type: string;
|
|
1149
1165
|
format: string;
|
|
@@ -4482,6 +4498,57 @@ export declare const schemaDict: {
|
|
|
4482
4498
|
};
|
|
4483
4499
|
};
|
|
4484
4500
|
};
|
|
4501
|
+
AppBskyFeedGetActorLikes: {
|
|
4502
|
+
lexicon: number;
|
|
4503
|
+
id: string;
|
|
4504
|
+
defs: {
|
|
4505
|
+
main: {
|
|
4506
|
+
type: string;
|
|
4507
|
+
description: string;
|
|
4508
|
+
parameters: {
|
|
4509
|
+
type: string;
|
|
4510
|
+
required: string[];
|
|
4511
|
+
properties: {
|
|
4512
|
+
actor: {
|
|
4513
|
+
type: string;
|
|
4514
|
+
format: string;
|
|
4515
|
+
};
|
|
4516
|
+
limit: {
|
|
4517
|
+
type: string;
|
|
4518
|
+
minimum: number;
|
|
4519
|
+
maximum: number;
|
|
4520
|
+
default: number;
|
|
4521
|
+
};
|
|
4522
|
+
cursor: {
|
|
4523
|
+
type: string;
|
|
4524
|
+
};
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
output: {
|
|
4528
|
+
encoding: string;
|
|
4529
|
+
schema: {
|
|
4530
|
+
type: string;
|
|
4531
|
+
required: string[];
|
|
4532
|
+
properties: {
|
|
4533
|
+
cursor: {
|
|
4534
|
+
type: string;
|
|
4535
|
+
};
|
|
4536
|
+
feed: {
|
|
4537
|
+
type: string;
|
|
4538
|
+
items: {
|
|
4539
|
+
type: string;
|
|
4540
|
+
ref: string;
|
|
4541
|
+
};
|
|
4542
|
+
};
|
|
4543
|
+
};
|
|
4544
|
+
};
|
|
4545
|
+
};
|
|
4546
|
+
errors: {
|
|
4547
|
+
name: string;
|
|
4548
|
+
}[];
|
|
4549
|
+
};
|
|
4550
|
+
};
|
|
4551
|
+
};
|
|
4485
4552
|
AppBskyFeedGetAuthorFeed: {
|
|
4486
4553
|
lexicon: number;
|
|
4487
4554
|
id: string;
|
|
@@ -6267,6 +6334,7 @@ export declare const ids: {
|
|
|
6267
6334
|
AppBskyFeedDescribeFeedGenerator: string;
|
|
6268
6335
|
AppBskyFeedGenerator: string;
|
|
6269
6336
|
AppBskyFeedGetActorFeeds: string;
|
|
6337
|
+
AppBskyFeedGetActorLikes: string;
|
|
6270
6338
|
AppBskyFeedGetAuthorFeed: string;
|
|
6271
6339
|
AppBskyFeedGetFeed: string;
|
|
6272
6340
|
AppBskyFeedGetFeedGenerator: string;
|
|
@@ -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,16 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
token: string;
|
|
4
|
+
platform: 'ios' | 'android' | 'web';
|
|
5
|
+
endpoint: string;
|
|
6
|
+
appId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
}
|
|
12
|
+
export interface Response {
|
|
13
|
+
success: boolean;
|
|
14
|
+
headers: Headers;
|
|
15
|
+
}
|
|
16
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -6,6 +6,7 @@ import * as ComAtprotoLabelDefs from '../label/defs';
|
|
|
6
6
|
export interface ActionView {
|
|
7
7
|
id: number;
|
|
8
8
|
action: ActionType;
|
|
9
|
+
durationInHours?: number;
|
|
9
10
|
subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
10
11
|
$type: string;
|
|
11
12
|
[k: string]: unknown;
|
|
@@ -25,6 +26,7 @@ export declare function validateActionView(v: unknown): ValidationResult;
|
|
|
25
26
|
export interface ActionViewDetail {
|
|
26
27
|
id: number;
|
|
27
28
|
action: ActionType;
|
|
29
|
+
durationInHours?: number;
|
|
28
30
|
subject: RepoView | RepoViewNotFound | RecordView | RecordViewNotFound | {
|
|
29
31
|
$type: string;
|
|
30
32
|
[k: string]: unknown;
|
|
@@ -44,6 +46,7 @@ export declare function validateActionViewDetail(v: unknown): ValidationResult;
|
|
|
44
46
|
export interface ActionViewCurrent {
|
|
45
47
|
id: number;
|
|
46
48
|
action: ActionType;
|
|
49
|
+
durationInHours?: number;
|
|
47
50
|
[k: string]: unknown;
|
|
48
51
|
}
|
|
49
52
|
export declare function isActionViewCurrent(v: unknown): v is ActionViewCurrent;
|