@allbluecn/database 0.11.0 → 0.12.0

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