examples.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  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. "limitHwid": 0,
  287. "limitIp": 0,
  288. "password": "",
  289. "preSharedKey": "",
  290. "privateKey": "",
  291. "publicKey": "",
  292. "reset": 0,
  293. "reverse": null,
  294. "secret": "",
  295. "security": "",
  296. "subId": "",
  297. "tgId": 0,
  298. "totalGB": 0,
  299. "updatedAt": 0,
  300. "uuid": ""
  301. },
  302. "ClientReverse": {
  303. "tag": ""
  304. },
  305. "ClientTraffic": {
  306. "down": 2097152,
  307. "email": "user1",
  308. "enable": true,
  309. "expiryTime": 1735689600000,
  310. "id": 14825,
  311. "inboundId": 1,
  312. "lastOnline": 1735680000000,
  313. "lastSubFetch": 1735680000000,
  314. "reset": 0,
  315. "subId": "i7tvdpeffi0hvvf1",
  316. "total": 10737418240,
  317. "up": 1048576,
  318. "uuid": "e18c9a96-71bf-48d4-933f-8b9a46d4290c"
  319. },
  320. "FallbackParentInfo": {
  321. "masterId": 0,
  322. "path": ""
  323. },
  324. "GeoCategory": {
  325. "attributes": [
  326. "ads",
  327. "cn"
  328. ],
  329. "code": "google",
  330. "entries": 1284
  331. },
  332. "GeoCategoryPage": {
  333. "items": [
  334. {
  335. "attributes": [
  336. "ads",
  337. "cn"
  338. ],
  339. "code": "google",
  340. "entries": 1284
  341. }
  342. ],
  343. "total": 1043
  344. },
  345. "GeoEntry": {
  346. "kind": "domain",
  347. "value": "google.com"
  348. },
  349. "GeoEntryPage": {
  350. "items": [
  351. {
  352. "kind": "domain",
  353. "value": "google.com"
  354. }
  355. ],
  356. "total": 1284
  357. },
  358. "GeoFile": {
  359. "categories": 1043,
  360. "error": "",
  361. "kind": "site",
  362. "modifiedAt": 1769558400000,
  363. "name": "geosite.dat",
  364. "size": 1467392
  365. },
  366. "GeodataTokenIssue": {
  367. "code": "blabla",
  368. "file": "geosite.dat",
  369. "reason": "categoryMissing",
  370. "token": "geosite:blabla"
  371. },
  372. "HistoryOfSeeders": {
  373. "id": 0,
  374. "seederName": ""
  375. },
  376. "Host": {
  377. "address": "cdn.example.com",
  378. "allowInsecure": false,
  379. "alpn": [
  380. ""
  381. ],
  382. "createdAt": 0,
  383. "echConfigList": "",
  384. "excludeFromSubTypes": [
  385. ""
  386. ],
  387. "finalMask": "",
  388. "fingerprint": "",
  389. "groupId": "",
  390. "hostHeader": "",
  391. "id": 1,
  392. "inboundId": 1,
  393. "isDisabled": false,
  394. "isHidden": false,
  395. "keepSniBlank": false,
  396. "mihomoIpVersion": "dual",
  397. "mihomoX25519": false,
  398. "muxParams": null,
  399. "nodeGuids": [
  400. ""
  401. ],
  402. "overrideSniFromAddress": false,
  403. "path": "",
  404. "pinnedPeerCertSha256": [
  405. ""
  406. ],
  407. "port": 8443,
  408. "remark": "cdn-front",
  409. "security": "same",
  410. "serverDescription": "",
  411. "shuffleHost": false,
  412. "sni": "",
  413. "sockoptParams": null,
  414. "sortOrder": 0,
  415. "tags": [
  416. ""
  417. ],
  418. "updatedAt": 0,
  419. "verifyPeerCertByName": "",
  420. "vlessRoute": "443"
  421. },
  422. "HostGroup": {
  423. "allowInsecure": false,
  424. "alpn": [
  425. ""
  426. ],
  427. "echConfigList": "",
  428. "excludeFromSubTypes": [
  429. ""
  430. ],
  431. "finalMask": "",
  432. "fingerprint": "",
  433. "groupId": "",
  434. "hostHeader": "",
  435. "hosts": [
  436. ""
  437. ],
  438. "inboundIds": [
  439. 0
  440. ],
  441. "isDisabled": false,
  442. "isHidden": false,
  443. "keepSniBlank": false,
  444. "mihomoIpVersion": "dual",
  445. "mihomoX25519": false,
  446. "muxParams": "",
  447. "nodeGuids": [
  448. ""
  449. ],
  450. "overrideSniFromAddress": false,
  451. "path": "",
  452. "pinnedPeerCertSha256": [
  453. ""
  454. ],
  455. "port": 0,
  456. "remark": "",
  457. "security": "same",
  458. "serverDescription": "",
  459. "shuffleHost": false,
  460. "sni": "",
  461. "sockoptParams": "",
  462. "sortOrder": 0,
  463. "tags": [
  464. ""
  465. ],
  466. "verifyPeerCertByName": "",
  467. "vlessRoute": ""
  468. },
  469. "Inbound": {
  470. "clientStats": [
  471. {
  472. "down": 2097152,
  473. "email": "user1",
  474. "enable": true,
  475. "expiryTime": 1735689600000,
  476. "id": 14825,
  477. "inboundId": 1,
  478. "lastOnline": 1735680000000,
  479. "lastSubFetch": 1735680000000,
  480. "reset": 0,
  481. "subId": "i7tvdpeffi0hvvf1",
  482. "total": 10737418240,
  483. "up": 1048576,
  484. "uuid": "e18c9a96-71bf-48d4-933f-8b9a46d4290c"
  485. }
  486. ],
  487. "disableFlow": false,
  488. "down": 0,
  489. "enable": true,
  490. "expiryTime": 0,
  491. "fallbackParent": null,
  492. "id": 1,
  493. "lastTrafficResetTime": 0,
  494. "listen": "",
  495. "nodeId": null,
  496. "originNodeGuid": "",
  497. "port": 443,
  498. "protocol": "vless",
  499. "remark": "VLESS-443",
  500. "settings": null,
  501. "shareAddr": "",
  502. "shareAddrStrategy": "node",
  503. "sniffing": null,
  504. "streamSettings": null,
  505. "subSortIndex": 1,
  506. "tag": "in-443-tcp",
  507. "total": 0,
  508. "trafficReset": "never",
  509. "trafficResetDay": 1,
  510. "up": 0
  511. },
  512. "InboundClientIps": {
  513. "clientEmail": "",
  514. "id": 0,
  515. "ips": null
  516. },
  517. "InboundFallback": {
  518. "alpn": "",
  519. "childId": 0,
  520. "dest": "",
  521. "id": 0,
  522. "masterId": 0,
  523. "name": "",
  524. "path": "",
  525. "sortOrder": 0,
  526. "xver": 0
  527. },
  528. "InboundOption": {
  529. "enable": true,
  530. "id": 1,
  531. "listen": "",
  532. "mtprotoDomain": "",
  533. "nodeAddress": "",
  534. "nodeId": null,
  535. "port": 443,
  536. "protocol": "vless",
  537. "remark": "VLESS-443",
  538. "shareAddr": "",
  539. "shareAddrStrategy": "",
  540. "ssMethod": "",
  541. "tag": "in-443-tcp",
  542. "tlsFlowCapable": true,
  543. "wgDns": "",
  544. "wgMtu": 0,
  545. "wgPublicKey": ""
  546. },
  547. "Msg": {
  548. "msg": "",
  549. "obj": null,
  550. "success": false
  551. },
  552. "Node": {
  553. "activeCount": 23,
  554. "address": "node1.example.com",
  555. "allowPrivateAddress": false,
  556. "basePath": "/",
  557. "clientCount": 27,
  558. "configDirty": false,
  559. "configDirtyAt": 0,
  560. "cpuPct": 23.5,
  561. "createdAt": 1700000000,
  562. "depletedCount": 1,
  563. "disabledCount": 3,
  564. "enable": true,
  565. "guid": "",
  566. "id": 1,
  567. "inboundCount": 5,
  568. "inboundSyncMode": "all",
  569. "inboundTags": [
  570. ""
  571. ],
  572. "lastError": "",
  573. "lastHeartbeat": 1700000000,
  574. "latencyMs": 42,
  575. "memPct": 45.1,
  576. "name": "de-fra-1",
  577. "netDown": 2097152,
  578. "netUp": 1048576,
  579. "onlineCount": 3,
  580. "outboundTag": "",
  581. "panelVersion": "v3.x.x",
  582. "parentGuid": "",
  583. "pinnedCertSha256": "",
  584. "port": 2053,
  585. "remark": "",
  586. "scheme": "https",
  587. "status": "online",
  588. "tlsVerifyMode": "verify",
  589. "transitive": false,
  590. "updatedAt": 1700000000,
  591. "uptimeSecs": 86400,
  592. "xrayError": "",
  593. "xrayState": "",
  594. "xrayVersion": "25.10.31"
  595. },
  596. "NodeMutationRequest": {
  597. "address": "",
  598. "allowPrivateAddress": false,
  599. "apiToken": null,
  600. "basePath": "",
  601. "clearApiToken": false,
  602. "enable": false,
  603. "id": 0,
  604. "inboundSyncMode": "all",
  605. "inboundTags": [
  606. ""
  607. ],
  608. "name": "",
  609. "outboundTag": "",
  610. "pinnedCertSha256": "",
  611. "port": 1,
  612. "remark": "",
  613. "scheme": "http",
  614. "tlsVerifyMode": "verify"
  615. },
  616. "NodeView": {
  617. "activeCount": 20,
  618. "address": "node.example.com",
  619. "allowPrivateAddress": false,
  620. "basePath": "/",
  621. "clientCount": 25,
  622. "configDirty": false,
  623. "configDirtyAt": 0,
  624. "cpuPct": 12.5,
  625. "createdAt": 1700000000,
  626. "depletedCount": 1,
  627. "disabledCount": 2,
  628. "enable": true,
  629. "guid": "node-guid",
  630. "hasApiToken": true,
  631. "id": 1,
  632. "inboundCount": 3,
  633. "inboundSyncMode": "all",
  634. "inboundTags": [
  635. "in-443-tcp"
  636. ],
  637. "lastError": "",
  638. "lastHeartbeat": 1700000000,
  639. "latencyMs": 42,
  640. "memPct": 45.2,
  641. "name": "edge-1",
  642. "netDown": 1048576,
  643. "netUp": 2097152,
  644. "onlineCount": 5,
  645. "outboundTag": "direct",
  646. "panelVersion": "v3.x.x",
  647. "parentGuid": "",
  648. "pinnedCertSha256": "",
  649. "port": 2053,
  650. "remark": "Primary edge",
  651. "scheme": "https",
  652. "status": "online",
  653. "tlsVerifyMode": "verify",
  654. "transitive": false,
  655. "updatedAt": 1700003600,
  656. "uptimeSecs": 86400,
  657. "xrayError": "",
  658. "xrayState": "running",
  659. "xrayVersion": "25.10.31"
  660. },
  661. "OutboundTraffics": {
  662. "down": 0,
  663. "id": 0,
  664. "tag": "",
  665. "total": 0,
  666. "up": 0
  667. },
  668. "PanelUpdateStatus": {
  669. "exitCode": 0,
  670. "finishedAt": 1735689612,
  671. "runId": "1735689600123456789",
  672. "state": "success"
  673. },
  674. "ProbeResultUI": {
  675. "cpuPct": 12.5,
  676. "error": "",
  677. "latencyMs": 42,
  678. "memPct": 45.2,
  679. "panelVersion": "v3.x.x",
  680. "status": "online",
  681. "uptimeSecs": 86400,
  682. "xrayError": "",
  683. "xrayState": "",
  684. "xrayVersion": "25.10.31"
  685. },
  686. "RealityScanResult": {
  687. "alpn": "h2",
  688. "certIssuer": "Google Trust Services",
  689. "certSubject": "cloudflare.com",
  690. "certValid": true,
  691. "curveID": "X25519",
  692. "feasible": true,
  693. "h2": true,
  694. "host": "www.cloudflare.com",
  695. "ip": "104.16.124.96",
  696. "latencyMs": 180,
  697. "notAfter": "2026-08-01T00:00:00Z",
  698. "port": 443,
  699. "reason": "",
  700. "serverNames": [
  701. ""
  702. ],
  703. "target": "www.cloudflare.com:443",
  704. "tls13": true,
  705. "tlsVersion": "1.3",
  706. "x25519": true
  707. },
  708. "Setting": {
  709. "id": 0,
  710. "key": "",
  711. "value": ""
  712. },
  713. "User": {
  714. "id": 0,
  715. "password": "",
  716. "username": ""
  717. }
  718. };