examples.ts 12 KB

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