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