types.ts 8.7 KB

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