this repo has no description
atproto
at main 54 lines 1.0 kB view raw
1/** 2 * GENERATED CODE - DO NOT MODIFY 3 */ 4import { 5 type Auth, 6 type Options as XrpcOptions, 7 Server as XrpcServer, 8 type StreamConfigOrHandler, 9 type MethodConfigOrHandler, 10 createServer as createXrpcServer, 11} from '@atproto/xrpc-server' 12import { schemas } from './lexicons.js' 13 14export function createServer(options?: XrpcOptions): Server { 15 return new Server(options) 16} 17 18export class Server { 19 xrpc: XrpcServer 20 net: NetNS 21 22 constructor(options?: XrpcOptions) { 23 this.xrpc = createXrpcServer(schemas, options) 24 this.net = new NetNS(this) 25 } 26} 27 28export class NetNS { 29 _server: Server 30 mmatt: NetMmattNS 31 32 constructor(server: Server) { 33 this._server = server 34 this.mmatt = new NetMmattNS(server) 35 } 36} 37 38export class NetMmattNS { 39 _server: Server 40 vitals: NetMmattVitalsNS 41 42 constructor(server: Server) { 43 this._server = server 44 this.vitals = new NetMmattVitalsNS(server) 45 } 46} 47 48export class NetMmattVitalsNS { 49 _server: Server 50 51 constructor(server: Server) { 52 this._server = server 53 } 54}