examples.ts 14 KB

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