examples.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  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. "down": 0,
  488. "enable": true,
  489. "expiryTime": 0,
  490. "fallbackParent": null,
  491. "id": 1,
  492. "lastTrafficResetTime": 0,
  493. "listen": "",
  494. "nodeId": null,
  495. "originNodeGuid": "",
  496. "port": 443,
  497. "protocol": "vless",
  498. "remark": "VLESS-443",
  499. "settings": null,
  500. "shareAddr": "",
  501. "shareAddrStrategy": "node",
  502. "sniffing": null,
  503. "streamSettings": null,
  504. "subSortIndex": 1,
  505. "tag": "in-443-tcp",
  506. "total": 0,
  507. "trafficReset": "never",
  508. "trafficResetDay": 1,
  509. "up": 0
  510. },
  511. "InboundClientIps": {
  512. "clientEmail": "",
  513. "id": 0,
  514. "ips": null
  515. },
  516. "InboundFallback": {
  517. "alpn": "",
  518. "childId": 0,
  519. "dest": "",
  520. "id": 0,
  521. "masterId": 0,
  522. "name": "",
  523. "path": "",
  524. "sortOrder": 0,
  525. "xver": 0
  526. },
  527. "InboundOption": {
  528. "enable": true,
  529. "id": 1,
  530. "listen": "",
  531. "mtprotoDomain": "",
  532. "nodeAddress": "",
  533. "nodeId": null,
  534. "port": 443,
  535. "protocol": "vless",
  536. "remark": "VLESS-443",
  537. "shareAddr": "",
  538. "shareAddrStrategy": "",
  539. "ssMethod": "",
  540. "tag": "in-443-tcp",
  541. "tlsFlowCapable": true,
  542. "wgDns": "",
  543. "wgMtu": 0,
  544. "wgPublicKey": ""
  545. },
  546. "Msg": {
  547. "msg": "",
  548. "obj": null,
  549. "success": false
  550. },
  551. "Node": {
  552. "activeCount": 23,
  553. "address": "node1.example.com",
  554. "allowPrivateAddress": false,
  555. "basePath": "/",
  556. "clientCount": 27,
  557. "configDirty": false,
  558. "configDirtyAt": 0,
  559. "cpuPct": 23.5,
  560. "createdAt": 1700000000,
  561. "depletedCount": 1,
  562. "disabledCount": 3,
  563. "enable": true,
  564. "guid": "",
  565. "id": 1,
  566. "inboundCount": 5,
  567. "inboundSyncMode": "all",
  568. "inboundTags": [
  569. ""
  570. ],
  571. "lastError": "",
  572. "lastHeartbeat": 1700000000,
  573. "latencyMs": 42,
  574. "memPct": 45.1,
  575. "name": "de-fra-1",
  576. "netDown": 2097152,
  577. "netUp": 1048576,
  578. "onlineCount": 3,
  579. "outboundTag": "",
  580. "panelVersion": "v3.x.x",
  581. "parentGuid": "",
  582. "pinnedCertSha256": "",
  583. "port": 2053,
  584. "remark": "",
  585. "scheme": "https",
  586. "status": "online",
  587. "tlsVerifyMode": "verify",
  588. "transitive": false,
  589. "updatedAt": 1700000000,
  590. "uptimeSecs": 86400,
  591. "xrayError": "",
  592. "xrayState": "",
  593. "xrayVersion": "25.10.31"
  594. },
  595. "NodeMutationRequest": {
  596. "address": "",
  597. "allowPrivateAddress": false,
  598. "apiToken": null,
  599. "basePath": "",
  600. "clearApiToken": false,
  601. "enable": false,
  602. "id": 0,
  603. "inboundSyncMode": "all",
  604. "inboundTags": [
  605. ""
  606. ],
  607. "name": "",
  608. "outboundTag": "",
  609. "pinnedCertSha256": "",
  610. "port": 1,
  611. "remark": "",
  612. "scheme": "http",
  613. "tlsVerifyMode": "verify"
  614. },
  615. "NodeView": {
  616. "activeCount": 20,
  617. "address": "node.example.com",
  618. "allowPrivateAddress": false,
  619. "basePath": "/",
  620. "clientCount": 25,
  621. "configDirty": false,
  622. "configDirtyAt": 0,
  623. "cpuPct": 12.5,
  624. "createdAt": 1700000000,
  625. "depletedCount": 1,
  626. "disabledCount": 2,
  627. "enable": true,
  628. "guid": "node-guid",
  629. "hasApiToken": true,
  630. "id": 1,
  631. "inboundCount": 3,
  632. "inboundSyncMode": "all",
  633. "inboundTags": [
  634. "in-443-tcp"
  635. ],
  636. "lastError": "",
  637. "lastHeartbeat": 1700000000,
  638. "latencyMs": 42,
  639. "memPct": 45.2,
  640. "name": "edge-1",
  641. "netDown": 1048576,
  642. "netUp": 2097152,
  643. "onlineCount": 5,
  644. "outboundTag": "direct",
  645. "panelVersion": "v3.x.x",
  646. "parentGuid": "",
  647. "pinnedCertSha256": "",
  648. "port": 2053,
  649. "remark": "Primary edge",
  650. "scheme": "https",
  651. "status": "online",
  652. "tlsVerifyMode": "verify",
  653. "transitive": false,
  654. "updatedAt": 1700003600,
  655. "uptimeSecs": 86400,
  656. "xrayError": "",
  657. "xrayState": "running",
  658. "xrayVersion": "25.10.31"
  659. },
  660. "OutboundTraffics": {
  661. "down": 0,
  662. "id": 0,
  663. "tag": "",
  664. "total": 0,
  665. "up": 0
  666. },
  667. "PanelUpdateStatus": {
  668. "exitCode": 0,
  669. "finishedAt": 1735689612,
  670. "runId": "1735689600123456789",
  671. "state": "success"
  672. },
  673. "ProbeResultUI": {
  674. "cpuPct": 12.5,
  675. "error": "",
  676. "latencyMs": 42,
  677. "memPct": 45.2,
  678. "panelVersion": "v3.x.x",
  679. "status": "online",
  680. "uptimeSecs": 86400,
  681. "xrayError": "",
  682. "xrayState": "",
  683. "xrayVersion": "25.10.31"
  684. },
  685. "RealityScanResult": {
  686. "alpn": "h2",
  687. "certIssuer": "Google Trust Services",
  688. "certSubject": "cloudflare.com",
  689. "certValid": true,
  690. "curveID": "X25519",
  691. "feasible": true,
  692. "h2": true,
  693. "host": "www.cloudflare.com",
  694. "ip": "104.16.124.96",
  695. "latencyMs": 180,
  696. "notAfter": "2026-08-01T00:00:00Z",
  697. "port": 443,
  698. "reason": "",
  699. "serverNames": [
  700. ""
  701. ],
  702. "target": "www.cloudflare.com:443",
  703. "tls13": true,
  704. "tlsVersion": "1.3",
  705. "x25519": true
  706. },
  707. "Setting": {
  708. "id": 0,
  709. "key": "",
  710. "value": ""
  711. },
  712. "User": {
  713. "id": 0,
  714. "password": "",
  715. "username": ""
  716. }
  717. };