types.ts 8.2 KB

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