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