types.ts 13 KB

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