@superinterface/server 1.0.22 → 1.0.24
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/eslint/.cache_btwyo7 +1 -1
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/api/files/[fileId]/contents/route.js +3 -3
- package/.next/server/app/api/files/[fileId]/contents/route.js.nft.json +1 -1
- package/.next/server/app/api/files/route.js +3 -3
- package/.next/server/app/api/files/route.js.nft.json +1 -1
- package/.next/server/app/api/messages/route.js +6 -6
- package/.next/server/app/api/messages/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/callback/route.js +6 -7
- package/.next/server/app/api/tasks/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/threads/runs/submit-client-tool-outputs/route.js +1 -1
- package/.next/server/app/api/threads/runs/submit-client-tool-outputs/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/chunks/[root-of-the-server]__0c1bc5ed._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0c1bc5ed._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__228bff78._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__228bff78._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__25ee13bc._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__25ee13bc._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__2945c9e9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__2945c9e9._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__29635e8e._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__29635e8e._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__29b43490._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__315f084a._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__315f084a._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__3307123c._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__3307123c._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__40ab45eb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__40ab45eb._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__441cee00._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__441cee00._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__464a4377._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__464a4377._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__4e536bc0._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__50c5f12c._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__50c5f12c._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__583a7f1c._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__583a7f1c._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__5abf1160._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__5abf1160._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__5d09614a._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__5d09614a._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__62d958e7._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__62d958e7._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__676affb1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__676affb1._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__6b8ba839._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__6b8ba839._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__72b72b9e._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__72b72b9e._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__83461316._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__83461316._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__9a611d42._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__9a611d42._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__a878c913._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__a878c913._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__b10ec83e._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__b10ec83e._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__c1629392._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__c1629392._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__dd176cb5._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__e7819e95._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__e7819e95._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__eb816e13._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__eb816e13._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__f0dfab03._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__f0dfab03._.js.map +1 -1
- package/.next/server/chunks/[root-of-the-server]__f845ef25._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__f845ef25._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__ff90af03._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__ff90af03._.js.map +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_cb746cf4.js +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_cb746cf4.js.map +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_f952d9ab.js +1 -1
- package/.next/server/chunks/c4f00_next_dist_esm_build_templates_app-route_f952d9ab.js.map +1 -1
- package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js +3 -3
- package/.next/server/chunks/supercorp_superinterface_bebd2c96._.js.map +1 -1
- package/.next/server/functions-config-manifest.json +2 -2
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/trace +1 -1
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts +6 -51
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/[apiKeyId]/route.js +10 -7
- package/dist/app/api/api-keys/route.d.ts +4 -26
- package/dist/app/api/api-keys/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/route.js +7 -5
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts +6 -168
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.js +10 -7
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts +4 -110
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/route.js +7 -5
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts +4 -36
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.js +7 -5
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts +6 -90
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.js +10 -7
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts +4 -58
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.js +7 -5
- package/dist/app/api/assistants/[assistantId]/route.d.ts +6 -119
- package/dist/app/api/assistants/[assistantId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/route.js +10 -7
- package/dist/app/api/assistants/route.d.ts +4 -56
- package/dist/app/api/assistants/route.d.ts.map +1 -1
- package/dist/app/api/assistants/route.js +7 -5
- package/dist/app/api/files/[fileId]/contents/route.d.ts +2 -6
- package/dist/app/api/files/[fileId]/contents/route.d.ts.map +1 -1
- package/dist/app/api/files/[fileId]/contents/route.js +4 -3
- package/dist/app/api/files/route.d.ts +2 -8
- package/dist/app/api/files/route.d.ts.map +1 -1
- package/dist/app/api/files/route.js +4 -3
- package/dist/app/api/messages/lib/initialMessagesResponse.d.ts.map +1 -1
- package/dist/app/api/messages/lib/initialMessagesResponse.js +2 -3
- package/dist/app/api/messages/route.d.ts +4 -22
- package/dist/app/api/messages/route.d.ts.map +1 -1
- package/dist/app/api/messages/route.js +7 -5
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts +2 -17
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/assistants/route.js +4 -3
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts +2 -12
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/models/route.js +4 -3
- package/dist/app/api/providers/[modelProviderId]/route.d.ts +6 -60
- package/dist/app/api/providers/[modelProviderId]/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/route.js +10 -7
- package/dist/app/api/providers/route.d.ts +4 -32
- package/dist/app/api/providers/route.d.ts.map +1 -1
- package/dist/app/api/providers/route.js +7 -5
- package/dist/app/api/tasks/[taskId]/route.d.ts +6 -57
- package/dist/app/api/tasks/[taskId]/route.d.ts.map +1 -1
- package/dist/app/api/tasks/[taskId]/route.js +10 -7
- package/dist/app/api/tasks/callback/route.d.ts.map +1 -1
- package/dist/app/api/tasks/callback/route.js +5 -5
- package/dist/app/api/tasks/route.d.ts +4 -30
- package/dist/app/api/tasks/route.d.ts.map +1 -1
- package/dist/app/api/tasks/route.js +7 -5
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.d.ts +2 -6
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.d.ts.map +1 -1
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.js +6 -6
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts +4 -30
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/[workspaceId]/route.js +7 -5
- package/dist/app/api/workspaces/route.d.ts +4 -22
- package/dist/app/api/workspaces/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/route.js +7 -5
- package/dist/lib/functions/handleFunction/handleAssistant.d.ts.map +1 -1
- package/dist/lib/functions/handleFunction/handleAssistant.js +2 -3
- package/dist/lib/mcpServers/getToolCallMcpServer.d.ts.map +1 -1
- package/dist/lib/mcpServers/getToolCallMcpServer.js +5 -6
- package/dist/lib/prisma/index.d.ts +1 -0
- package/dist/lib/prisma/index.d.ts.map +1 -1
- package/dist/lib/prisma/index.js +12 -0
- package/dist/lib/tools/tools/index.d.ts.map +1 -1
- package/dist/lib/tools/tools/index.js +2 -3
- package/package.json +2 -3
- package/.next/server/chunks/[root-of-the-server]__19865527._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__19865527._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__27aadac9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__27aadac9._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__3ba06f7c._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__3ba06f7c._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__51977f30._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__51977f30._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__7f9ca1e3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__7f9ca1e3._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__a135e388._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__a135e388._.js.map +0 -1
- package/dist/app/messages/lib/getWorkspaceId.d.ts +0 -6
- package/dist/app/messages/lib/getWorkspaceId.d.ts.map +0 -1
- package/dist/app/messages/lib/getWorkspaceId.js +0 -3
- package/dist/app/messages/lib/initialMessagesResponse.d.ts +0 -26
- package/dist/app/messages/lib/initialMessagesResponse.d.ts.map +0 -1
- package/dist/app/messages/lib/initialMessagesResponse.js +0 -59
- package/dist/app/messages/lib/serializeThread.d.ts +0 -18
- package/dist/app/messages/lib/serializeThread.d.ts.map +0 -1
- package/dist/app/messages/lib/serializeThread.js +0 -8
- package/dist/app/messages/route.d.ts +0 -31
- package/dist/app/messages/route.d.ts.map +0 -1
- package/dist/app/messages/route.js +0 -585
- package/dist/lib/prismaClient.d.ts +0 -5
- package/dist/lib/prismaClient.d.ts.map +0 -1
- package/dist/lib/prismaClient.js +0 -4
- /package/.next/static/{ImVeJObVDbb-MHLkfrFb1 → X1k4ISA6YteJsnJalPLxm}/_buildManifest.js +0 -0
- /package/.next/static/{ImVeJObVDbb-MHLkfrFb1 → X1k4ISA6YteJsnJalPLxm}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{ImVeJObVDbb-MHLkfrFb1 → X1k4ISA6YteJsnJalPLxm}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--X1k4ISA6YteJsnJalPLxm--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/76a8a50dbf44f000.js"/><script src="/_next/static/chunks/079ce3572ffa07f6.js" async=""></script><script src="/_next/static/chunks/4649e58e35bcde4b.js" async=""></script><script src="/_next/static/chunks/turbopack-11882cf18a9eb231.js" async=""></script><script src="/_next/static/chunks/03d938d038bc30e3.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/76a8a50dbf44f000.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[96352,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n3:I[17753,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n4:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"OutletBoundary\"]\n6:I[33159,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"AsyncMetadataOutlet\"]\n8:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"ViewportBoundary\"]\na:I[51035,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"MetadataBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[25098,[\"/_next/static/chunks/03d938d038bc30e3.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"X1k4ISA6YteJsnJalPLxm\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/03d938d038bc30e3.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$L5\",[\"$\",\"$L6\",null,{\"promise\":\"$@7\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],null],[\"$\",\"$La\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$b\",null,{\"fallback\":null,\"children\":\"$Lc\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n5:null\n"])</script><script>self.__next_f.push([1,"7:{\"metadata\":[],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"c:\"$7:metadata\"\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/a6dad97d9634a72d.js"></script><script src="/_next/static/chunks/22bca0be24d1dbb3.js" defer=""></script><script src="/_next/static/chunks/bd1a5816a611d718.js" defer=""></script><script src="/_next/static/chunks/turbopack-3bdbb570d8566903.js" defer=""></script><script src="/_next/static/chunks/e57ec661e9850a31.js" defer=""></script><script src="/_next/static/chunks/turbopack-67ff8c1c5b1ad9a8.js" defer=""></script><script src="/_next/static/X1k4ISA6YteJsnJalPLxm/_ssgManifest.js" defer=""></script><script src="/_next/static/X1k4ISA6YteJsnJalPLxm/_buildManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"X1k4ISA6YteJsnJalPLxm","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":135,"timestamp":79516380322,"id":4,"parentId":1,"tags":{},"startTime":1759971028918,"traceId":"64b52980cc36ca6b"},{"name":"load-custom-routes","duration":162,"timestamp":79516380509,"id":5,"parentId":1,"tags":{},"startTime":1759971028918,"traceId":"64b52980cc36ca6b"},{"name":"create-dist-dir","duration":4651,"timestamp":79516450085,"id":6,"parentId":1,"tags":{},"startTime":1759971028988,"traceId":"64b52980cc36ca6b"},{"name":"create-pages-mapping","duration":250,"timestamp":79516599179,"id":7,"parentId":1,"tags":{},"startTime":1759971029137,"traceId":"64b52980cc36ca6b"},{"name":"collect-app-files","duration":9518,"timestamp":79516599520,"id":8,"parentId":1,"tags":{},"startTime":1759971029137,"traceId":"64b52980cc36ca6b"},{"name":"create-app-mapping","duration":7343,"timestamp":79516609066,"id":9,"parentId":1,"tags":{},"startTime":1759971029150,"traceId":"64b52980cc36ca6b"},{"name":"create-app-layouts","duration":284,"timestamp":79516616441,"id":10,"parentId":1,"tags":{},"startTime":1759971029154,"traceId":"64b52980cc36ca6b"},{"name":"collect-default-files","duration":4143,"timestamp":79516617861,"id":12,"parentId":1,"tags":{},"startTime":1759971029156,"traceId":"64b52980cc36ca6b"},{"name":"generate-route-types","duration":118550,"timestamp":79516617097,"id":11,"parentId":1,"tags":{},"startTime":1759971029155,"traceId":"64b52980cc36ca6b"},{"name":"public-dir-conflict-check","duration":9831,"timestamp":79516735983,"id":13,"parentId":1,"tags":{},"startTime":1759971029274,"traceId":"64b52980cc36ca6b"},{"name":"generate-routes-manifest","duration":3762,"timestamp":79516746146,"id":14,"parentId":1,"tags":{},"startTime":1759971029284,"traceId":"64b52980cc36ca6b"},{"name":"run-turbopack-compiler","duration":11855191,"timestamp":79516760158,"id":16,"parentId":1,"tags":{},"startTime":1759971029298,"traceId":"64b52980cc36ca6b"},{"name":"verify-and-lint","duration":2234569,"timestamp":79528715734,"id":19,"parentId":1,"tags":{},"startTime":1759971041254,"traceId":"64b52980cc36ca6b"},{"name":"verify-typescript-setup","duration":5006589,"timestamp":79528712580,"id":18,"parentId":1,"tags":{},"startTime":1759971041250,"traceId":"64b52980cc36ca6b"},{"name":"check-static-error-page","duration":6825,"timestamp":79533740251,"id":22,"parentId":21,"tags":{},"startTime":1759971046278,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":3255,"timestamp":79533864256,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1759971046402,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":2741,"timestamp":79533864780,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":2803,"timestamp":79533864719,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":712623,"timestamp":79533888280,"id":51,"parentId":27,"tags":{},"startTime":1759971046426,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":736218,"timestamp":79533864845,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":712566,"timestamp":79533888605,"id":52,"parentId":28,"tags":{},"startTime":1759971046426,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":736341,"timestamp":79533864858,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":711070,"timestamp":79533890316,"id":54,"parentId":33,"tags":{},"startTime":1759971046428,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":736432,"timestamp":79533864964,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":713725,"timestamp":79533887707,"id":50,"parentId":30,"tags":{},"startTime":1759971046426,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":736566,"timestamp":79533864874,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":712524,"timestamp":79533888938,"id":53,"parentId":31,"tags":{},"startTime":1759971046427,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":736526,"timestamp":79533864941,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":713725,"timestamp":79533890819,"id":55,"parentId":32,"tags":{},"startTime":1759971046429,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":739621,"timestamp":79533864953,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":727405,"timestamp":79533893248,"id":62,"parentId":41,"tags":{},"startTime":1759971046431,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":755676,"timestamp":79533865005,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":731457,"timestamp":79533891689,"id":57,"parentId":35,"tags":{},"startTime":1759971046430,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":758194,"timestamp":79533864977,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":733981,"timestamp":79533892264,"id":58,"parentId":34,"tags":{},"startTime":1759971046430,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":761298,"timestamp":79533864971,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":739911,"timestamp":79533896069,"id":65,"parentId":42,"tags":{},"startTime":1759971046434,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":770997,"timestamp":79533865009,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":767818,"timestamp":79533896322,"id":66,"parentId":45,"tags":{},"startTime":1759971046434,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":799141,"timestamp":79533865023,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":802516,"timestamp":79533895756,"id":64,"parentId":43,"tags":{},"startTime":1759971046434,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":833288,"timestamp":79533865014,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":810717,"timestamp":79533896463,"id":67,"parentId":46,"tags":{},"startTime":1759971046434,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":845200,"timestamp":79533865027,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":842192,"timestamp":79533897179,"id":69,"parentId":47,"tags":{},"startTime":1759971046435,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":874375,"timestamp":79533865032,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":897094,"timestamp":79533897211,"id":70,"parentId":26,"tags":{},"startTime":1759971046435,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":929539,"timestamp":79533864793,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":911552,"timestamp":79533897644,"id":71,"parentId":29,"tags":{},"startTime":1759971046435,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":944380,"timestamp":79533864866,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":919957,"timestamp":79533902033,"id":72,"parentId":48,"tags":{},"startTime":1759971046440,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":956985,"timestamp":79533865037,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":933102,"timestamp":79533892831,"id":61,"parentId":37,"tags":{},"startTime":1759971046431,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":961166,"timestamp":79533864986,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":942884,"timestamp":79533907471,"id":73,"parentId":49,"tags":{},"startTime":1759971046445,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":985348,"timestamp":79533865045,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":1008360,"timestamp":79533892625,"id":60,"parentId":39,"tags":{},"startTime":1759971046430,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":1036024,"timestamp":79533864995,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":1018008,"timestamp":79533891088,"id":56,"parentId":36,"tags":{},"startTime":1759971046429,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":1044171,"timestamp":79533864982,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":1033548,"timestamp":79533892480,"id":59,"parentId":40,"tags":{},"startTime":1759971046430,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":1061053,"timestamp":79533865000,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":1063357,"timestamp":79533894571,"id":63,"parentId":38,"tags":{},"startTime":1759971046432,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":1092969,"timestamp":79533864991,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"is-page-static","duration":1063942,"timestamp":79533896911,"id":68,"parentId":44,"tags":{},"startTime":1759971046435,"traceId":"64b52980cc36ca6b"},{"name":"check-page","duration":1095862,"timestamp":79533865019,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1759971046403,"traceId":"64b52980cc36ca6b"},{"name":"static-check","duration":1225714,"timestamp":79533735222,"id":21,"parentId":1,"tags":{},"startTime":1759971046273,"traceId":"64b52980cc36ca6b"},{"name":"generate-required-server-files","duration":563,"timestamp":79534961508,"id":75,"parentId":1,"tags":{},"startTime":1759971047499,"traceId":"64b52980cc36ca6b"},{"name":"write-routes-manifest","duration":942,"timestamp":79534979222,"id":77,"parentId":1,"tags":{},"startTime":1759971047517,"traceId":"64b52980cc36ca6b"},{"name":"load-dotenv","duration":25,"timestamp":79535010446,"id":80,"parentId":79,"tags":{},"startTime":1759971047548,"traceId":"64b52980cc36ca6b"},{"name":"run-export-path-map","duration":269,"timestamp":79535133886,"id":81,"parentId":79,"tags":{},"startTime":1759971047672,"traceId":"64b52980cc36ca6b"},{"name":"next-export","duration":907757,"timestamp":79535009827,"id":79,"parentId":1,"tags":{},"startTime":1759971047548,"traceId":"64b52980cc36ca6b"},{"name":"move-exported-app-not-found-","duration":1904,"timestamp":79535918943,"id":82,"parentId":78,"tags":{},"startTime":1759971048457,"traceId":"64b52980cc36ca6b"},{"name":"move-exported-page","duration":9544,"timestamp":79535920922,"id":83,"parentId":78,"tags":{},"startTime":1759971048459,"traceId":"64b52980cc36ca6b"},{"name":"static-generation","duration":1607668,"timestamp":79534997066,"id":78,"parentId":1,"tags":{},"startTime":1759971047535,"traceId":"64b52980cc36ca6b"},{"name":"write-routes-manifest","duration":89788,"timestamp":79536605004,"id":84,"parentId":1,"tags":{},"startTime":1759971049143,"traceId":"64b52980cc36ca6b"},{"name":"node-file-trace-build","duration":4470287,"timestamp":79534968201,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1759971047506,"traceId":"64b52980cc36ca6b"},{"name":"apply-include-excludes","duration":2510,"timestamp":79539438519,"id":85,"parentId":1,"tags":{},"startTime":1759971051976,"traceId":"64b52980cc36ca6b"},{"name":"print-tree-view","duration":2966,"timestamp":79539441697,"id":86,"parentId":1,"tags":{},"startTime":1759971051980,"traceId":"64b52980cc36ca6b"},{"name":"telemetry-flush","duration":185,"timestamp":79539444675,"id":87,"parentId":1,"tags":{},"startTime":1759971051983,"traceId":"64b52980cc36ca6b"},{"name":"next-build","duration":23650178,"timestamp":79515794691,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1759971028333,"traceId":"64b52980cc36ca6b"}]
|
|
1
|
+
[{"name":"generate-buildid","duration":157,"timestamp":85944385897,"id":4,"parentId":1,"tags":{},"startTime":1759977456950,"traceId":"fe15f7160c32b1e3"},{"name":"load-custom-routes","duration":173,"timestamp":85944386106,"id":5,"parentId":1,"tags":{},"startTime":1759977456950,"traceId":"fe15f7160c32b1e3"},{"name":"create-dist-dir","duration":3026,"timestamp":85944430426,"id":6,"parentId":1,"tags":{},"startTime":1759977456994,"traceId":"fe15f7160c32b1e3"},{"name":"create-pages-mapping","duration":671,"timestamp":85944791052,"id":7,"parentId":1,"tags":{},"startTime":1759977457355,"traceId":"fe15f7160c32b1e3"},{"name":"collect-app-files","duration":19884,"timestamp":85944791772,"id":8,"parentId":1,"tags":{},"startTime":1759977457355,"traceId":"fe15f7160c32b1e3"},{"name":"create-app-mapping","duration":7630,"timestamp":85944811765,"id":9,"parentId":1,"tags":{},"startTime":1759977457375,"traceId":"fe15f7160c32b1e3"},{"name":"create-app-layouts","duration":2948,"timestamp":85944819464,"id":10,"parentId":1,"tags":{},"startTime":1759977457383,"traceId":"fe15f7160c32b1e3"},{"name":"collect-default-files","duration":10882,"timestamp":85944883633,"id":12,"parentId":1,"tags":{},"startTime":1759977457447,"traceId":"fe15f7160c32b1e3"},{"name":"generate-route-types","duration":87446,"timestamp":85944824033,"id":11,"parentId":1,"tags":{},"startTime":1759977457388,"traceId":"fe15f7160c32b1e3"},{"name":"public-dir-conflict-check","duration":453,"timestamp":85944911617,"id":13,"parentId":1,"tags":{},"startTime":1759977457475,"traceId":"fe15f7160c32b1e3"},{"name":"generate-routes-manifest","duration":4678,"timestamp":85944912209,"id":14,"parentId":1,"tags":{},"startTime":1759977457476,"traceId":"fe15f7160c32b1e3"},{"name":"run-turbopack-compiler","duration":10079195,"timestamp":85944933286,"id":16,"parentId":1,"tags":{},"startTime":1759977457497,"traceId":"fe15f7160c32b1e3"},{"name":"verify-and-lint","duration":2942968,"timestamp":85955030714,"id":19,"parentId":1,"tags":{},"startTime":1759977467594,"traceId":"fe15f7160c32b1e3"},{"name":"verify-typescript-setup","duration":5534955,"timestamp":85955028304,"id":18,"parentId":1,"tags":{},"startTime":1759977467592,"traceId":"fe15f7160c32b1e3"},{"name":"check-static-error-page","duration":4431,"timestamp":85960575970,"id":22,"parentId":21,"tags":{},"startTime":1759977473140,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":1909,"timestamp":85960665083,"id":23,"parentId":21,"tags":{"page":"/_app"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":1425,"timestamp":85960665577,"id":25,"parentId":21,"tags":{"page":"/_document"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":1487,"timestamp":85960665517,"id":24,"parentId":21,"tags":{"page":"/_error"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":273333,"timestamp":85960675189,"id":53,"parentId":33,"tags":{},"startTime":1759977473239,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":282748,"timestamp":85960665808,"id":33,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":293268,"timestamp":85960674125,"id":51,"parentId":28,"tags":{},"startTime":1759977473238,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":301779,"timestamp":85960665661,"id":28,"parentId":21,"tags":{"page":"/api/api-keys"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":315492,"timestamp":85960675916,"id":55,"parentId":31,"tags":{},"startTime":1759977473239,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":325967,"timestamp":85960665767,"id":31,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/initial-messages"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":322302,"timestamp":85960675606,"id":54,"parentId":35,"tags":{},"startTime":1759977473239,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":332113,"timestamp":85960665823,"id":35,"parentId":21,"tags":{"page":"/api/assistants"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":326560,"timestamp":85960673477,"id":50,"parentId":29,"tags":{},"startTime":1759977473237,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":334767,"timestamp":85960665668,"id":29,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions/[functionId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":328548,"timestamp":85960677731,"id":61,"parentId":42,"tags":{},"startTime":1759977473241,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":340442,"timestamp":85960665862,"id":42,"parentId":21,"tags":{"page":"/api/providers"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":337028,"timestamp":85960677413,"id":59,"parentId":32,"tags":{},"startTime":1759977473241,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":348689,"timestamp":85960665793,"id":32,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/mcp-servers/[mcpServerId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":345716,"timestamp":85960678042,"id":62,"parentId":30,"tags":{},"startTime":1759977473242,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":358118,"timestamp":85960665675,"id":30,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]/functions"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":351071,"timestamp":85960677456,"id":60,"parentId":26,"tags":{},"startTime":1759977473241,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":362967,"timestamp":85960665592,"id":26,"parentId":21,"tags":{"page":"/_not-found"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":359768,"timestamp":85960674716,"id":52,"parentId":27,"tags":{},"startTime":1759977473238,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":368919,"timestamp":85960665647,"id":27,"parentId":21,"tags":{"page":"/api/api-keys/[apiKeyId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":371645,"timestamp":85960679052,"id":65,"parentId":34,"tags":{},"startTime":1759977473243,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":384912,"timestamp":85960665816,"id":34,"parentId":21,"tags":{"page":"/api/assistants/[assistantId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":371962,"timestamp":85960679370,"id":66,"parentId":47,"tags":{},"startTime":1759977473243,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":385555,"timestamp":85960665903,"id":47,"parentId":21,"tags":{"page":"/api/workspaces/[workspaceId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":373127,"timestamp":85960678376,"id":64,"parentId":46,"tags":{},"startTime":1759977473242,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":385615,"timestamp":85960665897,"id":46,"parentId":21,"tags":{"page":"/api/threads/runs/submit-client-tool-outputs"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":389095,"timestamp":85960680660,"id":69,"parentId":48,"tags":{},"startTime":1759977473244,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":403923,"timestamp":85960665908,"id":48,"parentId":21,"tags":{"page":"/api/workspaces"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":395201,"timestamp":85960681127,"id":70,"parentId":41,"tags":{},"startTime":1759977473245,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":410497,"timestamp":85960665857,"id":41,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":399420,"timestamp":85960679656,"id":67,"parentId":45,"tags":{},"startTime":1759977473243,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":413196,"timestamp":85960665892,"id":45,"parentId":21,"tags":{"page":"/api/tasks"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":410663,"timestamp":85960682731,"id":72,"parentId":43,"tags":{},"startTime":1759977473246,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":427560,"timestamp":85960665870,"id":43,"parentId":21,"tags":{"page":"/api/tasks/[taskId]"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":406058,"timestamp":85960694153,"id":73,"parentId":49,"tags":{},"startTime":1759977473258,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":434317,"timestamp":85960665917,"id":49,"parentId":21,"tags":{"page":"/"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":542040,"timestamp":85960676839,"id":58,"parentId":39,"tags":{},"startTime":1759977473240,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":553125,"timestamp":85960665843,"id":39,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/assistants"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":589801,"timestamp":85960676157,"id":56,"parentId":37,"tags":{},"startTime":1759977473240,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":600168,"timestamp":85960665834,"id":37,"parentId":21,"tags":{"page":"/api/files"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":607801,"timestamp":85960678204,"id":63,"parentId":40,"tags":{},"startTime":1759977473242,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":620186,"timestamp":85960665852,"id":40,"parentId":21,"tags":{"page":"/api/providers/[modelProviderId]/models"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":627998,"timestamp":85960676641,"id":57,"parentId":36,"tags":{},"startTime":1759977473240,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":638845,"timestamp":85960665828,"id":36,"parentId":21,"tags":{"page":"/api/files/[fileId]/contents"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":648488,"timestamp":85960680343,"id":68,"parentId":44,"tags":{},"startTime":1759977473244,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":662982,"timestamp":85960665876,"id":44,"parentId":21,"tags":{"page":"/api/tasks/callback"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"is-page-static","duration":664792,"timestamp":85960682222,"id":71,"parentId":38,"tags":{},"startTime":1759977473246,"traceId":"fe15f7160c32b1e3"},{"name":"check-page","duration":681207,"timestamp":85960665838,"id":38,"parentId":21,"tags":{"page":"/api/messages"},"startTime":1759977473229,"traceId":"fe15f7160c32b1e3"},{"name":"static-check","duration":772508,"timestamp":85960574588,"id":21,"parentId":1,"tags":{},"startTime":1759977473138,"traceId":"fe15f7160c32b1e3"},{"name":"generate-required-server-files","duration":1254,"timestamp":85961347503,"id":75,"parentId":1,"tags":{},"startTime":1759977473911,"traceId":"fe15f7160c32b1e3"},{"name":"write-routes-manifest","duration":3389,"timestamp":85961365119,"id":77,"parentId":1,"tags":{},"startTime":1759977473929,"traceId":"fe15f7160c32b1e3"},{"name":"load-dotenv","duration":16,"timestamp":85961381522,"id":80,"parentId":79,"tags":{},"startTime":1759977473945,"traceId":"fe15f7160c32b1e3"},{"name":"run-export-path-map","duration":261,"timestamp":85961502423,"id":81,"parentId":79,"tags":{},"startTime":1759977474066,"traceId":"fe15f7160c32b1e3"},{"name":"next-export","duration":1085552,"timestamp":85961380996,"id":79,"parentId":1,"tags":{},"startTime":1759977473945,"traceId":"fe15f7160c32b1e3"},{"name":"move-exported-app-not-found-","duration":2681,"timestamp":85962467814,"id":82,"parentId":78,"tags":{},"startTime":1759977475031,"traceId":"fe15f7160c32b1e3"},{"name":"move-exported-page","duration":11739,"timestamp":85962470589,"id":83,"parentId":78,"tags":{},"startTime":1759977475034,"traceId":"fe15f7160c32b1e3"},{"name":"static-generation","duration":1507875,"timestamp":85961377549,"id":78,"parentId":1,"tags":{},"startTime":1759977473941,"traceId":"fe15f7160c32b1e3"},{"name":"write-routes-manifest","duration":111377,"timestamp":85962885714,"id":84,"parentId":1,"tags":{},"startTime":1759977475449,"traceId":"fe15f7160c32b1e3"},{"name":"node-file-trace-build","duration":4473877,"timestamp":85961359854,"id":76,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1759977473923,"traceId":"fe15f7160c32b1e3"},{"name":"apply-include-excludes","duration":291,"timestamp":85965833752,"id":85,"parentId":1,"tags":{},"startTime":1759977478397,"traceId":"fe15f7160c32b1e3"},{"name":"print-tree-view","duration":4239,"timestamp":85965834636,"id":86,"parentId":1,"tags":{},"startTime":1759977478398,"traceId":"fe15f7160c32b1e3"},{"name":"telemetry-flush","duration":39,"timestamp":85965838886,"id":87,"parentId":1,"tags":{},"startTime":1759977478402,"traceId":"fe15f7160c32b1e3"},{"name":"next-build","duration":22080518,"timestamp":85943758411,"id":1,"tags":{"buildMode":"default","isTurboBuild":"true","version":"15.5.4","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1759977456322,"traceId":"fe15f7160c32b1e3"}]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type NextRequest, NextResponse } from 'next/server';
|
|
2
2
|
import { type PrismaClient } from '@prisma/client';
|
|
3
|
-
export declare const buildGET: ({ prisma }?: {
|
|
3
|
+
export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
4
4
|
prisma?: PrismaClient;
|
|
5
5
|
}) => (request: NextRequest, props: {
|
|
6
6
|
params: Promise<{
|
|
@@ -18,23 +18,8 @@ export declare const buildGET: ({ prisma }?: {
|
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
};
|
|
20
20
|
}>>;
|
|
21
|
-
export declare const GET:
|
|
22
|
-
|
|
23
|
-
apiKeyId: string;
|
|
24
|
-
}>;
|
|
25
|
-
}) => Promise<NextResponse<{
|
|
26
|
-
error: string;
|
|
27
|
-
}> | NextResponse<{
|
|
28
|
-
apiKey: {
|
|
29
|
-
id: string;
|
|
30
|
-
type: import("@prisma/client").$Enums.ApiKeyType;
|
|
31
|
-
name: string;
|
|
32
|
-
value: string;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt: string;
|
|
35
|
-
};
|
|
36
|
-
}>>;
|
|
37
|
-
export declare const buildPATCH: ({ prisma }?: {
|
|
21
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
22
|
+
export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
38
23
|
prisma?: PrismaClient;
|
|
39
24
|
}) => (request: NextRequest, props: {
|
|
40
25
|
params: Promise<{
|
|
@@ -52,23 +37,8 @@ export declare const buildPATCH: ({ prisma }?: {
|
|
|
52
37
|
updatedAt: string;
|
|
53
38
|
};
|
|
54
39
|
}>>;
|
|
55
|
-
export declare const PATCH:
|
|
56
|
-
|
|
57
|
-
apiKeyId: string;
|
|
58
|
-
}>;
|
|
59
|
-
}) => Promise<NextResponse<{
|
|
60
|
-
error: string;
|
|
61
|
-
}> | NextResponse<{
|
|
62
|
-
apiKey: {
|
|
63
|
-
id: string;
|
|
64
|
-
type: import("@prisma/client").$Enums.ApiKeyType;
|
|
65
|
-
name: string;
|
|
66
|
-
value: string;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
updatedAt: string;
|
|
69
|
-
};
|
|
70
|
-
}>>;
|
|
71
|
-
export declare const buildDELETE: ({ prisma }?: {
|
|
40
|
+
export declare const PATCH: ReturnType<typeof buildPATCH>;
|
|
41
|
+
export declare const buildDELETE: ({ prisma: providedPrisma }?: {
|
|
72
42
|
prisma?: PrismaClient;
|
|
73
43
|
}) => (request: NextRequest, props: {
|
|
74
44
|
params: Promise<{
|
|
@@ -86,21 +56,6 @@ export declare const buildDELETE: ({ prisma }?: {
|
|
|
86
56
|
updatedAt: string;
|
|
87
57
|
};
|
|
88
58
|
}>>;
|
|
89
|
-
export declare const DELETE:
|
|
90
|
-
params: Promise<{
|
|
91
|
-
apiKeyId: string;
|
|
92
|
-
}>;
|
|
93
|
-
}) => Promise<NextResponse<{
|
|
94
|
-
error: string;
|
|
95
|
-
}> | NextResponse<{
|
|
96
|
-
apiKey: {
|
|
97
|
-
id: string;
|
|
98
|
-
type: import("@prisma/client").$Enums.ApiKeyType;
|
|
99
|
-
name: string;
|
|
100
|
-
value: string;
|
|
101
|
-
createdAt: string;
|
|
102
|
-
updatedAt: string;
|
|
103
|
-
};
|
|
104
|
-
}>>;
|
|
59
|
+
export declare const DELETE: ReturnType<typeof buildDELETE>;
|
|
105
60
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
106
61
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/api-keys/[apiKeyId]/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAS9D,eAAO,MAAM,QAAQ,GAClB,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/api-keys/[apiKeyId]/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAS9D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACtC;;;;;;;;;;;GA6CF,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,UAAU,GACpB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACtC;;;;;;;;;;;GA4DF,CAAA;AAEH,eAAO,MAAM,KAAK,EACU,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAEzD,eAAO,MAAM,WAAW,GACrB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACtC;;;;;;;;;;;GAgDF,CAAA;AAEH,eAAO,MAAM,MAAM,EACU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAE3D,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -2,12 +2,13 @@ import { NextResponse } from 'next/server';
|
|
|
2
2
|
import { ApiKeyType } from '@prisma/client';
|
|
3
3
|
import { headers } from 'next/headers';
|
|
4
4
|
import { cacheHeaders } from '../../../../lib/cache/cacheHeaders';
|
|
5
|
-
import {
|
|
5
|
+
import { resolvePrisma } from '../../../../lib/prisma';
|
|
6
6
|
import { serializeApiKey } from '../../../../lib/apiKeys/serializeApiKey';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { getApiKey } from '../../../../lib/apiKeys/getApiKey';
|
|
9
9
|
import { validate } from 'uuid';
|
|
10
|
-
export const buildGET = ({ prisma
|
|
10
|
+
export const buildGET = ({ prisma: providedPrisma } = {}) => async (request, props) => {
|
|
11
|
+
const prisma = resolvePrisma(providedPrisma);
|
|
11
12
|
const params = await props.params;
|
|
12
13
|
const { apiKeyId } = params;
|
|
13
14
|
const headersList = await headers();
|
|
@@ -38,8 +39,9 @@ export const buildGET = ({ prisma = defaultPrisma } = {}) => async (request, pro
|
|
|
38
39
|
}
|
|
39
40
|
return NextResponse.json({ apiKey: serializeApiKey({ apiKey }) }, { headers: cacheHeaders });
|
|
40
41
|
};
|
|
41
|
-
export const GET = buildGET();
|
|
42
|
-
export const buildPATCH = ({ prisma
|
|
42
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
43
|
+
export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, props) => {
|
|
44
|
+
const prisma = resolvePrisma(providedPrisma);
|
|
43
45
|
const params = await props.params;
|
|
44
46
|
const { apiKeyId } = params;
|
|
45
47
|
const headersList = await headers();
|
|
@@ -81,8 +83,9 @@ export const buildPATCH = ({ prisma = defaultPrisma } = {}) => async (request, p
|
|
|
81
83
|
});
|
|
82
84
|
return NextResponse.json({ apiKey: serializeApiKey({ apiKey }) }, { headers: cacheHeaders });
|
|
83
85
|
};
|
|
84
|
-
export const PATCH = buildPATCH();
|
|
85
|
-
export const buildDELETE = ({ prisma
|
|
86
|
+
export const PATCH = ((...args) => buildPATCH()(...args));
|
|
87
|
+
export const buildDELETE = ({ prisma: providedPrisma } = {}) => async (request, props) => {
|
|
88
|
+
const prisma = resolvePrisma(providedPrisma);
|
|
86
89
|
const params = await props.params;
|
|
87
90
|
const { apiKeyId } = params;
|
|
88
91
|
const headersList = await headers();
|
|
@@ -116,7 +119,7 @@ export const buildDELETE = ({ prisma = defaultPrisma } = {}) => async (request,
|
|
|
116
119
|
});
|
|
117
120
|
return NextResponse.json({ apiKey: serializeApiKey({ apiKey: deletedApiKey }) }, { headers: cacheHeaders });
|
|
118
121
|
};
|
|
119
|
-
export const DELETE = buildDELETE();
|
|
122
|
+
export const DELETE = ((...args) => buildDELETE()(...args));
|
|
120
123
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
121
124
|
headers: cacheHeaders,
|
|
122
125
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PrismaClient } from '@prisma/client';
|
|
2
2
|
import { NextResponse } from 'next/server';
|
|
3
|
-
export declare const buildGET: ({ prisma }?: {
|
|
3
|
+
export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
4
4
|
prisma?: PrismaClient;
|
|
5
5
|
}) => () => Promise<NextResponse<{
|
|
6
6
|
error: string;
|
|
@@ -14,19 +14,8 @@ export declare const buildGET: ({ prisma }?: {
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
}[];
|
|
16
16
|
}>>;
|
|
17
|
-
export declare const GET:
|
|
18
|
-
|
|
19
|
-
}> | NextResponse<{
|
|
20
|
-
apiKeys: {
|
|
21
|
-
id: string;
|
|
22
|
-
type: import("@prisma/client").$Enums.ApiKeyType;
|
|
23
|
-
name: string;
|
|
24
|
-
value: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
|
-
}[];
|
|
28
|
-
}>>;
|
|
29
|
-
export declare const buildPOST: ({ prisma }?: {
|
|
17
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
18
|
+
export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
30
19
|
prisma?: PrismaClient;
|
|
31
20
|
}) => (request: Request) => Promise<NextResponse<{
|
|
32
21
|
error: string;
|
|
@@ -40,17 +29,6 @@ export declare const buildPOST: ({ prisma }?: {
|
|
|
40
29
|
updatedAt: string;
|
|
41
30
|
};
|
|
42
31
|
}>>;
|
|
43
|
-
export declare const POST:
|
|
44
|
-
error: string;
|
|
45
|
-
}> | NextResponse<{
|
|
46
|
-
apiKey: {
|
|
47
|
-
id: string;
|
|
48
|
-
type: import("@prisma/client").$Enums.ApiKeyType;
|
|
49
|
-
name: string;
|
|
50
|
-
value: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
};
|
|
54
|
-
}>>;
|
|
32
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
55
33
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
56
34
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/api-keys/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ1C,eAAO,MAAM,QAAQ,GAClB,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/api-keys/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ1C,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;;;GAmC1D,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,SAAS,GACnB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,OAAO;;;;;;;;;;;GAoGtB,CAAA;AAEH,eAAO,MAAM,IAAI,EACU,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -3,11 +3,12 @@ import { ApiKeyType } from '@prisma/client';
|
|
|
3
3
|
import { NextResponse } from 'next/server';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { cacheHeaders } from '../../../lib/cache/cacheHeaders';
|
|
6
|
-
import {
|
|
6
|
+
import { resolvePrisma } from '../../../lib/prisma';
|
|
7
7
|
import { serializeApiKey } from '../../../lib/apiKeys/serializeApiKey';
|
|
8
8
|
import { getApiKey } from '../../../lib/apiKeys/getApiKey';
|
|
9
9
|
import { getOrganizationApiKey } from '../../../lib/organizationApiKeys/getOrganizationApiKey';
|
|
10
|
-
export const buildGET = ({ prisma
|
|
10
|
+
export const buildGET = ({ prisma: providedPrisma } = {}) => async () => {
|
|
11
|
+
const prisma = resolvePrisma(providedPrisma);
|
|
11
12
|
const headersList = await headers();
|
|
12
13
|
const authorization = headersList.get('authorization');
|
|
13
14
|
if (!authorization) {
|
|
@@ -31,8 +32,9 @@ export const buildGET = ({ prisma = defaultPrisma } = {}) => async () => {
|
|
|
31
32
|
apiKeys: apiKeys.map((apiKey) => serializeApiKey({ apiKey })),
|
|
32
33
|
}, { headers: cacheHeaders });
|
|
33
34
|
};
|
|
34
|
-
export const GET = buildGET();
|
|
35
|
-
export const buildPOST = ({ prisma
|
|
35
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
36
|
+
export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) => {
|
|
37
|
+
const prisma = resolvePrisma(providedPrisma);
|
|
36
38
|
const headersList = await headers();
|
|
37
39
|
const authorization = headersList.get('authorization');
|
|
38
40
|
if (!authorization) {
|
|
@@ -101,7 +103,7 @@ export const buildPOST = ({ prisma = defaultPrisma } = {}) => async (request) =>
|
|
|
101
103
|
apiKey: serializeApiKey({ apiKey }),
|
|
102
104
|
}, { headers: cacheHeaders });
|
|
103
105
|
};
|
|
104
|
-
export const POST = buildPOST();
|
|
106
|
+
export const POST = ((...args) => buildPOST()(...args));
|
|
105
107
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
106
108
|
headers: cacheHeaders,
|
|
107
109
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PrismaClient } from '@prisma/client';
|
|
2
2
|
import { NextResponse, type NextRequest } from 'next/server';
|
|
3
|
-
export declare const buildGET: ({ prisma }?: {
|
|
3
|
+
export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
4
4
|
prisma?: PrismaClient;
|
|
5
5
|
}) => (_request: NextRequest, props: {
|
|
6
6
|
params: Promise<{
|
|
@@ -57,62 +57,8 @@ export declare const buildGET: ({ prisma }?: {
|
|
|
57
57
|
updatedAt: string;
|
|
58
58
|
};
|
|
59
59
|
}>>;
|
|
60
|
-
export declare const GET:
|
|
61
|
-
|
|
62
|
-
assistantId: string;
|
|
63
|
-
functionId: string;
|
|
64
|
-
}>;
|
|
65
|
-
}) => Promise<NextResponse<{
|
|
66
|
-
error: string;
|
|
67
|
-
}> | NextResponse<{
|
|
68
|
-
function: {
|
|
69
|
-
id: string;
|
|
70
|
-
openapiSpec: PrismaJson.OpenapiSpec;
|
|
71
|
-
handler: {
|
|
72
|
-
deleteTaskHandler?: {
|
|
73
|
-
keyTemplate: string;
|
|
74
|
-
} | undefined;
|
|
75
|
-
updateTaskHandler?: {
|
|
76
|
-
keyTemplate: string;
|
|
77
|
-
} | undefined;
|
|
78
|
-
createTaskHandler?: {
|
|
79
|
-
keyTemplate: string;
|
|
80
|
-
} | undefined;
|
|
81
|
-
listTasksHandler?: {
|
|
82
|
-
keyTemplate: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
assistantHandler?: {
|
|
85
|
-
assistantId: string;
|
|
86
|
-
} | undefined;
|
|
87
|
-
clientToolHandler?: {
|
|
88
|
-
type: "FUNCTION";
|
|
89
|
-
name: string;
|
|
90
|
-
arguments: PrismaJson.ClientToolHandlerArguments;
|
|
91
|
-
} | undefined;
|
|
92
|
-
replicateHandler?: {
|
|
93
|
-
type: "RUN";
|
|
94
|
-
apiKey: string;
|
|
95
|
-
identifier: string;
|
|
96
|
-
body: PrismaJson.ReplicateHandlerBody;
|
|
97
|
-
} | undefined;
|
|
98
|
-
firecrawlHandler?: {
|
|
99
|
-
type: import("@prisma/client").$Enums.FirecrawlHandlerType;
|
|
100
|
-
apiKey: string;
|
|
101
|
-
body: PrismaJson.FirecrawlHandlerBody;
|
|
102
|
-
} | undefined;
|
|
103
|
-
requestHandler?: {
|
|
104
|
-
url: string;
|
|
105
|
-
method: import("@prisma/client").$Enums.MethodType;
|
|
106
|
-
headers: PrismaJson.RequestHandlerHeaders;
|
|
107
|
-
body: PrismaJson.RequestHandlerBody;
|
|
108
|
-
} | undefined;
|
|
109
|
-
type: import("@prisma/client").$Enums.HandlerType;
|
|
110
|
-
};
|
|
111
|
-
createdAt: string;
|
|
112
|
-
updatedAt: string;
|
|
113
|
-
};
|
|
114
|
-
}>>;
|
|
115
|
-
export declare const buildPATCH: ({ prisma }?: {
|
|
60
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
61
|
+
export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
116
62
|
prisma?: PrismaClient;
|
|
117
63
|
}) => (request: NextRequest, props: {
|
|
118
64
|
params: Promise<{
|
|
@@ -169,62 +115,8 @@ export declare const buildPATCH: ({ prisma }?: {
|
|
|
169
115
|
updatedAt: string;
|
|
170
116
|
};
|
|
171
117
|
}>>;
|
|
172
|
-
export declare const PATCH:
|
|
173
|
-
|
|
174
|
-
assistantId: string;
|
|
175
|
-
functionId: string;
|
|
176
|
-
}>;
|
|
177
|
-
}) => Promise<NextResponse<{
|
|
178
|
-
error: string;
|
|
179
|
-
}> | NextResponse<{
|
|
180
|
-
function: {
|
|
181
|
-
id: string;
|
|
182
|
-
openapiSpec: PrismaJson.OpenapiSpec;
|
|
183
|
-
handler: {
|
|
184
|
-
deleteTaskHandler?: {
|
|
185
|
-
keyTemplate: string;
|
|
186
|
-
} | undefined;
|
|
187
|
-
updateTaskHandler?: {
|
|
188
|
-
keyTemplate: string;
|
|
189
|
-
} | undefined;
|
|
190
|
-
createTaskHandler?: {
|
|
191
|
-
keyTemplate: string;
|
|
192
|
-
} | undefined;
|
|
193
|
-
listTasksHandler?: {
|
|
194
|
-
keyTemplate: string;
|
|
195
|
-
} | undefined;
|
|
196
|
-
assistantHandler?: {
|
|
197
|
-
assistantId: string;
|
|
198
|
-
} | undefined;
|
|
199
|
-
clientToolHandler?: {
|
|
200
|
-
type: "FUNCTION";
|
|
201
|
-
name: string;
|
|
202
|
-
arguments: PrismaJson.ClientToolHandlerArguments;
|
|
203
|
-
} | undefined;
|
|
204
|
-
replicateHandler?: {
|
|
205
|
-
type: "RUN";
|
|
206
|
-
apiKey: string;
|
|
207
|
-
identifier: string;
|
|
208
|
-
body: PrismaJson.ReplicateHandlerBody;
|
|
209
|
-
} | undefined;
|
|
210
|
-
firecrawlHandler?: {
|
|
211
|
-
type: import("@prisma/client").$Enums.FirecrawlHandlerType;
|
|
212
|
-
apiKey: string;
|
|
213
|
-
body: PrismaJson.FirecrawlHandlerBody;
|
|
214
|
-
} | undefined;
|
|
215
|
-
requestHandler?: {
|
|
216
|
-
url: string;
|
|
217
|
-
method: import("@prisma/client").$Enums.MethodType;
|
|
218
|
-
headers: PrismaJson.RequestHandlerHeaders;
|
|
219
|
-
body: PrismaJson.RequestHandlerBody;
|
|
220
|
-
} | undefined;
|
|
221
|
-
type: import("@prisma/client").$Enums.HandlerType;
|
|
222
|
-
};
|
|
223
|
-
createdAt: string;
|
|
224
|
-
updatedAt: string;
|
|
225
|
-
};
|
|
226
|
-
}>>;
|
|
227
|
-
export declare const buildDELETE: ({ prisma }?: {
|
|
118
|
+
export declare const PATCH: ReturnType<typeof buildPATCH>;
|
|
119
|
+
export declare const buildDELETE: ({ prisma: providedPrisma }?: {
|
|
228
120
|
prisma?: PrismaClient;
|
|
229
121
|
}) => (_request: NextRequest, props: {
|
|
230
122
|
params: Promise<{
|
|
@@ -281,60 +173,6 @@ export declare const buildDELETE: ({ prisma }?: {
|
|
|
281
173
|
updatedAt: string;
|
|
282
174
|
};
|
|
283
175
|
}>>;
|
|
284
|
-
export declare const DELETE:
|
|
285
|
-
params: Promise<{
|
|
286
|
-
assistantId: string;
|
|
287
|
-
functionId: string;
|
|
288
|
-
}>;
|
|
289
|
-
}) => Promise<NextResponse<{
|
|
290
|
-
error: string;
|
|
291
|
-
}> | NextResponse<{
|
|
292
|
-
mcpServer: {
|
|
293
|
-
id: string;
|
|
294
|
-
openapiSpec: PrismaJson.OpenapiSpec;
|
|
295
|
-
handler: {
|
|
296
|
-
deleteTaskHandler?: {
|
|
297
|
-
keyTemplate: string;
|
|
298
|
-
} | undefined;
|
|
299
|
-
updateTaskHandler?: {
|
|
300
|
-
keyTemplate: string;
|
|
301
|
-
} | undefined;
|
|
302
|
-
createTaskHandler?: {
|
|
303
|
-
keyTemplate: string;
|
|
304
|
-
} | undefined;
|
|
305
|
-
listTasksHandler?: {
|
|
306
|
-
keyTemplate: string;
|
|
307
|
-
} | undefined;
|
|
308
|
-
assistantHandler?: {
|
|
309
|
-
assistantId: string;
|
|
310
|
-
} | undefined;
|
|
311
|
-
clientToolHandler?: {
|
|
312
|
-
type: "FUNCTION";
|
|
313
|
-
name: string;
|
|
314
|
-
arguments: PrismaJson.ClientToolHandlerArguments;
|
|
315
|
-
} | undefined;
|
|
316
|
-
replicateHandler?: {
|
|
317
|
-
type: "RUN";
|
|
318
|
-
apiKey: string;
|
|
319
|
-
identifier: string;
|
|
320
|
-
body: PrismaJson.ReplicateHandlerBody;
|
|
321
|
-
} | undefined;
|
|
322
|
-
firecrawlHandler?: {
|
|
323
|
-
type: import("@prisma/client").$Enums.FirecrawlHandlerType;
|
|
324
|
-
apiKey: string;
|
|
325
|
-
body: PrismaJson.FirecrawlHandlerBody;
|
|
326
|
-
} | undefined;
|
|
327
|
-
requestHandler?: {
|
|
328
|
-
url: string;
|
|
329
|
-
method: import("@prisma/client").$Enums.MethodType;
|
|
330
|
-
headers: PrismaJson.RequestHandlerHeaders;
|
|
331
|
-
body: PrismaJson.RequestHandlerBody;
|
|
332
|
-
} | undefined;
|
|
333
|
-
type: import("@prisma/client").$Enums.HandlerType;
|
|
334
|
-
};
|
|
335
|
-
createdAt: string;
|
|
336
|
-
updatedAt: string;
|
|
337
|
-
};
|
|
338
|
-
}>>;
|
|
176
|
+
export declare const DELETE: ReturnType<typeof buildDELETE>;
|
|
339
177
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
340
178
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/functions/[functionId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAS5D,eAAO,MAAM,QAAQ,GAClB,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/api/assistants/[assistantId]/functions/[functionId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAS5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEF,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,UAAU,GACpB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FF,CAAA;AAEH,eAAO,MAAM,KAAK,EACU,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAEzD,eAAO,MAAM,WAAW,GACrB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EF,CAAA;AAEH,eAAO,MAAM,MAAM,EACU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAE3D,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|