@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,1897 @@
|
|
|
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 `UserAgent` 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 UserAgent
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type UserAgentModel = runtime.Types.Result.DefaultSelection<Prisma.$UserAgentPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateUserAgent = {
|
|
22
|
+
_count: UserAgentCountAggregateOutputType | null
|
|
23
|
+
_avg: UserAgentAvgAggregateOutputType | null
|
|
24
|
+
_sum: UserAgentSumAggregateOutputType | null
|
|
25
|
+
_min: UserAgentMinAggregateOutputType | null
|
|
26
|
+
_max: UserAgentMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type UserAgentAvgAggregateOutputType = {
|
|
30
|
+
temperature: number | null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type UserAgentSumAggregateOutputType = {
|
|
34
|
+
temperature: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type UserAgentMinAggregateOutputType = {
|
|
38
|
+
id: string | null
|
|
39
|
+
userId: string | null
|
|
40
|
+
name: string | null
|
|
41
|
+
description: string | null
|
|
42
|
+
avatarEmoji: string | null
|
|
43
|
+
systemPrompt: string | null
|
|
44
|
+
model: string | null
|
|
45
|
+
temperature: number | null
|
|
46
|
+
greeting: string | null
|
|
47
|
+
createdAt: Date | null
|
|
48
|
+
updatedAt: Date | null
|
|
49
|
+
isDeleted: boolean | null
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type UserAgentMaxAggregateOutputType = {
|
|
53
|
+
id: string | null
|
|
54
|
+
userId: string | null
|
|
55
|
+
name: string | null
|
|
56
|
+
description: string | null
|
|
57
|
+
avatarEmoji: string | null
|
|
58
|
+
systemPrompt: string | null
|
|
59
|
+
model: string | null
|
|
60
|
+
temperature: number | null
|
|
61
|
+
greeting: string | null
|
|
62
|
+
createdAt: Date | null
|
|
63
|
+
updatedAt: Date | null
|
|
64
|
+
isDeleted: boolean | null
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type UserAgentCountAggregateOutputType = {
|
|
68
|
+
id: number
|
|
69
|
+
userId: number
|
|
70
|
+
name: number
|
|
71
|
+
description: number
|
|
72
|
+
avatarEmoji: number
|
|
73
|
+
systemPrompt: number
|
|
74
|
+
allowedTools: number
|
|
75
|
+
model: number
|
|
76
|
+
temperature: number
|
|
77
|
+
greeting: number
|
|
78
|
+
suggestedPrompts: number
|
|
79
|
+
knowledgeBaseIds: number
|
|
80
|
+
createdAt: number
|
|
81
|
+
updatedAt: number
|
|
82
|
+
isDeleted: number
|
|
83
|
+
_all: number
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
export type UserAgentAvgAggregateInputType = {
|
|
88
|
+
temperature?: true
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type UserAgentSumAggregateInputType = {
|
|
92
|
+
temperature?: true
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type UserAgentMinAggregateInputType = {
|
|
96
|
+
id?: true
|
|
97
|
+
userId?: true
|
|
98
|
+
name?: true
|
|
99
|
+
description?: true
|
|
100
|
+
avatarEmoji?: true
|
|
101
|
+
systemPrompt?: true
|
|
102
|
+
model?: true
|
|
103
|
+
temperature?: true
|
|
104
|
+
greeting?: true
|
|
105
|
+
createdAt?: true
|
|
106
|
+
updatedAt?: true
|
|
107
|
+
isDeleted?: true
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type UserAgentMaxAggregateInputType = {
|
|
111
|
+
id?: true
|
|
112
|
+
userId?: true
|
|
113
|
+
name?: true
|
|
114
|
+
description?: true
|
|
115
|
+
avatarEmoji?: true
|
|
116
|
+
systemPrompt?: true
|
|
117
|
+
model?: true
|
|
118
|
+
temperature?: true
|
|
119
|
+
greeting?: true
|
|
120
|
+
createdAt?: true
|
|
121
|
+
updatedAt?: true
|
|
122
|
+
isDeleted?: true
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type UserAgentCountAggregateInputType = {
|
|
126
|
+
id?: true
|
|
127
|
+
userId?: true
|
|
128
|
+
name?: true
|
|
129
|
+
description?: true
|
|
130
|
+
avatarEmoji?: true
|
|
131
|
+
systemPrompt?: true
|
|
132
|
+
allowedTools?: true
|
|
133
|
+
model?: true
|
|
134
|
+
temperature?: true
|
|
135
|
+
greeting?: true
|
|
136
|
+
suggestedPrompts?: true
|
|
137
|
+
knowledgeBaseIds?: true
|
|
138
|
+
createdAt?: true
|
|
139
|
+
updatedAt?: true
|
|
140
|
+
isDeleted?: true
|
|
141
|
+
_all?: true
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type UserAgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
145
|
+
/**
|
|
146
|
+
* Filter which UserAgent to aggregate.
|
|
147
|
+
*/
|
|
148
|
+
where?: Prisma.UserAgentWhereInput
|
|
149
|
+
/**
|
|
150
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
151
|
+
*
|
|
152
|
+
* Determine the order of UserAgents to fetch.
|
|
153
|
+
*/
|
|
154
|
+
orderBy?: Prisma.UserAgentOrderByWithRelationInput | Prisma.UserAgentOrderByWithRelationInput[]
|
|
155
|
+
/**
|
|
156
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
157
|
+
*
|
|
158
|
+
* Sets the start position
|
|
159
|
+
*/
|
|
160
|
+
cursor?: Prisma.UserAgentWhereUniqueInput
|
|
161
|
+
/**
|
|
162
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
163
|
+
*
|
|
164
|
+
* Take `±n` UserAgents from the position of the cursor.
|
|
165
|
+
*/
|
|
166
|
+
take?: number
|
|
167
|
+
/**
|
|
168
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
169
|
+
*
|
|
170
|
+
* Skip the first `n` UserAgents.
|
|
171
|
+
*/
|
|
172
|
+
skip?: number
|
|
173
|
+
/**
|
|
174
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
175
|
+
*
|
|
176
|
+
* Count returned UserAgents
|
|
177
|
+
**/
|
|
178
|
+
_count?: true | UserAgentCountAggregateInputType
|
|
179
|
+
/**
|
|
180
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
181
|
+
*
|
|
182
|
+
* Select which fields to average
|
|
183
|
+
**/
|
|
184
|
+
_avg?: UserAgentAvgAggregateInputType
|
|
185
|
+
/**
|
|
186
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
187
|
+
*
|
|
188
|
+
* Select which fields to sum
|
|
189
|
+
**/
|
|
190
|
+
_sum?: UserAgentSumAggregateInputType
|
|
191
|
+
/**
|
|
192
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
193
|
+
*
|
|
194
|
+
* Select which fields to find the minimum value
|
|
195
|
+
**/
|
|
196
|
+
_min?: UserAgentMinAggregateInputType
|
|
197
|
+
/**
|
|
198
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
199
|
+
*
|
|
200
|
+
* Select which fields to find the maximum value
|
|
201
|
+
**/
|
|
202
|
+
_max?: UserAgentMaxAggregateInputType
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type GetUserAgentAggregateType<T extends UserAgentAggregateArgs> = {
|
|
206
|
+
[P in keyof T & keyof AggregateUserAgent]: P extends '_count' | 'count'
|
|
207
|
+
? T[P] extends true
|
|
208
|
+
? number
|
|
209
|
+
: Prisma.GetScalarType<T[P], AggregateUserAgent[P]>
|
|
210
|
+
: Prisma.GetScalarType<T[P], AggregateUserAgent[P]>
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
export type UserAgentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
217
|
+
where?: Prisma.UserAgentWhereInput
|
|
218
|
+
orderBy?: Prisma.UserAgentOrderByWithAggregationInput | Prisma.UserAgentOrderByWithAggregationInput[]
|
|
219
|
+
by: Prisma.UserAgentScalarFieldEnum[] | Prisma.UserAgentScalarFieldEnum
|
|
220
|
+
having?: Prisma.UserAgentScalarWhereWithAggregatesInput
|
|
221
|
+
take?: number
|
|
222
|
+
skip?: number
|
|
223
|
+
_count?: UserAgentCountAggregateInputType | true
|
|
224
|
+
_avg?: UserAgentAvgAggregateInputType
|
|
225
|
+
_sum?: UserAgentSumAggregateInputType
|
|
226
|
+
_min?: UserAgentMinAggregateInputType
|
|
227
|
+
_max?: UserAgentMaxAggregateInputType
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export type UserAgentGroupByOutputType = {
|
|
231
|
+
id: string
|
|
232
|
+
userId: string
|
|
233
|
+
name: string
|
|
234
|
+
description: string | null
|
|
235
|
+
avatarEmoji: string | null
|
|
236
|
+
systemPrompt: string
|
|
237
|
+
allowedTools: runtime.JsonValue
|
|
238
|
+
model: string | null
|
|
239
|
+
temperature: number | null
|
|
240
|
+
greeting: string | null
|
|
241
|
+
suggestedPrompts: runtime.JsonValue | null
|
|
242
|
+
knowledgeBaseIds: runtime.JsonValue
|
|
243
|
+
createdAt: Date
|
|
244
|
+
updatedAt: Date
|
|
245
|
+
isDeleted: boolean
|
|
246
|
+
_count: UserAgentCountAggregateOutputType | null
|
|
247
|
+
_avg: UserAgentAvgAggregateOutputType | null
|
|
248
|
+
_sum: UserAgentSumAggregateOutputType | null
|
|
249
|
+
_min: UserAgentMinAggregateOutputType | null
|
|
250
|
+
_max: UserAgentMaxAggregateOutputType | null
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type GetUserAgentGroupByPayload<T extends UserAgentGroupByArgs> = Prisma.PrismaPromise<
|
|
254
|
+
Array<
|
|
255
|
+
Prisma.PickEnumerable<UserAgentGroupByOutputType, T['by']> &
|
|
256
|
+
{
|
|
257
|
+
[P in ((keyof T) & (keyof UserAgentGroupByOutputType))]: P extends '_count'
|
|
258
|
+
? T[P] extends boolean
|
|
259
|
+
? number
|
|
260
|
+
: Prisma.GetScalarType<T[P], UserAgentGroupByOutputType[P]>
|
|
261
|
+
: Prisma.GetScalarType<T[P], UserAgentGroupByOutputType[P]>
|
|
262
|
+
}
|
|
263
|
+
>
|
|
264
|
+
>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
export type UserAgentWhereInput = {
|
|
269
|
+
AND?: Prisma.UserAgentWhereInput | Prisma.UserAgentWhereInput[]
|
|
270
|
+
OR?: Prisma.UserAgentWhereInput[]
|
|
271
|
+
NOT?: Prisma.UserAgentWhereInput | Prisma.UserAgentWhereInput[]
|
|
272
|
+
id?: Prisma.StringFilter<"UserAgent"> | string
|
|
273
|
+
userId?: Prisma.StringFilter<"UserAgent"> | string
|
|
274
|
+
name?: Prisma.StringFilter<"UserAgent"> | string
|
|
275
|
+
description?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
276
|
+
avatarEmoji?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
277
|
+
systemPrompt?: Prisma.StringFilter<"UserAgent"> | string
|
|
278
|
+
allowedTools?: Prisma.JsonFilter<"UserAgent">
|
|
279
|
+
model?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
280
|
+
temperature?: Prisma.FloatNullableFilter<"UserAgent"> | number | null
|
|
281
|
+
greeting?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
282
|
+
suggestedPrompts?: Prisma.JsonNullableFilter<"UserAgent">
|
|
283
|
+
knowledgeBaseIds?: Prisma.JsonFilter<"UserAgent">
|
|
284
|
+
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
285
|
+
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
286
|
+
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
287
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
288
|
+
threads?: Prisma.ChatThreadListRelationFilter
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export type UserAgentOrderByWithRelationInput = {
|
|
292
|
+
id?: Prisma.SortOrder
|
|
293
|
+
userId?: Prisma.SortOrder
|
|
294
|
+
name?: Prisma.SortOrder
|
|
295
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
296
|
+
avatarEmoji?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
297
|
+
systemPrompt?: Prisma.SortOrder
|
|
298
|
+
allowedTools?: Prisma.SortOrder
|
|
299
|
+
model?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
300
|
+
temperature?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
301
|
+
greeting?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
302
|
+
suggestedPrompts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
303
|
+
knowledgeBaseIds?: Prisma.SortOrder
|
|
304
|
+
createdAt?: Prisma.SortOrder
|
|
305
|
+
updatedAt?: Prisma.SortOrder
|
|
306
|
+
isDeleted?: Prisma.SortOrder
|
|
307
|
+
user?: Prisma.UserOrderByWithRelationInput
|
|
308
|
+
threads?: Prisma.ChatThreadOrderByRelationAggregateInput
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type UserAgentWhereUniqueInput = Prisma.AtLeast<{
|
|
312
|
+
id?: string
|
|
313
|
+
AND?: Prisma.UserAgentWhereInput | Prisma.UserAgentWhereInput[]
|
|
314
|
+
OR?: Prisma.UserAgentWhereInput[]
|
|
315
|
+
NOT?: Prisma.UserAgentWhereInput | Prisma.UserAgentWhereInput[]
|
|
316
|
+
userId?: Prisma.StringFilter<"UserAgent"> | string
|
|
317
|
+
name?: Prisma.StringFilter<"UserAgent"> | string
|
|
318
|
+
description?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
319
|
+
avatarEmoji?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
320
|
+
systemPrompt?: Prisma.StringFilter<"UserAgent"> | string
|
|
321
|
+
allowedTools?: Prisma.JsonFilter<"UserAgent">
|
|
322
|
+
model?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
323
|
+
temperature?: Prisma.FloatNullableFilter<"UserAgent"> | number | null
|
|
324
|
+
greeting?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
325
|
+
suggestedPrompts?: Prisma.JsonNullableFilter<"UserAgent">
|
|
326
|
+
knowledgeBaseIds?: Prisma.JsonFilter<"UserAgent">
|
|
327
|
+
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
328
|
+
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
329
|
+
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
330
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
331
|
+
threads?: Prisma.ChatThreadListRelationFilter
|
|
332
|
+
}, "id">
|
|
333
|
+
|
|
334
|
+
export type UserAgentOrderByWithAggregationInput = {
|
|
335
|
+
id?: Prisma.SortOrder
|
|
336
|
+
userId?: Prisma.SortOrder
|
|
337
|
+
name?: Prisma.SortOrder
|
|
338
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
339
|
+
avatarEmoji?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
340
|
+
systemPrompt?: Prisma.SortOrder
|
|
341
|
+
allowedTools?: Prisma.SortOrder
|
|
342
|
+
model?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
343
|
+
temperature?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
344
|
+
greeting?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
345
|
+
suggestedPrompts?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
346
|
+
knowledgeBaseIds?: Prisma.SortOrder
|
|
347
|
+
createdAt?: Prisma.SortOrder
|
|
348
|
+
updatedAt?: Prisma.SortOrder
|
|
349
|
+
isDeleted?: Prisma.SortOrder
|
|
350
|
+
_count?: Prisma.UserAgentCountOrderByAggregateInput
|
|
351
|
+
_avg?: Prisma.UserAgentAvgOrderByAggregateInput
|
|
352
|
+
_max?: Prisma.UserAgentMaxOrderByAggregateInput
|
|
353
|
+
_min?: Prisma.UserAgentMinOrderByAggregateInput
|
|
354
|
+
_sum?: Prisma.UserAgentSumOrderByAggregateInput
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export type UserAgentScalarWhereWithAggregatesInput = {
|
|
358
|
+
AND?: Prisma.UserAgentScalarWhereWithAggregatesInput | Prisma.UserAgentScalarWhereWithAggregatesInput[]
|
|
359
|
+
OR?: Prisma.UserAgentScalarWhereWithAggregatesInput[]
|
|
360
|
+
NOT?: Prisma.UserAgentScalarWhereWithAggregatesInput | Prisma.UserAgentScalarWhereWithAggregatesInput[]
|
|
361
|
+
id?: Prisma.StringWithAggregatesFilter<"UserAgent"> | string
|
|
362
|
+
userId?: Prisma.StringWithAggregatesFilter<"UserAgent"> | string
|
|
363
|
+
name?: Prisma.StringWithAggregatesFilter<"UserAgent"> | string
|
|
364
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"UserAgent"> | string | null
|
|
365
|
+
avatarEmoji?: Prisma.StringNullableWithAggregatesFilter<"UserAgent"> | string | null
|
|
366
|
+
systemPrompt?: Prisma.StringWithAggregatesFilter<"UserAgent"> | string
|
|
367
|
+
allowedTools?: Prisma.JsonWithAggregatesFilter<"UserAgent">
|
|
368
|
+
model?: Prisma.StringNullableWithAggregatesFilter<"UserAgent"> | string | null
|
|
369
|
+
temperature?: Prisma.FloatNullableWithAggregatesFilter<"UserAgent"> | number | null
|
|
370
|
+
greeting?: Prisma.StringNullableWithAggregatesFilter<"UserAgent"> | string | null
|
|
371
|
+
suggestedPrompts?: Prisma.JsonNullableWithAggregatesFilter<"UserAgent">
|
|
372
|
+
knowledgeBaseIds?: Prisma.JsonWithAggregatesFilter<"UserAgent">
|
|
373
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserAgent"> | Date | string
|
|
374
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UserAgent"> | Date | string
|
|
375
|
+
isDeleted?: Prisma.BoolWithAggregatesFilter<"UserAgent"> | boolean
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export type UserAgentCreateInput = {
|
|
379
|
+
id?: string
|
|
380
|
+
name: string
|
|
381
|
+
description?: string | null
|
|
382
|
+
avatarEmoji?: string | null
|
|
383
|
+
systemPrompt: string
|
|
384
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
385
|
+
model?: string | null
|
|
386
|
+
temperature?: number | null
|
|
387
|
+
greeting?: string | null
|
|
388
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
389
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
390
|
+
createdAt?: Date | string
|
|
391
|
+
updatedAt?: Date | string
|
|
392
|
+
isDeleted?: boolean
|
|
393
|
+
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
394
|
+
threads?: Prisma.ChatThreadCreateNestedManyWithoutAgentInput
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export type UserAgentUncheckedCreateInput = {
|
|
398
|
+
id?: string
|
|
399
|
+
userId: string
|
|
400
|
+
name: string
|
|
401
|
+
description?: string | null
|
|
402
|
+
avatarEmoji?: string | null
|
|
403
|
+
systemPrompt: string
|
|
404
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
405
|
+
model?: string | null
|
|
406
|
+
temperature?: number | null
|
|
407
|
+
greeting?: string | null
|
|
408
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
409
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
410
|
+
createdAt?: Date | string
|
|
411
|
+
updatedAt?: Date | string
|
|
412
|
+
isDeleted?: boolean
|
|
413
|
+
threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutAgentInput
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type UserAgentUpdateInput = {
|
|
417
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
418
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
419
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
420
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
421
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
422
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
423
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
424
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
425
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
426
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
427
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
428
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
429
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
430
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
431
|
+
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
432
|
+
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export type UserAgentUncheckedUpdateInput = {
|
|
436
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
437
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
438
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
439
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
440
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
441
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
442
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
443
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
444
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
445
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
446
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
447
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
448
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
449
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
450
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
451
|
+
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type UserAgentCreateManyInput = {
|
|
455
|
+
id?: string
|
|
456
|
+
userId: string
|
|
457
|
+
name: string
|
|
458
|
+
description?: string | null
|
|
459
|
+
avatarEmoji?: string | null
|
|
460
|
+
systemPrompt: string
|
|
461
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
462
|
+
model?: string | null
|
|
463
|
+
temperature?: number | null
|
|
464
|
+
greeting?: string | null
|
|
465
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
466
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
467
|
+
createdAt?: Date | string
|
|
468
|
+
updatedAt?: Date | string
|
|
469
|
+
isDeleted?: boolean
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export type UserAgentUpdateManyMutationInput = {
|
|
473
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
474
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
475
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
476
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
477
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
478
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
479
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
480
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
481
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
482
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
483
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
484
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
485
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
486
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export type UserAgentUncheckedUpdateManyInput = {
|
|
490
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
491
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
492
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
493
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
494
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
495
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
496
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
497
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
498
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
499
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
500
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
501
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
502
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
503
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
504
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export type UserAgentListRelationFilter = {
|
|
508
|
+
every?: Prisma.UserAgentWhereInput
|
|
509
|
+
some?: Prisma.UserAgentWhereInput
|
|
510
|
+
none?: Prisma.UserAgentWhereInput
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export type UserAgentOrderByRelationAggregateInput = {
|
|
514
|
+
_count?: Prisma.SortOrder
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export type UserAgentNullableScalarRelationFilter = {
|
|
518
|
+
is?: Prisma.UserAgentWhereInput | null
|
|
519
|
+
isNot?: Prisma.UserAgentWhereInput | null
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export type UserAgentCountOrderByAggregateInput = {
|
|
523
|
+
id?: Prisma.SortOrder
|
|
524
|
+
userId?: Prisma.SortOrder
|
|
525
|
+
name?: Prisma.SortOrder
|
|
526
|
+
description?: Prisma.SortOrder
|
|
527
|
+
avatarEmoji?: Prisma.SortOrder
|
|
528
|
+
systemPrompt?: Prisma.SortOrder
|
|
529
|
+
allowedTools?: Prisma.SortOrder
|
|
530
|
+
model?: Prisma.SortOrder
|
|
531
|
+
temperature?: Prisma.SortOrder
|
|
532
|
+
greeting?: Prisma.SortOrder
|
|
533
|
+
suggestedPrompts?: Prisma.SortOrder
|
|
534
|
+
knowledgeBaseIds?: Prisma.SortOrder
|
|
535
|
+
createdAt?: Prisma.SortOrder
|
|
536
|
+
updatedAt?: Prisma.SortOrder
|
|
537
|
+
isDeleted?: Prisma.SortOrder
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export type UserAgentAvgOrderByAggregateInput = {
|
|
541
|
+
temperature?: Prisma.SortOrder
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export type UserAgentMaxOrderByAggregateInput = {
|
|
545
|
+
id?: Prisma.SortOrder
|
|
546
|
+
userId?: Prisma.SortOrder
|
|
547
|
+
name?: Prisma.SortOrder
|
|
548
|
+
description?: Prisma.SortOrder
|
|
549
|
+
avatarEmoji?: Prisma.SortOrder
|
|
550
|
+
systemPrompt?: Prisma.SortOrder
|
|
551
|
+
model?: Prisma.SortOrder
|
|
552
|
+
temperature?: Prisma.SortOrder
|
|
553
|
+
greeting?: Prisma.SortOrder
|
|
554
|
+
createdAt?: Prisma.SortOrder
|
|
555
|
+
updatedAt?: Prisma.SortOrder
|
|
556
|
+
isDeleted?: Prisma.SortOrder
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export type UserAgentMinOrderByAggregateInput = {
|
|
560
|
+
id?: Prisma.SortOrder
|
|
561
|
+
userId?: Prisma.SortOrder
|
|
562
|
+
name?: Prisma.SortOrder
|
|
563
|
+
description?: Prisma.SortOrder
|
|
564
|
+
avatarEmoji?: Prisma.SortOrder
|
|
565
|
+
systemPrompt?: Prisma.SortOrder
|
|
566
|
+
model?: Prisma.SortOrder
|
|
567
|
+
temperature?: Prisma.SortOrder
|
|
568
|
+
greeting?: Prisma.SortOrder
|
|
569
|
+
createdAt?: Prisma.SortOrder
|
|
570
|
+
updatedAt?: Prisma.SortOrder
|
|
571
|
+
isDeleted?: Prisma.SortOrder
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export type UserAgentSumOrderByAggregateInput = {
|
|
575
|
+
temperature?: Prisma.SortOrder
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export type UserAgentCreateNestedManyWithoutUserInput = {
|
|
579
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutUserInput, Prisma.UserAgentUncheckedCreateWithoutUserInput> | Prisma.UserAgentCreateWithoutUserInput[] | Prisma.UserAgentUncheckedCreateWithoutUserInput[]
|
|
580
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutUserInput | Prisma.UserAgentCreateOrConnectWithoutUserInput[]
|
|
581
|
+
createMany?: Prisma.UserAgentCreateManyUserInputEnvelope
|
|
582
|
+
connect?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export type UserAgentUncheckedCreateNestedManyWithoutUserInput = {
|
|
586
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutUserInput, Prisma.UserAgentUncheckedCreateWithoutUserInput> | Prisma.UserAgentCreateWithoutUserInput[] | Prisma.UserAgentUncheckedCreateWithoutUserInput[]
|
|
587
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutUserInput | Prisma.UserAgentCreateOrConnectWithoutUserInput[]
|
|
588
|
+
createMany?: Prisma.UserAgentCreateManyUserInputEnvelope
|
|
589
|
+
connect?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export type UserAgentUpdateManyWithoutUserNestedInput = {
|
|
593
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutUserInput, Prisma.UserAgentUncheckedCreateWithoutUserInput> | Prisma.UserAgentCreateWithoutUserInput[] | Prisma.UserAgentUncheckedCreateWithoutUserInput[]
|
|
594
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutUserInput | Prisma.UserAgentCreateOrConnectWithoutUserInput[]
|
|
595
|
+
upsert?: Prisma.UserAgentUpsertWithWhereUniqueWithoutUserInput | Prisma.UserAgentUpsertWithWhereUniqueWithoutUserInput[]
|
|
596
|
+
createMany?: Prisma.UserAgentCreateManyUserInputEnvelope
|
|
597
|
+
set?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
598
|
+
disconnect?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
599
|
+
delete?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
600
|
+
connect?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
601
|
+
update?: Prisma.UserAgentUpdateWithWhereUniqueWithoutUserInput | Prisma.UserAgentUpdateWithWhereUniqueWithoutUserInput[]
|
|
602
|
+
updateMany?: Prisma.UserAgentUpdateManyWithWhereWithoutUserInput | Prisma.UserAgentUpdateManyWithWhereWithoutUserInput[]
|
|
603
|
+
deleteMany?: Prisma.UserAgentScalarWhereInput | Prisma.UserAgentScalarWhereInput[]
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export type UserAgentUncheckedUpdateManyWithoutUserNestedInput = {
|
|
607
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutUserInput, Prisma.UserAgentUncheckedCreateWithoutUserInput> | Prisma.UserAgentCreateWithoutUserInput[] | Prisma.UserAgentUncheckedCreateWithoutUserInput[]
|
|
608
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutUserInput | Prisma.UserAgentCreateOrConnectWithoutUserInput[]
|
|
609
|
+
upsert?: Prisma.UserAgentUpsertWithWhereUniqueWithoutUserInput | Prisma.UserAgentUpsertWithWhereUniqueWithoutUserInput[]
|
|
610
|
+
createMany?: Prisma.UserAgentCreateManyUserInputEnvelope
|
|
611
|
+
set?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
612
|
+
disconnect?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
613
|
+
delete?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
614
|
+
connect?: Prisma.UserAgentWhereUniqueInput | Prisma.UserAgentWhereUniqueInput[]
|
|
615
|
+
update?: Prisma.UserAgentUpdateWithWhereUniqueWithoutUserInput | Prisma.UserAgentUpdateWithWhereUniqueWithoutUserInput[]
|
|
616
|
+
updateMany?: Prisma.UserAgentUpdateManyWithWhereWithoutUserInput | Prisma.UserAgentUpdateManyWithWhereWithoutUserInput[]
|
|
617
|
+
deleteMany?: Prisma.UserAgentScalarWhereInput | Prisma.UserAgentScalarWhereInput[]
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export type UserAgentCreateNestedOneWithoutThreadsInput = {
|
|
621
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutThreadsInput, Prisma.UserAgentUncheckedCreateWithoutThreadsInput>
|
|
622
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutThreadsInput
|
|
623
|
+
connect?: Prisma.UserAgentWhereUniqueInput
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export type UserAgentUpdateOneWithoutThreadsNestedInput = {
|
|
627
|
+
create?: Prisma.XOR<Prisma.UserAgentCreateWithoutThreadsInput, Prisma.UserAgentUncheckedCreateWithoutThreadsInput>
|
|
628
|
+
connectOrCreate?: Prisma.UserAgentCreateOrConnectWithoutThreadsInput
|
|
629
|
+
upsert?: Prisma.UserAgentUpsertWithoutThreadsInput
|
|
630
|
+
disconnect?: Prisma.UserAgentWhereInput | boolean
|
|
631
|
+
delete?: Prisma.UserAgentWhereInput | boolean
|
|
632
|
+
connect?: Prisma.UserAgentWhereUniqueInput
|
|
633
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.UserAgentUpdateToOneWithWhereWithoutThreadsInput, Prisma.UserAgentUpdateWithoutThreadsInput>, Prisma.UserAgentUncheckedUpdateWithoutThreadsInput>
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export type UserAgentCreateWithoutUserInput = {
|
|
637
|
+
id?: string
|
|
638
|
+
name: string
|
|
639
|
+
description?: string | null
|
|
640
|
+
avatarEmoji?: string | null
|
|
641
|
+
systemPrompt: string
|
|
642
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
643
|
+
model?: string | null
|
|
644
|
+
temperature?: number | null
|
|
645
|
+
greeting?: string | null
|
|
646
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
647
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
648
|
+
createdAt?: Date | string
|
|
649
|
+
updatedAt?: Date | string
|
|
650
|
+
isDeleted?: boolean
|
|
651
|
+
threads?: Prisma.ChatThreadCreateNestedManyWithoutAgentInput
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export type UserAgentUncheckedCreateWithoutUserInput = {
|
|
655
|
+
id?: string
|
|
656
|
+
name: string
|
|
657
|
+
description?: string | null
|
|
658
|
+
avatarEmoji?: string | null
|
|
659
|
+
systemPrompt: string
|
|
660
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
661
|
+
model?: string | null
|
|
662
|
+
temperature?: number | null
|
|
663
|
+
greeting?: string | null
|
|
664
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
665
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
666
|
+
createdAt?: Date | string
|
|
667
|
+
updatedAt?: Date | string
|
|
668
|
+
isDeleted?: boolean
|
|
669
|
+
threads?: Prisma.ChatThreadUncheckedCreateNestedManyWithoutAgentInput
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export type UserAgentCreateOrConnectWithoutUserInput = {
|
|
673
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
674
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutUserInput, Prisma.UserAgentUncheckedCreateWithoutUserInput>
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export type UserAgentCreateManyUserInputEnvelope = {
|
|
678
|
+
data: Prisma.UserAgentCreateManyUserInput | Prisma.UserAgentCreateManyUserInput[]
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export type UserAgentUpsertWithWhereUniqueWithoutUserInput = {
|
|
682
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
683
|
+
update: Prisma.XOR<Prisma.UserAgentUpdateWithoutUserInput, Prisma.UserAgentUncheckedUpdateWithoutUserInput>
|
|
684
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutUserInput, Prisma.UserAgentUncheckedCreateWithoutUserInput>
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export type UserAgentUpdateWithWhereUniqueWithoutUserInput = {
|
|
688
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
689
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateWithoutUserInput, Prisma.UserAgentUncheckedUpdateWithoutUserInput>
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export type UserAgentUpdateManyWithWhereWithoutUserInput = {
|
|
693
|
+
where: Prisma.UserAgentScalarWhereInput
|
|
694
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateManyMutationInput, Prisma.UserAgentUncheckedUpdateManyWithoutUserInput>
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export type UserAgentScalarWhereInput = {
|
|
698
|
+
AND?: Prisma.UserAgentScalarWhereInput | Prisma.UserAgentScalarWhereInput[]
|
|
699
|
+
OR?: Prisma.UserAgentScalarWhereInput[]
|
|
700
|
+
NOT?: Prisma.UserAgentScalarWhereInput | Prisma.UserAgentScalarWhereInput[]
|
|
701
|
+
id?: Prisma.StringFilter<"UserAgent"> | string
|
|
702
|
+
userId?: Prisma.StringFilter<"UserAgent"> | string
|
|
703
|
+
name?: Prisma.StringFilter<"UserAgent"> | string
|
|
704
|
+
description?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
705
|
+
avatarEmoji?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
706
|
+
systemPrompt?: Prisma.StringFilter<"UserAgent"> | string
|
|
707
|
+
allowedTools?: Prisma.JsonFilter<"UserAgent">
|
|
708
|
+
model?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
709
|
+
temperature?: Prisma.FloatNullableFilter<"UserAgent"> | number | null
|
|
710
|
+
greeting?: Prisma.StringNullableFilter<"UserAgent"> | string | null
|
|
711
|
+
suggestedPrompts?: Prisma.JsonNullableFilter<"UserAgent">
|
|
712
|
+
knowledgeBaseIds?: Prisma.JsonFilter<"UserAgent">
|
|
713
|
+
createdAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
714
|
+
updatedAt?: Prisma.DateTimeFilter<"UserAgent"> | Date | string
|
|
715
|
+
isDeleted?: Prisma.BoolFilter<"UserAgent"> | boolean
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export type UserAgentCreateWithoutThreadsInput = {
|
|
719
|
+
id?: string
|
|
720
|
+
name: string
|
|
721
|
+
description?: string | null
|
|
722
|
+
avatarEmoji?: string | null
|
|
723
|
+
systemPrompt: string
|
|
724
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
725
|
+
model?: string | null
|
|
726
|
+
temperature?: number | null
|
|
727
|
+
greeting?: string | null
|
|
728
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
729
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
730
|
+
createdAt?: Date | string
|
|
731
|
+
updatedAt?: Date | string
|
|
732
|
+
isDeleted?: boolean
|
|
733
|
+
user: Prisma.UserCreateNestedOneWithoutAgentsInput
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export type UserAgentUncheckedCreateWithoutThreadsInput = {
|
|
737
|
+
id?: string
|
|
738
|
+
userId: string
|
|
739
|
+
name: string
|
|
740
|
+
description?: string | null
|
|
741
|
+
avatarEmoji?: string | null
|
|
742
|
+
systemPrompt: string
|
|
743
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
744
|
+
model?: string | null
|
|
745
|
+
temperature?: number | null
|
|
746
|
+
greeting?: string | null
|
|
747
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
748
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
749
|
+
createdAt?: Date | string
|
|
750
|
+
updatedAt?: Date | string
|
|
751
|
+
isDeleted?: boolean
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export type UserAgentCreateOrConnectWithoutThreadsInput = {
|
|
755
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
756
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutThreadsInput, Prisma.UserAgentUncheckedCreateWithoutThreadsInput>
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
export type UserAgentUpsertWithoutThreadsInput = {
|
|
760
|
+
update: Prisma.XOR<Prisma.UserAgentUpdateWithoutThreadsInput, Prisma.UserAgentUncheckedUpdateWithoutThreadsInput>
|
|
761
|
+
create: Prisma.XOR<Prisma.UserAgentCreateWithoutThreadsInput, Prisma.UserAgentUncheckedCreateWithoutThreadsInput>
|
|
762
|
+
where?: Prisma.UserAgentWhereInput
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export type UserAgentUpdateToOneWithWhereWithoutThreadsInput = {
|
|
766
|
+
where?: Prisma.UserAgentWhereInput
|
|
767
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateWithoutThreadsInput, Prisma.UserAgentUncheckedUpdateWithoutThreadsInput>
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export type UserAgentUpdateWithoutThreadsInput = {
|
|
771
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
772
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
773
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
774
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
775
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
776
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
777
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
778
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
779
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
780
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
781
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
782
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
783
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
784
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
785
|
+
user?: Prisma.UserUpdateOneRequiredWithoutAgentsNestedInput
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export type UserAgentUncheckedUpdateWithoutThreadsInput = {
|
|
789
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
790
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
791
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
792
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
793
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
794
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
795
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
796
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
797
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
798
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
799
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
800
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
801
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
802
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
803
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
export type UserAgentCreateManyUserInput = {
|
|
807
|
+
id?: string
|
|
808
|
+
name: string
|
|
809
|
+
description?: string | null
|
|
810
|
+
avatarEmoji?: string | null
|
|
811
|
+
systemPrompt: string
|
|
812
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
813
|
+
model?: string | null
|
|
814
|
+
temperature?: number | null
|
|
815
|
+
greeting?: string | null
|
|
816
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
817
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
818
|
+
createdAt?: Date | string
|
|
819
|
+
updatedAt?: Date | string
|
|
820
|
+
isDeleted?: boolean
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export type UserAgentUpdateWithoutUserInput = {
|
|
824
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
825
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
826
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
827
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
828
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
829
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
830
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
831
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
832
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
833
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
834
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
835
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
836
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
837
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
838
|
+
threads?: Prisma.ChatThreadUpdateManyWithoutAgentNestedInput
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export type UserAgentUncheckedUpdateWithoutUserInput = {
|
|
842
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
843
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
844
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
845
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
846
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
847
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
848
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
849
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
850
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
851
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
852
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
853
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
854
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
855
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
856
|
+
threads?: Prisma.ChatThreadUncheckedUpdateManyWithoutAgentNestedInput
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export type UserAgentUncheckedUpdateManyWithoutUserInput = {
|
|
860
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
861
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
862
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
863
|
+
avatarEmoji?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
864
|
+
systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string
|
|
865
|
+
allowedTools?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
866
|
+
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
867
|
+
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
868
|
+
greeting?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
869
|
+
suggestedPrompts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
870
|
+
knowledgeBaseIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
871
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
872
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
873
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Count Type UserAgentCountOutputType
|
|
879
|
+
*/
|
|
880
|
+
|
|
881
|
+
export type UserAgentCountOutputType = {
|
|
882
|
+
threads: number
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export type UserAgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
886
|
+
threads?: boolean | UserAgentCountOutputTypeCountThreadsArgs
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* UserAgentCountOutputType without action
|
|
891
|
+
*/
|
|
892
|
+
export type UserAgentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
893
|
+
/**
|
|
894
|
+
* Select specific fields to fetch from the UserAgentCountOutputType
|
|
895
|
+
*/
|
|
896
|
+
select?: Prisma.UserAgentCountOutputTypeSelect<ExtArgs> | null
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* UserAgentCountOutputType without action
|
|
901
|
+
*/
|
|
902
|
+
export type UserAgentCountOutputTypeCountThreadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
903
|
+
where?: Prisma.ChatThreadWhereInput
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
export type UserAgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
908
|
+
id?: boolean
|
|
909
|
+
userId?: boolean
|
|
910
|
+
name?: boolean
|
|
911
|
+
description?: boolean
|
|
912
|
+
avatarEmoji?: boolean
|
|
913
|
+
systemPrompt?: boolean
|
|
914
|
+
allowedTools?: boolean
|
|
915
|
+
model?: boolean
|
|
916
|
+
temperature?: boolean
|
|
917
|
+
greeting?: boolean
|
|
918
|
+
suggestedPrompts?: boolean
|
|
919
|
+
knowledgeBaseIds?: boolean
|
|
920
|
+
createdAt?: boolean
|
|
921
|
+
updatedAt?: boolean
|
|
922
|
+
isDeleted?: boolean
|
|
923
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
924
|
+
threads?: boolean | Prisma.UserAgent$threadsArgs<ExtArgs>
|
|
925
|
+
_count?: boolean | Prisma.UserAgentCountOutputTypeDefaultArgs<ExtArgs>
|
|
926
|
+
}, ExtArgs["result"]["userAgent"]>
|
|
927
|
+
|
|
928
|
+
export type UserAgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
929
|
+
id?: boolean
|
|
930
|
+
userId?: boolean
|
|
931
|
+
name?: boolean
|
|
932
|
+
description?: boolean
|
|
933
|
+
avatarEmoji?: boolean
|
|
934
|
+
systemPrompt?: boolean
|
|
935
|
+
allowedTools?: boolean
|
|
936
|
+
model?: boolean
|
|
937
|
+
temperature?: boolean
|
|
938
|
+
greeting?: boolean
|
|
939
|
+
suggestedPrompts?: boolean
|
|
940
|
+
knowledgeBaseIds?: boolean
|
|
941
|
+
createdAt?: boolean
|
|
942
|
+
updatedAt?: boolean
|
|
943
|
+
isDeleted?: boolean
|
|
944
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
945
|
+
}, ExtArgs["result"]["userAgent"]>
|
|
946
|
+
|
|
947
|
+
export type UserAgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
948
|
+
id?: boolean
|
|
949
|
+
userId?: boolean
|
|
950
|
+
name?: boolean
|
|
951
|
+
description?: boolean
|
|
952
|
+
avatarEmoji?: boolean
|
|
953
|
+
systemPrompt?: boolean
|
|
954
|
+
allowedTools?: boolean
|
|
955
|
+
model?: boolean
|
|
956
|
+
temperature?: boolean
|
|
957
|
+
greeting?: boolean
|
|
958
|
+
suggestedPrompts?: boolean
|
|
959
|
+
knowledgeBaseIds?: boolean
|
|
960
|
+
createdAt?: boolean
|
|
961
|
+
updatedAt?: boolean
|
|
962
|
+
isDeleted?: boolean
|
|
963
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
964
|
+
}, ExtArgs["result"]["userAgent"]>
|
|
965
|
+
|
|
966
|
+
export type UserAgentSelectScalar = {
|
|
967
|
+
id?: boolean
|
|
968
|
+
userId?: boolean
|
|
969
|
+
name?: boolean
|
|
970
|
+
description?: boolean
|
|
971
|
+
avatarEmoji?: boolean
|
|
972
|
+
systemPrompt?: boolean
|
|
973
|
+
allowedTools?: boolean
|
|
974
|
+
model?: boolean
|
|
975
|
+
temperature?: boolean
|
|
976
|
+
greeting?: boolean
|
|
977
|
+
suggestedPrompts?: boolean
|
|
978
|
+
knowledgeBaseIds?: boolean
|
|
979
|
+
createdAt?: boolean
|
|
980
|
+
updatedAt?: boolean
|
|
981
|
+
isDeleted?: boolean
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
export type UserAgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "description" | "avatarEmoji" | "systemPrompt" | "allowedTools" | "model" | "temperature" | "greeting" | "suggestedPrompts" | "knowledgeBaseIds" | "createdAt" | "updatedAt" | "isDeleted", ExtArgs["result"]["userAgent"]>
|
|
985
|
+
export type UserAgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
986
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
987
|
+
threads?: boolean | Prisma.UserAgent$threadsArgs<ExtArgs>
|
|
988
|
+
_count?: boolean | Prisma.UserAgentCountOutputTypeDefaultArgs<ExtArgs>
|
|
989
|
+
}
|
|
990
|
+
export type UserAgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
991
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
992
|
+
}
|
|
993
|
+
export type UserAgentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
994
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export type $UserAgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
998
|
+
name: "UserAgent"
|
|
999
|
+
objects: {
|
|
1000
|
+
user: Prisma.$UserPayload<ExtArgs>
|
|
1001
|
+
threads: Prisma.$ChatThreadPayload<ExtArgs>[]
|
|
1002
|
+
}
|
|
1003
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1004
|
+
id: string
|
|
1005
|
+
userId: string
|
|
1006
|
+
name: string
|
|
1007
|
+
description: string | null
|
|
1008
|
+
avatarEmoji: string | null
|
|
1009
|
+
systemPrompt: string
|
|
1010
|
+
allowedTools: runtime.JsonValue
|
|
1011
|
+
model: string | null
|
|
1012
|
+
temperature: number | null
|
|
1013
|
+
greeting: string | null
|
|
1014
|
+
suggestedPrompts: runtime.JsonValue | null
|
|
1015
|
+
knowledgeBaseIds: runtime.JsonValue
|
|
1016
|
+
createdAt: Date
|
|
1017
|
+
updatedAt: Date
|
|
1018
|
+
isDeleted: boolean
|
|
1019
|
+
}, ExtArgs["result"]["userAgent"]>
|
|
1020
|
+
composites: {}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export type UserAgentGetPayload<S extends boolean | null | undefined | UserAgentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserAgentPayload, S>
|
|
1024
|
+
|
|
1025
|
+
export type UserAgentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
1026
|
+
Omit<UserAgentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1027
|
+
select?: UserAgentCountAggregateInputType | true
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
export interface UserAgentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1031
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserAgent'], meta: { name: 'UserAgent' } }
|
|
1032
|
+
/**
|
|
1033
|
+
* Find zero or one UserAgent that matches the filter.
|
|
1034
|
+
* @param {UserAgentFindUniqueArgs} args - Arguments to find a UserAgent
|
|
1035
|
+
* @example
|
|
1036
|
+
* // Get one UserAgent
|
|
1037
|
+
* const userAgent = await prisma.userAgent.findUnique({
|
|
1038
|
+
* where: {
|
|
1039
|
+
* // ... provide filter here
|
|
1040
|
+
* }
|
|
1041
|
+
* })
|
|
1042
|
+
*/
|
|
1043
|
+
findUnique<T extends UserAgentFindUniqueArgs>(args: Prisma.SelectSubset<T, UserAgentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Find one UserAgent that matches the filter or throw an error with `error.code='P2025'`
|
|
1047
|
+
* if no matches were found.
|
|
1048
|
+
* @param {UserAgentFindUniqueOrThrowArgs} args - Arguments to find a UserAgent
|
|
1049
|
+
* @example
|
|
1050
|
+
* // Get one UserAgent
|
|
1051
|
+
* const userAgent = await prisma.userAgent.findUniqueOrThrow({
|
|
1052
|
+
* where: {
|
|
1053
|
+
* // ... provide filter here
|
|
1054
|
+
* }
|
|
1055
|
+
* })
|
|
1056
|
+
*/
|
|
1057
|
+
findUniqueOrThrow<T extends UserAgentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserAgentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Find the first UserAgent that matches the filter.
|
|
1061
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1062
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1063
|
+
* @param {UserAgentFindFirstArgs} args - Arguments to find a UserAgent
|
|
1064
|
+
* @example
|
|
1065
|
+
* // Get one UserAgent
|
|
1066
|
+
* const userAgent = await prisma.userAgent.findFirst({
|
|
1067
|
+
* where: {
|
|
1068
|
+
* // ... provide filter here
|
|
1069
|
+
* }
|
|
1070
|
+
* })
|
|
1071
|
+
*/
|
|
1072
|
+
findFirst<T extends UserAgentFindFirstArgs>(args?: Prisma.SelectSubset<T, UserAgentFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Find the first UserAgent that matches the filter or
|
|
1076
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1077
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1078
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1079
|
+
* @param {UserAgentFindFirstOrThrowArgs} args - Arguments to find a UserAgent
|
|
1080
|
+
* @example
|
|
1081
|
+
* // Get one UserAgent
|
|
1082
|
+
* const userAgent = await prisma.userAgent.findFirstOrThrow({
|
|
1083
|
+
* where: {
|
|
1084
|
+
* // ... provide filter here
|
|
1085
|
+
* }
|
|
1086
|
+
* })
|
|
1087
|
+
*/
|
|
1088
|
+
findFirstOrThrow<T extends UserAgentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserAgentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Find zero or more UserAgents that matches the filter.
|
|
1092
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1093
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1094
|
+
* @param {UserAgentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1095
|
+
* @example
|
|
1096
|
+
* // Get all UserAgents
|
|
1097
|
+
* const userAgents = await prisma.userAgent.findMany()
|
|
1098
|
+
*
|
|
1099
|
+
* // Get first 10 UserAgents
|
|
1100
|
+
* const userAgents = await prisma.userAgent.findMany({ take: 10 })
|
|
1101
|
+
*
|
|
1102
|
+
* // Only select the `id`
|
|
1103
|
+
* const userAgentWithIdOnly = await prisma.userAgent.findMany({ select: { id: true } })
|
|
1104
|
+
*
|
|
1105
|
+
*/
|
|
1106
|
+
findMany<T extends UserAgentFindManyArgs>(args?: Prisma.SelectSubset<T, UserAgentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Create a UserAgent.
|
|
1110
|
+
* @param {UserAgentCreateArgs} args - Arguments to create a UserAgent.
|
|
1111
|
+
* @example
|
|
1112
|
+
* // Create one UserAgent
|
|
1113
|
+
* const UserAgent = await prisma.userAgent.create({
|
|
1114
|
+
* data: {
|
|
1115
|
+
* // ... data to create a UserAgent
|
|
1116
|
+
* }
|
|
1117
|
+
* })
|
|
1118
|
+
*
|
|
1119
|
+
*/
|
|
1120
|
+
create<T extends UserAgentCreateArgs>(args: Prisma.SelectSubset<T, UserAgentCreateArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Create many UserAgents.
|
|
1124
|
+
* @param {UserAgentCreateManyArgs} args - Arguments to create many UserAgents.
|
|
1125
|
+
* @example
|
|
1126
|
+
* // Create many UserAgents
|
|
1127
|
+
* const userAgent = await prisma.userAgent.createMany({
|
|
1128
|
+
* data: [
|
|
1129
|
+
* // ... provide data here
|
|
1130
|
+
* ]
|
|
1131
|
+
* })
|
|
1132
|
+
*
|
|
1133
|
+
*/
|
|
1134
|
+
createMany<T extends UserAgentCreateManyArgs>(args?: Prisma.SelectSubset<T, UserAgentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Create many UserAgents and returns the data saved in the database.
|
|
1138
|
+
* @param {UserAgentCreateManyAndReturnArgs} args - Arguments to create many UserAgents.
|
|
1139
|
+
* @example
|
|
1140
|
+
* // Create many UserAgents
|
|
1141
|
+
* const userAgent = await prisma.userAgent.createManyAndReturn({
|
|
1142
|
+
* data: [
|
|
1143
|
+
* // ... provide data here
|
|
1144
|
+
* ]
|
|
1145
|
+
* })
|
|
1146
|
+
*
|
|
1147
|
+
* // Create many UserAgents and only return the `id`
|
|
1148
|
+
* const userAgentWithIdOnly = await prisma.userAgent.createManyAndReturn({
|
|
1149
|
+
* select: { id: true },
|
|
1150
|
+
* data: [
|
|
1151
|
+
* // ... provide data here
|
|
1152
|
+
* ]
|
|
1153
|
+
* })
|
|
1154
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1155
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1156
|
+
*
|
|
1157
|
+
*/
|
|
1158
|
+
createManyAndReturn<T extends UserAgentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserAgentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Delete a UserAgent.
|
|
1162
|
+
* @param {UserAgentDeleteArgs} args - Arguments to delete one UserAgent.
|
|
1163
|
+
* @example
|
|
1164
|
+
* // Delete one UserAgent
|
|
1165
|
+
* const UserAgent = await prisma.userAgent.delete({
|
|
1166
|
+
* where: {
|
|
1167
|
+
* // ... filter to delete one UserAgent
|
|
1168
|
+
* }
|
|
1169
|
+
* })
|
|
1170
|
+
*
|
|
1171
|
+
*/
|
|
1172
|
+
delete<T extends UserAgentDeleteArgs>(args: Prisma.SelectSubset<T, UserAgentDeleteArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Update one UserAgent.
|
|
1176
|
+
* @param {UserAgentUpdateArgs} args - Arguments to update one UserAgent.
|
|
1177
|
+
* @example
|
|
1178
|
+
* // Update one UserAgent
|
|
1179
|
+
* const userAgent = await prisma.userAgent.update({
|
|
1180
|
+
* where: {
|
|
1181
|
+
* // ... provide filter here
|
|
1182
|
+
* },
|
|
1183
|
+
* data: {
|
|
1184
|
+
* // ... provide data here
|
|
1185
|
+
* }
|
|
1186
|
+
* })
|
|
1187
|
+
*
|
|
1188
|
+
*/
|
|
1189
|
+
update<T extends UserAgentUpdateArgs>(args: Prisma.SelectSubset<T, UserAgentUpdateArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* Delete zero or more UserAgents.
|
|
1193
|
+
* @param {UserAgentDeleteManyArgs} args - Arguments to filter UserAgents to delete.
|
|
1194
|
+
* @example
|
|
1195
|
+
* // Delete a few UserAgents
|
|
1196
|
+
* const { count } = await prisma.userAgent.deleteMany({
|
|
1197
|
+
* where: {
|
|
1198
|
+
* // ... provide filter here
|
|
1199
|
+
* }
|
|
1200
|
+
* })
|
|
1201
|
+
*
|
|
1202
|
+
*/
|
|
1203
|
+
deleteMany<T extends UserAgentDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserAgentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Update zero or more UserAgents.
|
|
1207
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1208
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1209
|
+
* @param {UserAgentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1210
|
+
* @example
|
|
1211
|
+
* // Update many UserAgents
|
|
1212
|
+
* const userAgent = await prisma.userAgent.updateMany({
|
|
1213
|
+
* where: {
|
|
1214
|
+
* // ... provide filter here
|
|
1215
|
+
* },
|
|
1216
|
+
* data: {
|
|
1217
|
+
* // ... provide data here
|
|
1218
|
+
* }
|
|
1219
|
+
* })
|
|
1220
|
+
*
|
|
1221
|
+
*/
|
|
1222
|
+
updateMany<T extends UserAgentUpdateManyArgs>(args: Prisma.SelectSubset<T, UserAgentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Update zero or more UserAgents and returns the data updated in the database.
|
|
1226
|
+
* @param {UserAgentUpdateManyAndReturnArgs} args - Arguments to update many UserAgents.
|
|
1227
|
+
* @example
|
|
1228
|
+
* // Update many UserAgents
|
|
1229
|
+
* const userAgent = await prisma.userAgent.updateManyAndReturn({
|
|
1230
|
+
* where: {
|
|
1231
|
+
* // ... provide filter here
|
|
1232
|
+
* },
|
|
1233
|
+
* data: [
|
|
1234
|
+
* // ... provide data here
|
|
1235
|
+
* ]
|
|
1236
|
+
* })
|
|
1237
|
+
*
|
|
1238
|
+
* // Update zero or more UserAgents and only return the `id`
|
|
1239
|
+
* const userAgentWithIdOnly = await prisma.userAgent.updateManyAndReturn({
|
|
1240
|
+
* select: { id: true },
|
|
1241
|
+
* where: {
|
|
1242
|
+
* // ... provide filter here
|
|
1243
|
+
* },
|
|
1244
|
+
* data: [
|
|
1245
|
+
* // ... provide data here
|
|
1246
|
+
* ]
|
|
1247
|
+
* })
|
|
1248
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1249
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1250
|
+
*
|
|
1251
|
+
*/
|
|
1252
|
+
updateManyAndReturn<T extends UserAgentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserAgentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Create or update one UserAgent.
|
|
1256
|
+
* @param {UserAgentUpsertArgs} args - Arguments to update or create a UserAgent.
|
|
1257
|
+
* @example
|
|
1258
|
+
* // Update or create a UserAgent
|
|
1259
|
+
* const userAgent = await prisma.userAgent.upsert({
|
|
1260
|
+
* create: {
|
|
1261
|
+
* // ... data to create a UserAgent
|
|
1262
|
+
* },
|
|
1263
|
+
* update: {
|
|
1264
|
+
* // ... in case it already exists, update
|
|
1265
|
+
* },
|
|
1266
|
+
* where: {
|
|
1267
|
+
* // ... the filter for the UserAgent we want to update
|
|
1268
|
+
* }
|
|
1269
|
+
* })
|
|
1270
|
+
*/
|
|
1271
|
+
upsert<T extends UserAgentUpsertArgs>(args: Prisma.SelectSubset<T, UserAgentUpsertArgs<ExtArgs>>): Prisma.Prisma__UserAgentClient<runtime.Types.Result.GetResult<Prisma.$UserAgentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Count the number of UserAgents.
|
|
1276
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1277
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1278
|
+
* @param {UserAgentCountArgs} args - Arguments to filter UserAgents to count.
|
|
1279
|
+
* @example
|
|
1280
|
+
* // Count the number of UserAgents
|
|
1281
|
+
* const count = await prisma.userAgent.count({
|
|
1282
|
+
* where: {
|
|
1283
|
+
* // ... the filter for the UserAgents we want to count
|
|
1284
|
+
* }
|
|
1285
|
+
* })
|
|
1286
|
+
**/
|
|
1287
|
+
count<T extends UserAgentCountArgs>(
|
|
1288
|
+
args?: Prisma.Subset<T, UserAgentCountArgs>,
|
|
1289
|
+
): Prisma.PrismaPromise<
|
|
1290
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
1291
|
+
? T['select'] extends true
|
|
1292
|
+
? number
|
|
1293
|
+
: Prisma.GetScalarType<T['select'], UserAgentCountAggregateOutputType>
|
|
1294
|
+
: number
|
|
1295
|
+
>
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Allows you to perform aggregations operations on a UserAgent.
|
|
1299
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1300
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1301
|
+
* @param {UserAgentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1302
|
+
* @example
|
|
1303
|
+
* // Ordered by age ascending
|
|
1304
|
+
* // Where email contains prisma.io
|
|
1305
|
+
* // Limited to the 10 users
|
|
1306
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1307
|
+
* _avg: {
|
|
1308
|
+
* age: true,
|
|
1309
|
+
* },
|
|
1310
|
+
* where: {
|
|
1311
|
+
* email: {
|
|
1312
|
+
* contains: "prisma.io",
|
|
1313
|
+
* },
|
|
1314
|
+
* },
|
|
1315
|
+
* orderBy: {
|
|
1316
|
+
* age: "asc",
|
|
1317
|
+
* },
|
|
1318
|
+
* take: 10,
|
|
1319
|
+
* })
|
|
1320
|
+
**/
|
|
1321
|
+
aggregate<T extends UserAgentAggregateArgs>(args: Prisma.Subset<T, UserAgentAggregateArgs>): Prisma.PrismaPromise<GetUserAgentAggregateType<T>>
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Group by UserAgent.
|
|
1325
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1326
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1327
|
+
* @param {UserAgentGroupByArgs} args - Group by arguments.
|
|
1328
|
+
* @example
|
|
1329
|
+
* // Group by city, order by createdAt, get count
|
|
1330
|
+
* const result = await prisma.user.groupBy({
|
|
1331
|
+
* by: ['city', 'createdAt'],
|
|
1332
|
+
* orderBy: {
|
|
1333
|
+
* createdAt: true
|
|
1334
|
+
* },
|
|
1335
|
+
* _count: {
|
|
1336
|
+
* _all: true
|
|
1337
|
+
* },
|
|
1338
|
+
* })
|
|
1339
|
+
*
|
|
1340
|
+
**/
|
|
1341
|
+
groupBy<
|
|
1342
|
+
T extends UserAgentGroupByArgs,
|
|
1343
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1344
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1345
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1346
|
+
>,
|
|
1347
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1348
|
+
? { orderBy: UserAgentGroupByArgs['orderBy'] }
|
|
1349
|
+
: { orderBy?: UserAgentGroupByArgs['orderBy'] },
|
|
1350
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1351
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1352
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1353
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1354
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1355
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1356
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1357
|
+
? `Error: "by" must not be empty.`
|
|
1358
|
+
: HavingValid extends Prisma.False
|
|
1359
|
+
? {
|
|
1360
|
+
[P in HavingFields]: P extends ByFields
|
|
1361
|
+
? never
|
|
1362
|
+
: P extends string
|
|
1363
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1364
|
+
: [
|
|
1365
|
+
Error,
|
|
1366
|
+
'Field ',
|
|
1367
|
+
P,
|
|
1368
|
+
` in "having" needs to be provided in "by"`,
|
|
1369
|
+
]
|
|
1370
|
+
}[HavingFields]
|
|
1371
|
+
: 'take' extends Prisma.Keys<T>
|
|
1372
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1373
|
+
? ByValid extends Prisma.True
|
|
1374
|
+
? {}
|
|
1375
|
+
: {
|
|
1376
|
+
[P in OrderFields]: P extends ByFields
|
|
1377
|
+
? never
|
|
1378
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1379
|
+
}[OrderFields]
|
|
1380
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1381
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1382
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1383
|
+
? ByValid extends Prisma.True
|
|
1384
|
+
? {}
|
|
1385
|
+
: {
|
|
1386
|
+
[P in OrderFields]: P extends ByFields
|
|
1387
|
+
? never
|
|
1388
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1389
|
+
}[OrderFields]
|
|
1390
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1391
|
+
: ByValid extends Prisma.True
|
|
1392
|
+
? {}
|
|
1393
|
+
: {
|
|
1394
|
+
[P in OrderFields]: P extends ByFields
|
|
1395
|
+
? never
|
|
1396
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1397
|
+
}[OrderFields]
|
|
1398
|
+
>(args: Prisma.SubsetIntersection<T, UserAgentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserAgentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1399
|
+
/**
|
|
1400
|
+
* Fields of the UserAgent model
|
|
1401
|
+
*/
|
|
1402
|
+
readonly fields: UserAgentFieldRefs;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* The delegate class that acts as a "Promise-like" for UserAgent.
|
|
1407
|
+
* Why is this prefixed with `Prisma__`?
|
|
1408
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1409
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1410
|
+
*/
|
|
1411
|
+
export interface Prisma__UserAgentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1412
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1413
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1414
|
+
threads<T extends Prisma.UserAgent$threadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserAgent$threadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChatThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1415
|
+
/**
|
|
1416
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1417
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1418
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1419
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1420
|
+
*/
|
|
1421
|
+
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>
|
|
1422
|
+
/**
|
|
1423
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1424
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1425
|
+
* @returns A Promise for the completion of the callback.
|
|
1426
|
+
*/
|
|
1427
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1428
|
+
/**
|
|
1429
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1430
|
+
* resolved value cannot be modified from the callback.
|
|
1431
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1432
|
+
* @returns A Promise for the completion of the callback.
|
|
1433
|
+
*/
|
|
1434
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Fields of the UserAgent model
|
|
1442
|
+
*/
|
|
1443
|
+
export interface UserAgentFieldRefs {
|
|
1444
|
+
readonly id: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1445
|
+
readonly userId: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1446
|
+
readonly name: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1447
|
+
readonly description: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1448
|
+
readonly avatarEmoji: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1449
|
+
readonly systemPrompt: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1450
|
+
readonly allowedTools: Prisma.FieldRef<"UserAgent", 'Json'>
|
|
1451
|
+
readonly model: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1452
|
+
readonly temperature: Prisma.FieldRef<"UserAgent", 'Float'>
|
|
1453
|
+
readonly greeting: Prisma.FieldRef<"UserAgent", 'String'>
|
|
1454
|
+
readonly suggestedPrompts: Prisma.FieldRef<"UserAgent", 'Json'>
|
|
1455
|
+
readonly knowledgeBaseIds: Prisma.FieldRef<"UserAgent", 'Json'>
|
|
1456
|
+
readonly createdAt: Prisma.FieldRef<"UserAgent", 'DateTime'>
|
|
1457
|
+
readonly updatedAt: Prisma.FieldRef<"UserAgent", 'DateTime'>
|
|
1458
|
+
readonly isDeleted: Prisma.FieldRef<"UserAgent", 'Boolean'>
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
// Custom InputTypes
|
|
1463
|
+
/**
|
|
1464
|
+
* UserAgent findUnique
|
|
1465
|
+
*/
|
|
1466
|
+
export type UserAgentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1467
|
+
/**
|
|
1468
|
+
* Select specific fields to fetch from the UserAgent
|
|
1469
|
+
*/
|
|
1470
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1471
|
+
/**
|
|
1472
|
+
* Omit specific fields from the UserAgent
|
|
1473
|
+
*/
|
|
1474
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1475
|
+
/**
|
|
1476
|
+
* Choose, which related nodes to fetch as well
|
|
1477
|
+
*/
|
|
1478
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1479
|
+
/**
|
|
1480
|
+
* Filter, which UserAgent to fetch.
|
|
1481
|
+
*/
|
|
1482
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* UserAgent findUniqueOrThrow
|
|
1487
|
+
*/
|
|
1488
|
+
export type UserAgentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1489
|
+
/**
|
|
1490
|
+
* Select specific fields to fetch from the UserAgent
|
|
1491
|
+
*/
|
|
1492
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1493
|
+
/**
|
|
1494
|
+
* Omit specific fields from the UserAgent
|
|
1495
|
+
*/
|
|
1496
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1497
|
+
/**
|
|
1498
|
+
* Choose, which related nodes to fetch as well
|
|
1499
|
+
*/
|
|
1500
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1501
|
+
/**
|
|
1502
|
+
* Filter, which UserAgent to fetch.
|
|
1503
|
+
*/
|
|
1504
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* UserAgent findFirst
|
|
1509
|
+
*/
|
|
1510
|
+
export type UserAgentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1511
|
+
/**
|
|
1512
|
+
* Select specific fields to fetch from the UserAgent
|
|
1513
|
+
*/
|
|
1514
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1515
|
+
/**
|
|
1516
|
+
* Omit specific fields from the UserAgent
|
|
1517
|
+
*/
|
|
1518
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1519
|
+
/**
|
|
1520
|
+
* Choose, which related nodes to fetch as well
|
|
1521
|
+
*/
|
|
1522
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1523
|
+
/**
|
|
1524
|
+
* Filter, which UserAgent to fetch.
|
|
1525
|
+
*/
|
|
1526
|
+
where?: Prisma.UserAgentWhereInput
|
|
1527
|
+
/**
|
|
1528
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1529
|
+
*
|
|
1530
|
+
* Determine the order of UserAgents to fetch.
|
|
1531
|
+
*/
|
|
1532
|
+
orderBy?: Prisma.UserAgentOrderByWithRelationInput | Prisma.UserAgentOrderByWithRelationInput[]
|
|
1533
|
+
/**
|
|
1534
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1535
|
+
*
|
|
1536
|
+
* Sets the position for searching for UserAgents.
|
|
1537
|
+
*/
|
|
1538
|
+
cursor?: Prisma.UserAgentWhereUniqueInput
|
|
1539
|
+
/**
|
|
1540
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1541
|
+
*
|
|
1542
|
+
* Take `±n` UserAgents from the position of the cursor.
|
|
1543
|
+
*/
|
|
1544
|
+
take?: number
|
|
1545
|
+
/**
|
|
1546
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1547
|
+
*
|
|
1548
|
+
* Skip the first `n` UserAgents.
|
|
1549
|
+
*/
|
|
1550
|
+
skip?: number
|
|
1551
|
+
/**
|
|
1552
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1553
|
+
*
|
|
1554
|
+
* Filter by unique combinations of UserAgents.
|
|
1555
|
+
*/
|
|
1556
|
+
distinct?: Prisma.UserAgentScalarFieldEnum | Prisma.UserAgentScalarFieldEnum[]
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* UserAgent findFirstOrThrow
|
|
1561
|
+
*/
|
|
1562
|
+
export type UserAgentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1563
|
+
/**
|
|
1564
|
+
* Select specific fields to fetch from the UserAgent
|
|
1565
|
+
*/
|
|
1566
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1567
|
+
/**
|
|
1568
|
+
* Omit specific fields from the UserAgent
|
|
1569
|
+
*/
|
|
1570
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1571
|
+
/**
|
|
1572
|
+
* Choose, which related nodes to fetch as well
|
|
1573
|
+
*/
|
|
1574
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1575
|
+
/**
|
|
1576
|
+
* Filter, which UserAgent to fetch.
|
|
1577
|
+
*/
|
|
1578
|
+
where?: Prisma.UserAgentWhereInput
|
|
1579
|
+
/**
|
|
1580
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1581
|
+
*
|
|
1582
|
+
* Determine the order of UserAgents to fetch.
|
|
1583
|
+
*/
|
|
1584
|
+
orderBy?: Prisma.UserAgentOrderByWithRelationInput | Prisma.UserAgentOrderByWithRelationInput[]
|
|
1585
|
+
/**
|
|
1586
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1587
|
+
*
|
|
1588
|
+
* Sets the position for searching for UserAgents.
|
|
1589
|
+
*/
|
|
1590
|
+
cursor?: Prisma.UserAgentWhereUniqueInput
|
|
1591
|
+
/**
|
|
1592
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1593
|
+
*
|
|
1594
|
+
* Take `±n` UserAgents from the position of the cursor.
|
|
1595
|
+
*/
|
|
1596
|
+
take?: number
|
|
1597
|
+
/**
|
|
1598
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1599
|
+
*
|
|
1600
|
+
* Skip the first `n` UserAgents.
|
|
1601
|
+
*/
|
|
1602
|
+
skip?: number
|
|
1603
|
+
/**
|
|
1604
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1605
|
+
*
|
|
1606
|
+
* Filter by unique combinations of UserAgents.
|
|
1607
|
+
*/
|
|
1608
|
+
distinct?: Prisma.UserAgentScalarFieldEnum | Prisma.UserAgentScalarFieldEnum[]
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* UserAgent findMany
|
|
1613
|
+
*/
|
|
1614
|
+
export type UserAgentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1615
|
+
/**
|
|
1616
|
+
* Select specific fields to fetch from the UserAgent
|
|
1617
|
+
*/
|
|
1618
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1619
|
+
/**
|
|
1620
|
+
* Omit specific fields from the UserAgent
|
|
1621
|
+
*/
|
|
1622
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1623
|
+
/**
|
|
1624
|
+
* Choose, which related nodes to fetch as well
|
|
1625
|
+
*/
|
|
1626
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1627
|
+
/**
|
|
1628
|
+
* Filter, which UserAgents to fetch.
|
|
1629
|
+
*/
|
|
1630
|
+
where?: Prisma.UserAgentWhereInput
|
|
1631
|
+
/**
|
|
1632
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1633
|
+
*
|
|
1634
|
+
* Determine the order of UserAgents to fetch.
|
|
1635
|
+
*/
|
|
1636
|
+
orderBy?: Prisma.UserAgentOrderByWithRelationInput | Prisma.UserAgentOrderByWithRelationInput[]
|
|
1637
|
+
/**
|
|
1638
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1639
|
+
*
|
|
1640
|
+
* Sets the position for listing UserAgents.
|
|
1641
|
+
*/
|
|
1642
|
+
cursor?: Prisma.UserAgentWhereUniqueInput
|
|
1643
|
+
/**
|
|
1644
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1645
|
+
*
|
|
1646
|
+
* Take `±n` UserAgents from the position of the cursor.
|
|
1647
|
+
*/
|
|
1648
|
+
take?: number
|
|
1649
|
+
/**
|
|
1650
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1651
|
+
*
|
|
1652
|
+
* Skip the first `n` UserAgents.
|
|
1653
|
+
*/
|
|
1654
|
+
skip?: number
|
|
1655
|
+
/**
|
|
1656
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1657
|
+
*
|
|
1658
|
+
* Filter by unique combinations of UserAgents.
|
|
1659
|
+
*/
|
|
1660
|
+
distinct?: Prisma.UserAgentScalarFieldEnum | Prisma.UserAgentScalarFieldEnum[]
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* UserAgent create
|
|
1665
|
+
*/
|
|
1666
|
+
export type UserAgentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1667
|
+
/**
|
|
1668
|
+
* Select specific fields to fetch from the UserAgent
|
|
1669
|
+
*/
|
|
1670
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1671
|
+
/**
|
|
1672
|
+
* Omit specific fields from the UserAgent
|
|
1673
|
+
*/
|
|
1674
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1675
|
+
/**
|
|
1676
|
+
* Choose, which related nodes to fetch as well
|
|
1677
|
+
*/
|
|
1678
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1679
|
+
/**
|
|
1680
|
+
* The data needed to create a UserAgent.
|
|
1681
|
+
*/
|
|
1682
|
+
data: Prisma.XOR<Prisma.UserAgentCreateInput, Prisma.UserAgentUncheckedCreateInput>
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* UserAgent createMany
|
|
1687
|
+
*/
|
|
1688
|
+
export type UserAgentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1689
|
+
/**
|
|
1690
|
+
* The data used to create many UserAgents.
|
|
1691
|
+
*/
|
|
1692
|
+
data: Prisma.UserAgentCreateManyInput | Prisma.UserAgentCreateManyInput[]
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* UserAgent createManyAndReturn
|
|
1697
|
+
*/
|
|
1698
|
+
export type UserAgentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1699
|
+
/**
|
|
1700
|
+
* Select specific fields to fetch from the UserAgent
|
|
1701
|
+
*/
|
|
1702
|
+
select?: Prisma.UserAgentSelectCreateManyAndReturn<ExtArgs> | null
|
|
1703
|
+
/**
|
|
1704
|
+
* Omit specific fields from the UserAgent
|
|
1705
|
+
*/
|
|
1706
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1707
|
+
/**
|
|
1708
|
+
* The data used to create many UserAgents.
|
|
1709
|
+
*/
|
|
1710
|
+
data: Prisma.UserAgentCreateManyInput | Prisma.UserAgentCreateManyInput[]
|
|
1711
|
+
/**
|
|
1712
|
+
* Choose, which related nodes to fetch as well
|
|
1713
|
+
*/
|
|
1714
|
+
include?: Prisma.UserAgentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* UserAgent update
|
|
1719
|
+
*/
|
|
1720
|
+
export type UserAgentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1721
|
+
/**
|
|
1722
|
+
* Select specific fields to fetch from the UserAgent
|
|
1723
|
+
*/
|
|
1724
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1725
|
+
/**
|
|
1726
|
+
* Omit specific fields from the UserAgent
|
|
1727
|
+
*/
|
|
1728
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1729
|
+
/**
|
|
1730
|
+
* Choose, which related nodes to fetch as well
|
|
1731
|
+
*/
|
|
1732
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1733
|
+
/**
|
|
1734
|
+
* The data needed to update a UserAgent.
|
|
1735
|
+
*/
|
|
1736
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateInput, Prisma.UserAgentUncheckedUpdateInput>
|
|
1737
|
+
/**
|
|
1738
|
+
* Choose, which UserAgent to update.
|
|
1739
|
+
*/
|
|
1740
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* UserAgent updateMany
|
|
1745
|
+
*/
|
|
1746
|
+
export type UserAgentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1747
|
+
/**
|
|
1748
|
+
* The data used to update UserAgents.
|
|
1749
|
+
*/
|
|
1750
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateManyMutationInput, Prisma.UserAgentUncheckedUpdateManyInput>
|
|
1751
|
+
/**
|
|
1752
|
+
* Filter which UserAgents to update
|
|
1753
|
+
*/
|
|
1754
|
+
where?: Prisma.UserAgentWhereInput
|
|
1755
|
+
/**
|
|
1756
|
+
* Limit how many UserAgents to update.
|
|
1757
|
+
*/
|
|
1758
|
+
limit?: number
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* UserAgent updateManyAndReturn
|
|
1763
|
+
*/
|
|
1764
|
+
export type UserAgentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1765
|
+
/**
|
|
1766
|
+
* Select specific fields to fetch from the UserAgent
|
|
1767
|
+
*/
|
|
1768
|
+
select?: Prisma.UserAgentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1769
|
+
/**
|
|
1770
|
+
* Omit specific fields from the UserAgent
|
|
1771
|
+
*/
|
|
1772
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1773
|
+
/**
|
|
1774
|
+
* The data used to update UserAgents.
|
|
1775
|
+
*/
|
|
1776
|
+
data: Prisma.XOR<Prisma.UserAgentUpdateManyMutationInput, Prisma.UserAgentUncheckedUpdateManyInput>
|
|
1777
|
+
/**
|
|
1778
|
+
* Filter which UserAgents to update
|
|
1779
|
+
*/
|
|
1780
|
+
where?: Prisma.UserAgentWhereInput
|
|
1781
|
+
/**
|
|
1782
|
+
* Limit how many UserAgents to update.
|
|
1783
|
+
*/
|
|
1784
|
+
limit?: number
|
|
1785
|
+
/**
|
|
1786
|
+
* Choose, which related nodes to fetch as well
|
|
1787
|
+
*/
|
|
1788
|
+
include?: Prisma.UserAgentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* UserAgent upsert
|
|
1793
|
+
*/
|
|
1794
|
+
export type UserAgentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1795
|
+
/**
|
|
1796
|
+
* Select specific fields to fetch from the UserAgent
|
|
1797
|
+
*/
|
|
1798
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1799
|
+
/**
|
|
1800
|
+
* Omit specific fields from the UserAgent
|
|
1801
|
+
*/
|
|
1802
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1803
|
+
/**
|
|
1804
|
+
* Choose, which related nodes to fetch as well
|
|
1805
|
+
*/
|
|
1806
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1807
|
+
/**
|
|
1808
|
+
* The filter to search for the UserAgent to update in case it exists.
|
|
1809
|
+
*/
|
|
1810
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
1811
|
+
/**
|
|
1812
|
+
* In case the UserAgent found by the `where` argument doesn't exist, create a new UserAgent with this data.
|
|
1813
|
+
*/
|
|
1814
|
+
create: Prisma.XOR<Prisma.UserAgentCreateInput, Prisma.UserAgentUncheckedCreateInput>
|
|
1815
|
+
/**
|
|
1816
|
+
* In case the UserAgent was found with the provided `where` argument, update it with this data.
|
|
1817
|
+
*/
|
|
1818
|
+
update: Prisma.XOR<Prisma.UserAgentUpdateInput, Prisma.UserAgentUncheckedUpdateInput>
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* UserAgent delete
|
|
1823
|
+
*/
|
|
1824
|
+
export type UserAgentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1825
|
+
/**
|
|
1826
|
+
* Select specific fields to fetch from the UserAgent
|
|
1827
|
+
*/
|
|
1828
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1829
|
+
/**
|
|
1830
|
+
* Omit specific fields from the UserAgent
|
|
1831
|
+
*/
|
|
1832
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1833
|
+
/**
|
|
1834
|
+
* Choose, which related nodes to fetch as well
|
|
1835
|
+
*/
|
|
1836
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1837
|
+
/**
|
|
1838
|
+
* Filter which UserAgent to delete.
|
|
1839
|
+
*/
|
|
1840
|
+
where: Prisma.UserAgentWhereUniqueInput
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* UserAgent deleteMany
|
|
1845
|
+
*/
|
|
1846
|
+
export type UserAgentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1847
|
+
/**
|
|
1848
|
+
* Filter which UserAgents to delete
|
|
1849
|
+
*/
|
|
1850
|
+
where?: Prisma.UserAgentWhereInput
|
|
1851
|
+
/**
|
|
1852
|
+
* Limit how many UserAgents to delete.
|
|
1853
|
+
*/
|
|
1854
|
+
limit?: number
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* UserAgent.threads
|
|
1859
|
+
*/
|
|
1860
|
+
export type UserAgent$threadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1861
|
+
/**
|
|
1862
|
+
* Select specific fields to fetch from the ChatThread
|
|
1863
|
+
*/
|
|
1864
|
+
select?: Prisma.ChatThreadSelect<ExtArgs> | null
|
|
1865
|
+
/**
|
|
1866
|
+
* Omit specific fields from the ChatThread
|
|
1867
|
+
*/
|
|
1868
|
+
omit?: Prisma.ChatThreadOmit<ExtArgs> | null
|
|
1869
|
+
/**
|
|
1870
|
+
* Choose, which related nodes to fetch as well
|
|
1871
|
+
*/
|
|
1872
|
+
include?: Prisma.ChatThreadInclude<ExtArgs> | null
|
|
1873
|
+
where?: Prisma.ChatThreadWhereInput
|
|
1874
|
+
orderBy?: Prisma.ChatThreadOrderByWithRelationInput | Prisma.ChatThreadOrderByWithRelationInput[]
|
|
1875
|
+
cursor?: Prisma.ChatThreadWhereUniqueInput
|
|
1876
|
+
take?: number
|
|
1877
|
+
skip?: number
|
|
1878
|
+
distinct?: Prisma.ChatThreadScalarFieldEnum | Prisma.ChatThreadScalarFieldEnum[]
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* UserAgent without action
|
|
1883
|
+
*/
|
|
1884
|
+
export type UserAgentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1885
|
+
/**
|
|
1886
|
+
* Select specific fields to fetch from the UserAgent
|
|
1887
|
+
*/
|
|
1888
|
+
select?: Prisma.UserAgentSelect<ExtArgs> | null
|
|
1889
|
+
/**
|
|
1890
|
+
* Omit specific fields from the UserAgent
|
|
1891
|
+
*/
|
|
1892
|
+
omit?: Prisma.UserAgentOmit<ExtArgs> | null
|
|
1893
|
+
/**
|
|
1894
|
+
* Choose, which related nodes to fetch as well
|
|
1895
|
+
*/
|
|
1896
|
+
include?: Prisma.UserAgentInclude<ExtArgs> | null
|
|
1897
|
+
}
|