types.ts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. // Code generated by tools/openapigen. DO NOT EDIT.
  2. export type ProcessState = string;
  3. export type Protocol = string;
  4. export type SubLinkProvider = unknown;
  5. export type transportBits = number;
  6. export interface AllSetting {
  7. datepicker: string;
  8. expireDiff: number;
  9. externalTrafficInformEnable: boolean;
  10. externalTrafficInformURI: string;
  11. ldapAutoCreate: boolean;
  12. ldapAutoDelete: boolean;
  13. ldapBaseDN: string;
  14. ldapBindDN: string;
  15. ldapDefaultExpiryDays: number;
  16. ldapDefaultLimitIP: number;
  17. ldapDefaultTotalGB: number;
  18. ldapEnable: boolean;
  19. ldapFlagField: string;
  20. ldapHost: string;
  21. ldapInboundTags: string;
  22. ldapInvertFlag: boolean;
  23. ldapPassword: string;
  24. ldapPort: number;
  25. ldapSyncCron: string;
  26. ldapTruthyValues: string;
  27. ldapUseTLS: boolean;
  28. ldapUserAttr: string;
  29. ldapUserFilter: string;
  30. ldapVlessField: string;
  31. pageSize: number;
  32. panelProxy: string;
  33. remarkModel: string;
  34. restartXrayOnClientDisable: boolean;
  35. sessionMaxAge: number;
  36. subAnnounce: string;
  37. subCertFile: string;
  38. subClashEnable: boolean;
  39. subClashEnableRouting: boolean;
  40. subClashPath: string;
  41. subClashRules: string;
  42. subClashURI: string;
  43. subDomain: string;
  44. subEmailInRemark: boolean;
  45. subEnable: boolean;
  46. subEnableRouting: boolean;
  47. subEncrypt: boolean;
  48. subJsonEnable: boolean;
  49. subJsonFinalMask: string;
  50. subJsonMux: string;
  51. subJsonPath: string;
  52. subJsonRules: string;
  53. subJsonURI: string;
  54. subKeyFile: string;
  55. subListen: string;
  56. subPath: string;
  57. subPort: number;
  58. subProfileUrl: string;
  59. subRoutingRules: string;
  60. subShowInfo: boolean;
  61. subSupportUrl: string;
  62. subThemeDir: string;
  63. subTitle: string;
  64. subURI: string;
  65. subUpdates: number;
  66. tgBotAPIServer: string;
  67. tgBotBackup: boolean;
  68. tgBotChatId: string;
  69. tgBotEnable: boolean;
  70. tgBotLoginNotify: boolean;
  71. tgBotProxy: string;
  72. tgBotToken: string;
  73. tgCpu: number;
  74. tgLang: string;
  75. tgRunTime: string;
  76. timeLocation: string;
  77. trafficDiff: number;
  78. trustedProxyCIDRs: string;
  79. twoFactorEnable: boolean;
  80. twoFactorToken: string;
  81. warpUpdateInterval: number;
  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. warpUpdateInterval: number;
  171. webBasePath: string;
  172. webCertFile: string;
  173. webDomain: string;
  174. webKeyFile: string;
  175. webListen: string;
  176. webPort: number;
  177. }
  178. export interface ApiToken {
  179. createdAt: number;
  180. enabled: boolean;
  181. id: number;
  182. name: string;
  183. token: string;
  184. }
  185. export interface ApiTokenView {
  186. createdAt: number;
  187. enabled: boolean;
  188. id: number;
  189. name: string;
  190. token?: string;
  191. }
  192. export interface Client {
  193. auth?: string;
  194. comment: string;
  195. created_at?: number;
  196. email: string;
  197. enable: boolean;
  198. expiryTime: number;
  199. flow?: string;
  200. group?: string;
  201. id?: string;
  202. limitIp: number;
  203. password?: string;
  204. reset: number;
  205. reverse?: ClientReverse | null;
  206. security: string;
  207. subId: string;
  208. tgId: number;
  209. totalGB: number;
  210. updated_at?: number;
  211. }
  212. export interface ClientInbound {
  213. clientId: number;
  214. createdAt: number;
  215. flowOverride: string;
  216. inboundId: number;
  217. }
  218. export interface ClientRecord {
  219. auth: string;
  220. comment: string;
  221. createdAt: number;
  222. email: string;
  223. enable: boolean;
  224. expiryTime: number;
  225. flow: string;
  226. group: string;
  227. id: number;
  228. limitIp: number;
  229. password: string;
  230. reset: number;
  231. reverse: unknown;
  232. security: string;
  233. subId: string;
  234. tgId: number;
  235. totalGB: number;
  236. updatedAt: number;
  237. uuid: string;
  238. }
  239. export interface ClientReverse {
  240. tag: string;
  241. }
  242. export interface ClientTraffic {
  243. down: number;
  244. email: string;
  245. enable: boolean;
  246. expiryTime: number;
  247. id: number;
  248. inboundId: number;
  249. lastOnline: number;
  250. reset: number;
  251. subId: string;
  252. total: number;
  253. up: number;
  254. uuid: string;
  255. }
  256. export interface CustomGeoResource {
  257. alias: string;
  258. createdAt: number;
  259. id: number;
  260. lastModified: string;
  261. lastUpdatedAt: number;
  262. localPath: string;
  263. type: string;
  264. updatedAt: number;
  265. url: string;
  266. }
  267. export interface FallbackParentInfo {
  268. masterId: number;
  269. path?: string;
  270. }
  271. export interface HistoryOfSeeders {
  272. id: number;
  273. seederName: string;
  274. }
  275. export interface Inbound {
  276. clientStats: ClientTraffic[];
  277. down: number;
  278. enable: boolean;
  279. expiryTime: number;
  280. fallbackParent?: FallbackParentInfo | null;
  281. id: number;
  282. lastTrafficResetTime: number;
  283. listen: string;
  284. nodeId?: number | null;
  285. originNodeGuid?: string;
  286. port: number;
  287. protocol: Protocol;
  288. remark: string;
  289. settings: unknown;
  290. sniffing: unknown;
  291. streamSettings: unknown;
  292. tag: string;
  293. total: number;
  294. trafficReset: string;
  295. up: number;
  296. }
  297. export interface InboundClientIps {
  298. clientEmail: string;
  299. id: number;
  300. ips: unknown;
  301. }
  302. export interface InboundFallback {
  303. alpn: string;
  304. childId: number;
  305. dest: string;
  306. id: number;
  307. masterId: number;
  308. name: string;
  309. path: string;
  310. sortOrder: number;
  311. xver: number;
  312. }
  313. export interface InboundOption {
  314. id: number;
  315. port: number;
  316. protocol: string;
  317. remark: string;
  318. ssMethod: string;
  319. tag: string;
  320. tlsFlowCapable: boolean;
  321. }
  322. export interface Msg {
  323. msg: string;
  324. obj: unknown;
  325. success: boolean;
  326. }
  327. export interface Node {
  328. address: string;
  329. allowPrivateAddress: boolean;
  330. apiToken: string;
  331. basePath: string;
  332. clientCount: number;
  333. configDirty: boolean;
  334. configDirtyAt: number;
  335. cpuPct: number;
  336. createdAt: number;
  337. depletedCount: number;
  338. enable: boolean;
  339. guid: string;
  340. id: number;
  341. inboundCount: number;
  342. lastError: string;
  343. lastHeartbeat: number;
  344. latencyMs: number;
  345. memPct: number;
  346. name: string;
  347. onlineCount: number;
  348. panelVersion: string;
  349. parentGuid?: string;
  350. pinnedCertSha256: string;
  351. port: number;
  352. remark: string;
  353. scheme: string;
  354. status: string;
  355. tlsVerifyMode: string;
  356. transitive?: boolean;
  357. updatedAt: number;
  358. uptimeSecs: number;
  359. xrayError: string;
  360. xrayState: string;
  361. xrayVersion: string;
  362. }
  363. export interface OutboundTraffics {
  364. down: number;
  365. id: number;
  366. tag: string;
  367. total: number;
  368. up: number;
  369. }
  370. export interface ProbeResultUI {
  371. cpuPct: number;
  372. error: string;
  373. latencyMs: number;
  374. memPct: number;
  375. panelVersion: string;
  376. status: string;
  377. uptimeSecs: number;
  378. xrayError: string;
  379. xrayState: string;
  380. xrayVersion: string;
  381. }
  382. export interface Setting {
  383. id: number;
  384. key: string;
  385. value: string;
  386. }
  387. export interface User {
  388. id: number;
  389. password: string;
  390. username: string;
  391. }