Update to use new getTimeline, getAuthorFeed, and getPostThread output models
This commit is contained in:
parent
4f3bf401da
commit
e7d971410f
17 changed files with 706 additions and 898 deletions
373
src/third-party/api/index.js
vendored
373
src/third-party/api/index.js
vendored
|
|
@ -40,6 +40,7 @@ __export(src_exports, {
|
|||
AppBskyActorUpdateProfile: () => updateProfile_exports,
|
||||
AppBskyEmbedExternal: () => external_exports,
|
||||
AppBskyEmbedImages: () => images_exports,
|
||||
AppBskyFeedFeedViewPost: () => feedViewPost_exports,
|
||||
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
||||
AppBskyFeedGetPostThread: () => getPostThread_exports,
|
||||
AppBskyFeedGetRepostedBy: () => getRepostedBy_exports,
|
||||
|
|
@ -5756,6 +5757,73 @@ var schemaDict = {
|
|||
}
|
||||
}
|
||||
},
|
||||
AppBskyFeedFeedViewPost: {
|
||||
lexicon: 1,
|
||||
id: "app.bsky.feed.feedViewPost",
|
||||
defs: {
|
||||
main: {
|
||||
type: "object",
|
||||
required: ["post"],
|
||||
properties: {
|
||||
post: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.post#view"
|
||||
},
|
||||
reply: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.feedViewPost#replyRef"
|
||||
},
|
||||
reason: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.feed.feedViewPost#reasonTrend",
|
||||
"lex:app.bsky.feed.feedViewPost#reasonRepost"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
replyRef: {
|
||||
type: "object",
|
||||
required: ["root", "parent"],
|
||||
properties: {
|
||||
root: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.post#view"
|
||||
},
|
||||
parent: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.post#view"
|
||||
}
|
||||
}
|
||||
},
|
||||
reasonTrend: {
|
||||
type: "object",
|
||||
required: ["by", "indexedAt"],
|
||||
properties: {
|
||||
by: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
indexedAt: {
|
||||
type: "datetime"
|
||||
}
|
||||
}
|
||||
},
|
||||
reasonRepost: {
|
||||
type: "object",
|
||||
required: ["by", "indexedAt"],
|
||||
properties: {
|
||||
by: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
indexedAt: {
|
||||
type: "datetime"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
AppBskyFeedGetAuthorFeed: {
|
||||
lexicon: 1,
|
||||
id: "app.bsky.feed.getAuthorFeed",
|
||||
|
|
@ -5794,89 +5862,12 @@ var schemaDict = {
|
|||
type: "array",
|
||||
items: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.getAuthorFeed#feedItem"
|
||||
ref: "lex:app.bsky.feed.feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
feedItem: {
|
||||
type: "object",
|
||||
required: [
|
||||
"uri",
|
||||
"cid",
|
||||
"author",
|
||||
"record",
|
||||
"replyCount",
|
||||
"repostCount",
|
||||
"upvoteCount",
|
||||
"downvoteCount",
|
||||
"indexedAt"
|
||||
],
|
||||
properties: {
|
||||
uri: {
|
||||
type: "string"
|
||||
},
|
||||
cid: {
|
||||
type: "string"
|
||||
},
|
||||
author: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
trendedBy: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
repostedBy: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
record: {
|
||||
type: "unknown"
|
||||
},
|
||||
embed: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.embed.images#presented",
|
||||
"lex:app.bsky.embed.external#presented"
|
||||
]
|
||||
},
|
||||
replyCount: {
|
||||
type: "integer"
|
||||
},
|
||||
repostCount: {
|
||||
type: "integer"
|
||||
},
|
||||
upvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
downvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
indexedAt: {
|
||||
type: "datetime"
|
||||
},
|
||||
myState: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.getAuthorFeed#myState"
|
||||
}
|
||||
}
|
||||
},
|
||||
myState: {
|
||||
type: "object",
|
||||
properties: {
|
||||
repost: {
|
||||
type: "string"
|
||||
},
|
||||
upvote: {
|
||||
type: "string"
|
||||
},
|
||||
downvote: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -5907,7 +5898,7 @@ var schemaDict = {
|
|||
thread: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.feed.getPostThread#post",
|
||||
"lex:app.bsky.feed.getPostThread#threadViewPost",
|
||||
"lex:app.bsky.feed.getPostThread#notFoundPost"
|
||||
]
|
||||
}
|
||||
|
|
@ -5920,75 +5911,30 @@ var schemaDict = {
|
|||
}
|
||||
]
|
||||
},
|
||||
post: {
|
||||
threadViewPost: {
|
||||
type: "object",
|
||||
required: [
|
||||
"uri",
|
||||
"cid",
|
||||
"author",
|
||||
"record",
|
||||
"replyCount",
|
||||
"repostCount",
|
||||
"upvoteCount",
|
||||
"downvoteCount",
|
||||
"indexedAt"
|
||||
],
|
||||
required: ["post"],
|
||||
properties: {
|
||||
uri: {
|
||||
type: "string"
|
||||
},
|
||||
cid: {
|
||||
type: "string"
|
||||
},
|
||||
author: {
|
||||
post: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
record: {
|
||||
type: "unknown"
|
||||
},
|
||||
embed: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.embed.images#presented",
|
||||
"lex:app.bsky.embed.external#presented"
|
||||
]
|
||||
ref: "lex:app.bsky.feed.post#view"
|
||||
},
|
||||
parent: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.feed.getPostThread#post",
|
||||
"lex:app.bsky.feed.getPostThread#threadViewPost",
|
||||
"lex:app.bsky.feed.getPostThread#notFoundPost"
|
||||
]
|
||||
},
|
||||
replyCount: {
|
||||
type: "integer"
|
||||
},
|
||||
replies: {
|
||||
type: "array",
|
||||
items: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.feed.getPostThread#post",
|
||||
"lex:app.bsky.feed.getPostThread#threadViewPost",
|
||||
"lex:app.bsky.feed.getPostThread#notFoundPost"
|
||||
]
|
||||
}
|
||||
},
|
||||
repostCount: {
|
||||
type: "integer"
|
||||
},
|
||||
upvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
downvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
indexedAt: {
|
||||
type: "datetime"
|
||||
},
|
||||
myState: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.getPostThread#myState"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -6004,20 +5950,6 @@ var schemaDict = {
|
|||
const: true
|
||||
}
|
||||
}
|
||||
},
|
||||
myState: {
|
||||
type: "object",
|
||||
properties: {
|
||||
repost: {
|
||||
type: "string"
|
||||
},
|
||||
upvote: {
|
||||
type: "string"
|
||||
},
|
||||
downvote: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -6142,89 +6074,12 @@ var schemaDict = {
|
|||
type: "array",
|
||||
items: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.getTimeline#feedItem"
|
||||
ref: "lex:app.bsky.feed.feedViewPost"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
feedItem: {
|
||||
type: "object",
|
||||
required: [
|
||||
"uri",
|
||||
"cid",
|
||||
"author",
|
||||
"record",
|
||||
"replyCount",
|
||||
"repostCount",
|
||||
"upvoteCount",
|
||||
"downvoteCount",
|
||||
"indexedAt"
|
||||
],
|
||||
properties: {
|
||||
uri: {
|
||||
type: "string"
|
||||
},
|
||||
cid: {
|
||||
type: "string"
|
||||
},
|
||||
author: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
trendedBy: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
repostedBy: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
record: {
|
||||
type: "unknown"
|
||||
},
|
||||
embed: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.embed.images#presented",
|
||||
"lex:app.bsky.embed.external#presented"
|
||||
]
|
||||
},
|
||||
replyCount: {
|
||||
type: "integer"
|
||||
},
|
||||
repostCount: {
|
||||
type: "integer"
|
||||
},
|
||||
upvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
downvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
indexedAt: {
|
||||
type: "datetime"
|
||||
},
|
||||
myState: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.getTimeline#myState"
|
||||
}
|
||||
}
|
||||
},
|
||||
myState: {
|
||||
type: "object",
|
||||
properties: {
|
||||
repost: {
|
||||
type: "string"
|
||||
},
|
||||
upvote: {
|
||||
type: "string"
|
||||
},
|
||||
downvote: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -6390,6 +6245,76 @@ var schemaDict = {
|
|||
minimum: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
view: {
|
||||
type: "object",
|
||||
required: [
|
||||
"uri",
|
||||
"cid",
|
||||
"author",
|
||||
"record",
|
||||
"replyCount",
|
||||
"repostCount",
|
||||
"upvoteCount",
|
||||
"downvoteCount",
|
||||
"indexedAt",
|
||||
"viewer"
|
||||
],
|
||||
properties: {
|
||||
uri: {
|
||||
type: "string"
|
||||
},
|
||||
cid: {
|
||||
type: "string"
|
||||
},
|
||||
author: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.actor.ref#withInfo"
|
||||
},
|
||||
record: {
|
||||
type: "unknown"
|
||||
},
|
||||
embed: {
|
||||
type: "union",
|
||||
refs: [
|
||||
"lex:app.bsky.embed.images#presented",
|
||||
"lex:app.bsky.embed.external#presented"
|
||||
]
|
||||
},
|
||||
replyCount: {
|
||||
type: "integer"
|
||||
},
|
||||
repostCount: {
|
||||
type: "integer"
|
||||
},
|
||||
upvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
downvoteCount: {
|
||||
type: "integer"
|
||||
},
|
||||
indexedAt: {
|
||||
type: "datetime"
|
||||
},
|
||||
viewer: {
|
||||
type: "ref",
|
||||
ref: "lex:app.bsky.feed.post#viewerState"
|
||||
}
|
||||
}
|
||||
},
|
||||
viewerState: {
|
||||
type: "object",
|
||||
properties: {
|
||||
repost: {
|
||||
type: "string"
|
||||
},
|
||||
upvote: {
|
||||
type: "string"
|
||||
},
|
||||
downvote: {
|
||||
type: "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -7826,6 +7751,9 @@ var external_exports = {};
|
|||
// src/client/types/app/bsky/embed/images.ts
|
||||
var images_exports = {};
|
||||
|
||||
// src/client/types/app/bsky/feed/feedViewPost.ts
|
||||
var feedViewPost_exports = {};
|
||||
|
||||
// src/client/types/app/bsky/feed/post.ts
|
||||
var post_exports = {};
|
||||
|
||||
|
|
@ -8709,6 +8637,7 @@ var SessionManager = class extends import_events.default {
|
|||
AppBskyActorUpdateProfile,
|
||||
AppBskyEmbedExternal,
|
||||
AppBskyEmbedImages,
|
||||
AppBskyFeedFeedViewPost,
|
||||
AppBskyFeedGetAuthorFeed,
|
||||
AppBskyFeedGetPostThread,
|
||||
AppBskyFeedGetRepostedBy,
|
||||
|
|
|
|||
6
src/third-party/api/index.js.map
vendored
6
src/third-party/api/index.js.map
vendored
File diff suppressed because one or more lines are too long
1
src/third-party/api/src/client/index.d.ts
vendored
1
src/third-party/api/src/client/index.d.ts
vendored
|
|
@ -85,6 +85,7 @@ export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypea
|
|||
export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile';
|
||||
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external';
|
||||
export * as AppBskyEmbedImages from './types/app/bsky/embed/images';
|
||||
export * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost';
|
||||
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
||||
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
|
||||
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
|
||||
|
|
|
|||
299
src/third-party/api/src/client/lexicons.d.ts
vendored
299
src/third-party/api/src/client/lexicons.d.ts
vendored
|
|
@ -1504,6 +1504,70 @@ export declare const schemaDict: {
|
|||
};
|
||||
};
|
||||
};
|
||||
AppBskyFeedFeedViewPost: {
|
||||
lexicon: number;
|
||||
id: string;
|
||||
defs: {
|
||||
main: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
post: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
reply: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
reason: {
|
||||
type: string;
|
||||
refs: string[];
|
||||
};
|
||||
};
|
||||
};
|
||||
replyRef: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
root: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
parent: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
reasonTrend: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
by: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
indexedAt: {
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
reasonRepost: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
by: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
indexedAt: {
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
AppBskyFeedGetAuthorFeed: {
|
||||
lexicon: number;
|
||||
id: string;
|
||||
|
|
@ -1549,70 +1613,6 @@ export declare const schemaDict: {
|
|||
};
|
||||
};
|
||||
};
|
||||
feedItem: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
uri: {
|
||||
type: string;
|
||||
};
|
||||
cid: {
|
||||
type: string;
|
||||
};
|
||||
author: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
trendedBy: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
repostedBy: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
record: {
|
||||
type: string;
|
||||
};
|
||||
embed: {
|
||||
type: string;
|
||||
refs: string[];
|
||||
};
|
||||
replyCount: {
|
||||
type: string;
|
||||
};
|
||||
repostCount: {
|
||||
type: string;
|
||||
};
|
||||
upvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
downvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
indexedAt: {
|
||||
type: string;
|
||||
};
|
||||
myState: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
myState: {
|
||||
type: string;
|
||||
properties: {
|
||||
repost: {
|
||||
type: string;
|
||||
};
|
||||
upvote: {
|
||||
type: string;
|
||||
};
|
||||
downvote: {
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
AppBskyFeedGetPostThread: {
|
||||
|
|
@ -1650,34 +1650,18 @@ export declare const schemaDict: {
|
|||
name: string;
|
||||
}[];
|
||||
};
|
||||
post: {
|
||||
threadViewPost: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
uri: {
|
||||
type: string;
|
||||
};
|
||||
cid: {
|
||||
type: string;
|
||||
};
|
||||
author: {
|
||||
post: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
record: {
|
||||
type: string;
|
||||
};
|
||||
embed: {
|
||||
type: string;
|
||||
refs: string[];
|
||||
};
|
||||
parent: {
|
||||
type: string;
|
||||
refs: string[];
|
||||
};
|
||||
replyCount: {
|
||||
type: string;
|
||||
};
|
||||
replies: {
|
||||
type: string;
|
||||
items: {
|
||||
|
|
@ -1685,22 +1669,6 @@ export declare const schemaDict: {
|
|||
refs: string[];
|
||||
};
|
||||
};
|
||||
repostCount: {
|
||||
type: string;
|
||||
};
|
||||
upvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
downvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
indexedAt: {
|
||||
type: string;
|
||||
};
|
||||
myState: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
notFoundPost: {
|
||||
|
|
@ -1716,20 +1684,6 @@ export declare const schemaDict: {
|
|||
};
|
||||
};
|
||||
};
|
||||
myState: {
|
||||
type: string;
|
||||
properties: {
|
||||
repost: {
|
||||
type: string;
|
||||
};
|
||||
upvote: {
|
||||
type: string;
|
||||
};
|
||||
downvote: {
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
AppBskyFeedGetRepostedBy: {
|
||||
|
|
@ -1860,70 +1814,6 @@ export declare const schemaDict: {
|
|||
};
|
||||
};
|
||||
};
|
||||
feedItem: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
uri: {
|
||||
type: string;
|
||||
};
|
||||
cid: {
|
||||
type: string;
|
||||
};
|
||||
author: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
trendedBy: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
repostedBy: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
record: {
|
||||
type: string;
|
||||
};
|
||||
embed: {
|
||||
type: string;
|
||||
refs: string[];
|
||||
};
|
||||
replyCount: {
|
||||
type: string;
|
||||
};
|
||||
repostCount: {
|
||||
type: string;
|
||||
};
|
||||
upvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
downvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
indexedAt: {
|
||||
type: string;
|
||||
};
|
||||
myState: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
myState: {
|
||||
type: string;
|
||||
properties: {
|
||||
repost: {
|
||||
type: string;
|
||||
};
|
||||
upvote: {
|
||||
type: string;
|
||||
};
|
||||
downvote: {
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
AppBskyFeedGetVotes: {
|
||||
|
|
@ -2086,6 +1976,62 @@ export declare const schemaDict: {
|
|||
};
|
||||
};
|
||||
};
|
||||
view: {
|
||||
type: string;
|
||||
required: string[];
|
||||
properties: {
|
||||
uri: {
|
||||
type: string;
|
||||
};
|
||||
cid: {
|
||||
type: string;
|
||||
};
|
||||
author: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
record: {
|
||||
type: string;
|
||||
};
|
||||
embed: {
|
||||
type: string;
|
||||
refs: string[];
|
||||
};
|
||||
replyCount: {
|
||||
type: string;
|
||||
};
|
||||
repostCount: {
|
||||
type: string;
|
||||
};
|
||||
upvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
downvoteCount: {
|
||||
type: string;
|
||||
};
|
||||
indexedAt: {
|
||||
type: string;
|
||||
};
|
||||
viewer: {
|
||||
type: string;
|
||||
ref: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
viewerState: {
|
||||
type: string;
|
||||
properties: {
|
||||
repost: {
|
||||
type: string;
|
||||
};
|
||||
upvote: {
|
||||
type: string;
|
||||
};
|
||||
downvote: {
|
||||
type: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
AppBskyFeedRepost: {
|
||||
|
|
@ -2933,6 +2879,7 @@ export declare const ids: {
|
|||
AppBskyActorUpdateProfile: string;
|
||||
AppBskyEmbedExternal: string;
|
||||
AppBskyEmbedImages: string;
|
||||
AppBskyFeedFeedViewPost: string;
|
||||
AppBskyFeedGetAuthorFeed: string;
|
||||
AppBskyFeedGetPostThread: string;
|
||||
AppBskyFeedGetRepostedBy: string;
|
||||
|
|
|
|||
26
src/third-party/api/src/client/types/app/bsky/feed/feedViewPost.d.ts
vendored
Normal file
26
src/third-party/api/src/client/types/app/bsky/feed/feedViewPost.d.ts
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import * as AppBskyFeedPost from './post';
|
||||
import * as AppBskyActorRef from '../actor/ref';
|
||||
export interface Main {
|
||||
post: AppBskyFeedPost.View;
|
||||
reply?: ReplyRef;
|
||||
reason?: ReasonTrend | ReasonRepost | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface ReplyRef {
|
||||
root: AppBskyFeedPost.View;
|
||||
parent: AppBskyFeedPost.View;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface ReasonTrend {
|
||||
by: AppBskyActorRef.WithInfo;
|
||||
indexedAt: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface ReasonRepost {
|
||||
by: AppBskyActorRef.WithInfo;
|
||||
indexedAt: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
import { Headers } from '@atproto/xrpc';
|
||||
import * as AppBskyActorRef from '../actor/ref';
|
||||
import * as AppBskyEmbedImages from '../embed/images';
|
||||
import * as AppBskyEmbedExternal from '../embed/external';
|
||||
import * as AppBskyFeedFeedViewPost from './feedViewPost';
|
||||
export interface QueryParams {
|
||||
author: string;
|
||||
limit?: number;
|
||||
|
|
@ -10,7 +8,7 @@ export interface QueryParams {
|
|||
export declare type InputSchema = undefined;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
feed: FeedItem[];
|
||||
feed: AppBskyFeedFeedViewPost.Main[];
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface CallOptions {
|
||||
|
|
@ -22,28 +20,3 @@ export interface Response {
|
|||
data: OutputSchema;
|
||||
}
|
||||
export declare function toKnownErr(e: any): any;
|
||||
export interface FeedItem {
|
||||
uri: string;
|
||||
cid: string;
|
||||
author: AppBskyActorRef.WithInfo;
|
||||
trendedBy?: AppBskyActorRef.WithInfo;
|
||||
repostedBy?: AppBskyActorRef.WithInfo;
|
||||
record: {};
|
||||
embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
replyCount: number;
|
||||
repostCount: number;
|
||||
upvoteCount: number;
|
||||
downvoteCount: number;
|
||||
indexedAt: string;
|
||||
myState?: MyState;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface MyState {
|
||||
repost?: string;
|
||||
upvote?: string;
|
||||
downvote?: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,12 @@
|
|||
import { Headers, XRPCError } from '@atproto/xrpc';
|
||||
import * as AppBskyActorRef from '../actor/ref';
|
||||
import * as AppBskyEmbedImages from '../embed/images';
|
||||
import * as AppBskyEmbedExternal from '../embed/external';
|
||||
import * as AppBskyFeedPost from './post';
|
||||
export interface QueryParams {
|
||||
uri: string;
|
||||
depth?: number;
|
||||
}
|
||||
export declare type InputSchema = undefined;
|
||||
export interface OutputSchema {
|
||||
thread: Post | NotFoundPost | {
|
||||
thread: ThreadViewPost | NotFoundPost | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
|
|
@ -26,29 +24,16 @@ export declare class NotFoundError extends XRPCError {
|
|||
constructor(src: XRPCError);
|
||||
}
|
||||
export declare function toKnownErr(e: any): any;
|
||||
export interface Post {
|
||||
uri: string;
|
||||
cid: string;
|
||||
author: AppBskyActorRef.WithInfo;
|
||||
record: {};
|
||||
embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | {
|
||||
export interface ThreadViewPost {
|
||||
post: AppBskyFeedPost.View;
|
||||
parent?: ThreadViewPost | NotFoundPost | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
parent?: Post | NotFoundPost | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
replyCount: number;
|
||||
replies?: (Post | NotFoundPost | {
|
||||
replies?: (ThreadViewPost | NotFoundPost | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
})[];
|
||||
repostCount: number;
|
||||
upvoteCount: number;
|
||||
downvoteCount: number;
|
||||
indexedAt: string;
|
||||
myState?: MyState;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface NotFoundPost {
|
||||
|
|
@ -56,9 +41,3 @@ export interface NotFoundPost {
|
|||
notFound: true;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface MyState {
|
||||
repost?: string;
|
||||
upvote?: string;
|
||||
downvote?: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import { Headers } from '@atproto/xrpc';
|
||||
import * as AppBskyActorRef from '../actor/ref';
|
||||
import * as AppBskyEmbedImages from '../embed/images';
|
||||
import * as AppBskyEmbedExternal from '../embed/external';
|
||||
import * as AppBskyFeedFeedViewPost from './feedViewPost';
|
||||
export interface QueryParams {
|
||||
algorithm?: string;
|
||||
limit?: number;
|
||||
|
|
@ -10,7 +8,7 @@ export interface QueryParams {
|
|||
export declare type InputSchema = undefined;
|
||||
export interface OutputSchema {
|
||||
cursor?: string;
|
||||
feed: FeedItem[];
|
||||
feed: AppBskyFeedFeedViewPost.Main[];
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface CallOptions {
|
||||
|
|
@ -22,28 +20,3 @@ export interface Response {
|
|||
data: OutputSchema;
|
||||
}
|
||||
export declare function toKnownErr(e: any): any;
|
||||
export interface FeedItem {
|
||||
uri: string;
|
||||
cid: string;
|
||||
author: AppBskyActorRef.WithInfo;
|
||||
trendedBy?: AppBskyActorRef.WithInfo;
|
||||
repostedBy?: AppBskyActorRef.WithInfo;
|
||||
record: {};
|
||||
embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
replyCount: number;
|
||||
repostCount: number;
|
||||
upvoteCount: number;
|
||||
downvoteCount: number;
|
||||
indexedAt: string;
|
||||
myState?: MyState;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface MyState {
|
||||
repost?: string;
|
||||
upvote?: string;
|
||||
downvote?: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import * as AppBskyEmbedImages from '../embed/images';
|
||||
import * as AppBskyEmbedExternal from '../embed/external';
|
||||
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
||||
import * as AppBskyActorRef from '../actor/ref';
|
||||
export interface Record {
|
||||
text: string;
|
||||
entities?: Entity[];
|
||||
|
|
@ -28,3 +29,26 @@ export interface TextSlice {
|
|||
end: number;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface View {
|
||||
uri: string;
|
||||
cid: string;
|
||||
author: AppBskyActorRef.WithInfo;
|
||||
record: {};
|
||||
embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | {
|
||||
$type: string;
|
||||
[k: string]: unknown;
|
||||
};
|
||||
replyCount: number;
|
||||
repostCount: number;
|
||||
upvoteCount: number;
|
||||
downvoteCount: number;
|
||||
indexedAt: string;
|
||||
viewer: ViewerState;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
export interface ViewerState {
|
||||
repost?: string;
|
||||
upvote?: string;
|
||||
downvote?: string;
|
||||
[k: string]: unknown;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue