panoma 0.1.8 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.md +109 -2546
- package/app/BUILD-INFO.json +7 -97
- package/app/apps/web/.next-bundle/BUILD_ID +1 -1
- package/app/apps/web/.next-bundle/app-build-manifest.json +663 -488
- package/app/apps/web/.next-bundle/app-path-routes-manifest.json +49 -29
- package/app/apps/web/.next-bundle/build-manifest.json +14 -14
- package/app/apps/web/.next-bundle/prerender-manifest.json +9 -9
- package/app/apps/web/.next-bundle/required-server-files.json +13 -10
- package/app/apps/web/.next-bundle/routes-manifest.json +101 -0
- package/app/apps/web/.next-bundle/server/app/(app)/agents/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/agents/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/ai/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/ai/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/apps/[id]/page.js +2 -0
- package/app/apps/web/.next-bundle/server/app/(app)/apps/[id]/page_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/(app)/apps/page.js +2 -0
- package/app/apps/web/.next-bundle/server/app/(app)/apps/page_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/(app)/bridge/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/bridge/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/copies/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/copies/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/credentials/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/credentials/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/disk/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/disk/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/hidden/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/hidden/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/video/page.js +2 -0
- package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/video/page_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/(app)/packages/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/packages/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/runs/[id]/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/runs/[id]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/runs/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/runs/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/search/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/search/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/spend/page.js +2 -0
- package/app/apps/web/.next-bundle/server/app/(app)/spend/page_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/(app)/twin/look/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/twin/look/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/twin/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/twin/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/(app)/unsaved/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/(app)/unsaved/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/_not-found/page.js +2 -2
- package/app/apps/web/.next-bundle/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/accounts/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/accounts/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/consult/route.js +1 -2
- package/app/apps/web/.next-bundle/server/app/api/agent/consult/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/context/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/context/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/hello/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/hello/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/journal/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/journal/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/keys/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/keys/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/log/route.js +1 -18
- package/app/apps/web/.next-bundle/server/app/api/agent/log/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/mcp/route.js +2 -2
- package/app/apps/web/.next-bundle/server/app/api/agent/mcp/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/notes/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/notes/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/tasks/[id]/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/tasks/[id]/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/tasks/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/agent/tasks/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/ai/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/ai/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/[operation]/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/[operation]/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/credentials/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/credentials/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/jobs/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/jobs/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/legal/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/legal/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/settings/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/[id]/settings/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/artifact/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/artifact/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/cancel/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/cancel/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/apps/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/assets/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/assets/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/assignments/launch/route.js +3 -3
- package/app/apps/web/.next-bundle/server/app/api/assignments/launch/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/assignments/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/assignments/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/catalog/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/catalog/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/check/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/check/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/consultations/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/consultations/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/describe/route.js +2 -2
- package/app/apps/web/.next-bundle/server/app/api/describe/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/disk/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/disk/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/enrich/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/enrich/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/environment/route.js +2 -2
- package/app/apps/web/.next-bundle/server/app/api/environment/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/hooks/route.js +2 -2
- package/app/apps/web/.next-bundle/server/app/api/hooks/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/ingest/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/ingest/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/apply/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/apply/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/context/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/context/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/inspect/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/inspect/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/repair/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/repair/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/md/review/route.js +4 -4
- package/app/apps/web/.next-bundle/server/app/api/md/review/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/memory/export/route.js +2 -0
- package/app/apps/web/.next-bundle/server/app/api/memory/export/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/north/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/north/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/notes/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/notes/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/open/all/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/open/all/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/open/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/open/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/project/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/project/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/rescan/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/rescan/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/roots/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/roots/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/runs/[id]/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/runs/[id]/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/runs/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/runs/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/scale/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/scale/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/search/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/secrets/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/secrets/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/spend/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/spend/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/tasks/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/tasks/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/today/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/today/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/assign/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/assign/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/classify/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/classify/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/critique/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/critique/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/design/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/design/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/distill/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/distill/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/episodes/learn/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/twin/episodes/learn/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/twin/episodes/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/twin/episodes/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/twin/look/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/look/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/mine/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/mine/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/rehearse/route.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/twin/rehearse/route_client-reference-manifest.js +1 -0
- package/app/apps/web/.next-bundle/server/app/api/twin/score/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/score/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/shot/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/shot/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/sources/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/sources/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/synthesize/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/synthesize/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/taste/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/taste/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/verdicts/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/twin/verdicts/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/watch/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/api/watch/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/apple-icon.png/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/icon/[id]/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app/icon/[id]/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/app/icon.png/route.js +1 -1
- package/app/apps/web/.next-bundle/server/app-paths-manifest.json +49 -29
- package/app/apps/web/.next-bundle/server/chunks/1190.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/1602.js +3 -0
- package/app/apps/web/.next-bundle/server/chunks/1646.js +11 -0
- package/app/apps/web/.next-bundle/server/chunks/170.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/2256.js +14 -0
- package/app/apps/web/.next-bundle/server/chunks/2387.js +22 -0
- package/app/apps/web/.next-bundle/server/chunks/2455.js +7 -0
- package/app/apps/web/.next-bundle/server/chunks/2658.js +2 -0
- package/app/apps/web/.next-bundle/server/chunks/3088.js +16 -0
- package/app/apps/web/.next-bundle/server/chunks/314.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/3171.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/3347.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/3768.js +3 -0
- package/app/apps/web/.next-bundle/server/chunks/3834.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/4018.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/4478.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/4498.js +12 -0
- package/app/apps/web/.next-bundle/server/chunks/4528.js +2 -0
- package/app/apps/web/.next-bundle/server/chunks/4810.js +9 -0
- package/app/apps/web/.next-bundle/server/chunks/5103.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/5251.js +217 -0
- package/app/apps/web/.next-bundle/server/chunks/5741.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/5941.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/5975.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/6145.js +6 -0
- package/app/apps/web/.next-bundle/server/chunks/6693.js +7 -0
- package/app/apps/web/.next-bundle/server/chunks/6913.js +21 -0
- package/app/apps/web/.next-bundle/server/chunks/7245.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/7348.js +28 -0
- package/app/apps/web/.next-bundle/server/chunks/7581.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/7957.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/817.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/8384.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/8404.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/8463.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/8887.js +30 -0
- package/app/apps/web/.next-bundle/server/chunks/8990.js +2 -0
- package/app/apps/web/.next-bundle/server/chunks/987.js +27 -0
- package/app/apps/web/.next-bundle/server/chunks/993.js +1 -0
- package/app/apps/web/.next-bundle/server/chunks/9938.js +1 -0
- package/app/apps/web/.next-bundle/server/edge-instrumentation.js +1 -1
- package/app/apps/web/.next-bundle/server/functions-config-manifest.json +17 -8
- package/app/apps/web/.next-bundle/server/instrumentation.js +1 -1
- package/app/apps/web/.next-bundle/server/middleware-build-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/middleware-manifest.json +5 -5
- package/app/apps/web/.next-bundle/server/middleware.js +8 -11
- package/app/apps/web/.next-bundle/server/next-font-manifest.js +1 -1
- package/app/apps/web/.next-bundle/server/next-font-manifest.json +1 -1
- package/app/apps/web/.next-bundle/server/pages/500.html +1 -1
- package/app/apps/web/.next-bundle/server/pages/_app.js +1 -1
- package/app/apps/web/.next-bundle/server/pages/_document.js +1 -1
- package/app/apps/web/.next-bundle/server/pages/_error.js +3 -3
- package/app/apps/web/.next-bundle/server/server-reference-manifest.json +1 -1
- package/app/apps/web/.next-bundle/static/chunks/003adf37-35e10d79e45c4e95.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/05e62ed0-bf68b9617e57b82f.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/1369-8f6dde7e48bc4684.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/1774-59392c79c651b3a0.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/2202-897aaad3cd785ea6.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/2340-11b365d374b2be7b.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/2575-62182d00e5cf3115.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/261-1c2829beaca77dc9.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/3953-4e8d5b8f11c07426.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/6823-e1004a1b90458d2d.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/7f092448-e07c21e2897ac52e.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/agents/page-28b11f831b7bc8c4.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/ai/page-8b5fe63986bf3757.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/[id]/page-dc2c3a7874636c29.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/page-00ec4bf42a14ac17.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/bridge/page-86a819d6d7f65cd0.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/copies/page-69ee3fc638b1eecf.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/credentials/page-0c3307d9cff31e71.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/disk/page-13cd17998c4b3c05.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/error-4706c73d842251e2.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/hidden/page-55639b16ccebad95.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/layout-7f3d387ae540018d.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/page-c3c3a9be458adeed.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/video/page-088684f252e3d59c.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/packages/page-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/page-6cf474454fb2ea5e.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/[id]/page-0f664082168a49b2.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/page-69ee3fc638b1eecf.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/search/page-0c57c71f581cdf40.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/spend/page-201b626f17f11eeb.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/twin/look/page-a1f666c611d55a0c.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/twin/page-c7212909b051736c.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/unsaved/page-c545489e991b83d2.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/_not-found/page-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/accounts/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/consult/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/context/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/hello/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/journal/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/keys/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/log/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/mcp/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/notes/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/tasks/[id]/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/tasks/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/ai/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/[id]/[operation]/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/[id]/credentials/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/[id]/jobs/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/[id]/legal/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/[id]/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/[id]/settings/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/jobs/[jobId]/artifact/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/jobs/[jobId]/cancel/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/jobs/[jobId]/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/apps/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/assets/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/assignments/launch/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/assignments/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/catalog/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/check/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/consultations/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/describe/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/disk/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/enrich/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/environment/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/hooks/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/ingest/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/apply/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/context/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/inspect/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/repair/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/review/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/memory/export/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/north/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/notes/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/open/all/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/open/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/project/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/rescan/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/roots/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/runs/[id]/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/runs/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/scale/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/search/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/secrets/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/spend/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/tasks/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/today/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/assign/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/classify/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/critique/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/design/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/distill/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/episodes/learn/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/episodes/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/look/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/mine/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/rehearse/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/score/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/shot/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/sources/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/synthesize/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/taste/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/verdicts/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/api/watch/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/global-not-found-69ee3fc638b1eecf.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/icon/[id]/route-de6e3e5d6198c075.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/app/not-found-69ee3fc638b1eecf.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/bed79bbe-48e9828a39c35383.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/framework-d5e4b15967daa90f.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/main-8ce36a8e89504138.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/main-app-a35ca295bbc2c578.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/pages/_app-9697265615ef43a0.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/pages/_error-ddfe0e0bd29e2283.js +1 -0
- package/app/apps/web/.next-bundle/static/chunks/webpack-a286bbf864e6618a.js +1 -0
- package/app/apps/web/.next-bundle/static/css/988bfb2024e770b7.css +1 -0
- package/app/apps/web/.next-bundle/static/mhsTm5XiqL98MCgDVB08u/_buildManifest.js +1 -0
- package/app/apps/web/package.json +1 -27
- package/app/apps/web/server.js +1 -1
- package/app/node_modules/@next/env/package.json +1 -1
- package/app/node_modules/@panoma/ai/dist/index.d.ts +116 -1
- package/app/node_modules/@panoma/ai/dist/index.js +142 -64
- package/app/node_modules/@panoma/apps/dist/chunk-4G5NKAON.js +147 -0
- package/app/node_modules/@panoma/apps/dist/faults.d.ts +74 -0
- package/app/node_modules/@panoma/apps/dist/faults.js +20 -0
- package/app/node_modules/@panoma/apps/dist/index.d.ts +688 -0
- package/app/node_modules/@panoma/apps/dist/index.js +889 -0
- package/app/node_modules/@panoma/apps/package.json +24 -0
- package/app/node_modules/@panoma/core/dist/index.d.ts +95 -14
- package/app/node_modules/@panoma/core/dist/index.js +495 -101
- package/app/node_modules/@panoma/db/dist/chunk-V6TJYC6N.js +1297 -0
- package/app/node_modules/@panoma/db/dist/client-B1_3MF0o.d.ts +7166 -0
- package/app/node_modules/@panoma/db/dist/client.d.ts +1 -1
- package/app/node_modules/@panoma/db/dist/client.js +1 -1
- package/app/node_modules/@panoma/db/dist/index.d.ts +627 -28
- package/app/node_modules/@panoma/db/dist/index.js +1540 -514
- package/app/node_modules/@panoma/db/migrations/0050_twin_decision_memory.sql +29 -0
- package/app/node_modules/@panoma/db/migrations/0051_twin_learning_retry.sql +1 -0
- package/app/node_modules/@panoma/db/migrations/0052_memory_experiment_enrollment.sql +1 -0
- package/app/node_modules/@panoma/db/migrations/0053_memory_distillation_jobs.sql +16 -0
- package/app/node_modules/@panoma/db/migrations/0054_decision_revision_lookup.sql +1 -0
- package/app/node_modules/@panoma/db/migrations/0055_decision_expiry.sql +1 -0
- package/app/node_modules/@panoma/db/migrations/0056_ai_summary_hash.sql +1 -0
- package/app/node_modules/@panoma/db/migrations/0057_open_plan.sql +1 -0
- package/app/node_modules/@panoma/db/migrations/0058_apps.sql +54 -0
- package/app/node_modules/@panoma/db/migrations/0059_desktop_keys.sql +15 -0
- package/app/node_modules/@panoma/db/migrations/meta/0050_snapshot.json +3556 -0
- package/app/node_modules/@panoma/db/migrations/meta/0051_snapshot.json +3562 -0
- package/app/node_modules/@panoma/db/migrations/meta/0054_snapshot.json +3696 -0
- package/app/node_modules/@panoma/db/migrations/meta/0055_snapshot.json +3702 -0
- package/app/node_modules/@panoma/db/migrations/meta/0056_snapshot.json +3708 -0
- package/app/node_modules/@panoma/db/migrations/meta/0057_snapshot.json +3714 -0
- package/app/node_modules/@panoma/db/migrations/meta/0058_snapshot.json +4084 -0
- package/app/node_modules/@panoma/db/migrations/meta/0059_snapshot.json +4084 -0
- package/app/node_modules/@panoma/db/migrations/meta/_journal.json +71 -1
- package/app/node_modules/@panoma/mcp/dist/index.js +608 -160
- package/app/node_modules/@panoma/mcp/package.json +4 -1
- package/app/node_modules/drizzle-orm/node_modules/.bin/gel +3 -3
- package/app/node_modules/next/dist/build/swc/index.js +1 -1
- package/app/node_modules/next/dist/build/webpack-config.js +2 -2
- package/app/node_modules/next/dist/client/app-bootstrap.js +1 -1
- package/app/node_modules/next/dist/client/index.js +1 -1
- package/app/node_modules/next/dist/client/legacy/image.js +8 -2
- package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +7 -7
- package/app/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +2 -2
- package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1 -1
- package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/app/node_modules/next/dist/server/image-optimizer.d.ts +3 -1
- package/app/node_modules/next/dist/server/image-optimizer.js +65 -2
- package/app/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/app/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +17 -4
- package/app/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/app/node_modules/next/dist/shared/lib/canary-only.js +1 -1
- package/app/node_modules/next/dist/shared/lib/get-img-props.js +8 -2
- package/app/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +1 -1
- package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/app/node_modules/next/package.json +11 -11
- package/app/node_modules/postcss/LICENSE +1 -1
- package/app/node_modules/postcss/lib/container.js +106 -51
- package/app/node_modules/postcss/lib/css-syntax-error.js +47 -14
- package/app/node_modules/postcss/lib/declaration.js +4 -4
- package/app/node_modules/postcss/lib/fromJSON.js +79 -26
- package/app/node_modules/postcss/lib/input.js +67 -33
- package/app/node_modules/postcss/lib/lazy-result.js +127 -51
- package/app/node_modules/postcss/lib/list.js +5 -2
- package/app/node_modules/postcss/lib/map-generator.js +27 -9
- package/app/node_modules/postcss/lib/no-work-result.js +57 -55
- package/app/node_modules/postcss/lib/node.js +197 -84
- package/app/node_modules/postcss/lib/parse.js +1 -1
- package/app/node_modules/postcss/lib/parser.js +49 -38
- package/app/node_modules/postcss/lib/postcss.js +13 -13
- package/app/node_modules/postcss/lib/previous-map.js +46 -12
- package/app/node_modules/postcss/lib/processor.js +7 -7
- package/app/node_modules/postcss/lib/result.js +5 -5
- package/app/node_modules/postcss/lib/root.js +16 -1
- package/app/node_modules/postcss/lib/rule.js +6 -6
- package/app/node_modules/postcss/lib/stringifier.js +148 -32
- package/app/node_modules/postcss/lib/tokenize.js +6 -2
- package/app/node_modules/postcss/lib/warning.js +10 -0
- package/app/node_modules/postcss/package.json +48 -48
- package/dist/ai-command-IRSVAWYU.js +220 -0
- package/dist/apps-FI2Q2CFP.js +17 -0
- package/dist/check-command-PPILA25M.js +103 -0
- package/dist/chunk-2MKBCYVH.js +158 -0
- package/dist/chunk-5EG7NRL4.js +8440 -0
- package/dist/chunk-AW6KPPIR.js +378 -0
- package/dist/chunk-BCHIG2AU.js +166 -0
- package/dist/chunk-DITTKJ7U.js +147 -0
- package/dist/chunk-JY7ALFNX.js +1362 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-P7ZGHSMO.js +1089 -0
- package/dist/chunk-YQOQAFTY.js +793 -0
- package/dist/dist-F5A5RVCK.js +4920 -0
- package/dist/dist-G32QKT7H.js +301 -0
- package/dist/dist-NQIOBJFO.js +78 -0
- package/dist/index.js +78 -45
- package/dist/md-command-Q4M2YBEH.js +282 -0
- package/dist/memory-command-IXVQSADX.js +65 -0
- package/dist/next-command-2PXBP5OR.js +245 -0
- package/dist/north-command-XFUNSNPH.js +281 -0
- package/dist/review-command-6AH7MVKP.js +94 -0
- package/dist/spend-command-DA36GLNI.js +135 -0
- package/dist/twin-command-HYEG2WPA.js +1375 -0
- package/dist/video-TWUW2L36.js +100 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -1
- package/app/apps/web/.next-bundle/server/chunks/147.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/167.js +0 -7
- package/app/apps/web/.next-bundle/server/chunks/174.js +0 -3
- package/app/apps/web/.next-bundle/server/chunks/2643.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/2930.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/3182.js +0 -11
- package/app/apps/web/.next-bundle/server/chunks/3377.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/3440.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/3559.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/358.js +0 -27
- package/app/apps/web/.next-bundle/server/chunks/3610.js +0 -9
- package/app/apps/web/.next-bundle/server/chunks/3677.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/4289.js +0 -7
- package/app/apps/web/.next-bundle/server/chunks/4337.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/4858.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/5358.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/5611.js +0 -22
- package/app/apps/web/.next-bundle/server/chunks/6157.js +0 -21
- package/app/apps/web/.next-bundle/server/chunks/6195.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/6354.js +0 -28
- package/app/apps/web/.next-bundle/server/chunks/6462.js +0 -2
- package/app/apps/web/.next-bundle/server/chunks/6476.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/6790.js +0 -170
- package/app/apps/web/.next-bundle/server/chunks/7017.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/7276.js +0 -5
- package/app/apps/web/.next-bundle/server/chunks/7876.js +0 -1
- package/app/apps/web/.next-bundle/server/chunks/8393.js +0 -6
- package/app/apps/web/.next-bundle/server/chunks/8985.js +0 -1
- package/app/apps/web/.next-bundle/static/IoWYBo4jj6B8WTfswm-wr/_buildManifest.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/003adf37-43d6365219a6cb5d.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/05e62ed0-4f8e7c265bd81def.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/0fef27c7-cd6dbf9ae86c168d.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/1723-71c045eb0c2a8daa.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/3885-7afc74e117f41ba5.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/4517-63995539421e71bd.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/4737-b098c74f87ae6fa7.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/5465-6207528c0ac5d5d7.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/7911-1730eba8c196e698.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/7f092448-897a4dfb37859e3a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/agents/page-349f843bcb6f4abd.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/ai/page-60083a1b6a36c928.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/bridge/page-9f270ffcd9da75ca.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/copies/page-fb206ee7ea581b0a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/credentials/page-e87253842975daa4.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/disk/page-15cd72dc04ac7de4.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/error-7a9266f6e98936d9.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/hidden/page-4e81219b6c5aeb2a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/layout-2ee40fbf22eee90a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/page-630a1079cd683bad.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/packages/page-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/page-bd415d39f80a6370.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/[id]/page-572f84e2016be38a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/runs/page-fb206ee7ea581b0a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/search/page-6e94501b5e36f4b1.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/twin/look/page-8e24b1b376cbdab8.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/twin/page-4d6804060b9830ff.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/(app)/unsaved/page-d7124f7da77909ad.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/_not-found/page-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/accounts/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/consult/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/context/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/hello/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/journal/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/keys/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/log/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/mcp/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/notes/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/tasks/[id]/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/agent/tasks/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/ai/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/assets/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/assignments/launch/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/assignments/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/catalog/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/check/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/consultations/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/describe/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/disk/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/enrich/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/environment/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/hooks/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/ingest/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/apply/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/context/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/inspect/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/repair/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/md/review/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/north/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/notes/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/open/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/project/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/rescan/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/roots/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/runs/[id]/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/runs/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/scale/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/search/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/secrets/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/tasks/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/today/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/assign/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/classify/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/critique/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/design/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/distill/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/look/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/mine/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/score/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/shot/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/sources/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/synthesize/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/taste/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/twin/verdicts/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/api/watch/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/global-not-found-fb206ee7ea581b0a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/icon/[id]/route-530c843e472daae6.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/app/not-found-fb206ee7ea581b0a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/framework-30b145ec0f5d120f.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/main-app-59aa759bdeaa5318.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/main-b6b5e7fa4424cc5d.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/pages/_app-c69705e3978589b3.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/pages/_error-03e7b340a5b9742a.js +0 -1
- package/app/apps/web/.next-bundle/static/chunks/webpack-dfabcb423274f722.js +0 -1
- package/app/apps/web/.next-bundle/static/css/6de932bb4718a4fa.css +0 -1
- package/app/node_modules/@hono/node-server/LICENSE +0 -21
- package/app/node_modules/@hono/node-server/README.md +0 -437
- package/app/node_modules/@hono/node-server/dist/conninfo.cjs +0 -22
- package/app/node_modules/@hono/node-server/dist/conninfo.d.cts +0 -11
- package/app/node_modules/@hono/node-server/dist/conninfo.d.mts +0 -11
- package/app/node_modules/@hono/node-server/dist/conninfo.mjs +0 -20
- package/app/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +0 -5
- package/app/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +0 -11
- package/app/node_modules/@hono/node-server/dist/early-hints.cjs +0 -35
- package/app/node_modules/@hono/node-server/dist/early-hints.d.cts +0 -16
- package/app/node_modules/@hono/node-server/dist/early-hints.d.mts +0 -16
- package/app/node_modules/@hono/node-server/dist/early-hints.mjs +0 -33
- package/app/node_modules/@hono/node-server/dist/index.cjs +0 -1318
- package/app/node_modules/@hono/node-server/dist/index.d.cts +0 -101
- package/app/node_modules/@hono/node-server/dist/index.d.mts +0 -101
- package/app/node_modules/@hono/node-server/dist/index.mjs +0 -1313
- package/app/node_modules/@hono/node-server/dist/serve-static.cjs +0 -151
- package/app/node_modules/@hono/node-server/dist/serve-static.d.cts +0 -18
- package/app/node_modules/@hono/node-server/dist/serve-static.d.mts +0 -18
- package/app/node_modules/@hono/node-server/dist/serve-static.mjs +0 -150
- package/app/node_modules/@hono/node-server/dist/utils/response.cjs +0 -8
- package/app/node_modules/@hono/node-server/dist/utils/response.d.cts +0 -4
- package/app/node_modules/@hono/node-server/dist/utils/response.d.mts +0 -4
- package/app/node_modules/@hono/node-server/dist/utils/response.mjs +0 -7
- package/app/node_modules/@hono/node-server/dist/utils/stream.cjs +0 -65
- package/app/node_modules/@hono/node-server/dist/utils/stream.d.cts +0 -6
- package/app/node_modules/@hono/node-server/dist/utils/stream.d.mts +0 -6
- package/app/node_modules/@hono/node-server/dist/utils/stream.mjs +0 -64
- package/app/node_modules/@hono/node-server/package.json +0 -127
- package/app/node_modules/@modelcontextprotocol/sdk/LICENSE +0 -21
- package/app/node_modules/@modelcontextprotocol/sdk/README.md +0 -172
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +0 -190
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +0 -299
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +0 -451
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +0 -943
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts +0 -591
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +0 -618
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts +0 -169
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +0 -252
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +0 -81
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +0 -211
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +0 -84
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +0 -202
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +0 -171
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +0 -484
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts +0 -17
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +0 -58
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +0 -680
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js +0 -134
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js +0 -176
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts +0 -20
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js +0 -70
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts +0 -3
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +0 -397
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts +0 -26
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js +0 -51
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +0 -857
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js +0 -157
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js +0 -95
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js +0 -168
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +0 -78
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js +0 -205
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +0 -460
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js +0 -656
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +0 -85
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js +0 -171
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts +0 -7
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js +0 -95
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts +0 -12
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js +0 -49
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js +0 -168
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +0 -166
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +0 -750
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts +0 -12
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js +0 -600
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +0 -256
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +0 -107
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +0 -124
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js +0 -73
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts +0 -31
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js +0 -69
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +0 -29
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts +0 -121
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +0 -188
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts +0 -47
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +0 -68
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts +0 -16
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +0 -39
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +0 -232
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +0 -19
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts +0 -77
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +0 -36
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +0 -170
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +0 -250
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +0 -94
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +0 -251
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +0 -28
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts +0 -31
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +0 -51
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +0 -1
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts +0 -19
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +0 -3
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts +0 -148
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +0 -202
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts +0 -24
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +0 -201
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts +0 -4
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +0 -21
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts +0 -29
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +0 -77
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +0 -65
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +0 -136
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts +0 -9
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +0 -21
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +0 -35
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +0 -75
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts +0 -19
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +0 -71
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts +0 -68
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +0 -3
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts +0 -49
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +0 -159
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts +0 -101
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +0 -128
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +0 -3
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts +0 -38
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +0 -48
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts +0 -45
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +0 -56
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts +0 -196
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +0 -433
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +0 -364
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +0 -922
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +0 -80
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts +0 -82
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +0 -172
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts +0 -5
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js +0 -17
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +0 -36
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +0 -88
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts +0 -122
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +0 -165
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +0 -289
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +0 -953
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts +0 -84
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +0 -263
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts +0 -12
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +0 -79
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts +0 -23
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +0 -48
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +0 -240
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +0 -224
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js +0 -64
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts +0 -16
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +0 -25
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +0 -443
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +0 -1112
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts +0 -45
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +0 -23
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +0 -18
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +0 -46
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts +0 -31
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +0 -97
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +0 -89
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +0 -43
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts +0 -25
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +0 -243
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts +0 -2311
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +0 -27
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +0 -8168
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +0 -2105
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts +0 -53
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +0 -94
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts +0 -51
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +0 -69
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts +0 -29
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +0 -30
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts +0 -65
- package/app/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +0 -3
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +0 -190
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +0 -269
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +0 -451
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +0 -918
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts +0 -591
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +0 -613
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts +0 -169
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +0 -245
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +0 -81
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +0 -206
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +0 -84
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +0 -194
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +0 -171
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +0 -479
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts +0 -17
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +0 -54
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +0 -678
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js +0 -132
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js +0 -174
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts +0 -20
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js +0 -68
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts +0 -3
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +0 -395
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts +0 -26
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js +0 -47
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +0 -855
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js +0 -155
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js +0 -93
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js +0 -166
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +0 -78
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js +0 -196
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +0 -458
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js +0 -651
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +0 -60
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js +0 -146
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts +0 -7
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js +0 -70
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts +0 -12
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js +0 -47
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js +0 -143
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js +0 -141
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +0 -725
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts +0 -12
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js +0 -598
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +0 -231
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +0 -102
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +0 -122
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js +0 -48
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts +0 -31
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js +0 -65
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts +0 -121
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +0 -184
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts +0 -47
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +0 -64
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts +0 -16
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +0 -20
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +0 -232
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +0 -16
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts +0 -77
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +0 -170
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +0 -246
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +0 -94
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +0 -246
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +0 -10
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts +0 -31
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +0 -47
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +0 -1
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts +0 -19
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts +0 -148
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +0 -180
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts +0 -24
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +0 -171
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts +0 -4
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +0 -15
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts +0 -29
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +0 -71
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +0 -59
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +0 -107
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts +0 -9
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +0 -18
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +0 -35
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +0 -72
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts +0 -19
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +0 -45
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts +0 -68
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts +0 -49
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +0 -155
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts +0 -101
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +0 -118
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts +0 -38
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +0 -41
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts +0 -45
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +0 -50
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts +0 -196
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +0 -429
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +0 -364
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +0 -917
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +0 -76
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts +0 -82
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +0 -165
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts +0 -5
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +0 -13
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +0 -36
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +0 -81
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts +0 -122
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +0 -161
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +0 -289
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +0 -949
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts +0 -84
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -228
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts +0 -12
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -51
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts +0 -23
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +0 -44
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +0 -240
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +0 -198
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts +0 -32
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +0 -57
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts +0 -16
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +0 -22
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +0 -443
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -1107
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts +0 -45
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +0 -19
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +0 -18
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +0 -40
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts +0 -31
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +0 -92
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +0 -89
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +0 -39
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts +0 -25
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +0 -239
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +0 -2311
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +0 -24
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +0 -8168
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -2065
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +0 -53
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +0 -87
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +0 -51
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +0 -65
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +0 -29
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +0 -29
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +0 -65
- package/app/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +0 -2
- package/app/node_modules/@modelcontextprotocol/sdk/package.json +0 -165
- package/app/node_modules/@panoma/db/dist/chunk-GRGC435V.js +0 -1134
- package/app/node_modules/@panoma/db/dist/client-C6AHYVoa.d.ts +0 -5811
- package/app/node_modules/accepts/HISTORY.md +0 -250
- package/app/node_modules/accepts/LICENSE +0 -23
- package/app/node_modules/accepts/README.md +0 -140
- package/app/node_modules/accepts/index.js +0 -238
- package/app/node_modules/accepts/package.json +0 -47
- package/app/node_modules/ajv/.runkit_example.js +0 -23
- package/app/node_modules/ajv/LICENSE +0 -22
- package/app/node_modules/ajv/README.md +0 -207
- package/app/node_modules/ajv/dist/2019.d.ts +0 -19
- package/app/node_modules/ajv/dist/2019.js +0 -61
- package/app/node_modules/ajv/dist/2020.d.ts +0 -19
- package/app/node_modules/ajv/dist/2020.js +0 -55
- package/app/node_modules/ajv/dist/ajv.d.ts +0 -18
- package/app/node_modules/ajv/dist/ajv.js +0 -50
- package/app/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
- package/app/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/app/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
- package/app/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/app/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
- package/app/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/app/node_modules/ajv/dist/compile/errors.d.ts +0 -13
- package/app/node_modules/ajv/dist/compile/errors.js +0 -123
- package/app/node_modules/ajv/dist/compile/index.d.ts +0 -80
- package/app/node_modules/ajv/dist/compile/index.js +0 -242
- package/app/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
- package/app/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
- package/app/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
- package/app/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
- package/app/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
- package/app/node_modules/ajv/dist/compile/jtd/types.js +0 -14
- package/app/node_modules/ajv/dist/compile/names.d.ts +0 -20
- package/app/node_modules/ajv/dist/compile/names.js +0 -28
- package/app/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
- package/app/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/app/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
- package/app/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/app/node_modules/ajv/dist/compile/rules.d.ts +0 -28
- package/app/node_modules/ajv/dist/compile/rules.js +0 -26
- package/app/node_modules/ajv/dist/compile/util.d.ts +0 -40
- package/app/node_modules/ajv/dist/compile/util.js +0 -178
- package/app/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
- package/app/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/app/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
- package/app/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/app/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
- package/app/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/app/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
- package/app/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/app/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
- package/app/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/app/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
- package/app/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/app/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
- package/app/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/app/node_modules/ajv/dist/core.d.ts +0 -174
- package/app/node_modules/ajv/dist/core.js +0 -618
- package/app/node_modules/ajv/dist/jtd.d.ts +0 -47
- package/app/node_modules/ajv/dist/jtd.js +0 -72
- package/app/node_modules/ajv/dist/refs/data.json +0 -13
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/app/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/app/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/app/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
- package/app/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/app/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
- package/app/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
- package/app/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
- package/app/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
- package/app/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/app/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
- package/app/node_modules/ajv/dist/runtime/parseJson.js +0 -185
- package/app/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
- package/app/node_modules/ajv/dist/runtime/quote.js +0 -30
- package/app/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
- package/app/node_modules/ajv/dist/runtime/re2.js +0 -6
- package/app/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
- package/app/node_modules/ajv/dist/runtime/timestamp.js +0 -42
- package/app/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
- package/app/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/app/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
- package/app/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/app/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
- package/app/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/app/node_modules/ajv/dist/standalone/index.d.ts +0 -6
- package/app/node_modules/ajv/dist/standalone/index.js +0 -90
- package/app/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
- package/app/node_modules/ajv/dist/standalone/instance.js +0 -35
- package/app/node_modules/ajv/dist/types/index.d.ts +0 -183
- package/app/node_modules/ajv/dist/types/index.js +0 -3
- package/app/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
- package/app/node_modules/ajv/dist/types/json-schema.js +0 -3
- package/app/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
- package/app/node_modules/ajv/dist/types/jtd-schema.js +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/app/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/app/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/app/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
- package/app/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/app/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
- package/app/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/app/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
- package/app/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/app/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/app/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/app/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
- package/app/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/app/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/app/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/app/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
- package/app/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/app/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/app/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/app/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/app/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/app/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/app/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/app/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
- package/app/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/app/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/app/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/app/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/app/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/app/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
- package/app/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/app/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
- package/app/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/app/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/app/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/app/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/app/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/app/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/app/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
- package/app/node_modules/ajv/dist/vocabularies/errors.js +0 -3
- package/app/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/app/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/app/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
- package/app/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
- package/app/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
- package/app/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
- package/app/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
- package/app/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
- package/app/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
- package/app/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
- package/app/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
- package/app/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
- package/app/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
- package/app/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
- package/app/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
- package/app/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
- package/app/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
- package/app/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
- package/app/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
- package/app/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
- package/app/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
- package/app/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/app/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/next.js +0 -8
- package/app/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/app/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/app/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
- package/app/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
- package/app/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/app/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
- package/app/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/app/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/app/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
- package/app/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/app/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/app/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/app/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/app/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
- package/app/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/app/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
- package/app/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/app/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/app/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
- package/app/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
- package/app/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/app/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
- package/app/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/app/node_modules/ajv/lib/2019.ts +0 -81
- package/app/node_modules/ajv/lib/2020.ts +0 -75
- package/app/node_modules/ajv/lib/ajv.ts +0 -70
- package/app/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
- package/app/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
- package/app/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
- package/app/node_modules/ajv/lib/compile/errors.ts +0 -184
- package/app/node_modules/ajv/lib/compile/index.ts +0 -324
- package/app/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
- package/app/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
- package/app/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
- package/app/node_modules/ajv/lib/compile/names.ts +0 -27
- package/app/node_modules/ajv/lib/compile/ref_error.ts +0 -13
- package/app/node_modules/ajv/lib/compile/resolve.ts +0 -149
- package/app/node_modules/ajv/lib/compile/rules.ts +0 -50
- package/app/node_modules/ajv/lib/compile/util.ts +0 -213
- package/app/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
- package/app/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
- package/app/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
- package/app/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
- package/app/node_modules/ajv/lib/compile/validate/index.ts +0 -582
- package/app/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
- package/app/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
- package/app/node_modules/ajv/lib/core.ts +0 -892
- package/app/node_modules/ajv/lib/jtd.ts +0 -132
- package/app/node_modules/ajv/lib/refs/data.json +0 -13
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/app/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/app/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
- package/app/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
- package/app/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
- package/app/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
- package/app/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
- package/app/node_modules/ajv/lib/runtime/equal.ts +0 -7
- package/app/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
- package/app/node_modules/ajv/lib/runtime/quote.ts +0 -31
- package/app/node_modules/ajv/lib/runtime/re2.ts +0 -6
- package/app/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
- package/app/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
- package/app/node_modules/ajv/lib/runtime/uri.ts +0 -6
- package/app/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
- package/app/node_modules/ajv/lib/standalone/index.ts +0 -100
- package/app/node_modules/ajv/lib/standalone/instance.ts +0 -36
- package/app/node_modules/ajv/lib/types/index.ts +0 -244
- package/app/node_modules/ajv/lib/types/json-schema.ts +0 -187
- package/app/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
- package/app/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
- package/app/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
- package/app/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
- package/app/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
- package/app/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
- package/app/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
- package/app/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
- package/app/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
- package/app/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
- package/app/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
- package/app/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
- package/app/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
- package/app/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
- package/app/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
- package/app/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
- package/app/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
- package/app/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
- package/app/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
- package/app/node_modules/ajv/lib/vocabularies/code.ts +0 -168
- package/app/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
- package/app/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
- package/app/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
- package/app/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
- package/app/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
- package/app/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
- package/app/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
- package/app/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
- package/app/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
- package/app/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
- package/app/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
- package/app/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
- package/app/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
- package/app/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
- package/app/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
- package/app/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
- package/app/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
- package/app/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
- package/app/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
- package/app/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
- package/app/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
- package/app/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
- package/app/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
- package/app/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
- package/app/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
- package/app/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
- package/app/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
- package/app/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
- package/app/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
- package/app/node_modules/ajv/lib/vocabularies/next.ts +0 -8
- package/app/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
- package/app/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
- package/app/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
- package/app/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
- package/app/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
- package/app/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
- package/app/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
- package/app/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
- package/app/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
- package/app/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
- package/app/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
- package/app/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
- package/app/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
- package/app/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
- package/app/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
- package/app/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
- package/app/node_modules/ajv/package.json +0 -126
- package/app/node_modules/ajv-formats/LICENSE +0 -21
- package/app/node_modules/ajv-formats/README.md +0 -125
- package/app/node_modules/ajv-formats/dist/formats.d.ts +0 -9
- package/app/node_modules/ajv-formats/dist/formats.js +0 -208
- package/app/node_modules/ajv-formats/dist/index.d.ts +0 -15
- package/app/node_modules/ajv-formats/dist/index.js +0 -37
- package/app/node_modules/ajv-formats/dist/limit.d.ts +0 -10
- package/app/node_modules/ajv-formats/dist/limit.js +0 -69
- package/app/node_modules/ajv-formats/package.json +0 -74
- package/app/node_modules/ajv-formats/src/formats.ts +0 -269
- package/app/node_modules/ajv-formats/src/index.ts +0 -62
- package/app/node_modules/ajv-formats/src/limit.ts +0 -99
- package/app/node_modules/body-parser/LICENSE +0 -23
- package/app/node_modules/body-parser/README.md +0 -509
- package/app/node_modules/body-parser/index.js +0 -55
- package/app/node_modules/body-parser/lib/read.js +0 -247
- package/app/node_modules/body-parser/lib/types/json.js +0 -186
- package/app/node_modules/body-parser/lib/types/raw.js +0 -42
- package/app/node_modules/body-parser/lib/types/text.js +0 -36
- package/app/node_modules/body-parser/lib/types/urlencoded.js +0 -138
- package/app/node_modules/body-parser/lib/utils.js +0 -100
- package/app/node_modules/body-parser/package.json +0 -65
- package/app/node_modules/bytes/History.md +0 -97
- package/app/node_modules/bytes/LICENSE +0 -23
- package/app/node_modules/bytes/Readme.md +0 -152
- package/app/node_modules/bytes/index.js +0 -170
- package/app/node_modules/bytes/package.json +0 -42
- package/app/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/app/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/app/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/app/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/app/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/app/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/app/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/app/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/app/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/app/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/app/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/app/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/app/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/app/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/app/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/app/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/app/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/app/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/app/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/app/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/app/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/app/node_modules/call-bound/.eslintrc +0 -13
- package/app/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/app/node_modules/call-bound/.nycrc +0 -9
- package/app/node_modules/call-bound/CHANGELOG.md +0 -42
- package/app/node_modules/call-bound/LICENSE +0 -21
- package/app/node_modules/call-bound/README.md +0 -53
- package/app/node_modules/call-bound/index.d.ts +0 -94
- package/app/node_modules/call-bound/index.js +0 -19
- package/app/node_modules/call-bound/package.json +0 -99
- package/app/node_modules/call-bound/test/index.js +0 -61
- package/app/node_modules/call-bound/tsconfig.json +0 -10
- package/app/node_modules/content-disposition/LICENSE +0 -22
- package/app/node_modules/content-disposition/README.md +0 -141
- package/app/node_modules/content-disposition/index.js +0 -536
- package/app/node_modules/content-disposition/package.json +0 -40
- package/app/node_modules/content-type/HISTORY.md +0 -29
- package/app/node_modules/content-type/LICENSE +0 -22
- package/app/node_modules/content-type/README.md +0 -94
- package/app/node_modules/content-type/index.js +0 -225
- package/app/node_modules/content-type/package.json +0 -42
- package/app/node_modules/cookie/LICENSE +0 -24
- package/app/node_modules/cookie/README.md +0 -317
- package/app/node_modules/cookie/SECURITY.md +0 -25
- package/app/node_modules/cookie/index.js +0 -335
- package/app/node_modules/cookie/package.json +0 -44
- package/app/node_modules/cookie-signature/History.md +0 -70
- package/app/node_modules/cookie-signature/LICENSE +0 -22
- package/app/node_modules/cookie-signature/Readme.md +0 -23
- package/app/node_modules/cookie-signature/index.js +0 -47
- package/app/node_modules/cookie-signature/package.json +0 -24
- package/app/node_modules/cors/LICENSE +0 -22
- package/app/node_modules/cors/README.md +0 -277
- package/app/node_modules/cors/lib/index.js +0 -238
- package/app/node_modules/cors/package.json +0 -42
- package/app/node_modules/cross-spawn/LICENSE +0 -21
- package/app/node_modules/cross-spawn/README.md +0 -89
- package/app/node_modules/cross-spawn/index.js +0 -39
- package/app/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/app/node_modules/cross-spawn/lib/parse.js +0 -91
- package/app/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/app/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/app/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/app/node_modules/cross-spawn/node_modules/.bin/node-which +0 -55
- package/app/node_modules/cross-spawn/package.json +0 -73
- package/app/node_modules/debug/LICENSE +0 -20
- package/app/node_modules/debug/README.md +0 -481
- package/app/node_modules/debug/package.json +0 -64
- package/app/node_modules/debug/src/browser.js +0 -272
- package/app/node_modules/debug/src/common.js +0 -292
- package/app/node_modules/debug/src/index.js +0 -10
- package/app/node_modules/debug/src/node.js +0 -263
- package/app/node_modules/depd/History.md +0 -103
- package/app/node_modules/depd/LICENSE +0 -22
- package/app/node_modules/depd/Readme.md +0 -280
- package/app/node_modules/depd/index.js +0 -538
- package/app/node_modules/depd/lib/browser/index.js +0 -77
- package/app/node_modules/depd/package.json +0 -45
- package/app/node_modules/dunder-proto/.eslintrc +0 -5
- package/app/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/app/node_modules/dunder-proto/.nycrc +0 -13
- package/app/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/app/node_modules/dunder-proto/LICENSE +0 -21
- package/app/node_modules/dunder-proto/README.md +0 -54
- package/app/node_modules/dunder-proto/get.d.ts +0 -5
- package/app/node_modules/dunder-proto/get.js +0 -30
- package/app/node_modules/dunder-proto/package.json +0 -76
- package/app/node_modules/dunder-proto/set.d.ts +0 -5
- package/app/node_modules/dunder-proto/set.js +0 -35
- package/app/node_modules/dunder-proto/test/get.js +0 -34
- package/app/node_modules/dunder-proto/test/index.js +0 -4
- package/app/node_modules/dunder-proto/test/set.js +0 -50
- package/app/node_modules/dunder-proto/tsconfig.json +0 -9
- package/app/node_modules/ee-first/LICENSE +0 -22
- package/app/node_modules/ee-first/README.md +0 -80
- package/app/node_modules/ee-first/index.js +0 -95
- package/app/node_modules/ee-first/package.json +0 -29
- package/app/node_modules/encodeurl/LICENSE +0 -22
- package/app/node_modules/encodeurl/README.md +0 -109
- package/app/node_modules/encodeurl/index.js +0 -60
- package/app/node_modules/encodeurl/package.json +0 -40
- package/app/node_modules/es-define-property/.eslintrc +0 -13
- package/app/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/app/node_modules/es-define-property/.nycrc +0 -9
- package/app/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/app/node_modules/es-define-property/LICENSE +0 -21
- package/app/node_modules/es-define-property/README.md +0 -49
- package/app/node_modules/es-define-property/index.d.ts +0 -3
- package/app/node_modules/es-define-property/index.js +0 -14
- package/app/node_modules/es-define-property/package.json +0 -81
- package/app/node_modules/es-define-property/test/index.js +0 -56
- package/app/node_modules/es-define-property/tsconfig.json +0 -10
- package/app/node_modules/es-errors/.eslintrc +0 -5
- package/app/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/app/node_modules/es-errors/CHANGELOG.md +0 -40
- package/app/node_modules/es-errors/LICENSE +0 -21
- package/app/node_modules/es-errors/README.md +0 -55
- package/app/node_modules/es-errors/eval.d.ts +0 -3
- package/app/node_modules/es-errors/eval.js +0 -4
- package/app/node_modules/es-errors/index.d.ts +0 -3
- package/app/node_modules/es-errors/index.js +0 -4
- package/app/node_modules/es-errors/package.json +0 -80
- package/app/node_modules/es-errors/range.d.ts +0 -3
- package/app/node_modules/es-errors/range.js +0 -4
- package/app/node_modules/es-errors/ref.d.ts +0 -3
- package/app/node_modules/es-errors/ref.js +0 -4
- package/app/node_modules/es-errors/syntax.d.ts +0 -3
- package/app/node_modules/es-errors/syntax.js +0 -4
- package/app/node_modules/es-errors/test/index.js +0 -19
- package/app/node_modules/es-errors/tsconfig.json +0 -49
- package/app/node_modules/es-errors/type.d.ts +0 -3
- package/app/node_modules/es-errors/type.js +0 -4
- package/app/node_modules/es-errors/uri.d.ts +0 -3
- package/app/node_modules/es-errors/uri.js +0 -4
- package/app/node_modules/es-object-atoms/.eslintrc +0 -16
- package/app/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/app/node_modules/es-object-atoms/CHANGELOG.md +0 -44
- package/app/node_modules/es-object-atoms/LICENSE +0 -21
- package/app/node_modules/es-object-atoms/README.md +0 -63
- package/app/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/app/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/app/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/app/node_modules/es-object-atoms/ToObject.js +0 -10
- package/app/node_modules/es-object-atoms/index.d.ts +0 -3
- package/app/node_modules/es-object-atoms/index.js +0 -4
- package/app/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/app/node_modules/es-object-atoms/isObject.js +0 -6
- package/app/node_modules/es-object-atoms/package.json +0 -79
- package/app/node_modules/es-object-atoms/test/index.js +0 -38
- package/app/node_modules/es-object-atoms/tsconfig.json +0 -7
- package/app/node_modules/escape-html/LICENSE +0 -24
- package/app/node_modules/escape-html/Readme.md +0 -43
- package/app/node_modules/escape-html/index.js +0 -78
- package/app/node_modules/escape-html/package.json +0 -24
- package/app/node_modules/etag/HISTORY.md +0 -83
- package/app/node_modules/etag/LICENSE +0 -22
- package/app/node_modules/etag/README.md +0 -159
- package/app/node_modules/etag/index.js +0 -131
- package/app/node_modules/etag/package.json +0 -47
- package/app/node_modules/eventsource/LICENSE +0 -22
- package/app/node_modules/eventsource/README.md +0 -167
- package/app/node_modules/eventsource/dist/index.cjs +0 -273
- package/app/node_modules/eventsource/dist/index.d.cts +0 -332
- package/app/node_modules/eventsource/dist/index.d.ts +0 -332
- package/app/node_modules/eventsource/dist/index.js +0 -273
- package/app/node_modules/eventsource/package.json +0 -130
- package/app/node_modules/eventsource/src/EventSource.ts +0 -596
- package/app/node_modules/eventsource/src/errors.ts +0 -141
- package/app/node_modules/eventsource/src/index.ts +0 -3
- package/app/node_modules/eventsource/src/types.ts +0 -152
- package/app/node_modules/eventsource-parser/LICENSE +0 -21
- package/app/node_modules/eventsource-parser/README.md +0 -157
- package/app/node_modules/eventsource-parser/dist/index.cjs +0 -177
- package/app/node_modules/eventsource-parser/dist/index.d.cts +0 -169
- package/app/node_modules/eventsource-parser/dist/index.d.ts +0 -169
- package/app/node_modules/eventsource-parser/dist/index.js +0 -177
- package/app/node_modules/eventsource-parser/dist/stream.cjs +0 -29
- package/app/node_modules/eventsource-parser/dist/stream.d.cts +0 -134
- package/app/node_modules/eventsource-parser/dist/stream.d.ts +0 -134
- package/app/node_modules/eventsource-parser/dist/stream.js +0 -30
- package/app/node_modules/eventsource-parser/package.json +0 -92
- package/app/node_modules/eventsource-parser/src/errors.ts +0 -44
- package/app/node_modules/eventsource-parser/src/index.ts +0 -8
- package/app/node_modules/eventsource-parser/src/parse.ts +0 -439
- package/app/node_modules/eventsource-parser/src/stream.ts +0 -107
- package/app/node_modules/eventsource-parser/src/types.ts +0 -122
- package/app/node_modules/eventsource-parser/stream.js +0 -2
- package/app/node_modules/express/LICENSE +0 -24
- package/app/node_modules/express/Readme.md +0 -276
- package/app/node_modules/express/index.js +0 -11
- package/app/node_modules/express/lib/application.js +0 -631
- package/app/node_modules/express/lib/express.js +0 -81
- package/app/node_modules/express/lib/request.js +0 -514
- package/app/node_modules/express/lib/response.js +0 -1053
- package/app/node_modules/express/lib/utils.js +0 -271
- package/app/node_modules/express/lib/view.js +0 -205
- package/app/node_modules/express/package.json +0 -99
- package/app/node_modules/express-rate-limit/dist/index.cjs +0 -1085
- package/app/node_modules/express-rate-limit/dist/index.d.cts +0 -688
- package/app/node_modules/express-rate-limit/dist/index.d.mts +0 -688
- package/app/node_modules/express-rate-limit/dist/index.d.ts +0 -688
- package/app/node_modules/express-rate-limit/dist/index.mjs +0 -1041
- package/app/node_modules/express-rate-limit/license.md +0 -20
- package/app/node_modules/express-rate-limit/package.json +0 -116
- package/app/node_modules/express-rate-limit/readme.md +0 -139
- package/app/node_modules/express-rate-limit/tsconfig.json +0 -8
- package/app/node_modules/fast-deep-equal/LICENSE +0 -21
- package/app/node_modules/fast-deep-equal/README.md +0 -96
- package/app/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
- package/app/node_modules/fast-deep-equal/es6/index.js +0 -72
- package/app/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
- package/app/node_modules/fast-deep-equal/es6/react.js +0 -79
- package/app/node_modules/fast-deep-equal/index.d.ts +0 -4
- package/app/node_modules/fast-deep-equal/index.js +0 -46
- package/app/node_modules/fast-deep-equal/package.json +0 -61
- package/app/node_modules/fast-deep-equal/react.d.ts +0 -2
- package/app/node_modules/fast-deep-equal/react.js +0 -53
- package/app/node_modules/fast-uri/.gitattributes +0 -2
- package/app/node_modules/fast-uri/.github/dependabot.yml +0 -13
- package/app/node_modules/fast-uri/.github/workflows/ci.yml +0 -106
- package/app/node_modules/fast-uri/.github/workflows/lock-threads.yml +0 -19
- package/app/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
- package/app/node_modules/fast-uri/LICENSE +0 -30
- package/app/node_modules/fast-uri/README.md +0 -152
- package/app/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
- package/app/node_modules/fast-uri/benchmark/equal.mjs +0 -51
- package/app/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
- package/app/node_modules/fast-uri/benchmark/package.json +0 -17
- package/app/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
- package/app/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
- package/app/node_modules/fast-uri/eslint.config.js +0 -6
- package/app/node_modules/fast-uri/index.js +0 -459
- package/app/node_modules/fast-uri/lib/schemes.js +0 -267
- package/app/node_modules/fast-uri/lib/utils.js +0 -443
- package/app/node_modules/fast-uri/package.json +0 -68
- package/app/node_modules/fast-uri/test/ajv.test.js +0 -43
- package/app/node_modules/fast-uri/test/equal.test.js +0 -117
- package/app/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -501
- package/app/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
- package/app/node_modules/fast-uri/test/parse.test.js +0 -323
- package/app/node_modules/fast-uri/test/resolve.test.js +0 -87
- package/app/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
- package/app/node_modules/fast-uri/test/security-normalization.test.js +0 -39
- package/app/node_modules/fast-uri/test/security.test.js +0 -359
- package/app/node_modules/fast-uri/test/serialize.test.js +0 -151
- package/app/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
- package/app/node_modules/fast-uri/test/uri-js.test.js +0 -912
- package/app/node_modules/fast-uri/test/util.test.js +0 -38
- package/app/node_modules/fast-uri/tsconfig.json +0 -9
- package/app/node_modules/fast-uri/types/index.d.ts +0 -60
- package/app/node_modules/fast-uri/types/index.test-d.ts +0 -17
- package/app/node_modules/finalhandler/HISTORY.md +0 -239
- package/app/node_modules/finalhandler/LICENSE +0 -22
- package/app/node_modules/finalhandler/README.md +0 -150
- package/app/node_modules/finalhandler/index.js +0 -293
- package/app/node_modules/finalhandler/package.json +0 -47
- package/app/node_modules/forwarded/HISTORY.md +0 -21
- package/app/node_modules/forwarded/LICENSE +0 -22
- package/app/node_modules/forwarded/README.md +0 -57
- package/app/node_modules/forwarded/index.js +0 -90
- package/app/node_modules/forwarded/package.json +0 -45
- package/app/node_modules/fresh/HISTORY.md +0 -80
- package/app/node_modules/fresh/LICENSE +0 -23
- package/app/node_modules/fresh/README.md +0 -117
- package/app/node_modules/fresh/index.js +0 -136
- package/app/node_modules/fresh/package.json +0 -46
- package/app/node_modules/function-bind/.eslintrc +0 -21
- package/app/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/app/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/app/node_modules/function-bind/.nycrc +0 -13
- package/app/node_modules/function-bind/CHANGELOG.md +0 -136
- package/app/node_modules/function-bind/LICENSE +0 -20
- package/app/node_modules/function-bind/README.md +0 -46
- package/app/node_modules/function-bind/implementation.js +0 -84
- package/app/node_modules/function-bind/index.js +0 -5
- package/app/node_modules/function-bind/package.json +0 -87
- package/app/node_modules/function-bind/test/.eslintrc +0 -9
- package/app/node_modules/function-bind/test/index.js +0 -252
- package/app/node_modules/get-intrinsic/.eslintrc +0 -42
- package/app/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/app/node_modules/get-intrinsic/.nycrc +0 -9
- package/app/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/app/node_modules/get-intrinsic/LICENSE +0 -21
- package/app/node_modules/get-intrinsic/README.md +0 -71
- package/app/node_modules/get-intrinsic/index.js +0 -378
- package/app/node_modules/get-intrinsic/package.json +0 -97
- package/app/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/app/node_modules/get-proto/.eslintrc +0 -10
- package/app/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/app/node_modules/get-proto/.nycrc +0 -9
- package/app/node_modules/get-proto/CHANGELOG.md +0 -21
- package/app/node_modules/get-proto/LICENSE +0 -21
- package/app/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/app/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/app/node_modules/get-proto/README.md +0 -50
- package/app/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/app/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/app/node_modules/get-proto/index.d.ts +0 -5
- package/app/node_modules/get-proto/index.js +0 -27
- package/app/node_modules/get-proto/package.json +0 -81
- package/app/node_modules/get-proto/test/index.js +0 -68
- package/app/node_modules/get-proto/tsconfig.json +0 -9
- package/app/node_modules/gopd/.eslintrc +0 -16
- package/app/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/app/node_modules/gopd/CHANGELOG.md +0 -45
- package/app/node_modules/gopd/LICENSE +0 -21
- package/app/node_modules/gopd/README.md +0 -40
- package/app/node_modules/gopd/gOPD.d.ts +0 -1
- package/app/node_modules/gopd/gOPD.js +0 -4
- package/app/node_modules/gopd/index.d.ts +0 -5
- package/app/node_modules/gopd/index.js +0 -15
- package/app/node_modules/gopd/package.json +0 -77
- package/app/node_modules/gopd/test/index.js +0 -36
- package/app/node_modules/gopd/tsconfig.json +0 -9
- package/app/node_modules/has-symbols/.eslintrc +0 -11
- package/app/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/app/node_modules/has-symbols/.nycrc +0 -9
- package/app/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/app/node_modules/has-symbols/LICENSE +0 -21
- package/app/node_modules/has-symbols/README.md +0 -46
- package/app/node_modules/has-symbols/index.d.ts +0 -3
- package/app/node_modules/has-symbols/index.js +0 -14
- package/app/node_modules/has-symbols/package.json +0 -111
- package/app/node_modules/has-symbols/shams.d.ts +0 -3
- package/app/node_modules/has-symbols/shams.js +0 -45
- package/app/node_modules/has-symbols/test/index.js +0 -22
- package/app/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/app/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/app/node_modules/has-symbols/test/tests.js +0 -58
- package/app/node_modules/has-symbols/tsconfig.json +0 -10
- package/app/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/app/node_modules/hasown/.nycrc +0 -13
- package/app/node_modules/hasown/CHANGELOG.md +0 -58
- package/app/node_modules/hasown/LICENSE +0 -21
- package/app/node_modules/hasown/README.md +0 -40
- package/app/node_modules/hasown/eslint.config.mjs +0 -6
- package/app/node_modules/hasown/index.d.ts +0 -3
- package/app/node_modules/hasown/index.js +0 -8
- package/app/node_modules/hasown/package.json +0 -91
- package/app/node_modules/hasown/tsconfig.json +0 -6
- package/app/node_modules/hono/LICENSE +0 -21
- package/app/node_modules/hono/README.md +0 -85
- package/app/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +0 -24
- package/app/node_modules/hono/dist/adapter/aws-lambda/handler.js +0 -364
- package/app/node_modules/hono/dist/adapter/aws-lambda/index.js +0 -9
- package/app/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
- package/app/node_modules/hono/dist/adapter/bun/conninfo.js +0 -27
- package/app/node_modules/hono/dist/adapter/bun/index.js +0 -16
- package/app/node_modules/hono/dist/adapter/bun/serve-static.js +0 -30
- package/app/node_modules/hono/dist/adapter/bun/server.js +0 -5
- package/app/node_modules/hono/dist/adapter/bun/ssg.js +0 -17
- package/app/node_modules/hono/dist/adapter/bun/websocket.js +0 -73
- package/app/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +0 -9
- package/app/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +0 -67
- package/app/node_modules/hono/dist/adapter/cloudflare-pages/index.js +0 -9
- package/app/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +0 -9
- package/app/node_modules/hono/dist/adapter/cloudflare-workers/index.js +0 -9
- package/app/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +0 -8
- package/app/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +0 -22
- package/app/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +0 -35
- package/app/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +0 -41
- package/app/node_modules/hono/dist/adapter/deno/conninfo.js +0 -14
- package/app/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
- package/app/node_modules/hono/dist/adapter/deno/index.js +0 -12
- package/app/node_modules/hono/dist/adapter/deno/serve-static.js +0 -40
- package/app/node_modules/hono/dist/adapter/deno/ssg.js +0 -18
- package/app/node_modules/hono/dist/adapter/deno/websocket.js +0 -32
- package/app/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +0 -9
- package/app/node_modules/hono/dist/adapter/lambda-edge/handler.js +0 -96
- package/app/node_modules/hono/dist/adapter/lambda-edge/index.js +0 -7
- package/app/node_modules/hono/dist/adapter/netlify/conninfo.js +0 -9
- package/app/node_modules/hono/dist/adapter/netlify/handler.js +0 -9
- package/app/node_modules/hono/dist/adapter/netlify/index.js +0 -2
- package/app/node_modules/hono/dist/adapter/netlify/mod.js +0 -7
- package/app/node_modules/hono/dist/adapter/service-worker/handler.js +0 -20
- package/app/node_modules/hono/dist/adapter/service-worker/index.js +0 -9
- package/app/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
- package/app/node_modules/hono/dist/adapter/vercel/conninfo.js +0 -10
- package/app/node_modules/hono/dist/adapter/vercel/handler.js +0 -7
- package/app/node_modules/hono/dist/adapter/vercel/index.js +0 -7
- package/app/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +0 -46
- package/app/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +0 -395
- package/app/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +0 -34
- package/app/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -15
- package/app/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +0 -49
- package/app/node_modules/hono/dist/cjs/adapter/bun/index.js +0 -45
- package/app/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +0 -52
- package/app/node_modules/hono/dist/cjs/adapter/bun/server.js +0 -27
- package/app/node_modules/hono/dist/cjs/adapter/bun/ssg.js +0 -40
- package/app/node_modules/hono/dist/cjs/adapter/bun/websocket.js +0 -98
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +0 -31
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +0 -91
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +0 -34
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +0 -31
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +0 -33
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +0 -30
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +0 -44
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +0 -57
- package/app/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +0 -63
- package/app/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +0 -36
- package/app/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
- package/app/node_modules/hono/dist/cjs/adapter/deno/index.js +0 -38
- package/app/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +0 -62
- package/app/node_modules/hono/dist/cjs/adapter/deno/ssg.js +0 -41
- package/app/node_modules/hono/dist/cjs/adapter/deno/websocket.js +0 -54
- package/app/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +0 -31
- package/app/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +0 -130
- package/app/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +0 -30
- package/app/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +0 -31
- package/app/node_modules/hono/dist/cjs/adapter/netlify/handler.js +0 -31
- package/app/node_modules/hono/dist/cjs/adapter/netlify/index.js +0 -21
- package/app/node_modules/hono/dist/cjs/adapter/netlify/mod.js +0 -30
- package/app/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +0 -42
- package/app/node_modules/hono/dist/cjs/adapter/service-worker/index.js +0 -32
- package/app/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -15
- package/app/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +0 -32
- package/app/node_modules/hono/dist/cjs/adapter/vercel/handler.js +0 -29
- package/app/node_modules/hono/dist/cjs/adapter/vercel/index.js +0 -30
- package/app/node_modules/hono/dist/cjs/client/client.js +0 -204
- package/app/node_modules/hono/dist/cjs/client/fetch-result-please.js +0 -85
- package/app/node_modules/hono/dist/cjs/client/index.js +0 -32
- package/app/node_modules/hono/dist/cjs/client/types.js +0 -15
- package/app/node_modules/hono/dist/cjs/client/utils.js +0 -105
- package/app/node_modules/hono/dist/cjs/compose.js +0 -68
- package/app/node_modules/hono/dist/cjs/context.js +0 -450
- package/app/node_modules/hono/dist/cjs/helper/accepts/accepts.js +0 -43
- package/app/node_modules/hono/dist/cjs/helper/accepts/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/helper/adapter/index.js +0 -81
- package/app/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -15
- package/app/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -15
- package/app/node_modules/hono/dist/cjs/helper/cookie/index.js +0 -130
- package/app/node_modules/hono/dist/cjs/helper/css/common.js +0 -273
- package/app/node_modules/hono/dist/cjs/helper/css/index.js +0 -157
- package/app/node_modules/hono/dist/cjs/helper/dev/index.js +0 -79
- package/app/node_modules/hono/dist/cjs/helper/factory/index.js +0 -54
- package/app/node_modules/hono/dist/cjs/helper/html/index.js +0 -64
- package/app/node_modules/hono/dist/cjs/helper/proxy/index.js +0 -115
- package/app/node_modules/hono/dist/cjs/helper/route/index.js +0 -71
- package/app/node_modules/hono/dist/cjs/helper/ssg/index.js +0 -43
- package/app/node_modules/hono/dist/cjs/helper/ssg/middleware.js +0 -73
- package/app/node_modules/hono/dist/cjs/helper/ssg/plugins.js +0 -70
- package/app/node_modules/hono/dist/cjs/helper/ssg/ssg.js +0 -320
- package/app/node_modules/hono/dist/cjs/helper/ssg/utils.js +0 -93
- package/app/node_modules/hono/dist/cjs/helper/streaming/index.js +0 -35
- package/app/node_modules/hono/dist/cjs/helper/streaming/sse.js +0 -91
- package/app/node_modules/hono/dist/cjs/helper/streaming/stream.js +0 -56
- package/app/node_modules/hono/dist/cjs/helper/streaming/text.js +0 -34
- package/app/node_modules/hono/dist/cjs/helper/streaming/utils.js +0 -35
- package/app/node_modules/hono/dist/cjs/helper/testing/index.js +0 -33
- package/app/node_modules/hono/dist/cjs/helper/websocket/index.js +0 -81
- package/app/node_modules/hono/dist/cjs/hono-base.js +0 -406
- package/app/node_modules/hono/dist/cjs/hono.js +0 -43
- package/app/node_modules/hono/dist/cjs/http-exception.js +0 -57
- package/app/node_modules/hono/dist/cjs/index.js +0 -30
- package/app/node_modules/hono/dist/cjs/jsx/base.js +0 -378
- package/app/node_modules/hono/dist/cjs/jsx/children.js +0 -44
- package/app/node_modules/hono/dist/cjs/jsx/components.js +0 -221
- package/app/node_modules/hono/dist/cjs/jsx/constants.js +0 -42
- package/app/node_modules/hono/dist/cjs/jsx/context.js +0 -188
- package/app/node_modules/hono/dist/cjs/jsx/dom/client.js +0 -76
- package/app/node_modules/hono/dist/cjs/jsx/dom/components.js +0 -55
- package/app/node_modules/hono/dist/cjs/jsx/dom/context.js +0 -71
- package/app/node_modules/hono/dist/cjs/jsx/dom/css.js +0 -168
- package/app/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +0 -74
- package/app/node_modules/hono/dist/cjs/jsx/dom/index.js +0 -181
- package/app/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +0 -399
- package/app/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +0 -52
- package/app/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +0 -32
- package/app/node_modules/hono/dist/cjs/jsx/dom/render.js +0 -641
- package/app/node_modules/hono/dist/cjs/jsx/dom/server.js +0 -67
- package/app/node_modules/hono/dist/cjs/jsx/dom/utils.js +0 -32
- package/app/node_modules/hono/dist/cjs/jsx/hooks/index.js +0 -373
- package/app/node_modules/hono/dist/cjs/jsx/index.js +0 -138
- package/app/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +0 -50
- package/app/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +0 -189
- package/app/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -15
- package/app/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +0 -41
- package/app/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +0 -71
- package/app/node_modules/hono/dist/cjs/jsx/streaming.js +0 -179
- package/app/node_modules/hono/dist/cjs/jsx/types.js +0 -15
- package/app/node_modules/hono/dist/cjs/jsx/utils.js +0 -200
- package/app/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +0 -88
- package/app/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +0 -114
- package/app/node_modules/hono/dist/cjs/middleware/body-limit/index.js +0 -75
- package/app/node_modules/hono/dist/cjs/middleware/cache/index.js +0 -219
- package/app/node_modules/hono/dist/cjs/middleware/combine/index.js +0 -101
- package/app/node_modules/hono/dist/cjs/middleware/compress/index.js +0 -97
- package/app/node_modules/hono/dist/cjs/middleware/context-storage/index.js +0 -47
- package/app/node_modules/hono/dist/cjs/middleware/cors/index.js +0 -109
- package/app/node_modules/hono/dist/cjs/middleware/csrf/index.js +0 -77
- package/app/node_modules/hono/dist/cjs/middleware/etag/digest.js +0 -101
- package/app/node_modules/hono/dist/cjs/middleware/etag/index.js +0 -99
- package/app/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +0 -176
- package/app/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +0 -82
- package/app/node_modules/hono/dist/cjs/middleware/jwk/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +0 -139
- package/app/node_modules/hono/dist/cjs/middleware/jwt/index.js +0 -38
- package/app/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +0 -145
- package/app/node_modules/hono/dist/cjs/middleware/language/index.js +0 -35
- package/app/node_modules/hono/dist/cjs/middleware/language/language.js +0 -203
- package/app/node_modules/hono/dist/cjs/middleware/logger/index.js +0 -72
- package/app/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +0 -90
- package/app/node_modules/hono/dist/cjs/middleware/method-override/index.js +0 -106
- package/app/node_modules/hono/dist/cjs/middleware/powered-by/index.js +0 -32
- package/app/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +0 -37
- package/app/node_modules/hono/dist/cjs/middleware/request-id/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +0 -43
- package/app/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +0 -29
- package/app/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -15
- package/app/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +0 -198
- package/app/node_modules/hono/dist/cjs/middleware/serve-static/index.js +0 -99
- package/app/node_modules/hono/dist/cjs/middleware/serve-static/path.js +0 -40
- package/app/node_modules/hono/dist/cjs/middleware/timeout/index.js +0 -47
- package/app/node_modules/hono/dist/cjs/middleware/timing/index.js +0 -35
- package/app/node_modules/hono/dist/cjs/middleware/timing/timing.js +0 -130
- package/app/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +0 -62
- package/app/node_modules/hono/dist/cjs/package.json +0 -3
- package/app/node_modules/hono/dist/cjs/preset/quick.js +0 -38
- package/app/node_modules/hono/dist/cjs/preset/tiny.js +0 -34
- package/app/node_modules/hono/dist/cjs/request/constants.js +0 -27
- package/app/node_modules/hono/dist/cjs/request.js +0 -342
- package/app/node_modules/hono/dist/cjs/router/linear-router/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/router/linear-router/router.js +0 -140
- package/app/node_modules/hono/dist/cjs/router/pattern-router/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/router/pattern-router/router.js +0 -70
- package/app/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +0 -34
- package/app/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +0 -48
- package/app/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +0 -133
- package/app/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +0 -166
- package/app/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +0 -187
- package/app/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +0 -89
- package/app/node_modules/hono/dist/cjs/router/smart-router/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/router/smart-router/router.js +0 -80
- package/app/node_modules/hono/dist/cjs/router/trie-router/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/router/trie-router/node.js +0 -210
- package/app/node_modules/hono/dist/cjs/router/trie-router/router.js +0 -48
- package/app/node_modules/hono/dist/cjs/router.js +0 -40
- package/app/node_modules/hono/dist/cjs/types.js +0 -28
- package/app/node_modules/hono/dist/cjs/utils/accept.js +0 -245
- package/app/node_modules/hono/dist/cjs/utils/basic-auth.js +0 -45
- package/app/node_modules/hono/dist/cjs/utils/body.js +0 -111
- package/app/node_modules/hono/dist/cjs/utils/buffer.js +0 -103
- package/app/node_modules/hono/dist/cjs/utils/color.js +0 -48
- package/app/node_modules/hono/dist/cjs/utils/compress.js +0 -27
- package/app/node_modules/hono/dist/cjs/utils/concurrent.js +0 -61
- package/app/node_modules/hono/dist/cjs/utils/constants.js +0 -27
- package/app/node_modules/hono/dist/cjs/utils/cookie.js +0 -199
- package/app/node_modules/hono/dist/cjs/utils/crypto.js +0 -69
- package/app/node_modules/hono/dist/cjs/utils/encode.js +0 -54
- package/app/node_modules/hono/dist/cjs/utils/filepath.js +0 -58
- package/app/node_modules/hono/dist/cjs/utils/handler.js +0 -36
- package/app/node_modules/hono/dist/cjs/utils/headers.js +0 -15
- package/app/node_modules/hono/dist/cjs/utils/html.js +0 -150
- package/app/node_modules/hono/dist/cjs/utils/http-status.js +0 -15
- package/app/node_modules/hono/dist/cjs/utils/ipaddr.js +0 -318
- package/app/node_modules/hono/dist/cjs/utils/jwt/index.js +0 -28
- package/app/node_modules/hono/dist/cjs/utils/jwt/jwa.js +0 -42
- package/app/node_modules/hono/dist/cjs/utils/jwt/jws.js +0 -215
- package/app/node_modules/hono/dist/cjs/utils/jwt/jwt.js +0 -219
- package/app/node_modules/hono/dist/cjs/utils/jwt/types.js +0 -161
- package/app/node_modules/hono/dist/cjs/utils/jwt/utf8.js +0 -30
- package/app/node_modules/hono/dist/cjs/utils/mime.js +0 -106
- package/app/node_modules/hono/dist/cjs/utils/stream.js +0 -106
- package/app/node_modules/hono/dist/cjs/utils/types.js +0 -15
- package/app/node_modules/hono/dist/cjs/utils/url.js +0 -256
- package/app/node_modules/hono/dist/cjs/validator/index.js +0 -27
- package/app/node_modules/hono/dist/cjs/validator/utils.js +0 -15
- package/app/node_modules/hono/dist/cjs/validator/validator.js +0 -108
- package/app/node_modules/hono/dist/client/client.js +0 -189
- package/app/node_modules/hono/dist/client/fetch-result-please.js +0 -62
- package/app/node_modules/hono/dist/client/index.js +0 -8
- package/app/node_modules/hono/dist/client/types.js +0 -0
- package/app/node_modules/hono/dist/client/utils.js +0 -76
- package/app/node_modules/hono/dist/compose.js +0 -46
- package/app/node_modules/hono/dist/context.js +0 -427
- package/app/node_modules/hono/dist/helper/accepts/accepts.js +0 -20
- package/app/node_modules/hono/dist/helper/accepts/index.js +0 -5
- package/app/node_modules/hono/dist/helper/adapter/index.js +0 -56
- package/app/node_modules/hono/dist/helper/conninfo/index.js +0 -0
- package/app/node_modules/hono/dist/helper/conninfo/types.js +0 -0
- package/app/node_modules/hono/dist/helper/cookie/index.js +0 -102
- package/app/node_modules/hono/dist/helper/css/common.js +0 -236
- package/app/node_modules/hono/dist/helper/css/index.js +0 -140
- package/app/node_modules/hono/dist/helper/dev/index.js +0 -55
- package/app/node_modules/hono/dist/helper/factory/index.js +0 -30
- package/app/node_modules/hono/dist/helper/html/index.js +0 -41
- package/app/node_modules/hono/dist/helper/proxy/index.js +0 -93
- package/app/node_modules/hono/dist/helper/route/index.js +0 -46
- package/app/node_modules/hono/dist/helper/ssg/index.js +0 -19
- package/app/node_modules/hono/dist/helper/ssg/middleware.js +0 -45
- package/app/node_modules/hono/dist/helper/ssg/plugins.js +0 -47
- package/app/node_modules/hono/dist/helper/ssg/ssg.js +0 -297
- package/app/node_modules/hono/dist/helper/ssg/utils.js +0 -67
- package/app/node_modules/hono/dist/helper/streaming/index.js +0 -10
- package/app/node_modules/hono/dist/helper/streaming/sse.js +0 -68
- package/app/node_modules/hono/dist/helper/streaming/stream.js +0 -34
- package/app/node_modules/hono/dist/helper/streaming/text.js +0 -12
- package/app/node_modules/hono/dist/helper/streaming/utils.js +0 -13
- package/app/node_modules/hono/dist/helper/testing/index.js +0 -11
- package/app/node_modules/hono/dist/helper/websocket/index.js +0 -57
- package/app/node_modules/hono/dist/hono-base.js +0 -384
- package/app/node_modules/hono/dist/hono.js +0 -21
- package/app/node_modules/hono/dist/http-exception.js +0 -35
- package/app/node_modules/hono/dist/index.js +0 -7
- package/app/node_modules/hono/dist/jsx/base.js +0 -346
- package/app/node_modules/hono/dist/jsx/children.js +0 -21
- package/app/node_modules/hono/dist/jsx/components.js +0 -198
- package/app/node_modules/hono/dist/jsx/constants.js +0 -15
- package/app/node_modules/hono/dist/jsx/context.js +0 -162
- package/app/node_modules/hono/dist/jsx/dom/client.js +0 -53
- package/app/node_modules/hono/dist/jsx/dom/components.js +0 -32
- package/app/node_modules/hono/dist/jsx/dom/context.js +0 -48
- package/app/node_modules/hono/dist/jsx/dom/css.js +0 -150
- package/app/node_modules/hono/dist/jsx/dom/hooks/index.js +0 -48
- package/app/node_modules/hono/dist/jsx/dom/index.js +0 -142
- package/app/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +0 -374
- package/app/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +0 -19
- package/app/node_modules/hono/dist/jsx/dom/jsx-runtime.js +0 -8
- package/app/node_modules/hono/dist/jsx/dom/render.js +0 -617
- package/app/node_modules/hono/dist/jsx/dom/server.js +0 -33
- package/app/node_modules/hono/dist/jsx/dom/utils.js +0 -10
- package/app/node_modules/hono/dist/jsx/hooks/index.js +0 -331
- package/app/node_modules/hono/dist/jsx/index.js +0 -103
- package/app/node_modules/hono/dist/jsx/intrinsic-element/common.js +0 -24
- package/app/node_modules/hono/dist/jsx/intrinsic-element/components.js +0 -165
- package/app/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
- package/app/node_modules/hono/dist/jsx/jsx-dev-runtime.js +0 -18
- package/app/node_modules/hono/dist/jsx/jsx-runtime.js +0 -44
- package/app/node_modules/hono/dist/jsx/streaming.js +0 -155
- package/app/node_modules/hono/dist/jsx/types.js +0 -0
- package/app/node_modules/hono/dist/jsx/utils.js +0 -175
- package/app/node_modules/hono/dist/middleware/basic-auth/index.js +0 -66
- package/app/node_modules/hono/dist/middleware/bearer-auth/index.js +0 -92
- package/app/node_modules/hono/dist/middleware/body-limit/index.js +0 -53
- package/app/node_modules/hono/dist/middleware/cache/index.js +0 -197
- package/app/node_modules/hono/dist/middleware/combine/index.js +0 -77
- package/app/node_modules/hono/dist/middleware/compress/index.js +0 -74
- package/app/node_modules/hono/dist/middleware/context-storage/index.js +0 -23
- package/app/node_modules/hono/dist/middleware/cors/index.js +0 -87
- package/app/node_modules/hono/dist/middleware/csrf/index.js +0 -55
- package/app/node_modules/hono/dist/middleware/etag/digest.js +0 -79
- package/app/node_modules/hono/dist/middleware/etag/index.js +0 -76
- package/app/node_modules/hono/dist/middleware/ip-restriction/index.js +0 -162
- package/app/node_modules/hono/dist/middleware/jsx-renderer/index.js +0 -58
- package/app/node_modules/hono/dist/middleware/jwk/index.js +0 -5
- package/app/node_modules/hono/dist/middleware/jwk/jwk.js +0 -117
- package/app/node_modules/hono/dist/middleware/jwt/index.js +0 -11
- package/app/node_modules/hono/dist/middleware/jwt/jwt.js +0 -119
- package/app/node_modules/hono/dist/middleware/language/index.js +0 -15
- package/app/node_modules/hono/dist/middleware/language/language.js +0 -172
- package/app/node_modules/hono/dist/middleware/logger/index.js +0 -44
- package/app/node_modules/hono/dist/middleware/method-not-allowed/index.js +0 -68
- package/app/node_modules/hono/dist/middleware/method-override/index.js +0 -84
- package/app/node_modules/hono/dist/middleware/powered-by/index.js +0 -10
- package/app/node_modules/hono/dist/middleware/pretty-json/index.js +0 -15
- package/app/node_modules/hono/dist/middleware/request-id/index.js +0 -5
- package/app/node_modules/hono/dist/middleware/request-id/request-id.js +0 -21
- package/app/node_modules/hono/dist/middleware/secure-headers/index.js +0 -6
- package/app/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
- package/app/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +0 -175
- package/app/node_modules/hono/dist/middleware/serve-static/index.js +0 -77
- package/app/node_modules/hono/dist/middleware/serve-static/path.js +0 -18
- package/app/node_modules/hono/dist/middleware/timeout/index.js +0 -25
- package/app/node_modules/hono/dist/middleware/timing/index.js +0 -9
- package/app/node_modules/hono/dist/middleware/timing/timing.js +0 -104
- package/app/node_modules/hono/dist/middleware/trailing-slash/index.js +0 -39
- package/app/node_modules/hono/dist/preset/quick.js +0 -16
- package/app/node_modules/hono/dist/preset/tiny.js +0 -12
- package/app/node_modules/hono/dist/request/constants.js +0 -5
- package/app/node_modules/hono/dist/request.js +0 -319
- package/app/node_modules/hono/dist/router/linear-router/index.js +0 -5
- package/app/node_modules/hono/dist/router/linear-router/router.js +0 -118
- package/app/node_modules/hono/dist/router/pattern-router/index.js +0 -5
- package/app/node_modules/hono/dist/router/pattern-router/router.js +0 -48
- package/app/node_modules/hono/dist/router/reg-exp-router/index.js +0 -9
- package/app/node_modules/hono/dist/router/reg-exp-router/matcher.js +0 -25
- package/app/node_modules/hono/dist/router/reg-exp-router/node.js +0 -110
- package/app/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +0 -142
- package/app/node_modules/hono/dist/router/reg-exp-router/router.js +0 -169
- package/app/node_modules/hono/dist/router/reg-exp-router/trie.js +0 -67
- package/app/node_modules/hono/dist/router/smart-router/index.js +0 -5
- package/app/node_modules/hono/dist/router/smart-router/router.js +0 -58
- package/app/node_modules/hono/dist/router/trie-router/index.js +0 -5
- package/app/node_modules/hono/dist/router/trie-router/node.js +0 -188
- package/app/node_modules/hono/dist/router/trie-router/router.js +0 -26
- package/app/node_modules/hono/dist/router.js +0 -14
- package/app/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +0 -27
- package/app/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +0 -184
- package/app/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +0 -8
- package/app/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +0 -153
- package/app/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +0 -7
- package/app/node_modules/hono/dist/types/adapter/bun/index.d.ts +0 -10
- package/app/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +0 -3
- package/app/node_modules/hono/dist/types/adapter/bun/server.d.ts +0 -12
- package/app/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +0 -13
- package/app/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +0 -39
- package/app/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +0 -21
- package/app/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +0 -33
- package/app/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +0 -4
- package/app/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +0 -16
- package/app/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +0 -5
- package/app/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +0 -7
- package/app/node_modules/hono/dist/types/adapter/deno/index.d.ts +0 -8
- package/app/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +0 -3
- package/app/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +0 -13
- package/app/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +0 -87
- package/app/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +0 -21
- package/app/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/netlify/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +0 -16
- package/app/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +0 -28
- package/app/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +0 -12
- package/app/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +0 -2
- package/app/node_modules/hono/dist/types/adapter/vercel/index.d.ts +0 -6
- package/app/node_modules/hono/dist/types/client/client.d.ts +0 -4
- package/app/node_modules/hono/dist/types/client/fetch-result-please.d.ts +0 -35
- package/app/node_modules/hono/dist/types/client/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/client/types.d.ts +0 -229
- package/app/node_modules/hono/dist/types/client/utils.d.ts +0 -18
- package/app/node_modules/hono/dist/types/compose.d.ts +0 -14
- package/app/node_modules/hono/dist/types/context.d.ts +0 -455
- package/app/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +0 -30
- package/app/node_modules/hono/dist/types/helper/accepts/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/helper/adapter/index.d.ts +0 -12
- package/app/node_modules/hono/dist/types/helper/conninfo/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/helper/conninfo/types.d.ts +0 -36
- package/app/node_modules/hono/dist/types/helper/cookie/index.d.ts +0 -24
- package/app/node_modules/hono/dist/types/helper/css/common.d.ts +0 -59
- package/app/node_modules/hono/dist/types/helper/css/index.d.ts +0 -80
- package/app/node_modules/hono/dist/types/helper/dev/index.d.ts +0 -20
- package/app/node_modules/hono/dist/types/helper/factory/index.d.ts +0 -82
- package/app/node_modules/hono/dist/types/helper/html/index.d.ts +0 -8
- package/app/node_modules/hono/dist/types/helper/proxy/index.d.ts +0 -72
- package/app/node_modules/hono/dist/types/helper/route/index.d.ts +0 -75
- package/app/node_modules/hono/dist/types/helper/ssg/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +0 -44
- package/app/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +0 -27
- package/app/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +0 -91
- package/app/node_modules/hono/dist/types/helper/ssg/utils.d.ts +0 -16
- package/app/node_modules/hono/dist/types/helper/streaming/index.d.ts +0 -8
- package/app/node_modules/hono/dist/types/helper/streaming/sse.d.ts +0 -13
- package/app/node_modules/hono/dist/types/helper/streaming/stream.d.ts +0 -3
- package/app/node_modules/hono/dist/types/helper/streaming/text.d.ts +0 -3
- package/app/node_modules/hono/dist/types/helper/streaming/utils.d.ts +0 -1
- package/app/node_modules/hono/dist/types/helper/testing/index.d.ts +0 -12
- package/app/node_modules/hono/dist/types/helper/websocket/index.d.ts +0 -69
- package/app/node_modules/hono/dist/types/hono-base.d.ts +0 -221
- package/app/node_modules/hono/dist/types/hono.d.ts +0 -19
- package/app/node_modules/hono/dist/types/http-exception.d.ts +0 -59
- package/app/node_modules/hono/dist/types/index.d.ts +0 -37
- package/app/node_modules/hono/dist/types/jsx/base.d.ts +0 -58
- package/app/node_modules/hono/dist/types/jsx/children.d.ts +0 -9
- package/app/node_modules/hono/dist/types/jsx/components.d.ts +0 -15
- package/app/node_modules/hono/dist/types/jsx/constants.d.ts +0 -6
- package/app/node_modules/hono/dist/types/jsx/context.d.ts +0 -51
- package/app/node_modules/hono/dist/types/jsx/dom/client.d.ts +0 -31
- package/app/node_modules/hono/dist/types/jsx/dom/components.d.ts +0 -10
- package/app/node_modules/hono/dist/types/jsx/dom/context.d.ts +0 -3
- package/app/node_modules/hono/dist/types/jsx/dom/css.d.ts +0 -83
- package/app/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +0 -39
- package/app/node_modules/hono/dist/types/jsx/dom/index.d.ts +0 -88
- package/app/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +0 -16
- package/app/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +0 -8
- package/app/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +0 -7
- package/app/node_modules/hono/dist/types/jsx/dom/render.d.ts +0 -73
- package/app/node_modules/hono/dist/types/jsx/dom/server.d.ts +0 -106
- package/app/node_modules/hono/dist/types/jsx/dom/utils.d.ts +0 -1
- package/app/node_modules/hono/dist/types/jsx/hooks/index.d.ts +0 -47
- package/app/node_modules/hono/dist/types/jsx/index.d.ts +0 -75
- package/app/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +0 -6
- package/app/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +0 -13
- package/app/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +0 -722
- package/app/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +0 -8
- package/app/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +0 -12
- package/app/node_modules/hono/dist/types/jsx/streaming.d.ts +0 -36
- package/app/node_modules/hono/dist/types/jsx/types.d.ts +0 -35
- package/app/node_modules/hono/dist/types/jsx/utils.d.ts +0 -4
- package/app/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +0 -75
- package/app/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +0 -92
- package/app/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +0 -45
- package/app/node_modules/hono/dist/types/middleware/cache/index.d.ts +0 -45
- package/app/node_modules/hono/dist/types/middleware/combine/index.d.ts +0 -85
- package/app/node_modules/hono/dist/types/middleware/compress/index.d.ts +0 -40
- package/app/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +0 -40
- package/app/node_modules/hono/dist/types/middleware/cors/index.d.ts +0 -55
- package/app/node_modules/hono/dist/types/middleware/csrf/index.d.ts +0 -78
- package/app/node_modules/hono/dist/types/middleware/etag/digest.d.ts +0 -1
- package/app/node_modules/hono/dist/types/middleware/etag/index.d.ts +0 -42
- package/app/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +0 -67
- package/app/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +0 -77
- package/app/node_modules/hono/dist/types/middleware/jwk/index.d.ts +0 -1
- package/app/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +0 -56
- package/app/node_modules/hono/dist/types/middleware/jwt/index.d.ts +0 -8
- package/app/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +0 -69
- package/app/node_modules/hono/dist/types/middleware/language/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/middleware/language/language.d.ts +0 -120
- package/app/node_modules/hono/dist/types/middleware/logger/index.d.ts +0 -24
- package/app/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +0 -49
- package/app/node_modules/hono/dist/types/middleware/method-override/index.d.ts +0 -48
- package/app/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +0 -29
- package/app/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +0 -42
- package/app/node_modules/hono/dist/types/middleware/request-id/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +0 -37
- package/app/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +0 -8
- package/app/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +0 -14
- package/app/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +0 -109
- package/app/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +0 -31
- package/app/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +0 -5
- package/app/node_modules/hono/dist/types/middleware/timeout/index.d.ts +0 -31
- package/app/node_modules/hono/dist/types/middleware/timing/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/middleware/timing/timing.d.ts +0 -129
- package/app/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +0 -94
- package/app/node_modules/hono/dist/types/package.json +0 -3
- package/app/node_modules/hono/dist/types/preset/quick.d.ts +0 -10
- package/app/node_modules/hono/dist/types/preset/tiny.d.ts +0 -10
- package/app/node_modules/hono/dist/types/request/constants.d.ts +0 -1
- package/app/node_modules/hono/dist/types/request.d.ts +0 -324
- package/app/node_modules/hono/dist/types/router/linear-router/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/router/linear-router/router.d.ts +0 -7
- package/app/node_modules/hono/dist/types/router/pattern-router/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/router/pattern-router/router.d.ts +0 -7
- package/app/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +0 -6
- package/app/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +0 -7
- package/app/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +0 -10
- package/app/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +0 -17
- package/app/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +0 -11
- package/app/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +0 -8
- package/app/node_modules/hono/dist/types/router/smart-router/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/router/smart-router/router.d.ts +0 -11
- package/app/node_modules/hono/dist/types/router/trie-router/index.d.ts +0 -5
- package/app/node_modules/hono/dist/types/router/trie-router/node.d.ts +0 -7
- package/app/node_modules/hono/dist/types/router/trie-router/router.d.ts +0 -8
- package/app/node_modules/hono/dist/types/router.d.ts +0 -97
- package/app/node_modules/hono/dist/types/types.d.ts +0 -573
- package/app/node_modules/hono/dist/types/utils/accept.d.ts +0 -6
- package/app/node_modules/hono/dist/types/utils/basic-auth.d.ts +0 -5
- package/app/node_modules/hono/dist/types/utils/body.d.ts +0 -79
- package/app/node_modules/hono/dist/types/utils/buffer.d.ts +0 -17
- package/app/node_modules/hono/dist/types/utils/color.d.ts +0 -21
- package/app/node_modules/hono/dist/types/utils/compress.d.ts +0 -8
- package/app/node_modules/hono/dist/types/utils/concurrent.d.ts +0 -11
- package/app/node_modules/hono/dist/types/utils/constants.d.ts +0 -4
- package/app/node_modules/hono/dist/types/utils/cookie.d.ts +0 -40
- package/app/node_modules/hono/dist/types/utils/crypto.d.ts +0 -15
- package/app/node_modules/hono/dist/types/utils/encode.d.ts +0 -8
- package/app/node_modules/hono/dist/types/utils/filepath.d.ts +0 -12
- package/app/node_modules/hono/dist/types/utils/handler.d.ts +0 -6
- package/app/node_modules/hono/dist/types/utils/headers.d.ts +0 -8
- package/app/node_modules/hono/dist/types/utils/html.d.ts +0 -44
- package/app/node_modules/hono/dist/types/utils/http-status.d.ts +0 -32
- package/app/node_modules/hono/dist/types/utils/ipaddr.d.ts +0 -56
- package/app/node_modules/hono/dist/types/utils/jwt/index.d.ts +0 -18
- package/app/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +0 -23
- package/app/node_modules/hono/dist/types/utils/jwt/jws.d.ts +0 -12
- package/app/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +0 -43
- package/app/node_modules/hono/dist/types/utils/jwt/types.d.ts +0 -86
- package/app/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +0 -6
- package/app/node_modules/hono/dist/types/utils/mime.d.ts +0 -70
- package/app/node_modules/hono/dist/types/utils/stream.d.ts +0 -31
- package/app/node_modules/hono/dist/types/utils/types.d.ts +0 -74
- package/app/node_modules/hono/dist/types/utils/url.d.ts +0 -40
- package/app/node_modules/hono/dist/types/validator/index.d.ts +0 -7
- package/app/node_modules/hono/dist/types/validator/utils.d.ts +0 -29
- package/app/node_modules/hono/dist/types/validator/validator.d.ts +0 -16
- package/app/node_modules/hono/dist/types.js +0 -6
- package/app/node_modules/hono/dist/utils/accept.js +0 -223
- package/app/node_modules/hono/dist/utils/basic-auth.js +0 -23
- package/app/node_modules/hono/dist/utils/body.js +0 -89
- package/app/node_modules/hono/dist/utils/buffer.js +0 -78
- package/app/node_modules/hono/dist/utils/color.js +0 -25
- package/app/node_modules/hono/dist/utils/compress.js +0 -5
- package/app/node_modules/hono/dist/utils/concurrent.js +0 -39
- package/app/node_modules/hono/dist/utils/constants.js +0 -5
- package/app/node_modules/hono/dist/utils/cookie.js +0 -174
- package/app/node_modules/hono/dist/utils/crypto.js +0 -44
- package/app/node_modules/hono/dist/utils/encode.js +0 -29
- package/app/node_modules/hono/dist/utils/filepath.js +0 -35
- package/app/node_modules/hono/dist/utils/handler.js +0 -13
- package/app/node_modules/hono/dist/utils/headers.js +0 -0
- package/app/node_modules/hono/dist/utils/html.js +0 -123
- package/app/node_modules/hono/dist/utils/http-status.js +0 -0
- package/app/node_modules/hono/dist/utils/ipaddr.js +0 -288
- package/app/node_modules/hono/dist/utils/jwt/index.js +0 -6
- package/app/node_modules/hono/dist/utils/jwt/jwa.js +0 -20
- package/app/node_modules/hono/dist/utils/jwt/jws.js +0 -192
- package/app/node_modules/hono/dist/utils/jwt/jwt.js +0 -207
- package/app/node_modules/hono/dist/utils/jwt/types.js +0 -124
- package/app/node_modules/hono/dist/utils/jwt/utf8.js +0 -7
- package/app/node_modules/hono/dist/utils/mime.js +0 -82
- package/app/node_modules/hono/dist/utils/stream.js +0 -84
- package/app/node_modules/hono/dist/utils/types.js +0 -0
- package/app/node_modules/hono/dist/utils/url.js +0 -221
- package/app/node_modules/hono/dist/validator/index.js +0 -5
- package/app/node_modules/hono/dist/validator/utils.js +0 -0
- package/app/node_modules/hono/dist/validator/validator.js +0 -86
- package/app/node_modules/hono/package.json +0 -706
- package/app/node_modules/http-errors/HISTORY.md +0 -186
- package/app/node_modules/http-errors/LICENSE +0 -23
- package/app/node_modules/http-errors/README.md +0 -169
- package/app/node_modules/http-errors/index.js +0 -290
- package/app/node_modules/http-errors/package.json +0 -54
- package/app/node_modules/iconv-lite/LICENSE +0 -21
- package/app/node_modules/iconv-lite/README.md +0 -138
- package/app/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
- package/app/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
- package/app/node_modules/iconv-lite/encodings/index.js +0 -23
- package/app/node_modules/iconv-lite/encodings/internal.js +0 -218
- package/app/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
- package/app/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/app/node_modules/iconv-lite/encodings/sbcs-data.js +0 -180
- package/app/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/app/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/app/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/app/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/app/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/app/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/app/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
- package/app/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/app/node_modules/iconv-lite/encodings/utf16.js +0 -187
- package/app/node_modules/iconv-lite/encodings/utf32.js +0 -314
- package/app/node_modules/iconv-lite/encodings/utf7.js +0 -283
- package/app/node_modules/iconv-lite/lib/bom-handling.js +0 -48
- package/app/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
- package/app/node_modules/iconv-lite/lib/index.d.ts +0 -129
- package/app/node_modules/iconv-lite/lib/index.js +0 -182
- package/app/node_modules/iconv-lite/lib/streams.js +0 -105
- package/app/node_modules/iconv-lite/package.json +0 -70
- package/app/node_modules/iconv-lite/types/encodings.d.ts +0 -425
- package/app/node_modules/inherits/LICENSE +0 -16
- package/app/node_modules/inherits/README.md +0 -42
- package/app/node_modules/inherits/inherits.js +0 -9
- package/app/node_modules/inherits/inherits_browser.js +0 -27
- package/app/node_modules/inherits/package.json +0 -29
- package/app/node_modules/ip-address/LICENSE +0 -19
- package/app/node_modules/ip-address/README.md +0 -298
- package/app/node_modules/ip-address/dist/address-error.d.ts +0 -15
- package/app/node_modules/ip-address/dist/address-error.js +0 -12
- package/app/node_modules/ip-address/dist/common.d.ts +0 -49
- package/app/node_modules/ip-address/dist/common.js +0 -106
- package/app/node_modules/ip-address/dist/ip-address.d.ts +0 -7
- package/app/node_modules/ip-address/dist/ip-address.js +0 -35
- package/app/node_modules/ip-address/dist/ipv4.d.ts +0 -290
- package/app/node_modules/ip-address/dist/ipv4.js +0 -505
- package/app/node_modules/ip-address/dist/ipv6.d.ts +0 -561
- package/app/node_modules/ip-address/dist/ipv6.js +0 -1353
- package/app/node_modules/ip-address/dist/v4/constants.d.ts +0 -4
- package/app/node_modules/ip-address/dist/v4/constants.js +0 -12
- package/app/node_modules/ip-address/dist/v6/constants.d.ts +0 -44
- package/app/node_modules/ip-address/dist/v6/constants.js +0 -82
- package/app/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
- package/app/node_modules/ip-address/dist/v6/helpers.js +0 -54
- package/app/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -5
- package/app/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
- package/app/node_modules/ip-address/package.json +0 -90
- package/app/node_modules/ipaddr.js/LICENSE +0 -19
- package/app/node_modules/ipaddr.js/README.md +0 -233
- package/app/node_modules/ipaddr.js/ipaddr.min.js +0 -1
- package/app/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
- package/app/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
- package/app/node_modules/ipaddr.js/package.json +0 -35
- package/app/node_modules/is-promise/LICENSE +0 -19
- package/app/node_modules/is-promise/index.d.ts +0 -2
- package/app/node_modules/is-promise/index.js +0 -6
- package/app/node_modules/is-promise/index.mjs +0 -3
- package/app/node_modules/is-promise/package.json +0 -30
- package/app/node_modules/is-promise/readme.md +0 -33
- package/app/node_modules/isexe/LICENSE +0 -15
- package/app/node_modules/isexe/README.md +0 -51
- package/app/node_modules/isexe/index.js +0 -57
- package/app/node_modules/isexe/mode.js +0 -41
- package/app/node_modules/isexe/package.json +0 -31
- package/app/node_modules/isexe/test/basic.js +0 -221
- package/app/node_modules/isexe/windows.js +0 -42
- package/app/node_modules/jose/LICENSE.md +0 -21
- package/app/node_modules/jose/README.md +0 -150
- package/app/node_modules/jose/dist/types/index.d.ts +0 -56
- package/app/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -37
- package/app/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -53
- package/app/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -37
- package/app/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -71
- package/app/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -43
- package/app/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -73
- package/app/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -13
- package/app/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -17
- package/app/node_modules/jose/dist/types/jwks/local.d.ts +0 -20
- package/app/node_modules/jose/dist/types/jwks/remote.d.ts +0 -106
- package/app/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -25
- package/app/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -37
- package/app/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -31
- package/app/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -37
- package/app/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -52
- package/app/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -44
- package/app/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -41
- package/app/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -67
- package/app/node_modules/jose/dist/types/jwt/sign.d.ts +0 -32
- package/app/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -34
- package/app/node_modules/jose/dist/types/jwt/verify.d.ts +0 -38
- package/app/node_modules/jose/dist/types/key/export.d.ts +0 -19
- package/app/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -40
- package/app/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -37
- package/app/node_modules/jose/dist/types/key/import.d.ts +0 -73
- package/app/node_modules/jose/dist/types/types.d.ts +0 -869
- package/app/node_modules/jose/dist/types/util/base64url.d.ts +0 -16
- package/app/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -10
- package/app/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -9
- package/app/node_modules/jose/dist/types/util/errors.d.ts +0 -220
- package/app/node_modules/jose/dist/webapi/index.js +0 -32
- package/app/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -9
- package/app/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
- package/app/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -11
- package/app/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -72
- package/app/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -51
- package/app/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -166
- package/app/node_modules/jose/dist/webapi/jwk/embedded.js +0 -19
- package/app/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
- package/app/node_modules/jose/dist/webapi/jwks/local.js +0 -78
- package/app/node_modules/jose/dist/webapi/jwks/remote.js +0 -170
- package/app/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -21
- package/app/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -9
- package/app/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -31
- package/app/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -24
- package/app/node_modules/jose/dist/webapi/jws/general/sign.js +0 -74
- package/app/node_modules/jose/dist/webapi/jws/general/verify.js +0 -44
- package/app/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
- package/app/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -101
- package/app/node_modules/jose/dist/webapi/jwt/sign.js +0 -51
- package/app/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -64
- package/app/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
- package/app/node_modules/jose/dist/webapi/key/export.js +0 -44
- package/app/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -48
- package/app/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
- package/app/node_modules/jose/dist/webapi/key/import.js +0 -57
- package/app/node_modules/jose/dist/webapi/lib/asn1.js +0 -174
- package/app/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/app/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -44
- package/app/node_modules/jose/dist/webapi/lib/content_encryption.js +0 -142
- package/app/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -28
- package/app/node_modules/jose/dist/webapi/lib/deflate.js +0 -44
- package/app/node_modules/jose/dist/webapi/lib/helpers.js +0 -42
- package/app/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -26
- package/app/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/app/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -107
- package/app/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +0 -186
- package/app/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +0 -110
- package/app/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -17
- package/app/node_modules/jose/dist/webapi/lib/jws_algorithms.js +0 -73
- package/app/node_modules/jose/dist/webapi/lib/jws_sign.js +0 -74
- package/app/node_modules/jose/dist/webapi/lib/jws_verify.js +0 -107
- package/app/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -197
- package/app/node_modules/jose/dist/webapi/lib/key.js +0 -132
- package/app/node_modules/jose/dist/webapi/lib/key_algorithm.js +0 -10
- package/app/node_modules/jose/dist/webapi/lib/key_descriptor.js +0 -7
- package/app/node_modules/jose/dist/webapi/lib/key_management.js +0 -256
- package/app/node_modules/jose/dist/webapi/lib/options.js +0 -48
- package/app/node_modules/jose/dist/webapi/lib/signing.js +0 -26
- package/app/node_modules/jose/dist/webapi/lib/type_checks.js +0 -35
- package/app/node_modules/jose/dist/webapi/util/base64url.js +0 -39
- package/app/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
- package/app/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -24
- package/app/node_modules/jose/dist/webapi/util/errors.js +0 -99
- package/app/node_modules/jose/package.json +0 -198
- package/app/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
- package/app/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
- package/app/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
- package/app/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
- package/app/node_modules/json-schema-traverse/LICENSE +0 -21
- package/app/node_modules/json-schema-traverse/README.md +0 -95
- package/app/node_modules/json-schema-traverse/index.d.ts +0 -40
- package/app/node_modules/json-schema-traverse/index.js +0 -93
- package/app/node_modules/json-schema-traverse/package.json +0 -43
- package/app/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
- package/app/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
- package/app/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
- package/app/node_modules/json-schema-typed/LICENSE.md +0 -57
- package/app/node_modules/json-schema-typed/README.md +0 -108
- package/app/node_modules/json-schema-typed/draft_07.d.ts +0 -882
- package/app/node_modules/json-schema-typed/draft_07.js +0 -328
- package/app/node_modules/json-schema-typed/draft_2019_09.d.ts +0 -1247
- package/app/node_modules/json-schema-typed/draft_2019_09.js +0 -349
- package/app/node_modules/json-schema-typed/draft_2020_12.d.ts +0 -1239
- package/app/node_modules/json-schema-typed/draft_2020_12.js +0 -352
- package/app/node_modules/json-schema-typed/package.json +0 -44
- package/app/node_modules/math-intrinsics/.eslintrc +0 -16
- package/app/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/app/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/app/node_modules/math-intrinsics/LICENSE +0 -21
- package/app/node_modules/math-intrinsics/README.md +0 -50
- package/app/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/app/node_modules/math-intrinsics/abs.js +0 -4
- package/app/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/app/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/app/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/app/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/app/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/app/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/app/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/app/node_modules/math-intrinsics/floor.js +0 -4
- package/app/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/app/node_modules/math-intrinsics/isFinite.js +0 -12
- package/app/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/app/node_modules/math-intrinsics/isInteger.js +0 -16
- package/app/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/app/node_modules/math-intrinsics/isNaN.js +0 -6
- package/app/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/app/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/app/node_modules/math-intrinsics/max.d.ts +0 -1
- package/app/node_modules/math-intrinsics/max.js +0 -4
- package/app/node_modules/math-intrinsics/min.d.ts +0 -1
- package/app/node_modules/math-intrinsics/min.js +0 -4
- package/app/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/app/node_modules/math-intrinsics/mod.js +0 -9
- package/app/node_modules/math-intrinsics/package.json +0 -86
- package/app/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/app/node_modules/math-intrinsics/pow.js +0 -4
- package/app/node_modules/math-intrinsics/round.d.ts +0 -1
- package/app/node_modules/math-intrinsics/round.js +0 -4
- package/app/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/app/node_modules/math-intrinsics/sign.js +0 -11
- package/app/node_modules/math-intrinsics/test/index.js +0 -192
- package/app/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/app/node_modules/media-typer/HISTORY.md +0 -50
- package/app/node_modules/media-typer/LICENSE +0 -22
- package/app/node_modules/media-typer/README.md +0 -94
- package/app/node_modules/media-typer/index.js +0 -135
- package/app/node_modules/media-typer/package.json +0 -37
- package/app/node_modules/merge-descriptors/index.d.ts +0 -11
- package/app/node_modules/merge-descriptors/index.js +0 -26
- package/app/node_modules/merge-descriptors/license +0 -11
- package/app/node_modules/merge-descriptors/package.json +0 -50
- package/app/node_modules/merge-descriptors/readme.md +0 -55
- package/app/node_modules/mime-db/HISTORY.md +0 -541
- package/app/node_modules/mime-db/LICENSE +0 -23
- package/app/node_modules/mime-db/README.md +0 -109
- package/app/node_modules/mime-db/db.json +0 -9342
- package/app/node_modules/mime-db/index.js +0 -12
- package/app/node_modules/mime-db/package.json +0 -56
- package/app/node_modules/mime-types/HISTORY.md +0 -428
- package/app/node_modules/mime-types/LICENSE +0 -23
- package/app/node_modules/mime-types/README.md +0 -126
- package/app/node_modules/mime-types/index.js +0 -211
- package/app/node_modules/mime-types/mimeScore.js +0 -57
- package/app/node_modules/mime-types/package.json +0 -49
- package/app/node_modules/ms/index.js +0 -162
- package/app/node_modules/ms/license.md +0 -21
- package/app/node_modules/ms/package.json +0 -38
- package/app/node_modules/ms/readme.md +0 -59
- package/app/node_modules/negotiator/HISTORY.md +0 -114
- package/app/node_modules/negotiator/LICENSE +0 -24
- package/app/node_modules/negotiator/README.md +0 -212
- package/app/node_modules/negotiator/index.js +0 -83
- package/app/node_modules/negotiator/lib/charset.js +0 -169
- package/app/node_modules/negotiator/lib/encoding.js +0 -205
- package/app/node_modules/negotiator/lib/language.js +0 -179
- package/app/node_modules/negotiator/lib/mediaType.js +0 -294
- package/app/node_modules/negotiator/package.json +0 -43
- package/app/node_modules/object-assign/index.js +0 -90
- package/app/node_modules/object-assign/license +0 -21
- package/app/node_modules/object-assign/package.json +0 -42
- package/app/node_modules/object-assign/readme.md +0 -61
- package/app/node_modules/object-inspect/.eslintrc +0 -53
- package/app/node_modules/object-inspect/.github/FUNDING.yml +0 -12
- package/app/node_modules/object-inspect/.nycrc +0 -13
- package/app/node_modules/object-inspect/CHANGELOG.md +0 -424
- package/app/node_modules/object-inspect/LICENSE +0 -21
- package/app/node_modules/object-inspect/example/all.js +0 -23
- package/app/node_modules/object-inspect/example/circular.js +0 -6
- package/app/node_modules/object-inspect/example/fn.js +0 -5
- package/app/node_modules/object-inspect/example/inspect.js +0 -10
- package/app/node_modules/object-inspect/index.js +0 -544
- package/app/node_modules/object-inspect/package-support.json +0 -20
- package/app/node_modules/object-inspect/package.json +0 -105
- package/app/node_modules/object-inspect/readme.markdown +0 -84
- package/app/node_modules/object-inspect/test/bigint.js +0 -58
- package/app/node_modules/object-inspect/test/browser/dom.js +0 -15
- package/app/node_modules/object-inspect/test/circular.js +0 -16
- package/app/node_modules/object-inspect/test/deep.js +0 -12
- package/app/node_modules/object-inspect/test/element.js +0 -53
- package/app/node_modules/object-inspect/test/err.js +0 -48
- package/app/node_modules/object-inspect/test/fakes.js +0 -29
- package/app/node_modules/object-inspect/test/fn.js +0 -76
- package/app/node_modules/object-inspect/test/global.js +0 -17
- package/app/node_modules/object-inspect/test/has.js +0 -15
- package/app/node_modules/object-inspect/test/holes.js +0 -15
- package/app/node_modules/object-inspect/test/indent-option.js +0 -271
- package/app/node_modules/object-inspect/test/inspect.js +0 -139
- package/app/node_modules/object-inspect/test/lowbyte.js +0 -12
- package/app/node_modules/object-inspect/test/number.js +0 -58
- package/app/node_modules/object-inspect/test/quoteStyle.js +0 -26
- package/app/node_modules/object-inspect/test/toStringTag.js +0 -40
- package/app/node_modules/object-inspect/test/undef.js +0 -12
- package/app/node_modules/object-inspect/test/values.js +0 -261
- package/app/node_modules/object-inspect/test-core-js.js +0 -26
- package/app/node_modules/object-inspect/util.inspect.js +0 -1
- package/app/node_modules/on-finished/HISTORY.md +0 -98
- package/app/node_modules/on-finished/LICENSE +0 -23
- package/app/node_modules/on-finished/README.md +0 -162
- package/app/node_modules/on-finished/index.js +0 -234
- package/app/node_modules/on-finished/package.json +0 -39
- package/app/node_modules/once/LICENSE +0 -15
- package/app/node_modules/once/README.md +0 -79
- package/app/node_modules/once/once.js +0 -42
- package/app/node_modules/once/package.json +0 -33
- package/app/node_modules/parseurl/HISTORY.md +0 -58
- package/app/node_modules/parseurl/LICENSE +0 -24
- package/app/node_modules/parseurl/README.md +0 -133
- package/app/node_modules/parseurl/index.js +0 -158
- package/app/node_modules/parseurl/package.json +0 -40
- package/app/node_modules/path-key/index.d.ts +0 -40
- package/app/node_modules/path-key/index.js +0 -16
- package/app/node_modules/path-key/license +0 -9
- package/app/node_modules/path-key/package.json +0 -39
- package/app/node_modules/path-key/readme.md +0 -61
- package/app/node_modules/path-to-regexp/LICENSE +0 -21
- package/app/node_modules/path-to-regexp/Readme.md +0 -224
- package/app/node_modules/path-to-regexp/dist/index.d.ts +0 -147
- package/app/node_modules/path-to-regexp/dist/index.js +0 -431
- package/app/node_modules/path-to-regexp/package.json +0 -64
- package/app/node_modules/pkce-challenge/CHANGELOG.md +0 -114
- package/app/node_modules/pkce-challenge/LICENSE +0 -21
- package/app/node_modules/pkce-challenge/README.md +0 -55
- package/app/node_modules/pkce-challenge/dist/index.browser.d.ts +0 -19
- package/app/node_modules/pkce-challenge/dist/index.browser.js +0 -75
- package/app/node_modules/pkce-challenge/dist/index.node.cjs +0 -83
- package/app/node_modules/pkce-challenge/dist/index.node.d.cts +0 -19
- package/app/node_modules/pkce-challenge/dist/index.node.d.ts +0 -19
- package/app/node_modules/pkce-challenge/dist/index.node.js +0 -78
- package/app/node_modules/pkce-challenge/package.json +0 -59
- package/app/node_modules/proxy-addr/HISTORY.md +0 -161
- package/app/node_modules/proxy-addr/LICENSE +0 -22
- package/app/node_modules/proxy-addr/README.md +0 -139
- package/app/node_modules/proxy-addr/index.js +0 -327
- package/app/node_modules/proxy-addr/package.json +0 -47
- package/app/node_modules/qs/.editorconfig +0 -46
- package/app/node_modules/qs/.github/FUNDING.yml +0 -12
- package/app/node_modules/qs/.github/SECURITY.md +0 -11
- package/app/node_modules/qs/.github/THREAT_MODEL.md +0 -78
- package/app/node_modules/qs/.nycrc +0 -13
- package/app/node_modules/qs/CHANGELOG.md +0 -833
- package/app/node_modules/qs/LICENSE.md +0 -29
- package/app/node_modules/qs/README.md +0 -758
- package/app/node_modules/qs/dist/qs.js +0 -141
- package/app/node_modules/qs/eslint.config.mjs +0 -57
- package/app/node_modules/qs/lib/formats.js +0 -23
- package/app/node_modules/qs/lib/index.js +0 -11
- package/app/node_modules/qs/lib/parse.js +0 -414
- package/app/node_modules/qs/lib/stringify.js +0 -363
- package/app/node_modules/qs/lib/utils.js +0 -381
- package/app/node_modules/qs/package.json +0 -95
- package/app/node_modules/qs/test/empty-keys-cases.js +0 -267
- package/app/node_modules/qs/test/parse.js +0 -1933
- package/app/node_modules/qs/test/stringify.js +0 -1448
- package/app/node_modules/qs/test/utils.js +0 -626
- package/app/node_modules/range-parser/HISTORY.md +0 -56
- package/app/node_modules/range-parser/LICENSE +0 -23
- package/app/node_modules/range-parser/README.md +0 -85
- package/app/node_modules/range-parser/index.js +0 -181
- package/app/node_modules/range-parser/package.json +0 -48
- package/app/node_modules/raw-body/LICENSE +0 -22
- package/app/node_modules/raw-body/README.md +0 -223
- package/app/node_modules/raw-body/index.d.ts +0 -85
- package/app/node_modules/raw-body/index.js +0 -336
- package/app/node_modules/raw-body/package.json +0 -46
- package/app/node_modules/require-from-string/index.js +0 -34
- package/app/node_modules/require-from-string/license +0 -21
- package/app/node_modules/require-from-string/package.json +0 -28
- package/app/node_modules/require-from-string/readme.md +0 -56
- package/app/node_modules/router/HISTORY.md +0 -228
- package/app/node_modules/router/LICENSE +0 -23
- package/app/node_modules/router/README.md +0 -416
- package/app/node_modules/router/index.js +0 -748
- package/app/node_modules/router/lib/layer.js +0 -247
- package/app/node_modules/router/lib/route.js +0 -242
- package/app/node_modules/router/package.json +0 -44
- package/app/node_modules/safer-buffer/LICENSE +0 -21
- package/app/node_modules/safer-buffer/Porting-Buffer.md +0 -268
- package/app/node_modules/safer-buffer/Readme.md +0 -156
- package/app/node_modules/safer-buffer/dangerous.js +0 -58
- package/app/node_modules/safer-buffer/package.json +0 -34
- package/app/node_modules/safer-buffer/safer.js +0 -77
- package/app/node_modules/safer-buffer/tests.js +0 -406
- package/app/node_modules/send/LICENSE +0 -23
- package/app/node_modules/send/README.md +0 -317
- package/app/node_modules/send/index.js +0 -997
- package/app/node_modules/send/package.json +0 -63
- package/app/node_modules/serve-static/LICENSE +0 -25
- package/app/node_modules/serve-static/README.md +0 -253
- package/app/node_modules/serve-static/index.js +0 -208
- package/app/node_modules/serve-static/package.json +0 -44
- package/app/node_modules/setprototypeof/LICENSE +0 -13
- package/app/node_modules/setprototypeof/README.md +0 -31
- package/app/node_modules/setprototypeof/index.d.ts +0 -2
- package/app/node_modules/setprototypeof/index.js +0 -17
- package/app/node_modules/setprototypeof/package.json +0 -38
- package/app/node_modules/setprototypeof/test/index.js +0 -24
- package/app/node_modules/shebang-command/index.js +0 -19
- package/app/node_modules/shebang-command/license +0 -9
- package/app/node_modules/shebang-command/package.json +0 -34
- package/app/node_modules/shebang-command/readme.md +0 -34
- package/app/node_modules/shebang-regex/index.d.ts +0 -22
- package/app/node_modules/shebang-regex/index.js +0 -2
- package/app/node_modules/shebang-regex/license +0 -9
- package/app/node_modules/shebang-regex/package.json +0 -35
- package/app/node_modules/shebang-regex/readme.md +0 -33
- package/app/node_modules/side-channel/.editorconfig +0 -9
- package/app/node_modules/side-channel/.eslintrc +0 -12
- package/app/node_modules/side-channel/.github/FUNDING.yml +0 -12
- package/app/node_modules/side-channel/.nycrc +0 -13
- package/app/node_modules/side-channel/CHANGELOG.md +0 -120
- package/app/node_modules/side-channel/LICENSE +0 -21
- package/app/node_modules/side-channel/README.md +0 -61
- package/app/node_modules/side-channel/index.d.ts +0 -14
- package/app/node_modules/side-channel/index.js +0 -46
- package/app/node_modules/side-channel/package.json +0 -85
- package/app/node_modules/side-channel/test/index.js +0 -120
- package/app/node_modules/side-channel/tsconfig.json +0 -9
- package/app/node_modules/side-channel-list/.editorconfig +0 -9
- package/app/node_modules/side-channel-list/.eslintrc +0 -11
- package/app/node_modules/side-channel-list/.github/FUNDING.yml +0 -12
- package/app/node_modules/side-channel-list/.nycrc +0 -13
- package/app/node_modules/side-channel-list/CHANGELOG.md +0 -36
- package/app/node_modules/side-channel-list/LICENSE +0 -21
- package/app/node_modules/side-channel-list/README.md +0 -62
- package/app/node_modules/side-channel-list/index.d.ts +0 -13
- package/app/node_modules/side-channel-list/index.js +0 -111
- package/app/node_modules/side-channel-list/list.d.ts +0 -14
- package/app/node_modules/side-channel-list/package.json +0 -77
- package/app/node_modules/side-channel-list/test/index.js +0 -154
- package/app/node_modules/side-channel-list/tsconfig.json +0 -9
- package/app/node_modules/side-channel-map/.editorconfig +0 -9
- package/app/node_modules/side-channel-map/.eslintrc +0 -11
- package/app/node_modules/side-channel-map/.github/FUNDING.yml +0 -12
- package/app/node_modules/side-channel-map/.nycrc +0 -13
- package/app/node_modules/side-channel-map/CHANGELOG.md +0 -22
- package/app/node_modules/side-channel-map/LICENSE +0 -21
- package/app/node_modules/side-channel-map/README.md +0 -62
- package/app/node_modules/side-channel-map/index.d.ts +0 -15
- package/app/node_modules/side-channel-map/index.js +0 -68
- package/app/node_modules/side-channel-map/package.json +0 -80
- package/app/node_modules/side-channel-map/test/index.js +0 -114
- package/app/node_modules/side-channel-map/tsconfig.json +0 -9
- package/app/node_modules/side-channel-weakmap/.editorconfig +0 -9
- package/app/node_modules/side-channel-weakmap/.eslintrc +0 -12
- package/app/node_modules/side-channel-weakmap/.github/FUNDING.yml +0 -12
- package/app/node_modules/side-channel-weakmap/.nycrc +0 -13
- package/app/node_modules/side-channel-weakmap/CHANGELOG.md +0 -28
- package/app/node_modules/side-channel-weakmap/LICENSE +0 -21
- package/app/node_modules/side-channel-weakmap/README.md +0 -62
- package/app/node_modules/side-channel-weakmap/index.d.ts +0 -15
- package/app/node_modules/side-channel-weakmap/index.js +0 -84
- package/app/node_modules/side-channel-weakmap/package.json +0 -87
- package/app/node_modules/side-channel-weakmap/test/index.js +0 -114
- package/app/node_modules/side-channel-weakmap/tsconfig.json +0 -9
- package/app/node_modules/statuses/HISTORY.md +0 -87
- package/app/node_modules/statuses/LICENSE +0 -23
- package/app/node_modules/statuses/README.md +0 -139
- package/app/node_modules/statuses/codes.json +0 -65
- package/app/node_modules/statuses/index.js +0 -146
- package/app/node_modules/statuses/package.json +0 -49
- package/app/node_modules/toidentifier/HISTORY.md +0 -9
- package/app/node_modules/toidentifier/LICENSE +0 -21
- package/app/node_modules/toidentifier/README.md +0 -61
- package/app/node_modules/toidentifier/index.js +0 -32
- package/app/node_modules/toidentifier/package.json +0 -38
- package/app/node_modules/type-is/HISTORY.md +0 -292
- package/app/node_modules/type-is/LICENSE +0 -23
- package/app/node_modules/type-is/README.md +0 -198
- package/app/node_modules/type-is/index.js +0 -240
- package/app/node_modules/type-is/package.json +0 -51
- package/app/node_modules/unpipe/HISTORY.md +0 -4
- package/app/node_modules/unpipe/LICENSE +0 -22
- package/app/node_modules/unpipe/README.md +0 -43
- package/app/node_modules/unpipe/index.js +0 -69
- package/app/node_modules/unpipe/package.json +0 -27
- package/app/node_modules/vary/HISTORY.md +0 -39
- package/app/node_modules/vary/LICENSE +0 -22
- package/app/node_modules/vary/README.md +0 -101
- package/app/node_modules/vary/index.js +0 -149
- package/app/node_modules/vary/package.json +0 -43
- package/app/node_modules/which/CHANGELOG.md +0 -166
- package/app/node_modules/which/LICENSE +0 -15
- package/app/node_modules/which/README.md +0 -54
- package/app/node_modules/which/bin/node-which +0 -52
- package/app/node_modules/which/package.json +0 -43
- package/app/node_modules/which/which.js +0 -125
- package/app/node_modules/wrappy/LICENSE +0 -15
- package/app/node_modules/wrappy/README.md +0 -36
- package/app/node_modules/wrappy/package.json +0 -29
- package/app/node_modules/wrappy/wrappy.js +0 -33
- package/app/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/app/node_modules/zod-to-json-schema/.github/FUNDING.yml +0 -1
- package/app/node_modules/zod-to-json-schema/.prettierrc.json +0 -1
- package/app/node_modules/zod-to-json-schema/LICENSE +0 -15
- package/app/node_modules/zod-to-json-schema/README.md +0 -390
- package/app/node_modules/zod-to-json-schema/changelog.md +0 -83
- package/app/node_modules/zod-to-json-schema/contributing.md +0 -9
- package/app/node_modules/zod-to-json-schema/createIndex.ts +0 -32
- package/app/node_modules/zod-to-json-schema/dist/cjs/Options.js +0 -51
- package/app/node_modules/zod-to-json-schema/dist/cjs/Refs.js +0 -26
- package/app/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +0 -19
- package/app/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +0 -12
- package/app/node_modules/zod-to-json-schema/dist/cjs/index.js +0 -56
- package/app/node_modules/zod-to-json-schema/dist/cjs/package.json +0 -1
- package/app/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +0 -66
- package/app/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +0 -2
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +0 -21
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +0 -30
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +0 -53
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +0 -9
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +0 -8
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +0 -8
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +0 -50
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +0 -11
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +0 -11
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +0 -10
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +0 -56
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +0 -25
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +0 -30
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +0 -20
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +0 -15
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +0 -14
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +0 -37
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +0 -56
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +0 -76
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +0 -25
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +0 -24
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +0 -8
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +0 -8
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +0 -65
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +0 -24
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +0 -356
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +0 -36
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +0 -10
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +0 -84
- package/app/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +0 -8
- package/app/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +0 -109
- package/app/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +0 -90
- package/app/node_modules/zod-to-json-schema/dist/esm/Options.js +0 -46
- package/app/node_modules/zod-to-json-schema/dist/esm/Refs.js +0 -22
- package/app/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +0 -14
- package/app/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +0 -8
- package/app/node_modules/zod-to-json-schema/dist/esm/index.js +0 -40
- package/app/node_modules/zod-to-json-schema/dist/esm/package.json +0 -1
- package/app/node_modules/zod-to-json-schema/dist/esm/parseDef.js +0 -62
- package/app/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +0 -1
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +0 -17
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +0 -26
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +0 -49
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +0 -5
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +0 -4
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +0 -4
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +0 -46
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +0 -7
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +0 -7
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +0 -6
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +0 -52
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +0 -21
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +0 -26
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +0 -16
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +0 -11
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +0 -10
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +0 -33
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +0 -52
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +0 -72
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +0 -21
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +0 -20
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +0 -4
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +0 -4
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +0 -61
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +0 -20
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -352
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +0 -32
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +0 -6
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +0 -80
- package/app/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +0 -4
- package/app/node_modules/zod-to-json-schema/dist/esm/selectParser.js +0 -105
- package/app/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +0 -87
- package/app/node_modules/zod-to-json-schema/dist/types/Options.d.ts +0 -37
- package/app/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +0 -17
- package/app/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +0 -15
- package/app/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +0 -1
- package/app/node_modules/zod-to-json-schema/dist/types/index.d.ts +0 -40
- package/app/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +0 -4
- package/app/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +0 -34
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +0 -5
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +0 -12
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +0 -14
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +0 -4
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +0 -3
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +0 -3
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +0 -15
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +0 -6
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +0 -4
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +0 -6
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +0 -8
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +0 -9
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +0 -15
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +0 -6
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +0 -6
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +0 -5
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +0 -10
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +0 -13
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +0 -10
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +0 -4
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +0 -5
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +0 -4
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +0 -3
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +0 -13
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +0 -13
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +0 -73
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +0 -13
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +0 -6
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +0 -23
- package/app/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +0 -4
- package/app/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +0 -5
- package/app/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +0 -10
- package/app/node_modules/zod-to-json-schema/package.json +0 -85
- package/app/node_modules/zod-to-json-schema/postcjs.ts +0 -3
- package/app/node_modules/zod-to-json-schema/postesm.ts +0 -3
- package/app/package.json +0 -43
- package/dist/ai-command-2LSCDGUE.js +0 -218
- package/dist/check-command-W52TXOPN.js +0 -101
- package/dist/chunk-FN63LYZH.js +0 -825
- package/dist/chunk-HFFASR7D.js +0 -789
- package/dist/chunk-K27F6QDR.js +0 -8050
- package/dist/chunk-MU4KCYKO.js +0 -107
- package/dist/chunk-RC6OXHI6.js +0 -1286
- package/dist/chunk-RX4GQLU2.js +0 -365
- package/dist/dist-7ZFLUTJ3.js +0 -292
- package/dist/dist-ON3THUVO.js +0 -73
- package/dist/md-command-PBOLZO5S.js +0 -278
- package/dist/next-command-3J7F27RT.js +0 -243
- package/dist/north-command-VZKU3BBM.js +0 -279
- package/dist/review-command-PWW276HI.js +0 -92
- package/dist/twin-command-OA2R6OUW.js +0 -1315
- /package/app/apps/web/.next-bundle/static/{IoWYBo4jj6B8WTfswm-wr → mhsTm5XiqL98MCgDVB08u}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,4920 @@
|
|
|
1
|
+
import {
|
|
2
|
+
APP_FAULTS,
|
|
3
|
+
AppFault,
|
|
4
|
+
FAULT_PART,
|
|
5
|
+
HOST_FAULTS,
|
|
6
|
+
MANAGER_FAULTS,
|
|
7
|
+
asAppFault,
|
|
8
|
+
faultOf,
|
|
9
|
+
isAppFaultCode
|
|
10
|
+
} from "./chunk-DITTKJ7U.js";
|
|
11
|
+
import {
|
|
12
|
+
findExecutable,
|
|
13
|
+
panomaPath,
|
|
14
|
+
resolveExecutable
|
|
15
|
+
} from "./chunk-5EG7NRL4.js";
|
|
16
|
+
import {
|
|
17
|
+
__export
|
|
18
|
+
} from "./chunk-MLKGABMK.js";
|
|
19
|
+
|
|
20
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
21
|
+
var external_exports = {};
|
|
22
|
+
__export(external_exports, {
|
|
23
|
+
BRAND: () => BRAND,
|
|
24
|
+
DIRTY: () => DIRTY,
|
|
25
|
+
EMPTY_PATH: () => EMPTY_PATH,
|
|
26
|
+
INVALID: () => INVALID,
|
|
27
|
+
NEVER: () => NEVER,
|
|
28
|
+
OK: () => OK,
|
|
29
|
+
ParseStatus: () => ParseStatus,
|
|
30
|
+
Schema: () => ZodType,
|
|
31
|
+
ZodAny: () => ZodAny,
|
|
32
|
+
ZodArray: () => ZodArray,
|
|
33
|
+
ZodBigInt: () => ZodBigInt,
|
|
34
|
+
ZodBoolean: () => ZodBoolean,
|
|
35
|
+
ZodBranded: () => ZodBranded,
|
|
36
|
+
ZodCatch: () => ZodCatch,
|
|
37
|
+
ZodDate: () => ZodDate,
|
|
38
|
+
ZodDefault: () => ZodDefault,
|
|
39
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
40
|
+
ZodEffects: () => ZodEffects,
|
|
41
|
+
ZodEnum: () => ZodEnum,
|
|
42
|
+
ZodError: () => ZodError,
|
|
43
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
44
|
+
ZodFunction: () => ZodFunction,
|
|
45
|
+
ZodIntersection: () => ZodIntersection,
|
|
46
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
47
|
+
ZodLazy: () => ZodLazy,
|
|
48
|
+
ZodLiteral: () => ZodLiteral,
|
|
49
|
+
ZodMap: () => ZodMap,
|
|
50
|
+
ZodNaN: () => ZodNaN,
|
|
51
|
+
ZodNativeEnum: () => ZodNativeEnum,
|
|
52
|
+
ZodNever: () => ZodNever,
|
|
53
|
+
ZodNull: () => ZodNull,
|
|
54
|
+
ZodNullable: () => ZodNullable,
|
|
55
|
+
ZodNumber: () => ZodNumber,
|
|
56
|
+
ZodObject: () => ZodObject,
|
|
57
|
+
ZodOptional: () => ZodOptional,
|
|
58
|
+
ZodParsedType: () => ZodParsedType,
|
|
59
|
+
ZodPipeline: () => ZodPipeline,
|
|
60
|
+
ZodPromise: () => ZodPromise,
|
|
61
|
+
ZodReadonly: () => ZodReadonly,
|
|
62
|
+
ZodRecord: () => ZodRecord,
|
|
63
|
+
ZodSchema: () => ZodType,
|
|
64
|
+
ZodSet: () => ZodSet,
|
|
65
|
+
ZodString: () => ZodString,
|
|
66
|
+
ZodSymbol: () => ZodSymbol,
|
|
67
|
+
ZodTransformer: () => ZodEffects,
|
|
68
|
+
ZodTuple: () => ZodTuple,
|
|
69
|
+
ZodType: () => ZodType,
|
|
70
|
+
ZodUndefined: () => ZodUndefined,
|
|
71
|
+
ZodUnion: () => ZodUnion,
|
|
72
|
+
ZodUnknown: () => ZodUnknown,
|
|
73
|
+
ZodVoid: () => ZodVoid,
|
|
74
|
+
addIssueToContext: () => addIssueToContext,
|
|
75
|
+
any: () => anyType,
|
|
76
|
+
array: () => arrayType,
|
|
77
|
+
bigint: () => bigIntType,
|
|
78
|
+
boolean: () => booleanType,
|
|
79
|
+
coerce: () => coerce,
|
|
80
|
+
custom: () => custom,
|
|
81
|
+
date: () => dateType,
|
|
82
|
+
datetimeRegex: () => datetimeRegex,
|
|
83
|
+
defaultErrorMap: () => en_default,
|
|
84
|
+
discriminatedUnion: () => discriminatedUnionType,
|
|
85
|
+
effect: () => effectsType,
|
|
86
|
+
enum: () => enumType,
|
|
87
|
+
function: () => functionType,
|
|
88
|
+
getErrorMap: () => getErrorMap,
|
|
89
|
+
getParsedType: () => getParsedType,
|
|
90
|
+
instanceof: () => instanceOfType,
|
|
91
|
+
intersection: () => intersectionType,
|
|
92
|
+
isAborted: () => isAborted,
|
|
93
|
+
isAsync: () => isAsync,
|
|
94
|
+
isDirty: () => isDirty,
|
|
95
|
+
isValid: () => isValid,
|
|
96
|
+
late: () => late,
|
|
97
|
+
lazy: () => lazyType,
|
|
98
|
+
literal: () => literalType,
|
|
99
|
+
makeIssue: () => makeIssue,
|
|
100
|
+
map: () => mapType,
|
|
101
|
+
nan: () => nanType,
|
|
102
|
+
nativeEnum: () => nativeEnumType,
|
|
103
|
+
never: () => neverType,
|
|
104
|
+
null: () => nullType,
|
|
105
|
+
nullable: () => nullableType,
|
|
106
|
+
number: () => numberType,
|
|
107
|
+
object: () => objectType,
|
|
108
|
+
objectUtil: () => objectUtil,
|
|
109
|
+
oboolean: () => oboolean,
|
|
110
|
+
onumber: () => onumber,
|
|
111
|
+
optional: () => optionalType,
|
|
112
|
+
ostring: () => ostring,
|
|
113
|
+
pipeline: () => pipelineType,
|
|
114
|
+
preprocess: () => preprocessType,
|
|
115
|
+
promise: () => promiseType,
|
|
116
|
+
quotelessJson: () => quotelessJson,
|
|
117
|
+
record: () => recordType,
|
|
118
|
+
set: () => setType,
|
|
119
|
+
setErrorMap: () => setErrorMap,
|
|
120
|
+
strictObject: () => strictObjectType,
|
|
121
|
+
string: () => stringType,
|
|
122
|
+
symbol: () => symbolType,
|
|
123
|
+
transformer: () => effectsType,
|
|
124
|
+
tuple: () => tupleType,
|
|
125
|
+
undefined: () => undefinedType,
|
|
126
|
+
union: () => unionType,
|
|
127
|
+
unknown: () => unknownType,
|
|
128
|
+
util: () => util,
|
|
129
|
+
void: () => voidType
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
133
|
+
var util;
|
|
134
|
+
(function(util2) {
|
|
135
|
+
util2.assertEqual = (_) => {
|
|
136
|
+
};
|
|
137
|
+
function assertIs(_arg) {
|
|
138
|
+
}
|
|
139
|
+
util2.assertIs = assertIs;
|
|
140
|
+
function assertNever(_x) {
|
|
141
|
+
throw new Error();
|
|
142
|
+
}
|
|
143
|
+
util2.assertNever = assertNever;
|
|
144
|
+
util2.arrayToEnum = (items) => {
|
|
145
|
+
const obj = {};
|
|
146
|
+
for (const item of items) {
|
|
147
|
+
obj[item] = item;
|
|
148
|
+
}
|
|
149
|
+
return obj;
|
|
150
|
+
};
|
|
151
|
+
util2.getValidEnumValues = (obj) => {
|
|
152
|
+
const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
153
|
+
const filtered = {};
|
|
154
|
+
for (const k of validKeys) {
|
|
155
|
+
filtered[k] = obj[k];
|
|
156
|
+
}
|
|
157
|
+
return util2.objectValues(filtered);
|
|
158
|
+
};
|
|
159
|
+
util2.objectValues = (obj) => {
|
|
160
|
+
return util2.objectKeys(obj).map(function(e) {
|
|
161
|
+
return obj[e];
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
165
|
+
const keys = [];
|
|
166
|
+
for (const key in object) {
|
|
167
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
168
|
+
keys.push(key);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return keys;
|
|
172
|
+
};
|
|
173
|
+
util2.find = (arr, checker) => {
|
|
174
|
+
for (const item of arr) {
|
|
175
|
+
if (checker(item))
|
|
176
|
+
return item;
|
|
177
|
+
}
|
|
178
|
+
return void 0;
|
|
179
|
+
};
|
|
180
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
181
|
+
function joinValues(array, separator = " | ") {
|
|
182
|
+
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
183
|
+
}
|
|
184
|
+
util2.joinValues = joinValues;
|
|
185
|
+
util2.jsonStringifyReplacer = (_, value) => {
|
|
186
|
+
if (typeof value === "bigint") {
|
|
187
|
+
return value.toString();
|
|
188
|
+
}
|
|
189
|
+
return value;
|
|
190
|
+
};
|
|
191
|
+
})(util || (util = {}));
|
|
192
|
+
var objectUtil;
|
|
193
|
+
(function(objectUtil2) {
|
|
194
|
+
objectUtil2.mergeShapes = (first, second) => {
|
|
195
|
+
return {
|
|
196
|
+
...first,
|
|
197
|
+
...second
|
|
198
|
+
// second overwrites first
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
})(objectUtil || (objectUtil = {}));
|
|
202
|
+
var ZodParsedType = util.arrayToEnum([
|
|
203
|
+
"string",
|
|
204
|
+
"nan",
|
|
205
|
+
"number",
|
|
206
|
+
"integer",
|
|
207
|
+
"float",
|
|
208
|
+
"boolean",
|
|
209
|
+
"date",
|
|
210
|
+
"bigint",
|
|
211
|
+
"symbol",
|
|
212
|
+
"function",
|
|
213
|
+
"undefined",
|
|
214
|
+
"null",
|
|
215
|
+
"array",
|
|
216
|
+
"object",
|
|
217
|
+
"unknown",
|
|
218
|
+
"promise",
|
|
219
|
+
"void",
|
|
220
|
+
"never",
|
|
221
|
+
"map",
|
|
222
|
+
"set"
|
|
223
|
+
]);
|
|
224
|
+
var getParsedType = (data) => {
|
|
225
|
+
const t = typeof data;
|
|
226
|
+
switch (t) {
|
|
227
|
+
case "undefined":
|
|
228
|
+
return ZodParsedType.undefined;
|
|
229
|
+
case "string":
|
|
230
|
+
return ZodParsedType.string;
|
|
231
|
+
case "number":
|
|
232
|
+
return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
233
|
+
case "boolean":
|
|
234
|
+
return ZodParsedType.boolean;
|
|
235
|
+
case "function":
|
|
236
|
+
return ZodParsedType.function;
|
|
237
|
+
case "bigint":
|
|
238
|
+
return ZodParsedType.bigint;
|
|
239
|
+
case "symbol":
|
|
240
|
+
return ZodParsedType.symbol;
|
|
241
|
+
case "object":
|
|
242
|
+
if (Array.isArray(data)) {
|
|
243
|
+
return ZodParsedType.array;
|
|
244
|
+
}
|
|
245
|
+
if (data === null) {
|
|
246
|
+
return ZodParsedType.null;
|
|
247
|
+
}
|
|
248
|
+
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
249
|
+
return ZodParsedType.promise;
|
|
250
|
+
}
|
|
251
|
+
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
252
|
+
return ZodParsedType.map;
|
|
253
|
+
}
|
|
254
|
+
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
255
|
+
return ZodParsedType.set;
|
|
256
|
+
}
|
|
257
|
+
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
258
|
+
return ZodParsedType.date;
|
|
259
|
+
}
|
|
260
|
+
return ZodParsedType.object;
|
|
261
|
+
default:
|
|
262
|
+
return ZodParsedType.unknown;
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
267
|
+
var ZodIssueCode = util.arrayToEnum([
|
|
268
|
+
"invalid_type",
|
|
269
|
+
"invalid_literal",
|
|
270
|
+
"custom",
|
|
271
|
+
"invalid_union",
|
|
272
|
+
"invalid_union_discriminator",
|
|
273
|
+
"invalid_enum_value",
|
|
274
|
+
"unrecognized_keys",
|
|
275
|
+
"invalid_arguments",
|
|
276
|
+
"invalid_return_type",
|
|
277
|
+
"invalid_date",
|
|
278
|
+
"invalid_string",
|
|
279
|
+
"too_small",
|
|
280
|
+
"too_big",
|
|
281
|
+
"invalid_intersection_types",
|
|
282
|
+
"not_multiple_of",
|
|
283
|
+
"not_finite"
|
|
284
|
+
]);
|
|
285
|
+
var quotelessJson = (obj) => {
|
|
286
|
+
const json = JSON.stringify(obj, null, 2);
|
|
287
|
+
return json.replace(/"([^"]+)":/g, "$1:");
|
|
288
|
+
};
|
|
289
|
+
var ZodError = class _ZodError extends Error {
|
|
290
|
+
get errors() {
|
|
291
|
+
return this.issues;
|
|
292
|
+
}
|
|
293
|
+
constructor(issues) {
|
|
294
|
+
super();
|
|
295
|
+
this.issues = [];
|
|
296
|
+
this.addIssue = (sub) => {
|
|
297
|
+
this.issues = [...this.issues, sub];
|
|
298
|
+
};
|
|
299
|
+
this.addIssues = (subs = []) => {
|
|
300
|
+
this.issues = [...this.issues, ...subs];
|
|
301
|
+
};
|
|
302
|
+
const actualProto = new.target.prototype;
|
|
303
|
+
if (Object.setPrototypeOf) {
|
|
304
|
+
Object.setPrototypeOf(this, actualProto);
|
|
305
|
+
} else {
|
|
306
|
+
this.__proto__ = actualProto;
|
|
307
|
+
}
|
|
308
|
+
this.name = "ZodError";
|
|
309
|
+
this.issues = issues;
|
|
310
|
+
}
|
|
311
|
+
format(_mapper) {
|
|
312
|
+
const mapper = _mapper || function(issue) {
|
|
313
|
+
return issue.message;
|
|
314
|
+
};
|
|
315
|
+
const fieldErrors = { _errors: [] };
|
|
316
|
+
const processError = (error) => {
|
|
317
|
+
for (const issue of error.issues) {
|
|
318
|
+
if (issue.code === "invalid_union") {
|
|
319
|
+
issue.unionErrors.map(processError);
|
|
320
|
+
} else if (issue.code === "invalid_return_type") {
|
|
321
|
+
processError(issue.returnTypeError);
|
|
322
|
+
} else if (issue.code === "invalid_arguments") {
|
|
323
|
+
processError(issue.argumentsError);
|
|
324
|
+
} else if (issue.path.length === 0) {
|
|
325
|
+
fieldErrors._errors.push(mapper(issue));
|
|
326
|
+
} else {
|
|
327
|
+
let curr = fieldErrors;
|
|
328
|
+
let i = 0;
|
|
329
|
+
while (i < issue.path.length) {
|
|
330
|
+
const el = issue.path[i];
|
|
331
|
+
const terminal = i === issue.path.length - 1;
|
|
332
|
+
if (!terminal) {
|
|
333
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
334
|
+
} else {
|
|
335
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
336
|
+
curr[el]._errors.push(mapper(issue));
|
|
337
|
+
}
|
|
338
|
+
curr = curr[el];
|
|
339
|
+
i++;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
processError(this);
|
|
345
|
+
return fieldErrors;
|
|
346
|
+
}
|
|
347
|
+
static assert(value) {
|
|
348
|
+
if (!(value instanceof _ZodError)) {
|
|
349
|
+
throw new Error(`Not a ZodError: ${value}`);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
toString() {
|
|
353
|
+
return this.message;
|
|
354
|
+
}
|
|
355
|
+
get message() {
|
|
356
|
+
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
357
|
+
}
|
|
358
|
+
get isEmpty() {
|
|
359
|
+
return this.issues.length === 0;
|
|
360
|
+
}
|
|
361
|
+
flatten(mapper = (issue) => issue.message) {
|
|
362
|
+
const fieldErrors = {};
|
|
363
|
+
const formErrors = [];
|
|
364
|
+
for (const sub of this.issues) {
|
|
365
|
+
if (sub.path.length > 0) {
|
|
366
|
+
const firstEl = sub.path[0];
|
|
367
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
368
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
369
|
+
} else {
|
|
370
|
+
formErrors.push(mapper(sub));
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return { formErrors, fieldErrors };
|
|
374
|
+
}
|
|
375
|
+
get formErrors() {
|
|
376
|
+
return this.flatten();
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
ZodError.create = (issues) => {
|
|
380
|
+
const error = new ZodError(issues);
|
|
381
|
+
return error;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
385
|
+
var errorMap = (issue, _ctx) => {
|
|
386
|
+
let message;
|
|
387
|
+
switch (issue.code) {
|
|
388
|
+
case ZodIssueCode.invalid_type:
|
|
389
|
+
if (issue.received === ZodParsedType.undefined) {
|
|
390
|
+
message = "Required";
|
|
391
|
+
} else {
|
|
392
|
+
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
393
|
+
}
|
|
394
|
+
break;
|
|
395
|
+
case ZodIssueCode.invalid_literal:
|
|
396
|
+
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
397
|
+
break;
|
|
398
|
+
case ZodIssueCode.unrecognized_keys:
|
|
399
|
+
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
400
|
+
break;
|
|
401
|
+
case ZodIssueCode.invalid_union:
|
|
402
|
+
message = `Invalid input`;
|
|
403
|
+
break;
|
|
404
|
+
case ZodIssueCode.invalid_union_discriminator:
|
|
405
|
+
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
406
|
+
break;
|
|
407
|
+
case ZodIssueCode.invalid_enum_value:
|
|
408
|
+
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
409
|
+
break;
|
|
410
|
+
case ZodIssueCode.invalid_arguments:
|
|
411
|
+
message = `Invalid function arguments`;
|
|
412
|
+
break;
|
|
413
|
+
case ZodIssueCode.invalid_return_type:
|
|
414
|
+
message = `Invalid function return type`;
|
|
415
|
+
break;
|
|
416
|
+
case ZodIssueCode.invalid_date:
|
|
417
|
+
message = `Invalid date`;
|
|
418
|
+
break;
|
|
419
|
+
case ZodIssueCode.invalid_string:
|
|
420
|
+
if (typeof issue.validation === "object") {
|
|
421
|
+
if ("includes" in issue.validation) {
|
|
422
|
+
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
423
|
+
if (typeof issue.validation.position === "number") {
|
|
424
|
+
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
425
|
+
}
|
|
426
|
+
} else if ("startsWith" in issue.validation) {
|
|
427
|
+
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
428
|
+
} else if ("endsWith" in issue.validation) {
|
|
429
|
+
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
430
|
+
} else {
|
|
431
|
+
util.assertNever(issue.validation);
|
|
432
|
+
}
|
|
433
|
+
} else if (issue.validation !== "regex") {
|
|
434
|
+
message = `Invalid ${issue.validation}`;
|
|
435
|
+
} else {
|
|
436
|
+
message = "Invalid";
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
case ZodIssueCode.too_small:
|
|
440
|
+
if (issue.type === "array")
|
|
441
|
+
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
442
|
+
else if (issue.type === "string")
|
|
443
|
+
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
444
|
+
else if (issue.type === "number")
|
|
445
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
446
|
+
else if (issue.type === "bigint")
|
|
447
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
448
|
+
else if (issue.type === "date")
|
|
449
|
+
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
450
|
+
else
|
|
451
|
+
message = "Invalid input";
|
|
452
|
+
break;
|
|
453
|
+
case ZodIssueCode.too_big:
|
|
454
|
+
if (issue.type === "array")
|
|
455
|
+
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
456
|
+
else if (issue.type === "string")
|
|
457
|
+
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
458
|
+
else if (issue.type === "number")
|
|
459
|
+
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
460
|
+
else if (issue.type === "bigint")
|
|
461
|
+
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
462
|
+
else if (issue.type === "date")
|
|
463
|
+
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
464
|
+
else
|
|
465
|
+
message = "Invalid input";
|
|
466
|
+
break;
|
|
467
|
+
case ZodIssueCode.custom:
|
|
468
|
+
message = `Invalid input`;
|
|
469
|
+
break;
|
|
470
|
+
case ZodIssueCode.invalid_intersection_types:
|
|
471
|
+
message = `Intersection results could not be merged`;
|
|
472
|
+
break;
|
|
473
|
+
case ZodIssueCode.not_multiple_of:
|
|
474
|
+
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
475
|
+
break;
|
|
476
|
+
case ZodIssueCode.not_finite:
|
|
477
|
+
message = "Number must be finite";
|
|
478
|
+
break;
|
|
479
|
+
default:
|
|
480
|
+
message = _ctx.defaultError;
|
|
481
|
+
util.assertNever(issue);
|
|
482
|
+
}
|
|
483
|
+
return { message };
|
|
484
|
+
};
|
|
485
|
+
var en_default = errorMap;
|
|
486
|
+
|
|
487
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
488
|
+
var overrideErrorMap = en_default;
|
|
489
|
+
function setErrorMap(map) {
|
|
490
|
+
overrideErrorMap = map;
|
|
491
|
+
}
|
|
492
|
+
function getErrorMap() {
|
|
493
|
+
return overrideErrorMap;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
497
|
+
var makeIssue = (params) => {
|
|
498
|
+
const { data, path, errorMaps, issueData } = params;
|
|
499
|
+
const fullPath = [...path, ...issueData.path || []];
|
|
500
|
+
const fullIssue = {
|
|
501
|
+
...issueData,
|
|
502
|
+
path: fullPath
|
|
503
|
+
};
|
|
504
|
+
if (issueData.message !== void 0) {
|
|
505
|
+
return {
|
|
506
|
+
...issueData,
|
|
507
|
+
path: fullPath,
|
|
508
|
+
message: issueData.message
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
let errorMessage = "";
|
|
512
|
+
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
513
|
+
for (const map of maps) {
|
|
514
|
+
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
515
|
+
}
|
|
516
|
+
return {
|
|
517
|
+
...issueData,
|
|
518
|
+
path: fullPath,
|
|
519
|
+
message: errorMessage
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
var EMPTY_PATH = [];
|
|
523
|
+
function addIssueToContext(ctx, issueData) {
|
|
524
|
+
const overrideMap = getErrorMap();
|
|
525
|
+
const issue = makeIssue({
|
|
526
|
+
issueData,
|
|
527
|
+
data: ctx.data,
|
|
528
|
+
path: ctx.path,
|
|
529
|
+
errorMaps: [
|
|
530
|
+
ctx.common.contextualErrorMap,
|
|
531
|
+
// contextual error map is first priority
|
|
532
|
+
ctx.schemaErrorMap,
|
|
533
|
+
// then schema-bound map if available
|
|
534
|
+
overrideMap,
|
|
535
|
+
// then global override map
|
|
536
|
+
overrideMap === en_default ? void 0 : en_default
|
|
537
|
+
// then global default map
|
|
538
|
+
].filter((x) => !!x)
|
|
539
|
+
});
|
|
540
|
+
ctx.common.issues.push(issue);
|
|
541
|
+
}
|
|
542
|
+
var ParseStatus = class _ParseStatus {
|
|
543
|
+
constructor() {
|
|
544
|
+
this.value = "valid";
|
|
545
|
+
}
|
|
546
|
+
dirty() {
|
|
547
|
+
if (this.value === "valid")
|
|
548
|
+
this.value = "dirty";
|
|
549
|
+
}
|
|
550
|
+
abort() {
|
|
551
|
+
if (this.value !== "aborted")
|
|
552
|
+
this.value = "aborted";
|
|
553
|
+
}
|
|
554
|
+
static mergeArray(status, results) {
|
|
555
|
+
const arrayValue = [];
|
|
556
|
+
for (const s of results) {
|
|
557
|
+
if (s.status === "aborted")
|
|
558
|
+
return INVALID;
|
|
559
|
+
if (s.status === "dirty")
|
|
560
|
+
status.dirty();
|
|
561
|
+
arrayValue.push(s.value);
|
|
562
|
+
}
|
|
563
|
+
return { status: status.value, value: arrayValue };
|
|
564
|
+
}
|
|
565
|
+
static async mergeObjectAsync(status, pairs) {
|
|
566
|
+
const syncPairs = [];
|
|
567
|
+
for (const pair of pairs) {
|
|
568
|
+
const key = await pair.key;
|
|
569
|
+
const value = await pair.value;
|
|
570
|
+
syncPairs.push({
|
|
571
|
+
key,
|
|
572
|
+
value
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
return _ParseStatus.mergeObjectSync(status, syncPairs);
|
|
576
|
+
}
|
|
577
|
+
static mergeObjectSync(status, pairs) {
|
|
578
|
+
const finalObject = {};
|
|
579
|
+
for (const pair of pairs) {
|
|
580
|
+
const { key, value } = pair;
|
|
581
|
+
if (key.status === "aborted")
|
|
582
|
+
return INVALID;
|
|
583
|
+
if (value.status === "aborted")
|
|
584
|
+
return INVALID;
|
|
585
|
+
if (key.status === "dirty")
|
|
586
|
+
status.dirty();
|
|
587
|
+
if (value.status === "dirty")
|
|
588
|
+
status.dirty();
|
|
589
|
+
if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
|
|
590
|
+
finalObject[key.value] = value.value;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return { status: status.value, value: finalObject };
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
var INVALID = Object.freeze({
|
|
597
|
+
status: "aborted"
|
|
598
|
+
});
|
|
599
|
+
var DIRTY = (value) => ({ status: "dirty", value });
|
|
600
|
+
var OK = (value) => ({ status: "valid", value });
|
|
601
|
+
var isAborted = (x) => x.status === "aborted";
|
|
602
|
+
var isDirty = (x) => x.status === "dirty";
|
|
603
|
+
var isValid = (x) => x.status === "valid";
|
|
604
|
+
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
605
|
+
|
|
606
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
607
|
+
var errorUtil;
|
|
608
|
+
(function(errorUtil2) {
|
|
609
|
+
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
610
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
611
|
+
})(errorUtil || (errorUtil = {}));
|
|
612
|
+
|
|
613
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
|
|
614
|
+
var ParseInputLazyPath = class {
|
|
615
|
+
constructor(parent, value, path, key) {
|
|
616
|
+
this._cachedPath = [];
|
|
617
|
+
this.parent = parent;
|
|
618
|
+
this.data = value;
|
|
619
|
+
this._path = path;
|
|
620
|
+
this._key = key;
|
|
621
|
+
}
|
|
622
|
+
get path() {
|
|
623
|
+
if (!this._cachedPath.length) {
|
|
624
|
+
if (Array.isArray(this._key)) {
|
|
625
|
+
this._cachedPath.push(...this._path, ...this._key);
|
|
626
|
+
} else {
|
|
627
|
+
this._cachedPath.push(...this._path, this._key);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
return this._cachedPath;
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
var handleResult = (ctx, result) => {
|
|
634
|
+
if (isValid(result)) {
|
|
635
|
+
return { success: true, data: result.value };
|
|
636
|
+
} else {
|
|
637
|
+
if (!ctx.common.issues.length) {
|
|
638
|
+
throw new Error("Validation failed but no issues detected.");
|
|
639
|
+
}
|
|
640
|
+
return {
|
|
641
|
+
success: false,
|
|
642
|
+
get error() {
|
|
643
|
+
if (this._error)
|
|
644
|
+
return this._error;
|
|
645
|
+
const error = new ZodError(ctx.common.issues);
|
|
646
|
+
this._error = error;
|
|
647
|
+
return this._error;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
function processCreateParams(params) {
|
|
653
|
+
if (!params)
|
|
654
|
+
return {};
|
|
655
|
+
const { errorMap: errorMap2, invalid_type_error, required_error, description } = params;
|
|
656
|
+
if (errorMap2 && (invalid_type_error || required_error)) {
|
|
657
|
+
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
658
|
+
}
|
|
659
|
+
if (errorMap2)
|
|
660
|
+
return { errorMap: errorMap2, description };
|
|
661
|
+
const customMap = (iss, ctx) => {
|
|
662
|
+
const { message } = params;
|
|
663
|
+
if (iss.code === "invalid_enum_value") {
|
|
664
|
+
return { message: message ?? ctx.defaultError };
|
|
665
|
+
}
|
|
666
|
+
if (typeof ctx.data === "undefined") {
|
|
667
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
668
|
+
}
|
|
669
|
+
if (iss.code !== "invalid_type")
|
|
670
|
+
return { message: ctx.defaultError };
|
|
671
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
672
|
+
};
|
|
673
|
+
return { errorMap: customMap, description };
|
|
674
|
+
}
|
|
675
|
+
var ZodType = class {
|
|
676
|
+
get description() {
|
|
677
|
+
return this._def.description;
|
|
678
|
+
}
|
|
679
|
+
_getType(input) {
|
|
680
|
+
return getParsedType(input.data);
|
|
681
|
+
}
|
|
682
|
+
_getOrReturnCtx(input, ctx) {
|
|
683
|
+
return ctx || {
|
|
684
|
+
common: input.parent.common,
|
|
685
|
+
data: input.data,
|
|
686
|
+
parsedType: getParsedType(input.data),
|
|
687
|
+
schemaErrorMap: this._def.errorMap,
|
|
688
|
+
path: input.path,
|
|
689
|
+
parent: input.parent
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
_processInputParams(input) {
|
|
693
|
+
return {
|
|
694
|
+
status: new ParseStatus(),
|
|
695
|
+
ctx: {
|
|
696
|
+
common: input.parent.common,
|
|
697
|
+
data: input.data,
|
|
698
|
+
parsedType: getParsedType(input.data),
|
|
699
|
+
schemaErrorMap: this._def.errorMap,
|
|
700
|
+
path: input.path,
|
|
701
|
+
parent: input.parent
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
_parseSync(input) {
|
|
706
|
+
const result = this._parse(input);
|
|
707
|
+
if (isAsync(result)) {
|
|
708
|
+
throw new Error("Synchronous parse encountered promise.");
|
|
709
|
+
}
|
|
710
|
+
return result;
|
|
711
|
+
}
|
|
712
|
+
_parseAsync(input) {
|
|
713
|
+
const result = this._parse(input);
|
|
714
|
+
return Promise.resolve(result);
|
|
715
|
+
}
|
|
716
|
+
parse(data, params) {
|
|
717
|
+
const result = this.safeParse(data, params);
|
|
718
|
+
if (result.success)
|
|
719
|
+
return result.data;
|
|
720
|
+
throw result.error;
|
|
721
|
+
}
|
|
722
|
+
safeParse(data, params) {
|
|
723
|
+
const ctx = {
|
|
724
|
+
common: {
|
|
725
|
+
issues: [],
|
|
726
|
+
async: params?.async ?? false,
|
|
727
|
+
contextualErrorMap: params?.errorMap
|
|
728
|
+
},
|
|
729
|
+
path: params?.path || [],
|
|
730
|
+
schemaErrorMap: this._def.errorMap,
|
|
731
|
+
parent: null,
|
|
732
|
+
data,
|
|
733
|
+
parsedType: getParsedType(data)
|
|
734
|
+
};
|
|
735
|
+
const result = this._parseSync({ data, path: ctx.path, parent: ctx });
|
|
736
|
+
return handleResult(ctx, result);
|
|
737
|
+
}
|
|
738
|
+
"~validate"(data) {
|
|
739
|
+
const ctx = {
|
|
740
|
+
common: {
|
|
741
|
+
issues: [],
|
|
742
|
+
async: !!this["~standard"].async
|
|
743
|
+
},
|
|
744
|
+
path: [],
|
|
745
|
+
schemaErrorMap: this._def.errorMap,
|
|
746
|
+
parent: null,
|
|
747
|
+
data,
|
|
748
|
+
parsedType: getParsedType(data)
|
|
749
|
+
};
|
|
750
|
+
if (!this["~standard"].async) {
|
|
751
|
+
try {
|
|
752
|
+
const result = this._parseSync({ data, path: [], parent: ctx });
|
|
753
|
+
return isValid(result) ? {
|
|
754
|
+
value: result.value
|
|
755
|
+
} : {
|
|
756
|
+
issues: ctx.common.issues
|
|
757
|
+
};
|
|
758
|
+
} catch (err) {
|
|
759
|
+
if (err?.message?.toLowerCase()?.includes("encountered")) {
|
|
760
|
+
this["~standard"].async = true;
|
|
761
|
+
}
|
|
762
|
+
ctx.common = {
|
|
763
|
+
issues: [],
|
|
764
|
+
async: true
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {
|
|
769
|
+
value: result.value
|
|
770
|
+
} : {
|
|
771
|
+
issues: ctx.common.issues
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
async parseAsync(data, params) {
|
|
775
|
+
const result = await this.safeParseAsync(data, params);
|
|
776
|
+
if (result.success)
|
|
777
|
+
return result.data;
|
|
778
|
+
throw result.error;
|
|
779
|
+
}
|
|
780
|
+
async safeParseAsync(data, params) {
|
|
781
|
+
const ctx = {
|
|
782
|
+
common: {
|
|
783
|
+
issues: [],
|
|
784
|
+
contextualErrorMap: params?.errorMap,
|
|
785
|
+
async: true
|
|
786
|
+
},
|
|
787
|
+
path: params?.path || [],
|
|
788
|
+
schemaErrorMap: this._def.errorMap,
|
|
789
|
+
parent: null,
|
|
790
|
+
data,
|
|
791
|
+
parsedType: getParsedType(data)
|
|
792
|
+
};
|
|
793
|
+
const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
|
|
794
|
+
const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
|
|
795
|
+
return handleResult(ctx, result);
|
|
796
|
+
}
|
|
797
|
+
refine(check, message) {
|
|
798
|
+
const getIssueProperties = (val) => {
|
|
799
|
+
if (typeof message === "string" || typeof message === "undefined") {
|
|
800
|
+
return { message };
|
|
801
|
+
} else if (typeof message === "function") {
|
|
802
|
+
return message(val);
|
|
803
|
+
} else {
|
|
804
|
+
return message;
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
return this._refinement((val, ctx) => {
|
|
808
|
+
const result = check(val);
|
|
809
|
+
const setError = () => ctx.addIssue({
|
|
810
|
+
code: ZodIssueCode.custom,
|
|
811
|
+
...getIssueProperties(val)
|
|
812
|
+
});
|
|
813
|
+
if (typeof Promise !== "undefined" && result instanceof Promise) {
|
|
814
|
+
return result.then((data) => {
|
|
815
|
+
if (!data) {
|
|
816
|
+
setError();
|
|
817
|
+
return false;
|
|
818
|
+
} else {
|
|
819
|
+
return true;
|
|
820
|
+
}
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
if (!result) {
|
|
824
|
+
setError();
|
|
825
|
+
return false;
|
|
826
|
+
} else {
|
|
827
|
+
return true;
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
refinement(check, refinementData) {
|
|
832
|
+
return this._refinement((val, ctx) => {
|
|
833
|
+
if (!check(val)) {
|
|
834
|
+
ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
|
|
835
|
+
return false;
|
|
836
|
+
} else {
|
|
837
|
+
return true;
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
_refinement(refinement) {
|
|
842
|
+
return new ZodEffects({
|
|
843
|
+
schema: this,
|
|
844
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
845
|
+
effect: { type: "refinement", refinement }
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
superRefine(refinement) {
|
|
849
|
+
return this._refinement(refinement);
|
|
850
|
+
}
|
|
851
|
+
constructor(def) {
|
|
852
|
+
this.spa = this.safeParseAsync;
|
|
853
|
+
this._def = def;
|
|
854
|
+
this.parse = this.parse.bind(this);
|
|
855
|
+
this.safeParse = this.safeParse.bind(this);
|
|
856
|
+
this.parseAsync = this.parseAsync.bind(this);
|
|
857
|
+
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
858
|
+
this.spa = this.spa.bind(this);
|
|
859
|
+
this.refine = this.refine.bind(this);
|
|
860
|
+
this.refinement = this.refinement.bind(this);
|
|
861
|
+
this.superRefine = this.superRefine.bind(this);
|
|
862
|
+
this.optional = this.optional.bind(this);
|
|
863
|
+
this.nullable = this.nullable.bind(this);
|
|
864
|
+
this.nullish = this.nullish.bind(this);
|
|
865
|
+
this.array = this.array.bind(this);
|
|
866
|
+
this.promise = this.promise.bind(this);
|
|
867
|
+
this.or = this.or.bind(this);
|
|
868
|
+
this.and = this.and.bind(this);
|
|
869
|
+
this.transform = this.transform.bind(this);
|
|
870
|
+
this.brand = this.brand.bind(this);
|
|
871
|
+
this.default = this.default.bind(this);
|
|
872
|
+
this.catch = this.catch.bind(this);
|
|
873
|
+
this.describe = this.describe.bind(this);
|
|
874
|
+
this.pipe = this.pipe.bind(this);
|
|
875
|
+
this.readonly = this.readonly.bind(this);
|
|
876
|
+
this.isNullable = this.isNullable.bind(this);
|
|
877
|
+
this.isOptional = this.isOptional.bind(this);
|
|
878
|
+
this["~standard"] = {
|
|
879
|
+
version: 1,
|
|
880
|
+
vendor: "zod",
|
|
881
|
+
validate: (data) => this["~validate"](data)
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
optional() {
|
|
885
|
+
return ZodOptional.create(this, this._def);
|
|
886
|
+
}
|
|
887
|
+
nullable() {
|
|
888
|
+
return ZodNullable.create(this, this._def);
|
|
889
|
+
}
|
|
890
|
+
nullish() {
|
|
891
|
+
return this.nullable().optional();
|
|
892
|
+
}
|
|
893
|
+
array() {
|
|
894
|
+
return ZodArray.create(this);
|
|
895
|
+
}
|
|
896
|
+
promise() {
|
|
897
|
+
return ZodPromise.create(this, this._def);
|
|
898
|
+
}
|
|
899
|
+
or(option) {
|
|
900
|
+
return ZodUnion.create([this, option], this._def);
|
|
901
|
+
}
|
|
902
|
+
and(incoming) {
|
|
903
|
+
return ZodIntersection.create(this, incoming, this._def);
|
|
904
|
+
}
|
|
905
|
+
transform(transform) {
|
|
906
|
+
return new ZodEffects({
|
|
907
|
+
...processCreateParams(this._def),
|
|
908
|
+
schema: this,
|
|
909
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
910
|
+
effect: { type: "transform", transform }
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
default(def) {
|
|
914
|
+
const defaultValueFunc = typeof def === "function" ? def : () => def;
|
|
915
|
+
return new ZodDefault({
|
|
916
|
+
...processCreateParams(this._def),
|
|
917
|
+
innerType: this,
|
|
918
|
+
defaultValue: defaultValueFunc,
|
|
919
|
+
typeName: ZodFirstPartyTypeKind.ZodDefault
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
brand() {
|
|
923
|
+
return new ZodBranded({
|
|
924
|
+
typeName: ZodFirstPartyTypeKind.ZodBranded,
|
|
925
|
+
type: this,
|
|
926
|
+
...processCreateParams(this._def)
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
catch(def) {
|
|
930
|
+
const catchValueFunc = typeof def === "function" ? def : () => def;
|
|
931
|
+
return new ZodCatch({
|
|
932
|
+
...processCreateParams(this._def),
|
|
933
|
+
innerType: this,
|
|
934
|
+
catchValue: catchValueFunc,
|
|
935
|
+
typeName: ZodFirstPartyTypeKind.ZodCatch
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
describe(description) {
|
|
939
|
+
const This = this.constructor;
|
|
940
|
+
return new This({
|
|
941
|
+
...this._def,
|
|
942
|
+
description
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
pipe(target) {
|
|
946
|
+
return ZodPipeline.create(this, target);
|
|
947
|
+
}
|
|
948
|
+
readonly() {
|
|
949
|
+
return ZodReadonly.create(this);
|
|
950
|
+
}
|
|
951
|
+
isOptional() {
|
|
952
|
+
return this.safeParse(void 0).success;
|
|
953
|
+
}
|
|
954
|
+
isNullable() {
|
|
955
|
+
return this.safeParse(null).success;
|
|
956
|
+
}
|
|
957
|
+
};
|
|
958
|
+
var cuidRegex = /^c[^\s-]{8,}$/i;
|
|
959
|
+
var cuid2Regex = /^[0-9a-z]+$/;
|
|
960
|
+
var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
961
|
+
var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
|
|
962
|
+
var nanoidRegex = /^[a-z0-9_-]{21}$/i;
|
|
963
|
+
var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
|
|
964
|
+
var durationRegex = /^[-+]?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)?)??$/;
|
|
965
|
+
var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
|
|
966
|
+
var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
967
|
+
var emojiRegex;
|
|
968
|
+
var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
969
|
+
var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
|
|
970
|
+
var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
|
|
971
|
+
var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
972
|
+
var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
|
973
|
+
var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
|
|
974
|
+
var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
975
|
+
var dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
976
|
+
function timeRegexSource(args) {
|
|
977
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
978
|
+
if (args.precision) {
|
|
979
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
980
|
+
} else if (args.precision == null) {
|
|
981
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
982
|
+
}
|
|
983
|
+
const secondsQuantifier = args.precision ? "+" : "?";
|
|
984
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
985
|
+
}
|
|
986
|
+
function timeRegex(args) {
|
|
987
|
+
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
988
|
+
}
|
|
989
|
+
function datetimeRegex(args) {
|
|
990
|
+
let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
|
|
991
|
+
const opts = [];
|
|
992
|
+
opts.push(args.local ? `Z?` : `Z`);
|
|
993
|
+
if (args.offset)
|
|
994
|
+
opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
995
|
+
regex = `${regex}(${opts.join("|")})`;
|
|
996
|
+
return new RegExp(`^${regex}$`);
|
|
997
|
+
}
|
|
998
|
+
function isValidIP(ip, version) {
|
|
999
|
+
if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
|
|
1000
|
+
return true;
|
|
1001
|
+
}
|
|
1002
|
+
if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
|
|
1003
|
+
return true;
|
|
1004
|
+
}
|
|
1005
|
+
return false;
|
|
1006
|
+
}
|
|
1007
|
+
function isValidJWT(jwt, alg) {
|
|
1008
|
+
if (!jwtRegex.test(jwt))
|
|
1009
|
+
return false;
|
|
1010
|
+
try {
|
|
1011
|
+
const [header] = jwt.split(".");
|
|
1012
|
+
if (!header)
|
|
1013
|
+
return false;
|
|
1014
|
+
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
1015
|
+
const decoded = JSON.parse(atob(base64));
|
|
1016
|
+
if (typeof decoded !== "object" || decoded === null)
|
|
1017
|
+
return false;
|
|
1018
|
+
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
1019
|
+
return false;
|
|
1020
|
+
if (!decoded.alg)
|
|
1021
|
+
return false;
|
|
1022
|
+
if (alg && decoded.alg !== alg)
|
|
1023
|
+
return false;
|
|
1024
|
+
return true;
|
|
1025
|
+
} catch {
|
|
1026
|
+
return false;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function isValidCidr(ip, version) {
|
|
1030
|
+
if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
|
|
1031
|
+
return true;
|
|
1032
|
+
}
|
|
1033
|
+
if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
|
|
1034
|
+
return true;
|
|
1035
|
+
}
|
|
1036
|
+
return false;
|
|
1037
|
+
}
|
|
1038
|
+
var ZodString = class _ZodString extends ZodType {
|
|
1039
|
+
_parse(input) {
|
|
1040
|
+
if (this._def.coerce) {
|
|
1041
|
+
input.data = String(input.data);
|
|
1042
|
+
}
|
|
1043
|
+
const parsedType = this._getType(input);
|
|
1044
|
+
if (parsedType !== ZodParsedType.string) {
|
|
1045
|
+
const ctx2 = this._getOrReturnCtx(input);
|
|
1046
|
+
addIssueToContext(ctx2, {
|
|
1047
|
+
code: ZodIssueCode.invalid_type,
|
|
1048
|
+
expected: ZodParsedType.string,
|
|
1049
|
+
received: ctx2.parsedType
|
|
1050
|
+
});
|
|
1051
|
+
return INVALID;
|
|
1052
|
+
}
|
|
1053
|
+
const status = new ParseStatus();
|
|
1054
|
+
let ctx = void 0;
|
|
1055
|
+
for (const check of this._def.checks) {
|
|
1056
|
+
if (check.kind === "min") {
|
|
1057
|
+
if (input.data.length < check.value) {
|
|
1058
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1059
|
+
addIssueToContext(ctx, {
|
|
1060
|
+
code: ZodIssueCode.too_small,
|
|
1061
|
+
minimum: check.value,
|
|
1062
|
+
type: "string",
|
|
1063
|
+
inclusive: true,
|
|
1064
|
+
exact: false,
|
|
1065
|
+
message: check.message
|
|
1066
|
+
});
|
|
1067
|
+
status.dirty();
|
|
1068
|
+
}
|
|
1069
|
+
} else if (check.kind === "max") {
|
|
1070
|
+
if (input.data.length > check.value) {
|
|
1071
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1072
|
+
addIssueToContext(ctx, {
|
|
1073
|
+
code: ZodIssueCode.too_big,
|
|
1074
|
+
maximum: check.value,
|
|
1075
|
+
type: "string",
|
|
1076
|
+
inclusive: true,
|
|
1077
|
+
exact: false,
|
|
1078
|
+
message: check.message
|
|
1079
|
+
});
|
|
1080
|
+
status.dirty();
|
|
1081
|
+
}
|
|
1082
|
+
} else if (check.kind === "length") {
|
|
1083
|
+
const tooBig = input.data.length > check.value;
|
|
1084
|
+
const tooSmall = input.data.length < check.value;
|
|
1085
|
+
if (tooBig || tooSmall) {
|
|
1086
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1087
|
+
if (tooBig) {
|
|
1088
|
+
addIssueToContext(ctx, {
|
|
1089
|
+
code: ZodIssueCode.too_big,
|
|
1090
|
+
maximum: check.value,
|
|
1091
|
+
type: "string",
|
|
1092
|
+
inclusive: true,
|
|
1093
|
+
exact: true,
|
|
1094
|
+
message: check.message
|
|
1095
|
+
});
|
|
1096
|
+
} else if (tooSmall) {
|
|
1097
|
+
addIssueToContext(ctx, {
|
|
1098
|
+
code: ZodIssueCode.too_small,
|
|
1099
|
+
minimum: check.value,
|
|
1100
|
+
type: "string",
|
|
1101
|
+
inclusive: true,
|
|
1102
|
+
exact: true,
|
|
1103
|
+
message: check.message
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
status.dirty();
|
|
1107
|
+
}
|
|
1108
|
+
} else if (check.kind === "email") {
|
|
1109
|
+
if (!emailRegex.test(input.data)) {
|
|
1110
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1111
|
+
addIssueToContext(ctx, {
|
|
1112
|
+
validation: "email",
|
|
1113
|
+
code: ZodIssueCode.invalid_string,
|
|
1114
|
+
message: check.message
|
|
1115
|
+
});
|
|
1116
|
+
status.dirty();
|
|
1117
|
+
}
|
|
1118
|
+
} else if (check.kind === "emoji") {
|
|
1119
|
+
if (!emojiRegex) {
|
|
1120
|
+
emojiRegex = new RegExp(_emojiRegex, "u");
|
|
1121
|
+
}
|
|
1122
|
+
if (!emojiRegex.test(input.data)) {
|
|
1123
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1124
|
+
addIssueToContext(ctx, {
|
|
1125
|
+
validation: "emoji",
|
|
1126
|
+
code: ZodIssueCode.invalid_string,
|
|
1127
|
+
message: check.message
|
|
1128
|
+
});
|
|
1129
|
+
status.dirty();
|
|
1130
|
+
}
|
|
1131
|
+
} else if (check.kind === "uuid") {
|
|
1132
|
+
if (!uuidRegex.test(input.data)) {
|
|
1133
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1134
|
+
addIssueToContext(ctx, {
|
|
1135
|
+
validation: "uuid",
|
|
1136
|
+
code: ZodIssueCode.invalid_string,
|
|
1137
|
+
message: check.message
|
|
1138
|
+
});
|
|
1139
|
+
status.dirty();
|
|
1140
|
+
}
|
|
1141
|
+
} else if (check.kind === "nanoid") {
|
|
1142
|
+
if (!nanoidRegex.test(input.data)) {
|
|
1143
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1144
|
+
addIssueToContext(ctx, {
|
|
1145
|
+
validation: "nanoid",
|
|
1146
|
+
code: ZodIssueCode.invalid_string,
|
|
1147
|
+
message: check.message
|
|
1148
|
+
});
|
|
1149
|
+
status.dirty();
|
|
1150
|
+
}
|
|
1151
|
+
} else if (check.kind === "cuid") {
|
|
1152
|
+
if (!cuidRegex.test(input.data)) {
|
|
1153
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1154
|
+
addIssueToContext(ctx, {
|
|
1155
|
+
validation: "cuid",
|
|
1156
|
+
code: ZodIssueCode.invalid_string,
|
|
1157
|
+
message: check.message
|
|
1158
|
+
});
|
|
1159
|
+
status.dirty();
|
|
1160
|
+
}
|
|
1161
|
+
} else if (check.kind === "cuid2") {
|
|
1162
|
+
if (!cuid2Regex.test(input.data)) {
|
|
1163
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1164
|
+
addIssueToContext(ctx, {
|
|
1165
|
+
validation: "cuid2",
|
|
1166
|
+
code: ZodIssueCode.invalid_string,
|
|
1167
|
+
message: check.message
|
|
1168
|
+
});
|
|
1169
|
+
status.dirty();
|
|
1170
|
+
}
|
|
1171
|
+
} else if (check.kind === "ulid") {
|
|
1172
|
+
if (!ulidRegex.test(input.data)) {
|
|
1173
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1174
|
+
addIssueToContext(ctx, {
|
|
1175
|
+
validation: "ulid",
|
|
1176
|
+
code: ZodIssueCode.invalid_string,
|
|
1177
|
+
message: check.message
|
|
1178
|
+
});
|
|
1179
|
+
status.dirty();
|
|
1180
|
+
}
|
|
1181
|
+
} else if (check.kind === "url") {
|
|
1182
|
+
try {
|
|
1183
|
+
new URL(input.data);
|
|
1184
|
+
} catch {
|
|
1185
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1186
|
+
addIssueToContext(ctx, {
|
|
1187
|
+
validation: "url",
|
|
1188
|
+
code: ZodIssueCode.invalid_string,
|
|
1189
|
+
message: check.message
|
|
1190
|
+
});
|
|
1191
|
+
status.dirty();
|
|
1192
|
+
}
|
|
1193
|
+
} else if (check.kind === "regex") {
|
|
1194
|
+
check.regex.lastIndex = 0;
|
|
1195
|
+
const testResult = check.regex.test(input.data);
|
|
1196
|
+
if (!testResult) {
|
|
1197
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1198
|
+
addIssueToContext(ctx, {
|
|
1199
|
+
validation: "regex",
|
|
1200
|
+
code: ZodIssueCode.invalid_string,
|
|
1201
|
+
message: check.message
|
|
1202
|
+
});
|
|
1203
|
+
status.dirty();
|
|
1204
|
+
}
|
|
1205
|
+
} else if (check.kind === "trim") {
|
|
1206
|
+
input.data = input.data.trim();
|
|
1207
|
+
} else if (check.kind === "includes") {
|
|
1208
|
+
if (!input.data.includes(check.value, check.position)) {
|
|
1209
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1210
|
+
addIssueToContext(ctx, {
|
|
1211
|
+
code: ZodIssueCode.invalid_string,
|
|
1212
|
+
validation: { includes: check.value, position: check.position },
|
|
1213
|
+
message: check.message
|
|
1214
|
+
});
|
|
1215
|
+
status.dirty();
|
|
1216
|
+
}
|
|
1217
|
+
} else if (check.kind === "toLowerCase") {
|
|
1218
|
+
input.data = input.data.toLowerCase();
|
|
1219
|
+
} else if (check.kind === "toUpperCase") {
|
|
1220
|
+
input.data = input.data.toUpperCase();
|
|
1221
|
+
} else if (check.kind === "startsWith") {
|
|
1222
|
+
if (!input.data.startsWith(check.value)) {
|
|
1223
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1224
|
+
addIssueToContext(ctx, {
|
|
1225
|
+
code: ZodIssueCode.invalid_string,
|
|
1226
|
+
validation: { startsWith: check.value },
|
|
1227
|
+
message: check.message
|
|
1228
|
+
});
|
|
1229
|
+
status.dirty();
|
|
1230
|
+
}
|
|
1231
|
+
} else if (check.kind === "endsWith") {
|
|
1232
|
+
if (!input.data.endsWith(check.value)) {
|
|
1233
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1234
|
+
addIssueToContext(ctx, {
|
|
1235
|
+
code: ZodIssueCode.invalid_string,
|
|
1236
|
+
validation: { endsWith: check.value },
|
|
1237
|
+
message: check.message
|
|
1238
|
+
});
|
|
1239
|
+
status.dirty();
|
|
1240
|
+
}
|
|
1241
|
+
} else if (check.kind === "datetime") {
|
|
1242
|
+
const regex = datetimeRegex(check);
|
|
1243
|
+
if (!regex.test(input.data)) {
|
|
1244
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1245
|
+
addIssueToContext(ctx, {
|
|
1246
|
+
code: ZodIssueCode.invalid_string,
|
|
1247
|
+
validation: "datetime",
|
|
1248
|
+
message: check.message
|
|
1249
|
+
});
|
|
1250
|
+
status.dirty();
|
|
1251
|
+
}
|
|
1252
|
+
} else if (check.kind === "date") {
|
|
1253
|
+
const regex = dateRegex;
|
|
1254
|
+
if (!regex.test(input.data)) {
|
|
1255
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1256
|
+
addIssueToContext(ctx, {
|
|
1257
|
+
code: ZodIssueCode.invalid_string,
|
|
1258
|
+
validation: "date",
|
|
1259
|
+
message: check.message
|
|
1260
|
+
});
|
|
1261
|
+
status.dirty();
|
|
1262
|
+
}
|
|
1263
|
+
} else if (check.kind === "time") {
|
|
1264
|
+
const regex = timeRegex(check);
|
|
1265
|
+
if (!regex.test(input.data)) {
|
|
1266
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1267
|
+
addIssueToContext(ctx, {
|
|
1268
|
+
code: ZodIssueCode.invalid_string,
|
|
1269
|
+
validation: "time",
|
|
1270
|
+
message: check.message
|
|
1271
|
+
});
|
|
1272
|
+
status.dirty();
|
|
1273
|
+
}
|
|
1274
|
+
} else if (check.kind === "duration") {
|
|
1275
|
+
if (!durationRegex.test(input.data)) {
|
|
1276
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1277
|
+
addIssueToContext(ctx, {
|
|
1278
|
+
validation: "duration",
|
|
1279
|
+
code: ZodIssueCode.invalid_string,
|
|
1280
|
+
message: check.message
|
|
1281
|
+
});
|
|
1282
|
+
status.dirty();
|
|
1283
|
+
}
|
|
1284
|
+
} else if (check.kind === "ip") {
|
|
1285
|
+
if (!isValidIP(input.data, check.version)) {
|
|
1286
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1287
|
+
addIssueToContext(ctx, {
|
|
1288
|
+
validation: "ip",
|
|
1289
|
+
code: ZodIssueCode.invalid_string,
|
|
1290
|
+
message: check.message
|
|
1291
|
+
});
|
|
1292
|
+
status.dirty();
|
|
1293
|
+
}
|
|
1294
|
+
} else if (check.kind === "jwt") {
|
|
1295
|
+
if (!isValidJWT(input.data, check.alg)) {
|
|
1296
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1297
|
+
addIssueToContext(ctx, {
|
|
1298
|
+
validation: "jwt",
|
|
1299
|
+
code: ZodIssueCode.invalid_string,
|
|
1300
|
+
message: check.message
|
|
1301
|
+
});
|
|
1302
|
+
status.dirty();
|
|
1303
|
+
}
|
|
1304
|
+
} else if (check.kind === "cidr") {
|
|
1305
|
+
if (!isValidCidr(input.data, check.version)) {
|
|
1306
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1307
|
+
addIssueToContext(ctx, {
|
|
1308
|
+
validation: "cidr",
|
|
1309
|
+
code: ZodIssueCode.invalid_string,
|
|
1310
|
+
message: check.message
|
|
1311
|
+
});
|
|
1312
|
+
status.dirty();
|
|
1313
|
+
}
|
|
1314
|
+
} else if (check.kind === "base64") {
|
|
1315
|
+
if (!base64Regex.test(input.data)) {
|
|
1316
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1317
|
+
addIssueToContext(ctx, {
|
|
1318
|
+
validation: "base64",
|
|
1319
|
+
code: ZodIssueCode.invalid_string,
|
|
1320
|
+
message: check.message
|
|
1321
|
+
});
|
|
1322
|
+
status.dirty();
|
|
1323
|
+
}
|
|
1324
|
+
} else if (check.kind === "base64url") {
|
|
1325
|
+
if (!base64urlRegex.test(input.data)) {
|
|
1326
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1327
|
+
addIssueToContext(ctx, {
|
|
1328
|
+
validation: "base64url",
|
|
1329
|
+
code: ZodIssueCode.invalid_string,
|
|
1330
|
+
message: check.message
|
|
1331
|
+
});
|
|
1332
|
+
status.dirty();
|
|
1333
|
+
}
|
|
1334
|
+
} else {
|
|
1335
|
+
util.assertNever(check);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
return { status: status.value, value: input.data };
|
|
1339
|
+
}
|
|
1340
|
+
_regex(regex, validation, message) {
|
|
1341
|
+
return this.refinement((data) => regex.test(data), {
|
|
1342
|
+
validation,
|
|
1343
|
+
code: ZodIssueCode.invalid_string,
|
|
1344
|
+
...errorUtil.errToObj(message)
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
_addCheck(check) {
|
|
1348
|
+
return new _ZodString({
|
|
1349
|
+
...this._def,
|
|
1350
|
+
checks: [...this._def.checks, check]
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
email(message) {
|
|
1354
|
+
return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });
|
|
1355
|
+
}
|
|
1356
|
+
url(message) {
|
|
1357
|
+
return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });
|
|
1358
|
+
}
|
|
1359
|
+
emoji(message) {
|
|
1360
|
+
return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });
|
|
1361
|
+
}
|
|
1362
|
+
uuid(message) {
|
|
1363
|
+
return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });
|
|
1364
|
+
}
|
|
1365
|
+
nanoid(message) {
|
|
1366
|
+
return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });
|
|
1367
|
+
}
|
|
1368
|
+
cuid(message) {
|
|
1369
|
+
return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });
|
|
1370
|
+
}
|
|
1371
|
+
cuid2(message) {
|
|
1372
|
+
return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });
|
|
1373
|
+
}
|
|
1374
|
+
ulid(message) {
|
|
1375
|
+
return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });
|
|
1376
|
+
}
|
|
1377
|
+
base64(message) {
|
|
1378
|
+
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
|
|
1379
|
+
}
|
|
1380
|
+
base64url(message) {
|
|
1381
|
+
return this._addCheck({
|
|
1382
|
+
kind: "base64url",
|
|
1383
|
+
...errorUtil.errToObj(message)
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
jwt(options) {
|
|
1387
|
+
return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
|
|
1388
|
+
}
|
|
1389
|
+
ip(options) {
|
|
1390
|
+
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
|
1391
|
+
}
|
|
1392
|
+
cidr(options) {
|
|
1393
|
+
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
1394
|
+
}
|
|
1395
|
+
datetime(options) {
|
|
1396
|
+
if (typeof options === "string") {
|
|
1397
|
+
return this._addCheck({
|
|
1398
|
+
kind: "datetime",
|
|
1399
|
+
precision: null,
|
|
1400
|
+
offset: false,
|
|
1401
|
+
local: false,
|
|
1402
|
+
message: options
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
return this._addCheck({
|
|
1406
|
+
kind: "datetime",
|
|
1407
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1408
|
+
offset: options?.offset ?? false,
|
|
1409
|
+
local: options?.local ?? false,
|
|
1410
|
+
...errorUtil.errToObj(options?.message)
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
date(message) {
|
|
1414
|
+
return this._addCheck({ kind: "date", message });
|
|
1415
|
+
}
|
|
1416
|
+
time(options) {
|
|
1417
|
+
if (typeof options === "string") {
|
|
1418
|
+
return this._addCheck({
|
|
1419
|
+
kind: "time",
|
|
1420
|
+
precision: null,
|
|
1421
|
+
message: options
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
return this._addCheck({
|
|
1425
|
+
kind: "time",
|
|
1426
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1427
|
+
...errorUtil.errToObj(options?.message)
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
duration(message) {
|
|
1431
|
+
return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
|
|
1432
|
+
}
|
|
1433
|
+
regex(regex, message) {
|
|
1434
|
+
return this._addCheck({
|
|
1435
|
+
kind: "regex",
|
|
1436
|
+
regex,
|
|
1437
|
+
...errorUtil.errToObj(message)
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
includes(value, options) {
|
|
1441
|
+
return this._addCheck({
|
|
1442
|
+
kind: "includes",
|
|
1443
|
+
value,
|
|
1444
|
+
position: options?.position,
|
|
1445
|
+
...errorUtil.errToObj(options?.message)
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
startsWith(value, message) {
|
|
1449
|
+
return this._addCheck({
|
|
1450
|
+
kind: "startsWith",
|
|
1451
|
+
value,
|
|
1452
|
+
...errorUtil.errToObj(message)
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
endsWith(value, message) {
|
|
1456
|
+
return this._addCheck({
|
|
1457
|
+
kind: "endsWith",
|
|
1458
|
+
value,
|
|
1459
|
+
...errorUtil.errToObj(message)
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
min(minLength, message) {
|
|
1463
|
+
return this._addCheck({
|
|
1464
|
+
kind: "min",
|
|
1465
|
+
value: minLength,
|
|
1466
|
+
...errorUtil.errToObj(message)
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
max(maxLength, message) {
|
|
1470
|
+
return this._addCheck({
|
|
1471
|
+
kind: "max",
|
|
1472
|
+
value: maxLength,
|
|
1473
|
+
...errorUtil.errToObj(message)
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
length(len, message) {
|
|
1477
|
+
return this._addCheck({
|
|
1478
|
+
kind: "length",
|
|
1479
|
+
value: len,
|
|
1480
|
+
...errorUtil.errToObj(message)
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* Equivalent to `.min(1)`
|
|
1485
|
+
*/
|
|
1486
|
+
nonempty(message) {
|
|
1487
|
+
return this.min(1, errorUtil.errToObj(message));
|
|
1488
|
+
}
|
|
1489
|
+
trim() {
|
|
1490
|
+
return new _ZodString({
|
|
1491
|
+
...this._def,
|
|
1492
|
+
checks: [...this._def.checks, { kind: "trim" }]
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
toLowerCase() {
|
|
1496
|
+
return new _ZodString({
|
|
1497
|
+
...this._def,
|
|
1498
|
+
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
toUpperCase() {
|
|
1502
|
+
return new _ZodString({
|
|
1503
|
+
...this._def,
|
|
1504
|
+
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
1505
|
+
});
|
|
1506
|
+
}
|
|
1507
|
+
get isDatetime() {
|
|
1508
|
+
return !!this._def.checks.find((ch) => ch.kind === "datetime");
|
|
1509
|
+
}
|
|
1510
|
+
get isDate() {
|
|
1511
|
+
return !!this._def.checks.find((ch) => ch.kind === "date");
|
|
1512
|
+
}
|
|
1513
|
+
get isTime() {
|
|
1514
|
+
return !!this._def.checks.find((ch) => ch.kind === "time");
|
|
1515
|
+
}
|
|
1516
|
+
get isDuration() {
|
|
1517
|
+
return !!this._def.checks.find((ch) => ch.kind === "duration");
|
|
1518
|
+
}
|
|
1519
|
+
get isEmail() {
|
|
1520
|
+
return !!this._def.checks.find((ch) => ch.kind === "email");
|
|
1521
|
+
}
|
|
1522
|
+
get isURL() {
|
|
1523
|
+
return !!this._def.checks.find((ch) => ch.kind === "url");
|
|
1524
|
+
}
|
|
1525
|
+
get isEmoji() {
|
|
1526
|
+
return !!this._def.checks.find((ch) => ch.kind === "emoji");
|
|
1527
|
+
}
|
|
1528
|
+
get isUUID() {
|
|
1529
|
+
return !!this._def.checks.find((ch) => ch.kind === "uuid");
|
|
1530
|
+
}
|
|
1531
|
+
get isNANOID() {
|
|
1532
|
+
return !!this._def.checks.find((ch) => ch.kind === "nanoid");
|
|
1533
|
+
}
|
|
1534
|
+
get isCUID() {
|
|
1535
|
+
return !!this._def.checks.find((ch) => ch.kind === "cuid");
|
|
1536
|
+
}
|
|
1537
|
+
get isCUID2() {
|
|
1538
|
+
return !!this._def.checks.find((ch) => ch.kind === "cuid2");
|
|
1539
|
+
}
|
|
1540
|
+
get isULID() {
|
|
1541
|
+
return !!this._def.checks.find((ch) => ch.kind === "ulid");
|
|
1542
|
+
}
|
|
1543
|
+
get isIP() {
|
|
1544
|
+
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
|
1545
|
+
}
|
|
1546
|
+
get isCIDR() {
|
|
1547
|
+
return !!this._def.checks.find((ch) => ch.kind === "cidr");
|
|
1548
|
+
}
|
|
1549
|
+
get isBase64() {
|
|
1550
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64");
|
|
1551
|
+
}
|
|
1552
|
+
get isBase64url() {
|
|
1553
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64url");
|
|
1554
|
+
}
|
|
1555
|
+
get minLength() {
|
|
1556
|
+
let min = null;
|
|
1557
|
+
for (const ch of this._def.checks) {
|
|
1558
|
+
if (ch.kind === "min") {
|
|
1559
|
+
if (min === null || ch.value > min)
|
|
1560
|
+
min = ch.value;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
return min;
|
|
1564
|
+
}
|
|
1565
|
+
get maxLength() {
|
|
1566
|
+
let max = null;
|
|
1567
|
+
for (const ch of this._def.checks) {
|
|
1568
|
+
if (ch.kind === "max") {
|
|
1569
|
+
if (max === null || ch.value < max)
|
|
1570
|
+
max = ch.value;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
return max;
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
ZodString.create = (params) => {
|
|
1577
|
+
return new ZodString({
|
|
1578
|
+
checks: [],
|
|
1579
|
+
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
1580
|
+
coerce: params?.coerce ?? false,
|
|
1581
|
+
...processCreateParams(params)
|
|
1582
|
+
});
|
|
1583
|
+
};
|
|
1584
|
+
function floatSafeRemainder(val, step) {
|
|
1585
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
1586
|
+
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
1587
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1588
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1589
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1590
|
+
return valInt % stepInt / 10 ** decCount;
|
|
1591
|
+
}
|
|
1592
|
+
var ZodNumber = class _ZodNumber extends ZodType {
|
|
1593
|
+
constructor() {
|
|
1594
|
+
super(...arguments);
|
|
1595
|
+
this.min = this.gte;
|
|
1596
|
+
this.max = this.lte;
|
|
1597
|
+
this.step = this.multipleOf;
|
|
1598
|
+
}
|
|
1599
|
+
_parse(input) {
|
|
1600
|
+
if (this._def.coerce) {
|
|
1601
|
+
input.data = Number(input.data);
|
|
1602
|
+
}
|
|
1603
|
+
const parsedType = this._getType(input);
|
|
1604
|
+
if (parsedType !== ZodParsedType.number) {
|
|
1605
|
+
const ctx2 = this._getOrReturnCtx(input);
|
|
1606
|
+
addIssueToContext(ctx2, {
|
|
1607
|
+
code: ZodIssueCode.invalid_type,
|
|
1608
|
+
expected: ZodParsedType.number,
|
|
1609
|
+
received: ctx2.parsedType
|
|
1610
|
+
});
|
|
1611
|
+
return INVALID;
|
|
1612
|
+
}
|
|
1613
|
+
let ctx = void 0;
|
|
1614
|
+
const status = new ParseStatus();
|
|
1615
|
+
for (const check of this._def.checks) {
|
|
1616
|
+
if (check.kind === "int") {
|
|
1617
|
+
if (!util.isInteger(input.data)) {
|
|
1618
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1619
|
+
addIssueToContext(ctx, {
|
|
1620
|
+
code: ZodIssueCode.invalid_type,
|
|
1621
|
+
expected: "integer",
|
|
1622
|
+
received: "float",
|
|
1623
|
+
message: check.message
|
|
1624
|
+
});
|
|
1625
|
+
status.dirty();
|
|
1626
|
+
}
|
|
1627
|
+
} else if (check.kind === "min") {
|
|
1628
|
+
const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1629
|
+
if (tooSmall) {
|
|
1630
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1631
|
+
addIssueToContext(ctx, {
|
|
1632
|
+
code: ZodIssueCode.too_small,
|
|
1633
|
+
minimum: check.value,
|
|
1634
|
+
type: "number",
|
|
1635
|
+
inclusive: check.inclusive,
|
|
1636
|
+
exact: false,
|
|
1637
|
+
message: check.message
|
|
1638
|
+
});
|
|
1639
|
+
status.dirty();
|
|
1640
|
+
}
|
|
1641
|
+
} else if (check.kind === "max") {
|
|
1642
|
+
const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1643
|
+
if (tooBig) {
|
|
1644
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1645
|
+
addIssueToContext(ctx, {
|
|
1646
|
+
code: ZodIssueCode.too_big,
|
|
1647
|
+
maximum: check.value,
|
|
1648
|
+
type: "number",
|
|
1649
|
+
inclusive: check.inclusive,
|
|
1650
|
+
exact: false,
|
|
1651
|
+
message: check.message
|
|
1652
|
+
});
|
|
1653
|
+
status.dirty();
|
|
1654
|
+
}
|
|
1655
|
+
} else if (check.kind === "multipleOf") {
|
|
1656
|
+
if (floatSafeRemainder(input.data, check.value) !== 0) {
|
|
1657
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1658
|
+
addIssueToContext(ctx, {
|
|
1659
|
+
code: ZodIssueCode.not_multiple_of,
|
|
1660
|
+
multipleOf: check.value,
|
|
1661
|
+
message: check.message
|
|
1662
|
+
});
|
|
1663
|
+
status.dirty();
|
|
1664
|
+
}
|
|
1665
|
+
} else if (check.kind === "finite") {
|
|
1666
|
+
if (!Number.isFinite(input.data)) {
|
|
1667
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1668
|
+
addIssueToContext(ctx, {
|
|
1669
|
+
code: ZodIssueCode.not_finite,
|
|
1670
|
+
message: check.message
|
|
1671
|
+
});
|
|
1672
|
+
status.dirty();
|
|
1673
|
+
}
|
|
1674
|
+
} else {
|
|
1675
|
+
util.assertNever(check);
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
return { status: status.value, value: input.data };
|
|
1679
|
+
}
|
|
1680
|
+
gte(value, message) {
|
|
1681
|
+
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
1682
|
+
}
|
|
1683
|
+
gt(value, message) {
|
|
1684
|
+
return this.setLimit("min", value, false, errorUtil.toString(message));
|
|
1685
|
+
}
|
|
1686
|
+
lte(value, message) {
|
|
1687
|
+
return this.setLimit("max", value, true, errorUtil.toString(message));
|
|
1688
|
+
}
|
|
1689
|
+
lt(value, message) {
|
|
1690
|
+
return this.setLimit("max", value, false, errorUtil.toString(message));
|
|
1691
|
+
}
|
|
1692
|
+
setLimit(kind, value, inclusive, message) {
|
|
1693
|
+
return new _ZodNumber({
|
|
1694
|
+
...this._def,
|
|
1695
|
+
checks: [
|
|
1696
|
+
...this._def.checks,
|
|
1697
|
+
{
|
|
1698
|
+
kind,
|
|
1699
|
+
value,
|
|
1700
|
+
inclusive,
|
|
1701
|
+
message: errorUtil.toString(message)
|
|
1702
|
+
}
|
|
1703
|
+
]
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
_addCheck(check) {
|
|
1707
|
+
return new _ZodNumber({
|
|
1708
|
+
...this._def,
|
|
1709
|
+
checks: [...this._def.checks, check]
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
int(message) {
|
|
1713
|
+
return this._addCheck({
|
|
1714
|
+
kind: "int",
|
|
1715
|
+
message: errorUtil.toString(message)
|
|
1716
|
+
});
|
|
1717
|
+
}
|
|
1718
|
+
positive(message) {
|
|
1719
|
+
return this._addCheck({
|
|
1720
|
+
kind: "min",
|
|
1721
|
+
value: 0,
|
|
1722
|
+
inclusive: false,
|
|
1723
|
+
message: errorUtil.toString(message)
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
negative(message) {
|
|
1727
|
+
return this._addCheck({
|
|
1728
|
+
kind: "max",
|
|
1729
|
+
value: 0,
|
|
1730
|
+
inclusive: false,
|
|
1731
|
+
message: errorUtil.toString(message)
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
nonpositive(message) {
|
|
1735
|
+
return this._addCheck({
|
|
1736
|
+
kind: "max",
|
|
1737
|
+
value: 0,
|
|
1738
|
+
inclusive: true,
|
|
1739
|
+
message: errorUtil.toString(message)
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
nonnegative(message) {
|
|
1743
|
+
return this._addCheck({
|
|
1744
|
+
kind: "min",
|
|
1745
|
+
value: 0,
|
|
1746
|
+
inclusive: true,
|
|
1747
|
+
message: errorUtil.toString(message)
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
multipleOf(value, message) {
|
|
1751
|
+
return this._addCheck({
|
|
1752
|
+
kind: "multipleOf",
|
|
1753
|
+
value,
|
|
1754
|
+
message: errorUtil.toString(message)
|
|
1755
|
+
});
|
|
1756
|
+
}
|
|
1757
|
+
finite(message) {
|
|
1758
|
+
return this._addCheck({
|
|
1759
|
+
kind: "finite",
|
|
1760
|
+
message: errorUtil.toString(message)
|
|
1761
|
+
});
|
|
1762
|
+
}
|
|
1763
|
+
safe(message) {
|
|
1764
|
+
return this._addCheck({
|
|
1765
|
+
kind: "min",
|
|
1766
|
+
inclusive: true,
|
|
1767
|
+
value: Number.MIN_SAFE_INTEGER,
|
|
1768
|
+
message: errorUtil.toString(message)
|
|
1769
|
+
})._addCheck({
|
|
1770
|
+
kind: "max",
|
|
1771
|
+
inclusive: true,
|
|
1772
|
+
value: Number.MAX_SAFE_INTEGER,
|
|
1773
|
+
message: errorUtil.toString(message)
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
get minValue() {
|
|
1777
|
+
let min = null;
|
|
1778
|
+
for (const ch of this._def.checks) {
|
|
1779
|
+
if (ch.kind === "min") {
|
|
1780
|
+
if (min === null || ch.value > min)
|
|
1781
|
+
min = ch.value;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
return min;
|
|
1785
|
+
}
|
|
1786
|
+
get maxValue() {
|
|
1787
|
+
let max = null;
|
|
1788
|
+
for (const ch of this._def.checks) {
|
|
1789
|
+
if (ch.kind === "max") {
|
|
1790
|
+
if (max === null || ch.value < max)
|
|
1791
|
+
max = ch.value;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
return max;
|
|
1795
|
+
}
|
|
1796
|
+
get isInt() {
|
|
1797
|
+
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
|
|
1798
|
+
}
|
|
1799
|
+
get isFinite() {
|
|
1800
|
+
let max = null;
|
|
1801
|
+
let min = null;
|
|
1802
|
+
for (const ch of this._def.checks) {
|
|
1803
|
+
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
1804
|
+
return true;
|
|
1805
|
+
} else if (ch.kind === "min") {
|
|
1806
|
+
if (min === null || ch.value > min)
|
|
1807
|
+
min = ch.value;
|
|
1808
|
+
} else if (ch.kind === "max") {
|
|
1809
|
+
if (max === null || ch.value < max)
|
|
1810
|
+
max = ch.value;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
return Number.isFinite(min) && Number.isFinite(max);
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
ZodNumber.create = (params) => {
|
|
1817
|
+
return new ZodNumber({
|
|
1818
|
+
checks: [],
|
|
1819
|
+
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
1820
|
+
coerce: params?.coerce || false,
|
|
1821
|
+
...processCreateParams(params)
|
|
1822
|
+
});
|
|
1823
|
+
};
|
|
1824
|
+
var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
1825
|
+
constructor() {
|
|
1826
|
+
super(...arguments);
|
|
1827
|
+
this.min = this.gte;
|
|
1828
|
+
this.max = this.lte;
|
|
1829
|
+
}
|
|
1830
|
+
_parse(input) {
|
|
1831
|
+
if (this._def.coerce) {
|
|
1832
|
+
try {
|
|
1833
|
+
input.data = BigInt(input.data);
|
|
1834
|
+
} catch {
|
|
1835
|
+
return this._getInvalidInput(input);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
const parsedType = this._getType(input);
|
|
1839
|
+
if (parsedType !== ZodParsedType.bigint) {
|
|
1840
|
+
return this._getInvalidInput(input);
|
|
1841
|
+
}
|
|
1842
|
+
let ctx = void 0;
|
|
1843
|
+
const status = new ParseStatus();
|
|
1844
|
+
for (const check of this._def.checks) {
|
|
1845
|
+
if (check.kind === "min") {
|
|
1846
|
+
const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1847
|
+
if (tooSmall) {
|
|
1848
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1849
|
+
addIssueToContext(ctx, {
|
|
1850
|
+
code: ZodIssueCode.too_small,
|
|
1851
|
+
type: "bigint",
|
|
1852
|
+
minimum: check.value,
|
|
1853
|
+
inclusive: check.inclusive,
|
|
1854
|
+
message: check.message
|
|
1855
|
+
});
|
|
1856
|
+
status.dirty();
|
|
1857
|
+
}
|
|
1858
|
+
} else if (check.kind === "max") {
|
|
1859
|
+
const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1860
|
+
if (tooBig) {
|
|
1861
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1862
|
+
addIssueToContext(ctx, {
|
|
1863
|
+
code: ZodIssueCode.too_big,
|
|
1864
|
+
type: "bigint",
|
|
1865
|
+
maximum: check.value,
|
|
1866
|
+
inclusive: check.inclusive,
|
|
1867
|
+
message: check.message
|
|
1868
|
+
});
|
|
1869
|
+
status.dirty();
|
|
1870
|
+
}
|
|
1871
|
+
} else if (check.kind === "multipleOf") {
|
|
1872
|
+
if (input.data % check.value !== BigInt(0)) {
|
|
1873
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
1874
|
+
addIssueToContext(ctx, {
|
|
1875
|
+
code: ZodIssueCode.not_multiple_of,
|
|
1876
|
+
multipleOf: check.value,
|
|
1877
|
+
message: check.message
|
|
1878
|
+
});
|
|
1879
|
+
status.dirty();
|
|
1880
|
+
}
|
|
1881
|
+
} else {
|
|
1882
|
+
util.assertNever(check);
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
return { status: status.value, value: input.data };
|
|
1886
|
+
}
|
|
1887
|
+
_getInvalidInput(input) {
|
|
1888
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1889
|
+
addIssueToContext(ctx, {
|
|
1890
|
+
code: ZodIssueCode.invalid_type,
|
|
1891
|
+
expected: ZodParsedType.bigint,
|
|
1892
|
+
received: ctx.parsedType
|
|
1893
|
+
});
|
|
1894
|
+
return INVALID;
|
|
1895
|
+
}
|
|
1896
|
+
gte(value, message) {
|
|
1897
|
+
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
1898
|
+
}
|
|
1899
|
+
gt(value, message) {
|
|
1900
|
+
return this.setLimit("min", value, false, errorUtil.toString(message));
|
|
1901
|
+
}
|
|
1902
|
+
lte(value, message) {
|
|
1903
|
+
return this.setLimit("max", value, true, errorUtil.toString(message));
|
|
1904
|
+
}
|
|
1905
|
+
lt(value, message) {
|
|
1906
|
+
return this.setLimit("max", value, false, errorUtil.toString(message));
|
|
1907
|
+
}
|
|
1908
|
+
setLimit(kind, value, inclusive, message) {
|
|
1909
|
+
return new _ZodBigInt({
|
|
1910
|
+
...this._def,
|
|
1911
|
+
checks: [
|
|
1912
|
+
...this._def.checks,
|
|
1913
|
+
{
|
|
1914
|
+
kind,
|
|
1915
|
+
value,
|
|
1916
|
+
inclusive,
|
|
1917
|
+
message: errorUtil.toString(message)
|
|
1918
|
+
}
|
|
1919
|
+
]
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
_addCheck(check) {
|
|
1923
|
+
return new _ZodBigInt({
|
|
1924
|
+
...this._def,
|
|
1925
|
+
checks: [...this._def.checks, check]
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
positive(message) {
|
|
1929
|
+
return this._addCheck({
|
|
1930
|
+
kind: "min",
|
|
1931
|
+
value: BigInt(0),
|
|
1932
|
+
inclusive: false,
|
|
1933
|
+
message: errorUtil.toString(message)
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1936
|
+
negative(message) {
|
|
1937
|
+
return this._addCheck({
|
|
1938
|
+
kind: "max",
|
|
1939
|
+
value: BigInt(0),
|
|
1940
|
+
inclusive: false,
|
|
1941
|
+
message: errorUtil.toString(message)
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
nonpositive(message) {
|
|
1945
|
+
return this._addCheck({
|
|
1946
|
+
kind: "max",
|
|
1947
|
+
value: BigInt(0),
|
|
1948
|
+
inclusive: true,
|
|
1949
|
+
message: errorUtil.toString(message)
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
nonnegative(message) {
|
|
1953
|
+
return this._addCheck({
|
|
1954
|
+
kind: "min",
|
|
1955
|
+
value: BigInt(0),
|
|
1956
|
+
inclusive: true,
|
|
1957
|
+
message: errorUtil.toString(message)
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
multipleOf(value, message) {
|
|
1961
|
+
return this._addCheck({
|
|
1962
|
+
kind: "multipleOf",
|
|
1963
|
+
value,
|
|
1964
|
+
message: errorUtil.toString(message)
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
get minValue() {
|
|
1968
|
+
let min = null;
|
|
1969
|
+
for (const ch of this._def.checks) {
|
|
1970
|
+
if (ch.kind === "min") {
|
|
1971
|
+
if (min === null || ch.value > min)
|
|
1972
|
+
min = ch.value;
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
return min;
|
|
1976
|
+
}
|
|
1977
|
+
get maxValue() {
|
|
1978
|
+
let max = null;
|
|
1979
|
+
for (const ch of this._def.checks) {
|
|
1980
|
+
if (ch.kind === "max") {
|
|
1981
|
+
if (max === null || ch.value < max)
|
|
1982
|
+
max = ch.value;
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
return max;
|
|
1986
|
+
}
|
|
1987
|
+
};
|
|
1988
|
+
ZodBigInt.create = (params) => {
|
|
1989
|
+
return new ZodBigInt({
|
|
1990
|
+
checks: [],
|
|
1991
|
+
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
1992
|
+
coerce: params?.coerce ?? false,
|
|
1993
|
+
...processCreateParams(params)
|
|
1994
|
+
});
|
|
1995
|
+
};
|
|
1996
|
+
var ZodBoolean = class extends ZodType {
|
|
1997
|
+
_parse(input) {
|
|
1998
|
+
if (this._def.coerce) {
|
|
1999
|
+
input.data = Boolean(input.data);
|
|
2000
|
+
}
|
|
2001
|
+
const parsedType = this._getType(input);
|
|
2002
|
+
if (parsedType !== ZodParsedType.boolean) {
|
|
2003
|
+
const ctx = this._getOrReturnCtx(input);
|
|
2004
|
+
addIssueToContext(ctx, {
|
|
2005
|
+
code: ZodIssueCode.invalid_type,
|
|
2006
|
+
expected: ZodParsedType.boolean,
|
|
2007
|
+
received: ctx.parsedType
|
|
2008
|
+
});
|
|
2009
|
+
return INVALID;
|
|
2010
|
+
}
|
|
2011
|
+
return OK(input.data);
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
ZodBoolean.create = (params) => {
|
|
2015
|
+
return new ZodBoolean({
|
|
2016
|
+
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
2017
|
+
coerce: params?.coerce || false,
|
|
2018
|
+
...processCreateParams(params)
|
|
2019
|
+
});
|
|
2020
|
+
};
|
|
2021
|
+
var ZodDate = class _ZodDate extends ZodType {
|
|
2022
|
+
_parse(input) {
|
|
2023
|
+
if (this._def.coerce) {
|
|
2024
|
+
input.data = new Date(input.data);
|
|
2025
|
+
}
|
|
2026
|
+
const parsedType = this._getType(input);
|
|
2027
|
+
if (parsedType !== ZodParsedType.date) {
|
|
2028
|
+
const ctx2 = this._getOrReturnCtx(input);
|
|
2029
|
+
addIssueToContext(ctx2, {
|
|
2030
|
+
code: ZodIssueCode.invalid_type,
|
|
2031
|
+
expected: ZodParsedType.date,
|
|
2032
|
+
received: ctx2.parsedType
|
|
2033
|
+
});
|
|
2034
|
+
return INVALID;
|
|
2035
|
+
}
|
|
2036
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
2037
|
+
const ctx2 = this._getOrReturnCtx(input);
|
|
2038
|
+
addIssueToContext(ctx2, {
|
|
2039
|
+
code: ZodIssueCode.invalid_date
|
|
2040
|
+
});
|
|
2041
|
+
return INVALID;
|
|
2042
|
+
}
|
|
2043
|
+
const status = new ParseStatus();
|
|
2044
|
+
let ctx = void 0;
|
|
2045
|
+
for (const check of this._def.checks) {
|
|
2046
|
+
if (check.kind === "min") {
|
|
2047
|
+
if (input.data.getTime() < check.value) {
|
|
2048
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
2049
|
+
addIssueToContext(ctx, {
|
|
2050
|
+
code: ZodIssueCode.too_small,
|
|
2051
|
+
message: check.message,
|
|
2052
|
+
inclusive: true,
|
|
2053
|
+
exact: false,
|
|
2054
|
+
minimum: check.value,
|
|
2055
|
+
type: "date"
|
|
2056
|
+
});
|
|
2057
|
+
status.dirty();
|
|
2058
|
+
}
|
|
2059
|
+
} else if (check.kind === "max") {
|
|
2060
|
+
if (input.data.getTime() > check.value) {
|
|
2061
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
2062
|
+
addIssueToContext(ctx, {
|
|
2063
|
+
code: ZodIssueCode.too_big,
|
|
2064
|
+
message: check.message,
|
|
2065
|
+
inclusive: true,
|
|
2066
|
+
exact: false,
|
|
2067
|
+
maximum: check.value,
|
|
2068
|
+
type: "date"
|
|
2069
|
+
});
|
|
2070
|
+
status.dirty();
|
|
2071
|
+
}
|
|
2072
|
+
} else {
|
|
2073
|
+
util.assertNever(check);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
return {
|
|
2077
|
+
status: status.value,
|
|
2078
|
+
value: new Date(input.data.getTime())
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
_addCheck(check) {
|
|
2082
|
+
return new _ZodDate({
|
|
2083
|
+
...this._def,
|
|
2084
|
+
checks: [...this._def.checks, check]
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
min(minDate, message) {
|
|
2088
|
+
return this._addCheck({
|
|
2089
|
+
kind: "min",
|
|
2090
|
+
value: minDate.getTime(),
|
|
2091
|
+
message: errorUtil.toString(message)
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
max(maxDate, message) {
|
|
2095
|
+
return this._addCheck({
|
|
2096
|
+
kind: "max",
|
|
2097
|
+
value: maxDate.getTime(),
|
|
2098
|
+
message: errorUtil.toString(message)
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
get minDate() {
|
|
2102
|
+
let min = null;
|
|
2103
|
+
for (const ch of this._def.checks) {
|
|
2104
|
+
if (ch.kind === "min") {
|
|
2105
|
+
if (min === null || ch.value > min)
|
|
2106
|
+
min = ch.value;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
return min != null ? new Date(min) : null;
|
|
2110
|
+
}
|
|
2111
|
+
get maxDate() {
|
|
2112
|
+
let max = null;
|
|
2113
|
+
for (const ch of this._def.checks) {
|
|
2114
|
+
if (ch.kind === "max") {
|
|
2115
|
+
if (max === null || ch.value < max)
|
|
2116
|
+
max = ch.value;
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
return max != null ? new Date(max) : null;
|
|
2120
|
+
}
|
|
2121
|
+
};
|
|
2122
|
+
ZodDate.create = (params) => {
|
|
2123
|
+
return new ZodDate({
|
|
2124
|
+
checks: [],
|
|
2125
|
+
coerce: params?.coerce || false,
|
|
2126
|
+
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
2127
|
+
...processCreateParams(params)
|
|
2128
|
+
});
|
|
2129
|
+
};
|
|
2130
|
+
var ZodSymbol = class extends ZodType {
|
|
2131
|
+
_parse(input) {
|
|
2132
|
+
const parsedType = this._getType(input);
|
|
2133
|
+
if (parsedType !== ZodParsedType.symbol) {
|
|
2134
|
+
const ctx = this._getOrReturnCtx(input);
|
|
2135
|
+
addIssueToContext(ctx, {
|
|
2136
|
+
code: ZodIssueCode.invalid_type,
|
|
2137
|
+
expected: ZodParsedType.symbol,
|
|
2138
|
+
received: ctx.parsedType
|
|
2139
|
+
});
|
|
2140
|
+
return INVALID;
|
|
2141
|
+
}
|
|
2142
|
+
return OK(input.data);
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
ZodSymbol.create = (params) => {
|
|
2146
|
+
return new ZodSymbol({
|
|
2147
|
+
typeName: ZodFirstPartyTypeKind.ZodSymbol,
|
|
2148
|
+
...processCreateParams(params)
|
|
2149
|
+
});
|
|
2150
|
+
};
|
|
2151
|
+
var ZodUndefined = class extends ZodType {
|
|
2152
|
+
_parse(input) {
|
|
2153
|
+
const parsedType = this._getType(input);
|
|
2154
|
+
if (parsedType !== ZodParsedType.undefined) {
|
|
2155
|
+
const ctx = this._getOrReturnCtx(input);
|
|
2156
|
+
addIssueToContext(ctx, {
|
|
2157
|
+
code: ZodIssueCode.invalid_type,
|
|
2158
|
+
expected: ZodParsedType.undefined,
|
|
2159
|
+
received: ctx.parsedType
|
|
2160
|
+
});
|
|
2161
|
+
return INVALID;
|
|
2162
|
+
}
|
|
2163
|
+
return OK(input.data);
|
|
2164
|
+
}
|
|
2165
|
+
};
|
|
2166
|
+
ZodUndefined.create = (params) => {
|
|
2167
|
+
return new ZodUndefined({
|
|
2168
|
+
typeName: ZodFirstPartyTypeKind.ZodUndefined,
|
|
2169
|
+
...processCreateParams(params)
|
|
2170
|
+
});
|
|
2171
|
+
};
|
|
2172
|
+
var ZodNull = class extends ZodType {
|
|
2173
|
+
_parse(input) {
|
|
2174
|
+
const parsedType = this._getType(input);
|
|
2175
|
+
if (parsedType !== ZodParsedType.null) {
|
|
2176
|
+
const ctx = this._getOrReturnCtx(input);
|
|
2177
|
+
addIssueToContext(ctx, {
|
|
2178
|
+
code: ZodIssueCode.invalid_type,
|
|
2179
|
+
expected: ZodParsedType.null,
|
|
2180
|
+
received: ctx.parsedType
|
|
2181
|
+
});
|
|
2182
|
+
return INVALID;
|
|
2183
|
+
}
|
|
2184
|
+
return OK(input.data);
|
|
2185
|
+
}
|
|
2186
|
+
};
|
|
2187
|
+
ZodNull.create = (params) => {
|
|
2188
|
+
return new ZodNull({
|
|
2189
|
+
typeName: ZodFirstPartyTypeKind.ZodNull,
|
|
2190
|
+
...processCreateParams(params)
|
|
2191
|
+
});
|
|
2192
|
+
};
|
|
2193
|
+
var ZodAny = class extends ZodType {
|
|
2194
|
+
constructor() {
|
|
2195
|
+
super(...arguments);
|
|
2196
|
+
this._any = true;
|
|
2197
|
+
}
|
|
2198
|
+
_parse(input) {
|
|
2199
|
+
return OK(input.data);
|
|
2200
|
+
}
|
|
2201
|
+
};
|
|
2202
|
+
ZodAny.create = (params) => {
|
|
2203
|
+
return new ZodAny({
|
|
2204
|
+
typeName: ZodFirstPartyTypeKind.ZodAny,
|
|
2205
|
+
...processCreateParams(params)
|
|
2206
|
+
});
|
|
2207
|
+
};
|
|
2208
|
+
var ZodUnknown = class extends ZodType {
|
|
2209
|
+
constructor() {
|
|
2210
|
+
super(...arguments);
|
|
2211
|
+
this._unknown = true;
|
|
2212
|
+
}
|
|
2213
|
+
_parse(input) {
|
|
2214
|
+
return OK(input.data);
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
ZodUnknown.create = (params) => {
|
|
2218
|
+
return new ZodUnknown({
|
|
2219
|
+
typeName: ZodFirstPartyTypeKind.ZodUnknown,
|
|
2220
|
+
...processCreateParams(params)
|
|
2221
|
+
});
|
|
2222
|
+
};
|
|
2223
|
+
var ZodNever = class extends ZodType {
|
|
2224
|
+
_parse(input) {
|
|
2225
|
+
const ctx = this._getOrReturnCtx(input);
|
|
2226
|
+
addIssueToContext(ctx, {
|
|
2227
|
+
code: ZodIssueCode.invalid_type,
|
|
2228
|
+
expected: ZodParsedType.never,
|
|
2229
|
+
received: ctx.parsedType
|
|
2230
|
+
});
|
|
2231
|
+
return INVALID;
|
|
2232
|
+
}
|
|
2233
|
+
};
|
|
2234
|
+
ZodNever.create = (params) => {
|
|
2235
|
+
return new ZodNever({
|
|
2236
|
+
typeName: ZodFirstPartyTypeKind.ZodNever,
|
|
2237
|
+
...processCreateParams(params)
|
|
2238
|
+
});
|
|
2239
|
+
};
|
|
2240
|
+
var ZodVoid = class extends ZodType {
|
|
2241
|
+
_parse(input) {
|
|
2242
|
+
const parsedType = this._getType(input);
|
|
2243
|
+
if (parsedType !== ZodParsedType.undefined) {
|
|
2244
|
+
const ctx = this._getOrReturnCtx(input);
|
|
2245
|
+
addIssueToContext(ctx, {
|
|
2246
|
+
code: ZodIssueCode.invalid_type,
|
|
2247
|
+
expected: ZodParsedType.void,
|
|
2248
|
+
received: ctx.parsedType
|
|
2249
|
+
});
|
|
2250
|
+
return INVALID;
|
|
2251
|
+
}
|
|
2252
|
+
return OK(input.data);
|
|
2253
|
+
}
|
|
2254
|
+
};
|
|
2255
|
+
ZodVoid.create = (params) => {
|
|
2256
|
+
return new ZodVoid({
|
|
2257
|
+
typeName: ZodFirstPartyTypeKind.ZodVoid,
|
|
2258
|
+
...processCreateParams(params)
|
|
2259
|
+
});
|
|
2260
|
+
};
|
|
2261
|
+
var ZodArray = class _ZodArray extends ZodType {
|
|
2262
|
+
_parse(input) {
|
|
2263
|
+
const { ctx, status } = this._processInputParams(input);
|
|
2264
|
+
const def = this._def;
|
|
2265
|
+
if (ctx.parsedType !== ZodParsedType.array) {
|
|
2266
|
+
addIssueToContext(ctx, {
|
|
2267
|
+
code: ZodIssueCode.invalid_type,
|
|
2268
|
+
expected: ZodParsedType.array,
|
|
2269
|
+
received: ctx.parsedType
|
|
2270
|
+
});
|
|
2271
|
+
return INVALID;
|
|
2272
|
+
}
|
|
2273
|
+
if (def.exactLength !== null) {
|
|
2274
|
+
const tooBig = ctx.data.length > def.exactLength.value;
|
|
2275
|
+
const tooSmall = ctx.data.length < def.exactLength.value;
|
|
2276
|
+
if (tooBig || tooSmall) {
|
|
2277
|
+
addIssueToContext(ctx, {
|
|
2278
|
+
code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,
|
|
2279
|
+
minimum: tooSmall ? def.exactLength.value : void 0,
|
|
2280
|
+
maximum: tooBig ? def.exactLength.value : void 0,
|
|
2281
|
+
type: "array",
|
|
2282
|
+
inclusive: true,
|
|
2283
|
+
exact: true,
|
|
2284
|
+
message: def.exactLength.message
|
|
2285
|
+
});
|
|
2286
|
+
status.dirty();
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
if (def.minLength !== null) {
|
|
2290
|
+
if (ctx.data.length < def.minLength.value) {
|
|
2291
|
+
addIssueToContext(ctx, {
|
|
2292
|
+
code: ZodIssueCode.too_small,
|
|
2293
|
+
minimum: def.minLength.value,
|
|
2294
|
+
type: "array",
|
|
2295
|
+
inclusive: true,
|
|
2296
|
+
exact: false,
|
|
2297
|
+
message: def.minLength.message
|
|
2298
|
+
});
|
|
2299
|
+
status.dirty();
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
if (def.maxLength !== null) {
|
|
2303
|
+
if (ctx.data.length > def.maxLength.value) {
|
|
2304
|
+
addIssueToContext(ctx, {
|
|
2305
|
+
code: ZodIssueCode.too_big,
|
|
2306
|
+
maximum: def.maxLength.value,
|
|
2307
|
+
type: "array",
|
|
2308
|
+
inclusive: true,
|
|
2309
|
+
exact: false,
|
|
2310
|
+
message: def.maxLength.message
|
|
2311
|
+
});
|
|
2312
|
+
status.dirty();
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
if (ctx.common.async) {
|
|
2316
|
+
return Promise.all([...ctx.data].map((item, i) => {
|
|
2317
|
+
return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
|
|
2318
|
+
})).then((result2) => {
|
|
2319
|
+
return ParseStatus.mergeArray(status, result2);
|
|
2320
|
+
});
|
|
2321
|
+
}
|
|
2322
|
+
const result = [...ctx.data].map((item, i) => {
|
|
2323
|
+
return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
|
|
2324
|
+
});
|
|
2325
|
+
return ParseStatus.mergeArray(status, result);
|
|
2326
|
+
}
|
|
2327
|
+
get element() {
|
|
2328
|
+
return this._def.type;
|
|
2329
|
+
}
|
|
2330
|
+
min(minLength, message) {
|
|
2331
|
+
return new _ZodArray({
|
|
2332
|
+
...this._def,
|
|
2333
|
+
minLength: { value: minLength, message: errorUtil.toString(message) }
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
max(maxLength, message) {
|
|
2337
|
+
return new _ZodArray({
|
|
2338
|
+
...this._def,
|
|
2339
|
+
maxLength: { value: maxLength, message: errorUtil.toString(message) }
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
length(len, message) {
|
|
2343
|
+
return new _ZodArray({
|
|
2344
|
+
...this._def,
|
|
2345
|
+
exactLength: { value: len, message: errorUtil.toString(message) }
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
nonempty(message) {
|
|
2349
|
+
return this.min(1, message);
|
|
2350
|
+
}
|
|
2351
|
+
};
|
|
2352
|
+
ZodArray.create = (schema, params) => {
|
|
2353
|
+
return new ZodArray({
|
|
2354
|
+
type: schema,
|
|
2355
|
+
minLength: null,
|
|
2356
|
+
maxLength: null,
|
|
2357
|
+
exactLength: null,
|
|
2358
|
+
typeName: ZodFirstPartyTypeKind.ZodArray,
|
|
2359
|
+
...processCreateParams(params)
|
|
2360
|
+
});
|
|
2361
|
+
};
|
|
2362
|
+
function deepPartialify(schema) {
|
|
2363
|
+
if (schema instanceof ZodObject) {
|
|
2364
|
+
const newShape = {};
|
|
2365
|
+
for (const key in schema.shape) {
|
|
2366
|
+
const fieldSchema = schema.shape[key];
|
|
2367
|
+
newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
|
|
2368
|
+
}
|
|
2369
|
+
return new ZodObject({
|
|
2370
|
+
...schema._def,
|
|
2371
|
+
shape: () => newShape
|
|
2372
|
+
});
|
|
2373
|
+
} else if (schema instanceof ZodArray) {
|
|
2374
|
+
return new ZodArray({
|
|
2375
|
+
...schema._def,
|
|
2376
|
+
type: deepPartialify(schema.element)
|
|
2377
|
+
});
|
|
2378
|
+
} else if (schema instanceof ZodOptional) {
|
|
2379
|
+
return ZodOptional.create(deepPartialify(schema.unwrap()));
|
|
2380
|
+
} else if (schema instanceof ZodNullable) {
|
|
2381
|
+
return ZodNullable.create(deepPartialify(schema.unwrap()));
|
|
2382
|
+
} else if (schema instanceof ZodTuple) {
|
|
2383
|
+
return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
|
|
2384
|
+
} else {
|
|
2385
|
+
return schema;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
var ZodObject = class _ZodObject extends ZodType {
|
|
2389
|
+
constructor() {
|
|
2390
|
+
super(...arguments);
|
|
2391
|
+
this._cached = null;
|
|
2392
|
+
this.nonstrict = this.passthrough;
|
|
2393
|
+
this.augment = this.extend;
|
|
2394
|
+
}
|
|
2395
|
+
_getCached() {
|
|
2396
|
+
if (this._cached !== null)
|
|
2397
|
+
return this._cached;
|
|
2398
|
+
const shape = this._def.shape();
|
|
2399
|
+
const keys = util.objectKeys(shape);
|
|
2400
|
+
this._cached = { shape, keys };
|
|
2401
|
+
return this._cached;
|
|
2402
|
+
}
|
|
2403
|
+
_parse(input) {
|
|
2404
|
+
const parsedType = this._getType(input);
|
|
2405
|
+
if (parsedType !== ZodParsedType.object) {
|
|
2406
|
+
const ctx2 = this._getOrReturnCtx(input);
|
|
2407
|
+
addIssueToContext(ctx2, {
|
|
2408
|
+
code: ZodIssueCode.invalid_type,
|
|
2409
|
+
expected: ZodParsedType.object,
|
|
2410
|
+
received: ctx2.parsedType
|
|
2411
|
+
});
|
|
2412
|
+
return INVALID;
|
|
2413
|
+
}
|
|
2414
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2415
|
+
const { shape, keys: shapeKeys } = this._getCached();
|
|
2416
|
+
const extraKeys = [];
|
|
2417
|
+
if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
|
|
2418
|
+
for (const key in ctx.data) {
|
|
2419
|
+
if (!shapeKeys.includes(key)) {
|
|
2420
|
+
extraKeys.push(key);
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
const pairs = [];
|
|
2425
|
+
for (const key of shapeKeys) {
|
|
2426
|
+
const keyValidator = shape[key];
|
|
2427
|
+
const value = ctx.data[key];
|
|
2428
|
+
pairs.push({
|
|
2429
|
+
key: { status: "valid", value: key },
|
|
2430
|
+
value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
|
|
2431
|
+
alwaysSet: key in ctx.data
|
|
2432
|
+
});
|
|
2433
|
+
}
|
|
2434
|
+
if (this._def.catchall instanceof ZodNever) {
|
|
2435
|
+
const unknownKeys = this._def.unknownKeys;
|
|
2436
|
+
if (unknownKeys === "passthrough") {
|
|
2437
|
+
for (const key of extraKeys) {
|
|
2438
|
+
pairs.push({
|
|
2439
|
+
key: { status: "valid", value: key },
|
|
2440
|
+
value: { status: "valid", value: ctx.data[key] }
|
|
2441
|
+
});
|
|
2442
|
+
}
|
|
2443
|
+
} else if (unknownKeys === "strict") {
|
|
2444
|
+
if (extraKeys.length > 0) {
|
|
2445
|
+
addIssueToContext(ctx, {
|
|
2446
|
+
code: ZodIssueCode.unrecognized_keys,
|
|
2447
|
+
keys: extraKeys
|
|
2448
|
+
});
|
|
2449
|
+
status.dirty();
|
|
2450
|
+
}
|
|
2451
|
+
} else if (unknownKeys === "strip") {
|
|
2452
|
+
} else {
|
|
2453
|
+
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2454
|
+
}
|
|
2455
|
+
} else {
|
|
2456
|
+
const catchall = this._def.catchall;
|
|
2457
|
+
for (const key of extraKeys) {
|
|
2458
|
+
const value = ctx.data[key];
|
|
2459
|
+
pairs.push({
|
|
2460
|
+
key: { status: "valid", value: key },
|
|
2461
|
+
value: catchall._parse(
|
|
2462
|
+
new ParseInputLazyPath(ctx, value, ctx.path, key)
|
|
2463
|
+
//, ctx.child(key), value, getParsedType(value)
|
|
2464
|
+
),
|
|
2465
|
+
alwaysSet: key in ctx.data
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
if (ctx.common.async) {
|
|
2470
|
+
return Promise.resolve().then(async () => {
|
|
2471
|
+
const syncPairs = [];
|
|
2472
|
+
for (const pair of pairs) {
|
|
2473
|
+
const key = await pair.key;
|
|
2474
|
+
const value = await pair.value;
|
|
2475
|
+
syncPairs.push({
|
|
2476
|
+
key,
|
|
2477
|
+
value,
|
|
2478
|
+
alwaysSet: pair.alwaysSet
|
|
2479
|
+
});
|
|
2480
|
+
}
|
|
2481
|
+
return syncPairs;
|
|
2482
|
+
}).then((syncPairs) => {
|
|
2483
|
+
return ParseStatus.mergeObjectSync(status, syncPairs);
|
|
2484
|
+
});
|
|
2485
|
+
} else {
|
|
2486
|
+
return ParseStatus.mergeObjectSync(status, pairs);
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
get shape() {
|
|
2490
|
+
return this._def.shape();
|
|
2491
|
+
}
|
|
2492
|
+
strict(message) {
|
|
2493
|
+
errorUtil.errToObj;
|
|
2494
|
+
return new _ZodObject({
|
|
2495
|
+
...this._def,
|
|
2496
|
+
unknownKeys: "strict",
|
|
2497
|
+
...message !== void 0 ? {
|
|
2498
|
+
errorMap: (issue, ctx) => {
|
|
2499
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
2500
|
+
if (issue.code === "unrecognized_keys")
|
|
2501
|
+
return {
|
|
2502
|
+
message: errorUtil.errToObj(message).message ?? defaultError
|
|
2503
|
+
};
|
|
2504
|
+
return {
|
|
2505
|
+
message: defaultError
|
|
2506
|
+
};
|
|
2507
|
+
}
|
|
2508
|
+
} : {}
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2511
|
+
strip() {
|
|
2512
|
+
return new _ZodObject({
|
|
2513
|
+
...this._def,
|
|
2514
|
+
unknownKeys: "strip"
|
|
2515
|
+
});
|
|
2516
|
+
}
|
|
2517
|
+
passthrough() {
|
|
2518
|
+
return new _ZodObject({
|
|
2519
|
+
...this._def,
|
|
2520
|
+
unknownKeys: "passthrough"
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
// const AugmentFactory =
|
|
2524
|
+
// <Def extends ZodObjectDef>(def: Def) =>
|
|
2525
|
+
// <Augmentation extends ZodRawShape>(
|
|
2526
|
+
// augmentation: Augmentation
|
|
2527
|
+
// ): ZodObject<
|
|
2528
|
+
// extendShape<ReturnType<Def["shape"]>, Augmentation>,
|
|
2529
|
+
// Def["unknownKeys"],
|
|
2530
|
+
// Def["catchall"]
|
|
2531
|
+
// > => {
|
|
2532
|
+
// return new ZodObject({
|
|
2533
|
+
// ...def,
|
|
2534
|
+
// shape: () => ({
|
|
2535
|
+
// ...def.shape(),
|
|
2536
|
+
// ...augmentation,
|
|
2537
|
+
// }),
|
|
2538
|
+
// }) as any;
|
|
2539
|
+
// };
|
|
2540
|
+
extend(augmentation) {
|
|
2541
|
+
return new _ZodObject({
|
|
2542
|
+
...this._def,
|
|
2543
|
+
shape: () => ({
|
|
2544
|
+
...this._def.shape(),
|
|
2545
|
+
...augmentation
|
|
2546
|
+
})
|
|
2547
|
+
});
|
|
2548
|
+
}
|
|
2549
|
+
/**
|
|
2550
|
+
* Prior to zod@1.0.12 there was a bug in the
|
|
2551
|
+
* inferred type of merged objects. Please
|
|
2552
|
+
* upgrade if you are experiencing issues.
|
|
2553
|
+
*/
|
|
2554
|
+
merge(merging) {
|
|
2555
|
+
const merged = new _ZodObject({
|
|
2556
|
+
unknownKeys: merging._def.unknownKeys,
|
|
2557
|
+
catchall: merging._def.catchall,
|
|
2558
|
+
shape: () => ({
|
|
2559
|
+
...this._def.shape(),
|
|
2560
|
+
...merging._def.shape()
|
|
2561
|
+
}),
|
|
2562
|
+
typeName: ZodFirstPartyTypeKind.ZodObject
|
|
2563
|
+
});
|
|
2564
|
+
return merged;
|
|
2565
|
+
}
|
|
2566
|
+
// merge<
|
|
2567
|
+
// Incoming extends AnyZodObject,
|
|
2568
|
+
// Augmentation extends Incoming["shape"],
|
|
2569
|
+
// NewOutput extends {
|
|
2570
|
+
// [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
|
|
2571
|
+
// ? Augmentation[k]["_output"]
|
|
2572
|
+
// : k extends keyof Output
|
|
2573
|
+
// ? Output[k]
|
|
2574
|
+
// : never;
|
|
2575
|
+
// },
|
|
2576
|
+
// NewInput extends {
|
|
2577
|
+
// [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
|
|
2578
|
+
// ? Augmentation[k]["_input"]
|
|
2579
|
+
// : k extends keyof Input
|
|
2580
|
+
// ? Input[k]
|
|
2581
|
+
// : never;
|
|
2582
|
+
// }
|
|
2583
|
+
// >(
|
|
2584
|
+
// merging: Incoming
|
|
2585
|
+
// ): ZodObject<
|
|
2586
|
+
// extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
|
|
2587
|
+
// Incoming["_def"]["unknownKeys"],
|
|
2588
|
+
// Incoming["_def"]["catchall"],
|
|
2589
|
+
// NewOutput,
|
|
2590
|
+
// NewInput
|
|
2591
|
+
// > {
|
|
2592
|
+
// const merged: any = new ZodObject({
|
|
2593
|
+
// unknownKeys: merging._def.unknownKeys,
|
|
2594
|
+
// catchall: merging._def.catchall,
|
|
2595
|
+
// shape: () =>
|
|
2596
|
+
// objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
|
2597
|
+
// typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2598
|
+
// }) as any;
|
|
2599
|
+
// return merged;
|
|
2600
|
+
// }
|
|
2601
|
+
setKey(key, schema) {
|
|
2602
|
+
return this.augment({ [key]: schema });
|
|
2603
|
+
}
|
|
2604
|
+
// merge<Incoming extends AnyZodObject>(
|
|
2605
|
+
// merging: Incoming
|
|
2606
|
+
// ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
|
|
2607
|
+
// ZodObject<
|
|
2608
|
+
// extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
|
|
2609
|
+
// Incoming["_def"]["unknownKeys"],
|
|
2610
|
+
// Incoming["_def"]["catchall"]
|
|
2611
|
+
// > {
|
|
2612
|
+
// // const mergedShape = objectUtil.mergeShapes(
|
|
2613
|
+
// // this._def.shape(),
|
|
2614
|
+
// // merging._def.shape()
|
|
2615
|
+
// // );
|
|
2616
|
+
// const merged: any = new ZodObject({
|
|
2617
|
+
// unknownKeys: merging._def.unknownKeys,
|
|
2618
|
+
// catchall: merging._def.catchall,
|
|
2619
|
+
// shape: () =>
|
|
2620
|
+
// objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
|
|
2621
|
+
// typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2622
|
+
// }) as any;
|
|
2623
|
+
// return merged;
|
|
2624
|
+
// }
|
|
2625
|
+
catchall(index) {
|
|
2626
|
+
return new _ZodObject({
|
|
2627
|
+
...this._def,
|
|
2628
|
+
catchall: index
|
|
2629
|
+
});
|
|
2630
|
+
}
|
|
2631
|
+
pick(mask) {
|
|
2632
|
+
const shape = {};
|
|
2633
|
+
for (const key of util.objectKeys(mask)) {
|
|
2634
|
+
if (mask[key] && this.shape[key]) {
|
|
2635
|
+
shape[key] = this.shape[key];
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
return new _ZodObject({
|
|
2639
|
+
...this._def,
|
|
2640
|
+
shape: () => shape
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2643
|
+
omit(mask) {
|
|
2644
|
+
const shape = {};
|
|
2645
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2646
|
+
if (!mask[key]) {
|
|
2647
|
+
shape[key] = this.shape[key];
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
return new _ZodObject({
|
|
2651
|
+
...this._def,
|
|
2652
|
+
shape: () => shape
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* @deprecated
|
|
2657
|
+
*/
|
|
2658
|
+
deepPartial() {
|
|
2659
|
+
return deepPartialify(this);
|
|
2660
|
+
}
|
|
2661
|
+
partial(mask) {
|
|
2662
|
+
const newShape = {};
|
|
2663
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2664
|
+
const fieldSchema = this.shape[key];
|
|
2665
|
+
if (mask && !mask[key]) {
|
|
2666
|
+
newShape[key] = fieldSchema;
|
|
2667
|
+
} else {
|
|
2668
|
+
newShape[key] = fieldSchema.optional();
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
return new _ZodObject({
|
|
2672
|
+
...this._def,
|
|
2673
|
+
shape: () => newShape
|
|
2674
|
+
});
|
|
2675
|
+
}
|
|
2676
|
+
required(mask) {
|
|
2677
|
+
const newShape = {};
|
|
2678
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2679
|
+
if (mask && !mask[key]) {
|
|
2680
|
+
newShape[key] = this.shape[key];
|
|
2681
|
+
} else {
|
|
2682
|
+
const fieldSchema = this.shape[key];
|
|
2683
|
+
let newField = fieldSchema;
|
|
2684
|
+
while (newField instanceof ZodOptional) {
|
|
2685
|
+
newField = newField._def.innerType;
|
|
2686
|
+
}
|
|
2687
|
+
newShape[key] = newField;
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
return new _ZodObject({
|
|
2691
|
+
...this._def,
|
|
2692
|
+
shape: () => newShape
|
|
2693
|
+
});
|
|
2694
|
+
}
|
|
2695
|
+
keyof() {
|
|
2696
|
+
return createZodEnum(util.objectKeys(this.shape));
|
|
2697
|
+
}
|
|
2698
|
+
};
|
|
2699
|
+
ZodObject.create = (shape, params) => {
|
|
2700
|
+
return new ZodObject({
|
|
2701
|
+
shape: () => shape,
|
|
2702
|
+
unknownKeys: "strip",
|
|
2703
|
+
catchall: ZodNever.create(),
|
|
2704
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2705
|
+
...processCreateParams(params)
|
|
2706
|
+
});
|
|
2707
|
+
};
|
|
2708
|
+
ZodObject.strictCreate = (shape, params) => {
|
|
2709
|
+
return new ZodObject({
|
|
2710
|
+
shape: () => shape,
|
|
2711
|
+
unknownKeys: "strict",
|
|
2712
|
+
catchall: ZodNever.create(),
|
|
2713
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2714
|
+
...processCreateParams(params)
|
|
2715
|
+
});
|
|
2716
|
+
};
|
|
2717
|
+
ZodObject.lazycreate = (shape, params) => {
|
|
2718
|
+
return new ZodObject({
|
|
2719
|
+
shape,
|
|
2720
|
+
unknownKeys: "strip",
|
|
2721
|
+
catchall: ZodNever.create(),
|
|
2722
|
+
typeName: ZodFirstPartyTypeKind.ZodObject,
|
|
2723
|
+
...processCreateParams(params)
|
|
2724
|
+
});
|
|
2725
|
+
};
|
|
2726
|
+
var ZodUnion = class extends ZodType {
|
|
2727
|
+
_parse(input) {
|
|
2728
|
+
const { ctx } = this._processInputParams(input);
|
|
2729
|
+
const options = this._def.options;
|
|
2730
|
+
function handleResults(results) {
|
|
2731
|
+
for (const result of results) {
|
|
2732
|
+
if (result.result.status === "valid") {
|
|
2733
|
+
return result.result;
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
for (const result of results) {
|
|
2737
|
+
if (result.result.status === "dirty") {
|
|
2738
|
+
ctx.common.issues.push(...result.ctx.common.issues);
|
|
2739
|
+
return result.result;
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));
|
|
2743
|
+
addIssueToContext(ctx, {
|
|
2744
|
+
code: ZodIssueCode.invalid_union,
|
|
2745
|
+
unionErrors
|
|
2746
|
+
});
|
|
2747
|
+
return INVALID;
|
|
2748
|
+
}
|
|
2749
|
+
if (ctx.common.async) {
|
|
2750
|
+
return Promise.all(options.map(async (option) => {
|
|
2751
|
+
const childCtx = {
|
|
2752
|
+
...ctx,
|
|
2753
|
+
common: {
|
|
2754
|
+
...ctx.common,
|
|
2755
|
+
issues: []
|
|
2756
|
+
},
|
|
2757
|
+
parent: null
|
|
2758
|
+
};
|
|
2759
|
+
return {
|
|
2760
|
+
result: await option._parseAsync({
|
|
2761
|
+
data: ctx.data,
|
|
2762
|
+
path: ctx.path,
|
|
2763
|
+
parent: childCtx
|
|
2764
|
+
}),
|
|
2765
|
+
ctx: childCtx
|
|
2766
|
+
};
|
|
2767
|
+
})).then(handleResults);
|
|
2768
|
+
} else {
|
|
2769
|
+
let dirty = void 0;
|
|
2770
|
+
const issues = [];
|
|
2771
|
+
for (const option of options) {
|
|
2772
|
+
const childCtx = {
|
|
2773
|
+
...ctx,
|
|
2774
|
+
common: {
|
|
2775
|
+
...ctx.common,
|
|
2776
|
+
issues: []
|
|
2777
|
+
},
|
|
2778
|
+
parent: null
|
|
2779
|
+
};
|
|
2780
|
+
const result = option._parseSync({
|
|
2781
|
+
data: ctx.data,
|
|
2782
|
+
path: ctx.path,
|
|
2783
|
+
parent: childCtx
|
|
2784
|
+
});
|
|
2785
|
+
if (result.status === "valid") {
|
|
2786
|
+
return result;
|
|
2787
|
+
} else if (result.status === "dirty" && !dirty) {
|
|
2788
|
+
dirty = { result, ctx: childCtx };
|
|
2789
|
+
}
|
|
2790
|
+
if (childCtx.common.issues.length) {
|
|
2791
|
+
issues.push(childCtx.common.issues);
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
if (dirty) {
|
|
2795
|
+
ctx.common.issues.push(...dirty.ctx.common.issues);
|
|
2796
|
+
return dirty.result;
|
|
2797
|
+
}
|
|
2798
|
+
const unionErrors = issues.map((issues2) => new ZodError(issues2));
|
|
2799
|
+
addIssueToContext(ctx, {
|
|
2800
|
+
code: ZodIssueCode.invalid_union,
|
|
2801
|
+
unionErrors
|
|
2802
|
+
});
|
|
2803
|
+
return INVALID;
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
get options() {
|
|
2807
|
+
return this._def.options;
|
|
2808
|
+
}
|
|
2809
|
+
};
|
|
2810
|
+
ZodUnion.create = (types, params) => {
|
|
2811
|
+
return new ZodUnion({
|
|
2812
|
+
options: types,
|
|
2813
|
+
typeName: ZodFirstPartyTypeKind.ZodUnion,
|
|
2814
|
+
...processCreateParams(params)
|
|
2815
|
+
});
|
|
2816
|
+
};
|
|
2817
|
+
var getDiscriminator = (type) => {
|
|
2818
|
+
if (type instanceof ZodLazy) {
|
|
2819
|
+
return getDiscriminator(type.schema);
|
|
2820
|
+
} else if (type instanceof ZodEffects) {
|
|
2821
|
+
return getDiscriminator(type.innerType());
|
|
2822
|
+
} else if (type instanceof ZodLiteral) {
|
|
2823
|
+
return [type.value];
|
|
2824
|
+
} else if (type instanceof ZodEnum) {
|
|
2825
|
+
return type.options;
|
|
2826
|
+
} else if (type instanceof ZodNativeEnum) {
|
|
2827
|
+
return util.objectValues(type.enum);
|
|
2828
|
+
} else if (type instanceof ZodDefault) {
|
|
2829
|
+
return getDiscriminator(type._def.innerType);
|
|
2830
|
+
} else if (type instanceof ZodUndefined) {
|
|
2831
|
+
return [void 0];
|
|
2832
|
+
} else if (type instanceof ZodNull) {
|
|
2833
|
+
return [null];
|
|
2834
|
+
} else if (type instanceof ZodOptional) {
|
|
2835
|
+
return [void 0, ...getDiscriminator(type.unwrap())];
|
|
2836
|
+
} else if (type instanceof ZodNullable) {
|
|
2837
|
+
return [null, ...getDiscriminator(type.unwrap())];
|
|
2838
|
+
} else if (type instanceof ZodBranded) {
|
|
2839
|
+
return getDiscriminator(type.unwrap());
|
|
2840
|
+
} else if (type instanceof ZodReadonly) {
|
|
2841
|
+
return getDiscriminator(type.unwrap());
|
|
2842
|
+
} else if (type instanceof ZodCatch) {
|
|
2843
|
+
return getDiscriminator(type._def.innerType);
|
|
2844
|
+
} else {
|
|
2845
|
+
return [];
|
|
2846
|
+
}
|
|
2847
|
+
};
|
|
2848
|
+
var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType {
|
|
2849
|
+
_parse(input) {
|
|
2850
|
+
const { ctx } = this._processInputParams(input);
|
|
2851
|
+
if (ctx.parsedType !== ZodParsedType.object) {
|
|
2852
|
+
addIssueToContext(ctx, {
|
|
2853
|
+
code: ZodIssueCode.invalid_type,
|
|
2854
|
+
expected: ZodParsedType.object,
|
|
2855
|
+
received: ctx.parsedType
|
|
2856
|
+
});
|
|
2857
|
+
return INVALID;
|
|
2858
|
+
}
|
|
2859
|
+
const discriminator = this.discriminator;
|
|
2860
|
+
const discriminatorValue = ctx.data[discriminator];
|
|
2861
|
+
const option = this.optionsMap.get(discriminatorValue);
|
|
2862
|
+
if (!option) {
|
|
2863
|
+
addIssueToContext(ctx, {
|
|
2864
|
+
code: ZodIssueCode.invalid_union_discriminator,
|
|
2865
|
+
options: Array.from(this.optionsMap.keys()),
|
|
2866
|
+
path: [discriminator]
|
|
2867
|
+
});
|
|
2868
|
+
return INVALID;
|
|
2869
|
+
}
|
|
2870
|
+
if (ctx.common.async) {
|
|
2871
|
+
return option._parseAsync({
|
|
2872
|
+
data: ctx.data,
|
|
2873
|
+
path: ctx.path,
|
|
2874
|
+
parent: ctx
|
|
2875
|
+
});
|
|
2876
|
+
} else {
|
|
2877
|
+
return option._parseSync({
|
|
2878
|
+
data: ctx.data,
|
|
2879
|
+
path: ctx.path,
|
|
2880
|
+
parent: ctx
|
|
2881
|
+
});
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
get discriminator() {
|
|
2885
|
+
return this._def.discriminator;
|
|
2886
|
+
}
|
|
2887
|
+
get options() {
|
|
2888
|
+
return this._def.options;
|
|
2889
|
+
}
|
|
2890
|
+
get optionsMap() {
|
|
2891
|
+
return this._def.optionsMap;
|
|
2892
|
+
}
|
|
2893
|
+
/**
|
|
2894
|
+
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
2895
|
+
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
2896
|
+
* have a different value for each object in the union.
|
|
2897
|
+
* @param discriminator the name of the discriminator property
|
|
2898
|
+
* @param types an array of object schemas
|
|
2899
|
+
* @param params
|
|
2900
|
+
*/
|
|
2901
|
+
static create(discriminator, options, params) {
|
|
2902
|
+
const optionsMap = /* @__PURE__ */ new Map();
|
|
2903
|
+
for (const type of options) {
|
|
2904
|
+
const discriminatorValues = getDiscriminator(type.shape[discriminator]);
|
|
2905
|
+
if (!discriminatorValues.length) {
|
|
2906
|
+
throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
|
|
2907
|
+
}
|
|
2908
|
+
for (const value of discriminatorValues) {
|
|
2909
|
+
if (optionsMap.has(value)) {
|
|
2910
|
+
throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
|
|
2911
|
+
}
|
|
2912
|
+
optionsMap.set(value, type);
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
return new _ZodDiscriminatedUnion({
|
|
2916
|
+
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
|
|
2917
|
+
discriminator,
|
|
2918
|
+
options,
|
|
2919
|
+
optionsMap,
|
|
2920
|
+
...processCreateParams(params)
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
};
|
|
2924
|
+
function mergeValues(a, b) {
|
|
2925
|
+
const aType = getParsedType(a);
|
|
2926
|
+
const bType = getParsedType(b);
|
|
2927
|
+
if (a === b) {
|
|
2928
|
+
return { valid: true, data: a };
|
|
2929
|
+
} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
2930
|
+
const bKeys = util.objectKeys(b);
|
|
2931
|
+
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2932
|
+
const newObj = { ...a, ...b };
|
|
2933
|
+
for (const key of sharedKeys) {
|
|
2934
|
+
const sharedValue = mergeValues(a[key], b[key]);
|
|
2935
|
+
if (!sharedValue.valid) {
|
|
2936
|
+
return { valid: false };
|
|
2937
|
+
}
|
|
2938
|
+
newObj[key] = sharedValue.data;
|
|
2939
|
+
}
|
|
2940
|
+
return { valid: true, data: newObj };
|
|
2941
|
+
} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
2942
|
+
if (a.length !== b.length) {
|
|
2943
|
+
return { valid: false };
|
|
2944
|
+
}
|
|
2945
|
+
const newArray = [];
|
|
2946
|
+
for (let index = 0; index < a.length; index++) {
|
|
2947
|
+
const itemA = a[index];
|
|
2948
|
+
const itemB = b[index];
|
|
2949
|
+
const sharedValue = mergeValues(itemA, itemB);
|
|
2950
|
+
if (!sharedValue.valid) {
|
|
2951
|
+
return { valid: false };
|
|
2952
|
+
}
|
|
2953
|
+
newArray.push(sharedValue.data);
|
|
2954
|
+
}
|
|
2955
|
+
return { valid: true, data: newArray };
|
|
2956
|
+
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
|
|
2957
|
+
return { valid: true, data: a };
|
|
2958
|
+
} else {
|
|
2959
|
+
return { valid: false };
|
|
2960
|
+
}
|
|
2961
|
+
}
|
|
2962
|
+
var ZodIntersection = class extends ZodType {
|
|
2963
|
+
_parse(input) {
|
|
2964
|
+
const { status, ctx } = this._processInputParams(input);
|
|
2965
|
+
const handleParsed = (parsedLeft, parsedRight) => {
|
|
2966
|
+
if (isAborted(parsedLeft) || isAborted(parsedRight)) {
|
|
2967
|
+
return INVALID;
|
|
2968
|
+
}
|
|
2969
|
+
const merged = mergeValues(parsedLeft.value, parsedRight.value);
|
|
2970
|
+
if (!merged.valid) {
|
|
2971
|
+
addIssueToContext(ctx, {
|
|
2972
|
+
code: ZodIssueCode.invalid_intersection_types
|
|
2973
|
+
});
|
|
2974
|
+
return INVALID;
|
|
2975
|
+
}
|
|
2976
|
+
if (isDirty(parsedLeft) || isDirty(parsedRight)) {
|
|
2977
|
+
status.dirty();
|
|
2978
|
+
}
|
|
2979
|
+
return { status: status.value, value: merged.data };
|
|
2980
|
+
};
|
|
2981
|
+
if (ctx.common.async) {
|
|
2982
|
+
return Promise.all([
|
|
2983
|
+
this._def.left._parseAsync({
|
|
2984
|
+
data: ctx.data,
|
|
2985
|
+
path: ctx.path,
|
|
2986
|
+
parent: ctx
|
|
2987
|
+
}),
|
|
2988
|
+
this._def.right._parseAsync({
|
|
2989
|
+
data: ctx.data,
|
|
2990
|
+
path: ctx.path,
|
|
2991
|
+
parent: ctx
|
|
2992
|
+
})
|
|
2993
|
+
]).then(([left, right]) => handleParsed(left, right));
|
|
2994
|
+
} else {
|
|
2995
|
+
return handleParsed(this._def.left._parseSync({
|
|
2996
|
+
data: ctx.data,
|
|
2997
|
+
path: ctx.path,
|
|
2998
|
+
parent: ctx
|
|
2999
|
+
}), this._def.right._parseSync({
|
|
3000
|
+
data: ctx.data,
|
|
3001
|
+
path: ctx.path,
|
|
3002
|
+
parent: ctx
|
|
3003
|
+
}));
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
ZodIntersection.create = (left, right, params) => {
|
|
3008
|
+
return new ZodIntersection({
|
|
3009
|
+
left,
|
|
3010
|
+
right,
|
|
3011
|
+
typeName: ZodFirstPartyTypeKind.ZodIntersection,
|
|
3012
|
+
...processCreateParams(params)
|
|
3013
|
+
});
|
|
3014
|
+
};
|
|
3015
|
+
var ZodTuple = class _ZodTuple extends ZodType {
|
|
3016
|
+
_parse(input) {
|
|
3017
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3018
|
+
if (ctx.parsedType !== ZodParsedType.array) {
|
|
3019
|
+
addIssueToContext(ctx, {
|
|
3020
|
+
code: ZodIssueCode.invalid_type,
|
|
3021
|
+
expected: ZodParsedType.array,
|
|
3022
|
+
received: ctx.parsedType
|
|
3023
|
+
});
|
|
3024
|
+
return INVALID;
|
|
3025
|
+
}
|
|
3026
|
+
if (ctx.data.length < this._def.items.length) {
|
|
3027
|
+
addIssueToContext(ctx, {
|
|
3028
|
+
code: ZodIssueCode.too_small,
|
|
3029
|
+
minimum: this._def.items.length,
|
|
3030
|
+
inclusive: true,
|
|
3031
|
+
exact: false,
|
|
3032
|
+
type: "array"
|
|
3033
|
+
});
|
|
3034
|
+
return INVALID;
|
|
3035
|
+
}
|
|
3036
|
+
const rest = this._def.rest;
|
|
3037
|
+
if (!rest && ctx.data.length > this._def.items.length) {
|
|
3038
|
+
addIssueToContext(ctx, {
|
|
3039
|
+
code: ZodIssueCode.too_big,
|
|
3040
|
+
maximum: this._def.items.length,
|
|
3041
|
+
inclusive: true,
|
|
3042
|
+
exact: false,
|
|
3043
|
+
type: "array"
|
|
3044
|
+
});
|
|
3045
|
+
status.dirty();
|
|
3046
|
+
}
|
|
3047
|
+
const items = [...ctx.data].map((item, itemIndex) => {
|
|
3048
|
+
const schema = this._def.items[itemIndex] || this._def.rest;
|
|
3049
|
+
if (!schema)
|
|
3050
|
+
return null;
|
|
3051
|
+
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
3052
|
+
}).filter((x) => !!x);
|
|
3053
|
+
if (ctx.common.async) {
|
|
3054
|
+
return Promise.all(items).then((results) => {
|
|
3055
|
+
return ParseStatus.mergeArray(status, results);
|
|
3056
|
+
});
|
|
3057
|
+
} else {
|
|
3058
|
+
return ParseStatus.mergeArray(status, items);
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
get items() {
|
|
3062
|
+
return this._def.items;
|
|
3063
|
+
}
|
|
3064
|
+
rest(rest) {
|
|
3065
|
+
return new _ZodTuple({
|
|
3066
|
+
...this._def,
|
|
3067
|
+
rest
|
|
3068
|
+
});
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3071
|
+
ZodTuple.create = (schemas, params) => {
|
|
3072
|
+
if (!Array.isArray(schemas)) {
|
|
3073
|
+
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
3074
|
+
}
|
|
3075
|
+
return new ZodTuple({
|
|
3076
|
+
items: schemas,
|
|
3077
|
+
typeName: ZodFirstPartyTypeKind.ZodTuple,
|
|
3078
|
+
rest: null,
|
|
3079
|
+
...processCreateParams(params)
|
|
3080
|
+
});
|
|
3081
|
+
};
|
|
3082
|
+
var ZodRecord = class _ZodRecord extends ZodType {
|
|
3083
|
+
get keySchema() {
|
|
3084
|
+
return this._def.keyType;
|
|
3085
|
+
}
|
|
3086
|
+
get valueSchema() {
|
|
3087
|
+
return this._def.valueType;
|
|
3088
|
+
}
|
|
3089
|
+
_parse(input) {
|
|
3090
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3091
|
+
if (ctx.parsedType !== ZodParsedType.object) {
|
|
3092
|
+
addIssueToContext(ctx, {
|
|
3093
|
+
code: ZodIssueCode.invalid_type,
|
|
3094
|
+
expected: ZodParsedType.object,
|
|
3095
|
+
received: ctx.parsedType
|
|
3096
|
+
});
|
|
3097
|
+
return INVALID;
|
|
3098
|
+
}
|
|
3099
|
+
const pairs = [];
|
|
3100
|
+
const keyType = this._def.keyType;
|
|
3101
|
+
const valueType = this._def.valueType;
|
|
3102
|
+
for (const key in ctx.data) {
|
|
3103
|
+
pairs.push({
|
|
3104
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
|
|
3105
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
|
|
3106
|
+
alwaysSet: key in ctx.data
|
|
3107
|
+
});
|
|
3108
|
+
}
|
|
3109
|
+
if (ctx.common.async) {
|
|
3110
|
+
return ParseStatus.mergeObjectAsync(status, pairs);
|
|
3111
|
+
} else {
|
|
3112
|
+
return ParseStatus.mergeObjectSync(status, pairs);
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
get element() {
|
|
3116
|
+
return this._def.valueType;
|
|
3117
|
+
}
|
|
3118
|
+
static create(first, second, third) {
|
|
3119
|
+
if (second instanceof ZodType) {
|
|
3120
|
+
return new _ZodRecord({
|
|
3121
|
+
keyType: first,
|
|
3122
|
+
valueType: second,
|
|
3123
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord,
|
|
3124
|
+
...processCreateParams(third)
|
|
3125
|
+
});
|
|
3126
|
+
}
|
|
3127
|
+
return new _ZodRecord({
|
|
3128
|
+
keyType: ZodString.create(),
|
|
3129
|
+
valueType: first,
|
|
3130
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord,
|
|
3131
|
+
...processCreateParams(second)
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
};
|
|
3135
|
+
var ZodMap = class extends ZodType {
|
|
3136
|
+
get keySchema() {
|
|
3137
|
+
return this._def.keyType;
|
|
3138
|
+
}
|
|
3139
|
+
get valueSchema() {
|
|
3140
|
+
return this._def.valueType;
|
|
3141
|
+
}
|
|
3142
|
+
_parse(input) {
|
|
3143
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3144
|
+
if (ctx.parsedType !== ZodParsedType.map) {
|
|
3145
|
+
addIssueToContext(ctx, {
|
|
3146
|
+
code: ZodIssueCode.invalid_type,
|
|
3147
|
+
expected: ZodParsedType.map,
|
|
3148
|
+
received: ctx.parsedType
|
|
3149
|
+
});
|
|
3150
|
+
return INVALID;
|
|
3151
|
+
}
|
|
3152
|
+
const keyType = this._def.keyType;
|
|
3153
|
+
const valueType = this._def.valueType;
|
|
3154
|
+
const pairs = [...ctx.data.entries()].map(([key, value], index) => {
|
|
3155
|
+
return {
|
|
3156
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
|
|
3157
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"]))
|
|
3158
|
+
};
|
|
3159
|
+
});
|
|
3160
|
+
if (ctx.common.async) {
|
|
3161
|
+
const finalMap = /* @__PURE__ */ new Map();
|
|
3162
|
+
return Promise.resolve().then(async () => {
|
|
3163
|
+
for (const pair of pairs) {
|
|
3164
|
+
const key = await pair.key;
|
|
3165
|
+
const value = await pair.value;
|
|
3166
|
+
if (key.status === "aborted" || value.status === "aborted") {
|
|
3167
|
+
return INVALID;
|
|
3168
|
+
}
|
|
3169
|
+
if (key.status === "dirty" || value.status === "dirty") {
|
|
3170
|
+
status.dirty();
|
|
3171
|
+
}
|
|
3172
|
+
finalMap.set(key.value, value.value);
|
|
3173
|
+
}
|
|
3174
|
+
return { status: status.value, value: finalMap };
|
|
3175
|
+
});
|
|
3176
|
+
} else {
|
|
3177
|
+
const finalMap = /* @__PURE__ */ new Map();
|
|
3178
|
+
for (const pair of pairs) {
|
|
3179
|
+
const key = pair.key;
|
|
3180
|
+
const value = pair.value;
|
|
3181
|
+
if (key.status === "aborted" || value.status === "aborted") {
|
|
3182
|
+
return INVALID;
|
|
3183
|
+
}
|
|
3184
|
+
if (key.status === "dirty" || value.status === "dirty") {
|
|
3185
|
+
status.dirty();
|
|
3186
|
+
}
|
|
3187
|
+
finalMap.set(key.value, value.value);
|
|
3188
|
+
}
|
|
3189
|
+
return { status: status.value, value: finalMap };
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
};
|
|
3193
|
+
ZodMap.create = (keyType, valueType, params) => {
|
|
3194
|
+
return new ZodMap({
|
|
3195
|
+
valueType,
|
|
3196
|
+
keyType,
|
|
3197
|
+
typeName: ZodFirstPartyTypeKind.ZodMap,
|
|
3198
|
+
...processCreateParams(params)
|
|
3199
|
+
});
|
|
3200
|
+
};
|
|
3201
|
+
var ZodSet = class _ZodSet extends ZodType {
|
|
3202
|
+
_parse(input) {
|
|
3203
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3204
|
+
if (ctx.parsedType !== ZodParsedType.set) {
|
|
3205
|
+
addIssueToContext(ctx, {
|
|
3206
|
+
code: ZodIssueCode.invalid_type,
|
|
3207
|
+
expected: ZodParsedType.set,
|
|
3208
|
+
received: ctx.parsedType
|
|
3209
|
+
});
|
|
3210
|
+
return INVALID;
|
|
3211
|
+
}
|
|
3212
|
+
const def = this._def;
|
|
3213
|
+
if (def.minSize !== null) {
|
|
3214
|
+
if (ctx.data.size < def.minSize.value) {
|
|
3215
|
+
addIssueToContext(ctx, {
|
|
3216
|
+
code: ZodIssueCode.too_small,
|
|
3217
|
+
minimum: def.minSize.value,
|
|
3218
|
+
type: "set",
|
|
3219
|
+
inclusive: true,
|
|
3220
|
+
exact: false,
|
|
3221
|
+
message: def.minSize.message
|
|
3222
|
+
});
|
|
3223
|
+
status.dirty();
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
if (def.maxSize !== null) {
|
|
3227
|
+
if (ctx.data.size > def.maxSize.value) {
|
|
3228
|
+
addIssueToContext(ctx, {
|
|
3229
|
+
code: ZodIssueCode.too_big,
|
|
3230
|
+
maximum: def.maxSize.value,
|
|
3231
|
+
type: "set",
|
|
3232
|
+
inclusive: true,
|
|
3233
|
+
exact: false,
|
|
3234
|
+
message: def.maxSize.message
|
|
3235
|
+
});
|
|
3236
|
+
status.dirty();
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
const valueType = this._def.valueType;
|
|
3240
|
+
function finalizeSet(elements2) {
|
|
3241
|
+
const parsedSet = /* @__PURE__ */ new Set();
|
|
3242
|
+
for (const element of elements2) {
|
|
3243
|
+
if (element.status === "aborted")
|
|
3244
|
+
return INVALID;
|
|
3245
|
+
if (element.status === "dirty")
|
|
3246
|
+
status.dirty();
|
|
3247
|
+
parsedSet.add(element.value);
|
|
3248
|
+
}
|
|
3249
|
+
return { status: status.value, value: parsedSet };
|
|
3250
|
+
}
|
|
3251
|
+
const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
|
|
3252
|
+
if (ctx.common.async) {
|
|
3253
|
+
return Promise.all(elements).then((elements2) => finalizeSet(elements2));
|
|
3254
|
+
} else {
|
|
3255
|
+
return finalizeSet(elements);
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
min(minSize, message) {
|
|
3259
|
+
return new _ZodSet({
|
|
3260
|
+
...this._def,
|
|
3261
|
+
minSize: { value: minSize, message: errorUtil.toString(message) }
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
max(maxSize, message) {
|
|
3265
|
+
return new _ZodSet({
|
|
3266
|
+
...this._def,
|
|
3267
|
+
maxSize: { value: maxSize, message: errorUtil.toString(message) }
|
|
3268
|
+
});
|
|
3269
|
+
}
|
|
3270
|
+
size(size, message) {
|
|
3271
|
+
return this.min(size, message).max(size, message);
|
|
3272
|
+
}
|
|
3273
|
+
nonempty(message) {
|
|
3274
|
+
return this.min(1, message);
|
|
3275
|
+
}
|
|
3276
|
+
};
|
|
3277
|
+
ZodSet.create = (valueType, params) => {
|
|
3278
|
+
return new ZodSet({
|
|
3279
|
+
valueType,
|
|
3280
|
+
minSize: null,
|
|
3281
|
+
maxSize: null,
|
|
3282
|
+
typeName: ZodFirstPartyTypeKind.ZodSet,
|
|
3283
|
+
...processCreateParams(params)
|
|
3284
|
+
});
|
|
3285
|
+
};
|
|
3286
|
+
var ZodFunction = class _ZodFunction extends ZodType {
|
|
3287
|
+
constructor() {
|
|
3288
|
+
super(...arguments);
|
|
3289
|
+
this.validate = this.implement;
|
|
3290
|
+
}
|
|
3291
|
+
_parse(input) {
|
|
3292
|
+
const { ctx } = this._processInputParams(input);
|
|
3293
|
+
if (ctx.parsedType !== ZodParsedType.function) {
|
|
3294
|
+
addIssueToContext(ctx, {
|
|
3295
|
+
code: ZodIssueCode.invalid_type,
|
|
3296
|
+
expected: ZodParsedType.function,
|
|
3297
|
+
received: ctx.parsedType
|
|
3298
|
+
});
|
|
3299
|
+
return INVALID;
|
|
3300
|
+
}
|
|
3301
|
+
function makeArgsIssue(args, error) {
|
|
3302
|
+
return makeIssue({
|
|
3303
|
+
data: args,
|
|
3304
|
+
path: ctx.path,
|
|
3305
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
|
|
3306
|
+
issueData: {
|
|
3307
|
+
code: ZodIssueCode.invalid_arguments,
|
|
3308
|
+
argumentsError: error
|
|
3309
|
+
}
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
function makeReturnsIssue(returns, error) {
|
|
3313
|
+
return makeIssue({
|
|
3314
|
+
data: returns,
|
|
3315
|
+
path: ctx.path,
|
|
3316
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
|
|
3317
|
+
issueData: {
|
|
3318
|
+
code: ZodIssueCode.invalid_return_type,
|
|
3319
|
+
returnTypeError: error
|
|
3320
|
+
}
|
|
3321
|
+
});
|
|
3322
|
+
}
|
|
3323
|
+
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
3324
|
+
const fn = ctx.data;
|
|
3325
|
+
if (this._def.returns instanceof ZodPromise) {
|
|
3326
|
+
const me = this;
|
|
3327
|
+
return OK(async function(...args) {
|
|
3328
|
+
const error = new ZodError([]);
|
|
3329
|
+
const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
|
|
3330
|
+
error.addIssue(makeArgsIssue(args, e));
|
|
3331
|
+
throw error;
|
|
3332
|
+
});
|
|
3333
|
+
const result = await Reflect.apply(fn, this, parsedArgs);
|
|
3334
|
+
const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
3335
|
+
error.addIssue(makeReturnsIssue(result, e));
|
|
3336
|
+
throw error;
|
|
3337
|
+
});
|
|
3338
|
+
return parsedReturns;
|
|
3339
|
+
});
|
|
3340
|
+
} else {
|
|
3341
|
+
const me = this;
|
|
3342
|
+
return OK(function(...args) {
|
|
3343
|
+
const parsedArgs = me._def.args.safeParse(args, params);
|
|
3344
|
+
if (!parsedArgs.success) {
|
|
3345
|
+
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
3346
|
+
}
|
|
3347
|
+
const result = Reflect.apply(fn, this, parsedArgs.data);
|
|
3348
|
+
const parsedReturns = me._def.returns.safeParse(result, params);
|
|
3349
|
+
if (!parsedReturns.success) {
|
|
3350
|
+
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
3351
|
+
}
|
|
3352
|
+
return parsedReturns.data;
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
parameters() {
|
|
3357
|
+
return this._def.args;
|
|
3358
|
+
}
|
|
3359
|
+
returnType() {
|
|
3360
|
+
return this._def.returns;
|
|
3361
|
+
}
|
|
3362
|
+
args(...items) {
|
|
3363
|
+
return new _ZodFunction({
|
|
3364
|
+
...this._def,
|
|
3365
|
+
args: ZodTuple.create(items).rest(ZodUnknown.create())
|
|
3366
|
+
});
|
|
3367
|
+
}
|
|
3368
|
+
returns(returnType) {
|
|
3369
|
+
return new _ZodFunction({
|
|
3370
|
+
...this._def,
|
|
3371
|
+
returns: returnType
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
implement(func) {
|
|
3375
|
+
const validatedFunc = this.parse(func);
|
|
3376
|
+
return validatedFunc;
|
|
3377
|
+
}
|
|
3378
|
+
strictImplement(func) {
|
|
3379
|
+
const validatedFunc = this.parse(func);
|
|
3380
|
+
return validatedFunc;
|
|
3381
|
+
}
|
|
3382
|
+
static create(args, returns, params) {
|
|
3383
|
+
return new _ZodFunction({
|
|
3384
|
+
args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()),
|
|
3385
|
+
returns: returns || ZodUnknown.create(),
|
|
3386
|
+
typeName: ZodFirstPartyTypeKind.ZodFunction,
|
|
3387
|
+
...processCreateParams(params)
|
|
3388
|
+
});
|
|
3389
|
+
}
|
|
3390
|
+
};
|
|
3391
|
+
var ZodLazy = class extends ZodType {
|
|
3392
|
+
get schema() {
|
|
3393
|
+
return this._def.getter();
|
|
3394
|
+
}
|
|
3395
|
+
_parse(input) {
|
|
3396
|
+
const { ctx } = this._processInputParams(input);
|
|
3397
|
+
const lazySchema = this._def.getter();
|
|
3398
|
+
return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
|
|
3399
|
+
}
|
|
3400
|
+
};
|
|
3401
|
+
ZodLazy.create = (getter, params) => {
|
|
3402
|
+
return new ZodLazy({
|
|
3403
|
+
getter,
|
|
3404
|
+
typeName: ZodFirstPartyTypeKind.ZodLazy,
|
|
3405
|
+
...processCreateParams(params)
|
|
3406
|
+
});
|
|
3407
|
+
};
|
|
3408
|
+
var ZodLiteral = class extends ZodType {
|
|
3409
|
+
_parse(input) {
|
|
3410
|
+
if (input.data !== this._def.value) {
|
|
3411
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3412
|
+
addIssueToContext(ctx, {
|
|
3413
|
+
received: ctx.data,
|
|
3414
|
+
code: ZodIssueCode.invalid_literal,
|
|
3415
|
+
expected: this._def.value
|
|
3416
|
+
});
|
|
3417
|
+
return INVALID;
|
|
3418
|
+
}
|
|
3419
|
+
return { status: "valid", value: input.data };
|
|
3420
|
+
}
|
|
3421
|
+
get value() {
|
|
3422
|
+
return this._def.value;
|
|
3423
|
+
}
|
|
3424
|
+
};
|
|
3425
|
+
ZodLiteral.create = (value, params) => {
|
|
3426
|
+
return new ZodLiteral({
|
|
3427
|
+
value,
|
|
3428
|
+
typeName: ZodFirstPartyTypeKind.ZodLiteral,
|
|
3429
|
+
...processCreateParams(params)
|
|
3430
|
+
});
|
|
3431
|
+
};
|
|
3432
|
+
function createZodEnum(values, params) {
|
|
3433
|
+
return new ZodEnum({
|
|
3434
|
+
values,
|
|
3435
|
+
typeName: ZodFirstPartyTypeKind.ZodEnum,
|
|
3436
|
+
...processCreateParams(params)
|
|
3437
|
+
});
|
|
3438
|
+
}
|
|
3439
|
+
var ZodEnum = class _ZodEnum extends ZodType {
|
|
3440
|
+
_parse(input) {
|
|
3441
|
+
if (typeof input.data !== "string") {
|
|
3442
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3443
|
+
const expectedValues = this._def.values;
|
|
3444
|
+
addIssueToContext(ctx, {
|
|
3445
|
+
expected: util.joinValues(expectedValues),
|
|
3446
|
+
received: ctx.parsedType,
|
|
3447
|
+
code: ZodIssueCode.invalid_type
|
|
3448
|
+
});
|
|
3449
|
+
return INVALID;
|
|
3450
|
+
}
|
|
3451
|
+
if (!this._cache) {
|
|
3452
|
+
this._cache = new Set(this._def.values);
|
|
3453
|
+
}
|
|
3454
|
+
if (!this._cache.has(input.data)) {
|
|
3455
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3456
|
+
const expectedValues = this._def.values;
|
|
3457
|
+
addIssueToContext(ctx, {
|
|
3458
|
+
received: ctx.data,
|
|
3459
|
+
code: ZodIssueCode.invalid_enum_value,
|
|
3460
|
+
options: expectedValues
|
|
3461
|
+
});
|
|
3462
|
+
return INVALID;
|
|
3463
|
+
}
|
|
3464
|
+
return OK(input.data);
|
|
3465
|
+
}
|
|
3466
|
+
get options() {
|
|
3467
|
+
return this._def.values;
|
|
3468
|
+
}
|
|
3469
|
+
get enum() {
|
|
3470
|
+
const enumValues = {};
|
|
3471
|
+
for (const val of this._def.values) {
|
|
3472
|
+
enumValues[val] = val;
|
|
3473
|
+
}
|
|
3474
|
+
return enumValues;
|
|
3475
|
+
}
|
|
3476
|
+
get Values() {
|
|
3477
|
+
const enumValues = {};
|
|
3478
|
+
for (const val of this._def.values) {
|
|
3479
|
+
enumValues[val] = val;
|
|
3480
|
+
}
|
|
3481
|
+
return enumValues;
|
|
3482
|
+
}
|
|
3483
|
+
get Enum() {
|
|
3484
|
+
const enumValues = {};
|
|
3485
|
+
for (const val of this._def.values) {
|
|
3486
|
+
enumValues[val] = val;
|
|
3487
|
+
}
|
|
3488
|
+
return enumValues;
|
|
3489
|
+
}
|
|
3490
|
+
extract(values, newDef = this._def) {
|
|
3491
|
+
return _ZodEnum.create(values, {
|
|
3492
|
+
...this._def,
|
|
3493
|
+
...newDef
|
|
3494
|
+
});
|
|
3495
|
+
}
|
|
3496
|
+
exclude(values, newDef = this._def) {
|
|
3497
|
+
return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
|
|
3498
|
+
...this._def,
|
|
3499
|
+
...newDef
|
|
3500
|
+
});
|
|
3501
|
+
}
|
|
3502
|
+
};
|
|
3503
|
+
ZodEnum.create = createZodEnum;
|
|
3504
|
+
var ZodNativeEnum = class extends ZodType {
|
|
3505
|
+
_parse(input) {
|
|
3506
|
+
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3507
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3508
|
+
if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {
|
|
3509
|
+
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3510
|
+
addIssueToContext(ctx, {
|
|
3511
|
+
expected: util.joinValues(expectedValues),
|
|
3512
|
+
received: ctx.parsedType,
|
|
3513
|
+
code: ZodIssueCode.invalid_type
|
|
3514
|
+
});
|
|
3515
|
+
return INVALID;
|
|
3516
|
+
}
|
|
3517
|
+
if (!this._cache) {
|
|
3518
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3519
|
+
}
|
|
3520
|
+
if (!this._cache.has(input.data)) {
|
|
3521
|
+
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3522
|
+
addIssueToContext(ctx, {
|
|
3523
|
+
received: ctx.data,
|
|
3524
|
+
code: ZodIssueCode.invalid_enum_value,
|
|
3525
|
+
options: expectedValues
|
|
3526
|
+
});
|
|
3527
|
+
return INVALID;
|
|
3528
|
+
}
|
|
3529
|
+
return OK(input.data);
|
|
3530
|
+
}
|
|
3531
|
+
get enum() {
|
|
3532
|
+
return this._def.values;
|
|
3533
|
+
}
|
|
3534
|
+
};
|
|
3535
|
+
ZodNativeEnum.create = (values, params) => {
|
|
3536
|
+
return new ZodNativeEnum({
|
|
3537
|
+
values,
|
|
3538
|
+
typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
|
|
3539
|
+
...processCreateParams(params)
|
|
3540
|
+
});
|
|
3541
|
+
};
|
|
3542
|
+
var ZodPromise = class extends ZodType {
|
|
3543
|
+
unwrap() {
|
|
3544
|
+
return this._def.type;
|
|
3545
|
+
}
|
|
3546
|
+
_parse(input) {
|
|
3547
|
+
const { ctx } = this._processInputParams(input);
|
|
3548
|
+
if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {
|
|
3549
|
+
addIssueToContext(ctx, {
|
|
3550
|
+
code: ZodIssueCode.invalid_type,
|
|
3551
|
+
expected: ZodParsedType.promise,
|
|
3552
|
+
received: ctx.parsedType
|
|
3553
|
+
});
|
|
3554
|
+
return INVALID;
|
|
3555
|
+
}
|
|
3556
|
+
const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
|
|
3557
|
+
return OK(promisified.then((data) => {
|
|
3558
|
+
return this._def.type.parseAsync(data, {
|
|
3559
|
+
path: ctx.path,
|
|
3560
|
+
errorMap: ctx.common.contextualErrorMap
|
|
3561
|
+
});
|
|
3562
|
+
}));
|
|
3563
|
+
}
|
|
3564
|
+
};
|
|
3565
|
+
ZodPromise.create = (schema, params) => {
|
|
3566
|
+
return new ZodPromise({
|
|
3567
|
+
type: schema,
|
|
3568
|
+
typeName: ZodFirstPartyTypeKind.ZodPromise,
|
|
3569
|
+
...processCreateParams(params)
|
|
3570
|
+
});
|
|
3571
|
+
};
|
|
3572
|
+
var ZodEffects = class extends ZodType {
|
|
3573
|
+
innerType() {
|
|
3574
|
+
return this._def.schema;
|
|
3575
|
+
}
|
|
3576
|
+
sourceType() {
|
|
3577
|
+
return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
3578
|
+
}
|
|
3579
|
+
_parse(input) {
|
|
3580
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3581
|
+
const effect = this._def.effect || null;
|
|
3582
|
+
const checkCtx = {
|
|
3583
|
+
addIssue: (arg) => {
|
|
3584
|
+
addIssueToContext(ctx, arg);
|
|
3585
|
+
if (arg.fatal) {
|
|
3586
|
+
status.abort();
|
|
3587
|
+
} else {
|
|
3588
|
+
status.dirty();
|
|
3589
|
+
}
|
|
3590
|
+
},
|
|
3591
|
+
get path() {
|
|
3592
|
+
return ctx.path;
|
|
3593
|
+
}
|
|
3594
|
+
};
|
|
3595
|
+
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
|
3596
|
+
if (effect.type === "preprocess") {
|
|
3597
|
+
const processed = effect.transform(ctx.data, checkCtx);
|
|
3598
|
+
if (ctx.common.async) {
|
|
3599
|
+
return Promise.resolve(processed).then(async (processed2) => {
|
|
3600
|
+
if (status.value === "aborted")
|
|
3601
|
+
return INVALID;
|
|
3602
|
+
const result = await this._def.schema._parseAsync({
|
|
3603
|
+
data: processed2,
|
|
3604
|
+
path: ctx.path,
|
|
3605
|
+
parent: ctx
|
|
3606
|
+
});
|
|
3607
|
+
if (result.status === "aborted")
|
|
3608
|
+
return INVALID;
|
|
3609
|
+
if (result.status === "dirty")
|
|
3610
|
+
return DIRTY(result.value);
|
|
3611
|
+
if (status.value === "dirty")
|
|
3612
|
+
return DIRTY(result.value);
|
|
3613
|
+
return result;
|
|
3614
|
+
});
|
|
3615
|
+
} else {
|
|
3616
|
+
if (status.value === "aborted")
|
|
3617
|
+
return INVALID;
|
|
3618
|
+
const result = this._def.schema._parseSync({
|
|
3619
|
+
data: processed,
|
|
3620
|
+
path: ctx.path,
|
|
3621
|
+
parent: ctx
|
|
3622
|
+
});
|
|
3623
|
+
if (result.status === "aborted")
|
|
3624
|
+
return INVALID;
|
|
3625
|
+
if (result.status === "dirty")
|
|
3626
|
+
return DIRTY(result.value);
|
|
3627
|
+
if (status.value === "dirty")
|
|
3628
|
+
return DIRTY(result.value);
|
|
3629
|
+
return result;
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
if (effect.type === "refinement") {
|
|
3633
|
+
const executeRefinement = (acc) => {
|
|
3634
|
+
const result = effect.refinement(acc, checkCtx);
|
|
3635
|
+
if (ctx.common.async) {
|
|
3636
|
+
return Promise.resolve(result);
|
|
3637
|
+
}
|
|
3638
|
+
if (result instanceof Promise) {
|
|
3639
|
+
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
3640
|
+
}
|
|
3641
|
+
return acc;
|
|
3642
|
+
};
|
|
3643
|
+
if (ctx.common.async === false) {
|
|
3644
|
+
const inner = this._def.schema._parseSync({
|
|
3645
|
+
data: ctx.data,
|
|
3646
|
+
path: ctx.path,
|
|
3647
|
+
parent: ctx
|
|
3648
|
+
});
|
|
3649
|
+
if (inner.status === "aborted")
|
|
3650
|
+
return INVALID;
|
|
3651
|
+
if (inner.status === "dirty")
|
|
3652
|
+
status.dirty();
|
|
3653
|
+
executeRefinement(inner.value);
|
|
3654
|
+
return { status: status.value, value: inner.value };
|
|
3655
|
+
} else {
|
|
3656
|
+
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
|
|
3657
|
+
if (inner.status === "aborted")
|
|
3658
|
+
return INVALID;
|
|
3659
|
+
if (inner.status === "dirty")
|
|
3660
|
+
status.dirty();
|
|
3661
|
+
return executeRefinement(inner.value).then(() => {
|
|
3662
|
+
return { status: status.value, value: inner.value };
|
|
3663
|
+
});
|
|
3664
|
+
});
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
if (effect.type === "transform") {
|
|
3668
|
+
if (ctx.common.async === false) {
|
|
3669
|
+
const base = this._def.schema._parseSync({
|
|
3670
|
+
data: ctx.data,
|
|
3671
|
+
path: ctx.path,
|
|
3672
|
+
parent: ctx
|
|
3673
|
+
});
|
|
3674
|
+
if (!isValid(base))
|
|
3675
|
+
return INVALID;
|
|
3676
|
+
const result = effect.transform(base.value, checkCtx);
|
|
3677
|
+
if (result instanceof Promise) {
|
|
3678
|
+
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
3679
|
+
}
|
|
3680
|
+
return { status: status.value, value: result };
|
|
3681
|
+
} else {
|
|
3682
|
+
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3683
|
+
if (!isValid(base))
|
|
3684
|
+
return INVALID;
|
|
3685
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3686
|
+
status: status.value,
|
|
3687
|
+
value: result
|
|
3688
|
+
}));
|
|
3689
|
+
});
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
util.assertNever(effect);
|
|
3693
|
+
}
|
|
3694
|
+
};
|
|
3695
|
+
ZodEffects.create = (schema, effect, params) => {
|
|
3696
|
+
return new ZodEffects({
|
|
3697
|
+
schema,
|
|
3698
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
3699
|
+
effect,
|
|
3700
|
+
...processCreateParams(params)
|
|
3701
|
+
});
|
|
3702
|
+
};
|
|
3703
|
+
ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
|
|
3704
|
+
return new ZodEffects({
|
|
3705
|
+
schema,
|
|
3706
|
+
effect: { type: "preprocess", transform: preprocess },
|
|
3707
|
+
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
3708
|
+
...processCreateParams(params)
|
|
3709
|
+
});
|
|
3710
|
+
};
|
|
3711
|
+
var ZodOptional = class extends ZodType {
|
|
3712
|
+
_parse(input) {
|
|
3713
|
+
const parsedType = this._getType(input);
|
|
3714
|
+
if (parsedType === ZodParsedType.undefined) {
|
|
3715
|
+
return OK(void 0);
|
|
3716
|
+
}
|
|
3717
|
+
return this._def.innerType._parse(input);
|
|
3718
|
+
}
|
|
3719
|
+
unwrap() {
|
|
3720
|
+
return this._def.innerType;
|
|
3721
|
+
}
|
|
3722
|
+
};
|
|
3723
|
+
ZodOptional.create = (type, params) => {
|
|
3724
|
+
return new ZodOptional({
|
|
3725
|
+
innerType: type,
|
|
3726
|
+
typeName: ZodFirstPartyTypeKind.ZodOptional,
|
|
3727
|
+
...processCreateParams(params)
|
|
3728
|
+
});
|
|
3729
|
+
};
|
|
3730
|
+
var ZodNullable = class extends ZodType {
|
|
3731
|
+
_parse(input) {
|
|
3732
|
+
const parsedType = this._getType(input);
|
|
3733
|
+
if (parsedType === ZodParsedType.null) {
|
|
3734
|
+
return OK(null);
|
|
3735
|
+
}
|
|
3736
|
+
return this._def.innerType._parse(input);
|
|
3737
|
+
}
|
|
3738
|
+
unwrap() {
|
|
3739
|
+
return this._def.innerType;
|
|
3740
|
+
}
|
|
3741
|
+
};
|
|
3742
|
+
ZodNullable.create = (type, params) => {
|
|
3743
|
+
return new ZodNullable({
|
|
3744
|
+
innerType: type,
|
|
3745
|
+
typeName: ZodFirstPartyTypeKind.ZodNullable,
|
|
3746
|
+
...processCreateParams(params)
|
|
3747
|
+
});
|
|
3748
|
+
};
|
|
3749
|
+
var ZodDefault = class extends ZodType {
|
|
3750
|
+
_parse(input) {
|
|
3751
|
+
const { ctx } = this._processInputParams(input);
|
|
3752
|
+
let data = ctx.data;
|
|
3753
|
+
if (ctx.parsedType === ZodParsedType.undefined) {
|
|
3754
|
+
data = this._def.defaultValue();
|
|
3755
|
+
}
|
|
3756
|
+
return this._def.innerType._parse({
|
|
3757
|
+
data,
|
|
3758
|
+
path: ctx.path,
|
|
3759
|
+
parent: ctx
|
|
3760
|
+
});
|
|
3761
|
+
}
|
|
3762
|
+
removeDefault() {
|
|
3763
|
+
return this._def.innerType;
|
|
3764
|
+
}
|
|
3765
|
+
};
|
|
3766
|
+
ZodDefault.create = (type, params) => {
|
|
3767
|
+
return new ZodDefault({
|
|
3768
|
+
innerType: type,
|
|
3769
|
+
typeName: ZodFirstPartyTypeKind.ZodDefault,
|
|
3770
|
+
defaultValue: typeof params.default === "function" ? params.default : () => params.default,
|
|
3771
|
+
...processCreateParams(params)
|
|
3772
|
+
});
|
|
3773
|
+
};
|
|
3774
|
+
var ZodCatch = class extends ZodType {
|
|
3775
|
+
_parse(input) {
|
|
3776
|
+
const { ctx } = this._processInputParams(input);
|
|
3777
|
+
const newCtx = {
|
|
3778
|
+
...ctx,
|
|
3779
|
+
common: {
|
|
3780
|
+
...ctx.common,
|
|
3781
|
+
issues: []
|
|
3782
|
+
}
|
|
3783
|
+
};
|
|
3784
|
+
const result = this._def.innerType._parse({
|
|
3785
|
+
data: newCtx.data,
|
|
3786
|
+
path: newCtx.path,
|
|
3787
|
+
parent: {
|
|
3788
|
+
...newCtx
|
|
3789
|
+
}
|
|
3790
|
+
});
|
|
3791
|
+
if (isAsync(result)) {
|
|
3792
|
+
return result.then((result2) => {
|
|
3793
|
+
return {
|
|
3794
|
+
status: "valid",
|
|
3795
|
+
value: result2.status === "valid" ? result2.value : this._def.catchValue({
|
|
3796
|
+
get error() {
|
|
3797
|
+
return new ZodError(newCtx.common.issues);
|
|
3798
|
+
},
|
|
3799
|
+
input: newCtx.data
|
|
3800
|
+
})
|
|
3801
|
+
};
|
|
3802
|
+
});
|
|
3803
|
+
} else {
|
|
3804
|
+
return {
|
|
3805
|
+
status: "valid",
|
|
3806
|
+
value: result.status === "valid" ? result.value : this._def.catchValue({
|
|
3807
|
+
get error() {
|
|
3808
|
+
return new ZodError(newCtx.common.issues);
|
|
3809
|
+
},
|
|
3810
|
+
input: newCtx.data
|
|
3811
|
+
})
|
|
3812
|
+
};
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
removeCatch() {
|
|
3816
|
+
return this._def.innerType;
|
|
3817
|
+
}
|
|
3818
|
+
};
|
|
3819
|
+
ZodCatch.create = (type, params) => {
|
|
3820
|
+
return new ZodCatch({
|
|
3821
|
+
innerType: type,
|
|
3822
|
+
typeName: ZodFirstPartyTypeKind.ZodCatch,
|
|
3823
|
+
catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
|
|
3824
|
+
...processCreateParams(params)
|
|
3825
|
+
});
|
|
3826
|
+
};
|
|
3827
|
+
var ZodNaN = class extends ZodType {
|
|
3828
|
+
_parse(input) {
|
|
3829
|
+
const parsedType = this._getType(input);
|
|
3830
|
+
if (parsedType !== ZodParsedType.nan) {
|
|
3831
|
+
const ctx = this._getOrReturnCtx(input);
|
|
3832
|
+
addIssueToContext(ctx, {
|
|
3833
|
+
code: ZodIssueCode.invalid_type,
|
|
3834
|
+
expected: ZodParsedType.nan,
|
|
3835
|
+
received: ctx.parsedType
|
|
3836
|
+
});
|
|
3837
|
+
return INVALID;
|
|
3838
|
+
}
|
|
3839
|
+
return { status: "valid", value: input.data };
|
|
3840
|
+
}
|
|
3841
|
+
};
|
|
3842
|
+
ZodNaN.create = (params) => {
|
|
3843
|
+
return new ZodNaN({
|
|
3844
|
+
typeName: ZodFirstPartyTypeKind.ZodNaN,
|
|
3845
|
+
...processCreateParams(params)
|
|
3846
|
+
});
|
|
3847
|
+
};
|
|
3848
|
+
var BRAND = /* @__PURE__ */ Symbol("zod_brand");
|
|
3849
|
+
var ZodBranded = class extends ZodType {
|
|
3850
|
+
_parse(input) {
|
|
3851
|
+
const { ctx } = this._processInputParams(input);
|
|
3852
|
+
const data = ctx.data;
|
|
3853
|
+
return this._def.type._parse({
|
|
3854
|
+
data,
|
|
3855
|
+
path: ctx.path,
|
|
3856
|
+
parent: ctx
|
|
3857
|
+
});
|
|
3858
|
+
}
|
|
3859
|
+
unwrap() {
|
|
3860
|
+
return this._def.type;
|
|
3861
|
+
}
|
|
3862
|
+
};
|
|
3863
|
+
var ZodPipeline = class _ZodPipeline extends ZodType {
|
|
3864
|
+
_parse(input) {
|
|
3865
|
+
const { status, ctx } = this._processInputParams(input);
|
|
3866
|
+
if (ctx.common.async) {
|
|
3867
|
+
const handleAsync = async () => {
|
|
3868
|
+
const inResult = await this._def.in._parseAsync({
|
|
3869
|
+
data: ctx.data,
|
|
3870
|
+
path: ctx.path,
|
|
3871
|
+
parent: ctx
|
|
3872
|
+
});
|
|
3873
|
+
if (inResult.status === "aborted")
|
|
3874
|
+
return INVALID;
|
|
3875
|
+
if (inResult.status === "dirty") {
|
|
3876
|
+
status.dirty();
|
|
3877
|
+
return DIRTY(inResult.value);
|
|
3878
|
+
} else {
|
|
3879
|
+
return this._def.out._parseAsync({
|
|
3880
|
+
data: inResult.value,
|
|
3881
|
+
path: ctx.path,
|
|
3882
|
+
parent: ctx
|
|
3883
|
+
});
|
|
3884
|
+
}
|
|
3885
|
+
};
|
|
3886
|
+
return handleAsync();
|
|
3887
|
+
} else {
|
|
3888
|
+
const inResult = this._def.in._parseSync({
|
|
3889
|
+
data: ctx.data,
|
|
3890
|
+
path: ctx.path,
|
|
3891
|
+
parent: ctx
|
|
3892
|
+
});
|
|
3893
|
+
if (inResult.status === "aborted")
|
|
3894
|
+
return INVALID;
|
|
3895
|
+
if (inResult.status === "dirty") {
|
|
3896
|
+
status.dirty();
|
|
3897
|
+
return {
|
|
3898
|
+
status: "dirty",
|
|
3899
|
+
value: inResult.value
|
|
3900
|
+
};
|
|
3901
|
+
} else {
|
|
3902
|
+
return this._def.out._parseSync({
|
|
3903
|
+
data: inResult.value,
|
|
3904
|
+
path: ctx.path,
|
|
3905
|
+
parent: ctx
|
|
3906
|
+
});
|
|
3907
|
+
}
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
static create(a, b) {
|
|
3911
|
+
return new _ZodPipeline({
|
|
3912
|
+
in: a,
|
|
3913
|
+
out: b,
|
|
3914
|
+
typeName: ZodFirstPartyTypeKind.ZodPipeline
|
|
3915
|
+
});
|
|
3916
|
+
}
|
|
3917
|
+
};
|
|
3918
|
+
var ZodReadonly = class extends ZodType {
|
|
3919
|
+
_parse(input) {
|
|
3920
|
+
const result = this._def.innerType._parse(input);
|
|
3921
|
+
const freeze = (data) => {
|
|
3922
|
+
if (isValid(data)) {
|
|
3923
|
+
data.value = Object.freeze(data.value);
|
|
3924
|
+
}
|
|
3925
|
+
return data;
|
|
3926
|
+
};
|
|
3927
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
3928
|
+
}
|
|
3929
|
+
unwrap() {
|
|
3930
|
+
return this._def.innerType;
|
|
3931
|
+
}
|
|
3932
|
+
};
|
|
3933
|
+
ZodReadonly.create = (type, params) => {
|
|
3934
|
+
return new ZodReadonly({
|
|
3935
|
+
innerType: type,
|
|
3936
|
+
typeName: ZodFirstPartyTypeKind.ZodReadonly,
|
|
3937
|
+
...processCreateParams(params)
|
|
3938
|
+
});
|
|
3939
|
+
};
|
|
3940
|
+
function cleanParams(params, data) {
|
|
3941
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
3942
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
3943
|
+
return p2;
|
|
3944
|
+
}
|
|
3945
|
+
function custom(check, _params = {}, fatal) {
|
|
3946
|
+
if (check)
|
|
3947
|
+
return ZodAny.create().superRefine((data, ctx) => {
|
|
3948
|
+
const r = check(data);
|
|
3949
|
+
if (r instanceof Promise) {
|
|
3950
|
+
return r.then((r2) => {
|
|
3951
|
+
if (!r2) {
|
|
3952
|
+
const params = cleanParams(_params, data);
|
|
3953
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
3954
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
3955
|
+
}
|
|
3956
|
+
});
|
|
3957
|
+
}
|
|
3958
|
+
if (!r) {
|
|
3959
|
+
const params = cleanParams(_params, data);
|
|
3960
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
3961
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
3962
|
+
}
|
|
3963
|
+
return;
|
|
3964
|
+
});
|
|
3965
|
+
return ZodAny.create();
|
|
3966
|
+
}
|
|
3967
|
+
var late = {
|
|
3968
|
+
object: ZodObject.lazycreate
|
|
3969
|
+
};
|
|
3970
|
+
var ZodFirstPartyTypeKind;
|
|
3971
|
+
(function(ZodFirstPartyTypeKind2) {
|
|
3972
|
+
ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
|
|
3973
|
+
ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber";
|
|
3974
|
+
ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN";
|
|
3975
|
+
ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt";
|
|
3976
|
+
ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean";
|
|
3977
|
+
ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate";
|
|
3978
|
+
ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol";
|
|
3979
|
+
ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined";
|
|
3980
|
+
ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull";
|
|
3981
|
+
ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny";
|
|
3982
|
+
ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown";
|
|
3983
|
+
ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever";
|
|
3984
|
+
ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid";
|
|
3985
|
+
ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray";
|
|
3986
|
+
ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject";
|
|
3987
|
+
ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion";
|
|
3988
|
+
ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
|
|
3989
|
+
ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection";
|
|
3990
|
+
ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple";
|
|
3991
|
+
ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord";
|
|
3992
|
+
ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap";
|
|
3993
|
+
ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet";
|
|
3994
|
+
ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction";
|
|
3995
|
+
ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy";
|
|
3996
|
+
ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral";
|
|
3997
|
+
ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum";
|
|
3998
|
+
ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects";
|
|
3999
|
+
ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum";
|
|
4000
|
+
ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional";
|
|
4001
|
+
ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable";
|
|
4002
|
+
ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault";
|
|
4003
|
+
ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch";
|
|
4004
|
+
ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";
|
|
4005
|
+
ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";
|
|
4006
|
+
ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
|
|
4007
|
+
ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
|
|
4008
|
+
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
4009
|
+
var instanceOfType = (cls, params = {
|
|
4010
|
+
message: `Input not instance of ${cls.name}`
|
|
4011
|
+
}) => custom((data) => data instanceof cls, params);
|
|
4012
|
+
var stringType = ZodString.create;
|
|
4013
|
+
var numberType = ZodNumber.create;
|
|
4014
|
+
var nanType = ZodNaN.create;
|
|
4015
|
+
var bigIntType = ZodBigInt.create;
|
|
4016
|
+
var booleanType = ZodBoolean.create;
|
|
4017
|
+
var dateType = ZodDate.create;
|
|
4018
|
+
var symbolType = ZodSymbol.create;
|
|
4019
|
+
var undefinedType = ZodUndefined.create;
|
|
4020
|
+
var nullType = ZodNull.create;
|
|
4021
|
+
var anyType = ZodAny.create;
|
|
4022
|
+
var unknownType = ZodUnknown.create;
|
|
4023
|
+
var neverType = ZodNever.create;
|
|
4024
|
+
var voidType = ZodVoid.create;
|
|
4025
|
+
var arrayType = ZodArray.create;
|
|
4026
|
+
var objectType = ZodObject.create;
|
|
4027
|
+
var strictObjectType = ZodObject.strictCreate;
|
|
4028
|
+
var unionType = ZodUnion.create;
|
|
4029
|
+
var discriminatedUnionType = ZodDiscriminatedUnion.create;
|
|
4030
|
+
var intersectionType = ZodIntersection.create;
|
|
4031
|
+
var tupleType = ZodTuple.create;
|
|
4032
|
+
var recordType = ZodRecord.create;
|
|
4033
|
+
var mapType = ZodMap.create;
|
|
4034
|
+
var setType = ZodSet.create;
|
|
4035
|
+
var functionType = ZodFunction.create;
|
|
4036
|
+
var lazyType = ZodLazy.create;
|
|
4037
|
+
var literalType = ZodLiteral.create;
|
|
4038
|
+
var enumType = ZodEnum.create;
|
|
4039
|
+
var nativeEnumType = ZodNativeEnum.create;
|
|
4040
|
+
var promiseType = ZodPromise.create;
|
|
4041
|
+
var effectsType = ZodEffects.create;
|
|
4042
|
+
var optionalType = ZodOptional.create;
|
|
4043
|
+
var nullableType = ZodNullable.create;
|
|
4044
|
+
var preprocessType = ZodEffects.createWithPreprocess;
|
|
4045
|
+
var pipelineType = ZodPipeline.create;
|
|
4046
|
+
var ostring = () => stringType().optional();
|
|
4047
|
+
var onumber = () => numberType().optional();
|
|
4048
|
+
var oboolean = () => booleanType().optional();
|
|
4049
|
+
var coerce = {
|
|
4050
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4051
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4052
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4053
|
+
...arg,
|
|
4054
|
+
coerce: true
|
|
4055
|
+
})),
|
|
4056
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4057
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4058
|
+
};
|
|
4059
|
+
var NEVER = INVALID;
|
|
4060
|
+
|
|
4061
|
+
// ../../packages/apps/dist/index.js
|
|
4062
|
+
import { lstat, mkdir, readFile, realpath, rename, writeFile } from "fs/promises";
|
|
4063
|
+
import { dirname, isAbsolute, join, relative, sep } from "path";
|
|
4064
|
+
import { randomUUID } from "crypto";
|
|
4065
|
+
import { join as join2 } from "path";
|
|
4066
|
+
import { spawn } from "child_process";
|
|
4067
|
+
import { existsSync } from "fs";
|
|
4068
|
+
import { dirname as dirname2, join as join3 } from "path";
|
|
4069
|
+
import { lstat as lstat2, mkdir as mkdir2, readdir, readFile as readFile2, rename as rename2, rm, stat, writeFile as writeFile2 } from "fs/promises";
|
|
4070
|
+
import { join as join4 } from "path";
|
|
4071
|
+
var localized = external_exports.object({ en: external_exports.string().min(1).max(2e3), es: external_exports.string().min(1).max(2e3) }).strict();
|
|
4072
|
+
var slug = external_exports.string().regex(/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/).max(80);
|
|
4073
|
+
var relativeFile = external_exports.string().max(200).refine((value) => /^[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)*$/.test(value) && !value.split("/").some((piece) => piece === "." || piece === ".."), "Expected a contained relative file path");
|
|
4074
|
+
var requirement = external_exports.discriminatedUnion("kind", [
|
|
4075
|
+
external_exports.object({
|
|
4076
|
+
id: slug,
|
|
4077
|
+
kind: external_exports.literal("playwright-browser"),
|
|
4078
|
+
browser: external_exports.literal("chromium"),
|
|
4079
|
+
approxMB: external_exports.number().int().positive().max(1e4),
|
|
4080
|
+
termsUrl: external_exports.string().url().refine((value) => new URL(value).protocol === "https:", "HTTPS required"),
|
|
4081
|
+
note: localized
|
|
4082
|
+
}).strict(),
|
|
4083
|
+
external_exports.object({
|
|
4084
|
+
id: slug,
|
|
4085
|
+
kind: external_exports.literal("executable"),
|
|
4086
|
+
names: external_exports.array(external_exports.enum(["ffmpeg", "ffprobe"])).min(1).max(2),
|
|
4087
|
+
minVersion: external_exports.string().regex(/^\d+\.\d+(?:\.\d+)?$/),
|
|
4088
|
+
install: localized
|
|
4089
|
+
}).strict()
|
|
4090
|
+
]);
|
|
4091
|
+
var AppManifestSchema = external_exports.object({
|
|
4092
|
+
id: slug,
|
|
4093
|
+
protocol: external_exports.string().regex(/^\d+$/).max(8),
|
|
4094
|
+
entry: external_exports.object({ mcp: relativeFile }).strict(),
|
|
4095
|
+
displayName: localized,
|
|
4096
|
+
summary: localized,
|
|
4097
|
+
requirements: external_exports.array(requirement).max(10),
|
|
4098
|
+
providers: external_exports.array(external_exports.discriminatedUnion("kind", [
|
|
4099
|
+
external_exports.object({ id: external_exports.literal("brain"), kind: external_exports.literal("text-model"), default: external_exports.literal("none"), sends: localized }).strict(),
|
|
4100
|
+
external_exports.object({ id: external_exports.literal("voice"), kind: external_exports.literal("elevenlabs"), default: external_exports.literal("off"), sends: localized, env: external_exports.literal("ELEVENLABS_API_KEY") }).strict()
|
|
4101
|
+
])).max(2),
|
|
4102
|
+
storage: external_exports.object({ home: external_exports.literal("PANOMA_VIDEO_HOME"), browsers: external_exports.literal("PLAYWRIGHT_BROWSERS_PATH") }).strict(),
|
|
4103
|
+
actions: external_exports.array(external_exports.object({
|
|
4104
|
+
id: external_exports.literal("create-video"),
|
|
4105
|
+
tool: external_exports.literal("panoma_video_auto"),
|
|
4106
|
+
surface: external_exports.literal("project"),
|
|
4107
|
+
label: localized
|
|
4108
|
+
}).strict()).max(1),
|
|
4109
|
+
legal: external_exports.object({ license: relativeFile, notices: relativeFile, codecs: relativeFile }).strict()
|
|
4110
|
+
}).strict().superRefine((manifest, context) => {
|
|
4111
|
+
for (const field of ["requirements", "providers", "actions"]) {
|
|
4112
|
+
const ids = manifest[field].map((item) => item.id);
|
|
4113
|
+
if (new Set(ids).size !== ids.length) context.addIssue({ code: "custom", path: [field], message: "Duplicate ids" });
|
|
4114
|
+
}
|
|
4115
|
+
});
|
|
4116
|
+
function validateManifest(pkgJson) {
|
|
4117
|
+
try {
|
|
4118
|
+
return external_exports.object({ panoma: external_exports.object({ app: AppManifestSchema }).strict() }).parse(pkgJson).panoma.app;
|
|
4119
|
+
} catch (error) {
|
|
4120
|
+
if (error instanceof AppFault) throw error;
|
|
4121
|
+
throw new AppFault("broken-package-manifest");
|
|
4122
|
+
}
|
|
4123
|
+
}
|
|
4124
|
+
var VERSION_PATTERN = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*)?(?:\+[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*)?$/;
|
|
4125
|
+
function assertVersion(version) {
|
|
4126
|
+
if (!VERSION_PATTERN.test(version) || version.length > 100) throw new AppFault("invalid-version");
|
|
4127
|
+
return version;
|
|
4128
|
+
}
|
|
4129
|
+
var OFFICIAL = [
|
|
4130
|
+
{ id: "panoma-video", pkg: "@panoma/video", protocols: ["1"], data: "video" }
|
|
4131
|
+
];
|
|
4132
|
+
var NODE_FLOOR = { "panoma-video": ">=22.18" };
|
|
4133
|
+
function officialApp(id) {
|
|
4134
|
+
const app = OFFICIAL.find((item) => item.id === id);
|
|
4135
|
+
if (!app) throw new AppFault("unknown-app");
|
|
4136
|
+
return app;
|
|
4137
|
+
}
|
|
4138
|
+
function appsDir() {
|
|
4139
|
+
return panomaPath("apps");
|
|
4140
|
+
}
|
|
4141
|
+
function layoutFor(id) {
|
|
4142
|
+
const official = officialApp(id);
|
|
4143
|
+
const root = join(appsDir(), id);
|
|
4144
|
+
return {
|
|
4145
|
+
root,
|
|
4146
|
+
versions: join(root, "versions"),
|
|
4147
|
+
current: join(root, "current.json"),
|
|
4148
|
+
staged: join(root, "staged.json"),
|
|
4149
|
+
browsers: join(root, "browsers"),
|
|
4150
|
+
logs: join(root, "logs"),
|
|
4151
|
+
data: panomaPath(official.data)
|
|
4152
|
+
};
|
|
4153
|
+
}
|
|
4154
|
+
async function insideDir(root, child) {
|
|
4155
|
+
try {
|
|
4156
|
+
const [base, target] = await Promise.all([realpath(root), realpath(child)]);
|
|
4157
|
+
const part = relative(base, target);
|
|
4158
|
+
return part === "" || !isAbsolute(part) && part !== ".." && !part.startsWith(`..${sep}`);
|
|
4159
|
+
} catch {
|
|
4160
|
+
return false;
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
async function assertManagedPath(path) {
|
|
4164
|
+
const base = panomaPath();
|
|
4165
|
+
const part = relative(base, path);
|
|
4166
|
+
if (isAbsolute(part) || part === ".." || part.startsWith(`..${sep}`)) throw new AppFault("path-outside-home");
|
|
4167
|
+
let current = await realpath(base).catch((error) => {
|
|
4168
|
+
if (error.code === "ENOENT") return base;
|
|
4169
|
+
throw asAppFault(error);
|
|
4170
|
+
});
|
|
4171
|
+
for (const segment of part.split(sep).filter(Boolean)) {
|
|
4172
|
+
current = join(current, segment);
|
|
4173
|
+
const entry = await lstat(current).catch((error) => {
|
|
4174
|
+
if (error.code === "ENOENT") return void 0;
|
|
4175
|
+
throw asAppFault(error);
|
|
4176
|
+
});
|
|
4177
|
+
if (entry?.isSymbolicLink()) throw new AppFault("managed-path-is-symlink");
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
async function writeJsonAtomic(path, value) {
|
|
4181
|
+
await assertManagedPath(path);
|
|
4182
|
+
await mkdir(dirname(path), { recursive: true });
|
|
4183
|
+
const temp = `${path}.${process.pid}.${randomUUID()}.tmp`;
|
|
4184
|
+
try {
|
|
4185
|
+
await writeFile(temp, `${JSON.stringify(value, null, 2)}
|
|
4186
|
+
`, { mode: 384 });
|
|
4187
|
+
} catch (error) {
|
|
4188
|
+
throw asAppFault(error);
|
|
4189
|
+
}
|
|
4190
|
+
try {
|
|
4191
|
+
await rename(temp, path);
|
|
4192
|
+
} catch (error) {
|
|
4193
|
+
const { rm: rm2 } = await import("fs/promises");
|
|
4194
|
+
await rm2(temp, { force: true });
|
|
4195
|
+
throw asAppFault(error);
|
|
4196
|
+
}
|
|
4197
|
+
}
|
|
4198
|
+
async function readJson(path) {
|
|
4199
|
+
try {
|
|
4200
|
+
return JSON.parse(await readFile(path, "utf8"));
|
|
4201
|
+
} catch (error) {
|
|
4202
|
+
if (error.code === "ENOENT") return void 0;
|
|
4203
|
+
throw error instanceof SyntaxError ? new AppFault("disk-unreadable") : asAppFault(error);
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
var APP_ENV_NAMES = [
|
|
4207
|
+
"PATH",
|
|
4208
|
+
"HOME",
|
|
4209
|
+
"LANG",
|
|
4210
|
+
"LC_ALL",
|
|
4211
|
+
"TMPDIR",
|
|
4212
|
+
"TERM",
|
|
4213
|
+
"SHELL",
|
|
4214
|
+
"USER",
|
|
4215
|
+
"CI",
|
|
4216
|
+
"SystemRoot",
|
|
4217
|
+
"windir",
|
|
4218
|
+
"SystemDrive",
|
|
4219
|
+
"ComSpec",
|
|
4220
|
+
"PATHEXT",
|
|
4221
|
+
"TEMP",
|
|
4222
|
+
"TMP",
|
|
4223
|
+
"APPDATA",
|
|
4224
|
+
"LOCALAPPDATA",
|
|
4225
|
+
"USERPROFILE",
|
|
4226
|
+
"NUMBER_OF_PROCESSORS",
|
|
4227
|
+
"PROCESSOR_ARCHITECTURE"
|
|
4228
|
+
];
|
|
4229
|
+
var SECRET_PATTERN = /TOKEN|KEY|SECRET|PASSWORD|PASSWD|CREDENTIAL|AUTH|SESSION|COOKIE/i;
|
|
4230
|
+
var PROVIDER_KEYS = /* @__PURE__ */ new Set(["ANTHROPIC_API_KEY", "OPENAI_API_KEY", "GOOGLE_API_KEY", "GEMINI_API_KEY", "ELEVENLABS_API_KEY"]);
|
|
4231
|
+
function buildAppEnvironment(id, options = {}) {
|
|
4232
|
+
const source = options.source ?? process.env;
|
|
4233
|
+
const env = {};
|
|
4234
|
+
for (const key of APP_ENV_NAMES) {
|
|
4235
|
+
if (source[key] !== void 0 && !SECRET_PATTERN.test(key)) env[key] = source[key];
|
|
4236
|
+
}
|
|
4237
|
+
const layout = layoutFor(id);
|
|
4238
|
+
env.PANOMA_VIDEO_HOME = layout.data;
|
|
4239
|
+
env.PLAYWRIGHT_BROWSERS_PATH = layout.browsers;
|
|
4240
|
+
env.PANOMA_VIDEO_BRAIN = options.brain ?? "none";
|
|
4241
|
+
if (options.maxBrainCalls !== void 0) {
|
|
4242
|
+
if (!Number.isInteger(options.maxBrainCalls) || options.maxBrainCalls < 0 || options.maxBrainCalls > 1e3) throw new AppFault("invalid-brain-budget");
|
|
4243
|
+
env.PANOMA_VIDEO_MAX_BRAIN_CALLS = String(options.maxBrainCalls);
|
|
4244
|
+
}
|
|
4245
|
+
if (options.jobId) env.PANOMA_APP_JOB = options.jobId;
|
|
4246
|
+
for (const [key, value] of Object.entries(options.providerEnv ?? {})) {
|
|
4247
|
+
if (!PROVIDER_KEYS.has(key)) throw new AppFault("provider-key-not-allowed");
|
|
4248
|
+
if (value) env[key] = value;
|
|
4249
|
+
}
|
|
4250
|
+
return env;
|
|
4251
|
+
}
|
|
4252
|
+
var appEnvironment = buildAppEnvironment;
|
|
4253
|
+
var GUIDE_TIMEOUT_MS = 6e4;
|
|
4254
|
+
var BROWSER_IDLE_MS = 5 * 6e4;
|
|
4255
|
+
var BROWSER_TOTAL_MS = 2 * 60 * 6e4;
|
|
4256
|
+
var TOOL_TIMEOUT_MS = {
|
|
4257
|
+
panoma_video_auto: 30 * 6e4,
|
|
4258
|
+
panoma_video_render: 30 * 6e4,
|
|
4259
|
+
panoma_video_revise: 5 * 6e4,
|
|
4260
|
+
panoma_video_review: 5 * 6e4,
|
|
4261
|
+
panoma_video_scout: 2 * 6e4,
|
|
4262
|
+
panoma_video_story: 5 * 6e4,
|
|
4263
|
+
panoma_video_guide: GUIDE_TIMEOUT_MS
|
|
4264
|
+
};
|
|
4265
|
+
var NPM_REGISTRY = "https://registry.npmjs.org";
|
|
4266
|
+
var REGISTRY_TTL_MS = 24 * 60 * 6e4;
|
|
4267
|
+
function createRegistryClient(input) {
|
|
4268
|
+
const ask = input.fetch ?? fetch;
|
|
4269
|
+
const now = input.now ?? Date.now;
|
|
4270
|
+
const pending = /* @__PURE__ */ new Map();
|
|
4271
|
+
const memory = /* @__PURE__ */ new Map();
|
|
4272
|
+
return {
|
|
4273
|
+
async latest(pkg, options = {}) {
|
|
4274
|
+
if (!OFFICIAL.some((app) => app.pkg === pkg)) throw new AppFault("unknown-app");
|
|
4275
|
+
const key = `${appsDir()}:${pkg}`;
|
|
4276
|
+
if (pending.has(key)) return pending.get(key);
|
|
4277
|
+
const work = async () => {
|
|
4278
|
+
const path = join2(appsDir(), "registry.json");
|
|
4279
|
+
const all = await readJson(path).catch(() => void 0);
|
|
4280
|
+
const raw = memory.get(key) ?? all?.[pkg];
|
|
4281
|
+
let old;
|
|
4282
|
+
if (raw && typeof raw.checkedAt === "string" && Number.isFinite(Date.parse(raw.checkedAt))) {
|
|
4283
|
+
try {
|
|
4284
|
+
if (raw.version) assertVersion(raw.version);
|
|
4285
|
+
old = raw;
|
|
4286
|
+
} catch {
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
const disabled = process.env.PANOMA_NO_UPDATE_CHECK === "1" && !options.explicit;
|
|
4290
|
+
if (disabled || !options.force && old && now() - Date.parse(old.checkedAt) < REGISTRY_TTL_MS) {
|
|
4291
|
+
return { ...old, stale: !old?.fetchedAt || old.checkedAt !== old.fetchedAt, disabled };
|
|
4292
|
+
}
|
|
4293
|
+
const checkedAt = new Date(now()).toISOString();
|
|
4294
|
+
let fresh;
|
|
4295
|
+
try {
|
|
4296
|
+
const response = await ask(`${input.origin}/${encodeURIComponent(pkg)}/latest`, {
|
|
4297
|
+
headers: { accept: "application/json" },
|
|
4298
|
+
signal: AbortSignal.timeout(2e3),
|
|
4299
|
+
redirect: "error"
|
|
4300
|
+
});
|
|
4301
|
+
if (!response.ok) throw new Error("registry-unavailable");
|
|
4302
|
+
const reader = response.body?.getReader();
|
|
4303
|
+
if (!reader) throw new Error("registry-empty-response");
|
|
4304
|
+
let bytes = 0;
|
|
4305
|
+
const chunks = [];
|
|
4306
|
+
try {
|
|
4307
|
+
while (true) {
|
|
4308
|
+
const { done, value } = await reader.read();
|
|
4309
|
+
if (done) break;
|
|
4310
|
+
bytes += value.byteLength;
|
|
4311
|
+
if (bytes > 65536) throw new Error("registry-response-too-large");
|
|
4312
|
+
chunks.push(value);
|
|
4313
|
+
}
|
|
4314
|
+
} finally {
|
|
4315
|
+
await reader.cancel().catch(() => void 0);
|
|
4316
|
+
}
|
|
4317
|
+
const body = JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
|
4318
|
+
if (body.name !== pkg || typeof body.version !== "string") throw new Error("registry-package-mismatch");
|
|
4319
|
+
fresh = assertVersion(body.version);
|
|
4320
|
+
} catch {
|
|
4321
|
+
}
|
|
4322
|
+
const next = {
|
|
4323
|
+
checkedAt,
|
|
4324
|
+
version: fresh ?? old?.version,
|
|
4325
|
+
fetchedAt: fresh ? checkedAt : old?.fetchedAt
|
|
4326
|
+
};
|
|
4327
|
+
memory.set(key, next);
|
|
4328
|
+
await writeJsonAtomic(path, { ...all && typeof all === "object" ? all : {}, [pkg]: next }).catch(() => void 0);
|
|
4329
|
+
return { ...next, stale: !fresh, disabled: false };
|
|
4330
|
+
};
|
|
4331
|
+
const promise = work().finally(() => pending.delete(key));
|
|
4332
|
+
pending.set(key, promise);
|
|
4333
|
+
return promise;
|
|
4334
|
+
}
|
|
4335
|
+
};
|
|
4336
|
+
}
|
|
4337
|
+
var registry = createRegistryClient({ origin: NPM_REGISTRY });
|
|
4338
|
+
function registryVersion(pkg, options) {
|
|
4339
|
+
return registry.latest(pkg, options);
|
|
4340
|
+
}
|
|
4341
|
+
async function latestOnRegistry(pkg, options) {
|
|
4342
|
+
return (await registryVersion(pkg, options)).version;
|
|
4343
|
+
}
|
|
4344
|
+
function triple(value) {
|
|
4345
|
+
const found = /^(?:v|>=|\^|~)?\s*(\d+)\.(\d+)(?:\.(\d+))?/.exec(value.trim());
|
|
4346
|
+
if (!found) return void 0;
|
|
4347
|
+
return [Number(found[1]), Number(found[2]), Number(found[3] ?? 0)];
|
|
4348
|
+
}
|
|
4349
|
+
function under(floor, running) {
|
|
4350
|
+
const want = triple(floor);
|
|
4351
|
+
const have = triple(running);
|
|
4352
|
+
if (!want || !have) return false;
|
|
4353
|
+
return rank(have) < rank(want);
|
|
4354
|
+
}
|
|
4355
|
+
function rank([major, minor, patch]) {
|
|
4356
|
+
return major * 1e6 + minor * 1e3 + patch;
|
|
4357
|
+
}
|
|
4358
|
+
function nodeFloorFault(id, running = process.version) {
|
|
4359
|
+
const needed = NODE_FLOOR[id];
|
|
4360
|
+
if (!needed || !under(needed, running)) return void 0;
|
|
4361
|
+
return new AppFault("node-too-old", needed + FAULT_PART + running);
|
|
4362
|
+
}
|
|
4363
|
+
function engineFault(tail) {
|
|
4364
|
+
if (!/\bEBADENGINE\b/.test(tail)) return void 0;
|
|
4365
|
+
const need = engineRecord(/Required:\s*(\{.*?\})/.exec(tail)?.[1]);
|
|
4366
|
+
const have = engineRecord(/Actual:\s*(\{.*?\})/.exec(tail)?.[1]);
|
|
4367
|
+
for (const name of ["node", "npm"]) {
|
|
4368
|
+
const floor = need[name];
|
|
4369
|
+
const running = have[name];
|
|
4370
|
+
if (!floor || !running || !under(floor, running)) continue;
|
|
4371
|
+
const code = name === "node" ? "node-too-old" : "npm-too-old";
|
|
4372
|
+
return new AppFault(code, floor + FAULT_PART + running);
|
|
4373
|
+
}
|
|
4374
|
+
return new AppFault("engine-unsupported");
|
|
4375
|
+
}
|
|
4376
|
+
function engineRecord(source) {
|
|
4377
|
+
if (!source) return {};
|
|
4378
|
+
try {
|
|
4379
|
+
const parsed = JSON.parse(source);
|
|
4380
|
+
if (!parsed || typeof parsed !== "object") return {};
|
|
4381
|
+
return Object.fromEntries(Object.entries(parsed).filter((entry) => typeof entry[1] === "string"));
|
|
4382
|
+
} catch {
|
|
4383
|
+
return {};
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
function findNpm(options = {}) {
|
|
4387
|
+
const node = options.execPath ?? process.execPath;
|
|
4388
|
+
const dir = dirname2(node);
|
|
4389
|
+
const exists = options.exists ?? existsSync;
|
|
4390
|
+
const env = options.env ?? process.env;
|
|
4391
|
+
const scripts = [
|
|
4392
|
+
join3(dir, "..", "lib", "node_modules", "npm", "bin", "npm-cli.js"),
|
|
4393
|
+
join3(dir, "node_modules", "npm", "bin", "npm-cli.js")
|
|
4394
|
+
];
|
|
4395
|
+
for (const script of scripts) {
|
|
4396
|
+
if (exists(script)) return { file: node, args: [script], source: "adjacent-cli" };
|
|
4397
|
+
}
|
|
4398
|
+
const adjacent = join3(dir, process.platform === "win32" ? "npm.cmd" : "npm");
|
|
4399
|
+
if (exists(adjacent)) return { ...resolveExecutable(adjacent, [], { env }), source: "adjacent-bin" };
|
|
4400
|
+
const found = findExecutable("npm", { env });
|
|
4401
|
+
return found ? { ...resolveExecutable(found, [], { env }), source: "path" } : void 0;
|
|
4402
|
+
}
|
|
4403
|
+
var PROCESS_GUARDIAN = [
|
|
4404
|
+
'const {spawn}=require("node:child_process");const {writeFileSync}=require("node:fs");',
|
|
4405
|
+
"const parent=process.ppid;const lease=process.argv[1];",
|
|
4406
|
+
'if(lease)writeFileSync(lease,String(process.pid),{mode:0o600,flag:"wx"});',
|
|
4407
|
+
'const child=spawn(process.argv[2],process.argv.slice(3),{env:process.env,cwd:process.cwd(),detached:process.platform!=="win32",stdio:["ignore","inherit","inherit"],windowsHide:true});',
|
|
4408
|
+
"let closing=false;const watch=setInterval(()=>{try{process.kill(parent,0);if(process.ppid!==parent)stop(1)}catch{stop(1)}},250);",
|
|
4409
|
+
"function stop(code=0){if(closing)return;closing=true;clearInterval(watch);",
|
|
4410
|
+
"if(!child.pid){process.exit(code);return;}",
|
|
4411
|
+
'if(process.platform==="win32"){const k=spawn("taskkill",["/T","/F","/PID",String(child.pid)],{windowsHide:true,stdio:"ignore"});k.on("error",()=>{child.kill();process.exit(code)});k.on("exit",()=>process.exit(code));}',
|
|
4412
|
+
'else{try{process.kill(-child.pid,"SIGTERM")}catch{process.exit(code);return;}setTimeout(()=>{try{process.kill(-child.pid,"SIGKILL")}catch{}process.exit(code)},2000)}',
|
|
4413
|
+
"}",
|
|
4414
|
+
'process.stdin.on("end",()=>stop(1));process.stdin.on("error",()=>stop(1));process.stdin.resume();',
|
|
4415
|
+
'process.stdout.on("error",()=>stop(1));process.stderr.on("error",()=>stop(1));',
|
|
4416
|
+
'child.on("error",error=>{process.stderr.write(error.message);stop(1)});child.on("exit",code=>stop(code??1));',
|
|
4417
|
+
'process.on("SIGTERM",()=>stop(1));process.on("SIGINT",()=>stop(1));'
|
|
4418
|
+
].join("\n");
|
|
4419
|
+
async function runProcess(request) {
|
|
4420
|
+
request.signal?.throwIfAborted();
|
|
4421
|
+
return new Promise((resolve, reject) => {
|
|
4422
|
+
const argv = ["-e", PROCESS_GUARDIAN, "--", request.leasePath ?? "", request.file, ...request.args];
|
|
4423
|
+
const child = spawn(process.execPath, argv, {
|
|
4424
|
+
cwd: request.cwd,
|
|
4425
|
+
env: request.env,
|
|
4426
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
4427
|
+
windowsHide: true,
|
|
4428
|
+
detached: process.platform !== "win32"
|
|
4429
|
+
});
|
|
4430
|
+
let tail = "";
|
|
4431
|
+
let aborted = false;
|
|
4432
|
+
let timedOut = false;
|
|
4433
|
+
let stalled = false;
|
|
4434
|
+
const stop = () => {
|
|
4435
|
+
child.stdin.end();
|
|
4436
|
+
};
|
|
4437
|
+
child.stdin.on("error", () => {
|
|
4438
|
+
});
|
|
4439
|
+
const cancel = () => {
|
|
4440
|
+
aborted = true;
|
|
4441
|
+
stop();
|
|
4442
|
+
};
|
|
4443
|
+
request.signal?.addEventListener("abort", cancel, { once: true });
|
|
4444
|
+
const timer = setTimeout(() => {
|
|
4445
|
+
timedOut = true;
|
|
4446
|
+
stop();
|
|
4447
|
+
}, request.timeoutMs ?? 15 * 6e4);
|
|
4448
|
+
timer.unref();
|
|
4449
|
+
let idle;
|
|
4450
|
+
const armIdle = () => {
|
|
4451
|
+
if (!request.idleMs) return;
|
|
4452
|
+
clearTimeout(idle);
|
|
4453
|
+
idle = setTimeout(() => {
|
|
4454
|
+
timedOut = true;
|
|
4455
|
+
stalled = true;
|
|
4456
|
+
stop();
|
|
4457
|
+
}, request.idleMs);
|
|
4458
|
+
idle.unref();
|
|
4459
|
+
};
|
|
4460
|
+
armIdle();
|
|
4461
|
+
const output = (chunk) => {
|
|
4462
|
+
const text = chunk.toString("utf8");
|
|
4463
|
+
tail = (tail + text).slice(-65536);
|
|
4464
|
+
for (const line of text.split(/\r?\n/).filter(Boolean)) request.onProgress?.(line.slice(0, 2e3));
|
|
4465
|
+
armIdle();
|
|
4466
|
+
};
|
|
4467
|
+
child.stdout.on("data", output);
|
|
4468
|
+
child.stderr.on("data", output);
|
|
4469
|
+
const cleanup = () => {
|
|
4470
|
+
clearTimeout(timer);
|
|
4471
|
+
clearTimeout(idle);
|
|
4472
|
+
request.signal?.removeEventListener("abort", cancel);
|
|
4473
|
+
};
|
|
4474
|
+
child.once("error", (error) => {
|
|
4475
|
+
cleanup();
|
|
4476
|
+
reject(asAppFault(error, "command-did-not-start"));
|
|
4477
|
+
});
|
|
4478
|
+
child.once("close", (code) => {
|
|
4479
|
+
cleanup();
|
|
4480
|
+
if (aborted) reject(new AppFault("cancelled"));
|
|
4481
|
+
else if (timedOut) reject(stalled ? new AppFault("stalled", (tail.trim().split(/\r?\n/).pop() ?? "").trim().slice(0, 300)) : new AppFault("timeout"));
|
|
4482
|
+
else if (code !== 0) reject(engineFault(tail) ?? new AppFault("process-failed", tail.trim() || String(code)));
|
|
4483
|
+
else resolve();
|
|
4484
|
+
});
|
|
4485
|
+
if (request.signal?.aborted) cancel();
|
|
4486
|
+
});
|
|
4487
|
+
}
|
|
4488
|
+
function readIds(requirements) {
|
|
4489
|
+
const shape = external_exports.object({ id: external_exports.string(), present: external_exports.boolean() }).passthrough();
|
|
4490
|
+
try {
|
|
4491
|
+
return external_exports.array(shape).max(10).parse(requirements).map((item) => item.id);
|
|
4492
|
+
} catch {
|
|
4493
|
+
throw new AppFault("malformed-requirements");
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
async function checkedProbe(app, probe, parent) {
|
|
4497
|
+
parent?.throwIfAborted();
|
|
4498
|
+
const deadline = AbortSignal.timeout(GUIDE_TIMEOUT_MS);
|
|
4499
|
+
const signal = parent ? AbortSignal.any([parent, deadline]) : deadline;
|
|
4500
|
+
let abort;
|
|
4501
|
+
try {
|
|
4502
|
+
const cancelled = new Promise((_resolve, reject) => {
|
|
4503
|
+
abort = () => reject(parent?.aborted ? new AppFault("cancelled") : new AppFault("does-not-start", "guide timeout"));
|
|
4504
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
4505
|
+
});
|
|
4506
|
+
const requirements = await Promise.race([probe(app, signal), cancelled]);
|
|
4507
|
+
const ids = readIds(requirements);
|
|
4508
|
+
const declared = app.manifest.requirements.map((item) => item.id);
|
|
4509
|
+
if (new Set(ids).size !== ids.length || declared.some((id) => !ids.includes(id))) {
|
|
4510
|
+
throw new AppFault("malformed-requirements");
|
|
4511
|
+
}
|
|
4512
|
+
return requirements;
|
|
4513
|
+
} finally {
|
|
4514
|
+
if (abort) signal.removeEventListener("abort", abort);
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
var currentSchema = external_exports.object({
|
|
4518
|
+
version: external_exports.string().transform(assertVersion),
|
|
4519
|
+
activatedAt: external_exports.string().datetime(),
|
|
4520
|
+
previous: external_exports.string().transform(assertVersion).optional()
|
|
4521
|
+
}).strict();
|
|
4522
|
+
async function readCurrent(id) {
|
|
4523
|
+
const path = layoutFor(id).current;
|
|
4524
|
+
await assertManagedPath(path);
|
|
4525
|
+
const raw = await readJson(path);
|
|
4526
|
+
if (raw === void 0) return void 0;
|
|
4527
|
+
try {
|
|
4528
|
+
return currentSchema.parse(raw);
|
|
4529
|
+
} catch (error) {
|
|
4530
|
+
throw error instanceof AppFault ? error : new AppFault("disk-unreadable");
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
async function readStaged(id) {
|
|
4534
|
+
const path = layoutFor(id).staged;
|
|
4535
|
+
await assertManagedPath(path);
|
|
4536
|
+
const raw = await readJson(path);
|
|
4537
|
+
if (raw === void 0) return void 0;
|
|
4538
|
+
try {
|
|
4539
|
+
return external_exports.object({ version: external_exports.string().transform(assertVersion) }).strict().parse(raw).version;
|
|
4540
|
+
} catch (error) {
|
|
4541
|
+
throw error instanceof AppFault ? error : new AppFault("disk-unreadable");
|
|
4542
|
+
}
|
|
4543
|
+
}
|
|
4544
|
+
async function inspectAt(id, version, root) {
|
|
4545
|
+
const official = officialApp(id);
|
|
4546
|
+
assertVersion(version);
|
|
4547
|
+
await assertManagedPath(root);
|
|
4548
|
+
const packageRoot = join4(root, "node_modules", ...official.pkg.split("/"));
|
|
4549
|
+
if (!await insideDir(root, packageRoot)) throw new AppFault("package-outside-installation");
|
|
4550
|
+
const declared = await readFile2(join4(packageRoot, "package.json"), "utf8");
|
|
4551
|
+
let pkg;
|
|
4552
|
+
try {
|
|
4553
|
+
pkg = JSON.parse(declared);
|
|
4554
|
+
} catch {
|
|
4555
|
+
throw new AppFault("broken-package-manifest");
|
|
4556
|
+
}
|
|
4557
|
+
if (pkg.name !== official.pkg || pkg.version !== version) throw new AppFault("package-version-mismatch");
|
|
4558
|
+
const manifest = validateManifest(pkg);
|
|
4559
|
+
if (manifest.id !== id) throw new AppFault("manifest-id-mismatch");
|
|
4560
|
+
if (!official.protocols.includes(manifest.protocol)) throw new AppFault("incompatible-protocol");
|
|
4561
|
+
for (const path of [manifest.entry.mcp, ...Object.values(manifest.legal)]) {
|
|
4562
|
+
const file = join4(packageRoot, path);
|
|
4563
|
+
const contained = await insideDir(packageRoot, file);
|
|
4564
|
+
if (!contained || !(await stat(file)).isFile()) throw new AppFault("manifest-file-missing-or-outside");
|
|
4565
|
+
}
|
|
4566
|
+
return { id, pkg: official.pkg, version, manifest, root, packageRoot, entry: join4(packageRoot, manifest.entry.mcp) };
|
|
4567
|
+
}
|
|
4568
|
+
async function installedApp(id, version) {
|
|
4569
|
+
const selected = version ?? (await readCurrent(id))?.version;
|
|
4570
|
+
if (!selected) throw new AppFault("not-installed");
|
|
4571
|
+
return inspectAt(id, assertVersion(selected), join4(layoutFor(id).versions, selected));
|
|
4572
|
+
}
|
|
4573
|
+
function alive(pid) {
|
|
4574
|
+
if (typeof pid !== "number" || !Number.isSafeInteger(pid) || pid < 1) return false;
|
|
4575
|
+
try {
|
|
4576
|
+
process.kill(pid, 0);
|
|
4577
|
+
return true;
|
|
4578
|
+
} catch (error) {
|
|
4579
|
+
return error.code === "EPERM";
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4582
|
+
async function locked(id, work) {
|
|
4583
|
+
const layout = layoutFor(id);
|
|
4584
|
+
await assertManagedPath(layout.root);
|
|
4585
|
+
await mkdir2(layout.root, { recursive: true });
|
|
4586
|
+
const lock = join4(layout.root, ".operation-lock");
|
|
4587
|
+
await assertManagedPath(lock);
|
|
4588
|
+
for (let attempt = 0; ; attempt += 1) {
|
|
4589
|
+
try {
|
|
4590
|
+
await mkdir2(lock);
|
|
4591
|
+
break;
|
|
4592
|
+
} catch (error) {
|
|
4593
|
+
if (error.code !== "EEXIST") throw asAppFault(error);
|
|
4594
|
+
if (attempt) throw new AppFault("app-operation-in-progress", void 0, { cause: error });
|
|
4595
|
+
await reconcileDisk();
|
|
4596
|
+
}
|
|
4597
|
+
}
|
|
4598
|
+
try {
|
|
4599
|
+
await writeFile2(join4(lock, "pid"), String(process.pid));
|
|
4600
|
+
return await work();
|
|
4601
|
+
} finally {
|
|
4602
|
+
await rm(lock, { recursive: true, force: true });
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4605
|
+
async function activateUnlocked(id, version) {
|
|
4606
|
+
await installedApp(id, version);
|
|
4607
|
+
const previous = await readCurrent(id);
|
|
4608
|
+
const fallback = previous?.version && previous.version !== version ? previous.version : previous?.previous;
|
|
4609
|
+
await writeJsonAtomic(layoutFor(id).current, {
|
|
4610
|
+
version,
|
|
4611
|
+
activatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4612
|
+
...fallback ? { previous: fallback } : {}
|
|
4613
|
+
});
|
|
4614
|
+
if (await readStaged(id) === version) await rm(layoutFor(id).staged, { force: true });
|
|
4615
|
+
}
|
|
4616
|
+
async function activate(id, version) {
|
|
4617
|
+
return locked(id, () => activateUnlocked(id, assertVersion(version)));
|
|
4618
|
+
}
|
|
4619
|
+
async function rollback(id) {
|
|
4620
|
+
return locked(id, async () => {
|
|
4621
|
+
const current = await readCurrent(id);
|
|
4622
|
+
if (!current?.previous) throw new AppFault("no-previous-version");
|
|
4623
|
+
await activateUnlocked(id, current.previous);
|
|
4624
|
+
});
|
|
4625
|
+
}
|
|
4626
|
+
function createAppManager(dependencies) {
|
|
4627
|
+
return {
|
|
4628
|
+
async install(id, options) {
|
|
4629
|
+
const official = officialApp(id);
|
|
4630
|
+
return locked(id, async () => {
|
|
4631
|
+
options.signal?.throwIfAborted();
|
|
4632
|
+
const asked = await dependencies.registry.latest(official.pkg, { explicit: true, force: true });
|
|
4633
|
+
const selected = options.version ?? asked.version;
|
|
4634
|
+
if (!selected) throw new AppFault("offline");
|
|
4635
|
+
const version = assertVersion(selected);
|
|
4636
|
+
const layout = layoutFor(id);
|
|
4637
|
+
const partial = join4(layout.versions, `${version}.partial`);
|
|
4638
|
+
const final = join4(layout.versions, version);
|
|
4639
|
+
await assertManagedPath(partial);
|
|
4640
|
+
await mkdir2(layout.versions, { recursive: true });
|
|
4641
|
+
let app;
|
|
4642
|
+
let requirements;
|
|
4643
|
+
if (await stat(final).then(() => true, () => false)) {
|
|
4644
|
+
app = await installedApp(id, version);
|
|
4645
|
+
requirements = await checkedProbe(app, options.probe, options.signal);
|
|
4646
|
+
} else {
|
|
4647
|
+
await rm(partial, { recursive: true, force: true });
|
|
4648
|
+
await mkdir2(partial);
|
|
4649
|
+
try {
|
|
4650
|
+
const npm = findNpm();
|
|
4651
|
+
if (!npm) throw new AppFault("npm-not-found");
|
|
4652
|
+
if (dependencies.registryOrigin === NPM_REGISTRY) {
|
|
4653
|
+
const floor = nodeFloorFault(id);
|
|
4654
|
+
if (floor) throw floor;
|
|
4655
|
+
}
|
|
4656
|
+
const home = join4(partial, ".npm-home");
|
|
4657
|
+
await mkdir2(home);
|
|
4658
|
+
const config = join4(home, "npmrc");
|
|
4659
|
+
await writeFile2(config, "", { mode: 384 });
|
|
4660
|
+
const globalConfig = join4(home, "global-npmrc");
|
|
4661
|
+
await writeFile2(globalConfig, "", { mode: 384 });
|
|
4662
|
+
const env = buildAppEnvironment(id);
|
|
4663
|
+
env.HOME = home;
|
|
4664
|
+
env.USERPROFILE = home;
|
|
4665
|
+
env.npm_config_cache = join4(home, "cache");
|
|
4666
|
+
env.npm_config_userconfig = config;
|
|
4667
|
+
env.npm_config_globalconfig = globalConfig;
|
|
4668
|
+
env.npm_config_registry = dependencies.registryOrigin;
|
|
4669
|
+
const args = [
|
|
4670
|
+
"install",
|
|
4671
|
+
"--prefix",
|
|
4672
|
+
partial,
|
|
4673
|
+
"--ignore-scripts",
|
|
4674
|
+
"--engine-strict",
|
|
4675
|
+
"--no-audit",
|
|
4676
|
+
"--no-fund",
|
|
4677
|
+
"--no-package-lock",
|
|
4678
|
+
"--fetch-retries=0",
|
|
4679
|
+
"--registry",
|
|
4680
|
+
dependencies.registryOrigin,
|
|
4681
|
+
`${official.pkg}@${version}`
|
|
4682
|
+
];
|
|
4683
|
+
const leasePath = join4(layout.root, ".operation-lock", "worker.pid");
|
|
4684
|
+
await assertManagedPath(leasePath);
|
|
4685
|
+
await dependencies.run({
|
|
4686
|
+
file: npm.file,
|
|
4687
|
+
args: [...npm.args, ...args],
|
|
4688
|
+
cwd: partial,
|
|
4689
|
+
env,
|
|
4690
|
+
signal: options.signal,
|
|
4691
|
+
onProgress: options.onProgress,
|
|
4692
|
+
leasePath
|
|
4693
|
+
});
|
|
4694
|
+
await rm(home, { recursive: true, force: true });
|
|
4695
|
+
app = await inspectAt(id, version, partial);
|
|
4696
|
+
await assertTreeContained(partial);
|
|
4697
|
+
options.signal?.throwIfAborted();
|
|
4698
|
+
requirements = await checkedProbe(app, options.probe, options.signal);
|
|
4699
|
+
options.signal?.throwIfAborted();
|
|
4700
|
+
await rename2(partial, final);
|
|
4701
|
+
app = await installedApp(id, version);
|
|
4702
|
+
} catch (error) {
|
|
4703
|
+
await rm(partial, { recursive: true, force: true });
|
|
4704
|
+
throw asAppFault(error);
|
|
4705
|
+
}
|
|
4706
|
+
}
|
|
4707
|
+
options.signal?.throwIfAborted();
|
|
4708
|
+
const before = await readCurrent(id);
|
|
4709
|
+
if (options.activate === false) await writeJsonAtomic(layout.staged, { version });
|
|
4710
|
+
else await activateUnlocked(id, version);
|
|
4711
|
+
return {
|
|
4712
|
+
...app,
|
|
4713
|
+
requirements,
|
|
4714
|
+
previousVersion: before?.version,
|
|
4715
|
+
status: options.activate === false ? "staged" : "installed"
|
|
4716
|
+
};
|
|
4717
|
+
});
|
|
4718
|
+
},
|
|
4719
|
+
async installBrowser(id, onProgress, signal) {
|
|
4720
|
+
return locked(id, async () => {
|
|
4721
|
+
const app = await installedApp(id);
|
|
4722
|
+
const browser = app.manifest.requirements.find((item) => item.kind === "playwright-browser");
|
|
4723
|
+
if (!browser || browser.kind !== "playwright-browser") throw new AppFault("browser-not-declared");
|
|
4724
|
+
const candidates = [
|
|
4725
|
+
join4(app.root, "node_modules", "playwright", "cli.js"),
|
|
4726
|
+
join4(app.packageRoot, "node_modules", "playwright", "cli.js")
|
|
4727
|
+
];
|
|
4728
|
+
const entry = await firstContainedFile(app.root, candidates);
|
|
4729
|
+
if (!entry) throw new AppFault("playwright-not-installed");
|
|
4730
|
+
const layout = layoutFor(id);
|
|
4731
|
+
await assertManagedPath(layout.browsers);
|
|
4732
|
+
await mkdir2(layout.browsers, { recursive: true });
|
|
4733
|
+
const leasePath = join4(layoutFor(id).root, ".operation-lock", "worker.pid");
|
|
4734
|
+
await assertManagedPath(leasePath);
|
|
4735
|
+
await dependencies.run({
|
|
4736
|
+
file: process.execPath,
|
|
4737
|
+
args: [entry, "install", browser.browser],
|
|
4738
|
+
cwd: app.root,
|
|
4739
|
+
env: buildAppEnvironment(id),
|
|
4740
|
+
onProgress,
|
|
4741
|
+
signal,
|
|
4742
|
+
leasePath,
|
|
4743
|
+
// Hundreds of megabytes: what must not stop is the progress, not the clock.
|
|
4744
|
+
idleMs: BROWSER_IDLE_MS,
|
|
4745
|
+
timeoutMs: BROWSER_TOTAL_MS
|
|
4746
|
+
});
|
|
4747
|
+
});
|
|
4748
|
+
}
|
|
4749
|
+
};
|
|
4750
|
+
}
|
|
4751
|
+
var manager = createAppManager({
|
|
4752
|
+
registry: { latest: registryVersion },
|
|
4753
|
+
registryOrigin: NPM_REGISTRY,
|
|
4754
|
+
run: runProcess
|
|
4755
|
+
});
|
|
4756
|
+
var install = manager.install;
|
|
4757
|
+
var installBrowser = manager.installBrowser;
|
|
4758
|
+
function update(id, options) {
|
|
4759
|
+
return install(id, { ...options, activate: false });
|
|
4760
|
+
}
|
|
4761
|
+
async function probeRequirements(id, probe, signal) {
|
|
4762
|
+
return checkedProbe(await installedApp(id), probe, signal);
|
|
4763
|
+
}
|
|
4764
|
+
async function firstContainedFile(root, candidates) {
|
|
4765
|
+
for (const candidate of candidates) {
|
|
4766
|
+
if (!await insideDir(root, candidate)) continue;
|
|
4767
|
+
if (await stat(candidate).then((entry) => entry.isFile(), () => false)) return candidate;
|
|
4768
|
+
}
|
|
4769
|
+
return void 0;
|
|
4770
|
+
}
|
|
4771
|
+
async function assertTreeContained(root, path = root) {
|
|
4772
|
+
for (const entry of await readdir(path, { withFileTypes: true })) {
|
|
4773
|
+
const child = join4(path, entry.name);
|
|
4774
|
+
if (entry.isSymbolicLink()) {
|
|
4775
|
+
if (!await insideDir(root, child)) throw new AppFault("broken-installation");
|
|
4776
|
+
} else if (entry.isDirectory()) await assertTreeContained(root, child);
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
async function subtreeBytes(path) {
|
|
4780
|
+
const entries = await readdir(path, { withFileTypes: true }).catch((error) => {
|
|
4781
|
+
if (error.code === "ENOENT" || error.code === "ENOTDIR") return [];
|
|
4782
|
+
throw asAppFault(error);
|
|
4783
|
+
});
|
|
4784
|
+
let bytes = 0;
|
|
4785
|
+
for (const entry of entries) {
|
|
4786
|
+
if (entry.isSymbolicLink()) continue;
|
|
4787
|
+
const child = join4(path, entry.name);
|
|
4788
|
+
if (entry.isDirectory()) bytes += await subtreeBytes(child);
|
|
4789
|
+
else bytes += (await lstat2(child).catch((error) => {
|
|
4790
|
+
if (error.code === "ENOENT") return void 0;
|
|
4791
|
+
throw asAppFault(error);
|
|
4792
|
+
}))?.size ?? 0;
|
|
4793
|
+
}
|
|
4794
|
+
return bytes;
|
|
4795
|
+
}
|
|
4796
|
+
async function directoryBytes(path) {
|
|
4797
|
+
const entry = await lstat2(path).catch((error) => {
|
|
4798
|
+
if (error.code === "ENOENT") return void 0;
|
|
4799
|
+
throw asAppFault(error);
|
|
4800
|
+
});
|
|
4801
|
+
if (!entry || entry.isSymbolicLink()) return 0;
|
|
4802
|
+
if (!entry.isDirectory()) return entry.size;
|
|
4803
|
+
return subtreeBytes(path);
|
|
4804
|
+
}
|
|
4805
|
+
async function cleanData(id) {
|
|
4806
|
+
return locked(id, async () => {
|
|
4807
|
+
const data = layoutFor(id).data;
|
|
4808
|
+
await assertManagedPath(data);
|
|
4809
|
+
const removedBytes = await directoryBytes(data);
|
|
4810
|
+
await rm(data, { recursive: true, force: true });
|
|
4811
|
+
return { removedBytes };
|
|
4812
|
+
});
|
|
4813
|
+
}
|
|
4814
|
+
async function uninstall(id, options = { keepData: true }) {
|
|
4815
|
+
if (!options.keepData) throw new AppFault("use-clean-data");
|
|
4816
|
+
return locked(id, async () => {
|
|
4817
|
+
const layout = layoutFor(id);
|
|
4818
|
+
for (const path of [layout.versions, layout.current, layout.staged, layout.browsers, layout.logs]) {
|
|
4819
|
+
await assertManagedPath(path);
|
|
4820
|
+
await rm(path, { recursive: true, force: true });
|
|
4821
|
+
}
|
|
4822
|
+
});
|
|
4823
|
+
}
|
|
4824
|
+
async function reconcileDisk() {
|
|
4825
|
+
const result = { apps: [], removedPartials: 0 };
|
|
4826
|
+
for (const official of OFFICIAL) {
|
|
4827
|
+
const layout = layoutFor(official.id);
|
|
4828
|
+
let current;
|
|
4829
|
+
try {
|
|
4830
|
+
await assertManagedPath(layout.root);
|
|
4831
|
+
const lock = join4(layout.root, ".operation-lock");
|
|
4832
|
+
const pid = Number(await readFile2(join4(lock, "pid"), "utf8").catch(() => "0"));
|
|
4833
|
+
const workerPid = Number(await readFile2(join4(lock, "worker.pid"), "utf8").catch(() => "0"));
|
|
4834
|
+
const lockEntry = await stat(lock).catch(() => void 0);
|
|
4835
|
+
const busy = alive(pid) || alive(workerPid) || !!lockEntry && Date.now() - lockEntry.mtimeMs < 3e4;
|
|
4836
|
+
if (!busy) {
|
|
4837
|
+
if (lockEntry) await rm(lock, { recursive: true, force: true });
|
|
4838
|
+
for (const name of await readdir(layout.versions).catch(() => [])) {
|
|
4839
|
+
if (!name.endsWith(".partial")) continue;
|
|
4840
|
+
const path = join4(layout.versions, name);
|
|
4841
|
+
await assertManagedPath(path);
|
|
4842
|
+
await rm(path, { recursive: true, force: true });
|
|
4843
|
+
result.removedPartials += 1;
|
|
4844
|
+
}
|
|
4845
|
+
}
|
|
4846
|
+
current = await readCurrent(official.id);
|
|
4847
|
+
const app = current ? await installedApp(official.id, current.version) : void 0;
|
|
4848
|
+
let stagedVersion;
|
|
4849
|
+
let error;
|
|
4850
|
+
try {
|
|
4851
|
+
stagedVersion = await readStaged(official.id);
|
|
4852
|
+
if (stagedVersion) await installedApp(official.id, stagedVersion);
|
|
4853
|
+
} catch (caught) {
|
|
4854
|
+
await assertManagedPath(layout.staged);
|
|
4855
|
+
if (!busy) await rm(layout.staged, { force: true });
|
|
4856
|
+
stagedVersion = void 0;
|
|
4857
|
+
error = "staged-update-invalid: " + (caught instanceof Error ? caught.message : "unreadable");
|
|
4858
|
+
}
|
|
4859
|
+
if (!current) {
|
|
4860
|
+
const status = error ? "broken" : stagedVersion ? "staged" : "absent";
|
|
4861
|
+
result.apps.push({ id: official.id, status, stagedVersion, error });
|
|
4862
|
+
} else {
|
|
4863
|
+
const status = stagedVersion ? "staged" : "installed";
|
|
4864
|
+
result.apps.push({ id: official.id, status, current, stagedVersion, app, error });
|
|
4865
|
+
}
|
|
4866
|
+
} catch (error) {
|
|
4867
|
+
const message = error instanceof Error ? error.message : "disk-unreadable";
|
|
4868
|
+
result.apps.push({ id: official.id, status: "broken", current, error: message });
|
|
4869
|
+
}
|
|
4870
|
+
}
|
|
4871
|
+
return result;
|
|
4872
|
+
}
|
|
4873
|
+
export {
|
|
4874
|
+
APP_ENV_NAMES,
|
|
4875
|
+
APP_FAULTS,
|
|
4876
|
+
AppFault,
|
|
4877
|
+
AppManifestSchema,
|
|
4878
|
+
BROWSER_IDLE_MS,
|
|
4879
|
+
BROWSER_TOTAL_MS,
|
|
4880
|
+
FAULT_PART,
|
|
4881
|
+
GUIDE_TIMEOUT_MS,
|
|
4882
|
+
HOST_FAULTS,
|
|
4883
|
+
MANAGER_FAULTS,
|
|
4884
|
+
NPM_REGISTRY,
|
|
4885
|
+
OFFICIAL,
|
|
4886
|
+
REGISTRY_TTL_MS,
|
|
4887
|
+
SECRET_PATTERN,
|
|
4888
|
+
TOOL_TIMEOUT_MS,
|
|
4889
|
+
VERSION_PATTERN,
|
|
4890
|
+
activate,
|
|
4891
|
+
appEnvironment,
|
|
4892
|
+
appsDir,
|
|
4893
|
+
asAppFault,
|
|
4894
|
+
assertManagedPath,
|
|
4895
|
+
assertVersion,
|
|
4896
|
+
buildAppEnvironment,
|
|
4897
|
+
cleanData,
|
|
4898
|
+
directoryBytes,
|
|
4899
|
+
engineFault,
|
|
4900
|
+
faultOf,
|
|
4901
|
+
findNpm,
|
|
4902
|
+
insideDir,
|
|
4903
|
+
install,
|
|
4904
|
+
installBrowser,
|
|
4905
|
+
installedApp,
|
|
4906
|
+
isAppFaultCode,
|
|
4907
|
+
latestOnRegistry,
|
|
4908
|
+
layoutFor,
|
|
4909
|
+
nodeFloorFault,
|
|
4910
|
+
officialApp,
|
|
4911
|
+
probeRequirements,
|
|
4912
|
+
readCurrent,
|
|
4913
|
+
readStaged,
|
|
4914
|
+
reconcileDisk,
|
|
4915
|
+
registryVersion,
|
|
4916
|
+
rollback,
|
|
4917
|
+
uninstall,
|
|
4918
|
+
update,
|
|
4919
|
+
validateManifest
|
|
4920
|
+
};
|