[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(lexicon): add getActorReposts

+148
+13
lex/index.ts
··· 202 202 import type * as SoSprkFeedGetFeedSkeleton from "./types/so/sprk/feed/getFeedSkeleton.ts"; 203 203 import type * as SoSprkFeedGetSuggestedFeeds from "./types/so/sprk/feed/getSuggestedFeeds.ts"; 204 204 import type * as SoSprkFeedGetActorFeeds from "./types/so/sprk/feed/getActorFeeds.ts"; 205 + import type * as SoSprkFeedGetActorReposts from "./types/so/sprk/feed/getActorReposts.ts"; 205 206 import type * as SoSprkSoundGetActorAudios from "./types/so/sprk/sound/getActorAudios.ts"; 206 207 import type * as SoSprkSoundGetAudioPosts from "./types/so/sprk/sound/getAudioPosts.ts"; 207 208 import type * as SoSprkSoundGetAudios from "./types/so/sprk/sound/getAudios.ts"; ··· 3111 3112 >, 3112 3113 ) { 3113 3114 const nsid = "so.sprk.feed.getActorFeeds"; // @ts-ignore - dynamically generated 3115 + return this._server.xrpc.method(nsid, cfg); 3116 + } 3117 + 3118 + getActorReposts<A extends Auth = void>( 3119 + cfg: MethodConfigOrHandler< 3120 + A, 3121 + SoSprkFeedGetActorReposts.QueryParams, 3122 + SoSprkFeedGetActorReposts.HandlerInput, 3123 + SoSprkFeedGetActorReposts.HandlerOutput 3124 + >, 3125 + ) { 3126 + const nsid = "so.sprk.feed.getActorReposts"; // @ts-ignore - dynamically generated 3114 3127 return this._server.xrpc.method(nsid, cfg); 3115 3128 } 3116 3129 }
+61
lex/lexicons.ts
··· 19170 19170 }, 19171 19171 }, 19172 19172 }, 19173 + "SoSprkFeedGetActorReposts": { 19174 + "lexicon": 1, 19175 + "id": "so.sprk.feed.getActorReposts", 19176 + "defs": { 19177 + "main": { 19178 + "type": "query", 19179 + "description": "Get a list of posts reposted by an actor.", 19180 + "parameters": { 19181 + "type": "params", 19182 + "required": [ 19183 + "actor", 19184 + ], 19185 + "properties": { 19186 + "actor": { 19187 + "type": "string", 19188 + "format": "at-identifier", 19189 + }, 19190 + "limit": { 19191 + "type": "integer", 19192 + "minimum": 1, 19193 + "maximum": 100, 19194 + "default": 50, 19195 + }, 19196 + "cursor": { 19197 + "type": "string", 19198 + }, 19199 + }, 19200 + }, 19201 + "output": { 19202 + "encoding": "application/json", 19203 + "schema": { 19204 + "type": "object", 19205 + "required": [ 19206 + "feed", 19207 + ], 19208 + "properties": { 19209 + "cursor": { 19210 + "type": "string", 19211 + }, 19212 + "feed": { 19213 + "type": "array", 19214 + "items": { 19215 + "type": "ref", 19216 + "ref": "lex:so.sprk.feed.defs#feedViewPost", 19217 + }, 19218 + }, 19219 + }, 19220 + }, 19221 + }, 19222 + "errors": [ 19223 + { 19224 + "name": "BlockedActor", 19225 + }, 19226 + { 19227 + "name": "BlockedByActor", 19228 + }, 19229 + ], 19230 + }, 19231 + }, 19232 + }, 19173 19233 "SoSprkRichtextFacet": { 19174 19234 "lexicon": 1, 19175 19235 "id": "so.sprk.richtext.facet", ··· 26766 26826 SoSprkFeedGetSuggestedFeeds: "so.sprk.feed.getSuggestedFeeds", 26767 26827 SoSprkFeedGetActorFeeds: "so.sprk.feed.getActorFeeds", 26768 26828 SoSprkFeedPost: "so.sprk.feed.post", 26829 + SoSprkFeedGetActorReposts: "so.sprk.feed.getActorReposts", 26769 26830 SoSprkRichtextFacet: "so.sprk.richtext.facet", 26770 26831 SoSprkSoundDefs: "so.sprk.sound.defs", 26771 26832 SoSprkSoundGetActorAudios: "so.sprk.sound.getActorAudios",
+32
lex/types/so/sprk/feed/getActorReposts.ts
··· 1 + /** 2 + * GENERATED CODE - DO NOT MODIFY 3 + */ 4 + import type * as SoSprkFeedDefs from "./defs.ts"; 5 + 6 + export type QueryParams = { 7 + actor: string; 8 + limit: number; 9 + cursor?: string; 10 + }; 11 + export type InputSchema = undefined; 12 + 13 + export interface OutputSchema { 14 + cursor?: string; 15 + feed: (SoSprkFeedDefs.FeedViewPost)[]; 16 + } 17 + 18 + export type HandlerInput = void; 19 + 20 + export interface HandlerSuccess { 21 + encoding: "application/json"; 22 + body: OutputSchema; 23 + headers?: { [key: string]: string }; 24 + } 25 + 26 + export interface HandlerError { 27 + status: number; 28 + message?: string; 29 + error?: "BlockedActor" | "BlockedByActor"; 30 + } 31 + 32 + export type HandlerOutput = HandlerError | HandlerSuccess;
+42
lexicons/so/sprk/feed/getActorReposts.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "so.sprk.feed.getActorReposts", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a list of posts reposted by an actor.", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["actor"], 11 + "properties": { 12 + "actor": { "type": "string", "format": "at-identifier" }, 13 + "limit": { 14 + "type": "integer", 15 + "minimum": 1, 16 + "maximum": 100, 17 + "default": 50 18 + }, 19 + "cursor": { "type": "string" } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["feed"], 27 + "properties": { 28 + "cursor": { "type": "string" }, 29 + "feed": { 30 + "type": "array", 31 + "items": { 32 + "type": "ref", 33 + "ref": "so.sprk.feed.defs#feedViewPost" 34 + } 35 + } 36 + } 37 + } 38 + }, 39 + "errors": [{ "name": "BlockedActor" }, { "name": "BlockedByActor" }] 40 + } 41 + } 42 + }