@atproto/api 0.3.6 → 0.3.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/dist/client/index.d.ts +45 -0
- package/dist/client/lexicons.d.ts +471 -3
- package/dist/client/types/app/bsky/actor/defs.d.ts +8 -1
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts +47 -2
- package/dist/client/types/app/bsky/feed/getFeedGenerators.d.ts +19 -0
- package/dist/client/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +18 -0
- package/dist/index.js +1148 -345
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/client/index.ts +18 -0
- package/src/client/lexicons.ts +36 -5
- package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +34 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -5,6 +5,7 @@ import * as AppBskyEmbedExternal from '../embed/external';
|
|
|
5
5
|
import * as AppBskyEmbedRecord from '../embed/record';
|
|
6
6
|
import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia';
|
|
7
7
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
|
|
8
|
+
import * as AppBskyRichtextFacet from '../richtext/facet';
|
|
8
9
|
export interface PostView {
|
|
9
10
|
uri: string;
|
|
10
11
|
cid: string;
|
|
@@ -43,8 +44,14 @@ export interface FeedViewPost {
|
|
|
43
44
|
export declare function isFeedViewPost(v: unknown): v is FeedViewPost;
|
|
44
45
|
export declare function validateFeedViewPost(v: unknown): ValidationResult;
|
|
45
46
|
export interface ReplyRef {
|
|
46
|
-
root: PostView
|
|
47
|
-
|
|
47
|
+
root: PostView | NotFoundPost | BlockedPost | {
|
|
48
|
+
$type: string;
|
|
49
|
+
[k: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
parent: PostView | NotFoundPost | BlockedPost | {
|
|
52
|
+
$type: string;
|
|
53
|
+
[k: string]: unknown;
|
|
54
|
+
};
|
|
48
55
|
[k: string]: unknown;
|
|
49
56
|
}
|
|
50
57
|
export declare function isReplyRef(v: unknown): v is ReplyRef;
|
|
@@ -84,3 +91,41 @@ export interface BlockedPost {
|
|
|
84
91
|
}
|
|
85
92
|
export declare function isBlockedPost(v: unknown): v is BlockedPost;
|
|
86
93
|
export declare function validateBlockedPost(v: unknown): ValidationResult;
|
|
94
|
+
export interface GeneratorView {
|
|
95
|
+
uri: string;
|
|
96
|
+
cid: string;
|
|
97
|
+
did?: string;
|
|
98
|
+
creator: AppBskyActorDefs.ProfileView;
|
|
99
|
+
displayName: string;
|
|
100
|
+
description?: string;
|
|
101
|
+
descriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
102
|
+
avatar?: string;
|
|
103
|
+
likeCount?: number;
|
|
104
|
+
viewer?: GeneratorViewerState;
|
|
105
|
+
indexedAt: string;
|
|
106
|
+
[k: string]: unknown;
|
|
107
|
+
}
|
|
108
|
+
export declare function isGeneratorView(v: unknown): v is GeneratorView;
|
|
109
|
+
export declare function validateGeneratorView(v: unknown): ValidationResult;
|
|
110
|
+
export interface GeneratorViewerState {
|
|
111
|
+
like?: string;
|
|
112
|
+
[k: string]: unknown;
|
|
113
|
+
}
|
|
114
|
+
export declare function isGeneratorViewerState(v: unknown): v is GeneratorViewerState;
|
|
115
|
+
export declare function validateGeneratorViewerState(v: unknown): ValidationResult;
|
|
116
|
+
export interface SkeletonFeedPost {
|
|
117
|
+
post: string;
|
|
118
|
+
reason?: SkeletonReasonRepost | {
|
|
119
|
+
$type: string;
|
|
120
|
+
[k: string]: unknown;
|
|
121
|
+
};
|
|
122
|
+
[k: string]: unknown;
|
|
123
|
+
}
|
|
124
|
+
export declare function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost;
|
|
125
|
+
export declare function validateSkeletonFeedPost(v: unknown): ValidationResult;
|
|
126
|
+
export interface SkeletonReasonRepost {
|
|
127
|
+
repost: string;
|
|
128
|
+
[k: string]: unknown;
|
|
129
|
+
}
|
|
130
|
+
export declare function isSkeletonReasonRepost(v: unknown): v is SkeletonReasonRepost;
|
|
131
|
+
export declare function validateSkeletonReasonRepost(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
feeds: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export interface OutputSchema {
|
|
8
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
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
|
+
import * as AppBskyFeedDefs from '../feed/defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
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;
|