Testing implementation for private data in ATProto with ATPKeyserver and ATCute tools

rename content.getFeed to actor.getFeed

+9 -10
+2 -2
lexicons/app/wafrn/content/getFeed.json lexicons/app/wafrn/actor/getFeed.json
··· 1 1 { 2 2 "lexicon": 1, 3 - "id": "app.wafrn.content.getFeed", 3 + "id": "app.wafrn.actor.getFeed", 4 4 "defs": { 5 5 "main": { 6 6 "type": "query", 7 - "description": "Get a feed of posts for the requesting user", 7 + "description": "Get a feed of posts for a specific actor", 8 8 "parameters": { 9 9 "type": "params", 10 10 "required": ["did"],
+1 -1
packages/client/app/lib/post.server.ts
··· 260 260 } 261 261 262 262 const { feed } = await ok( 263 - serverClient.get('app.wafrn.content.getFeed', { 263 + serverClient.get('app.wafrn.actor.getFeed', { 264 264 params: { did } 265 265 }) 266 266 )
+1 -1
packages/lexicon/index.ts
··· 1 1 export * as AppWafrnActorCacheAccount from "./types/app/wafrn/actor/cacheAccount.js"; 2 2 export * as AppWafrnActorDefs from "./types/app/wafrn/actor/defs.js"; 3 + export * as AppWafrnActorGetFeed from "./types/app/wafrn/actor/getFeed.js"; 3 4 export * as AppWafrnActorGetProfiles from "./types/app/wafrn/actor/getProfiles.js"; 4 5 export * as AppWafrnActorProfile from "./types/app/wafrn/actor/profile.js"; 5 6 export * as AppWafrnContentDefs from "./types/app/wafrn/content/defs.js"; 6 7 export * as AppWafrnContentDeletePost from "./types/app/wafrn/content/deletePost.js"; 7 - export * as AppWafrnContentGetFeed from "./types/app/wafrn/content/getFeed.js"; 8 8 export * as AppWafrnContentInbox from "./types/app/wafrn/content/inbox.js"; 9 9 export * as AppWafrnContentPrivatePost from "./types/app/wafrn/content/privatePost.js"; 10 10 export * as AppWafrnContentPublicPost from "./types/app/wafrn/content/publicPost.js";
+3 -3
packages/lexicon/types/app/wafrn/content/getFeed.ts packages/lexicon/types/app/wafrn/actor/getFeed.ts
··· 1 1 import type {} from "@atcute/lexicons"; 2 2 import * as v from "@atcute/lexicons/validations"; 3 3 import type {} from "@atcute/lexicons/ambient"; 4 - import * as AppWafrnContentDefs from "./defs.js"; 4 + import * as AppWafrnContentDefs from "../content/defs.js"; 5 5 6 - const _mainSchema = /*#__PURE__*/ v.query("app.wafrn.content.getFeed", { 6 + const _mainSchema = /*#__PURE__*/ v.query("app.wafrn.actor.getFeed", { 7 7 params: /*#__PURE__*/ v.object({ 8 8 did: /*#__PURE__*/ v.didString(), 9 9 /** ··· 37 37 38 38 declare module "@atcute/lexicons/ambient" { 39 39 interface XRPCQueries { 40 - "app.wafrn.content.getFeed": mainSchema; 40 + "app.wafrn.actor.getFeed": mainSchema; 41 41 } 42 42 }
+2 -3
packages/server/src/lib/xrpcServer.ts
··· 3 3 import { cors } from '@atcute/xrpc-server/middlewares/cors' 4 4 import { 5 5 AppWafrnContentInbox, 6 - AppWafrnContentDefs, 7 - AppWafrnContentGetFeed, 6 + AppWafrnActorGetFeed, 8 7 AppWafrnContentDeletePost, 9 8 AppWafrnGraphDeleteFollow, 10 9 AppWafrnGraphGetFollowers, ··· 113 112 } 114 113 }) 115 114 116 - xrpcServer.addQuery(AppWafrnContentGetFeed.mainSchema, { 115 + xrpcServer.addQuery(AppWafrnActorGetFeed.mainSchema, { 117 116 async handler({ params }) { 118 117 const posts = await getFeed(params) 119 118 return json({