types.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. // Code generated by tools/openapigen. DO NOT EDIT.
  2. export type OnlineAPISupport = number;
  3. export type ProcessState = string;
  4. export type Protocol = string;
  5. export type SubLinkProvider = unknown;
  6. export type staticEgressResolver = string;
  7. export type transportBits = number;
  8. export interface AllSetting {
  9. datepicker: string;
  10. expireDiff: number;
  11. externalTrafficInformEnable: boolean;
  12. externalTrafficInformURI: string;
  13. ldapAutoCreate: boolean;
  14. ldapAutoDelete: boolean;
  15. ldapBaseDN: string;
  16. ldapBindDN: string;
  17. ldapDefaultExpiryDays: number;
  18. ldapDefaultLimitIP: number;
  19. ldapDefaultTotalGB: number;
  20. ldapEnable: boolean;
  21. ldapFlagField: string;
  22. ldapHost: string;
  23. ldapInboundTags: string;
  24. ldapInsecureSkipVerify: boolean;
  25. ldapInvertFlag: boolean;
  26. ldapPassword: string;
  27. ldapPort: number;
  28. ldapSyncCron: string;
  29. ldapTruthyValues: string;
  30. ldapUseTLS: boolean;
  31. ldapUserAttr: string;
  32. ldapUserFilter: string;
  33. ldapVlessField: string;
  34. pageSize: number;
  35. panelOutbound: string;
  36. remarkTemplate: string;
  37. restartXrayOnClientDisable: boolean;
  38. sessionMaxAge: number;
  39. smtpCpu: number;
  40. smtpEnable: boolean;
  41. smtpEnabledEvents: string;
  42. smtpEncryptionType: string;
  43. smtpHost: string;
  44. smtpMemory: number;
  45. smtpPassword: string;
  46. smtpPort: number;
  47. smtpTo: string;
  48. smtpUsername: string;
  49. subAnnounce: string;
  50. subCertFile: string;
  51. subClashEnable: boolean;
  52. subClashEnableRouting: boolean;
  53. subClashPath: string;
  54. subClashRules: string;
  55. subClashURI: string;
  56. subDomain: string;
  57. subEnable: boolean;
  58. subEnableRouting: boolean;
  59. subEncrypt: boolean;
  60. subHideSettings: boolean;
  61. subIncyEnableRouting: boolean;
  62. subIncyRoutingRules: string;
  63. subJsonEnable: boolean;
  64. subJsonFinalMask: string;
  65. subJsonMux: string;
  66. subJsonPath: string;
  67. subJsonRules: string;
  68. subJsonURI: string;
  69. subKeyFile: string;
  70. subListen: string;
  71. subPath: string;
  72. subPort: number;
  73. subProfileUrl: string;
  74. subRoutingRules: string;
  75. subSupportUrl: string;
  76. subThemeDir: string;
  77. subTitle: string;
  78. subURI: string;
  79. subUpdates: number;
  80. tgBotAPIServer: string;
  81. tgBotBackup: boolean;
  82. tgBotChatId: string;
  83. tgBotEnable: boolean;
  84. tgBotProxy: string;
  85. tgBotToken: string;
  86. tgCpu: number;
  87. tgEnabledEvents: string;
  88. tgLang: string;
  89. tgMemory: number;
  90. tgRunTime: string;
  91. timeLocation: string;
  92. trafficDiff: number;
  93. trustedProxyCIDRs: string;
  94. twoFactorEnable: boolean;
  95. twoFactorToken: string;
  96. warpUpdateInterval: number;
  97. webBasePath: string;
  98. webCertFile: string;
  99. webDomain: string;
  100. webKeyFile: string;
  101. webListen: string;
  102. webPort: number;
  103. }
  104. export interface AllSettingView {
  105. datepicker: string;
  106. expireDiff: number;
  107. externalTrafficInformEnable: boolean;
  108. externalTrafficInformURI: string;
  109. hasApiToken: boolean;
  110. hasLdapPassword: boolean;
  111. hasNordSecret: boolean;
  112. hasSmtpPassword: boolean;
  113. hasTgBotToken: boolean;
  114. hasTwoFactorToken: boolean;
  115. hasWarpSecret: boolean;
  116. ldapAutoCreate: boolean;
  117. ldapAutoDelete: boolean;
  118. ldapBaseDN: string;
  119. ldapBindDN: string;
  120. ldapDefaultExpiryDays: number;
  121. ldapDefaultLimitIP: number;
  122. ldapDefaultTotalGB: number;
  123. ldapEnable: boolean;
  124. ldapFlagField: string;
  125. ldapHost: string;
  126. ldapInboundTags: string;
  127. ldapInsecureSkipVerify: boolean;
  128. ldapInvertFlag: boolean;
  129. ldapPassword: string;
  130. ldapPort: number;
  131. ldapSyncCron: string;
  132. ldapTruthyValues: string;
  133. ldapUseTLS: boolean;
  134. ldapUserAttr: string;
  135. ldapUserFilter: string;
  136. ldapVlessField: string;
  137. pageSize: number;
  138. panelOutbound: string;
  139. remarkTemplate: string;
  140. restartXrayOnClientDisable: boolean;
  141. sessionMaxAge: number;
  142. smtpCpu: number;
  143. smtpEnable: boolean;
  144. smtpEnabledEvents: string;
  145. smtpEncryptionType: string;
  146. smtpHost: string;
  147. smtpMemory: number;
  148. smtpPassword: string;
  149. smtpPort: number;
  150. smtpTo: string;
  151. smtpUsername: string;
  152. subAnnounce: string;
  153. subCertFile: string;
  154. subClashEnable: boolean;
  155. subClashEnableRouting: boolean;
  156. subClashPath: string;
  157. subClashRules: string;
  158. subClashURI: string;
  159. subDomain: string;
  160. subEnable: boolean;
  161. subEnableRouting: boolean;
  162. subEncrypt: boolean;
  163. subHideSettings: boolean;
  164. subIncyEnableRouting: boolean;
  165. subIncyRoutingRules: string;
  166. subJsonEnable: boolean;
  167. subJsonFinalMask: string;
  168. subJsonMux: string;
  169. subJsonPath: string;
  170. subJsonRules: string;
  171. subJsonURI: string;
  172. subKeyFile: string;
  173. subListen: string;
  174. subPath: string;
  175. subPort: number;
  176. subProfileUrl: string;
  177. subRoutingRules: string;
  178. subSupportUrl: string;
  179. subThemeDir: string;
  180. subTitle: string;
  181. subURI: string;
  182. subUpdates: number;
  183. tgBotAPIServer: string;
  184. tgBotBackup: boolean;
  185. tgBotChatId: string;
  186. tgBotEnable: boolean;
  187. tgBotProxy: string;
  188. tgBotToken: string;
  189. tgCpu: number;
  190. tgEnabledEvents: string;
  191. tgLang: string;
  192. tgMemory: number;
  193. tgRunTime: string;
  194. timeLocation: string;
  195. trafficDiff: number;
  196. trustedProxyCIDRs: string;
  197. twoFactorEnable: boolean;
  198. twoFactorToken: string;
  199. warpUpdateInterval: number;
  200. webBasePath: string;
  201. webCertFile: string;
  202. webDomain: string;
  203. webKeyFile: string;
  204. webListen: string;
  205. webPort: number;
  206. }
  207. export interface ApiToken {
  208. createdAt: number;
  209. enabled: boolean;
  210. id: number;
  211. name: string;
  212. token: string;
  213. }
  214. export interface ApiTokenView {
  215. createdAt: number;
  216. enabled: boolean;
  217. id: number;
  218. name: string;
  219. token?: string;
  220. }
  221. export interface Client {
  222. adTag?: string;
  223. allowedIPs?: string[];
  224. auth?: string;
  225. comment: string;
  226. created_at?: number;
  227. email: string;
  228. enable: boolean;
  229. expiryTime: number;
  230. flow?: string;
  231. group?: string;
  232. id?: string;
  233. keepAlive?: number;
  234. limitIp: number;
  235. password?: string;
  236. preSharedKey?: string;
  237. privateKey?: string;
  238. publicKey?: string;
  239. reset: number;
  240. reverse?: ClientReverse | null;
  241. secret?: string;
  242. security: string;
  243. subId: string;
  244. tgId: number;
  245. totalGB: number;
  246. updated_at?: number;
  247. }
  248. export interface ClientInbound {
  249. clientId: number;
  250. createdAt: number;
  251. flowOverride: string;
  252. inboundId: number;
  253. }
  254. export interface ClientRecord {
  255. adTag: string;
  256. allowedIPs: string;
  257. auth: string;
  258. comment: string;
  259. createdAt: number;
  260. email: string;
  261. enable: boolean;
  262. expiryTime: number;
  263. flow: string;
  264. group: string;
  265. id: number;
  266. keepAlive: number;
  267. limitIp: number;
  268. password: string;
  269. preSharedKey: string;
  270. privateKey: string;
  271. publicKey: string;
  272. reset: number;
  273. reverse: unknown;
  274. secret: string;
  275. security: string;
  276. subId: string;
  277. tgId: number;
  278. totalGB: number;
  279. updatedAt: number;
  280. uuid: string;
  281. }
  282. export interface ClientReverse {
  283. tag: string;
  284. }
  285. export interface ClientTraffic {
  286. down: number;
  287. email: string;
  288. enable: boolean;
  289. expiryTime: number;
  290. id: number;
  291. inboundId: number;
  292. lastOnline: number;
  293. reset: number;
  294. subId: string;
  295. total: number;
  296. up: number;
  297. uuid: string;
  298. }
  299. export interface FallbackParentInfo {
  300. masterId: number;
  301. path?: string;
  302. }
  303. export interface HistoryOfSeeders {
  304. id: number;
  305. seederName: string;
  306. }
  307. export interface Host {
  308. address: string;
  309. allowInsecure: boolean;
  310. alpn: string[];
  311. createdAt: number;
  312. echConfigList: string;
  313. excludeFromSubTypes: string[];
  314. finalMask: string;
  315. fingerprint: string;
  316. hostHeader: string;
  317. id: number;
  318. inboundId: number;
  319. isDisabled: boolean;
  320. isHidden: boolean;
  321. keepSniBlank: boolean;
  322. mihomoIpVersion: string;
  323. mihomoX25519: boolean;
  324. muxParams: unknown;
  325. nodeGuids?: string[];
  326. overrideSniFromAddress: boolean;
  327. path: string;
  328. pinnedPeerCertSha256: string[];
  329. port: number;
  330. remark: string;
  331. security: string;
  332. serverDescription: string;
  333. shuffleHost: boolean;
  334. sni: string;
  335. sockoptParams: unknown;
  336. sortOrder: number;
  337. tags: string[];
  338. updatedAt: number;
  339. verifyPeerCertByName: string;
  340. vlessRoute: string;
  341. }
  342. export interface Inbound {
  343. clientStats: ClientTraffic[];
  344. down: number;
  345. enable: boolean;
  346. expiryTime: number;
  347. fallbackParent?: FallbackParentInfo | null;
  348. id: number;
  349. lastTrafficResetTime: number;
  350. listen: string;
  351. nodeId?: number | null;
  352. originNodeGuid?: string;
  353. port: number;
  354. protocol: Protocol;
  355. remark: string;
  356. settings: unknown;
  357. shareAddr: string;
  358. shareAddrStrategy: string;
  359. sniffing: unknown;
  360. streamSettings: unknown;
  361. subSortIndex: number;
  362. tag: string;
  363. total: number;
  364. trafficReset: string;
  365. up: number;
  366. }
  367. export interface InboundClientIps {
  368. clientEmail: string;
  369. id: number;
  370. ips: unknown;
  371. }
  372. export interface InboundFallback {
  373. alpn: string;
  374. childId: number;
  375. dest: string;
  376. id: number;
  377. masterId: number;
  378. name: string;
  379. path: string;
  380. sortOrder: number;
  381. xver: number;
  382. }
  383. export interface InboundOption {
  384. enable: boolean;
  385. id: number;
  386. listen?: string;
  387. mtprotoDomain?: string;
  388. nodeAddress?: string;
  389. nodeId?: number | null;
  390. port: number;
  391. protocol: string;
  392. remark: string;
  393. shareAddr?: string;
  394. shareAddrStrategy?: string;
  395. ssMethod: string;
  396. tag: string;
  397. tlsFlowCapable: boolean;
  398. wgDns?: string;
  399. wgMtu?: number;
  400. wgPublicKey?: string;
  401. }
  402. export interface Msg {
  403. msg: string;
  404. obj: unknown;
  405. success: boolean;
  406. }
  407. export interface Node {
  408. activeCount: number;
  409. address: string;
  410. allowPrivateAddress: boolean;
  411. apiToken: string;
  412. basePath: string;
  413. clientCount: number;
  414. configDirty: boolean;
  415. configDirtyAt: number;
  416. cpuPct: number;
  417. createdAt: number;
  418. depletedCount: number;
  419. disabledCount: number;
  420. enable: boolean;
  421. guid: string;
  422. id: number;
  423. inboundCount: number;
  424. inboundSyncMode: string;
  425. inboundTags: string[];
  426. lastError: string;
  427. lastHeartbeat: number;
  428. latencyMs: number;
  429. memPct: number;
  430. name: string;
  431. netDown: number;
  432. netUp: number;
  433. onlineCount: number;
  434. outboundTag: string;
  435. panelVersion: string;
  436. parentGuid?: string;
  437. pinnedCertSha256: string;
  438. port: number;
  439. remark: string;
  440. scheme: string;
  441. status: string;
  442. tlsVerifyMode: string;
  443. transitive?: boolean;
  444. updatedAt: number;
  445. uptimeSecs: number;
  446. xrayError: string;
  447. xrayState: string;
  448. xrayVersion: string;
  449. }
  450. export interface OutboundTraffics {
  451. down: number;
  452. id: number;
  453. tag: string;
  454. total: number;
  455. up: number;
  456. }
  457. export interface PanelUpdateStatus {
  458. exitCode: number;
  459. finishedAt: number;
  460. runId: string;
  461. state: string;
  462. }
  463. export interface ProbeResultUI {
  464. cpuPct: number;
  465. error: string;
  466. latencyMs: number;
  467. memPct: number;
  468. panelVersion: string;
  469. status: string;
  470. uptimeSecs: number;
  471. xrayError: string;
  472. xrayState: string;
  473. xrayVersion: string;
  474. }
  475. export interface RealityScanResult {
  476. alpn: string;
  477. certIssuer: string;
  478. certSubject: string;
  479. certValid: boolean;
  480. curveID: string;
  481. feasible: boolean;
  482. h2: boolean;
  483. host: string;
  484. ip: string;
  485. latencyMs: number;
  486. notAfter: string;
  487. port: number;
  488. reason: string;
  489. serverNames: string[];
  490. target: string;
  491. tls13: boolean;
  492. tlsVersion: string;
  493. x25519: boolean;
  494. }
  495. export interface Setting {
  496. id: number;
  497. key: string;
  498. value: string;
  499. }
  500. export interface User {
  501. id: number;
  502. password: string;
  503. username: string;
  504. }