forked from
nekomimi.pet/wisp.place-monorepo
Monorepo for Wisp.place. A static site hosting service built on top of the AT Protocol.
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 place: PlaceNS
21
22 constructor(options?: XrpcOptions) {
23 this.xrpc = createXrpcServer(schemas, options)
24 this.place = new PlaceNS(this)
25 }
26}
27
28export class PlaceNS {
29 _server: Server
30 wisp: PlaceWispNS
31
32 constructor(server: Server) {
33 this._server = server
34 this.wisp = new PlaceWispNS(server)
35 }
36}
37
38export class PlaceWispNS {
39 _server: Server
40
41 constructor(server: Server) {
42 this._server = server
43 }
44}