@superinterface/server 1.0.23 → 1.0.25
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 +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- 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/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 +3 -48
- package/dist/app/api/api-keys/[apiKeyId]/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/[apiKeyId]/route.js +3 -3
- package/dist/app/api/api-keys/route.d.ts +2 -24
- package/dist/app/api/api-keys/route.d.ts.map +1 -1
- package/dist/app/api/api-keys/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts +3 -165
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/[functionId]/route.js +3 -3
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts +2 -108
- package/dist/app/api/assistants/[assistantId]/functions/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/functions/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts +2 -34
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/initial-messages/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/mcp-servers/[mcpServerId]/route.d.ts +3 -87
- 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 +3 -3
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts +2 -56
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/mcp-servers/route.js +2 -2
- package/dist/app/api/assistants/[assistantId]/route.d.ts +4 -117
- package/dist/app/api/assistants/[assistantId]/route.d.ts.map +1 -1
- package/dist/app/api/assistants/[assistantId]/route.js +3 -3
- package/dist/app/api/assistants/route.d.ts +2 -54
- package/dist/app/api/assistants/route.d.ts.map +1 -1
- package/dist/app/api/assistants/route.js +2 -2
- package/dist/app/api/files/[fileId]/contents/route.d.ts +1 -5
- package/dist/app/api/files/[fileId]/contents/route.d.ts.map +1 -1
- package/dist/app/api/files/[fileId]/contents/route.js +1 -1
- package/dist/app/api/files/route.d.ts +1 -7
- package/dist/app/api/files/route.d.ts.map +1 -1
- package/dist/app/api/files/route.js +1 -1
- 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 +2 -20
- package/dist/app/api/messages/route.d.ts.map +1 -1
- package/dist/app/api/messages/route.js +2 -2
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts +1 -16
- package/dist/app/api/providers/[modelProviderId]/assistants/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/assistants/route.js +1 -1
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts +1 -11
- package/dist/app/api/providers/[modelProviderId]/models/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/models/route.js +1 -1
- package/dist/app/api/providers/[modelProviderId]/route.d.ts +3 -57
- package/dist/app/api/providers/[modelProviderId]/route.d.ts.map +1 -1
- package/dist/app/api/providers/[modelProviderId]/route.js +3 -3
- package/dist/app/api/providers/route.d.ts +2 -30
- package/dist/app/api/providers/route.d.ts.map +1 -1
- package/dist/app/api/providers/route.js +2 -2
- package/dist/app/api/tasks/[taskId]/route.d.ts +3 -54
- package/dist/app/api/tasks/[taskId]/route.d.ts.map +1 -1
- package/dist/app/api/tasks/[taskId]/route.js +3 -3
- package/dist/app/api/tasks/callback/route.d.ts.map +1 -1
- package/dist/app/api/tasks/callback/route.js +2 -3
- package/dist/app/api/tasks/route.d.ts +2 -28
- package/dist/app/api/tasks/route.d.ts.map +1 -1
- package/dist/app/api/tasks/route.js +2 -2
- package/dist/app/api/threads/runs/submit-client-tool-outputs/route.d.ts +1 -5
- 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 -4
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts +2 -28
- package/dist/app/api/workspaces/[workspaceId]/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/[workspaceId]/route.js +2 -2
- package/dist/app/api/workspaces/route.d.ts +2 -20
- package/dist/app/api/workspaces/route.d.ts.map +1 -1
- package/dist/app/api/workspaces/route.js +2 -2
- 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.map +1 -1
- package/dist/lib/prisma/index.js +19 -5
- package/dist/lib/tools/tools/index.d.ts.map +1 -1
- package/dist/lib/tools/tools/index.js +2 -3
- package/package.json +11 -4
- 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/{yTXEit1RwJfgpDwrdt6oQ → jt8inwg6nWaLQZ4qpiSJ-}/_buildManifest.js +0 -0
- /package/.next/static/{yTXEit1RwJfgpDwrdt6oQ → jt8inwg6nWaLQZ4qpiSJ-}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{yTXEit1RwJfgpDwrdt6oQ → jt8inwg6nWaLQZ4qpiSJ-}/_ssgManifest.js +0 -0
|
@@ -29,33 +29,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
29
29
|
};
|
|
30
30
|
}[];
|
|
31
31
|
}>>;
|
|
32
|
-
export declare const GET:
|
|
33
|
-
error: string;
|
|
34
|
-
}> | NextResponse<{
|
|
35
|
-
assistants: {
|
|
36
|
-
id: string;
|
|
37
|
-
storageProviderType: import("@prisma/client").$Enums.StorageProviderType;
|
|
38
|
-
storageProviderAssistantId: string | null;
|
|
39
|
-
modelProviderId: string;
|
|
40
|
-
model: string;
|
|
41
|
-
name: string;
|
|
42
|
-
description: string;
|
|
43
|
-
instructions: string;
|
|
44
|
-
codeInterpreterEnabled: boolean;
|
|
45
|
-
fileSearchEnabled: boolean;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt: string;
|
|
48
|
-
avatar: {
|
|
49
|
-
type: import("@prisma/client").$Enums.AvatarType;
|
|
50
|
-
imageAvatar: {
|
|
51
|
-
url: string;
|
|
52
|
-
} | null;
|
|
53
|
-
iconAvatar: {
|
|
54
|
-
name: import("@prisma/client").$Enums.IconAvatarName;
|
|
55
|
-
} | null;
|
|
56
|
-
};
|
|
57
|
-
}[];
|
|
58
|
-
}>>;
|
|
32
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
59
33
|
export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
60
34
|
prisma?: PrismaClient;
|
|
61
35
|
}) => (request: Request) => Promise<NextResponse<{
|
|
@@ -85,32 +59,6 @@ export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
|
85
59
|
};
|
|
86
60
|
};
|
|
87
61
|
}>>;
|
|
88
|
-
export declare const POST:
|
|
89
|
-
error: string;
|
|
90
|
-
}> | NextResponse<{
|
|
91
|
-
assistant: {
|
|
92
|
-
id: string;
|
|
93
|
-
storageProviderType: import("@prisma/client").$Enums.StorageProviderType;
|
|
94
|
-
storageProviderAssistantId: string | null;
|
|
95
|
-
modelProviderId: string;
|
|
96
|
-
model: string;
|
|
97
|
-
name: string;
|
|
98
|
-
description: string;
|
|
99
|
-
instructions: string;
|
|
100
|
-
codeInterpreterEnabled: boolean;
|
|
101
|
-
fileSearchEnabled: boolean;
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
|
-
avatar: {
|
|
105
|
-
type: import("@prisma/client").$Enums.AvatarType;
|
|
106
|
-
imageAvatar: {
|
|
107
|
-
url: string;
|
|
108
|
-
} | null;
|
|
109
|
-
iconAvatar: {
|
|
110
|
-
name: import("@prisma/client").$Enums.IconAvatarName;
|
|
111
|
-
} | null;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
}>>;
|
|
62
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
115
63
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
116
64
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/assistants/route.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO1C,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;GA6C1D,CAAA;AAEH,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/assistants/route.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO1C,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;GA6C1D,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAwCrD,eAAO,MAAM,SAAS,GACnB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGtB,CAAA;AAEH,eAAO,MAAM,IAAI,EACU,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -39,7 +39,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async () => {
|
|
|
39
39
|
assistants: assistants.map((a) => serializeApiAssistant({ assistant: a })),
|
|
40
40
|
}, { headers: cacheHeaders });
|
|
41
41
|
};
|
|
42
|
-
export const GET = buildGET();
|
|
42
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
43
43
|
const createAssistantSchema = z
|
|
44
44
|
.object({
|
|
45
45
|
storageProviderType: z.nativeEnum(StorageProviderType),
|
|
@@ -142,7 +142,7 @@ export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
142
142
|
assistant: serializeApiAssistant({ assistant }),
|
|
143
143
|
}, { headers: cacheHeaders });
|
|
144
144
|
};
|
|
145
|
-
export const POST = buildPOST();
|
|
145
|
+
export const POST = ((...args) => buildPOST()(...args));
|
|
146
146
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
147
147
|
headers: cacheHeaders,
|
|
148
148
|
});
|
|
@@ -12,10 +12,6 @@ export declare const buildGET: ({ prisma: providedPrisma, purposeAssistantsRespo
|
|
|
12
12
|
fileId: string;
|
|
13
13
|
}>;
|
|
14
14
|
}) => Promise<NextResponse<unknown>>;
|
|
15
|
-
export declare const GET:
|
|
16
|
-
params: Promise<{
|
|
17
|
-
fileId: string;
|
|
18
|
-
}>;
|
|
19
|
-
}) => Promise<NextResponse<unknown>>;
|
|
15
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
20
16
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
21
17
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/files/[fileId]/contents/route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,yDAIE;IACD,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,yBAAyB,CAAC,EAAE,CAAC,EAC3B,IAAI,GACL,EAAE;QACD,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,UAAU,CAAA;QAC7B,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,CAAA;KACjD,KAAK,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAAA;CACtC,MAEJ,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;CACH,mCA8GF,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/files/[fileId]/contents/route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,yDAIE;IACD,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,yBAAyB,CAAC,EAAE,CAAC,EAC3B,IAAI,GACL,EAAE;QACD,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,UAAU,CAAA;QAC7B,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,CAAA;KACjD,KAAK,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAAA;CACtC,MAEJ,SAAS,WAAW,EACpB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;CACH,mCA8GF,CAAA;AAEH,eAAO,MAAM,GAAG,EACY,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEvD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -78,7 +78,7 @@ export const buildGET = ({ prisma: providedPrisma, purposeAssistantsResponse = (
|
|
|
78
78
|
headers: Object.assign(Object.assign({}, cacheHeaders), { 'Content-Type': (_a = fileContentResponse.headers.get('Content-Type')) !== null && _a !== void 0 ? _a : 'application/octet-stream', 'Content-Disposition': (_b = fileContentResponse.headers.get('Content-Disposition')) !== null && _b !== void 0 ? _b : 'inline' }),
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
export const GET = buildGET({});
|
|
81
|
+
export const GET = ((...args) => buildGET({})(...args));
|
|
82
82
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
83
83
|
headers: cacheHeaders,
|
|
84
84
|
});
|
|
@@ -10,12 +10,6 @@ export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
|
10
10
|
_request_id?: string | null;
|
|
11
11
|
};
|
|
12
12
|
}>>;
|
|
13
|
-
export declare const POST:
|
|
14
|
-
error: string;
|
|
15
|
-
}> | NextResponse<{
|
|
16
|
-
file: OpenAI.Files.FileObject & {
|
|
17
|
-
_request_id?: string | null;
|
|
18
|
-
};
|
|
19
|
-
}>>;
|
|
13
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
20
14
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
21
15
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/files/route.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,SAAS,GACnB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;GA+G1B,CAAA;AAEH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/files/route.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,SAAS,GACnB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;GA+G1B,CAAA;AAEH,eAAO,MAAM,IAAI,EACU,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -85,7 +85,7 @@ export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
85
85
|
file: createFileResponse,
|
|
86
86
|
}, { headers: cacheHeaders });
|
|
87
87
|
};
|
|
88
|
-
export const POST = buildPOST();
|
|
88
|
+
export const POST = ((...args) => buildPOST()(...args));
|
|
89
89
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
90
90
|
headers: cacheHeaders,
|
|
91
91
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialMessagesResponse.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/messages/lib/initialMessagesResponse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"initialMessagesResponse.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/messages/lib/initialMessagesResponse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAChC,OAAO,EACL,MAAM,EAIP,MAAM,gBAAgB,CAAA;AA+BvB,eAAO,MAAM,uBAAuB,GAAU,gBAE3C;IACD,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;QACpC,OAAO,EAAE;YACP,eAAe,EAAE,IAAI,CAAA;SACtB,CAAA;KACF,CAAC,CAAA;CACH;;;;;;;;;;;;;;;;EA4CA,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import { map } from 'p-iteration';
|
|
3
2
|
import { StorageProviderType, MessageRole, } from '@prisma/client';
|
|
4
3
|
import { optimisticId, serializeMessage } from '@superinterface/react/utils';
|
|
5
4
|
import { isOpenaiAssistantsStorageProvider } from '../../../../lib/storageProviders/isOpenaiAssistantsStorageProvider';
|
|
@@ -24,7 +23,7 @@ export const initialMessagesResponse = async ({ assistant, }) => {
|
|
|
24
23
|
const threadId = optimisticId();
|
|
25
24
|
const initialCreatedAt = dayjs().unix();
|
|
26
25
|
return {
|
|
27
|
-
data: await
|
|
26
|
+
data: await Promise.all(assistant.initialMessages.map((message, index) => serializeMessage({
|
|
28
27
|
message: {
|
|
29
28
|
id: optimisticId(),
|
|
30
29
|
role: message.role.toLowerCase(),
|
|
@@ -52,7 +51,7 @@ export const initialMessagesResponse = async ({ assistant, }) => {
|
|
|
52
51
|
status: 'completed',
|
|
53
52
|
runSteps: [],
|
|
54
53
|
},
|
|
55
|
-
})),
|
|
54
|
+
}))),
|
|
56
55
|
hasNextPage: false,
|
|
57
56
|
lastId: null,
|
|
58
57
|
};
|
|
@@ -24,31 +24,13 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
24
24
|
hasNextPage: boolean;
|
|
25
25
|
lastId: null;
|
|
26
26
|
}> | NextResponse<import("@superinterface/react/types/index").MessagesPage>>;
|
|
27
|
-
export declare const GET:
|
|
28
|
-
error: string;
|
|
29
|
-
}> | NextResponse<{
|
|
30
|
-
data: {
|
|
31
|
-
id: string;
|
|
32
|
-
role: "user" | "assistant";
|
|
33
|
-
created_at: number;
|
|
34
|
-
content: OpenAI.Beta.Threads.Messages.MessageContent[];
|
|
35
|
-
run_id: string;
|
|
36
|
-
assistant_id: string;
|
|
37
|
-
thread_id: string;
|
|
38
|
-
attachments: OpenAI.Beta.Threads.Messages.Message.Attachment[];
|
|
39
|
-
metadata: import("openai/resources/shared.mjs").Metadata;
|
|
40
|
-
runSteps: Pick<OpenAI.Beta.Threads.Runs.Steps.RunStep, "id" | "run_id" | "step_details" | "completed_at" | "cancelled_at" | "failed_at" | "status">[];
|
|
41
|
-
status: "in_progress" | "incomplete" | "completed";
|
|
42
|
-
}[];
|
|
43
|
-
hasNextPage: boolean;
|
|
44
|
-
lastId: null;
|
|
45
|
-
}> | NextResponse<import("@superinterface/react/types/index").MessagesPage>>;
|
|
27
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
46
28
|
export declare const buildPOST: ({ prisma: providedPrisma, onSuccessCreateThread, }?: {
|
|
47
29
|
prisma?: PrismaClient;
|
|
48
30
|
onSuccessCreateThread?: ({ thread, }: {
|
|
49
31
|
thread: Thread;
|
|
50
32
|
}) => void | Promise<void>;
|
|
51
33
|
}) => (request: NextRequest) => Promise<Response>;
|
|
52
|
-
export declare const POST:
|
|
34
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
53
35
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
54
36
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/messages/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AA2B5C,eAAO,MAAM,WAAW,MAAM,CAAA;AAE9B,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;;;;;;;;;;;;;4EA4K1B,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/messages/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AA2B5C,eAAO,MAAM,WAAW,MAAM,CAAA;AAE9B,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MACpD,SAAS,WAAW;;;;;;;;;;;;;;;;;;4EA4K1B,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,SAAS,GACnB,qDAGE;IACD,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,qBAAqB,CAAC,EAAE,CAAC,EACvB,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;KACf,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB,MACC,SAAS,WAAW,sBAggB1B,CAAA;AAEH,eAAO,MAAM,IAAI,EACY,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEzD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -180,7 +180,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
180
180
|
return NextResponse.json({ error: 'Failed to load messages.' }, { status: 500 });
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
export const GET = buildGET();
|
|
183
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
184
184
|
export const buildPOST = ({ prisma: providedPrisma, onSuccessCreateThread = () => void 0, } = {}) => async (request) => {
|
|
185
185
|
var _a;
|
|
186
186
|
const prisma = resolvePrisma(providedPrisma);
|
|
@@ -606,7 +606,7 @@ export const buildPOST = ({ prisma: providedPrisma, onSuccessCreateThread = () =
|
|
|
606
606
|
},
|
|
607
607
|
});
|
|
608
608
|
};
|
|
609
|
-
export const POST = buildPOST({});
|
|
609
|
+
export const POST = ((...args) => buildPOST({})(...args));
|
|
610
610
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
611
611
|
headers: cacheHeaders,
|
|
612
612
|
});
|
|
@@ -18,21 +18,6 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
18
18
|
tools: import("openai/resources/beta/assistants.mjs").AssistantTool[];
|
|
19
19
|
}[];
|
|
20
20
|
}>>;
|
|
21
|
-
export declare const GET:
|
|
22
|
-
params: Promise<{
|
|
23
|
-
modelProviderId: string;
|
|
24
|
-
}>;
|
|
25
|
-
}) => Promise<NextResponse<{
|
|
26
|
-
error: string;
|
|
27
|
-
}> | NextResponse<{
|
|
28
|
-
storageProviderAssistants: {
|
|
29
|
-
id: string;
|
|
30
|
-
model: string;
|
|
31
|
-
name: string | null;
|
|
32
|
-
description: string | null;
|
|
33
|
-
instructions: string | null;
|
|
34
|
-
tools: import("openai/resources/beta/assistants.mjs").AssistantTool[];
|
|
35
|
-
}[];
|
|
36
|
-
}>>;
|
|
21
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
37
22
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
38
23
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/providers/[modelProviderId]/assistants/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;;;;;;GAkDF,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/providers/[modelProviderId]/assistants/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;;;;;;GAkDF,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -40,7 +40,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (_request, pr
|
|
|
40
40
|
})),
|
|
41
41
|
}, { headers: cacheHeaders });
|
|
42
42
|
};
|
|
43
|
-
export const GET = buildGET();
|
|
43
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
44
44
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
45
45
|
headers: cacheHeaders,
|
|
46
46
|
});
|
|
@@ -13,16 +13,6 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
13
13
|
id: string;
|
|
14
14
|
}[];
|
|
15
15
|
}>>;
|
|
16
|
-
export declare const GET:
|
|
17
|
-
params: Promise<{
|
|
18
|
-
modelProviderId: string;
|
|
19
|
-
}>;
|
|
20
|
-
}) => Promise<NextResponse<{
|
|
21
|
-
error: string;
|
|
22
|
-
}> | NextResponse<{
|
|
23
|
-
models: {
|
|
24
|
-
id: string;
|
|
25
|
-
}[];
|
|
26
|
-
}>>;
|
|
16
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
27
17
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
28
18
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/providers/[modelProviderId]/models/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;GAkDF,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../src/app/api/providers/[modelProviderId]/models/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;GAkDF,CAAA;AAEH,eAAO,MAAM,GAAG,EACU,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAErD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -40,7 +40,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (_request, pr
|
|
|
40
40
|
})),
|
|
41
41
|
}, { headers: cacheHeaders });
|
|
42
42
|
};
|
|
43
|
-
export const GET = buildGET();
|
|
43
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
44
44
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
45
45
|
headers: cacheHeaders,
|
|
46
46
|
});
|
|
@@ -21,25 +21,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
21
21
|
updatedAt: string;
|
|
22
22
|
};
|
|
23
23
|
}>>;
|
|
24
|
-
export declare const GET:
|
|
25
|
-
params: Promise<{
|
|
26
|
-
modelProviderId: string;
|
|
27
|
-
}>;
|
|
28
|
-
}) => Promise<NextResponse<{
|
|
29
|
-
error: string;
|
|
30
|
-
}> | NextResponse<{
|
|
31
|
-
provider: {
|
|
32
|
-
id: string;
|
|
33
|
-
type: import("@prisma/client").$Enums.ModelProviderType;
|
|
34
|
-
name: string;
|
|
35
|
-
apiKey: string;
|
|
36
|
-
endpoint: string | null;
|
|
37
|
-
apiVersion: string | null;
|
|
38
|
-
workspaceId: string;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
};
|
|
42
|
-
}>>;
|
|
24
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
43
25
|
export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
44
26
|
prisma?: PrismaClient;
|
|
45
27
|
}) => (request: NextRequest, props: {
|
|
@@ -61,25 +43,7 @@ export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
|
61
43
|
updatedAt: string;
|
|
62
44
|
};
|
|
63
45
|
}>>;
|
|
64
|
-
export declare const PATCH:
|
|
65
|
-
params: Promise<{
|
|
66
|
-
modelProviderId: string;
|
|
67
|
-
}>;
|
|
68
|
-
}) => Promise<NextResponse<{
|
|
69
|
-
error: string;
|
|
70
|
-
}> | NextResponse<{
|
|
71
|
-
provider: {
|
|
72
|
-
id: string;
|
|
73
|
-
type: import("@prisma/client").$Enums.ModelProviderType;
|
|
74
|
-
name: string;
|
|
75
|
-
apiKey: string;
|
|
76
|
-
endpoint: string | null;
|
|
77
|
-
apiVersion: string | null;
|
|
78
|
-
workspaceId: string;
|
|
79
|
-
createdAt: string;
|
|
80
|
-
updatedAt: string;
|
|
81
|
-
};
|
|
82
|
-
}>>;
|
|
46
|
+
export declare const PATCH: ReturnType<typeof buildPATCH>;
|
|
83
47
|
export declare const buildDELETE: ({ prisma: providedPrisma }?: {
|
|
84
48
|
prisma?: PrismaClient;
|
|
85
49
|
}) => (_request: NextRequest, props: {
|
|
@@ -101,24 +65,6 @@ export declare const buildDELETE: ({ prisma: providedPrisma }?: {
|
|
|
101
65
|
updatedAt: string;
|
|
102
66
|
};
|
|
103
67
|
}>>;
|
|
104
|
-
export declare const DELETE:
|
|
105
|
-
params: Promise<{
|
|
106
|
-
modelProviderId: string;
|
|
107
|
-
}>;
|
|
108
|
-
}) => Promise<NextResponse<{
|
|
109
|
-
error: string;
|
|
110
|
-
}> | NextResponse<{
|
|
111
|
-
provider: {
|
|
112
|
-
id: string;
|
|
113
|
-
type: import("@prisma/client").$Enums.ModelProviderType;
|
|
114
|
-
name: string;
|
|
115
|
-
apiKey: string;
|
|
116
|
-
endpoint: string | null;
|
|
117
|
-
apiVersion: string | null;
|
|
118
|
-
workspaceId: string;
|
|
119
|
-
createdAt: string;
|
|
120
|
-
updatedAt: string;
|
|
121
|
-
};
|
|
122
|
-
}>>;
|
|
68
|
+
export declare const DELETE: ReturnType<typeof buildDELETE>;
|
|
123
69
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
124
70
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/providers/[modelProviderId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAQ5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;;;;;;;;;GAgDF,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/providers/[modelProviderId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAQ5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IACL,MAAM,EAAE,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;;;;;;;;;GAgDF,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,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;;;;;;;;;GAmFF,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,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC7C;;;;;;;;;;;;;;GA+DF,CAAA;AAEH,eAAO,MAAM,MAAM,EACU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAE3D,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -39,7 +39,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (_request, pr
|
|
|
39
39
|
provider: serializeModelProvider({ provider }),
|
|
40
40
|
}, { headers: cacheHeaders });
|
|
41
41
|
};
|
|
42
|
-
export const GET = buildGET();
|
|
42
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
43
43
|
export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, props) => {
|
|
44
44
|
const prisma = resolvePrisma(providedPrisma);
|
|
45
45
|
const { modelProviderId } = await props.params;
|
|
@@ -90,7 +90,7 @@ export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, p
|
|
|
90
90
|
provider: serializeModelProvider({ provider }),
|
|
91
91
|
}, { headers: cacheHeaders });
|
|
92
92
|
};
|
|
93
|
-
export const PATCH = buildPATCH();
|
|
93
|
+
export const PATCH = ((...args) => buildPATCH()(...args));
|
|
94
94
|
export const buildDELETE = ({ prisma: providedPrisma } = {}) => async (_request, props) => {
|
|
95
95
|
const prisma = resolvePrisma(providedPrisma);
|
|
96
96
|
const { modelProviderId } = await props.params;
|
|
@@ -135,7 +135,7 @@ export const buildDELETE = ({ prisma: providedPrisma } = {}) => async (_request,
|
|
|
135
135
|
provider: serializeModelProvider({ provider }),
|
|
136
136
|
}, { headers: cacheHeaders });
|
|
137
137
|
};
|
|
138
|
-
export const DELETE = buildDELETE();
|
|
138
|
+
export const DELETE = ((...args) => buildDELETE()(...args));
|
|
139
139
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
140
140
|
headers: cacheHeaders,
|
|
141
141
|
});
|
|
@@ -17,21 +17,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
}[];
|
|
19
19
|
}>>;
|
|
20
|
-
export declare const GET:
|
|
21
|
-
error: string;
|
|
22
|
-
}> | NextResponse<{
|
|
23
|
-
providers: {
|
|
24
|
-
id: string;
|
|
25
|
-
type: import("@prisma/client").$Enums.ModelProviderType;
|
|
26
|
-
name: string;
|
|
27
|
-
apiKey: string;
|
|
28
|
-
endpoint: string | null;
|
|
29
|
-
apiVersion: string | null;
|
|
30
|
-
workspaceId: string;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
updatedAt: string;
|
|
33
|
-
}[];
|
|
34
|
-
}>>;
|
|
20
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
35
21
|
export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
36
22
|
prisma?: PrismaClient;
|
|
37
23
|
}) => (request: NextRequest) => Promise<NextResponse<{
|
|
@@ -49,20 +35,6 @@ export declare const buildPOST: ({ prisma: providedPrisma }?: {
|
|
|
49
35
|
updatedAt: string;
|
|
50
36
|
};
|
|
51
37
|
}>>;
|
|
52
|
-
export declare const POST:
|
|
53
|
-
error: string;
|
|
54
|
-
}> | NextResponse<{
|
|
55
|
-
provider: {
|
|
56
|
-
id: string;
|
|
57
|
-
type: import("@prisma/client").$Enums.ModelProviderType;
|
|
58
|
-
name: string;
|
|
59
|
-
apiKey: string;
|
|
60
|
-
endpoint: string | null;
|
|
61
|
-
apiVersion: string | null;
|
|
62
|
-
workspaceId: string;
|
|
63
|
-
createdAt: string;
|
|
64
|
-
updatedAt: string;
|
|
65
|
-
};
|
|
66
|
-
}>>;
|
|
38
|
+
export declare const POST: ReturnType<typeof buildPOST>;
|
|
67
39
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
68
40
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/providers/route.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;;;;;;GAoC1D,CAAA;AAEH,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/app/api/providers/route.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAO5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO;;;;;;;;;;;;;;GAoC1D,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,WAAW;;;;;;;;;;;;;;GA8D1B,CAAA;AAEH,eAAO,MAAM,IAAI,EACU,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -30,7 +30,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async () => {
|
|
|
30
30
|
providers: providers.map((p) => serializeModelProvider({ provider: p })),
|
|
31
31
|
}, { headers: cacheHeaders });
|
|
32
32
|
};
|
|
33
|
-
export const GET = buildGET();
|
|
33
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
34
34
|
export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) => {
|
|
35
35
|
const prisma = resolvePrisma(providedPrisma);
|
|
36
36
|
const headersList = await headers();
|
|
@@ -74,7 +74,7 @@ export const buildPOST = ({ prisma: providedPrisma } = {}) => async (request) =>
|
|
|
74
74
|
provider: serializeModelProvider({ provider }),
|
|
75
75
|
}, { headers: cacheHeaders });
|
|
76
76
|
};
|
|
77
|
-
export const POST = buildPOST();
|
|
77
|
+
export const POST = ((...args) => buildPOST()(...args));
|
|
78
78
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
79
79
|
headers: cacheHeaders,
|
|
80
80
|
});
|
|
@@ -20,24 +20,7 @@ export declare const buildGET: ({ prisma: providedPrisma }?: {
|
|
|
20
20
|
updatedAt: string;
|
|
21
21
|
};
|
|
22
22
|
}>>;
|
|
23
|
-
export declare const GET:
|
|
24
|
-
params: Promise<{
|
|
25
|
-
taskId: string;
|
|
26
|
-
}>;
|
|
27
|
-
}) => Promise<NextResponse<{
|
|
28
|
-
error: string;
|
|
29
|
-
}> | NextResponse<{
|
|
30
|
-
task: {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
message: string;
|
|
34
|
-
schedule: PrismaJson.TaskSchedule;
|
|
35
|
-
threadId: string;
|
|
36
|
-
key: string;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
updatedAt: string;
|
|
39
|
-
};
|
|
40
|
-
}>>;
|
|
23
|
+
export declare const GET: ReturnType<typeof buildGET>;
|
|
41
24
|
export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
42
25
|
prisma?: PrismaClient;
|
|
43
26
|
}) => (request: NextRequest, props: {
|
|
@@ -58,24 +41,7 @@ export declare const buildPATCH: ({ prisma: providedPrisma }?: {
|
|
|
58
41
|
updatedAt: string;
|
|
59
42
|
};
|
|
60
43
|
}>>;
|
|
61
|
-
export declare const PATCH:
|
|
62
|
-
params: Promise<{
|
|
63
|
-
taskId: string;
|
|
64
|
-
}>;
|
|
65
|
-
}) => Promise<NextResponse<{
|
|
66
|
-
error: string;
|
|
67
|
-
}> | NextResponse<{
|
|
68
|
-
task: {
|
|
69
|
-
id: string;
|
|
70
|
-
title: string;
|
|
71
|
-
message: string;
|
|
72
|
-
schedule: PrismaJson.TaskSchedule;
|
|
73
|
-
threadId: string;
|
|
74
|
-
key: string;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
|
-
};
|
|
78
|
-
}>>;
|
|
44
|
+
export declare const PATCH: ReturnType<typeof buildPATCH>;
|
|
79
45
|
export declare const buildDELETE: ({ prisma: providedPrisma }?: {
|
|
80
46
|
prisma?: PrismaClient;
|
|
81
47
|
}) => (_request: NextRequest, props: {
|
|
@@ -96,23 +62,6 @@ export declare const buildDELETE: ({ prisma: providedPrisma }?: {
|
|
|
96
62
|
updatedAt: string;
|
|
97
63
|
};
|
|
98
64
|
}>>;
|
|
99
|
-
export declare const DELETE:
|
|
100
|
-
params: Promise<{
|
|
101
|
-
taskId: string;
|
|
102
|
-
}>;
|
|
103
|
-
}) => Promise<NextResponse<{
|
|
104
|
-
error: string;
|
|
105
|
-
}> | NextResponse<{
|
|
106
|
-
task: {
|
|
107
|
-
id: string;
|
|
108
|
-
title: string;
|
|
109
|
-
message: string;
|
|
110
|
-
schedule: PrismaJson.TaskSchedule;
|
|
111
|
-
threadId: string;
|
|
112
|
-
key: string;
|
|
113
|
-
createdAt: string;
|
|
114
|
-
updatedAt: string;
|
|
115
|
-
};
|
|
116
|
-
}>>;
|
|
65
|
+
export declare const DELETE: ReturnType<typeof buildDELETE>;
|
|
117
66
|
export declare const OPTIONS: () => NextResponse<{}>;
|
|
118
67
|
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/tasks/[taskId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAkB5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IAAE,MAAM,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;GA+C/C,CAAA;AAEH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/tasks/[taskId]/route.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAkB5D,eAAO,MAAM,QAAQ,GAClB,6BAA4B;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAO,MAEzD,UAAU,WAAW,EACrB,OAAO;IAAE,MAAM,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;GA+C/C,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;IAAE,MAAM,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;GAkF/C,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;IAAE,MAAM,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;GAmD/C,CAAA;AAEH,eAAO,MAAM,MAAM,EACU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAE3D,eAAO,MAAM,OAAO,wBAMjB,CAAA"}
|
|
@@ -49,7 +49,7 @@ export const buildGET = ({ prisma: providedPrisma } = {}) => async (_request, pr
|
|
|
49
49
|
}
|
|
50
50
|
return NextResponse.json({ task: serializeTask({ task }) }, { headers: cacheHeaders });
|
|
51
51
|
};
|
|
52
|
-
export const GET = buildGET();
|
|
52
|
+
export const GET = ((...args) => buildGET()(...args));
|
|
53
53
|
export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, props) => {
|
|
54
54
|
const prisma = resolvePrisma(providedPrisma);
|
|
55
55
|
const { taskId } = await props.params;
|
|
@@ -102,7 +102,7 @@ export const buildPATCH = ({ prisma: providedPrisma } = {}) => async (request, p
|
|
|
102
102
|
await scheduleTask({ task, prisma });
|
|
103
103
|
return NextResponse.json({ task: serializeTask({ task }) }, { headers: cacheHeaders });
|
|
104
104
|
};
|
|
105
|
-
export const PATCH = buildPATCH();
|
|
105
|
+
export const PATCH = ((...args) => buildPATCH()(...args));
|
|
106
106
|
export const buildDELETE = ({ prisma: providedPrisma } = {}) => async (_request, props) => {
|
|
107
107
|
const prisma = resolvePrisma(providedPrisma);
|
|
108
108
|
const { taskId } = await props.params;
|
|
@@ -138,7 +138,7 @@ export const buildDELETE = ({ prisma: providedPrisma } = {}) => async (_request,
|
|
|
138
138
|
const task = await prisma.task.delete({ where: { id: existingTask.id } });
|
|
139
139
|
return NextResponse.json({ task: serializeTask({ task }) }, { headers: cacheHeaders });
|
|
140
140
|
};
|
|
141
|
-
export const DELETE = buildDELETE();
|
|
141
|
+
export const DELETE = ((...args) => buildDELETE()(...args));
|
|
142
142
|
export const OPTIONS = () => NextResponse.json({}, {
|
|
143
143
|
headers: cacheHeaders,
|
|
144
144
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/tasks/callback/route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/app/api/tasks/callback/route.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,WAAW,MAAM,CAAA;AAgR9B,eAAO,MAAM,IAAI,2FAG0B,CAAA"}
|