"use strict";(()=>{var e={};e.id=9593,e.ids=[9593],e.modules={85890:e=>{e.exports=require("better-sqlite3")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},6113:e=>{e.exports=require("crypto")},6005:e=>{e.exports=require("node:crypto")},49411:e=>{e.exports=require("node:path")},53471:(e,t,r)=>{r.r(t),r.d(t,{headerHooks:()=>g,originalPathname:()=>v,patchFetch:()=>q,requestAsyncStorage:()=>f,routeModule:()=>l,serverHooks:()=>h,staticGenerationAsyncStorage:()=>m,staticGenerationBailout:()=>x});var o={};r.r(o),r.d(o,{POST:()=>d});var s=r(95419),a=r(69108),n=r(99678),i=r(53797),u=r(72274),p=r(74030);let c=i.z.object({fid:i.z.coerce.number().int().positive(),frameAppUrl:i.z.string().url(),webhookUrl:i.z.string().url()});async function d(e){let t=c.safeParse(await e.json());if(!t.success)return Response.json(t.error.flatten(),{status:400});let r=await (0,u.c)(e.nextUrl.href),{fid:o,frameAppUrl:s,webhookUrl:a}=t.data,n=crypto.randomUUID(),i=await r.registerNamespace(n,{fid:o,frameAppUrl:s,webhookUrl:a});return Response.json(p.getResponseBodySchema.parse(i),{status:201})}let l=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/notifications/route",pathname:"/notifications",filename:"route",bundlePath:"app/notifications/route"},resolvedPagePath:"/Users/stephan/environments/mod/framesjs-monorepo/packages/debugger/app/notifications/route.ts",nextConfigOutput:"",userland:o}),{requestAsyncStorage:f,staticGenerationAsyncStorage:m,serverHooks:h,headerHooks:g,staticGenerationBailout:x}=l,v="/notifications/route";function q(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:m})}}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[1638,9947,8416,6532,4030],()=>r(53471));module.exports=o})();