examples.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. // Code generated by tools/openapigen. DO NOT EDIT.
  2. export const EXAMPLES: Record<string, unknown> = {
  3. "AllSetting": {
  4. "datepicker": "",
  5. "expireDiff": 0,
  6. "externalTrafficInformEnable": false,
  7. "externalTrafficInformURI": "",
  8. "ldapAutoCreate": false,
  9. "ldapAutoDelete": false,
  10. "ldapBaseDN": "",
  11. "ldapBindDN": "",
  12. "ldapDefaultExpiryDays": 0,
  13. "ldapDefaultLimitIP": 0,
  14. "ldapDefaultTotalGB": 0,
  15. "ldapEnable": false,
  16. "ldapFlagField": "",
  17. "ldapHost": "",
  18. "ldapInboundTags": "",
  19. "ldapInsecureSkipVerify": false,
  20. "ldapInvertFlag": false,
  21. "ldapPassword": "",
  22. "ldapPort": 0,
  23. "ldapSyncCron": "",
  24. "ldapTruthyValues": "",
  25. "ldapUseTLS": false,
  26. "ldapUserAttr": "",
  27. "ldapUserFilter": "",
  28. "ldapVlessField": "",
  29. "pageSize": 0,
  30. "panelOutbound": "",
  31. "remarkTemplate": "",
  32. "restartXrayOnClientDisable": false,
  33. "sessionMaxAge": 1,
  34. "smtpCpu": 0,
  35. "smtpEnable": false,
  36. "smtpEnabledEvents": "",
  37. "smtpEncryptionType": "",
  38. "smtpHost": "",
  39. "smtpMemory": 0,
  40. "smtpPassword": "",
  41. "smtpPort": 1,
  42. "smtpTo": "",
  43. "smtpUsername": "",
  44. "subAnnounce": "",
  45. "subCertFile": "",
  46. "subClashEnable": false,
  47. "subClashEnableRouting": false,
  48. "subClashPath": "",
  49. "subClashRules": "",
  50. "subClashURI": "",
  51. "subDomain": "",
  52. "subEnable": false,
  53. "subEnableRouting": false,
  54. "subEncrypt": false,
  55. "subHideSettings": false,
  56. "subIncyEnableRouting": false,
  57. "subIncyRoutingRules": "",
  58. "subJsonEnable": false,
  59. "subJsonFinalMask": "",
  60. "subJsonMux": "",
  61. "subJsonPath": "",
  62. "subJsonRules": "",
  63. "subJsonURI": "",
  64. "subKeyFile": "",
  65. "subListen": "",
  66. "subPath": "",
  67. "subPort": 1,
  68. "subProfileUrl": "",
  69. "subRoutingRules": "",
  70. "subSupportUrl": "",
  71. "subThemeDir": "",
  72. "subTitle": "",
  73. "subURI": "",
  74. "subUpdates": 0,
  75. "tgBotAPIServer": "",
  76. "tgBotBackup": false,
  77. "tgBotChatId": "",
  78. "tgBotEnable": false,
  79. "tgBotProxy": "",
  80. "tgBotToken": "",
  81. "tgCpu": 0,
  82. "tgEnabledEvents": "",
  83. "tgLang": "",
  84. "tgMemory": 0,
  85. "tgRunTime": "",
  86. "timeLocation": "",
  87. "trafficDiff": 0,
  88. "trustedProxyCIDRs": "",
  89. "twoFactorEnable": false,
  90. "twoFactorToken": "",
  91. "warpUpdateInterval": 0,
  92. "webBasePath": "",
  93. "webCertFile": "",
  94. "webDomain": "",
  95. "webKeyFile": "",
  96. "webListen": "",
  97. "webPort": 1
  98. },
  99. "AllSettingView": {
  100. "datepicker": "",
  101. "expireDiff": 0,
  102. "externalTrafficInformEnable": false,
  103. "externalTrafficInformURI": "",
  104. "hasApiToken": false,
  105. "hasLdapPassword": false,
  106. "hasNordSecret": false,
  107. "hasSmtpPassword": false,
  108. "hasTgBotToken": false,
  109. "hasTwoFactorToken": false,
  110. "hasWarpSecret": false,
  111. "ldapAutoCreate": false,
  112. "ldapAutoDelete": false,
  113. "ldapBaseDN": "",
  114. "ldapBindDN": "",
  115. "ldapDefaultExpiryDays": 0,
  116. "ldapDefaultLimitIP": 0,
  117. "ldapDefaultTotalGB": 0,
  118. "ldapEnable": false,
  119. "ldapFlagField": "",
  120. "ldapHost": "",
  121. "ldapInboundTags": "",
  122. "ldapInsecureSkipVerify": false,
  123. "ldapInvertFlag": false,
  124. "ldapPassword": "",
  125. "ldapPort": 0,
  126. "ldapSyncCron": "",
  127. "ldapTruthyValues": "",
  128. "ldapUseTLS": false,
  129. "ldapUserAttr": "",
  130. "ldapUserFilter": "",
  131. "ldapVlessField": "",
  132. "pageSize": 0,
  133. "panelOutbound": "",
  134. "remarkTemplate": "",
  135. "restartXrayOnClientDisable": false,
  136. "sessionMaxAge": 1,
  137. "smtpCpu": 0,
  138. "smtpEnable": false,
  139. "smtpEnabledEvents": "",
  140. "smtpEncryptionType": "",
  141. "smtpHost": "",
  142. "smtpMemory": 0,
  143. "smtpPassword": "",
  144. "smtpPort": 1,
  145. "smtpTo": "",
  146. "smtpUsername": "",
  147. "subAnnounce": "",
  148. "subCertFile": "",
  149. "subClashEnable": false,
  150. "subClashEnableRouting": false,
  151. "subClashPath": "",
  152. "subClashRules": "",
  153. "subClashURI": "",
  154. "subDomain": "",
  155. "subEnable": false,
  156. "subEnableRouting": false,
  157. "subEncrypt": false,
  158. "subHideSettings": false,
  159. "subIncyEnableRouting": false,
  160. "subIncyRoutingRules": "",
  161. "subJsonEnable": false,
  162. "subJsonFinalMask": "",
  163. "subJsonMux": "",
  164. "subJsonPath": "",
  165. "subJsonRules": "",
  166. "subJsonURI": "",
  167. "subKeyFile": "",
  168. "subListen": "",
  169. "subPath": "",
  170. "subPort": 1,
  171. "subProfileUrl": "",
  172. "subRoutingRules": "",
  173. "subSupportUrl": "",
  174. "subThemeDir": "",
  175. "subTitle": "",
  176. "subURI": "",
  177. "subUpdates": 0,
  178. "tgBotAPIServer": "",
  179. "tgBotBackup": false,
  180. "tgBotChatId": "",
  181. "tgBotEnable": false,
  182. "tgBotProxy": "",
  183. "tgBotToken": "",
  184. "tgCpu": 0,
  185. "tgEnabledEvents": "",
  186. "tgLang": "",
  187. "tgMemory": 0,
  188. "tgRunTime": "",
  189. "timeLocation": "",
  190. "trafficDiff": 0,
  191. "trustedProxyCIDRs": "",
  192. "twoFactorEnable": false,
  193. "twoFactorToken": "",
  194. "warpUpdateInterval": 0,
  195. "webBasePath": "",
  196. "webCertFile": "",
  197. "webDomain": "",
  198. "webKeyFile": "",
  199. "webListen": "",
  200. "webPort": 1
  201. },
  202. "ApiToken": {
  203. "createdAt": 0,
  204. "enabled": false,
  205. "id": 0,
  206. "name": "",
  207. "token": ""
  208. },
  209. "ApiTokenView": {
  210. "createdAt": 1736000000,
  211. "enabled": true,
  212. "id": 2,
  213. "name": "central-panel-a",
  214. "token": "new-token-string"
  215. },
  216. "Client": {
  217. "allowedIPs": [
  218. ""
  219. ],
  220. "auth": "",
  221. "comment": "",
  222. "created_at": 0,
  223. "email": "",
  224. "enable": false,
  225. "expiryTime": 0,
  226. "flow": "",
  227. "group": "",
  228. "id": "",
  229. "keepAlive": 0,
  230. "limitIp": 0,
  231. "password": "",
  232. "preSharedKey": "",
  233. "privateKey": "",
  234. "publicKey": "",
  235. "reset": 0,
  236. "reverse": null,
  237. "secret": "ee1234567890abcdef1234567890abcd7777772e636c6f7564666c6172652e636f6d",
  238. "security": "",
  239. "subId": "",
  240. "tgId": 0,
  241. "totalGB": 0,
  242. "updated_at": 0
  243. },
  244. "ClientInbound": {
  245. "clientId": 0,
  246. "createdAt": 0,
  247. "flowOverride": "",
  248. "inboundId": 0
  249. },
  250. "ClientRecord": {
  251. "allowedIPs": "",
  252. "auth": "",
  253. "comment": "",
  254. "createdAt": 0,
  255. "email": "",
  256. "enable": false,
  257. "expiryTime": 0,
  258. "flow": "",
  259. "group": "",
  260. "id": 0,
  261. "keepAlive": 0,
  262. "limitIp": 0,
  263. "password": "",
  264. "preSharedKey": "",
  265. "privateKey": "",
  266. "publicKey": "",
  267. "reset": 0,
  268. "reverse": null,
  269. "secret": "",
  270. "security": "",
  271. "subId": "",
  272. "tgId": 0,
  273. "totalGB": 0,
  274. "updatedAt": 0,
  275. "uuid": ""
  276. },
  277. "ClientReverse": {
  278. "tag": ""
  279. },
  280. "ClientTraffic": {
  281. "down": 2097152,
  282. "email": "user1",
  283. "enable": true,
  284. "expiryTime": 1735689600000,
  285. "id": 14825,
  286. "inboundId": 1,
  287. "lastOnline": 1735680000000,
  288. "reset": 0,
  289. "subId": "i7tvdpeffi0hvvf1",
  290. "total": 10737418240,
  291. "up": 1048576,
  292. "uuid": "e18c9a96-71bf-48d4-933f-8b9a46d4290c"
  293. },
  294. "FallbackParentInfo": {
  295. "masterId": 0,
  296. "path": ""
  297. },
  298. "HistoryOfSeeders": {
  299. "id": 0,
  300. "seederName": ""
  301. },
  302. "Host": {
  303. "address": "cdn.example.com",
  304. "allowInsecure": false,
  305. "alpn": [
  306. ""
  307. ],
  308. "createdAt": 0,
  309. "echConfigList": "",
  310. "excludeFromSubTypes": [
  311. ""
  312. ],
  313. "finalMask": "",
  314. "fingerprint": "",
  315. "hostHeader": "",
  316. "id": 1,
  317. "inboundId": 1,
  318. "isDisabled": false,
  319. "isHidden": false,
  320. "keepSniBlank": false,
  321. "mihomoIpVersion": "dual",
  322. "mihomoX25519": false,
  323. "muxParams": null,
  324. "nodeGuids": [
  325. ""
  326. ],
  327. "overrideSniFromAddress": false,
  328. "path": "",
  329. "pinnedPeerCertSha256": [
  330. ""
  331. ],
  332. "port": 8443,
  333. "remark": "cdn-front",
  334. "security": "same",
  335. "serverDescription": "",
  336. "shuffleHost": false,
  337. "sni": "",
  338. "sockoptParams": null,
  339. "sortOrder": 0,
  340. "tags": [
  341. ""
  342. ],
  343. "updatedAt": 0,
  344. "verifyPeerCertByName": "",
  345. "vlessRoute": "443"
  346. },
  347. "Inbound": {
  348. "clientStats": [
  349. {
  350. "down": 2097152,
  351. "email": "user1",
  352. "enable": true,
  353. "expiryTime": 1735689600000,
  354. "id": 14825,
  355. "inboundId": 1,
  356. "lastOnline": 1735680000000,
  357. "reset": 0,
  358. "subId": "i7tvdpeffi0hvvf1",
  359. "total": 10737418240,
  360. "up": 1048576,
  361. "uuid": "e18c9a96-71bf-48d4-933f-8b9a46d4290c"
  362. }
  363. ],
  364. "down": 0,
  365. "enable": true,
  366. "expiryTime": 0,
  367. "fallbackParent": null,
  368. "id": 1,
  369. "lastTrafficResetTime": 0,
  370. "listen": "",
  371. "nodeId": null,
  372. "originNodeGuid": "",
  373. "port": 443,
  374. "protocol": "vless",
  375. "remark": "VLESS-443",
  376. "settings": null,
  377. "shareAddr": "",
  378. "shareAddrStrategy": "node",
  379. "sniffing": null,
  380. "streamSettings": null,
  381. "subSortIndex": 1,
  382. "tag": "in-443-tcp",
  383. "total": 0,
  384. "trafficReset": "never",
  385. "up": 0
  386. },
  387. "InboundClientIps": {
  388. "clientEmail": "",
  389. "id": 0,
  390. "ips": null
  391. },
  392. "InboundFallback": {
  393. "alpn": "",
  394. "childId": 0,
  395. "dest": "",
  396. "id": 0,
  397. "masterId": 0,
  398. "name": "",
  399. "path": "",
  400. "sortOrder": 0,
  401. "xver": 0
  402. },
  403. "InboundOption": {
  404. "enable": true,
  405. "id": 1,
  406. "listen": "",
  407. "mtprotoDomain": "",
  408. "nodeAddress": "",
  409. "nodeId": null,
  410. "port": 443,
  411. "protocol": "vless",
  412. "remark": "VLESS-443",
  413. "shareAddr": "",
  414. "shareAddrStrategy": "",
  415. "ssMethod": "",
  416. "tag": "in-443-tcp",
  417. "tlsFlowCapable": true,
  418. "wgDns": "",
  419. "wgMtu": 0,
  420. "wgPublicKey": ""
  421. },
  422. "Msg": {
  423. "msg": "",
  424. "obj": null,
  425. "success": false
  426. },
  427. "Node": {
  428. "activeCount": 23,
  429. "address": "node1.example.com",
  430. "allowPrivateAddress": false,
  431. "apiToken": "abcdef0123456789",
  432. "basePath": "/",
  433. "clientCount": 27,
  434. "configDirty": false,
  435. "configDirtyAt": 0,
  436. "cpuPct": 23.5,
  437. "createdAt": 1700000000,
  438. "depletedCount": 1,
  439. "disabledCount": 3,
  440. "enable": true,
  441. "guid": "",
  442. "id": 1,
  443. "inboundCount": 5,
  444. "inboundSyncMode": "all",
  445. "inboundTags": [
  446. ""
  447. ],
  448. "lastError": "",
  449. "lastHeartbeat": 1700000000,
  450. "latencyMs": 42,
  451. "memPct": 45.1,
  452. "name": "de-fra-1",
  453. "netDown": 2097152,
  454. "netUp": 1048576,
  455. "onlineCount": 3,
  456. "outboundTag": "",
  457. "panelVersion": "v3.x.x",
  458. "parentGuid": "",
  459. "pinnedCertSha256": "",
  460. "port": 2053,
  461. "remark": "",
  462. "scheme": "https",
  463. "status": "online",
  464. "tlsVerifyMode": "verify",
  465. "transitive": false,
  466. "updatedAt": 1700000000,
  467. "uptimeSecs": 86400,
  468. "xrayError": "",
  469. "xrayState": "",
  470. "xrayVersion": "25.10.31"
  471. },
  472. "OutboundTraffics": {
  473. "down": 0,
  474. "id": 0,
  475. "tag": "",
  476. "total": 0,
  477. "up": 0
  478. },
  479. "PanelUpdateStatus": {
  480. "exitCode": 0,
  481. "finishedAt": 1735689612,
  482. "runId": "1735689600123456789",
  483. "state": "success"
  484. },
  485. "ProbeResultUI": {
  486. "cpuPct": 12.5,
  487. "error": "",
  488. "latencyMs": 42,
  489. "memPct": 45.2,
  490. "panelVersion": "v3.x.x",
  491. "status": "online",
  492. "uptimeSecs": 86400,
  493. "xrayError": "",
  494. "xrayState": "",
  495. "xrayVersion": "25.10.31"
  496. },
  497. "RealityScanResult": {
  498. "alpn": "h2",
  499. "certIssuer": "Google Trust Services",
  500. "certSubject": "cloudflare.com",
  501. "certValid": true,
  502. "curveID": "X25519",
  503. "feasible": true,
  504. "h2": true,
  505. "host": "www.cloudflare.com",
  506. "ip": "104.16.124.96",
  507. "latencyMs": 180,
  508. "notAfter": "2026-08-01T00:00:00Z",
  509. "port": 443,
  510. "reason": "",
  511. "serverNames": [
  512. ""
  513. ],
  514. "target": "www.cloudflare.com:443",
  515. "tls13": true,
  516. "tlsVersion": "1.3",
  517. "x25519": true
  518. },
  519. "Setting": {
  520. "id": 0,
  521. "key": "",
  522. "value": ""
  523. },
  524. "User": {
  525. "id": 0,
  526. "password": "",
  527. "username": ""
  528. }
  529. };