/**
* GENERATED CODE - DO NOT MODIFY
*/
import {
type Auth,
type Options as XrpcOptions,
Server as XrpcServer,
type StreamConfigOrHandler,
type MethodConfigOrHandler,
createServer as createXrpcServer,
} from 'npm:@atproto/xrpc-server'
import { schemas } from './lexicons.ts'
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile.ts'
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles.ts'
import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds.ts'
import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator.ts'
import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators.ts'
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.ts'
import * as PartyWheyAppBskyFeedGetActorLikesPartial from './types/party/whey/app/bsky/feed/getActorLikesPartial.ts'
import * as PartyWheyAppBskyFeedGetAuthorFeedPartial from './types/party/whey/app/bsky/feed/getAuthorFeedPartial.ts'
import * as PartyWheyAppBskyFeedGetLikesPartial from './types/party/whey/app/bsky/feed/getLikesPartial.ts'
import * as PartyWheyAppBskyFeedGetListFeedPartial from './types/party/whey/app/bsky/feed/getListFeedPartial.ts'
import * as PartyWheyAppBskyFeedGetPostThreadPartial from './types/party/whey/app/bsky/feed/getPostThreadPartial.ts'
import * as PartyWheyAppBskyFeedGetQuotesPartial from './types/party/whey/app/bsky/feed/getQuotesPartial.ts'
import * as PartyWheyAppBskyFeedGetRepostedByPartial from './types/party/whey/app/bsky/feed/getRepostedByPartial.ts'
export const APP_BSKY_FEED = {
DefsRequestLess: 'app.bsky.feed.defs#requestLess',
DefsRequestMore: 'app.bsky.feed.defs#requestMore',
DefsClickthroughItem: 'app.bsky.feed.defs#clickthroughItem',
DefsClickthroughAuthor: 'app.bsky.feed.defs#clickthroughAuthor',
DefsClickthroughReposter: 'app.bsky.feed.defs#clickthroughReposter',
DefsClickthroughEmbed: 'app.bsky.feed.defs#clickthroughEmbed',
DefsContentModeUnspecified: 'app.bsky.feed.defs#contentModeUnspecified',
DefsContentModeVideo: 'app.bsky.feed.defs#contentModeVideo',
DefsInteractionSeen: 'app.bsky.feed.defs#interactionSeen',
DefsInteractionLike: 'app.bsky.feed.defs#interactionLike',
DefsInteractionRepost: 'app.bsky.feed.defs#interactionRepost',
DefsInteractionReply: 'app.bsky.feed.defs#interactionReply',
DefsInteractionQuote: 'app.bsky.feed.defs#interactionQuote',
DefsInteractionShare: 'app.bsky.feed.defs#interactionShare',
}
export const APP_BSKY_GRAPH = {
DefsModlist: 'app.bsky.graph.defs#modlist',
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
}
export function createServer(options?: XrpcOptions): Server {
return new Server(options)
}
export class Server {
xrpc: XrpcServer
app: AppNS
com: ComNS
party: PartyNS
constructor(options?: XrpcOptions) {
this.xrpc = createXrpcServer(schemas, options)
this.app = new AppNS(this)
this.com = new ComNS(this)
this.party = new PartyNS(this)
}
}
export class AppNS {
_server: Server
bsky: AppBskyNS
constructor(server: Server) {
this._server = server
this.bsky = new AppBskyNS(server)
}
}
export class AppBskyNS {
_server: Server
actor: AppBskyActorNS
embed: AppBskyEmbedNS
feed: AppBskyFeedNS
richtext: AppBskyRichtextNS
constructor(server: Server) {
this._server = server
this.actor = new AppBskyActorNS(server)
this.embed = new AppBskyEmbedNS(server)
this.feed = new AppBskyFeedNS(server)
this.richtext = new AppBskyRichtextNS(server)
}
}
export class AppBskyActorNS {
_server: Server
constructor(server: Server) {
this._server = server
}
getProfile(
cfg: MethodConfigOrHandler<
A,
AppBskyActorGetProfile.QueryParams,
AppBskyActorGetProfile.HandlerInput,
AppBskyActorGetProfile.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.getProfile' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getProfiles(
cfg: MethodConfigOrHandler<
A,
AppBskyActorGetProfiles.QueryParams,
AppBskyActorGetProfiles.HandlerInput,
AppBskyActorGetProfiles.HandlerOutput
>,
) {
const nsid = 'app.bsky.actor.getProfiles' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyEmbedNS {
_server: Server
constructor(server: Server) {
this._server = server
}
}
export class AppBskyFeedNS {
_server: Server
constructor(server: Server) {
this._server = server
}
getActorFeeds(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetActorFeeds.QueryParams,
AppBskyFeedGetActorFeeds.HandlerInput,
AppBskyFeedGetActorFeeds.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getActorFeeds' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFeedGenerator(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetFeedGenerator.QueryParams,
AppBskyFeedGetFeedGenerator.HandlerInput,
AppBskyFeedGetFeedGenerator.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getFeedGenerator' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getFeedGenerators(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetFeedGenerators.QueryParams,
AppBskyFeedGetFeedGenerators.HandlerInput,
AppBskyFeedGetFeedGenerators.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getFeedGenerators' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getPosts(
cfg: MethodConfigOrHandler<
A,
AppBskyFeedGetPosts.QueryParams,
AppBskyFeedGetPosts.HandlerInput,
AppBskyFeedGetPosts.HandlerOutput
>,
) {
const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}
export class AppBskyRichtextNS {
_server: Server
constructor(server: Server) {
this._server = server
}
}
export class ComNS {
_server: Server
atproto: ComAtprotoNS
constructor(server: Server) {
this._server = server
this.atproto = new ComAtprotoNS(server)
}
}
export class ComAtprotoNS {
_server: Server
repo: ComAtprotoRepoNS
constructor(server: Server) {
this._server = server
this.repo = new ComAtprotoRepoNS(server)
}
}
export class ComAtprotoRepoNS {
_server: Server
constructor(server: Server) {
this._server = server
}
}
export class PartyNS {
_server: Server
whey: PartyWheyNS
constructor(server: Server) {
this._server = server
this.whey = new PartyWheyNS(server)
}
}
export class PartyWheyNS {
_server: Server
app: PartyWheyAppNS
constructor(server: Server) {
this._server = server
this.app = new PartyWheyAppNS(server)
}
}
export class PartyWheyAppNS {
_server: Server
bsky: PartyWheyAppBskyNS
constructor(server: Server) {
this._server = server
this.bsky = new PartyWheyAppBskyNS(server)
}
}
export class PartyWheyAppBskyNS {
_server: Server
feed: PartyWheyAppBskyFeedNS
constructor(server: Server) {
this._server = server
this.feed = new PartyWheyAppBskyFeedNS(server)
}
}
export class PartyWheyAppBskyFeedNS {
_server: Server
constructor(server: Server) {
this._server = server
}
getActorLikesPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetActorLikesPartial.QueryParams,
PartyWheyAppBskyFeedGetActorLikesPartial.HandlerInput,
PartyWheyAppBskyFeedGetActorLikesPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getActorLikesPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getAuthorFeedPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetAuthorFeedPartial.QueryParams,
PartyWheyAppBskyFeedGetAuthorFeedPartial.HandlerInput,
PartyWheyAppBskyFeedGetAuthorFeedPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getAuthorFeedPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getLikesPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetLikesPartial.QueryParams,
PartyWheyAppBskyFeedGetLikesPartial.HandlerInput,
PartyWheyAppBskyFeedGetLikesPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getLikesPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getListFeedPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetListFeedPartial.QueryParams,
PartyWheyAppBskyFeedGetListFeedPartial.HandlerInput,
PartyWheyAppBskyFeedGetListFeedPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getListFeedPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getPostThreadPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetPostThreadPartial.QueryParams,
PartyWheyAppBskyFeedGetPostThreadPartial.HandlerInput,
PartyWheyAppBskyFeedGetPostThreadPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getPostThreadPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getQuotesPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetQuotesPartial.QueryParams,
PartyWheyAppBskyFeedGetQuotesPartial.HandlerInput,
PartyWheyAppBskyFeedGetQuotesPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getQuotesPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
getRepostedByPartial(
cfg: MethodConfigOrHandler<
A,
PartyWheyAppBskyFeedGetRepostedByPartial.QueryParams,
PartyWheyAppBskyFeedGetRepostedByPartial.HandlerInput,
PartyWheyAppBskyFeedGetRepostedByPartial.HandlerOutput
>,
) {
const nsid = 'party.whey.app.bsky.feed.getRepostedByPartial' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}