schemas.ts 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382
  1. // Code generated by tools/openapigen. DO NOT EDIT.
  2. export const SCHEMAS: Record<string, unknown> = {
  3. "AllSetting": {
  4. "description": "AllSetting contains all configuration settings for the 3x-ui panel including web server, Telegram bot, and subscription settings.",
  5. "properties": {
  6. "datepicker": {
  7. "description": "Date picker format",
  8. "type": "string"
  9. },
  10. "expireDiff": {
  11. "description": "Expiration warning threshold in days",
  12. "minimum": 0,
  13. "type": "integer"
  14. },
  15. "externalTrafficInformEnable": {
  16. "description": "Enable external traffic reporting",
  17. "type": "boolean"
  18. },
  19. "externalTrafficInformURI": {
  20. "description": "URI for external traffic reporting",
  21. "type": "string"
  22. },
  23. "ldapAutoCreate": {
  24. "type": "boolean"
  25. },
  26. "ldapAutoDelete": {
  27. "type": "boolean"
  28. },
  29. "ldapBaseDN": {
  30. "type": "string"
  31. },
  32. "ldapBindDN": {
  33. "type": "string"
  34. },
  35. "ldapDefaultExpiryDays": {
  36. "minimum": 0,
  37. "type": "integer"
  38. },
  39. "ldapDefaultLimitIP": {
  40. "minimum": 0,
  41. "type": "integer"
  42. },
  43. "ldapDefaultTotalGB": {
  44. "minimum": 0,
  45. "type": "integer"
  46. },
  47. "ldapEnable": {
  48. "description": "LDAP settings",
  49. "type": "boolean"
  50. },
  51. "ldapFlagField": {
  52. "description": "Generic flag configuration",
  53. "type": "string"
  54. },
  55. "ldapHost": {
  56. "type": "string"
  57. },
  58. "ldapInboundTags": {
  59. "type": "string"
  60. },
  61. "ldapInsecureSkipVerify": {
  62. "type": "boolean"
  63. },
  64. "ldapInvertFlag": {
  65. "type": "boolean"
  66. },
  67. "ldapPassword": {
  68. "type": "string"
  69. },
  70. "ldapPort": {
  71. "maximum": 65535,
  72. "minimum": 0,
  73. "type": "integer"
  74. },
  75. "ldapSyncCron": {
  76. "type": "string"
  77. },
  78. "ldapTruthyValues": {
  79. "type": "string"
  80. },
  81. "ldapUseTLS": {
  82. "type": "boolean"
  83. },
  84. "ldapUserAttr": {
  85. "description": "e.g., mail or uid",
  86. "type": "string"
  87. },
  88. "ldapUserFilter": {
  89. "type": "string"
  90. },
  91. "ldapVlessField": {
  92. "type": "string"
  93. },
  94. "pageSize": {
  95. "description": "UI settings\nNumber of items per page in lists (0 disables pagination)",
  96. "maximum": 1000,
  97. "minimum": 0,
  98. "type": "integer"
  99. },
  100. "panelOutbound": {
  101. "description": "Xray outbound tag for the panel's own outbound HTTP (update checks/downloads, Telegram, geo updates, outbound-subscription fetches)",
  102. "type": "string"
  103. },
  104. "remarkTemplate": {
  105. "description": "Subscription remark template ({{VAR}} tokens) rendered per client",
  106. "type": "string"
  107. },
  108. "restartXrayOnClientDisable": {
  109. "description": "Restart Xray when clients are auto-disabled by expiry/traffic limit",
  110. "type": "boolean"
  111. },
  112. "sessionMaxAge": {
  113. "description": "Session maximum age in minutes (cap at one year)",
  114. "maximum": 525600,
  115. "minimum": 1,
  116. "type": "integer"
  117. },
  118. "smtpCpu": {
  119. "description": "CPU threshold for email notifications",
  120. "maximum": 100,
  121. "minimum": 0,
  122. "type": "integer"
  123. },
  124. "smtpEnable": {
  125. "description": "Email (SMTP) notification settings\nEnable email notifications",
  126. "type": "boolean"
  127. },
  128. "smtpEnabledEvents": {
  129. "description": "Comma-separated event types to send via email",
  130. "type": "string"
  131. },
  132. "smtpEncryptionType": {
  133. "description": "SMTP encryption: none, starttls, tls",
  134. "type": "string"
  135. },
  136. "smtpHost": {
  137. "description": "SMTP server host",
  138. "type": "string"
  139. },
  140. "smtpMemory": {
  141. "description": "Memory threshold for email notifications",
  142. "maximum": 100,
  143. "minimum": 0,
  144. "type": "integer"
  145. },
  146. "smtpPassword": {
  147. "description": "SMTP password",
  148. "type": "string"
  149. },
  150. "smtpPort": {
  151. "description": "SMTP server port",
  152. "maximum": 65535,
  153. "minimum": 1,
  154. "type": "integer"
  155. },
  156. "smtpTo": {
  157. "description": "Comma-separated recipient emails",
  158. "type": "string"
  159. },
  160. "smtpUsername": {
  161. "description": "SMTP username",
  162. "type": "string"
  163. },
  164. "subAnnounce": {
  165. "description": "Subscription announce",
  166. "type": "string"
  167. },
  168. "subCertFile": {
  169. "description": "SSL certificate file for subscription server",
  170. "type": "string"
  171. },
  172. "subClashEnable": {
  173. "description": "Enable Clash/Mihomo subscription endpoint",
  174. "type": "boolean"
  175. },
  176. "subClashEnableRouting": {
  177. "description": "Enable global routing rules for Clash/Mihomo",
  178. "type": "boolean"
  179. },
  180. "subClashPath": {
  181. "description": "Path for Clash/Mihomo subscription endpoint",
  182. "type": "string"
  183. },
  184. "subClashRules": {
  185. "description": "Clash/Mihomo global routing rules",
  186. "type": "string"
  187. },
  188. "subClashURI": {
  189. "description": "Clash/Mihomo subscription server URI",
  190. "type": "string"
  191. },
  192. "subDomain": {
  193. "description": "Domain for subscription server validation",
  194. "type": "string"
  195. },
  196. "subEnable": {
  197. "description": "Subscription server settings\nEnable subscription server",
  198. "type": "boolean"
  199. },
  200. "subEnableRouting": {
  201. "description": "Enable routing for subscription",
  202. "type": "boolean"
  203. },
  204. "subEncrypt": {
  205. "description": "Encrypt subscription responses",
  206. "type": "boolean"
  207. },
  208. "subHideSettings": {
  209. "description": "Hide server settings in happ subscription (Only for Happ)",
  210. "type": "boolean"
  211. },
  212. "subIncyEnableRouting": {
  213. "description": "Enable routing injection for the Incy client",
  214. "type": "boolean"
  215. },
  216. "subIncyRoutingRules": {
  217. "description": "Incy routing deep-link injected into the subscription body (Only for Incy)",
  218. "type": "string"
  219. },
  220. "subJsonEnable": {
  221. "description": "Enable JSON subscription endpoint",
  222. "type": "boolean"
  223. },
  224. "subJsonFinalMask": {
  225. "description": "JSON subscription global finalmask (tcp/udp masks + quicParams)",
  226. "type": "string"
  227. },
  228. "subJsonMux": {
  229. "description": "JSON subscription mux configuration",
  230. "type": "string"
  231. },
  232. "subJsonPath": {
  233. "description": "Path for JSON subscription endpoint",
  234. "type": "string"
  235. },
  236. "subJsonRules": {
  237. "type": "string"
  238. },
  239. "subJsonURI": {
  240. "description": "JSON subscription server URI",
  241. "type": "string"
  242. },
  243. "subKeyFile": {
  244. "description": "SSL private key file for subscription server",
  245. "type": "string"
  246. },
  247. "subListen": {
  248. "description": "Subscription server listen IP",
  249. "type": "string"
  250. },
  251. "subPath": {
  252. "description": "Base path for subscription URLs",
  253. "type": "string"
  254. },
  255. "subPort": {
  256. "description": "Subscription server port",
  257. "maximum": 65535,
  258. "minimum": 1,
  259. "type": "integer"
  260. },
  261. "subProfileUrl": {
  262. "description": "Subscription profile URL",
  263. "type": "string"
  264. },
  265. "subRoutingRules": {
  266. "description": "Subscription global routing rules (Only for Happ)",
  267. "type": "string"
  268. },
  269. "subSupportUrl": {
  270. "description": "Subscription support URL",
  271. "type": "string"
  272. },
  273. "subThemeDir": {
  274. "description": "Absolute path to a folder containing a custom subscription page template",
  275. "type": "string"
  276. },
  277. "subTitle": {
  278. "description": "Subscription title",
  279. "type": "string"
  280. },
  281. "subURI": {
  282. "description": "Subscription server URI",
  283. "type": "string"
  284. },
  285. "subUpdates": {
  286. "description": "Subscription update interval in minutes",
  287. "maximum": 525600,
  288. "minimum": 0,
  289. "type": "integer"
  290. },
  291. "tgBotAPIServer": {
  292. "description": "Custom API server for Telegram bot",
  293. "type": "string"
  294. },
  295. "tgBotBackup": {
  296. "description": "Enable database backup via Telegram",
  297. "type": "boolean"
  298. },
  299. "tgBotChatId": {
  300. "description": "Telegram chat ID for notifications",
  301. "type": "string"
  302. },
  303. "tgBotEnable": {
  304. "description": "Telegram bot settings\nEnable Telegram bot notifications",
  305. "type": "boolean"
  306. },
  307. "tgBotProxy": {
  308. "description": "Proxy URL for Telegram bot",
  309. "type": "string"
  310. },
  311. "tgBotToken": {
  312. "description": "Telegram bot token",
  313. "type": "string"
  314. },
  315. "tgCpu": {
  316. "description": "CPU usage threshold for alerts (percent)",
  317. "maximum": 100,
  318. "minimum": 0,
  319. "type": "integer"
  320. },
  321. "tgEnabledEvents": {
  322. "description": "Comma-separated event types to send via Telegram",
  323. "type": "string"
  324. },
  325. "tgLang": {
  326. "description": "Telegram bot language",
  327. "type": "string"
  328. },
  329. "tgMemory": {
  330. "description": "Memory usage threshold for alerts (percent)",
  331. "maximum": 100,
  332. "minimum": 0,
  333. "type": "integer"
  334. },
  335. "tgRunTime": {
  336. "description": "Cron schedule for Telegram notifications",
  337. "type": "string"
  338. },
  339. "timeLocation": {
  340. "description": "Security settings\nTime zone location",
  341. "type": "string"
  342. },
  343. "trafficDiff": {
  344. "description": "Traffic warning threshold percentage",
  345. "maximum": 100,
  346. "minimum": 0,
  347. "type": "integer"
  348. },
  349. "trustedProxyCIDRs": {
  350. "description": "Trusted reverse proxy IPs/CIDRs for forwarded headers",
  351. "type": "string"
  352. },
  353. "twoFactorEnable": {
  354. "description": "Enable two-factor authentication",
  355. "type": "boolean"
  356. },
  357. "twoFactorToken": {
  358. "description": "Two-factor authentication token",
  359. "type": "string"
  360. },
  361. "warpUpdateInterval": {
  362. "description": "WARP",
  363. "minimum": 0,
  364. "type": "integer"
  365. },
  366. "webBasePath": {
  367. "description": "Base path for web panel URLs",
  368. "type": "string"
  369. },
  370. "webCertFile": {
  371. "description": "Path to SSL certificate file for web server",
  372. "type": "string"
  373. },
  374. "webDomain": {
  375. "description": "Web server domain for domain validation",
  376. "type": "string"
  377. },
  378. "webKeyFile": {
  379. "description": "Path to SSL private key file for web server",
  380. "type": "string"
  381. },
  382. "webListen": {
  383. "description": "Web server settings\nWeb server listen IP address",
  384. "type": "string"
  385. },
  386. "webPort": {
  387. "description": "Web server port number",
  388. "maximum": 65535,
  389. "minimum": 1,
  390. "type": "integer"
  391. }
  392. },
  393. "required": [
  394. "datepicker",
  395. "expireDiff",
  396. "externalTrafficInformEnable",
  397. "externalTrafficInformURI",
  398. "ldapAutoCreate",
  399. "ldapAutoDelete",
  400. "ldapBaseDN",
  401. "ldapBindDN",
  402. "ldapDefaultExpiryDays",
  403. "ldapDefaultLimitIP",
  404. "ldapDefaultTotalGB",
  405. "ldapEnable",
  406. "ldapFlagField",
  407. "ldapHost",
  408. "ldapInboundTags",
  409. "ldapInsecureSkipVerify",
  410. "ldapInvertFlag",
  411. "ldapPassword",
  412. "ldapPort",
  413. "ldapSyncCron",
  414. "ldapTruthyValues",
  415. "ldapUseTLS",
  416. "ldapUserAttr",
  417. "ldapUserFilter",
  418. "ldapVlessField",
  419. "pageSize",
  420. "panelOutbound",
  421. "remarkTemplate",
  422. "restartXrayOnClientDisable",
  423. "sessionMaxAge",
  424. "smtpCpu",
  425. "smtpEnable",
  426. "smtpEnabledEvents",
  427. "smtpEncryptionType",
  428. "smtpHost",
  429. "smtpMemory",
  430. "smtpPassword",
  431. "smtpPort",
  432. "smtpTo",
  433. "smtpUsername",
  434. "subAnnounce",
  435. "subCertFile",
  436. "subClashEnable",
  437. "subClashEnableRouting",
  438. "subClashPath",
  439. "subClashRules",
  440. "subClashURI",
  441. "subDomain",
  442. "subEnable",
  443. "subEnableRouting",
  444. "subEncrypt",
  445. "subHideSettings",
  446. "subIncyEnableRouting",
  447. "subIncyRoutingRules",
  448. "subJsonEnable",
  449. "subJsonFinalMask",
  450. "subJsonMux",
  451. "subJsonPath",
  452. "subJsonRules",
  453. "subJsonURI",
  454. "subKeyFile",
  455. "subListen",
  456. "subPath",
  457. "subPort",
  458. "subProfileUrl",
  459. "subRoutingRules",
  460. "subSupportUrl",
  461. "subThemeDir",
  462. "subTitle",
  463. "subURI",
  464. "subUpdates",
  465. "tgBotAPIServer",
  466. "tgBotBackup",
  467. "tgBotChatId",
  468. "tgBotEnable",
  469. "tgBotProxy",
  470. "tgBotToken",
  471. "tgCpu",
  472. "tgEnabledEvents",
  473. "tgLang",
  474. "tgMemory",
  475. "tgRunTime",
  476. "timeLocation",
  477. "trafficDiff",
  478. "trustedProxyCIDRs",
  479. "twoFactorEnable",
  480. "twoFactorToken",
  481. "warpUpdateInterval",
  482. "webBasePath",
  483. "webCertFile",
  484. "webDomain",
  485. "webKeyFile",
  486. "webListen",
  487. "webPort"
  488. ],
  489. "type": "object"
  490. },
  491. "AllSettingView": {
  492. "description": "AllSettingView is the browser-safe settings read model. Secret values\nare redacted from the embedded write model and represented by presence\nflags so the UI can show configured/not configured state.",
  493. "properties": {
  494. "datepicker": {
  495. "description": "Date picker format",
  496. "type": "string"
  497. },
  498. "expireDiff": {
  499. "description": "Expiration warning threshold in days",
  500. "minimum": 0,
  501. "type": "integer"
  502. },
  503. "externalTrafficInformEnable": {
  504. "description": "Enable external traffic reporting",
  505. "type": "boolean"
  506. },
  507. "externalTrafficInformURI": {
  508. "description": "URI for external traffic reporting",
  509. "type": "string"
  510. },
  511. "hasApiToken": {
  512. "type": "boolean"
  513. },
  514. "hasLdapPassword": {
  515. "type": "boolean"
  516. },
  517. "hasNordSecret": {
  518. "type": "boolean"
  519. },
  520. "hasSmtpPassword": {
  521. "type": "boolean"
  522. },
  523. "hasTgBotToken": {
  524. "type": "boolean"
  525. },
  526. "hasTwoFactorToken": {
  527. "type": "boolean"
  528. },
  529. "hasWarpSecret": {
  530. "type": "boolean"
  531. },
  532. "ldapAutoCreate": {
  533. "type": "boolean"
  534. },
  535. "ldapAutoDelete": {
  536. "type": "boolean"
  537. },
  538. "ldapBaseDN": {
  539. "type": "string"
  540. },
  541. "ldapBindDN": {
  542. "type": "string"
  543. },
  544. "ldapDefaultExpiryDays": {
  545. "minimum": 0,
  546. "type": "integer"
  547. },
  548. "ldapDefaultLimitIP": {
  549. "minimum": 0,
  550. "type": "integer"
  551. },
  552. "ldapDefaultTotalGB": {
  553. "minimum": 0,
  554. "type": "integer"
  555. },
  556. "ldapEnable": {
  557. "description": "LDAP settings",
  558. "type": "boolean"
  559. },
  560. "ldapFlagField": {
  561. "description": "Generic flag configuration",
  562. "type": "string"
  563. },
  564. "ldapHost": {
  565. "type": "string"
  566. },
  567. "ldapInboundTags": {
  568. "type": "string"
  569. },
  570. "ldapInsecureSkipVerify": {
  571. "type": "boolean"
  572. },
  573. "ldapInvertFlag": {
  574. "type": "boolean"
  575. },
  576. "ldapPassword": {
  577. "type": "string"
  578. },
  579. "ldapPort": {
  580. "maximum": 65535,
  581. "minimum": 0,
  582. "type": "integer"
  583. },
  584. "ldapSyncCron": {
  585. "type": "string"
  586. },
  587. "ldapTruthyValues": {
  588. "type": "string"
  589. },
  590. "ldapUseTLS": {
  591. "type": "boolean"
  592. },
  593. "ldapUserAttr": {
  594. "description": "e.g., mail or uid",
  595. "type": "string"
  596. },
  597. "ldapUserFilter": {
  598. "type": "string"
  599. },
  600. "ldapVlessField": {
  601. "type": "string"
  602. },
  603. "pageSize": {
  604. "description": "UI settings\nNumber of items per page in lists (0 disables pagination)",
  605. "maximum": 1000,
  606. "minimum": 0,
  607. "type": "integer"
  608. },
  609. "panelOutbound": {
  610. "description": "Xray outbound tag for the panel's own outbound HTTP (update checks/downloads, Telegram, geo updates, outbound-subscription fetches)",
  611. "type": "string"
  612. },
  613. "remarkTemplate": {
  614. "description": "Subscription remark template ({{VAR}} tokens) rendered per client",
  615. "type": "string"
  616. },
  617. "restartXrayOnClientDisable": {
  618. "description": "Restart Xray when clients are auto-disabled by expiry/traffic limit",
  619. "type": "boolean"
  620. },
  621. "sessionMaxAge": {
  622. "description": "Session maximum age in minutes (cap at one year)",
  623. "maximum": 525600,
  624. "minimum": 1,
  625. "type": "integer"
  626. },
  627. "smtpCpu": {
  628. "description": "CPU threshold for email notifications",
  629. "maximum": 100,
  630. "minimum": 0,
  631. "type": "integer"
  632. },
  633. "smtpEnable": {
  634. "description": "Email (SMTP) notification settings\nEnable email notifications",
  635. "type": "boolean"
  636. },
  637. "smtpEnabledEvents": {
  638. "description": "Comma-separated event types to send via email",
  639. "type": "string"
  640. },
  641. "smtpEncryptionType": {
  642. "description": "SMTP encryption: none, starttls, tls",
  643. "type": "string"
  644. },
  645. "smtpHost": {
  646. "description": "SMTP server host",
  647. "type": "string"
  648. },
  649. "smtpMemory": {
  650. "description": "Memory threshold for email notifications",
  651. "maximum": 100,
  652. "minimum": 0,
  653. "type": "integer"
  654. },
  655. "smtpPassword": {
  656. "description": "SMTP password",
  657. "type": "string"
  658. },
  659. "smtpPort": {
  660. "description": "SMTP server port",
  661. "maximum": 65535,
  662. "minimum": 1,
  663. "type": "integer"
  664. },
  665. "smtpTo": {
  666. "description": "Comma-separated recipient emails",
  667. "type": "string"
  668. },
  669. "smtpUsername": {
  670. "description": "SMTP username",
  671. "type": "string"
  672. },
  673. "subAnnounce": {
  674. "description": "Subscription announce",
  675. "type": "string"
  676. },
  677. "subCertFile": {
  678. "description": "SSL certificate file for subscription server",
  679. "type": "string"
  680. },
  681. "subClashEnable": {
  682. "description": "Enable Clash/Mihomo subscription endpoint",
  683. "type": "boolean"
  684. },
  685. "subClashEnableRouting": {
  686. "description": "Enable global routing rules for Clash/Mihomo",
  687. "type": "boolean"
  688. },
  689. "subClashPath": {
  690. "description": "Path for Clash/Mihomo subscription endpoint",
  691. "type": "string"
  692. },
  693. "subClashRules": {
  694. "description": "Clash/Mihomo global routing rules",
  695. "type": "string"
  696. },
  697. "subClashURI": {
  698. "description": "Clash/Mihomo subscription server URI",
  699. "type": "string"
  700. },
  701. "subDomain": {
  702. "description": "Domain for subscription server validation",
  703. "type": "string"
  704. },
  705. "subEnable": {
  706. "description": "Subscription server settings\nEnable subscription server",
  707. "type": "boolean"
  708. },
  709. "subEnableRouting": {
  710. "description": "Enable routing for subscription",
  711. "type": "boolean"
  712. },
  713. "subEncrypt": {
  714. "description": "Encrypt subscription responses",
  715. "type": "boolean"
  716. },
  717. "subHideSettings": {
  718. "description": "Hide server settings in happ subscription (Only for Happ)",
  719. "type": "boolean"
  720. },
  721. "subIncyEnableRouting": {
  722. "description": "Enable routing injection for the Incy client",
  723. "type": "boolean"
  724. },
  725. "subIncyRoutingRules": {
  726. "description": "Incy routing deep-link injected into the subscription body (Only for Incy)",
  727. "type": "string"
  728. },
  729. "subJsonEnable": {
  730. "description": "Enable JSON subscription endpoint",
  731. "type": "boolean"
  732. },
  733. "subJsonFinalMask": {
  734. "description": "JSON subscription global finalmask (tcp/udp masks + quicParams)",
  735. "type": "string"
  736. },
  737. "subJsonMux": {
  738. "description": "JSON subscription mux configuration",
  739. "type": "string"
  740. },
  741. "subJsonPath": {
  742. "description": "Path for JSON subscription endpoint",
  743. "type": "string"
  744. },
  745. "subJsonRules": {
  746. "type": "string"
  747. },
  748. "subJsonURI": {
  749. "description": "JSON subscription server URI",
  750. "type": "string"
  751. },
  752. "subKeyFile": {
  753. "description": "SSL private key file for subscription server",
  754. "type": "string"
  755. },
  756. "subListen": {
  757. "description": "Subscription server listen IP",
  758. "type": "string"
  759. },
  760. "subPath": {
  761. "description": "Base path for subscription URLs",
  762. "type": "string"
  763. },
  764. "subPort": {
  765. "description": "Subscription server port",
  766. "maximum": 65535,
  767. "minimum": 1,
  768. "type": "integer"
  769. },
  770. "subProfileUrl": {
  771. "description": "Subscription profile URL",
  772. "type": "string"
  773. },
  774. "subRoutingRules": {
  775. "description": "Subscription global routing rules (Only for Happ)",
  776. "type": "string"
  777. },
  778. "subSupportUrl": {
  779. "description": "Subscription support URL",
  780. "type": "string"
  781. },
  782. "subThemeDir": {
  783. "description": "Absolute path to a folder containing a custom subscription page template",
  784. "type": "string"
  785. },
  786. "subTitle": {
  787. "description": "Subscription title",
  788. "type": "string"
  789. },
  790. "subURI": {
  791. "description": "Subscription server URI",
  792. "type": "string"
  793. },
  794. "subUpdates": {
  795. "description": "Subscription update interval in minutes",
  796. "maximum": 525600,
  797. "minimum": 0,
  798. "type": "integer"
  799. },
  800. "tgBotAPIServer": {
  801. "description": "Custom API server for Telegram bot",
  802. "type": "string"
  803. },
  804. "tgBotBackup": {
  805. "description": "Enable database backup via Telegram",
  806. "type": "boolean"
  807. },
  808. "tgBotChatId": {
  809. "description": "Telegram chat ID for notifications",
  810. "type": "string"
  811. },
  812. "tgBotEnable": {
  813. "description": "Telegram bot settings\nEnable Telegram bot notifications",
  814. "type": "boolean"
  815. },
  816. "tgBotProxy": {
  817. "description": "Proxy URL for Telegram bot",
  818. "type": "string"
  819. },
  820. "tgBotToken": {
  821. "description": "Telegram bot token",
  822. "type": "string"
  823. },
  824. "tgCpu": {
  825. "description": "CPU usage threshold for alerts (percent)",
  826. "maximum": 100,
  827. "minimum": 0,
  828. "type": "integer"
  829. },
  830. "tgEnabledEvents": {
  831. "description": "Comma-separated event types to send via Telegram",
  832. "type": "string"
  833. },
  834. "tgLang": {
  835. "description": "Telegram bot language",
  836. "type": "string"
  837. },
  838. "tgMemory": {
  839. "description": "Memory usage threshold for alerts (percent)",
  840. "maximum": 100,
  841. "minimum": 0,
  842. "type": "integer"
  843. },
  844. "tgRunTime": {
  845. "description": "Cron schedule for Telegram notifications",
  846. "type": "string"
  847. },
  848. "timeLocation": {
  849. "description": "Security settings\nTime zone location",
  850. "type": "string"
  851. },
  852. "trafficDiff": {
  853. "description": "Traffic warning threshold percentage",
  854. "maximum": 100,
  855. "minimum": 0,
  856. "type": "integer"
  857. },
  858. "trustedProxyCIDRs": {
  859. "description": "Trusted reverse proxy IPs/CIDRs for forwarded headers",
  860. "type": "string"
  861. },
  862. "twoFactorEnable": {
  863. "description": "Enable two-factor authentication",
  864. "type": "boolean"
  865. },
  866. "twoFactorToken": {
  867. "description": "Two-factor authentication token",
  868. "type": "string"
  869. },
  870. "warpUpdateInterval": {
  871. "description": "WARP",
  872. "minimum": 0,
  873. "type": "integer"
  874. },
  875. "webBasePath": {
  876. "description": "Base path for web panel URLs",
  877. "type": "string"
  878. },
  879. "webCertFile": {
  880. "description": "Path to SSL certificate file for web server",
  881. "type": "string"
  882. },
  883. "webDomain": {
  884. "description": "Web server domain for domain validation",
  885. "type": "string"
  886. },
  887. "webKeyFile": {
  888. "description": "Path to SSL private key file for web server",
  889. "type": "string"
  890. },
  891. "webListen": {
  892. "description": "Web server settings\nWeb server listen IP address",
  893. "type": "string"
  894. },
  895. "webPort": {
  896. "description": "Web server port number",
  897. "maximum": 65535,
  898. "minimum": 1,
  899. "type": "integer"
  900. }
  901. },
  902. "required": [
  903. "datepicker",
  904. "expireDiff",
  905. "externalTrafficInformEnable",
  906. "externalTrafficInformURI",
  907. "hasApiToken",
  908. "hasLdapPassword",
  909. "hasNordSecret",
  910. "hasSmtpPassword",
  911. "hasTgBotToken",
  912. "hasTwoFactorToken",
  913. "hasWarpSecret",
  914. "ldapAutoCreate",
  915. "ldapAutoDelete",
  916. "ldapBaseDN",
  917. "ldapBindDN",
  918. "ldapDefaultExpiryDays",
  919. "ldapDefaultLimitIP",
  920. "ldapDefaultTotalGB",
  921. "ldapEnable",
  922. "ldapFlagField",
  923. "ldapHost",
  924. "ldapInboundTags",
  925. "ldapInsecureSkipVerify",
  926. "ldapInvertFlag",
  927. "ldapPassword",
  928. "ldapPort",
  929. "ldapSyncCron",
  930. "ldapTruthyValues",
  931. "ldapUseTLS",
  932. "ldapUserAttr",
  933. "ldapUserFilter",
  934. "ldapVlessField",
  935. "pageSize",
  936. "panelOutbound",
  937. "remarkTemplate",
  938. "restartXrayOnClientDisable",
  939. "sessionMaxAge",
  940. "smtpCpu",
  941. "smtpEnable",
  942. "smtpEnabledEvents",
  943. "smtpEncryptionType",
  944. "smtpHost",
  945. "smtpMemory",
  946. "smtpPassword",
  947. "smtpPort",
  948. "smtpTo",
  949. "smtpUsername",
  950. "subAnnounce",
  951. "subCertFile",
  952. "subClashEnable",
  953. "subClashEnableRouting",
  954. "subClashPath",
  955. "subClashRules",
  956. "subClashURI",
  957. "subDomain",
  958. "subEnable",
  959. "subEnableRouting",
  960. "subEncrypt",
  961. "subHideSettings",
  962. "subIncyEnableRouting",
  963. "subIncyRoutingRules",
  964. "subJsonEnable",
  965. "subJsonFinalMask",
  966. "subJsonMux",
  967. "subJsonPath",
  968. "subJsonRules",
  969. "subJsonURI",
  970. "subKeyFile",
  971. "subListen",
  972. "subPath",
  973. "subPort",
  974. "subProfileUrl",
  975. "subRoutingRules",
  976. "subSupportUrl",
  977. "subThemeDir",
  978. "subTitle",
  979. "subURI",
  980. "subUpdates",
  981. "tgBotAPIServer",
  982. "tgBotBackup",
  983. "tgBotChatId",
  984. "tgBotEnable",
  985. "tgBotProxy",
  986. "tgBotToken",
  987. "tgCpu",
  988. "tgEnabledEvents",
  989. "tgLang",
  990. "tgMemory",
  991. "tgRunTime",
  992. "timeLocation",
  993. "trafficDiff",
  994. "trustedProxyCIDRs",
  995. "twoFactorEnable",
  996. "twoFactorToken",
  997. "warpUpdateInterval",
  998. "webBasePath",
  999. "webCertFile",
  1000. "webDomain",
  1001. "webKeyFile",
  1002. "webListen",
  1003. "webPort"
  1004. ],
  1005. "type": "object"
  1006. },
  1007. "ApiToken": {
  1008. "properties": {
  1009. "createdAt": {
  1010. "type": "integer"
  1011. },
  1012. "enabled": {
  1013. "type": "boolean"
  1014. },
  1015. "id": {
  1016. "type": "integer"
  1017. },
  1018. "name": {
  1019. "type": "string"
  1020. },
  1021. "token": {
  1022. "description": "SHA-256 hash; the plaintext is shown only once at creation",
  1023. "type": "string"
  1024. }
  1025. },
  1026. "required": [
  1027. "createdAt",
  1028. "enabled",
  1029. "id",
  1030. "name",
  1031. "token"
  1032. ],
  1033. "type": "object"
  1034. },
  1035. "ApiTokenView": {
  1036. "properties": {
  1037. "createdAt": {
  1038. "example": 1736000000,
  1039. "type": "integer"
  1040. },
  1041. "enabled": {
  1042. "example": true,
  1043. "type": "boolean"
  1044. },
  1045. "id": {
  1046. "example": 2,
  1047. "type": "integer"
  1048. },
  1049. "name": {
  1050. "example": "central-panel-a",
  1051. "type": "string"
  1052. },
  1053. "token": {
  1054. "example": "new-token-string",
  1055. "type": "string"
  1056. }
  1057. },
  1058. "required": [
  1059. "createdAt",
  1060. "enabled",
  1061. "id",
  1062. "name"
  1063. ],
  1064. "type": "object"
  1065. },
  1066. "Client": {
  1067. "description": "Client represents a client configuration for Xray inbounds with traffic limits and settings.",
  1068. "properties": {
  1069. "adTag": {
  1070. "example": "0123456789abcdef0123456789abcdef",
  1071. "type": "string"
  1072. },
  1073. "allowedIPs": {
  1074. "items": {
  1075. "type": "string"
  1076. },
  1077. "type": "array"
  1078. },
  1079. "auth": {
  1080. "description": "Auth password (Hysteria)",
  1081. "type": "string"
  1082. },
  1083. "comment": {
  1084. "description": "Client comment",
  1085. "type": "string"
  1086. },
  1087. "created_at": {
  1088. "description": "Creation timestamp",
  1089. "type": "integer"
  1090. },
  1091. "email": {
  1092. "description": "Client email identifier",
  1093. "type": "string"
  1094. },
  1095. "enable": {
  1096. "description": "Whether the client is enabled",
  1097. "type": "boolean"
  1098. },
  1099. "expiryTime": {
  1100. "description": "Expiration timestamp",
  1101. "type": "integer"
  1102. },
  1103. "flow": {
  1104. "description": "Flow control (XTLS)",
  1105. "type": "string"
  1106. },
  1107. "group": {
  1108. "description": "Logical grouping label",
  1109. "type": "string"
  1110. },
  1111. "id": {
  1112. "description": "Unique client identifier",
  1113. "type": "string"
  1114. },
  1115. "keepAlive": {
  1116. "type": "integer"
  1117. },
  1118. "limitIp": {
  1119. "description": "IP limit for this client",
  1120. "type": "integer"
  1121. },
  1122. "password": {
  1123. "description": "Client password",
  1124. "type": "string"
  1125. },
  1126. "preSharedKey": {
  1127. "type": "string"
  1128. },
  1129. "privateKey": {
  1130. "type": "string"
  1131. },
  1132. "publicKey": {
  1133. "type": "string"
  1134. },
  1135. "reset": {
  1136. "description": "Reset period in days",
  1137. "type": "integer"
  1138. },
  1139. "reverse": {
  1140. "allOf": [
  1141. {
  1142. "$ref": "#/components/schemas/ClientReverse"
  1143. }
  1144. ],
  1145. "description": "VLESS simple reverse proxy settings",
  1146. "nullable": true
  1147. },
  1148. "secret": {
  1149. "example": "ee1234567890abcdef1234567890abcd7777772e636c6f7564666c6172652e636f6d",
  1150. "type": "string"
  1151. },
  1152. "security": {
  1153. "description": "Security method (e.g., \"auto\", \"aes-128-gcm\")",
  1154. "type": "string"
  1155. },
  1156. "subId": {
  1157. "description": "Subscription identifier",
  1158. "type": "string"
  1159. },
  1160. "tgId": {
  1161. "description": "Telegram user ID for notifications",
  1162. "type": "integer"
  1163. },
  1164. "totalGB": {
  1165. "description": "Total traffic limit in GB",
  1166. "type": "integer"
  1167. },
  1168. "updated_at": {
  1169. "description": "Last update timestamp",
  1170. "type": "integer"
  1171. }
  1172. },
  1173. "required": [
  1174. "comment",
  1175. "email",
  1176. "enable",
  1177. "expiryTime",
  1178. "limitIp",
  1179. "reset",
  1180. "security",
  1181. "subId",
  1182. "tgId",
  1183. "totalGB"
  1184. ],
  1185. "type": "object"
  1186. },
  1187. "ClientInbound": {
  1188. "properties": {
  1189. "clientId": {
  1190. "type": "integer"
  1191. },
  1192. "createdAt": {
  1193. "type": "integer"
  1194. },
  1195. "flowOverride": {
  1196. "type": "string"
  1197. },
  1198. "inboundId": {
  1199. "type": "integer"
  1200. }
  1201. },
  1202. "required": [
  1203. "clientId",
  1204. "createdAt",
  1205. "flowOverride",
  1206. "inboundId"
  1207. ],
  1208. "type": "object"
  1209. },
  1210. "ClientRecord": {
  1211. "properties": {
  1212. "adTag": {
  1213. "type": "string"
  1214. },
  1215. "allowedIPs": {
  1216. "type": "string"
  1217. },
  1218. "auth": {
  1219. "type": "string"
  1220. },
  1221. "comment": {
  1222. "type": "string"
  1223. },
  1224. "createdAt": {
  1225. "type": "integer"
  1226. },
  1227. "email": {
  1228. "type": "string"
  1229. },
  1230. "enable": {
  1231. "type": "boolean"
  1232. },
  1233. "expiryTime": {
  1234. "type": "integer"
  1235. },
  1236. "flow": {
  1237. "type": "string"
  1238. },
  1239. "group": {
  1240. "type": "string"
  1241. },
  1242. "id": {
  1243. "type": "integer"
  1244. },
  1245. "keepAlive": {
  1246. "type": "integer"
  1247. },
  1248. "limitIp": {
  1249. "type": "integer"
  1250. },
  1251. "password": {
  1252. "type": "string"
  1253. },
  1254. "preSharedKey": {
  1255. "type": "string"
  1256. },
  1257. "privateKey": {
  1258. "type": "string"
  1259. },
  1260. "publicKey": {
  1261. "type": "string"
  1262. },
  1263. "reset": {
  1264. "type": "integer"
  1265. },
  1266. "reverse": {},
  1267. "secret": {
  1268. "type": "string"
  1269. },
  1270. "security": {
  1271. "type": "string"
  1272. },
  1273. "subId": {
  1274. "type": "string"
  1275. },
  1276. "tgId": {
  1277. "type": "integer"
  1278. },
  1279. "totalGB": {
  1280. "type": "integer"
  1281. },
  1282. "updatedAt": {
  1283. "type": "integer"
  1284. },
  1285. "uuid": {
  1286. "type": "string"
  1287. }
  1288. },
  1289. "required": [
  1290. "adTag",
  1291. "allowedIPs",
  1292. "auth",
  1293. "comment",
  1294. "createdAt",
  1295. "email",
  1296. "enable",
  1297. "expiryTime",
  1298. "flow",
  1299. "group",
  1300. "id",
  1301. "keepAlive",
  1302. "limitIp",
  1303. "password",
  1304. "preSharedKey",
  1305. "privateKey",
  1306. "publicKey",
  1307. "reset",
  1308. "reverse",
  1309. "secret",
  1310. "security",
  1311. "subId",
  1312. "tgId",
  1313. "totalGB",
  1314. "updatedAt",
  1315. "uuid"
  1316. ],
  1317. "type": "object"
  1318. },
  1319. "ClientReverse": {
  1320. "properties": {
  1321. "tag": {
  1322. "type": "string"
  1323. }
  1324. },
  1325. "required": [
  1326. "tag"
  1327. ],
  1328. "type": "object"
  1329. },
  1330. "ClientTraffic": {
  1331. "description": "ClientTraffic represents traffic statistics and limits for a specific client.\nIt tracks upload/download usage, expiry times, and online status for inbound clients.",
  1332. "properties": {
  1333. "down": {
  1334. "example": 2097152,
  1335. "type": "integer"
  1336. },
  1337. "email": {
  1338. "example": "user1",
  1339. "type": "string"
  1340. },
  1341. "enable": {
  1342. "example": true,
  1343. "type": "boolean"
  1344. },
  1345. "expiryTime": {
  1346. "example": 1735689600000,
  1347. "type": "integer"
  1348. },
  1349. "id": {
  1350. "example": 14825,
  1351. "type": "integer"
  1352. },
  1353. "inboundId": {
  1354. "example": 1,
  1355. "type": "integer"
  1356. },
  1357. "lastOnline": {
  1358. "example": 1735680000000,
  1359. "type": "integer"
  1360. },
  1361. "reset": {
  1362. "example": 0,
  1363. "type": "integer"
  1364. },
  1365. "subId": {
  1366. "example": "i7tvdpeffi0hvvf1",
  1367. "type": "string"
  1368. },
  1369. "total": {
  1370. "example": 10737418240,
  1371. "type": "integer"
  1372. },
  1373. "up": {
  1374. "example": 1048576,
  1375. "type": "integer"
  1376. },
  1377. "uuid": {
  1378. "example": "e18c9a96-71bf-48d4-933f-8b9a46d4290c",
  1379. "type": "string"
  1380. }
  1381. },
  1382. "required": [
  1383. "down",
  1384. "email",
  1385. "enable",
  1386. "expiryTime",
  1387. "id",
  1388. "inboundId",
  1389. "lastOnline",
  1390. "reset",
  1391. "subId",
  1392. "total",
  1393. "up",
  1394. "uuid"
  1395. ],
  1396. "type": "object"
  1397. },
  1398. "FallbackParentInfo": {
  1399. "description": "FallbackParentInfo carries everything the frontend needs to rewrite a\nchild inbound's client link: where to connect (the master's address\nand port) and which path matched on the master's fallbacks array.\nThe frontend already has the master inbound in its dbInbounds list,\nso we only ship identifiers + the match path here.",
  1400. "properties": {
  1401. "masterId": {
  1402. "type": "integer"
  1403. },
  1404. "path": {
  1405. "type": "string"
  1406. }
  1407. },
  1408. "required": [
  1409. "masterId"
  1410. ],
  1411. "type": "object"
  1412. },
  1413. "HistoryOfSeeders": {
  1414. "description": "HistoryOfSeeders tracks which database seeders have been executed to prevent re-running.",
  1415. "properties": {
  1416. "id": {
  1417. "type": "integer"
  1418. },
  1419. "seederName": {
  1420. "type": "string"
  1421. }
  1422. },
  1423. "required": [
  1424. "id",
  1425. "seederName"
  1426. ],
  1427. "type": "object"
  1428. },
  1429. "Host": {
  1430. "description": "Host is an override endpoint attached to an inbound: at subscription time each\nenabled host renders one share link/proxy with its own address/port/TLS/etc.,\nsuperseding the legacy externalProxy array. Free-JSON fields are stored as\ntext and parsed in the sub layer; slice fields use the json serializer.",
  1431. "properties": {
  1432. "address": {
  1433. "example": "cdn.example.com",
  1434. "type": "string"
  1435. },
  1436. "allowInsecure": {
  1437. "type": "boolean"
  1438. },
  1439. "alpn": {
  1440. "items": {
  1441. "type": "string"
  1442. },
  1443. "type": "array"
  1444. },
  1445. "createdAt": {
  1446. "type": "integer"
  1447. },
  1448. "echConfigList": {
  1449. "type": "string"
  1450. },
  1451. "excludeFromSubTypes": {
  1452. "items": {
  1453. "type": "string"
  1454. },
  1455. "type": "array"
  1456. },
  1457. "finalMask": {
  1458. "description": "FinalMask is a JSON object of xray finalmask masks (tcp/udp/quicParams),\nmerged into this host's JSON-subscription stream. Empty = no override.",
  1459. "type": "string"
  1460. },
  1461. "fingerprint": {
  1462. "type": "string"
  1463. },
  1464. "hostHeader": {
  1465. "type": "string"
  1466. },
  1467. "id": {
  1468. "example": 1,
  1469. "type": "integer"
  1470. },
  1471. "inboundId": {
  1472. "example": 1,
  1473. "type": "integer"
  1474. },
  1475. "isDisabled": {
  1476. "type": "boolean"
  1477. },
  1478. "isHidden": {
  1479. "type": "boolean"
  1480. },
  1481. "keepSniBlank": {
  1482. "type": "boolean"
  1483. },
  1484. "mihomoIpVersion": {
  1485. "enum": [
  1486. "dual",
  1487. "ipv4",
  1488. "ipv6",
  1489. "ipv4-prefer",
  1490. "ipv6-prefer"
  1491. ],
  1492. "type": "string"
  1493. },
  1494. "mihomoX25519": {
  1495. "type": "boolean"
  1496. },
  1497. "muxParams": {},
  1498. "nodeGuids": {
  1499. "items": {
  1500. "type": "string"
  1501. },
  1502. "type": "array"
  1503. },
  1504. "overrideSniFromAddress": {
  1505. "type": "boolean"
  1506. },
  1507. "path": {
  1508. "type": "string"
  1509. },
  1510. "pinnedPeerCertSha256": {
  1511. "items": {
  1512. "type": "string"
  1513. },
  1514. "type": "array"
  1515. },
  1516. "port": {
  1517. "example": 8443,
  1518. "maximum": 65535,
  1519. "minimum": 0,
  1520. "type": "integer"
  1521. },
  1522. "remark": {
  1523. "example": "cdn-front",
  1524. "maxLength": 256,
  1525. "type": "string"
  1526. },
  1527. "security": {
  1528. "enum": [
  1529. "same",
  1530. "tls",
  1531. "none",
  1532. "reality"
  1533. ],
  1534. "example": "same",
  1535. "type": "string"
  1536. },
  1537. "serverDescription": {
  1538. "maxLength": 64,
  1539. "type": "string"
  1540. },
  1541. "shuffleHost": {
  1542. "type": "boolean"
  1543. },
  1544. "sni": {
  1545. "type": "string"
  1546. },
  1547. "sockoptParams": {},
  1548. "sortOrder": {
  1549. "type": "integer"
  1550. },
  1551. "tags": {
  1552. "items": {
  1553. "type": "string"
  1554. },
  1555. "type": "array"
  1556. },
  1557. "updatedAt": {
  1558. "type": "integer"
  1559. },
  1560. "verifyPeerCertByName": {
  1561. "type": "string"
  1562. },
  1563. "vlessRoute": {
  1564. "description": "Single VLESS route value (0-65535) baked into the subscription UUID's 3rd\ngroup (bytes 6-7), which xray reads via net.PortFromBytes(id[6:8]). Empty = none.",
  1565. "example": "443",
  1566. "type": "string"
  1567. }
  1568. },
  1569. "required": [
  1570. "address",
  1571. "allowInsecure",
  1572. "alpn",
  1573. "createdAt",
  1574. "echConfigList",
  1575. "excludeFromSubTypes",
  1576. "finalMask",
  1577. "fingerprint",
  1578. "hostHeader",
  1579. "id",
  1580. "inboundId",
  1581. "isDisabled",
  1582. "isHidden",
  1583. "keepSniBlank",
  1584. "mihomoIpVersion",
  1585. "mihomoX25519",
  1586. "muxParams",
  1587. "overrideSniFromAddress",
  1588. "path",
  1589. "pinnedPeerCertSha256",
  1590. "port",
  1591. "remark",
  1592. "security",
  1593. "serverDescription",
  1594. "shuffleHost",
  1595. "sni",
  1596. "sockoptParams",
  1597. "sortOrder",
  1598. "tags",
  1599. "updatedAt",
  1600. "verifyPeerCertByName",
  1601. "vlessRoute"
  1602. ],
  1603. "type": "object"
  1604. },
  1605. "Inbound": {
  1606. "description": "Inbound represents an Xray inbound configuration with traffic statistics and settings.",
  1607. "properties": {
  1608. "clientStats": {
  1609. "description": "Client traffic statistics",
  1610. "items": {
  1611. "$ref": "#/components/schemas/ClientTraffic"
  1612. },
  1613. "type": "array"
  1614. },
  1615. "down": {
  1616. "description": "Download traffic in bytes",
  1617. "type": "integer"
  1618. },
  1619. "enable": {
  1620. "description": "Whether the inbound is enabled",
  1621. "example": true,
  1622. "type": "boolean"
  1623. },
  1624. "expiryTime": {
  1625. "description": "Expiration timestamp",
  1626. "type": "integer"
  1627. },
  1628. "fallbackParent": {
  1629. "allOf": [
  1630. {
  1631. "$ref": "#/components/schemas/FallbackParentInfo"
  1632. }
  1633. ],
  1634. "description": "FallbackParent is populated by the API layer when this inbound is\nattached as a fallback child of a VLESS/Trojan TCP-TLS master.\nThe frontend uses it to rewrite client-share links so they advertise\nthe master's externally reachable endpoint instead of the child's\nloopback listen. Not persisted.",
  1635. "nullable": true
  1636. },
  1637. "id": {
  1638. "description": "Unique identifier",
  1639. "example": 1,
  1640. "type": "integer"
  1641. },
  1642. "lastTrafficResetTime": {
  1643. "description": "Last traffic reset timestamp",
  1644. "type": "integer"
  1645. },
  1646. "listen": {
  1647. "description": "Xray configuration fields",
  1648. "type": "string"
  1649. },
  1650. "nodeId": {
  1651. "nullable": true,
  1652. "type": "integer"
  1653. },
  1654. "originNodeGuid": {
  1655. "description": "OriginNodeGuid is the panelGuid of the node that physically hosts this\ninbound, propagated up across hops (#4983). Empty for an inbound that\nlives on this panel's own xray; set to the originating node's GUID when\nthe inbound was synced from a node (kept as-is across further hops). Lets\nthe master attribute a deeply nested inbound to the real node instead of\nthe intermediate one it was fetched through.",
  1656. "type": "string"
  1657. },
  1658. "port": {
  1659. "example": 443,
  1660. "maximum": 65535,
  1661. "minimum": 0,
  1662. "type": "integer"
  1663. },
  1664. "protocol": {
  1665. "enum": [
  1666. "vmess",
  1667. "vless",
  1668. "trojan",
  1669. "shadowsocks",
  1670. "wireguard",
  1671. "hysteria",
  1672. "http",
  1673. "mixed",
  1674. "tunnel",
  1675. "tun",
  1676. "mtproto"
  1677. ],
  1678. "example": "vless",
  1679. "type": "string"
  1680. },
  1681. "remark": {
  1682. "description": "Human-readable remark",
  1683. "example": "VLESS-443",
  1684. "type": "string"
  1685. },
  1686. "settings": {},
  1687. "shareAddr": {
  1688. "type": "string"
  1689. },
  1690. "shareAddrStrategy": {
  1691. "enum": [
  1692. "node",
  1693. "listen",
  1694. "custom"
  1695. ],
  1696. "type": "string"
  1697. },
  1698. "sniffing": {},
  1699. "streamSettings": {},
  1700. "subSortIndex": {
  1701. "description": "1-based sort order of this inbound's links in subscription output only (lower first; ties by id)",
  1702. "example": 1,
  1703. "minimum": 1,
  1704. "type": "integer"
  1705. },
  1706. "tag": {
  1707. "example": "in-443-tcp",
  1708. "type": "string"
  1709. },
  1710. "total": {
  1711. "description": "Total traffic limit in bytes",
  1712. "type": "integer"
  1713. },
  1714. "trafficReset": {
  1715. "description": "Traffic reset schedule",
  1716. "enum": [
  1717. "never",
  1718. "hourly",
  1719. "daily",
  1720. "weekly",
  1721. "monthly"
  1722. ],
  1723. "type": "string"
  1724. },
  1725. "up": {
  1726. "description": "Upload traffic in bytes",
  1727. "type": "integer"
  1728. }
  1729. },
  1730. "required": [
  1731. "clientStats",
  1732. "down",
  1733. "enable",
  1734. "expiryTime",
  1735. "id",
  1736. "lastTrafficResetTime",
  1737. "listen",
  1738. "port",
  1739. "protocol",
  1740. "remark",
  1741. "settings",
  1742. "shareAddr",
  1743. "shareAddrStrategy",
  1744. "sniffing",
  1745. "streamSettings",
  1746. "subSortIndex",
  1747. "tag",
  1748. "total",
  1749. "trafficReset",
  1750. "up"
  1751. ],
  1752. "type": "object"
  1753. },
  1754. "InboundClientIps": {
  1755. "description": "InboundClientIps stores IP addresses associated with inbound clients for access control.",
  1756. "properties": {
  1757. "clientEmail": {
  1758. "type": "string"
  1759. },
  1760. "id": {
  1761. "type": "integer"
  1762. },
  1763. "ips": {}
  1764. },
  1765. "required": [
  1766. "clientEmail",
  1767. "id",
  1768. "ips"
  1769. ],
  1770. "type": "object"
  1771. },
  1772. "InboundFallback": {
  1773. "properties": {
  1774. "alpn": {
  1775. "type": "string"
  1776. },
  1777. "childId": {
  1778. "type": "integer"
  1779. },
  1780. "dest": {
  1781. "type": "string"
  1782. },
  1783. "id": {
  1784. "type": "integer"
  1785. },
  1786. "masterId": {
  1787. "type": "integer"
  1788. },
  1789. "name": {
  1790. "type": "string"
  1791. },
  1792. "path": {
  1793. "type": "string"
  1794. },
  1795. "sortOrder": {
  1796. "type": "integer"
  1797. },
  1798. "xver": {
  1799. "type": "integer"
  1800. }
  1801. },
  1802. "required": [
  1803. "alpn",
  1804. "childId",
  1805. "dest",
  1806. "id",
  1807. "masterId",
  1808. "name",
  1809. "path",
  1810. "sortOrder",
  1811. "xver"
  1812. ],
  1813. "type": "object"
  1814. },
  1815. "InboundOption": {
  1816. "properties": {
  1817. "enable": {
  1818. "example": true,
  1819. "type": "boolean"
  1820. },
  1821. "id": {
  1822. "example": 1,
  1823. "type": "integer"
  1824. },
  1825. "listen": {
  1826. "type": "string"
  1827. },
  1828. "mtprotoDomain": {
  1829. "type": "string"
  1830. },
  1831. "nodeAddress": {
  1832. "description": "Share-host resolution inputs, mirroring the subscription's\nresolveInboundAddress so the clients page renders a node-managed WireGuard\nEndpoint that points at the node, not the master panel. NodeAddress is the\nhosting node's externally reachable address (empty for this panel's own\ninbounds); Listen and ShareAddrStrategy/ShareAddr feed the same\nnode→listen→custom fallback the share/QR links already use.",
  1833. "type": "string"
  1834. },
  1835. "nodeId": {
  1836. "description": "Hosting node; nil for this panel's own inbounds. Lets the clients\npage map a node filter onto inbound IDs (#4997).",
  1837. "nullable": true,
  1838. "type": "integer"
  1839. },
  1840. "port": {
  1841. "example": 443,
  1842. "type": "integer"
  1843. },
  1844. "protocol": {
  1845. "example": "vless",
  1846. "type": "string"
  1847. },
  1848. "remark": {
  1849. "example": "VLESS-443",
  1850. "type": "string"
  1851. },
  1852. "shareAddr": {
  1853. "type": "string"
  1854. },
  1855. "shareAddrStrategy": {
  1856. "type": "string"
  1857. },
  1858. "ssMethod": {
  1859. "type": "string"
  1860. },
  1861. "tag": {
  1862. "example": "in-443-tcp",
  1863. "type": "string"
  1864. },
  1865. "tlsFlowCapable": {
  1866. "example": true,
  1867. "type": "boolean"
  1868. },
  1869. "wgDns": {
  1870. "type": "string"
  1871. },
  1872. "wgMtu": {
  1873. "type": "integer"
  1874. },
  1875. "wgPublicKey": {
  1876. "type": "string"
  1877. }
  1878. },
  1879. "required": [
  1880. "enable",
  1881. "id",
  1882. "port",
  1883. "protocol",
  1884. "remark",
  1885. "ssMethod",
  1886. "tag",
  1887. "tlsFlowCapable"
  1888. ],
  1889. "type": "object"
  1890. },
  1891. "Msg": {
  1892. "description": "Msg represents a standard API response message with success status, message text, and optional data object.",
  1893. "properties": {
  1894. "msg": {
  1895. "description": "Response message text",
  1896. "type": "string"
  1897. },
  1898. "obj": {
  1899. "description": "Optional data object"
  1900. },
  1901. "success": {
  1902. "description": "Indicates if the operation was successful",
  1903. "type": "boolean"
  1904. }
  1905. },
  1906. "required": [
  1907. "msg",
  1908. "obj",
  1909. "success"
  1910. ],
  1911. "type": "object"
  1912. },
  1913. "Node": {
  1914. "description": "Node represents a remote 3x-ui panel registered with the central panel.\nThe central panel polls each node's existing /panel/api/server/status\nendpoint over HTTP using the per-node ApiToken to populate the runtime\nstatus fields below.",
  1915. "properties": {
  1916. "activeCount": {
  1917. "example": 23,
  1918. "type": "integer"
  1919. },
  1920. "address": {
  1921. "example": "node1.example.com",
  1922. "type": "string"
  1923. },
  1924. "allowPrivateAddress": {
  1925. "type": "boolean"
  1926. },
  1927. "apiToken": {
  1928. "example": "abcdef0123456789",
  1929. "type": "string"
  1930. },
  1931. "basePath": {
  1932. "example": "/",
  1933. "type": "string"
  1934. },
  1935. "clientCount": {
  1936. "example": 27,
  1937. "type": "integer"
  1938. },
  1939. "configDirty": {
  1940. "type": "boolean"
  1941. },
  1942. "configDirtyAt": {
  1943. "type": "integer"
  1944. },
  1945. "cpuPct": {
  1946. "example": 23.5,
  1947. "type": "number"
  1948. },
  1949. "createdAt": {
  1950. "example": 1700000000,
  1951. "type": "integer"
  1952. },
  1953. "depletedCount": {
  1954. "example": 1,
  1955. "type": "integer"
  1956. },
  1957. "disabledCount": {
  1958. "example": 3,
  1959. "type": "integer"
  1960. },
  1961. "enable": {
  1962. "example": true,
  1963. "type": "boolean"
  1964. },
  1965. "guid": {
  1966. "description": "Guid is the remote panel's stable self-identifier (its panelGuid),\nlearned from each heartbeat. It is the globally stable node identity used\nto attribute online clients/inbounds to the physical node across a chain\nof nodes (#4983); panel-local autoincrement ids don't survive a hop.\nObserved-state only — never user-edited.",
  1967. "type": "string"
  1968. },
  1969. "id": {
  1970. "example": 1,
  1971. "type": "integer"
  1972. },
  1973. "inboundCount": {
  1974. "example": 5,
  1975. "type": "integer"
  1976. },
  1977. "inboundSyncMode": {
  1978. "enum": [
  1979. "all",
  1980. "selected"
  1981. ],
  1982. "type": "string"
  1983. },
  1984. "inboundTags": {
  1985. "items": {
  1986. "type": "string"
  1987. },
  1988. "type": "array"
  1989. },
  1990. "lastError": {
  1991. "type": "string"
  1992. },
  1993. "lastHeartbeat": {
  1994. "description": "unix seconds, 0 = never",
  1995. "example": 1700000000,
  1996. "type": "integer"
  1997. },
  1998. "latencyMs": {
  1999. "example": 42,
  2000. "type": "integer"
  2001. },
  2002. "memPct": {
  2003. "example": 45.1,
  2004. "type": "number"
  2005. },
  2006. "name": {
  2007. "example": "de-fra-1",
  2008. "type": "string"
  2009. },
  2010. "netDown": {
  2011. "example": 2097152,
  2012. "type": "integer"
  2013. },
  2014. "netUp": {
  2015. "example": 1048576,
  2016. "type": "integer"
  2017. },
  2018. "onlineCount": {
  2019. "example": 3,
  2020. "type": "integer"
  2021. },
  2022. "outboundTag": {
  2023. "type": "string"
  2024. },
  2025. "panelVersion": {
  2026. "example": "v3.x.x",
  2027. "type": "string"
  2028. },
  2029. "parentGuid": {
  2030. "description": "ParentGuid + Transitive are set only when a node is surfaced as part of a\nnode tree (#4983): direct nodes carry the master panel's own GUID, a\ntransitive sub-node carries its parent node's GUID. Transitive nodes are\nread-only projections (Id == 0, not persisted) — never edited or deployed.",
  2031. "type": "string"
  2032. },
  2033. "pinnedCertSha256": {
  2034. "type": "string"
  2035. },
  2036. "port": {
  2037. "example": 2053,
  2038. "maximum": 65535,
  2039. "minimum": 1,
  2040. "type": "integer"
  2041. },
  2042. "remark": {
  2043. "type": "string"
  2044. },
  2045. "scheme": {
  2046. "enum": [
  2047. "http",
  2048. "https"
  2049. ],
  2050. "example": "https",
  2051. "type": "string"
  2052. },
  2053. "status": {
  2054. "description": "Heartbeat-updated fields. UpdatedAt advances on every probe even when\nthe row is otherwise unchanged so the UI's \"last seen\" tooltip is\ntruthful without us having to read LastHeartbeat separately.\nonline|offline|unknown",
  2055. "example": "online",
  2056. "type": "string"
  2057. },
  2058. "tlsVerifyMode": {
  2059. "enum": [
  2060. "verify",
  2061. "skip",
  2062. "pin",
  2063. "mtls"
  2064. ],
  2065. "type": "string"
  2066. },
  2067. "transitive": {
  2068. "type": "boolean"
  2069. },
  2070. "updatedAt": {
  2071. "example": 1700000000,
  2072. "type": "integer"
  2073. },
  2074. "uptimeSecs": {
  2075. "example": 86400,
  2076. "type": "integer"
  2077. },
  2078. "xrayError": {
  2079. "type": "string"
  2080. },
  2081. "xrayState": {
  2082. "description": "XrayState and XrayError are captured from the remote node's /panel/api/server/status\nduring heartbeats. They let the central panel distinguish \"panel API reachable\"\n(status=online) from \"Xray core itself has failed on the node\" for monitoring.",
  2083. "type": "string"
  2084. },
  2085. "xrayVersion": {
  2086. "example": "25.10.31",
  2087. "type": "string"
  2088. }
  2089. },
  2090. "required": [
  2091. "activeCount",
  2092. "address",
  2093. "allowPrivateAddress",
  2094. "apiToken",
  2095. "basePath",
  2096. "clientCount",
  2097. "configDirty",
  2098. "configDirtyAt",
  2099. "cpuPct",
  2100. "createdAt",
  2101. "depletedCount",
  2102. "disabledCount",
  2103. "enable",
  2104. "guid",
  2105. "id",
  2106. "inboundCount",
  2107. "inboundSyncMode",
  2108. "inboundTags",
  2109. "lastError",
  2110. "lastHeartbeat",
  2111. "latencyMs",
  2112. "memPct",
  2113. "name",
  2114. "netDown",
  2115. "netUp",
  2116. "onlineCount",
  2117. "outboundTag",
  2118. "panelVersion",
  2119. "pinnedCertSha256",
  2120. "port",
  2121. "remark",
  2122. "scheme",
  2123. "status",
  2124. "tlsVerifyMode",
  2125. "updatedAt",
  2126. "uptimeSecs",
  2127. "xrayError",
  2128. "xrayState",
  2129. "xrayVersion"
  2130. ],
  2131. "type": "object"
  2132. },
  2133. "OutboundTraffics": {
  2134. "description": "OutboundTraffics tracks traffic statistics for Xray outbound connections.",
  2135. "properties": {
  2136. "down": {
  2137. "type": "integer"
  2138. },
  2139. "id": {
  2140. "type": "integer"
  2141. },
  2142. "tag": {
  2143. "type": "string"
  2144. },
  2145. "total": {
  2146. "type": "integer"
  2147. },
  2148. "up": {
  2149. "type": "integer"
  2150. }
  2151. },
  2152. "required": [
  2153. "down",
  2154. "id",
  2155. "tag",
  2156. "total",
  2157. "up"
  2158. ],
  2159. "type": "object"
  2160. },
  2161. "PanelUpdateStatus": {
  2162. "description": "PanelUpdateStatus reports the outcome of the most recently launched panel\nself-update. RunID lets the caller confirm this status belongs to the\nupdate it started rather than a stale result left over from an earlier\nrun; State is one of \"pending\", \"success\", or \"failed\". RunID is a decimal\nstring, not a JSON number: it's a formatted UnixNano timestamp, and\nJavaScript's number type can't represent that precisely (it exceeds\nNumber.MAX_SAFE_INTEGER), which would let two different runs round to the\nsame value on the wire and defeat the whole point of this field.",
  2163. "properties": {
  2164. "exitCode": {
  2165. "example": 0,
  2166. "type": "integer"
  2167. },
  2168. "finishedAt": {
  2169. "example": 1735689612,
  2170. "type": "integer"
  2171. },
  2172. "runId": {
  2173. "example": "1735689600123456789",
  2174. "type": "string"
  2175. },
  2176. "state": {
  2177. "example": "success",
  2178. "type": "string"
  2179. }
  2180. },
  2181. "required": [
  2182. "exitCode",
  2183. "finishedAt",
  2184. "runId",
  2185. "state"
  2186. ],
  2187. "type": "object"
  2188. },
  2189. "ProbeResultUI": {
  2190. "properties": {
  2191. "cpuPct": {
  2192. "example": 12.5,
  2193. "type": "number"
  2194. },
  2195. "error": {
  2196. "type": "string"
  2197. },
  2198. "latencyMs": {
  2199. "example": 42,
  2200. "type": "integer"
  2201. },
  2202. "memPct": {
  2203. "example": 45.2,
  2204. "type": "number"
  2205. },
  2206. "panelVersion": {
  2207. "example": "v3.x.x",
  2208. "type": "string"
  2209. },
  2210. "status": {
  2211. "example": "online",
  2212. "type": "string"
  2213. },
  2214. "uptimeSecs": {
  2215. "example": 86400,
  2216. "type": "integer"
  2217. },
  2218. "xrayError": {
  2219. "type": "string"
  2220. },
  2221. "xrayState": {
  2222. "description": "XrayState/XrayError are populated on successful probes even when the node's\nXray core is not healthy. The UI uses them for a distinct \"panel ok, xray failed\" indicator.",
  2223. "type": "string"
  2224. },
  2225. "xrayVersion": {
  2226. "example": "25.10.31",
  2227. "type": "string"
  2228. }
  2229. },
  2230. "required": [
  2231. "cpuPct",
  2232. "error",
  2233. "latencyMs",
  2234. "memPct",
  2235. "panelVersion",
  2236. "status",
  2237. "uptimeSecs",
  2238. "xrayError",
  2239. "xrayState",
  2240. "xrayVersion"
  2241. ],
  2242. "type": "object"
  2243. },
  2244. "RealityScanResult": {
  2245. "properties": {
  2246. "alpn": {
  2247. "example": "h2",
  2248. "type": "string"
  2249. },
  2250. "certIssuer": {
  2251. "example": "Google Trust Services",
  2252. "type": "string"
  2253. },
  2254. "certSubject": {
  2255. "example": "cloudflare.com",
  2256. "type": "string"
  2257. },
  2258. "certValid": {
  2259. "example": true,
  2260. "type": "boolean"
  2261. },
  2262. "curveID": {
  2263. "example": "X25519",
  2264. "type": "string"
  2265. },
  2266. "feasible": {
  2267. "example": true,
  2268. "type": "boolean"
  2269. },
  2270. "h2": {
  2271. "example": true,
  2272. "type": "boolean"
  2273. },
  2274. "host": {
  2275. "example": "www.cloudflare.com",
  2276. "type": "string"
  2277. },
  2278. "ip": {
  2279. "example": "104.16.124.96",
  2280. "type": "string"
  2281. },
  2282. "latencyMs": {
  2283. "example": 180,
  2284. "type": "integer"
  2285. },
  2286. "notAfter": {
  2287. "example": "2026-08-01T00:00:00Z",
  2288. "type": "string"
  2289. },
  2290. "port": {
  2291. "example": 443,
  2292. "type": "integer"
  2293. },
  2294. "reason": {
  2295. "type": "string"
  2296. },
  2297. "serverNames": {
  2298. "items": {
  2299. "type": "string"
  2300. },
  2301. "type": "array"
  2302. },
  2303. "target": {
  2304. "example": "www.cloudflare.com:443",
  2305. "type": "string"
  2306. },
  2307. "tls13": {
  2308. "example": true,
  2309. "type": "boolean"
  2310. },
  2311. "tlsVersion": {
  2312. "example": "1.3",
  2313. "type": "string"
  2314. },
  2315. "x25519": {
  2316. "example": true,
  2317. "type": "boolean"
  2318. }
  2319. },
  2320. "required": [
  2321. "alpn",
  2322. "certIssuer",
  2323. "certSubject",
  2324. "certValid",
  2325. "curveID",
  2326. "feasible",
  2327. "h2",
  2328. "host",
  2329. "ip",
  2330. "latencyMs",
  2331. "notAfter",
  2332. "port",
  2333. "reason",
  2334. "serverNames",
  2335. "target",
  2336. "tls13",
  2337. "tlsVersion",
  2338. "x25519"
  2339. ],
  2340. "type": "object"
  2341. },
  2342. "Setting": {
  2343. "description": "Setting stores key-value configuration settings for the 3x-ui panel.",
  2344. "properties": {
  2345. "id": {
  2346. "type": "integer"
  2347. },
  2348. "key": {
  2349. "type": "string"
  2350. },
  2351. "value": {
  2352. "type": "string"
  2353. }
  2354. },
  2355. "required": [
  2356. "id",
  2357. "key",
  2358. "value"
  2359. ],
  2360. "type": "object"
  2361. },
  2362. "User": {
  2363. "description": "User represents a user account in the 3x-ui panel.",
  2364. "properties": {
  2365. "id": {
  2366. "type": "integer"
  2367. },
  2368. "password": {
  2369. "type": "string"
  2370. },
  2371. "username": {
  2372. "type": "string"
  2373. }
  2374. },
  2375. "required": [
  2376. "id",
  2377. "password",
  2378. "username"
  2379. ],
  2380. "type": "object"
  2381. }
  2382. };