schemas.ts 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796
  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. "ldapInvertFlag": {
  62. "type": "boolean"
  63. },
  64. "ldapPassword": {
  65. "type": "string"
  66. },
  67. "ldapPort": {
  68. "maximum": 65535,
  69. "minimum": 0,
  70. "type": "integer"
  71. },
  72. "ldapSyncCron": {
  73. "type": "string"
  74. },
  75. "ldapTruthyValues": {
  76. "type": "string"
  77. },
  78. "ldapUseTLS": {
  79. "type": "boolean"
  80. },
  81. "ldapUserAttr": {
  82. "description": "e.g., mail or uid",
  83. "type": "string"
  84. },
  85. "ldapUserFilter": {
  86. "type": "string"
  87. },
  88. "ldapVlessField": {
  89. "type": "string"
  90. },
  91. "pageSize": {
  92. "description": "UI settings\nNumber of items per page in lists (0 disables pagination)",
  93. "maximum": 1000,
  94. "minimum": 0,
  95. "type": "integer"
  96. },
  97. "panelOutbound": {
  98. "description": "Xray outbound tag for the panel's own outbound HTTP (update checks/downloads, Telegram, geo updates, outbound-subscription fetches)",
  99. "type": "string"
  100. },
  101. "remarkModel": {
  102. "description": "Remark model pattern for inbounds",
  103. "type": "string"
  104. },
  105. "restartXrayOnClientDisable": {
  106. "description": "Restart Xray when clients are auto-disabled by expiry/traffic limit",
  107. "type": "boolean"
  108. },
  109. "sessionMaxAge": {
  110. "description": "Session maximum age in minutes (cap at one year)",
  111. "maximum": 525600,
  112. "minimum": 1,
  113. "type": "integer"
  114. },
  115. "subAnnounce": {
  116. "description": "Subscription announce",
  117. "type": "string"
  118. },
  119. "subCertFile": {
  120. "description": "SSL certificate file for subscription server",
  121. "type": "string"
  122. },
  123. "subClashEnable": {
  124. "description": "Enable Clash/Mihomo subscription endpoint",
  125. "type": "boolean"
  126. },
  127. "subClashEnableRouting": {
  128. "description": "Enable global routing rules for Clash/Mihomo",
  129. "type": "boolean"
  130. },
  131. "subClashPath": {
  132. "description": "Path for Clash/Mihomo subscription endpoint",
  133. "type": "string"
  134. },
  135. "subClashRules": {
  136. "description": "Clash/Mihomo global routing rules",
  137. "type": "string"
  138. },
  139. "subClashURI": {
  140. "description": "Clash/Mihomo subscription server URI",
  141. "type": "string"
  142. },
  143. "subDomain": {
  144. "description": "Domain for subscription server validation",
  145. "type": "string"
  146. },
  147. "subEmailInRemark": {
  148. "description": "Include email in subscription remark/name",
  149. "type": "boolean"
  150. },
  151. "subEnable": {
  152. "description": "Subscription server settings\nEnable subscription server",
  153. "type": "boolean"
  154. },
  155. "subEnableRouting": {
  156. "description": "Enable routing for subscription",
  157. "type": "boolean"
  158. },
  159. "subEncrypt": {
  160. "description": "Encrypt subscription responses",
  161. "type": "boolean"
  162. },
  163. "subJsonEnable": {
  164. "description": "Enable JSON subscription endpoint",
  165. "type": "boolean"
  166. },
  167. "subJsonFinalMask": {
  168. "description": "JSON subscription global finalmask (tcp/udp masks + quicParams)",
  169. "type": "string"
  170. },
  171. "subJsonMux": {
  172. "description": "JSON subscription mux configuration",
  173. "type": "string"
  174. },
  175. "subJsonPath": {
  176. "description": "Path for JSON subscription endpoint",
  177. "type": "string"
  178. },
  179. "subJsonRules": {
  180. "type": "string"
  181. },
  182. "subJsonURI": {
  183. "description": "JSON subscription server URI",
  184. "type": "string"
  185. },
  186. "subKeyFile": {
  187. "description": "SSL private key file for subscription server",
  188. "type": "string"
  189. },
  190. "subListen": {
  191. "description": "Subscription server listen IP",
  192. "type": "string"
  193. },
  194. "subPath": {
  195. "description": "Base path for subscription URLs",
  196. "type": "string"
  197. },
  198. "subPort": {
  199. "description": "Subscription server port",
  200. "maximum": 65535,
  201. "minimum": 1,
  202. "type": "integer"
  203. },
  204. "subProfileUrl": {
  205. "description": "Subscription profile URL",
  206. "type": "string"
  207. },
  208. "subRoutingRules": {
  209. "description": "Subscription global routing rules (Only for Happ)",
  210. "type": "string"
  211. },
  212. "subShowInfo": {
  213. "description": "Show client information in subscriptions",
  214. "type": "boolean"
  215. },
  216. "subSupportUrl": {
  217. "description": "Subscription support URL",
  218. "type": "string"
  219. },
  220. "subThemeDir": {
  221. "description": "Absolute path to a folder containing a custom subscription page template",
  222. "type": "string"
  223. },
  224. "subTitle": {
  225. "description": "Subscription title",
  226. "type": "string"
  227. },
  228. "subURI": {
  229. "description": "Subscription server URI",
  230. "type": "string"
  231. },
  232. "subUpdates": {
  233. "description": "Subscription update interval in minutes",
  234. "maximum": 525600,
  235. "minimum": 0,
  236. "type": "integer"
  237. },
  238. "tgBotAPIServer": {
  239. "description": "Custom API server for Telegram bot",
  240. "type": "string"
  241. },
  242. "tgBotBackup": {
  243. "description": "Enable database backup via Telegram",
  244. "type": "boolean"
  245. },
  246. "tgBotChatId": {
  247. "description": "Telegram chat ID for notifications",
  248. "type": "string"
  249. },
  250. "tgBotEnable": {
  251. "description": "Telegram bot settings\nEnable Telegram bot notifications",
  252. "type": "boolean"
  253. },
  254. "tgBotLoginNotify": {
  255. "description": "Send login notifications",
  256. "type": "boolean"
  257. },
  258. "tgBotProxy": {
  259. "description": "Proxy URL for Telegram bot",
  260. "type": "string"
  261. },
  262. "tgBotToken": {
  263. "description": "Telegram bot token",
  264. "type": "string"
  265. },
  266. "tgCpu": {
  267. "description": "CPU usage threshold for alerts (percent)",
  268. "maximum": 100,
  269. "minimum": 0,
  270. "type": "integer"
  271. },
  272. "tgLang": {
  273. "description": "Telegram bot language",
  274. "type": "string"
  275. },
  276. "tgRunTime": {
  277. "description": "Cron schedule for Telegram notifications",
  278. "type": "string"
  279. },
  280. "timeLocation": {
  281. "description": "Security settings\nTime zone location",
  282. "type": "string"
  283. },
  284. "trafficDiff": {
  285. "description": "Traffic warning threshold percentage",
  286. "maximum": 100,
  287. "minimum": 0,
  288. "type": "integer"
  289. },
  290. "trustedProxyCIDRs": {
  291. "description": "Trusted reverse proxy IPs/CIDRs for forwarded headers",
  292. "type": "string"
  293. },
  294. "twoFactorEnable": {
  295. "description": "Enable two-factor authentication",
  296. "type": "boolean"
  297. },
  298. "twoFactorToken": {
  299. "description": "Two-factor authentication token",
  300. "type": "string"
  301. },
  302. "warpUpdateInterval": {
  303. "description": "WARP",
  304. "minimum": 0,
  305. "type": "integer"
  306. },
  307. "webBasePath": {
  308. "description": "Base path for web panel URLs",
  309. "type": "string"
  310. },
  311. "webCertFile": {
  312. "description": "Path to SSL certificate file for web server",
  313. "type": "string"
  314. },
  315. "webDomain": {
  316. "description": "Web server domain for domain validation",
  317. "type": "string"
  318. },
  319. "webKeyFile": {
  320. "description": "Path to SSL private key file for web server",
  321. "type": "string"
  322. },
  323. "webListen": {
  324. "description": "Web server settings\nWeb server listen IP address",
  325. "type": "string"
  326. },
  327. "webPort": {
  328. "description": "Web server port number",
  329. "maximum": 65535,
  330. "minimum": 1,
  331. "type": "integer"
  332. }
  333. },
  334. "required": [
  335. "datepicker",
  336. "expireDiff",
  337. "externalTrafficInformEnable",
  338. "externalTrafficInformURI",
  339. "ldapAutoCreate",
  340. "ldapAutoDelete",
  341. "ldapBaseDN",
  342. "ldapBindDN",
  343. "ldapDefaultExpiryDays",
  344. "ldapDefaultLimitIP",
  345. "ldapDefaultTotalGB",
  346. "ldapEnable",
  347. "ldapFlagField",
  348. "ldapHost",
  349. "ldapInboundTags",
  350. "ldapInvertFlag",
  351. "ldapPassword",
  352. "ldapPort",
  353. "ldapSyncCron",
  354. "ldapTruthyValues",
  355. "ldapUseTLS",
  356. "ldapUserAttr",
  357. "ldapUserFilter",
  358. "ldapVlessField",
  359. "pageSize",
  360. "panelOutbound",
  361. "remarkModel",
  362. "restartXrayOnClientDisable",
  363. "sessionMaxAge",
  364. "subAnnounce",
  365. "subCertFile",
  366. "subClashEnable",
  367. "subClashEnableRouting",
  368. "subClashPath",
  369. "subClashRules",
  370. "subClashURI",
  371. "subDomain",
  372. "subEmailInRemark",
  373. "subEnable",
  374. "subEnableRouting",
  375. "subEncrypt",
  376. "subJsonEnable",
  377. "subJsonFinalMask",
  378. "subJsonMux",
  379. "subJsonPath",
  380. "subJsonRules",
  381. "subJsonURI",
  382. "subKeyFile",
  383. "subListen",
  384. "subPath",
  385. "subPort",
  386. "subProfileUrl",
  387. "subRoutingRules",
  388. "subShowInfo",
  389. "subSupportUrl",
  390. "subThemeDir",
  391. "subTitle",
  392. "subURI",
  393. "subUpdates",
  394. "tgBotAPIServer",
  395. "tgBotBackup",
  396. "tgBotChatId",
  397. "tgBotEnable",
  398. "tgBotLoginNotify",
  399. "tgBotProxy",
  400. "tgBotToken",
  401. "tgCpu",
  402. "tgLang",
  403. "tgRunTime",
  404. "timeLocation",
  405. "trafficDiff",
  406. "trustedProxyCIDRs",
  407. "twoFactorEnable",
  408. "twoFactorToken",
  409. "warpUpdateInterval",
  410. "webBasePath",
  411. "webCertFile",
  412. "webDomain",
  413. "webKeyFile",
  414. "webListen",
  415. "webPort"
  416. ],
  417. "type": "object"
  418. },
  419. "AllSettingView": {
  420. "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.",
  421. "properties": {
  422. "datepicker": {
  423. "description": "Date picker format",
  424. "type": "string"
  425. },
  426. "expireDiff": {
  427. "description": "Expiration warning threshold in days",
  428. "minimum": 0,
  429. "type": "integer"
  430. },
  431. "externalTrafficInformEnable": {
  432. "description": "Enable external traffic reporting",
  433. "type": "boolean"
  434. },
  435. "externalTrafficInformURI": {
  436. "description": "URI for external traffic reporting",
  437. "type": "string"
  438. },
  439. "hasApiToken": {
  440. "type": "boolean"
  441. },
  442. "hasLdapPassword": {
  443. "type": "boolean"
  444. },
  445. "hasNordSecret": {
  446. "type": "boolean"
  447. },
  448. "hasTgBotToken": {
  449. "type": "boolean"
  450. },
  451. "hasTwoFactorToken": {
  452. "type": "boolean"
  453. },
  454. "hasWarpSecret": {
  455. "type": "boolean"
  456. },
  457. "ldapAutoCreate": {
  458. "type": "boolean"
  459. },
  460. "ldapAutoDelete": {
  461. "type": "boolean"
  462. },
  463. "ldapBaseDN": {
  464. "type": "string"
  465. },
  466. "ldapBindDN": {
  467. "type": "string"
  468. },
  469. "ldapDefaultExpiryDays": {
  470. "minimum": 0,
  471. "type": "integer"
  472. },
  473. "ldapDefaultLimitIP": {
  474. "minimum": 0,
  475. "type": "integer"
  476. },
  477. "ldapDefaultTotalGB": {
  478. "minimum": 0,
  479. "type": "integer"
  480. },
  481. "ldapEnable": {
  482. "description": "LDAP settings",
  483. "type": "boolean"
  484. },
  485. "ldapFlagField": {
  486. "description": "Generic flag configuration",
  487. "type": "string"
  488. },
  489. "ldapHost": {
  490. "type": "string"
  491. },
  492. "ldapInboundTags": {
  493. "type": "string"
  494. },
  495. "ldapInvertFlag": {
  496. "type": "boolean"
  497. },
  498. "ldapPassword": {
  499. "type": "string"
  500. },
  501. "ldapPort": {
  502. "maximum": 65535,
  503. "minimum": 0,
  504. "type": "integer"
  505. },
  506. "ldapSyncCron": {
  507. "type": "string"
  508. },
  509. "ldapTruthyValues": {
  510. "type": "string"
  511. },
  512. "ldapUseTLS": {
  513. "type": "boolean"
  514. },
  515. "ldapUserAttr": {
  516. "description": "e.g., mail or uid",
  517. "type": "string"
  518. },
  519. "ldapUserFilter": {
  520. "type": "string"
  521. },
  522. "ldapVlessField": {
  523. "type": "string"
  524. },
  525. "pageSize": {
  526. "description": "UI settings\nNumber of items per page in lists (0 disables pagination)",
  527. "maximum": 1000,
  528. "minimum": 0,
  529. "type": "integer"
  530. },
  531. "panelOutbound": {
  532. "description": "Xray outbound tag for the panel's own outbound HTTP (update checks/downloads, Telegram, geo updates, outbound-subscription fetches)",
  533. "type": "string"
  534. },
  535. "remarkModel": {
  536. "description": "Remark model pattern for inbounds",
  537. "type": "string"
  538. },
  539. "restartXrayOnClientDisable": {
  540. "description": "Restart Xray when clients are auto-disabled by expiry/traffic limit",
  541. "type": "boolean"
  542. },
  543. "sessionMaxAge": {
  544. "description": "Session maximum age in minutes (cap at one year)",
  545. "maximum": 525600,
  546. "minimum": 1,
  547. "type": "integer"
  548. },
  549. "subAnnounce": {
  550. "description": "Subscription announce",
  551. "type": "string"
  552. },
  553. "subCertFile": {
  554. "description": "SSL certificate file for subscription server",
  555. "type": "string"
  556. },
  557. "subClashEnable": {
  558. "description": "Enable Clash/Mihomo subscription endpoint",
  559. "type": "boolean"
  560. },
  561. "subClashEnableRouting": {
  562. "description": "Enable global routing rules for Clash/Mihomo",
  563. "type": "boolean"
  564. },
  565. "subClashPath": {
  566. "description": "Path for Clash/Mihomo subscription endpoint",
  567. "type": "string"
  568. },
  569. "subClashRules": {
  570. "description": "Clash/Mihomo global routing rules",
  571. "type": "string"
  572. },
  573. "subClashURI": {
  574. "description": "Clash/Mihomo subscription server URI",
  575. "type": "string"
  576. },
  577. "subDomain": {
  578. "description": "Domain for subscription server validation",
  579. "type": "string"
  580. },
  581. "subEmailInRemark": {
  582. "description": "Include email in subscription remark/name",
  583. "type": "boolean"
  584. },
  585. "subEnable": {
  586. "description": "Subscription server settings\nEnable subscription server",
  587. "type": "boolean"
  588. },
  589. "subEnableRouting": {
  590. "description": "Enable routing for subscription",
  591. "type": "boolean"
  592. },
  593. "subEncrypt": {
  594. "description": "Encrypt subscription responses",
  595. "type": "boolean"
  596. },
  597. "subJsonEnable": {
  598. "description": "Enable JSON subscription endpoint",
  599. "type": "boolean"
  600. },
  601. "subJsonFinalMask": {
  602. "description": "JSON subscription global finalmask (tcp/udp masks + quicParams)",
  603. "type": "string"
  604. },
  605. "subJsonMux": {
  606. "description": "JSON subscription mux configuration",
  607. "type": "string"
  608. },
  609. "subJsonPath": {
  610. "description": "Path for JSON subscription endpoint",
  611. "type": "string"
  612. },
  613. "subJsonRules": {
  614. "type": "string"
  615. },
  616. "subJsonURI": {
  617. "description": "JSON subscription server URI",
  618. "type": "string"
  619. },
  620. "subKeyFile": {
  621. "description": "SSL private key file for subscription server",
  622. "type": "string"
  623. },
  624. "subListen": {
  625. "description": "Subscription server listen IP",
  626. "type": "string"
  627. },
  628. "subPath": {
  629. "description": "Base path for subscription URLs",
  630. "type": "string"
  631. },
  632. "subPort": {
  633. "description": "Subscription server port",
  634. "maximum": 65535,
  635. "minimum": 1,
  636. "type": "integer"
  637. },
  638. "subProfileUrl": {
  639. "description": "Subscription profile URL",
  640. "type": "string"
  641. },
  642. "subRoutingRules": {
  643. "description": "Subscription global routing rules (Only for Happ)",
  644. "type": "string"
  645. },
  646. "subShowInfo": {
  647. "description": "Show client information in subscriptions",
  648. "type": "boolean"
  649. },
  650. "subSupportUrl": {
  651. "description": "Subscription support URL",
  652. "type": "string"
  653. },
  654. "subThemeDir": {
  655. "description": "Absolute path to a folder containing a custom subscription page template",
  656. "type": "string"
  657. },
  658. "subTitle": {
  659. "description": "Subscription title",
  660. "type": "string"
  661. },
  662. "subURI": {
  663. "description": "Subscription server URI",
  664. "type": "string"
  665. },
  666. "subUpdates": {
  667. "description": "Subscription update interval in minutes",
  668. "maximum": 525600,
  669. "minimum": 0,
  670. "type": "integer"
  671. },
  672. "tgBotAPIServer": {
  673. "description": "Custom API server for Telegram bot",
  674. "type": "string"
  675. },
  676. "tgBotBackup": {
  677. "description": "Enable database backup via Telegram",
  678. "type": "boolean"
  679. },
  680. "tgBotChatId": {
  681. "description": "Telegram chat ID for notifications",
  682. "type": "string"
  683. },
  684. "tgBotEnable": {
  685. "description": "Telegram bot settings\nEnable Telegram bot notifications",
  686. "type": "boolean"
  687. },
  688. "tgBotLoginNotify": {
  689. "description": "Send login notifications",
  690. "type": "boolean"
  691. },
  692. "tgBotProxy": {
  693. "description": "Proxy URL for Telegram bot",
  694. "type": "string"
  695. },
  696. "tgBotToken": {
  697. "description": "Telegram bot token",
  698. "type": "string"
  699. },
  700. "tgCpu": {
  701. "description": "CPU usage threshold for alerts (percent)",
  702. "maximum": 100,
  703. "minimum": 0,
  704. "type": "integer"
  705. },
  706. "tgLang": {
  707. "description": "Telegram bot language",
  708. "type": "string"
  709. },
  710. "tgRunTime": {
  711. "description": "Cron schedule for Telegram notifications",
  712. "type": "string"
  713. },
  714. "timeLocation": {
  715. "description": "Security settings\nTime zone location",
  716. "type": "string"
  717. },
  718. "trafficDiff": {
  719. "description": "Traffic warning threshold percentage",
  720. "maximum": 100,
  721. "minimum": 0,
  722. "type": "integer"
  723. },
  724. "trustedProxyCIDRs": {
  725. "description": "Trusted reverse proxy IPs/CIDRs for forwarded headers",
  726. "type": "string"
  727. },
  728. "twoFactorEnable": {
  729. "description": "Enable two-factor authentication",
  730. "type": "boolean"
  731. },
  732. "twoFactorToken": {
  733. "description": "Two-factor authentication token",
  734. "type": "string"
  735. },
  736. "warpUpdateInterval": {
  737. "description": "WARP",
  738. "minimum": 0,
  739. "type": "integer"
  740. },
  741. "webBasePath": {
  742. "description": "Base path for web panel URLs",
  743. "type": "string"
  744. },
  745. "webCertFile": {
  746. "description": "Path to SSL certificate file for web server",
  747. "type": "string"
  748. },
  749. "webDomain": {
  750. "description": "Web server domain for domain validation",
  751. "type": "string"
  752. },
  753. "webKeyFile": {
  754. "description": "Path to SSL private key file for web server",
  755. "type": "string"
  756. },
  757. "webListen": {
  758. "description": "Web server settings\nWeb server listen IP address",
  759. "type": "string"
  760. },
  761. "webPort": {
  762. "description": "Web server port number",
  763. "maximum": 65535,
  764. "minimum": 1,
  765. "type": "integer"
  766. }
  767. },
  768. "required": [
  769. "datepicker",
  770. "expireDiff",
  771. "externalTrafficInformEnable",
  772. "externalTrafficInformURI",
  773. "hasApiToken",
  774. "hasLdapPassword",
  775. "hasNordSecret",
  776. "hasTgBotToken",
  777. "hasTwoFactorToken",
  778. "hasWarpSecret",
  779. "ldapAutoCreate",
  780. "ldapAutoDelete",
  781. "ldapBaseDN",
  782. "ldapBindDN",
  783. "ldapDefaultExpiryDays",
  784. "ldapDefaultLimitIP",
  785. "ldapDefaultTotalGB",
  786. "ldapEnable",
  787. "ldapFlagField",
  788. "ldapHost",
  789. "ldapInboundTags",
  790. "ldapInvertFlag",
  791. "ldapPassword",
  792. "ldapPort",
  793. "ldapSyncCron",
  794. "ldapTruthyValues",
  795. "ldapUseTLS",
  796. "ldapUserAttr",
  797. "ldapUserFilter",
  798. "ldapVlessField",
  799. "pageSize",
  800. "panelOutbound",
  801. "remarkModel",
  802. "restartXrayOnClientDisable",
  803. "sessionMaxAge",
  804. "subAnnounce",
  805. "subCertFile",
  806. "subClashEnable",
  807. "subClashEnableRouting",
  808. "subClashPath",
  809. "subClashRules",
  810. "subClashURI",
  811. "subDomain",
  812. "subEmailInRemark",
  813. "subEnable",
  814. "subEnableRouting",
  815. "subEncrypt",
  816. "subJsonEnable",
  817. "subJsonFinalMask",
  818. "subJsonMux",
  819. "subJsonPath",
  820. "subJsonRules",
  821. "subJsonURI",
  822. "subKeyFile",
  823. "subListen",
  824. "subPath",
  825. "subPort",
  826. "subProfileUrl",
  827. "subRoutingRules",
  828. "subShowInfo",
  829. "subSupportUrl",
  830. "subThemeDir",
  831. "subTitle",
  832. "subURI",
  833. "subUpdates",
  834. "tgBotAPIServer",
  835. "tgBotBackup",
  836. "tgBotChatId",
  837. "tgBotEnable",
  838. "tgBotLoginNotify",
  839. "tgBotProxy",
  840. "tgBotToken",
  841. "tgCpu",
  842. "tgLang",
  843. "tgRunTime",
  844. "timeLocation",
  845. "trafficDiff",
  846. "trustedProxyCIDRs",
  847. "twoFactorEnable",
  848. "twoFactorToken",
  849. "warpUpdateInterval",
  850. "webBasePath",
  851. "webCertFile",
  852. "webDomain",
  853. "webKeyFile",
  854. "webListen",
  855. "webPort"
  856. ],
  857. "type": "object"
  858. },
  859. "ApiToken": {
  860. "properties": {
  861. "createdAt": {
  862. "type": "integer"
  863. },
  864. "enabled": {
  865. "type": "boolean"
  866. },
  867. "id": {
  868. "type": "integer"
  869. },
  870. "name": {
  871. "type": "string"
  872. },
  873. "token": {
  874. "description": "SHA-256 hash; the plaintext is shown only once at creation",
  875. "type": "string"
  876. }
  877. },
  878. "required": [
  879. "createdAt",
  880. "enabled",
  881. "id",
  882. "name",
  883. "token"
  884. ],
  885. "type": "object"
  886. },
  887. "ApiTokenView": {
  888. "properties": {
  889. "createdAt": {
  890. "example": 1736000000,
  891. "type": "integer"
  892. },
  893. "enabled": {
  894. "example": true,
  895. "type": "boolean"
  896. },
  897. "id": {
  898. "example": 2,
  899. "type": "integer"
  900. },
  901. "name": {
  902. "example": "central-panel-a",
  903. "type": "string"
  904. },
  905. "token": {
  906. "example": "new-token-string",
  907. "type": "string"
  908. }
  909. },
  910. "required": [
  911. "createdAt",
  912. "enabled",
  913. "id",
  914. "name"
  915. ],
  916. "type": "object"
  917. },
  918. "Client": {
  919. "description": "Client represents a client configuration for Xray inbounds with traffic limits and settings.",
  920. "properties": {
  921. "auth": {
  922. "description": "Auth password (Hysteria)",
  923. "type": "string"
  924. },
  925. "comment": {
  926. "description": "Client comment",
  927. "type": "string"
  928. },
  929. "created_at": {
  930. "description": "Creation timestamp",
  931. "type": "integer"
  932. },
  933. "email": {
  934. "description": "Client email identifier",
  935. "type": "string"
  936. },
  937. "enable": {
  938. "description": "Whether the client is enabled",
  939. "type": "boolean"
  940. },
  941. "expiryTime": {
  942. "description": "Expiration timestamp",
  943. "type": "integer"
  944. },
  945. "flow": {
  946. "description": "Flow control (XTLS)",
  947. "type": "string"
  948. },
  949. "group": {
  950. "description": "Logical grouping label",
  951. "type": "string"
  952. },
  953. "id": {
  954. "description": "Unique client identifier",
  955. "type": "string"
  956. },
  957. "limitIp": {
  958. "description": "IP limit for this client",
  959. "type": "integer"
  960. },
  961. "password": {
  962. "description": "Client password",
  963. "type": "string"
  964. },
  965. "reset": {
  966. "description": "Reset period in days",
  967. "type": "integer"
  968. },
  969. "reverse": {
  970. "allOf": [
  971. {
  972. "$ref": "#/components/schemas/ClientReverse"
  973. }
  974. ],
  975. "description": "VLESS simple reverse proxy settings",
  976. "nullable": true
  977. },
  978. "security": {
  979. "description": "Security method (e.g., \"auto\", \"aes-128-gcm\")",
  980. "type": "string"
  981. },
  982. "subId": {
  983. "description": "Subscription identifier",
  984. "type": "string"
  985. },
  986. "tgId": {
  987. "description": "Telegram user ID for notifications",
  988. "type": "integer"
  989. },
  990. "totalGB": {
  991. "description": "Total traffic limit in GB",
  992. "type": "integer"
  993. },
  994. "updated_at": {
  995. "description": "Last update timestamp",
  996. "type": "integer"
  997. }
  998. },
  999. "required": [
  1000. "comment",
  1001. "email",
  1002. "enable",
  1003. "expiryTime",
  1004. "limitIp",
  1005. "reset",
  1006. "security",
  1007. "subId",
  1008. "tgId",
  1009. "totalGB"
  1010. ],
  1011. "type": "object"
  1012. },
  1013. "ClientInbound": {
  1014. "properties": {
  1015. "clientId": {
  1016. "type": "integer"
  1017. },
  1018. "createdAt": {
  1019. "type": "integer"
  1020. },
  1021. "flowOverride": {
  1022. "type": "string"
  1023. },
  1024. "inboundId": {
  1025. "type": "integer"
  1026. }
  1027. },
  1028. "required": [
  1029. "clientId",
  1030. "createdAt",
  1031. "flowOverride",
  1032. "inboundId"
  1033. ],
  1034. "type": "object"
  1035. },
  1036. "ClientRecord": {
  1037. "properties": {
  1038. "auth": {
  1039. "type": "string"
  1040. },
  1041. "comment": {
  1042. "type": "string"
  1043. },
  1044. "createdAt": {
  1045. "type": "integer"
  1046. },
  1047. "email": {
  1048. "type": "string"
  1049. },
  1050. "enable": {
  1051. "type": "boolean"
  1052. },
  1053. "expiryTime": {
  1054. "type": "integer"
  1055. },
  1056. "flow": {
  1057. "type": "string"
  1058. },
  1059. "group": {
  1060. "type": "string"
  1061. },
  1062. "id": {
  1063. "type": "integer"
  1064. },
  1065. "limitIp": {
  1066. "type": "integer"
  1067. },
  1068. "password": {
  1069. "type": "string"
  1070. },
  1071. "reset": {
  1072. "type": "integer"
  1073. },
  1074. "reverse": {},
  1075. "security": {
  1076. "type": "string"
  1077. },
  1078. "subId": {
  1079. "type": "string"
  1080. },
  1081. "tgId": {
  1082. "type": "integer"
  1083. },
  1084. "totalGB": {
  1085. "type": "integer"
  1086. },
  1087. "updatedAt": {
  1088. "type": "integer"
  1089. },
  1090. "uuid": {
  1091. "type": "string"
  1092. }
  1093. },
  1094. "required": [
  1095. "auth",
  1096. "comment",
  1097. "createdAt",
  1098. "email",
  1099. "enable",
  1100. "expiryTime",
  1101. "flow",
  1102. "group",
  1103. "id",
  1104. "limitIp",
  1105. "password",
  1106. "reset",
  1107. "reverse",
  1108. "security",
  1109. "subId",
  1110. "tgId",
  1111. "totalGB",
  1112. "updatedAt",
  1113. "uuid"
  1114. ],
  1115. "type": "object"
  1116. },
  1117. "ClientReverse": {
  1118. "properties": {
  1119. "tag": {
  1120. "type": "string"
  1121. }
  1122. },
  1123. "required": [
  1124. "tag"
  1125. ],
  1126. "type": "object"
  1127. },
  1128. "ClientTraffic": {
  1129. "description": "ClientTraffic represents traffic statistics and limits for a specific client.\nIt tracks upload/download usage, expiry times, and online status for inbound clients.",
  1130. "properties": {
  1131. "down": {
  1132. "example": 2097152,
  1133. "type": "integer"
  1134. },
  1135. "email": {
  1136. "example": "user1",
  1137. "type": "string"
  1138. },
  1139. "enable": {
  1140. "example": true,
  1141. "type": "boolean"
  1142. },
  1143. "expiryTime": {
  1144. "example": 1735689600000,
  1145. "type": "integer"
  1146. },
  1147. "id": {
  1148. "example": 14825,
  1149. "type": "integer"
  1150. },
  1151. "inboundId": {
  1152. "example": 1,
  1153. "type": "integer"
  1154. },
  1155. "lastOnline": {
  1156. "example": 1735680000000,
  1157. "type": "integer"
  1158. },
  1159. "reset": {
  1160. "example": 0,
  1161. "type": "integer"
  1162. },
  1163. "subId": {
  1164. "example": "i7tvdpeffi0hvvf1",
  1165. "type": "string"
  1166. },
  1167. "total": {
  1168. "example": 10737418240,
  1169. "type": "integer"
  1170. },
  1171. "up": {
  1172. "example": 1048576,
  1173. "type": "integer"
  1174. },
  1175. "uuid": {
  1176. "example": "e18c9a96-71bf-48d4-933f-8b9a46d4290c",
  1177. "type": "string"
  1178. }
  1179. },
  1180. "required": [
  1181. "down",
  1182. "email",
  1183. "enable",
  1184. "expiryTime",
  1185. "id",
  1186. "inboundId",
  1187. "lastOnline",
  1188. "reset",
  1189. "subId",
  1190. "total",
  1191. "up",
  1192. "uuid"
  1193. ],
  1194. "type": "object"
  1195. },
  1196. "FallbackParentInfo": {
  1197. "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.",
  1198. "properties": {
  1199. "masterId": {
  1200. "type": "integer"
  1201. },
  1202. "path": {
  1203. "type": "string"
  1204. }
  1205. },
  1206. "required": [
  1207. "masterId"
  1208. ],
  1209. "type": "object"
  1210. },
  1211. "HistoryOfSeeders": {
  1212. "description": "HistoryOfSeeders tracks which database seeders have been executed to prevent re-running.",
  1213. "properties": {
  1214. "id": {
  1215. "type": "integer"
  1216. },
  1217. "seederName": {
  1218. "type": "string"
  1219. }
  1220. },
  1221. "required": [
  1222. "id",
  1223. "seederName"
  1224. ],
  1225. "type": "object"
  1226. },
  1227. "Inbound": {
  1228. "description": "Inbound represents an Xray inbound configuration with traffic statistics and settings.",
  1229. "properties": {
  1230. "clientStats": {
  1231. "description": "Client traffic statistics",
  1232. "items": {
  1233. "$ref": "#/components/schemas/ClientTraffic"
  1234. },
  1235. "type": "array"
  1236. },
  1237. "down": {
  1238. "description": "Download traffic in bytes",
  1239. "type": "integer"
  1240. },
  1241. "enable": {
  1242. "description": "Whether the inbound is enabled",
  1243. "example": true,
  1244. "type": "boolean"
  1245. },
  1246. "expiryTime": {
  1247. "description": "Expiration timestamp",
  1248. "type": "integer"
  1249. },
  1250. "fallbackParent": {
  1251. "allOf": [
  1252. {
  1253. "$ref": "#/components/schemas/FallbackParentInfo"
  1254. }
  1255. ],
  1256. "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.",
  1257. "nullable": true
  1258. },
  1259. "id": {
  1260. "description": "Unique identifier",
  1261. "example": 1,
  1262. "type": "integer"
  1263. },
  1264. "lastTrafficResetTime": {
  1265. "description": "Last traffic reset timestamp",
  1266. "type": "integer"
  1267. },
  1268. "listen": {
  1269. "description": "Xray configuration fields",
  1270. "type": "string"
  1271. },
  1272. "nodeId": {
  1273. "nullable": true,
  1274. "type": "integer"
  1275. },
  1276. "originNodeGuid": {
  1277. "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.",
  1278. "type": "string"
  1279. },
  1280. "port": {
  1281. "example": 443,
  1282. "maximum": 65535,
  1283. "minimum": 0,
  1284. "type": "integer"
  1285. },
  1286. "protocol": {
  1287. "enum": [
  1288. "vmess",
  1289. "vless",
  1290. "trojan",
  1291. "shadowsocks",
  1292. "wireguard",
  1293. "hysteria",
  1294. "http",
  1295. "mixed",
  1296. "tunnel",
  1297. "tun",
  1298. "mtproto"
  1299. ],
  1300. "example": "vless",
  1301. "type": "string"
  1302. },
  1303. "remark": {
  1304. "description": "Human-readable remark",
  1305. "example": "VLESS-443",
  1306. "type": "string"
  1307. },
  1308. "settings": {},
  1309. "shareAddr": {
  1310. "type": "string"
  1311. },
  1312. "shareAddrStrategy": {
  1313. "enum": [
  1314. "node",
  1315. "listen",
  1316. "custom"
  1317. ],
  1318. "type": "string"
  1319. },
  1320. "sniffing": {},
  1321. "streamSettings": {},
  1322. "tag": {
  1323. "example": "in-443-tcp",
  1324. "type": "string"
  1325. },
  1326. "total": {
  1327. "description": "Total traffic limit in bytes",
  1328. "type": "integer"
  1329. },
  1330. "trafficReset": {
  1331. "description": "Traffic reset schedule",
  1332. "enum": [
  1333. "never",
  1334. "hourly",
  1335. "daily",
  1336. "weekly",
  1337. "monthly"
  1338. ],
  1339. "type": "string"
  1340. },
  1341. "up": {
  1342. "description": "Upload traffic in bytes",
  1343. "type": "integer"
  1344. }
  1345. },
  1346. "required": [
  1347. "clientStats",
  1348. "down",
  1349. "enable",
  1350. "expiryTime",
  1351. "id",
  1352. "lastTrafficResetTime",
  1353. "listen",
  1354. "port",
  1355. "protocol",
  1356. "remark",
  1357. "settings",
  1358. "shareAddr",
  1359. "shareAddrStrategy",
  1360. "sniffing",
  1361. "streamSettings",
  1362. "tag",
  1363. "total",
  1364. "trafficReset",
  1365. "up"
  1366. ],
  1367. "type": "object"
  1368. },
  1369. "InboundClientIps": {
  1370. "description": "InboundClientIps stores IP addresses associated with inbound clients for access control.",
  1371. "properties": {
  1372. "clientEmail": {
  1373. "type": "string"
  1374. },
  1375. "id": {
  1376. "type": "integer"
  1377. },
  1378. "ips": {}
  1379. },
  1380. "required": [
  1381. "clientEmail",
  1382. "id",
  1383. "ips"
  1384. ],
  1385. "type": "object"
  1386. },
  1387. "InboundFallback": {
  1388. "properties": {
  1389. "alpn": {
  1390. "type": "string"
  1391. },
  1392. "childId": {
  1393. "type": "integer"
  1394. },
  1395. "dest": {
  1396. "type": "string"
  1397. },
  1398. "id": {
  1399. "type": "integer"
  1400. },
  1401. "masterId": {
  1402. "type": "integer"
  1403. },
  1404. "name": {
  1405. "type": "string"
  1406. },
  1407. "path": {
  1408. "type": "string"
  1409. },
  1410. "sortOrder": {
  1411. "type": "integer"
  1412. },
  1413. "xver": {
  1414. "type": "integer"
  1415. }
  1416. },
  1417. "required": [
  1418. "alpn",
  1419. "childId",
  1420. "dest",
  1421. "id",
  1422. "masterId",
  1423. "name",
  1424. "path",
  1425. "sortOrder",
  1426. "xver"
  1427. ],
  1428. "type": "object"
  1429. },
  1430. "InboundOption": {
  1431. "properties": {
  1432. "id": {
  1433. "example": 1,
  1434. "type": "integer"
  1435. },
  1436. "port": {
  1437. "example": 443,
  1438. "type": "integer"
  1439. },
  1440. "protocol": {
  1441. "example": "vless",
  1442. "type": "string"
  1443. },
  1444. "remark": {
  1445. "example": "VLESS-443",
  1446. "type": "string"
  1447. },
  1448. "ssMethod": {
  1449. "type": "string"
  1450. },
  1451. "tag": {
  1452. "example": "in-443-tcp",
  1453. "type": "string"
  1454. },
  1455. "tlsFlowCapable": {
  1456. "example": true,
  1457. "type": "boolean"
  1458. }
  1459. },
  1460. "required": [
  1461. "id",
  1462. "port",
  1463. "protocol",
  1464. "remark",
  1465. "ssMethod",
  1466. "tag",
  1467. "tlsFlowCapable"
  1468. ],
  1469. "type": "object"
  1470. },
  1471. "Msg": {
  1472. "description": "Msg represents a standard API response message with success status, message text, and optional data object.",
  1473. "properties": {
  1474. "msg": {
  1475. "description": "Response message text",
  1476. "type": "string"
  1477. },
  1478. "obj": {
  1479. "description": "Optional data object"
  1480. },
  1481. "success": {
  1482. "description": "Indicates if the operation was successful",
  1483. "type": "boolean"
  1484. }
  1485. },
  1486. "required": [
  1487. "msg",
  1488. "obj",
  1489. "success"
  1490. ],
  1491. "type": "object"
  1492. },
  1493. "Node": {
  1494. "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.",
  1495. "properties": {
  1496. "address": {
  1497. "example": "node1.example.com",
  1498. "type": "string"
  1499. },
  1500. "allowPrivateAddress": {
  1501. "type": "boolean"
  1502. },
  1503. "apiToken": {
  1504. "example": "abcdef0123456789",
  1505. "type": "string"
  1506. },
  1507. "basePath": {
  1508. "example": "/",
  1509. "type": "string"
  1510. },
  1511. "clientCount": {
  1512. "example": 27,
  1513. "type": "integer"
  1514. },
  1515. "configDirty": {
  1516. "type": "boolean"
  1517. },
  1518. "configDirtyAt": {
  1519. "type": "integer"
  1520. },
  1521. "cpuPct": {
  1522. "example": 23.5,
  1523. "type": "number"
  1524. },
  1525. "createdAt": {
  1526. "example": 1700000000,
  1527. "type": "integer"
  1528. },
  1529. "depletedCount": {
  1530. "example": 1,
  1531. "type": "integer"
  1532. },
  1533. "enable": {
  1534. "example": true,
  1535. "type": "boolean"
  1536. },
  1537. "guid": {
  1538. "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.",
  1539. "type": "string"
  1540. },
  1541. "id": {
  1542. "example": 1,
  1543. "type": "integer"
  1544. },
  1545. "inboundCount": {
  1546. "example": 5,
  1547. "type": "integer"
  1548. },
  1549. "lastError": {
  1550. "type": "string"
  1551. },
  1552. "lastHeartbeat": {
  1553. "description": "unix seconds, 0 = never",
  1554. "example": 1700000000,
  1555. "type": "integer"
  1556. },
  1557. "latencyMs": {
  1558. "example": 42,
  1559. "type": "integer"
  1560. },
  1561. "memPct": {
  1562. "example": 45.1,
  1563. "type": "number"
  1564. },
  1565. "name": {
  1566. "example": "de-fra-1",
  1567. "type": "string"
  1568. },
  1569. "onlineCount": {
  1570. "example": 3,
  1571. "type": "integer"
  1572. },
  1573. "panelVersion": {
  1574. "example": "v3.x.x",
  1575. "type": "string"
  1576. },
  1577. "parentGuid": {
  1578. "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.",
  1579. "type": "string"
  1580. },
  1581. "pinnedCertSha256": {
  1582. "type": "string"
  1583. },
  1584. "port": {
  1585. "example": 2053,
  1586. "maximum": 65535,
  1587. "minimum": 1,
  1588. "type": "integer"
  1589. },
  1590. "remark": {
  1591. "type": "string"
  1592. },
  1593. "scheme": {
  1594. "enum": [
  1595. "http",
  1596. "https"
  1597. ],
  1598. "example": "https",
  1599. "type": "string"
  1600. },
  1601. "status": {
  1602. "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",
  1603. "example": "online",
  1604. "type": "string"
  1605. },
  1606. "tlsVerifyMode": {
  1607. "enum": [
  1608. "verify",
  1609. "skip",
  1610. "pin"
  1611. ],
  1612. "type": "string"
  1613. },
  1614. "transitive": {
  1615. "type": "boolean"
  1616. },
  1617. "updatedAt": {
  1618. "example": 1700000000,
  1619. "type": "integer"
  1620. },
  1621. "uptimeSecs": {
  1622. "example": 86400,
  1623. "type": "integer"
  1624. },
  1625. "xrayError": {
  1626. "type": "string"
  1627. },
  1628. "xrayState": {
  1629. "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.",
  1630. "type": "string"
  1631. },
  1632. "xrayVersion": {
  1633. "example": "25.10.31",
  1634. "type": "string"
  1635. }
  1636. },
  1637. "required": [
  1638. "address",
  1639. "allowPrivateAddress",
  1640. "apiToken",
  1641. "basePath",
  1642. "clientCount",
  1643. "configDirty",
  1644. "configDirtyAt",
  1645. "cpuPct",
  1646. "createdAt",
  1647. "depletedCount",
  1648. "enable",
  1649. "guid",
  1650. "id",
  1651. "inboundCount",
  1652. "lastError",
  1653. "lastHeartbeat",
  1654. "latencyMs",
  1655. "memPct",
  1656. "name",
  1657. "onlineCount",
  1658. "panelVersion",
  1659. "pinnedCertSha256",
  1660. "port",
  1661. "remark",
  1662. "scheme",
  1663. "status",
  1664. "tlsVerifyMode",
  1665. "updatedAt",
  1666. "uptimeSecs",
  1667. "xrayError",
  1668. "xrayState",
  1669. "xrayVersion"
  1670. ],
  1671. "type": "object"
  1672. },
  1673. "OutboundTraffics": {
  1674. "description": "OutboundTraffics tracks traffic statistics for Xray outbound connections.",
  1675. "properties": {
  1676. "down": {
  1677. "type": "integer"
  1678. },
  1679. "id": {
  1680. "type": "integer"
  1681. },
  1682. "tag": {
  1683. "type": "string"
  1684. },
  1685. "total": {
  1686. "type": "integer"
  1687. },
  1688. "up": {
  1689. "type": "integer"
  1690. }
  1691. },
  1692. "required": [
  1693. "down",
  1694. "id",
  1695. "tag",
  1696. "total",
  1697. "up"
  1698. ],
  1699. "type": "object"
  1700. },
  1701. "ProbeResultUI": {
  1702. "properties": {
  1703. "cpuPct": {
  1704. "example": 12.5,
  1705. "type": "number"
  1706. },
  1707. "error": {
  1708. "type": "string"
  1709. },
  1710. "latencyMs": {
  1711. "example": 42,
  1712. "type": "integer"
  1713. },
  1714. "memPct": {
  1715. "example": 45.2,
  1716. "type": "number"
  1717. },
  1718. "panelVersion": {
  1719. "example": "v3.x.x",
  1720. "type": "string"
  1721. },
  1722. "status": {
  1723. "example": "online",
  1724. "type": "string"
  1725. },
  1726. "uptimeSecs": {
  1727. "example": 86400,
  1728. "type": "integer"
  1729. },
  1730. "xrayError": {
  1731. "type": "string"
  1732. },
  1733. "xrayState": {
  1734. "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.",
  1735. "type": "string"
  1736. },
  1737. "xrayVersion": {
  1738. "example": "25.10.31",
  1739. "type": "string"
  1740. }
  1741. },
  1742. "required": [
  1743. "cpuPct",
  1744. "error",
  1745. "latencyMs",
  1746. "memPct",
  1747. "panelVersion",
  1748. "status",
  1749. "uptimeSecs",
  1750. "xrayError",
  1751. "xrayState",
  1752. "xrayVersion"
  1753. ],
  1754. "type": "object"
  1755. },
  1756. "Setting": {
  1757. "description": "Setting stores key-value configuration settings for the 3x-ui panel.",
  1758. "properties": {
  1759. "id": {
  1760. "type": "integer"
  1761. },
  1762. "key": {
  1763. "type": "string"
  1764. },
  1765. "value": {
  1766. "type": "string"
  1767. }
  1768. },
  1769. "required": [
  1770. "id",
  1771. "key",
  1772. "value"
  1773. ],
  1774. "type": "object"
  1775. },
  1776. "User": {
  1777. "description": "User represents a user account in the 3x-ui panel.",
  1778. "properties": {
  1779. "id": {
  1780. "type": "integer"
  1781. },
  1782. "password": {
  1783. "type": "string"
  1784. },
  1785. "username": {
  1786. "type": "string"
  1787. }
  1788. },
  1789. "required": [
  1790. "id",
  1791. "password",
  1792. "username"
  1793. ],
  1794. "type": "object"
  1795. }
  1796. };