types.ts 7.2 KB

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