types.ts 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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 transportBits = number;
  7. export interface AllSetting {
  8. datepicker: string;
  9. expireDiff: number;
  10. externalTrafficInformEnable: boolean;
  11. externalTrafficInformURI: string;
  12. ldapAutoCreate: boolean;
  13. ldapAutoDelete: boolean;
  14. ldapBaseDN: string;
  15. ldapBindDN: string;
  16. ldapDefaultExpiryDays: number;
  17. ldapDefaultLimitIP: number;
  18. ldapDefaultTotalGB: number;
  19. ldapEnable: boolean;
  20. ldapFlagField: string;
  21. ldapHost: string;
  22. ldapInboundTags: string;
  23. ldapInvertFlag: boolean;
  24. ldapPassword: string;
  25. ldapPort: number;
  26. ldapSyncCron: string;
  27. ldapTruthyValues: string;
  28. ldapUseTLS: boolean;
  29. ldapUserAttr: string;
  30. ldapUserFilter: string;
  31. ldapVlessField: string;
  32. pageSize: number;
  33. panelOutbound: string;
  34. remarkModel: string;
  35. restartXrayOnClientDisable: boolean;
  36. sessionMaxAge: number;
  37. subAnnounce: string;
  38. subCertFile: string;
  39. subClashEnable: boolean;
  40. subClashEnableRouting: boolean;
  41. subClashPath: string;
  42. subClashRules: string;
  43. subClashURI: string;
  44. subDomain: string;
  45. subEmailInRemark: boolean;
  46. subEnable: boolean;
  47. subEnableRouting: boolean;
  48. subEncrypt: boolean;
  49. subJsonEnable: boolean;
  50. subJsonFinalMask: string;
  51. subJsonMux: string;
  52. subJsonPath: string;
  53. subJsonRules: string;
  54. subJsonURI: string;
  55. subKeyFile: string;
  56. subListen: string;
  57. subPath: string;
  58. subPort: number;
  59. subProfileUrl: string;
  60. subRoutingRules: string;
  61. subShowInfo: boolean;
  62. subSupportUrl: string;
  63. subThemeDir: string;
  64. subTitle: string;
  65. subURI: string;
  66. subUpdates: number;
  67. tgBotAPIServer: string;
  68. tgBotBackup: boolean;
  69. tgBotChatId: string;
  70. tgBotEnable: boolean;
  71. tgBotLoginNotify: boolean;
  72. tgBotProxy: string;
  73. tgBotToken: string;
  74. tgCpu: number;
  75. tgLang: string;
  76. tgRunTime: string;
  77. timeLocation: string;
  78. trafficDiff: number;
  79. trustedProxyCIDRs: string;
  80. twoFactorEnable: boolean;
  81. twoFactorToken: string;
  82. warpUpdateInterval: number;
  83. webBasePath: string;
  84. webCertFile: string;
  85. webDomain: string;
  86. webKeyFile: string;
  87. webListen: string;
  88. webPort: number;
  89. }
  90. export interface AllSettingView {
  91. datepicker: string;
  92. expireDiff: number;
  93. externalTrafficInformEnable: boolean;
  94. externalTrafficInformURI: string;
  95. hasApiToken: boolean;
  96. hasLdapPassword: boolean;
  97. hasNordSecret: boolean;
  98. hasTgBotToken: boolean;
  99. hasTwoFactorToken: boolean;
  100. hasWarpSecret: boolean;
  101. ldapAutoCreate: boolean;
  102. ldapAutoDelete: boolean;
  103. ldapBaseDN: string;
  104. ldapBindDN: string;
  105. ldapDefaultExpiryDays: number;
  106. ldapDefaultLimitIP: number;
  107. ldapDefaultTotalGB: number;
  108. ldapEnable: boolean;
  109. ldapFlagField: string;
  110. ldapHost: string;
  111. ldapInboundTags: string;
  112. ldapInvertFlag: boolean;
  113. ldapPassword: string;
  114. ldapPort: number;
  115. ldapSyncCron: string;
  116. ldapTruthyValues: string;
  117. ldapUseTLS: boolean;
  118. ldapUserAttr: string;
  119. ldapUserFilter: string;
  120. ldapVlessField: string;
  121. pageSize: number;
  122. panelOutbound: string;
  123. remarkModel: string;
  124. restartXrayOnClientDisable: boolean;
  125. sessionMaxAge: number;
  126. subAnnounce: string;
  127. subCertFile: string;
  128. subClashEnable: boolean;
  129. subClashEnableRouting: boolean;
  130. subClashPath: string;
  131. subClashRules: string;
  132. subClashURI: string;
  133. subDomain: string;
  134. subEmailInRemark: boolean;
  135. subEnable: boolean;
  136. subEnableRouting: boolean;
  137. subEncrypt: boolean;
  138. subJsonEnable: boolean;
  139. subJsonFinalMask: string;
  140. subJsonMux: string;
  141. subJsonPath: string;
  142. subJsonRules: string;
  143. subJsonURI: string;
  144. subKeyFile: string;
  145. subListen: string;
  146. subPath: string;
  147. subPort: number;
  148. subProfileUrl: string;
  149. subRoutingRules: string;
  150. subShowInfo: boolean;
  151. subSupportUrl: string;
  152. subThemeDir: string;
  153. subTitle: string;
  154. subURI: string;
  155. subUpdates: number;
  156. tgBotAPIServer: string;
  157. tgBotBackup: boolean;
  158. tgBotChatId: string;
  159. tgBotEnable: boolean;
  160. tgBotLoginNotify: boolean;
  161. tgBotProxy: string;
  162. tgBotToken: string;
  163. tgCpu: number;
  164. tgLang: string;
  165. tgRunTime: string;
  166. timeLocation: string;
  167. trafficDiff: number;
  168. trustedProxyCIDRs: string;
  169. twoFactorEnable: boolean;
  170. twoFactorToken: string;
  171. warpUpdateInterval: number;
  172. webBasePath: string;
  173. webCertFile: string;
  174. webDomain: string;
  175. webKeyFile: string;
  176. webListen: string;
  177. webPort: number;
  178. }
  179. export interface ApiToken {
  180. createdAt: number;
  181. enabled: boolean;
  182. id: number;
  183. name: string;
  184. token: string;
  185. }
  186. export interface ApiTokenView {
  187. createdAt: number;
  188. enabled: boolean;
  189. id: number;
  190. name: string;
  191. token?: string;
  192. }
  193. export interface Client {
  194. auth?: string;
  195. comment: string;
  196. created_at?: number;
  197. email: string;
  198. enable: boolean;
  199. expiryTime: number;
  200. flow?: string;
  201. group?: string;
  202. id?: string;
  203. limitIp: number;
  204. password?: string;
  205. reset: number;
  206. reverse?: ClientReverse | null;
  207. security: string;
  208. subId: string;
  209. tgId: number;
  210. totalGB: number;
  211. updated_at?: number;
  212. }
  213. export interface ClientInbound {
  214. clientId: number;
  215. createdAt: number;
  216. flowOverride: string;
  217. inboundId: number;
  218. }
  219. export interface ClientRecord {
  220. auth: string;
  221. comment: string;
  222. createdAt: number;
  223. email: string;
  224. enable: boolean;
  225. expiryTime: number;
  226. flow: string;
  227. group: string;
  228. id: number;
  229. limitIp: number;
  230. password: string;
  231. reset: number;
  232. reverse: unknown;
  233. security: string;
  234. subId: string;
  235. tgId: number;
  236. totalGB: number;
  237. updatedAt: number;
  238. uuid: string;
  239. }
  240. export interface ClientReverse {
  241. tag: string;
  242. }
  243. export interface ClientTraffic {
  244. down: number;
  245. email: string;
  246. enable: boolean;
  247. expiryTime: number;
  248. id: number;
  249. inboundId: number;
  250. lastOnline: number;
  251. reset: number;
  252. subId: string;
  253. total: number;
  254. up: number;
  255. uuid: string;
  256. }
  257. export interface FallbackParentInfo {
  258. masterId: number;
  259. path?: string;
  260. }
  261. export interface HistoryOfSeeders {
  262. id: number;
  263. seederName: string;
  264. }
  265. export interface Inbound {
  266. clientStats: ClientTraffic[];
  267. down: number;
  268. enable: boolean;
  269. expiryTime: number;
  270. fallbackParent?: FallbackParentInfo | null;
  271. id: number;
  272. lastTrafficResetTime: number;
  273. listen: string;
  274. nodeId?: number | null;
  275. originNodeGuid?: string;
  276. port: number;
  277. protocol: Protocol;
  278. remark: string;
  279. settings: unknown;
  280. shareAddr: string;
  281. shareAddrStrategy: string;
  282. sniffing: unknown;
  283. streamSettings: unknown;
  284. tag: string;
  285. total: number;
  286. trafficReset: string;
  287. up: number;
  288. }
  289. export interface InboundClientIps {
  290. clientEmail: string;
  291. id: number;
  292. ips: unknown;
  293. }
  294. export interface InboundFallback {
  295. alpn: string;
  296. childId: number;
  297. dest: string;
  298. id: number;
  299. masterId: number;
  300. name: string;
  301. path: string;
  302. sortOrder: number;
  303. xver: number;
  304. }
  305. export interface InboundOption {
  306. id: number;
  307. port: number;
  308. protocol: string;
  309. remark: string;
  310. ssMethod: string;
  311. tag: string;
  312. tlsFlowCapable: boolean;
  313. }
  314. export interface Msg {
  315. msg: string;
  316. obj: unknown;
  317. success: boolean;
  318. }
  319. export interface Node {
  320. address: string;
  321. allowPrivateAddress: boolean;
  322. apiToken: string;
  323. basePath: string;
  324. clientCount: number;
  325. configDirty: boolean;
  326. configDirtyAt: number;
  327. cpuPct: number;
  328. createdAt: number;
  329. depletedCount: number;
  330. enable: boolean;
  331. guid: string;
  332. id: number;
  333. inboundCount: number;
  334. inboundSyncMode: string;
  335. inboundTags: string[];
  336. lastError: string;
  337. lastHeartbeat: number;
  338. latencyMs: number;
  339. memPct: number;
  340. name: string;
  341. onlineCount: number;
  342. panelVersion: string;
  343. parentGuid?: string;
  344. pinnedCertSha256: string;
  345. port: number;
  346. remark: string;
  347. scheme: string;
  348. status: string;
  349. tlsVerifyMode: string;
  350. transitive?: boolean;
  351. updatedAt: number;
  352. uptimeSecs: number;
  353. xrayError: string;
  354. xrayState: string;
  355. xrayVersion: string;
  356. }
  357. export interface OutboundTraffics {
  358. down: number;
  359. id: number;
  360. tag: string;
  361. total: number;
  362. up: number;
  363. }
  364. export interface ProbeResultUI {
  365. cpuPct: number;
  366. error: string;
  367. latencyMs: number;
  368. memPct: number;
  369. panelVersion: string;
  370. status: string;
  371. uptimeSecs: number;
  372. xrayError: string;
  373. xrayState: string;
  374. xrayVersion: string;
  375. }
  376. export interface Setting {
  377. id: number;
  378. key: string;
  379. value: string;
  380. }
  381. export interface User {
  382. id: number;
  383. password: string;
  384. username: string;
  385. }