@open-wa/api 5.12.1 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard-neo/dist/assets/AgentScalarDrawer.vue-FgV2bvw3.js +17 -0
- package/dashboard-neo/dist/assets/DeveloperToolsPanel.vue-B84rTUOX.js +1 -0
- package/dashboard-neo/dist/assets/ExploreScalarModal.vue-aMynzJW3.js +1 -0
- package/dashboard-neo/dist/assets/ScalarIconMagnifyingGlass-DG_XKbvk.js +1 -0
- package/dashboard-neo/dist/assets/ScalarModal-D0AYYqNp.js +1 -0
- package/dashboard-neo/dist/assets/ScalarVirtualText.vue-LeMF9PcH.js +2 -0
- package/dashboard-neo/dist/assets/SchemaLanguage.vue-DoLH3juK.js +14 -0
- package/dashboard-neo/dist/assets/__vite-browser-external-BLGeRQCw.js +1 -0
- package/dashboard-neo/dist/assets/_plugin-vue_export-helper-DNHJktYG.js +1 -0
- package/dashboard-neo/dist/assets/{basic-shape-diamond.svg-Bu9cSItR.js → basic-shape-diamond.svg-BbjRNovc.js} +1 -1
- package/dashboard-neo/dist/assets/{basic-shape-hexagon.svg-BJoiyAUL.js → basic-shape-hexagon.svg-CXuGam44.js} +1 -1
- package/dashboard-neo/dist/assets/{basic-shape-primary-circle-ellipse-round.svg-Daoaje72.js → basic-shape-primary-circle-ellipse-round.svg-R9--YRIe.js} +1 -1
- package/dashboard-neo/dist/assets/{basic-shape-primary-square-rectangle.svg-YLGG3FKF.js → basic-shape-primary-square-rectangle.svg-CLKm0dFt.js} +1 -1
- package/dashboard-neo/dist/assets/{basic-shape-shield.svg-DqNRriX3.js → basic-shape-shield.svg-D9XmV6Xe.js} +1 -1
- package/dashboard-neo/dist/assets/browser-CUn5l15H.js +3 -0
- package/dashboard-neo/dist/assets/browser-D8omC0Vw.js +1 -0
- package/dashboard-neo/dist/assets/{browser-D8y2XapB.js → browser-e_rmFpD2.js} +29 -29
- package/dashboard-neo/dist/assets/browser-wgcf3kAE.js +1 -0
- package/dashboard-neo/dist/assets/ci-info-jUp9wEQz.js +1 -0
- package/dashboard-neo/dist/assets/{computer-device-desktop-monitor.svg-WQ9f9Yyd.js → computer-device-desktop-monitor.svg-C2k2KSmP.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-desktop.svg-C1QoHpfb.js → computer-device-desktop.svg-DWOMzpl-.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-laptop.svg-DftDi_i4.js → computer-device-laptop.svg-CrziwADC.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-mobile-phone-android-samsung-back.svg-CKgWwk-M.js → computer-device-mobile-phone-android-samsung-back.svg-C0bN7z6H.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-mobile-phone-android-samsung.svg-ZImmEqwi.js → computer-device-mobile-phone-android-samsung.svg-CvDN9LVY.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-mobile-phone-iphone-x-back.svg-xBrw0QqX.js → computer-device-mobile-phone-iphone-x-back.svg-DCqM9ADt.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-mobile-phone-iphone-x.svg-DDxQeDBi.js → computer-device-mobile-phone-iphone-x.svg-Bbbq_e9m.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-mobile-tablet-touch.svg-DYfniPU8.js → computer-device-mobile-tablet-touch.svg-DQtRQS3L.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-mobile-tablet.svg-Dq0gutQK.js → computer-device-mobile-tablet.svg-B_TYhHTc.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-network-ethernet-cat6.svg-CwHOvloq.js → computer-device-network-ethernet-cat6.svg-CAvF2CPb.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-network-lan-www.svg-C8Bh80nT.js → computer-device-network-lan-www.svg-BGt5w-PT.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-network-wifi-connection.svg-5hFcG1t3.js → computer-device-network-wifi-connection.svg-D1uTIp2I.js} +1 -1
- package/dashboard-neo/dist/assets/{computer-device-network-wifi-router.svg-BgDGwjhn.js → computer-device-network-wifi-router.svg-7vh5XpYe.js} +1 -1
- package/dashboard-neo/dist/assets/dist-aU5svJ8D.js +81 -0
- package/dashboard-neo/dist/assets/{ecology-science-erlenmeyer-flask.svg-Bu4pbH8x.js → ecology-science-erlenmeyer-flask.svg-Du_ufRwv.js} +1 -1
- package/dashboard-neo/dist/assets/get-example-value-COf0TWTn.js +5 -0
- package/dashboard-neo/dist/assets/hls-D6a35TnA.js +44 -0
- package/dashboard-neo/dist/assets/{image-flash-lightning.svg-D5m0nHLE.js → image-flash-lightning.svg-BzbpSj7z.js} +1 -1
- package/dashboard-neo/dist/assets/{image-picture-flower.svg-DCs_cHUn.js → image-picture-flower.svg-BkWAF_tt.js} +1 -1
- package/dashboard-neo/dist/assets/index-BQQSR8lA.css +1 -0
- package/dashboard-neo/dist/assets/index-Dg65QVeC.js +2938 -0
- package/dashboard-neo/dist/assets/{interface-alert-exclamation-diamond.svg-2G3xLwqx.js → interface-alert-exclamation-diamond.svg-DMUTAZTM.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-alert-exclamation-triangle-warning.svg-CbZWnWWp.js → interface-alert-exclamation-triangle-warning.svg-C_r1TisZ.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-alert-information-circle.svg-D0Rq0ioQ.js → interface-alert-information-circle.svg-u2XNocWI.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-award-crown.svg-BPfuHoAi.js → interface-award-crown.svg-DFpfFmwi.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-bookmark.svg-CUSjRJiw.js → interface-bookmark-tag.svg-Cx123al_.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-bookmark-tag.svg-CUSjRJiw.js → interface-bookmark.svg-Cx123al_.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-calendar-date-one.svg-BAvbb3-o.js → interface-calendar-date-one.svg-BuwdPMjb.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-content-book-open-pages.svg-DRedEoaB.js → interface-content-book-open-pages.svg-Cv9myurD.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-content-book-page.svg-bnWYwJAk.js → interface-content-book-page.svg-Cq1wTMFz.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-content-file.svg-BqNPbXHO.js → interface-content-file.svg-DRoRXpk0.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-copy-clipboard.svg-Dyphh54o.js → interface-copy-clipboard.svg-DwlO-I1E.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-edit-attachment.svg-BuRbX7t8.js → interface-edit-attachment.svg-Cx_JhqFz.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-edit-binocular.svg-CYYevEGv.js → interface-edit-binocular.svg-De7fHjoY.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-edit-magic-wand.svg-DR2BzOMe.js → interface-edit-magic-wand.svg-CtwNFsh-.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-edit-tool-paint-roller.svg-BNgZ4_-f.js → interface-edit-tool-paint-roller.svg-CgZEyTDO.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-edit-tool-pencil.svg-CTbomxh-.js → interface-edit-tool-pencil.svg-BwmXd_Zj.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-favorite-award.svg-Bw67_iOy.js → interface-favorite-award.svg-DYQDa3Y4.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-favorite-flag.svg-DaNMlOpZ.js → interface-favorite-flag.svg-CLfYv5Y3.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-favorite-heart.svg-r70vyk7c.js → interface-favorite-heart.svg-BlqLYZOp.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-favorite-star.svg-DkU3mkcO.js → interface-favorite-star.svg-CNrPKoa6.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-favorite-stars-sparkles.svg-BxWiHdGA.js → interface-favorite-stars-sparkles.svg-B2w9YO5b.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-hierarchy-flowchart.svg-BPHEXJJS.js → interface-hierarchy-flowchart.svg-UNkJOFlB.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-home-house.svg-B63-LGqz.js → interface-home-house.svg-CVRMVm4O.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-hyperlink.svg-C_lm0LzO.js → interface-hyperlink.svg-BFPfKdNN.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-lighting-brightness.svg-DmqVOdtF.js → interface-lighting-brightness.svg-CaMbuuf5.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-lock-closed.svg-xwC9xUEf.js → interface-lock-closed.svg-JzHWC_5u.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-lock-open-unlock.svg-0P7d1Er7.js → interface-lock-open-unlock.svg-R2LcxbUj.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-login-key.svg-DSUnFVoR.js → interface-login-key.svg-CqdgTxav.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-search.svg-Cki10DmM.js → interface-search.svg-DtkbYObP.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-setting-cog.svg-B1g7SeN7.js → interface-setting-cog.svg-DxpIa50D.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-share-megaphone-bullhorn.svg-Bn-98V1I.js → interface-share-megaphone-bullhorn.svg-D4nP-w3d.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-share-rocket.svg-CxDqnOQE.js → interface-share-rocket.svg-Dz8a08W1.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-share-satellite.svg-Dr6tbP-H.js → interface-share-satellite.svg-QKsjaKjp.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-share-space-ship.svg-BcrSZOha.js → interface-share-space-ship.svg-CJF5dAaS.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-share.svg-WJStd-hf.js → interface-share.svg-wQd8Nsev.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-signal-square.svg-sR1Jwdkj.js → interface-signal-square.svg-D0NOqQxq.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-time-clock-circle.svg-CI-FR3Z0.js → interface-time-clock-circle.svg-BJW0u9-H.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-time-hour-glass.svg-BCH_wujz.js → interface-time-hour-glass.svg-B1dUhHPg.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-users-multiple.svg-7liAj7tU.js → interface-users-multiple.svg-BcYwsudu.js} +1 -1
- package/dashboard-neo/dist/assets/{interface-weather-moon.svg-CEEqAhxr.js → interface-weather-moon.svg-8rI1aLcW.js} +1 -1
- package/dashboard-neo/dist/assets/{mail-chat-bubble-square.svg-DgBmT6at.js → mail-chat-bubble-square.svg-BQF7qZmb.js} +1 -1
- package/dashboard-neo/dist/assets/{mail-send-email-paper-airplane.svg-BtW62yNd.js → mail-send-email-paper-airplane.svg-BL9e4Cnv.js} +1 -1
- package/dashboard-neo/dist/assets/{mail-send-envelope.svg-B2ofGi0G.js → mail-send-envelope.svg-Csgf3j08.js} +1 -1
- package/dashboard-neo/dist/assets/modal-BuAmB_fi.js +3 -0
- package/dashboard-neo/dist/assets/{money-cashier-receipt.svg-oYv7RkCx.js → money-cashier-receipt.svg-CNd40BTi.js} +1 -1
- package/dashboard-neo/dist/assets/{money-currency-dollar-pay.svg-BRFYydmz.js → money-currency-dollar-pay.svg-B9CyAscz.js} +1 -1
- package/dashboard-neo/dist/assets/{money-graph-arrow-increase.svg-ChmHgfEP.js → money-graph-arrow-increase.svg-JEDWVl1S.js} +1 -1
- package/dashboard-neo/dist/assets/{money-graph-bar-chart-increase.svg-D6G7lFzR.js → money-graph-bar-chart-increase.svg-BqSGr6MP.js} +1 -1
- package/dashboard-neo/dist/assets/{nature-ecology-leaf.svg-C0Sj6pgM.js → nature-ecology-leaf.svg-C4-FCSPc.js} +1 -1
- package/dashboard-neo/dist/assets/parse-description-vE2la_xE.js +2 -0
- package/dashboard-neo/dist/assets/parse-html-description-BP1Bs0F_.js +1 -0
- package/dashboard-neo/dist/assets/parse-json-pointer-segments-3ftC8SuQ.js +1 -0
- package/dashboard-neo/dist/assets/{phone-telephone.svg-2UFzF1dr.js → phone-telephone.svg-BplabboN.js} +1 -1
- package/dashboard-neo/dist/assets/preload-helper-BS_cDXsn.js +1 -0
- package/dashboard-neo/dist/assets/prevent-pollution-DPDD94Gp.js +1 -0
- package/dashboard-neo/dist/assets/{programming-bug.svg-22hsMxQO.js → programming-bug.svg-BhZMmdtA.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-cloud.svg-CLQxx35l.js → programming-cloud.svg-DbakdzIB.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-computer-database-server.svg-DfQW4OzL.js → programming-computer-database-server.svg-BRHdyIDO.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-computer-database.svg-BA4JjA4C.js → programming-computer-database.svg-L62JcdAJ.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-module-four-layout.svg-ZqZ8jvaZ.js → programming-module-four-layout.svg-9ZpykChc.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-module-three.svg-C4IJTyw0.js → programming-module-three.svg-CVY8nhgR.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-module.svg-iETi-2b0.js → programming-module.svg-DwyQ8Wg0.js} +1 -1
- package/dashboard-neo/dist/assets/{programming-script-code.svg-rCOsoRKw.js → programming-script-code.svg-DToA2yNX.js} +1 -1
- package/dashboard-neo/dist/assets/reactivity.esm-bundler-CGTvMeXp.js +1 -0
- package/dashboard-neo/dist/assets/redirect-to-proxy-C4MzPP9w.js +1 -0
- package/dashboard-neo/dist/assets/rolldown-runtime-BWaJ3C7D.js +1 -0
- package/dashboard-neo/dist/assets/runtime-core.esm-bundler-DuBrNcf5.js +18 -0
- package/dashboard-neo/dist/assets/schema-BhNr2Gp3.js +687 -0
- package/dashboard-neo/dist/assets/{shopping-cart.svg-Dc4piS12.js → shopping-cart.svg-JcsjuK74.js} +1 -1
- package/dashboard-neo/dist/assets/{shopping-gift-present.svg--51cUtCZ.js → shopping-gift-present.svg-CkAa3Par.js} +1 -1
- package/dashboard-neo/dist/assets/{shopping-shipping-box-parcel-package.svg-BDlugNqF.js → shopping-shipping-box-parcel-package.svg-BP_wKIr4.js} +1 -1
- package/dashboard-neo/dist/assets/slugger-DkxnPIt5.js +12 -0
- package/dashboard-neo/dist/assets/{tag-new-circle.svg-IzWjXHZQ.js → tag-new-circle.svg-CW6E2EDY.js} +1 -1
- package/dashboard-neo/dist/assets/{travel-map-earth-globe.svg-BdyEHtN7.js → travel-map-earth-globe.svg-uxhS8dkv.js} +1 -1
- package/dashboard-neo/dist/assets/types-B2F2Hsa7.js +1 -0
- package/dashboard-neo/dist/assets/use-register-link-Chgxu-we.js +1 -0
- package/dashboard-neo/dist/assets/workspace-events-B-T7-4Hh.js +55 -0
- package/dashboard-neo/dist/index.html +22 -10
- package/dist/index.cjs +84 -92
- package/dist/index.d.cts +0 -17
- package/dist/index.d.cts.map +1 -1
- package/package.json +10 -10
- package/dashboard-neo/dist/assets/AgentScalarDrawer.vue-BnDsuf6m.js +0 -25
- package/dashboard-neo/dist/assets/__vite-browser-external-PaJ7c2l8.js +0 -1
- package/dashboard-neo/dist/assets/browser-DfBsyWtF.js +0 -40
- package/dashboard-neo/dist/assets/ci-info-CDtqIEnS.js +0 -1
- package/dashboard-neo/dist/assets/hls-D9b4QHpD.js +0 -42
- package/dashboard-neo/dist/assets/index-BOp-_zqb.js +0 -2469
- package/dashboard-neo/dist/assets/index-u08XsVQ9.css +0 -1
- package/dashboard-neo/dist/assets/markdown-BSj1FMVF.js +0 -68
- package/dashboard-neo/dist/assets/modal-nZ7FbWsp.js +0 -5
- package/dashboard-neo/dist/assets/parse-html-description-HRIisAnu.js +0 -5
- package/dashboard-neo/dist/assets/preload-helper-4fm5x995.js +0 -1
- package/dashboard-neo/dist/assets/reactivity.esm-bundler-BNk6Zv_g.js +0 -1
- package/dashboard-neo/dist/assets/request-example-_ni4k2bu.js +0 -16
- package/dashboard-neo/dist/assets/rolldown-runtime-B0Z9INg1.js +0 -1
- package/dashboard-neo/dist/assets/runtime-core.esm-bundler-2tpRQTw-.js +0 -18
- package/dashboard-neo/dist/assets/workspace-events-BBP1JVYk.js +0 -100
|
@@ -5,16 +5,28 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>open-wa Dashboard</title>
|
|
7
7
|
<meta name="description" content="Session management dashboard for open-wa" />
|
|
8
|
-
<script type="module" crossorigin src="/dashboard/assets/index-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/rolldown-runtime-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/reactivity.esm-bundler-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/runtime-core.esm-bundler-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/dashboard/assets/
|
|
17
|
-
<link rel="
|
|
8
|
+
<script type="module" crossorigin src="/dashboard/assets/index-Dg65QVeC.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/rolldown-runtime-BWaJ3C7D.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/reactivity.esm-bundler-CGTvMeXp.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/get-example-value-COf0TWTn.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/runtime-core.esm-bundler-DuBrNcf5.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/dist-aU5svJ8D.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/schema-BhNr2Gp3.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/preload-helper-BS_cDXsn.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/prevent-pollution-DPDD94Gp.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/redirect-to-proxy-C4MzPP9w.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/slugger-DkxnPIt5.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/parse-json-pointer-segments-3ftC8SuQ.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/ScalarIconMagnifyingGlass-DG_XKbvk.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/ScalarModal-D0AYYqNp.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/types-B2F2Hsa7.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/browser-e_rmFpD2.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/browser-wgcf3kAE.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/workspace-events-B-T7-4Hh.js">
|
|
26
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/_plugin-vue_export-helper-DNHJktYG.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/use-register-link-Chgxu-we.js">
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/dashboard/assets/ScalarVirtualText.vue-LeMF9PcH.js">
|
|
29
|
+
<link rel="stylesheet" crossorigin href="/dashboard/assets/index-BQQSR8lA.css">
|
|
18
30
|
</head>
|
|
19
31
|
<body>
|
|
20
32
|
<div id="app"></div>
|
package/dist/index.cjs
CHANGED
|
@@ -14,7 +14,7 @@ let _elastic_elasticsearch = require("@elastic/elasticsearch");
|
|
|
14
14
|
let path = require("path");
|
|
15
15
|
let fs = require("fs");
|
|
16
16
|
let _hono_node_server_serve_static = require("@hono/node-server/serve-static");
|
|
17
|
-
|
|
17
|
+
// src/compat/deprecation.ts
|
|
18
18
|
function applyDeprecationHeaders(c, notice) {
|
|
19
19
|
const parts = [notice.message];
|
|
20
20
|
if (notice.replacement) parts.push(`Use ${notice.replacement} instead.`);
|
|
@@ -31,8 +31,7 @@ function deprecatedJson(c, notice, status = 200, extra = {}) {
|
|
|
31
31
|
...extra
|
|
32
32
|
}, status);
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
//#region src/auth/api-key.ts
|
|
34
|
+
// src/auth/api-key.ts
|
|
36
35
|
function apiKeyMiddleware(apiKey) {
|
|
37
36
|
return async (c, next) => {
|
|
38
37
|
const queryKey = c.req.query("api_key") || c.req.query("key");
|
|
@@ -50,8 +49,7 @@ function apiKeyMiddleware(apiKey) {
|
|
|
50
49
|
return await next();
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
//#region src/middleware/rate-limit.ts
|
|
52
|
+
// src/middleware/rate-limit.ts
|
|
55
53
|
function getRequestKey(c) {
|
|
56
54
|
const forwarded = c.req.header("x-forwarded-for");
|
|
57
55
|
if (forwarded) return forwarded.split(",")[0].trim();
|
|
@@ -72,8 +70,7 @@ function rateLimitMiddleware(maxRequests = 100, windowMs = 6e4) {
|
|
|
72
70
|
return await next();
|
|
73
71
|
};
|
|
74
72
|
}
|
|
75
|
-
|
|
76
|
-
//#region src/compat/session-path.ts
|
|
73
|
+
// src/compat/session-path.ts
|
|
77
74
|
function assertSessionPath(expectedSessionId, requestedSessionId, useSessionIdInPath) {
|
|
78
75
|
if (!useSessionIdInPath) return { ok: true };
|
|
79
76
|
if (!requestedSessionId) return {
|
|
@@ -88,8 +85,7 @@ function assertSessionPath(expectedSessionId, requestedSessionId, useSessionIdIn
|
|
|
88
85
|
};
|
|
89
86
|
return { ok: true };
|
|
90
87
|
}
|
|
91
|
-
|
|
92
|
-
//#region src/createApiMiddleware.ts
|
|
88
|
+
// src/createApiMiddleware.ts
|
|
93
89
|
function resolveClient(clientSource) {
|
|
94
90
|
return typeof clientSource === "function" ? clientSource() : clientSource;
|
|
95
91
|
}
|
|
@@ -214,12 +210,10 @@ function createApiMiddleware(clientSource, options) {
|
|
|
214
210
|
})) }));
|
|
215
211
|
return app;
|
|
216
212
|
}
|
|
217
|
-
|
|
218
|
-
//#region src/version.ts
|
|
213
|
+
// src/version.ts
|
|
219
214
|
/** Version of the API package running the Easy API server. */
|
|
220
|
-
const API_VERSION = "5.
|
|
221
|
-
|
|
222
|
-
//#region src/docs/openapi.ts
|
|
215
|
+
const API_VERSION = "5.14.0";
|
|
216
|
+
// src/docs/openapi.ts
|
|
223
217
|
function schemaToOpenApi(schema) {
|
|
224
218
|
if (typeof schema?.toJSONSchema === "function") return schema.toJSONSchema({
|
|
225
219
|
target: "openapi-3.0",
|
|
@@ -330,8 +324,7 @@ function createOpenApiDocument(methodDefinitions, options) {
|
|
|
330
324
|
paths
|
|
331
325
|
};
|
|
332
326
|
}
|
|
333
|
-
|
|
334
|
-
//#region src/docs/postman.ts
|
|
327
|
+
// src/docs/postman.ts
|
|
335
328
|
function createPostmanCollection(methodDefinitions, options) {
|
|
336
329
|
const basePath = options.basePath || "/api";
|
|
337
330
|
return {
|
|
@@ -365,8 +358,7 @@ function createPostmanCollection(methodDefinitions, options) {
|
|
|
365
358
|
}))
|
|
366
359
|
};
|
|
367
360
|
}
|
|
368
|
-
|
|
369
|
-
//#region src/routes/meta.ts
|
|
361
|
+
// src/routes/meta.ts
|
|
370
362
|
function joinPath$1(...parts) {
|
|
371
363
|
const normalized = parts.filter(Boolean).map((part, index) => {
|
|
372
364
|
if (index === 0) return part.replace(/\/+$/, "");
|
|
@@ -820,8 +812,7 @@ function registerMetaRoutes(app, options) {
|
|
|
820
812
|
replacement: "/meta/process/restart or external orchestration controls"
|
|
821
813
|
}, 410));
|
|
822
814
|
}
|
|
823
|
-
|
|
824
|
-
//#region src/routes/debug.ts
|
|
815
|
+
// src/routes/debug.ts
|
|
825
816
|
function registerDebugRoutes(app, options) {
|
|
826
817
|
app.get("/meta/debug/diagnostics", (c) => {
|
|
827
818
|
const apiKey = options.config.apiKey;
|
|
@@ -923,8 +914,7 @@ function registerDebugRoutes(app, options) {
|
|
|
923
914
|
}, 501);
|
|
924
915
|
});
|
|
925
916
|
}
|
|
926
|
-
|
|
927
|
-
//#region ../../node_modules/zod/v4/core/util.js
|
|
917
|
+
// ../../node_modules/zod/v4/core/util.js
|
|
928
918
|
function getEnumValues(entries) {
|
|
929
919
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
930
920
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -1106,8 +1096,8 @@ function optionalKeys(shape) {
|
|
|
1106
1096
|
}
|
|
1107
1097
|
const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({
|
|
1108
1098
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
1109
|
-
int32: [-
|
|
1110
|
-
uint32: [0,
|
|
1099
|
+
int32: [-0x80000000, 0x7fffffff],
|
|
1100
|
+
uint32: [0, 0xffffffff],
|
|
1111
1101
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
1112
1102
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
1113
1103
|
}))();
|
|
@@ -1224,6 +1214,17 @@ function prefixIssues(path, issues) {
|
|
|
1224
1214
|
function unwrapMessage(message) {
|
|
1225
1215
|
return typeof message === "string" ? message : message?.message;
|
|
1226
1216
|
}
|
|
1217
|
+
/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
|
|
1218
|
+
function sizeCaps(defChecks) {
|
|
1219
|
+
const caps = [];
|
|
1220
|
+
for (const ch of defChecks ?? []) {
|
|
1221
|
+
const d = ch._zod.def;
|
|
1222
|
+
if (!/_(length|size)$|_equals$/.test(d.check)) break;
|
|
1223
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
1224
|
+
if (max >= 0) caps.push([max, ch]);
|
|
1225
|
+
}
|
|
1226
|
+
return caps;
|
|
1227
|
+
}
|
|
1227
1228
|
function attachSchema(issues, start, inst) {
|
|
1228
1229
|
var _a;
|
|
1229
1230
|
for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
|
|
@@ -1316,6 +1317,7 @@ function hide(inst, key, value) {
|
|
|
1316
1317
|
return own(inst, key, value, false);
|
|
1317
1318
|
}
|
|
1318
1319
|
/** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
|
|
1320
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1319
1321
|
function derived(computes, table) {
|
|
1320
1322
|
for (const key in computes) {
|
|
1321
1323
|
const compute = computes[key];
|
|
@@ -1439,8 +1441,7 @@ function constantCatch(value) {
|
|
|
1439
1441
|
fn[CONSTANT_CATCH] = true;
|
|
1440
1442
|
return fn;
|
|
1441
1443
|
}
|
|
1442
|
-
|
|
1443
|
-
//#region ../../node_modules/zod/v4/core/core.js
|
|
1444
|
+
// ../../node_modules/zod/v4/core/core.js
|
|
1444
1445
|
var _a$1;
|
|
1445
1446
|
const _zodDesc = {
|
|
1446
1447
|
value: void 0,
|
|
@@ -1467,6 +1468,7 @@ function newError(Definition) {
|
|
|
1467
1468
|
}
|
|
1468
1469
|
return new Definition();
|
|
1469
1470
|
}
|
|
1471
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1470
1472
|
function $constructor(name, initializer, proto, params) {
|
|
1471
1473
|
const zodProto = {};
|
|
1472
1474
|
function Internals(def) {
|
|
@@ -1545,8 +1547,7 @@ function config(newConfig) {
|
|
|
1545
1547
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
1546
1548
|
return globalConfig;
|
|
1547
1549
|
}
|
|
1548
|
-
|
|
1549
|
-
//#region ../../node_modules/zod/v4/core/errors.js
|
|
1550
|
+
// ../../node_modules/zod/v4/core/errors.js
|
|
1550
1551
|
function _getMessage() {
|
|
1551
1552
|
const internals = this._zod;
|
|
1552
1553
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -1597,8 +1598,7 @@ const initializer$1 = (inst, def) => {
|
|
|
1597
1598
|
});
|
|
1598
1599
|
}
|
|
1599
1600
|
};
|
|
1600
|
-
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
1601
|
-
$constructor("$ZodError", initializer$1, void 0, { Parent: Error });
|
|
1601
|
+
const $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
|
|
1602
1602
|
/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
|
|
1603
1603
|
* ("toString", "constructor") would otherwise read through to the prototype, and assigning
|
|
1604
1604
|
* "__proto__" would hit the setter instead of creating a key. */
|
|
@@ -1661,8 +1661,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
1661
1661
|
processError(error);
|
|
1662
1662
|
return fieldErrors;
|
|
1663
1663
|
}
|
|
1664
|
-
|
|
1665
|
-
//#region ../../node_modules/zod/v4/core/parse.js
|
|
1664
|
+
// ../../node_modules/zod/v4/core/parse.js
|
|
1666
1665
|
function finalizeParams(callee, params) {
|
|
1667
1666
|
return {
|
|
1668
1667
|
callee: params?.callee ?? callee,
|
|
@@ -1864,8 +1863,7 @@ const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1864
1863
|
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1865
1864
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1866
1865
|
};
|
|
1867
|
-
|
|
1868
|
-
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
1866
|
+
// ../../node_modules/zod/v4/core/regexes.js
|
|
1869
1867
|
/**
|
|
1870
1868
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1871
1869
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1934,8 +1932,7 @@ const anyString = /^[\s\S]{0,}$/;
|
|
|
1934
1932
|
const boolean$1 = /^(?:true|false)$/i;
|
|
1935
1933
|
const lowercase = /^[^A-Z]*$/;
|
|
1936
1934
|
const uppercase = /^[^a-z]*$/;
|
|
1937
|
-
|
|
1938
|
-
//#region ../../node_modules/zod/v4/core/checks.js
|
|
1935
|
+
// ../../node_modules/zod/v4/core/checks.js
|
|
1939
1936
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1940
1937
|
var _a;
|
|
1941
1938
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2114,8 +2111,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2114
2111
|
payload.value = def.tx(payload.value);
|
|
2115
2112
|
};
|
|
2116
2113
|
});
|
|
2117
|
-
|
|
2118
|
-
//#region ../../node_modules/zod/v4/core/doc.js
|
|
2114
|
+
// ../../node_modules/zod/v4/core/doc.js
|
|
2119
2115
|
var Doc = class {
|
|
2120
2116
|
constructor(args = [], closed = {}) {
|
|
2121
2117
|
this.content = [];
|
|
@@ -2148,15 +2144,13 @@ var Doc = class {
|
|
|
2148
2144
|
return new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`)(...Object.values(this.closed));
|
|
2149
2145
|
}
|
|
2150
2146
|
};
|
|
2151
|
-
|
|
2152
|
-
//#region ../../node_modules/zod/v4/core/versions.js
|
|
2147
|
+
// ../../node_modules/zod/v4/core/versions.js
|
|
2153
2148
|
const version = {
|
|
2154
2149
|
major: 4,
|
|
2155
2150
|
minor: 6,
|
|
2156
|
-
patch:
|
|
2151
|
+
patch: 7
|
|
2157
2152
|
};
|
|
2158
|
-
|
|
2159
|
-
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
2153
|
+
// ../../node_modules/zod/v4/core/schemas.js
|
|
2160
2154
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
2161
2155
|
var _a;
|
|
2162
2156
|
inst ?? (inst = {});
|
|
@@ -2629,6 +2623,26 @@ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
|
2629
2623
|
return payload;
|
|
2630
2624
|
};
|
|
2631
2625
|
});
|
|
2626
|
+
function capSize(inst, size) {
|
|
2627
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
2628
|
+
if (!caps.length) return;
|
|
2629
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
2630
|
+
const parse = inst._zod.parse;
|
|
2631
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2632
|
+
const n = size(payload.value);
|
|
2633
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
2634
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
|
|
2635
|
+
const start = payload.issues.length;
|
|
2636
|
+
ch._zod.check(payload);
|
|
2637
|
+
payload.issues[start].continue = false;
|
|
2638
|
+
attachSchema(payload.issues, start, inst);
|
|
2639
|
+
return payload;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
return parse(payload, ctx);
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
const arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
2632
2646
|
function handleArrayResult(result, final, index) {
|
|
2633
2647
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
2634
2648
|
final.value[index] = result.value;
|
|
@@ -2666,6 +2680,7 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
|
2666
2680
|
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
2667
2681
|
return payload;
|
|
2668
2682
|
};
|
|
2683
|
+
capSize(inst, arraySize);
|
|
2669
2684
|
});
|
|
2670
2685
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
2671
2686
|
const isPresent = key in input;
|
|
@@ -2774,7 +2789,7 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
2774
2789
|
}
|
|
2775
2790
|
return propValues;
|
|
2776
2791
|
});
|
|
2777
|
-
const isObject$
|
|
2792
|
+
const isObject$1 = isObject;
|
|
2778
2793
|
const catchall = def.catchall;
|
|
2779
2794
|
let value;
|
|
2780
2795
|
const memo = globalConfig.memoizer;
|
|
@@ -2782,7 +2797,7 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
2782
2797
|
inst._zod.parse = (payload, ctx) => {
|
|
2783
2798
|
value ?? (value = _normalized.value);
|
|
2784
2799
|
const input = payload.value;
|
|
2785
|
-
if (!isObject$
|
|
2800
|
+
if (!isObject$1(input)) {
|
|
2786
2801
|
payload.issues.push({
|
|
2787
2802
|
expected: "object",
|
|
2788
2803
|
code: "invalid_type",
|
|
@@ -2912,7 +2927,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
2912
2927
|
return doc.compile();
|
|
2913
2928
|
};
|
|
2914
2929
|
let fastpass;
|
|
2915
|
-
const isObject$
|
|
2930
|
+
const isObject$2 = isObject;
|
|
2916
2931
|
const jit = !globalConfig.jitless;
|
|
2917
2932
|
const fastEnabled = jit && allowsEval.value;
|
|
2918
2933
|
const catchall = def.catchall;
|
|
@@ -2920,7 +2935,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
2920
2935
|
inst._zod.parse = (payload, ctx) => {
|
|
2921
2936
|
value ?? (value = _normalized.value);
|
|
2922
2937
|
const input = payload.value;
|
|
2923
|
-
if (!isObject$
|
|
2938
|
+
if (!isObject$2(input)) {
|
|
2924
2939
|
payload.issues.push({
|
|
2925
2940
|
expected: "object",
|
|
2926
2941
|
code: "invalid_type",
|
|
@@ -3049,9 +3064,7 @@ function mergeValues(a, b) {
|
|
|
3049
3064
|
};
|
|
3050
3065
|
const newArray = [];
|
|
3051
3066
|
for (let index = 0; index < a.length; index++) {
|
|
3052
|
-
const
|
|
3053
|
-
const itemB = b[index];
|
|
3054
|
-
const sharedValue = mergeValues(itemA, itemB);
|
|
3067
|
+
const sharedValue = mergeValues(a[index], b[index]);
|
|
3055
3068
|
if (!sharedValue.valid) return {
|
|
3056
3069
|
valid: false,
|
|
3057
3070
|
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
@@ -3349,8 +3362,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3349
3362
|
payload.issues.push(issue(_iss));
|
|
3350
3363
|
}
|
|
3351
3364
|
}
|
|
3352
|
-
|
|
3353
|
-
//#region ../../node_modules/zod/v4/core/memoizer.js
|
|
3365
|
+
// ../../node_modules/zod/v4/core/memoizer.js
|
|
3354
3366
|
var $ZodCyclicError = class extends Error {
|
|
3355
3367
|
constructor() {
|
|
3356
3368
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -3602,8 +3614,7 @@ function isBackEdge(ctx, value) {
|
|
|
3602
3614
|
const backEdges = ctx[STATE]?.backEdges;
|
|
3603
3615
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
3604
3616
|
}
|
|
3605
|
-
|
|
3606
|
-
//#region ../../node_modules/zod/v4/locales/en.js
|
|
3617
|
+
// ../../node_modules/zod/v4/locales/en.js
|
|
3607
3618
|
const error = () => {
|
|
3608
3619
|
const Sizable = {
|
|
3609
3620
|
string: {
|
|
@@ -3710,8 +3721,7 @@ const error = () => {
|
|
|
3710
3721
|
function en_default() {
|
|
3711
3722
|
return { localeError: error() };
|
|
3712
3723
|
}
|
|
3713
|
-
|
|
3714
|
-
//#region ../../node_modules/zod/v4/core/registries.js
|
|
3724
|
+
// ../../node_modules/zod/v4/core/registries.js
|
|
3715
3725
|
var _a;
|
|
3716
3726
|
var $ZodRegistry = class {
|
|
3717
3727
|
constructor() {
|
|
@@ -3757,8 +3767,7 @@ function registry() {
|
|
|
3757
3767
|
}
|
|
3758
3768
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3759
3769
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
3760
|
-
|
|
3761
|
-
//#region ../../node_modules/zod/v4/core/api.js
|
|
3770
|
+
// ../../node_modules/zod/v4/core/api.js
|
|
3762
3771
|
function snapshotChecks(def) {
|
|
3763
3772
|
if (def.checks) def.checks = [...def.checks];
|
|
3764
3773
|
return def;
|
|
@@ -4204,8 +4213,7 @@ function _check(fn, params) {
|
|
|
4204
4213
|
ch._zod.check = fn;
|
|
4205
4214
|
return ch;
|
|
4206
4215
|
}
|
|
4207
|
-
|
|
4208
|
-
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
4216
|
+
// ../../node_modules/zod/v4/core/to-json-schema.js
|
|
4209
4217
|
function assignProps(target, ...sources) {
|
|
4210
4218
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
4211
4219
|
return target;
|
|
@@ -4648,8 +4656,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
4648
4656
|
extractDefs(ctx, schema);
|
|
4649
4657
|
return finalize(ctx, schema);
|
|
4650
4658
|
};
|
|
4651
|
-
|
|
4652
|
-
//#region ../../node_modules/zod/v4/core/json-schema-processors.js
|
|
4659
|
+
// ../../node_modules/zod/v4/core/json-schema-processors.js
|
|
4653
4660
|
const narrowMin = (agg, key, value) => {
|
|
4654
4661
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
4655
4662
|
};
|
|
@@ -4759,8 +4766,7 @@ const neverProcessor = (_schema, _ctx, json, _params) => {
|
|
|
4759
4766
|
json.not = {};
|
|
4760
4767
|
};
|
|
4761
4768
|
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
4762
|
-
const
|
|
4763
|
-
const values = getEnumValues(def.entries);
|
|
4769
|
+
const values = getEnumValues(schema._zod.def.entries);
|
|
4764
4770
|
if (values.length === 0) {
|
|
4765
4771
|
json.not = {};
|
|
4766
4772
|
return;
|
|
@@ -4941,8 +4947,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
4941
4947
|
const seen = ctx.seen.get(schema);
|
|
4942
4948
|
seen.ref = def.innerType;
|
|
4943
4949
|
};
|
|
4944
|
-
|
|
4945
|
-
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
4950
|
+
// ../../node_modules/zod/v4/classic/errors.js
|
|
4946
4951
|
const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4947
4952
|
function _lazyMethod(proto, key, make) {
|
|
4948
4953
|
Object.defineProperty(proto, key, {
|
|
@@ -4991,8 +4996,7 @@ const initializer = (inst, issues) => {
|
|
|
4991
4996
|
});
|
|
4992
4997
|
};
|
|
4993
4998
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4994
|
-
|
|
4995
|
-
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
4999
|
+
// ../../node_modules/zod/v4/classic/parse.js
|
|
4996
5000
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4997
5001
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4998
5002
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -5005,8 +5009,7 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
5005
5009
|
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
5006
5010
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
5007
5011
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5008
|
-
|
|
5009
|
-
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
5012
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
5010
5013
|
function _ensureDefaultLocale() {
|
|
5011
5014
|
if (!globalConfig.localeError) config(en_default());
|
|
5012
5015
|
}
|
|
@@ -5760,8 +5763,7 @@ function refine(fn, _params = {}) {
|
|
|
5760
5763
|
function superRefine(fn, params) {
|
|
5761
5764
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
5762
5765
|
}
|
|
5763
|
-
|
|
5764
|
-
//#region src/routes/calls.ts
|
|
5766
|
+
// src/routes/calls.ts
|
|
5765
5767
|
const requestSchema = object({
|
|
5766
5768
|
call: object({
|
|
5767
5769
|
id: string(),
|
|
@@ -5901,8 +5903,7 @@ function registerCallingRoutes(app, options) {
|
|
|
5901
5903
|
};
|
|
5902
5904
|
}));
|
|
5903
5905
|
}
|
|
5904
|
-
|
|
5905
|
-
//#region src/routes/session-refresh.ts
|
|
5906
|
+
// src/routes/session-refresh.ts
|
|
5906
5907
|
/** Host controls stay available while document-owned WAPI calls are interrupted. */
|
|
5907
5908
|
function registerSessionRefreshRoutes(app, config, getClient) {
|
|
5908
5909
|
const controls = new hono.Hono();
|
|
@@ -5932,8 +5933,7 @@ function registerSessionRefreshRoutes(app, config, getClient) {
|
|
|
5932
5933
|
});
|
|
5933
5934
|
app.route("/api/session/refresh", controls);
|
|
5934
5935
|
}
|
|
5935
|
-
|
|
5936
|
-
//#region src/routes/agent-discovery.ts
|
|
5936
|
+
// src/routes/agent-discovery.ts
|
|
5937
5937
|
function joinPath(...parts) {
|
|
5938
5938
|
const normalized = parts.filter(Boolean).map((part, index) => {
|
|
5939
5939
|
if (index === 0) return part.replace(/\/+$/, "");
|
|
@@ -5943,7 +5943,6 @@ function joinPath(...parts) {
|
|
|
5943
5943
|
}
|
|
5944
5944
|
function registerAgentDiscoveryRoutes(app, options) {
|
|
5945
5945
|
app.get("/robots.txt", (c) => {
|
|
5946
|
-
const origin = new URL(c.req.url).origin;
|
|
5947
5946
|
const content = `User-agent: GPTBot
|
|
5948
5947
|
Allow: /
|
|
5949
5948
|
|
|
@@ -5953,7 +5952,7 @@ Allow: /
|
|
|
5953
5952
|
User-agent: *
|
|
5954
5953
|
Allow: /
|
|
5955
5954
|
|
|
5956
|
-
Sitemap: ${joinPath(origin, "sitemap.xml")}
|
|
5955
|
+
Sitemap: ${joinPath(new URL(c.req.url).origin, "sitemap.xml")}
|
|
5957
5956
|
`;
|
|
5958
5957
|
c.header("Content-Signal", "ai-train=no, search=yes, ai-input=no");
|
|
5959
5958
|
return c.text(content);
|
|
@@ -6026,8 +6025,7 @@ Sitemap: ${joinPath(origin, "sitemap.xml")}
|
|
|
6026
6025
|
});
|
|
6027
6026
|
});
|
|
6028
6027
|
}
|
|
6029
|
-
|
|
6030
|
-
//#region src/health/HealthStore.ts
|
|
6028
|
+
// src/health/HealthStore.ts
|
|
6031
6029
|
const MAX_RECONNECTIONS = 100;
|
|
6032
6030
|
const MAX_TIMELINE_STEPS = 50;
|
|
6033
6031
|
var HealthStore = class {
|
|
@@ -6218,8 +6216,7 @@ var HealthStore = class {
|
|
|
6218
6216
|
return clean;
|
|
6219
6217
|
}
|
|
6220
6218
|
};
|
|
6221
|
-
|
|
6222
|
-
//#region src/diagnostics/DiagnosticStore.ts
|
|
6219
|
+
// src/diagnostics/DiagnosticStore.ts
|
|
6223
6220
|
const MAX_RECORDS = 100;
|
|
6224
6221
|
const MAX_TEXT = 8e3;
|
|
6225
6222
|
function text(value, limit = 500) {
|
|
@@ -6294,8 +6291,7 @@ var DiagnosticStore = class {
|
|
|
6294
6291
|
};
|
|
6295
6292
|
}
|
|
6296
6293
|
};
|
|
6297
|
-
|
|
6298
|
-
//#region src/events/EventBroadcaster.ts
|
|
6294
|
+
// src/events/EventBroadcaster.ts
|
|
6299
6295
|
const DEFAULT_KEEPALIVE_MS = 2e4;
|
|
6300
6296
|
function normalizeTopics(topics) {
|
|
6301
6297
|
if (!topics || topics.length === 0 || topics.includes("*")) return null;
|
|
@@ -6377,8 +6373,7 @@ var EventBroadcaster = class {
|
|
|
6377
6373
|
return this.subscribers.size;
|
|
6378
6374
|
}
|
|
6379
6375
|
};
|
|
6380
|
-
|
|
6381
|
-
//#region src/monitoring/elastic.ts
|
|
6376
|
+
// src/monitoring/elastic.ts
|
|
6382
6377
|
var ElasticEmitter = class {
|
|
6383
6378
|
constructor(config) {
|
|
6384
6379
|
this.buffer = [];
|
|
@@ -6430,8 +6425,7 @@ var ElasticEmitter = class {
|
|
|
6430
6425
|
await this.client.close();
|
|
6431
6426
|
}
|
|
6432
6427
|
};
|
|
6433
|
-
|
|
6434
|
-
//#region src/dashboard/middleware.ts
|
|
6428
|
+
// src/dashboard/middleware.ts
|
|
6435
6429
|
function findDashboardDir() {
|
|
6436
6430
|
const monorepoPath = [(0, path.resolve)(__dirname, "../../../apps/dashboard-neo"), (0, path.resolve)(__dirname, "../../../../apps/dashboard-neo")].find((candidate) => (0, fs.existsSync)((0, path.resolve)(candidate, "package.json")));
|
|
6437
6431
|
if (monorepoPath) return monorepoPath;
|
|
@@ -6472,7 +6466,7 @@ async function mountDashboardProduction(app) {
|
|
|
6472
6466
|
if ((0, fs.existsSync)(distPath)) {
|
|
6473
6467
|
app.use("/dashboard/*", (0, _hono_node_server_serve_static.serveStatic)({
|
|
6474
6468
|
root: distPath,
|
|
6475
|
-
rewriteRequestPath: (path
|
|
6469
|
+
rewriteRequestPath: (path) => path.replace(/^\/dashboard/, "")
|
|
6476
6470
|
}));
|
|
6477
6471
|
app.get("/dashboard/*", (c) => {
|
|
6478
6472
|
if ((c.req.header("Accept") || "").includes("text/markdown")) {
|
|
@@ -6489,8 +6483,7 @@ async function mountDashboardProduction(app) {
|
|
|
6489
6483
|
}
|
|
6490
6484
|
return false;
|
|
6491
6485
|
}
|
|
6492
|
-
|
|
6493
|
-
//#region src/createApiServer.ts
|
|
6486
|
+
// src/createApiServer.ts
|
|
6494
6487
|
function parseCorsOrigin(corsConfig) {
|
|
6495
6488
|
if (corsConfig === "*") return "*";
|
|
6496
6489
|
if (Array.isArray(corsConfig)) return corsConfig;
|
|
@@ -6798,7 +6791,6 @@ var ApiServer = class {
|
|
|
6798
6791
|
function createApiServer(config) {
|
|
6799
6792
|
return new ApiServer({ config });
|
|
6800
6793
|
}
|
|
6801
|
-
//#endregion
|
|
6802
6794
|
exports.ApiServer = ApiServer;
|
|
6803
6795
|
exports.ElasticEmitter = ElasticEmitter;
|
|
6804
6796
|
exports.EventBroadcaster = EventBroadcaster;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,15 +2,11 @@ import { Context, Hono, Next } from "hono";
|
|
|
2
2
|
import { Config, HttpMethodDefinition } from "@open-wa/schema";
|
|
3
3
|
import { IScreencastPage } from "@open-wa/screencaster/server";
|
|
4
4
|
import { PluginHost } from "@open-wa/core";
|
|
5
|
-
import "@open-wa/schema/methods";
|
|
6
5
|
import { ClientMethodDefinitionLike, invokeClientMethod } from "@open-wa/mcp";
|
|
7
|
-
//#region src/events/EventBridge.d.ts
|
|
8
6
|
interface EventBridge {
|
|
9
7
|
onAny(listener: (event: string, value: any) => void): void;
|
|
10
8
|
offAny(listener: (event: string, value: any) => void): void;
|
|
11
9
|
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/events/EventBroadcaster.d.ts
|
|
14
10
|
interface SseEventEnvelope {
|
|
15
11
|
id: string;
|
|
16
12
|
event: string;
|
|
@@ -35,8 +31,6 @@ export declare class EventBroadcaster {
|
|
|
35
31
|
createStream(options?: EventStreamOptions): ReadableStream<Uint8Array>;
|
|
36
32
|
getSubscriberCount(): number;
|
|
37
33
|
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/monitoring/elastic.d.ts
|
|
40
34
|
interface ElasticConfig {
|
|
41
35
|
url: string;
|
|
42
36
|
username?: string;
|
|
@@ -73,8 +67,6 @@ export declare class ElasticEmitter {
|
|
|
73
67
|
flush(): Promise<void>;
|
|
74
68
|
stop(): Promise<void>;
|
|
75
69
|
}
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/types.d.ts
|
|
78
70
|
type ClientMethodMap = Record<string, (...args: any[]) => Promise<any> | any>;
|
|
79
71
|
type ClientSource = ClientMethodMap | undefined | (() => ClientMethodMap | undefined);
|
|
80
72
|
interface ApiMiddlewareOptions {
|
|
@@ -89,8 +81,6 @@ interface ApiServerOptions {
|
|
|
89
81
|
config: Config;
|
|
90
82
|
verbose?: boolean;
|
|
91
83
|
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/createApiServer.d.ts
|
|
94
84
|
export declare class ApiServer {
|
|
95
85
|
private app;
|
|
96
86
|
private config;
|
|
@@ -135,21 +125,14 @@ export declare class ApiServer {
|
|
|
135
125
|
private registerRoutes;
|
|
136
126
|
}
|
|
137
127
|
export declare function createApiServer(config: Config): ApiServer;
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/createApiMiddleware.d.ts
|
|
140
128
|
export declare function createApiMiddleware(clientSource: ClientSource, options: ApiMiddlewareOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region src/auth/api-key.d.ts
|
|
143
129
|
export declare function apiKeyMiddleware(apiKey: string): (c: Context, next: Next) => Promise<void | (Response & import("hono").TypedResponse<{
|
|
144
130
|
error: string;
|
|
145
131
|
details: string;
|
|
146
132
|
}, 401, "json">)>;
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/middleware/rate-limit.d.ts
|
|
149
133
|
export declare function rateLimitMiddleware(maxRequests?: number, windowMs?: number): (c: Context, next: Next) => Promise<void | (Response & import("hono").TypedResponse<{
|
|
150
134
|
error: string;
|
|
151
135
|
details: string;
|
|
152
136
|
}, 429, "json">)>;
|
|
153
|
-
//#endregion
|
|
154
137
|
export { type ApiMiddlewareOptions, type ApiServerOptions, type ClientMethodDefinitionLike, type ClientMethodMap, type ClientSource, type ElasticConfig, type ElasticDoc, type EventBridge, type EventStreamOptions, type SseEventEnvelope, invokeClientMethod };
|
|
155
138
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/events/EventBridge.ts","../src/events/EventBroadcaster.ts","../src/monitoring/elastic.ts","../src/types.ts","../src/createApiServer.ts","../src/createApiMiddleware.ts","../src/auth/api-key.ts","../src/middleware/rate-limit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/events/EventBridge.ts","../src/events/EventBroadcaster.ts","../src/monitoring/elastic.ts","../src/types.ts","../src/createApiServer.ts","../src/createApiMiddleware.ts","../src/auth/api-key.ts","../src/middleware/rate-limit.ts"],"mappings":";;;;;UAAiB;EACf,MAAM,WAAW,eAAe;EAChC,OAAO,WAAW,eAAe;;UCFlB;EACf;EACA;EACA;EACA;EACA;;UASe;EACf;EACA,SAAS;EACT;;qBAiBW;mBACM;mBACA;UACT;UACA;UACA;EAER,YAAY;EAIL;EAIA,UAAU,eAAe,mBAAmB;EAsB5C,aAAa,UAAS,qBAA0B,eAAe;EAyD/D;;UC9HQ;EACf;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;qBAGU;UACH;UACA;UACA;UACA;EAER,YAAY,QAAQ;EAsBP,SAAS;EAOf,IAAI,UAAU,KAAK;EAYb,SAAS;EAmBT,QAAQ;;KC1FX,kBAAkB,mBAAmB,gBAAgB;KACrD,eAAe,qCAAqC;UAE/C;EACf,QAAQ;EACR;EACA;EACA,oBAAoB;EACpB,iBAAiB;EACjB;;UASe;EACf,QAAQ;EACR;;qBCyBW;UACH;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;EAWR,YAAY,SAAS;EAoCd,UAAU,QAAQ;EAIlB,eAAe,QAAQ;EAkBvB,qBACL;IAGU;IACA;IACA;IACA;IACA;IACA;;EAYC,QAAQ,MAAM,kBAAkB;EAWhC,aAAa;EAInB,MAAM;EAIN,UAAM,0BAAA,+BAAA;EAIN,uBAAmB;EAQnB,aAAa,YAAY;EA0BnB,SAAK;EAkDL,QAAI;EAuBV;UAIC;UAeA;UAwCA;;wBAyKM,gBAAgB,QAAQ,SAAM;wBClb9B,oBAAoB,cAAc,cAAc,SAAS,uBAAoB,0BAAA,+BAAA;wBC/E7E,iBAAiB,kBAAc,GAC5B,SAAO,MAAQ,SAAI,gBAAA,0BAAA;;;;wBCQtB,oBAAoB,sBAAmB,qBAAgB,GAEpD,SAAO,MAAQ,SAAI,gBAAA,0BAAA"}
|