@allbluecn/database 0.4.0 → 0.4.2
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/desktop-init.ts +128 -0
- package/generated/browser.ts +494 -0
- package/generated/client.ts +518 -0
- package/generated/commonInputTypes.ts +1056 -0
- package/generated/enums.ts +93 -0
- package/generated/internal/class.ts +1144 -0
- package/generated/internal/prismaNamespace.ts +9603 -0
- package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
- package/generated/models/Account.ts +1648 -0
- package/generated/models/AgentConversation.ts +1651 -0
- package/generated/models/AgentMessage.ts +1409 -0
- package/generated/models/AiProvider.ts +1607 -0
- package/generated/models/AiProviderConfig.ts +1514 -0
- package/generated/models/AiUsageLog.ts +1863 -0
- package/generated/models/AnyHubApp.ts +1911 -0
- package/generated/models/AnyHubMarketApp.ts +2008 -0
- package/generated/models/AnyHubPermission.ts +1422 -0
- package/generated/models/AnyHubRecommendation.ts +1870 -0
- package/generated/models/AnyHubRecommender.ts +1471 -0
- package/generated/models/Artboard.ts +1811 -0
- package/generated/models/ArtboardExport.ts +1548 -0
- package/generated/models/ArticleFavorite.ts +1352 -0
- package/generated/models/AuditLog.ts +1533 -0
- package/generated/models/Block.ts +1650 -0
- package/generated/models/BlockComponent.ts +1734 -0
- package/generated/models/BlockInstance.ts +2043 -0
- package/generated/models/BookmarkCategory.ts +1670 -0
- package/generated/models/ChatInterrupt.ts +1699 -0
- package/generated/models/ChatMessage.ts +1438 -0
- package/generated/models/ChatRun.ts +1632 -0
- package/generated/models/ChatThread.ts +2133 -0
- package/generated/models/Comment.ts +2206 -0
- package/generated/models/CommentIgnore.ts +1430 -0
- package/generated/models/CommentReaction.ts +1472 -0
- package/generated/models/ComplianceExport.ts +1345 -0
- package/generated/models/Component.ts +2345 -0
- package/generated/models/ComponentInstance.ts +2102 -0
- package/generated/models/ComponentTag.ts +1281 -0
- package/generated/models/CustomRole.ts +1560 -0
- package/generated/models/DesignProject.ts +1643 -0
- package/generated/models/DictionaryTerm.ts +1642 -0
- package/generated/models/GenerationRun.ts +1543 -0
- package/generated/models/IndustryCompliance.ts +1797 -0
- package/generated/models/InvitationCode.ts +1417 -0
- package/generated/models/InvitationUse.ts +1424 -0
- package/generated/models/Invoice.ts +1710 -0
- package/generated/models/KnowledgeBase.ts +1671 -0
- package/generated/models/KnowledgeDocument.ts +2458 -0
- package/generated/models/KnowledgeShareRecord.ts +1352 -0
- package/generated/models/Label.ts +1482 -0
- package/generated/models/LegalRegulation.ts +1873 -0
- package/generated/models/LicenseActivation.ts +1415 -0
- package/generated/models/LicenseKey.ts +1884 -0
- package/generated/models/LoginLog.ts +1450 -0
- package/generated/models/MonitoringErrorReport.ts +1299 -0
- package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
- package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
- package/generated/models/MonitoringRequestLog.ts +1283 -0
- package/generated/models/PRD.ts +2805 -0
- package/generated/models/PRDPage.ts +2402 -0
- package/generated/models/PRDTag.ts +1430 -0
- package/generated/models/PRDVersion.ts +2121 -0
- package/generated/models/PageVersion.ts +1523 -0
- package/generated/models/PasswordResetToken.ts +1380 -0
- package/generated/models/Plan.ts +2069 -0
- package/generated/models/Project.ts +2148 -0
- package/generated/models/ProjectActivity.ts +1582 -0
- package/generated/models/ProjectMember.ts +1512 -0
- package/generated/models/ProviderEvent.ts +1227 -0
- package/generated/models/Reference.ts +1177 -0
- package/generated/models/Review.ts +1912 -0
- package/generated/models/ReviewComment.ts +1904 -0
- package/generated/models/RoleAssignment.ts +1430 -0
- package/generated/models/SequenceCounter.ts +1137 -0
- package/generated/models/Share.ts +1681 -0
- package/generated/models/ShareVersion.ts +1389 -0
- package/generated/models/SsoMapping.ts +1512 -0
- package/generated/models/SsoProvider.ts +1639 -0
- package/generated/models/Story.ts +5234 -0
- package/generated/models/StoryActivity.ts +1664 -0
- package/generated/models/StoryAttachment.ts +1467 -0
- package/generated/models/StoryComment.ts +1992 -0
- package/generated/models/StoryDependency.ts +1517 -0
- package/generated/models/StoryDocLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +1587 -0
- package/generated/models/StoryLabel.ts +1349 -0
- package/generated/models/StoryLink.ts +1415 -0
- package/generated/models/StoryPrdLink.ts +1430 -0
- package/generated/models/StoryReaction.ts +1472 -0
- package/generated/models/Subscription.ts +2147 -0
- package/generated/models/SystemSetting.ts +1217 -0
- package/generated/models/Tag.ts +1655 -0
- package/generated/models/TeamInvitation.ts +1526 -0
- package/generated/models/TeamMembership.ts +1436 -0
- package/generated/models/Template.ts +1391 -0
- package/generated/models/TemplateBlock.ts +1664 -0
- package/generated/models/ThirdPartyDependency.ts +1473 -0
- package/generated/models/UsageRecord.ts +1505 -0
- package/generated/models/User.ts +20998 -0
- package/generated/models/UserAgent.ts +1900 -0
- package/generated/models/UserSkill.ts +1456 -0
- package/generated/models/WebsiteBookmark.ts +2219 -0
- package/generated/models/Workspace.ts +2279 -0
- package/generated/models.ts +106 -0
- package/generated-sqlite/browser.ts +399 -0
- package/generated-sqlite/client.ts +423 -0
- package/generated-sqlite/commonInputTypes.ts +608 -0
- package/generated-sqlite/enums.ts +15 -0
- package/generated-sqlite/internal/class.ts +954 -0
- package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
- package/generated-sqlite/models/AgentConversation.ts +1647 -0
- package/generated-sqlite/models/AgentMessage.ts +1406 -0
- package/generated-sqlite/models/AiProvider.ts +1605 -0
- package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
- package/generated-sqlite/models/AiUsageLog.ts +1845 -0
- package/generated-sqlite/models/AnyHubApp.ts +1908 -0
- package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
- package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
- package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
- package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
- package/generated-sqlite/models/Artboard.ts +1808 -0
- package/generated-sqlite/models/ArtboardExport.ts +1545 -0
- package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
- package/generated-sqlite/models/AuditLog.ts +1287 -0
- package/generated-sqlite/models/Block.ts +1648 -0
- package/generated-sqlite/models/BlockComponent.ts +1730 -0
- package/generated-sqlite/models/BlockInstance.ts +2039 -0
- package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
- package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
- package/generated-sqlite/models/ChatMessage.ts +1435 -0
- package/generated-sqlite/models/ChatRun.ts +1629 -0
- package/generated-sqlite/models/ChatThread.ts +2129 -0
- package/generated-sqlite/models/Comment.ts +2201 -0
- package/generated-sqlite/models/CommentIgnore.ts +1426 -0
- package/generated-sqlite/models/ComplianceExport.ts +1343 -0
- package/generated-sqlite/models/Component.ts +2326 -0
- package/generated-sqlite/models/ComponentInstance.ts +2097 -0
- package/generated-sqlite/models/ComponentTag.ts +1278 -0
- package/generated-sqlite/models/CustomRole.ts +1209 -0
- package/generated-sqlite/models/DesignProject.ts +1640 -0
- package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
- package/generated-sqlite/models/GenerationRun.ts +1540 -0
- package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
- package/generated-sqlite/models/InvitationCode.ts +1415 -0
- package/generated-sqlite/models/InvitationUse.ts +1420 -0
- package/generated-sqlite/models/Invoice.ts +1707 -0
- package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
- package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
- package/generated-sqlite/models/LegalRegulation.ts +1870 -0
- package/generated-sqlite/models/LicenseActivation.ts +1203 -0
- package/generated-sqlite/models/LicenseKey.ts +1443 -0
- package/generated-sqlite/models/LoginLog.ts +1447 -0
- package/generated-sqlite/models/PRD.ts +2616 -0
- package/generated-sqlite/models/PRDPage.ts +2398 -0
- package/generated-sqlite/models/PRDTag.ts +1426 -0
- package/generated-sqlite/models/PRDVersion.ts +2117 -0
- package/generated-sqlite/models/PageVersion.ts +1528 -0
- package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
- package/generated-sqlite/models/Plan.ts +2060 -0
- package/generated-sqlite/models/Project.ts +1994 -0
- package/generated-sqlite/models/ProjectActivity.ts +1578 -0
- package/generated-sqlite/models/ProjectMember.ts +1508 -0
- package/generated-sqlite/models/ProviderEvent.ts +1225 -0
- package/generated-sqlite/models/Reference.ts +1175 -0
- package/generated-sqlite/models/Review.ts +1903 -0
- package/generated-sqlite/models/ReviewComment.ts +1899 -0
- package/generated-sqlite/models/RoleAssignment.ts +1125 -0
- package/generated-sqlite/models/Share.ts +1674 -0
- package/generated-sqlite/models/ShareVersion.ts +1385 -0
- package/generated-sqlite/models/SsoMapping.ts +1181 -0
- package/generated-sqlite/models/SsoProvider.ts +1266 -0
- package/generated-sqlite/models/Subscription.ts +2137 -0
- package/generated-sqlite/models/SystemSetting.ts +1215 -0
- package/generated-sqlite/models/Tag.ts +1652 -0
- package/generated-sqlite/models/TeamInvitation.ts +1523 -0
- package/generated-sqlite/models/TeamMembership.ts +1433 -0
- package/generated-sqlite/models/Template.ts +1389 -0
- package/generated-sqlite/models/TemplateBlock.ts +1660 -0
- package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
- package/generated-sqlite/models/UsageRecord.ts +1498 -0
- package/generated-sqlite/models/User.ts +13558 -0
- package/generated-sqlite/models/UserAgent.ts +1897 -0
- package/generated-sqlite/models/UserSkill.ts +1453 -0
- package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
- package/generated-sqlite/models/Workspace.ts +1824 -0
- package/generated-sqlite/models.ts +87 -0
- package/package.json +7 -3
- package/LICENSE +0 -661
|
@@ -0,0 +1,1438 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `ChatMessage` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model ChatMessage
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type ChatMessageModel = runtime.Types.Result.DefaultSelection<Prisma.$ChatMessagePayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateChatMessage = {
|
|
22
|
+
_count: ChatMessageCountAggregateOutputType | null
|
|
23
|
+
_min: ChatMessageMinAggregateOutputType | null
|
|
24
|
+
_max: ChatMessageMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ChatMessageMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
threadId: string | null
|
|
30
|
+
role: string | null
|
|
31
|
+
content: string | null
|
|
32
|
+
thinking: string | null
|
|
33
|
+
createdAt: Date | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type ChatMessageMaxAggregateOutputType = {
|
|
37
|
+
id: string | null
|
|
38
|
+
threadId: string | null
|
|
39
|
+
role: string | null
|
|
40
|
+
content: string | null
|
|
41
|
+
thinking: string | null
|
|
42
|
+
createdAt: Date | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type ChatMessageCountAggregateOutputType = {
|
|
46
|
+
id: number
|
|
47
|
+
threadId: number
|
|
48
|
+
role: number
|
|
49
|
+
content: number
|
|
50
|
+
parts: number
|
|
51
|
+
thinking: number
|
|
52
|
+
citations: number
|
|
53
|
+
createdAt: number
|
|
54
|
+
_all: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
export type ChatMessageMinAggregateInputType = {
|
|
59
|
+
id?: true
|
|
60
|
+
threadId?: true
|
|
61
|
+
role?: true
|
|
62
|
+
content?: true
|
|
63
|
+
thinking?: true
|
|
64
|
+
createdAt?: true
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ChatMessageMaxAggregateInputType = {
|
|
68
|
+
id?: true
|
|
69
|
+
threadId?: true
|
|
70
|
+
role?: true
|
|
71
|
+
content?: true
|
|
72
|
+
thinking?: true
|
|
73
|
+
createdAt?: true
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type ChatMessageCountAggregateInputType = {
|
|
77
|
+
id?: true
|
|
78
|
+
threadId?: true
|
|
79
|
+
role?: true
|
|
80
|
+
content?: true
|
|
81
|
+
parts?: true
|
|
82
|
+
thinking?: true
|
|
83
|
+
citations?: true
|
|
84
|
+
createdAt?: true
|
|
85
|
+
_all?: true
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type ChatMessageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
89
|
+
/**
|
|
90
|
+
* Filter which ChatMessage to aggregate.
|
|
91
|
+
*/
|
|
92
|
+
where?: Prisma.ChatMessageWhereInput
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
95
|
+
*
|
|
96
|
+
* Determine the order of ChatMessages to fetch.
|
|
97
|
+
*/
|
|
98
|
+
orderBy?: Prisma.ChatMessageOrderByWithRelationInput | Prisma.ChatMessageOrderByWithRelationInput[]
|
|
99
|
+
/**
|
|
100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
101
|
+
*
|
|
102
|
+
* Sets the start position
|
|
103
|
+
*/
|
|
104
|
+
cursor?: Prisma.ChatMessageWhereUniqueInput
|
|
105
|
+
/**
|
|
106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
107
|
+
*
|
|
108
|
+
* Take `±n` ChatMessages from the position of the cursor.
|
|
109
|
+
*/
|
|
110
|
+
take?: number
|
|
111
|
+
/**
|
|
112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
113
|
+
*
|
|
114
|
+
* Skip the first `n` ChatMessages.
|
|
115
|
+
*/
|
|
116
|
+
skip?: number
|
|
117
|
+
/**
|
|
118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
119
|
+
*
|
|
120
|
+
* Count returned ChatMessages
|
|
121
|
+
**/
|
|
122
|
+
_count?: true | ChatMessageCountAggregateInputType
|
|
123
|
+
/**
|
|
124
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
125
|
+
*
|
|
126
|
+
* Select which fields to find the minimum value
|
|
127
|
+
**/
|
|
128
|
+
_min?: ChatMessageMinAggregateInputType
|
|
129
|
+
/**
|
|
130
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
131
|
+
*
|
|
132
|
+
* Select which fields to find the maximum value
|
|
133
|
+
**/
|
|
134
|
+
_max?: ChatMessageMaxAggregateInputType
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type GetChatMessageAggregateType<T extends ChatMessageAggregateArgs> = {
|
|
138
|
+
[P in keyof T & keyof AggregateChatMessage]: P extends '_count' | 'count'
|
|
139
|
+
? T[P] extends true
|
|
140
|
+
? number
|
|
141
|
+
: Prisma.GetScalarType<T[P], AggregateChatMessage[P]>
|
|
142
|
+
: Prisma.GetScalarType<T[P], AggregateChatMessage[P]>
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
export type ChatMessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
149
|
+
where?: Prisma.ChatMessageWhereInput
|
|
150
|
+
orderBy?: Prisma.ChatMessageOrderByWithAggregationInput | Prisma.ChatMessageOrderByWithAggregationInput[]
|
|
151
|
+
by: Prisma.ChatMessageScalarFieldEnum[] | Prisma.ChatMessageScalarFieldEnum
|
|
152
|
+
having?: Prisma.ChatMessageScalarWhereWithAggregatesInput
|
|
153
|
+
take?: number
|
|
154
|
+
skip?: number
|
|
155
|
+
_count?: ChatMessageCountAggregateInputType | true
|
|
156
|
+
_min?: ChatMessageMinAggregateInputType
|
|
157
|
+
_max?: ChatMessageMaxAggregateInputType
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type ChatMessageGroupByOutputType = {
|
|
161
|
+
id: string
|
|
162
|
+
threadId: string
|
|
163
|
+
role: string
|
|
164
|
+
content: string
|
|
165
|
+
parts: runtime.JsonValue | null
|
|
166
|
+
thinking: string | null
|
|
167
|
+
citations: runtime.JsonValue | null
|
|
168
|
+
createdAt: Date
|
|
169
|
+
_count: ChatMessageCountAggregateOutputType | null
|
|
170
|
+
_min: ChatMessageMinAggregateOutputType | null
|
|
171
|
+
_max: ChatMessageMaxAggregateOutputType | null
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type GetChatMessageGroupByPayload<T extends ChatMessageGroupByArgs> = Prisma.PrismaPromise<
|
|
175
|
+
Array<
|
|
176
|
+
Prisma.PickEnumerable<ChatMessageGroupByOutputType, T['by']> &
|
|
177
|
+
{
|
|
178
|
+
[P in ((keyof T) & (keyof ChatMessageGroupByOutputType))]: P extends '_count'
|
|
179
|
+
? T[P] extends boolean
|
|
180
|
+
? number
|
|
181
|
+
: Prisma.GetScalarType<T[P], ChatMessageGroupByOutputType[P]>
|
|
182
|
+
: Prisma.GetScalarType<T[P], ChatMessageGroupByOutputType[P]>
|
|
183
|
+
}
|
|
184
|
+
>
|
|
185
|
+
>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
export type ChatMessageWhereInput = {
|
|
190
|
+
AND?: Prisma.ChatMessageWhereInput | Prisma.ChatMessageWhereInput[]
|
|
191
|
+
OR?: Prisma.ChatMessageWhereInput[]
|
|
192
|
+
NOT?: Prisma.ChatMessageWhereInput | Prisma.ChatMessageWhereInput[]
|
|
193
|
+
id?: Prisma.StringFilter<"ChatMessage"> | string
|
|
194
|
+
threadId?: Prisma.StringFilter<"ChatMessage"> | string
|
|
195
|
+
role?: Prisma.StringFilter<"ChatMessage"> | string
|
|
196
|
+
content?: Prisma.StringFilter<"ChatMessage"> | string
|
|
197
|
+
parts?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
198
|
+
thinking?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
199
|
+
citations?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
200
|
+
createdAt?: Prisma.DateTimeFilter<"ChatMessage"> | Date | string
|
|
201
|
+
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type ChatMessageOrderByWithRelationInput = {
|
|
205
|
+
id?: Prisma.SortOrder
|
|
206
|
+
threadId?: Prisma.SortOrder
|
|
207
|
+
role?: Prisma.SortOrder
|
|
208
|
+
content?: Prisma.SortOrder
|
|
209
|
+
parts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
210
|
+
thinking?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
211
|
+
citations?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
212
|
+
createdAt?: Prisma.SortOrder
|
|
213
|
+
thread?: Prisma.ChatThreadOrderByWithRelationInput
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type ChatMessageWhereUniqueInput = Prisma.AtLeast<{
|
|
217
|
+
id?: string
|
|
218
|
+
AND?: Prisma.ChatMessageWhereInput | Prisma.ChatMessageWhereInput[]
|
|
219
|
+
OR?: Prisma.ChatMessageWhereInput[]
|
|
220
|
+
NOT?: Prisma.ChatMessageWhereInput | Prisma.ChatMessageWhereInput[]
|
|
221
|
+
threadId?: Prisma.StringFilter<"ChatMessage"> | string
|
|
222
|
+
role?: Prisma.StringFilter<"ChatMessage"> | string
|
|
223
|
+
content?: Prisma.StringFilter<"ChatMessage"> | string
|
|
224
|
+
parts?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
225
|
+
thinking?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
226
|
+
citations?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
227
|
+
createdAt?: Prisma.DateTimeFilter<"ChatMessage"> | Date | string
|
|
228
|
+
thread?: Prisma.XOR<Prisma.ChatThreadScalarRelationFilter, Prisma.ChatThreadWhereInput>
|
|
229
|
+
}, "id">
|
|
230
|
+
|
|
231
|
+
export type ChatMessageOrderByWithAggregationInput = {
|
|
232
|
+
id?: Prisma.SortOrder
|
|
233
|
+
threadId?: Prisma.SortOrder
|
|
234
|
+
role?: Prisma.SortOrder
|
|
235
|
+
content?: Prisma.SortOrder
|
|
236
|
+
parts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
237
|
+
thinking?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
238
|
+
citations?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
239
|
+
createdAt?: Prisma.SortOrder
|
|
240
|
+
_count?: Prisma.ChatMessageCountOrderByAggregateInput
|
|
241
|
+
_max?: Prisma.ChatMessageMaxOrderByAggregateInput
|
|
242
|
+
_min?: Prisma.ChatMessageMinOrderByAggregateInput
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type ChatMessageScalarWhereWithAggregatesInput = {
|
|
246
|
+
AND?: Prisma.ChatMessageScalarWhereWithAggregatesInput | Prisma.ChatMessageScalarWhereWithAggregatesInput[]
|
|
247
|
+
OR?: Prisma.ChatMessageScalarWhereWithAggregatesInput[]
|
|
248
|
+
NOT?: Prisma.ChatMessageScalarWhereWithAggregatesInput | Prisma.ChatMessageScalarWhereWithAggregatesInput[]
|
|
249
|
+
id?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
250
|
+
threadId?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
251
|
+
role?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
252
|
+
content?: Prisma.StringWithAggregatesFilter<"ChatMessage"> | string
|
|
253
|
+
parts?: Prisma.JsonNullableWithAggregatesFilter<"ChatMessage">
|
|
254
|
+
thinking?: Prisma.StringNullableWithAggregatesFilter<"ChatMessage"> | string | null
|
|
255
|
+
citations?: Prisma.JsonNullableWithAggregatesFilter<"ChatMessage">
|
|
256
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ChatMessage"> | Date | string
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type ChatMessageCreateInput = {
|
|
260
|
+
id?: string
|
|
261
|
+
role: string
|
|
262
|
+
content: string
|
|
263
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
264
|
+
thinking?: string | null
|
|
265
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
266
|
+
createdAt?: Date | string
|
|
267
|
+
thread: Prisma.ChatThreadCreateNestedOneWithoutMessagesInput
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type ChatMessageUncheckedCreateInput = {
|
|
271
|
+
id?: string
|
|
272
|
+
threadId: string
|
|
273
|
+
role: string
|
|
274
|
+
content: string
|
|
275
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
276
|
+
thinking?: string | null
|
|
277
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
278
|
+
createdAt?: Date | string
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export type ChatMessageUpdateInput = {
|
|
282
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
283
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
284
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
285
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
286
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
287
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
288
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
289
|
+
thread?: Prisma.ChatThreadUpdateOneRequiredWithoutMessagesNestedInput
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export type ChatMessageUncheckedUpdateInput = {
|
|
293
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
294
|
+
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
295
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
296
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
297
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
298
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
299
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
300
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export type ChatMessageCreateManyInput = {
|
|
304
|
+
id?: string
|
|
305
|
+
threadId: string
|
|
306
|
+
role: string
|
|
307
|
+
content: string
|
|
308
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
309
|
+
thinking?: string | null
|
|
310
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
311
|
+
createdAt?: Date | string
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type ChatMessageUpdateManyMutationInput = {
|
|
315
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
316
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
317
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
318
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
319
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
320
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
321
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export type ChatMessageUncheckedUpdateManyInput = {
|
|
325
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
326
|
+
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
327
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
328
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
329
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
330
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
331
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
332
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export type ChatMessageListRelationFilter = {
|
|
336
|
+
every?: Prisma.ChatMessageWhereInput
|
|
337
|
+
some?: Prisma.ChatMessageWhereInput
|
|
338
|
+
none?: Prisma.ChatMessageWhereInput
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export type ChatMessageOrderByRelationAggregateInput = {
|
|
342
|
+
_count?: Prisma.SortOrder
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type ChatMessageCountOrderByAggregateInput = {
|
|
346
|
+
id?: Prisma.SortOrder
|
|
347
|
+
threadId?: Prisma.SortOrder
|
|
348
|
+
role?: Prisma.SortOrder
|
|
349
|
+
content?: Prisma.SortOrder
|
|
350
|
+
parts?: Prisma.SortOrder
|
|
351
|
+
thinking?: Prisma.SortOrder
|
|
352
|
+
citations?: Prisma.SortOrder
|
|
353
|
+
createdAt?: Prisma.SortOrder
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type ChatMessageMaxOrderByAggregateInput = {
|
|
357
|
+
id?: Prisma.SortOrder
|
|
358
|
+
threadId?: Prisma.SortOrder
|
|
359
|
+
role?: Prisma.SortOrder
|
|
360
|
+
content?: Prisma.SortOrder
|
|
361
|
+
thinking?: Prisma.SortOrder
|
|
362
|
+
createdAt?: Prisma.SortOrder
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export type ChatMessageMinOrderByAggregateInput = {
|
|
366
|
+
id?: Prisma.SortOrder
|
|
367
|
+
threadId?: Prisma.SortOrder
|
|
368
|
+
role?: Prisma.SortOrder
|
|
369
|
+
content?: Prisma.SortOrder
|
|
370
|
+
thinking?: Prisma.SortOrder
|
|
371
|
+
createdAt?: Prisma.SortOrder
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type ChatMessageCreateNestedManyWithoutThreadInput = {
|
|
375
|
+
create?: Prisma.XOR<Prisma.ChatMessageCreateWithoutThreadInput, Prisma.ChatMessageUncheckedCreateWithoutThreadInput> | Prisma.ChatMessageCreateWithoutThreadInput[] | Prisma.ChatMessageUncheckedCreateWithoutThreadInput[]
|
|
376
|
+
connectOrCreate?: Prisma.ChatMessageCreateOrConnectWithoutThreadInput | Prisma.ChatMessageCreateOrConnectWithoutThreadInput[]
|
|
377
|
+
createMany?: Prisma.ChatMessageCreateManyThreadInputEnvelope
|
|
378
|
+
connect?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type ChatMessageUncheckedCreateNestedManyWithoutThreadInput = {
|
|
382
|
+
create?: Prisma.XOR<Prisma.ChatMessageCreateWithoutThreadInput, Prisma.ChatMessageUncheckedCreateWithoutThreadInput> | Prisma.ChatMessageCreateWithoutThreadInput[] | Prisma.ChatMessageUncheckedCreateWithoutThreadInput[]
|
|
383
|
+
connectOrCreate?: Prisma.ChatMessageCreateOrConnectWithoutThreadInput | Prisma.ChatMessageCreateOrConnectWithoutThreadInput[]
|
|
384
|
+
createMany?: Prisma.ChatMessageCreateManyThreadInputEnvelope
|
|
385
|
+
connect?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export type ChatMessageUpdateManyWithoutThreadNestedInput = {
|
|
389
|
+
create?: Prisma.XOR<Prisma.ChatMessageCreateWithoutThreadInput, Prisma.ChatMessageUncheckedCreateWithoutThreadInput> | Prisma.ChatMessageCreateWithoutThreadInput[] | Prisma.ChatMessageUncheckedCreateWithoutThreadInput[]
|
|
390
|
+
connectOrCreate?: Prisma.ChatMessageCreateOrConnectWithoutThreadInput | Prisma.ChatMessageCreateOrConnectWithoutThreadInput[]
|
|
391
|
+
upsert?: Prisma.ChatMessageUpsertWithWhereUniqueWithoutThreadInput | Prisma.ChatMessageUpsertWithWhereUniqueWithoutThreadInput[]
|
|
392
|
+
createMany?: Prisma.ChatMessageCreateManyThreadInputEnvelope
|
|
393
|
+
set?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
394
|
+
disconnect?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
395
|
+
delete?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
396
|
+
connect?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
397
|
+
update?: Prisma.ChatMessageUpdateWithWhereUniqueWithoutThreadInput | Prisma.ChatMessageUpdateWithWhereUniqueWithoutThreadInput[]
|
|
398
|
+
updateMany?: Prisma.ChatMessageUpdateManyWithWhereWithoutThreadInput | Prisma.ChatMessageUpdateManyWithWhereWithoutThreadInput[]
|
|
399
|
+
deleteMany?: Prisma.ChatMessageScalarWhereInput | Prisma.ChatMessageScalarWhereInput[]
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export type ChatMessageUncheckedUpdateManyWithoutThreadNestedInput = {
|
|
403
|
+
create?: Prisma.XOR<Prisma.ChatMessageCreateWithoutThreadInput, Prisma.ChatMessageUncheckedCreateWithoutThreadInput> | Prisma.ChatMessageCreateWithoutThreadInput[] | Prisma.ChatMessageUncheckedCreateWithoutThreadInput[]
|
|
404
|
+
connectOrCreate?: Prisma.ChatMessageCreateOrConnectWithoutThreadInput | Prisma.ChatMessageCreateOrConnectWithoutThreadInput[]
|
|
405
|
+
upsert?: Prisma.ChatMessageUpsertWithWhereUniqueWithoutThreadInput | Prisma.ChatMessageUpsertWithWhereUniqueWithoutThreadInput[]
|
|
406
|
+
createMany?: Prisma.ChatMessageCreateManyThreadInputEnvelope
|
|
407
|
+
set?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
408
|
+
disconnect?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
409
|
+
delete?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
410
|
+
connect?: Prisma.ChatMessageWhereUniqueInput | Prisma.ChatMessageWhereUniqueInput[]
|
|
411
|
+
update?: Prisma.ChatMessageUpdateWithWhereUniqueWithoutThreadInput | Prisma.ChatMessageUpdateWithWhereUniqueWithoutThreadInput[]
|
|
412
|
+
updateMany?: Prisma.ChatMessageUpdateManyWithWhereWithoutThreadInput | Prisma.ChatMessageUpdateManyWithWhereWithoutThreadInput[]
|
|
413
|
+
deleteMany?: Prisma.ChatMessageScalarWhereInput | Prisma.ChatMessageScalarWhereInput[]
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type ChatMessageCreateWithoutThreadInput = {
|
|
417
|
+
id?: string
|
|
418
|
+
role: string
|
|
419
|
+
content: string
|
|
420
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
421
|
+
thinking?: string | null
|
|
422
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
423
|
+
createdAt?: Date | string
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export type ChatMessageUncheckedCreateWithoutThreadInput = {
|
|
427
|
+
id?: string
|
|
428
|
+
role: string
|
|
429
|
+
content: string
|
|
430
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
431
|
+
thinking?: string | null
|
|
432
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
433
|
+
createdAt?: Date | string
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export type ChatMessageCreateOrConnectWithoutThreadInput = {
|
|
437
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
438
|
+
create: Prisma.XOR<Prisma.ChatMessageCreateWithoutThreadInput, Prisma.ChatMessageUncheckedCreateWithoutThreadInput>
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type ChatMessageCreateManyThreadInputEnvelope = {
|
|
442
|
+
data: Prisma.ChatMessageCreateManyThreadInput | Prisma.ChatMessageCreateManyThreadInput[]
|
|
443
|
+
skipDuplicates?: boolean
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export type ChatMessageUpsertWithWhereUniqueWithoutThreadInput = {
|
|
447
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
448
|
+
update: Prisma.XOR<Prisma.ChatMessageUpdateWithoutThreadInput, Prisma.ChatMessageUncheckedUpdateWithoutThreadInput>
|
|
449
|
+
create: Prisma.XOR<Prisma.ChatMessageCreateWithoutThreadInput, Prisma.ChatMessageUncheckedCreateWithoutThreadInput>
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export type ChatMessageUpdateWithWhereUniqueWithoutThreadInput = {
|
|
453
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
454
|
+
data: Prisma.XOR<Prisma.ChatMessageUpdateWithoutThreadInput, Prisma.ChatMessageUncheckedUpdateWithoutThreadInput>
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export type ChatMessageUpdateManyWithWhereWithoutThreadInput = {
|
|
458
|
+
where: Prisma.ChatMessageScalarWhereInput
|
|
459
|
+
data: Prisma.XOR<Prisma.ChatMessageUpdateManyMutationInput, Prisma.ChatMessageUncheckedUpdateManyWithoutThreadInput>
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export type ChatMessageScalarWhereInput = {
|
|
463
|
+
AND?: Prisma.ChatMessageScalarWhereInput | Prisma.ChatMessageScalarWhereInput[]
|
|
464
|
+
OR?: Prisma.ChatMessageScalarWhereInput[]
|
|
465
|
+
NOT?: Prisma.ChatMessageScalarWhereInput | Prisma.ChatMessageScalarWhereInput[]
|
|
466
|
+
id?: Prisma.StringFilter<"ChatMessage"> | string
|
|
467
|
+
threadId?: Prisma.StringFilter<"ChatMessage"> | string
|
|
468
|
+
role?: Prisma.StringFilter<"ChatMessage"> | string
|
|
469
|
+
content?: Prisma.StringFilter<"ChatMessage"> | string
|
|
470
|
+
parts?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
471
|
+
thinking?: Prisma.StringNullableFilter<"ChatMessage"> | string | null
|
|
472
|
+
citations?: Prisma.JsonNullableFilter<"ChatMessage">
|
|
473
|
+
createdAt?: Prisma.DateTimeFilter<"ChatMessage"> | Date | string
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export type ChatMessageCreateManyThreadInput = {
|
|
477
|
+
id?: string
|
|
478
|
+
role: string
|
|
479
|
+
content: string
|
|
480
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
481
|
+
thinking?: string | null
|
|
482
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
483
|
+
createdAt?: Date | string
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export type ChatMessageUpdateWithoutThreadInput = {
|
|
487
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
488
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
489
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
490
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
491
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
492
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
493
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export type ChatMessageUncheckedUpdateWithoutThreadInput = {
|
|
497
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
498
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
499
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
500
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
501
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
502
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
503
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export type ChatMessageUncheckedUpdateManyWithoutThreadInput = {
|
|
507
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
508
|
+
role?: Prisma.StringFieldUpdateOperationsInput | string
|
|
509
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string
|
|
510
|
+
parts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
511
|
+
thinking?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
512
|
+
citations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
513
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
export type ChatMessageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
519
|
+
id?: boolean
|
|
520
|
+
threadId?: boolean
|
|
521
|
+
role?: boolean
|
|
522
|
+
content?: boolean
|
|
523
|
+
parts?: boolean
|
|
524
|
+
thinking?: boolean
|
|
525
|
+
citations?: boolean
|
|
526
|
+
createdAt?: boolean
|
|
527
|
+
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
528
|
+
}, ExtArgs["result"]["chatMessage"]>
|
|
529
|
+
|
|
530
|
+
export type ChatMessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
531
|
+
id?: boolean
|
|
532
|
+
threadId?: boolean
|
|
533
|
+
role?: boolean
|
|
534
|
+
content?: boolean
|
|
535
|
+
parts?: boolean
|
|
536
|
+
thinking?: boolean
|
|
537
|
+
citations?: boolean
|
|
538
|
+
createdAt?: boolean
|
|
539
|
+
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
540
|
+
}, ExtArgs["result"]["chatMessage"]>
|
|
541
|
+
|
|
542
|
+
export type ChatMessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
543
|
+
id?: boolean
|
|
544
|
+
threadId?: boolean
|
|
545
|
+
role?: boolean
|
|
546
|
+
content?: boolean
|
|
547
|
+
parts?: boolean
|
|
548
|
+
thinking?: boolean
|
|
549
|
+
citations?: boolean
|
|
550
|
+
createdAt?: boolean
|
|
551
|
+
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
552
|
+
}, ExtArgs["result"]["chatMessage"]>
|
|
553
|
+
|
|
554
|
+
export type ChatMessageSelectScalar = {
|
|
555
|
+
id?: boolean
|
|
556
|
+
threadId?: boolean
|
|
557
|
+
role?: boolean
|
|
558
|
+
content?: boolean
|
|
559
|
+
parts?: boolean
|
|
560
|
+
thinking?: boolean
|
|
561
|
+
citations?: boolean
|
|
562
|
+
createdAt?: boolean
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export type ChatMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "threadId" | "role" | "content" | "parts" | "thinking" | "citations" | "createdAt", ExtArgs["result"]["chatMessage"]>
|
|
566
|
+
export type ChatMessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
567
|
+
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
568
|
+
}
|
|
569
|
+
export type ChatMessageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
570
|
+
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
571
|
+
}
|
|
572
|
+
export type ChatMessageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
573
|
+
thread?: boolean | Prisma.ChatThreadDefaultArgs<ExtArgs>
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export type $ChatMessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
577
|
+
name: "ChatMessage"
|
|
578
|
+
objects: {
|
|
579
|
+
thread: Prisma.$ChatThreadPayload<ExtArgs>
|
|
580
|
+
}
|
|
581
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
582
|
+
id: string
|
|
583
|
+
threadId: string
|
|
584
|
+
role: string
|
|
585
|
+
content: string
|
|
586
|
+
parts: runtime.JsonValue | null
|
|
587
|
+
thinking: string | null
|
|
588
|
+
citations: runtime.JsonValue | null
|
|
589
|
+
createdAt: Date
|
|
590
|
+
}, ExtArgs["result"]["chatMessage"]>
|
|
591
|
+
composites: {}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export type ChatMessageGetPayload<S extends boolean | null | undefined | ChatMessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload, S>
|
|
595
|
+
|
|
596
|
+
export type ChatMessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
597
|
+
Omit<ChatMessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
598
|
+
select?: ChatMessageCountAggregateInputType | true
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export interface ChatMessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
602
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ChatMessage'], meta: { name: 'ChatMessage' } }
|
|
603
|
+
/**
|
|
604
|
+
* Find zero or one ChatMessage that matches the filter.
|
|
605
|
+
* @param {ChatMessageFindUniqueArgs} args - Arguments to find a ChatMessage
|
|
606
|
+
* @example
|
|
607
|
+
* // Get one ChatMessage
|
|
608
|
+
* const chatMessage = await prisma.chatMessage.findUnique({
|
|
609
|
+
* where: {
|
|
610
|
+
* // ... provide filter here
|
|
611
|
+
* }
|
|
612
|
+
* })
|
|
613
|
+
*/
|
|
614
|
+
findUnique<T extends ChatMessageFindUniqueArgs>(args: Prisma.SelectSubset<T, ChatMessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Find one ChatMessage that matches the filter or throw an error with `error.code='P2025'`
|
|
618
|
+
* if no matches were found.
|
|
619
|
+
* @param {ChatMessageFindUniqueOrThrowArgs} args - Arguments to find a ChatMessage
|
|
620
|
+
* @example
|
|
621
|
+
* // Get one ChatMessage
|
|
622
|
+
* const chatMessage = await prisma.chatMessage.findUniqueOrThrow({
|
|
623
|
+
* where: {
|
|
624
|
+
* // ... provide filter here
|
|
625
|
+
* }
|
|
626
|
+
* })
|
|
627
|
+
*/
|
|
628
|
+
findUniqueOrThrow<T extends ChatMessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ChatMessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Find the first ChatMessage that matches the filter.
|
|
632
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
633
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
634
|
+
* @param {ChatMessageFindFirstArgs} args - Arguments to find a ChatMessage
|
|
635
|
+
* @example
|
|
636
|
+
* // Get one ChatMessage
|
|
637
|
+
* const chatMessage = await prisma.chatMessage.findFirst({
|
|
638
|
+
* where: {
|
|
639
|
+
* // ... provide filter here
|
|
640
|
+
* }
|
|
641
|
+
* })
|
|
642
|
+
*/
|
|
643
|
+
findFirst<T extends ChatMessageFindFirstArgs>(args?: Prisma.SelectSubset<T, ChatMessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Find the first ChatMessage that matches the filter or
|
|
647
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
648
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
649
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
650
|
+
* @param {ChatMessageFindFirstOrThrowArgs} args - Arguments to find a ChatMessage
|
|
651
|
+
* @example
|
|
652
|
+
* // Get one ChatMessage
|
|
653
|
+
* const chatMessage = await prisma.chatMessage.findFirstOrThrow({
|
|
654
|
+
* where: {
|
|
655
|
+
* // ... provide filter here
|
|
656
|
+
* }
|
|
657
|
+
* })
|
|
658
|
+
*/
|
|
659
|
+
findFirstOrThrow<T extends ChatMessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ChatMessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Find zero or more ChatMessages that matches the filter.
|
|
663
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
664
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
665
|
+
* @param {ChatMessageFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
666
|
+
* @example
|
|
667
|
+
* // Get all ChatMessages
|
|
668
|
+
* const chatMessages = await prisma.chatMessage.findMany()
|
|
669
|
+
*
|
|
670
|
+
* // Get first 10 ChatMessages
|
|
671
|
+
* const chatMessages = await prisma.chatMessage.findMany({ take: 10 })
|
|
672
|
+
*
|
|
673
|
+
* // Only select the `id`
|
|
674
|
+
* const chatMessageWithIdOnly = await prisma.chatMessage.findMany({ select: { id: true } })
|
|
675
|
+
*
|
|
676
|
+
*/
|
|
677
|
+
findMany<T extends ChatMessageFindManyArgs>(args?: Prisma.SelectSubset<T, ChatMessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Create a ChatMessage.
|
|
681
|
+
* @param {ChatMessageCreateArgs} args - Arguments to create a ChatMessage.
|
|
682
|
+
* @example
|
|
683
|
+
* // Create one ChatMessage
|
|
684
|
+
* const ChatMessage = await prisma.chatMessage.create({
|
|
685
|
+
* data: {
|
|
686
|
+
* // ... data to create a ChatMessage
|
|
687
|
+
* }
|
|
688
|
+
* })
|
|
689
|
+
*
|
|
690
|
+
*/
|
|
691
|
+
create<T extends ChatMessageCreateArgs>(args: Prisma.SelectSubset<T, ChatMessageCreateArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Create many ChatMessages.
|
|
695
|
+
* @param {ChatMessageCreateManyArgs} args - Arguments to create many ChatMessages.
|
|
696
|
+
* @example
|
|
697
|
+
* // Create many ChatMessages
|
|
698
|
+
* const chatMessage = await prisma.chatMessage.createMany({
|
|
699
|
+
* data: [
|
|
700
|
+
* // ... provide data here
|
|
701
|
+
* ]
|
|
702
|
+
* })
|
|
703
|
+
*
|
|
704
|
+
*/
|
|
705
|
+
createMany<T extends ChatMessageCreateManyArgs>(args?: Prisma.SelectSubset<T, ChatMessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Create many ChatMessages and returns the data saved in the database.
|
|
709
|
+
* @param {ChatMessageCreateManyAndReturnArgs} args - Arguments to create many ChatMessages.
|
|
710
|
+
* @example
|
|
711
|
+
* // Create many ChatMessages
|
|
712
|
+
* const chatMessage = await prisma.chatMessage.createManyAndReturn({
|
|
713
|
+
* data: [
|
|
714
|
+
* // ... provide data here
|
|
715
|
+
* ]
|
|
716
|
+
* })
|
|
717
|
+
*
|
|
718
|
+
* // Create many ChatMessages and only return the `id`
|
|
719
|
+
* const chatMessageWithIdOnly = await prisma.chatMessage.createManyAndReturn({
|
|
720
|
+
* select: { id: true },
|
|
721
|
+
* data: [
|
|
722
|
+
* // ... provide data here
|
|
723
|
+
* ]
|
|
724
|
+
* })
|
|
725
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
726
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
727
|
+
*
|
|
728
|
+
*/
|
|
729
|
+
createManyAndReturn<T extends ChatMessageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ChatMessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Delete a ChatMessage.
|
|
733
|
+
* @param {ChatMessageDeleteArgs} args - Arguments to delete one ChatMessage.
|
|
734
|
+
* @example
|
|
735
|
+
* // Delete one ChatMessage
|
|
736
|
+
* const ChatMessage = await prisma.chatMessage.delete({
|
|
737
|
+
* where: {
|
|
738
|
+
* // ... filter to delete one ChatMessage
|
|
739
|
+
* }
|
|
740
|
+
* })
|
|
741
|
+
*
|
|
742
|
+
*/
|
|
743
|
+
delete<T extends ChatMessageDeleteArgs>(args: Prisma.SelectSubset<T, ChatMessageDeleteArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Update one ChatMessage.
|
|
747
|
+
* @param {ChatMessageUpdateArgs} args - Arguments to update one ChatMessage.
|
|
748
|
+
* @example
|
|
749
|
+
* // Update one ChatMessage
|
|
750
|
+
* const chatMessage = await prisma.chatMessage.update({
|
|
751
|
+
* where: {
|
|
752
|
+
* // ... provide filter here
|
|
753
|
+
* },
|
|
754
|
+
* data: {
|
|
755
|
+
* // ... provide data here
|
|
756
|
+
* }
|
|
757
|
+
* })
|
|
758
|
+
*
|
|
759
|
+
*/
|
|
760
|
+
update<T extends ChatMessageUpdateArgs>(args: Prisma.SelectSubset<T, ChatMessageUpdateArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Delete zero or more ChatMessages.
|
|
764
|
+
* @param {ChatMessageDeleteManyArgs} args - Arguments to filter ChatMessages to delete.
|
|
765
|
+
* @example
|
|
766
|
+
* // Delete a few ChatMessages
|
|
767
|
+
* const { count } = await prisma.chatMessage.deleteMany({
|
|
768
|
+
* where: {
|
|
769
|
+
* // ... provide filter here
|
|
770
|
+
* }
|
|
771
|
+
* })
|
|
772
|
+
*
|
|
773
|
+
*/
|
|
774
|
+
deleteMany<T extends ChatMessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, ChatMessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Update zero or more ChatMessages.
|
|
778
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
779
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
780
|
+
* @param {ChatMessageUpdateManyArgs} args - Arguments to update one or more rows.
|
|
781
|
+
* @example
|
|
782
|
+
* // Update many ChatMessages
|
|
783
|
+
* const chatMessage = await prisma.chatMessage.updateMany({
|
|
784
|
+
* where: {
|
|
785
|
+
* // ... provide filter here
|
|
786
|
+
* },
|
|
787
|
+
* data: {
|
|
788
|
+
* // ... provide data here
|
|
789
|
+
* }
|
|
790
|
+
* })
|
|
791
|
+
*
|
|
792
|
+
*/
|
|
793
|
+
updateMany<T extends ChatMessageUpdateManyArgs>(args: Prisma.SelectSubset<T, ChatMessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Update zero or more ChatMessages and returns the data updated in the database.
|
|
797
|
+
* @param {ChatMessageUpdateManyAndReturnArgs} args - Arguments to update many ChatMessages.
|
|
798
|
+
* @example
|
|
799
|
+
* // Update many ChatMessages
|
|
800
|
+
* const chatMessage = await prisma.chatMessage.updateManyAndReturn({
|
|
801
|
+
* where: {
|
|
802
|
+
* // ... provide filter here
|
|
803
|
+
* },
|
|
804
|
+
* data: [
|
|
805
|
+
* // ... provide data here
|
|
806
|
+
* ]
|
|
807
|
+
* })
|
|
808
|
+
*
|
|
809
|
+
* // Update zero or more ChatMessages and only return the `id`
|
|
810
|
+
* const chatMessageWithIdOnly = await prisma.chatMessage.updateManyAndReturn({
|
|
811
|
+
* select: { id: true },
|
|
812
|
+
* where: {
|
|
813
|
+
* // ... provide filter here
|
|
814
|
+
* },
|
|
815
|
+
* data: [
|
|
816
|
+
* // ... provide data here
|
|
817
|
+
* ]
|
|
818
|
+
* })
|
|
819
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
820
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
821
|
+
*
|
|
822
|
+
*/
|
|
823
|
+
updateManyAndReturn<T extends ChatMessageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ChatMessageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Create or update one ChatMessage.
|
|
827
|
+
* @param {ChatMessageUpsertArgs} args - Arguments to update or create a ChatMessage.
|
|
828
|
+
* @example
|
|
829
|
+
* // Update or create a ChatMessage
|
|
830
|
+
* const chatMessage = await prisma.chatMessage.upsert({
|
|
831
|
+
* create: {
|
|
832
|
+
* // ... data to create a ChatMessage
|
|
833
|
+
* },
|
|
834
|
+
* update: {
|
|
835
|
+
* // ... in case it already exists, update
|
|
836
|
+
* },
|
|
837
|
+
* where: {
|
|
838
|
+
* // ... the filter for the ChatMessage we want to update
|
|
839
|
+
* }
|
|
840
|
+
* })
|
|
841
|
+
*/
|
|
842
|
+
upsert<T extends ChatMessageUpsertArgs>(args: Prisma.SelectSubset<T, ChatMessageUpsertArgs<ExtArgs>>): Prisma.Prisma__ChatMessageClient<runtime.Types.Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Count the number of ChatMessages.
|
|
847
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
848
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
849
|
+
* @param {ChatMessageCountArgs} args - Arguments to filter ChatMessages to count.
|
|
850
|
+
* @example
|
|
851
|
+
* // Count the number of ChatMessages
|
|
852
|
+
* const count = await prisma.chatMessage.count({
|
|
853
|
+
* where: {
|
|
854
|
+
* // ... the filter for the ChatMessages we want to count
|
|
855
|
+
* }
|
|
856
|
+
* })
|
|
857
|
+
**/
|
|
858
|
+
count<T extends ChatMessageCountArgs>(
|
|
859
|
+
args?: Prisma.Subset<T, ChatMessageCountArgs>,
|
|
860
|
+
): Prisma.PrismaPromise<
|
|
861
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
862
|
+
? T['select'] extends true
|
|
863
|
+
? number
|
|
864
|
+
: Prisma.GetScalarType<T['select'], ChatMessageCountAggregateOutputType>
|
|
865
|
+
: number
|
|
866
|
+
>
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Allows you to perform aggregations operations on a ChatMessage.
|
|
870
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
871
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
872
|
+
* @param {ChatMessageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
873
|
+
* @example
|
|
874
|
+
* // Ordered by age ascending
|
|
875
|
+
* // Where email contains prisma.io
|
|
876
|
+
* // Limited to the 10 users
|
|
877
|
+
* const aggregations = await prisma.user.aggregate({
|
|
878
|
+
* _avg: {
|
|
879
|
+
* age: true,
|
|
880
|
+
* },
|
|
881
|
+
* where: {
|
|
882
|
+
* email: {
|
|
883
|
+
* contains: "prisma.io",
|
|
884
|
+
* },
|
|
885
|
+
* },
|
|
886
|
+
* orderBy: {
|
|
887
|
+
* age: "asc",
|
|
888
|
+
* },
|
|
889
|
+
* take: 10,
|
|
890
|
+
* })
|
|
891
|
+
**/
|
|
892
|
+
aggregate<T extends ChatMessageAggregateArgs>(args: Prisma.Subset<T, ChatMessageAggregateArgs>): Prisma.PrismaPromise<GetChatMessageAggregateType<T>>
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* Group by ChatMessage.
|
|
896
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
897
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
898
|
+
* @param {ChatMessageGroupByArgs} args - Group by arguments.
|
|
899
|
+
* @example
|
|
900
|
+
* // Group by city, order by createdAt, get count
|
|
901
|
+
* const result = await prisma.user.groupBy({
|
|
902
|
+
* by: ['city', 'createdAt'],
|
|
903
|
+
* orderBy: {
|
|
904
|
+
* createdAt: true
|
|
905
|
+
* },
|
|
906
|
+
* _count: {
|
|
907
|
+
* _all: true
|
|
908
|
+
* },
|
|
909
|
+
* })
|
|
910
|
+
*
|
|
911
|
+
**/
|
|
912
|
+
groupBy<
|
|
913
|
+
T extends ChatMessageGroupByArgs,
|
|
914
|
+
HasSelectOrTake extends Prisma.Or<
|
|
915
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
916
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
917
|
+
>,
|
|
918
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
919
|
+
? { orderBy: ChatMessageGroupByArgs['orderBy'] }
|
|
920
|
+
: { orderBy?: ChatMessageGroupByArgs['orderBy'] },
|
|
921
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
922
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
923
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
924
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
925
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
926
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
927
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
928
|
+
? `Error: "by" must not be empty.`
|
|
929
|
+
: HavingValid extends Prisma.False
|
|
930
|
+
? {
|
|
931
|
+
[P in HavingFields]: P extends ByFields
|
|
932
|
+
? never
|
|
933
|
+
: P extends string
|
|
934
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
935
|
+
: [
|
|
936
|
+
Error,
|
|
937
|
+
'Field ',
|
|
938
|
+
P,
|
|
939
|
+
` in "having" needs to be provided in "by"`,
|
|
940
|
+
]
|
|
941
|
+
}[HavingFields]
|
|
942
|
+
: 'take' extends Prisma.Keys<T>
|
|
943
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
944
|
+
? ByValid extends Prisma.True
|
|
945
|
+
? {}
|
|
946
|
+
: {
|
|
947
|
+
[P in OrderFields]: P extends ByFields
|
|
948
|
+
? never
|
|
949
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
950
|
+
}[OrderFields]
|
|
951
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
952
|
+
: 'skip' extends Prisma.Keys<T>
|
|
953
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
954
|
+
? ByValid extends Prisma.True
|
|
955
|
+
? {}
|
|
956
|
+
: {
|
|
957
|
+
[P in OrderFields]: P extends ByFields
|
|
958
|
+
? never
|
|
959
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
960
|
+
}[OrderFields]
|
|
961
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
962
|
+
: ByValid extends Prisma.True
|
|
963
|
+
? {}
|
|
964
|
+
: {
|
|
965
|
+
[P in OrderFields]: P extends ByFields
|
|
966
|
+
? never
|
|
967
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
968
|
+
}[OrderFields]
|
|
969
|
+
>(args: Prisma.SubsetIntersection<T, ChatMessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChatMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
970
|
+
/**
|
|
971
|
+
* Fields of the ChatMessage model
|
|
972
|
+
*/
|
|
973
|
+
readonly fields: ChatMessageFieldRefs;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* The delegate class that acts as a "Promise-like" for ChatMessage.
|
|
978
|
+
* Why is this prefixed with `Prisma__`?
|
|
979
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
980
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
981
|
+
*/
|
|
982
|
+
export interface Prisma__ChatMessageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
983
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
984
|
+
thread<T extends Prisma.ChatThreadDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ChatThreadDefaultArgs<ExtArgs>>): Prisma.Prisma__ChatThreadClient<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
985
|
+
/**
|
|
986
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
987
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
988
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
989
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
990
|
+
*/
|
|
991
|
+
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>
|
|
992
|
+
/**
|
|
993
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
994
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
995
|
+
* @returns A Promise for the completion of the callback.
|
|
996
|
+
*/
|
|
997
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
998
|
+
/**
|
|
999
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1000
|
+
* resolved value cannot be modified from the callback.
|
|
1001
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1002
|
+
* @returns A Promise for the completion of the callback.
|
|
1003
|
+
*/
|
|
1004
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Fields of the ChatMessage model
|
|
1012
|
+
*/
|
|
1013
|
+
export interface ChatMessageFieldRefs {
|
|
1014
|
+
readonly id: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1015
|
+
readonly threadId: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1016
|
+
readonly role: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1017
|
+
readonly content: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1018
|
+
readonly parts: Prisma.FieldRef<"ChatMessage", 'Json'>
|
|
1019
|
+
readonly thinking: Prisma.FieldRef<"ChatMessage", 'String'>
|
|
1020
|
+
readonly citations: Prisma.FieldRef<"ChatMessage", 'Json'>
|
|
1021
|
+
readonly createdAt: Prisma.FieldRef<"ChatMessage", 'DateTime'>
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
// Custom InputTypes
|
|
1026
|
+
/**
|
|
1027
|
+
* ChatMessage findUnique
|
|
1028
|
+
*/
|
|
1029
|
+
export type ChatMessageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1030
|
+
/**
|
|
1031
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1032
|
+
*/
|
|
1033
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1034
|
+
/**
|
|
1035
|
+
* Omit specific fields from the ChatMessage
|
|
1036
|
+
*/
|
|
1037
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1038
|
+
/**
|
|
1039
|
+
* Choose, which related nodes to fetch as well
|
|
1040
|
+
*/
|
|
1041
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1042
|
+
/**
|
|
1043
|
+
* Filter, which ChatMessage to fetch.
|
|
1044
|
+
*/
|
|
1045
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* ChatMessage findUniqueOrThrow
|
|
1050
|
+
*/
|
|
1051
|
+
export type ChatMessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1052
|
+
/**
|
|
1053
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1054
|
+
*/
|
|
1055
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1056
|
+
/**
|
|
1057
|
+
* Omit specific fields from the ChatMessage
|
|
1058
|
+
*/
|
|
1059
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1060
|
+
/**
|
|
1061
|
+
* Choose, which related nodes to fetch as well
|
|
1062
|
+
*/
|
|
1063
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1064
|
+
/**
|
|
1065
|
+
* Filter, which ChatMessage to fetch.
|
|
1066
|
+
*/
|
|
1067
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* ChatMessage findFirst
|
|
1072
|
+
*/
|
|
1073
|
+
export type ChatMessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1074
|
+
/**
|
|
1075
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1076
|
+
*/
|
|
1077
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1078
|
+
/**
|
|
1079
|
+
* Omit specific fields from the ChatMessage
|
|
1080
|
+
*/
|
|
1081
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1082
|
+
/**
|
|
1083
|
+
* Choose, which related nodes to fetch as well
|
|
1084
|
+
*/
|
|
1085
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1086
|
+
/**
|
|
1087
|
+
* Filter, which ChatMessage to fetch.
|
|
1088
|
+
*/
|
|
1089
|
+
where?: Prisma.ChatMessageWhereInput
|
|
1090
|
+
/**
|
|
1091
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1092
|
+
*
|
|
1093
|
+
* Determine the order of ChatMessages to fetch.
|
|
1094
|
+
*/
|
|
1095
|
+
orderBy?: Prisma.ChatMessageOrderByWithRelationInput | Prisma.ChatMessageOrderByWithRelationInput[]
|
|
1096
|
+
/**
|
|
1097
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1098
|
+
*
|
|
1099
|
+
* Sets the position for searching for ChatMessages.
|
|
1100
|
+
*/
|
|
1101
|
+
cursor?: Prisma.ChatMessageWhereUniqueInput
|
|
1102
|
+
/**
|
|
1103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1104
|
+
*
|
|
1105
|
+
* Take `±n` ChatMessages from the position of the cursor.
|
|
1106
|
+
*/
|
|
1107
|
+
take?: number
|
|
1108
|
+
/**
|
|
1109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1110
|
+
*
|
|
1111
|
+
* Skip the first `n` ChatMessages.
|
|
1112
|
+
*/
|
|
1113
|
+
skip?: number
|
|
1114
|
+
/**
|
|
1115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1116
|
+
*
|
|
1117
|
+
* Filter by unique combinations of ChatMessages.
|
|
1118
|
+
*/
|
|
1119
|
+
distinct?: Prisma.ChatMessageScalarFieldEnum | Prisma.ChatMessageScalarFieldEnum[]
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* ChatMessage findFirstOrThrow
|
|
1124
|
+
*/
|
|
1125
|
+
export type ChatMessageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1126
|
+
/**
|
|
1127
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1128
|
+
*/
|
|
1129
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1130
|
+
/**
|
|
1131
|
+
* Omit specific fields from the ChatMessage
|
|
1132
|
+
*/
|
|
1133
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1134
|
+
/**
|
|
1135
|
+
* Choose, which related nodes to fetch as well
|
|
1136
|
+
*/
|
|
1137
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1138
|
+
/**
|
|
1139
|
+
* Filter, which ChatMessage to fetch.
|
|
1140
|
+
*/
|
|
1141
|
+
where?: Prisma.ChatMessageWhereInput
|
|
1142
|
+
/**
|
|
1143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1144
|
+
*
|
|
1145
|
+
* Determine the order of ChatMessages to fetch.
|
|
1146
|
+
*/
|
|
1147
|
+
orderBy?: Prisma.ChatMessageOrderByWithRelationInput | Prisma.ChatMessageOrderByWithRelationInput[]
|
|
1148
|
+
/**
|
|
1149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1150
|
+
*
|
|
1151
|
+
* Sets the position for searching for ChatMessages.
|
|
1152
|
+
*/
|
|
1153
|
+
cursor?: Prisma.ChatMessageWhereUniqueInput
|
|
1154
|
+
/**
|
|
1155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1156
|
+
*
|
|
1157
|
+
* Take `±n` ChatMessages from the position of the cursor.
|
|
1158
|
+
*/
|
|
1159
|
+
take?: number
|
|
1160
|
+
/**
|
|
1161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1162
|
+
*
|
|
1163
|
+
* Skip the first `n` ChatMessages.
|
|
1164
|
+
*/
|
|
1165
|
+
skip?: number
|
|
1166
|
+
/**
|
|
1167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1168
|
+
*
|
|
1169
|
+
* Filter by unique combinations of ChatMessages.
|
|
1170
|
+
*/
|
|
1171
|
+
distinct?: Prisma.ChatMessageScalarFieldEnum | Prisma.ChatMessageScalarFieldEnum[]
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* ChatMessage findMany
|
|
1176
|
+
*/
|
|
1177
|
+
export type ChatMessageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1178
|
+
/**
|
|
1179
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1180
|
+
*/
|
|
1181
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1182
|
+
/**
|
|
1183
|
+
* Omit specific fields from the ChatMessage
|
|
1184
|
+
*/
|
|
1185
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1186
|
+
/**
|
|
1187
|
+
* Choose, which related nodes to fetch as well
|
|
1188
|
+
*/
|
|
1189
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1190
|
+
/**
|
|
1191
|
+
* Filter, which ChatMessages to fetch.
|
|
1192
|
+
*/
|
|
1193
|
+
where?: Prisma.ChatMessageWhereInput
|
|
1194
|
+
/**
|
|
1195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1196
|
+
*
|
|
1197
|
+
* Determine the order of ChatMessages to fetch.
|
|
1198
|
+
*/
|
|
1199
|
+
orderBy?: Prisma.ChatMessageOrderByWithRelationInput | Prisma.ChatMessageOrderByWithRelationInput[]
|
|
1200
|
+
/**
|
|
1201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1202
|
+
*
|
|
1203
|
+
* Sets the position for listing ChatMessages.
|
|
1204
|
+
*/
|
|
1205
|
+
cursor?: Prisma.ChatMessageWhereUniqueInput
|
|
1206
|
+
/**
|
|
1207
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1208
|
+
*
|
|
1209
|
+
* Take `±n` ChatMessages from the position of the cursor.
|
|
1210
|
+
*/
|
|
1211
|
+
take?: number
|
|
1212
|
+
/**
|
|
1213
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1214
|
+
*
|
|
1215
|
+
* Skip the first `n` ChatMessages.
|
|
1216
|
+
*/
|
|
1217
|
+
skip?: number
|
|
1218
|
+
/**
|
|
1219
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1220
|
+
*
|
|
1221
|
+
* Filter by unique combinations of ChatMessages.
|
|
1222
|
+
*/
|
|
1223
|
+
distinct?: Prisma.ChatMessageScalarFieldEnum | Prisma.ChatMessageScalarFieldEnum[]
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* ChatMessage create
|
|
1228
|
+
*/
|
|
1229
|
+
export type ChatMessageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1230
|
+
/**
|
|
1231
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1232
|
+
*/
|
|
1233
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1234
|
+
/**
|
|
1235
|
+
* Omit specific fields from the ChatMessage
|
|
1236
|
+
*/
|
|
1237
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1238
|
+
/**
|
|
1239
|
+
* Choose, which related nodes to fetch as well
|
|
1240
|
+
*/
|
|
1241
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1242
|
+
/**
|
|
1243
|
+
* The data needed to create a ChatMessage.
|
|
1244
|
+
*/
|
|
1245
|
+
data: Prisma.XOR<Prisma.ChatMessageCreateInput, Prisma.ChatMessageUncheckedCreateInput>
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* ChatMessage createMany
|
|
1250
|
+
*/
|
|
1251
|
+
export type ChatMessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1252
|
+
/**
|
|
1253
|
+
* The data used to create many ChatMessages.
|
|
1254
|
+
*/
|
|
1255
|
+
data: Prisma.ChatMessageCreateManyInput | Prisma.ChatMessageCreateManyInput[]
|
|
1256
|
+
skipDuplicates?: boolean
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* ChatMessage createManyAndReturn
|
|
1261
|
+
*/
|
|
1262
|
+
export type ChatMessageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1263
|
+
/**
|
|
1264
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1265
|
+
*/
|
|
1266
|
+
select?: Prisma.ChatMessageSelectCreateManyAndReturn<ExtArgs> | null
|
|
1267
|
+
/**
|
|
1268
|
+
* Omit specific fields from the ChatMessage
|
|
1269
|
+
*/
|
|
1270
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1271
|
+
/**
|
|
1272
|
+
* The data used to create many ChatMessages.
|
|
1273
|
+
*/
|
|
1274
|
+
data: Prisma.ChatMessageCreateManyInput | Prisma.ChatMessageCreateManyInput[]
|
|
1275
|
+
skipDuplicates?: boolean
|
|
1276
|
+
/**
|
|
1277
|
+
* Choose, which related nodes to fetch as well
|
|
1278
|
+
*/
|
|
1279
|
+
include?: Prisma.ChatMessageIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* ChatMessage update
|
|
1284
|
+
*/
|
|
1285
|
+
export type ChatMessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1286
|
+
/**
|
|
1287
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1288
|
+
*/
|
|
1289
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1290
|
+
/**
|
|
1291
|
+
* Omit specific fields from the ChatMessage
|
|
1292
|
+
*/
|
|
1293
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1294
|
+
/**
|
|
1295
|
+
* Choose, which related nodes to fetch as well
|
|
1296
|
+
*/
|
|
1297
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1298
|
+
/**
|
|
1299
|
+
* The data needed to update a ChatMessage.
|
|
1300
|
+
*/
|
|
1301
|
+
data: Prisma.XOR<Prisma.ChatMessageUpdateInput, Prisma.ChatMessageUncheckedUpdateInput>
|
|
1302
|
+
/**
|
|
1303
|
+
* Choose, which ChatMessage to update.
|
|
1304
|
+
*/
|
|
1305
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* ChatMessage updateMany
|
|
1310
|
+
*/
|
|
1311
|
+
export type ChatMessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1312
|
+
/**
|
|
1313
|
+
* The data used to update ChatMessages.
|
|
1314
|
+
*/
|
|
1315
|
+
data: Prisma.XOR<Prisma.ChatMessageUpdateManyMutationInput, Prisma.ChatMessageUncheckedUpdateManyInput>
|
|
1316
|
+
/**
|
|
1317
|
+
* Filter which ChatMessages to update
|
|
1318
|
+
*/
|
|
1319
|
+
where?: Prisma.ChatMessageWhereInput
|
|
1320
|
+
/**
|
|
1321
|
+
* Limit how many ChatMessages to update.
|
|
1322
|
+
*/
|
|
1323
|
+
limit?: number
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* ChatMessage updateManyAndReturn
|
|
1328
|
+
*/
|
|
1329
|
+
export type ChatMessageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1330
|
+
/**
|
|
1331
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1332
|
+
*/
|
|
1333
|
+
select?: Prisma.ChatMessageSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1334
|
+
/**
|
|
1335
|
+
* Omit specific fields from the ChatMessage
|
|
1336
|
+
*/
|
|
1337
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1338
|
+
/**
|
|
1339
|
+
* The data used to update ChatMessages.
|
|
1340
|
+
*/
|
|
1341
|
+
data: Prisma.XOR<Prisma.ChatMessageUpdateManyMutationInput, Prisma.ChatMessageUncheckedUpdateManyInput>
|
|
1342
|
+
/**
|
|
1343
|
+
* Filter which ChatMessages to update
|
|
1344
|
+
*/
|
|
1345
|
+
where?: Prisma.ChatMessageWhereInput
|
|
1346
|
+
/**
|
|
1347
|
+
* Limit how many ChatMessages to update.
|
|
1348
|
+
*/
|
|
1349
|
+
limit?: number
|
|
1350
|
+
/**
|
|
1351
|
+
* Choose, which related nodes to fetch as well
|
|
1352
|
+
*/
|
|
1353
|
+
include?: Prisma.ChatMessageIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* ChatMessage upsert
|
|
1358
|
+
*/
|
|
1359
|
+
export type ChatMessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1360
|
+
/**
|
|
1361
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1362
|
+
*/
|
|
1363
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1364
|
+
/**
|
|
1365
|
+
* Omit specific fields from the ChatMessage
|
|
1366
|
+
*/
|
|
1367
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1368
|
+
/**
|
|
1369
|
+
* Choose, which related nodes to fetch as well
|
|
1370
|
+
*/
|
|
1371
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1372
|
+
/**
|
|
1373
|
+
* The filter to search for the ChatMessage to update in case it exists.
|
|
1374
|
+
*/
|
|
1375
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
1376
|
+
/**
|
|
1377
|
+
* In case the ChatMessage found by the `where` argument doesn't exist, create a new ChatMessage with this data.
|
|
1378
|
+
*/
|
|
1379
|
+
create: Prisma.XOR<Prisma.ChatMessageCreateInput, Prisma.ChatMessageUncheckedCreateInput>
|
|
1380
|
+
/**
|
|
1381
|
+
* In case the ChatMessage was found with the provided `where` argument, update it with this data.
|
|
1382
|
+
*/
|
|
1383
|
+
update: Prisma.XOR<Prisma.ChatMessageUpdateInput, Prisma.ChatMessageUncheckedUpdateInput>
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* ChatMessage delete
|
|
1388
|
+
*/
|
|
1389
|
+
export type ChatMessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1390
|
+
/**
|
|
1391
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1392
|
+
*/
|
|
1393
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1394
|
+
/**
|
|
1395
|
+
* Omit specific fields from the ChatMessage
|
|
1396
|
+
*/
|
|
1397
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1398
|
+
/**
|
|
1399
|
+
* Choose, which related nodes to fetch as well
|
|
1400
|
+
*/
|
|
1401
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1402
|
+
/**
|
|
1403
|
+
* Filter which ChatMessage to delete.
|
|
1404
|
+
*/
|
|
1405
|
+
where: Prisma.ChatMessageWhereUniqueInput
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* ChatMessage deleteMany
|
|
1410
|
+
*/
|
|
1411
|
+
export type ChatMessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1412
|
+
/**
|
|
1413
|
+
* Filter which ChatMessages to delete
|
|
1414
|
+
*/
|
|
1415
|
+
where?: Prisma.ChatMessageWhereInput
|
|
1416
|
+
/**
|
|
1417
|
+
* Limit how many ChatMessages to delete.
|
|
1418
|
+
*/
|
|
1419
|
+
limit?: number
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* ChatMessage without action
|
|
1424
|
+
*/
|
|
1425
|
+
export type ChatMessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1426
|
+
/**
|
|
1427
|
+
* Select specific fields to fetch from the ChatMessage
|
|
1428
|
+
*/
|
|
1429
|
+
select?: Prisma.ChatMessageSelect<ExtArgs> | null
|
|
1430
|
+
/**
|
|
1431
|
+
* Omit specific fields from the ChatMessage
|
|
1432
|
+
*/
|
|
1433
|
+
omit?: Prisma.ChatMessageOmit<ExtArgs> | null
|
|
1434
|
+
/**
|
|
1435
|
+
* Choose, which related nodes to fetch as well
|
|
1436
|
+
*/
|
|
1437
|
+
include?: Prisma.ChatMessageInclude<ExtArgs> | null
|
|
1438
|
+
}
|