{"version":3,"file":"info.cjs","names":[],"sources":["../../../../src/rest/commands/server/info.ts"],"sourcesContent":["import type { WebSocketAuthModes } from '../../../index.js';\nimport type { RestCommand } from '../../types.js';\n\nexport type ServerInfoOutput = {\n\tproject: {\n\t\tproject_name: string;\n\t\tdefault_language: string;\n\t\tpublic_registration: boolean;\n\t\tpublic_registration_verify_email: boolean;\n\t};\n\tmcp_enabled?: boolean;\n\tai_enabled?: boolean;\n\trateLimit?:\n\t\t| {\n\t\t\t\tpoints: number;\n\t\t\t\tduration: number;\n\t\t  }\n\t\t| false;\n\trateLimitGlobal?:\n\t\t| {\n\t\t\t\tpoints: number;\n\t\t\t\tduration: number;\n\t\t  }\n\t\t| false;\n\tqueryLimit?: {\n\t\tdefault: number;\n\t\tmax: number;\n\t};\n\twebsocket?:\n\t\t| {\n\t\t\t\trest:\n\t\t\t\t\t| {\n\t\t\t\t\t\t\tauthentication: WebSocketAuthModes;\n\t\t\t\t\t\t\tpath: string;\n\t\t\t\t\t  }\n\t\t\t\t\t| false;\n\t\t\t\tgraphql:\n\t\t\t\t\t| {\n\t\t\t\t\t\t\tauthentication: WebSocketAuthModes;\n\t\t\t\t\t\t\tpath: string;\n\t\t\t\t\t  }\n\t\t\t\t\t| false;\n\t\t\t\theartbeat: number | false;\n\t\t  }\n\t\t| false;\n};\n\n/**\n * Get information about the current installation.\n * @returns Information about the current installation.\n */\nexport const serverInfo =\n\t<Schema>(): RestCommand<ServerInfoOutput, Schema> =>\n\t() => ({\n\t\tmethod: 'GET',\n\t\tpath: '/server/info',\n\t});\n"],"mappings":"AAmDA,MAAa,WAEL,CACN,OAAQ,MACR,KAAM,eACN"}