@alook/app 0.1.1 → 0.1.2
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/bundled/email-worker/index.js +6 -1
- package/bundled/web/.open-next/.build/cache.cjs +7 -7
- package/bundled/web/.open-next/.build/composable-cache.cjs +6 -6
- package/bundled/web/.open-next/.build/durable-objects/bucket-cache-purge.js +2 -2
- package/bundled/web/.open-next/.build/durable-objects/queue.js +7 -7
- package/bundled/web/.open-next/.build/open-next.config.edge.mjs +2 -2
- package/bundled/web/.open-next/.build/open-next.config.mjs +2 -2
- package/bundled/web/.open-next/assets/BUILD_ID +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{11qig4ljacekb.js → 002y0apuulox9.js} +3 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/01y64se2to6aw.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0t82_exl28h1-.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/13j8s5c4tleu3.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/1e9soswsiuvur.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/1frz3l9-_k3mv.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{1kk5j84c76j58.js → 1zqcl04i5rmfz.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/2-lu06q3t6p3d.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/20g6_yt5337-z.js +65 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/211iq6j28qjhu.js +3 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{2c3ad9swsh568.js → 2azk7dgkwm1h3.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/2nzmwcqa9d4mk.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/2zgy2uoru3zk4.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{2atr7vh-5_ryq.js → 36-26qiwh4f-y.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{2-_870ufkhrwb.js → 39tveub83c61m.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/3_5q-1s46y09-.css +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/3f74uo3mtwtq5.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/3yjxlagd8d5_1.js +1 -0
- package/bundled/web/.open-next/assets/alook.svg +47 -29
- package/bundled/web/.open-next/assets/apple-touch-icon.png +0 -0
- package/bundled/web/.open-next/assets/icon-192.png +0 -0
- package/bundled/web/.open-next/assets/icon-512.png +0 -0
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/blog/feed.xml.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/blog.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/c/me/bots.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/c/me/machines.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/c/me.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/c.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/device.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/privacy.cache +1 -1
- package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/sitemap.xml.cache +1 -1
- package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
- package/bundled/web/.open-next/cloudflare/images.js +2 -2
- package/bundled/web/.open-next/cloudflare/init.js +1 -1
- package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
- package/bundled/web/.open-next/dynamodb-provider/open-next.config.mjs +2 -2
- package/bundled/web/.open-next/middleware/handler.mjs +332 -324
- package/bundled/web/.open-next/middleware/open-next.config.mjs +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/required-server-files.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/blog/[slug]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/blog/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/[channelId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/settings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/invite/[token]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/[dmId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/bots/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/machines/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/device/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/landing-legacy/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +48 -51
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0bx3ed6._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_16agz9o._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0n0n8oi._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0e4dy_n._.js → [root-of-the-server]__0vt4_og._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__1bl2f2x._.js → [root-of-the-server]__1tm0by_._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +48 -51
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_00flokq._.js +65 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_18gbpg-._.js → _07m-c06._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_07wuts6._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1kdkozw._.js → _09epwj4._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_03kfaes._.js → _0d37u-0._.js} +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0j193gg._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1yganw-._.js → _0k50vv7._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0q7w45q._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0viyyk4._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0oznlee._.js → _0zcxg53._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_13y1s7f._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1dpyuy_._.js → _14barfg._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1cln75e._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1cu21e4._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1jenl6b._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1rll17z._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1tkd0as._.js +23 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0hq-1dx._.js → node_modules__pnpm_0-chi84._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0dwx50l._.js → node_modules__pnpm_00wi4t8._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0ssh9m2._.js → node_modules__pnpm_011w0jh._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1o4ge87._.js → node_modules__pnpm_02puov8._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0_-ea5g._.js → node_modules__pnpm_04g63a8._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_07y9nim._.js → node_modules__pnpm_080j-zr._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0xaos79._.js → node_modules__pnpm_08yk_k4._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_11r11qk._.js → node_modules__pnpm_0_cjg3f._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0f97x30._.js → node_modules__pnpm_0_u817t._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0jmaw7q._.js → node_modules__pnpm_0ac6l0i._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1sqnuh6._.js → node_modules__pnpm_0f4s5go._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1wmwuyi._.js → node_modules__pnpm_0fapate._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_02tm0_j._.js → node_modules__pnpm_0god_d6._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1-q73_l._.js → node_modules__pnpm_0rsb2oi._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1bigvw-._.js → node_modules__pnpm_1-hj9nm._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0_uvsz1._.js → node_modules__pnpm_1-oez84._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1oiei-p._.js → node_modules__pnpm_1090tka._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1hzbpeq._.js → node_modules__pnpm_12fcw63._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1cq-y48._.js → node_modules__pnpm_12fd_b3._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1kmpnft._.js → node_modules__pnpm_166hw66._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1o_px_4._.js → node_modules__pnpm_18y2f75._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1w13w7z._.js → node_modules__pnpm_19kxf5x._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1g5zv_v._.js → node_modules__pnpm_1a01x7q._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_17u5slz._.js → node_modules__pnpm_1dz6bo3._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1netq7w._.js → node_modules__pnpm_1jje66f._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1vjep10._.js → node_modules__pnpm_1kgtcpu._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1ud7zw9._.js → node_modules__pnpm_1llq7_i._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0l7rkig._.js → node_modules__pnpm_1qh5znn._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_033rqrg._.js → node_modules__pnpm_1sofeez._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0r7_vc7._.js → node_modules__pnpm_1vly7bn._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1_ttm0j._.js → node_modules__pnpm_1vm74xv._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_01aqlve._.js → node_modules__pnpm_1x0q6ql._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_settings_0ag2edj._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_c_channels_[serverId]_[channelId]_page_tsx_14zzo72._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_community_0de05cl._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_community_1-2ddfh._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_community_message_tsx_0d2-3ns._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/cache.cjs +7 -7
- package/bundled/web/.open-next/server-functions/default/src/web/composable-cache.cjs +6 -6
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +170 -170
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +565 -619
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +70 -64
- package/bundled/web/.open-next/server-functions/default/src/web/open-next.config.mjs +2 -2
- package/bundled/ws-do/index.js +6 -1
- package/package.json +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/08j6gp_79ntuy.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0bjib_ewljlwz.css +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0gse5to3o1uxw.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/12l5i3dkwtwql.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/14kvtkqdl9zr1.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/17dbgknts8wcj.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/19f-e6vja-zo0.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/1nxcfxqwx-n9z.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/2a2_latu8_8xa.js +0 -65
- package/bundled/web/.open-next/assets/_next/static/chunks/2oj17fl7hbym5.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/3iu6o-6q3k6ky.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/3ivk92zdh4znp.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1e2q19s._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_02-67ae._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_04hxvli._.js +0 -23
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ioimj-._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0o3ghqz._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0qswnip._.js +0 -65
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_10hlb3j._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_11y01gl._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1annyoh._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1e8tsxv._.js +0 -3
- /package/bundled/web/.open-next/assets/_next/static/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/favicon.ico.cache +0 -0
- /package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/llms.txt.cache +0 -0
- /package/bundled/web/.open-next/cache/{f7HZ3A2lcl00AQWePpBPz → QAHTJJ2088SDjU6s2f6r7}/robots.txt.cache +0 -0
|
@@ -58,7 +58,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
58
58
|
));
|
|
59
59
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
60
60
|
|
|
61
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
61
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/error.js
|
|
62
62
|
function isOpenNextError(e) {
|
|
63
63
|
try {
|
|
64
64
|
return "__openNextInternal" in e;
|
|
@@ -67,11 +67,11 @@ function isOpenNextError(e) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
var init_error = __esm({
|
|
70
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
70
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/error.js"() {
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
74
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/adapters/logger.js
|
|
75
75
|
function debug(...args) {
|
|
76
76
|
if (globalThis.openNextDebug) {
|
|
77
77
|
console.log(...args);
|
|
@@ -114,7 +114,7 @@ function getOpenNextErrorLogLevel() {
|
|
|
114
114
|
}
|
|
115
115
|
var DOWNPLAYED_ERROR_LOGS, isDownplayedErrorLog;
|
|
116
116
|
var init_logger = __esm({
|
|
117
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
117
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/adapters/logger.js"() {
|
|
118
118
|
init_error();
|
|
119
119
|
DOWNPLAYED_ERROR_LOGS = [
|
|
120
120
|
{
|
|
@@ -376,7 +376,7 @@ var require_dist = __commonJS({
|
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
379
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/http/util.js
|
|
380
380
|
function parseSetCookieHeader(cookies) {
|
|
381
381
|
if (!cookies) {
|
|
382
382
|
return [];
|
|
@@ -402,22 +402,28 @@ function getQueryFromIterator(it) {
|
|
|
402
402
|
return query;
|
|
403
403
|
}
|
|
404
404
|
var init_util = __esm({
|
|
405
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
405
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/http/util.js"() {
|
|
406
406
|
init_logger();
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
|
|
410
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
410
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/converters/utils.js
|
|
411
411
|
function getQueryFromSearchParams(searchParams) {
|
|
412
|
-
|
|
412
|
+
const querystring = searchParams.toString();
|
|
413
|
+
if (querystring === "")
|
|
414
|
+
return {};
|
|
415
|
+
return getQueryFromIterator(querystring.split("&").map((part) => {
|
|
416
|
+
const [key, value] = part.split("=");
|
|
417
|
+
return [key, value];
|
|
418
|
+
}));
|
|
413
419
|
}
|
|
414
420
|
var init_utils = __esm({
|
|
415
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
421
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/converters/utils.js"() {
|
|
416
422
|
init_util();
|
|
417
423
|
}
|
|
418
424
|
});
|
|
419
425
|
|
|
420
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
426
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/converters/edge.js
|
|
421
427
|
var edge_exports = {};
|
|
422
428
|
__export(edge_exports, {
|
|
423
429
|
default: () => edge_default
|
|
@@ -425,7 +431,7 @@ __export(edge_exports, {
|
|
|
425
431
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
426
432
|
var import_cookie, NULL_BODY_STATUSES, converter, edge_default;
|
|
427
433
|
var init_edge = __esm({
|
|
428
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
434
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/converters/edge.js"() {
|
|
429
435
|
import_cookie = __toESM(require_dist(), 1);
|
|
430
436
|
init_util();
|
|
431
437
|
init_utils();
|
|
@@ -507,14 +513,14 @@ var init_edge = __esm({
|
|
|
507
513
|
}
|
|
508
514
|
});
|
|
509
515
|
|
|
510
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
516
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/wrappers/cloudflare-edge.js
|
|
511
517
|
var cloudflare_edge_exports = {};
|
|
512
518
|
__export(cloudflare_edge_exports, {
|
|
513
519
|
default: () => cloudflare_edge_default
|
|
514
520
|
});
|
|
515
521
|
var cfPropNameMapping, handler, cloudflare_edge_default;
|
|
516
522
|
var init_cloudflare_edge = __esm({
|
|
517
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
523
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/wrappers/cloudflare-edge.js"() {
|
|
518
524
|
cfPropNameMapping = {
|
|
519
525
|
// The city name is percent-encoded.
|
|
520
526
|
// See https://github.com/vercel/vercel/blob/4cb6143/packages/functions/src/headers.ts#L94C19-L94C37
|
|
@@ -555,7 +561,7 @@ var init_cloudflare_edge = __esm({
|
|
|
555
561
|
}
|
|
556
562
|
});
|
|
557
563
|
|
|
558
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
564
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/originResolver/pattern-env.js
|
|
559
565
|
var pattern_env_exports = {};
|
|
560
566
|
__export(pattern_env_exports, {
|
|
561
567
|
default: () => pattern_env_default
|
|
@@ -584,7 +590,7 @@ function initializeOnce() {
|
|
|
584
590
|
}
|
|
585
591
|
var cachedOrigins, cachedPatterns, initialized, envLoader, pattern_env_default;
|
|
586
592
|
var init_pattern_env = __esm({
|
|
587
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
593
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/originResolver/pattern-env.js"() {
|
|
588
594
|
init_logger();
|
|
589
595
|
cachedPatterns = [];
|
|
590
596
|
initialized = false;
|
|
@@ -620,14 +626,14 @@ var init_pattern_env = __esm({
|
|
|
620
626
|
}
|
|
621
627
|
});
|
|
622
628
|
|
|
623
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
629
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/assetResolver/dummy.js
|
|
624
630
|
var dummy_exports = {};
|
|
625
631
|
__export(dummy_exports, {
|
|
626
632
|
default: () => dummy_default
|
|
627
633
|
});
|
|
628
634
|
var resolver, dummy_default;
|
|
629
635
|
var init_dummy = __esm({
|
|
630
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
636
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/assetResolver/dummy.js"() {
|
|
631
637
|
resolver = {
|
|
632
638
|
name: "dummy"
|
|
633
639
|
};
|
|
@@ -635,7 +641,7 @@ var init_dummy = __esm({
|
|
|
635
641
|
}
|
|
636
642
|
});
|
|
637
643
|
|
|
638
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
644
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/stream.js
|
|
639
645
|
import { ReadableStream as ReadableStream2 } from "node:stream/web";
|
|
640
646
|
function toReadableStream(value, isBase64) {
|
|
641
647
|
return new ReadableStream2({
|
|
@@ -663,18 +669,18 @@ function emptyReadableStream() {
|
|
|
663
669
|
}
|
|
664
670
|
var maybeSomethingBuffer;
|
|
665
671
|
var init_stream = __esm({
|
|
666
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
672
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/stream.js"() {
|
|
667
673
|
}
|
|
668
674
|
});
|
|
669
675
|
|
|
670
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
676
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/proxyExternalRequest/fetch.js
|
|
671
677
|
var fetch_exports = {};
|
|
672
678
|
__export(fetch_exports, {
|
|
673
679
|
default: () => fetch_default
|
|
674
680
|
});
|
|
675
681
|
var fetchProxy, fetch_default;
|
|
676
682
|
var init_fetch = __esm({
|
|
677
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
683
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/overrides/proxyExternalRequest/fetch.js"() {
|
|
678
684
|
init_stream();
|
|
679
685
|
fetchProxy = {
|
|
680
686
|
name: "fetch-proxy",
|
|
@@ -7781,7 +7787,7 @@ var require_root_of_the_server_1acb3gl = __commonJS({
|
|
|
7781
7787
|
var n = { 943: function(t2, r2) {
|
|
7782
7788
|
!function(n2) {
|
|
7783
7789
|
"use strict";
|
|
7784
|
-
var i2 = "function", a2 = "undefined", o = "object", s = "string", l = "major", d = "model", c = "name", u = "type", p = "vendor", f = "version", m = "architecture", h = "console", g = "mobile", y = "tablet", w = "smarttv", v = "wearable", b = "embedded", I = "Amazon", _ = "Apple", x = "ASUS", A = "BlackBerry", k = "Browser", S = "Chrome", E = "Firefox", $ = "Google", T = "Huawei", R = "Microsoft", O = "Motorola", C = "Opera", U = "Samsung", N = "Sharp", D = "Sony", P = "Xiaomi", j = "Zebra", L = "Facebook", z = "Chromium OS",
|
|
7790
|
+
var i2 = "function", a2 = "undefined", o = "object", s = "string", l = "major", d = "model", c = "name", u = "type", p = "vendor", f = "version", m = "architecture", h = "console", g = "mobile", y = "tablet", w = "smarttv", v = "wearable", b = "embedded", I = "Amazon", _ = "Apple", x = "ASUS", A = "BlackBerry", k = "Browser", S = "Chrome", E = "Firefox", $ = "Google", T = "Huawei", R = "Microsoft", O = "Motorola", C = "Opera", U = "Samsung", N = "Sharp", D = "Sony", P = "Xiaomi", j = "Zebra", L = "Facebook", z = "Chromium OS", q = "Mac OS", B = function(e2, t3) {
|
|
7785
7791
|
var r3 = {};
|
|
7786
7792
|
for (var n3 in e2) t3[n3] && t3[n3].length % 2 == 0 ? r3[n3] = t3[n3].concat(e2[n3]) : r3[n3] = e2[n3];
|
|
7787
7793
|
return r3;
|
|
@@ -7805,9 +7811,9 @@ var require_root_of_the_server_1acb3gl = __commonJS({
|
|
|
7805
7811
|
for (var n3 = 0; n3 < t3[r3].length; n3++) if (F(t3[r3][n3], e2)) return "?" === r3 ? void 0 : r3;
|
|
7806
7812
|
} else if (F(t3[r3], e2)) return "?" === r3 ? void 0 : r3;
|
|
7807
7813
|
return e2;
|
|
7808
|
-
}, K = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, W = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, f], [/opios[\/ ]+([\w\.]+)/i], [f, [c, C + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [c, C]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [c, "UC" + k]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [c, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [c, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + k], f], [/\bfocus\/([\w\.]+)/i], [f, [c, E + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [c, C + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [c, C + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [c, "MIUI " + k]], [/fxios\/([-\w\.]+)/i], [f, [c, E]], [/\bqihu|(qi?ho?o?|360)browser/i], [[c, "360 " + k]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1 " + k], f], [/(comodo_dragon)\/([\w\.]+)/i], [[c, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [c, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, L], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [c, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [c, S + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, S + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [c, "Android " + k]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [f, J, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [c, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [c, E + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [c, f], [/(cobalt)\/([\w\.]+)/i], [c, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[m, "amd64"]], [/(ia32(?=;))/i], [[m, Z]], [/((?:i[346]|x)86)[;\)]/i], [[m, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[m, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[m, "armhf"]], [/windows (ce|mobile); ppc;/i], [[m, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[m, /ower/, "", Z]], [/(sun4\w)[;\)]/i], [[m, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[m, Z]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [d, [p, U], [u, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [d, [p, U], [u, g]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [d, [p, _], [u, g]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [d, [p, _], [u, y]], [/(macintosh);/i], [d, [p, _]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [d, [p, N], [u, g]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [d, [p, T], [u, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [d, [p, T], [u, g]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[d, /_/g, " "], [p, P], [u, g]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[d, /_/g, " "], [p, P], [u, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [d, [p, "OPPO"], [u, g]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [d, [p, "Vivo"], [u, g]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [d, [p, "Realme"], [u, g]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [d, [p, O], [u, g]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [d, [p, O], [u, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [d, [p, "LG"], [u, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [d, [p, "LG"], [u, g]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [d, [p, "Lenovo"], [u, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[d, /_/g, " "], [p, "Nokia"], [u, g]], [/(pixel c)\b/i], [d, [p, $], [u, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [d, [p, $], [u, g]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [d, [p, D], [u, g]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[d, "Xperia Tablet"], [p, D], [u, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [d, [p, "OnePlus"], [u, g]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [d, [p, I], [u, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[d, /(.+)/g, "Fire Phone $1"], [p, I], [u, g]], [/(playbook);[-\w\),; ]+(rim)/i], [d, p, [u, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [d, [p, A], [u, g]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [d, [p, x], [u, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [d, [p, x], [u, g]], [/(nexus 9)/i], [d, [p, "HTC"], [u, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [d, /_/g, " "], [u, g]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [d, [p, "Acer"], [u, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [d, [p, "Meizu"], [u, g]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [p, d, [u, g]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [p, d, [u, y]], [/(surface duo)/i], [d, [p, R], [u, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [d, [p, "Fairphone"], [u, g]], [/(u304aa)/i], [d, [p, "AT&T"], [u, g]], [/\bsie-(\w*)/i], [d, [p, "Siemens"], [u, g]], [/\b(rct\w+) b/i], [d, [p, "RCA"], [u, y]], [/\b(venue[\d ]{2,7}) b/i], [d, [p, "Dell"], [u, y]], [/\b(q(?:mv|ta)\w+) b/i], [d, [p, "Verizon"], [u, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [d, [p, "Barnes & Noble"], [u, y]], [/\b(tm\d{3}\w+) b/i], [d, [p, "NuVision"], [u, y]], [/\b(k88) b/i], [d, [p, "ZTE"], [u, y]], [/\b(nx\d{3}j) b/i], [d, [p, "ZTE"], [u, g]], [/\b(gen\d{3}) b.+49h/i], [d, [p, "Swiss"], [u, g]], [/\b(zur\d{3}) b/i], [d, [p, "Swiss"], [u, y]], [/\b((zeki)?tb.*\b) b/i], [d, [p, "Zeki"], [u, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], d, [u, y]], [/\b(ns-?\w{0,9}) b/i], [d, [p, "Insignia"], [u, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [d, [p, "NextBook"], [u, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], d, [u, g]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], d, [u, g]], [/\b(ph-1) /i], [d, [p, "Essential"], [u, g]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [d, [p, "Envizen"], [u, y]], [/\b(trio[-\w\. ]+) b/i], [d, [p, "MachSpeed"], [u, y]], [/\btu_(1491) b/i], [d, [p, "Rotor"], [u, y]], [/(shield[\w ]+) b/i], [d, [p, "Nvidia"], [u, y]], [/(sprint) (\w+)/i], [p, d, [u, g]], [/(kin\.[onetw]{3})/i], [[d, /\./g, " "], [p, R], [u, g]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [d, [p, j], [u, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [d, [p, j], [u, g]], [/smart-tv.+(samsung)/i], [p, [u, w]], [/hbbtv.+maple;(\d+)/i], [[d, /^/, "SmartTV"], [p, U], [u, w]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, "LG"], [u, w]], [/(apple) ?tv/i], [p, [d, _ + " TV"], [u, w]], [/crkey/i], [[d, S + "cast"], [p, $], [u, w]], [/droid.+aft(\w)( bui|\))/i], [d, [p, I], [u, w]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [d, [p, N], [u, w]], [/(bravia[\w ]+)( bui|\))/i], [d, [p, D], [u, w]], [/(mitv-\w{5}) bui/i], [d, [p, P], [u, w]], [/Hbbtv.*(technisat) (.*);/i], [p, d, [u, w]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, H], [d, H], [u, w]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[u, w]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, d, [u, h]], [/droid.+; (shield) bui/i], [d, [p, "Nvidia"], [u, h]], [/(playstation [345portablevi]+)/i], [d, [p, D], [u, h]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [d, [p, R], [u, h]], [/((pebble))app/i], [p, d, [u, v]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [d, [p, _], [u, v]], [/droid.+; (glass) \d/i], [d, [p, $], [u, v]], [/droid.+; (wt63?0{2,3})\)/i], [d, [p, j], [u, v]], [/(quest( 2| pro)?)/i], [d, [p, L], [u, v]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [u, b]], [/(aeobc)\b/i], [d, [p, I], [u, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [d, [u, g]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [d, [u, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[u, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[u, g]], [/(android[-\w\. ]{0,9});.+buil/i], [d, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [c, "EdgeHTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [c, [f, J, K]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[c, "Windows"], [f, J, K]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, B], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, f], [/\(bb(10);/i], [f, [c, A]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [c, E + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [c, S + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, z], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [c, f], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, f]] }, Q = function(e2, t3) {
|
|
7814
|
+
}, K = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, W = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, f], [/opios[\/ ]+([\w\.]+)/i], [f, [c, C + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [c, C]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [c, "UC" + k]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [c, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [c, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + k], f], [/\bfocus\/([\w\.]+)/i], [f, [c, E + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [c, C + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [c, C + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [c, "MIUI " + k]], [/fxios\/([-\w\.]+)/i], [f, [c, E]], [/\bqihu|(qi?ho?o?|360)browser/i], [[c, "360 " + k]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1 " + k], f], [/(comodo_dragon)\/([\w\.]+)/i], [[c, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [c, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, L], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [c, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [c, S + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, S + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [c, "Android " + k]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [f, J, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [c, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [c, E + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [c, f], [/(cobalt)\/([\w\.]+)/i], [c, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[m, "amd64"]], [/(ia32(?=;))/i], [[m, Z]], [/((?:i[346]|x)86)[;\)]/i], [[m, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[m, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[m, "armhf"]], [/windows (ce|mobile); ppc;/i], [[m, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[m, /ower/, "", Z]], [/(sun4\w)[;\)]/i], [[m, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[m, Z]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [d, [p, U], [u, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [d, [p, U], [u, g]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [d, [p, _], [u, g]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [d, [p, _], [u, y]], [/(macintosh);/i], [d, [p, _]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [d, [p, N], [u, g]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [d, [p, T], [u, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [d, [p, T], [u, g]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[d, /_/g, " "], [p, P], [u, g]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[d, /_/g, " "], [p, P], [u, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [d, [p, "OPPO"], [u, g]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [d, [p, "Vivo"], [u, g]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [d, [p, "Realme"], [u, g]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [d, [p, O], [u, g]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [d, [p, O], [u, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [d, [p, "LG"], [u, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [d, [p, "LG"], [u, g]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [d, [p, "Lenovo"], [u, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[d, /_/g, " "], [p, "Nokia"], [u, g]], [/(pixel c)\b/i], [d, [p, $], [u, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [d, [p, $], [u, g]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [d, [p, D], [u, g]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[d, "Xperia Tablet"], [p, D], [u, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [d, [p, "OnePlus"], [u, g]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [d, [p, I], [u, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[d, /(.+)/g, "Fire Phone $1"], [p, I], [u, g]], [/(playbook);[-\w\),; ]+(rim)/i], [d, p, [u, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [d, [p, A], [u, g]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [d, [p, x], [u, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [d, [p, x], [u, g]], [/(nexus 9)/i], [d, [p, "HTC"], [u, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [p, [d, /_/g, " "], [u, g]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [d, [p, "Acer"], [u, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [d, [p, "Meizu"], [u, g]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [p, d, [u, g]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [p, d, [u, y]], [/(surface duo)/i], [d, [p, R], [u, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [d, [p, "Fairphone"], [u, g]], [/(u304aa)/i], [d, [p, "AT&T"], [u, g]], [/\bsie-(\w*)/i], [d, [p, "Siemens"], [u, g]], [/\b(rct\w+) b/i], [d, [p, "RCA"], [u, y]], [/\b(venue[\d ]{2,7}) b/i], [d, [p, "Dell"], [u, y]], [/\b(q(?:mv|ta)\w+) b/i], [d, [p, "Verizon"], [u, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [d, [p, "Barnes & Noble"], [u, y]], [/\b(tm\d{3}\w+) b/i], [d, [p, "NuVision"], [u, y]], [/\b(k88) b/i], [d, [p, "ZTE"], [u, y]], [/\b(nx\d{3}j) b/i], [d, [p, "ZTE"], [u, g]], [/\b(gen\d{3}) b.+49h/i], [d, [p, "Swiss"], [u, g]], [/\b(zur\d{3}) b/i], [d, [p, "Swiss"], [u, y]], [/\b((zeki)?tb.*\b) b/i], [d, [p, "Zeki"], [u, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[p, "Dragon Touch"], d, [u, y]], [/\b(ns-?\w{0,9}) b/i], [d, [p, "Insignia"], [u, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [d, [p, "NextBook"], [u, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[p, "Voice"], d, [u, g]], [/\b(lvtel\-)?(v1[12]) b/i], [[p, "LvTel"], d, [u, g]], [/\b(ph-1) /i], [d, [p, "Essential"], [u, g]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [d, [p, "Envizen"], [u, y]], [/\b(trio[-\w\. ]+) b/i], [d, [p, "MachSpeed"], [u, y]], [/\btu_(1491) b/i], [d, [p, "Rotor"], [u, y]], [/(shield[\w ]+) b/i], [d, [p, "Nvidia"], [u, y]], [/(sprint) (\w+)/i], [p, d, [u, g]], [/(kin\.[onetw]{3})/i], [[d, /\./g, " "], [p, R], [u, g]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [d, [p, j], [u, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [d, [p, j], [u, g]], [/smart-tv.+(samsung)/i], [p, [u, w]], [/hbbtv.+maple;(\d+)/i], [[d, /^/, "SmartTV"], [p, U], [u, w]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[p, "LG"], [u, w]], [/(apple) ?tv/i], [p, [d, _ + " TV"], [u, w]], [/crkey/i], [[d, S + "cast"], [p, $], [u, w]], [/droid.+aft(\w)( bui|\))/i], [d, [p, I], [u, w]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [d, [p, N], [u, w]], [/(bravia[\w ]+)( bui|\))/i], [d, [p, D], [u, w]], [/(mitv-\w{5}) bui/i], [d, [p, P], [u, w]], [/Hbbtv.*(technisat) (.*);/i], [p, d, [u, w]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[p, H], [d, H], [u, w]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[u, w]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [p, d, [u, h]], [/droid.+; (shield) bui/i], [d, [p, "Nvidia"], [u, h]], [/(playstation [345portablevi]+)/i], [d, [p, D], [u, h]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [d, [p, R], [u, h]], [/((pebble))app/i], [p, d, [u, v]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [d, [p, _], [u, v]], [/droid.+; (glass) \d/i], [d, [p, $], [u, v]], [/droid.+; (wt63?0{2,3})\)/i], [d, [p, j], [u, v]], [/(quest( 2| pro)?)/i], [d, [p, L], [u, v]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [p, [u, b]], [/(aeobc)\b/i], [d, [p, I], [u, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [d, [u, g]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [d, [u, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[u, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[u, g]], [/(android[-\w\. ]{0,9});.+buil/i], [d, [p, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [c, "EdgeHTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [c, [f, J, K]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[c, "Windows"], [f, J, K]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, q], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, f], [/\(bb(10);/i], [f, [c, A]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [c, E + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [c, S + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, z], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [c, f], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, f]] }, Q = function(e2, t3) {
|
|
7809
7815
|
if (typeof e2 === o && (t3 = e2, e2 = void 0), !(this instanceof Q)) return new Q(e2, t3).getResult();
|
|
7810
|
-
var r3 = typeof n2 !== a2 && n2.navigator ? n2.navigator : void 0, h2 = e2 || (r3 && r3.userAgent ? r3.userAgent : ""), w2 = r3 && r3.userAgentData ? r3.userAgentData : void 0, v2 = t3 ?
|
|
7816
|
+
var r3 = typeof n2 !== a2 && n2.navigator ? n2.navigator : void 0, h2 = e2 || (r3 && r3.userAgent ? r3.userAgent : ""), w2 = r3 && r3.userAgentData ? r3.userAgentData : void 0, v2 = t3 ? B(W, t3) : W, b2 = r3 && r3.userAgent == h2;
|
|
7811
7817
|
return this.getBrowser = function() {
|
|
7812
7818
|
var e3, t4 = {};
|
|
7813
7819
|
return t4[c] = void 0, t4[f] = void 0, V.call(t4, h2, v2.browser), t4[l] = typeof (e3 = t4[f]) === s ? e3.replace(/[^\d\.]/g, "").split(".")[0] : void 0, b2 && r3 && r3.brave && typeof r3.brave.isBrave == i2 && (t4[c] = "Brave"), t4;
|
|
@@ -7822,7 +7828,7 @@ var require_root_of_the_server_1acb3gl = __commonJS({
|
|
|
7822
7828
|
return e3[c] = void 0, e3[f] = void 0, V.call(e3, h2, v2.engine), e3;
|
|
7823
7829
|
}, this.getOS = function() {
|
|
7824
7830
|
var e3 = {};
|
|
7825
|
-
return e3[c] = void 0, e3[f] = void 0, V.call(e3, h2, v2.os), b2 && !e3[c] && w2 && "Unknown" != w2.platform && (e3[c] = w2.platform.replace(/chrome os/i, z).replace(/macos/i,
|
|
7831
|
+
return e3[c] = void 0, e3[f] = void 0, V.call(e3, h2, v2.os), b2 && !e3[c] && w2 && "Unknown" != w2.platform && (e3[c] = w2.platform.replace(/chrome os/i, z).replace(/macos/i, q)), e3;
|
|
7826
7832
|
}, this.getResult = function() {
|
|
7827
7833
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
7828
7834
|
}, this.getUA = function() {
|
|
@@ -8382,13 +8388,13 @@ var require_root_of_the_server_1acb3gl = __commonJS({
|
|
|
8382
8388
|
return L;
|
|
8383
8389
|
}
|
|
8384
8390
|
createObservableGauge(e2, t2) {
|
|
8385
|
-
return
|
|
8391
|
+
return q;
|
|
8386
8392
|
}
|
|
8387
8393
|
createObservableCounter(e2, t2) {
|
|
8388
8394
|
return z;
|
|
8389
8395
|
}
|
|
8390
8396
|
createObservableUpDownCounter(e2, t2) {
|
|
8391
|
-
return
|
|
8397
|
+
return B;
|
|
8392
8398
|
}
|
|
8393
8399
|
addBatchObservableCallback(e2, t2) {
|
|
8394
8400
|
}
|
|
@@ -8407,8 +8413,8 @@ var require_root_of_the_server_1acb3gl = __commonJS({
|
|
|
8407
8413
|
add(e2, t2) {
|
|
8408
8414
|
}
|
|
8409
8415
|
}(), z = new class extends U {
|
|
8410
|
-
}(), B = new class extends U {
|
|
8411
8416
|
}(), q = new class extends U {
|
|
8417
|
+
}(), B = new class extends U {
|
|
8412
8418
|
}(), M = new class {
|
|
8413
8419
|
getMeter(e2, t2, r2) {
|
|
8414
8420
|
return N;
|
|
@@ -9233,12 +9239,12 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
9233
9239
|
let t10 = e10.indexOf("#"), r10 = e10.indexOf("?"), n10 = r10 > -1 && (t10 < 0 || r10 < t10);
|
|
9234
9240
|
return n10 || t10 > -1 ? { pathname: e10.substring(0, n10 ? r10 : t10), query: n10 ? e10.substring(r10, t10 > -1 ? t10 : void 0) : "", hash: t10 > -1 ? e10.slice(t10) : "" } : { pathname: e10, query: "", hash: "" };
|
|
9235
9241
|
}
|
|
9236
|
-
function
|
|
9242
|
+
function q(e10, t10) {
|
|
9237
9243
|
if (!e10.startsWith("/") || !t10) return e10;
|
|
9238
9244
|
let { pathname: r10, query: n10, hash: i10 } = z(e10);
|
|
9239
9245
|
return `${t10}${r10}${n10}${i10}`;
|
|
9240
9246
|
}
|
|
9241
|
-
function
|
|
9247
|
+
function B(e10, t10) {
|
|
9242
9248
|
if (!e10.startsWith("/") || !t10) return e10;
|
|
9243
9249
|
let { pathname: r10, query: n10, hash: i10 } = z(e10);
|
|
9244
9250
|
return `${r10}${t10}${n10}${i10}`;
|
|
@@ -9312,8 +9318,8 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
9312
9318
|
return t10 = function(e11, t11, r10, n10) {
|
|
9313
9319
|
if (!t11 || t11 === r10) return e11;
|
|
9314
9320
|
let i10 = e11.toLowerCase();
|
|
9315
|
-
return !n10 && (M(i10, "/api") || M(i10, `/${t11.toLowerCase()}`)) ? e11 :
|
|
9316
|
-
}((e10 = { basePath: this[J].basePath, buildId: this[J].buildId, defaultLocale: this[J].options.forceLocale ? void 0 : this[J].defaultLocale, locale: this[J].locale, pathname: this[J].url.pathname, trailingSlash: this[J].trailingSlash }).pathname, e10.locale, e10.buildId ? void 0 : e10.defaultLocale, e10.ignorePrefix), (e10.buildId || !e10.trailingSlash) && (t10 = L(t10)), e10.buildId && (t10 = q(
|
|
9321
|
+
return !n10 && (M(i10, "/api") || M(i10, `/${t11.toLowerCase()}`)) ? e11 : q(e11, `/${t11}`);
|
|
9322
|
+
}((e10 = { basePath: this[J].basePath, buildId: this[J].buildId, defaultLocale: this[J].options.forceLocale ? void 0 : this[J].defaultLocale, locale: this[J].locale, pathname: this[J].url.pathname, trailingSlash: this[J].trailingSlash }).pathname, e10.locale, e10.buildId ? void 0 : e10.defaultLocale, e10.ignorePrefix), (e10.buildId || !e10.trailingSlash) && (t10 = L(t10)), e10.buildId && (t10 = B(q(t10, `/_next/data/${e10.buildId}`), "/" === e10.pathname ? "index.json" : ".json")), t10 = q(t10, e10.basePath), !e10.buildId && e10.trailingSlash ? t10.endsWith("/") ? t10 : B(t10, "/") : L(t10);
|
|
9317
9323
|
}
|
|
9318
9324
|
formatSearch() {
|
|
9319
9325
|
return this[J].url.search;
|
|
@@ -9672,7 +9678,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
9672
9678
|
}
|
|
9673
9679
|
}
|
|
9674
9680
|
let ez = Symbol.for("next.mutated.cookies");
|
|
9675
|
-
class
|
|
9681
|
+
class eq {
|
|
9676
9682
|
static wrap(e10, t10) {
|
|
9677
9683
|
let r10 = new eg.ResponseCookies(new Headers());
|
|
9678
9684
|
for (let t11 of e10.getAll()) r10.set(t11);
|
|
@@ -9715,7 +9721,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
9715
9721
|
return o10;
|
|
9716
9722
|
}
|
|
9717
9723
|
}
|
|
9718
|
-
function
|
|
9724
|
+
function eB(e10, t10) {
|
|
9719
9725
|
if ("action" !== e10.phase) throw new ej();
|
|
9720
9726
|
}
|
|
9721
9727
|
var eM = ((W = eM || {}).handleRequest = "BaseServer.handleRequest", W.run = "BaseServer.run", W.pipe = "BaseServer.pipe", W.getStaticHTML = "BaseServer.getStaticHTML", W.render = "BaseServer.render", W.renderToResponseWithComponents = "BaseServer.renderToResponseWithComponents", W.renderToResponse = "BaseServer.renderToResponse", W.renderToHTML = "BaseServer.renderToHTML", W.renderError = "BaseServer.renderError", W.renderErrorToResponse = "BaseServer.renderErrorToResponse", W.renderErrorToHTML = "BaseServer.renderErrorToHTML", W.render404 = "BaseServer.render404", W), eF = ((Q = eF || {}).loadDefaultErrorComponents = "LoadComponents.loadDefaultErrorComponents", Q.loadComponents = "LoadComponents.loadComponents", Q), eZ = ((G = eZ || {}).getRequestHandler = "NextServer.getRequestHandler", G.getRequestHandlerWithMetadata = "NextServer.getRequestHandlerWithMetadata", G.getServer = "NextServer.getServer", G.getServerRequestHandler = "NextServer.getServerRequestHandler", G.createServer = "createServer.createServer", G), eH = ((X = eH || {}).compression = "NextNodeServer.compression", X.getBuildId = "NextNodeServer.getBuildId", X.createComponentTree = "NextNodeServer.createComponentTree", X.clientComponentLoading = "NextNodeServer.clientComponentLoading", X.getLayoutOrPageModule = "NextNodeServer.getLayoutOrPageModule", X.generateStaticRoutes = "NextNodeServer.generateStaticRoutes", X.generateFsStaticRoutes = "NextNodeServer.generateFsStaticRoutes", X.generatePublicRoutes = "NextNodeServer.generatePublicRoutes", X.generateImageRoutes = "NextNodeServer.generateImageRoutes.route", X.sendRenderResult = "NextNodeServer.sendRenderResult", X.proxyRequest = "NextNodeServer.proxyRequest", X.runApi = "NextNodeServer.runApi", X.render = "NextNodeServer.render", X.renderHTML = "NextNodeServer.renderHTML", X.imageOptimizer = "NextNodeServer.imageOptimizer", X.getPagePath = "NextNodeServer.getPagePath", X.getRoutesManifest = "NextNodeServer.getRoutesManifest", X.findPageComponents = "NextNodeServer.findPageComponents", X.getFontManifest = "NextNodeServer.getFontManifest", X.getServerComponentManifest = "NextNodeServer.getServerComponentManifest", X.getRequestHandler = "NextNodeServer.getRequestHandler", X.renderToHTML = "NextNodeServer.renderToHTML", X.renderError = "NextNodeServer.renderError", X.renderErrorToHTML = "NextNodeServer.renderErrorToHTML", X.render404 = "NextNodeServer.render404", X.startResponse = "NextNodeServer.startResponse", X.route = "route", X.onProxyReq = "onProxyReq", X.apiResolver = "apiResolver", X.internalFetch = "internalFetch", X), eV = ((Y = eV || {}).startServer = "startServer.startServer", Y), eJ = ((ee = eJ || {}).getServerSideProps = "Render.getServerSideProps", ee.getStaticProps = "Render.getStaticProps", ee.renderToString = "Render.renderToString", ee.renderDocument = "Render.renderDocument", ee.createBodyResult = "Render.createBodyResult", ee), eK = ((et = eK || {}).renderToString = "AppRender.renderToString", et.renderToReadableStream = "AppRender.renderToReadableStream", et.getBodyResult = "AppRender.getBodyResult", et.fetch = "AppRender.fetch", et.waitShellReady = "AppRender.waitShellReady", et.renderToNodeFizzStream = "AppRender.renderToNodeFizzStream", et.instantInsights = "AppRender.instantInsights", et.instantInsightsPrepareValidation = "AppRender.instantInsights.prepareValidation", et.instantInsightsRunValidation = "AppRender.instantInsights.runValidation", et), eW = ((er = eW || {}).executeRoute = "Router.executeRoute", er), eQ = ((en = eQ || {}).runHandler = "Node.runHandler", en), eG = ((ei = eG || {}).runHandler = "AppRouteRouteHandlers.runHandler", ei), eX = ((ea = eX || {}).generateMetadata = "ResolveMetadata.generateMetadata", ea.generateViewport = "ResolveMetadata.generateViewport", ea), eY = ((eo = eY || {}).execute = "Middleware.execute", eo);
|
|
@@ -10104,7 +10110,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10104
10110
|
}
|
|
10105
10111
|
}
|
|
10106
10112
|
let tj = { keys: (e10) => Array.from(e10.keys()), get: (e10, t10) => e10.get(t10) ?? void 0 }, tL = (e10, t10) => ts().withPropagatedContext(e10.headers, t10, tj), tz = false;
|
|
10107
|
-
async function
|
|
10113
|
+
async function tq(t10) {
|
|
10108
10114
|
var r10, n10, i10, a10, o10;
|
|
10109
10115
|
let s10, l10, d10, c10, u10;
|
|
10110
10116
|
!function() {
|
|
@@ -10168,7 +10174,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10168
10174
|
f11.cookies = value;
|
|
10169
10175
|
}, get mutableCookies() {
|
|
10170
10176
|
if (!f11.mutableCookies) {
|
|
10171
|
-
let e12, t12 = (e12 = new eg.RequestCookies(eO.from(r12)),
|
|
10177
|
+
let e12, t12 = (e12 = new eg.RequestCookies(eO.from(r12)), eq.wrap(e12, n12));
|
|
10172
10178
|
tc(r12, t12), f11.mutableCookies = t12;
|
|
10173
10179
|
}
|
|
10174
10180
|
return f11.mutableCookies;
|
|
@@ -10180,11 +10186,11 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10180
10186
|
switch (r13) {
|
|
10181
10187
|
case "delete":
|
|
10182
10188
|
return function(...r14) {
|
|
10183
|
-
return
|
|
10189
|
+
return eB(m11, "cookies().delete"), t12.delete(...r14), e12;
|
|
10184
10190
|
};
|
|
10185
10191
|
case "set":
|
|
10186
10192
|
return function(...r14) {
|
|
10187
|
-
return
|
|
10193
|
+
return eB(m11, "cookies().set"), t12.set(...r14), e12;
|
|
10188
10194
|
};
|
|
10189
10195
|
default:
|
|
10190
10196
|
return ev.get(t12, r13, n13);
|
|
@@ -10245,7 +10251,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10245
10251
|
return { response: S10, waitUntil: ("internal" === x10[D].kind ? Promise.all(x10[D].promises).then(() => {
|
|
10246
10252
|
}) : void 0) ?? Promise.resolve(), fetchMetrics: I10.fetchMetrics };
|
|
10247
10253
|
}
|
|
10248
|
-
class
|
|
10254
|
+
class tB {
|
|
10249
10255
|
constructor() {
|
|
10250
10256
|
let e10, t10;
|
|
10251
10257
|
this.promise = new Promise((r10, n10) => {
|
|
@@ -10380,14 +10386,14 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10380
10386
|
let o10 = (n10 = new AbortController(), t10.once("close", () => {
|
|
10381
10387
|
t10.writableFinished || n10.abort(new re());
|
|
10382
10388
|
}), n10), s10 = function(e11, t11) {
|
|
10383
|
-
let r11 = false, n11 = new
|
|
10389
|
+
let r11 = false, n11 = new tB();
|
|
10384
10390
|
function i11() {
|
|
10385
10391
|
n11.resolve();
|
|
10386
10392
|
}
|
|
10387
10393
|
e11.on("drain", i11), e11.once("close", () => {
|
|
10388
10394
|
e11.off("drain", i11), n11.resolve();
|
|
10389
10395
|
});
|
|
10390
|
-
let a11 = new
|
|
10396
|
+
let a11 = new tB();
|
|
10391
10397
|
return e11.once("finish", () => {
|
|
10392
10398
|
a11.resolve();
|
|
10393
10399
|
}), new WritableStream({ write: async (t12) => {
|
|
@@ -10400,7 +10406,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10400
10406
|
}
|
|
10401
10407
|
try {
|
|
10402
10408
|
let r12 = e11.write(t12);
|
|
10403
|
-
"flush" in e11 && "function" == typeof e11.flush && e11.flush(), r12 || (await n11.promise, n11 = new
|
|
10409
|
+
"flush" in e11 && "function" == typeof e11.flush && e11.flush(), r12 || (await n11.promise, n11 = new tB());
|
|
10404
10410
|
} catch (t13) {
|
|
10405
10411
|
throw e11.end(), Object.defineProperty(Error("failed to write chunk to response", { cause: t13 }), "__NEXT_ERROR_CODE", { value: "E321", enumerable: false, configurable: true });
|
|
10406
10412
|
}
|
|
@@ -10420,7 +10426,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10420
10426
|
try {
|
|
10421
10427
|
let { errored: n10, destroyed: i10 } = t10;
|
|
10422
10428
|
if (n10 || i10) return;
|
|
10423
|
-
let a10 = false, o10 = new
|
|
10429
|
+
let a10 = false, o10 = new tB();
|
|
10424
10430
|
t10.once("close", () => {
|
|
10425
10431
|
e10.destroy(), o10.resolve();
|
|
10426
10432
|
}), e10.on("data", (r11) => {
|
|
@@ -10769,7 +10775,7 @@ Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`;
|
|
|
10769
10775
|
if (rS.debug && console.log("IncrementalCache: lock get", e10, !!t11), !t11) break;
|
|
10770
10776
|
await t11;
|
|
10771
10777
|
}
|
|
10772
|
-
let { resolve: t10, promise: r10 } = new
|
|
10778
|
+
let { resolve: t10, promise: r10 } = new tB();
|
|
10773
10779
|
return rS.debug && console.log("IncrementalCache: successfully locked", e10), this.locks.set(e10, r10), () => {
|
|
10774
10780
|
t10(), this.locks.delete(e10);
|
|
10775
10781
|
};
|
|
@@ -10943,7 +10949,7 @@ You should update your Next.js config file as shown below:
|
|
|
10943
10949
|
return n10.transaction || (rj.logger.warn("Adapter does not correctly implement transaction function, patching it automatically. Please update your adapter implementation."), n10.transaction = async (e10) => e10(n10)), n10;
|
|
10944
10950
|
}
|
|
10945
10951
|
var rz = e.i(373285);
|
|
10946
|
-
async function
|
|
10952
|
+
async function rq(t10) {
|
|
10947
10953
|
return rL(t10, async (t11) => {
|
|
10948
10954
|
let { createKyselyAdapter: r10 } = await Promise.resolve().then(() => e.i(198574)), { kysely: n10, databaseType: i10, transaction: a10 } = await r10(t11);
|
|
10949
10955
|
if (!n10) throw new rz.BetterAuthError("Failed to initialize database adapter");
|
|
@@ -10951,7 +10957,7 @@ You should update your Next.js config file as shown below:
|
|
|
10951
10957
|
return o10(n10, { type: i10 || "sqlite", debugLogs: !!t11.database && "debugLogs" in t11.database && t11.database.debugLogs, transaction: a10 })(t11);
|
|
10952
10958
|
});
|
|
10953
10959
|
}
|
|
10954
|
-
var
|
|
10960
|
+
var rB = e.i(483519), rM = e.i(958280), rF = e.i(618961), rZ = e.i(44887);
|
|
10955
10961
|
let rH = { postgres: { string: ["character varying", "varchar", "text", "uuid"], number: ["int4", "integer", "bigint", "smallint", "numeric", "real", "double precision"], boolean: ["bool", "boolean"], date: ["timestamptz", "timestamp", "date"], json: ["json", "jsonb"] }, mysql: { string: ["varchar", "text", "uuid"], number: ["integer", "int", "bigint", "smallint", "decimal", "float", "double"], boolean: ["boolean", "tinyint"], date: ["timestamp", "datetime", "date"], json: ["json"] }, sqlite: { string: ["TEXT"], number: ["INTEGER", "REAL", "BIGINT"], boolean: ["INTEGER", "BOOLEAN"], date: ["DATE", "INTEGER"], json: ["TEXT"] }, mssql: { string: ["varchar", "nvarchar", "uniqueidentifier"], number: ["int", "bigint", "smallint", "decimal", "float", "double"], boolean: ["bit", "smallint"], date: ["datetime2", "date", "datetime"], json: ["varchar", "nvarchar"] } };
|
|
10956
10962
|
async function rV(e10) {
|
|
10957
10963
|
try {
|
|
@@ -10978,7 +10984,7 @@ You should update your Next.js config file as shown below:
|
|
|
10978
10984
|
r11[n11.modelName] = { fields: a11, order: n11.order || 1 / 0, disableMigrations: n11.disableMigrations };
|
|
10979
10985
|
}
|
|
10980
10986
|
return r11;
|
|
10981
|
-
}(e10), r10 = (0, rj.createLogger)(e10.logger), { kysely: n10, databaseType: i10 } = await (0,
|
|
10987
|
+
}(e10), r10 = (0, rj.createLogger)(e10.logger), { kysely: n10, databaseType: i10 } = await (0, rB.createKyselyAdapter)(e10);
|
|
10982
10988
|
i10 || (r10.warn("Could not determine database type, defaulting to sqlite. Please provide a type in the database options to avoid this."), i10 = "sqlite"), n10 || (r10.error("Only kysely adapter is supported for migrations. You can use `generate` command to generate the schema, if you're using a different adapter."), process.exit(1));
|
|
10983
10989
|
let a10 = "public";
|
|
10984
10990
|
if ("postgres" === i10) {
|
|
@@ -11489,7 +11495,7 @@ You should update your Next.js config file as shown below:
|
|
|
11489
11495
|
for (let n11 = 0; n11 < 16; n11++) r10[o10 + n11] = e10[t10 + (2 * i10 - 1) * 16 + n11];
|
|
11490
11496
|
for (let n11 = 0; n11 < i10; n11++, a10 += 16, t10 += 16) nL(r10, o10, e10, t10, r10, a10), n11 > 0 && (o10 += 16), nL(r10, a10, e10, t10 += 16, r10, o10);
|
|
11491
11497
|
}
|
|
11492
|
-
async function
|
|
11498
|
+
async function nq(e10, t10, r10) {
|
|
11493
11499
|
let n10, { N: i10, r: a10, p: o10, dkLen: s10, blockSize32: l10, V: d10, B32: c10, B: u10, tmp: p10, blockMixCb: f10, asyncTick: m10 } = function(e11, t11, r11) {
|
|
11494
11500
|
let { N: n11, r: i11, p: a11, dkLen: o11, asyncTick: s11, maxmem: l11, onProgress: d11 } = ny({ dkLen: 32, asyncTick: 10, maxmem: 1073742848 }, r11);
|
|
11495
11501
|
if (nr(n11, "N"), nr(i11, "r"), nr(a11, "p"), nr(o11, "dkLen"), nr(s11, "asyncTick"), nr(l11, "maxmem"), void 0 !== d11 && "function" != typeof d11) throw Error('"onProgress" must be a function');
|
|
@@ -11529,23 +11535,23 @@ You should update your Next.js config file as shown below:
|
|
|
11529
11535
|
}
|
|
11530
11536
|
return nf(c10), n10 = nb(nj, e10, u10, { c: 1, dkLen: s10 }), nd(u10, d10, p10), n10;
|
|
11531
11537
|
}
|
|
11532
|
-
let
|
|
11538
|
+
let nB = (e10) => {
|
|
11533
11539
|
if ("string" == typeof e10 && (e10 = new TextEncoder().encode(e10)), 0 === e10.byteLength) return "";
|
|
11534
11540
|
let t10 = new Uint8Array(e10), r10 = "";
|
|
11535
11541
|
for (let e11 of t10) r10 += e11.toString(16).padStart(2, "0");
|
|
11536
11542
|
return r10;
|
|
11537
11543
|
};
|
|
11538
11544
|
async function nM(e10, t10) {
|
|
11539
|
-
return
|
|
11545
|
+
return nq(e10.normalize("NFKC"), t10, { N: 16384, r: 16, p: 1, dkLen: 64, maxmem: 67108864 });
|
|
11540
11546
|
}
|
|
11541
11547
|
async function nF(e10) {
|
|
11542
|
-
let t10 =
|
|
11543
|
-
return `${t10}:${
|
|
11548
|
+
let t10 = nB(crypto.getRandomValues(new Uint8Array(16))), r10 = await nM(e10, t10);
|
|
11549
|
+
return `${t10}:${nB(r10)}`;
|
|
11544
11550
|
}
|
|
11545
11551
|
async function nZ(e10, t10) {
|
|
11546
11552
|
let [r10, n10] = e10.split(":");
|
|
11547
11553
|
if (!r10 || !n10) throw Error("Invalid password hash");
|
|
11548
|
-
return
|
|
11554
|
+
return nB(await nM(t10, r10)) === n10;
|
|
11549
11555
|
}
|
|
11550
11556
|
let nH = async ({ hash: e10, password: t10 }) => nZ(e10, t10), nV = Uint8Array.of(0), nJ = Uint8Array.of(), nK = new TextEncoder(), nW = new TextDecoder(), nQ = new TextDecoder("utf-8", { fatal: true });
|
|
11551
11557
|
function nG(...e10) {
|
|
@@ -11816,11 +11822,11 @@ You should update your Next.js config file as shown below:
|
|
|
11816
11822
|
if (!s10) throw new ic();
|
|
11817
11823
|
return s10;
|
|
11818
11824
|
}
|
|
11819
|
-
async function
|
|
11825
|
+
async function iq(e10, t10, r10, n10, i10) {
|
|
11820
11826
|
let a10 = r10 instanceof Uint8Array ? await crypto.subtle.importKey("raw", r10, "AES-GCM", false, ["encrypt"]) : (iA(r10, e10.subtle, "encrypt"), r10), o10 = new Uint8Array(await crypto.subtle.encrypt({ additionalData: i10, iv: n10, name: "AES-GCM", tagLength: 128 }, a10, t10)), s10 = o10.slice(-16);
|
|
11821
11827
|
return { ciphertext: o10.slice(0, -16), tag: s10, iv: n10 };
|
|
11822
11828
|
}
|
|
11823
|
-
async function
|
|
11829
|
+
async function iB(e10, t10, r10, n10, i10, a10) {
|
|
11824
11830
|
let o10 = t10 instanceof Uint8Array ? await crypto.subtle.importKey("raw", t10, "AES-GCM", false, ["decrypt"]) : (iA(t10, e10.subtle, "decrypt"), t10);
|
|
11825
11831
|
try {
|
|
11826
11832
|
return new Uint8Array(await crypto.subtle.decrypt({ additionalData: a10, iv: n10, name: "AES-GCM", tagLength: 128 }, o10, nG(r10, i10)));
|
|
@@ -11832,13 +11838,13 @@ You should update your Next.js config file as shown below:
|
|
|
11832
11838
|
if (!iT(r10) && !(r10 instanceof Uint8Array)) throw TypeError(iS(r10, "CryptoKey", "KeyObject", "Uint8Array", "JSON Web Key"));
|
|
11833
11839
|
if (n10) iN(e10, n10);
|
|
11834
11840
|
else n10 = crypto.getRandomValues(new Uint8Array(e10.ivBits >> 3));
|
|
11835
|
-
return r10 instanceof Uint8Array && iU(r10, e10.cekBits), e10.cbc ? ij(e10, t10, r10, n10, i10) :
|
|
11841
|
+
return r10 instanceof Uint8Array && iU(r10, e10.cekBits), e10.cbc ? ij(e10, t10, r10, n10, i10) : iq(e10, t10, r10, n10, i10);
|
|
11836
11842
|
}
|
|
11837
11843
|
async function iF(e10, t10, r10, n10, i10, a10) {
|
|
11838
11844
|
if (!iT(t10) && !(t10 instanceof Uint8Array)) throw TypeError(iS(t10, "CryptoKey", "KeyObject", "Uint8Array", "JSON Web Key"));
|
|
11839
11845
|
if (!n10) throw new iu("JWE Initialization Vector missing");
|
|
11840
11846
|
if (!i10) throw new iu("JWE Authentication Tag missing");
|
|
11841
|
-
return iN(e10, n10), t10 instanceof Uint8Array && iU(t10, e10.cekBits), e10.cbc ? iz(e10, t10, r10, n10, i10, a10) :
|
|
11847
|
+
return iN(e10, n10), t10 instanceof Uint8Array && iU(t10, e10.cekBits), e10.cbc ? iz(e10, t10, r10, n10, i10, a10) : iB(e10, t10, r10, n10, i10, a10);
|
|
11842
11848
|
}
|
|
11843
11849
|
async function iZ(e10, t10) {
|
|
11844
11850
|
if ("RSA" === t10.kty && "oth" in t10 && void 0 !== t10.oth) throw new id('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
|
|
@@ -12376,15 +12382,15 @@ You should update your Next.js config file as shown below:
|
|
|
12376
12382
|
return this.#r && (this.#u || this.#p || this.#f) && (this.#r = { ...this.#r, iss: this.#u ? this.#m.iss : void 0, sub: this.#p ? this.#m.sub : void 0, aud: this.#f ? this.#m.aud : void 0 }), r10.setProtectedHeader(this.#r), this.#s && r10.setInitializationVector(this.#s), this.#o && r10.setContentEncryptionKey(this.#o), this.#l && r10.setKeyManagementParameters(this.#l), r10.encrypt(e10, t10);
|
|
12377
12383
|
}
|
|
12378
12384
|
}
|
|
12379
|
-
async function
|
|
12385
|
+
async function aq(e10, t10, r10) {
|
|
12380
12386
|
return t10 instanceof Uint8Array ? crypto.subtle.importKey("raw", t10, e10.subtle, false, [r10]) : (iA(t10, e10.subtle, r10), e10.minRsaBits && ix(e10.alg, t10), t10);
|
|
12381
12387
|
}
|
|
12382
|
-
async function
|
|
12383
|
-
let n10 = await
|
|
12388
|
+
async function aB(e10, t10, r10) {
|
|
12389
|
+
let n10 = await aq(e10, t10, "sign");
|
|
12384
12390
|
return new Uint8Array(await crypto.subtle.sign(e10.signing, n10, r10));
|
|
12385
12391
|
}
|
|
12386
12392
|
async function aM(e10, t10, r10, n10) {
|
|
12387
|
-
let i10 = await
|
|
12393
|
+
let i10 = await aq(e10, t10, "verify");
|
|
12388
12394
|
try {
|
|
12389
12395
|
return await crypto.subtle.verify(e10.signing, i10, r10, n10);
|
|
12390
12396
|
} catch {
|
|
@@ -12436,7 +12442,7 @@ You should update your Next.js config file as shown below:
|
|
|
12436
12442
|
t11[0] ??= n2(e10.payload), t11[1] ??= n1(t11[0]), r10 = t11[0], n10 = t11[1];
|
|
12437
12443
|
} else n10 = e10.payload, r10 = "";
|
|
12438
12444
|
o10 ? a10 = n1(i10 = n2(JSON.stringify(o10))) : (i10 = "", a10 = new Uint8Array());
|
|
12439
|
-
let f10 = nG(a10, n1("."), n10), m10 = await iW(p10, t10, "sign"), h10 = { signature: n2(await
|
|
12445
|
+
let f10 = nG(a10, n1("."), n10), m10 = await iW(p10, t10, "sign"), h10 = { signature: n2(await aB(p10, m10, f10)), payload: r10 };
|
|
12440
12446
|
return o10 && (h10.protected = i10), s10 && (h10.header = s10), h10;
|
|
12441
12447
|
}
|
|
12442
12448
|
class aY {
|
|
@@ -12965,9 +12971,9 @@ You should update your Next.js config file as shown below:
|
|
|
12965
12971
|
function oz(e10) {
|
|
12966
12972
|
return e10 instanceof Request || "[object Request]" === Object.prototype.toString.call(e10);
|
|
12967
12973
|
}
|
|
12968
|
-
let
|
|
12969
|
-
function
|
|
12970
|
-
for (let t10 of
|
|
12974
|
+
let oq = /* @__PURE__ */ new Set(["host", "user-agent", "referer", "from", "expect", "authorization", "proxy-authorization", "cookie", "origin", "accept-charset", "accept-encoding", "accept-language", "if-match", "if-none-match", "if-modified-since", "if-unmodified-since", "if-range", "range", "max-forwards", "connection", "keep-alive", "transfer-encoding", "te", "upgrade", "trailer", "proxy-connection", "content-length"]);
|
|
12975
|
+
function oB(e10) {
|
|
12976
|
+
for (let t10 of oq) e10.delete(t10);
|
|
12971
12977
|
}
|
|
12972
12978
|
function oM(e10, t10) {
|
|
12973
12979
|
if (t10) for (let [r10, n10] of new Headers(t10).entries()) "set-cookie" === r10.toLowerCase() ? e10.append(r10, n10) : e10.set(r10, n10);
|
|
@@ -12976,7 +12982,7 @@ You should update your Next.js config file as shown below:
|
|
|
12976
12982
|
if (e10 instanceof Response) {
|
|
12977
12983
|
if (t10?.headers) {
|
|
12978
12984
|
let r11 = new Headers(t10.headers);
|
|
12979
|
-
|
|
12985
|
+
oB(r11), oM(e10.headers, r11);
|
|
12980
12986
|
}
|
|
12981
12987
|
return e10;
|
|
12982
12988
|
}
|
|
@@ -12986,13 +12992,13 @@ You should update your Next.js config file as shown below:
|
|
|
12986
12992
|
let i10 = new Headers();
|
|
12987
12993
|
if (oM(i10, n11?.headers), oM(i10, e10.headers), t10?.headers) {
|
|
12988
12994
|
let e11 = new Headers(t10.headers);
|
|
12989
|
-
|
|
12995
|
+
oB(e11), oM(i10, e11);
|
|
12990
12996
|
}
|
|
12991
12997
|
return i10.set("Content-Type", "application/json"), new Response(JSON.stringify(r11), { ...n11, headers: i10, status: e10.status ?? t10?.status ?? n11?.status, statusText: t10?.statusText ?? n11?.statusText });
|
|
12992
12998
|
}
|
|
12993
12999
|
if (oj(e10)) return oF(e10.body, { status: t10?.status ?? e10.statusCode, statusText: e10.status.toString(), headers: t10?.headers || e10.headers });
|
|
12994
13000
|
let r10 = e10, n10 = new Headers(t10?.headers);
|
|
12995
|
-
if (
|
|
13001
|
+
if (oB(n10), e10) {
|
|
12996
13002
|
if ("string" == typeof e10) r10 = e10, n10.set("Content-Type", "text/plain");
|
|
12997
13003
|
else if (e10 instanceof ArrayBuffer || ArrayBuffer.isView(e10)) r10 = e10, n10.set("Content-Type", "application/octet-stream");
|
|
12998
13004
|
else if (e10 instanceof Blob) r10 = e10, n10.set("Content-Type", e10.type || "application/octet-stream");
|
|
@@ -13183,7 +13189,7 @@ You should update your Next.js config file as shown below:
|
|
|
13183
13189
|
if ("function" == typeof t10) return o2({ use: e10?.use }, t10);
|
|
13184
13190
|
if (!r10) throw Error("Middleware handler is required");
|
|
13185
13191
|
return o2({ ...t10, method: "*", use: [...e10?.use || [], ...t10.use || []] }, r10);
|
|
13186
|
-
}, e.s(["ZodAny", () => hi, "ZodArray", () => hm, "ZodBase64", () => mN, "ZodBase64URL", () => mP, "ZodBigInt", () => m6, "ZodBigIntFormat", () => m3, "ZodBoolean", () => m1, "ZodCIDRv4", () => mR, "ZodCIDRv6", () => mC, "ZodCUID", () => mm, "ZodCUID2", () => mg, "ZodCatch", () => h7, "ZodCodec", () => ga, "ZodCustom", () => gv, "ZodCustomStringFormat", () => mM, "ZodDate", () => hp, "ZodDefault", () => h1, "ZodDiscriminatedUnion", () => hk, "ZodE164", () => mL, "ZodEmail", () => f9, "ZodEmoji", () => mc, "ZodEnum", () => hz, "ZodExactOptional", () => hQ, "ZodFile", () => hZ, "ZodFunction", () => gy, "ZodGUID", () => me, "ZodIPv4", () => mA, "ZodIPv6", () => m$, "ZodIntersection", () => hE, "ZodJWT", () =>
|
|
13192
|
+
}, e.s(["ZodAny", () => hi, "ZodArray", () => hm, "ZodBase64", () => mN, "ZodBase64URL", () => mP, "ZodBigInt", () => m6, "ZodBigIntFormat", () => m3, "ZodBoolean", () => m1, "ZodCIDRv4", () => mR, "ZodCIDRv6", () => mC, "ZodCUID", () => mm, "ZodCUID2", () => mg, "ZodCatch", () => h7, "ZodCodec", () => ga, "ZodCustom", () => gv, "ZodCustomStringFormat", () => mM, "ZodDate", () => hp, "ZodDefault", () => h1, "ZodDiscriminatedUnion", () => hk, "ZodE164", () => mL, "ZodEmail", () => f9, "ZodEmoji", () => mc, "ZodEnum", () => hz, "ZodExactOptional", () => hQ, "ZodFile", () => hZ, "ZodFunction", () => gy, "ZodGUID", () => me, "ZodIPv4", () => mA, "ZodIPv6", () => m$, "ZodIntersection", () => hE, "ZodJWT", () => mq, "ZodKSUID", () => m_, "ZodLazy", () => gf, "ZodLiteral", () => hM, "ZodMAC", () => mS, "ZodMap", () => hD, "ZodNaN", () => gt, "ZodNanoID", () => mp, "ZodNever", () => hl, "ZodNonOptional", () => h3, "ZodNull", () => hr, "ZodNullable", () => hX, "ZodNumber", () => mJ, "ZodNumberFormat", () => mW, "ZodObject", () => hy, "ZodOptional", () => hK, "ZodPipe", () => gn, "ZodPrefault", () => h6, "ZodPreprocess", () => gl, "ZodPromise", () => gh, "ZodReadonly", () => gd, "ZodRecord", () => hO, "ZodSet", () => hj, "ZodString", () => f3, "ZodStringFormat", () => f8, "ZodSuccess", () => h8, "ZodSymbol", () => m9, "ZodTemplateLiteral", () => gu, "ZodTransform", () => hV, "ZodTuple", () => hT, "ZodType", () => f6, "ZodULID", () => mw, "ZodURL", () => ms, "ZodUUID", () => mr, "ZodUndefined", () => he, "ZodUnion", () => hI, "ZodUnknown", () => ho, "ZodVoid", () => hc, "ZodXID", () => mb, "ZodXor", () => hx, "_ZodString", () => f2, "_default", () => h4, "_function", () => gw, "any", () => ha, "array", () => hh, "base64", () => mD, "base64url", () => mj, "bigint", () => m2, "boolean", () => m4, "catch", () => ge, "check", () => gb, "cidrv4", () => mO, "cidrv6", () => mU, "codec", () => go, "cuid", () => mh, "cuid2", () => my, "custom", () => gI, "date", () => hf, "describe", () => gA, "discriminatedUnion", () => hS, "e164", () => mz, "email", () => f7, "emoji", () => mu, "enum", () => hq, "exactOptional", () => hG, "file", () => hH, "float32", () => mG, "float64", () => mX, "function", () => gw, "guid", () => mt, "hash", () => mV, "hex", () => mH, "hostname", () => mZ, "httpUrl", () => md, "instanceof", () => gS, "int", () => mQ, "int32", () => mY, "int64", () => m5, "intersection", () => h$, "invertCodec", () => gs, "ipv4", () => mk, "ipv6", () => mT, "json", () => g$, "jwt", () => mB, "keyof", () => hg, "ksuid", () => mx, "lazy", () => gm, "literal", () => hF, "looseObject", () => hb, "looseRecord", () => hN, "mac", () => mE, "map", () => hP, "meta", () => gk, "nan", () => gr, "nanoid", () => mf, "nativeEnum", () => hB, "never", () => hd, "nonoptional", () => h5, "null", () => hn, "nullable", () => hY, "nullish", () => h0, "number", () => mK, "object", () => hw, "optional", () => hW, "partialRecord", () => hU, "pipe", () => gi, "prefault", () => h2, "preprocess", () => gT, "promise", () => gg, "readonly", () => gc, "record", () => hC, "refine", () => g_, "set", () => hL, "strictObject", () => hv, "string", () => f5, "stringFormat", () => mF, "stringbool", () => gE, "success", () => h9, "superRefine", () => gx, "symbol", () => m7, "templateLiteral", () => gp, "transform", () => hJ, "tuple", () => hR, "uint32", () => m0, "uint64", () => m8, "ulid", () => mv, "undefined", () => ht, "union", () => h_, "unknown", () => hs, "url", () => ml, "uuid", () => mn, "uuidv4", () => mi, "uuidv6", () => ma, "uuidv7", () => mo, "void", () => hu, "xid", () => mI, "xor", () => hA], 189788);
|
|
13187
13193
|
let o3 = Object.freeze({ status: "aborted" });
|
|
13188
13194
|
function o5(e10, t10, r10) {
|
|
13189
13195
|
function n10(r11, n11) {
|
|
@@ -13530,7 +13536,7 @@ You should update your Next.js config file as shown below:
|
|
|
13530
13536
|
}, "uint8ArrayToHex", 0, function(e10) {
|
|
13531
13537
|
return Array.from(e10).map((e11) => e11.toString(16).padStart(2, "0")).join("");
|
|
13532
13538
|
}, "unwrapMessage", 0, sC], 215528);
|
|
13533
|
-
let
|
|
13539
|
+
let sq = /^[cC][0-9a-z]{6,}$/, sB = /^[0-9a-z]+$/, sM = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, sF = /^[0-9a-vA-V]{20}$/, sZ = /^[A-Za-z0-9]{27}$/, sH = /^[a-zA-Z0-9_-]{21}$/, sV = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, sJ = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, sK = (e10) => e10 ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e10}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, sW = sK(4), sQ = sK(6), sG = sK(7), sX = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, sY = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
|
|
13534
13540
|
function s0() {
|
|
13535
13541
|
return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u");
|
|
13536
13542
|
}
|
|
@@ -13562,7 +13568,7 @@ You should update your Next.js config file as shown below:
|
|
|
13562
13568
|
return RegExp(`^[A-Za-z0-9_-]{${e10}}$`);
|
|
13563
13569
|
}
|
|
13564
13570
|
let lg = lm(22, "=="), ly = lh(22), lw = lm(27, "="), lv = lh(27), lb = lm(43, "="), lI = lh(43), l_ = lm(64, ""), lx = lh(64), lA = lm(86, "=="), lk = lh(86);
|
|
13565
|
-
e.s(["base64", 0, s5, "base64url", 0, s8, "bigint", 0, lo, "boolean", 0, ld, "browserEmail", 0, /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, "cidrv4", 0, s2, "cidrv6", 0, s3, "cuid", 0,
|
|
13571
|
+
e.s(["base64", 0, s5, "base64url", 0, s8, "bigint", 0, lo, "boolean", 0, ld, "browserEmail", 0, /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, "cidrv4", 0, s2, "cidrv6", 0, s3, "cuid", 0, sq, "cuid2", 0, sB, "date", 0, lt, "datetime", 0, li, "domain", 0, /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, "duration", 0, sV, "e164", 0, s7, "email", 0, sX, "emoji", 0, s0, "extendedDuration", 0, /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, "guid", 0, sJ, "hex", 0, /^[0-9a-fA-F]*$/, "hostname", 0, /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, "html5Email", 0, /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, "httpProtocol", 0, s9, "idnEmail", 0, sY, "integer", 0, ls, "ipv4", 0, s1, "ipv6", 0, s4, "ksuid", 0, sZ, "lowercase", 0, lp, "mac", 0, s6, "md5_base64", 0, lg, "md5_base64url", 0, ly, "md5_hex", 0, /^[0-9a-fA-F]{32}$/, "nanoid", 0, sH, "null", 0, lc, "number", 0, ll, "rfc5322Email", 0, /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, "sha1_base64", 0, lw, "sha1_base64url", 0, lv, "sha1_hex", 0, /^[0-9a-fA-F]{40}$/, "sha256_base64", 0, lb, "sha256_base64url", 0, lI, "sha256_hex", 0, /^[0-9a-fA-F]{64}$/, "sha384_base64", 0, l_, "sha384_base64url", 0, lx, "sha384_hex", 0, /^[0-9a-fA-F]{96}$/, "sha512_base64", 0, lA, "sha512_base64url", 0, lk, "sha512_hex", 0, /^[0-9a-fA-F]{128}$/, "string", 0, la, "time", 0, ln, "ulid", 0, sM, "undefined", 0, lu, "unicodeEmail", 0, sY, "uppercase", 0, lf, "uuid", 0, sK, "uuid4", 0, sW, "uuid6", 0, sQ, "uuid7", 0, sG, "xid", 0, sF], 627356);
|
|
13566
13572
|
let lS = o5("$ZodCheck", (e10, t10) => {
|
|
13567
13573
|
var r10;
|
|
13568
13574
|
e10._zod ?? (e10._zod = {}), e10._zod.def = t10, (r10 = e10._zod).onattach ?? (r10.onattach = []);
|
|
@@ -13705,11 +13711,11 @@ You should update your Next.js config file as shown below:
|
|
|
13705
13711
|
t10.pattern.lastIndex = 0, t10.pattern.test(r11.value) || r11.issues.push({ origin: "string", code: "invalid_format", format: t10.format, input: r11.value, ...t10.pattern ? { pattern: t10.pattern.toString() } : {}, inst: e10, continue: !t10.abort });
|
|
13706
13712
|
}) : (n10 = e10._zod).check ?? (n10.check = () => {
|
|
13707
13713
|
});
|
|
13708
|
-
}),
|
|
13714
|
+
}), lq = o5("$ZodCheckRegex", (e10, t10) => {
|
|
13709
13715
|
lz.init(e10, t10), e10._zod.check = (r10) => {
|
|
13710
13716
|
t10.pattern.lastIndex = 0, t10.pattern.test(r10.value) || r10.issues.push({ origin: "string", code: "invalid_format", format: "regex", input: r10.value, pattern: t10.pattern.toString(), inst: e10, continue: !t10.abort });
|
|
13711
13717
|
};
|
|
13712
|
-
}),
|
|
13718
|
+
}), lB = o5("$ZodCheckLowerCase", (e10, t10) => {
|
|
13713
13719
|
t10.pattern ?? (t10.pattern = lp), lz.init(e10, t10);
|
|
13714
13720
|
}), lM = o5("$ZodCheckUpperCase", (e10, t10) => {
|
|
13715
13721
|
t10.pattern ?? (t10.pattern = lf), lz.init(e10, t10);
|
|
@@ -13763,7 +13769,7 @@ You should update your Next.js config file as shown below:
|
|
|
13763
13769
|
e11.value = t10.tx(e11.value);
|
|
13764
13770
|
};
|
|
13765
13771
|
});
|
|
13766
|
-
e.s(["$ZodCheck", 0, lS, "$ZodCheckBigIntFormat", 0, lC, "$ZodCheckEndsWith", 0, lH, "$ZodCheckGreaterThan", 0, lT, "$ZodCheckIncludes", 0, lF, "$ZodCheckLengthEquals", 0, lL, "$ZodCheckLessThan", 0, l$, "$ZodCheckLowerCase", 0,
|
|
13772
|
+
e.s(["$ZodCheck", 0, lS, "$ZodCheckBigIntFormat", 0, lC, "$ZodCheckEndsWith", 0, lH, "$ZodCheckGreaterThan", 0, lT, "$ZodCheckIncludes", 0, lF, "$ZodCheckLengthEquals", 0, lL, "$ZodCheckLessThan", 0, l$, "$ZodCheckLowerCase", 0, lB, "$ZodCheckMaxLength", 0, lP, "$ZodCheckMaxSize", 0, lU, "$ZodCheckMimeType", 0, lK, "$ZodCheckMinLength", 0, lj, "$ZodCheckMinSize", 0, lN, "$ZodCheckMultipleOf", 0, lR, "$ZodCheckNumberFormat", 0, lO, "$ZodCheckOverwrite", 0, lW, "$ZodCheckProperty", 0, lJ, "$ZodCheckRegex", 0, lq, "$ZodCheckSizeEquals", 0, lD, "$ZodCheckStartsWith", 0, lZ, "$ZodCheckStringFormat", 0, lz, "$ZodCheckUpperCase", 0, lM], 883016);
|
|
13767
13773
|
class lQ {
|
|
13768
13774
|
constructor(e10 = []) {
|
|
13769
13775
|
this.content = [], this.indent = 0, this && (this.args = e10);
|
|
@@ -13976,9 +13982,9 @@ You should update your Next.js config file as shown below:
|
|
|
13976
13982
|
}), dT = o5("$ZodNanoID", (e10, t10) => {
|
|
13977
13983
|
t10.pattern ?? (t10.pattern = sH), dx.init(e10, t10);
|
|
13978
13984
|
}), dR = o5("$ZodCUID", (e10, t10) => {
|
|
13979
|
-
t10.pattern ?? (t10.pattern = sB), dx.init(e10, t10);
|
|
13980
|
-
}), dO = o5("$ZodCUID2", (e10, t10) => {
|
|
13981
13985
|
t10.pattern ?? (t10.pattern = sq), dx.init(e10, t10);
|
|
13986
|
+
}), dO = o5("$ZodCUID2", (e10, t10) => {
|
|
13987
|
+
t10.pattern ?? (t10.pattern = sB), dx.init(e10, t10);
|
|
13982
13988
|
}), dC = o5("$ZodULID", (e10, t10) => {
|
|
13983
13989
|
t10.pattern ?? (t10.pattern = sM), dx.init(e10, t10);
|
|
13984
13990
|
}), dU = o5("$ZodXID", (e10, t10) => {
|
|
@@ -13995,7 +14001,7 @@ You should update your Next.js config file as shown below:
|
|
|
13995
14001
|
t10.pattern ?? (t10.pattern = sV), dx.init(e10, t10);
|
|
13996
14002
|
}), dz = o5("$ZodIPv4", (e10, t10) => {
|
|
13997
14003
|
t10.pattern ?? (t10.pattern = s1), dx.init(e10, t10), e10._zod.bag.format = "ipv4";
|
|
13998
|
-
}),
|
|
14004
|
+
}), dq = o5("$ZodIPv6", (e10, t10) => {
|
|
13999
14005
|
t10.pattern ?? (t10.pattern = s4), dx.init(e10, t10), e10._zod.bag.format = "ipv6", e10._zod.check = (r10) => {
|
|
14000
14006
|
try {
|
|
14001
14007
|
new URL(`http://[${r10.value}]`);
|
|
@@ -14003,7 +14009,7 @@ You should update your Next.js config file as shown below:
|
|
|
14003
14009
|
r10.issues.push({ code: "invalid_format", format: "ipv6", input: r10.value, inst: e10, continue: !t10.abort });
|
|
14004
14010
|
}
|
|
14005
14011
|
};
|
|
14006
|
-
}),
|
|
14012
|
+
}), dB = o5("$ZodMAC", (e10, t10) => {
|
|
14007
14013
|
t10.pattern ?? (t10.pattern = s6(t10.delimiter)), dx.init(e10, t10), e10._zod.bag.format = "mac";
|
|
14008
14014
|
}), dM = o5("$ZodCIDRv4", (e10, t10) => {
|
|
14009
14015
|
t10.pattern ?? (t10.pattern = s2), dx.init(e10, t10);
|
|
@@ -14633,17 +14639,17 @@ You should update your Next.js config file as shown below:
|
|
|
14633
14639
|
};
|
|
14634
14640
|
}), cz = o5("$ZodNaN", (e10, t10) => {
|
|
14635
14641
|
dI.init(e10, t10), e10._zod.parse = (t11, r10) => ("number" == typeof t11.value && Number.isNaN(t11.value) || t11.issues.push({ input: t11.value, inst: e10, expected: "nan", code: "invalid_type" }), t11);
|
|
14636
|
-
}),
|
|
14642
|
+
}), cq = o5("$ZodPipe", (e10, t10) => {
|
|
14637
14643
|
dI.init(e10, t10), sc(e10._zod, "values", () => t10.in._zod.values), sc(e10._zod, "optin", () => t10.in._zod.optin), sc(e10._zod, "optout", () => t10.out._zod.optout), sc(e10._zod, "propValues", () => t10.in._zod.propValues), e10._zod.parse = (e11, r10) => {
|
|
14638
14644
|
if ("backward" === r10.direction) {
|
|
14639
14645
|
let n11 = t10.out._zod.run(e11, r10);
|
|
14640
|
-
return n11 instanceof Promise ? n11.then((e12) =>
|
|
14646
|
+
return n11 instanceof Promise ? n11.then((e12) => cB(e12, t10.in, r10)) : cB(n11, t10.in, r10);
|
|
14641
14647
|
}
|
|
14642
14648
|
let n10 = t10.in._zod.run(e11, r10);
|
|
14643
|
-
return n10 instanceof Promise ? n10.then((e12) =>
|
|
14649
|
+
return n10 instanceof Promise ? n10.then((e12) => cB(e12, t10.out, r10)) : cB(n10, t10.out, r10);
|
|
14644
14650
|
};
|
|
14645
14651
|
});
|
|
14646
|
-
function
|
|
14652
|
+
function cB(e10, t10, r10) {
|
|
14647
14653
|
return e10.issues.length ? (e10.aborted = true, e10) : t10._zod.run({ value: e10.value, issues: e10.issues, fallback: e10.fallback }, r10);
|
|
14648
14654
|
}
|
|
14649
14655
|
let cM = o5("$ZodCodec", (e10, t10) => {
|
|
@@ -14673,7 +14679,7 @@ You should update your Next.js config file as shown below:
|
|
|
14673
14679
|
return e10.issues.length ? (e10.aborted = true, e10) : r10._zod.run({ value: t10, issues: e10.issues }, n10);
|
|
14674
14680
|
}
|
|
14675
14681
|
let cH = o5("$ZodPreprocess", (e10, t10) => {
|
|
14676
|
-
|
|
14682
|
+
cq.init(e10, t10);
|
|
14677
14683
|
}), cV = o5("$ZodReadonly", (e10, t10) => {
|
|
14678
14684
|
dI.init(e10, t10), sc(e10._zod, "propValues", () => t10.innerType._zod.propValues), sc(e10._zod, "values", () => t10.innerType._zod.values), sc(e10._zod, "optin", () => t10.innerType?._zod?.optin), sc(e10._zod, "optout", () => t10.innerType?._zod?.optout), e10._zod.parse = (e11, r10) => {
|
|
14679
14685
|
if ("backward" === r10.direction) return t10.innerType._zod.run(e11, r10);
|
|
@@ -14728,7 +14734,7 @@ You should update your Next.js config file as shown below:
|
|
|
14728
14734
|
n10._zod.def.params && (e11.params = n10._zod.def.params), t10.issues.push(sj(e11));
|
|
14729
14735
|
}
|
|
14730
14736
|
}
|
|
14731
|
-
e.s(["$ZodAny", 0, d5, "$ZodArray", 0, cr, "$ZodBase64", 0, dH, "$ZodBase64URL", 0, dJ, "$ZodBigInt", 0, d1, "$ZodBigIntFormat", 0, d4, "$ZodBoolean", 0, d0, "$ZodCIDRv4", 0, dM, "$ZodCIDRv6", 0, dF, "$ZodCUID", 0, dR, "$ZodCUID2", 0, dO, "$ZodCatch", 0, cL, "$ZodCodec", 0, cM, "$ZodCustom", 0, cX, "$ZodCustomStringFormat", 0, dG, "$ZodDate", 0, ce, "$ZodDefault", 0, cC, "$ZodDiscriminatedUnion", 0, cp, "$ZodE164", 0, dK, "$ZodEmail", 0, dS, "$ZodEmoji", 0, d$, "$ZodEnum", 0, cA, "$ZodExactOptional", 0, cR, "$ZodFile", 0, cS, "$ZodFunction", 0, cW, "$ZodGUID", 0, dA, "$ZodIPv4", 0, dz, "$ZodIPv6", 0,
|
|
14737
|
+
e.s(["$ZodAny", 0, d5, "$ZodArray", 0, cr, "$ZodBase64", 0, dH, "$ZodBase64URL", 0, dJ, "$ZodBigInt", 0, d1, "$ZodBigIntFormat", 0, d4, "$ZodBoolean", 0, d0, "$ZodCIDRv4", 0, dM, "$ZodCIDRv6", 0, dF, "$ZodCUID", 0, dR, "$ZodCUID2", 0, dO, "$ZodCatch", 0, cL, "$ZodCodec", 0, cM, "$ZodCustom", 0, cX, "$ZodCustomStringFormat", 0, dG, "$ZodDate", 0, ce, "$ZodDefault", 0, cC, "$ZodDiscriminatedUnion", 0, cp, "$ZodE164", 0, dK, "$ZodEmail", 0, dS, "$ZodEmoji", 0, d$, "$ZodEnum", 0, cA, "$ZodExactOptional", 0, cR, "$ZodFile", 0, cS, "$ZodFunction", 0, cW, "$ZodGUID", 0, dA, "$ZodIPv4", 0, dz, "$ZodIPv6", 0, dq, "$ZodISODate", 0, dP, "$ZodISODateTime", 0, dD, "$ZodISODuration", 0, dL, "$ZodISOTime", 0, dj, "$ZodIntersection", 0, cf, "$ZodJWT", 0, dQ, "$ZodKSUID", 0, dN, "$ZodLazy", 0, cG, "$ZodLiteral", 0, ck, "$ZodMAC", 0, dB, "$ZodMap", 0, cb, "$ZodNaN", 0, cz, "$ZodNanoID", 0, dT, "$ZodNever", 0, d9, "$ZodNonOptional", 0, cD, "$ZodNull", 0, d3, "$ZodNullable", 0, cO, "$ZodNumber", 0, dX, "$ZodNumberFormat", 0, dY, "$ZodObject", 0, co, "$ZodObjectJIT", 0, cs, "$ZodOptional", 0, cT, "$ZodPipe", 0, cq, "$ZodPrefault", 0, cN, "$ZodPreprocess", 0, cH, "$ZodPromise", 0, cQ, "$ZodReadonly", 0, cV, "$ZodRecord", 0, cv, "$ZodSet", 0, c_, "$ZodString", 0, d_, "$ZodStringFormat", 0, dx, "$ZodSuccess", 0, cj, "$ZodSymbol", 0, d6, "$ZodTemplateLiteral", 0, cK, "$ZodTransform", 0, cE, "$ZodTuple", 0, ch, "$ZodType", 0, dI, "$ZodULID", 0, dC, "$ZodURL", 0, dE, "$ZodUUID", 0, dk, "$ZodUndefined", 0, d2, "$ZodUnion", 0, cd, "$ZodUnknown", 0, d8, "$ZodVoid", 0, d7, "$ZodXID", 0, dU, "$ZodXor", 0, cu, "isValidBase64", 0, dZ, "isValidBase64URL", 0, dV, "isValidJWT", 0, dW], 846334);
|
|
14732
14738
|
let c0 = Symbol("ZodOutput"), c1 = Symbol("ZodInput");
|
|
14733
14739
|
class c4 {
|
|
14734
14740
|
constructor() {
|
|
@@ -14898,10 +14904,10 @@ You should update your Next.js config file as shown below:
|
|
|
14898
14904
|
function uz(e10, t10) {
|
|
14899
14905
|
return new e10({ type: "undefined", ...sA(t10) });
|
|
14900
14906
|
}
|
|
14901
|
-
function
|
|
14907
|
+
function uq(e10, t10) {
|
|
14902
14908
|
return new e10({ type: "null", ...sA(t10) });
|
|
14903
14909
|
}
|
|
14904
|
-
function
|
|
14910
|
+
function uB(e10) {
|
|
14905
14911
|
return new e10({ type: "any" });
|
|
14906
14912
|
}
|
|
14907
14913
|
function uM(e10) {
|
|
@@ -14968,10 +14974,10 @@ You should update your Next.js config file as shown below:
|
|
|
14968
14974
|
return new lL({ check: "length_equals", ...sA(t10), length: e10 });
|
|
14969
14975
|
}
|
|
14970
14976
|
function u7(e10, t10) {
|
|
14971
|
-
return new
|
|
14977
|
+
return new lq({ check: "string_format", format: "regex", ...sA(t10), pattern: e10 });
|
|
14972
14978
|
}
|
|
14973
14979
|
function pe(e10) {
|
|
14974
|
-
return new
|
|
14980
|
+
return new lB({ check: "string_format", format: "lowercase", ...sA(e10) });
|
|
14975
14981
|
}
|
|
14976
14982
|
function pt(e10) {
|
|
14977
14983
|
return new lM({ check: "string_format", format: "uppercase", ...sA(e10) });
|
|
@@ -15094,13 +15100,13 @@ You should update your Next.js config file as shown below:
|
|
|
15094
15100
|
function pz(e10, t10, r10) {
|
|
15095
15101
|
return new e10({ type: "custom", check: "custom", fn: t10, ...sA(r10) });
|
|
15096
15102
|
}
|
|
15097
|
-
function
|
|
15098
|
-
let r10 =
|
|
15103
|
+
function pq(e10, t10) {
|
|
15104
|
+
let r10 = pB((t11) => (t11.addIssue = (e11) => {
|
|
15099
15105
|
"string" == typeof e11 ? t11.issues.push(sj(e11, t11.value, r10._zod.def)) : (e11.fatal && (e11.continue = false), e11.code ?? (e11.code = "custom"), e11.input ?? (e11.input = t11.value), e11.inst ?? (e11.inst = r10), e11.continue ?? (e11.continue = !r10._zod.def.abort), t11.issues.push(sj(e11)));
|
|
15100
15106
|
}, e10(t11.value, t11)), t10);
|
|
15101
15107
|
return r10;
|
|
15102
15108
|
}
|
|
15103
|
-
function
|
|
15109
|
+
function pB(e10, t10) {
|
|
15104
15110
|
let r10 = new lS({ check: "custom", ...sA(t10) });
|
|
15105
15111
|
return r10._zod.check = e10, r10;
|
|
15106
15112
|
}
|
|
@@ -15133,7 +15139,7 @@ You should update your Next.js config file as shown below:
|
|
|
15133
15139
|
let i10 = sA(n10), a10 = { ...sA(n10), check: "string_format", type: "string", format: t10, fn: "function" == typeof r10 ? r10 : (e11) => r10.test(e11), ...i10 };
|
|
15134
15140
|
return r10 instanceof RegExp && (a10.pattern = r10), new e10(a10);
|
|
15135
15141
|
}
|
|
15136
|
-
e.s(["TimePrecision", 0, ub, "_any", 0,
|
|
15142
|
+
e.s(["TimePrecision", 0, ub, "_any", 0, uB, "_array", 0, pf, "_base64", 0, ug, "_base64url", 0, uy, "_bigint", 0, uN, "_boolean", 0, uC, "_catch", 0, pC, "_check", 0, pB, "_cidrv4", 0, um, "_cidrv6", 0, uh, "_coercedBigint", 0, uD, "_coercedBoolean", 0, uU, "_coercedDate", 0, uV, "_coercedNumber", 0, uS, "_coercedString", 0, c5, "_cuid", 0, uo, "_cuid2", 0, us, "_custom", 0, pL, "_date", 0, uH, "_default", 0, pT, "_discriminatedUnion", 0, pg, "_e164", 0, uw, "_email", 0, c8, "_emoji", 0, ui, "_endsWith", 0, pi, "_enum", 0, p_, "_file", 0, pk, "_float32", 0, u$, "_float64", 0, uT, "_gt", 0, uQ, "_gte", 0, uG, "_guid", 0, c9, "_includes", 0, pr, "_int", 0, uE, "_int32", 0, uR, "_int64", 0, uP, "_intersection", 0, py, "_ipv4", 0, uu, "_ipv6", 0, up, "_isoDate", 0, u_, "_isoDateTime", 0, uI, "_isoDuration", 0, uA, "_isoTime", 0, ux, "_jwt", 0, uv, "_ksuid", 0, uc, "_lazy", 0, pP, "_length", 0, u9, "_literal", 0, pA, "_lowercase", 0, pe, "_lt", 0, uK, "_lte", 0, uW, "_mac", 0, uf, "_map", 0, pb, "_max", 0, uW, "_maxLength", 0, u5, "_maxSize", 0, u6, "_mime", 0, po, "_min", 0, uG, "_minLength", 0, u8, "_minSize", 0, u2, "_multipleOf", 0, u4, "_nan", 0, uJ, "_nanoid", 0, ua, "_nativeEnum", 0, px, "_negative", 0, uY, "_never", 0, uF, "_nonnegative", 0, u1, "_nonoptional", 0, pR, "_nonpositive", 0, u0, "_normalize", 0, pl, "_null", 0, uq, "_nullable", 0, p$, "_number", 0, uk, "_optional", 0, pE, "_overwrite", 0, ps, "_pipe", 0, pU, "_positive", 0, uX, "_promise", 0, pj, "_property", 0, pa, "_readonly", 0, pN, "_record", 0, pv, "_refine", 0, pz, "_regex", 0, u7, "_set", 0, pI, "_size", 0, u3, "_slugify", 0, pp, "_startsWith", 0, pn, "_string", 0, c3, "_stringFormat", 0, pH, "_stringbool", 0, pZ, "_success", 0, pO, "_superRefine", 0, pq, "_symbol", 0, uL, "_templateLiteral", 0, pD, "_toLowerCase", 0, pc, "_toUpperCase", 0, pu, "_transform", 0, pS, "_trim", 0, pd, "_tuple", 0, pw, "_uint32", 0, uO, "_uint64", 0, uj, "_ulid", 0, ul, "_undefined", 0, uz, "_union", 0, pm, "_unknown", 0, uM, "_uppercase", 0, pt, "_url", 0, un, "_uuid", 0, c7, "_uuidv4", 0, ue, "_uuidv6", 0, ut, "_uuidv7", 0, ur, "_void", 0, uZ, "_xid", 0, ud, "_xor", 0, ph, "describe", 0, pM, "meta", 0, pF], 980206);
|
|
15137
15143
|
var pV = e.i(627356), pV = pV, pJ = e.i(215528), pJ = pJ;
|
|
15138
15144
|
function pK(e10) {
|
|
15139
15145
|
let t10 = e10?.target ?? "draft-2020-12";
|
|
@@ -15480,14 +15486,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15480
15486
|
function fz(e10) {
|
|
15481
15487
|
return uA(fL, e10);
|
|
15482
15488
|
}
|
|
15483
|
-
let
|
|
15489
|
+
let fq = (e10, t10) => {
|
|
15484
15490
|
lX.init(e10, t10), e10.name = "ZodError", Object.defineProperties(e10, { format: { value: (t11) => l1(e10, t11) }, flatten: { value: (t11) => l0(e10, t11) }, addIssue: { value: (t11) => {
|
|
15485
15491
|
e10.issues.push(t11), e10.message = JSON.stringify(e10.issues, si, 2);
|
|
15486
15492
|
} }, addIssues: { value: (t11) => {
|
|
15487
15493
|
e10.issues.push(...t11), e10.message = JSON.stringify(e10.issues, si, 2);
|
|
15488
15494
|
} }, isEmpty: { get: () => 0 === e10.issues.length } });
|
|
15489
|
-
},
|
|
15490
|
-
e.s(["ZodError", 0,
|
|
15495
|
+
}, fB = o5("ZodError", fq), fM = o5("ZodError", fq, { Parent: Error });
|
|
15496
|
+
e.s(["ZodError", 0, fB, "ZodRealError", 0, fM], 675537);
|
|
15491
15497
|
let fF = l3(fM), fZ = l8(fM), fH = l7(fM), fV = dt(fM), fJ = dn(fM), fK = da(fM), fW = dl(fM), fQ = dc(fM), fG = dp(fM), fX = dm(fM), fY = dg(fM), f0 = dw(fM);
|
|
15492
15498
|
e.s(["decode", 0, fK, "decodeAsync", 0, fQ, "encode", 0, fJ, "encodeAsync", 0, fW, "parse", 0, fF, "parseAsync", 0, fZ, "safeDecode", 0, fX, "safeDecodeAsync", 0, f0, "safeEncode", 0, fG, "safeEncodeAsync", 0, fY, "safeParse", 0, fH, "safeParseAsync", 0, fV], 386895);
|
|
15493
15499
|
let f1 = /* @__PURE__ */ new WeakMap();
|
|
@@ -15596,7 +15602,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15596
15602
|
return this.check(pp());
|
|
15597
15603
|
} });
|
|
15598
15604
|
}), f3 = o5("ZodString", (e10, t10) => {
|
|
15599
|
-
d_.init(e10, t10), f2.init(e10, t10), e10.email = (t11) => e10.check(c8(f9, t11)), e10.url = (t11) => e10.check(un(ms, t11)), e10.jwt = (t11) => e10.check(uv(
|
|
15605
|
+
d_.init(e10, t10), f2.init(e10, t10), e10.email = (t11) => e10.check(c8(f9, t11)), e10.url = (t11) => e10.check(un(ms, t11)), e10.jwt = (t11) => e10.check(uv(mq, t11)), e10.emoji = (t11) => e10.check(ui(mc, t11)), e10.guid = (t11) => e10.check(c9(me, t11)), e10.uuid = (t11) => e10.check(c7(mr, t11)), e10.uuidv4 = (t11) => e10.check(ue(mr, t11)), e10.uuidv6 = (t11) => e10.check(ut(mr, t11)), e10.uuidv7 = (t11) => e10.check(ur(mr, t11)), e10.nanoid = (t11) => e10.check(ua(mp, t11)), e10.guid = (t11) => e10.check(c9(me, t11)), e10.cuid = (t11) => e10.check(uo(mm, t11)), e10.cuid2 = (t11) => e10.check(us(mg, t11)), e10.ulid = (t11) => e10.check(ul(mw, t11)), e10.base64 = (t11) => e10.check(ug(mN, t11)), e10.base64url = (t11) => e10.check(uy(mP, t11)), e10.xid = (t11) => e10.check(ud(mb, t11)), e10.ksuid = (t11) => e10.check(uc(m_, t11)), e10.ipv4 = (t11) => e10.check(uu(mA, t11)), e10.ipv6 = (t11) => e10.check(up(m$, t11)), e10.cidrv4 = (t11) => e10.check(um(mR, t11)), e10.cidrv6 = (t11) => e10.check(uh(mC, t11)), e10.e164 = (t11) => e10.check(uw(mL, t11)), e10.datetime = (t11) => e10.check(fU(t11)), e10.date = (t11) => e10.check(fD(t11)), e10.time = (t11) => e10.check(fj(t11)), e10.duration = (t11) => e10.check(fz(t11));
|
|
15600
15606
|
});
|
|
15601
15607
|
function f5(e10) {
|
|
15602
15608
|
return c3(f3, e10);
|
|
@@ -15688,13 +15694,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15688
15694
|
return uu(mA, e10);
|
|
15689
15695
|
}
|
|
15690
15696
|
let mS = o5("ZodMAC", (e10, t10) => {
|
|
15691
|
-
|
|
15697
|
+
dB.init(e10, t10), f8.init(e10, t10);
|
|
15692
15698
|
});
|
|
15693
15699
|
function mE(e10) {
|
|
15694
15700
|
return uf(mS, e10);
|
|
15695
15701
|
}
|
|
15696
15702
|
let m$ = o5("ZodIPv6", (e10, t10) => {
|
|
15697
|
-
|
|
15703
|
+
dq.init(e10, t10), f8.init(e10, t10);
|
|
15698
15704
|
});
|
|
15699
15705
|
function mT(e10) {
|
|
15700
15706
|
return up(m$, e10);
|
|
@@ -15729,11 +15735,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15729
15735
|
function mz(e10) {
|
|
15730
15736
|
return uw(mL, e10);
|
|
15731
15737
|
}
|
|
15732
|
-
let
|
|
15738
|
+
let mq = o5("ZodJWT", (e10, t10) => {
|
|
15733
15739
|
dQ.init(e10, t10), f8.init(e10, t10);
|
|
15734
15740
|
});
|
|
15735
|
-
function
|
|
15736
|
-
return uv(
|
|
15741
|
+
function mB(e10) {
|
|
15742
|
+
return uv(mq, e10);
|
|
15737
15743
|
}
|
|
15738
15744
|
let mM = o5("ZodCustomStringFormat", (e10, t10) => {
|
|
15739
15745
|
dG.init(e10, t10), f8.init(e10, t10);
|
|
@@ -15847,13 +15853,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15847
15853
|
d3.init(e10, t10), f6.init(e10, t10), e10._zod.processJSONSchema = (t11, r10, n10) => p5(e10, t11, r10, n10);
|
|
15848
15854
|
});
|
|
15849
15855
|
function hn(e10) {
|
|
15850
|
-
return
|
|
15856
|
+
return uq(hr, e10);
|
|
15851
15857
|
}
|
|
15852
15858
|
let hi = o5("ZodAny", (e10, t10) => {
|
|
15853
15859
|
d5.init(e10, t10), f6.init(e10, t10), e10._zod.processJSONSchema = (t11, r10, n10) => fe(e10, t11, r10, n10);
|
|
15854
15860
|
});
|
|
15855
15861
|
function ha() {
|
|
15856
|
-
return
|
|
15862
|
+
return uB(hi);
|
|
15857
15863
|
}
|
|
15858
15864
|
let ho = o5("ZodUnknown", (e10, t10) => {
|
|
15859
15865
|
d8.init(e10, t10), f6.init(e10, t10), e10._zod.processJSONSchema = (t11, r10, n10) => ft(e10, t11, r10, n10);
|
|
@@ -15898,11 +15904,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15898
15904
|
return pf(hm, e10, t10);
|
|
15899
15905
|
}
|
|
15900
15906
|
function hg(e10) {
|
|
15901
|
-
return
|
|
15907
|
+
return hq(Object.keys(e10._zod.def.shape));
|
|
15902
15908
|
}
|
|
15903
15909
|
let hy = o5("ZodObject", (e10, t10) => {
|
|
15904
15910
|
cs.init(e10, t10), f6.init(e10, t10), e10._zod.processJSONSchema = (t11, r10, n10) => fh(e10, t11, r10, n10), pJ.defineLazy(e10, "shape", () => t10.shape), f4(e10, "ZodObject", { keyof() {
|
|
15905
|
-
return
|
|
15911
|
+
return hq(Object.keys(this._zod.def.shape));
|
|
15906
15912
|
}, catchall(e11) {
|
|
15907
15913
|
return this.clone({ ...this._zod.def, catchall: e11 });
|
|
15908
15914
|
}, passthrough() {
|
|
@@ -16009,10 +16015,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16009
16015
|
return new hz({ ...t10, checks: [], ...pJ.normalizeParams(n10), entries: i10 });
|
|
16010
16016
|
};
|
|
16011
16017
|
});
|
|
16012
|
-
function
|
|
16018
|
+
function hq(e10, t10) {
|
|
16013
16019
|
return new hz({ type: "enum", entries: Array.isArray(e10) ? Object.fromEntries(e10.map((e11) => [e11, e11])) : e10, ...pJ.normalizeParams(t10) });
|
|
16014
16020
|
}
|
|
16015
|
-
function
|
|
16021
|
+
function hB(e10, t10) {
|
|
16016
16022
|
return new hz({ type: "enum", entries: e10, ...pJ.normalizeParams(t10) });
|
|
16017
16023
|
}
|
|
16018
16024
|
let hM = o5("ZodLiteral", (e10, t10) => {
|
|
@@ -16105,7 +16111,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16105
16111
|
return uJ(gt, e10);
|
|
16106
16112
|
}
|
|
16107
16113
|
let gn = o5("ZodPipe", (e10, t10) => {
|
|
16108
|
-
|
|
16114
|
+
cq.init(e10, t10), f6.init(e10, t10), e10._zod.processJSONSchema = (t11, r10, n10) => fk(e10, t11, r10, n10), e10.in = t10.in, e10.out = t10.out;
|
|
16109
16115
|
});
|
|
16110
16116
|
function gi(e10, t10) {
|
|
16111
16117
|
return new gn({ type: "pipe", in: e10, out: t10 });
|
|
@@ -16166,7 +16172,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16166
16172
|
return pz(gv, e10, t10);
|
|
16167
16173
|
}
|
|
16168
16174
|
function gx(e10, t10) {
|
|
16169
|
-
return
|
|
16175
|
+
return pq(e10, t10);
|
|
16170
16176
|
}
|
|
16171
16177
|
let gA = pM, gk = pF;
|
|
16172
16178
|
function gS(e10, t10 = {}) {
|
|
@@ -16290,8 +16296,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16290
16296
|
}, "string", 0, function(e10) {
|
|
16291
16297
|
return c5(f3, e10);
|
|
16292
16298
|
}], 599780);
|
|
16293
|
-
var
|
|
16294
|
-
let
|
|
16299
|
+
var gq = e.i(599780), gq = gq;
|
|
16300
|
+
let gB = (e10) => (t10, r10, n10) => {
|
|
16295
16301
|
let i10 = function(e11, t11) {
|
|
16296
16302
|
let r11 = {};
|
|
16297
16303
|
for (let [n11, i11] of oC(t11.headers?.get("cookie") || "")) n11.startsWith(e11) && (r11[n11] = i11);
|
|
@@ -16322,7 +16328,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16322
16328
|
}, clean: () => Object.values(o10()), setCookies(e11) {
|
|
16323
16329
|
for (let t11 of e11) n10.setCookie(t11.name, t11.value, t11.attributes);
|
|
16324
16330
|
} };
|
|
16325
|
-
}, gM =
|
|
16331
|
+
}, gM = gB("Session"), gF = gB("Account");
|
|
16326
16332
|
function gZ(e10, t10) {
|
|
16327
16333
|
let r10 = e10.getCookie(t10);
|
|
16328
16334
|
if (r10) return r10;
|
|
@@ -16346,7 +16352,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16346
16352
|
}
|
|
16347
16353
|
return null;
|
|
16348
16354
|
}
|
|
16349
|
-
let gJ = hW(hw({ disableCookieCache:
|
|
16355
|
+
let gJ = hW(hw({ disableCookieCache: gq.boolean().meta({ description: "Disable cookie cache and fetch session from database" }).optional(), disableRefresh: gq.boolean().meta({ description: "Disable session refresh. Useful for checking session status, without updating the session" }).optional() }));
|
|
16350
16356
|
function gK(e10) {
|
|
16351
16357
|
return e10 ? "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
16352
16358
|
}
|
|
@@ -16388,7 +16394,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16388
16394
|
let r10 = { importKey: async (t11, r11) => oZ().importKey("raw", "string" == typeof t11 ? new TextEncoder().encode(t11) : t11, { name: "HMAC", hash: { name: e10 } }, false, [r11]), sign: async (e11, n10) => {
|
|
16389
16395
|
"string" == typeof e11 && (e11 = await r10.importKey(e11, "sign"));
|
|
16390
16396
|
let i10 = await oZ().sign("HMAC", e11, "string" == typeof n10 ? new TextEncoder().encode(n10) : n10);
|
|
16391
|
-
return "hex" === t10 ?
|
|
16397
|
+
return "hex" === t10 ? nB(i10) : "base64" === t10 || "base64url" === t10 || "base64urlnopad" === t10 ? gX.encode(i10, { padding: "base64urlnopad" !== t10 }) : i10;
|
|
16392
16398
|
}, verify: async (e11, n10, i10) => ("string" == typeof e11 && (e11 = await r10.importKey(e11, "verify")), "hex" === t10 && (i10 = ((e12) => {
|
|
16393
16399
|
if (!e12) return "";
|
|
16394
16400
|
if ("string" == typeof e12) {
|
|
@@ -17204,13 +17210,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17204
17210
|
let r10 = (await e10.context.internalAdapter.findAccounts(t10.userId))?.find((e11) => "credential" === e11.providerId), n10 = r10?.password;
|
|
17205
17211
|
return !!r10 && !!n10 && await e10.context.password.verify({ hash: n10, password: t10.password });
|
|
17206
17212
|
}
|
|
17207
|
-
async function
|
|
17213
|
+
async function yq(e10, t10) {
|
|
17208
17214
|
let r10 = (await t10.context.internalAdapter.findAccounts(e10))?.find((e11) => "credential" === e11.providerId), n10 = r10?.password, i10 = t10.body.password;
|
|
17209
17215
|
if (!r10 || !n10 || !i10) throw i10 && await t10.context.password.hash(i10), rz.APIError.from("BAD_REQUEST", of.BASE_ERROR_CODES.INVALID_PASSWORD);
|
|
17210
17216
|
if (!await t10.context.password.verify({ hash: n10, password: i10 })) throw rz.APIError.from("BAD_REQUEST", of.BASE_ERROR_CODES.INVALID_PASSWORD);
|
|
17211
17217
|
return true;
|
|
17212
17218
|
}
|
|
17213
|
-
function
|
|
17219
|
+
function yB(e10) {
|
|
17214
17220
|
return e10 instanceof oN.APIError || e10 instanceof rz.APIError || e10?.name === "APIError";
|
|
17215
17221
|
}
|
|
17216
17222
|
let yM = o2(async () => ({})), yF = o2.create({ use: [yM, o2(async () => ({}))] }), yZ = [yM];
|
|
@@ -17220,7 +17226,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17220
17226
|
return await ys(e11, () => a10(e11));
|
|
17221
17227
|
} catch (r11) {
|
|
17222
17228
|
var t11;
|
|
17223
|
-
throw t11 = e11.responseHeaders,
|
|
17229
|
+
throw t11 = e11.responseHeaders, yB(r11) && t11 && Object.defineProperty(r11, oN.kAPIErrorHeaderSymbol, { enumerable: false, configurable: true, value: t11, writable: false }), r11;
|
|
17224
17230
|
}
|
|
17225
17231
|
};
|
|
17226
17232
|
return n10 ? o6(n10, { ...i10, use: [...i10?.use || [], ...yZ] }, o10) : o6({ ...i10, use: [...i10?.use || [], ...yZ] }, o10);
|
|
@@ -17545,7 +17551,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17545
17551
|
let m10 = ov(e10.context.options, s10.session), h10 = oy(e10.context.options, s10.user);
|
|
17546
17552
|
return e10.json({ session: m10, user: h10 });
|
|
17547
17553
|
} catch (t11) {
|
|
17548
|
-
if (
|
|
17554
|
+
if (yB(t11)) throw t11;
|
|
17549
17555
|
throw e10.context.logger.error("INTERNAL_SERVER_ERROR", t11), rz.APIError.from("INTERNAL_SERVER_ERROR", of.BASE_ERROR_CODES.FAILED_TO_GET_SESSION);
|
|
17550
17556
|
}
|
|
17551
17557
|
}), wf = async (e10, t10) => {
|
|
@@ -17658,12 +17664,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17658
17664
|
function wz(e10) {
|
|
17659
17665
|
return e10 >= 48 && e10 <= 57 ? e10 - 48 : e10 >= 65 && e10 <= 70 ? e10 - 55 : e10 >= 97 && e10 <= 102 ? e10 - 87 : void 0;
|
|
17660
17666
|
}
|
|
17661
|
-
function
|
|
17667
|
+
function wq(e10, t10, r10 = true) {
|
|
17662
17668
|
if (void 0 === t10) return new Uint8Array(e10);
|
|
17663
|
-
if (wR(t10, e10, "output"), r10 && !
|
|
17669
|
+
if (wR(t10, e10, "output"), r10 && !wB(t10)) throw Error("invalid output, must be aligned");
|
|
17664
17670
|
return t10;
|
|
17665
17671
|
}
|
|
17666
|
-
function
|
|
17672
|
+
function wB(e10) {
|
|
17667
17673
|
return e10.byteOffset % 4 == 0;
|
|
17668
17674
|
}
|
|
17669
17675
|
function wM(e10) {
|
|
@@ -17743,14 +17749,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17743
17749
|
U10 = L2 >>> 13, L2 &= 8191, L2 += 5 * m10 * $10 + 5 * f10 * T10 + 5 * p10 * R10 + 5 * u10 * O10 + 5 * c10 * C10, U10 += L2 >>> 13, L2 &= 8191;
|
|
17744
17750
|
let z2 = U10 + x10 * c10 + A10 * d10 + k10 * l10 + S10 * s10 + E10 * o10;
|
|
17745
17751
|
U10 = z2 >>> 13, z2 &= 8191, z2 += $10 * a10 + 5 * m10 * T10 + 5 * f10 * R10 + 5 * p10 * O10 + 5 * u10 * C10, U10 += z2 >>> 13, z2 &= 8191;
|
|
17746
|
-
let
|
|
17747
|
-
U10 =
|
|
17748
|
-
let
|
|
17749
|
-
U10 =
|
|
17752
|
+
let q2 = U10 + x10 * u10 + A10 * c10 + k10 * d10 + S10 * l10 + E10 * s10;
|
|
17753
|
+
U10 = q2 >>> 13, q2 &= 8191, q2 += $10 * o10 + T10 * a10 + 5 * m10 * R10 + 5 * f10 * O10 + 5 * p10 * C10, U10 += q2 >>> 13, q2 &= 8191;
|
|
17754
|
+
let B2 = U10 + x10 * p10 + A10 * u10 + k10 * c10 + S10 * d10 + E10 * l10;
|
|
17755
|
+
U10 = B2 >>> 13, B2 &= 8191, B2 += $10 * s10 + T10 * o10 + R10 * a10 + 5 * m10 * O10 + 5 * f10 * C10, U10 += B2 >>> 13, B2 &= 8191;
|
|
17750
17756
|
let M2 = U10 + x10 * f10 + A10 * p10 + k10 * u10 + S10 * c10 + E10 * d10;
|
|
17751
17757
|
U10 = M2 >>> 13, M2 &= 8191, M2 += $10 * l10 + T10 * s10 + R10 * o10 + O10 * a10 + 5 * m10 * C10, U10 += M2 >>> 13, M2 &= 8191;
|
|
17752
17758
|
let F2 = U10 + x10 * m10 + A10 * f10 + k10 * p10 + S10 * u10 + E10 * c10;
|
|
17753
|
-
U10 = F2 >>> 13, F2 &= 8191, F2 += $10 * d10 + T10 * l10 + R10 * s10 + O10 * o10 + C10 * a10, U10 += F2 >>> 13, F2 &= 8191, N10 = 8191 & (U10 = (U10 = (U10 << 2) + U10 | 0) + N10 | 0), U10 >>>= 13, D10 += U10, n10[0] = N10, n10[1] = D10, n10[2] = P10, n10[3] = j10, n10[4] = L2, n10[5] = z2, n10[6] =
|
|
17759
|
+
U10 = F2 >>> 13, F2 &= 8191, F2 += $10 * d10 + T10 * l10 + R10 * s10 + O10 * o10 + C10 * a10, U10 += F2 >>> 13, F2 &= 8191, N10 = 8191 & (U10 = (U10 = (U10 << 2) + U10 | 0) + N10 | 0), U10 >>>= 13, D10 += U10, n10[0] = N10, n10[1] = D10, n10[2] = P10, n10[3] = j10, n10[4] = L2, n10[5] = z2, n10[6] = q2, n10[7] = B2, n10[8] = M2, n10[9] = F2;
|
|
17754
17760
|
}
|
|
17755
17761
|
finalize() {
|
|
17756
17762
|
let { h: e10, pad: t10 } = this, r10 = new Uint16Array(10), n10 = e10[1] >>> 13;
|
|
@@ -17820,12 +17826,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17820
17826
|
if ("function" != typeof e10) throw Error("core must be a function");
|
|
17821
17827
|
return wT(a10), wT(s10), w$(o10), w$(n10), (t11, r11, l10, d10, c10 = 0) => {
|
|
17822
17828
|
let u10, p10;
|
|
17823
|
-
if (wR(t11, void 0, "key"), wR(r11, void 0, "nonce"), wR(l10, void 0, "data"), d10 =
|
|
17829
|
+
if (wR(t11, void 0, "key"), wR(r11, void 0, "nonce"), wR(l10, void 0, "data"), d10 = wq(l10.length, d10, false), wT(c10), c10 < 0 || c10 >= wW) throw Error("arx: counter overflow");
|
|
17824
17830
|
let f10 = [], m10 = t11.length;
|
|
17825
17831
|
if (32 === m10) f10.push(u10 = wM(t11)), p10 = wJ;
|
|
17826
17832
|
else if (16 === m10 && n10) (u10 = new Uint8Array(32)).set(t11), u10.set(t11, 16), p10 = wV, f10.push(u10);
|
|
17827
17833
|
else throw wR(t11, 32, "arx key"), Error("invalid key size");
|
|
17828
|
-
wD &&
|
|
17834
|
+
wD && wB(r11) || f10.push(r11 = wM(r11));
|
|
17829
17835
|
let h10 = wU(u10);
|
|
17830
17836
|
if (i10) {
|
|
17831
17837
|
if (24 !== r11.length) throw Error("arx: extended nonce must be 24 bytes");
|
|
@@ -17846,7 +17852,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17846
17852
|
let y10 = wP(wU(r11));
|
|
17847
17853
|
try {
|
|
17848
17854
|
return !function(e11, t12, r12, n11, i11, a11, o11, s11) {
|
|
17849
|
-
let l11 = i11.length, d11 = new Uint8Array(64), c11 = wU(d11), u11 = wD &&
|
|
17855
|
+
let l11 = i11.length, d11 = new Uint8Array(64), c11 = wU(d11), u11 = wD && wB(i11) && wB(a11), p11 = u11 ? wU(i11) : wQ, f11 = u11 ? wU(a11) : wQ;
|
|
17850
17856
|
if (!wD) {
|
|
17851
17857
|
for (let u12 = 0; u12 < l11; o11++) {
|
|
17852
17858
|
if (e11(t12, r12, n11, c11, o11, s11), wP(c11), o11 >= wW) throw Error("arx: counter overflow");
|
|
@@ -17918,13 +17924,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17918
17924
|
return Object.assign(r10, e10), r10;
|
|
17919
17925
|
})({ blockSize: 64, nonceLength: 24, tagLength: 16, withAAD: true }, (e10, t10, r10) => ({ encrypt(n10, i10) {
|
|
17920
17926
|
let a10 = n10.length;
|
|
17921
|
-
(i10 =
|
|
17927
|
+
(i10 = wq(a10 + 16, i10, false)).set(n10);
|
|
17922
17928
|
let o10 = i10.subarray(0, -16);
|
|
17923
17929
|
w1(e10, t10, o10, o10, 1);
|
|
17924
17930
|
let s10 = w3(w1, e10, t10, o10, r10);
|
|
17925
17931
|
return i10.set(s10, a10), wN(s10), i10;
|
|
17926
17932
|
}, decrypt(n10, i10) {
|
|
17927
|
-
i10 =
|
|
17933
|
+
i10 = wq(n10.length - 16, i10, false);
|
|
17928
17934
|
let a10 = n10.subarray(0, -16), o10 = n10.subarray(-16), s10 = w3(w1, e10, t10, a10, r10);
|
|
17929
17935
|
if (!function(e11, t11) {
|
|
17930
17936
|
if (e11 = wR(e11), t11 = wR(t11), e11.length !== t11.length) return false;
|
|
@@ -18132,7 +18138,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18132
18138
|
await e10.context.runInBackgroundOrAwait(e10.context.options.emailVerification.sendVerificationEmail({ user: l10, url: r11, token: t12 }, e10.request));
|
|
18133
18139
|
}
|
|
18134
18140
|
} catch (t11) {
|
|
18135
|
-
if (e10.context.logger.error(t11),
|
|
18141
|
+
if (e10.context.logger.error(t11), yB(t11)) return { error: t11.message, data: null, isRegister: false };
|
|
18136
18142
|
return { error: "unable to create user", data: null, isRegister: false };
|
|
18137
18143
|
}
|
|
18138
18144
|
}
|
|
@@ -18149,8 +18155,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18149
18155
|
return;
|
|
18150
18156
|
}
|
|
18151
18157
|
}
|
|
18152
|
-
var vu = rz,
|
|
18153
|
-
let vp = hb({ callbackURL: f5(), codeVerifier: f5(), errorURL: f5().optional(), newUserURL: f5().optional(), expiresAt: mK(), oauthState: f5().optional(), link: hw({ email: f5(), userId:
|
|
18158
|
+
var vu = rz, gq = gq;
|
|
18159
|
+
let vp = hb({ callbackURL: f5(), codeVerifier: f5(), errorURL: f5().optional(), newUserURL: f5().optional(), expiresAt: mK(), oauthState: f5().optional(), link: hw({ email: f5(), userId: gq.string() }).optional(), requestSignUp: m4().optional() });
|
|
18154
18160
|
Object.keys(vp.shape);
|
|
18155
18161
|
var vf = class extends vu.BetterAuthError {
|
|
18156
18162
|
code;
|
|
@@ -18333,14 +18339,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18333
18339
|
}
|
|
18334
18340
|
return t10;
|
|
18335
18341
|
}
|
|
18336
|
-
var
|
|
18342
|
+
var vq = class e10 extends Error {
|
|
18337
18343
|
constructor(t10, r10) {
|
|
18338
18344
|
super(r10 || JSON.stringify(t10, null, 2)), this.issues = t10, Object.setPrototypeOf(this, e10.prototype);
|
|
18339
18345
|
}
|
|
18340
18346
|
};
|
|
18341
|
-
async function
|
|
18347
|
+
async function vB(e10, t10) {
|
|
18342
18348
|
let r10 = await e10["~standard"].validate(t10);
|
|
18343
|
-
if (r10.issues) throw new
|
|
18349
|
+
if (r10.issues) throw new vq(r10.issues);
|
|
18344
18350
|
return r10.value;
|
|
18345
18351
|
}
|
|
18346
18352
|
var vM = ["get", "post", "put", "patch", "delete"], vF = async (e10, t10) => {
|
|
@@ -18420,7 +18426,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18420
18426
|
let e12 = await x10.text(), t11 = null != (a10 = I10.jsonParser) ? a10 : vL;
|
|
18421
18427
|
r11.data = await t11(e12);
|
|
18422
18428
|
} else r11.data = await x10[e11]();
|
|
18423
|
-
for (let e12 of ((null == I10 ? void 0 : I10.output) && I10.output && !I10.disableValidation && (r11.data = await
|
|
18429
|
+
for (let e12 of ((null == I10 ? void 0 : I10.output) && I10.output && !I10.disableValidation && (r11.data = await vB(I10.output, r11.data)), u10.onSuccess)) e12 && await e12(vR(vT({}, r11), { response: (null == (o10 = null == t10 ? void 0 : t10.hookOptions) ? void 0 : o10.cloneResponse) ? x10.clone() : x10 }));
|
|
18424
18430
|
return (null == t10 ? void 0 : t10.throw) ? r11.data : { data: r11.data, error: null };
|
|
18425
18431
|
}
|
|
18426
18432
|
let k10 = null != (s10 = null == t10 ? void 0 : t10.jsonParser) ? s10 : vL, S10 = await x10.text(), E10 = function(e11) {
|
|
@@ -19373,7 +19379,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19373
19379
|
if (i10 || !n10 || n10.errcode) return null;
|
|
19374
19380
|
let a10 = await e10.mapProfileToUser?.(n10);
|
|
19375
19381
|
return { user: { id: n10.unionid || n10.openid || r10, name: n10.nickname, email: n10.email || `${n10.unionid || n10.openid || r10}@wechat.invalid`, image: n10.headimgurl, emailVerified: false, ...a10 }, data: n10 };
|
|
19376
|
-
}, options: e10 }) }, bp =
|
|
19382
|
+
}, options: e10 }) }, bp = hq(Object.keys(bu)).or(f5()), bf = yH("/list-accounts", { method: "GET", use: [wh], metadata: { openapi: { operationId: "listUserAccounts", description: "List all accounts linked to the user", responses: { 200: { description: "Success", content: { "application/json": { schema: { type: "array", items: { type: "object", properties: { id: { type: "string" }, providerId: { type: "string" }, createdAt: { type: "string", format: "date-time" }, updatedAt: { type: "string", format: "date-time" }, accountId: { type: "string" }, userId: { type: "string" }, scopes: { type: "array", items: { type: "string" } } }, required: ["id", "providerId", "createdAt", "updatedAt", "accountId", "userId", "scopes"] } } } } } } } } }, async (e10) => {
|
|
19377
19383
|
let t10 = e10.context.session, r10 = await e10.context.internalAdapter.findAccounts(t10.user.id);
|
|
19378
19384
|
return e10.json(r10.map((t11) => {
|
|
19379
19385
|
let { scope: r11, ...n10 } = function(e11, t12) {
|
|
@@ -19533,7 +19539,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19533
19539
|
try {
|
|
19534
19540
|
n10 = await vd(e10, { userInfo: { ...b10, id: I10, email: b10.email, name: b10.name || "" }, account: _10, callbackURL: p10, disableSignUp: w10.disableImplicitSignUp && !g10 || w10.options?.disableSignUp, overrideUserInfo: w10.options?.overrideUserInfoOnSignIn });
|
|
19535
19541
|
} catch (t11) {
|
|
19536
|
-
throw
|
|
19542
|
+
throw yB(t11) && t11.body?.code && wI(e10, y10, t11.body.code, t11.body.message), t11;
|
|
19537
19543
|
}
|
|
19538
19544
|
n10.error && (e10.context.logger.error(n10.error.split(" ").join("_")), wI(e10, y10, n10.error.split(" ").join("_")));
|
|
19539
19545
|
let { session: x10, user: A10 } = n10.data;
|
|
@@ -19962,7 +19968,7 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
19962
19968
|
let a10 = (await e10.context.internalAdapter.findAccounts(r10.user.id)).find((e11) => "credential" === e11.providerId && e11.password), o10 = await e10.context.password.hash(t10);
|
|
19963
19969
|
if (!a10) return await e10.context.internalAdapter.linkAccount({ userId: r10.user.id, providerId: "credential", accountId: r10.user.id, password: o10 }), e10.json({ status: true });
|
|
19964
19970
|
throw rz.APIError.from("BAD_REQUEST", of.BASE_ERROR_CODES.PASSWORD_ALREADY_SET);
|
|
19965
|
-
}),
|
|
19971
|
+
}), bq = yH("/delete-user", { method: "POST", use: [wg], body: hw({ callbackURL: f5().meta({ description: "The callback URL to redirect to after the user is deleted" }).optional(), password: f5().meta({ description: "The password of the user is required to delete the user" }).optional(), token: f5().meta({ description: "The token to delete the user is required" }).optional() }), metadata: { openapi: { operationId: "deleteUser", description: "Delete the user", requestBody: { content: { "application/json": { schema: { type: "object", properties: { callbackURL: { type: "string", description: "The callback URL to redirect to after the user is deleted" }, password: { type: "string", description: "The user's password. Required if session is not fresh" }, token: { type: "string", description: "The deletion verification token" } } } } } }, responses: { 200: { description: "User deletion processed successfully", content: { "application/json": { schema: { type: "object", properties: { success: { type: "boolean", description: "Indicates if the operation was successful" }, message: { type: "string", enum: ["User deleted", "Verification email sent"], description: "Status message of the deletion process" } }, required: ["success", "message"] } } } } } } } }, async (e10) => {
|
|
19966
19972
|
if (!e10.context.options.user?.deleteUser?.enabled) throw e10.context.logger.error("Delete user is disabled. Enable it in the options"), rz.APIError.fromStatus("NOT_FOUND");
|
|
19967
19973
|
let t10 = e10.context.session;
|
|
19968
19974
|
if (e10.body.password) {
|
|
@@ -19970,7 +19976,7 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
19970
19976
|
if (!r11 || !r11.password) throw rz.APIError.from("BAD_REQUEST", of.BASE_ERROR_CODES.CREDENTIAL_ACCOUNT_NOT_FOUND);
|
|
19971
19977
|
if (!await e10.context.password.verify({ hash: r11.password, password: e10.body.password })) throw rz.APIError.from("BAD_REQUEST", of.BASE_ERROR_CODES.INVALID_PASSWORD);
|
|
19972
19978
|
}
|
|
19973
|
-
if (e10.body.token) return await
|
|
19979
|
+
if (e10.body.token) return await bB({ ...e10, query: { token: e10.body.token } }), e10.json({ success: true, message: "User deleted" });
|
|
19974
19980
|
if (e10.context.options.user.deleteUser?.sendDeleteAccountVerification) {
|
|
19975
19981
|
let r11 = wk(32, "0-9", "a-z");
|
|
19976
19982
|
await e10.context.internalAdapter.createVerificationValue({ value: t10.user.id, identifier: `delete-account-${r11}`, expiresAt: new Date(Date.now() + 1e3 * (e10.context.options.user.deleteUser?.deleteTokenExpiresIn || 86400)) });
|
|
@@ -19985,7 +19991,7 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
19985
19991
|
r10 && await r10(t10.user, e10.request), await e10.context.internalAdapter.deleteUser(t10.user.id), await e10.context.internalAdapter.deleteUserSessions(t10.user.id), g8(e10);
|
|
19986
19992
|
let n10 = e10.context.options.user.deleteUser?.afterDelete;
|
|
19987
19993
|
return n10 && await n10(t10.user, e10.request), e10.json({ success: true, message: "User deleted" });
|
|
19988
|
-
}),
|
|
19994
|
+
}), bB = yH("/delete-user/callback", { method: "GET", query: hw({ token: f5().meta({ description: "The token to verify the deletion request" }), callbackURL: f5().meta({ description: "The URL to redirect to after deletion" }).optional() }), use: [yX((e10) => e10.query.callbackURL)], metadata: { openapi: { description: "Callback to complete user deletion with verification token", responses: { 200: { description: "User successfully deleted", content: { "application/json": { schema: { type: "object", properties: { success: { type: "boolean", description: "Indicates if the deletion was successful" }, message: { type: "string", enum: ["User deleted"], description: "Confirmation message" } }, required: ["success", "message"] } } } } } } } }, async (e10) => {
|
|
19989
19995
|
if (!e10.context.options.user?.deleteUser?.enabled) throw e10.context.logger.error("Delete user is disabled. Enable it in the options"), rz.APIError.from("NOT_FOUND", { message: "Not found", code: "NOT_FOUND" });
|
|
19990
19996
|
let t10 = await wf(e10, { disableCookieCache: r8(e10.context.options) });
|
|
19991
19997
|
if (!t10) throw rz.APIError.from("NOT_FOUND", of.BASE_ERROR_CODES.FAILED_TO_GET_USER_INFO);
|
|
@@ -20051,7 +20057,7 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
20051
20057
|
}
|
|
20052
20058
|
if (!t11) continue;
|
|
20053
20059
|
let o10 = bZ.get(a10.handler) ?? "unknown", s10 = r10.path ?? "/:virtual", l10 = await (0, yc.withSpan)(`hook before ${s10} ${o10}`, { [yl.ATTR_HOOK_TYPE]: "before", [yd.ATTR_HTTP_ROUTE]: s10, [yl.ATTR_CONTEXT]: o10, [yl.ATTR_OPERATION_ID]: n10 }, () => a10.handler({ ...e10, returnHeaders: true })).catch((t12) => {
|
|
20054
|
-
throw
|
|
20060
|
+
throw yB(t12) && (0, rj.shouldPublishLog)(e10.context.logger.level, "debug") && (t12.stack = t12.errorStack), t12;
|
|
20055
20061
|
});
|
|
20056
20062
|
bV(e10.context, l10?.headers);
|
|
20057
20063
|
let d10 = l10?.response;
|
|
@@ -20072,7 +20078,7 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
20072
20078
|
for (let i10 of t10) {
|
|
20073
20079
|
if (!i10.matcher(e10)) continue;
|
|
20074
20080
|
let t11 = bZ.get(i10.handler) ?? "unknown", a10 = r10.path ?? "/:virtual", o10 = await (0, yc.withSpan)(`hook after ${a10} ${t11}`, { [yl.ATTR_HOOK_TYPE]: "after", [yd.ATTR_HTTP_ROUTE]: a10, [yl.ATTR_CONTEXT]: t11, [yl.ATTR_OPERATION_ID]: n10 }, () => i10.handler(e10)).catch((t12) => {
|
|
20075
|
-
if (
|
|
20081
|
+
if (yB(t12)) return (0, rj.shouldPublishLog)(e10.context.logger.level, "debug") && (t12.stack = t12.errorStack), { response: t12, headers: bJ(t12) };
|
|
20076
20082
|
throw t12;
|
|
20077
20083
|
});
|
|
20078
20084
|
bV(e10.context, o10.headers), void 0 !== o10.response && (e10.context.returned = o10.response);
|
|
@@ -20100,13 +20106,13 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
20100
20106
|
}
|
|
20101
20107
|
l10.asResponse = false, l10.returnHeaders = true, l10.returnStatus = true;
|
|
20102
20108
|
let y10 = await ys(l10, () => (0, yc.withSpan)(`handler ${n10}`, { [yd.ATTR_HTTP_ROUTE]: n10, [yl.ATTR_OPERATION_ID]: r10 }, () => e10(l10))).catch((e11) => {
|
|
20103
|
-
if (
|
|
20109
|
+
if (yB(e11)) return { response: e11, status: e11.statusCode, headers: bJ(e11) };
|
|
20104
20110
|
throw e11;
|
|
20105
20111
|
});
|
|
20106
20112
|
if (y10 instanceof Response) return y10;
|
|
20107
20113
|
l10.context.returned = y10.response, l10.context.responseHeaders = y10.headers ?? void 0;
|
|
20108
20114
|
let w10 = await bW(l10, h10, e10, r10);
|
|
20109
|
-
if (void 0 !== w10.response && (y10.response = w10.response), y10.headers = w10.headers ?? y10.headers,
|
|
20115
|
+
if (void 0 !== w10.response && (y10.response = w10.response), y10.headers = w10.headers ?? y10.headers, yB(y10.response) && (0, rj.shouldPublishLog)(l10.context.logger.level, "debug") && (y10.response.stack = y10.response.errorStack), yB(y10.response) && !s10) throw y10.headers && Object.defineProperty(y10.response, oN.kAPIErrorHeaderSymbol, { enumerable: false, configurable: true, writable: false, value: y10.headers }), y10.response;
|
|
20110
20116
|
return s10 ? oF(y10.response, { headers: y10.headers ?? void 0, status: y10.status }) : t10.returnHeaders ? t10.returnStatus ? { headers: y10.headers, response: y10.response, status: y10.status } : { headers: y10.headers, response: y10.response } : t10.returnStatus ? { response: y10.response, status: y10.status } : y10.response;
|
|
20111
20117
|
}));
|
|
20112
20118
|
}
|
|
@@ -20190,7 +20196,7 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
20190
20196
|
try {
|
|
20191
20197
|
if (!(t11 = await e11.context.internalAdapter.createUser({ email: h10, name: n11, image: o10, ...m10, emailVerified: false }))) throw rz.APIError.from("BAD_REQUEST", of.BASE_ERROR_CODES.FAILED_TO_CREATE_USER);
|
|
20192
20198
|
} catch (t12) {
|
|
20193
|
-
if ((0, rG.isDevelopment)() && e11.context.logger.error("Failed to create user", t12),
|
|
20199
|
+
if ((0, rG.isDevelopment)() && e11.context.logger.error("Failed to create user", t12), yB(t12)) throw t12;
|
|
20194
20200
|
throw e11.context.logger?.error("Failed to create user", t12), rz.APIError.from("UNPROCESSABLE_ENTITY", of.BASE_ERROR_CODES.FAILED_TO_CREATE_USER);
|
|
20195
20201
|
}
|
|
20196
20202
|
if (!t11) throw rz.APIError.from("UNPROCESSABLE_ENTITY", of.BASE_ERROR_CODES.FAILED_TO_CREATE_USER);
|
|
@@ -20242,14 +20248,14 @@ ${n11?.disableBackgroundGrid ? "" : `
|
|
|
20242
20248
|
if (void 0 === n11 && void 0 === r11 && 0 === Object.keys(o10).length) throw rz.APIError.fromStatus("BAD_REQUEST", { message: "No fields to update" });
|
|
20243
20249
|
let s10 = await e11.context.internalAdapter.updateUser(a10.user.id, { name: r11, image: n11, ...o10 }) ?? { ...a10.user, ...void 0 !== r11 && { name: r11 }, ...void 0 !== n11 && { image: n11 }, ...o10 };
|
|
20244
20250
|
return await g3(e11, { session: a10.session, user: s10 }), e11.json({ status: true });
|
|
20245
|
-
}), deleteUser:
|
|
20251
|
+
}), deleteUser: bq, requestPasswordReset: bT, requestPasswordResetCallback: bR, listSessions: yH("/list-sessions", { method: "GET", operationId: "listUserSessions", use: [wy], requireHeaders: true, metadata: { openapi: { operationId: "listUserSessions", description: "List all active sessions for the user", responses: { 200: { description: "Success", content: { "application/json": { schema: { type: "array", items: { $ref: "#/components/schemas/Session" } } } } } } } } }, async (e11) => {
|
|
20246
20252
|
try {
|
|
20247
20253
|
let t11 = (await e11.context.internalAdapter.listSessions(e11.context.session.user.id, { onlyActiveSessions: true })).filter((e12) => e12.expiresAt > /* @__PURE__ */ new Date());
|
|
20248
20254
|
return e11.json(t11.map((t12) => ov(e11.context.options, t12)));
|
|
20249
20255
|
} catch (t11) {
|
|
20250
20256
|
throw e11.context.logger.error(t11), e11.error("INTERNAL_SERVER_ERROR");
|
|
20251
20257
|
}
|
|
20252
|
-
}), revokeSession: ww, revokeSessions: wv, revokeOtherSessions: wb, linkSocialAccount: bm, listUserAccounts: bf, deleteUserCallback:
|
|
20258
|
+
}), revokeSession: ww, revokeSessions: wv, revokeOtherSessions: wb, linkSocialAccount: bm, listUserAccounts: bf, deleteUserCallback: bB, unlinkAccount: bh, refreshToken: bb, getAccessToken: bv, accountInfo: bI, ...r10, ok: bE, error: bS }, e10), middlewares: n10 };
|
|
20253
20259
|
}
|
|
20254
20260
|
async function bY(e10, t10) {
|
|
20255
20261
|
return { database: t10?.database, adapter: t10?.adapter, emailVerification: { sendVerificationEmail: !!e10.emailVerification?.sendVerificationEmail, sendOnSignUp: !!e10.emailVerification?.sendOnSignUp, sendOnSignIn: !!e10.emailVerification?.sendOnSignIn, autoSignInAfterVerification: !!e10.emailVerification?.autoSignInAfterVerification, expiresIn: e10.emailVerification?.expiresIn, beforeEmailVerification: !!e10.emailVerification?.beforeEmailVerification, afterEmailVerification: !!e10.emailVerification?.afterEmailVerification }, emailAndPassword: { enabled: !!e10.emailAndPassword?.enabled, disableSignUp: !!e10.emailAndPassword?.disableSignUp, requireEmailVerification: !!e10.emailAndPassword?.requireEmailVerification, maxPasswordLength: e10.emailAndPassword?.maxPasswordLength, minPasswordLength: e10.emailAndPassword?.minPasswordLength, sendResetPassword: !!e10.emailAndPassword?.sendResetPassword, resetPasswordTokenExpiresIn: e10.emailAndPassword?.resetPasswordTokenExpiresIn, onPasswordReset: !!e10.emailAndPassword?.onPasswordReset, password: { hash: !!e10.emailAndPassword?.password?.hash, verify: !!e10.emailAndPassword?.password?.verify }, autoSignIn: !!e10.emailAndPassword?.autoSignIn, revokeSessionsOnPasswordReset: !!e10.emailAndPassword?.revokeSessionsOnPasswordReset }, socialProviders: await Promise.all(Object.keys(e10.socialProviders || {}).map(async (t11) => {
|
|
@@ -20404,7 +20410,7 @@ To resolve this, you can:
|
|
|
20404
20410
|
return "function" == typeof n11 ? n11({ model: e11, size: r11 }) : "uuid" === n11 ? crypto.randomUUID() : "serial" !== n11 && false !== n11 && (0, yu.generateId)(r11);
|
|
20405
20411
|
}, { publish: x10 } = await It(t10, { adapter: e10.id, database: "function" == typeof t10.database ? "adapter" : r10(t10.database) }), A10 = new Set(t10.plugins.map((e11) => e11.id)), k10 = await yN(t10), S10 = await yL(t10), E10 = { appName: t10.appName || "Better Auth", baseURL: p10 || "", version: (0, yn.getBetterAuthVersion)(), socialProviders: I10, options: t10, oauthConfig: { storeStateStrategy: t10.account?.storeStateStrategy || (s10 ? "database" : "cookie"), skipStateCookieCheck: !!t10.account?.skipStateCookieCheck }, tables: b10, trustedOrigins: k10, trustedProviders: S10, isTrustedOrigin(e11, t11) {
|
|
20406
20412
|
return this.trustedOrigins.some((r11) => r5(e11, r11, t11));
|
|
20407
|
-
}, sessionConfig: { updateAge: t10.session?.updateAge !== void 0 ? t10.session.updateAge : 86400, expiresIn: t10.session?.expiresIn || 604800, freshAge: t10.session?.freshAge === void 0 ? 86400 : t10.session.freshAge, cookieRefreshCache: (a10 = t10.session?.cookieCache?.refreshCache, o10 = t10.session?.cookieCache?.maxAge || 300, s10 && a10 ? (c10.warn("[better-auth] `session.cookieCache.refreshCache` is enabled while `database` or `secondaryStorage` is configured. `refreshCache` is meant for stateless (DB-less) setups. Disabling `refreshCache` \u2014 remove it from your config to silence this warning."), false) : false !== a10 && void 0 !== a10 && (true === a10 ? { enabled: true, updateAge: Math.floor(0.2 * o10) } : { enabled: true, updateAge: void 0 !== a10.updateAge ? a10.updateAge : Math.floor(0.2 * o10) })) }, secret: n10, secretConfig: i10, rateLimit: { ...t10.rateLimit, enabled: t10.rateLimit?.enabled ?? rG.isProduction, window: t10.rateLimit?.window || 10, max: t10.rateLimit?.max || 100, storage: t10.rateLimit?.storage || (t10.secondaryStorage ? "secondary-storage" : "memory") }, authCookies: v10, logger: c10, generateId: _10, session: null, secondaryStorage: t10.secondaryStorage, password: { hash: t10.emailAndPassword?.password?.hash || nF, verify: t10.emailAndPassword?.password?.verify || nH, config: { minPasswordLength: t10.emailAndPassword?.minPasswordLength || 8, maxPasswordLength: t10.emailAndPassword?.maxPasswordLength || 128 }, checkPassword:
|
|
20413
|
+
}, sessionConfig: { updateAge: t10.session?.updateAge !== void 0 ? t10.session.updateAge : 86400, expiresIn: t10.session?.expiresIn || 604800, freshAge: t10.session?.freshAge === void 0 ? 86400 : t10.session.freshAge, cookieRefreshCache: (a10 = t10.session?.cookieCache?.refreshCache, o10 = t10.session?.cookieCache?.maxAge || 300, s10 && a10 ? (c10.warn("[better-auth] `session.cookieCache.refreshCache` is enabled while `database` or `secondaryStorage` is configured. `refreshCache` is meant for stateless (DB-less) setups. Disabling `refreshCache` \u2014 remove it from your config to silence this warning."), false) : false !== a10 && void 0 !== a10 && (true === a10 ? { enabled: true, updateAge: Math.floor(0.2 * o10) } : { enabled: true, updateAge: void 0 !== a10.updateAge ? a10.updateAge : Math.floor(0.2 * o10) })) }, secret: n10, secretConfig: i10, rateLimit: { ...t10.rateLimit, enabled: t10.rateLimit?.enabled ?? rG.isProduction, window: t10.rateLimit?.window || 10, max: t10.rateLimit?.max || 100, storage: t10.rateLimit?.storage || (t10.secondaryStorage ? "secondary-storage" : "memory") }, authCookies: v10, logger: c10, generateId: _10, session: null, secondaryStorage: t10.secondaryStorage, password: { hash: t10.emailAndPassword?.password?.hash || nF, verify: t10.emailAndPassword?.password?.verify || nH, config: { minPasswordLength: t10.emailAndPassword?.minPasswordLength || 8, maxPasswordLength: t10.emailAndPassword?.maxPasswordLength || 128 }, checkPassword: yq }, setNewSession(e11) {
|
|
20408
20414
|
this.newSession = e11;
|
|
20409
20415
|
}, newSession: null, adapter: e10, internalAdapter: yx(e10, { options: t10, logger: c10, hooks: t10.databaseHooks ? [{ source: "user", hooks: t10.databaseHooks }] : [], generateId: _10 }), createAuthCookie: g4(t10), async runMigrations() {
|
|
20410
20416
|
throw new rz.BetterAuthError("runMigrations will be set by the specific init implementation");
|
|
@@ -20423,7 +20429,7 @@ To resolve this, you can:
|
|
|
20423
20429
|
return r7($10) && await $10, E10;
|
|
20424
20430
|
}
|
|
20425
20431
|
let In = async (e10) => {
|
|
20426
|
-
let t10 = await
|
|
20432
|
+
let t10 = await rq(e10), r10 = await Ir(t10, e10, (e11) => (0, rB.getKyselyDatabaseType)(e11) || "unknown");
|
|
20427
20433
|
return r10.runMigrations = async function() {
|
|
20428
20434
|
if (!e10.database || "updateMany" in e10.database) throw new rz.BetterAuthError("Database is not provided or it's an adapter. Migrations are only supported with a database instance.");
|
|
20429
20435
|
let { runMigrations: t11 } = await rJ(e10);
|
|
@@ -20433,7 +20439,7 @@ To resolve this, you can:
|
|
|
20433
20439
|
var Ia = e.i(803480);
|
|
20434
20440
|
let Io = (0, Ia.defineErrorCodes)({ OTP_EXPIRED: "OTP expired", INVALID_OTP: "Invalid OTP", TOO_MANY_ATTEMPTS: "Too many attempts" }), Is = async (e10) => {
|
|
20435
20441
|
let t10 = e10.context.returned;
|
|
20436
|
-
return t10 ? t10 instanceof Response ? 200 !== t10.status ? null : await t10.clone().json() :
|
|
20442
|
+
return t10 ? t10 instanceof Response ? 200 !== t10.status ? null : await t10.clone().json() : yB(t10) ? null : t10 : null;
|
|
20437
20443
|
};
|
|
20438
20444
|
function Il(e10, t10) {
|
|
20439
20445
|
return `${e10}-otp-${t10}`;
|
|
@@ -20482,7 +20488,7 @@ To resolve this, you can:
|
|
|
20482
20488
|
await e10.context.internalAdapter.deleteVerificationByIdentifier(i10), await e10.context.internalAdapter.createVerificationValue({ value: `${o10}:0`, identifier: i10, expiresAt: ox(t10.expiresIn, "sec") });
|
|
20483
20489
|
}), a10;
|
|
20484
20490
|
}
|
|
20485
|
-
let Iw = hw({ email: f5({}).meta({ description: "Email address to send the OTP" }), type:
|
|
20491
|
+
let Iw = hw({ email: f5({}).meta({ description: "Email address to send the OTP" }), type: hq(Ig).meta({ description: "Type of the OTP" }) }), Iv = hw({ email: f5({}).meta({ description: "Email address to send the OTP" }), type: hq(Ig).meta({ required: true, description: "Type of the OTP" }) }), Ib = hw({ email: f5({}).meta({ description: "Email address the OTP was sent to" }), type: hq(Ig).meta({ required: true, description: "Type of the OTP" }) }), II = hw({ email: f5().meta({ description: "Email address the OTP was sent to" }), type: hq(Ig).meta({ required: true, description: "Type of the OTP" }), otp: f5().meta({ required: true, description: "OTP to verify" }) }), I_ = hw({ email: f5({}).meta({ description: "Email address to verify" }), otp: f5().meta({ required: true, description: "OTP to verify" }) }), Ix = hw({ email: f5({}).meta({ description: "Email address to sign in" }), otp: f5().meta({ required: true, description: "OTP sent to the email" }), name: f5().meta({ description: 'User display name. Only used if the user is registering for the first time. Eg: "my-name"' }).optional(), image: f5().meta({ description: "User profile image URL. Only used if the user is registering for the first time." }).optional() }).and(hC(f5(), ha())), IA = hw({ email: f5().meta({ description: "Email address to send the OTP" }) }), Ik = hw({ email: f5().meta({ description: "Email address to send the OTP" }) }), IS = hw({ email: f5().meta({ description: "Email address to reset the password" }), otp: f5().meta({ description: "OTP sent to the email" }), password: f5().meta({ description: "New password" }) }), IE = hw({ newEmail: f5().meta({ description: "New email address to send the OTP" }), otp: f5().optional().meta({ description: "OTP sent to the current email. This is required if changeEmail.verifyCurrentEmail option is set to true" }) }), I$ = hw({ newEmail: f5().meta({ description: "New email address to verify and change to" }), otp: f5().meta({ description: "OTP sent to the new email" }) }), IT = (e10) => wk(e10.otpLength ?? 6, "0-9");
|
|
20486
20492
|
async function IR(e10, t10, r10, n10) {
|
|
20487
20493
|
let i10 = await e10.context.internalAdapter.findVerificationValue(r10);
|
|
20488
20494
|
if (i10 && i10.expiresAt < /* @__PURE__ */ new Date()) throw await e10.context.internalAdapter.deleteVerificationByIdentifier(r10), rz.APIError.from("BAD_REQUEST", Io.OTP_EXPIRED);
|
|
@@ -20492,13 +20498,13 @@ To resolve this, you can:
|
|
|
20492
20498
|
if (d10 >= l10) throw rz.APIError.from("FORBIDDEN", Io.TOO_MANY_ATTEMPTS);
|
|
20493
20499
|
if (!await Ip(e10, t10, o10, n10)) throw await e10.context.internalAdapter.createVerificationValue({ value: `${o10}:${d10 + 1}`, identifier: r10, expiresAt: a10.expiresAt }), rz.APIError.from("BAD_REQUEST", Io.INVALID_OTP);
|
|
20494
20500
|
}
|
|
20495
|
-
let IO = (e10) => wk(e10.otpLength ?? 6, "0-9"), IC = (0, Ia.defineErrorCodes)({ INVALID_DEVICE_CODE: "Invalid device code", EXPIRED_DEVICE_CODE: "Device code has expired", EXPIRED_USER_CODE: "User code has expired", AUTHORIZATION_PENDING: "Authorization pending", ACCESS_DENIED: "Access denied", INVALID_USER_CODE: "Invalid user code", DEVICE_CODE_ALREADY_PROCESSED: "Device code already processed", DEVICE_CODE_NOT_CLAIMED: "Device code has not been claimed by a verifying session; call `GET /device` with the `user_code` while signed in before approving or denying", POLLING_TOO_FREQUENTLY: "Polling too frequently", USER_NOT_FOUND: "User not found", FAILED_TO_CREATE_SESSION: "Failed to create session", INVALID_DEVICE_CODE_STATUS: "Invalid device code status", AUTHENTICATION_REQUIRED: "Authentication required" }), IU = hw({ client_id: f5().meta({ description: "The client ID of the application" }), user_id: f5().meta({ description: "The user ID to which the device code should be pre-bound." }).optional(), scope: f5().meta({ description: "Space-separated list of scopes" }).optional() }), IN = hw({ error:
|
|
20501
|
+
let IO = (e10) => wk(e10.otpLength ?? 6, "0-9"), IC = (0, Ia.defineErrorCodes)({ INVALID_DEVICE_CODE: "Invalid device code", EXPIRED_DEVICE_CODE: "Device code has expired", EXPIRED_USER_CODE: "User code has expired", AUTHORIZATION_PENDING: "Authorization pending", ACCESS_DENIED: "Access denied", INVALID_USER_CODE: "Invalid user code", DEVICE_CODE_ALREADY_PROCESSED: "Device code already processed", DEVICE_CODE_NOT_CLAIMED: "Device code has not been claimed by a verifying session; call `GET /device` with the `user_code` while signed in before approving or denying", POLLING_TOO_FREQUENTLY: "Polling too frequently", USER_NOT_FOUND: "User not found", FAILED_TO_CREATE_SESSION: "Failed to create session", INVALID_DEVICE_CODE_STATUS: "Invalid device code status", AUTHENTICATION_REQUIRED: "Authentication required" }), IU = hw({ client_id: f5().meta({ description: "The client ID of the application" }), user_id: f5().meta({ description: "The user ID to which the device code should be pre-bound." }).optional(), scope: f5().meta({ description: "Space-separated list of scopes" }).optional() }), IN = hw({ error: hq(["invalid_request", "invalid_client"]).meta({ description: "Error code" }), error_description: f5().meta({ description: "Detailed error description" }) }), ID = hw({ grant_type: hF("urn:ietf:params:oauth:grant-type:device_code").meta({ description: "The grant type for device flow" }), device_code: f5().meta({ description: "The device verification code" }), client_id: f5().meta({ description: "The client ID of the application" }) }), IP = hw({ error: hq(["authorization_pending", "slow_down", "expired_token", "access_denied", "invalid_request", "invalid_grant"]).meta({ description: "Error code" }), error_description: f5().meta({ description: "Detailed error description" }) }), Ij = yH("/device", { method: "GET", query: hw({ user_code: f5().meta({ description: "The user code to verify" }) }), error: hw({ error: hq(["invalid_request"]).meta({ description: "Error code" }), error_description: f5().meta({ description: "Detailed error description" }) }), metadata: { openapi: { description: "Verify user code and get device authorization status", responses: { 200: { description: "Device authorization status", content: { "application/json": { schema: { type: "object", properties: { user_code: { type: "string", description: "The user code to verify" }, status: { type: "string", enum: ["pending", "approved", "denied"], description: "Current status of the device authorization" } } } } } } } } } }, async (e10) => {
|
|
20496
20502
|
let { user_code: t10 } = e10.query, r10 = t10.replace(/-/g, ""), n10 = await e10.context.adapter.findOne({ model: "deviceCode", where: [{ field: "userCode", value: r10 }] });
|
|
20497
20503
|
if (!n10) throw new rz.APIError("BAD_REQUEST", { error: "invalid_request", error_description: IC.INVALID_USER_CODE.message });
|
|
20498
20504
|
if (n10.expiresAt < /* @__PURE__ */ new Date()) throw new rz.APIError("BAD_REQUEST", { error: "expired_token", error_description: IC.EXPIRED_USER_CODE.message });
|
|
20499
20505
|
let i10 = await wf(e10);
|
|
20500
20506
|
return i10?.user?.id && !n10.userId && "pending" === n10.status && await e10.context.adapter.incrementOne({ model: "deviceCode", where: [{ field: "id", value: n10.id }, { field: "status", value: "pending" }, { field: "userId", operator: "eq", value: null }], increment: {}, set: { userId: i10.user.id } }) && (n10.userId = i10.user.id), e10.json({ user_code: t10, status: n10.status });
|
|
20501
|
-
}), IL = yH("/device/approve", { method: "POST", body: hw({ userCode: f5().meta({ description: "The user code to approve" }) }), error: hw({ error:
|
|
20507
|
+
}), IL = yH("/device/approve", { method: "POST", body: hw({ userCode: f5().meta({ description: "The user code to approve" }) }), error: hw({ error: hq(["invalid_request", "expired_token", "device_code_already_processed", "unauthorized", "access_denied"]).meta({ description: "Error code" }), error_description: f5().meta({ description: "Detailed error description" }) }), requireHeaders: true, metadata: { openapi: { description: "Approve device authorization", responses: { 200: { description: "Success", content: { "application/json": { schema: { type: "object", properties: { success: { type: "boolean" } } } } } } } } } }, async (e10) => {
|
|
20502
20508
|
let t10 = await wf(e10);
|
|
20503
20509
|
if (!t10) throw new rz.APIError("UNAUTHORIZED", { error: "unauthorized", error_description: IC.AUTHENTICATION_REQUIRED.message });
|
|
20504
20510
|
let { userCode: r10 } = e10.body, n10 = r10.replace(/-/g, ""), i10 = await e10.context.adapter.findOne({ model: "deviceCode", where: [{ field: "userCode", value: n10 }] });
|
|
@@ -20508,7 +20514,7 @@ To resolve this, you can:
|
|
|
20508
20514
|
if (!i10.userId) throw new rz.APIError("BAD_REQUEST", { error: "invalid_request", error_description: IC.DEVICE_CODE_NOT_CLAIMED.message });
|
|
20509
20515
|
if (i10.userId !== t10.user.id) throw new rz.APIError("FORBIDDEN", { error: "access_denied", error_description: "You are not authorized to approve this device authorization" });
|
|
20510
20516
|
return await e10.context.adapter.update({ model: "deviceCode", where: [{ field: "id", value: i10.id }], update: { status: "approved", userId: t10.user.id } }), e10.json({ success: true });
|
|
20511
|
-
}), Iz = yH("/device/deny", { method: "POST", body: hw({ userCode: f5().meta({ description: "The user code to deny" }) }), error: hw({ error:
|
|
20517
|
+
}), Iz = yH("/device/deny", { method: "POST", body: hw({ userCode: f5().meta({ description: "The user code to deny" }) }), error: hw({ error: hq(["invalid_request", "expired_token", "unauthorized", "access_denied"]).meta({ description: "Error code" }), error_description: f5().meta({ description: "Detailed error description" }) }), requireHeaders: true, metadata: { openapi: { description: "Deny device authorization", responses: { 200: { description: "Success", content: { "application/json": { schema: { type: "object", properties: { success: { type: "boolean" } } } } } } } } } }, async (e10) => {
|
|
20512
20518
|
let t10 = await wf(e10);
|
|
20513
20519
|
if (!t10) throw new rz.APIError("UNAUTHORIZED", { error: "unauthorized", error_description: IC.AUTHENTICATION_REQUIRED.message });
|
|
20514
20520
|
let { userCode: r10 } = e10.body, n10 = r10.replace(/-/g, ""), i10 = await e10.context.adapter.findOne({ model: "deviceCode", where: [{ field: "userCode", value: n10 }] });
|
|
@@ -20518,16 +20524,16 @@ To resolve this, you can:
|
|
|
20518
20524
|
if (!i10.userId) throw new rz.APIError("BAD_REQUEST", { error: "invalid_request", error_description: IC.DEVICE_CODE_NOT_CLAIMED.message });
|
|
20519
20525
|
if (i10.userId !== t10.user.id) throw new rz.APIError("FORBIDDEN", { error: "access_denied", error_description: "You are not authorized to deny this device authorization" });
|
|
20520
20526
|
return await e10.context.adapter.update({ model: "deviceCode", where: [{ field: "id", value: i10.id }], update: { status: "denied", userId: t10.user.id } }), e10.json({ success: true });
|
|
20521
|
-
}),
|
|
20527
|
+
}), Iq = { deviceCode: { fields: { deviceCode: { type: "string", required: true }, userCode: { type: "string", required: true }, userId: { type: "string", required: false }, expiresAt: { type: "date", required: true }, status: { type: "string", required: true }, lastPolledAt: { type: "date", required: false }, pollingInterval: { type: "number", required: false }, clientId: { type: "string", required: false }, scope: { type: "string", required: false } } } };
|
|
20522
20528
|
hw({ id: f5(), deviceCode: f5(), userCode: f5(), userId: f5().optional(), expiresAt: hf(), status: f5(), lastPolledAt: hf().optional(), pollingInterval: mK().optional(), clientId: f5().optional(), scope: f5().optional() });
|
|
20523
|
-
let
|
|
20529
|
+
let IB = gI((e10) => {
|
|
20524
20530
|
if ("string" != typeof e10) return false;
|
|
20525
20531
|
try {
|
|
20526
20532
|
return ok(e10), true;
|
|
20527
20533
|
} catch {
|
|
20528
20534
|
return false;
|
|
20529
20535
|
}
|
|
20530
|
-
}, { message: "Invalid time string format. Use formats like '30m', '5s', '1h', etc." }), IM = hw({ expiresIn:
|
|
20536
|
+
}, { message: "Invalid time string format. Use formats like '30m', '5s', '1h', etc." }), IM = hw({ expiresIn: IB.default("30m").describe("Time in seconds until the device code expires. Use formats like '30m', '5s', '1h', etc."), interval: IB.default("5s").describe("Time in seconds between polling attempts. Use formats like '30m', '5s', '1h', etc."), deviceCodeLength: mK().int().positive().default(40).describe("Length of the device code to be generated. Default is 40 characters."), userCodeLength: mK().int().positive().default(8).describe("Length of the user code to be generated. Default is 8 characters."), generateDeviceCode: gI((e10) => "function" == typeof e10, { message: "generateDeviceCode must be a function that returns a string or a promise that resolves to a string." }).optional().describe("Function to generate a device code. If not provided, a default random string generator will be used."), generateUserCode: gI((e10) => "function" == typeof e10, { message: "generateUserCode must be a function that returns a string or a promise that resolves to a string." }).optional().describe("Function to generate a user code. If not provided, a default random string generator will be used."), validateClient: gI((e10) => "function" == typeof e10, { message: "validateClient must be a function that returns a boolean or a promise that resolves to a boolean." }).optional().describe("Function to validate the client ID. If not provided, no validation will be performed."), onDeviceAuthRequest: gI((e10) => "function" == typeof e10, { message: "onDeviceAuthRequest must be a function that returns void or a promise that resolves to void." }).optional().describe("Function to handle device authorization requests. If not provided, no additional actions will be taken."), verificationUri: f5().optional().describe("The URI where users verify their device code. Can be an absolute URL (https://example.com/device) or relative path (/custom-path). This will be returned as verification_uri in the device code response. If not provided, defaults to /device."), schema: gI(() => true).optional() }), IF = (e10 = {}) => {
|
|
20531
20537
|
let t10, r10, n10 = IM.parse(e10);
|
|
20532
20538
|
return { id: "device-authorization", version: Ii, schema: function(e11, t11) {
|
|
20533
20539
|
if (!t11) return e11;
|
|
@@ -20539,7 +20545,7 @@ To resolve this, you can:
|
|
|
20539
20545
|
}
|
|
20540
20546
|
}
|
|
20541
20547
|
return e11;
|
|
20542
|
-
}(
|
|
20548
|
+
}(Iq, e10?.schema), endpoints: { deviceCode: (t10 = async () => n10.generateDeviceCode ? n10.generateDeviceCode() : wk(n10.deviceCodeLength, "a-z", "A-Z", "0-9"), r10 = async () => {
|
|
20543
20549
|
let e11;
|
|
20544
20550
|
return n10.generateUserCode ? n10.generateUserCode() : (e11 = new Uint8Array(n10.userCodeLength), Array.from(crypto.getRandomValues(e11)).map((e12) => "ABCDEFGHJKLMNPQRSTUVWXYZ23456789"[e12 % 32]).join(""));
|
|
20545
20551
|
}, yH("/device/code", { method: "POST", body: IU, error: IN, metadata: { openapi: { description: `Request a device and user code
|
|
@@ -20699,7 +20705,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
20699
20705
|
}
|
|
20700
20706
|
}) };
|
|
20701
20707
|
}
|
|
20702
|
-
st(IJ()), e.s([], 288990), e.i(288990), e.s([], 945511), e.i(945511), e.i(940746), e.i(705502), e.i(566035), e.i(846334), e.s(["$ZodAny", 0, d5, "$ZodArray", 0, cr, "$ZodBase64", 0, dH, "$ZodBase64URL", 0, dJ, "$ZodBigInt", 0, d1, "$ZodBigIntFormat", 0, d4, "$ZodBoolean", 0, d0, "$ZodCIDRv4", 0, dM, "$ZodCIDRv6", 0, dF, "$ZodCUID", 0, dR, "$ZodCUID2", 0, dO, "$ZodCatch", 0, cL, "$ZodCodec", 0, cM, "$ZodCustom", 0, cX, "$ZodCustomStringFormat", 0, dG, "$ZodDate", 0, ce, "$ZodDefault", 0, cC, "$ZodDiscriminatedUnion", 0, cp, "$ZodE164", 0, dK, "$ZodEmail", 0, dS, "$ZodEmoji", 0, d$, "$ZodEnum", 0, cA, "$ZodExactOptional", 0, cR, "$ZodFile", 0, cS, "$ZodFunction", 0, cW, "$ZodGUID", 0, dA, "$ZodIPv4", 0, dz, "$ZodIPv6", 0,
|
|
20708
|
+
st(IJ()), e.s([], 288990), e.i(288990), e.s([], 945511), e.i(945511), e.i(940746), e.i(705502), e.i(566035), e.i(846334), e.s(["$ZodAny", 0, d5, "$ZodArray", 0, cr, "$ZodBase64", 0, dH, "$ZodBase64URL", 0, dJ, "$ZodBigInt", 0, d1, "$ZodBigIntFormat", 0, d4, "$ZodBoolean", 0, d0, "$ZodCIDRv4", 0, dM, "$ZodCIDRv6", 0, dF, "$ZodCUID", 0, dR, "$ZodCUID2", 0, dO, "$ZodCatch", 0, cL, "$ZodCodec", 0, cM, "$ZodCustom", 0, cX, "$ZodCustomStringFormat", 0, dG, "$ZodDate", 0, ce, "$ZodDefault", 0, cC, "$ZodDiscriminatedUnion", 0, cp, "$ZodE164", 0, dK, "$ZodEmail", 0, dS, "$ZodEmoji", 0, d$, "$ZodEnum", 0, cA, "$ZodExactOptional", 0, cR, "$ZodFile", 0, cS, "$ZodFunction", 0, cW, "$ZodGUID", 0, dA, "$ZodIPv4", 0, dz, "$ZodIPv6", 0, dq, "$ZodISODate", 0, dP, "$ZodISODateTime", 0, dD, "$ZodISODuration", 0, dL, "$ZodISOTime", 0, dj, "$ZodIntersection", 0, cf, "$ZodJWT", 0, dQ, "$ZodKSUID", 0, dN, "$ZodLazy", 0, cG, "$ZodLiteral", 0, ck, "$ZodMAC", 0, dB, "$ZodMap", 0, cb, "$ZodNaN", 0, cz, "$ZodNanoID", 0, dT, "$ZodNever", 0, d9, "$ZodNonOptional", 0, cD, "$ZodNull", 0, d3, "$ZodNullable", 0, cO, "$ZodNumber", 0, dX, "$ZodNumberFormat", 0, dY, "$ZodObject", 0, co, "$ZodObjectJIT", 0, cs, "$ZodOptional", 0, cT, "$ZodPipe", 0, cq, "$ZodPrefault", 0, cN, "$ZodPreprocess", 0, cH, "$ZodPromise", 0, cQ, "$ZodReadonly", 0, cV, "$ZodRecord", 0, cv, "$ZodSet", 0, c_, "$ZodString", 0, d_, "$ZodStringFormat", 0, dx, "$ZodSuccess", 0, cj, "$ZodSymbol", 0, d6, "$ZodTemplateLiteral", 0, cK, "$ZodTransform", 0, cE, "$ZodTuple", 0, ch, "$ZodType", 0, dI, "$ZodULID", 0, dC, "$ZodURL", 0, dE, "$ZodUUID", 0, dk, "$ZodUndefined", 0, d2, "$ZodUnion", 0, cd, "$ZodUnknown", 0, d8, "$ZodVoid", 0, d7, "$ZodXID", 0, dU, "$ZodXor", 0, cu, "clone", 0, sx, "isValidBase64", 0, dZ, "isValidBase64URL", 0, dV, "isValidJWT", 0, dW], 57758), e.i(57758), e.i(883016), e.i(541758);
|
|
20703
20709
|
var IK = pJ, IW = pV;
|
|
20704
20710
|
function IQ(e10, t10, r10, n10) {
|
|
20705
20711
|
let i10 = Math.abs(e10), a10 = i10 % 10, o10 = i10 % 100;
|
|
@@ -22816,7 +22822,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
22816
22822
|
var I2 = e.i(480006);
|
|
22817
22823
|
e.i(166798), e.i(850122), e.i(980206), e.i(446134), e.s([], 719604);
|
|
22818
22824
|
var I3 = e.i(719604);
|
|
22819
|
-
e.s(["$ZodAny", 0, d5, "$ZodArray", 0, cr, "$ZodAsyncError", 0, o9, "$ZodBase64", 0, dH, "$ZodBase64URL", 0, dJ, "$ZodBigInt", 0, d1, "$ZodBigIntFormat", 0, d4, "$ZodBoolean", 0, d0, "$ZodCIDRv4", 0, dM, "$ZodCIDRv6", 0, dF, "$ZodCUID", 0, dR, "$ZodCUID2", 0, dO, "$ZodCatch", 0, cL, "$ZodCheck", 0, lS, "$ZodCheckBigIntFormat", 0, lC, "$ZodCheckEndsWith", 0, lH, "$ZodCheckGreaterThan", 0, lT, "$ZodCheckIncludes", 0, lF, "$ZodCheckLengthEquals", 0, lL, "$ZodCheckLessThan", 0, l$, "$ZodCheckLowerCase", 0,
|
|
22825
|
+
e.s(["$ZodAny", 0, d5, "$ZodArray", 0, cr, "$ZodAsyncError", 0, o9, "$ZodBase64", 0, dH, "$ZodBase64URL", 0, dJ, "$ZodBigInt", 0, d1, "$ZodBigIntFormat", 0, d4, "$ZodBoolean", 0, d0, "$ZodCIDRv4", 0, dM, "$ZodCIDRv6", 0, dF, "$ZodCUID", 0, dR, "$ZodCUID2", 0, dO, "$ZodCatch", 0, cL, "$ZodCheck", 0, lS, "$ZodCheckBigIntFormat", 0, lC, "$ZodCheckEndsWith", 0, lH, "$ZodCheckGreaterThan", 0, lT, "$ZodCheckIncludes", 0, lF, "$ZodCheckLengthEquals", 0, lL, "$ZodCheckLessThan", 0, l$, "$ZodCheckLowerCase", 0, lB, "$ZodCheckMaxLength", 0, lP, "$ZodCheckMaxSize", 0, lU, "$ZodCheckMimeType", 0, lK, "$ZodCheckMinLength", 0, lj, "$ZodCheckMinSize", 0, lN, "$ZodCheckMultipleOf", 0, lR, "$ZodCheckNumberFormat", 0, lO, "$ZodCheckOverwrite", 0, lW, "$ZodCheckProperty", 0, lJ, "$ZodCheckRegex", 0, lq, "$ZodCheckSizeEquals", 0, lD, "$ZodCheckStartsWith", 0, lZ, "$ZodCheckStringFormat", 0, lz, "$ZodCheckUpperCase", 0, lM, "$ZodCodec", 0, cM, "$ZodCustom", 0, cX, "$ZodCustomStringFormat", 0, dG, "$ZodDate", 0, ce, "$ZodDefault", 0, cC, "$ZodDiscriminatedUnion", 0, cp, "$ZodE164", 0, dK, "$ZodEmail", 0, dS, "$ZodEmoji", 0, d$, "$ZodEncodeError", 0, o7, "$ZodEnum", 0, cA, "$ZodError", 0, lX, "$ZodExactOptional", 0, cR, "$ZodFile", 0, cS, "$ZodFunction", 0, cW, "$ZodGUID", 0, dA, "$ZodIPv4", 0, dz, "$ZodIPv6", 0, dq, "$ZodISODate", 0, dP, "$ZodISODateTime", 0, dD, "$ZodISODuration", 0, dL, "$ZodISOTime", 0, dj, "$ZodIntersection", 0, cf, "$ZodJWT", 0, dQ, "$ZodKSUID", 0, dN, "$ZodLazy", 0, cG, "$ZodLiteral", 0, ck, "$ZodMAC", 0, dB, "$ZodMap", 0, cb, "$ZodNaN", 0, cz, "$ZodNanoID", 0, dT, "$ZodNever", 0, d9, "$ZodNonOptional", 0, cD, "$ZodNull", 0, d3, "$ZodNullable", 0, cO, "$ZodNumber", 0, dX, "$ZodNumberFormat", 0, dY, "$ZodObject", 0, co, "$ZodObjectJIT", 0, cs, "$ZodOptional", 0, cT, "$ZodPipe", 0, cq, "$ZodPrefault", 0, cN, "$ZodPreprocess", 0, cH, "$ZodPromise", 0, cQ, "$ZodReadonly", 0, cV, "$ZodRealError", 0, lY, "$ZodRecord", 0, cv, "$ZodRegistry", 0, c4, "$ZodSet", 0, c_, "$ZodString", 0, d_, "$ZodStringFormat", 0, dx, "$ZodSuccess", 0, cj, "$ZodSymbol", 0, d6, "$ZodTemplateLiteral", 0, cK, "$ZodTransform", 0, cE, "$ZodTuple", 0, ch, "$ZodType", 0, dI, "$ZodULID", 0, dC, "$ZodURL", 0, dE, "$ZodUUID", 0, dk, "$ZodUndefined", 0, d2, "$ZodUnion", 0, cd, "$ZodUnknown", 0, d8, "$ZodVoid", 0, d7, "$ZodXID", 0, dU, "$ZodXor", 0, cu, "$brand", 0, o8, "$constructor", 0, o5, "$input", 0, c1, "$output", 0, c0, "Doc", 0, lQ, "JSONSchema", 0, I3, "JSONSchemaGenerator", 0, class {
|
|
22820
22826
|
get metadataRegistry() {
|
|
22821
22827
|
return this.ctx.metadataRegistry;
|
|
22822
22828
|
}
|
|
@@ -22853,7 +22859,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
22853
22859
|
let { "~standard": r10, ...n10 } = pG(this.ctx, e10);
|
|
22854
22860
|
return n10;
|
|
22855
22861
|
}
|
|
22856
|
-
}, "NEVER", 0, o3, "TimePrecision", 0, ub, "_any", 0,
|
|
22862
|
+
}, "NEVER", 0, o3, "TimePrecision", 0, ub, "_any", 0, uB, "_array", 0, pf, "_base64", 0, ug, "_base64url", 0, uy, "_bigint", 0, uN, "_boolean", 0, uC, "_catch", 0, pC, "_check", 0, pB, "_cidrv4", 0, um, "_cidrv6", 0, uh, "_coercedBigint", 0, uD, "_coercedBoolean", 0, uU, "_coercedDate", 0, uV, "_coercedNumber", 0, uS, "_coercedString", 0, c5, "_cuid", 0, uo, "_cuid2", 0, us, "_custom", 0, pL, "_date", 0, uH, "_decode", 0, da, "_decodeAsync", 0, dc, "_default", 0, pT, "_discriminatedUnion", 0, pg, "_e164", 0, uw, "_email", 0, c8, "_emoji", 0, ui, "_encode", 0, dn, "_encodeAsync", 0, dl, "_endsWith", 0, pi, "_enum", 0, p_, "_file", 0, pk, "_float32", 0, u$, "_float64", 0, uT, "_gt", 0, uQ, "_gte", 0, uG, "_guid", 0, c9, "_includes", 0, pr, "_int", 0, uE, "_int32", 0, uR, "_int64", 0, uP, "_intersection", 0, py, "_ipv4", 0, uu, "_ipv6", 0, up, "_isoDate", 0, u_, "_isoDateTime", 0, uI, "_isoDuration", 0, uA, "_isoTime", 0, ux, "_jwt", 0, uv, "_ksuid", 0, uc, "_lazy", 0, pP, "_length", 0, u9, "_literal", 0, pA, "_lowercase", 0, pe, "_lt", 0, uK, "_lte", 0, uW, "_mac", 0, uf, "_map", 0, pb, "_max", 0, uW, "_maxLength", 0, u5, "_maxSize", 0, u6, "_mime", 0, po, "_min", 0, uG, "_minLength", 0, u8, "_minSize", 0, u2, "_multipleOf", 0, u4, "_nan", 0, uJ, "_nanoid", 0, ua, "_nativeEnum", 0, px, "_negative", 0, uY, "_never", 0, uF, "_nonnegative", 0, u1, "_nonoptional", 0, pR, "_nonpositive", 0, u0, "_normalize", 0, pl, "_null", 0, uq, "_nullable", 0, p$, "_number", 0, uk, "_optional", 0, pE, "_overwrite", 0, ps, "_parse", 0, l3, "_parseAsync", 0, l8, "_pipe", 0, pU, "_positive", 0, uX, "_promise", 0, pj, "_property", 0, pa, "_readonly", 0, pN, "_record", 0, pv, "_refine", 0, pz, "_regex", 0, u7, "_safeDecode", 0, dm, "_safeDecodeAsync", 0, dw, "_safeEncode", 0, dp, "_safeEncodeAsync", 0, dg, "_safeParse", 0, l7, "_safeParseAsync", 0, dt, "_set", 0, pI, "_size", 0, u3, "_slugify", 0, pp, "_startsWith", 0, pn, "_string", 0, c3, "_stringFormat", 0, pH, "_stringbool", 0, pZ, "_success", 0, pO, "_superRefine", 0, pq, "_symbol", 0, uL, "_templateLiteral", 0, pD, "_toLowerCase", 0, pc, "_toUpperCase", 0, pu, "_transform", 0, pS, "_trim", 0, pd, "_tuple", 0, pw, "_uint32", 0, uO, "_uint64", 0, uj, "_ulid", 0, ul, "_undefined", 0, uz, "_union", 0, pm, "_unknown", 0, uM, "_uppercase", 0, pt, "_url", 0, un, "_uuid", 0, c7, "_uuidv4", 0, ue, "_uuidv6", 0, ut, "_uuidv7", 0, ur, "_void", 0, uZ, "_xid", 0, ud, "_xor", 0, ph, "clone", 0, sx, "config", 0, st, "createStandardJSONSchemaMethod", 0, pY, "createToJSONSchemaMethod", 0, pX, "decode", 0, ds, "decodeAsync", 0, du, "describe", 0, pM, "encode", 0, di, "encodeAsync", 0, dd, "extractDefs", 0, pQ, "finalize", 0, pG, "flattenError", 0, l0, "formatError", 0, l1, "globalConfig", 0, se, "globalRegistry", 0, c2, "initializeContext", 0, pK, "isValidBase64", 0, dZ, "isValidBase64URL", 0, dV, "isValidJWT", 0, dW, "locales", 0, I2, "meta", 0, pF, "parse", 0, l5, "parseAsync", 0, l9, "prettifyError", 0, l2, "process", 0, pW, "regexes", 0, IW, "registry", 0, c6, "safeDecode", 0, dh, "safeDecodeAsync", 0, dv, "safeEncode", 0, df, "safeEncodeAsync", 0, dy, "safeParse", 0, de, "safeParseAsync", 0, dr, "toDotPath", 0, l6, "toJSONSchema", 0, fO, "treeifyError", 0, l4, "util", 0, IK, "version", 0, db], 722644);
|
|
22857
22863
|
var I5 = e.i(722644), I8 = e.i(189788);
|
|
22858
22864
|
e.s([], 804052), e.i(804052), e.s(["endsWith", 0, pi, "gt", 0, uQ, "gte", 0, uG, "includes", 0, pr, "length", 0, u9, "lowercase", 0, pe, "lt", 0, uK, "lte", 0, uW, "maxLength", 0, u5, "maxSize", 0, u6, "mime", 0, po, "minLength", 0, u8, "minSize", 0, u2, "multipleOf", 0, u4, "negative", 0, uY, "nonnegative", 0, u1, "nonpositive", 0, u0, "normalize", 0, pl, "overwrite", 0, ps, "positive", 0, uX, "property", 0, pa, "regex", 0, u7, "size", 0, u3, "slugify", 0, pp, "startsWith", 0, pn, "toLowerCase", 0, pc, "toUpperCase", 0, pu, "trim", 0, pd, "uppercase", 0, pt], 733072);
|
|
22859
22865
|
var I9 = e.i(733072);
|
|
@@ -22868,8 +22874,8 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
22868
22874
|
eh || (eh = {}), e.s(["ZodFirstPartyTypeKind", 0, eh, "ZodIssueCode", 0, I7, "getErrorMap", 0, _t, "setErrorMap", 0, _e], 578497), e.i(578497), e.s(["$brand", 0, o8, "ZodFirstPartyTypeKind", 0, eh, "ZodIssueCode", 0, I7, "config", 0, st, "getErrorMap", 0, _t, "setErrorMap", 0, _e], 652039), e.i(652039);
|
|
22869
22875
|
var pV = pV, pJ = pJ, _r = e.i(267682);
|
|
22870
22876
|
let _n = { ...I8, ...I9, iso: _r }, _i = /* @__PURE__ */ new Set(["$schema", "$ref", "$defs", "definitions", "$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor", "type", "enum", "const", "anyOf", "oneOf", "allOf", "not", "properties", "required", "additionalProperties", "patternProperties", "propertyNames", "minProperties", "maxProperties", "items", "prefixItems", "additionalItems", "minItems", "maxItems", "uniqueItems", "contains", "minContains", "maxContains", "minLength", "maxLength", "pattern", "format", "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", "description", "default", "contentEncoding", "contentMediaType", "contentSchema", "unevaluatedItems", "unevaluatedProperties", "if", "then", "else", "dependentSchemas", "dependentRequired", "nullable", "readOnly"]);
|
|
22871
|
-
var _a =
|
|
22872
|
-
e.s(["$brand", 0, o8, "$input", 0, c1, "$output", 0, c0, "NEVER", 0, o3, "TimePrecision", 0, ub, "ZodAny", 0, hi, "ZodArray", 0, hm, "ZodBase64", 0, mN, "ZodBase64URL", 0, mP, "ZodBigInt", 0, m6, "ZodBigIntFormat", 0, m3, "ZodBoolean", 0, m1, "ZodCIDRv4", 0, mR, "ZodCIDRv6", 0, mC, "ZodCUID", 0, mm, "ZodCUID2", 0, mg, "ZodCatch", 0, h7, "ZodCodec", 0, ga, "ZodCustom", 0, gv, "ZodCustomStringFormat", 0, mM, "ZodDate", 0, hp, "ZodDefault", 0, h1, "ZodDiscriminatedUnion", 0, hk, "ZodE164", 0, mL, "ZodEmail", 0, f9, "ZodEmoji", 0, mc, "ZodEnum", 0, hz, "ZodError", 0,
|
|
22877
|
+
var _a = gq;
|
|
22878
|
+
e.s(["$brand", 0, o8, "$input", 0, c1, "$output", 0, c0, "NEVER", 0, o3, "TimePrecision", 0, ub, "ZodAny", 0, hi, "ZodArray", 0, hm, "ZodBase64", 0, mN, "ZodBase64URL", 0, mP, "ZodBigInt", 0, m6, "ZodBigIntFormat", 0, m3, "ZodBoolean", 0, m1, "ZodCIDRv4", 0, mR, "ZodCIDRv6", 0, mC, "ZodCUID", 0, mm, "ZodCUID2", 0, mg, "ZodCatch", 0, h7, "ZodCodec", 0, ga, "ZodCustom", 0, gv, "ZodCustomStringFormat", 0, mM, "ZodDate", 0, hp, "ZodDefault", 0, h1, "ZodDiscriminatedUnion", 0, hk, "ZodE164", 0, mL, "ZodEmail", 0, f9, "ZodEmoji", 0, mc, "ZodEnum", 0, hz, "ZodError", 0, fB, "ZodExactOptional", 0, hQ, "ZodFile", 0, hZ, "ZodFirstPartyTypeKind", 0, eh, "ZodFunction", 0, gy, "ZodGUID", 0, me, "ZodIPv4", 0, mA, "ZodIPv6", 0, m$, "ZodISODate", 0, fN, "ZodISODateTime", 0, fC, "ZodISODuration", 0, fL, "ZodISOTime", 0, fP, "ZodIntersection", 0, hE, "ZodIssueCode", 0, I7, "ZodJWT", 0, mq, "ZodKSUID", 0, m_, "ZodLazy", 0, gf, "ZodLiteral", 0, hM, "ZodMAC", 0, mS, "ZodMap", 0, hD, "ZodNaN", 0, gt, "ZodNanoID", 0, mp, "ZodNever", 0, hl, "ZodNonOptional", 0, h3, "ZodNull", 0, hr, "ZodNullable", 0, hX, "ZodNumber", 0, mJ, "ZodNumberFormat", 0, mW, "ZodObject", 0, hy, "ZodOptional", 0, hK, "ZodPipe", 0, gn, "ZodPrefault", 0, h6, "ZodPreprocess", 0, gl, "ZodPromise", 0, gh, "ZodReadonly", 0, gd, "ZodRealError", 0, fM, "ZodRecord", 0, hO, "ZodSet", 0, hj, "ZodString", 0, f3, "ZodStringFormat", 0, f8, "ZodSuccess", 0, h8, "ZodSymbol", 0, m9, "ZodTemplateLiteral", 0, gu, "ZodTransform", 0, hV, "ZodTuple", 0, hT, "ZodType", 0, f6, "ZodULID", 0, mw, "ZodURL", 0, ms, "ZodUUID", 0, mr, "ZodUndefined", 0, he, "ZodUnion", 0, hI, "ZodUnknown", 0, ho, "ZodVoid", 0, hc, "ZodXID", 0, mb, "ZodXor", 0, hx, "_ZodString", 0, f2, "_default", 0, h4, "_function", 0, gw, "any", 0, ha, "array", 0, hh, "base64", 0, mD, "base64url", 0, mj, "bigint", 0, m2, "boolean", 0, m4, "catch", 0, ge, "check", 0, gb, "cidrv4", 0, mO, "cidrv6", 0, mU, "clone", 0, sx, "codec", 0, go, "coerce", 0, _a, "config", 0, st, "core", 0, I5, "cuid", 0, mh, "cuid2", 0, my, "custom", 0, gI, "date", 0, hf, "decode", 0, fK, "decodeAsync", 0, fQ, "describe", 0, gA, "discriminatedUnion", 0, hS, "e164", 0, mz, "email", 0, f7, "emoji", 0, mu, "encode", 0, fJ, "encodeAsync", 0, fW, "endsWith", 0, pi, "enum", 0, hq, "exactOptional", 0, hG, "file", 0, hH, "flattenError", 0, l0, "float32", 0, mG, "float64", 0, mX, "formatError", 0, l1, "fromJSONSchema", 0, function(e10, t10) {
|
|
22873
22879
|
var r10, n10;
|
|
22874
22880
|
let i10, a10;
|
|
22875
22881
|
if ("boolean" == typeof e10) return e10 ? _n.any() : _n.never();
|
|
@@ -23027,7 +23033,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23027
23033
|
for (let e12 of Object.keys(t11)) _i.has(e12) || (a11[e12] = t11[e12]);
|
|
23028
23034
|
return Object.keys(a11).length > 0 && r11.registry.add(n11, a11), t11.description && (n11 = n11.describe(t11.description)), n11;
|
|
23029
23035
|
}(i10, o10);
|
|
23030
|
-
}, "function", 0, gw, "getErrorMap", 0, _t, "globalRegistry", 0, c2, "gt", 0, uQ, "gte", 0, uG, "guid", 0, mt, "hash", 0, mV, "hex", 0, mH, "hostname", 0, mZ, "httpUrl", 0, md, "includes", 0, pr, "instanceof", 0, gS, "int", 0, mQ, "int32", 0, mY, "int64", 0, m5, "intersection", 0, h$, "invertCodec", 0, gs, "ipv4", 0, mk, "ipv6", 0, mT, "iso", 0, _r, "json", 0, g$, "jwt", 0,
|
|
23036
|
+
}, "function", 0, gw, "getErrorMap", 0, _t, "globalRegistry", 0, c2, "gt", 0, uQ, "gte", 0, uG, "guid", 0, mt, "hash", 0, mV, "hex", 0, mH, "hostname", 0, mZ, "httpUrl", 0, md, "includes", 0, pr, "instanceof", 0, gS, "int", 0, mQ, "int32", 0, mY, "int64", 0, m5, "intersection", 0, h$, "invertCodec", 0, gs, "ipv4", 0, mk, "ipv6", 0, mT, "iso", 0, _r, "json", 0, g$, "jwt", 0, mB, "keyof", 0, hg, "ksuid", 0, mx, "lazy", 0, gm, "length", 0, u9, "literal", 0, hF, "locales", 0, I2, "looseObject", 0, hb, "looseRecord", 0, hN, "lowercase", 0, pe, "lt", 0, uK, "lte", 0, uW, "mac", 0, mE, "map", 0, hP, "maxLength", 0, u5, "maxSize", 0, u6, "meta", 0, gk, "mime", 0, po, "minLength", 0, u8, "minSize", 0, u2, "multipleOf", 0, u4, "nan", 0, gr, "nanoid", 0, mf, "nativeEnum", 0, hB, "negative", 0, uY, "never", 0, hd, "nonnegative", 0, u1, "nonoptional", 0, h5, "nonpositive", 0, u0, "normalize", 0, pl, "null", 0, hn, "nullable", 0, hY, "nullish", 0, h0, "number", 0, mK, "object", 0, hw, "optional", 0, hW, "overwrite", 0, ps, "parse", 0, fF, "parseAsync", 0, fZ, "partialRecord", 0, hU, "pipe", 0, gi, "positive", 0, uX, "prefault", 0, h2, "preprocess", 0, gT, "prettifyError", 0, l2, "promise", 0, gg, "property", 0, pa, "readonly", 0, gc, "record", 0, hC, "refine", 0, g_, "regex", 0, u7, "regexes", () => pV, "registry", 0, c6, "safeDecode", 0, fX, "safeDecodeAsync", 0, f0, "safeEncode", 0, fG, "safeEncodeAsync", 0, fY, "safeParse", 0, fH, "safeParseAsync", 0, fV, "set", 0, hL, "setErrorMap", 0, _e, "size", 0, u3, "slugify", 0, pp, "startsWith", 0, pn, "strictObject", 0, hv, "string", 0, f5, "stringFormat", 0, mF, "stringbool", 0, gE, "success", 0, h9, "superRefine", 0, gx, "symbol", 0, m7, "templateLiteral", 0, gp, "toJSONSchema", 0, fO, "toLowerCase", 0, pc, "toUpperCase", 0, pu, "transform", 0, hJ, "treeifyError", 0, l4, "trim", 0, pd, "tuple", 0, hR, "uint32", 0, m0, "uint64", 0, m8, "ulid", 0, mv, "undefined", 0, ht, "union", 0, h_, "unknown", 0, hs, "uppercase", 0, pt, "url", 0, ml, "util", () => pJ, "uuid", 0, mn, "uuidv4", 0, mi, "uuidv6", 0, ma, "uuidv7", 0, mo, "void", 0, hu, "xid", 0, mI, "xor", 0, hA], 549874);
|
|
23031
23037
|
var _o = e.i(549874), _o = _o;
|
|
23032
23038
|
let _s = "user_dm_message", _l = "kill_task", _d = "done", _c = "closed", _u = "canceled", _p = "failed", _f = [_d, _c, _u, _p];
|
|
23033
23039
|
process.env.POLL_INTERVAL_MS, process.env.OFFLINE_THRESHOLD_MS, process.env.EVENT_POLL_INTERVAL_MS;
|
|
@@ -23063,10 +23069,10 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23063
23069
|
_o.object({ agentId: _o.string().min(1), workspaceId: _o.string().min(1), r2Key: _o.string().min(1), from: _o.string().min(1), to: _o.string().optional(), subject: _o.string(), isWhitelisted: _o.boolean(), forwarded: _o.boolean().optional().default(false), messageId: _o.string().optional().default(""), inReplyTo: _o.string().optional().default(""), references: _o.string().optional().default(""), meetingInfo: _L.nullable().optional(), attachments: _o.string().optional(), traceId: _o.string().optional(), sourceTaskId: _o.string().optional(), isInternal: _o.boolean().optional().default(false), senderConversationId: _o.string().optional(), senderAgentId: _o.string().optional() }), _o.object({ emailAddress: _o.string().email("valid email required"), displayName: _o.string().default(""), imapHost: _o.string().min(1, "IMAP host is required"), imapPort: _o.number().int().min(1).max(65535).default(993), imapUsername: _o.string().min(1, "IMAP username is required"), imapPassword: _o.string().min(1, "IMAP password is required"), imapTls: _o.boolean().default(true), smtpHost: _o.string().min(1, "SMTP host is required"), smtpPort: _o.number().int().min(1).max(65535).default(587), smtpUsername: _o.string().min(1, "SMTP username is required"), smtpPassword: _o.string().min(1, "SMTP password is required"), smtpTls: _o.number().int().min(0).max(2).default(1), pollIntervalSeconds: _o.number().int().min(30).max(3600).default(60) }), _o.object({ emailAddress: _o.string().email().optional(), displayName: _o.string().optional(), imapHost: _o.string().min(1).optional(), imapPort: _o.number().int().min(1).max(65535).optional(), imapUsername: _o.string().min(1).optional(), imapPassword: _o.string().min(1).optional(), imapTls: _o.boolean().optional(), smtpHost: _o.string().min(1).optional(), smtpPort: _o.number().int().min(1).max(65535).optional(), smtpUsername: _o.string().min(1).optional(), smtpPassword: _o.string().min(1).optional(), smtpTls: _o.number().int().min(0).max(2).optional(), pollIntervalSeconds: _o.number().int().min(30).max(3600).optional() }), _o.object({ imapHost: _o.string().min(1), imapPort: _o.number().int().min(1).max(65535).default(993), imapUsername: _o.string().min(1), imapPassword: _o.string().min(1), imapTls: _o.boolean().default(true), smtpHost: _o.string().min(1), smtpPort: _o.number().int().min(1).max(65535).default(587), smtpUsername: _o.string().min(1), smtpPassword: _o.string().min(1), smtpTls: _o.number().int().min(0).max(2).default(1) }), _o.object({ global_instruction: _o.string().max(5e4).trim() }), _o.object({ name: _o.string().min(1, "name is required"), slug: _o.string().optional().default("").transform(_w) }), _o.object({ name: _o.string().min(1, "name is required").max(100).trim().optional(), slug: _o.string().min(1, "slug is required").trim().toLowerCase().transform(_w).optional() }), _o.object({ confirm_name: _o.string().min(1, "confirm_name is required") }), _o.object({ user_id: _o.string().min(1, "user_id is required") }), _o.object({ request_type: _o.enum(["tree", "read"]), path: _o.string().default(".") });
|
|
23064
23070
|
let _z = _o.object({ name: _o.string(), path: _o.string(), isDirectory: _o.boolean(), size: _o.number(), modifiedAt: _o.string() });
|
|
23065
23071
|
_o.object({ request_id: _o.string().min(1), entries: _o.array(_z).optional(), content: _o.string().nullable().optional(), isBinary: _o.boolean().optional(), error: _o.string().optional(), path: _o.string() }), _o.object({ name: _o.string(), description: _o.string(), isGlobal: _o.boolean().optional() });
|
|
23066
|
-
let
|
|
23067
|
-
_o.object({ scope: _o.enum(["global", "agent"]), agent_id: _o.string().min(1).optional(), daemon_id: _o.string().min(1).optional(), runtime: _o.enum(["claude", "codex", "opencode"]), skills: _o.array(
|
|
23068
|
-
let
|
|
23069
|
-
_o.object({ name: _o.string().max(100).optional(), scenario: _o.string().max(50).optional(), members: _o.array(
|
|
23072
|
+
let _q = _o.object({ name: _o.string(), description: _o.string() });
|
|
23073
|
+
_o.object({ scope: _o.enum(["global", "agent"]), agent_id: _o.string().min(1).optional(), daemon_id: _o.string().min(1).optional(), runtime: _o.enum(["claude", "codex", "opencode"]), skills: _o.array(_q) });
|
|
23074
|
+
let _B = _o.object({ name: _o.string().optional(), role: _o.enum(["leader", "researcher", "engineer", "assistant"]), runtime_id: _o.string().min(1, "runtime_id is required"), runtime_config: _o.object({ model: _o.string().max(100).optional() }).passthrough().optional(), description: _o.string().optional().default(""), instructions: _o.string().optional().default(""), avatar_url: _o.string().max(2e3).nullable().optional(), email_handle: _o.string().max(30).optional(), relationship: _o.string().optional() });
|
|
23075
|
+
_o.object({ name: _o.string().max(100).optional(), scenario: _o.string().max(50).optional(), members: _o.array(_B).min(1).max(4) }).refine((e10) => e10.members.some((e11) => "leader" === e11.role), { message: "at least one member must have the leader role" }), _o.object({ instructions: _o.string().min(1, "instructions is required"), relationship: _o.string().min(1, "relationship is required"), name: _o.string().optional(), description: _o.string().optional().default(""), model: _o.string().max(100).optional(), context_key: _o.string().optional() }), _o.object({ parent_message_id: _o.string().min(1), content: _o.string().optional().default(""), attachment_ids: _o.array(_o.string()).optional() });
|
|
23070
23076
|
let _M = _o.object({ id: _o.string().min(1).max(64).regex(/^[A-Za-z0-9._@/-]+$/, "invalid runtime id charset"), version: _o.string().max(64).optional(), status: _o.enum(["healthy", "unhealthy"]).catch("healthy").default("healthy"), lastError: _o.string().max(128).optional(), lastErrorAt: _o.string().optional() }), _F = _o.array(_M).max(64).transform((e10) => {
|
|
23071
23077
|
let t10 = /* @__PURE__ */ new Set(), r10 = [];
|
|
23072
23078
|
for (let n10 of e10) t10.has(n10.id) || (t10.add(n10.id), r10.push(n10));
|
|
@@ -23430,7 +23436,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23430
23436
|
}
|
|
23431
23437
|
}
|
|
23432
23438
|
static [xa] = "SQL";
|
|
23433
|
-
decoder =
|
|
23439
|
+
decoder = xq;
|
|
23434
23440
|
shouldInlineParams = false;
|
|
23435
23441
|
usedTables = [];
|
|
23436
23442
|
append(e10) {
|
|
@@ -23518,10 +23524,10 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23518
23524
|
return new xL([this]);
|
|
23519
23525
|
}
|
|
23520
23526
|
}
|
|
23521
|
-
let
|
|
23522
|
-
({ ...
|
|
23527
|
+
let xq = { mapFromDriverValue: (e10) => e10 }, xB = { mapToDriverValue: (e10) => e10 };
|
|
23528
|
+
({ ...xq, ...xB });
|
|
23523
23529
|
class xM {
|
|
23524
|
-
constructor(e10, t10 =
|
|
23530
|
+
constructor(e10, t10 = xB) {
|
|
23525
23531
|
this.value = e10, this.encoder = t10;
|
|
23526
23532
|
}
|
|
23527
23533
|
static [xa] = "Param";
|
|
@@ -23945,10 +23951,10 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23945
23951
|
return this.default(xF`(cast((julianday('now') - 2440587.5)*86400000 as integer))`);
|
|
23946
23952
|
}
|
|
23947
23953
|
build(e10) {
|
|
23948
|
-
return new
|
|
23954
|
+
return new Aq(e10, this.config);
|
|
23949
23955
|
}
|
|
23950
23956
|
}
|
|
23951
|
-
class
|
|
23957
|
+
class Aq extends AP {
|
|
23952
23958
|
static [xa] = "SQLiteTimestamp";
|
|
23953
23959
|
mode = this.config.mode;
|
|
23954
23960
|
mapFromDriverValue(e10) {
|
|
@@ -23959,7 +23965,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23959
23965
|
return "timestamp" === this.config.mode ? Math.floor(t10 / 1e3) : t10;
|
|
23960
23966
|
}
|
|
23961
23967
|
}
|
|
23962
|
-
class
|
|
23968
|
+
class AB extends AD {
|
|
23963
23969
|
static [xa] = "SQLiteBooleanBuilder";
|
|
23964
23970
|
constructor(e10, t10) {
|
|
23965
23971
|
super(e10, "boolean", "SQLiteBoolean"), this.config.mode = t10;
|
|
@@ -23980,7 +23986,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
23980
23986
|
}
|
|
23981
23987
|
function AF(e10, t10) {
|
|
23982
23988
|
let { name: r10, config: n10 } = Af(e10, t10);
|
|
23983
|
-
return n10?.mode === "timestamp" || n10?.mode === "timestamp_ms" ? new Az(r10, n10.mode) : n10?.mode === "boolean" ? new
|
|
23989
|
+
return n10?.mode === "timestamp" || n10?.mode === "timestamp_ms" ? new Az(r10, n10.mode) : n10?.mode === "boolean" ? new AB(r10, n10.mode) : new Aj(r10);
|
|
23984
23990
|
}
|
|
23985
23991
|
class AZ extends Ax {
|
|
23986
23992
|
static [xa] = "SQLiteNumericBuilder";
|
|
@@ -24181,8 +24187,8 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24181
24187
|
}
|
|
24182
24188
|
let ko = A8("user", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), name: A2("name").notNull().default(""), email: A2("email").unique().notNull(), emailVerified: AF("emailVerified", { mode: "boolean" }), image: A2("image"), createdAt: A2("createdAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updatedAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), isBot: AF("isBot", { mode: "boolean" }).notNull().default(false), ownerUserId: A2("ownerUserId").references(() => ko.id, { onDelete: "no action" }), deletedAt: A2("deletedAt"), discriminator: A2("discriminator").notNull().default("0000"), lastRefreshContextAt: A2("lastRefreshContextAt") }, (e10) => [kt("idx_user_ownerUserId_isBot").on(e10.ownerUserId, e10.isBot)]), ks = A8("session", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("userId").notNull().references(() => ko.id, { onDelete: "cascade" }), token: A2("token").unique().notNull(), expiresAt: A2("expiresAt").notNull(), ipAddress: A2("ipAddress"), userAgent: A2("userAgent"), createdAt: A2("createdAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updatedAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_session_token_expires").on(e10.token, e10.expiresAt)]), kl = A8("account", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("userId").notNull().references(() => ko.id, { onDelete: "cascade" }), accountId: A2("accountId").notNull(), providerId: A2("providerId").notNull(), accessToken: A2("accessToken"), refreshToken: A2("refreshToken"), accessTokenExpiresAt: A2("accessTokenExpiresAt"), refreshTokenExpiresAt: A2("refreshTokenExpiresAt"), scope: A2("scope"), idToken: A2("idToken"), password: A2("password"), createdAt: A2("createdAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updatedAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }), kd = A8("verification", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), identifier: A2("identifier").notNull(), value: A2("value").notNull(), expiresAt: A2("expiresAt").notNull(), createdAt: A2("createdAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updatedAt").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }), kc = A8("workspace", { id: A2("id").primaryKey().$defaultFn(() => "sp_" + (0, IV.nanoid)()), name: A2("name").notNull(), slug: A2("slug").unique().notNull(), onboarded: AF("onboarded").notNull().default(0), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }), ku = A8("member", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), role: A2("role").notNull().default("member"), globalInstruction: A2("global_instruction").notNull().default(""), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("member_workspace_user").on(e10.workspaceId, e10.userId)]), kp = A8("workspace_invite", { id: A2("id").primaryKey().$defaultFn(() => "inv_" + (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), token: A2("token").unique().notNull().$defaultFn(() => (0, IV.nanoid)(32)), createdBy: A2("created_by").notNull().references(() => ko.id, { onDelete: "cascade" }), usedBy: A2("used_by").references(() => ko.id, { onDelete: "set null" }), usedAt: A2("used_at"), expiresAt: A2("expires_at").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_workspace_invite_token").on(e10.token), kt("idx_workspace_invite_workspace").on(e10.workspaceId)]), kf = A8("agent_access", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("agent_access_agent_ws_user").on(e10.agentId, e10.workspaceId, e10.userId), kt("idx_agent_access_agent_ws").on(e10.agentId, e10.workspaceId), kt("idx_agent_access_user").on(e10.userId), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), km = A8("agent_pin", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), position: AF("position").notNull().default(0) }, (e10) => [Av("agent_pin_agent_ws_user").on(e10.agentId, e10.workspaceId, e10.userId), kt("idx_agent_pin_ws_user").on(e10.workspaceId, e10.userId), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kh = A8("agent_sidebar_order", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), position: AF("position").notNull().default(0) }, (e10) => [Av("agent_sidebar_order_agent_ws_user").on(e10.agentId, e10.workspaceId, e10.userId), kt("idx_agent_sidebar_order_ws_user").on(e10.workspaceId, e10.userId), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kg = A8("machine", { daemonId: A2("daemon_id").notNull(), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), deviceInfo: A2("device_info").notNull().default(""), lastSeenAt: A2("last_seen_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), pendingUpdateVersion: A2("pending_update_version"), pendingRescan: AF("pending_rescan", { mode: "boolean" }).default(false), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), ownerId: A2("owner_id").references(() => ko.id, { onDelete: "set null" }) }, (e10) => [kn({ columns: [e10.workspaceId, e10.daemonId] })]), ky = A8("agent_runtime", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), daemonId: A2("daemon_id").notNull(), runtimeMode: A2("runtime_mode").notNull().default("local"), provider: A2("provider").notNull(), deviceInfo: A2("device_info").notNull().default(""), metadata: A2("metadata", { mode: "json" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("agent_runtime_workspace_daemon_provider").on(e10.workspaceId, e10.daemonId, e10.provider), kt("idx_agent_runtime_workspace_daemon").on(e10.workspaceId, e10.daemonId), kt("idx_agent_runtime_daemon_workspace").on(e10.daemonId, e10.workspaceId)]), kw = A8("agent", { id: A2("id").notNull().$defaultFn(() => "ag_" + (0, IV.nanoid)(8)), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), name: A2("name").notNull(), description: A2("description").notNull().default(""), instructions: A2("instructions").notNull().default(""), avatarUrl: A2("avatar_url"), runtimeId: A2("runtime_id").references(() => ky.id), runtimeMode: A2("runtime_mode").notNull().default("local"), runtimeConfig: A2("runtime_config", { mode: "json" }), visibility: A2("visibility").notNull().default("private"), status: A2("status").notNull().default("idle"), maxConcurrentTasks: AF("max_concurrent_tasks").notNull().default(6), ownerId: A2("owner_id").references(() => ko.id), tools: A2("tools", { mode: "json" }), triggers: A2("triggers", { mode: "json" }), emailHandle: A2("email_handle").unique(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kn({ columns: [e10.id, e10.workspaceId] })]), kv = A8("agent_whitelist", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), email: A2("email").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("agent_whitelist_agent_ws_email").on(e10.agentId, e10.workspaceId, e10.email), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kb = A8("channel", { id: A2("id").primaryKey().$defaultFn(() => "ch_" + (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), name: A2("name").notNull(), position: AF("position").notNull().default(0), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("channel_workspace_name").on(e10.workspaceId, e10.name), kt("idx_channel_workspace").on(e10.workspaceId)]), kI = A8("conversation", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), agentId: A2("agent_id").notNull(), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), title: A2("title").notNull().default(""), type: A2("type").notNull().default(_s), channel: A2("channel").notNull().default("default"), parentMessageId: A2("parent_message_id"), threadTitle: A2("thread_title").notNull().default(""), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_conversation_agent_lookup").on(e10.workspaceId, e10.agentId, e10.userId, e10.type, e10.channel, e10.createdAt), kt("idx_conversation_ws_user").on(e10.workspaceId, e10.userId, e10.createdAt), kt("idx_conversation_thread").on(e10.parentMessageId), Av("uq_conversation_parent_message").on(e10.parentMessageId, e10.workspaceId), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), k_ = A8("message", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), conversationId: A2("conversation_id").notNull().references(() => kI.id, { onDelete: "cascade" }), role: A2("role").notNull(), content: A2("content").notNull().default(""), taskId: A2("task_id"), attachmentIds: A2("attachment_ids"), metadata: A2("metadata"), status: A2("status").notNull().default("active"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_message_conversation_status").on(e10.conversationId, e10.status)]), kx = A8("agent_task_queue", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), runtimeId: A2("runtime_id").notNull().references(() => ky.id, { onDelete: "cascade" }), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), conversationId: A2("conversation_id").notNull().references(() => kI.id, { onDelete: "cascade" }), prompt: A2("prompt").notNull(), type: A2("type").notNull().default(_s), contextKey: A2("context_key"), status: A2("status").notNull().default("queued"), priority: AF("priority").notNull().default(0), result: A2("result", { mode: "json" }), context: A2("context", { mode: "json" }), sessionId: A2("session_id"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), dispatchedAt: A2("dispatched_at"), startedAt: A2("started_at"), completedAt: A2("completed_at"), error: A2("error"), traceId: A2("trace_id"), parentTaskId: A2("parent_task_id") }, (e10) => [kt("idx_task_queue_pending").on(e10.agentId, e10.status).where(xF`status IN ('queued', 'dispatched')`), kt("idx_task_queue_workspace_active").on(e10.workspaceId, e10.status, e10.agentId).where(xF`status IN ('queued', 'dispatched', 'running')`), kt("idx_task_queue_agent_history").on(e10.agentId, e10.workspaceId, e10.createdAt), kt("idx_task_queue_conversation_status").on(e10.conversationId, e10.status), kt("idx_task_queue_trace").on(e10.traceId), kt("idx_task_queue_parent").on(e10.parentTaskId), kt("idx_task_queue_workspace_type_status").on(e10.workspaceId, e10.type, e10.status), kt("idx_task_queue_workspace_status_dispatched").on(e10.workspaceId, e10.status, e10.dispatchedAt), kt("idx_task_queue_inbox").on(e10.workspaceId, e10.status, e10.completedAt), kt("idx_task_queue_runtime_pending").on(e10.workspaceId, e10.runtimeId, e10.status).where(xF`status IN ('queued', 'dispatched')`), kt("idx_task_queue_agent_running").on(e10.agentId, e10.workspaceId, e10.status).where(xF`status IN ('dispatched', 'running')`), kt("idx_task_queue_inbox_convo").on(e10.workspaceId, e10.status, e10.conversationId, e10.completedAt).where(xF`status IN ('completed', 'failed') AND parent_task_id IS NULL`), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kA = A8("issue", { id: A2("id").primaryKey().$defaultFn(() => "iss_" + (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), agentId: A2("agent_id"), creatorUserId: A2("creator_user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), conversationId: A2("conversation_id").references(() => kI.id, { onDelete: "cascade" }), latestTaskId: A2("latest_task_id").references(() => kx.id, { onDelete: "set null" }), title: A2("title").notNull(), description: A2("description").notNull().default(""), status: A2("status").notNull().default("todo"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), completedAt: A2("completed_at") }, (e10) => [kt("idx_issue_workspace_status_agent").on(e10.workspaceId, e10.status, e10.agentId), kt("idx_issue_workspace_updated").on(e10.workspaceId, e10.updatedAt), Av("issue_conversation_unique").on(e10.conversationId), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kk = A8("issue_comment", { id: A2("id").primaryKey().$defaultFn(() => "ic_" + (0, IV.nanoid)()), issueId: A2("issue_id").notNull().references(() => kA.id, { onDelete: "cascade" }), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), authorType: A2("author_type").notNull().default("user"), authorId: A2("author_id").notNull(), content: A2("content").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_issue_comment_issue").on(e10.issueId, e10.createdAt), kt("idx_issue_comment_workspace").on(e10.workspaceId, e10.issueId)]), kS = A8("task_message", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), taskId: A2("task_id").notNull().references(() => kx.id, { onDelete: "cascade" }), seq: AF("seq").notNull(), type: A2("type").notNull().default(""), tool: A2("tool").notNull().default(""), content: A2("content").notNull().default(""), callId: A2("call_id").notNull().default(""), input: A2("input", { mode: "json" }), output: A2("output").notNull().default(""), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_task_message_task_seq").on(e10.taskId, e10.seq), kt("idx_task_message_task_created").on(e10.taskId, e10.createdAt)]), kE = A8("emails", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), fromEmail: A2("from_email").notNull(), toEmail: A2("to_email").notNull(), subject: A2("subject").notNull().default(""), r2Key: A2("r2_key").notNull(), isWhitelisted: AF("is_whitelisted", { mode: "boolean" }).notNull().default(false), forwarded: AF("forwarded", { mode: "boolean" }).notNull().default(false), messageId: A2("message_id").notNull().default(""), inReplyTo: A2("in_reply_to").notNull().default(""), references: A2("references").notNull().default(""), htmlBody: A2("html_body").notNull().default(""), attachments: A2("attachments").notNull().default("[]"), status: A2("status").notNull().default("unread"), direction: A2("direction").notNull().default("inbound"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade"), kt("idx_emails_agent_ws_status").on(e10.agentId, e10.workspaceId, e10.status), kt("idx_emails_to_direction").on(e10.toEmail, e10.direction), kt("idx_emails_from_direction").on(e10.fromEmail, e10.direction), kt("idx_emails_message_id").on(e10.messageId), kt("idx_emails_created_at").on(e10.createdAt)]), k$ = A8("calendar_event", { id: A2("id").primaryKey().$defaultFn(() => "ce_" + (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), title: A2("title").notNull(), description: A2("description"), scheduledAt: A2("scheduled_at").notNull(), repeatInterval: A2("repeat_interval"), repeatStopAt: A2("repeat_stop_at"), lastTriggeredAt: A2("last_triggered_at"), exceptions: A2("exceptions", { mode: "json" }).$type().notNull().default(xF`'[]'`), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_calendar_event_agent_ws").on(e10.agentId, e10.workspaceId), kt("idx_calendar_event_ws_scheduled").on(e10.workspaceId, e10.scheduledAt), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kT = A8("artifact", { id: A2("id").primaryKey().$defaultFn(() => "art_" + (0, IV.nanoid)()), conversationId: A2("conversation_id").notNull().references(() => kI.id, { onDelete: "cascade" }), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), filename: A2("filename").notNull(), contentType: A2("content_type").notNull().default("application/octet-stream"), size: AF("size").notNull(), r2Key: A2("r2_key").notNull(), thumbnailR2Key: A2("thumbnail_r2_key"), source: A2("source").notNull().default("agent"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_artifact_conversation").on(e10.conversationId), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kR = A8("agent_email_account", { id: A2("id").primaryKey().$defaultFn(() => "aea_" + (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), emailAddress: A2("email_address").notNull(), displayName: A2("display_name").notNull().default(""), imapHost: A2("imap_host").notNull(), imapPort: AF("imap_port").notNull().default(993), imapUsername: A2("imap_username").notNull(), imapPassword: A2("imap_password").notNull(), imapTls: AF("imap_tls", { mode: "boolean" }).notNull().default(true), smtpHost: A2("smtp_host").notNull(), smtpPort: AF("smtp_port").notNull().default(587), smtpUsername: A2("smtp_username").notNull(), smtpPassword: A2("smtp_password").notNull(), smtpTls: AF("smtp_tls").notNull().default(1), pollIntervalSeconds: AF("poll_interval_seconds").notNull().default(60), lastSyncedUid: A2("last_synced_uid").notNull().default("0"), lastSyncedAt: A2("last_synced_at"), status: A2("status").notNull().default("active"), errorMessage: A2("error_message").notNull().default(""), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_email_account_agent_ws").on(e10.agentId, e10.workspaceId), Av("email_account_agent_email").on(e10.agentId, e10.emailAddress), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kO = A8("meeting_session", { id: A2("id").primaryKey().$defaultFn(() => "ms_" + (0, IV.nanoid)()), agentId: A2("agent_id").notNull(), workspaceId: A2("workspace_id").notNull(), title: A2("title").notNull().default(""), meetingUrl: A2("meeting_url").notNull(), status: A2("status").notNull().default("scheduled"), fromEmail: A2("from_email"), isWhitelisted: AF("is_whitelisted", { mode: "boolean" }).notNull().default(true), participants: A2("participants", { mode: "json" }).$type().notNull().default([]), scheduledAt: A2("scheduled_at"), startedAt: A2("started_at"), completedAt: A2("completed_at"), transcriptR2Key: A2("transcript_r2_key"), summary: A2("summary"), error: A2("error"), workerSessionId: A2("worker_session_id"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_meeting_session_agent_ws").on(e10.agentId, e10.workspaceId), kt("idx_meeting_session_status").on(e10.status), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kC = A8("machine_token", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), workspaceId: A2("workspace_id").references(() => kc.id, { onDelete: "cascade" }), token: A2("token").unique().notNull(), name: A2("name").notNull().default(""), status: A2("status").notNull().default("active"), hostname: A2("hostname"), runtimesJson: A2("runtimes_json"), lastUsedAt: A2("last_used_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_machine_token").on(e10.token)]), kU = A8("message_flag", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => k_.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("message_flag_message_user").on(e10.messageId, e10.userId), kt("idx_message_flag_ws_user_created").on(e10.workspaceId, e10.userId, e10.createdAt), kt("idx_message_flag_message_user").on(e10.messageId, e10.userId)]), kN = A8("conversation_map", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), key: A2("key").notNull(), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), conversationId: A2("conversation_id").notNull().references(() => kI.id, { onDelete: "cascade" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("conversation_map_key_workspace").on(e10.key, e10.workspaceId)]), kD = A8("agent_link", { id: A2("id").primaryKey().$defaultFn(() => "al_" + (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull(), sourceAgentId: A2("source_agent_id").notNull(), targetAgentId: A2("target_agent_id").notNull(), instruction: A2("instruction").notNull().default(""), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("agent_link_ws_source_target").on(e10.workspaceId, e10.sourceAgentId, e10.targetAgentId), kt("idx_agent_link_workspace").on(e10.workspaceId), Ay({ columns: [e10.sourceAgentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade"), Ay({ columns: [e10.targetAgentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kP = A8("conversation_read_state", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), conversationId: A2("conversation_id").notNull().references(() => kI.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), lastReadAt: A2("last_read_at").notNull().default("1970-01-01T00:00:00.000Z"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("conversation_read_state_conv_user").on(e10.conversationId, e10.userId), kt("idx_conversation_read_state_user").on(e10.userId)]), kj = A8("workspace_file_request", { id: A2("id").primaryKey().$defaultFn(() => "wfr_" + (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), agentId: A2("agent_id").notNull(), requestType: A2("request_type").notNull(), path: A2("path").notNull().default("."), status: A2("status").notNull().default("pending"), result: A2("result"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_wfr_workspace_status").on(e10.workspaceId, e10.status)]), kL = A8("agent_skill", { id: A2("id").primaryKey().$defaultFn(() => "as_" + (0, IV.nanoid)()), workspaceId: A2("workspace_id").notNull().references(() => kc.id, { onDelete: "cascade" }), agentId: A2("agent_id"), daemonId: A2("daemon_id"), runtime: A2("runtime").notNull(), name: A2("name").notNull(), description: A2("description").notNull().default(""), syncedAt: A2("synced_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("agent_skill_ws_runtime_name_agent_daemon").on(e10.workspaceId, e10.runtime, e10.name, e10.agentId, e10.daemonId), kt("idx_as_workspace_runtime").on(e10.workspaceId, e10.runtime), kt("idx_as_agent_runtime").on(e10.agentId, e10.runtime), Ay({ columns: [e10.agentId, e10.workspaceId], foreignColumns: [kw.id, kw.workspaceId] }).onDelete("cascade")]), kz = A8("inbox_unread", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), conversationId: A2("conversation_id").notNull().references(() => kI.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), workspaceId: A2("workspace_id").notNull(), agentId: A2("agent_id").notNull(), taskId: A2("task_id").notNull(), taskType: A2("task_type").notNull(), taskStatus: A2("task_status").notNull(), taskPrompt: A2("task_prompt"), completedAt: A2("completed_at").notNull(), latestMessageId: A2("latest_message_id") }, (e10) => [Av("inbox_unread_conv_user").on(e10.conversationId, e10.userId), kt("idx_inbox_unread_user_ws").on(e10.userId, e10.workspaceId, e10.taskType, e10.completedAt)]);
|
|
24183
24189
|
e.s(["account", 0, kl, "agent", 0, kw, "agentAccess", 0, kf, "agentEmailAccount", 0, kR, "agentLink", 0, kD, "agentPin", 0, km, "agentRuntime", 0, ky, "agentSidebarOrder", 0, kh, "agentSkill", 0, kL, "agentTaskQueue", 0, kx, "agentWhitelist", 0, kv, "artifact", 0, kT, "calendarEvent", 0, k$, "channel", 0, kb, "conversation", 0, kI, "conversationMap", 0, kN, "conversationReadState", 0, kP, "emails", 0, kE, "inboxUnread", 0, kz, "issue", 0, kA, "issueComment", 0, kk, "machine", 0, kg, "machineToken", 0, kC, "meetingSession", 0, kO, "member", 0, ku, "message", 0, k_, "messageFlag", 0, kU, "session", 0, ks, "taskMessage", 0, kS, "user", 0, ko, "verification", 0, kd, "workspace", 0, kc, "workspaceFileRequest", 0, kj, "workspaceInvite", 0, kp], 239685);
|
|
24184
|
-
let kB = A8("community_server", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), name: A2("name").notNull(), discriminator: A2("discriminator").notNull().default("0000"), description: A2("description").default(""), icon: A2("icon"), ownerId: A2("owner_id").notNull().references(() => ko.id, { onDelete: "restrict" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kr("idx_community_server_name_discriminator").on(e10.name, e10.discriminator)]), kq = A8("community_category", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").notNull().references(() => kB.id, { onDelete: "cascade" }), name: A2("name").notNull(), position: AF("position").default(0), private: AF("private").default(0), creatorId: A2("creator_id").references(() => ko.id, { onDelete: "set null" }) }, (e10) => [Av("uq_category_server_name").on(e10.serverId, e10.name)]), kM = A8("community_channel", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").references(() => kB.id, { onDelete: "cascade" }), categoryId: A2("category_id").references(() => kq.id, { onDelete: "set null" }), name: A2("name"), type: A2("type").notNull().default("text"), topic: A2("topic").default(""), position: AF("position").default(0), parentChannelId: A2("parent_channel_id").references(() => kM.id, { onDelete: "cascade" }), creatorId: A2("creator_id").references(() => ko.id, { onDelete: "set null" }), messageCount: AF("message_count").default(0), archived: AF("archived").default(0), parentMessageId: A2("parent_message_id"), lastMessageAt: A2("last_message_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_channel_server_position").on(e10.serverId, e10.position), kt("idx_channel_server_last_message").on(e10.serverId, e10.lastMessageAt), kt("idx_channel_parent").on(e10.parentChannelId), kr("idx_channel_server_name").on(e10.serverId, e10.name).where(xF`parent_channel_id IS NULL`)]), kF = A8("community_channel_member", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), relation: A2("relation").notNull().default("access"), source: A2("source").notNull().default("added"), addedBy: A2("added_by").references(() => ko.id, { onDelete: "set null" }), addedAt: A2("added_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_channel_member").on(e10.channelId, e10.userId, e10.relation), kt("idx_channel_member_user").on(e10.userId)]), kZ = A8("community_message", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), authorId: A2("author_id").notNull().references(() => ko.id, { onDelete: "cascade" }), content: A2("content").notNull().default(""), type: A2("type").notNull().default("default"), mentionType: A2("mention_type"), replyToId: A2("reply_to_id"), embeds: A2("embeds"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), seq: AF("seq").notNull().default(0), friendshipId: A2("friendship_id").references(() => kQ.id, { onDelete: "set null" }), clientNonce: A2("client_nonce") }, (e10) => [kt("idx_message_channel_created").on(e10.channelId, e10.createdAt), kt("idx_message_channel_mention_created").on(e10.channelId, e10.mentionType, e10.createdAt)]), kH = A8("community_message_seq", { channelId: A2("channel_id").primaryKey().references(() => kM.id, { onDelete: "cascade" }), nextSeq: AF("next_seq").notNull() }), kV = A8("community_server_member", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").notNull().references(() => kB.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), role: A2("role").default("member"), railOrder: AF("rail_order").default(0), joinedAt: A2("joined_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_server_member_server_user").on(e10.serverId, e10.userId), kt("idx_server_member_user").on(e10.userId), kt("idx_server_member_user_rail_order").on(e10.userId, e10.railOrder), kt("idx_server_member_server_joined").on(e10.serverId, e10.joinedAt)]), kJ = A8("community_server_folder", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), name: A2("name").notNull(), position: AF("position").default(0) }, (e10) => [kt("idx_server_folder_user_position").on(e10.userId, e10.position)]), kK = A8("community_server_folder_item", { folderId: A2("folder_id").notNull().references(() => kJ.id, { onDelete: "cascade" }), serverId: A2("server_id").notNull().references(() => kB.id, { onDelete: "cascade" }), position: AF("position").default(0) }, (e10) => [kn({ columns: [e10.folderId, e10.serverId] }), kt("idx_server_folder_item_folder_position").on(e10.folderId, e10.position)]), kW = A8("community_server_invite", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").notNull().references(() => kB.id, { onDelete: "cascade" }), createdBy: A2("created_by").references(() => ko.id, { onDelete: "set null" }), token: A2("token").unique().notNull().$defaultFn(() => (0, IV.nanoid)(10)), maxUses: AF("max_uses"), uses: AF("uses").default(0), expiresAt: A2("expires_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_server_invite_server").on(e10.serverId)]), kQ = A8("community_friendship", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), requesterId: A2("requester_id").notNull().references(() => ko.id, { onDelete: "cascade" }), addresseeId: A2("addressee_id").notNull().references(() => ko.id, { onDelete: "cascade" }), status: A2("status").notNull().default("pending"), needsOwnerApproval: A2("needs_owner_approval").references(() => ko.id), blockerId: A2("blocker_id"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), resolvedAt: A2("resolved_at") }, (e10) => [kt("idx_friendship_addressee_status").on(e10.addresseeId, e10.status), kt("idx_friendship_requester_status").on(e10.requesterId, e10.status)]), kG = A8("community_read_state", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), lastReadAt: A2("last_read_at").notNull(), lastReadMessageId: A2("last_read_message_id"), lastReadSeq: AF("last_read_seq").notNull().default(0) }, (e10) => [kt("idx_read_state_user").on(e10.userId)]), kX = A8("community_reaction", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), emoji: A2("emoji").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_reaction_message_user_emoji").on(e10.messageId, e10.userId, e10.emoji), kt("idx_reaction_message").on(e10.messageId)]), kY = A8("community_attachment", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").references(() => kZ.id, { onDelete: "cascade" }), uploaderId: A2("uploader_id").notNull(), targetId: A2("target_id").notNull(), r2Key: A2("r2_key").notNull(), filename: A2("filename").notNull(), contentType: A2("content_type"), size: AF("size"), width: AF("width"), height: AF("height"), position: AF("position"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_attachment_message").on(e10.messageId, e10.position)]), k0 = A8("community_pin", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), pinnedBy: A2("pinned_by").references(() => ko.id, { onDelete: "set null" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_pin_channel_message").on(e10.channelId, e10.messageId), kt("idx_pin_channel").on(e10.channelId)]), k1 = A8("community_mention", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), kind: A2("kind").notNull().default("mention"), read: AF("read").default(0) }, (e10) => [kt("idx_mention_user_read").on(e10.userId, e10.read), kt("idx_mention_message").on(e10.messageId)]), k4 = A8("community_user_profile", { userId: A2("user_id").primaryKey().references(() => ko.id, { onDelete: "cascade" }), aboutMe: A2("about_me").default(""), bannerColor: A2("banner_color"), statusEmoji: A2("status_emoji"), statusText: A2("status_text").default("") }), k6 = A8("community_notification_setting", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), serverId: A2("server_id").references(() => kB.id, { onDelete: "cascade" }), channelId: A2("channel_id").references(() => kM.id, { onDelete: "cascade" }), level: A2("level").notNull().default("all") }, (e10) => [kt("idx_notification_setting_user").on(e10.userId)]), k2 = A8("community_audit_log", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").references(() => kB.id, { onDelete: "cascade" }), actorId: A2("actor_id").references(() => ko.id, { onDelete: "set null" }), action: A2("action").notNull(), targetType: A2("target_type").notNull(), targetId: A2("target_id").notNull(), changes: A2("changes"), reason: A2("reason"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_audit_log_server_created").on(e10.serverId, e10.createdAt), kt("idx_audit_log_server_action").on(e10.serverId, e10.action), kt("idx_audit_log_actor_created").on(e10.actorId, e10.createdAt)]), k3 = A8("community_bot_approval_request", { id: A2("id").primaryKey().$defaultFn(() => "bar_" + (0, IV.nanoid)()), botId: A2("bot_id").notNull().references(() => ko.id, { onDelete: "cascade" }), kind: A2("kind").notNull(), serverId: A2("server_id").references(() => kB.id, { onDelete: "cascade" }), requestedByUserId: A2("requested_by_user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), dmMessageId: A2("dm_message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), status: A2("status").notNull().default("pending"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), resolvedAt: A2("resolved_at") }, (e10) => [kt("idx_community_bot_approval_bot").on(e10.botId, e10.status)]), k5 = A8("community_bot_activity_event", { id: A2("id").primaryKey().$defaultFn(() => "bae_" + (0, IV.nanoid)()), botId: A2("bot_id").notNull().references(() => ko.id, { onDelete: "cascade" }), sessionId: A2("session_id"), launchId: A2("launch_id"), kind: A2("kind").notNull(), payload: A2("payload").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_bot_activity_event_bot_created").on(e10.botId, e10.createdAt, e10.id)]), k8 = A8("community_bot_daily_activity", { botId: A2("bot_id").notNull().references(() => ko.id, { onDelete: "cascade" }), day: A2("day").notNull(), handledCount: AF("handled_count").notNull().default(0), sentCount: AF("sent_count").notNull().default(0) }, (e10) => [kn({ columns: [e10.botId, e10.day] })]), k9 = A8("community_message_mark", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_mark_user_message").on(e10.userId, e10.messageId), kt("idx_mark_user_created").on(e10.userId, e10.createdAt)]), k7 = A8("community_message_tag", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), tag: A2("tag").notNull() }, (e10) => [Av("uq_message_tag").on(e10.messageId, e10.tag), kt("idx_message_tag_tag").on(e10.tag, e10.messageId)]);
|
|
24185
|
-
e.s(["communityAttachment", 0, kY, "communityAuditLog", 0, k2, "communityBotActivityEvent", 0, k5, "communityBotApprovalRequest", 0, k3, "communityBotDailyActivity", 0, k8, "communityCategory", 0,
|
|
24190
|
+
let kq = A8("community_server", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), name: A2("name").notNull(), discriminator: A2("discriminator").notNull().default("0000"), description: A2("description").default(""), icon: A2("icon"), ownerId: A2("owner_id").notNull().references(() => ko.id, { onDelete: "restrict" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kr("idx_community_server_name_discriminator").on(e10.name, e10.discriminator)]), kB = A8("community_category", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").notNull().references(() => kq.id, { onDelete: "cascade" }), name: A2("name").notNull(), position: AF("position").default(0), private: AF("private").default(0), creatorId: A2("creator_id").references(() => ko.id, { onDelete: "set null" }) }, (e10) => [Av("uq_category_server_name").on(e10.serverId, e10.name)]), kM = A8("community_channel", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").references(() => kq.id, { onDelete: "cascade" }), categoryId: A2("category_id").references(() => kB.id, { onDelete: "set null" }), name: A2("name"), type: A2("type").notNull().default("text"), topic: A2("topic").default(""), position: AF("position").default(0), parentChannelId: A2("parent_channel_id").references(() => kM.id, { onDelete: "cascade" }), creatorId: A2("creator_id").references(() => ko.id, { onDelete: "set null" }), messageCount: AF("message_count").default(0), archived: AF("archived").default(0), parentMessageId: A2("parent_message_id"), lastMessageAt: A2("last_message_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_channel_server_position").on(e10.serverId, e10.position), kt("idx_channel_server_last_message").on(e10.serverId, e10.lastMessageAt), kt("idx_channel_parent").on(e10.parentChannelId), kr("idx_channel_server_name").on(e10.serverId, e10.name).where(xF`parent_channel_id IS NULL`)]), kF = A8("community_channel_member", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), relation: A2("relation").notNull().default("access"), source: A2("source").notNull().default("added"), addedBy: A2("added_by").references(() => ko.id, { onDelete: "set null" }), addedAt: A2("added_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_channel_member").on(e10.channelId, e10.userId, e10.relation), kt("idx_channel_member_user").on(e10.userId)]), kZ = A8("community_message", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), authorId: A2("author_id").notNull().references(() => ko.id, { onDelete: "cascade" }), content: A2("content").notNull().default(""), type: A2("type").notNull().default("default"), mentionType: A2("mention_type"), replyToId: A2("reply_to_id"), embeds: A2("embeds"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), seq: AF("seq").notNull().default(0), friendshipId: A2("friendship_id").references(() => kQ.id, { onDelete: "set null" }), clientNonce: A2("client_nonce") }, (e10) => [kt("idx_message_channel_created").on(e10.channelId, e10.createdAt), kt("idx_message_channel_mention_created").on(e10.channelId, e10.mentionType, e10.createdAt)]), kH = A8("community_message_seq", { channelId: A2("channel_id").primaryKey().references(() => kM.id, { onDelete: "cascade" }), nextSeq: AF("next_seq").notNull() }), kV = A8("community_server_member", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").notNull().references(() => kq.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), role: A2("role").default("member"), railOrder: AF("rail_order").default(0), joinedAt: A2("joined_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_server_member_server_user").on(e10.serverId, e10.userId), kt("idx_server_member_user").on(e10.userId), kt("idx_server_member_user_rail_order").on(e10.userId, e10.railOrder), kt("idx_server_member_server_joined").on(e10.serverId, e10.joinedAt)]), kJ = A8("community_server_folder", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), name: A2("name").notNull(), position: AF("position").default(0) }, (e10) => [kt("idx_server_folder_user_position").on(e10.userId, e10.position)]), kK = A8("community_server_folder_item", { folderId: A2("folder_id").notNull().references(() => kJ.id, { onDelete: "cascade" }), serverId: A2("server_id").notNull().references(() => kq.id, { onDelete: "cascade" }), position: AF("position").default(0) }, (e10) => [kn({ columns: [e10.folderId, e10.serverId] }), kt("idx_server_folder_item_folder_position").on(e10.folderId, e10.position)]), kW = A8("community_server_invite", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").notNull().references(() => kq.id, { onDelete: "cascade" }), createdBy: A2("created_by").references(() => ko.id, { onDelete: "set null" }), token: A2("token").unique().notNull().$defaultFn(() => (0, IV.nanoid)(10)), maxUses: AF("max_uses"), uses: AF("uses").default(0), expiresAt: A2("expires_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_server_invite_server").on(e10.serverId)]), kQ = A8("community_friendship", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), requesterId: A2("requester_id").notNull().references(() => ko.id, { onDelete: "cascade" }), addresseeId: A2("addressee_id").notNull().references(() => ko.id, { onDelete: "cascade" }), status: A2("status").notNull().default("pending"), needsOwnerApproval: A2("needs_owner_approval").references(() => ko.id), blockerId: A2("blocker_id"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), resolvedAt: A2("resolved_at") }, (e10) => [kt("idx_friendship_addressee_status").on(e10.addresseeId, e10.status), kt("idx_friendship_requester_status").on(e10.requesterId, e10.status)]), kG = A8("community_read_state", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), lastReadAt: A2("last_read_at").notNull(), lastReadMessageId: A2("last_read_message_id"), lastReadSeq: AF("last_read_seq").notNull().default(0) }, (e10) => [kt("idx_read_state_user").on(e10.userId)]), kX = A8("community_reaction", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), emoji: A2("emoji").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_reaction_message_user_emoji").on(e10.messageId, e10.userId, e10.emoji), kt("idx_reaction_message").on(e10.messageId)]), kY = A8("community_attachment", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").references(() => kZ.id, { onDelete: "cascade" }), uploaderId: A2("uploader_id").notNull(), targetId: A2("target_id").notNull(), r2Key: A2("r2_key").notNull(), filename: A2("filename").notNull(), contentType: A2("content_type"), size: AF("size"), width: AF("width"), height: AF("height"), position: AF("position"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_attachment_message").on(e10.messageId, e10.position)]), k0 = A8("community_pin", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), pinnedBy: A2("pinned_by").references(() => ko.id, { onDelete: "set null" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_pin_channel_message").on(e10.channelId, e10.messageId), kt("idx_pin_channel").on(e10.channelId)]), k1 = A8("community_mention", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), kind: A2("kind").notNull().default("mention"), read: AF("read").default(0) }, (e10) => [kt("idx_mention_user_read").on(e10.userId, e10.read), kt("idx_mention_message").on(e10.messageId)]), k4 = A8("community_user_profile", { userId: A2("user_id").primaryKey().references(() => ko.id, { onDelete: "cascade" }), aboutMe: A2("about_me").default(""), bannerColor: A2("banner_color"), statusEmoji: A2("status_emoji"), statusText: A2("status_text").default("") }), k6 = A8("community_notification_setting", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), serverId: A2("server_id").references(() => kq.id, { onDelete: "cascade" }), channelId: A2("channel_id").references(() => kM.id, { onDelete: "cascade" }), level: A2("level").notNull().default("all") }, (e10) => [kt("idx_notification_setting_user").on(e10.userId)]), k2 = A8("community_audit_log", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), serverId: A2("server_id").references(() => kq.id, { onDelete: "cascade" }), actorId: A2("actor_id").references(() => ko.id, { onDelete: "set null" }), action: A2("action").notNull(), targetType: A2("target_type").notNull(), targetId: A2("target_id").notNull(), changes: A2("changes"), reason: A2("reason"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_audit_log_server_created").on(e10.serverId, e10.createdAt), kt("idx_audit_log_server_action").on(e10.serverId, e10.action), kt("idx_audit_log_actor_created").on(e10.actorId, e10.createdAt)]), k3 = A8("community_bot_approval_request", { id: A2("id").primaryKey().$defaultFn(() => "bar_" + (0, IV.nanoid)()), botId: A2("bot_id").notNull().references(() => ko.id, { onDelete: "cascade" }), kind: A2("kind").notNull(), serverId: A2("server_id").references(() => kq.id, { onDelete: "cascade" }), requestedByUserId: A2("requested_by_user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), dmMessageId: A2("dm_message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), status: A2("status").notNull().default("pending"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), resolvedAt: A2("resolved_at") }, (e10) => [kt("idx_community_bot_approval_bot").on(e10.botId, e10.status)]), k5 = A8("community_bot_activity_event", { id: A2("id").primaryKey().$defaultFn(() => "bae_" + (0, IV.nanoid)()), botId: A2("bot_id").notNull().references(() => ko.id, { onDelete: "cascade" }), sessionId: A2("session_id"), launchId: A2("launch_id"), kind: A2("kind").notNull(), payload: A2("payload").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_bot_activity_event_bot_created").on(e10.botId, e10.createdAt, e10.id)]), k8 = A8("community_bot_daily_activity", { botId: A2("bot_id").notNull().references(() => ko.id, { onDelete: "cascade" }), day: A2("day").notNull(), handledCount: AF("handled_count").notNull().default(0), sentCount: AF("sent_count").notNull().default(0) }, (e10) => [kn({ columns: [e10.botId, e10.day] })]), k9 = A8("community_message_mark", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), channelId: A2("channel_id").notNull().references(() => kM.id, { onDelete: "cascade" }), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [Av("uq_mark_user_message").on(e10.userId, e10.messageId), kt("idx_mark_user_created").on(e10.userId, e10.createdAt)]), k7 = A8("community_message_tag", { id: A2("id").primaryKey().$defaultFn(() => (0, IV.nanoid)()), messageId: A2("message_id").notNull().references(() => kZ.id, { onDelete: "cascade" }), tag: A2("tag").notNull() }, (e10) => [Av("uq_message_tag").on(e10.messageId, e10.tag), kt("idx_message_tag_tag").on(e10.tag, e10.messageId)]);
|
|
24191
|
+
e.s(["communityAttachment", 0, kY, "communityAuditLog", 0, k2, "communityBotActivityEvent", 0, k5, "communityBotApprovalRequest", 0, k3, "communityBotDailyActivity", 0, k8, "communityCategory", 0, kB, "communityChannel", 0, kM, "communityChannelMember", 0, kF, "communityFriendship", 0, kQ, "communityMention", 0, k1, "communityMessage", 0, kZ, "communityMessageMark", 0, k9, "communityMessageSeq", 0, kH, "communityMessageTag", 0, k7, "communityNotificationSetting", 0, k6, "communityPin", 0, k0, "communityReaction", 0, kX, "communityReadState", 0, kG, "communityServer", 0, kq, "communityServerFolder", 0, kJ, "communityServerFolderItem", 0, kK, "communityServerInvite", 0, kW, "communityServerMember", 0, kV, "communityUserProfile", 0, k4], 234595);
|
|
24186
24192
|
let Se = { debug: 0, info: 1, warn: 2, error: 3, silent: 4 };
|
|
24187
24193
|
class St {
|
|
24188
24194
|
service;
|
|
@@ -24400,7 +24406,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24400
24406
|
function Sj(e10) {
|
|
24401
24407
|
return xF`count(${e10 || xF.raw("*")})`.mapWith(Number);
|
|
24402
24408
|
}
|
|
24403
|
-
let SL = A8("community_machine_token", { id: A2("id").primaryKey().$defaultFn(() => "cmt_" + (0, IV.nanoid)(32)), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), machineId: A2("machine_id"), status: A2("status").notNull().default("pending"), expiresAt: A2("expires_at").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), lastUsedAt: A2("last_used_at") }, (e10) => [kt("idx_community_machine_token_user_status").on(e10.userId, e10.status), kr("uq_community_machine_token_user_pending").on(e10.userId).where(xF`status = 'pending'`)]), Sz = A8("community_machine", { id: A2("id").primaryKey().$defaultFn(() => "cm_" + (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), displayName: A2("display_name").notNull().default(""), hostname: A2("hostname").notNull().default(""), platform: A2("platform").notNull().default(""), arch: A2("arch").notNull().default(""), osRelease: A2("os_release").notNull().default(""), daemonVersion: A2("daemon_version").notNull().default(""), metadata: A2("metadata"), availableRuntimes: A2("available_runtimes", { mode: "json" }).$type().notNull().default([]), status: A2("status").notNull().default("offline"), lastSeenAt: A2("last_seen_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_community_machine_user_last_seen").on(e10.userId, e10.lastSeenAt), kt("idx_community_machine_user_updated").on(e10.userId, e10.updatedAt), kt("idx_community_machine_user_status").on(e10.userId, e10.status)]),
|
|
24409
|
+
let SL = A8("community_machine_token", { id: A2("id").primaryKey().$defaultFn(() => "cmt_" + (0, IV.nanoid)(32)), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), machineId: A2("machine_id"), status: A2("status").notNull().default("pending"), expiresAt: A2("expires_at").notNull(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), lastUsedAt: A2("last_used_at") }, (e10) => [kt("idx_community_machine_token_user_status").on(e10.userId, e10.status), kr("uq_community_machine_token_user_pending").on(e10.userId).where(xF`status = 'pending'`)]), Sz = A8("community_machine", { id: A2("id").primaryKey().$defaultFn(() => "cm_" + (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), displayName: A2("display_name").notNull().default(""), hostname: A2("hostname").notNull().default(""), platform: A2("platform").notNull().default(""), arch: A2("arch").notNull().default(""), osRelease: A2("os_release").notNull().default(""), daemonVersion: A2("daemon_version").notNull().default(""), metadata: A2("metadata"), availableRuntimes: A2("available_runtimes", { mode: "json" }).$type().notNull().default([]), status: A2("status").notNull().default("offline"), lastSeenAt: A2("last_seen_at"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), updatedAt: A2("updated_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_community_machine_user_last_seen").on(e10.userId, e10.lastSeenAt), kt("idx_community_machine_user_updated").on(e10.userId, e10.updatedAt), kt("idx_community_machine_user_status").on(e10.userId, e10.status)]), Sq = A8("community_machine_credential", { id: A2("id").primaryKey().$defaultFn(() => "cmkid_" + (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), machineId: A2("machine_id").notNull().references(() => Sz.id, { onDelete: "cascade" }), credentialHash: A2("credential_hash").notNull().unique(), doName: A2("do_name").notNull().unique(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), lastUsedAt: A2("last_used_at"), revokedAt: A2("revoked_at") }, (e10) => [kt("idx_community_machine_credential_user").on(e10.userId), kt("idx_community_machine_credential_machine").on(e10.machineId)]), SB = A8("community_bot_binding", { userId: A2("user_id").primaryKey().references(() => ko.id, { onDelete: "cascade" }), machineId: A2("machine_id").notNull().references(() => Sz.id, { onDelete: "restrict" }), runtime: A2("runtime").notNull(), modelName: A2("model_name"), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()) }, (e10) => [kt("idx_community_bot_binding_machine").on(e10.machineId)]), SM = A8("community_agent_runner_key", { id: A2("id").primaryKey().$defaultFn(() => "crkid_" + (0, IV.nanoid)()), userId: A2("user_id").notNull().references(() => ko.id, { onDelete: "cascade" }), machineId: A2("machine_id").notNull().references(() => Sz.id, { onDelete: "cascade" }), agentId: A2("agent_id").notNull(), runnerKeyHash: A2("runner_key_hash").notNull().unique(), doName: A2("do_name").notNull().unique(), createdAt: A2("created_at").notNull().$defaultFn(() => (/* @__PURE__ */ new Date()).toISOString()), revokedAt: A2("revoked_at") }, (e10) => [kt("idx_community_agent_runner_key_machine_agent").on(e10.machineId, e10.agentId)]);
|
|
24404
24410
|
function SF(e10) {
|
|
24405
24411
|
return e10.replace(/[\\%_]/g, (e11) => "\\" + e11);
|
|
24406
24412
|
}
|
|
@@ -24414,7 +24420,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24414
24420
|
function SH(e10, t10) {
|
|
24415
24421
|
return `${e10}#${t10}`;
|
|
24416
24422
|
}
|
|
24417
|
-
e.s(["communityAgentRunnerKey", 0, SM, "communityBotBinding", 0,
|
|
24423
|
+
e.s(["communityAgentRunnerKey", 0, SM, "communityBotBinding", 0, SB, "communityMachine", 0, Sz, "communityMachineCredential", 0, Sq, "communityMachineToken", 0, SL], 500069);
|
|
24418
24424
|
let SV = { id: ko.id, name: ko.name, email: ko.email, emailVerified: ko.emailVerified, image: ko.image, createdAt: ko.createdAt, updatedAt: ko.updatedAt, discriminator: ko.discriminator }, SJ = { ...SV, isBot: ko.isBot, ownerUserId: ko.ownerUserId, deletedAt: ko.deletedAt };
|
|
24419
24425
|
async function SK(e10, t10) {
|
|
24420
24426
|
return (await e10.select(SV).from(ko).where(xG(xW(ko.id, t10), x5(ko.deletedAt))))[0] ?? null;
|
|
@@ -24489,10 +24495,10 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24489
24495
|
}
|
|
24490
24496
|
}
|
|
24491
24497
|
async function S8(e10, t10) {
|
|
24492
|
-
return (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, image: ko.image, ownerUserId: ko.ownerUserId, createdAt: ko.createdAt, updatedAt: ko.updatedAt, lastRefreshContextAt: ko.lastRefreshContextAt, description: k4.aboutMe, machineId:
|
|
24498
|
+
return (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, image: ko.image, ownerUserId: ko.ownerUserId, createdAt: ko.createdAt, updatedAt: ko.updatedAt, lastRefreshContextAt: ko.lastRefreshContextAt, description: k4.aboutMe, machineId: SB.machineId, runtime: SB.runtime, modelName: SB.modelName }).from(ko).innerJoin(SB, xW(SB.userId, ko.id)).leftJoin(k4, xW(k4.userId, ko.id)).where(xG(xW(ko.isBot, true), xW(ko.ownerUserId, t10), x5(ko.deletedAt)))).map((e11) => ({ id: e11.id, name: e11.name, discriminator: e11.discriminator, image: e11.image, ownerUserId: e11.ownerUserId, description: e11.description ?? "", createdAt: e11.createdAt, updatedAt: e11.updatedAt, lastRefreshContextAt: e11.lastRefreshContextAt ?? null, machineId: e11.machineId, runtime: e11.runtime, modelName: e11.modelName ?? null }));
|
|
24493
24499
|
}
|
|
24494
24500
|
async function S9(e10, t10, r10) {
|
|
24495
|
-
let n10 = (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, image: ko.image, ownerUserId: ko.ownerUserId, createdAt: ko.createdAt, updatedAt: ko.updatedAt, lastRefreshContextAt: ko.lastRefreshContextAt, description: k4.aboutMe, machineId:
|
|
24501
|
+
let n10 = (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, image: ko.image, ownerUserId: ko.ownerUserId, createdAt: ko.createdAt, updatedAt: ko.updatedAt, lastRefreshContextAt: ko.lastRefreshContextAt, description: k4.aboutMe, machineId: SB.machineId, runtime: SB.runtime, modelName: SB.modelName }).from(ko).leftJoin(SB, xW(SB.userId, ko.id)).leftJoin(k4, xW(k4.userId, ko.id)).where(xG(xW(ko.id, t10), xW(ko.isBot, true), xW(ko.ownerUserId, r10), x5(ko.deletedAt))).limit(1))[0];
|
|
24496
24502
|
return n10 ? { id: n10.id, name: n10.name, discriminator: n10.discriminator, image: n10.image, ownerUserId: n10.ownerUserId, description: n10.description ?? "", createdAt: n10.createdAt, updatedAt: n10.updatedAt, lastRefreshContextAt: n10.lastRefreshContextAt ?? null, machineId: n10.machineId ?? null, runtime: n10.runtime ?? null, modelName: n10.modelName ?? null } : null;
|
|
24497
24503
|
}
|
|
24498
24504
|
async function S7(e10, t10) {
|
|
@@ -24500,35 +24506,35 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24500
24506
|
return r10[0]?.n ?? 0;
|
|
24501
24507
|
}
|
|
24502
24508
|
async function Ee(e10, t10) {
|
|
24503
|
-
let r10 = (await e10.select({ machineId:
|
|
24509
|
+
let r10 = (await e10.select({ machineId: SB.machineId, runtime: SB.runtime, modelName: SB.modelName }).from(SB).where(xW(SB.userId, t10)).limit(1))[0];
|
|
24504
24510
|
return r10 ? { machineId: r10.machineId, runtime: r10.runtime, modelName: r10.modelName ?? null } : null;
|
|
24505
24511
|
}
|
|
24506
24512
|
async function Et(e10, t10) {
|
|
24507
|
-
let r10 = (await e10.select({ machineId:
|
|
24513
|
+
let r10 = (await e10.select({ machineId: SB.machineId, runtime: SB.runtime, ownerUserId: ko.ownerUserId, name: ko.name, discriminator: ko.discriminator }).from(ko).innerJoin(SB, xW(SB.userId, ko.id)).where(xG(xW(ko.id, t10), xW(ko.isBot, true), x5(ko.deletedAt))).limit(1))[0];
|
|
24508
24514
|
return r10 && r10.ownerUserId ? { machineId: r10.machineId, runtime: r10.runtime, ownerUserId: r10.ownerUserId, name: r10.name, discriminator: r10.discriminator } : null;
|
|
24509
24515
|
}
|
|
24510
24516
|
async function Er(e10, t10) {
|
|
24511
24517
|
if (0 === t10.recipients.length) return [];
|
|
24512
24518
|
let r10 = xW(kG.channelId, t10.channelId);
|
|
24513
|
-
return (await Promise.all(Sn(t10.recipients, 90).map((t11) => e10.select({ botUserId: ko.id, name: ko.name, machineId:
|
|
24519
|
+
return (await Promise.all(Sn(t10.recipients, 90).map((t11) => e10.select({ botUserId: ko.id, name: ko.name, machineId: SB.machineId, runtime: SB.runtime, lastReadSeq: kG.lastReadSeq }).from(ko).innerJoin(SB, xW(SB.userId, ko.id)).leftJoin(kG, xG(xW(kG.userId, ko.id), r10)).where(xG(x2(ko.id, t11), xW(ko.isBot, true), x5(ko.deletedAt)))))).flat().filter((e11) => (e11.lastReadSeq ?? 0) < t10.newSeq).map((e11) => ({ botUserId: e11.botUserId, name: e11.name, machineId: e11.machineId, runtime: e11.runtime }));
|
|
24514
24520
|
}
|
|
24515
24521
|
async function En(e10, t10) {
|
|
24516
|
-
let r10 = (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, isBot: ko.isBot, deletedAt: ko.deletedAt, ownerUserId: ko.ownerUserId, machineId:
|
|
24522
|
+
let r10 = (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, isBot: ko.isBot, deletedAt: ko.deletedAt, ownerUserId: ko.ownerUserId, machineId: SB.machineId, runtime: SB.runtime, modelName: SB.modelName }).from(ko).leftJoin(SB, xW(SB.userId, ko.id)).where(xW(ko.id, t10)).limit(1))[0];
|
|
24517
24523
|
return r10 && r10.isBot ? r10.deletedAt ? { state: "bot_deleted" } : r10.machineId && r10.runtime ? { state: "ready", botUserId: r10.id, name: r10.name, discriminator: r10.discriminator, machineId: r10.machineId, runtime: r10.runtime, modelName: r10.modelName ?? null, ownerUserId: r10.ownerUserId } : { state: "bot_unbound" } : { state: "bot_missing" };
|
|
24518
24524
|
}
|
|
24519
24525
|
async function Ei(e10, t10) {
|
|
24520
24526
|
let r10 = SU(ko, "owner");
|
|
24521
|
-
return (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, description: k4.aboutMe, ownerName: r10.name, ownerDiscriminator: r10.discriminator, runtime:
|
|
24527
|
+
return (await e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator, description: k4.aboutMe, ownerName: r10.name, ownerDiscriminator: r10.discriminator, runtime: SB.runtime, modelName: SB.modelName }).from(ko).innerJoin(SB, xW(SB.userId, ko.id)).innerJoin(r10, xW(r10.id, ko.ownerUserId)).leftJoin(k4, xW(k4.userId, ko.id)).where(xG(xW(SB.machineId, t10), xW(ko.isBot, true), x5(ko.deletedAt), x5(r10.deletedAt)))).map((e11) => ({ id: e11.id, name: e11.name, discriminator: e11.discriminator, description: e11.description ?? "", ownerName: e11.ownerName, ownerDiscriminator: e11.ownerDiscriminator, runtime: e11.runtime, modelName: e11.modelName ?? null }));
|
|
24522
24528
|
}
|
|
24523
24529
|
async function Ea(e10, t10, r10) {
|
|
24524
24530
|
return (await e10.select({ serverId: kV.serverId }).from(kV).innerJoin(ko, xW(ko.id, kV.userId)).where(xG(xW(kV.userId, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true)))).map((e11) => e11.serverId);
|
|
24525
24531
|
}
|
|
24526
24532
|
async function Eo(e10, t10, r10) {
|
|
24527
|
-
return e10.select({ id: ko.id, name: ko.name }).from(ko).innerJoin(
|
|
24533
|
+
return e10.select({ id: ko.id, name: ko.name }).from(ko).innerJoin(SB, xW(SB.userId, ko.id)).where(xG(xW(SB.machineId, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true), x5(ko.deletedAt)));
|
|
24528
24534
|
}
|
|
24529
24535
|
async function Es(e10, t10) {
|
|
24530
24536
|
let r10 = (0, IV.nanoid)(), n10 = `bot-${r10}@${_m}`.toLowerCase(), i10 = (/* @__PURE__ */ new Date()).toISOString(), a10 = t10.description ?? "", o10 = await S4(e10, { id: r10, name: t10.name }, async (o11) => {
|
|
24531
|
-
let s10 = e10.insert(ko).values({ id: r10, name: t10.name, email: n10, emailVerified: true, image: t10.image ?? null, isBot: true, ownerUserId: t10.ownerId, discriminator: o11, createdAt: i10, updatedAt: i10 }), l10 = e10.insert(
|
|
24537
|
+
let s10 = e10.insert(ko).values({ id: r10, name: t10.name, email: n10, emailVerified: true, image: t10.image ?? null, isBot: true, ownerUserId: t10.ownerId, discriminator: o11, createdAt: i10, updatedAt: i10 }), l10 = e10.insert(SB).values({ userId: r10, machineId: t10.machineId, runtime: t10.runtime, modelName: t10.modelName ?? null, createdAt: i10 }), d10 = e10.insert(k4).values({ userId: r10, aboutMe: a10 }).onConflictDoUpdate({ target: k4.userId, set: { aboutMe: a10 } });
|
|
24532
24538
|
return await e10.batch([s10, l10, d10]), o11;
|
|
24533
24539
|
});
|
|
24534
24540
|
return { botId: r10, name: t10.name, discriminator: o10, description: a10, image: t10.image ?? null };
|
|
@@ -24549,11 +24555,11 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24549
24555
|
}
|
|
24550
24556
|
async function Ed(e10, t10, r10, n10) {
|
|
24551
24557
|
let i10 = e10.select({ id: ko.id }).from(ko).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true), x5(ko.deletedAt)));
|
|
24552
|
-
return (await e10.update(
|
|
24558
|
+
return (await e10.update(SB).set({ modelName: n10 }).where(x2(SB.userId, i10)).returning({ userId: SB.userId })).length > 0;
|
|
24553
24559
|
}
|
|
24554
24560
|
async function Ec(e10, t10, r10, n10, i10) {
|
|
24555
24561
|
let a10 = e10.select({ id: ko.id }).from(ko).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true), x5(ko.deletedAt)));
|
|
24556
|
-
return (await e10.update(
|
|
24562
|
+
return (await e10.update(SB).set({ runtime: n10, modelName: i10 }).where(x2(SB.userId, a10)).returning({ userId: SB.userId })).length > 0;
|
|
24557
24563
|
}
|
|
24558
24564
|
async function Eu(e10, t10, r10) {
|
|
24559
24565
|
await e10.update(ko).set({ lastRefreshContextAt: r10 }).where(xG(xW(ko.id, t10), xW(ko.isBot, true), x5(ko.deletedAt)));
|
|
@@ -24570,7 +24576,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24570
24576
|
return i10;
|
|
24571
24577
|
}
|
|
24572
24578
|
async function Em(e10, t10, r10) {
|
|
24573
|
-
let n10 = (/* @__PURE__ */ new Date()).toISOString(), i10 = e10.select({ id: ko.id }).from(ko).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true))), a10 = e10.update(ko).set({ deletedAt: n10, updatedAt: n10 }).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true), x5(ko.deletedAt))).returning({ id: ko.id }), o10 = e10.delete(kV).where(x2(kV.userId, i10)), s10 = e10.update(SM).set({ revokedAt: n10 }).where(xG(xW(SM.agentId, t10), x5(SM.revokedAt), x2(SM.userId, i10))), l10 = e10.delete(
|
|
24579
|
+
let n10 = (/* @__PURE__ */ new Date()).toISOString(), i10 = e10.select({ id: ko.id }).from(ko).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true))), a10 = e10.update(ko).set({ deletedAt: n10, updatedAt: n10 }).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true), x5(ko.deletedAt))).returning({ id: ko.id }), o10 = e10.delete(kV).where(x2(kV.userId, i10)), s10 = e10.update(SM).set({ revokedAt: n10 }).where(xG(xW(SM.agentId, t10), x5(SM.revokedAt), x2(SM.userId, i10))), l10 = e10.delete(SB).where(x2(SB.userId, i10)), d10 = await e10.batch([a10, o10, s10, l10]);
|
|
24574
24580
|
return (Array.isArray(d10?.[0]) ? d10[0] : []).length > 0;
|
|
24575
24581
|
}
|
|
24576
24582
|
async function Eh(e10, t10) {
|
|
@@ -24629,7 +24635,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24629
24635
|
if (n10 && xr(n10.type)) return await EJ(e10, t10, r10, "access") ? n10 : null;
|
|
24630
24636
|
let i10 = (await e10.select({ ...Ex, memberRole: kV.role }).from(kM).innerJoin(kV, xG(xW(kV.serverId, kM.serverId), xW(kV.userId, r10))).where(xW(kM.id, t10)))[0];
|
|
24631
24637
|
if (!i10) return null;
|
|
24632
|
-
let { memberRole: a10, ...o10 } = i10, s10 = o10.parentChannelId ?? o10.id, l10 = await e10.select({ creatorId: kM.creatorId, categoryPrivate:
|
|
24638
|
+
let { memberRole: a10, ...o10 } = i10, s10 = o10.parentChannelId ?? o10.id, l10 = await e10.select({ creatorId: kM.creatorId, categoryPrivate: kB.private }).from(kM).leftJoin(kB, xW(kB.id, kM.categoryId)).where(xW(kM.id, s10)).limit(1);
|
|
24633
24639
|
if ((l10[0]?.categoryPrivate ?? 0) === 1) {
|
|
24634
24640
|
let t11 = l10[0]?.creatorId === r10, n11 = !t11 && await EJ(e10, s10, r10);
|
|
24635
24641
|
if (!_9({ isCreator: t11, isChannelMember: n11 })) return null;
|
|
@@ -24680,13 +24686,13 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24680
24686
|
async function Ez(e10, t10) {
|
|
24681
24687
|
return 0 === t10.length ? [] : (await Promise.all(Sn(t10, 90).map((t11) => e10.select(Ex).from(kM).where(x2(kM.id, t11))))).flat();
|
|
24682
24688
|
}
|
|
24683
|
-
async function
|
|
24689
|
+
async function Eq(e10, t10, r10) {
|
|
24684
24690
|
return 0 === r10.length ? [] : (await Promise.all(Sn(r10, 88).map((r11) => e10.select(Ex).from(kM).where(xG(x2(kM.id, r11), xW(kM.parentChannelId, t10), xW(kM.type, "thread")))))).flat();
|
|
24685
24691
|
}
|
|
24686
|
-
async function
|
|
24692
|
+
async function EB(e10, t10) {
|
|
24687
24693
|
let r10 = await e10.select({ id: kM.id, parentChannelId: kM.parentChannelId }).from(kM).where(xW(kM.id, t10)).limit(1);
|
|
24688
24694
|
if (0 === r10.length) return false;
|
|
24689
|
-
let n10 = r10[0].parentChannelId ?? r10[0].id, i10 = await e10.select({ private:
|
|
24695
|
+
let n10 = r10[0].parentChannelId ?? r10[0].id, i10 = await e10.select({ private: kB.private }).from(kM).leftJoin(kB, xW(kB.id, kM.categoryId)).where(xW(kM.id, n10)).limit(1);
|
|
24690
24696
|
return (i10[0]?.private ?? 0) === 1;
|
|
24691
24697
|
}
|
|
24692
24698
|
async function EM(e10, t10) {
|
|
@@ -24730,7 +24736,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24730
24736
|
async function EX(e10, t10, r10) {
|
|
24731
24737
|
let n10 = /* @__PURE__ */ new Set(), { serverIds: i10 } = r10;
|
|
24732
24738
|
if (0 === i10.length) return n10;
|
|
24733
|
-
let a10 = await e10.select({ id: kM.id, type: kM.type, categoryId: kM.categoryId, categoryPrivate:
|
|
24739
|
+
let a10 = await e10.select({ id: kM.id, type: kM.type, categoryId: kM.categoryId, categoryPrivate: kB.private, creatorId: kM.creatorId, parentChannelId: kM.parentChannelId }).from(kM).leftJoin(kB, xW(kB.id, kM.categoryId)).where(x2(kM.serverId, i10)), o10 = new Set((await e10.select({ channelId: kF.channelId }).from(kF).innerJoin(kM, xW(kM.id, kF.channelId)).where(xG(xW(kF.userId, t10), xW(kF.relation, "access"), x2(kM.serverId, i10)))).map((e11) => e11.channelId)), s10 = new Map(a10.map((e11) => [e11.id, e11])), l10 = (e11) => null != e11.categoryId && 1 === e11.categoryPrivate;
|
|
24734
24740
|
for (let e11 of a10) null == e11.parentChannelId && (!l10(e11) || e11.creatorId === t10 || o10.has(e11.id)) && n10.add(e11.id);
|
|
24735
24741
|
for (let e11 of a10) {
|
|
24736
24742
|
if (null == e11.parentChannelId) continue;
|
|
@@ -24757,7 +24763,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24757
24763
|
if (0 === s10.length) return null;
|
|
24758
24764
|
let l10 = s10[0], d10 = 0;
|
|
24759
24765
|
if (l10.categoryId) {
|
|
24760
|
-
let t11 = await e10.select({ private:
|
|
24766
|
+
let t11 = await e10.select({ private: kB.private }).from(kB).where(xW(kB.id, l10.categoryId)).limit(1);
|
|
24761
24767
|
d10 = t11[0]?.private ?? 0;
|
|
24762
24768
|
}
|
|
24763
24769
|
let c10 = 1 === d10 && await EJ(e10, a10, r10);
|
|
@@ -24766,7 +24772,7 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24766
24772
|
function E4(e10, t10) {
|
|
24767
24773
|
return e10 < t10 ? -1 : +(e10 > t10);
|
|
24768
24774
|
}
|
|
24769
|
-
e.s(["countChannelsInCategory", 0, EW, "createChannel", 0, EA, "createChannelMember", 0, EM, "createThreadChannel", 0, EN, "deleteChannel", 0, ET, "deleteChannelMember", 0, EF, "deleteChannelMemberAndChildParticipants", 0, EZ, "getChannel", 0, Ek, "getChannelForMember", 0, EE, "getChannelMemberCount", 0, EK, "getChannelType", 0, ES, "getChannelsByIds", 0, Ez, "getDirectChildThreadsByIds", 0,
|
|
24775
|
+
e.s(["countChannelsInCategory", 0, EW, "createChannel", 0, EA, "createChannelMember", 0, EM, "createThreadChannel", 0, EN, "deleteChannel", 0, ET, "deleteChannelMember", 0, EF, "deleteChannelMemberAndChildParticipants", 0, EZ, "getChannel", 0, Ek, "getChannelForMember", 0, EE, "getChannelMemberCount", 0, EK, "getChannelType", 0, ES, "getChannelsByIds", 0, Ez, "getDirectChildThreadsByIds", 0, Eq, "getPrivateChannelAudienceUserIds", 0, EQ, "getServersLastActivity", 0, EL, "getThreadChannelByParentMessage", 0, EU, "isChannelMember", 0, EJ, "isChannelPrivate", 0, EB, "listChannelMemberUserIds", 0, EV, "listChannelMembers", 0, EH, "listChannelsForMember", 0, EC, "listChildChannels", 0, ED, "listChildChannelsByParentMessageIds", 0, EP, "listServerChannels", 0, ER, "listServerChannelsForViewer", 0, EG, "listVisibleChannelIds", 0, EY, "listVisibleChannelIdsForUser", 0, E0, "reorderChannels", 0, Ej, "resolveChannelAccessContext", 0, E1, "resolveChannelByNameForMember", 0, EO, "updateChannel", 0, E$], 626491);
|
|
24770
24776
|
let E6 = [kF.channelId, kF.userId, kF.relation];
|
|
24771
24777
|
async function E2(e10, t10) {
|
|
24772
24778
|
return (await e10.insert(kF).values({ channelId: t10.threadChannelId, userId: t10.userId, relation: "notify", source: t10.source }).onConflictDoNothing({ target: [...E6] }).returning())[0] ?? null;
|
|
@@ -24975,19 +24981,19 @@ Follow [rfc8628#section-3.4](https://datatracker.ietf.org/doc/html/rfc8628#secti
|
|
|
24975
24981
|
return n10?.lastReadSeq ?? 0;
|
|
24976
24982
|
}
|
|
24977
24983
|
e.s(["addThreadParticipant", 0, E2, "addThreadParticipants", 0, E3, "isThreadParticipant", 0, E7, "listForumThreadsByActivity", 0, $n, "listParticipantsForChannels", 0, E9, "listParticipatingForumThreads", 0, $i, "listParticipatingThreadIds", 0, $r, "listThreadParticipantUserIds", 0, E5, "listThreadParticipants", 0, E8, "removeParticipantFromChildChannels", 0, $t, "removeThreadParticipant", 0, $e], 308090), e.s(["addMember", 0, $a, "bulkUpdateRailOrder", 0, $p, "canBotReadWakeScope", 0, $A, "countMembers", 0, $h, "getCoMemberUserIds", 0, $k, "getMember", 0, $w, "getMemberById", 0, $v, "getMembersByUserIds", 0, $c, "getMemberships", 0, $b, "listMemberServerIds", 0, $f, "listMemberUserIds", 0, $m, "listMembers", 0, $d, "listMembersPaginated", 0, $g, "listOwnerBotsInServer", 0, $I, "removeMember", 0, $o, "removeMemberAndOwnerBots", 0, $s, "removeOwnerBotsFromServer", 0, $x, "removeOwnerBotsFromServerStatement", 0, $_, "searchMembers", 0, $y, "updateRailOrder", 0, $u, "updateRole", 0, $l], 222553), e.s(["createOrGetDM", 0, $E, "getDM", 0, $R, "getDMBetween", 0, $O, "getDMPeer", 0, $C, "listDMs", 0, $T, "listDmChannelIdsForUser", 0, $$], 960853), e.s(["bumpReadCursor", 0, $j, "getReadState", 0, $L, "getWakeReadSeq", 0, $z, "markAllDmsRead", 0, $P, "markAllServerChannelsRead", 0, $D, "markReadToMessage", 0, $N, "markReadToMessageBuilder", 0, $U], 818131);
|
|
24978
|
-
class $
|
|
24984
|
+
class $q extends Error {
|
|
24979
24985
|
static [xa] = "DrizzleError";
|
|
24980
24986
|
constructor({ message: e10, cause: t10 }) {
|
|
24981
24987
|
super(e10), this.name = "DrizzleError", this.cause = t10;
|
|
24982
24988
|
}
|
|
24983
24989
|
}
|
|
24984
|
-
class $
|
|
24990
|
+
class $B extends Error {
|
|
24985
24991
|
constructor(e10, t10, r10) {
|
|
24986
24992
|
super(`Failed query: ${e10}
|
|
24987
|
-
params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.captureStackTrace(this, $
|
|
24993
|
+
params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.captureStackTrace(this, $B), r10 && (this.cause = r10);
|
|
24988
24994
|
}
|
|
24989
24995
|
}
|
|
24990
|
-
class $M extends $
|
|
24996
|
+
class $M extends $q {
|
|
24991
24997
|
static [xa] = "TransactionRollbackError";
|
|
24992
24998
|
constructor() {
|
|
24993
24999
|
super({ message: "Rollback" });
|
|
@@ -25001,9 +25007,9 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25001
25007
|
} catch (a11) {
|
|
25002
25008
|
if (r10 = a11, !function(e12) {
|
|
25003
25009
|
let { peeled: t12, bareWrapper: r11 } = function(e13) {
|
|
25004
|
-
if (!(e13 instanceof $
|
|
25010
|
+
if (!(e13 instanceof $B)) return { peeled: e13, bareWrapper: false };
|
|
25005
25011
|
let t13 = e13;
|
|
25006
|
-
for (; t13 instanceof $
|
|
25012
|
+
for (; t13 instanceof $B; ) {
|
|
25007
25013
|
if (!t13.cause) return { peeled: t13, bareWrapper: true };
|
|
25008
25014
|
t13 = t13.cause;
|
|
25009
25015
|
}
|
|
@@ -25028,7 +25034,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25028
25034
|
if (0 === n10.length) return /* @__PURE__ */ new Map();
|
|
25029
25035
|
let i10 = (await Promise.all(Sn(n10, 90).map((t11) => $H(() => e10.select({ id: kM.id, name: kM.name, type: kM.type, serverId: kM.serverId, parentChannelId: kM.parentChannelId, parentMessageId: kM.parentMessageId }).from(kM).where(x2(kM.id, t11)), { route: "community/agent-inbox:scope-channels" })))).flat(), a10 = i10.filter((e11) => "dm" === e11.type).map((e11) => e11.id), o10 = a10.length ? (await Promise.all(Sn(a10, 90).map((t11) => $H(() => e10.select({ channelId: kF.channelId, userId: kF.userId }).from(kF).where(xG(x2(kF.channelId, t11), xW(kF.relation, "access"), xQ(kF.userId, r10))), { route: "community/agent-inbox:dm-members" })))).flat() : [], s10 = /* @__PURE__ */ new Map();
|
|
25030
25036
|
for (let e11 of o10) s10.has(e11.channelId) || s10.set(e11.channelId, e11.userId);
|
|
25031
|
-
let l10 = [.../* @__PURE__ */ new Set([...s10.values()])], d10 = new Map((l10.length ? (await Promise.all(Sn(l10, 90).map((t11) => $H(() => e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator }).from(ko).where(x2(ko.id, t11)), { route: "community/agent-inbox:dm-peers" })))).flat() : []).map((e11) => [e11.id, e11])), c10 = [...new Set(i10.map((e11) => e11.parentChannelId).filter((e11) => !!e11))], u10 = [...new Set(i10.map((e11) => e11.parentMessageId).filter((e11) => !!e11))], p10 = [...new Set(i10.map((e11) => e11.serverId).filter((e11) => !!e11))], f10 = (e11, t11) => e11.length ? Promise.all(Sn(e11, 90).map((e12) => $H(() => t11(e12), { route: "community/agent-inbox:scope-context" }))).then((e12) => e12.flat()) : Promise.resolve([]), [m10, h10, g10] = await Promise.all([f10(c10, (t11) => e10.select({ id: kM.id, name: kM.name }).from(kM).where(x2(kM.id, t11))), f10(p10, (t11) => e10.select({ id:
|
|
25037
|
+
let l10 = [.../* @__PURE__ */ new Set([...s10.values()])], d10 = new Map((l10.length ? (await Promise.all(Sn(l10, 90).map((t11) => $H(() => e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator }).from(ko).where(x2(ko.id, t11)), { route: "community/agent-inbox:dm-peers" })))).flat() : []).map((e11) => [e11.id, e11])), c10 = [...new Set(i10.map((e11) => e11.parentChannelId).filter((e11) => !!e11))], u10 = [...new Set(i10.map((e11) => e11.parentMessageId).filter((e11) => !!e11))], p10 = [...new Set(i10.map((e11) => e11.serverId).filter((e11) => !!e11))], f10 = (e11, t11) => e11.length ? Promise.all(Sn(e11, 90).map((e12) => $H(() => t11(e12), { route: "community/agent-inbox:scope-context" }))).then((e12) => e12.flat()) : Promise.resolve([]), [m10, h10, g10] = await Promise.all([f10(c10, (t11) => e10.select({ id: kM.id, name: kM.name }).from(kM).where(x2(kM.id, t11))), f10(p10, (t11) => e10.select({ id: kq.id, name: kq.name, discriminator: kq.discriminator }).from(kq).where(x2(kq.id, t11))), f10(u10, (t11) => e10.select({ id: kZ.id, seq: kZ.seq }).from(kZ).where(x2(kZ.id, t11)))]), y10 = new Map(m10.map((e11) => [e11.id, e11])), w10 = new Map(h10.map((e11) => [e11.id, SH(e11.name, e11.discriminator)])), v10 = new Map(g10.map((e11) => [e11.id, e11.seq])), b10 = /* @__PURE__ */ new Map();
|
|
25032
25038
|
for (let e11 of i10) {
|
|
25033
25039
|
let t11, r11 = e11.type ?? "text", n11 = "dm" === r11;
|
|
25034
25040
|
if (n11) {
|
|
@@ -25038,7 +25044,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25038
25044
|
}
|
|
25039
25045
|
let i11 = e11.serverId ? w10.get(e11.serverId) : void 0, a11 = e11.parentChannelId ? y10.get(e11.parentChannelId) : void 0, o11 = e11.parentMessageId ? v10.get(e11.parentMessageId) : void 0, l11 = e11.parentChannelId && e11.parentMessageId && a11 && void 0 !== o11 ? "thread" : r11, c11 = xi({ type: l11, serverHandle: i11, name: e11.name, parentName: a11?.name, rootSeq: o11, peerSegment: t11 });
|
|
25040
25046
|
if (null === c11) throw Error("Channel identity unavailable");
|
|
25041
|
-
b10.set(e11.id, { ref: c11, isThread: "thread" === l11, isDm: n11 });
|
|
25047
|
+
b10.set(e11.id, { ref: c11, isThread: "thread" === l11, isDm: n11, isForum: "forum" === r11 });
|
|
25042
25048
|
}
|
|
25043
25049
|
return b10;
|
|
25044
25050
|
}
|
|
@@ -25049,13 +25055,15 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25049
25055
|
if (0 === t10.length) return [];
|
|
25050
25056
|
let i10 = [...new Set(t10.map((e11) => e11.authorId))], [a10, o10, s10] = await Promise.all([$J(e10, t10, r10), Promise.all(Sn(i10, 90).map((t11) => e10.select({ id: ko.id, name: ko.name, discriminator: ko.discriminator }).from(ko).where(x2(ko.id, t11)))).then((e11) => e11.flat()), $Q(e10, t10)]), l10 = new Map(o10.map((e11) => [e11.id, e11]));
|
|
25051
25057
|
return t10.map((e11) => {
|
|
25052
|
-
var t11;
|
|
25053
|
-
let
|
|
25054
|
-
if (!
|
|
25055
|
-
let
|
|
25056
|
-
|
|
25057
|
-
let
|
|
25058
|
-
|
|
25058
|
+
var t11, r11;
|
|
25059
|
+
let i11 = a10.get($K(e11));
|
|
25060
|
+
if (!i11) throw Error("Channel identity unavailable");
|
|
25061
|
+
let o11 = i11.ref, d10 = l10.get(e11.authorId), c10 = d10 ? `@${SH(d10.name, d10.discriminator)}` : "Unknown user", u10 = n10?.get(e11.id), p10 = { text: e11.content };
|
|
25062
|
+
u10 && u10.length > 0 && (p10.attachments = u10);
|
|
25063
|
+
let f10 = e11.replyToId ? s10.get(e11.replyToId) : void 0;
|
|
25064
|
+
f10 && (p10.replyTo = f10);
|
|
25065
|
+
let m10 = i11.isForum ? `${o11}/${t11 = e11.seq, `#${t11}`}` : null;
|
|
25066
|
+
return { seq: (r11 = e11.seq, `#${r11}`), channel: o11, sender: c10, content: p10, ...m10 ? { hint: `This is a forum post, please reply in ${m10}.` } : {}, time: e11.createdAt };
|
|
25059
25067
|
});
|
|
25060
25068
|
}
|
|
25061
25069
|
async function $Q(e10, t10) {
|
|
@@ -25092,7 +25100,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25092
25100
|
return a10 ? xi({ type: i10, serverHandle: a10, name: n10.name ?? void 0 }) : null;
|
|
25093
25101
|
}
|
|
25094
25102
|
async function $X(e10, t10) {
|
|
25095
|
-
let r10 = await e10.select({ name:
|
|
25103
|
+
let r10 = await e10.select({ name: kq.name, discriminator: kq.discriminator }).from(kq).where(xW(kq.id, t10)).limit(1);
|
|
25096
25104
|
return r10[0] ? SH(r10[0].name, r10[0].discriminator) : null;
|
|
25097
25105
|
}
|
|
25098
25106
|
async function $Y(e10, t10, r10, n10) {
|
|
@@ -25241,8 +25249,8 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25241
25249
|
return e10.update(k1).set({ read: 1 }).where(x2(k1.id, n10));
|
|
25242
25250
|
}, "markMentionsRead", 0, Tr], 265135), e.s(["AUDIT_LOG_MAX_ROWS_PER_BOT", 0, 500, "insertBotActivityEventAndPrune", 0, Ts, "insertBotActivityEventStatement", 0, Tl, "insertBotAuditError", 0, Tg, "insertBotAuditModelChanged", 0, Tm, "insertBotAuditNap", 0, Tf, "insertBotAuditProviderChanged", 0, Th, "insertBotAuditSessionReset", 0, Tp, "insertBotAuditWakeTrigger", 0, Tu, "listBotActivityEvents", 0, Tc, "pruneBotActivityEventsStatement", 0, Td], 327586);
|
|
25243
25251
|
var _o = _o;
|
|
25244
|
-
let Ty = _o.string(), Tw = Ty.nullable(), Tv = _o.enum(["text", "forum"]), Tb = _o.literal("everyone"), TI = _o.strictObject({ id: Ty, name: Ty, discriminator: Ty, image: Tw }), T_ = _o.strictObject({ friendshipId: Ty, status: _o.enum(["pending", "approved", "denied", "superseded", "cancelled"]), waitingOn: _o.enum(["you", "other-owner", "addressee"]).nullable(), otherProfile: TI, botProfile: TI, waitingOnProfile: TI.nullable().optional() }), Tx = _o.strictObject({ id: Ty, filename: Ty, url: Ty, contentType: Ty.optional(), size: _o.number().optional(), width: _o.number().nullable().optional(), height: _o.number().nullable().optional() }), TA = _o.strictObject({ id: Ty, seq: _o.number(), authorId: Ty, authorName: Ty, authorAvatar: Ty.optional(), content: Ty, type: _o.enum(["chat", "system"]), systemKind: _o.literal("thread").optional(), mentionType: Tb.nullable().optional(), replyToId: Tw.optional(), replyTo: _o.strictObject({ id: Ty, authorName: Ty, text: Ty, deleted: _o.boolean().optional() }).optional(), embeds: _o.array(_o.unknown()).optional(), attachments: _o.array(Tx).optional(), createdAt: Ty, clientNonce: Ty.optional(), approval: T_.optional() }), Tk = _o.strictObject({ type: _o.literal("community:message.create"), channelId: Ty, serverId: Ty.optional(), parentChannelId: Ty.optional(), message: TA }), TS = _o.strictObject({ type: _o.literal("community:message.updated"), channelId: Ty, messageId: Ty, approval: T_ }), TE = _o.strictObject({ type: _o.literal("community:message.edited"), channelId: Ty, messageId: Ty, content: Ty, parentChannelId: Ty.optional(), serverId: Ty.optional() }).refine((e10) => void 0 === e10.parentChannelId || void 0 !== e10.serverId), T$ = _o.strictObject({ type: _o.literal("community:reaction.add"), channelId: Ty, messageId: Ty, userId: Ty, emoji: Ty }), TT = _o.strictObject({ type: _o.literal("community:reaction.remove"), channelId: Ty, messageId: Ty, userId: Ty, emoji: Ty }), TR = _o.strictObject({ type: _o.literal("community:pin.add"), channelId: Ty, messageId: Ty }), TO = _o.strictObject({ type: _o.literal("community:pin.remove"), channelId: Ty, messageId: Ty }), TC = { channelId: Ty, userId: Ty, name: Ty.optional(), discriminator: Ty.optional() }, TU = _o.strictObject({ type: _o.literal("community:typing.start"), ...TC }), TN = _o.strictObject({ type: _o.literal("community:typing.stop"), ...TC }), TD = _o.strictObject({ type: _o.literal("community:channel.child_create"), parentChannelId: Ty, channel: _o.strictObject({ id: Ty, name: Ty, type: _o.literal("thread"), creatorId: Ty.optional(), createdAt: Ty }), parentMessageId: Ty.optional() }), TP = _o.strictObject({ type: _o.literal("community:channel.child_update"), parentChannelId: Ty, channelId: Ty, changes: _o.strictObject({ name: Ty.optional(), archived: _o.boolean().optional(), tags: _o.array(Ty).nullable().optional(), lastMessageAt: Ty.optional(), messageCount: _o.number().optional() }) }), Tj = _o.strictObject({ type: _o.literal("community:server.update"), serverId: Ty, changes: _o.strictObject({ name: Ty.optional(), description: Ty.optional(), icon: Tw.optional() }) }), TL = _o.strictObject({ type: _o.literal("community:server.delete"), serverId: Ty }), Tz = _o.strictObject({ type: _o.literal("community:channel.create"), serverId: Ty, channel: _o.strictObject({ id: Ty, name: Ty, type: Tv, categoryId: Tw.optional(), topic: Ty.optional(), position: _o.number(), createdAt: Ty }) }),
|
|
25245
|
-
_o.discriminatedUnion("type", [Tk, TS, TE, T$, TT, TR, TO, TU, TN, TD, TP, Tj, TL, Tz,
|
|
25252
|
+
let Ty = _o.string(), Tw = Ty.nullable(), Tv = _o.enum(["text", "forum"]), Tb = _o.literal("everyone"), TI = _o.strictObject({ id: Ty, name: Ty, discriminator: Ty, image: Tw }), T_ = _o.strictObject({ friendshipId: Ty, status: _o.enum(["pending", "approved", "denied", "superseded", "cancelled"]), waitingOn: _o.enum(["you", "other-owner", "addressee"]).nullable(), otherProfile: TI, botProfile: TI, waitingOnProfile: TI.nullable().optional() }), Tx = _o.strictObject({ id: Ty, filename: Ty, url: Ty, contentType: Ty.optional(), size: _o.number().optional(), width: _o.number().nullable().optional(), height: _o.number().nullable().optional() }), TA = _o.strictObject({ id: Ty, seq: _o.number(), authorId: Ty, authorName: Ty, authorAvatar: Ty.optional(), content: Ty, type: _o.enum(["chat", "system"]), systemKind: _o.literal("thread").optional(), mentionType: Tb.nullable().optional(), replyToId: Tw.optional(), replyTo: _o.strictObject({ id: Ty, authorName: Ty, text: Ty, deleted: _o.boolean().optional() }).optional(), embeds: _o.array(_o.unknown()).optional(), attachments: _o.array(Tx).optional(), createdAt: Ty, clientNonce: Ty.optional(), approval: T_.optional() }), Tk = _o.strictObject({ type: _o.literal("community:message.create"), channelId: Ty, serverId: Ty.optional(), parentChannelId: Ty.optional(), message: TA }), TS = _o.strictObject({ type: _o.literal("community:message.updated"), channelId: Ty, messageId: Ty, approval: T_ }), TE = _o.strictObject({ type: _o.literal("community:message.edited"), channelId: Ty, messageId: Ty, content: Ty, parentChannelId: Ty.optional(), serverId: Ty.optional() }).refine((e10) => void 0 === e10.parentChannelId || void 0 !== e10.serverId), T$ = _o.strictObject({ type: _o.literal("community:reaction.add"), channelId: Ty, messageId: Ty, userId: Ty, emoji: Ty }), TT = _o.strictObject({ type: _o.literal("community:reaction.remove"), channelId: Ty, messageId: Ty, userId: Ty, emoji: Ty }), TR = _o.strictObject({ type: _o.literal("community:pin.add"), channelId: Ty, messageId: Ty }), TO = _o.strictObject({ type: _o.literal("community:pin.remove"), channelId: Ty, messageId: Ty }), TC = { channelId: Ty, userId: Ty, name: Ty.optional(), discriminator: Ty.optional() }, TU = _o.strictObject({ type: _o.literal("community:typing.start"), ...TC }), TN = _o.strictObject({ type: _o.literal("community:typing.stop"), ...TC }), TD = _o.strictObject({ type: _o.literal("community:channel.child_create"), parentChannelId: Ty, channel: _o.strictObject({ id: Ty, name: Ty, type: _o.literal("thread"), creatorId: Ty.optional(), createdAt: Ty }), parentMessageId: Ty.optional() }), TP = _o.strictObject({ type: _o.literal("community:channel.child_update"), parentChannelId: Ty, channelId: Ty, changes: _o.strictObject({ name: Ty.optional(), archived: _o.boolean().optional(), tags: _o.array(Ty).nullable().optional(), lastMessageAt: Ty.optional(), messageCount: _o.number().optional() }) }), Tj = _o.strictObject({ type: _o.literal("community:server.update"), serverId: Ty, changes: _o.strictObject({ name: Ty.optional(), description: Ty.optional(), icon: Tw.optional() }) }), TL = _o.strictObject({ type: _o.literal("community:server.delete"), serverId: Ty }), Tz = _o.strictObject({ type: _o.literal("community:channel.create"), serverId: Ty, channel: _o.strictObject({ id: Ty, name: Ty, type: Tv, categoryId: Tw.optional(), topic: Ty.optional(), position: _o.number(), createdAt: Ty }) }), Tq = _o.strictObject({ type: _o.literal("community:channel.update"), serverId: Ty, channelId: Ty, changes: _o.strictObject({ name: Ty.optional(), topic: Ty.optional(), categoryId: Tw.optional(), type: Tv.optional() }) }), TB = _o.strictObject({ type: _o.literal("community:channel.delete"), serverId: Ty, channelId: Ty, parentChannelId: Tw.optional() }), TM = _o.strictObject({ id: Ty, position: _o.number() }), TF = _o.strictObject({ type: _o.literal("community:channel.reorder"), serverId: Ty, channels: _o.array(TM) }), TZ = _o.strictObject({ type: _o.literal("community:channel.member_add"), serverId: Ty, channelId: Ty, userId: Ty }), TH = _o.strictObject({ type: _o.literal("community:channel.member_remove"), serverId: Ty, channelId: Ty, userId: Ty }), TV = _o.strictObject({ type: _o.literal("community:category.create"), serverId: Ty, category: _o.strictObject({ id: Ty, name: Ty, position: _o.number(), private: _o.boolean() }) }), TJ = _o.strictObject({ type: _o.literal("community:category.update"), serverId: Ty, categoryId: Ty, changes: _o.strictObject({ name: Ty.optional(), position: _o.number().optional(), private: _o.boolean().optional() }) }), TK = _o.strictObject({ type: _o.literal("community:category.delete"), serverId: Ty, categoryId: Ty }), TW = _o.strictObject({ type: _o.literal("community:category.reorder"), serverId: Ty, categories: _o.array(TM) }), TQ = _o.strictObject({ type: _o.literal("community:member.join"), serverId: Ty, member: _o.strictObject({ id: Ty, userId: Ty, name: Ty, discriminator: Ty, avatar: Ty.optional(), role: Ty, joinedAt: Ty }) }), TG = _o.strictObject({ type: _o.literal("community:member.leave"), serverId: Ty, userId: Ty }), TX = _o.strictObject({ type: _o.literal("community:member.update"), serverId: Ty, memberId: Ty, userId: Ty.optional(), changes: _o.strictObject({ role: Ty.optional(), nickname: Tw.optional() }) }), TY = _o.strictObject({ type: _o.literal("community:friend.request"), friendship: _o.strictObject({ id: Ty, requesterId: Ty, addresseeId: Ty, status: _o.literal("pending"), createdAt: Ty }) }), T0 = { friendshipId: Ty }, T1 = _o.strictObject({ type: _o.literal("community:friend.accept"), ...T0 }), T4 = _o.strictObject({ type: _o.literal("community:friend.reject"), ...T0 }), T6 = _o.strictObject({ type: _o.literal("community:friend.remove"), ...T0 }), T2 = _o.strictObject({ type: _o.literal("community:friend.block"), userId: Ty }), T3 = _o.strictObject({ type: _o.literal("community:invite.create"), serverId: Ty, invite: _o.strictObject({ id: Ty, token: Ty, maxUses: _o.number().nullable().optional(), uses: _o.number().nullable().optional(), expiresAt: Tw.optional(), createdAt: Ty }) }), T5 = _o.strictObject({ type: _o.literal("community:mention.create"), userId: Ty, messageId: Ty, channelId: Ty.optional(), authorName: Ty }), T8 = _o.strictObject({ type: _o.literal("community:unread.bump"), userId: Ty, channelId: Ty, serverId: Ty.optional(), railChannelId: Ty.optional(), isMention: _o.boolean().optional() }), T9 = _o.strictObject({ type: _o.literal("community:presence.update"), userId: Ty, online: _o.boolean() }), T7 = _o.strictObject({ type: _o.literal("community:status.update"), userId: Ty, statusEmoji: Tw, statusText: Tw }), Re = _M.strict(), Rt = _o.strictObject({ id: Ty, hostname: Ty, displayName: Ty, platform: Ty, arch: Ty, osRelease: Ty, daemonVersion: Ty, lastSeenAt: Tw, status: _o.enum(["online", "offline"]), availableRuntimes: _o.array(Re), lastRuntimeError: _o.strictObject({ requested: Ty, available: _o.array(Ty), at: Ty }).optional(), createdAt: Ty, updatedAt: Ty }), Rr = _o.strictObject({ type: _o.literal("community:machine.created"), machine: Rt, tokenId: Ty }), Rn = _o.strictObject({ type: _o.literal("community:machine.status"), machineId: Ty, status: _o.enum(["online", "offline"]), lastSeenAt: Ty }), Ri = _o.strictObject({ type: _o.literal("community:machine.updated"), machine: Rt }), Ra = _o.strictObject({ type: _o.literal("community:machine.removed"), machineId: Ty }), Ro = _o.strictObject({ type: _o.literal("community:bot.audit_event"), botId: Ty, id: Ty, kind: _o.enum(["cli_invocation", "tool_call", "thinking", "wake_trigger", "session_reset", "nap", "model_changed", "provider_changed", "error"]), payload: _o.unknown(), sessionId: Tw.optional(), launchId: Tw.optional(), createdAt: Ty }).refine((e10) => Object.prototype.hasOwnProperty.call(e10, "payload"));
|
|
25253
|
+
_o.discriminatedUnion("type", [Tk, TS, TE, T$, TT, TR, TO, TU, TN, TD, TP, Tj, TL, Tz, Tq, TB, TF, TZ, TH, TV, TJ, TK, TW, TQ, TG, TX, TY, T1, T4, T6, T2, T3, T5, T8, T9, T7, Rr, Rn, Ri, Ra, Ro]).transform((e10) => e10);
|
|
25246
25254
|
let Rs = { MESSAGE_CREATE: "community:message.create", MESSAGE_UPDATED: "community:message.updated", MESSAGE_EDITED: "community:message.edited", REACTION_ADD: "community:reaction.add", REACTION_REMOVE: "community:reaction.remove", PIN_ADD: "community:pin.add", PIN_REMOVE: "community:pin.remove", TYPING_START: "community:typing.start", TYPING_STOP: "community:typing.stop", CHILD_CHANNEL_CREATE: "community:channel.child_create", CHILD_CHANNEL_UPDATE: "community:channel.child_update", SERVER_UPDATE: "community:server.update", SERVER_DELETE: "community:server.delete", CHANNEL_CREATE: "community:channel.create", CHANNEL_UPDATE: "community:channel.update", CHANNEL_DELETE: "community:channel.delete", CHANNEL_REORDER: "community:channel.reorder", CHANNEL_MEMBER_ADD: "community:channel.member_add", CHANNEL_MEMBER_REMOVE: "community:channel.member_remove", CATEGORY_CREATE: "community:category.create", CATEGORY_UPDATE: "community:category.update", CATEGORY_DELETE: "community:category.delete", CATEGORY_REORDER: "community:category.reorder", MEMBER_JOIN: "community:member.join", MEMBER_LEAVE: "community:member.leave", MEMBER_UPDATE: "community:member.update", FRIEND_REQUEST: "community:friend.request", FRIEND_ACCEPT: "community:friend.accept", FRIEND_REJECT: "community:friend.reject", FRIEND_REMOVE: "community:friend.remove", FRIEND_BLOCK: "community:friend.block", INVITE_CREATE: "community:invite.create", MENTION_CREATE: "community:mention.create", UNREAD_BUMP: "community:unread.bump", PRESENCE_UPDATE: "community:presence.update", STATUS_UPDATE: "community:status.update", MACHINE_CREATED: "community:machine.created", MACHINE_STATUS: "community:machine.status", MACHINE_UPDATED: "community:machine.updated", MACHINE_REMOVED: "community:machine.removed", BOT_AUDIT_EVENT: "community:bot.audit_event" };
|
|
25247
25255
|
Object.values(Rs);
|
|
25248
25256
|
class Rl {
|
|
@@ -25596,7 +25604,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25596
25604
|
c10.push({ dbKey: n12, tsKey: n12, field: f11, relationTableTsKey: l12, isJson: true, selection: p11.selection });
|
|
25597
25605
|
}
|
|
25598
25606
|
}
|
|
25599
|
-
if (0 === c10.length) throw new $
|
|
25607
|
+
if (0 === c10.length) throw new $q({ message: `No fields selected for table "${i10.tsName}" ("${o10}"). You need to have at least one item in "columns", "with" or "extras". If you need to select all columns, omit the "columns" key or set it to undefined.` });
|
|
25600
25608
|
if (m10 = xG(l10, m10), s10) {
|
|
25601
25609
|
let e11 = xF`json_array(${xF.join(c10.map(({ field: e12 }) => xo(e12, AA) ? xF.identifier(this.casing.getColumnCasing(e12)) : xo(e12, xL.Aliased) ? e12.sql : e12), xF`, `)})`;
|
|
25602
25610
|
xo(s10, Rv) && (e11 = xF`coalesce(json_group_array(${e11}), json_array())`);
|
|
@@ -25825,7 +25833,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
25825
25833
|
return r10.addSetOperators(a10);
|
|
25826
25834
|
};
|
|
25827
25835
|
}
|
|
25828
|
-
let Rj = () => ({ union: RL, unionAll: Rz, intersect:
|
|
25836
|
+
let Rj = () => ({ union: RL, unionAll: Rz, intersect: Rq, except: RB }), RL = RP("union", false), Rz = RP("union", true), Rq = RP("intersect", false), RB = RP("except", false);
|
|
25829
25837
|
class RM {
|
|
25830
25838
|
static [xa] = "SQLiteQueryBuilder";
|
|
25831
25839
|
dialect;
|
|
@@ -26258,18 +26266,18 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26258
26266
|
if (void 0 === this.cache || xo(this.cache, R1) || void 0 === this.queryMetadata || this.cacheConfig && !this.cacheConfig.enable) try {
|
|
26259
26267
|
return await r10();
|
|
26260
26268
|
} catch (r11) {
|
|
26261
|
-
throw new $
|
|
26269
|
+
throw new $B(e10, t10, r11);
|
|
26262
26270
|
}
|
|
26263
26271
|
if (("insert" === this.queryMetadata.type || "update" === this.queryMetadata.type || "delete" === this.queryMetadata.type) && this.queryMetadata.tables.length > 0) try {
|
|
26264
26272
|
let [e11] = await Promise.all([r10(), this.cache.onMutate({ tables: this.queryMetadata.tables })]);
|
|
26265
26273
|
return e11;
|
|
26266
26274
|
} catch (r11) {
|
|
26267
|
-
throw new $
|
|
26275
|
+
throw new $B(e10, t10, r11);
|
|
26268
26276
|
}
|
|
26269
26277
|
if (!this.cacheConfig) try {
|
|
26270
26278
|
return await r10();
|
|
26271
26279
|
} catch (r11) {
|
|
26272
|
-
throw new $
|
|
26280
|
+
throw new $B(e10, t10, r11);
|
|
26273
26281
|
}
|
|
26274
26282
|
if ("select" === this.queryMetadata.type) {
|
|
26275
26283
|
let n10 = await this.cache.get(this.cacheConfig.tag ?? await R4(e10, t10), this.queryMetadata.tables, void 0 !== this.cacheConfig.tag, this.cacheConfig.autoInvalidate);
|
|
@@ -26278,7 +26286,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26278
26286
|
try {
|
|
26279
26287
|
n11 = await r10();
|
|
26280
26288
|
} catch (r11) {
|
|
26281
|
-
throw new $
|
|
26289
|
+
throw new $B(e10, t10, r11);
|
|
26282
26290
|
}
|
|
26283
26291
|
return await this.cache.put(this.cacheConfig.tag ?? await R4(e10, t10), n11, this.cacheConfig.autoInvalidate ? this.queryMetadata.tables : [], void 0 !== this.cacheConfig.tag, this.cacheConfig.config), n11;
|
|
26284
26292
|
}
|
|
@@ -26287,7 +26295,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26287
26295
|
try {
|
|
26288
26296
|
return await r10();
|
|
26289
26297
|
} catch (r11) {
|
|
26290
|
-
throw new $
|
|
26298
|
+
throw new $B(e10, t10, r11);
|
|
26291
26299
|
}
|
|
26292
26300
|
}
|
|
26293
26301
|
getQuery() {
|
|
@@ -26329,7 +26337,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26329
26337
|
try {
|
|
26330
26338
|
return this.prepareOneTimeQuery(t10, void 0, "run", false).run();
|
|
26331
26339
|
} catch (e11) {
|
|
26332
|
-
throw new $
|
|
26340
|
+
throw new $q({ cause: e11, message: `Failed to run the query '${t10.sql}'` });
|
|
26333
26341
|
}
|
|
26334
26342
|
}
|
|
26335
26343
|
extractRawRunValueFromBatchResult(e10) {
|
|
@@ -26599,10 +26607,10 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26599
26607
|
async function Oz(e10, t10, r10) {
|
|
26600
26608
|
return (await e10.select({ id: ky.id }).from(ky).where(xG(xW(ky.daemonId, t10), xW(ky.workspaceId, r10)))).map((e11) => e11.id);
|
|
26601
26609
|
}
|
|
26602
|
-
async function
|
|
26610
|
+
async function Oq(e10, t10) {
|
|
26603
26611
|
return (await e10.insert(kI).values({ workspaceId: t10.workspaceId, agentId: t10.agentId, userId: t10.userId, title: t10.title, type: t10.type ?? _s, channel: t10.channel ?? "default", ...t10.parentMessageId ? { parentMessageId: t10.parentMessageId, threadTitle: t10.threadTitle ?? "" } : {} }).returning())[0];
|
|
26604
26612
|
}
|
|
26605
|
-
async function
|
|
26613
|
+
async function OB(e10, t10, r10) {
|
|
26606
26614
|
return (await e10.select().from(kI).where(xG(xW(kI.id, t10), xW(kI.workspaceId, r10))))[0] ?? null;
|
|
26607
26615
|
}
|
|
26608
26616
|
async function OM(e10, t10, r10) {
|
|
@@ -26772,7 +26780,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26772
26780
|
async function Ch(e10, t10, r10) {
|
|
26773
26781
|
return (await e10.update(kx).set({ status: "cancelled", completedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(xG(xW(kx.id, t10), xW(kx.workspaceId, r10), x2(kx.status, ["queued", "dispatched", "running"]))).returning())[0] ?? null;
|
|
26774
26782
|
}
|
|
26775
|
-
e.s(["createWorkspace", 0, Od, "deleteWorkspace", 0, Op, "getWorkspace", 0, Oo, "getWorkspaceBySlug", 0, Os, "listWorkspaces", 0, Ol, "markOnboarded", 0, Ou, "updateWorkspace", 0, Oc], 354412), e.s(["createMember", 0, Og, "deleteMember", 0, Ow, "getMember", 0, Oy, "getMemberByUserAndWorkspace", 0, Of, "listMembers", 0, Om, "updateMemberGlobalInstruction", 0, Oh], 528743), e.s(["createAgent", 0, OI, "deleteAgent", 0, O_, "getAgent", 0, Ov, "getAgentByHandle", 0, Ok, "getAgentsByIds", 0, OE, "getAllAgentsForWorkspace", 0, O$, "getAllHandlesForWorkspace", 0, OT, "getExistingHandles", 0, OS, "listAgents", 0, Ob, "updateAgent", 0, Ox, "updateAgentStatus", 0, OA], 230750), e.s(["batchUpsertAgentRuntimes", 0, OC, "deleteRuntimesByDaemonId", 0, Oj, "getAgentRuntime", 0, ON, "getAgentRuntimeForWorkspace", 0, OD, "getAgentRuntimesForWorkspace", 0, OP, "getRuntimeIdsByDaemon", 0, Oz, "listAgentRuntimes", 0, OU, "updateRuntimeCliVersionByDaemon", 0, OL, "upsertAgentRuntime", 0, OO, "upsertAgentRuntimeStatement", 0, OR], 405805), e.s(["createConversation", 0,
|
|
26783
|
+
e.s(["createWorkspace", 0, Od, "deleteWorkspace", 0, Op, "getWorkspace", 0, Oo, "getWorkspaceBySlug", 0, Os, "listWorkspaces", 0, Ol, "markOnboarded", 0, Ou, "updateWorkspace", 0, Oc], 354412), e.s(["createMember", 0, Og, "deleteMember", 0, Ow, "getMember", 0, Oy, "getMemberByUserAndWorkspace", 0, Of, "listMembers", 0, Om, "updateMemberGlobalInstruction", 0, Oh], 528743), e.s(["createAgent", 0, OI, "deleteAgent", 0, O_, "getAgent", 0, Ov, "getAgentByHandle", 0, Ok, "getAgentsByIds", 0, OE, "getAllAgentsForWorkspace", 0, O$, "getAllHandlesForWorkspace", 0, OT, "getExistingHandles", 0, OS, "listAgents", 0, Ob, "updateAgent", 0, Ox, "updateAgentStatus", 0, OA], 230750), e.s(["batchUpsertAgentRuntimes", 0, OC, "deleteRuntimesByDaemonId", 0, Oj, "getAgentRuntime", 0, ON, "getAgentRuntimeForWorkspace", 0, OD, "getAgentRuntimesForWorkspace", 0, OP, "getRuntimeIdsByDaemon", 0, Oz, "listAgentRuntimes", 0, OU, "updateRuntimeCliVersionByDaemon", 0, OL, "upsertAgentRuntime", 0, OO, "upsertAgentRuntimeStatement", 0, OR], 405805), e.s(["createConversation", 0, Oq, "deleteConversation", 0, OJ, "getConversation", 0, OB, "getConversationsByIds", 0, OM, "getOrCreateAgentConversation", 0, OV, "getThreadByParentMessage", 0, OW, "getThreadsByConversation", 0, OG, "getThreadsByParentMessages", 0, OQ, "hasPreviousConversations", 0, OY, "listConversations", 0, OF, "listConversationsByAgent", 0, OZ, "listPreviousConversations", 0, OK, "listThreadsByAgent", 0, OX, "updateConversationTitle", 0, OH], 758259), e.s(["createMessage", 0, O0, "getActiveMessageCount", 0, O4, "getMessage", 0, O2, "getNewestMessageId", 0, O1, "listMessages", 0, O6, "listMessagesAroundTask", 0, O8, "listMessagesUpTo", 0, O5, "updateMessageTaskId", 0, O3], 82709);
|
|
26776
26784
|
let Cg = Number(process.env.ALOOK_STALE_DISPATCH_TIMEOUT_S) || 20;
|
|
26777
26785
|
async function Cy(e10, t10, r10 = Cg) {
|
|
26778
26786
|
let n10 = new Date(Date.now() - 1e3 * r10).toISOString();
|
|
@@ -26914,11 +26922,11 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26914
26922
|
let n10 = (/* @__PURE__ */ new Date()).toISOString();
|
|
26915
26923
|
await e10.update(kg).set({ lastSeenAt: n10, updatedAt: n10 }).where(xG(xW(kg.daemonId, t10), xW(kg.workspaceId, r10)));
|
|
26916
26924
|
}
|
|
26917
|
-
async function
|
|
26925
|
+
async function Cq(e10, t10, r10) {
|
|
26918
26926
|
let n10 = (/* @__PURE__ */ new Date()).toISOString();
|
|
26919
26927
|
await e10.update(kg).set({ lastSeenAt: null, updatedAt: n10 }).where(xG(xW(kg.daemonId, t10), xW(kg.workspaceId, r10)));
|
|
26920
26928
|
}
|
|
26921
|
-
async function
|
|
26929
|
+
async function CB(e10, t10, r10) {
|
|
26922
26930
|
return (await e10.select().from(kg).where(xG(xW(kg.daemonId, t10), xW(kg.workspaceId, r10))))[0] ?? null;
|
|
26923
26931
|
}
|
|
26924
26932
|
async function CM(e10, t10, r10) {
|
|
@@ -26969,7 +26977,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
26969
26977
|
async function C1(e10, t10) {
|
|
26970
26978
|
await e10.update(kC).set({ lastUsedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(xW(kC.id, t10));
|
|
26971
26979
|
}
|
|
26972
|
-
e.s(["cancelActiveTasksByConversation", 0, Cv, "cancelTask", 0, Ch, "claimKillTasks", 0, Ck, "claimTask", 0, Ca, "completeTask", 0, Cd, "countRunningTasks", 0, Cb, "countTasksByTrace", 0, Ce, "createTask", 0, O7, "deleteTasksByConversation", 0, Cw, "dispatchTaskById", 0, Co, "failStaleDispatchedTasks", 0, Cy, "failStaleKillTasks", 0, CS, "failStaleRunningTasks", 0, C$, "failTask", 0, Cc, "findSteerableReplacement", 0, Ci, "getActiveTaskByConversation", 0, CA, "getLatestTaskForConversation", 0, Ct, "getTask", 0, Cr, "getTaskStatus", 0, Cn, "getTraceAgentsByTaskIds", 0, CO, "getTraceTree", 0, CC, "hasPendingTaskForConversation", 0, Cp, "listActiveTaskCountsByWorkspace", 0, CI, "listActiveTasksByAgent", 0, Cx, "listActiveTasksByWorkspace", 0, C_, "listPendingTasksByRuntimes", 0, Cu, "listTaskHistory", 0, CT, "listTraces", 0, CR, "markFailedAsSuperseded", 0, Cm, "revertDispatchedToQueued", 0, Cs, "startTask", 0, Cl, "supersedeTask", 0, Cf], 439472), e.s(["createTaskMessage", 0, CU, "deleteTaskMessages", 0, Cj, "listTaskErrorMessages", 0, CD, "listTaskMessages", 0, CN, "listTaskMessagesSince", 0, CP], 150002), e.s(["clearPendingRescan", 0, CJ, "clearPendingUpdateVersion", 0, CH, "deleteMachine", 0, CF, "getMachineByDaemon", 0,
|
|
26980
|
+
e.s(["cancelActiveTasksByConversation", 0, Cv, "cancelTask", 0, Ch, "claimKillTasks", 0, Ck, "claimTask", 0, Ca, "completeTask", 0, Cd, "countRunningTasks", 0, Cb, "countTasksByTrace", 0, Ce, "createTask", 0, O7, "deleteTasksByConversation", 0, Cw, "dispatchTaskById", 0, Co, "failStaleDispatchedTasks", 0, Cy, "failStaleKillTasks", 0, CS, "failStaleRunningTasks", 0, C$, "failTask", 0, Cc, "findSteerableReplacement", 0, Ci, "getActiveTaskByConversation", 0, CA, "getLatestTaskForConversation", 0, Ct, "getTask", 0, Cr, "getTaskStatus", 0, Cn, "getTraceAgentsByTaskIds", 0, CO, "getTraceTree", 0, CC, "hasPendingTaskForConversation", 0, Cp, "listActiveTaskCountsByWorkspace", 0, CI, "listActiveTasksByAgent", 0, Cx, "listActiveTasksByWorkspace", 0, C_, "listPendingTasksByRuntimes", 0, Cu, "listTaskHistory", 0, CT, "listTraces", 0, CR, "markFailedAsSuperseded", 0, Cm, "revertDispatchedToQueued", 0, Cs, "startTask", 0, Cl, "supersedeTask", 0, Cf], 439472), e.s(["createTaskMessage", 0, CU, "deleteTaskMessages", 0, Cj, "listTaskErrorMessages", 0, CD, "listTaskMessages", 0, CN, "listTaskMessagesSince", 0, CP], 150002), e.s(["clearPendingRescan", 0, CJ, "clearPendingUpdateVersion", 0, CH, "deleteMachine", 0, CF, "getMachineByDaemon", 0, CB, "listMachinesForWorkspace", 0, CM, "setMachineLastSeenNull", 0, Cq, "setPendingRescan", 0, CV, "setPendingUpdateVersion", 0, CZ, "updateMachineLastSeen", 0, Cz, "upsertMachine", 0, CL], 199353), e.s(["activateMachineToken", 0, CG, "createMachineToken", 0, CK, "deleteMachineToken", 0, C0, "getLatestTokenForUser", 0, CX, "getMachineTokenByToken", 0, CW, "getPendingMachineToken", 0, CQ, "listMachineTokens", 0, CY, "updateMachineTokenLastUsed", 0, C1], 937824);
|
|
26973
26981
|
let C4 = `@${process.env.ALOOK_DOMAIN || "alook.ai"}`;
|
|
26974
26982
|
function C6(e10) {
|
|
26975
26983
|
return e10.endsWith(C4) ? e10.slice(0, -C4.length) : "";
|
|
@@ -27159,10 +27167,10 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27159
27167
|
async function Uz(e10, t10, r10) {
|
|
27160
27168
|
return (await e10.delete(kp).where(xG(xW(kp.id, t10), xW(kp.workspaceId, r10))).returning())[0] ?? null;
|
|
27161
27169
|
}
|
|
27162
|
-
async function
|
|
27170
|
+
async function Uq(e10, t10, r10) {
|
|
27163
27171
|
return e10.select({ id: kf.id, agentId: kf.agentId, workspaceId: kf.workspaceId, userId: kf.userId, createdAt: kf.createdAt, userName: ko.name, userEmail: ko.email }).from(kf).innerJoin(ko, xW(kf.userId, ko.id)).where(xG(xW(kf.agentId, t10), xW(kf.workspaceId, r10)));
|
|
27164
27172
|
}
|
|
27165
|
-
async function
|
|
27173
|
+
async function UB(e10, t10) {
|
|
27166
27174
|
return (await e10.insert(kf).values({ agentId: t10.agentId, workspaceId: t10.workspaceId, userId: t10.userId }).returning())[0];
|
|
27167
27175
|
}
|
|
27168
27176
|
async function UM(e10, t10, r10, n10) {
|
|
@@ -27262,7 +27270,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27262
27270
|
return "month" === n10 || "week" === n10 || "day" === n10 || 0 === r10 ? 1 : Math.floor(86400 / ("min" === n10 ? 60 * r10 : 3600 * r10));
|
|
27263
27271
|
}, "listCalendarEvents", 0, Ug, "listDueCalendarEvents", 0, Uw, "revertCalendarEventClaim", 0, Ub, "updateCalendarEvent", 0, Um, "updateCalendarEventSchedule", 0, UI], 451007), e.s(["artifactToResponse", 0, function(e10) {
|
|
27264
27272
|
return { id: e10.id, conversation_id: e10.conversationId, agent_id: e10.agentId, filename: e10.filename, content_type: e10.contentType, size: e10.size, source: e10.source, has_thumbnail: null != e10.thumbnailR2Key, created_at: e10.createdAt };
|
|
27265
|
-
}, "createArtifact", 0, Ux, "getArtifact", 0, Uk, "listArtifactsByConversation", 0, UA], 72289), e.s(["createEmailAccount", 0, US, "deleteEmailAccount", 0, UC, "getAllEmailAccountsForWorkspace", 0, UN, "getEmailAccount", 0, UE, "getEmailAccountById", 0, UT, "getEmailAccountScoped", 0, U$, "getEmailAccountsByAgent", 0, UR, "getEmailAccountsByAgents", 0, UU, "updateEmailAccount", 0, UO], 804702), e.s(["createInvite", 0, UD, "deleteInvite", 0, Uz, "getInviteByToken", 0, UP, "listActiveInvites", 0, Uj, "redeemInvite", 0, UL], 616336), e.s(["getAllAgentAccessForWorkspace", 0, UZ, "grantAgentAccess", 0,
|
|
27273
|
+
}, "createArtifact", 0, Ux, "getArtifact", 0, Uk, "listArtifactsByConversation", 0, UA], 72289), e.s(["createEmailAccount", 0, US, "deleteEmailAccount", 0, UC, "getAllEmailAccountsForWorkspace", 0, UN, "getEmailAccount", 0, UE, "getEmailAccountById", 0, UT, "getEmailAccountScoped", 0, U$, "getEmailAccountsByAgent", 0, UR, "getEmailAccountsByAgents", 0, UU, "updateEmailAccount", 0, UO], 804702), e.s(["createInvite", 0, UD, "deleteInvite", 0, Uz, "getInviteByToken", 0, UP, "listActiveInvites", 0, Uj, "redeemInvite", 0, UL], 616336), e.s(["getAllAgentAccessForWorkspace", 0, UZ, "grantAgentAccess", 0, UB, "hasAgentAccess", 0, UF, "listAgentAccess", 0, Uq, "revokeAgentAccess", 0, UM], 6032), e.s(["listPins", 0, UH, "pinAgent", 0, UV, "reorderPins", 0, UK, "unpinAgent", 0, UJ], 586668), e.s(["listOrder", 0, UW, "reorder", 0, UQ], 698103), e.s(["getConversationCountsByAgent", 0, U1, "getEmailAccountsByWorkspace", 0, UX, "getEmailStatsByWorkspace", 0, UG, "getRecentTerminalTasks", 0, U0, "getTaskStatsByWorkspace", 0, UY], 215408), e.s(["claimMeetingSession", 0, U8, "claimMeetingSessions", 0, U9, "createMeetingSession", 0, U4, "deleteMeetingSession", 0, U7, "getMeetingSession", 0, U6, "getMeetingSessionById", 0, U2, "listMeetingSessions", 0, U3, "listMeetingsWithSchedule", 0, Nt, "listScheduledMeetings", 0, Ne, "updateMeetingSession", 0, U5], 857467);
|
|
27266
27274
|
let Nr = ["user_dm_message", "email_notification", "calendar_event"];
|
|
27267
27275
|
async function Nn(e10, t10) {
|
|
27268
27276
|
let r10 = (0, IV.nanoid)();
|
|
@@ -27485,10 +27493,10 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27485
27493
|
async function Nz(e10, t10, r10) {
|
|
27486
27494
|
return (await e10.delete(kD).where(xG(xW(kD.id, t10), xW(kD.workspaceId, r10))).returning())[0] ?? null;
|
|
27487
27495
|
}
|
|
27488
|
-
async function
|
|
27496
|
+
async function Nq(e10, t10, r10) {
|
|
27489
27497
|
return [...await e10.select({ name: kw.name, emailHandle: kw.emailHandle, description: kw.description, instruction: kD.instruction }).from(kD).innerJoin(kw, xG(xW(kw.id, kD.targetAgentId), xW(kw.workspaceId, kD.workspaceId))).where(xG(xW(kD.sourceAgentId, t10), xW(kD.workspaceId, r10))), ...await e10.select({ name: kw.name, emailHandle: kw.emailHandle, description: kw.description, instruction: kD.instruction }).from(kD).innerJoin(kw, xG(xW(kw.id, kD.sourceAgentId), xW(kw.workspaceId, kD.workspaceId))).where(xG(xW(kD.targetAgentId, t10), xW(kD.workspaceId, r10)))];
|
|
27490
27498
|
}
|
|
27491
|
-
async function
|
|
27499
|
+
async function NB(e10, t10, r10) {
|
|
27492
27500
|
return 0 === t10.length ? [] : [...await e10.select({ agentId: kD.sourceAgentId, name: kw.name, emailHandle: kw.emailHandle, description: kw.description, instruction: kD.instruction }).from(kD).innerJoin(kw, xG(xW(kw.id, kD.targetAgentId), xW(kw.workspaceId, kD.workspaceId))).where(xG(x2(kD.sourceAgentId, t10), xW(kD.workspaceId, r10))), ...await e10.select({ agentId: kD.targetAgentId, name: kw.name, emailHandle: kw.emailHandle, description: kw.description, instruction: kD.instruction }).from(kD).innerJoin(kw, xG(xW(kw.id, kD.sourceAgentId), xW(kw.workspaceId, kD.workspaceId))).where(xG(x2(kD.targetAgentId, t10), xW(kD.workspaceId, r10)))];
|
|
27493
27501
|
}
|
|
27494
27502
|
async function NM(e10, t10) {
|
|
@@ -27496,7 +27504,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27496
27504
|
}
|
|
27497
27505
|
e.s(["deleteAllUnreadEntries", 0, Nl, "deleteUnreadByChannel", 0, Ns, "deleteUnreadByConversation", 0, No, "deleteUnreadEntry", 0, Na, "findLatestAssistantMessageId", 0, Nd, "getUnreadCount", 0, Nu, "isUnreadEligible", 0, function(e10) {
|
|
27498
27506
|
return null == e10.parentTaskId && null != e10.traceId && !!Nr.includes(e10.type) && ("email_notification" !== e10.type || e10.context?.isInternal !== true);
|
|
27499
|
-
}, "listUnreadConversations", 0, Nc, "markAllConversationsRead", 0, Nf, "markConversationRead", 0, Np, "updateUnreadLatestMessage", 0, Ni, "upsertUnreadEntry", 0, Nn], 574850), e.s(["createChannel", 0, Nm, "deleteChannel", 0, Nw, "getChannelById", 0, Ny, "getChannelByName", 0, Ng, "listChannels", 0, Nh, "renameChannel", 0, Nv, "reorderChannels", 0, Nb], 168956), e.s(["completeRequest", 0, NA, "createRequest", 0, NI, "expireStale", 0, NS, "getPendingByWorkspace", 0, N_, "getRequest", 0, Nk, "markDispatched", 0, Nx], 728745), e.s(["getSkills", 0, NT, "syncAgentSkills", 0, N$, "syncGlobalSkills", 0, NE], 20312), e.s(["createMapping", 0, NO, "findByKey", 0, NR], 294616), e.s(["create", 0, NN, "getAllColleaguesForWorkspace", 0, NM, "getById", 0, Nj, "getByPair", 0, ND, "getColleaguesForAgent", 0,
|
|
27507
|
+
}, "listUnreadConversations", 0, Nc, "markAllConversationsRead", 0, Nf, "markConversationRead", 0, Np, "updateUnreadLatestMessage", 0, Ni, "upsertUnreadEntry", 0, Nn], 574850), e.s(["createChannel", 0, Nm, "deleteChannel", 0, Nw, "getChannelById", 0, Ny, "getChannelByName", 0, Ng, "listChannels", 0, Nh, "renameChannel", 0, Nv, "reorderChannels", 0, Nb], 168956), e.s(["completeRequest", 0, NA, "createRequest", 0, NI, "expireStale", 0, NS, "getPendingByWorkspace", 0, N_, "getRequest", 0, Nk, "markDispatched", 0, Nx], 728745), e.s(["getSkills", 0, NT, "syncAgentSkills", 0, N$, "syncGlobalSkills", 0, NE], 20312), e.s(["createMapping", 0, NO, "findByKey", 0, NR], 294616), e.s(["create", 0, NN, "getAllColleaguesForWorkspace", 0, NM, "getById", 0, Nj, "getByPair", 0, ND, "getColleaguesForAgent", 0, Nq, "getColleaguesForAgents", 0, NB, "listByAgent", 0, NU, "listByWorkspace", 0, NC, "remove", 0, Nz, "update", 0, NL, "upsertByPair", 0, NP], 715994);
|
|
27500
27508
|
let NF = ["todo", "in_progress", "review"];
|
|
27501
27509
|
async function NZ(e10, t10) {
|
|
27502
27510
|
let r10 = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -27585,25 +27593,25 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27585
27593
|
}
|
|
27586
27594
|
async function N8(e10, t10) {
|
|
27587
27595
|
let r10 = (0, IV.nanoid)(), n10 = await S4(e10, { id: r10, name: t10.name }, async (n11) => {
|
|
27588
|
-
let [i11] = await e10.insert(
|
|
27596
|
+
let [i11] = await e10.insert(kq).values({ id: r10, name: t10.name, discriminator: n11, description: t10.description ?? "", ownerId: t10.ownerId }).returning();
|
|
27589
27597
|
return i11;
|
|
27590
|
-
}), [i10] = await e10.insert(
|
|
27598
|
+
}), [i10] = await e10.insert(kB).values({ serverId: n10.id, name: "All", position: 0 }).returning();
|
|
27591
27599
|
await e10.insert(kM).values({ serverId: n10.id, categoryId: i10.id, name: "general", type: "text", position: 0 });
|
|
27592
27600
|
let [a10] = await e10.insert(kV).values({ serverId: n10.id, userId: t10.ownerId, role: "owner", railOrder: 0 }).returning({ id: kV.id, userId: kV.userId, joinedAt: kV.joinedAt }), [o10] = await e10.select({ name: ko.name, image: ko.image, discriminator: ko.discriminator }).from(ko).where(xW(ko.id, t10.ownerId));
|
|
27593
27601
|
return { server: n10, ownerMember: { id: a10.id, userId: a10.userId, joinedAt: a10.joinedAt, userName: o10?.name ?? "", userImage: o10?.image ?? null, userDiscriminator: o10?.discriminator ?? "0000" } };
|
|
27594
27602
|
}
|
|
27595
27603
|
async function N9(e10, t10) {
|
|
27596
|
-
return (await e10.select().from(
|
|
27604
|
+
return (await e10.select().from(kq).where(xW(kq.id, t10)))[0] ?? null;
|
|
27597
27605
|
}
|
|
27598
27606
|
async function N7(e10, t10, r10) {
|
|
27599
|
-
return (await e10.update(
|
|
27607
|
+
return (await e10.update(kq).set(r10).where(xW(kq.id, t10)).returning())[0] ?? null;
|
|
27600
27608
|
}
|
|
27601
27609
|
async function De(e10, t10) {
|
|
27602
|
-
return (await e10.delete(
|
|
27610
|
+
return (await e10.delete(kq).where(xW(kq.id, t10)).returning())[0] ?? null;
|
|
27603
27611
|
}
|
|
27604
27612
|
async function Dt(e10, t10) {
|
|
27605
27613
|
let r10 = e10.select({ serverId: kM.serverId, mentions: Sj().as("mentions") }).from(k1).innerJoin(kZ, xW(kZ.id, k1.messageId)).innerJoin(kM, xW(kM.id, kZ.channelId)).where(xG(xW(k1.userId, t10), xW(k1.read, 0), xW(k1.kind, _b))).groupBy(kM.serverId).as("mention_counts");
|
|
27606
|
-
return e10.select({ id:
|
|
27614
|
+
return e10.select({ id: kq.id, name: kq.name, discriminator: kq.discriminator, description: kq.description, icon: kq.icon, ownerId: kq.ownerId, createdAt: kq.createdAt, role: kV.role, railOrder: kV.railOrder, mentions: xF`COALESCE(${r10.mentions}, 0)`.mapWith(Number) }).from(kq).innerJoin(kV, xG(xW(kV.serverId, kq.id), xW(kV.userId, t10))).leftJoin(r10, xW(r10.serverId, kq.id)).orderBy(Ao(kV.railOrder));
|
|
27607
27615
|
}
|
|
27608
27616
|
async function Dr(e10, t10, r10) {
|
|
27609
27617
|
let n10 = function(e11) {
|
|
@@ -27612,39 +27620,39 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27612
27620
|
let r11 = t11[1].trim(), n11 = t11[2];
|
|
27613
27621
|
return r11 ? { name: r11, discriminator: n11 } : null;
|
|
27614
27622
|
}(r10);
|
|
27615
|
-
return n10 ? e10.select({ id:
|
|
27623
|
+
return n10 ? e10.select({ id: kq.id, name: kq.name, discriminator: kq.discriminator }).from(kq).innerJoin(kV, xG(xW(kV.serverId, kq.id), xW(kV.userId, t10))).where(xG(xF`${kq.name} COLLATE NOCASE = ${n10.name}`, xW(kq.discriminator, n10.discriminator))) : [];
|
|
27616
27624
|
}
|
|
27617
27625
|
async function Dn(e10, t10) {
|
|
27618
|
-
return 0 === t10.length ? [] : (await Promise.all(Sn(t10, 90).map((t11) => e10.select().from(
|
|
27626
|
+
return 0 === t10.length ? [] : (await Promise.all(Sn(t10, 90).map((t11) => e10.select().from(kq).where(x2(kq.id, t11))))).flat();
|
|
27619
27627
|
}
|
|
27620
27628
|
async function Di(e10, t10, r10) {
|
|
27621
|
-
await e10.update(
|
|
27629
|
+
await e10.update(kq).set({ icon: r10 }).where(xW(kq.id, t10));
|
|
27622
27630
|
}
|
|
27623
27631
|
async function Da(e10, t10) {
|
|
27624
|
-
return 0 === t10.length ? [] : e10.select().from(
|
|
27632
|
+
return 0 === t10.length ? [] : e10.select().from(kB).where(x2(kB.id, t10));
|
|
27625
27633
|
}
|
|
27626
27634
|
async function Do(e10, t10) {
|
|
27627
|
-
return e10.select({ id:
|
|
27635
|
+
return e10.select({ id: kB.id, name: kB.name, position: kB.position, private: kB.private }).from(kB).where(xW(kB.serverId, t10)).orderBy(Ao(kB.position), Ao(kB.id));
|
|
27628
27636
|
}
|
|
27629
27637
|
async function Ds(e10, t10) {
|
|
27630
|
-
return (await e10.insert(
|
|
27638
|
+
return (await e10.insert(kB).values({ serverId: t10.serverId, name: t10.name, private: +!!t10.private, creatorId: t10.creatorId ?? null }).returning())[0];
|
|
27631
27639
|
}
|
|
27632
27640
|
async function Dl(e10, t10) {
|
|
27633
|
-
return (await e10.select().from(
|
|
27641
|
+
return (await e10.select().from(kB).where(xW(kB.id, t10)))[0] ?? null;
|
|
27634
27642
|
}
|
|
27635
27643
|
async function Dd(e10, t10, r10) {
|
|
27636
27644
|
let n10 = {};
|
|
27637
|
-
return void 0 !== r10.name && (n10.name = r10.name), void 0 !== r10.private && (n10.private = +!!r10.private), (await e10.update(
|
|
27645
|
+
return void 0 !== r10.name && (n10.name = r10.name), void 0 !== r10.private && (n10.private = +!!r10.private), (await e10.update(kB).set(n10).where(xW(kB.id, t10)).returning())[0] ?? null;
|
|
27638
27646
|
}
|
|
27639
27647
|
async function Dc(e10, t10) {
|
|
27640
|
-
return (await e10.delete(
|
|
27648
|
+
return (await e10.delete(kB).where(xW(kB.id, t10)).returning())[0] ?? null;
|
|
27641
27649
|
}
|
|
27642
27650
|
async function Du(e10, t10) {
|
|
27643
27651
|
let r10 = await e10.select({ cnt: Sj() }).from(kM).where(xW(kM.categoryId, t10));
|
|
27644
27652
|
return (r10[0]?.cnt ?? 0) > 0;
|
|
27645
27653
|
}
|
|
27646
27654
|
async function Dp(e10, t10, r10) {
|
|
27647
|
-
let n10 = r10.map((t11, r11) => e10.update(
|
|
27655
|
+
let n10 = r10.map((t11, r11) => e10.update(kB).set({ position: r11 }).where(xW(kB.id, t11)));
|
|
27648
27656
|
n10.length > 0 && await e10.batch(n10);
|
|
27649
27657
|
}
|
|
27650
27658
|
e.s(["createIssue", 0, NZ, "deleteIssue", 0, NQ, "getIssue", 0, NH, "getIssueByConversation", 0, NV, "listIssueMessages", 0, NG, "listIssues", 0, NJ, "setLatestTask", 0, NW, "updateIssue", 0, NK], 473095), e.s(["commentToResponse", 0, function(e10) {
|
|
@@ -27666,7 +27674,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27666
27674
|
}
|
|
27667
27675
|
async function Dh(e10, { scopeId: t10 }) {
|
|
27668
27676
|
let r10 = await e10.select({ serverId: kM.serverId }).from(kM).where(xW(kM.id, t10)).limit(1);
|
|
27669
|
-
return 0 === r10.length ? [] : await
|
|
27677
|
+
return 0 === r10.length ? [] : await EB(e10, t10) ? EQ(e10, t10) : $m(e10, r10[0].serverId);
|
|
27670
27678
|
}
|
|
27671
27679
|
async function Dg(e10, { scope: t10, scopeId: r10 }) {
|
|
27672
27680
|
let n10 = await Dh(e10, { scope: t10, scopeId: r10 });
|
|
@@ -27675,7 +27683,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27675
27683
|
if (0 === i10.length) return [];
|
|
27676
27684
|
let a10 = i10[0].serverId, o10 = await e10.select({ userId: kV.userId, role: kV.role }).from(kV).where(xW(kV.serverId, a10)), s10 = /* @__PURE__ */ new Map();
|
|
27677
27685
|
for (let e11 of o10) s10.set(e11.userId, e11.role);
|
|
27678
|
-
let l10 = await
|
|
27686
|
+
let l10 = await EB(e10, r10), d10 = /* @__PURE__ */ new Set();
|
|
27679
27687
|
if (l10) {
|
|
27680
27688
|
let t11 = i10[0].parentChannelId ?? i10[0].id;
|
|
27681
27689
|
for (let r12 of await EV(e10, t11)) d10.add(r12);
|
|
@@ -27833,18 +27841,18 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27833
27841
|
for (let e11 of o10) s10.has(e11.id) || (s10.add(e11.id), l10.push({ ...e11, kind: "outgoing" }));
|
|
27834
27842
|
return l10;
|
|
27835
27843
|
}
|
|
27836
|
-
async function
|
|
27844
|
+
async function Dq(e10, t10) {
|
|
27837
27845
|
let r10 = await DP(e10, t10.friendshipId);
|
|
27838
27846
|
if (!r10) return { ok: false, reason: "already_resolved" };
|
|
27839
27847
|
if (r10.needsOwnerApproval !== t10.actorId) return { ok: false, reason: "forbidden" };
|
|
27840
27848
|
let n10 = await DS(e10, [r10.requesterId, r10.addresseeId]), i10 = !!n10.get(r10.requesterId)?.isBot, a10 = !!n10.get(r10.addresseeId)?.isBot, o10 = n10.get(r10.addresseeId)?.ownerUserId ?? null;
|
|
27841
27849
|
if ("deny" === t10.decision) {
|
|
27842
|
-
let r11 = await
|
|
27850
|
+
let r11 = await DB(e10, t10.friendshipId, t10.actorId, { status: "denied", resolvedAt: Dv(), needsOwnerApproval: null });
|
|
27843
27851
|
return r11 ? { ok: true, friendship: r11, broadcasts: await DA(e10, r11) } : { ok: false, reason: "already_resolved" };
|
|
27844
27852
|
}
|
|
27845
27853
|
if (i10 && a10) {
|
|
27846
27854
|
if (r10.requesterId && n10.get(r10.requesterId)?.ownerUserId === t10.actorId) {
|
|
27847
|
-
let n11 = await
|
|
27855
|
+
let n11 = await DB(e10, t10.friendshipId, t10.actorId, { needsOwnerApproval: o10 });
|
|
27848
27856
|
if (!n11) return { ok: false, reason: "already_resolved" };
|
|
27849
27857
|
let i12 = [];
|
|
27850
27858
|
if (o10) {
|
|
@@ -27853,21 +27861,21 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
27853
27861
|
}
|
|
27854
27862
|
return i12.push(...await DA(e10, n11)), { ok: true, friendship: n11, broadcasts: i12 };
|
|
27855
27863
|
}
|
|
27856
|
-
let i11 = await
|
|
27864
|
+
let i11 = await DB(e10, t10.friendshipId, t10.actorId, { status: "accepted", resolvedAt: Dv(), needsOwnerApproval: null });
|
|
27857
27865
|
return i11 ? { ok: true, friendship: i11, broadcasts: await DA(e10, i11) } : { ok: false, reason: "already_resolved" };
|
|
27858
27866
|
}
|
|
27859
27867
|
if (i10 && !a10) {
|
|
27860
|
-
let n11 = await
|
|
27868
|
+
let n11 = await DB(e10, t10.friendshipId, t10.actorId, { needsOwnerApproval: null });
|
|
27861
27869
|
if (!n11) return { ok: false, reason: "already_resolved" };
|
|
27862
27870
|
let i11 = [{ userId: r10.addresseeId, event: { type: Rs.FRIEND_REQUEST, friendship: { id: n11.id, requesterId: n11.requesterId, addresseeId: n11.addresseeId, status: "pending", createdAt: n11.createdAt } } }, ...await DA(e10, n11)];
|
|
27863
27871
|
return { ok: true, friendship: n11, broadcasts: i11 };
|
|
27864
27872
|
}
|
|
27865
|
-
let s10 = await
|
|
27873
|
+
let s10 = await DB(e10, t10.friendshipId, t10.actorId, { status: "accepted", resolvedAt: Dv(), needsOwnerApproval: null });
|
|
27866
27874
|
if (!s10) return { ok: false, reason: "already_resolved" };
|
|
27867
27875
|
let l10 = [{ userId: s10.requesterId, event: { type: Rs.FRIEND_ACCEPT, friendshipId: s10.id } }, ...await DA(e10, s10)];
|
|
27868
27876
|
return { ok: true, friendship: s10, broadcasts: l10 };
|
|
27869
27877
|
}
|
|
27870
|
-
async function
|
|
27878
|
+
async function DB(e10, t10, r10, n10) {
|
|
27871
27879
|
return (await e10.update(kQ).set({ ...n10, updatedAt: Dv() }).where(xG(xW(kQ.id, t10), xW(kQ.status, "pending"), xW(kQ.needsOwnerApproval, r10))).returning())[0] ?? null;
|
|
27872
27880
|
}
|
|
27873
27881
|
async function DM(e10, t10) {
|
|
@@ -28029,7 +28037,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28029
28037
|
let [n10] = await e10.insert(k4).values({ userId: t10, aboutMe: r10.aboutMe ?? "", bannerColor: r10.bannerColor ?? null, statusEmoji: r10.statusEmoji ?? null, statusText: r10.statusText ?? "" }).onConflictDoUpdate({ target: k4.userId, set: { ...void 0 !== r10.aboutMe ? { aboutMe: r10.aboutMe } : {}, ...void 0 !== r10.bannerColor ? { bannerColor: r10.bannerColor } : {}, ...void 0 !== r10.statusEmoji ? { statusEmoji: r10.statusEmoji } : {}, ...void 0 !== r10.statusText ? { statusText: r10.statusText } : {} } }).returning();
|
|
28030
28038
|
return n10;
|
|
28031
28039
|
}
|
|
28032
|
-
e.s(["acceptRequest", 0, D$, "areFriends", 0, DD, "block", 0, DO, "cancelPendingRequest", 0, DF, "ensureSiblingBotFriendship", 0, DZ, "getFriendUserIds", 0, DN, "getFriendship", 0, DP, "hydrateApprovalsForDmMessages", 0, DV, "isBlocked", 0, Dj, "listAgentFriends", 0, DH, "listBlocked", 0, DL, "listFriends", 0, DU, "listPending", 0, Dz, "ownerDecideOnRow", 0,
|
|
28040
|
+
e.s(["acceptRequest", 0, D$, "areFriends", 0, DD, "block", 0, DO, "cancelPendingRequest", 0, DF, "ensureSiblingBotFriendship", 0, DZ, "getFriendUserIds", 0, DN, "getFriendship", 0, DP, "hydrateApprovalsForDmMessages", 0, DV, "isBlocked", 0, Dj, "listAgentFriends", 0, DH, "listBlocked", 0, DL, "listFriends", 0, DU, "listPending", 0, Dz, "ownerDecideOnRow", 0, Dq, "rejectRequest", 0, DT, "removeFriend", 0, DR, "sendRequest", 0, DE, "supersedePendingBetween", 0, DM, "unblock", 0, DC], 539284), e.s(["createInvite", 0, DJ, "getInvite", 0, DK, "getInviteByToken", 0, DW, "listServerInvites", 0, DX, "revokeInvite", 0, DQ, "useInvite", 0, DG], 539185), e.s(["addReaction", 0, DY, "getMessageReactions", 0, D1, "listReactionsByMessageIds", 0, D4, "removeReaction", 0, D0], 93475), e.s(["createPendingAttachment", 0, D6, "findPendingAttachmentsForSender", 0, D2, "getAttachmentById", 0, D9, "listByMessageIds", 0, Pe, "listMessageAttachments", 0, D7, "rebindPendingAttachmentsToChild", 0, D5, "reserveAttachmentsForMessage", 0, D3, "unreserveAttachments", 0, D8], 111030), e.s(["listPins", 0, Pn, "pinMessage", 0, Pt, "unpinMessage", 0, Pr], 443036), e.s(["isMessageMarked", 0, Po, "listMarksForUser", 0, Ps, "markMessage", 0, Pi, "unmarkMessage", 0, Pa], 18945), e.s(["getProfile", 0, Pl, "updateProfile", 0, Pd], 630422);
|
|
28033
28041
|
let Pc = /* @__PURE__ */ new Set(["and", "or", "not", "near"]);
|
|
28034
28042
|
async function Pu(e10, t10) {
|
|
28035
28043
|
let r10 = t10.limit ?? 50;
|
|
@@ -28148,7 +28156,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28148
28156
|
async function PU(e10, t10) {
|
|
28149
28157
|
let r10 = await e10.select().from(kJ).where(xW(kJ.userId, t10)).orderBy(Ao(kJ.position));
|
|
28150
28158
|
return await Promise.all(r10.map(async (t11) => {
|
|
28151
|
-
let r11 = await e10.select({ serverId: kK.serverId, position: kK.position, serverName:
|
|
28159
|
+
let r11 = await e10.select({ serverId: kK.serverId, position: kK.position, serverName: kq.name, serverIcon: kq.icon }).from(kK).leftJoin(kq, xW(kK.serverId, kq.id)).where(xW(kK.folderId, t11.id)).orderBy(Ao(kK.position));
|
|
28152
28160
|
return { id: t11.id, name: t11.name, position: t11.position ?? 0, servers: r11.map((e11) => ({ id: e11.serverId, name: e11.serverName ?? "Unknown", icon: e11.serverIcon ?? null })) };
|
|
28153
28161
|
}));
|
|
28154
28162
|
}
|
|
@@ -28157,7 +28165,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28157
28165
|
}
|
|
28158
28166
|
async function PD(e10, t10, r10) {
|
|
28159
28167
|
if (0 === r10.length) return [];
|
|
28160
|
-
let n10 = (await Promise.all(Sn(r10, 90).map((r11) => e10.select({ channelId: kM.id, channelName: kM.name, serverId: kM.serverId, serverName:
|
|
28168
|
+
let n10 = (await Promise.all(Sn(r10, 90).map((r11) => e10.select({ channelId: kM.id, channelName: kM.name, serverId: kM.serverId, serverName: kq.name, type: kM.type, parentChannelId: kM.parentChannelId, lastMessageAt: kM.lastMessageAt, hasReadState: xF`(${kG.id} IS NOT NULL)`, hasUnreadBeyondSeq: xF`EXISTS (SELECT 1 FROM ${kZ} m WHERE m.channel_id = ${kM.id} AND m.seq > COALESCE(${kG.lastReadSeq}, 0))`, archived: kM.archived, joinedAt: kV.joinedAt }).from(kV).innerJoin(kM, xW(kM.serverId, kV.serverId)).innerJoin(kq, xW(kq.id, kM.serverId)).leftJoin(kG, xG(xW(kG.channelId, kM.id), xW(kG.userId, t10))).where(xG(xW(kV.userId, t10), x2(kM.id, r11), x8(kM.lastMessageAt)))))).flat().filter((e11) => PN({ archived: e11.archived, lastMessageAt: e11.lastMessageAt, hasReadState: !!e11.hasReadState, hasUnreadBeyondSeq: !!e11.hasUnreadBeyondSeq, joinedAt: e11.joinedAt })), i10 = n10.filter((e11) => xe(e11.type)).map((e11) => e11.channelId), a10 = i10.length > 0 ? new Set(await $r(e10, i10, t10)) : /* @__PURE__ */ new Set();
|
|
28161
28169
|
return n10.filter((e11) => !xe(e11.type) || a10.has(e11.channelId)).map((e11) => ({ channelId: e11.channelId, channelName: e11.channelName, serverId: e11.serverId, serverName: e11.serverName, type: e11.type, parentChannelId: e11.parentChannelId, lastMessageAt: e11.lastMessageAt }));
|
|
28162
28170
|
}
|
|
28163
28171
|
async function PP(e10, t10, r10) {
|
|
@@ -28180,7 +28188,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28180
28188
|
return n10.filter((e11) => PL({ lastMessageAt: e11.lastMessageAt, hasReadState: !!e11.hasReadState, hasUnreadBeyondSeq: !!e11.hasUnreadBeyondSeq })).filter((e11) => !i10.has(e11.channelId) && (i10.add(e11.channelId), true)).map((e11) => ({ channelId: e11.channelId, otherUserId: e11.otherUserId, otherUserName: e11.otherUserName, otherUserImage: e11.otherUserImage, lastMessageAt: e11.lastMessageAt }));
|
|
28181
28189
|
}
|
|
28182
28190
|
e.s(["createFolder", 0, Pk, "deleteAllFolders", 0, PO, "deleteFolder", 0, PR, "getFolder", 0, PS, "listFolders", 0, PU, "reorderFolders", 0, PC, "replaceFolderItems", 0, P$, "updateFolder", 0, PE], 270043), e.s(["isChannelUnread", 0, PN, "isDmUnread", 0, PL, "listForumOpenersByChildIds", 0, Pj, "listUnreadChannels", 0, PD, "listUnreadDms", 0, Pz, "listUnreadForumOpeners", 0, PP], 279850);
|
|
28183
|
-
let
|
|
28191
|
+
let Pq = { emoji: "\u{1F4A4}", text: "Idle" }, PB = [Pq, { emoji: "\u{1F300}", text: "Waking up" }, { emoji: "\u{1F319}", text: "Wrapping up" }, { emoji: "\u26A1", text: "Working on it" }, { emoji: "\u{1F6E0}\uFE0F", text: "Cooking" }, { emoji: "\u{1F9E0}", text: "Thinking hard" }, { emoji: "\u{1F527}", text: "Tinkering" }, { emoji: "\u{1F680}", text: "On it" }, { emoji: "\u{1F525}", text: "In the zone" }], PM = "cmk_", PF = "crk_";
|
|
28184
28192
|
async function PZ(e10) {
|
|
28185
28193
|
let t10 = new TextEncoder().encode(e10);
|
|
28186
28194
|
return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t10))).map((e11) => e11.toString(16).padStart(2, "0")).join("");
|
|
@@ -28235,13 +28243,13 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28235
28243
|
return await e10.update(Sz).set({ lastSeenAt: a10, updatedAt: a10 }).where(xW(Sz.id, i10.id)), { lastSeenAt: a10, priorLastSeenAt: i10.lastSeenAt };
|
|
28236
28244
|
}
|
|
28237
28245
|
async function P4(e10, t10, r10) {
|
|
28238
|
-
let n10 = await e10.select({ userId:
|
|
28246
|
+
let n10 = await e10.select({ userId: SB.userId, statusEmoji: k4.statusEmoji, statusText: k4.statusText }).from(SB).innerJoin(k4, xW(k4.userId, SB.userId)).where(xW(SB.machineId, t10));
|
|
28239
28247
|
if (0 === n10.length) return [];
|
|
28240
28248
|
let i10 = new Set(r10), a10 = n10.filter((e11) => {
|
|
28241
28249
|
var t11, r11;
|
|
28242
|
-
return !i10.has(e11.userId) && (e11.statusEmoji !==
|
|
28250
|
+
return !i10.has(e11.userId) && (e11.statusEmoji !== Pq.emoji || e11.statusText !== Pq.text) && (t11 = e11.statusEmoji, r11 = e11.statusText, (null !== t11 || null !== r11) && PB.some((e12) => e12.emoji === t11 && e12.text === r11));
|
|
28243
28251
|
});
|
|
28244
|
-
return 0 === a10.length ? [] : (await e10.update(k4).set({ statusEmoji:
|
|
28252
|
+
return 0 === a10.length ? [] : (await e10.update(k4).set({ statusEmoji: Pq.emoji, statusText: Pq.text }).where(x2(k4.userId, a10.map((e11) => e11.userId))), a10.map((e11) => ({ botUserId: e11.userId, statusEmoji: Pq.emoji, statusText: Pq.text })));
|
|
28245
28253
|
}
|
|
28246
28254
|
async function P6(t10, r10, n10) {
|
|
28247
28255
|
let i10 = (/* @__PURE__ */ new Date()).toISOString(), a10 = await t10.select({ id: SL.id, userId: SL.userId, machineId: SL.machineId, status: SL.status, expiresAt: SL.expiresAt }).from(SL).where(xW(SL.id, r10)).limit(1);
|
|
@@ -28256,10 +28264,10 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28256
28264
|
if (o10.machineId) {
|
|
28257
28265
|
let e10 = await PY(t10, o10.userId, o10.machineId, n10, { markOnline: false });
|
|
28258
28266
|
if (!e10) throw new P2();
|
|
28259
|
-
await t10.update(
|
|
28267
|
+
await t10.update(Sq).set({ revokedAt: i10 }).where(xG(xW(Sq.machineId, o10.machineId), x5(Sq.revokedAt))), r11 = e10.machine;
|
|
28260
28268
|
} else r11 = await P0(t10, o10.userId, n10);
|
|
28261
28269
|
let { nanoid: a11 } = await Promise.resolve().then(() => e.i(195744)), s10 = PM + a11(32), l10 = await PZ(s10), d10 = PH(l10);
|
|
28262
|
-
return await t10.insert(
|
|
28270
|
+
return await t10.insert(Sq).values({ userId: o10.userId, machineId: r11.id, credentialHash: l10, doName: d10, createdAt: i10 }), { credential: s10, machineId: r11.id, userId: o10.userId };
|
|
28263
28271
|
} catch (e10) {
|
|
28264
28272
|
if (e10 instanceof P2) throw new P3("unknown", e10.message);
|
|
28265
28273
|
throw await t10.update(SL).set({ status: "pending", lastUsedAt: null }).where(xW(SL.id, r10)), e10;
|
|
@@ -28277,22 +28285,22 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28277
28285
|
}
|
|
28278
28286
|
}
|
|
28279
28287
|
async function P5(e10, t10) {
|
|
28280
|
-
let r10 = await e10.select({ id:
|
|
28288
|
+
let r10 = await e10.select({ id: Sq.id, userId: Sq.userId, machineId: Sq.machineId, credentialHash: Sq.credentialHash, doName: Sq.doName }).from(Sq).innerJoin(ko, xW(ko.id, Sq.userId)).where(xG(xW(Sq.credentialHash, t10), x5(Sq.revokedAt), x5(ko.deletedAt))).limit(1);
|
|
28281
28289
|
if (0 === r10.length) return null;
|
|
28282
28290
|
let n10 = (/* @__PURE__ */ new Date()).toISOString();
|
|
28283
|
-
return await e10.update(
|
|
28291
|
+
return await e10.update(Sq).set({ lastUsedAt: n10 }).where(xW(Sq.id, r10[0].id)), { credentialId: r10[0].id, userId: r10[0].userId, machineId: r10[0].machineId, credentialHash: r10[0].credentialHash, doName: r10[0].doName };
|
|
28284
28292
|
}
|
|
28285
28293
|
async function P8(e10, t10) {
|
|
28286
28294
|
return t10.startsWith(PM) ? P5(e10, await PZ(t10)) : null;
|
|
28287
28295
|
}
|
|
28288
28296
|
async function P9(e10, t10) {
|
|
28289
|
-
return (await e10.select({ doName:
|
|
28297
|
+
return (await e10.select({ doName: Sq.doName }).from(Sq).where(xG(xW(Sq.machineId, t10), x5(Sq.revokedAt)))).map((e11) => e11.doName);
|
|
28290
28298
|
}
|
|
28291
28299
|
async function P7(e10, t10) {
|
|
28292
|
-
await e10.update(
|
|
28300
|
+
await e10.update(Sq).set({ revokedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(xG(xW(Sq.id, t10), x5(Sq.revokedAt)));
|
|
28293
28301
|
}
|
|
28294
28302
|
async function je(e10, t10, r10) {
|
|
28295
|
-
return { doNames: (await e10.update(
|
|
28303
|
+
return { doNames: (await e10.update(Sq).set({ revokedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(xG(xW(Sq.userId, t10), xW(Sq.machineId, r10), x5(Sq.revokedAt))).returning({ doName: Sq.doName })).map((e11) => e11.doName) };
|
|
28296
28304
|
}
|
|
28297
28305
|
async function jt(t10, { userId: r10, machineId: n10, agentId: i10 }) {
|
|
28298
28306
|
let a10 = await t10.select({ id: SM.id }).from(SM).where(xG(xW(SM.userId, r10), xW(SM.machineId, n10), xW(SM.agentId, i10), x5(SM.revokedAt))).limit(1);
|
|
@@ -28323,15 +28331,15 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28323
28331
|
return { id: e10.id, hostname: e10.hostname, displayName: e10.displayName, platform: e10.platform, arch: e10.arch, osRelease: e10.osRelease, daemonVersion: e10.daemonVersion, lastSeenAt: e10.lastSeenAt, status: e10.status ?? "offline", availableRuntimes: e10.availableRuntimes, createdAt: e10.createdAt, updatedAt: e10.updatedAt };
|
|
28324
28332
|
}
|
|
28325
28333
|
async function jl(e10, t10) {
|
|
28326
|
-
let r10 = (/* @__PURE__ */ new Date()).toISOString(), n10 = await e10.update(Sz).set({ status: "offline", lastSeenAt: r10, updatedAt: r10 }).where(xG(xW(Sz.userId, t10.userId), xW(Sz.id, t10.machineId), xW(Sz.status, "online"), xF`EXISTS (SELECT 1 FROM ${
|
|
28334
|
+
let r10 = (/* @__PURE__ */ new Date()).toISOString(), n10 = await e10.update(Sz).set({ status: "offline", lastSeenAt: r10, updatedAt: r10 }).where(xG(xW(Sz.userId, t10.userId), xW(Sz.id, t10.machineId), xW(Sz.status, "online"), xF`EXISTS (SELECT 1 FROM ${Sq} c WHERE c.machine_id = ${Sz.id} AND c.credential_hash = ${t10.credentialHash} AND c.revoked_at IS NULL)`)).returning();
|
|
28327
28335
|
return n10.length ? n10[0] : null;
|
|
28328
28336
|
}
|
|
28329
28337
|
async function jd(e10, t10) {
|
|
28330
|
-
let r10 = await e10.select({ status: Sz.status }).from(
|
|
28338
|
+
let r10 = await e10.select({ status: Sz.status }).from(SB).innerJoin(Sz, xW(Sz.id, SB.machineId)).innerJoin(ko, xW(ko.id, SB.userId)).where(xG(xW(SB.userId, t10), x5(ko.deletedAt), xW(ko.isBot, true))).limit(1);
|
|
28331
28339
|
return r10.length > 0 && "online" === r10[0].status;
|
|
28332
28340
|
}
|
|
28333
28341
|
async function jc(e10, t10) {
|
|
28334
|
-
let r10 = (/* @__PURE__ */ new Date()).toISOString(), n10 = await e10.update(Sz).set({ status: "online", lastSeenAt: r10, updatedAt: r10 }).where(xG(xW(Sz.userId, t10.userId), xW(Sz.id, t10.machineId), xW(Sz.status, "offline"), xF`EXISTS (SELECT 1 FROM ${
|
|
28342
|
+
let r10 = (/* @__PURE__ */ new Date()).toISOString(), n10 = await e10.update(Sz).set({ status: "online", lastSeenAt: r10, updatedAt: r10 }).where(xG(xW(Sz.userId, t10.userId), xW(Sz.id, t10.machineId), xW(Sz.status, "offline"), xF`EXISTS (SELECT 1 FROM ${Sq} c WHERE c.machine_id = ${Sz.id} AND c.credential_hash = ${t10.credentialHash} AND c.revoked_at IS NULL)`)).returning();
|
|
28335
28343
|
return n10.length ? n10[0] : null;
|
|
28336
28344
|
}
|
|
28337
28345
|
async function ju(e10, t10) {
|
|
@@ -28367,12 +28375,12 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28367
28375
|
e.s(["ActivateCredentialError", 0, P3, "activateMachineCredential", 0, P6, "claimPairingToken", 0, PK, "createPairingToken", 0, PV, "createReconnectPairingToken", 0, PJ, "deleteMachineForUser", 0, jo, "doNameFromHash", 0, PH, "findActiveAgentRunnerKeyByBearer", 0, jn, "findActiveCredentialByBearer", 0, P8, "findActiveToken", 0, PW, "findCredentialByHash", 0, P5, "findTokenById", 0, PQ, "getActiveDoNamesForMachine", 0, P9, "getMachineByIdForUser", 0, ji, "hashCredential", 0, PZ, "isBotOnline", 0, jd, "listMachinesForUser", 0, ja, "markMachineOffline", 0, jl, "markMachineOnlineIfOffline", 0, jc, "mintAgentRunnerKey", 0, jt, "reconcileBotActivityFromRunningAgents", 0, P4, "revokeCredential", 0, P7, "revokeCredentialsForMachine", 0, je, "revokeRunnerKeysForAgentStatement", 0, function(e10, t10, r10) {
|
|
28368
28376
|
return e10.update(SM).set({ revokedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(xG(xW(SM.agentId, t10), x5(SM.revokedAt), x2(SM.userId, e10.select({ id: ko.id }).from(ko).where(xG(xW(ko.id, t10), xW(ko.ownerUserId, r10), xW(ko.isBot, true))))));
|
|
28369
28377
|
}, "revokeRunnerKeysForMachine", 0, jr, "revokeToken", 0, PX, "toSummary", 0, js, "touchMachineHeartbeat", 0, P1, "touchTokenLastUsed", 0, PG, "upsertMachineByMachineId", 0, PY], 440676), e.s(["addMessageTag", 0, ju, "filterMessageIdsByTag", 0, jg, "listDistinctTagsForChannel", 0, jy, "listTagsForMessage", 0, jm, "listTagsForMessages", 0, jh, "removeMessageTag", 0, jp, "replaceMessageTags", 0, jf], 305253), e.s([], 386900), e.i(386900);
|
|
28370
|
-
var jv = e.i(827641), jb = e.i(354412), jI = e.i(528743), j_ = e.i(230750), jx = e.i(405805), jA = e.i(758259), jk = e.i(82709), jS = e.i(439472), jE = e.i(150002), j$ = e.i(199353), jT = e.i(937824), jR = e.i(926846), jO = e.i(648192), jC = e.i(793709), jU = e.i(451007), jN = e.i(72289), jD = e.i(804702), jP = e.i(616336), jj = e.i(6032), jL = e.i(586668), jz = e.i(698103),
|
|
28378
|
+
var jv = e.i(827641), jb = e.i(354412), jI = e.i(528743), j_ = e.i(230750), jx = e.i(405805), jA = e.i(758259), jk = e.i(82709), jS = e.i(439472), jE = e.i(150002), j$ = e.i(199353), jT = e.i(937824), jR = e.i(926846), jO = e.i(648192), jC = e.i(793709), jU = e.i(451007), jN = e.i(72289), jD = e.i(804702), jP = e.i(616336), jj = e.i(6032), jL = e.i(586668), jz = e.i(698103), jq = e.i(215408), jB = e.i(857467), jM = e.i(168956), jF = e.i(728745), jZ = e.i(20312), jH = e.i(294616), jV = e.i(715994), jJ = e.i(574850), jK = e.i(473095), jW = e.i(218728), jQ = e.i(596696), jG = e.i(113666), jX = e.i(626491), jY = e.i(201298), j0 = e.i(222553), j1 = e.i(157761), j4 = e.i(308090), j6 = e.i(364989);
|
|
28371
28379
|
e.i(539284), e.s(["SELF_BOT_FRIENDSHIP_PREFIX", 0, _h, "acceptRequest", 0, D$, "areFriends", 0, DD, "block", 0, DO, "cancelPendingRequest", 0, DF, "ensureSiblingBotFriendship", 0, DZ, "getFriendUserIds", 0, DN, "getFriendship", 0, DP, "hydrateApprovalsForDmMessages", 0, DV, "isBlocked", 0, Dj, "isSelfBotFriendship", 0, function(e10) {
|
|
28372
28380
|
return e10.startsWith(_h);
|
|
28373
|
-
}, "listAgentFriends", 0, DH, "listBlocked", 0, DL, "listFriends", 0, DU, "listPending", 0, Dz, "ownerDecideOnRow", 0,
|
|
28381
|
+
}, "listAgentFriends", 0, DH, "listBlocked", 0, DL, "listFriends", 0, DU, "listPending", 0, Dz, "ownerDecideOnRow", 0, Dq, "rejectRequest", 0, DT, "removeFriend", 0, DR, "sendRequest", 0, DE, "supersedePendingBetween", 0, DM, "unblock", 0, DC], 727813);
|
|
28374
28382
|
var j2 = e.i(727813), j3 = e.i(960853), j5 = e.i(539185), j8 = e.i(93475), j9 = e.i(111030), j7 = e.i(443036), Le = e.i(18945), Lt = e.i(265135), Lr = e.i(818131), Ln = e.i(630422), Li = e.i(453301), La = e.i(619294), Lo = e.i(387784), Ls = e.i(270043), Ll = e.i(279850), Ld = e.i(440676), Lc = e.i(549207), Lu = e.i(332017), Lp = e.i(327586), Lf = e.i(305253);
|
|
28375
|
-
e.s(["agent", 0, j_, "agentAccess", 0, jj, "agentLink", 0, jV, "agentPin", 0, jL, "agentSidebarOrder", 0, jz, "agentSkill", 0, jZ, "artifact", 0, jN, "calendarEvent", 0, jU, "channel", 0, jM, "communityAgentInbox", 0, Lu, "communityAttachment", 0, j9, "communityAuditLog", 0, Lo, "communityBot", 0, Lc, "communityBotAuditLog", 0, Lp, "communityCategory", 0, jY, "communityChannel", 0, jX, "communityDm", 0, j3, "communityFriendship", 0, j2, "communityInbox", 0, Ll, "communityInvite", 0, j5, "communityMachine", 0, Ld, "communityMember", 0, j0, "communityMembersResolver", 0, j1, "communityMention", 0, Lt, "communityMessage", 0, j6, "communityMessageMark", 0, Le, "communityMessageTag", 0, Lf, "communityNotificationSetting", 0, La, "communityPin", 0, j7, "communityReaction", 0, j8, "communityReadState", 0, Lr, "communitySearch", 0, Li, "communityServer", 0, jG, "communityServerFolder", 0, Ls, "communityThread", 0, j4, "communityUserProfile", 0, Ln, "conversation", 0, jA, "conversationMap", 0, jH, "email", 0, jO, "emailAccount", 0, jD, "inbox", 0, jJ, "issue", 0, jK, "issueComment", 0, jW, "machine", 0, j$, "machineToken", 0, jT, "meetingSession", 0,
|
|
28383
|
+
e.s(["agent", 0, j_, "agentAccess", 0, jj, "agentLink", 0, jV, "agentPin", 0, jL, "agentSidebarOrder", 0, jz, "agentSkill", 0, jZ, "artifact", 0, jN, "calendarEvent", 0, jU, "channel", 0, jM, "communityAgentInbox", 0, Lu, "communityAttachment", 0, j9, "communityAuditLog", 0, Lo, "communityBot", 0, Lc, "communityBotAuditLog", 0, Lp, "communityCategory", 0, jY, "communityChannel", 0, jX, "communityDm", 0, j3, "communityFriendship", 0, j2, "communityInbox", 0, Ll, "communityInvite", 0, j5, "communityMachine", 0, Ld, "communityMember", 0, j0, "communityMembersResolver", 0, j1, "communityMention", 0, Lt, "communityMessage", 0, j6, "communityMessageMark", 0, Le, "communityMessageTag", 0, Lf, "communityNotificationSetting", 0, La, "communityPin", 0, j7, "communityReaction", 0, j8, "communityReadState", 0, Lr, "communitySearch", 0, Li, "communityServer", 0, jG, "communityServerFolder", 0, Ls, "communityThread", 0, j4, "communityUserProfile", 0, Ln, "conversation", 0, jA, "conversationMap", 0, jH, "email", 0, jO, "emailAccount", 0, jD, "inbox", 0, jJ, "issue", 0, jK, "issueComment", 0, jW, "machine", 0, j$, "machineToken", 0, jT, "meetingSession", 0, jB, "member", 0, jI, "message", 0, jk, "messageFlag", 0, jQ, "overview", 0, jq, "runtime", 0, jx, "session", 0, jC, "task", 0, jS, "taskMessage", 0, jE, "user", 0, jv, "whitelist", 0, jR, "workspace", 0, jb, "workspaceFileRequest", 0, jF, "workspaceInvite", 0, jP], 909491);
|
|
28376
28384
|
var Lm = e.i(909491), Lm = Lm;
|
|
28377
28385
|
let Lh = { "community:msgSend": { windowMs: 1e4, max: 30 }, "auth:otpSend": { windowMs: 6e4, max: 5 } };
|
|
28378
28386
|
function Lg(e10) {
|
|
@@ -28642,13 +28650,13 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28642
28650
|
}
|
|
28643
28651
|
return t14;
|
|
28644
28652
|
}, onError(r13) {
|
|
28645
|
-
if (
|
|
28653
|
+
if (yB(r13) && "FOUND" === r13.status) return;
|
|
28646
28654
|
if (t13.onAPIError?.throw) throw r13;
|
|
28647
28655
|
if (t13.onAPIError?.onError) return void t13.onAPIError.onError(r13, e12);
|
|
28648
28656
|
let n14 = t13.logger?.level, i13 = "error" === n14 || "warn" === n14 || "debug" === n14 ? rj.logger : void 0;
|
|
28649
28657
|
if (t13.logger?.disabled !== true) {
|
|
28650
28658
|
if (r13 && "object" == typeof r13 && "message" in r13 && "string" == typeof r13.message && (r13.message.includes("no column") || r13.message.includes("column") || r13.message.includes("relation") || r13.message.includes("table") || r13.message.includes("does not exist"))) return void e12.logger?.error(r13.message);
|
|
28651
|
-
|
|
28659
|
+
yB(r13) ? ("INTERNAL_SERVER_ERROR" === r13.status && e12.logger.error(r13.status, r13), i13?.error(r13.message)) : e12.logger?.error(r13 && "object" == typeof r13 && "name" in r13 ? r13.name : "", r13);
|
|
28652
28660
|
}
|
|
28653
28661
|
} });
|
|
28654
28662
|
})(n12, e11);
|
|
@@ -28865,7 +28873,7 @@ params: ${t10}`), this.query = e10, this.params = t10, this.cause = r10, Error.c
|
|
|
28865
28873
|
super(e10), Object.defineProperty(this, "__NEXT_ERROR_CODE", { value: "E394", enumerable: false, configurable: true }), this.stack = "";
|
|
28866
28874
|
}
|
|
28867
28875
|
}(`The Middleware file "${LU}" must export a function named \`middleware\` or a default function.`);
|
|
28868
|
-
let LD = async (e10) =>
|
|
28876
|
+
let LD = async (e10) => tq({ ...e10, IncrementalCache: rS, incrementalCacheHandler: null, page: LU, handler: async (...e11) => {
|
|
28869
28877
|
try {
|
|
28870
28878
|
return await LN(...e11);
|
|
28871
28879
|
} catch (i10) {
|
|
@@ -29926,7 +29934,7 @@ var require_g4_next_dist_esm_build_templates_edge_wrapper_0azrzeb = __commonJS({
|
|
|
29926
29934
|
}
|
|
29927
29935
|
});
|
|
29928
29936
|
|
|
29929
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
29937
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/edgeFunctionHandler.js
|
|
29930
29938
|
var edgeFunctionHandler_exports = {};
|
|
29931
29939
|
__export(edgeFunctionHandler_exports, {
|
|
29932
29940
|
default: () => edgeFunctionHandler
|
|
@@ -29961,7 +29969,7 @@ async function edgeFunctionHandler(request) {
|
|
|
29961
29969
|
return response;
|
|
29962
29970
|
}
|
|
29963
29971
|
var init_edgeFunctionHandler = __esm({
|
|
29964
|
-
"../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
29972
|
+
"../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/edgeFunctionHandler.js"() {
|
|
29965
29973
|
globalThis._ENTRIES = {};
|
|
29966
29974
|
globalThis.self = globalThis;
|
|
29967
29975
|
globalThis._ROUTES = [{ "name": "middleware", "page": "/", "regex": ["^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next|favicon\\.ico|.*\\..*).*))(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$"] }];
|
|
@@ -29977,10 +29985,10 @@ var init_edgeFunctionHandler = __esm({
|
|
|
29977
29985
|
}
|
|
29978
29986
|
});
|
|
29979
29987
|
|
|
29980
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
29988
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/promise.js
|
|
29981
29989
|
init_logger();
|
|
29982
29990
|
|
|
29983
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
29991
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/requestCache.js
|
|
29984
29992
|
var RequestCache = class {
|
|
29985
29993
|
_caches = /* @__PURE__ */ new Map();
|
|
29986
29994
|
/**
|
|
@@ -29998,7 +30006,7 @@ var RequestCache = class {
|
|
|
29998
30006
|
}
|
|
29999
30007
|
};
|
|
30000
30008
|
|
|
30001
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30009
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/promise.js
|
|
30002
30010
|
var DetachedPromise = class {
|
|
30003
30011
|
resolve;
|
|
30004
30012
|
reject;
|
|
@@ -30079,13 +30087,13 @@ function runWithOpenNextRequestContext({ isISRRevalidation, waitUntil, requestId
|
|
|
30079
30087
|
});
|
|
30080
30088
|
}
|
|
30081
30089
|
|
|
30082
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30090
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/adapters/middleware.js
|
|
30083
30091
|
init_logger();
|
|
30084
30092
|
|
|
30085
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30093
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/createGenericHandler.js
|
|
30086
30094
|
init_logger();
|
|
30087
30095
|
|
|
30088
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30096
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/resolve.js
|
|
30089
30097
|
async function resolveConverter(converter2) {
|
|
30090
30098
|
if (typeof converter2 === "function") {
|
|
30091
30099
|
return converter2();
|
|
@@ -30122,7 +30130,7 @@ async function resolveProxyRequest(proxyRequest) {
|
|
|
30122
30130
|
return m_1.default;
|
|
30123
30131
|
}
|
|
30124
30132
|
|
|
30125
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30133
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/createGenericHandler.js
|
|
30126
30134
|
async function createGenericHandler(handler3) {
|
|
30127
30135
|
const config = await import("./open-next.config.mjs").then((m) => m.default);
|
|
30128
30136
|
globalThis.openNextConfig = config;
|
|
@@ -30134,23 +30142,23 @@ async function createGenericHandler(handler3) {
|
|
|
30134
30142
|
return wrapper(handler3.handler, converter2);
|
|
30135
30143
|
}
|
|
30136
30144
|
|
|
30137
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30145
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/util.js
|
|
30138
30146
|
import crypto2 from "node:crypto";
|
|
30139
30147
|
import { parse as parseQs, stringify as stringifyQs } from "node:querystring";
|
|
30140
30148
|
|
|
30141
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30149
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/adapters/config/index.js
|
|
30142
30150
|
init_logger();
|
|
30143
30151
|
import path from "node:path";
|
|
30144
30152
|
globalThis.__dirname ??= "";
|
|
30145
30153
|
var NEXT_DIR = path.join(__dirname, ".next");
|
|
30146
30154
|
var OPEN_NEXT_DIR = path.join(__dirname, ".open-next");
|
|
30147
30155
|
debug({ NEXT_DIR, OPEN_NEXT_DIR });
|
|
30148
|
-
var NextConfig = { "env": { "NEXT_PUBLIC_APP_VERSION": "0.1.
|
|
30149
|
-
var BuildId = "
|
|
30156
|
+
var NextConfig = { "env": { "NEXT_PUBLIC_APP_VERSION": "0.1.2" }, "typescript": { "ignoreBuildErrors": false }, "typedRoutes": false, "distDir": ".next", "cleanDistDir": true, "assetPrefix": "", "cacheMaxMemorySize": 52428800, "configOrigin": "next.config.ts", "useFileSystemPublicRoutes": true, "generateEtags": true, "pageExtensions": ["js", "jsx", "md", "mdx", "ts", "tsx"], "instrumentationClientInject": [], "poweredByHeader": true, "compress": true, "images": { "deviceSizes": [640, 750, 828, 1080, 1200, 1920, 2048, 3840], "imageSizes": [32, 48, 64, 96, 128, 256, 384], "path": "/_next/image", "loader": "default", "loaderFile": "", "domains": [], "disableStaticImages": false, "minimumCacheTTL": 14400, "formats": ["image/webp"], "maximumRedirects": 3, "maximumResponseBody": 5e7, "dangerouslyAllowLocalIP": false, "dangerouslyAllowSVG": false, "contentSecurityPolicy": "script-src 'none'; frame-src 'none'; sandbox;", "contentDispositionType": "attachment", "localPatterns": [{ "pathname": "**", "search": "" }], "remotePatterns": [], "qualities": [75], "unoptimized": false, "customCacheHandler": false }, "devIndicators": { "position": "bottom-left" }, "onDemandEntries": { "maxInactiveAge": 6e4, "pagesBufferLength": 5 }, "basePath": "", "sassOptions": {}, "trailingSlash": false, "i18n": null, "productionBrowserSourceMaps": false, "excludeDefaultMomentLocales": true, "reactProductionProfiling": false, "reactStrictMode": null, "reactMaxHeadersLength": 6e3, "httpAgentOptions": { "keepAlive": true }, "logging": { "serverFunctions": true, "browserToTerminal": "warn" }, "compiler": {}, "expireTime": 31536e3, "staticPageGenerationTimeout": 60, "output": "standalone", "modularizeImports": { "@mui/icons-material": { "transform": "@mui/icons-material/{{member}}" }, "lodash": { "transform": "lodash/{{member}}" } }, "outputFileTracingRoot": "/home/runner/work/alook/alook", "enablePrerenderSourceMaps": true, "cacheComponents": false, "cacheLife": { "default": { "stale": 300, "revalidate": 900, "expire": 4294967294 }, "seconds": { "stale": 30, "revalidate": 1, "expire": 60 }, "minutes": { "stale": 300, "revalidate": 60, "expire": 3600 }, "hours": { "stale": 300, "revalidate": 3600, "expire": 86400 }, "days": { "stale": 300, "revalidate": 86400, "expire": 604800 }, "weeks": { "stale": 300, "revalidate": 604800, "expire": 2592e3 }, "max": { "stale": 300, "revalidate": 2592e3, "expire": 31536e3 } }, "cacheHandlers": {}, "experimental": { "appNewScrollHandler": true, "coldCacheBadge": false, "devValidationWorker": true, "useSkewCookie": false, "cssChunking": true, "multiZoneDraftMode": false, "appNavFailHandling": false, "prerenderEarlyExit": true, "serverMinification": true, "linkNoTouchStart": false, "caseSensitiveRoutes": false, "cachedNavigations": false, "dynamicOnHover": false, "useOffline": false, "varyParams": true, "optimisticRouting": true, "instrumentationClientRouterTransitionEvents": false, "prefetchInlining": { "maxSize": 2048, "maxBundleSize": 10240 }, "preloadEntriesOnStart": true, "clientRouterFilter": true, "clientRouterFilterRedirects": false, "fetchCacheKeyPrefix": "", "proxyPrefetch": "flexible", "optimisticClientCache": true, "manualClientBasePath": false, "cpus": 3, "memoryBasedWorkersCount": false, "imgOptConcurrency": null, "imgOptOperationCache": null, "imgOptTimeoutInSeconds": 7, "imgOptMaxInputPixels": 268402689, "imgOptSequentialRead": null, "isrFlushToDisk": true, "workerThreads": false, "optimizeCss": false, "nextScriptWorkers": false, "scrollRestoration": false, "externalDir": false, "devMemoryThresholdRestart": true, "disableOptimizedLoading": false, "gzipSize": true, "craCompat": false, "esmExternals": true, "fullySpecified": false, "swcTraceProfiling": false, "forceSwcTransforms": false, "requestInsights": false, "largePageDataBytes": 128e3, "typedEnv": false, "parallelServerCompiles": false, "parallelServerBuildTraces": false, "ppr": false, "authInterrupts": false, "webpackMemoryOptimizations": false, "optimizeServerReact": true, "strictRouteTypes": false, "useTypeScriptCli": true, "removeUncaughtErrorAndRejectionListeners": false, "validateRSCRequestHeaders": true, "staleTimes": { "dynamic": 0, "static": 300 }, "reactDebugChannel": true, "serverComponentsHmrCache": true, "serverComponentsHmrCancellation": false, "staticGenerationMaxConcurrency": 8, "staticGenerationMinPagesPerWorker": 25, "transitionIndicator": false, "gestureTransition": false, "inlineCss": false, "useCache": false, "globalNotFound": false, "browserDebugInfoInTerminal": "warn", "lockDistDir": true, "proxyClientMaxBodySize": 10485760, "hideLogsAfterAbort": false, "mcpServer": true, "turbopackFileSystemCacheForDev": true, "turbopackFileSystemCacheForBuild": true, "turbopackInferModuleSideEffects": true, "turbopackPluginRuntimeStrategy": "childProcesses", "turbopackMemoryEvictionMode": "auto", "optimizePackageImports": ["lucide-react", "date-fns", "lodash-es", "ramda", "antd", "react-bootstrap", "ahooks", "@ant-design/icons", "@headlessui/react", "@headlessui-float/react", "@heroicons/react/20/solid", "@heroicons/react/24/solid", "@heroicons/react/24/outline", "@visx/visx", "@tremor/react", "rxjs", "@mui/material", "@mui/icons-material", "recharts", "react-use", "effect", "@effect/schema", "@effect/platform", "@effect/platform-node", "@effect/platform-browser", "@effect/platform-bun", "@effect/sql", "@effect/sql-mssql", "@effect/sql-mysql2", "@effect/sql-pg", "@effect/sql-sqlite-node", "@effect/sql-sqlite-bun", "@effect/sql-sqlite-wasm", "@effect/sql-sqlite-react-native", "@effect/rpc", "@effect/rpc-http", "@effect/typeclass", "@effect/experimental", "@effect/opentelemetry", "@material-ui/core", "@material-ui/icons", "@tabler/icons-react", "mui-core", "react-icons/ai", "react-icons/bi", "react-icons/bs", "react-icons/cg", "react-icons/ci", "react-icons/di", "react-icons/fa", "react-icons/fa6", "react-icons/fc", "react-icons/fi", "react-icons/gi", "react-icons/go", "react-icons/gr", "react-icons/hi", "react-icons/hi2", "react-icons/im", "react-icons/io", "react-icons/io5", "react-icons/lia", "react-icons/lib", "react-icons/lu", "react-icons/md", "react-icons/pi", "react-icons/ri", "react-icons/rx", "react-icons/si", "react-icons/sl", "react-icons/tb", "react-icons/tfi", "react-icons/ti", "react-icons/vsc", "react-icons/wi"], "useCacheTimeout": 54, "instantInsights": { "validationLevel": "warning" }, "trustHostHeader": false, "isExperimentalCompile": false }, "htmlLimitedBots": "[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight", "bundlePagesRouterDependencies": false, "configFileName": "next.config.ts", "serverExternalPackages": ["@better-auth/core"], "turbopack": { "root": "/home/runner/work/alook/alook", "rules": { "{*,next-mdx-rule}": [{ "loaders": [{ "loader": "/home/runner/work/alook/alook/node_modules/.pnpm/@next+mdx@16.3.0_@mdx-js+loader@3.1.1_@mdx-js+react@3.1.1_@types+react@19.2.18_react@19.2.8_/node_modules/@next/mdx/mdx-js-loader.js", "options": { "providerImportSource": "next-mdx-import-source-file", "remarkPlugins": ["remark-gfm"], "rehypePlugins": ["rehype-slug", ["rehype-autolink-headings", { "behavior": "wrap" }], ["rehype-external-links", { "target": "_blank", "rel": ["noopener", "noreferrer"] }], ["rehype-pretty-code", { "theme": { "light": "vitesse-light", "dark": "vitesse-dark" }, "keepBackground": false }]] } }], "as": "*.tsx", "condition": { "path": {} } }] }, "resolveAlias": { "next-mdx-import-source-file": "@vercel/turbopack-next/mdx-import-source" } }, "repoRoot": "/home/runner/work/alook/alook", "distDirRoot": ".next", "_originalRedirects": [{ "source": "/blog/building-your-first-agent-team", "destination": "/blog/ai-agent-team", "statusCode": 301 }] };
|
|
30157
|
+
var BuildId = "QAHTJJ2088SDjU6s2f6r7";
|
|
30150
30158
|
var RoutesManifest = { "basePath": "", "rewrites": { "beforeFiles": [], "afterFiles": [], "fallback": [] }, "redirects": [{ "source": "/:path+/", "destination": "/:path+", "internal": true, "priority": true, "statusCode": 308, "regex": "^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$" }, { "source": "/blog/building-your-first-agent-team", "destination": "/blog/ai-agent-team", "statusCode": 301, "regex": "^(?!/_next)/blog/building-your-first-agent-team(?:/)?$" }], "routes": { "static": [{ "page": "/", "regex": "^/(?:/)?$", "routeKeys": {}, "namedRegex": "^/(?:/)?$" }, { "page": "/_global-error", "regex": "^/_global\\-error(?:/)?$", "routeKeys": {}, "namedRegex": "^/_global\\-error(?:/)?$" }, { "page": "/_not-found", "regex": "^/_not\\-found(?:/)?$", "routeKeys": {}, "namedRegex": "^/_not\\-found(?:/)?$" }, { "page": "/.well-known/apple-app-site-association", "regex": "^/\\.well\\-known/apple\\-app\\-site\\-association(?:/)?$", "routeKeys": {}, "namedRegex": "^/\\.well\\-known/apple\\-app\\-site\\-association(?:/)?$" }, { "page": "/.well-known/assetlinks.json", "regex": "^/\\.well\\-known/assetlinks\\.json(?:/)?$", "routeKeys": {}, "namedRegex": "^/\\.well\\-known/assetlinks\\.json(?:/)?$" }, { "page": "/api/agent-links", "regex": "^/api/agent\\-links(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agent\\-links(?:/)?$" }, { "page": "/api/agents", "regex": "^/api/agents(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents(?:/)?$" }, { "page": "/api/agents/active-task-counts", "regex": "^/api/agents/active\\-task\\-counts(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/active\\-task\\-counts(?:/)?$" }, { "page": "/api/agents/active-tasks", "regex": "^/api/agents/active\\-tasks(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/active\\-tasks(?:/)?$" }, { "page": "/api/agents/pins", "regex": "^/api/agents/pins(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/pins(?:/)?$" }, { "page": "/api/agents/pins/reorder", "regex": "^/api/agents/pins/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/pins/reorder(?:/)?$" }, { "page": "/api/agents/recruit", "regex": "^/api/agents/recruit(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/recruit(?:/)?$" }, { "page": "/api/agents/sidebar/reorder", "regex": "^/api/agents/sidebar/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/sidebar/reorder(?:/)?$" }, { "page": "/api/artifacts", "regex": "^/api/artifacts(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/artifacts(?:/)?$" }, { "page": "/api/artifacts/upload", "regex": "^/api/artifacts/upload(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/artifacts/upload(?:/)?$" }, { "page": "/api/calendar", "regex": "^/api/calendar(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/calendar(?:/)?$" }, { "page": "/api/channels", "regex": "^/api/channels(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/channels(?:/)?$" }, { "page": "/api/channels/reorder", "regex": "^/api/channels/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/channels/reorder(?:/)?$" }, { "page": "/api/cli/latest-version", "regex": "^/api/cli/latest\\-version(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/cli/latest\\-version(?:/)?$" }, { "page": "/api/community/bots", "regex": "^/api/community/bots(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/bots(?:/)?$" }, { "page": "/api/community/bots/me/nap", "regex": "^/api/community/bots/me/nap(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/bots/me/nap(?:/)?$" }, { "page": "/api/community/channels", "regex": "^/api/community/channels(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/channels(?:/)?$" }, { "page": "/api/community/channels/participants/batch", "regex": "^/api/community/channels/participants/batch(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/channels/participants/batch(?:/)?$" }, { "page": "/api/community/daemon/activate", "regex": "^/api/community/daemon/activate(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/daemon/activate(?:/)?$" }, { "page": "/api/community/daemon/bots", "regex": "^/api/community/daemon/bots(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/daemon/bots(?:/)?$" }, { "page": "/api/community/daemon/enroll-agent", "regex": "^/api/community/daemon/enroll\\-agent(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/daemon/enroll\\-agent(?:/)?$" }, { "page": "/api/community/daemon/resync-wakes", "regex": "^/api/community/daemon/resync\\-wakes(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/daemon/resync\\-wakes(?:/)?$" }, { "page": "/api/community/friends/accepted", "regex": "^/api/community/friends/accepted(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/friends/accepted(?:/)?$" }, { "page": "/api/community/friends/blocked", "regex": "^/api/community/friends/blocked(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/friends/blocked(?:/)?$" }, { "page": "/api/community/friends/pending", "regex": "^/api/community/friends/pending(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/friends/pending(?:/)?$" }, { "page": "/api/community/friends/presence", "regex": "^/api/community/friends/presence(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/friends/presence(?:/)?$" }, { "page": "/api/community/friends/request", "regex": "^/api/community/friends/request(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/friends/request(?:/)?$" }, { "page": "/api/community/machines", "regex": "^/api/community/machines(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/machines(?:/)?$" }, { "page": "/api/community/machines/pair", "regex": "^/api/community/machines/pair(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/machines/pair(?:/)?$" }, { "page": "/api/community/messages/batch", "regex": "^/api/community/messages/batch(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/messages/batch(?:/)?$" }, { "page": "/api/community/messages/search", "regex": "^/api/community/messages/search(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/messages/search(?:/)?$" }, { "page": "/api/community/messages/tags/batch", "regex": "^/api/community/messages/tags/batch(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/messages/tags/batch(?:/)?$" }, { "page": "/api/community/servers", "regex": "^/api/community/servers(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/servers(?:/)?$" }, { "page": "/api/community/servers/channels", "regex": "^/api/community/servers/channels(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/servers/channels(?:/)?$" }, { "page": "/api/community/servers/reorder", "regex": "^/api/community/servers/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/servers/reorder(?:/)?$" }, { "page": "/api/community/users/me/avatar", "regex": "^/api/community/users/me/avatar(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/avatar(?:/)?$" }, { "page": "/api/community/users/me/dms", "regex": "^/api/community/users/me/dms(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/dms(?:/)?$" }, { "page": "/api/community/users/me/inbox/ack", "regex": "^/api/community/users/me/inbox/ack(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/ack(?:/)?$" }, { "page": "/api/community/users/me/inbox/dms/read-all", "regex": "^/api/community/users/me/inbox/dms/read\\-all(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/dms/read\\-all(?:/)?$" }, { "page": "/api/community/users/me/inbox/mentions", "regex": "^/api/community/users/me/inbox/mentions(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/mentions(?:/)?$" }, { "page": "/api/community/users/me/inbox/mentions/read-all", "regex": "^/api/community/users/me/inbox/mentions/read\\-all(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/mentions/read\\-all(?:/)?$" }, { "page": "/api/community/users/me/inbox/pull", "regex": "^/api/community/users/me/inbox/pull(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/pull(?:/)?$" }, { "page": "/api/community/users/me/inbox/snapshot", "regex": "^/api/community/users/me/inbox/snapshot(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/snapshot(?:/)?$" }, { "page": "/api/community/users/me/inbox/unreads", "regex": "^/api/community/users/me/inbox/unreads(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/unreads(?:/)?$" }, { "page": "/api/community/users/me/inbox/unreads/read-all", "regex": "^/api/community/users/me/inbox/unreads/read\\-all(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/inbox/unreads/read\\-all(?:/)?$" }, { "page": "/api/community/users/me/marks", "regex": "^/api/community/users/me/marks(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/marks(?:/)?$" }, { "page": "/api/community/users/me/notifications", "regex": "^/api/community/users/me/notifications(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/notifications(?:/)?$" }, { "page": "/api/community/users/me/profile", "regex": "^/api/community/users/me/profile(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/profile(?:/)?$" }, { "page": "/api/community/users/me/server-folders", "regex": "^/api/community/users/me/server\\-folders(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/server\\-folders(?:/)?$" }, { "page": "/api/community/users/me/server-folders/reorder", "regex": "^/api/community/users/me/server\\-folders/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/me/server\\-folders/reorder(?:/)?$" }, { "page": "/api/community/users/search", "regex": "^/api/community/users/search(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/community/users/search(?:/)?$" }, { "page": "/api/config/min-version", "regex": "^/api/config/min\\-version(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/config/min\\-version(?:/)?$" }, { "page": "/api/config/model-options", "regex": "^/api/config/model\\-options(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/config/model\\-options(?:/)?$" }, { "page": "/api/conversations", "regex": "^/api/conversations(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/conversations(?:/)?$" }, { "page": "/api/conversations/check-fresh", "regex": "^/api/conversations/check\\-fresh(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/conversations/check\\-fresh(?:/)?$" }, { "page": "/api/daemon/deregister", "regex": "^/api/daemon/deregister(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/deregister(?:/)?$" }, { "page": "/api/daemon/heartbeat", "regex": "^/api/daemon/heartbeat(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/heartbeat(?:/)?$" }, { "page": "/api/daemon/register", "regex": "^/api/daemon/register(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/register(?:/)?$" }, { "page": "/api/daemon/skills/sync", "regex": "^/api/daemon/skills/sync(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/skills/sync(?:/)?$" }, { "page": "/api/daemon/sweep", "regex": "^/api/daemon/sweep(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/sweep(?:/)?$" }, { "page": "/api/daemon/tasks/poll", "regex": "^/api/daemon/tasks/poll(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/tasks/poll(?:/)?$" }, { "page": "/api/daemon/workspace/report", "regex": "^/api/daemon/workspace/report(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/workspace/report(?:/)?$" }, { "page": "/api/daily-quote", "regex": "^/api/daily\\-quote(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daily\\-quote(?:/)?$" }, { "page": "/api/email", "regex": "^/api/email(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email(?:/)?$" }, { "page": "/api/email/notify", "regex": "^/api/email/notify(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email/notify(?:/)?$" }, { "page": "/api/email/send", "regex": "^/api/email/send(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email/send(?:/)?$" }, { "page": "/api/email/upload", "regex": "^/api/email/upload(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email/upload(?:/)?$" }, { "page": "/api/flags", "regex": "^/api/flags(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/flags(?:/)?$" }, { "page": "/api/flags/count", "regex": "^/api/flags/count(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/flags/count(?:/)?$" }, { "page": "/api/health", "regex": "^/api/health(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/health(?:/)?$" }, { "page": "/api/inbox", "regex": "^/api/inbox(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox(?:/)?$" }, { "page": "/api/inbox/count", "regex": "^/api/inbox/count(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox/count(?:/)?$" }, { "page": "/api/inbox/read", "regex": "^/api/inbox/read(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox/read(?:/)?$" }, { "page": "/api/inbox/read-all", "regex": "^/api/inbox/read\\-all(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox/read\\-all(?:/)?$" }, { "page": "/api/issues", "regex": "^/api/issues(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/issues(?:/)?$" }, { "page": "/api/machine-tokens", "regex": "^/api/machine\\-tokens(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/machine\\-tokens(?:/)?$" }, { "page": "/api/machine-tokens/activate", "regex": "^/api/machine\\-tokens/activate(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/machine\\-tokens/activate(?:/)?$" }, { "page": "/api/machine-tokens/status", "regex": "^/api/machine\\-tokens/status(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/machine\\-tokens/status(?:/)?$" }, { "page": "/api/me", "regex": "^/api/me(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/me(?:/)?$" }, { "page": "/api/meeting/callback", "regex": "^/api/meeting/callback(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/meeting/callback(?:/)?$" }, { "page": "/api/members/me", "regex": "^/api/members/me(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/members/me(?:/)?$" }, { "page": "/api/runtimes", "regex": "^/api/runtimes(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/runtimes(?:/)?$" }, { "page": "/api/runtimes/machine", "regex": "^/api/runtimes/machine(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/runtimes/machine(?:/)?$" }, { "page": "/api/studios", "regex": "^/api/studios(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/studios(?:/)?$" }, { "page": "/api/studios/check-handles", "regex": "^/api/studios/check\\-handles(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/studios/check\\-handles(?:/)?$" }, { "page": "/api/studios/check-name", "regex": "^/api/studios/check\\-name(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/studios/check\\-name(?:/)?$" }, { "page": "/api/traces", "regex": "^/api/traces(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/traces(?:/)?$" }, { "page": "/api/workspaces", "regex": "^/api/workspaces(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/workspaces(?:/)?$" }, { "page": "/api/ws/token", "regex": "^/api/ws/token(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/ws/token(?:/)?$" }, { "page": "/blog", "regex": "^/blog(?:/)?$", "routeKeys": {}, "namedRegex": "^/blog(?:/)?$" }, { "page": "/blog/feed.xml", "regex": "^/blog/feed\\.xml(?:/)?$", "routeKeys": {}, "namedRegex": "^/blog/feed\\.xml(?:/)?$" }, { "page": "/c", "regex": "^/c(?:/)?$", "routeKeys": {}, "namedRegex": "^/c(?:/)?$" }, { "page": "/c/me", "regex": "^/c/me(?:/)?$", "routeKeys": {}, "namedRegex": "^/c/me(?:/)?$" }, { "page": "/c/me/bots", "regex": "^/c/me/bots(?:/)?$", "routeKeys": {}, "namedRegex": "^/c/me/bots(?:/)?$" }, { "page": "/c/me/machines", "regex": "^/c/me/machines(?:/)?$", "routeKeys": {}, "namedRegex": "^/c/me/machines(?:/)?$" }, { "page": "/device", "regex": "^/device(?:/)?$", "routeKeys": {}, "namedRegex": "^/device(?:/)?$" }, { "page": "/favicon.ico", "regex": "^/favicon\\.ico(?:/)?$", "routeKeys": {}, "namedRegex": "^/favicon\\.ico(?:/)?$" }, { "page": "/landing-legacy", "regex": "^/landing\\-legacy(?:/)?$", "routeKeys": {}, "namedRegex": "^/landing\\-legacy(?:/)?$" }, { "page": "/llms.txt", "regex": "^/llms\\.txt(?:/)?$", "routeKeys": {}, "namedRegex": "^/llms\\.txt(?:/)?$" }, { "page": "/og", "regex": "^/og(?:/)?$", "routeKeys": {}, "namedRegex": "^/og(?:/)?$" }, { "page": "/onboard.md", "regex": "^/onboard\\.md(?:/)?$", "routeKeys": {}, "namedRegex": "^/onboard\\.md(?:/)?$" }, { "page": "/privacy", "regex": "^/privacy(?:/)?$", "routeKeys": {}, "namedRegex": "^/privacy(?:/)?$" }, { "page": "/robots.txt", "regex": "^/robots\\.txt(?:/)?$", "routeKeys": {}, "namedRegex": "^/robots\\.txt(?:/)?$" }, { "page": "/sign-in", "regex": "^/sign\\-in(?:/)?$", "routeKeys": {}, "namedRegex": "^/sign\\-in(?:/)?$" }, { "page": "/sitemap.xml", "regex": "^/sitemap\\.xml(?:/)?$", "routeKeys": {}, "namedRegex": "^/sitemap\\.xml(?:/)?$" }, { "page": "/studio/new", "regex": "^/studio/new(?:/)?$", "routeKeys": {}, "namedRegex": "^/studio/new(?:/)?$" }, { "page": "/templates", "regex": "^/templates(?:/)?$", "routeKeys": {}, "namedRegex": "^/templates(?:/)?$" }, { "page": "/workspaces", "regex": "^/workspaces(?:/)?$", "routeKeys": {}, "namedRegex": "^/workspaces(?:/)?$" }], "dynamic": [{ "page": "/api/agent-links/[id]", "regex": "^/api/agent\\-links/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agent\\-links/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]", "regex": "^/api/agents/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/access", "regex": "^/api/agents/([^/]+?)/access(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/access(?:/)?$" }, { "page": "/api/agents/[id]/access/[userId]", "regex": "^/api/agents/([^/]+?)/access/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/access/(?<nxtPuserId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/active-tasks", "regex": "^/api/agents/([^/]+?)/active\\-tasks(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/active\\-tasks(?:/)?$" }, { "page": "/api/agents/[id]/activity", "regex": "^/api/agents/([^/]+?)/activity(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/activity(?:/)?$" }, { "page": "/api/agents/[id]/chat-init", "regex": "^/api/agents/([^/]+?)/chat\\-init(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/chat\\-init(?:/)?$" }, { "page": "/api/agents/[id]/conversation", "regex": "^/api/agents/([^/]+?)/conversation(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/conversation(?:/)?$" }, { "page": "/api/agents/[id]/conversations", "regex": "^/api/agents/([^/]+?)/conversations(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/conversations(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts", "regex": "^/api/agents/([^/]+?)/email\\-accounts(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts/[accountId]", "regex": "^/api/agents/([^/]+?)/email\\-accounts/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPaccountId": "nxtPaccountId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts/(?<nxtPaccountId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts/[accountId]/sync", "regex": "^/api/agents/([^/]+?)/email\\-accounts/([^/]+?)/sync(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPaccountId": "nxtPaccountId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts/(?<nxtPaccountId>[^/]+?)/sync(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts/[accountId]/test", "regex": "^/api/agents/([^/]+?)/email\\-accounts/([^/]+?)/test(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPaccountId": "nxtPaccountId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts/(?<nxtPaccountId>[^/]+?)/test(?:/)?$" }, { "page": "/api/agents/[id]/meetings", "regex": "^/api/agents/([^/]+?)/meetings(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings(?:/)?$" }, { "page": "/api/agents/[id]/meetings/[meetingId]", "regex": "^/api/agents/([^/]+?)/meetings/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmeetingId": "nxtPmeetingId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings/(?<nxtPmeetingId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/meetings/[meetingId]/approve", "regex": "^/api/agents/([^/]+?)/meetings/([^/]+?)/approve(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmeetingId": "nxtPmeetingId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings/(?<nxtPmeetingId>[^/]+?)/approve(?:/)?$" }, { "page": "/api/agents/[id]/meetings/[meetingId]/stop", "regex": "^/api/agents/([^/]+?)/meetings/([^/]+?)/stop(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmeetingId": "nxtPmeetingId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings/(?<nxtPmeetingId>[^/]+?)/stop(?:/)?$" }, { "page": "/api/agents/[id]/pin", "regex": "^/api/agents/([^/]+?)/pin(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/pin(?:/)?$" }, { "page": "/api/agents/[id]/skills", "regex": "^/api/agents/([^/]+?)/skills(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/skills(?:/)?$" }, { "page": "/api/agents/[id]/threads", "regex": "^/api/agents/([^/]+?)/threads(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/threads(?:/)?$" }, { "page": "/api/agents/[id]/whitelist", "regex": "^/api/agents/([^/]+?)/whitelist(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/whitelist(?:/)?$" }, { "page": "/api/agents/[id]/whitelist/[whitelistId]", "regex": "^/api/agents/([^/]+?)/whitelist/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPwhitelistId": "nxtPwhitelistId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/whitelist/(?<nxtPwhitelistId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/workspace/browse", "regex": "^/api/agents/([^/]+?)/workspace/browse(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/workspace/browse(?:/)?$" }, { "page": "/api/artifacts/[id]", "regex": "^/api/artifacts/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/artifacts/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/artifacts/[id]/content", "regex": "^/api/artifacts/([^/]+?)/content(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/artifacts/(?<nxtPid>[^/]+?)/content(?:/)?$" }, { "page": "/api/artifacts/[id]/thumbnail", "regex": "^/api/artifacts/([^/]+?)/thumbnail(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/artifacts/(?<nxtPid>[^/]+?)/thumbnail(?:/)?$" }, { "page": "/api/auth/[...all]", "regex": "^/api/auth/(.+?)(?:/)?$", "routeKeys": { "nxtPall": "nxtPall" }, "namedRegex": "^/api/auth/(?<nxtPall>.+?)(?:/)?$" }, { "page": "/api/calendar/[id]", "regex": "^/api/calendar/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/calendar/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/channels/[id]", "regex": "^/api/channels/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/channels/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/bots/[id]", "regex": "^/api/community/bots/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/bots/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/bots/[id]/approval-requests/[requestId]/approve", "regex": "^/api/community/bots/([^/]+?)/approval\\-requests/([^/]+?)/approve(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPrequestId": "nxtPrequestId" }, "namedRegex": "^/api/community/bots/(?<nxtPid>[^/]+?)/approval\\-requests/(?<nxtPrequestId>[^/]+?)/approve(?:/)?$" }, { "page": "/api/community/bots/[id]/approval-requests/[requestId]/deny", "regex": "^/api/community/bots/([^/]+?)/approval\\-requests/([^/]+?)/deny(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPrequestId": "nxtPrequestId" }, "namedRegex": "^/api/community/bots/(?<nxtPid>[^/]+?)/approval\\-requests/(?<nxtPrequestId>[^/]+?)/deny(?:/)?$" }, { "page": "/api/community/bots/[id]/audit-log", "regex": "^/api/community/bots/([^/]+?)/audit\\-log(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/bots/(?<nxtPid>[^/]+?)/audit\\-log(?:/)?$" }, { "page": "/api/community/bots/[id]/avatar", "regex": "^/api/community/bots/([^/]+?)/avatar(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/bots/(?<nxtPid>[^/]+?)/avatar(?:/)?$" }, { "page": "/api/community/bots/[id]/reset-session", "regex": "^/api/community/bots/([^/]+?)/reset\\-session(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/bots/(?<nxtPid>[^/]+?)/reset\\-session(?:/)?$" }, { "page": "/api/community/channels/[id]", "regex": "^/api/community/channels/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/channels/[id]/attachments", "regex": "^/api/community/channels/([^/]+?)/attachments(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/attachments(?:/)?$" }, { "page": "/api/community/channels/[id]/attachments/[attachmentId]", "regex": "^/api/community/channels/([^/]+?)/attachments/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPattachmentId": "nxtPattachmentId" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/attachments/(?<nxtPattachmentId>[^/]+?)(?:/)?$" }, { "page": "/api/community/channels/[id]/members", "regex": "^/api/community/channels/([^/]+?)/members(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/members(?:/)?$" }, { "page": "/api/community/channels/[id]/members/[userId]", "regex": "^/api/community/channels/([^/]+?)/members/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/members/(?<nxtPuserId>[^/]+?)(?:/)?$" }, { "page": "/api/community/channels/[id]/messages", "regex": "^/api/community/channels/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/messages(?:/)?$" }, { "page": "/api/community/channels/[id]/messages/seq/[seq]", "regex": "^/api/community/channels/([^/]+?)/messages/seq/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPseq": "nxtPseq" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/messages/seq/(?<nxtPseq>[^/]+?)(?:/)?$" }, { "page": "/api/community/channels/[id]/messages/tags", "regex": "^/api/community/channels/([^/]+?)/messages/tags(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/messages/tags(?:/)?$" }, { "page": "/api/community/channels/[id]/participants", "regex": "^/api/community/channels/([^/]+?)/participants(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/participants(?:/)?$" }, { "page": "/api/community/channels/[id]/participants/[userId]", "regex": "^/api/community/channels/([^/]+?)/participants/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/participants/(?<nxtPuserId>[^/]+?)(?:/)?$" }, { "page": "/api/community/channels/[id]/pins", "regex": "^/api/community/channels/([^/]+?)/pins(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/pins(?:/)?$" }, { "page": "/api/community/channels/[id]/pins/[messageId]", "regex": "^/api/community/channels/([^/]+?)/pins/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmessageId": "nxtPmessageId" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/pins/(?<nxtPmessageId>[^/]+?)(?:/)?$" }, { "page": "/api/community/channels/[id]/read", "regex": "^/api/community/channels/([^/]+?)/read(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/read(?:/)?$" }, { "page": "/api/community/channels/[id]/read-state", "regex": "^/api/community/channels/([^/]+?)/read\\-state(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/read\\-state(?:/)?$" }, { "page": "/api/community/channels/[id]/threads", "regex": "^/api/community/channels/([^/]+?)/threads(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/threads(?:/)?$" }, { "page": "/api/community/channels/[id]/upload", "regex": "^/api/community/channels/([^/]+?)/upload(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/channels/(?<nxtPid>[^/]+?)/upload(?:/)?$" }, { "page": "/api/community/friends/[id]", "regex": "^/api/community/friends/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/friends/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/friends/[id]/accept", "regex": "^/api/community/friends/([^/]+?)/accept(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/friends/(?<nxtPid>[^/]+?)/accept(?:/)?$" }, { "page": "/api/community/friends/[id]/owner-decision", "regex": "^/api/community/friends/([^/]+?)/owner\\-decision(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/friends/(?<nxtPid>[^/]+?)/owner\\-decision(?:/)?$" }, { "page": "/api/community/friends/[id]/reject", "regex": "^/api/community/friends/([^/]+?)/reject(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/friends/(?<nxtPid>[^/]+?)/reject(?:/)?$" }, { "page": "/api/community/invites/[token]", "regex": "^/api/community/invites/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/api/community/invites/(?<nxtPtoken>[^/]+?)(?:/)?$" }, { "page": "/api/community/invites/[token]/info", "regex": "^/api/community/invites/([^/]+?)/info(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/api/community/invites/(?<nxtPtoken>[^/]+?)/info(?:/)?$" }, { "page": "/api/community/invites/[token]/join", "regex": "^/api/community/invites/([^/]+?)/join(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/api/community/invites/(?<nxtPtoken>[^/]+?)/join(?:/)?$" }, { "page": "/api/community/machines/[id]", "regex": "^/api/community/machines/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/machines/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/machines/[id]/reconnect", "regex": "^/api/community/machines/([^/]+?)/reconnect(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/machines/(?<nxtPid>[^/]+?)/reconnect(?:/)?$" }, { "page": "/api/community/machines/[id]/reset-agents", "regex": "^/api/community/machines/([^/]+?)/reset\\-agents(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/machines/(?<nxtPid>[^/]+?)/reset\\-agents(?:/)?$" }, { "page": "/api/community/messages/[id]", "regex": "^/api/community/messages/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/messages/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/messages/[id]/marks", "regex": "^/api/community/messages/([^/]+?)/marks(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/messages/(?<nxtPid>[^/]+?)/marks(?:/)?$" }, { "page": "/api/community/messages/[id]/reactions/[emoji]", "regex": "^/api/community/messages/([^/]+?)/reactions/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPemoji": "nxtPemoji" }, "namedRegex": "^/api/community/messages/(?<nxtPid>[^/]+?)/reactions/(?<nxtPemoji>[^/]+?)(?:/)?$" }, { "page": "/api/community/messages/[id]/tags", "regex": "^/api/community/messages/([^/]+?)/tags(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/messages/(?<nxtPid>[^/]+?)/tags(?:/)?$" }, { "page": "/api/community/servers/[id]", "regex": "^/api/community/servers/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/servers/[id]/audit-log", "regex": "^/api/community/servers/([^/]+?)/audit\\-log(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/audit\\-log(?:/)?$" }, { "page": "/api/community/servers/[id]/bots", "regex": "^/api/community/servers/([^/]+?)/bots(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/bots(?:/)?$" }, { "page": "/api/community/servers/[id]/categories", "regex": "^/api/community/servers/([^/]+?)/categories(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/categories(?:/)?$" }, { "page": "/api/community/servers/[id]/categories/reorder", "regex": "^/api/community/servers/([^/]+?)/categories/reorder(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/categories/reorder(?:/)?$" }, { "page": "/api/community/servers/[id]/categories/[catId]", "regex": "^/api/community/servers/([^/]+?)/categories/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPcatId": "nxtPcatId" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/categories/(?<nxtPcatId>[^/]+?)(?:/)?$" }, { "page": "/api/community/servers/[id]/channels", "regex": "^/api/community/servers/([^/]+?)/channels(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/channels(?:/)?$" }, { "page": "/api/community/servers/[id]/channels/reorder", "regex": "^/api/community/servers/([^/]+?)/channels/reorder(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/channels/reorder(?:/)?$" }, { "page": "/api/community/servers/[id]/icon", "regex": "^/api/community/servers/([^/]+?)/icon(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/icon(?:/)?$" }, { "page": "/api/community/servers/[id]/invites", "regex": "^/api/community/servers/([^/]+?)/invites(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/invites(?:/)?$" }, { "page": "/api/community/servers/[id]/leave", "regex": "^/api/community/servers/([^/]+?)/leave(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/leave(?:/)?$" }, { "page": "/api/community/servers/[id]/members", "regex": "^/api/community/servers/([^/]+?)/members(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/members(?:/)?$" }, { "page": "/api/community/servers/[id]/members/search", "regex": "^/api/community/servers/([^/]+?)/members/search(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/members/search(?:/)?$" }, { "page": "/api/community/servers/[id]/members/[memberId]", "regex": "^/api/community/servers/([^/]+?)/members/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmemberId": "nxtPmemberId" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/members/(?<nxtPmemberId>[^/]+?)(?:/)?$" }, { "page": "/api/community/servers/[id]/presence", "regex": "^/api/community/servers/([^/]+?)/presence(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/presence(?:/)?$" }, { "page": "/api/community/servers/[id]/unreads", "regex": "^/api/community/servers/([^/]+?)/unreads(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/servers/(?<nxtPid>[^/]+?)/unreads(?:/)?$" }, { "page": "/api/community/users/me/inbox/mentions/[id]", "regex": "^/api/community/users/me/inbox/mentions/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/users/me/inbox/mentions/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/users/me/notifications/channel/[id]", "regex": "^/api/community/users/me/notifications/channel/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/users/me/notifications/channel/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/users/me/notifications/server/[id]", "regex": "^/api/community/users/me/notifications/server/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/users/me/notifications/server/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/users/me/server-folders/[id]", "regex": "^/api/community/users/me/server\\-folders/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/community/users/me/server\\-folders/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/community/users/[userId]/avatar", "regex": "^/api/community/users/([^/]+?)/avatar(?:/)?$", "routeKeys": { "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/community/users/(?<nxtPuserId>[^/]+?)/avatar(?:/)?$" }, { "page": "/api/community/users/[userId]/block", "regex": "^/api/community/users/([^/]+?)/block(?:/)?$", "routeKeys": { "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/community/users/(?<nxtPuserId>[^/]+?)/block(?:/)?$" }, { "page": "/api/community/users/[userId]/profile", "regex": "^/api/community/users/([^/]+?)/profile(?:/)?$", "routeKeys": { "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/community/users/(?<nxtPuserId>[^/]+?)/profile(?:/)?$" }, { "page": "/api/community/users/[userId]/unblock", "regex": "^/api/community/users/([^/]+?)/unblock(?:/)?$", "routeKeys": { "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/community/users/(?<nxtPuserId>[^/]+?)/unblock(?:/)?$" }, { "page": "/api/conversations/[id]", "regex": "^/api/conversations/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/conversations/[id]/active-task", "regex": "^/api/conversations/([^/]+?)/active\\-task(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/active\\-task(?:/)?$" }, { "page": "/api/conversations/[id]/init", "regex": "^/api/conversations/([^/]+?)/init(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/init(?:/)?$" }, { "page": "/api/conversations/[id]/messages", "regex": "^/api/conversations/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/messages(?:/)?$" }, { "page": "/api/conversations/[id]/threads", "regex": "^/api/conversations/([^/]+?)/threads(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/threads(?:/)?$" }, { "page": "/api/daemon/conversations/[id]/messages", "regex": "^/api/daemon/conversations/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/daemon/conversations/(?<nxtPid>[^/]+?)/messages(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/complete", "regex": "^/api/daemon/tasks/([^/]+?)/complete(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/complete(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/fail", "regex": "^/api/daemon/tasks/([^/]+?)/fail(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/fail(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/messages", "regex": "^/api/daemon/tasks/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/messages(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/progress", "regex": "^/api/daemon/tasks/([^/]+?)/progress(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/progress(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/start", "regex": "^/api/daemon/tasks/([^/]+?)/start(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/start(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/status", "regex": "^/api/daemon/tasks/([^/]+?)/status(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/status(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/supersede", "regex": "^/api/daemon/tasks/([^/]+?)/supersede(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/supersede(?:/)?$" }, { "page": "/api/desktop/update/[target]/[arch]/[current_version]", "regex": "^/api/desktop/update/([^/]+?)/([^/]+?)/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtarget": "nxtPtarget", "nxtParch": "nxtParch", "nxtPcurrent_version": "nxtPcurrent_version" }, "namedRegex": "^/api/desktop/update/(?<nxtPtarget>[^/]+?)/(?<nxtParch>[^/]+?)/(?<nxtPcurrent_version>[^/]+?)(?:/)?$" }, { "page": "/api/email/[id]", "regex": "^/api/email/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/email/[id]/attachment/[index]", "regex": "^/api/email/([^/]+?)/attachment/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPindex": "nxtPindex" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/attachment/(?<nxtPindex>[^/]+?)(?:/)?$" }, { "page": "/api/email/[id]/body", "regex": "^/api/email/([^/]+?)/body(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/body(?:/)?$" }, { "page": "/api/email/[id]/raw", "regex": "^/api/email/([^/]+?)/raw(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/raw(?:/)?$" }, { "page": "/api/email/[id]/thread", "regex": "^/api/email/([^/]+?)/thread(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/thread(?:/)?$" }, { "page": "/api/email/[id]/trust", "regex": "^/api/email/([^/]+?)/trust(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/trust(?:/)?$" }, { "page": "/api/flags/[messageId]", "regex": "^/api/flags/([^/]+?)(?:/)?$", "routeKeys": { "nxtPmessageId": "nxtPmessageId" }, "namedRegex": "^/api/flags/(?<nxtPmessageId>[^/]+?)(?:/)?$" }, { "page": "/api/invite/[token]", "regex": "^/api/invite/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/api/invite/(?<nxtPtoken>[^/]+?)(?:/)?$" }, { "page": "/api/issues/[id]", "regex": "^/api/issues/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/issues/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/issues/[id]/comments", "regex": "^/api/issues/([^/]+?)/comments(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/issues/(?<nxtPid>[^/]+?)/comments(?:/)?$" }, { "page": "/api/machine-tokens/[id]", "regex": "^/api/machine\\-tokens/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/machine\\-tokens/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/runtimes/[runtimeId]/rescan", "regex": "^/api/runtimes/([^/]+?)/rescan(?:/)?$", "routeKeys": { "nxtPruntimeId": "nxtPruntimeId" }, "namedRegex": "^/api/runtimes/(?<nxtPruntimeId>[^/]+?)/rescan(?:/)?$" }, { "page": "/api/runtimes/[runtimeId]/update", "regex": "^/api/runtimes/([^/]+?)/update(?:/)?$", "routeKeys": { "nxtPruntimeId": "nxtPruntimeId" }, "namedRegex": "^/api/runtimes/(?<nxtPruntimeId>[^/]+?)/update(?:/)?$" }, { "page": "/api/tasks/[id]", "regex": "^/api/tasks/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/tasks/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/tasks/[id]/messages", "regex": "^/api/tasks/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/tasks/(?<nxtPid>[^/]+?)/messages(?:/)?$" }, { "page": "/api/tasks/[id]/retry", "regex": "^/api/tasks/([^/]+?)/retry(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/tasks/(?<nxtPid>[^/]+?)/retry(?:/)?$" }, { "page": "/api/traces/[traceId]", "regex": "^/api/traces/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtraceId": "nxtPtraceId" }, "namedRegex": "^/api/traces/(?<nxtPtraceId>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]", "regex": "^/api/workspaces/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]/invites", "regex": "^/api/workspaces/([^/]+?)/invites(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/invites(?:/)?$" }, { "page": "/api/workspaces/[id]/invites/[inviteId]", "regex": "^/api/workspaces/([^/]+?)/invites/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPinviteId": "nxtPinviteId" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/invites/(?<nxtPinviteId>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]/members", "regex": "^/api/workspaces/([^/]+?)/members(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/members(?:/)?$" }, { "page": "/api/workspaces/[id]/members/[memberId]", "regex": "^/api/workspaces/([^/]+?)/members/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmemberId": "nxtPmemberId" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/members/(?<nxtPmemberId>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]/onboarded", "regex": "^/api/workspaces/([^/]+?)/onboarded(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/onboarded(?:/)?$" }, { "page": "/api/workspaces/[id]/overview", "regex": "^/api/workspaces/([^/]+?)/overview(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/overview(?:/)?$" }, { "page": "/blog/[slug]", "regex": "^/blog/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/blog/(?<nxtPslug>[^/]+?)(?:/)?$" }, { "page": "/c/channels/[serverId]", "regex": "^/c/channels/([^/]+?)(?:/)?$", "routeKeys": { "nxtPserverId": "nxtPserverId" }, "namedRegex": "^/c/channels/(?<nxtPserverId>[^/]+?)(?:/)?$" }, { "page": "/c/channels/[serverId]/settings", "regex": "^/c/channels/([^/]+?)/settings(?:/)?$", "routeKeys": { "nxtPserverId": "nxtPserverId" }, "namedRegex": "^/c/channels/(?<nxtPserverId>[^/]+?)/settings(?:/)?$" }, { "page": "/c/channels/[serverId]/[channelId]", "regex": "^/c/channels/([^/]+?)/([^/]+?)(?:/)?$", "routeKeys": { "nxtPserverId": "nxtPserverId", "nxtPchannelId": "nxtPchannelId" }, "namedRegex": "^/c/channels/(?<nxtPserverId>[^/]+?)/(?<nxtPchannelId>[^/]+?)(?:/)?$" }, { "page": "/c/invite/[token]", "regex": "^/c/invite/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/c/invite/(?<nxtPtoken>[^/]+?)(?:/)?$" }, { "page": "/c/me/[dmId]", "regex": "^/c/me/([^/]+?)(?:/)?$", "routeKeys": { "nxtPdmId": "nxtPdmId" }, "namedRegex": "^/c/me/(?<nxtPdmId>[^/]+?)(?:/)?$" }, { "page": "/invite/[token]", "regex": "^/invite/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/invite/(?<nxtPtoken>[^/]+?)(?:/)?$" }, { "page": "/templates/[id]", "regex": "^/templates/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/templates/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/templates/[id]/json", "regex": "^/templates/([^/]+?)/json(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/templates/(?<nxtPid>[^/]+?)/json(?:/)?$" }, { "page": "/w/[slug]", "regex": "^/w/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/agents", "regex": "^/w/([^/]+?)/agents(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents(?:/)?$" }, { "page": "/w/[slug]/agents/new", "regex": "^/w/([^/]+?)/agents/new(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/new(?:/)?$" }, { "page": "/w/[slug]/agents/[id]", "regex": "^/w/([^/]+?)/agents/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/activity", "regex": "^/w/([^/]+?)/agents/([^/]+?)/activity(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/activity(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/chat", "regex": "^/w/([^/]+?)/agents/([^/]+?)/chat(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/chat(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/chat/[convId]", "regex": "^/w/([^/]+?)/agents/([^/]+?)/chat/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid", "nxtPconvId": "nxtPconvId" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/chat/(?<nxtPconvId>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/email", "regex": "^/w/([^/]+?)/agents/([^/]+?)/email(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/email(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/files", "regex": "^/w/([^/]+?)/agents/([^/]+?)/files(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/files(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/meetings", "regex": "^/w/([^/]+?)/agents/([^/]+?)/meetings(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/meetings(?:/)?$" }, { "page": "/w/[slug]/calendar", "regex": "^/w/([^/]+?)/calendar(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/calendar(?:/)?$" }, { "page": "/w/[slug]/flags", "regex": "^/w/([^/]+?)/flags(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/flags(?:/)?$" }, { "page": "/w/[slug]/help/email-setup", "regex": "^/w/([^/]+?)/help/email\\-setup(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/help/email\\-setup(?:/)?$" }, { "page": "/w/[slug]/home", "regex": "^/w/([^/]+?)/home(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/home(?:/)?$" }, { "page": "/w/[slug]/issues", "regex": "^/w/([^/]+?)/issues(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/issues(?:/)?$" }, { "page": "/w/[slug]/runtimes", "regex": "^/w/([^/]+?)/runtimes(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/runtimes(?:/)?$" }, { "page": "/w/[slug]/settings", "regex": "^/w/([^/]+?)/settings(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/settings(?:/)?$" }, { "page": "/w/[slug]/traces", "regex": "^/w/([^/]+?)/traces(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/traces(?:/)?$" }, { "page": "/w/[slug]/traces/[traceId]", "regex": "^/w/([^/]+?)/traces/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPtraceId": "nxtPtraceId" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/traces/(?<nxtPtraceId>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/unread", "regex": "^/w/([^/]+?)/unread(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/unread(?:/)?$" }], "data": { "static": [], "dynamic": [] } }, "locales": [] };
|
|
30151
30159
|
var ConfigHeaders = [];
|
|
30152
|
-
var PrerenderManifest = { "version": 4, "routes": { "/_global-error": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 9280, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/_global-error", "dataRoute": "/_global-error.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/_not-found": { "initialStatus": 404, "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 28766, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/_not-found", "dataRoute": "/_not-found.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/blog": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 36349, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/blog", "dataRoute": "/blog.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/blog/feed.xml": { "initialHeaders": { "content-type": "application/rss+xml", "x-next-cache-tags": "_N_T_/layout,_N_T_/blog/layout,_N_T_/blog/feed.xml/layout,_N_T_/blog/feed.xml/route,_N_T_/blog/feed.xml" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/blog/feed.xml", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 29591, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c", "dataRoute": "/c.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c/me": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 34010, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c/me", "dataRoute": "/c/me.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c/me/bots": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 35458, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c/me/bots", "dataRoute": "/c/me/bots.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c/me/machines": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 34964, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c/me/machines", "dataRoute": "/c/me/machines.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/device": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 26386, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/device", "dataRoute": "/device.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/favicon.ico": { "initialHeaders": { "cache-control": "public, max-age=0, must-revalidate", "content-type": "image/x-icon", "x-next-cache-tags": "_N_T_/layout,_N_T_/favicon.ico/layout,_N_T_/favicon.ico/route,_N_T_/favicon.ico" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/favicon.ico", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/llms.txt": { "initialHeaders": { "cache-control": "public, max-age=3600", "content-type": "text/markdown; charset=utf-8", "x-next-cache-tags": "_N_T_/layout,_N_T_/llms.txt/layout,_N_T_/llms.txt/route,_N_T_/llms.txt" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/llms.txt", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/privacy": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 46989, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/privacy", "dataRoute": "/privacy.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/robots.txt": { "initialHeaders": { "cache-control": "public, max-age=3600", "content-type": "text/plain; charset=utf-8", "x-next-cache-tags": "_N_T_/layout,_N_T_/robots.txt/layout,_N_T_/robots.txt/route,_N_T_/robots.txt" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/robots.txt", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/sitemap.xml": { "initialHeaders": { "cache-control": "public, max-age=0, must-revalidate", "content-type": "application/xml", "x-next-cache-tags": "_N_T_/layout,_N_T_/sitemap.xml/layout,_N_T_/sitemap.xml/route,_N_T_/sitemap.xml" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/sitemap.xml", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] } }, "dynamicRoutes": { "/blog/[slug]": { "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "routeRegex": "^/blog/([^/]+?)(?:/)?$", "dataRoute": "/blog/[slug].rsc", "fallback": false, "fallbackRootParams": [], "fallbackRouteParams": [], "dataRouteRegex": "^/blog/([^/]+?)\\.rsc$", "prefetchDataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] } }, "notFoundRoutes": [], "preview": { "previewModeId": "
|
|
30153
|
-
var MiddlewareManifest = { "version": 3, "middleware": { "/": { "files": ["server/edge/chunks/_1btudrk._.js", "server/edge/chunks/06g4_next_dist_esm_build_templates_edge-wrapper_1_5fods.js", "server/edge/chunks/node_modules__pnpm_0c4i20t._.js", "server/edge/chunks/0qgv_@better-auth_kysely-adapter_dist_index_mjs_1q-4i3p._.js", "server/edge/chunks/[root-of-the-server]__1s36exl._.js", "server/edge/chunks/1vu0_kysely_dist_0hfm4v4._.js", "server/edge/chunks/[root-of-the-server]__1acb3gl._.js", "server/edge/chunks/10gs_@better-auth_core_dist_1cb3xbt._.js", "server/edge/chunks/06g4_next_dist_esm_build_templates_edge-wrapper_0azrzeb.js"], "name": "middleware", "page": "/", "entrypoint": "server/edge/chunks/06g4_next_dist_esm_build_templates_edge-wrapper_0azrzeb.js", "matchers": [{ "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next|favicon\\.ico|.*\\..*).*))(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$", "originalSource": "/((?!_next|favicon\\.ico|.*\\..*).*)" }], "wasm": [], "assets": [], "env": { "__NEXT_BUILD_ID": "
|
|
30160
|
+
var PrerenderManifest = { "version": 4, "routes": { "/_global-error": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 9280, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/_global-error", "dataRoute": "/_global-error.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/_not-found": { "initialStatus": 404, "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 28766, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/_not-found", "dataRoute": "/_not-found.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/blog": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 36349, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/blog", "dataRoute": "/blog.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/blog/feed.xml": { "initialHeaders": { "content-type": "application/rss+xml", "x-next-cache-tags": "_N_T_/layout,_N_T_/blog/layout,_N_T_/blog/feed.xml/layout,_N_T_/blog/feed.xml/route,_N_T_/blog/feed.xml" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/blog/feed.xml", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 29591, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c", "dataRoute": "/c.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c/me": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 34010, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c/me", "dataRoute": "/c/me.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c/me/bots": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 35458, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c/me/bots", "dataRoute": "/c/me/bots.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/c/me/machines": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 34964, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/c/me/machines", "dataRoute": "/c/me/machines.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/device": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 26386, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/device", "dataRoute": "/device.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/favicon.ico": { "initialHeaders": { "cache-control": "public, max-age=0, must-revalidate", "content-type": "image/x-icon", "x-next-cache-tags": "_N_T_/layout,_N_T_/favicon.ico/layout,_N_T_/favicon.ico/route,_N_T_/favicon.ico" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/favicon.ico", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/llms.txt": { "initialHeaders": { "cache-control": "public, max-age=3600", "content-type": "text/markdown; charset=utf-8", "x-next-cache-tags": "_N_T_/layout,_N_T_/llms.txt/layout,_N_T_/llms.txt/route,_N_T_/llms.txt" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/llms.txt", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/privacy": { "routeType": "page", "response": "complete", "compute": "static", "htmlSize": 46989, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/privacy", "dataRoute": "/privacy.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/robots.txt": { "initialHeaders": { "cache-control": "public, max-age=3600", "content-type": "text/plain; charset=utf-8", "x-next-cache-tags": "_N_T_/layout,_N_T_/robots.txt/layout,_N_T_/robots.txt/route,_N_T_/robots.txt" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/robots.txt", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/sitemap.xml": { "initialHeaders": { "cache-control": "public, max-age=0, must-revalidate", "content-type": "application/xml", "x-next-cache-tags": "_N_T_/layout,_N_T_/sitemap.xml/layout,_N_T_/sitemap.xml/route,_N_T_/sitemap.xml" }, "routeType": "route", "response": "complete", "compute": "static", "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/sitemap.xml", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] } }, "dynamicRoutes": { "/blog/[slug]": { "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "routeRegex": "^/blog/([^/]+?)(?:/)?$", "dataRoute": "/blog/[slug].rsc", "fallback": false, "fallbackRootParams": [], "fallbackRouteParams": [], "dataRouteRegex": "^/blog/([^/]+?)\\.rsc$", "prefetchDataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] } }, "notFoundRoutes": [], "preview": { "previewModeId": "19e13b0bea4b47499a2b80dc4d667c81", "previewModeSigningKey": "c34a863d7c6442e4c21b3e8b66223f0d02aff3604746d5c37bf85975681952fc", "previewModeEncryptionKey": "63452b155fb6234330b7332e18a87b663149c631a919cd936ea5df5f7d688f8d" } };
|
|
30161
|
+
var MiddlewareManifest = { "version": 3, "middleware": { "/": { "files": ["server/edge/chunks/_1btudrk._.js", "server/edge/chunks/06g4_next_dist_esm_build_templates_edge-wrapper_1_5fods.js", "server/edge/chunks/node_modules__pnpm_0c4i20t._.js", "server/edge/chunks/0qgv_@better-auth_kysely-adapter_dist_index_mjs_1q-4i3p._.js", "server/edge/chunks/[root-of-the-server]__1s36exl._.js", "server/edge/chunks/1vu0_kysely_dist_0hfm4v4._.js", "server/edge/chunks/[root-of-the-server]__1acb3gl._.js", "server/edge/chunks/10gs_@better-auth_core_dist_1cb3xbt._.js", "server/edge/chunks/06g4_next_dist_esm_build_templates_edge-wrapper_0azrzeb.js"], "name": "middleware", "page": "/", "entrypoint": "server/edge/chunks/06g4_next_dist_esm_build_templates_edge-wrapper_0azrzeb.js", "matchers": [{ "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next|favicon\\.ico|.*\\..*).*))(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$", "originalSource": "/((?!_next|favicon\\.ico|.*\\..*).*)" }], "wasm": [], "assets": [], "env": { "__NEXT_BUILD_ID": "QAHTJJ2088SDjU6s2f6r7", "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "NQFu+arOEXb0RvkN5isJM4LsaogwP+KJK1bPDluvSZ4=", "__NEXT_PREVIEW_MODE_ID": "19e13b0bea4b47499a2b80dc4d667c81", "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "63452b155fb6234330b7332e18a87b663149c631a919cd936ea5df5f7d688f8d", "__NEXT_PREVIEW_MODE_SIGNING_KEY": "c34a863d7c6442e4c21b3e8b66223f0d02aff3604746d5c37bf85975681952fc" } } }, "sortedMiddleware": ["/"], "functions": {} };
|
|
30154
30162
|
var AppPathRoutesManifest = { "/(app)/invite/[token]/page": "/invite/[token]", "/(app)/studio/new/page": "/studio/new", "/(app)/w/[slug]/agents/[id]/activity/page": "/w/[slug]/agents/[id]/activity", "/(app)/w/[slug]/agents/[id]/chat/[convId]/page": "/w/[slug]/agents/[id]/chat/[convId]", "/(app)/w/[slug]/agents/[id]/chat/page": "/w/[slug]/agents/[id]/chat", "/(app)/w/[slug]/agents/[id]/email/page": "/w/[slug]/agents/[id]/email", "/(app)/w/[slug]/agents/[id]/files/page": "/w/[slug]/agents/[id]/files", "/(app)/w/[slug]/agents/[id]/meetings/page": "/w/[slug]/agents/[id]/meetings", "/(app)/w/[slug]/agents/[id]/page": "/w/[slug]/agents/[id]", "/(app)/w/[slug]/agents/new/page": "/w/[slug]/agents/new", "/(app)/w/[slug]/agents/page": "/w/[slug]/agents", "/(app)/w/[slug]/calendar/page": "/w/[slug]/calendar", "/(app)/w/[slug]/flags/page": "/w/[slug]/flags", "/(app)/w/[slug]/help/email-setup/page": "/w/[slug]/help/email-setup", "/(app)/w/[slug]/home/page": "/w/[slug]/home", "/(app)/w/[slug]/issues/page": "/w/[slug]/issues", "/(app)/w/[slug]/page": "/w/[slug]", "/(app)/w/[slug]/runtimes/page": "/w/[slug]/runtimes", "/(app)/w/[slug]/settings/page": "/w/[slug]/settings", "/(app)/w/[slug]/traces/[traceId]/page": "/w/[slug]/traces/[traceId]", "/(app)/w/[slug]/traces/page": "/w/[slug]/traces", "/(app)/w/[slug]/unread/page": "/w/[slug]/unread", "/(app)/workspaces/page": "/workspaces", "/(auth)/sign-in/page": "/sign-in", "/.well-known/apple-app-site-association/route": "/.well-known/apple-app-site-association", "/.well-known/assetlinks.json/route": "/.well-known/assetlinks.json", "/_global-error/page": "/_global-error", "/_not-found/page": "/_not-found", "/api/agent-links/[id]/route": "/api/agent-links/[id]", "/api/agent-links/route": "/api/agent-links", "/api/agents/[id]/access/[userId]/route": "/api/agents/[id]/access/[userId]", "/api/agents/[id]/access/route": "/api/agents/[id]/access", "/api/agents/[id]/active-tasks/route": "/api/agents/[id]/active-tasks", "/api/agents/[id]/activity/route": "/api/agents/[id]/activity", "/api/agents/[id]/chat-init/route": "/api/agents/[id]/chat-init", "/api/agents/[id]/conversation/route": "/api/agents/[id]/conversation", "/api/agents/[id]/conversations/route": "/api/agents/[id]/conversations", "/api/agents/[id]/email-accounts/[accountId]/route": "/api/agents/[id]/email-accounts/[accountId]", "/api/agents/[id]/email-accounts/[accountId]/sync/route": "/api/agents/[id]/email-accounts/[accountId]/sync", "/api/agents/[id]/email-accounts/[accountId]/test/route": "/api/agents/[id]/email-accounts/[accountId]/test", "/api/agents/[id]/email-accounts/route": "/api/agents/[id]/email-accounts", "/api/agents/[id]/meetings/[meetingId]/approve/route": "/api/agents/[id]/meetings/[meetingId]/approve", "/api/agents/[id]/meetings/[meetingId]/route": "/api/agents/[id]/meetings/[meetingId]", "/api/agents/[id]/meetings/[meetingId]/stop/route": "/api/agents/[id]/meetings/[meetingId]/stop", "/api/agents/[id]/meetings/route": "/api/agents/[id]/meetings", "/api/agents/[id]/pin/route": "/api/agents/[id]/pin", "/api/agents/[id]/route": "/api/agents/[id]", "/api/agents/[id]/skills/route": "/api/agents/[id]/skills", "/api/agents/[id]/threads/route": "/api/agents/[id]/threads", "/api/agents/[id]/whitelist/[whitelistId]/route": "/api/agents/[id]/whitelist/[whitelistId]", "/api/agents/[id]/whitelist/route": "/api/agents/[id]/whitelist", "/api/agents/[id]/workspace/browse/route": "/api/agents/[id]/workspace/browse", "/api/agents/active-task-counts/route": "/api/agents/active-task-counts", "/api/agents/active-tasks/route": "/api/agents/active-tasks", "/api/agents/pins/reorder/route": "/api/agents/pins/reorder", "/api/agents/pins/route": "/api/agents/pins", "/api/agents/recruit/route": "/api/agents/recruit", "/api/agents/route": "/api/agents", "/api/agents/sidebar/reorder/route": "/api/agents/sidebar/reorder", "/api/artifacts/[id]/content/route": "/api/artifacts/[id]/content", "/api/artifacts/[id]/route": "/api/artifacts/[id]", "/api/artifacts/[id]/thumbnail/route": "/api/artifacts/[id]/thumbnail", "/api/artifacts/route": "/api/artifacts", "/api/artifacts/upload/route": "/api/artifacts/upload", "/api/auth/[...all]/route": "/api/auth/[...all]", "/api/calendar/[id]/route": "/api/calendar/[id]", "/api/calendar/route": "/api/calendar", "/api/channels/[id]/route": "/api/channels/[id]", "/api/channels/reorder/route": "/api/channels/reorder", "/api/channels/route": "/api/channels", "/api/cli/latest-version/route": "/api/cli/latest-version", "/api/community/bots/[id]/approval-requests/[requestId]/approve/route": "/api/community/bots/[id]/approval-requests/[requestId]/approve", "/api/community/bots/[id]/approval-requests/[requestId]/deny/route": "/api/community/bots/[id]/approval-requests/[requestId]/deny", "/api/community/bots/[id]/audit-log/route": "/api/community/bots/[id]/audit-log", "/api/community/bots/[id]/avatar/route": "/api/community/bots/[id]/avatar", "/api/community/bots/[id]/reset-session/route": "/api/community/bots/[id]/reset-session", "/api/community/bots/[id]/route": "/api/community/bots/[id]", "/api/community/bots/me/nap/route": "/api/community/bots/me/nap", "/api/community/bots/route": "/api/community/bots", "/api/community/channels/[id]/attachments/[attachmentId]/route": "/api/community/channels/[id]/attachments/[attachmentId]", "/api/community/channels/[id]/attachments/route": "/api/community/channels/[id]/attachments", "/api/community/channels/[id]/members/[userId]/route": "/api/community/channels/[id]/members/[userId]", "/api/community/channels/[id]/members/route": "/api/community/channels/[id]/members", "/api/community/channels/[id]/messages/route": "/api/community/channels/[id]/messages", "/api/community/channels/[id]/messages/seq/[seq]/route": "/api/community/channels/[id]/messages/seq/[seq]", "/api/community/channels/[id]/messages/tags/route": "/api/community/channels/[id]/messages/tags", "/api/community/channels/[id]/participants/[userId]/route": "/api/community/channels/[id]/participants/[userId]", "/api/community/channels/[id]/participants/route": "/api/community/channels/[id]/participants", "/api/community/channels/[id]/pins/[messageId]/route": "/api/community/channels/[id]/pins/[messageId]", "/api/community/channels/[id]/pins/route": "/api/community/channels/[id]/pins", "/api/community/channels/[id]/read-state/route": "/api/community/channels/[id]/read-state", "/api/community/channels/[id]/read/route": "/api/community/channels/[id]/read", "/api/community/channels/[id]/route": "/api/community/channels/[id]", "/api/community/channels/[id]/threads/route": "/api/community/channels/[id]/threads", "/api/community/channels/[id]/upload/route": "/api/community/channels/[id]/upload", "/api/community/channels/participants/batch/route": "/api/community/channels/participants/batch", "/api/community/channels/route": "/api/community/channels", "/api/community/daemon/activate/route": "/api/community/daemon/activate", "/api/community/daemon/bots/route": "/api/community/daemon/bots", "/api/community/daemon/enroll-agent/route": "/api/community/daemon/enroll-agent", "/api/community/daemon/resync-wakes/route": "/api/community/daemon/resync-wakes", "/api/community/friends/[id]/accept/route": "/api/community/friends/[id]/accept", "/api/community/friends/[id]/owner-decision/route": "/api/community/friends/[id]/owner-decision", "/api/community/friends/[id]/reject/route": "/api/community/friends/[id]/reject", "/api/community/friends/[id]/route": "/api/community/friends/[id]", "/api/community/friends/accepted/route": "/api/community/friends/accepted", "/api/community/friends/blocked/route": "/api/community/friends/blocked", "/api/community/friends/pending/route": "/api/community/friends/pending", "/api/community/friends/presence/route": "/api/community/friends/presence", "/api/community/friends/request/route": "/api/community/friends/request", "/api/community/invites/[token]/info/route": "/api/community/invites/[token]/info", "/api/community/invites/[token]/join/route": "/api/community/invites/[token]/join", "/api/community/invites/[token]/route": "/api/community/invites/[token]", "/api/community/machines/[id]/reconnect/route": "/api/community/machines/[id]/reconnect", "/api/community/machines/[id]/reset-agents/route": "/api/community/machines/[id]/reset-agents", "/api/community/machines/[id]/route": "/api/community/machines/[id]", "/api/community/machines/pair/route": "/api/community/machines/pair", "/api/community/machines/route": "/api/community/machines", "/api/community/messages/[id]/marks/route": "/api/community/messages/[id]/marks", "/api/community/messages/[id]/reactions/[emoji]/route": "/api/community/messages/[id]/reactions/[emoji]", "/api/community/messages/[id]/route": "/api/community/messages/[id]", "/api/community/messages/[id]/tags/route": "/api/community/messages/[id]/tags", "/api/community/messages/batch/route": "/api/community/messages/batch", "/api/community/messages/search/route": "/api/community/messages/search", "/api/community/messages/tags/batch/route": "/api/community/messages/tags/batch", "/api/community/servers/[id]/audit-log/route": "/api/community/servers/[id]/audit-log", "/api/community/servers/[id]/bots/route": "/api/community/servers/[id]/bots", "/api/community/servers/[id]/categories/[catId]/route": "/api/community/servers/[id]/categories/[catId]", "/api/community/servers/[id]/categories/reorder/route": "/api/community/servers/[id]/categories/reorder", "/api/community/servers/[id]/categories/route": "/api/community/servers/[id]/categories", "/api/community/servers/[id]/channels/reorder/route": "/api/community/servers/[id]/channels/reorder", "/api/community/servers/[id]/channels/route": "/api/community/servers/[id]/channels", "/api/community/servers/[id]/icon/route": "/api/community/servers/[id]/icon", "/api/community/servers/[id]/invites/route": "/api/community/servers/[id]/invites", "/api/community/servers/[id]/leave/route": "/api/community/servers/[id]/leave", "/api/community/servers/[id]/members/[memberId]/route": "/api/community/servers/[id]/members/[memberId]", "/api/community/servers/[id]/members/route": "/api/community/servers/[id]/members", "/api/community/servers/[id]/members/search/route": "/api/community/servers/[id]/members/search", "/api/community/servers/[id]/presence/route": "/api/community/servers/[id]/presence", "/api/community/servers/[id]/route": "/api/community/servers/[id]", "/api/community/servers/[id]/unreads/route": "/api/community/servers/[id]/unreads", "/api/community/servers/channels/route": "/api/community/servers/channels", "/api/community/servers/reorder/route": "/api/community/servers/reorder", "/api/community/servers/route": "/api/community/servers", "/api/community/users/[userId]/avatar/route": "/api/community/users/[userId]/avatar", "/api/community/users/[userId]/block/route": "/api/community/users/[userId]/block", "/api/community/users/[userId]/profile/route": "/api/community/users/[userId]/profile", "/api/community/users/[userId]/unblock/route": "/api/community/users/[userId]/unblock", "/api/community/users/me/avatar/route": "/api/community/users/me/avatar", "/api/community/users/me/dms/route": "/api/community/users/me/dms", "/api/community/users/me/inbox/ack/route": "/api/community/users/me/inbox/ack", "/api/community/users/me/inbox/dms/read-all/route": "/api/community/users/me/inbox/dms/read-all", "/api/community/users/me/inbox/mentions/[id]/route": "/api/community/users/me/inbox/mentions/[id]", "/api/community/users/me/inbox/mentions/read-all/route": "/api/community/users/me/inbox/mentions/read-all", "/api/community/users/me/inbox/mentions/route": "/api/community/users/me/inbox/mentions", "/api/community/users/me/inbox/pull/route": "/api/community/users/me/inbox/pull", "/api/community/users/me/inbox/snapshot/route": "/api/community/users/me/inbox/snapshot", "/api/community/users/me/inbox/unreads/read-all/route": "/api/community/users/me/inbox/unreads/read-all", "/api/community/users/me/inbox/unreads/route": "/api/community/users/me/inbox/unreads", "/api/community/users/me/marks/route": "/api/community/users/me/marks", "/api/community/users/me/notifications/channel/[id]/route": "/api/community/users/me/notifications/channel/[id]", "/api/community/users/me/notifications/route": "/api/community/users/me/notifications", "/api/community/users/me/notifications/server/[id]/route": "/api/community/users/me/notifications/server/[id]", "/api/community/users/me/profile/route": "/api/community/users/me/profile", "/api/community/users/me/server-folders/[id]/route": "/api/community/users/me/server-folders/[id]", "/api/community/users/me/server-folders/reorder/route": "/api/community/users/me/server-folders/reorder", "/api/community/users/me/server-folders/route": "/api/community/users/me/server-folders", "/api/community/users/search/route": "/api/community/users/search", "/api/config/min-version/route": "/api/config/min-version", "/api/config/model-options/route": "/api/config/model-options", "/api/conversations/[id]/active-task/route": "/api/conversations/[id]/active-task", "/api/conversations/[id]/init/route": "/api/conversations/[id]/init", "/api/conversations/[id]/messages/route": "/api/conversations/[id]/messages", "/api/conversations/[id]/route": "/api/conversations/[id]", "/api/conversations/[id]/threads/route": "/api/conversations/[id]/threads", "/api/conversations/check-fresh/route": "/api/conversations/check-fresh", "/api/conversations/route": "/api/conversations", "/api/daemon/conversations/[id]/messages/route": "/api/daemon/conversations/[id]/messages", "/api/daemon/deregister/route": "/api/daemon/deregister", "/api/daemon/heartbeat/route": "/api/daemon/heartbeat", "/api/daemon/register/route": "/api/daemon/register", "/api/daemon/skills/sync/route": "/api/daemon/skills/sync", "/api/daemon/sweep/route": "/api/daemon/sweep", "/api/daemon/tasks/[taskId]/complete/route": "/api/daemon/tasks/[taskId]/complete", "/api/daemon/tasks/[taskId]/fail/route": "/api/daemon/tasks/[taskId]/fail", "/api/daemon/tasks/[taskId]/messages/route": "/api/daemon/tasks/[taskId]/messages", "/api/daemon/tasks/[taskId]/progress/route": "/api/daemon/tasks/[taskId]/progress", "/api/daemon/tasks/[taskId]/start/route": "/api/daemon/tasks/[taskId]/start", "/api/daemon/tasks/[taskId]/status/route": "/api/daemon/tasks/[taskId]/status", "/api/daemon/tasks/[taskId]/supersede/route": "/api/daemon/tasks/[taskId]/supersede", "/api/daemon/tasks/poll/route": "/api/daemon/tasks/poll", "/api/daemon/workspace/report/route": "/api/daemon/workspace/report", "/api/daily-quote/route": "/api/daily-quote", "/api/desktop/update/[target]/[arch]/[current_version]/route": "/api/desktop/update/[target]/[arch]/[current_version]", "/api/email/[id]/attachment/[index]/route": "/api/email/[id]/attachment/[index]", "/api/email/[id]/body/route": "/api/email/[id]/body", "/api/email/[id]/raw/route": "/api/email/[id]/raw", "/api/email/[id]/route": "/api/email/[id]", "/api/email/[id]/thread/route": "/api/email/[id]/thread", "/api/email/[id]/trust/route": "/api/email/[id]/trust", "/api/email/notify/route": "/api/email/notify", "/api/email/route": "/api/email", "/api/email/send/route": "/api/email/send", "/api/email/upload/route": "/api/email/upload", "/api/flags/[messageId]/route": "/api/flags/[messageId]", "/api/flags/count/route": "/api/flags/count", "/api/flags/route": "/api/flags", "/api/health/route": "/api/health", "/api/inbox/count/route": "/api/inbox/count", "/api/inbox/read-all/route": "/api/inbox/read-all", "/api/inbox/read/route": "/api/inbox/read", "/api/inbox/route": "/api/inbox", "/api/invite/[token]/route": "/api/invite/[token]", "/api/issues/[id]/comments/route": "/api/issues/[id]/comments", "/api/issues/[id]/route": "/api/issues/[id]", "/api/issues/route": "/api/issues", "/api/machine-tokens/[id]/route": "/api/machine-tokens/[id]", "/api/machine-tokens/activate/route": "/api/machine-tokens/activate", "/api/machine-tokens/route": "/api/machine-tokens", "/api/machine-tokens/status/route": "/api/machine-tokens/status", "/api/me/route": "/api/me", "/api/meeting/callback/route": "/api/meeting/callback", "/api/members/me/route": "/api/members/me", "/api/runtimes/[runtimeId]/rescan/route": "/api/runtimes/[runtimeId]/rescan", "/api/runtimes/[runtimeId]/update/route": "/api/runtimes/[runtimeId]/update", "/api/runtimes/machine/route": "/api/runtimes/machine", "/api/runtimes/route": "/api/runtimes", "/api/studios/check-handles/route": "/api/studios/check-handles", "/api/studios/check-name/route": "/api/studios/check-name", "/api/studios/route": "/api/studios", "/api/tasks/[id]/messages/route": "/api/tasks/[id]/messages", "/api/tasks/[id]/retry/route": "/api/tasks/[id]/retry", "/api/tasks/[id]/route": "/api/tasks/[id]", "/api/traces/[traceId]/route": "/api/traces/[traceId]", "/api/traces/route": "/api/traces", "/api/workspaces/[id]/invites/[inviteId]/route": "/api/workspaces/[id]/invites/[inviteId]", "/api/workspaces/[id]/invites/route": "/api/workspaces/[id]/invites", "/api/workspaces/[id]/members/[memberId]/route": "/api/workspaces/[id]/members/[memberId]", "/api/workspaces/[id]/members/route": "/api/workspaces/[id]/members", "/api/workspaces/[id]/onboarded/route": "/api/workspaces/[id]/onboarded", "/api/workspaces/[id]/overview/route": "/api/workspaces/[id]/overview", "/api/workspaces/[id]/route": "/api/workspaces/[id]", "/api/workspaces/route": "/api/workspaces", "/api/ws/token/route": "/api/ws/token", "/blog/[slug]/page": "/blog/[slug]", "/blog/feed.xml/route": "/blog/feed.xml", "/blog/page": "/blog", "/c/channels/[serverId]/[channelId]/page": "/c/channels/[serverId]/[channelId]", "/c/channels/[serverId]/page": "/c/channels/[serverId]", "/c/channels/[serverId]/settings/page": "/c/channels/[serverId]/settings", "/c/invite/[token]/page": "/c/invite/[token]", "/c/me/[dmId]/page": "/c/me/[dmId]", "/c/me/bots/page": "/c/me/bots", "/c/me/machines/page": "/c/me/machines", "/c/me/page": "/c/me", "/c/page": "/c", "/device/page": "/device", "/favicon.ico/route": "/favicon.ico", "/landing-legacy/page": "/landing-legacy", "/llms.txt/route": "/llms.txt", "/og/route": "/og", "/onboard.md/route": "/onboard.md", "/page": "/", "/privacy/page": "/privacy", "/robots.txt/route": "/robots.txt", "/sitemap.xml/route": "/sitemap.xml", "/templates/[id]/json/route": "/templates/[id]/json", "/templates/[id]/page": "/templates/[id]", "/templates/page": "/templates" };
|
|
30155
30163
|
var FunctionsConfigManifest = { "version": 1, "functions": {} };
|
|
30156
30164
|
var PagesManifest = { "/404": "pages/404.html", "/500": "pages/500.html" };
|
|
@@ -30158,17 +30166,17 @@ process.env.NEXT_BUILD_ID = BuildId;
|
|
|
30158
30166
|
process.env.OPEN_NEXT_BUILD_ID = NextConfig.deploymentId ?? BuildId;
|
|
30159
30167
|
process.env.NEXT_PREVIEW_MODE_ID = PrerenderManifest?.preview?.previewModeId;
|
|
30160
30168
|
|
|
30161
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30169
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/http/openNextResponse.js
|
|
30162
30170
|
init_logger();
|
|
30163
30171
|
init_util();
|
|
30164
30172
|
import { Transform } from "node:stream";
|
|
30165
30173
|
|
|
30166
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30174
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/util.js
|
|
30167
30175
|
init_util();
|
|
30168
30176
|
init_logger();
|
|
30169
30177
|
import { ReadableStream as ReadableStream3 } from "node:stream/web";
|
|
30170
30178
|
|
|
30171
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30179
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/binary.js
|
|
30172
30180
|
var commonBinaryMimeTypes = /* @__PURE__ */ new Set([
|
|
30173
30181
|
"application/octet-stream",
|
|
30174
30182
|
// Docs
|
|
@@ -30236,11 +30244,11 @@ function isBinaryContentType(contentType) {
|
|
|
30236
30244
|
return commonBinaryMimeTypes.has(value);
|
|
30237
30245
|
}
|
|
30238
30246
|
|
|
30239
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30247
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/i18n/index.js
|
|
30240
30248
|
init_stream();
|
|
30241
30249
|
init_logger();
|
|
30242
30250
|
|
|
30243
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30251
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/i18n/accept-header.js
|
|
30244
30252
|
function parse(raw, preferences, options) {
|
|
30245
30253
|
const lowers = /* @__PURE__ */ new Map();
|
|
30246
30254
|
const header = raw.replace(/[ \t]/g, "");
|
|
@@ -30340,7 +30348,7 @@ function acceptLanguage(header = "", preferences) {
|
|
|
30340
30348
|
})[0] || void 0;
|
|
30341
30349
|
}
|
|
30342
30350
|
|
|
30343
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30351
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/i18n/index.js
|
|
30344
30352
|
function isLocalizedPath(path3) {
|
|
30345
30353
|
return NextConfig.i18n?.locales.includes(path3.split("/")[1].toLowerCase()) ?? false;
|
|
30346
30354
|
}
|
|
@@ -30438,7 +30446,7 @@ function handleLocaleRedirect(internalEvent) {
|
|
|
30438
30446
|
return false;
|
|
30439
30447
|
}
|
|
30440
30448
|
|
|
30441
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30449
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/queue.js
|
|
30442
30450
|
function generateShardId(rawPath, maxConcurrency, prefix) {
|
|
30443
30451
|
let a = cyrb128(rawPath);
|
|
30444
30452
|
let t = a += 1831565813;
|
|
@@ -30472,7 +30480,7 @@ function cyrb128(str) {
|
|
|
30472
30480
|
return h1 >>> 0;
|
|
30473
30481
|
}
|
|
30474
30482
|
|
|
30475
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30483
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/util.js
|
|
30476
30484
|
function isExternal(url, host) {
|
|
30477
30485
|
if (!url)
|
|
30478
30486
|
return false;
|
|
@@ -30587,17 +30595,17 @@ function normalizeLocationHeader(location, baseUrl, encodeQuery = false) {
|
|
|
30587
30595
|
return href;
|
|
30588
30596
|
}
|
|
30589
30597
|
|
|
30590
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30598
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routingHandler.js
|
|
30591
30599
|
init_logger();
|
|
30592
30600
|
|
|
30593
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30601
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/cacheInterceptor.js
|
|
30594
30602
|
import { createHash } from "node:crypto";
|
|
30595
30603
|
init_stream();
|
|
30596
30604
|
|
|
30597
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30605
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/cache.js
|
|
30598
30606
|
init_logger();
|
|
30599
30607
|
|
|
30600
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30608
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/semver.js
|
|
30601
30609
|
function compareSemver(v1, operator, v2) {
|
|
30602
30610
|
let versionDiff = 0;
|
|
30603
30611
|
if (v1 === "latest") {
|
|
@@ -30638,7 +30646,7 @@ function compareSemver(v1, operator, v2) {
|
|
|
30638
30646
|
}
|
|
30639
30647
|
}
|
|
30640
30648
|
|
|
30641
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30649
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/cache.js
|
|
30642
30650
|
async function isStale(key, tags, lastModified) {
|
|
30643
30651
|
if (!compareSemver(globalThis.nextVersion, ">=", "16.0.0")) {
|
|
30644
30652
|
return false;
|
|
@@ -30682,7 +30690,7 @@ function getTagsFromValue(value) {
|
|
|
30682
30690
|
}
|
|
30683
30691
|
}
|
|
30684
30692
|
|
|
30685
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
30693
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/cacheInterceptor.js
|
|
30686
30694
|
init_logger();
|
|
30687
30695
|
var CACHE_ONE_YEAR = 60 * 60 * 24 * 365;
|
|
30688
30696
|
var CACHE_ONE_MONTH = 60 * 60 * 24 * 30;
|
|
@@ -31273,18 +31281,18 @@ function pathToRegexp(path3, keys, options) {
|
|
|
31273
31281
|
return stringToRegexp(path3, keys, options);
|
|
31274
31282
|
}
|
|
31275
31283
|
|
|
31276
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31284
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/utils/normalize-path.js
|
|
31277
31285
|
import path2 from "node:path";
|
|
31278
31286
|
function normalizeRepeatedSlashes(url) {
|
|
31279
31287
|
const urlNoQuery = url.host + url.pathname;
|
|
31280
31288
|
return `${url.protocol}//${urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/")}${url.search}`;
|
|
31281
31289
|
}
|
|
31282
31290
|
|
|
31283
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31291
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/matcher.js
|
|
31284
31292
|
init_stream();
|
|
31285
31293
|
init_logger();
|
|
31286
31294
|
|
|
31287
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31295
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/routeMatcher.js
|
|
31288
31296
|
var optionalLocalePrefixRegex = `^/(?:${RoutesManifest.locales.map((locale) => `${locale}/?`).join("|")})?`;
|
|
31289
31297
|
var optionalBasepathPrefixRegex = RoutesManifest.basePath ? `^${RoutesManifest.basePath}/?` : "^/";
|
|
31290
31298
|
var optionalPrefix = optionalLocalePrefixRegex.replace("^/", optionalBasepathPrefixRegex);
|
|
@@ -31334,7 +31342,7 @@ function getStaticAPIRoutes() {
|
|
|
31334
31342
|
return [...pagesStaticAPIRoutes, ...appPathsStaticAPIRoutes];
|
|
31335
31343
|
}
|
|
31336
31344
|
|
|
31337
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31345
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/matcher.js
|
|
31338
31346
|
var routeHasMatcher = (headers, cookies, query) => (redirect) => {
|
|
31339
31347
|
switch (redirect.type) {
|
|
31340
31348
|
case "header":
|
|
@@ -31626,7 +31634,7 @@ function handleFallbackFalse(internalEvent, prerenderManifest) {
|
|
|
31626
31634
|
};
|
|
31627
31635
|
}
|
|
31628
31636
|
|
|
31629
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31637
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routing/middleware.js
|
|
31630
31638
|
init_stream();
|
|
31631
31639
|
init_utils();
|
|
31632
31640
|
var middlewareManifest = MiddlewareManifest;
|
|
@@ -31744,7 +31752,7 @@ async function handleMiddleware(internalEvent, initialSearch, middlewareLoader =
|
|
|
31744
31752
|
};
|
|
31745
31753
|
}
|
|
31746
31754
|
|
|
31747
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31755
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/core/routingHandler.js
|
|
31748
31756
|
var MIDDLEWARE_HEADER_PREFIX = "x-middleware-response-";
|
|
31749
31757
|
var MIDDLEWARE_HEADER_PREFIX_LEN = MIDDLEWARE_HEADER_PREFIX.length;
|
|
31750
31758
|
var INTERNAL_HEADER_PREFIX = "x-opennext-";
|
|
@@ -31929,7 +31937,7 @@ function isInternalResult(eventOrResult) {
|
|
|
31929
31937
|
return eventOrResult != null && "statusCode" in eventOrResult;
|
|
31930
31938
|
}
|
|
31931
31939
|
|
|
31932
|
-
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.
|
|
31940
|
+
// ../../node_modules/.pnpm/@opennextjs+aws@4.1.0_patch_hash=6a1b801adbed4307cde86c12f701bc354047783b077e836f58af1e_f0f40d615cf33aee3de3ba5b7d1181c1/node_modules/@opennextjs/aws/dist/adapters/middleware.js
|
|
31933
31941
|
globalThis.internalFetch = fetch;
|
|
31934
31942
|
globalThis.__openNextAls = new AsyncLocalStorage();
|
|
31935
31943
|
var defaultHandler = async (internalEvent, options) => {
|