/** * GENERATED CODE - DO NOT MODIFY */ import { type Auth, type Options as XrpcOptions, Server as XrpcServer, type StreamConfigOrHandler, type MethodConfigOrHandler, createServer as createXrpcServer, } from '@atproto/xrpc-server' import { schemas } from './lexicons.js' import * as XyzStatusphereGetStatuses from './types/xyz/statusphere/getStatuses.js' import * as XyzStatusphereGetUser from './types/xyz/statusphere/getUser.js' import * as XyzStatusphereSendStatus from './types/xyz/statusphere/sendStatus.js' export function createServer(options?: XrpcOptions): Server { return new Server(options) } export class Server { xrpc: XrpcServer xyz: XyzNS constructor(options?: XrpcOptions) { this.xrpc = createXrpcServer(schemas, options) this.xyz = new XyzNS(this) } } export class XyzNS { _server: Server statusphere: XyzStatusphereNS constructor(server: Server) { this._server = server this.statusphere = new XyzStatusphereNS(server) } } export class XyzStatusphereNS { _server: Server constructor(server: Server) { this._server = server } getStatuses( cfg: MethodConfigOrHandler< A, XyzStatusphereGetStatuses.QueryParams, XyzStatusphereGetStatuses.HandlerInput, XyzStatusphereGetStatuses.HandlerOutput >, ) { const nsid = 'xyz.statusphere.getStatuses' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } getUser( cfg: MethodConfigOrHandler< A, XyzStatusphereGetUser.QueryParams, XyzStatusphereGetUser.HandlerInput, XyzStatusphereGetUser.HandlerOutput >, ) { const nsid = 'xyz.statusphere.getUser' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } sendStatus( cfg: MethodConfigOrHandler< A, XyzStatusphereSendStatus.QueryParams, XyzStatusphereSendStatus.HandlerInput, XyzStatusphereSendStatus.HandlerOutput >, ) { const nsid = 'xyz.statusphere.sendStatus' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } }