@superinterface/server 1.0.24 → 1.0.26
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/api-keys/[apiKeyId]/route.js +1 -1
- package/.next/server/app/api/api-keys/[apiKeyId]/route.js.nft.json +1 -1
- package/.next/server/app/api/api-keys/route.js +1 -1
- package/.next/server/app/api/api-keys/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/[assistantId]/functions/[functionId]/route.js +1 -1
- package/.next/server/app/api/assistants/[assistantId]/functions/[functionId]/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/[assistantId]/functions/route.js +1 -1
- package/.next/server/app/api/assistants/[assistantId]/functions/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/[assistantId]/initial-messages/route.js +1 -1
- package/.next/server/app/api/assistants/[assistantId]/initial-messages/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.js +1 -1
- package/.next/server/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/[assistantId]/mcp-servers/route.js +1 -1
- package/.next/server/app/api/assistants/[assistantId]/mcp-servers/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/[assistantId]/route.js +1 -1
- package/.next/server/app/api/assistants/[assistantId]/route.js.nft.json +1 -1
- package/.next/server/app/api/assistants/route.js +1 -1
- package/.next/server/app/api/assistants/route.js.nft.json +1 -1
- package/.next/server/app/api/files/[fileId]/contents/route.js +1 -1
- package/.next/server/app/api/files/[fileId]/contents/route.js.nft.json +1 -1
- package/.next/server/app/api/files/route.js +1 -1
- package/.next/server/app/api/files/route.js.nft.json +1 -1
- package/.next/server/app/api/messages/route.js +1 -1
- package/.next/server/app/api/messages/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/assistants/route.js +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/assistants/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/models/route.js +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/models/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/route.js +1 -1
- package/.next/server/app/api/providers/[modelProviderId]/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/route.js +1 -1
- package/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/[taskId]/route.js +1 -1
- package/.next/server/app/api/tasks/[taskId]/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/callback/route.js +1 -1
- package/.next/server/app/api/tasks/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/tasks/route.js +1 -1
- package/.next/server/app/api/tasks/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/api/workspaces/[workspaceId]/route.js +1 -1
- package/.next/server/app/api/workspaces/[workspaceId]/route.js.nft.json +1 -1
- package/.next/server/app/api/workspaces/route.js +1 -1
- package/.next/server/app/api/workspaces/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]__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]__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]__40ab45eb._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__40ab45eb._.js.map +1 -1
- 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]__47b17fad._.js +38 -0
- package/.next/server/chunks/[root-of-the-server]__47b17fad._.js.map +1 -0
- 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]__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 +1 -1
- package/.next/server/chunks/[root-of-the-server]__676affb1._.js.map +1 -1
- 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 +1 -1
- package/.next/server/chunks/[root-of-the-server]__a878c913._.js.map +1 -1
- 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]__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]__f6f61507._.js +38 -0
- package/.next/server/chunks/[root-of-the-server]__f6f61507._.js.map +1 -0
- 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/functions-config-manifest.json +1 -8
- 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]/buildRoute.d.ts +52 -0
- package/dist/app/api/api-keys/[apiKeyId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/api-keys/[apiKeyId]/buildRoute.js +121 -0
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts +10 -21
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/[apiKeyId]/route.js +6 -125
- package/dist/app/api/api-keys/buildRoute.d.ts +32 -0
- package/dist/app/api/api-keys/buildRoute.d.ts.map +1 -0
- package/dist/app/api/api-keys/buildRoute.js +104 -0
- package/dist/app/api/api-keys/builders.d.ts +31 -0
- package/dist/app/api/api-keys/builders.d.ts.map +1 -0
- package/dist/app/api/api-keys/builders.js +109 -0
- package/dist/app/api/api-keys/route.d.ts +5 -13
- package/dist/app/api/api-keys/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/route.js +8 -108
- package/dist/app/api/assistants/[assistantId]/buildRoute.d.ts +120 -0
- package/dist/app/api/assistants/[assistantId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/buildRoute.js +226 -0
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/buildRoute.d.ts +167 -0
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/buildRoute.js +184 -0
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts +10 -21
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.js +6 -191
- package/dist/app/api/assistants/[assistantId]/functions/buildRoute.d.ts +114 -0
- package/dist/app/api/assistants/[assistantId]/functions/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/functions/buildRoute.js +117 -0
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts +7 -15
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/route.js +5 -122
- package/dist/app/api/assistants/[assistantId]/initial-messages/buildRoute.d.ts +40 -0
- package/dist/app/api/assistants/[assistantId]/initial-messages/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/initial-messages/buildRoute.js +85 -0
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts +7 -15
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.js +5 -90
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.d.ts +89 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/buildRoute.js +167 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts +10 -21
- 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 +6 -174
- package/dist/app/api/assistants/[assistantId]/mcp-servers/buildRoute.d.ts +62 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/buildRoute.js +115 -0
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts +7 -15
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.js +5 -120
- package/dist/app/api/assistants/[assistantId]/route.d.ts +11 -22
- package/dist/app/api/assistants/[assistantId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/route.js +6 -233
- package/dist/app/api/assistants/buildRoute.d.ts +121 -0
- package/dist/app/api/assistants/buildRoute.d.ts.map +1 -0
- package/dist/app/api/assistants/buildRoute.js +144 -0
- package/dist/app/api/assistants/route.d.ts +7 -13
- package/dist/app/api/assistants/route.d.ts.map +1 -1
- package/dist/app/api/assistants/route.js +6 -148
- package/dist/app/api/files/[fileId]/contents/buildRoute.d.ts +18 -0
- package/dist/app/api/files/[fileId]/contents/buildRoute.d.ts.map +1 -0
- package/dist/app/api/files/[fileId]/contents/buildRoute.js +81 -0
- package/dist/app/api/files/[fileId]/contents/route.d.ts +3 -13
- package/dist/app/api/files/[fileId]/contents/route.d.ts.map +1 -1
- package/dist/app/api/files/[fileId]/contents/route.js +4 -84
- package/dist/app/api/files/buildRoute.d.ts +14 -0
- package/dist/app/api/files/buildRoute.d.ts.map +1 -0
- package/dist/app/api/files/buildRoute.js +88 -0
- package/dist/app/api/files/route.d.ts +4 -10
- package/dist/app/api/files/route.d.ts.map +1 -1
- package/dist/app/api/files/route.js +4 -91
- package/dist/app/api/messages/buildRoute.d.ts +34 -0
- package/dist/app/api/messages/buildRoute.d.ts.map +1 -0
- package/dist/app/api/messages/buildRoute.js +607 -0
- package/dist/app/api/messages/lib/initialMessagesResponse.d.ts.map +1 -1
- package/dist/app/api/messages/lib/initialMessagesResponse.js +1 -1
- package/dist/app/api/messages/route.d.ts +10 -22
- package/dist/app/api/messages/route.d.ts.map +1 -1
- package/dist/app/api/messages/route.js +6 -612
- package/dist/app/api/providers/[modelProviderId]/assistants/buildRoute.d.ts +24 -0
- package/dist/app/api/providers/[modelProviderId]/assistants/buildRoute.d.ts.map +1 -0
- package/dist/app/api/providers/[modelProviderId]/assistants/buildRoute.js +43 -0
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts +4 -9
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/assistants/route.js +4 -46
- package/dist/app/api/providers/[modelProviderId]/buildRoute.d.ts +61 -0
- package/dist/app/api/providers/[modelProviderId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/providers/[modelProviderId]/buildRoute.js +134 -0
- package/dist/app/api/providers/[modelProviderId]/models/buildRoute.d.ts +19 -0
- package/dist/app/api/providers/[modelProviderId]/models/buildRoute.d.ts.map +1 -0
- package/dist/app/api/providers/[modelProviderId]/models/buildRoute.js +43 -0
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts +4 -9
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/models/route.js +4 -46
- package/dist/app/api/providers/[modelProviderId]/route.d.ts +10 -21
- package/dist/app/api/providers/[modelProviderId]/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/route.js +6 -141
- package/dist/app/api/providers/buildRoute.d.ts +38 -0
- package/dist/app/api/providers/buildRoute.d.ts.map +1 -0
- package/dist/app/api/providers/buildRoute.js +75 -0
- package/dist/app/api/providers/route.d.ts +5 -13
- package/dist/app/api/providers/route.d.ts.map +1 -1
- package/dist/app/api/providers/route.js +5 -80
- package/dist/app/api/tasks/[taskId]/buildRoute.d.ts +19 -0
- package/dist/app/api/tasks/[taskId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/tasks/[taskId]/buildRoute.js +125 -0
- package/dist/app/api/tasks/[taskId]/route.d.ts +7 -57
- package/dist/app/api/tasks/[taskId]/route.d.ts.map +1 -1
- package/dist/app/api/tasks/[taskId]/route.js +6 -144
- package/dist/app/api/tasks/buildRoute.d.ts +36 -0
- package/dist/app/api/tasks/buildRoute.d.ts.map +1 -0
- package/dist/app/api/tasks/buildRoute.js +85 -0
- package/dist/app/api/tasks/callback/buildRoute.d.ts +6 -0
- package/dist/app/api/tasks/callback/buildRoute.d.ts.map +1 -0
- package/dist/app/api/tasks/callback/buildRoute.js +244 -0
- package/dist/app/api/tasks/callback/route.d.ts +2 -1
- package/dist/app/api/tasks/callback/route.d.ts.map +1 -1
- package/dist/app/api/tasks/callback/route.js +4 -244
- package/dist/app/api/tasks/route.d.ts +5 -13
- package/dist/app/api/tasks/route.d.ts.map +1 -1
- package/dist/app/api/tasks/route.js +5 -90
- package/dist/app/api/threads/runs/submit-client-tool-outputs/buildRoute.d.ts +10 -0
- package/dist/app/api/threads/runs/submit-client-tool-outputs/buildRoute.d.ts.map +1 -0
- package/dist/app/api/threads/runs/submit-client-tool-outputs/buildRoute.js +36 -0
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.d.ts +2 -7
- 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 +3 -37
- package/dist/app/api/workspaces/[workspaceId]/buildRoute.d.ts +16 -0
- package/dist/app/api/workspaces/[workspaceId]/buildRoute.d.ts.map +1 -0
- package/dist/app/api/workspaces/[workspaceId]/buildRoute.js +89 -0
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts +5 -31
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/[workspaceId]/route.js +5 -89
- package/dist/app/api/workspaces/buildRoute.d.ts +42 -0
- package/dist/app/api/workspaces/buildRoute.d.ts.map +1 -0
- package/dist/app/api/workspaces/buildRoute.js +78 -0
- package/dist/app/api/workspaces/route.d.ts +7 -27
- package/dist/app/api/workspaces/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/route.js +6 -82
- package/dist/lib/functions/functionSchema.d.ts +56 -56
- package/dist/lib/functions/handleFunction/getFunction.d.ts +4 -4
- package/dist/lib/mcpServers/mcpServerSchema.d.ts +20 -20
- package/dist/lib/prisma/index.d.ts +2 -5
- package/dist/lib/prisma/index.d.ts.map +1 -1
- package/dist/lib/prisma/index.js +5 -70
- package/package.json +2 -2
- package/.next/server/chunks/[root-of-the-server]__228bff78._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__228bff78._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__3307123c._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__3307123c._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__50c5f12c._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__50c5f12c._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__6b8ba839._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__6b8ba839._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__e7819e95._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__e7819e95._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__f0dfab03._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__f0dfab03._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__ff90af03._.js +0 -38
- package/.next/server/chunks/[root-of-the-server]__ff90af03._.js.map +0 -1
- /package/.next/static/{X1k4ISA6YteJsnJalPLxm → KhKDqyqUf75vkMRrXaWJf}/_buildManifest.js +0 -0
- /package/.next/static/{X1k4ISA6YteJsnJalPLxm → KhKDqyqUf75vkMRrXaWJf}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{X1k4ISA6YteJsnJalPLxm → KhKDqyqUf75vkMRrXaWJf}/_ssgManifest.js +0 -0
|
@@ -9,41 +9,41 @@ export declare const baseSchema: z.ZodObject<{
|
|
|
9
9
|
url: z.ZodString;
|
|
10
10
|
headers: z.ZodEffects<z.ZodString, string, string>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
url: string;
|
|
13
12
|
headers: string;
|
|
14
|
-
}, {
|
|
15
13
|
url: string;
|
|
14
|
+
}, {
|
|
16
15
|
headers: string;
|
|
16
|
+
url: string;
|
|
17
17
|
}>>>;
|
|
18
18
|
httpTransport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
19
|
url: z.ZodString;
|
|
20
20
|
headers: z.ZodEffects<z.ZodString, string, string>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
url: string;
|
|
23
22
|
headers: string;
|
|
24
|
-
}, {
|
|
25
23
|
url: string;
|
|
24
|
+
}, {
|
|
26
25
|
headers: string;
|
|
26
|
+
url: string;
|
|
27
27
|
}>>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
transportType: "SSE" | "HTTP";
|
|
30
30
|
httpTransport?: {
|
|
31
|
-
url: string;
|
|
32
31
|
headers: string;
|
|
32
|
+
url: string;
|
|
33
33
|
} | null | undefined;
|
|
34
34
|
sseTransport?: {
|
|
35
|
-
url: string;
|
|
36
35
|
headers: string;
|
|
36
|
+
url: string;
|
|
37
37
|
} | null | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
transportType: "STDIO" | "SSE" | "HTTP";
|
|
40
40
|
httpTransport?: {
|
|
41
|
-
url: string;
|
|
42
41
|
headers: string;
|
|
42
|
+
url: string;
|
|
43
43
|
} | null | undefined;
|
|
44
44
|
sseTransport?: {
|
|
45
|
-
url: string;
|
|
46
45
|
headers: string;
|
|
46
|
+
url: string;
|
|
47
47
|
} | null | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
export declare const superRefine: (values: any, ctx: any) => void;
|
|
@@ -57,61 +57,61 @@ export declare const mcpServerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
57
|
url: z.ZodString;
|
|
58
58
|
headers: z.ZodEffects<z.ZodString, string, string>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
url: string;
|
|
61
60
|
headers: string;
|
|
62
|
-
}, {
|
|
63
61
|
url: string;
|
|
62
|
+
}, {
|
|
64
63
|
headers: string;
|
|
64
|
+
url: string;
|
|
65
65
|
}>>>;
|
|
66
66
|
httpTransport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
67
|
url: z.ZodString;
|
|
68
68
|
headers: z.ZodEffects<z.ZodString, string, string>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
url: string;
|
|
71
70
|
headers: string;
|
|
72
|
-
}, {
|
|
73
71
|
url: string;
|
|
72
|
+
}, {
|
|
74
73
|
headers: string;
|
|
74
|
+
url: string;
|
|
75
75
|
}>>>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
transportType: "SSE" | "HTTP";
|
|
78
78
|
httpTransport?: {
|
|
79
|
-
url: string;
|
|
80
79
|
headers: string;
|
|
80
|
+
url: string;
|
|
81
81
|
} | null | undefined;
|
|
82
82
|
sseTransport?: {
|
|
83
|
-
url: string;
|
|
84
83
|
headers: string;
|
|
84
|
+
url: string;
|
|
85
85
|
} | null | undefined;
|
|
86
86
|
}, {
|
|
87
87
|
transportType: "STDIO" | "SSE" | "HTTP";
|
|
88
88
|
httpTransport?: {
|
|
89
|
-
url: string;
|
|
90
89
|
headers: string;
|
|
90
|
+
url: string;
|
|
91
91
|
} | null | undefined;
|
|
92
92
|
sseTransport?: {
|
|
93
|
-
url: string;
|
|
94
93
|
headers: string;
|
|
94
|
+
url: string;
|
|
95
95
|
} | null | undefined;
|
|
96
96
|
}>, {
|
|
97
97
|
transportType: "SSE" | "HTTP";
|
|
98
98
|
httpTransport?: {
|
|
99
|
-
url: string;
|
|
100
99
|
headers: string;
|
|
100
|
+
url: string;
|
|
101
101
|
} | null | undefined;
|
|
102
102
|
sseTransport?: {
|
|
103
|
-
url: string;
|
|
104
103
|
headers: string;
|
|
104
|
+
url: string;
|
|
105
105
|
} | null | undefined;
|
|
106
106
|
}, {
|
|
107
107
|
transportType: "STDIO" | "SSE" | "HTTP";
|
|
108
108
|
httpTransport?: {
|
|
109
|
-
url: string;
|
|
110
109
|
headers: string;
|
|
110
|
+
url: string;
|
|
111
111
|
} | null | undefined;
|
|
112
112
|
sseTransport?: {
|
|
113
|
-
url: string;
|
|
114
113
|
headers: string;
|
|
114
|
+
url: string;
|
|
115
115
|
} | null | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
//# sourceMappingURL=mcpServerSchema.d.ts.map
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { PrismaClient } from '@prisma/client';
|
|
2
2
|
declare const prismaClientSingleton: () => PrismaClient<import("@prisma/client").Prisma.PrismaClientOptions, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
3
3
|
declare global {
|
|
4
|
-
var prisma:
|
|
4
|
+
var prisma: ReturnType<typeof prismaClientSingleton> | undefined;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const prisma: PrismaClient;
|
|
8
|
-
export declare const resolvePrisma: <T extends PrismaClient>(client?: T) => PrismaClient;
|
|
9
|
-
export declare const __setPrismaFactoryForTests: (factory?: () => PrismaClient) => void;
|
|
6
|
+
export declare const prisma: PrismaClient<import("@prisma/client").Prisma.PrismaClientOptions, never, import("@prisma/client/runtime/library").DefaultArgs>;
|
|
10
7
|
export {};
|
|
11
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/prisma/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/prisma/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,QAAA,MAAM,qBAAqB,sIAe1B,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,MAAM,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG,SAAS,CAAA;CACjE;AAED,eAAO,MAAM,MAAM,gIAA+C,CAAA"}
|
package/dist/lib/prisma/index.js
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
+
var _a;
|
|
1
2
|
import { PrismaNeon } from '@prisma/adapter-neon';
|
|
2
3
|
import { PrismaClient } from '@prisma/client';
|
|
3
|
-
const prismaGlobalKey = Symbol.for('superinterface.server.prisma');
|
|
4
|
-
let customPrismaFactory;
|
|
5
4
|
const prismaClientSingleton = () => {
|
|
6
|
-
if (customPrismaFactory) {
|
|
7
|
-
return customPrismaFactory();
|
|
8
|
-
}
|
|
9
5
|
const connectionString = `${process.env.DATABASE_URL}`;
|
|
10
6
|
if (process.env.NODE_ENV === 'test') {
|
|
11
7
|
return new PrismaClient();
|
|
12
8
|
}
|
|
13
|
-
const adapter = new PrismaNeon({
|
|
14
|
-
connectionString,
|
|
15
|
-
});
|
|
9
|
+
const adapter = new PrismaNeon({ connectionString });
|
|
16
10
|
return new PrismaClient({
|
|
17
11
|
adapter,
|
|
18
12
|
transactionOptions: {
|
|
@@ -20,65 +14,6 @@ const prismaClientSingleton = () => {
|
|
|
20
14
|
},
|
|
21
15
|
});
|
|
22
16
|
};
|
|
23
|
-
export const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return globalForPrisma[prismaGlobalKey];
|
|
27
|
-
if (globalForPrisma.prisma) {
|
|
28
|
-
globalForPrisma[prismaGlobalKey] = globalForPrisma.prisma;
|
|
29
|
-
return globalForPrisma.prisma;
|
|
30
|
-
}
|
|
31
|
-
const client = prismaClientSingleton();
|
|
32
|
-
globalForPrisma[prismaGlobalKey] = client;
|
|
33
|
-
if (!globalForPrisma.prisma)
|
|
34
|
-
globalForPrisma.prisma = client;
|
|
35
|
-
return client;
|
|
36
|
-
};
|
|
37
|
-
const getClient = () => {
|
|
38
|
-
return getPrisma();
|
|
39
|
-
};
|
|
40
|
-
let prismaInstance;
|
|
41
|
-
export const prisma = new Proxy({}, {
|
|
42
|
-
get(_target, prop, receiver) {
|
|
43
|
-
const client = prismaInstance !== null && prismaInstance !== void 0 ? prismaInstance : (prismaInstance = getClient());
|
|
44
|
-
const value = Reflect.get(client, prop, receiver);
|
|
45
|
-
return typeof value === 'function' ? value.bind(client) : value;
|
|
46
|
-
},
|
|
47
|
-
set(_target, prop, value, receiver) {
|
|
48
|
-
const client = prismaInstance !== null && prismaInstance !== void 0 ? prismaInstance : (prismaInstance = getClient());
|
|
49
|
-
return Reflect.set(client, prop, value, receiver);
|
|
50
|
-
},
|
|
51
|
-
has(_target, prop) {
|
|
52
|
-
const client = prismaInstance !== null && prismaInstance !== void 0 ? prismaInstance : (prismaInstance = getClient());
|
|
53
|
-
return Reflect.has(client, prop);
|
|
54
|
-
},
|
|
55
|
-
ownKeys() {
|
|
56
|
-
const client = prismaInstance !== null && prismaInstance !== void 0 ? prismaInstance : (prismaInstance = getClient());
|
|
57
|
-
return Reflect.ownKeys(client);
|
|
58
|
-
},
|
|
59
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
60
|
-
const client = prismaInstance !== null && prismaInstance !== void 0 ? prismaInstance : (prismaInstance = getClient());
|
|
61
|
-
return Reflect.getOwnPropertyDescriptor(client, prop);
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
export const resolvePrisma = (client) => {
|
|
65
|
-
if (client) {
|
|
66
|
-
const globalForPrisma = globalThis;
|
|
67
|
-
globalForPrisma[prismaGlobalKey] = client;
|
|
68
|
-
if (!globalForPrisma.prisma) {
|
|
69
|
-
globalForPrisma.prisma = client;
|
|
70
|
-
}
|
|
71
|
-
prismaInstance = client;
|
|
72
|
-
return client;
|
|
73
|
-
}
|
|
74
|
-
return getPrisma();
|
|
75
|
-
};
|
|
76
|
-
export const __setPrismaFactoryForTests = (factory) => {
|
|
77
|
-
customPrismaFactory = factory;
|
|
78
|
-
prismaInstance = undefined;
|
|
79
|
-
const globalForPrisma = globalThis;
|
|
80
|
-
Reflect.deleteProperty(globalForPrisma, prismaGlobalKey);
|
|
81
|
-
if ('prisma' in globalForPrisma) {
|
|
82
|
-
Reflect.deleteProperty(globalForPrisma, 'prisma');
|
|
83
|
-
}
|
|
84
|
-
};
|
|
17
|
+
export const prisma = (_a = globalThis.prisma) !== null && _a !== void 0 ? _a : prismaClientSingleton();
|
|
18
|
+
if (process.env.NODE_ENV !== 'production')
|
|
19
|
+
globalThis.prisma = prisma;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superinterface/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superinterface-server": "./bin/index.cjs"
|
|
@@ -141,7 +141,6 @@
|
|
|
141
141
|
"start": "next start",
|
|
142
142
|
"prisma:migrate": "npx prisma migrate dev",
|
|
143
143
|
"lint": "eslint",
|
|
144
|
-
"test": "npm run build:lib --silent && node --import tsx --experimental-test-module-mocks --test \"tests/**/*.test.ts\"",
|
|
145
144
|
"cli": "tsx scripts/cli.ts"
|
|
146
145
|
},
|
|
147
146
|
"dependencies": {
|
|
@@ -161,6 +160,7 @@
|
|
|
161
160
|
"dayjs": "^1.11.18",
|
|
162
161
|
"dotenv": "^16.4.5",
|
|
163
162
|
"groq-sdk": "^0.33.0",
|
|
163
|
+
|
|
164
164
|
"prisma": "^6.16.3",
|
|
165
165
|
"prisma-json-types-generator": "^3.6.2",
|
|
166
166
|
"replicate": "^1.2.0",
|