@amaster.ai/dsh-storage 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +66 -0
  3. package/cordis.patch.yml +3 -0
  4. package/lib/backends/database.js +198 -0
  5. package/lib/generated/mysql/browser.js +17 -0
  6. package/lib/generated/mysql/client.js +34 -0
  7. package/lib/generated/mysql/commonInputTypes.js +10 -0
  8. package/lib/generated/mysql/enums.js +10 -0
  9. package/lib/generated/mysql/internal/class.js +49 -0
  10. package/lib/generated/mysql/internal/prismaNamespace.js +146 -0
  11. package/lib/generated/mysql/internal/prismaNamespaceBrowser.js +117 -0
  12. package/lib/generated/mysql/models/AiChatHistory.js +1 -0
  13. package/lib/generated/mysql/models/AiMessage.js +1 -0
  14. package/lib/generated/mysql/models.js +1 -0
  15. package/lib/generated/postgresql/browser.js +17 -0
  16. package/lib/generated/postgresql/client.js +34 -0
  17. package/lib/generated/postgresql/commonInputTypes.js +10 -0
  18. package/lib/generated/postgresql/enums.js +10 -0
  19. package/lib/generated/postgresql/internal/class.js +49 -0
  20. package/lib/generated/postgresql/internal/prismaNamespace.js +131 -0
  21. package/lib/generated/postgresql/internal/prismaNamespaceBrowser.js +102 -0
  22. package/lib/generated/postgresql/models/AiChatHistory.js +1 -0
  23. package/lib/generated/postgresql/models/AiMessage.js +1 -0
  24. package/lib/generated/postgresql/models.js +1 -0
  25. package/lib/generated/sqlite/browser.js +17 -0
  26. package/lib/generated/sqlite/client.js +34 -0
  27. package/lib/generated/sqlite/commonInputTypes.js +10 -0
  28. package/lib/generated/sqlite/enums.js +10 -0
  29. package/lib/generated/sqlite/internal/class.js +49 -0
  30. package/lib/generated/sqlite/internal/prismaNamespace.js +128 -0
  31. package/lib/generated/sqlite/internal/prismaNamespaceBrowser.js +99 -0
  32. package/lib/generated/sqlite/models/AiChatHistory.js +1 -0
  33. package/lib/generated/sqlite/models/AiMessage.js +1 -0
  34. package/lib/generated/sqlite/models.js +1 -0
  35. package/lib/generated/sqlserver/browser.js +17 -0
  36. package/lib/generated/sqlserver/client.js +34 -0
  37. package/lib/generated/sqlserver/commonInputTypes.js +10 -0
  38. package/lib/generated/sqlserver/enums.js +10 -0
  39. package/lib/generated/sqlserver/internal/class.js +49 -0
  40. package/lib/generated/sqlserver/internal/prismaNamespace.js +119 -0
  41. package/lib/generated/sqlserver/internal/prismaNamespaceBrowser.js +90 -0
  42. package/lib/generated/sqlserver/models/AiChatHistory.js +1 -0
  43. package/lib/generated/sqlserver/models/AiMessage.js +1 -0
  44. package/lib/generated/sqlserver/models.js +1 -0
  45. package/lib/index.js +224 -0
  46. package/lib/projector.js +153 -0
  47. package/lib/types/backends/database.d.ts +37 -0
  48. package/lib/types/generated/mysql/browser.d.ts +15 -0
  49. package/lib/types/generated/mysql/client.d.ts +34 -0
  50. package/lib/types/generated/mysql/commonInputTypes.d.ts +396 -0
  51. package/lib/types/generated/mysql/enums.d.ts +1 -0
  52. package/lib/types/generated/mysql/internal/class.d.ts +143 -0
  53. package/lib/types/generated/mysql/internal/prismaNamespace.d.ts +709 -0
  54. package/lib/types/generated/mysql/internal/prismaNamespaceBrowser.d.ts +112 -0
  55. package/lib/types/generated/mysql/models/AiChatHistory.d.ts +1258 -0
  56. package/lib/types/generated/mysql/models/AiMessage.d.ts +1360 -0
  57. package/lib/types/generated/mysql/models.d.ts +3 -0
  58. package/lib/types/generated/postgresql/browser.d.ts +15 -0
  59. package/lib/types/generated/postgresql/client.d.ts +34 -0
  60. package/lib/types/generated/postgresql/commonInputTypes.d.ts +392 -0
  61. package/lib/types/generated/postgresql/enums.d.ts +1 -0
  62. package/lib/types/generated/postgresql/internal/class.d.ts +143 -0
  63. package/lib/types/generated/postgresql/internal/prismaNamespace.d.ts +728 -0
  64. package/lib/types/generated/postgresql/internal/prismaNamespaceBrowser.d.ts +95 -0
  65. package/lib/types/generated/postgresql/models/AiChatHistory.d.ts +1373 -0
  66. package/lib/types/generated/postgresql/models/AiMessage.d.ts +1497 -0
  67. package/lib/types/generated/postgresql/models.d.ts +3 -0
  68. package/lib/types/generated/sqlite/browser.d.ts +15 -0
  69. package/lib/types/generated/sqlite/client.d.ts +34 -0
  70. package/lib/types/generated/sqlite/commonInputTypes.d.ts +373 -0
  71. package/lib/types/generated/sqlite/enums.d.ts +1 -0
  72. package/lib/types/generated/sqlite/internal/class.d.ts +143 -0
  73. package/lib/types/generated/sqlite/internal/prismaNamespace.d.ts +705 -0
  74. package/lib/types/generated/sqlite/internal/prismaNamespaceBrowser.d.ts +92 -0
  75. package/lib/types/generated/sqlite/models/AiChatHistory.d.ts +1371 -0
  76. package/lib/types/generated/sqlite/models/AiMessage.d.ts +1494 -0
  77. package/lib/types/generated/sqlite/models.d.ts +3 -0
  78. package/lib/types/generated/sqlserver/browser.d.ts +15 -0
  79. package/lib/types/generated/sqlserver/client.d.ts +34 -0
  80. package/lib/types/generated/sqlserver/commonInputTypes.d.ts +333 -0
  81. package/lib/types/generated/sqlserver/enums.d.ts +1 -0
  82. package/lib/types/generated/sqlserver/internal/class.d.ts +143 -0
  83. package/lib/types/generated/sqlserver/internal/prismaNamespace.d.ts +669 -0
  84. package/lib/types/generated/sqlserver/internal/prismaNamespaceBrowser.d.ts +80 -0
  85. package/lib/types/generated/sqlserver/models/AiChatHistory.d.ts +1257 -0
  86. package/lib/types/generated/sqlserver/models/AiMessage.d.ts +1376 -0
  87. package/lib/types/generated/sqlserver/models.d.ts +3 -0
  88. package/lib/types/index.d.ts +56 -0
  89. package/lib/types/projector.d.ts +48 -0
  90. package/lib/types/types.d.ts +49 -0
  91. package/lib/types.js +8 -0
  92. package/package.json +85 -0
  93. package/preview.png +0 -0
  94. package/prisma/schema.mysql.prisma +75 -0
  95. package/prisma/schema.postgresql.prisma +67 -0
  96. package/prisma/schema.sqlite.prisma +67 -0
  97. package/prisma/schema.sqlserver.prisma +73 -0
@@ -0,0 +1,117 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * WARNING: This is an internal file that is subject to change!
7
+ *
8
+ * 🛑 Under no circumstances should you import this file directly! 🛑
9
+ *
10
+ * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
11
+ * While this enables partial backward compatibility, it is not part of the stable public API.
12
+ *
13
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
+ * model files in the `model` directory!
15
+ */
16
+ import * as runtime from "@prisma/client/runtime/index-browser";
17
+ export const Decimal = runtime.Decimal;
18
+ export const NullTypes = {
19
+ DbNull: runtime.NullTypes.DbNull,
20
+ JsonNull: runtime.NullTypes.JsonNull,
21
+ AnyNull: runtime.NullTypes.AnyNull,
22
+ };
23
+ /**
24
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
25
+ *
26
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
27
+ */
28
+ export const DbNull = runtime.DbNull;
29
+ /**
30
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
31
+ *
32
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
33
+ */
34
+ export const JsonNull = runtime.JsonNull;
35
+ /**
36
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
37
+ *
38
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
39
+ */
40
+ export const AnyNull = runtime.AnyNull;
41
+ export const ModelName = {
42
+ AiMessage: 'AiMessage',
43
+ AiChatHistory: 'AiChatHistory'
44
+ };
45
+ /*
46
+ * Enums
47
+ */
48
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
49
+ ReadUncommitted: 'ReadUncommitted',
50
+ ReadCommitted: 'ReadCommitted',
51
+ RepeatableRead: 'RepeatableRead',
52
+ Serializable: 'Serializable'
53
+ });
54
+ export const AiMessageScalarFieldEnum = {
55
+ id: 'id',
56
+ sessionId: 'sessionId',
57
+ historyId: 'historyId',
58
+ type: 'type',
59
+ content: 'content',
60
+ thoughts: 'thoughts',
61
+ model: 'model',
62
+ tokens: 'tokens',
63
+ toolCalls: 'toolCalls',
64
+ agentId: 'agentId',
65
+ metadata: 'metadata',
66
+ createdAt: 'createdAt',
67
+ updatedAt: 'updatedAt',
68
+ deletedAt: 'deletedAt'
69
+ };
70
+ export const AiChatHistoryScalarFieldEnum = {
71
+ id: 'id',
72
+ sessionId: 'sessionId',
73
+ title: 'title',
74
+ summary: 'summary',
75
+ messageCount: 'messageCount',
76
+ totalTokens: 'totalTokens',
77
+ firstMessageAt: 'firstMessageAt',
78
+ lastMessageAt: 'lastMessageAt',
79
+ metadata: 'metadata',
80
+ deletedAt: 'deletedAt'
81
+ };
82
+ export const SortOrder = {
83
+ asc: 'asc',
84
+ desc: 'desc'
85
+ };
86
+ export const NullableJsonNullValueInput = {
87
+ DbNull: DbNull,
88
+ JsonNull: JsonNull
89
+ };
90
+ export const JsonNullValueFilter = {
91
+ DbNull: DbNull,
92
+ JsonNull: JsonNull,
93
+ AnyNull: AnyNull
94
+ };
95
+ export const QueryMode = {
96
+ default: 'default',
97
+ insensitive: 'insensitive'
98
+ };
99
+ export const NullsOrder = {
100
+ first: 'first',
101
+ last: 'last'
102
+ };
103
+ export const AiMessageOrderByRelevanceFieldEnum = {
104
+ id: 'id',
105
+ sessionId: 'sessionId',
106
+ historyId: 'historyId',
107
+ type: 'type',
108
+ content: 'content',
109
+ model: 'model',
110
+ agentId: 'agentId'
111
+ };
112
+ export const AiChatHistoryOrderByRelevanceFieldEnum = {
113
+ id: 'id',
114
+ sessionId: 'sessionId',
115
+ title: 'title',
116
+ summary: 'summary'
117
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file should be your main import to use Prisma-related types and utilities in a browser.
7
+ * Use it to get access to models, enums, and input types.
8
+ *
9
+ * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
10
+ * See `client.ts` for the standard, server-side entry point.
11
+ *
12
+ * 🟢 You can import this file directly.
13
+ */
14
+ import * as Prisma from './internal/prismaNamespaceBrowser.js';
15
+ export { Prisma };
16
+ export * as $Enums from './enums.js';
17
+ export * from './enums.js';
@@ -0,0 +1,34 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
7
+ * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import * as path from 'node:path';
12
+ import { fileURLToPath } from 'node:url';
13
+ globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url));
14
+ import * as $Class from "./internal/class.js";
15
+ import * as Prisma from "./internal/prismaNamespace.js";
16
+ export * as $Enums from './enums.js';
17
+ export * from "./enums.js";
18
+ /**
19
+ * ## Prisma Client
20
+ *
21
+ * Type-safe database client for TypeScript
22
+ * @example
23
+ * ```
24
+ * const prisma = new PrismaClient({
25
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
26
+ * })
27
+ * // Fetch zero or more AiMessages
28
+ * const aiMessages = await prisma.aiMessage.findMany()
29
+ * ```
30
+ *
31
+ * Read more in our [docs](https://pris.ly/d/client).
32
+ */
33
+ export const PrismaClient = $Class.getPrismaClientClass();
34
+ export { Prisma };
@@ -0,0 +1,10 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file exports various common sort, input & filter types that are not directly linked to a particular model.
7
+ *
8
+ * 🟢 You can import this file directly.
9
+ */
10
+ export {};
@@ -0,0 +1,10 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file exports all enum related types from the schema.
7
+ *
8
+ * 🟢 You can import this file directly.
9
+ */
10
+ export {};
@@ -0,0 +1,49 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * WARNING: This is an internal file that is subject to change!
7
+ *
8
+ * 🛑 Under no circumstances should you import this file directly! 🛑
9
+ *
10
+ * Please import the `PrismaClient` class from the `client.ts` file instead.
11
+ */
12
+ import * as runtime from "@prisma/client/runtime/client";
13
+ const config = {
14
+ "previewFeatures": [],
15
+ "clientVersion": "7.9.1",
16
+ "engineVersion": "e922089b7d7502aff4249d5da3420f6fa55fc6ad",
17
+ "activeProvider": "postgresql",
18
+ "inlineSchema": "// Prisma schema for the dsh-storage database backend — PostgreSQL variant (Prisma 7).\n//\n// Same models as schema.mysql.prisma, with PostgreSQL native types\n// (`@db.Text` instead of `@db.LongText`, `@db.Timestamp` instead of\n// `@db.DateTime`). Client pre-generation and table creation work as described\n// in schema.mysql.prisma's header.\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../src/generated/postgresql\"\n importFileExtension = \"js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\n/// One row per projected session event (user message, assistant message,\n/// tool call/result, compression snapshot, ...).\nmodel AiMessage {\n id String @id @default(cuid()) @db.Char(36)\n sessionId String @map(\"session_id\") @db.VarChar(100)\n historyId String? @map(\"history_id\") @db.Char(36)\n type String @db.VarChar(50)\n content String @db.Text\n thoughts Json?\n model String? @db.VarChar(100)\n tokens Json?\n toolCalls Json? @map(\"tool_calls\")\n agentId String? @map(\"agent_id\") @db.VarChar(100)\n metadata Json?\n createdAt DateTime @default(now()) @map(\"created_at\") @db.Timestamp(0)\n updatedAt DateTime @default(now()) @updatedAt @map(\"updated_at\") @db.Timestamp(0)\n deletedAt DateTime? @map(\"deleted_at\") @db.Timestamp(0)\n\n // Relations\n history AiChatHistory? @relation(fields: [historyId], references: [id], onDelete: NoAction)\n\n @@index([sessionId], map: \"idx_session\")\n @@index([historyId], map: \"idx_history\")\n @@index([createdAt], map: \"idx_created\")\n @@index([deletedAt], map: \"idx_deleted\")\n @@index([agentId], map: \"idx_agent\")\n @@index([sessionId, agentId, type, createdAt], map: \"idx_session_agent_type_created\")\n @@map(\"ai_messages\")\n}\n\n/// Per-session rollup, maintained incrementally by the projector.\nmodel AiChatHistory {\n id String @id @default(cuid()) @db.Char(36)\n sessionId String @map(\"session_id\") @db.VarChar(100)\n title String? @db.VarChar(255)\n summary String? @db.Text\n messageCount Int @default(0) @map(\"message_count\")\n totalTokens BigInt @default(0) @map(\"total_tokens\")\n firstMessageAt DateTime? @map(\"first_message_at\") @db.Timestamp(6)\n lastMessageAt DateTime? @map(\"last_message_at\") @db.Timestamp(6)\n metadata Json?\n deletedAt DateTime? @map(\"deleted_at\") @db.Timestamp(6)\n\n // Relations\n messages AiMessage[]\n\n @@index([sessionId], map: \"idx_chat_history_session\")\n @@index([deletedAt], map: \"idx_chat_history_deleted\")\n @@map(\"ai_chat_histories\")\n}\n",
19
+ "runtimeDataModel": {
20
+ "models": {},
21
+ "enums": {},
22
+ "types": {}
23
+ },
24
+ "parameterizationSchema": {
25
+ "strings": [],
26
+ "graph": ""
27
+ }
28
+ };
29
+ config.runtimeDataModel = JSON.parse("{\"models\":{\"AiMessage\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"session_id\"},{\"name\":\"historyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"history_id\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"thoughts\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"model\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tokens\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"toolCalls\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"tool_calls\"},{\"name\":\"agentId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"agent_id\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"history\",\"kind\":\"object\",\"type\":\"AiChatHistory\",\"relationName\":\"AiChatHistoryToAiMessage\"}],\"dbName\":\"ai_messages\"},\"AiChatHistory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"session_id\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"summary\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"messageCount\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"message_count\"},{\"name\":\"totalTokens\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"total_tokens\"},{\"name\":\"firstMessageAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"first_message_at\"},{\"name\":\"lastMessageAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"last_message_at\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"messages\",\"kind\":\"object\",\"type\":\"AiMessage\",\"relationName\":\"AiChatHistoryToAiMessage\"}],\"dbName\":\"ai_chat_histories\"}},\"enums\":{},\"types\":{}}");
30
+ config.parameterizationSchema = {
31
+ strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"messages\",\"_count\",\"history\",\"AiMessage.findUnique\",\"AiMessage.findUniqueOrThrow\",\"AiMessage.findFirst\",\"AiMessage.findFirstOrThrow\",\"AiMessage.findMany\",\"data\",\"AiMessage.createOne\",\"AiMessage.createMany\",\"AiMessage.createManyAndReturn\",\"AiMessage.updateOne\",\"AiMessage.updateMany\",\"AiMessage.updateManyAndReturn\",\"create\",\"update\",\"AiMessage.upsertOne\",\"AiMessage.deleteOne\",\"AiMessage.deleteMany\",\"having\",\"_min\",\"_max\",\"AiMessage.groupBy\",\"AiMessage.aggregate\",\"AiChatHistory.findUnique\",\"AiChatHistory.findUniqueOrThrow\",\"AiChatHistory.findFirst\",\"AiChatHistory.findFirstOrThrow\",\"AiChatHistory.findMany\",\"AiChatHistory.createOne\",\"AiChatHistory.createMany\",\"AiChatHistory.createManyAndReturn\",\"AiChatHistory.updateOne\",\"AiChatHistory.updateMany\",\"AiChatHistory.updateManyAndReturn\",\"AiChatHistory.upsertOne\",\"AiChatHistory.deleteOne\",\"AiChatHistory.deleteMany\",\"_avg\",\"_sum\",\"AiChatHistory.groupBy\",\"AiChatHistory.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"sessionId\",\"title\",\"summary\",\"messageCount\",\"totalTokens\",\"firstMessageAt\",\"lastMessageAt\",\"metadata\",\"deletedAt\",\"equals\",\"string_contains\",\"string_starts_with\",\"string_ends_with\",\"array_starts_with\",\"array_ends_with\",\"array_contains\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"in\",\"notIn\",\"contains\",\"startsWith\",\"endsWith\",\"every\",\"some\",\"none\",\"historyId\",\"type\",\"content\",\"thoughts\",\"model\",\"tokens\",\"toolCalls\",\"agentId\",\"createdAt\",\"updatedAt\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"),
32
+ graph: "gQEUIBIFAABaACAuAABYADAvAAAFABAwAABYADAxAQAAAAEyAQBNACE5AABSACA6QABRACFPAQBOACFQAQBNACFRAQBNACFSAABSACBTAQBOACFUAABSACBVAABSACBWAQBOACFXQABZACFYQABZACEBAAAAAQAgDgMAAFMAIC4AAEwAMC8AAAMAEDAAAEwAMDEBAE0AITIBAE0AITMBAE4AITQBAE4AITUCAE8AITYEAFAAITdAAFEAIThAAFEAITkAAFIAIDpAAFEAIQEAAAADACASBQAAWgAgLgAAWAAwLwAABQAQMAAAWAAwMQEATQAhMgEATQAhOQAAUgAgOkAAUQAhTwEATgAhUAEATQAhUQEATQAhUgAAUgAgUwEATgAhVAAAUgAgVQAAUgAgVgEATgAhV0AAWQAhWEAAWQAhCQUAAHsAIDkAAFsAIDoAAFsAIE8AAFsAIFIAAFsAIFMAAFsAIFQAAFsAIFUAAFsAIFYAAFsAIAMAAAAFACABAAAGADACAAABACABAAAABQAgAQAAAAEAIAMAAAAFACABAAAGADACAAABACADAAAABQAgAQAABgAwAgAAAQAgAwAAAAUAIAEAAAYAMAIAAAEAIA8FAAB6ACAxAQAAAAEyAQAAAAE5gAAAAAE6QAAAAAFPAQAAAAFQAQAAAAFRAQAAAAFSgAAAAAFTAQAAAAFUgAAAAAFVgAAAAAFWAQAAAAFXQAAAAAFYQAAAAAEBCwAADQAgDjEBAAAAATIBAAAAATmAAAAAATpAAAAAAU8BAAAAAVABAAAAAVEBAAAAAVKAAAAAAVMBAAAAAVSAAAAAAVWAAAAAAVYBAAAAAVdAAAAAAVhAAAAAAQELAAAPADABCwAADwAwAQAAAAMAIA8FAAB5ACAxAQBhACEyAQBhACE5gAAAAAE6QABlACFPAQBiACFQAQBhACFRAQBhACFSgAAAAAFTAQBiACFUgAAAAAFVgAAAAAFWAQBiACFXQABxACFYQABxACECAAAAAQAgCwAAEwAgDjEBAGEAITIBAGEAITmAAAAAATpAAGUAIU8BAGIAIVABAGEAIVEBAGEAIVKAAAAAAVMBAGIAIVSAAAAAAVWAAAAAAVYBAGIAIVdAAHEAIVhAAHEAIQIAAAAFACALAAAVACACAAAABQAgCwAAFQAgAQAAAAMAIAMAAAABACASAAANACATAAATACABAAAAAQAgAQAAAAUAIAsEAAB2ACAYAAB4ACAZAAB3ACA5AABbACA6AABbACBPAABbACBSAABbACBTAABbACBUAABbACBVAABbACBWAABbACARLgAAVAAwLwAAHQAQMAAAVAAwMQEAOQAhMgEAOQAhOQAAPgAgOkAAPQAhTwEAOgAhUAEAOQAhUQEAOQAhUgAAPgAgUwEAOgAhVAAAPgAgVQAAPgAgVgEAOgAhV0AAVQAhWEAAVQAhAwAAAAUAIAEAABwAMBcAAB0AIAMAAAAFACABAAAGADACAAABACAOAwAAUwAgLgAATAAwLwAAAwAQMAAATAAwMQEAAAABMgEATQAhMwEATgAhNAEATgAhNQIATwAhNgQAUAAhN0AAUQAhOEAAUQAhOQAAUgAgOkAAUQAhAQAAACAAIAEAAAAgACAHAwAAdQAgMwAAWwAgNAAAWwAgNwAAWwAgOAAAWwAgOQAAWwAgOgAAWwAgAwAAAAMAIAEAACMAMAIAACAAIAMAAAADACABAAAjADACAAAgACADAAAAAwAgAQAAIwAwAgAAIAAgCwMAAHQAIDEBAAAAATIBAAAAATMBAAAAATQBAAAAATUCAAAAATYEAAAAATdAAAAAAThAAAAAATmAAAAAATpAAAAAAQELAAAnACAKMQEAAAABMgEAAAABMwEAAAABNAEAAAABNQIAAAABNgQAAAABN0AAAAABOEAAAAABOYAAAAABOkAAAAABAQsAACkAMAELAAApADALAwAAZg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uADAvAABvABAwAABuADAxAQBNACEyAQBNACE5AABSACA6QABRACFPAQBOACFQAQBNACFRAQBNACFSAABSACBTAQBOACFUAABSACBVAABSACBWAQBOACFXQABZACFYQABZACENMQEAYQAhMgEAYQAhOYAAAAABOkAAZQAhUAEAYQAhUQEAYQAhUoAAAAABUwEAYgAhVIAAAAABVYAAAAABVgEAYgAhV0AAcQAhWEAAcQAhAV5AAAAAAQ0xAQBhACEyAQBhACE5gAAAAAE6QABlACFQAQBhACFRAQBhACFSgAAAAAFTAQBiACFUgAAAAAFVgAAAAAFWAQBiACFXQABxACFYQABxACENMQEAAAABMgEAAAABOYAAAAABOkAAAAABUAEAAAABUQEAAAABUoAAAAABUwEAAAABVIAAAAABVYAAAAABVgEAAAABV0AAAAABWEAAAAABBBIAAGcAMFsAAGgAMF0AAGoAIGEAAGsAMAAAAAAHEgAAfAAgEwAAfwAgWwAAfQAgXAAAfgAgXwAAAwAgYAAAAwAgYQAAIAAgAxIAAHwAIFsAAH0AIGEAACAAIAcDAAB1ACAzAABbACA0AABbACA3AABbACA4AABbACA5AABbACA6AABbACAKMQEAAAABMgEAAAABMwEAAAABNAEAAAABNQIAAAABNgQAAAABN0AAAAABOEAAAAABOYAAAAABOkAAAAABAgAAACAAIBIAAHwAIAMAAAADACASAAB8ACATAACAAQAgDAAAAAMAIAsAAIABACAxAQBhACEyAQBhACEzAQBiACE0AQBiACE1AgBjACE2BABkACE3QABlACE4QABlACE5gAAAAAE6QABlACEKMQEAYQAhMgEAYQAhMwEAYgAhNAEAYgAhNQIAYwAhNgQAZAAhN0AAZQAhOEAAZQAhOYAAAAABOkAAZQAhDTEBAAAAATIBAAAAATmAAAAAATpAAAAAAVABAAAAAVEBAAAAAVKAAAAAAVMBAAAAAVSAAAAAAVWAAAAAAVYBAAAAAVdAAAAAAVhAAAAAAQEFBAICAwcBBAADAQMIAAABBRICAQUYAgMEAAgYAAkZAAoAAAADBAAIGAAJGQAKAAAFBAAPGAASGQATKgAQKwARAAAAAAAFBAAPGAASGQATKgAQKwARBgIBBwkBCAoBCQsBCgwBDA4BDRAEDhEFDxQBEBYEERcGFBkBFRoBFhsEGh4HGx8LHCECHSICHiQCHyUCICYCISgCIioEIysMJC0CJS8EJjANJzECKDICKTMELDYOLTcU"
33
+ };
34
+ async function decodeBase64AsWasm(wasmBase64) {
35
+ const { Buffer } = await import('node:buffer');
36
+ const wasmArray = Buffer.from(wasmBase64, 'base64');
37
+ return new WebAssembly.Module(wasmArray);
38
+ }
39
+ config.compilerWasm = {
40
+ getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs"),
41
+ getQueryCompilerWasmModule: async () => {
42
+ const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.mjs");
43
+ return await decodeBase64AsWasm(wasm);
44
+ },
45
+ importName: "./query_compiler_fast_bg.js"
46
+ };
47
+ export function getPrismaClientClass() {
48
+ return runtime.getPrismaClient(config);
49
+ }
@@ -0,0 +1,131 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * WARNING: This is an internal file that is subject to change!
7
+ *
8
+ * 🛑 Under no circumstances should you import this file directly! 🛑
9
+ *
10
+ * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
11
+ * While this enables partial backward compatibility, it is not part of the stable public API.
12
+ *
13
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
+ * model files in the `model` directory!
15
+ */
16
+ import * as runtime from "@prisma/client/runtime/client";
17
+ /**
18
+ * Prisma Errors
19
+ */
20
+ export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
21
+ export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
22
+ export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
23
+ export const PrismaClientInitializationError = runtime.PrismaClientInitializationError;
24
+ export const PrismaClientValidationError = runtime.PrismaClientValidationError;
25
+ /**
26
+ * Re-export of sql-template-tag
27
+ */
28
+ export const sql = runtime.sqltag;
29
+ export const empty = runtime.empty;
30
+ export const join = runtime.join;
31
+ export const raw = runtime.raw;
32
+ export const Sql = runtime.Sql;
33
+ /**
34
+ * Decimal.js
35
+ */
36
+ export const Decimal = runtime.Decimal;
37
+ export const getExtensionContext = runtime.Extensions.getExtensionContext;
38
+ /**
39
+ * Prisma Client JS version: 7.9.1
40
+ * Query Engine version: e922089b7d7502aff4249d5da3420f6fa55fc6ad
41
+ */
42
+ export const prismaVersion = {
43
+ client: "7.9.1",
44
+ engine: "e922089b7d7502aff4249d5da3420f6fa55fc6ad"
45
+ };
46
+ export const NullTypes = {
47
+ DbNull: runtime.NullTypes.DbNull,
48
+ JsonNull: runtime.NullTypes.JsonNull,
49
+ AnyNull: runtime.NullTypes.AnyNull,
50
+ };
51
+ /**
52
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
53
+ *
54
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
55
+ */
56
+ export const DbNull = runtime.DbNull;
57
+ /**
58
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
59
+ *
60
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
61
+ */
62
+ export const JsonNull = runtime.JsonNull;
63
+ /**
64
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
65
+ *
66
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
67
+ */
68
+ export const AnyNull = runtime.AnyNull;
69
+ export const ModelName = {
70
+ AiMessage: 'AiMessage',
71
+ AiChatHistory: 'AiChatHistory'
72
+ };
73
+ /**
74
+ * Enums
75
+ */
76
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
77
+ ReadUncommitted: 'ReadUncommitted',
78
+ ReadCommitted: 'ReadCommitted',
79
+ RepeatableRead: 'RepeatableRead',
80
+ Serializable: 'Serializable'
81
+ });
82
+ export const AiMessageScalarFieldEnum = {
83
+ id: 'id',
84
+ sessionId: 'sessionId',
85
+ historyId: 'historyId',
86
+ type: 'type',
87
+ content: 'content',
88
+ thoughts: 'thoughts',
89
+ model: 'model',
90
+ tokens: 'tokens',
91
+ toolCalls: 'toolCalls',
92
+ agentId: 'agentId',
93
+ metadata: 'metadata',
94
+ createdAt: 'createdAt',
95
+ updatedAt: 'updatedAt',
96
+ deletedAt: 'deletedAt'
97
+ };
98
+ export const AiChatHistoryScalarFieldEnum = {
99
+ id: 'id',
100
+ sessionId: 'sessionId',
101
+ title: 'title',
102
+ summary: 'summary',
103
+ messageCount: 'messageCount',
104
+ totalTokens: 'totalTokens',
105
+ firstMessageAt: 'firstMessageAt',
106
+ lastMessageAt: 'lastMessageAt',
107
+ metadata: 'metadata',
108
+ deletedAt: 'deletedAt'
109
+ };
110
+ export const SortOrder = {
111
+ asc: 'asc',
112
+ desc: 'desc'
113
+ };
114
+ export const NullableJsonNullValueInput = {
115
+ DbNull: DbNull,
116
+ JsonNull: JsonNull
117
+ };
118
+ export const QueryMode = {
119
+ default: 'default',
120
+ insensitive: 'insensitive'
121
+ };
122
+ export const JsonNullValueFilter = {
123
+ DbNull: DbNull,
124
+ JsonNull: JsonNull,
125
+ AnyNull: AnyNull
126
+ };
127
+ export const NullsOrder = {
128
+ first: 'first',
129
+ last: 'last'
130
+ };
131
+ export const defineExtension = runtime.Extensions.defineExtension;
@@ -0,0 +1,102 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * WARNING: This is an internal file that is subject to change!
7
+ *
8
+ * 🛑 Under no circumstances should you import this file directly! 🛑
9
+ *
10
+ * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
11
+ * While this enables partial backward compatibility, it is not part of the stable public API.
12
+ *
13
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
+ * model files in the `model` directory!
15
+ */
16
+ import * as runtime from "@prisma/client/runtime/index-browser";
17
+ export const Decimal = runtime.Decimal;
18
+ export const NullTypes = {
19
+ DbNull: runtime.NullTypes.DbNull,
20
+ JsonNull: runtime.NullTypes.JsonNull,
21
+ AnyNull: runtime.NullTypes.AnyNull,
22
+ };
23
+ /**
24
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
25
+ *
26
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
27
+ */
28
+ export const DbNull = runtime.DbNull;
29
+ /**
30
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
31
+ *
32
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
33
+ */
34
+ export const JsonNull = runtime.JsonNull;
35
+ /**
36
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
37
+ *
38
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
39
+ */
40
+ export const AnyNull = runtime.AnyNull;
41
+ export const ModelName = {
42
+ AiMessage: 'AiMessage',
43
+ AiChatHistory: 'AiChatHistory'
44
+ };
45
+ /*
46
+ * Enums
47
+ */
48
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
49
+ ReadUncommitted: 'ReadUncommitted',
50
+ ReadCommitted: 'ReadCommitted',
51
+ RepeatableRead: 'RepeatableRead',
52
+ Serializable: 'Serializable'
53
+ });
54
+ export const AiMessageScalarFieldEnum = {
55
+ id: 'id',
56
+ sessionId: 'sessionId',
57
+ historyId: 'historyId',
58
+ type: 'type',
59
+ content: 'content',
60
+ thoughts: 'thoughts',
61
+ model: 'model',
62
+ tokens: 'tokens',
63
+ toolCalls: 'toolCalls',
64
+ agentId: 'agentId',
65
+ metadata: 'metadata',
66
+ createdAt: 'createdAt',
67
+ updatedAt: 'updatedAt',
68
+ deletedAt: 'deletedAt'
69
+ };
70
+ export const AiChatHistoryScalarFieldEnum = {
71
+ id: 'id',
72
+ sessionId: 'sessionId',
73
+ title: 'title',
74
+ summary: 'summary',
75
+ messageCount: 'messageCount',
76
+ totalTokens: 'totalTokens',
77
+ firstMessageAt: 'firstMessageAt',
78
+ lastMessageAt: 'lastMessageAt',
79
+ metadata: 'metadata',
80
+ deletedAt: 'deletedAt'
81
+ };
82
+ export const SortOrder = {
83
+ asc: 'asc',
84
+ desc: 'desc'
85
+ };
86
+ export const NullableJsonNullValueInput = {
87
+ DbNull: DbNull,
88
+ JsonNull: JsonNull
89
+ };
90
+ export const QueryMode = {
91
+ default: 'default',
92
+ insensitive: 'insensitive'
93
+ };
94
+ export const JsonNullValueFilter = {
95
+ DbNull: DbNull,
96
+ JsonNull: JsonNull,
97
+ AnyNull: AnyNull
98
+ };
99
+ export const NullsOrder = {
100
+ first: 'first',
101
+ last: 'last'
102
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file should be your main import to use Prisma-related types and utilities in a browser.
7
+ * Use it to get access to models, enums, and input types.
8
+ *
9
+ * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
10
+ * See `client.ts` for the standard, server-side entry point.
11
+ *
12
+ * 🟢 You can import this file directly.
13
+ */
14
+ import * as Prisma from './internal/prismaNamespaceBrowser.js';
15
+ export { Prisma };
16
+ export * as $Enums from './enums.js';
17
+ export * from './enums.js';
@@ -0,0 +1,34 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
7
+ * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import * as path from 'node:path';
12
+ import { fileURLToPath } from 'node:url';
13
+ globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url));
14
+ import * as $Class from "./internal/class.js";
15
+ import * as Prisma from "./internal/prismaNamespace.js";
16
+ export * as $Enums from './enums.js';
17
+ export * from "./enums.js";
18
+ /**
19
+ * ## Prisma Client
20
+ *
21
+ * Type-safe database client for TypeScript
22
+ * @example
23
+ * ```
24
+ * const prisma = new PrismaClient({
25
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
26
+ * })
27
+ * // Fetch zero or more AiMessages
28
+ * const aiMessages = await prisma.aiMessage.findMany()
29
+ * ```
30
+ *
31
+ * Read more in our [docs](https://pris.ly/d/client).
32
+ */
33
+ export const PrismaClient = $Class.getPrismaClientClass();
34
+ export { Prisma };
@@ -0,0 +1,10 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file exports various common sort, input & filter types that are not directly linked to a particular model.
7
+ *
8
+ * 🟢 You can import this file directly.
9
+ */
10
+ export {};
@@ -0,0 +1,10 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * This file exports all enum related types from the schema.
7
+ *
8
+ * 🟢 You can import this file directly.
9
+ */
10
+ export {};