@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.
- package/LICENSE +21 -0
- package/README.md +66 -0
- package/cordis.patch.yml +3 -0
- package/lib/backends/database.js +198 -0
- package/lib/generated/mysql/browser.js +17 -0
- package/lib/generated/mysql/client.js +34 -0
- package/lib/generated/mysql/commonInputTypes.js +10 -0
- package/lib/generated/mysql/enums.js +10 -0
- package/lib/generated/mysql/internal/class.js +49 -0
- package/lib/generated/mysql/internal/prismaNamespace.js +146 -0
- package/lib/generated/mysql/internal/prismaNamespaceBrowser.js +117 -0
- package/lib/generated/mysql/models/AiChatHistory.js +1 -0
- package/lib/generated/mysql/models/AiMessage.js +1 -0
- package/lib/generated/mysql/models.js +1 -0
- package/lib/generated/postgresql/browser.js +17 -0
- package/lib/generated/postgresql/client.js +34 -0
- package/lib/generated/postgresql/commonInputTypes.js +10 -0
- package/lib/generated/postgresql/enums.js +10 -0
- package/lib/generated/postgresql/internal/class.js +49 -0
- package/lib/generated/postgresql/internal/prismaNamespace.js +131 -0
- package/lib/generated/postgresql/internal/prismaNamespaceBrowser.js +102 -0
- package/lib/generated/postgresql/models/AiChatHistory.js +1 -0
- package/lib/generated/postgresql/models/AiMessage.js +1 -0
- package/lib/generated/postgresql/models.js +1 -0
- package/lib/generated/sqlite/browser.js +17 -0
- package/lib/generated/sqlite/client.js +34 -0
- package/lib/generated/sqlite/commonInputTypes.js +10 -0
- package/lib/generated/sqlite/enums.js +10 -0
- package/lib/generated/sqlite/internal/class.js +49 -0
- package/lib/generated/sqlite/internal/prismaNamespace.js +128 -0
- package/lib/generated/sqlite/internal/prismaNamespaceBrowser.js +99 -0
- package/lib/generated/sqlite/models/AiChatHistory.js +1 -0
- package/lib/generated/sqlite/models/AiMessage.js +1 -0
- package/lib/generated/sqlite/models.js +1 -0
- package/lib/generated/sqlserver/browser.js +17 -0
- package/lib/generated/sqlserver/client.js +34 -0
- package/lib/generated/sqlserver/commonInputTypes.js +10 -0
- package/lib/generated/sqlserver/enums.js +10 -0
- package/lib/generated/sqlserver/internal/class.js +49 -0
- package/lib/generated/sqlserver/internal/prismaNamespace.js +119 -0
- package/lib/generated/sqlserver/internal/prismaNamespaceBrowser.js +90 -0
- package/lib/generated/sqlserver/models/AiChatHistory.js +1 -0
- package/lib/generated/sqlserver/models/AiMessage.js +1 -0
- package/lib/generated/sqlserver/models.js +1 -0
- package/lib/index.js +224 -0
- package/lib/projector.js +153 -0
- package/lib/types/backends/database.d.ts +37 -0
- package/lib/types/generated/mysql/browser.d.ts +15 -0
- package/lib/types/generated/mysql/client.d.ts +34 -0
- package/lib/types/generated/mysql/commonInputTypes.d.ts +396 -0
- package/lib/types/generated/mysql/enums.d.ts +1 -0
- package/lib/types/generated/mysql/internal/class.d.ts +143 -0
- package/lib/types/generated/mysql/internal/prismaNamespace.d.ts +709 -0
- package/lib/types/generated/mysql/internal/prismaNamespaceBrowser.d.ts +112 -0
- package/lib/types/generated/mysql/models/AiChatHistory.d.ts +1258 -0
- package/lib/types/generated/mysql/models/AiMessage.d.ts +1360 -0
- package/lib/types/generated/mysql/models.d.ts +3 -0
- package/lib/types/generated/postgresql/browser.d.ts +15 -0
- package/lib/types/generated/postgresql/client.d.ts +34 -0
- package/lib/types/generated/postgresql/commonInputTypes.d.ts +392 -0
- package/lib/types/generated/postgresql/enums.d.ts +1 -0
- package/lib/types/generated/postgresql/internal/class.d.ts +143 -0
- package/lib/types/generated/postgresql/internal/prismaNamespace.d.ts +728 -0
- package/lib/types/generated/postgresql/internal/prismaNamespaceBrowser.d.ts +95 -0
- package/lib/types/generated/postgresql/models/AiChatHistory.d.ts +1373 -0
- package/lib/types/generated/postgresql/models/AiMessage.d.ts +1497 -0
- package/lib/types/generated/postgresql/models.d.ts +3 -0
- package/lib/types/generated/sqlite/browser.d.ts +15 -0
- package/lib/types/generated/sqlite/client.d.ts +34 -0
- package/lib/types/generated/sqlite/commonInputTypes.d.ts +373 -0
- package/lib/types/generated/sqlite/enums.d.ts +1 -0
- package/lib/types/generated/sqlite/internal/class.d.ts +143 -0
- package/lib/types/generated/sqlite/internal/prismaNamespace.d.ts +705 -0
- package/lib/types/generated/sqlite/internal/prismaNamespaceBrowser.d.ts +92 -0
- package/lib/types/generated/sqlite/models/AiChatHistory.d.ts +1371 -0
- package/lib/types/generated/sqlite/models/AiMessage.d.ts +1494 -0
- package/lib/types/generated/sqlite/models.d.ts +3 -0
- package/lib/types/generated/sqlserver/browser.d.ts +15 -0
- package/lib/types/generated/sqlserver/client.d.ts +34 -0
- package/lib/types/generated/sqlserver/commonInputTypes.d.ts +333 -0
- package/lib/types/generated/sqlserver/enums.d.ts +1 -0
- package/lib/types/generated/sqlserver/internal/class.d.ts +143 -0
- package/lib/types/generated/sqlserver/internal/prismaNamespace.d.ts +669 -0
- package/lib/types/generated/sqlserver/internal/prismaNamespaceBrowser.d.ts +80 -0
- package/lib/types/generated/sqlserver/models/AiChatHistory.d.ts +1257 -0
- package/lib/types/generated/sqlserver/models/AiMessage.d.ts +1376 -0
- package/lib/types/generated/sqlserver/models.d.ts +3 -0
- package/lib/types/index.d.ts +56 -0
- package/lib/types/projector.d.ts +48 -0
- package/lib/types/types.d.ts +49 -0
- package/lib/types.js +8 -0
- package/package.json +85 -0
- package/preview.png +0 -0
- package/prisma/schema.mysql.prisma +75 -0
- package/prisma/schema.postgresql.prisma +67 -0
- package/prisma/schema.sqlite.prisma +67 -0
- package/prisma/schema.sqlserver.prisma +73 -0
|
@@ -0,0 +1,1376 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model AiMessage
|
|
5
|
+
* One row per projected session event (user message, assistant message,
|
|
6
|
+
* tool call/result, compression snapshot, ...).
|
|
7
|
+
*/
|
|
8
|
+
export type AiMessageModel = runtime.Types.Result.DefaultSelection<Prisma.$AiMessagePayload>;
|
|
9
|
+
export type AggregateAiMessage = {
|
|
10
|
+
_count: AiMessageCountAggregateOutputType | null;
|
|
11
|
+
_min: AiMessageMinAggregateOutputType | null;
|
|
12
|
+
_max: AiMessageMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type AiMessageMinAggregateOutputType = {
|
|
15
|
+
id: string | null;
|
|
16
|
+
sessionId: string | null;
|
|
17
|
+
historyId: string | null;
|
|
18
|
+
type: string | null;
|
|
19
|
+
content: string | null;
|
|
20
|
+
thoughts: string | null;
|
|
21
|
+
model: string | null;
|
|
22
|
+
tokens: string | null;
|
|
23
|
+
toolCalls: string | null;
|
|
24
|
+
agentId: string | null;
|
|
25
|
+
metadata: string | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
deletedAt: Date | null;
|
|
29
|
+
};
|
|
30
|
+
export type AiMessageMaxAggregateOutputType = {
|
|
31
|
+
id: string | null;
|
|
32
|
+
sessionId: string | null;
|
|
33
|
+
historyId: string | null;
|
|
34
|
+
type: string | null;
|
|
35
|
+
content: string | null;
|
|
36
|
+
thoughts: string | null;
|
|
37
|
+
model: string | null;
|
|
38
|
+
tokens: string | null;
|
|
39
|
+
toolCalls: string | null;
|
|
40
|
+
agentId: string | null;
|
|
41
|
+
metadata: string | null;
|
|
42
|
+
createdAt: Date | null;
|
|
43
|
+
updatedAt: Date | null;
|
|
44
|
+
deletedAt: Date | null;
|
|
45
|
+
};
|
|
46
|
+
export type AiMessageCountAggregateOutputType = {
|
|
47
|
+
id: number;
|
|
48
|
+
sessionId: number;
|
|
49
|
+
historyId: number;
|
|
50
|
+
type: number;
|
|
51
|
+
content: number;
|
|
52
|
+
thoughts: number;
|
|
53
|
+
model: number;
|
|
54
|
+
tokens: number;
|
|
55
|
+
toolCalls: number;
|
|
56
|
+
agentId: number;
|
|
57
|
+
metadata: number;
|
|
58
|
+
createdAt: number;
|
|
59
|
+
updatedAt: number;
|
|
60
|
+
deletedAt: number;
|
|
61
|
+
_all: number;
|
|
62
|
+
};
|
|
63
|
+
export type AiMessageMinAggregateInputType = {
|
|
64
|
+
id?: true;
|
|
65
|
+
sessionId?: true;
|
|
66
|
+
historyId?: true;
|
|
67
|
+
type?: true;
|
|
68
|
+
content?: true;
|
|
69
|
+
thoughts?: true;
|
|
70
|
+
model?: true;
|
|
71
|
+
tokens?: true;
|
|
72
|
+
toolCalls?: true;
|
|
73
|
+
agentId?: true;
|
|
74
|
+
metadata?: true;
|
|
75
|
+
createdAt?: true;
|
|
76
|
+
updatedAt?: true;
|
|
77
|
+
deletedAt?: true;
|
|
78
|
+
};
|
|
79
|
+
export type AiMessageMaxAggregateInputType = {
|
|
80
|
+
id?: true;
|
|
81
|
+
sessionId?: true;
|
|
82
|
+
historyId?: true;
|
|
83
|
+
type?: true;
|
|
84
|
+
content?: true;
|
|
85
|
+
thoughts?: true;
|
|
86
|
+
model?: true;
|
|
87
|
+
tokens?: true;
|
|
88
|
+
toolCalls?: true;
|
|
89
|
+
agentId?: true;
|
|
90
|
+
metadata?: true;
|
|
91
|
+
createdAt?: true;
|
|
92
|
+
updatedAt?: true;
|
|
93
|
+
deletedAt?: true;
|
|
94
|
+
};
|
|
95
|
+
export type AiMessageCountAggregateInputType = {
|
|
96
|
+
id?: true;
|
|
97
|
+
sessionId?: true;
|
|
98
|
+
historyId?: true;
|
|
99
|
+
type?: true;
|
|
100
|
+
content?: true;
|
|
101
|
+
thoughts?: true;
|
|
102
|
+
model?: true;
|
|
103
|
+
tokens?: true;
|
|
104
|
+
toolCalls?: true;
|
|
105
|
+
agentId?: true;
|
|
106
|
+
metadata?: true;
|
|
107
|
+
createdAt?: true;
|
|
108
|
+
updatedAt?: true;
|
|
109
|
+
deletedAt?: true;
|
|
110
|
+
_all?: true;
|
|
111
|
+
};
|
|
112
|
+
export type AiMessageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
113
|
+
/**
|
|
114
|
+
* Filter which AiMessage to aggregate.
|
|
115
|
+
*/
|
|
116
|
+
where?: Prisma.AiMessageWhereInput;
|
|
117
|
+
/**
|
|
118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
119
|
+
*
|
|
120
|
+
* Determine the order of AiMessages to fetch.
|
|
121
|
+
*/
|
|
122
|
+
orderBy?: Prisma.AiMessageOrderByWithRelationInput | Prisma.AiMessageOrderByWithRelationInput[];
|
|
123
|
+
/**
|
|
124
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
125
|
+
*
|
|
126
|
+
* Sets the start position
|
|
127
|
+
*/
|
|
128
|
+
cursor?: Prisma.AiMessageWhereUniqueInput;
|
|
129
|
+
/**
|
|
130
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
131
|
+
*
|
|
132
|
+
* Take `±n` AiMessages from the position of the cursor.
|
|
133
|
+
*/
|
|
134
|
+
take?: number;
|
|
135
|
+
/**
|
|
136
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
137
|
+
*
|
|
138
|
+
* Skip the first `n` AiMessages.
|
|
139
|
+
*/
|
|
140
|
+
skip?: number;
|
|
141
|
+
/**
|
|
142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
143
|
+
*
|
|
144
|
+
* Count returned AiMessages
|
|
145
|
+
**/
|
|
146
|
+
_count?: true | AiMessageCountAggregateInputType;
|
|
147
|
+
/**
|
|
148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
149
|
+
*
|
|
150
|
+
* Select which fields to find the minimum value
|
|
151
|
+
**/
|
|
152
|
+
_min?: AiMessageMinAggregateInputType;
|
|
153
|
+
/**
|
|
154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
155
|
+
*
|
|
156
|
+
* Select which fields to find the maximum value
|
|
157
|
+
**/
|
|
158
|
+
_max?: AiMessageMaxAggregateInputType;
|
|
159
|
+
};
|
|
160
|
+
export type GetAiMessageAggregateType<T extends AiMessageAggregateArgs> = {
|
|
161
|
+
[P in keyof T & keyof AggregateAiMessage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAiMessage[P]> : Prisma.GetScalarType<T[P], AggregateAiMessage[P]>;
|
|
162
|
+
};
|
|
163
|
+
export type AiMessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
164
|
+
where?: Prisma.AiMessageWhereInput;
|
|
165
|
+
orderBy?: Prisma.AiMessageOrderByWithAggregationInput | Prisma.AiMessageOrderByWithAggregationInput[];
|
|
166
|
+
by: Prisma.AiMessageScalarFieldEnum[] | Prisma.AiMessageScalarFieldEnum;
|
|
167
|
+
having?: Prisma.AiMessageScalarWhereWithAggregatesInput;
|
|
168
|
+
take?: number;
|
|
169
|
+
skip?: number;
|
|
170
|
+
_count?: AiMessageCountAggregateInputType | true;
|
|
171
|
+
_min?: AiMessageMinAggregateInputType;
|
|
172
|
+
_max?: AiMessageMaxAggregateInputType;
|
|
173
|
+
};
|
|
174
|
+
export type AiMessageGroupByOutputType = {
|
|
175
|
+
id: string;
|
|
176
|
+
sessionId: string;
|
|
177
|
+
historyId: string | null;
|
|
178
|
+
type: string;
|
|
179
|
+
content: string;
|
|
180
|
+
thoughts: string | null;
|
|
181
|
+
model: string | null;
|
|
182
|
+
tokens: string | null;
|
|
183
|
+
toolCalls: string | null;
|
|
184
|
+
agentId: string | null;
|
|
185
|
+
metadata: string | null;
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
updatedAt: Date;
|
|
188
|
+
deletedAt: Date | null;
|
|
189
|
+
_count: AiMessageCountAggregateOutputType | null;
|
|
190
|
+
_min: AiMessageMinAggregateOutputType | null;
|
|
191
|
+
_max: AiMessageMaxAggregateOutputType | null;
|
|
192
|
+
};
|
|
193
|
+
export type GetAiMessageGroupByPayload<T extends AiMessageGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AiMessageGroupByOutputType, T['by']> & {
|
|
194
|
+
[P in ((keyof T) & (keyof AiMessageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AiMessageGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AiMessageGroupByOutputType[P]>;
|
|
195
|
+
}>>;
|
|
196
|
+
export type AiMessageWhereInput = {
|
|
197
|
+
AND?: Prisma.AiMessageWhereInput | Prisma.AiMessageWhereInput[];
|
|
198
|
+
OR?: Prisma.AiMessageWhereInput[];
|
|
199
|
+
NOT?: Prisma.AiMessageWhereInput | Prisma.AiMessageWhereInput[];
|
|
200
|
+
id?: Prisma.StringFilter<"AiMessage"> | string;
|
|
201
|
+
sessionId?: Prisma.StringFilter<"AiMessage"> | string;
|
|
202
|
+
historyId?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
203
|
+
type?: Prisma.StringFilter<"AiMessage"> | string;
|
|
204
|
+
content?: Prisma.StringFilter<"AiMessage"> | string;
|
|
205
|
+
thoughts?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
206
|
+
model?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
207
|
+
tokens?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
208
|
+
toolCalls?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
209
|
+
agentId?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
210
|
+
metadata?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
211
|
+
createdAt?: Prisma.DateTimeFilter<"AiMessage"> | Date | string;
|
|
212
|
+
updatedAt?: Prisma.DateTimeFilter<"AiMessage"> | Date | string;
|
|
213
|
+
deletedAt?: Prisma.DateTimeNullableFilter<"AiMessage"> | Date | string | null;
|
|
214
|
+
history?: Prisma.XOR<Prisma.AiChatHistoryNullableScalarRelationFilter, Prisma.AiChatHistoryWhereInput> | null;
|
|
215
|
+
};
|
|
216
|
+
export type AiMessageOrderByWithRelationInput = {
|
|
217
|
+
id?: Prisma.SortOrder;
|
|
218
|
+
sessionId?: Prisma.SortOrder;
|
|
219
|
+
historyId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
220
|
+
type?: Prisma.SortOrder;
|
|
221
|
+
content?: Prisma.SortOrder;
|
|
222
|
+
thoughts?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
223
|
+
model?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
224
|
+
tokens?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
225
|
+
toolCalls?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
226
|
+
agentId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
227
|
+
metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
228
|
+
createdAt?: Prisma.SortOrder;
|
|
229
|
+
updatedAt?: Prisma.SortOrder;
|
|
230
|
+
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
231
|
+
history?: Prisma.AiChatHistoryOrderByWithRelationInput;
|
|
232
|
+
};
|
|
233
|
+
export type AiMessageWhereUniqueInput = Prisma.AtLeast<{
|
|
234
|
+
id?: string;
|
|
235
|
+
AND?: Prisma.AiMessageWhereInput | Prisma.AiMessageWhereInput[];
|
|
236
|
+
OR?: Prisma.AiMessageWhereInput[];
|
|
237
|
+
NOT?: Prisma.AiMessageWhereInput | Prisma.AiMessageWhereInput[];
|
|
238
|
+
sessionId?: Prisma.StringFilter<"AiMessage"> | string;
|
|
239
|
+
historyId?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
240
|
+
type?: Prisma.StringFilter<"AiMessage"> | string;
|
|
241
|
+
content?: Prisma.StringFilter<"AiMessage"> | string;
|
|
242
|
+
thoughts?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
243
|
+
model?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
244
|
+
tokens?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
245
|
+
toolCalls?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
246
|
+
agentId?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
247
|
+
metadata?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
248
|
+
createdAt?: Prisma.DateTimeFilter<"AiMessage"> | Date | string;
|
|
249
|
+
updatedAt?: Prisma.DateTimeFilter<"AiMessage"> | Date | string;
|
|
250
|
+
deletedAt?: Prisma.DateTimeNullableFilter<"AiMessage"> | Date | string | null;
|
|
251
|
+
history?: Prisma.XOR<Prisma.AiChatHistoryNullableScalarRelationFilter, Prisma.AiChatHistoryWhereInput> | null;
|
|
252
|
+
}, "id">;
|
|
253
|
+
export type AiMessageOrderByWithAggregationInput = {
|
|
254
|
+
id?: Prisma.SortOrder;
|
|
255
|
+
sessionId?: Prisma.SortOrder;
|
|
256
|
+
historyId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
257
|
+
type?: Prisma.SortOrder;
|
|
258
|
+
content?: Prisma.SortOrder;
|
|
259
|
+
thoughts?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
260
|
+
model?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
261
|
+
tokens?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
262
|
+
toolCalls?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
263
|
+
agentId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
264
|
+
metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
265
|
+
createdAt?: Prisma.SortOrder;
|
|
266
|
+
updatedAt?: Prisma.SortOrder;
|
|
267
|
+
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
268
|
+
_count?: Prisma.AiMessageCountOrderByAggregateInput;
|
|
269
|
+
_max?: Prisma.AiMessageMaxOrderByAggregateInput;
|
|
270
|
+
_min?: Prisma.AiMessageMinOrderByAggregateInput;
|
|
271
|
+
};
|
|
272
|
+
export type AiMessageScalarWhereWithAggregatesInput = {
|
|
273
|
+
AND?: Prisma.AiMessageScalarWhereWithAggregatesInput | Prisma.AiMessageScalarWhereWithAggregatesInput[];
|
|
274
|
+
OR?: Prisma.AiMessageScalarWhereWithAggregatesInput[];
|
|
275
|
+
NOT?: Prisma.AiMessageScalarWhereWithAggregatesInput | Prisma.AiMessageScalarWhereWithAggregatesInput[];
|
|
276
|
+
id?: Prisma.StringWithAggregatesFilter<"AiMessage"> | string;
|
|
277
|
+
sessionId?: Prisma.StringWithAggregatesFilter<"AiMessage"> | string;
|
|
278
|
+
historyId?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
279
|
+
type?: Prisma.StringWithAggregatesFilter<"AiMessage"> | string;
|
|
280
|
+
content?: Prisma.StringWithAggregatesFilter<"AiMessage"> | string;
|
|
281
|
+
thoughts?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
282
|
+
model?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
283
|
+
tokens?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
284
|
+
toolCalls?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
285
|
+
agentId?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
286
|
+
metadata?: Prisma.StringNullableWithAggregatesFilter<"AiMessage"> | string | null;
|
|
287
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AiMessage"> | Date | string;
|
|
288
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AiMessage"> | Date | string;
|
|
289
|
+
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AiMessage"> | Date | string | null;
|
|
290
|
+
};
|
|
291
|
+
export type AiMessageCreateInput = {
|
|
292
|
+
id?: string;
|
|
293
|
+
sessionId: string;
|
|
294
|
+
type: string;
|
|
295
|
+
content: string;
|
|
296
|
+
thoughts?: string | null;
|
|
297
|
+
model?: string | null;
|
|
298
|
+
tokens?: string | null;
|
|
299
|
+
toolCalls?: string | null;
|
|
300
|
+
agentId?: string | null;
|
|
301
|
+
metadata?: string | null;
|
|
302
|
+
createdAt?: Date | string;
|
|
303
|
+
updatedAt?: Date | string;
|
|
304
|
+
deletedAt?: Date | string | null;
|
|
305
|
+
history?: Prisma.AiChatHistoryCreateNestedOneWithoutMessagesInput;
|
|
306
|
+
};
|
|
307
|
+
export type AiMessageUncheckedCreateInput = {
|
|
308
|
+
id?: string;
|
|
309
|
+
sessionId: string;
|
|
310
|
+
historyId?: string | null;
|
|
311
|
+
type: string;
|
|
312
|
+
content: string;
|
|
313
|
+
thoughts?: string | null;
|
|
314
|
+
model?: string | null;
|
|
315
|
+
tokens?: string | null;
|
|
316
|
+
toolCalls?: string | null;
|
|
317
|
+
agentId?: string | null;
|
|
318
|
+
metadata?: string | null;
|
|
319
|
+
createdAt?: Date | string;
|
|
320
|
+
updatedAt?: Date | string;
|
|
321
|
+
deletedAt?: Date | string | null;
|
|
322
|
+
};
|
|
323
|
+
export type AiMessageUpdateInput = {
|
|
324
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
325
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
326
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
327
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
328
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
329
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
330
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
331
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
332
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
333
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
334
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
335
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
336
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
337
|
+
history?: Prisma.AiChatHistoryUpdateOneWithoutMessagesNestedInput;
|
|
338
|
+
};
|
|
339
|
+
export type AiMessageUncheckedUpdateInput = {
|
|
340
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
341
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
342
|
+
historyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
343
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
344
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
345
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
346
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
347
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
348
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
349
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
350
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
351
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
352
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
353
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
354
|
+
};
|
|
355
|
+
export type AiMessageCreateManyInput = {
|
|
356
|
+
id?: string;
|
|
357
|
+
sessionId: string;
|
|
358
|
+
historyId?: string | null;
|
|
359
|
+
type: string;
|
|
360
|
+
content: string;
|
|
361
|
+
thoughts?: string | null;
|
|
362
|
+
model?: string | null;
|
|
363
|
+
tokens?: string | null;
|
|
364
|
+
toolCalls?: string | null;
|
|
365
|
+
agentId?: string | null;
|
|
366
|
+
metadata?: string | null;
|
|
367
|
+
createdAt?: Date | string;
|
|
368
|
+
updatedAt?: Date | string;
|
|
369
|
+
deletedAt?: Date | string | null;
|
|
370
|
+
};
|
|
371
|
+
export type AiMessageUpdateManyMutationInput = {
|
|
372
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
373
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
374
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
375
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
376
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
377
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
378
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
379
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
380
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
381
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
382
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
383
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
384
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
385
|
+
};
|
|
386
|
+
export type AiMessageUncheckedUpdateManyInput = {
|
|
387
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
388
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
389
|
+
historyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
390
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
391
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
392
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
393
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
394
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
395
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
396
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
397
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
398
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
399
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
400
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
401
|
+
};
|
|
402
|
+
export type AiMessageCountOrderByAggregateInput = {
|
|
403
|
+
id?: Prisma.SortOrder;
|
|
404
|
+
sessionId?: Prisma.SortOrder;
|
|
405
|
+
historyId?: Prisma.SortOrder;
|
|
406
|
+
type?: Prisma.SortOrder;
|
|
407
|
+
content?: Prisma.SortOrder;
|
|
408
|
+
thoughts?: Prisma.SortOrder;
|
|
409
|
+
model?: Prisma.SortOrder;
|
|
410
|
+
tokens?: Prisma.SortOrder;
|
|
411
|
+
toolCalls?: Prisma.SortOrder;
|
|
412
|
+
agentId?: Prisma.SortOrder;
|
|
413
|
+
metadata?: Prisma.SortOrder;
|
|
414
|
+
createdAt?: Prisma.SortOrder;
|
|
415
|
+
updatedAt?: Prisma.SortOrder;
|
|
416
|
+
deletedAt?: Prisma.SortOrder;
|
|
417
|
+
};
|
|
418
|
+
export type AiMessageMaxOrderByAggregateInput = {
|
|
419
|
+
id?: Prisma.SortOrder;
|
|
420
|
+
sessionId?: Prisma.SortOrder;
|
|
421
|
+
historyId?: Prisma.SortOrder;
|
|
422
|
+
type?: Prisma.SortOrder;
|
|
423
|
+
content?: Prisma.SortOrder;
|
|
424
|
+
thoughts?: Prisma.SortOrder;
|
|
425
|
+
model?: Prisma.SortOrder;
|
|
426
|
+
tokens?: Prisma.SortOrder;
|
|
427
|
+
toolCalls?: Prisma.SortOrder;
|
|
428
|
+
agentId?: Prisma.SortOrder;
|
|
429
|
+
metadata?: Prisma.SortOrder;
|
|
430
|
+
createdAt?: Prisma.SortOrder;
|
|
431
|
+
updatedAt?: Prisma.SortOrder;
|
|
432
|
+
deletedAt?: Prisma.SortOrder;
|
|
433
|
+
};
|
|
434
|
+
export type AiMessageMinOrderByAggregateInput = {
|
|
435
|
+
id?: Prisma.SortOrder;
|
|
436
|
+
sessionId?: Prisma.SortOrder;
|
|
437
|
+
historyId?: Prisma.SortOrder;
|
|
438
|
+
type?: Prisma.SortOrder;
|
|
439
|
+
content?: Prisma.SortOrder;
|
|
440
|
+
thoughts?: Prisma.SortOrder;
|
|
441
|
+
model?: Prisma.SortOrder;
|
|
442
|
+
tokens?: Prisma.SortOrder;
|
|
443
|
+
toolCalls?: Prisma.SortOrder;
|
|
444
|
+
agentId?: Prisma.SortOrder;
|
|
445
|
+
metadata?: Prisma.SortOrder;
|
|
446
|
+
createdAt?: Prisma.SortOrder;
|
|
447
|
+
updatedAt?: Prisma.SortOrder;
|
|
448
|
+
deletedAt?: Prisma.SortOrder;
|
|
449
|
+
};
|
|
450
|
+
export type AiMessageListRelationFilter = {
|
|
451
|
+
every?: Prisma.AiMessageWhereInput;
|
|
452
|
+
some?: Prisma.AiMessageWhereInput;
|
|
453
|
+
none?: Prisma.AiMessageWhereInput;
|
|
454
|
+
};
|
|
455
|
+
export type AiMessageOrderByRelationAggregateInput = {
|
|
456
|
+
_count?: Prisma.SortOrder;
|
|
457
|
+
};
|
|
458
|
+
export type StringFieldUpdateOperationsInput = {
|
|
459
|
+
set?: string;
|
|
460
|
+
};
|
|
461
|
+
export type NullableStringFieldUpdateOperationsInput = {
|
|
462
|
+
set?: string | null;
|
|
463
|
+
};
|
|
464
|
+
export type DateTimeFieldUpdateOperationsInput = {
|
|
465
|
+
set?: Date | string;
|
|
466
|
+
};
|
|
467
|
+
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
468
|
+
set?: Date | string | null;
|
|
469
|
+
};
|
|
470
|
+
export type AiMessageCreateNestedManyWithoutHistoryInput = {
|
|
471
|
+
create?: Prisma.XOR<Prisma.AiMessageCreateWithoutHistoryInput, Prisma.AiMessageUncheckedCreateWithoutHistoryInput> | Prisma.AiMessageCreateWithoutHistoryInput[] | Prisma.AiMessageUncheckedCreateWithoutHistoryInput[];
|
|
472
|
+
connectOrCreate?: Prisma.AiMessageCreateOrConnectWithoutHistoryInput | Prisma.AiMessageCreateOrConnectWithoutHistoryInput[];
|
|
473
|
+
createMany?: Prisma.AiMessageCreateManyHistoryInputEnvelope;
|
|
474
|
+
connect?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
475
|
+
};
|
|
476
|
+
export type AiMessageUncheckedCreateNestedManyWithoutHistoryInput = {
|
|
477
|
+
create?: Prisma.XOR<Prisma.AiMessageCreateWithoutHistoryInput, Prisma.AiMessageUncheckedCreateWithoutHistoryInput> | Prisma.AiMessageCreateWithoutHistoryInput[] | Prisma.AiMessageUncheckedCreateWithoutHistoryInput[];
|
|
478
|
+
connectOrCreate?: Prisma.AiMessageCreateOrConnectWithoutHistoryInput | Prisma.AiMessageCreateOrConnectWithoutHistoryInput[];
|
|
479
|
+
createMany?: Prisma.AiMessageCreateManyHistoryInputEnvelope;
|
|
480
|
+
connect?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
481
|
+
};
|
|
482
|
+
export type AiMessageUpdateManyWithoutHistoryNestedInput = {
|
|
483
|
+
create?: Prisma.XOR<Prisma.AiMessageCreateWithoutHistoryInput, Prisma.AiMessageUncheckedCreateWithoutHistoryInput> | Prisma.AiMessageCreateWithoutHistoryInput[] | Prisma.AiMessageUncheckedCreateWithoutHistoryInput[];
|
|
484
|
+
connectOrCreate?: Prisma.AiMessageCreateOrConnectWithoutHistoryInput | Prisma.AiMessageCreateOrConnectWithoutHistoryInput[];
|
|
485
|
+
upsert?: Prisma.AiMessageUpsertWithWhereUniqueWithoutHistoryInput | Prisma.AiMessageUpsertWithWhereUniqueWithoutHistoryInput[];
|
|
486
|
+
createMany?: Prisma.AiMessageCreateManyHistoryInputEnvelope;
|
|
487
|
+
set?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
488
|
+
disconnect?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
489
|
+
delete?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
490
|
+
connect?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
491
|
+
update?: Prisma.AiMessageUpdateWithWhereUniqueWithoutHistoryInput | Prisma.AiMessageUpdateWithWhereUniqueWithoutHistoryInput[];
|
|
492
|
+
updateMany?: Prisma.AiMessageUpdateManyWithWhereWithoutHistoryInput | Prisma.AiMessageUpdateManyWithWhereWithoutHistoryInput[];
|
|
493
|
+
deleteMany?: Prisma.AiMessageScalarWhereInput | Prisma.AiMessageScalarWhereInput[];
|
|
494
|
+
};
|
|
495
|
+
export type AiMessageUncheckedUpdateManyWithoutHistoryNestedInput = {
|
|
496
|
+
create?: Prisma.XOR<Prisma.AiMessageCreateWithoutHistoryInput, Prisma.AiMessageUncheckedCreateWithoutHistoryInput> | Prisma.AiMessageCreateWithoutHistoryInput[] | Prisma.AiMessageUncheckedCreateWithoutHistoryInput[];
|
|
497
|
+
connectOrCreate?: Prisma.AiMessageCreateOrConnectWithoutHistoryInput | Prisma.AiMessageCreateOrConnectWithoutHistoryInput[];
|
|
498
|
+
upsert?: Prisma.AiMessageUpsertWithWhereUniqueWithoutHistoryInput | Prisma.AiMessageUpsertWithWhereUniqueWithoutHistoryInput[];
|
|
499
|
+
createMany?: Prisma.AiMessageCreateManyHistoryInputEnvelope;
|
|
500
|
+
set?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
501
|
+
disconnect?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
502
|
+
delete?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
503
|
+
connect?: Prisma.AiMessageWhereUniqueInput | Prisma.AiMessageWhereUniqueInput[];
|
|
504
|
+
update?: Prisma.AiMessageUpdateWithWhereUniqueWithoutHistoryInput | Prisma.AiMessageUpdateWithWhereUniqueWithoutHistoryInput[];
|
|
505
|
+
updateMany?: Prisma.AiMessageUpdateManyWithWhereWithoutHistoryInput | Prisma.AiMessageUpdateManyWithWhereWithoutHistoryInput[];
|
|
506
|
+
deleteMany?: Prisma.AiMessageScalarWhereInput | Prisma.AiMessageScalarWhereInput[];
|
|
507
|
+
};
|
|
508
|
+
export type AiMessageCreateWithoutHistoryInput = {
|
|
509
|
+
id?: string;
|
|
510
|
+
sessionId: string;
|
|
511
|
+
type: string;
|
|
512
|
+
content: string;
|
|
513
|
+
thoughts?: string | null;
|
|
514
|
+
model?: string | null;
|
|
515
|
+
tokens?: string | null;
|
|
516
|
+
toolCalls?: string | null;
|
|
517
|
+
agentId?: string | null;
|
|
518
|
+
metadata?: string | null;
|
|
519
|
+
createdAt?: Date | string;
|
|
520
|
+
updatedAt?: Date | string;
|
|
521
|
+
deletedAt?: Date | string | null;
|
|
522
|
+
};
|
|
523
|
+
export type AiMessageUncheckedCreateWithoutHistoryInput = {
|
|
524
|
+
id?: string;
|
|
525
|
+
sessionId: string;
|
|
526
|
+
type: string;
|
|
527
|
+
content: string;
|
|
528
|
+
thoughts?: string | null;
|
|
529
|
+
model?: string | null;
|
|
530
|
+
tokens?: string | null;
|
|
531
|
+
toolCalls?: string | null;
|
|
532
|
+
agentId?: string | null;
|
|
533
|
+
metadata?: string | null;
|
|
534
|
+
createdAt?: Date | string;
|
|
535
|
+
updatedAt?: Date | string;
|
|
536
|
+
deletedAt?: Date | string | null;
|
|
537
|
+
};
|
|
538
|
+
export type AiMessageCreateOrConnectWithoutHistoryInput = {
|
|
539
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
540
|
+
create: Prisma.XOR<Prisma.AiMessageCreateWithoutHistoryInput, Prisma.AiMessageUncheckedCreateWithoutHistoryInput>;
|
|
541
|
+
};
|
|
542
|
+
export type AiMessageCreateManyHistoryInputEnvelope = {
|
|
543
|
+
data: Prisma.AiMessageCreateManyHistoryInput | Prisma.AiMessageCreateManyHistoryInput[];
|
|
544
|
+
};
|
|
545
|
+
export type AiMessageUpsertWithWhereUniqueWithoutHistoryInput = {
|
|
546
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
547
|
+
update: Prisma.XOR<Prisma.AiMessageUpdateWithoutHistoryInput, Prisma.AiMessageUncheckedUpdateWithoutHistoryInput>;
|
|
548
|
+
create: Prisma.XOR<Prisma.AiMessageCreateWithoutHistoryInput, Prisma.AiMessageUncheckedCreateWithoutHistoryInput>;
|
|
549
|
+
};
|
|
550
|
+
export type AiMessageUpdateWithWhereUniqueWithoutHistoryInput = {
|
|
551
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
552
|
+
data: Prisma.XOR<Prisma.AiMessageUpdateWithoutHistoryInput, Prisma.AiMessageUncheckedUpdateWithoutHistoryInput>;
|
|
553
|
+
};
|
|
554
|
+
export type AiMessageUpdateManyWithWhereWithoutHistoryInput = {
|
|
555
|
+
where: Prisma.AiMessageScalarWhereInput;
|
|
556
|
+
data: Prisma.XOR<Prisma.AiMessageUpdateManyMutationInput, Prisma.AiMessageUncheckedUpdateManyWithoutHistoryInput>;
|
|
557
|
+
};
|
|
558
|
+
export type AiMessageScalarWhereInput = {
|
|
559
|
+
AND?: Prisma.AiMessageScalarWhereInput | Prisma.AiMessageScalarWhereInput[];
|
|
560
|
+
OR?: Prisma.AiMessageScalarWhereInput[];
|
|
561
|
+
NOT?: Prisma.AiMessageScalarWhereInput | Prisma.AiMessageScalarWhereInput[];
|
|
562
|
+
id?: Prisma.StringFilter<"AiMessage"> | string;
|
|
563
|
+
sessionId?: Prisma.StringFilter<"AiMessage"> | string;
|
|
564
|
+
historyId?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
565
|
+
type?: Prisma.StringFilter<"AiMessage"> | string;
|
|
566
|
+
content?: Prisma.StringFilter<"AiMessage"> | string;
|
|
567
|
+
thoughts?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
568
|
+
model?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
569
|
+
tokens?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
570
|
+
toolCalls?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
571
|
+
agentId?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
572
|
+
metadata?: Prisma.StringNullableFilter<"AiMessage"> | string | null;
|
|
573
|
+
createdAt?: Prisma.DateTimeFilter<"AiMessage"> | Date | string;
|
|
574
|
+
updatedAt?: Prisma.DateTimeFilter<"AiMessage"> | Date | string;
|
|
575
|
+
deletedAt?: Prisma.DateTimeNullableFilter<"AiMessage"> | Date | string | null;
|
|
576
|
+
};
|
|
577
|
+
export type AiMessageCreateManyHistoryInput = {
|
|
578
|
+
id?: string;
|
|
579
|
+
sessionId: string;
|
|
580
|
+
type: string;
|
|
581
|
+
content: string;
|
|
582
|
+
thoughts?: string | null;
|
|
583
|
+
model?: string | null;
|
|
584
|
+
tokens?: string | null;
|
|
585
|
+
toolCalls?: string | null;
|
|
586
|
+
agentId?: string | null;
|
|
587
|
+
metadata?: string | null;
|
|
588
|
+
createdAt?: Date | string;
|
|
589
|
+
updatedAt?: Date | string;
|
|
590
|
+
deletedAt?: Date | string | null;
|
|
591
|
+
};
|
|
592
|
+
export type AiMessageUpdateWithoutHistoryInput = {
|
|
593
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
594
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
595
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
596
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
597
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
598
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
599
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
600
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
601
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
602
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
603
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
604
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
605
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
606
|
+
};
|
|
607
|
+
export type AiMessageUncheckedUpdateWithoutHistoryInput = {
|
|
608
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
609
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
610
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
611
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
612
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
613
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
614
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
615
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
616
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
617
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
618
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
619
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
620
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
621
|
+
};
|
|
622
|
+
export type AiMessageUncheckedUpdateManyWithoutHistoryInput = {
|
|
623
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
624
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
625
|
+
type?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
626
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
627
|
+
thoughts?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
628
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
629
|
+
tokens?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
630
|
+
toolCalls?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
631
|
+
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
632
|
+
metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
633
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
634
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
635
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
636
|
+
};
|
|
637
|
+
export type AiMessageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
638
|
+
id?: boolean;
|
|
639
|
+
sessionId?: boolean;
|
|
640
|
+
historyId?: boolean;
|
|
641
|
+
type?: boolean;
|
|
642
|
+
content?: boolean;
|
|
643
|
+
thoughts?: boolean;
|
|
644
|
+
model?: boolean;
|
|
645
|
+
tokens?: boolean;
|
|
646
|
+
toolCalls?: boolean;
|
|
647
|
+
agentId?: boolean;
|
|
648
|
+
metadata?: boolean;
|
|
649
|
+
createdAt?: boolean;
|
|
650
|
+
updatedAt?: boolean;
|
|
651
|
+
deletedAt?: boolean;
|
|
652
|
+
history?: boolean | Prisma.AiMessage$historyArgs<ExtArgs>;
|
|
653
|
+
}, ExtArgs["result"]["aiMessage"]>;
|
|
654
|
+
export type AiMessageSelectScalar = {
|
|
655
|
+
id?: boolean;
|
|
656
|
+
sessionId?: boolean;
|
|
657
|
+
historyId?: boolean;
|
|
658
|
+
type?: boolean;
|
|
659
|
+
content?: boolean;
|
|
660
|
+
thoughts?: boolean;
|
|
661
|
+
model?: boolean;
|
|
662
|
+
tokens?: boolean;
|
|
663
|
+
toolCalls?: boolean;
|
|
664
|
+
agentId?: boolean;
|
|
665
|
+
metadata?: boolean;
|
|
666
|
+
createdAt?: boolean;
|
|
667
|
+
updatedAt?: boolean;
|
|
668
|
+
deletedAt?: boolean;
|
|
669
|
+
};
|
|
670
|
+
export type AiMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "historyId" | "type" | "content" | "thoughts" | "model" | "tokens" | "toolCalls" | "agentId" | "metadata" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["aiMessage"]>;
|
|
671
|
+
export type AiMessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
672
|
+
history?: boolean | Prisma.AiMessage$historyArgs<ExtArgs>;
|
|
673
|
+
};
|
|
674
|
+
export type $AiMessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
675
|
+
name: "AiMessage";
|
|
676
|
+
objects: {
|
|
677
|
+
history: Prisma.$AiChatHistoryPayload<ExtArgs> | null;
|
|
678
|
+
};
|
|
679
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
680
|
+
id: string;
|
|
681
|
+
sessionId: string;
|
|
682
|
+
historyId: string | null;
|
|
683
|
+
type: string;
|
|
684
|
+
content: string;
|
|
685
|
+
thoughts: string | null;
|
|
686
|
+
model: string | null;
|
|
687
|
+
tokens: string | null;
|
|
688
|
+
toolCalls: string | null;
|
|
689
|
+
agentId: string | null;
|
|
690
|
+
metadata: string | null;
|
|
691
|
+
createdAt: Date;
|
|
692
|
+
updatedAt: Date;
|
|
693
|
+
deletedAt: Date | null;
|
|
694
|
+
}, ExtArgs["result"]["aiMessage"]>;
|
|
695
|
+
composites: {};
|
|
696
|
+
};
|
|
697
|
+
export type AiMessageGetPayload<S extends boolean | null | undefined | AiMessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AiMessagePayload, S>;
|
|
698
|
+
export type AiMessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AiMessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
699
|
+
select?: AiMessageCountAggregateInputType | true;
|
|
700
|
+
};
|
|
701
|
+
export interface AiMessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
702
|
+
[K: symbol]: {
|
|
703
|
+
types: Prisma.TypeMap<ExtArgs>['model']['AiMessage'];
|
|
704
|
+
meta: {
|
|
705
|
+
name: 'AiMessage';
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Find zero or one AiMessage that matches the filter.
|
|
710
|
+
* @param {AiMessageFindUniqueArgs} args - Arguments to find a AiMessage
|
|
711
|
+
* @example
|
|
712
|
+
* // Get one AiMessage
|
|
713
|
+
* const aiMessage = await prisma.aiMessage.findUnique({
|
|
714
|
+
* where: {
|
|
715
|
+
* // ... provide filter here
|
|
716
|
+
* }
|
|
717
|
+
* })
|
|
718
|
+
*/
|
|
719
|
+
findUnique<T extends AiMessageFindUniqueArgs>(args: Prisma.SelectSubset<T, AiMessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
720
|
+
/**
|
|
721
|
+
* Find one AiMessage that matches the filter or throw an error with `error.code='P2025'`
|
|
722
|
+
* if no matches were found.
|
|
723
|
+
* @param {AiMessageFindUniqueOrThrowArgs} args - Arguments to find a AiMessage
|
|
724
|
+
* @example
|
|
725
|
+
* // Get one AiMessage
|
|
726
|
+
* const aiMessage = await prisma.aiMessage.findUniqueOrThrow({
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... provide filter here
|
|
729
|
+
* }
|
|
730
|
+
* })
|
|
731
|
+
*/
|
|
732
|
+
findUniqueOrThrow<T extends AiMessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AiMessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
733
|
+
/**
|
|
734
|
+
* Find the first AiMessage that matches the filter.
|
|
735
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
736
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
737
|
+
* @param {AiMessageFindFirstArgs} args - Arguments to find a AiMessage
|
|
738
|
+
* @example
|
|
739
|
+
* // Get one AiMessage
|
|
740
|
+
* const aiMessage = await prisma.aiMessage.findFirst({
|
|
741
|
+
* where: {
|
|
742
|
+
* // ... provide filter here
|
|
743
|
+
* }
|
|
744
|
+
* })
|
|
745
|
+
*/
|
|
746
|
+
findFirst<T extends AiMessageFindFirstArgs>(args?: Prisma.SelectSubset<T, AiMessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
747
|
+
/**
|
|
748
|
+
* Find the first AiMessage that matches the filter or
|
|
749
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
750
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
751
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
752
|
+
* @param {AiMessageFindFirstOrThrowArgs} args - Arguments to find a AiMessage
|
|
753
|
+
* @example
|
|
754
|
+
* // Get one AiMessage
|
|
755
|
+
* const aiMessage = await prisma.aiMessage.findFirstOrThrow({
|
|
756
|
+
* where: {
|
|
757
|
+
* // ... provide filter here
|
|
758
|
+
* }
|
|
759
|
+
* })
|
|
760
|
+
*/
|
|
761
|
+
findFirstOrThrow<T extends AiMessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AiMessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
762
|
+
/**
|
|
763
|
+
* Find zero or more AiMessages that matches the filter.
|
|
764
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
765
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
766
|
+
* @param {AiMessageFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
767
|
+
* @example
|
|
768
|
+
* // Get all AiMessages
|
|
769
|
+
* const aiMessages = await prisma.aiMessage.findMany()
|
|
770
|
+
*
|
|
771
|
+
* // Get first 10 AiMessages
|
|
772
|
+
* const aiMessages = await prisma.aiMessage.findMany({ take: 10 })
|
|
773
|
+
*
|
|
774
|
+
* // Only select the `id`
|
|
775
|
+
* const aiMessageWithIdOnly = await prisma.aiMessage.findMany({ select: { id: true } })
|
|
776
|
+
*
|
|
777
|
+
*/
|
|
778
|
+
findMany<T extends AiMessageFindManyArgs>(args?: Prisma.SelectSubset<T, AiMessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
779
|
+
/**
|
|
780
|
+
* Create a AiMessage.
|
|
781
|
+
* @param {AiMessageCreateArgs} args - Arguments to create a AiMessage.
|
|
782
|
+
* @example
|
|
783
|
+
* // Create one AiMessage
|
|
784
|
+
* const AiMessage = await prisma.aiMessage.create({
|
|
785
|
+
* data: {
|
|
786
|
+
* // ... data to create a AiMessage
|
|
787
|
+
* }
|
|
788
|
+
* })
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
791
|
+
create<T extends AiMessageCreateArgs>(args: Prisma.SelectSubset<T, AiMessageCreateArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
792
|
+
/**
|
|
793
|
+
* Create many AiMessages.
|
|
794
|
+
* @param {AiMessageCreateManyArgs} args - Arguments to create many AiMessages.
|
|
795
|
+
* @example
|
|
796
|
+
* // Create many AiMessages
|
|
797
|
+
* const aiMessage = await prisma.aiMessage.createMany({
|
|
798
|
+
* data: [
|
|
799
|
+
* // ... provide data here
|
|
800
|
+
* ]
|
|
801
|
+
* })
|
|
802
|
+
*
|
|
803
|
+
*/
|
|
804
|
+
createMany<T extends AiMessageCreateManyArgs>(args?: Prisma.SelectSubset<T, AiMessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
805
|
+
/**
|
|
806
|
+
* Delete a AiMessage.
|
|
807
|
+
* @param {AiMessageDeleteArgs} args - Arguments to delete one AiMessage.
|
|
808
|
+
* @example
|
|
809
|
+
* // Delete one AiMessage
|
|
810
|
+
* const AiMessage = await prisma.aiMessage.delete({
|
|
811
|
+
* where: {
|
|
812
|
+
* // ... filter to delete one AiMessage
|
|
813
|
+
* }
|
|
814
|
+
* })
|
|
815
|
+
*
|
|
816
|
+
*/
|
|
817
|
+
delete<T extends AiMessageDeleteArgs>(args: Prisma.SelectSubset<T, AiMessageDeleteArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
818
|
+
/**
|
|
819
|
+
* Update one AiMessage.
|
|
820
|
+
* @param {AiMessageUpdateArgs} args - Arguments to update one AiMessage.
|
|
821
|
+
* @example
|
|
822
|
+
* // Update one AiMessage
|
|
823
|
+
* const aiMessage = await prisma.aiMessage.update({
|
|
824
|
+
* where: {
|
|
825
|
+
* // ... provide filter here
|
|
826
|
+
* },
|
|
827
|
+
* data: {
|
|
828
|
+
* // ... provide data here
|
|
829
|
+
* }
|
|
830
|
+
* })
|
|
831
|
+
*
|
|
832
|
+
*/
|
|
833
|
+
update<T extends AiMessageUpdateArgs>(args: Prisma.SelectSubset<T, AiMessageUpdateArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
834
|
+
/**
|
|
835
|
+
* Delete zero or more AiMessages.
|
|
836
|
+
* @param {AiMessageDeleteManyArgs} args - Arguments to filter AiMessages to delete.
|
|
837
|
+
* @example
|
|
838
|
+
* // Delete a few AiMessages
|
|
839
|
+
* const { count } = await prisma.aiMessage.deleteMany({
|
|
840
|
+
* where: {
|
|
841
|
+
* // ... provide filter here
|
|
842
|
+
* }
|
|
843
|
+
* })
|
|
844
|
+
*
|
|
845
|
+
*/
|
|
846
|
+
deleteMany<T extends AiMessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, AiMessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
847
|
+
/**
|
|
848
|
+
* Update zero or more AiMessages.
|
|
849
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
850
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
851
|
+
* @param {AiMessageUpdateManyArgs} args - Arguments to update one or more rows.
|
|
852
|
+
* @example
|
|
853
|
+
* // Update many AiMessages
|
|
854
|
+
* const aiMessage = await prisma.aiMessage.updateMany({
|
|
855
|
+
* where: {
|
|
856
|
+
* // ... provide filter here
|
|
857
|
+
* },
|
|
858
|
+
* data: {
|
|
859
|
+
* // ... provide data here
|
|
860
|
+
* }
|
|
861
|
+
* })
|
|
862
|
+
*
|
|
863
|
+
*/
|
|
864
|
+
updateMany<T extends AiMessageUpdateManyArgs>(args: Prisma.SelectSubset<T, AiMessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
865
|
+
/**
|
|
866
|
+
* Create or update one AiMessage.
|
|
867
|
+
* @param {AiMessageUpsertArgs} args - Arguments to update or create a AiMessage.
|
|
868
|
+
* @example
|
|
869
|
+
* // Update or create a AiMessage
|
|
870
|
+
* const aiMessage = await prisma.aiMessage.upsert({
|
|
871
|
+
* create: {
|
|
872
|
+
* // ... data to create a AiMessage
|
|
873
|
+
* },
|
|
874
|
+
* update: {
|
|
875
|
+
* // ... in case it already exists, update
|
|
876
|
+
* },
|
|
877
|
+
* where: {
|
|
878
|
+
* // ... the filter for the AiMessage we want to update
|
|
879
|
+
* }
|
|
880
|
+
* })
|
|
881
|
+
*/
|
|
882
|
+
upsert<T extends AiMessageUpsertArgs>(args: Prisma.SelectSubset<T, AiMessageUpsertArgs<ExtArgs>>): Prisma.Prisma__AiMessageClient<runtime.Types.Result.GetResult<Prisma.$AiMessagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
883
|
+
/**
|
|
884
|
+
* Count the number of AiMessages.
|
|
885
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
886
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
887
|
+
* @param {AiMessageCountArgs} args - Arguments to filter AiMessages to count.
|
|
888
|
+
* @example
|
|
889
|
+
* // Count the number of AiMessages
|
|
890
|
+
* const count = await prisma.aiMessage.count({
|
|
891
|
+
* where: {
|
|
892
|
+
* // ... the filter for the AiMessages we want to count
|
|
893
|
+
* }
|
|
894
|
+
* })
|
|
895
|
+
**/
|
|
896
|
+
count<T extends AiMessageCountArgs>(args?: Prisma.Subset<T, AiMessageCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AiMessageCountAggregateOutputType> : number>;
|
|
897
|
+
/**
|
|
898
|
+
* Allows you to perform aggregations operations on a AiMessage.
|
|
899
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
900
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
901
|
+
* @param {AiMessageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
902
|
+
* @example
|
|
903
|
+
* // Ordered by age ascending
|
|
904
|
+
* // Where email contains prisma.io
|
|
905
|
+
* // Limited to the 10 users
|
|
906
|
+
* const aggregations = await prisma.user.aggregate({
|
|
907
|
+
* _avg: {
|
|
908
|
+
* age: true,
|
|
909
|
+
* },
|
|
910
|
+
* where: {
|
|
911
|
+
* email: {
|
|
912
|
+
* contains: "prisma.io",
|
|
913
|
+
* },
|
|
914
|
+
* },
|
|
915
|
+
* orderBy: {
|
|
916
|
+
* age: "asc",
|
|
917
|
+
* },
|
|
918
|
+
* take: 10,
|
|
919
|
+
* })
|
|
920
|
+
**/
|
|
921
|
+
aggregate<T extends AiMessageAggregateArgs>(args: Prisma.Subset<T, AiMessageAggregateArgs>): Prisma.PrismaPromise<GetAiMessageAggregateType<T>>;
|
|
922
|
+
/**
|
|
923
|
+
* Group by AiMessage.
|
|
924
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
925
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
926
|
+
* @param {AiMessageGroupByArgs} args - Group by arguments.
|
|
927
|
+
* @example
|
|
928
|
+
* // Group by city, order by createdAt, get count
|
|
929
|
+
* const result = await prisma.user.groupBy({
|
|
930
|
+
* by: ['city', 'createdAt'],
|
|
931
|
+
* orderBy: {
|
|
932
|
+
* createdAt: true
|
|
933
|
+
* },
|
|
934
|
+
* _count: {
|
|
935
|
+
* _all: true
|
|
936
|
+
* },
|
|
937
|
+
* })
|
|
938
|
+
*
|
|
939
|
+
**/
|
|
940
|
+
groupBy<T extends AiMessageGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
941
|
+
orderBy: AiMessageGroupByArgs['orderBy'];
|
|
942
|
+
} : {
|
|
943
|
+
orderBy?: AiMessageGroupByArgs['orderBy'];
|
|
944
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
945
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
946
|
+
Error,
|
|
947
|
+
'Field ',
|
|
948
|
+
P,
|
|
949
|
+
` in "having" needs to be provided in "by"`
|
|
950
|
+
];
|
|
951
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
952
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
953
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
954
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
955
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
956
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
957
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, AiMessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAiMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
958
|
+
/**
|
|
959
|
+
* Fields of the AiMessage model
|
|
960
|
+
*/
|
|
961
|
+
readonly fields: AiMessageFieldRefs;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* The delegate class that acts as a "Promise-like" for AiMessage.
|
|
965
|
+
* Why is this prefixed with `Prisma__`?
|
|
966
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
967
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
968
|
+
*/
|
|
969
|
+
export interface Prisma__AiMessageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
970
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
971
|
+
history<T extends Prisma.AiMessage$historyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AiMessage$historyArgs<ExtArgs>>): Prisma.Prisma__AiChatHistoryClient<runtime.Types.Result.GetResult<Prisma.$AiChatHistoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
972
|
+
/**
|
|
973
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
974
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
975
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
976
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
977
|
+
*/
|
|
978
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
979
|
+
/**
|
|
980
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
981
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
982
|
+
* @returns A Promise for the completion of the callback.
|
|
983
|
+
*/
|
|
984
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
985
|
+
/**
|
|
986
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
987
|
+
* resolved value cannot be modified from the callback.
|
|
988
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
989
|
+
* @returns A Promise for the completion of the callback.
|
|
990
|
+
*/
|
|
991
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* Fields of the AiMessage model
|
|
995
|
+
*/
|
|
996
|
+
export interface AiMessageFieldRefs {
|
|
997
|
+
readonly id: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
998
|
+
readonly sessionId: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
999
|
+
readonly historyId: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1000
|
+
readonly type: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1001
|
+
readonly content: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1002
|
+
readonly thoughts: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1003
|
+
readonly model: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1004
|
+
readonly tokens: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1005
|
+
readonly toolCalls: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1006
|
+
readonly agentId: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1007
|
+
readonly metadata: Prisma.FieldRef<"AiMessage", 'String'>;
|
|
1008
|
+
readonly createdAt: Prisma.FieldRef<"AiMessage", 'DateTime'>;
|
|
1009
|
+
readonly updatedAt: Prisma.FieldRef<"AiMessage", 'DateTime'>;
|
|
1010
|
+
readonly deletedAt: Prisma.FieldRef<"AiMessage", 'DateTime'>;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* AiMessage findUnique
|
|
1014
|
+
*/
|
|
1015
|
+
export type AiMessageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1016
|
+
/**
|
|
1017
|
+
* Select specific fields to fetch from the AiMessage
|
|
1018
|
+
*/
|
|
1019
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1020
|
+
/**
|
|
1021
|
+
* Omit specific fields from the AiMessage
|
|
1022
|
+
*/
|
|
1023
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1024
|
+
/**
|
|
1025
|
+
* Choose, which related nodes to fetch as well
|
|
1026
|
+
*/
|
|
1027
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1028
|
+
/**
|
|
1029
|
+
* Filter, which AiMessage to fetch.
|
|
1030
|
+
*/
|
|
1031
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
1032
|
+
};
|
|
1033
|
+
/**
|
|
1034
|
+
* AiMessage findUniqueOrThrow
|
|
1035
|
+
*/
|
|
1036
|
+
export type AiMessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1037
|
+
/**
|
|
1038
|
+
* Select specific fields to fetch from the AiMessage
|
|
1039
|
+
*/
|
|
1040
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Omit specific fields from the AiMessage
|
|
1043
|
+
*/
|
|
1044
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1045
|
+
/**
|
|
1046
|
+
* Choose, which related nodes to fetch as well
|
|
1047
|
+
*/
|
|
1048
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1049
|
+
/**
|
|
1050
|
+
* Filter, which AiMessage to fetch.
|
|
1051
|
+
*/
|
|
1052
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
1053
|
+
};
|
|
1054
|
+
/**
|
|
1055
|
+
* AiMessage findFirst
|
|
1056
|
+
*/
|
|
1057
|
+
export type AiMessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1058
|
+
/**
|
|
1059
|
+
* Select specific fields to fetch from the AiMessage
|
|
1060
|
+
*/
|
|
1061
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1062
|
+
/**
|
|
1063
|
+
* Omit specific fields from the AiMessage
|
|
1064
|
+
*/
|
|
1065
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1066
|
+
/**
|
|
1067
|
+
* Choose, which related nodes to fetch as well
|
|
1068
|
+
*/
|
|
1069
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1070
|
+
/**
|
|
1071
|
+
* Filter, which AiMessage to fetch.
|
|
1072
|
+
*/
|
|
1073
|
+
where?: Prisma.AiMessageWhereInput;
|
|
1074
|
+
/**
|
|
1075
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1076
|
+
*
|
|
1077
|
+
* Determine the order of AiMessages to fetch.
|
|
1078
|
+
*/
|
|
1079
|
+
orderBy?: Prisma.AiMessageOrderByWithRelationInput | Prisma.AiMessageOrderByWithRelationInput[];
|
|
1080
|
+
/**
|
|
1081
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1082
|
+
*
|
|
1083
|
+
* Sets the position for searching for AiMessages.
|
|
1084
|
+
*/
|
|
1085
|
+
cursor?: Prisma.AiMessageWhereUniqueInput;
|
|
1086
|
+
/**
|
|
1087
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1088
|
+
*
|
|
1089
|
+
* Take `±n` AiMessages from the position of the cursor.
|
|
1090
|
+
*/
|
|
1091
|
+
take?: number;
|
|
1092
|
+
/**
|
|
1093
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1094
|
+
*
|
|
1095
|
+
* Skip the first `n` AiMessages.
|
|
1096
|
+
*/
|
|
1097
|
+
skip?: number;
|
|
1098
|
+
/**
|
|
1099
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1100
|
+
*
|
|
1101
|
+
* Filter by unique combinations of AiMessages.
|
|
1102
|
+
*/
|
|
1103
|
+
distinct?: Prisma.AiMessageScalarFieldEnum | Prisma.AiMessageScalarFieldEnum[];
|
|
1104
|
+
};
|
|
1105
|
+
/**
|
|
1106
|
+
* AiMessage findFirstOrThrow
|
|
1107
|
+
*/
|
|
1108
|
+
export type AiMessageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1109
|
+
/**
|
|
1110
|
+
* Select specific fields to fetch from the AiMessage
|
|
1111
|
+
*/
|
|
1112
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1113
|
+
/**
|
|
1114
|
+
* Omit specific fields from the AiMessage
|
|
1115
|
+
*/
|
|
1116
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Choose, which related nodes to fetch as well
|
|
1119
|
+
*/
|
|
1120
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1121
|
+
/**
|
|
1122
|
+
* Filter, which AiMessage to fetch.
|
|
1123
|
+
*/
|
|
1124
|
+
where?: Prisma.AiMessageWhereInput;
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Determine the order of AiMessages to fetch.
|
|
1129
|
+
*/
|
|
1130
|
+
orderBy?: Prisma.AiMessageOrderByWithRelationInput | Prisma.AiMessageOrderByWithRelationInput[];
|
|
1131
|
+
/**
|
|
1132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1133
|
+
*
|
|
1134
|
+
* Sets the position for searching for AiMessages.
|
|
1135
|
+
*/
|
|
1136
|
+
cursor?: Prisma.AiMessageWhereUniqueInput;
|
|
1137
|
+
/**
|
|
1138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1139
|
+
*
|
|
1140
|
+
* Take `±n` AiMessages from the position of the cursor.
|
|
1141
|
+
*/
|
|
1142
|
+
take?: number;
|
|
1143
|
+
/**
|
|
1144
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1145
|
+
*
|
|
1146
|
+
* Skip the first `n` AiMessages.
|
|
1147
|
+
*/
|
|
1148
|
+
skip?: number;
|
|
1149
|
+
/**
|
|
1150
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1151
|
+
*
|
|
1152
|
+
* Filter by unique combinations of AiMessages.
|
|
1153
|
+
*/
|
|
1154
|
+
distinct?: Prisma.AiMessageScalarFieldEnum | Prisma.AiMessageScalarFieldEnum[];
|
|
1155
|
+
};
|
|
1156
|
+
/**
|
|
1157
|
+
* AiMessage findMany
|
|
1158
|
+
*/
|
|
1159
|
+
export type AiMessageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1160
|
+
/**
|
|
1161
|
+
* Select specific fields to fetch from the AiMessage
|
|
1162
|
+
*/
|
|
1163
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Omit specific fields from the AiMessage
|
|
1166
|
+
*/
|
|
1167
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1168
|
+
/**
|
|
1169
|
+
* Choose, which related nodes to fetch as well
|
|
1170
|
+
*/
|
|
1171
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1172
|
+
/**
|
|
1173
|
+
* Filter, which AiMessages to fetch.
|
|
1174
|
+
*/
|
|
1175
|
+
where?: Prisma.AiMessageWhereInput;
|
|
1176
|
+
/**
|
|
1177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1178
|
+
*
|
|
1179
|
+
* Determine the order of AiMessages to fetch.
|
|
1180
|
+
*/
|
|
1181
|
+
orderBy?: Prisma.AiMessageOrderByWithRelationInput | Prisma.AiMessageOrderByWithRelationInput[];
|
|
1182
|
+
/**
|
|
1183
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1184
|
+
*
|
|
1185
|
+
* Sets the position for listing AiMessages.
|
|
1186
|
+
*/
|
|
1187
|
+
cursor?: Prisma.AiMessageWhereUniqueInput;
|
|
1188
|
+
/**
|
|
1189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1190
|
+
*
|
|
1191
|
+
* Take `±n` AiMessages from the position of the cursor.
|
|
1192
|
+
*/
|
|
1193
|
+
take?: number;
|
|
1194
|
+
/**
|
|
1195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1196
|
+
*
|
|
1197
|
+
* Skip the first `n` AiMessages.
|
|
1198
|
+
*/
|
|
1199
|
+
skip?: number;
|
|
1200
|
+
/**
|
|
1201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1202
|
+
*
|
|
1203
|
+
* Filter by unique combinations of AiMessages.
|
|
1204
|
+
*/
|
|
1205
|
+
distinct?: Prisma.AiMessageScalarFieldEnum | Prisma.AiMessageScalarFieldEnum[];
|
|
1206
|
+
};
|
|
1207
|
+
/**
|
|
1208
|
+
* AiMessage create
|
|
1209
|
+
*/
|
|
1210
|
+
export type AiMessageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1211
|
+
/**
|
|
1212
|
+
* Select specific fields to fetch from the AiMessage
|
|
1213
|
+
*/
|
|
1214
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1215
|
+
/**
|
|
1216
|
+
* Omit specific fields from the AiMessage
|
|
1217
|
+
*/
|
|
1218
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Choose, which related nodes to fetch as well
|
|
1221
|
+
*/
|
|
1222
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* The data needed to create a AiMessage.
|
|
1225
|
+
*/
|
|
1226
|
+
data: Prisma.XOR<Prisma.AiMessageCreateInput, Prisma.AiMessageUncheckedCreateInput>;
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* AiMessage createMany
|
|
1230
|
+
*/
|
|
1231
|
+
export type AiMessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1232
|
+
/**
|
|
1233
|
+
* The data used to create many AiMessages.
|
|
1234
|
+
*/
|
|
1235
|
+
data: Prisma.AiMessageCreateManyInput | Prisma.AiMessageCreateManyInput[];
|
|
1236
|
+
};
|
|
1237
|
+
/**
|
|
1238
|
+
* AiMessage update
|
|
1239
|
+
*/
|
|
1240
|
+
export type AiMessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1241
|
+
/**
|
|
1242
|
+
* Select specific fields to fetch from the AiMessage
|
|
1243
|
+
*/
|
|
1244
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1245
|
+
/**
|
|
1246
|
+
* Omit specific fields from the AiMessage
|
|
1247
|
+
*/
|
|
1248
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1249
|
+
/**
|
|
1250
|
+
* Choose, which related nodes to fetch as well
|
|
1251
|
+
*/
|
|
1252
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1253
|
+
/**
|
|
1254
|
+
* The data needed to update a AiMessage.
|
|
1255
|
+
*/
|
|
1256
|
+
data: Prisma.XOR<Prisma.AiMessageUpdateInput, Prisma.AiMessageUncheckedUpdateInput>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Choose, which AiMessage to update.
|
|
1259
|
+
*/
|
|
1260
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
1261
|
+
};
|
|
1262
|
+
/**
|
|
1263
|
+
* AiMessage updateMany
|
|
1264
|
+
*/
|
|
1265
|
+
export type AiMessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1266
|
+
/**
|
|
1267
|
+
* The data used to update AiMessages.
|
|
1268
|
+
*/
|
|
1269
|
+
data: Prisma.XOR<Prisma.AiMessageUpdateManyMutationInput, Prisma.AiMessageUncheckedUpdateManyInput>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Filter which AiMessages to update
|
|
1272
|
+
*/
|
|
1273
|
+
where?: Prisma.AiMessageWhereInput;
|
|
1274
|
+
/**
|
|
1275
|
+
* Limit how many AiMessages to update.
|
|
1276
|
+
*/
|
|
1277
|
+
limit?: number;
|
|
1278
|
+
};
|
|
1279
|
+
/**
|
|
1280
|
+
* AiMessage upsert
|
|
1281
|
+
*/
|
|
1282
|
+
export type AiMessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1283
|
+
/**
|
|
1284
|
+
* Select specific fields to fetch from the AiMessage
|
|
1285
|
+
*/
|
|
1286
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Omit specific fields from the AiMessage
|
|
1289
|
+
*/
|
|
1290
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* Choose, which related nodes to fetch as well
|
|
1293
|
+
*/
|
|
1294
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* The filter to search for the AiMessage to update in case it exists.
|
|
1297
|
+
*/
|
|
1298
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
1299
|
+
/**
|
|
1300
|
+
* In case the AiMessage found by the `where` argument doesn't exist, create a new AiMessage with this data.
|
|
1301
|
+
*/
|
|
1302
|
+
create: Prisma.XOR<Prisma.AiMessageCreateInput, Prisma.AiMessageUncheckedCreateInput>;
|
|
1303
|
+
/**
|
|
1304
|
+
* In case the AiMessage was found with the provided `where` argument, update it with this data.
|
|
1305
|
+
*/
|
|
1306
|
+
update: Prisma.XOR<Prisma.AiMessageUpdateInput, Prisma.AiMessageUncheckedUpdateInput>;
|
|
1307
|
+
};
|
|
1308
|
+
/**
|
|
1309
|
+
* AiMessage delete
|
|
1310
|
+
*/
|
|
1311
|
+
export type AiMessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1312
|
+
/**
|
|
1313
|
+
* Select specific fields to fetch from the AiMessage
|
|
1314
|
+
*/
|
|
1315
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1316
|
+
/**
|
|
1317
|
+
* Omit specific fields from the AiMessage
|
|
1318
|
+
*/
|
|
1319
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Choose, which related nodes to fetch as well
|
|
1322
|
+
*/
|
|
1323
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* Filter which AiMessage to delete.
|
|
1326
|
+
*/
|
|
1327
|
+
where: Prisma.AiMessageWhereUniqueInput;
|
|
1328
|
+
};
|
|
1329
|
+
/**
|
|
1330
|
+
* AiMessage deleteMany
|
|
1331
|
+
*/
|
|
1332
|
+
export type AiMessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1333
|
+
/**
|
|
1334
|
+
* Filter which AiMessages to delete
|
|
1335
|
+
*/
|
|
1336
|
+
where?: Prisma.AiMessageWhereInput;
|
|
1337
|
+
/**
|
|
1338
|
+
* Limit how many AiMessages to delete.
|
|
1339
|
+
*/
|
|
1340
|
+
limit?: number;
|
|
1341
|
+
};
|
|
1342
|
+
/**
|
|
1343
|
+
* AiMessage.history
|
|
1344
|
+
*/
|
|
1345
|
+
export type AiMessage$historyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1346
|
+
/**
|
|
1347
|
+
* Select specific fields to fetch from the AiChatHistory
|
|
1348
|
+
*/
|
|
1349
|
+
select?: Prisma.AiChatHistorySelect<ExtArgs> | null;
|
|
1350
|
+
/**
|
|
1351
|
+
* Omit specific fields from the AiChatHistory
|
|
1352
|
+
*/
|
|
1353
|
+
omit?: Prisma.AiChatHistoryOmit<ExtArgs> | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* Choose, which related nodes to fetch as well
|
|
1356
|
+
*/
|
|
1357
|
+
include?: Prisma.AiChatHistoryInclude<ExtArgs> | null;
|
|
1358
|
+
where?: Prisma.AiChatHistoryWhereInput;
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* AiMessage without action
|
|
1362
|
+
*/
|
|
1363
|
+
export type AiMessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1364
|
+
/**
|
|
1365
|
+
* Select specific fields to fetch from the AiMessage
|
|
1366
|
+
*/
|
|
1367
|
+
select?: Prisma.AiMessageSelect<ExtArgs> | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* Omit specific fields from the AiMessage
|
|
1370
|
+
*/
|
|
1371
|
+
omit?: Prisma.AiMessageOmit<ExtArgs> | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* Choose, which related nodes to fetch as well
|
|
1374
|
+
*/
|
|
1375
|
+
include?: Prisma.AiMessageInclude<ExtArgs> | null;
|
|
1376
|
+
};
|