@allbluecn/database 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/index.ts +14 -17
  2. package/package.json +29 -21
  3. package/pglite-init.ts +75 -0
  4. package/LICENSE +0 -661
  5. package/desktop-init.ts +0 -162
  6. package/generated-sqlite/browser.ts +0 -499
  7. package/generated-sqlite/client.ts +0 -523
  8. package/generated-sqlite/commonInputTypes.ts +0 -722
  9. package/generated-sqlite/enums.ts +0 -15
  10. package/generated-sqlite/internal/class.ts +0 -1154
  11. package/generated-sqlite/internal/prismaNamespace.ts +0 -9576
  12. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1761
  13. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  14. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  15. package/generated-sqlite/models/AiProvider.ts +0 -1605
  16. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  17. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  18. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  19. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  20. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  21. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  22. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  23. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  24. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  25. package/generated-sqlite/models/AuditLog.ts +0 -1287
  26. package/generated-sqlite/models/Blob.ts +0 -1425
  27. package/generated-sqlite/models/Block.ts +0 -1648
  28. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  29. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  30. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  31. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  32. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  33. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  34. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  35. package/generated-sqlite/models/ChatRun.ts +0 -1802
  36. package/generated-sqlite/models/ChatThread.ts +0 -2417
  37. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  38. package/generated-sqlite/models/Comment.ts +0 -2201
  39. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  40. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  41. package/generated-sqlite/models/Component.ts +0 -2132
  42. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  43. package/generated-sqlite/models/CustomRole.ts +0 -1209
  44. package/generated-sqlite/models/Design.ts +0 -2497
  45. package/generated-sqlite/models/DesignPage.ts +0 -2398
  46. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  47. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  48. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  49. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  50. package/generated-sqlite/models/EmailLog.ts +0 -1343
  51. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  52. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  53. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  54. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  55. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  56. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  57. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  58. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  59. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  60. package/generated-sqlite/models/Invoice.ts +0 -1707
  61. package/generated-sqlite/models/Iteration.ts +0 -1874
  62. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  63. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  64. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  65. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  66. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  67. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  68. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  69. package/generated-sqlite/models/LoginLog.ts +0 -1447
  70. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  71. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  72. package/generated-sqlite/models/PageVersion.ts +0 -1520
  73. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  74. package/generated-sqlite/models/Plan.ts +0 -2250
  75. package/generated-sqlite/models/Project.ts +0 -2628
  76. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  77. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  78. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  79. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  80. package/generated-sqlite/models/Reference.ts +0 -1175
  81. package/generated-sqlite/models/Review.ts +0 -1903
  82. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  83. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  84. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  85. package/generated-sqlite/models/Share.ts +0 -1674
  86. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  87. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  88. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  89. package/generated-sqlite/models/Story.ts +0 -3263
  90. package/generated-sqlite/models/Subscription.ts +0 -2137
  91. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  92. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  93. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  94. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  95. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  96. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  97. package/generated-sqlite/models/Template.ts +0 -1389
  98. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  99. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  100. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  101. package/generated-sqlite/models/User.ts +0 -21247
  102. package/generated-sqlite/models/UserAgent.ts +0 -2146
  103. package/generated-sqlite/models/UserSkill.ts +0 -1453
  104. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  105. package/generated-sqlite/models/Workspace.ts +0 -2341
  106. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  107. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  108. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  109. package/generated-sqlite/models.ts +0 -107
  110. package/schema.sqlite.prisma +0 -2045
@@ -1,2341 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `Workspace` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model Workspace
17
- *
18
- */
19
- export type WorkspaceModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkspacePayload>
20
-
21
- export type AggregateWorkspace = {
22
- _count: WorkspaceCountAggregateOutputType | null
23
- _min: WorkspaceMinAggregateOutputType | null
24
- _max: WorkspaceMaxAggregateOutputType | null
25
- }
26
-
27
- export type WorkspaceMinAggregateOutputType = {
28
- id: string | null
29
- name: string | null
30
- icon: string | null
31
- description: string | null
32
- pinnedToSidebar: boolean | null
33
- ownerId: string | null
34
- createdAt: Date | null
35
- updatedAt: Date | null
36
- }
37
-
38
- export type WorkspaceMaxAggregateOutputType = {
39
- id: string | null
40
- name: string | null
41
- icon: string | null
42
- description: string | null
43
- pinnedToSidebar: boolean | null
44
- ownerId: string | null
45
- createdAt: Date | null
46
- updatedAt: Date | null
47
- }
48
-
49
- export type WorkspaceCountAggregateOutputType = {
50
- id: number
51
- name: number
52
- icon: number
53
- description: number
54
- pinnedToSidebar: number
55
- ownerId: number
56
- createdAt: number
57
- updatedAt: number
58
- _all: number
59
- }
60
-
61
-
62
- export type WorkspaceMinAggregateInputType = {
63
- id?: true
64
- name?: true
65
- icon?: true
66
- description?: true
67
- pinnedToSidebar?: true
68
- ownerId?: true
69
- createdAt?: true
70
- updatedAt?: true
71
- }
72
-
73
- export type WorkspaceMaxAggregateInputType = {
74
- id?: true
75
- name?: true
76
- icon?: true
77
- description?: true
78
- pinnedToSidebar?: true
79
- ownerId?: true
80
- createdAt?: true
81
- updatedAt?: true
82
- }
83
-
84
- export type WorkspaceCountAggregateInputType = {
85
- id?: true
86
- name?: true
87
- icon?: true
88
- description?: true
89
- pinnedToSidebar?: true
90
- ownerId?: true
91
- createdAt?: true
92
- updatedAt?: true
93
- _all?: true
94
- }
95
-
96
- export type WorkspaceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
- /**
98
- * Filter which Workspace to aggregate.
99
- */
100
- where?: Prisma.WorkspaceWhereInput
101
- /**
102
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
103
- *
104
- * Determine the order of Workspaces to fetch.
105
- */
106
- orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[]
107
- /**
108
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
109
- *
110
- * Sets the start position
111
- */
112
- cursor?: Prisma.WorkspaceWhereUniqueInput
113
- /**
114
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
- *
116
- * Take `±n` Workspaces from the position of the cursor.
117
- */
118
- take?: number
119
- /**
120
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
- *
122
- * Skip the first `n` Workspaces.
123
- */
124
- skip?: number
125
- /**
126
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
- *
128
- * Count returned Workspaces
129
- **/
130
- _count?: true | WorkspaceCountAggregateInputType
131
- /**
132
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
- *
134
- * Select which fields to find the minimum value
135
- **/
136
- _min?: WorkspaceMinAggregateInputType
137
- /**
138
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
- *
140
- * Select which fields to find the maximum value
141
- **/
142
- _max?: WorkspaceMaxAggregateInputType
143
- }
144
-
145
- export type GetWorkspaceAggregateType<T extends WorkspaceAggregateArgs> = {
146
- [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count'
147
- ? T[P] extends true
148
- ? number
149
- : Prisma.GetScalarType<T[P], AggregateWorkspace[P]>
150
- : Prisma.GetScalarType<T[P], AggregateWorkspace[P]>
151
- }
152
-
153
-
154
-
155
-
156
- export type WorkspaceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
157
- where?: Prisma.WorkspaceWhereInput
158
- orderBy?: Prisma.WorkspaceOrderByWithAggregationInput | Prisma.WorkspaceOrderByWithAggregationInput[]
159
- by: Prisma.WorkspaceScalarFieldEnum[] | Prisma.WorkspaceScalarFieldEnum
160
- having?: Prisma.WorkspaceScalarWhereWithAggregatesInput
161
- take?: number
162
- skip?: number
163
- _count?: WorkspaceCountAggregateInputType | true
164
- _min?: WorkspaceMinAggregateInputType
165
- _max?: WorkspaceMaxAggregateInputType
166
- }
167
-
168
- export type WorkspaceGroupByOutputType = {
169
- id: string
170
- name: string
171
- icon: string
172
- description: string | null
173
- pinnedToSidebar: boolean
174
- ownerId: string
175
- createdAt: Date
176
- updatedAt: Date
177
- _count: WorkspaceCountAggregateOutputType | null
178
- _min: WorkspaceMinAggregateOutputType | null
179
- _max: WorkspaceMaxAggregateOutputType | null
180
- }
181
-
182
- export type GetWorkspaceGroupByPayload<T extends WorkspaceGroupByArgs> = Prisma.PrismaPromise<
183
- Array<
184
- Prisma.PickEnumerable<WorkspaceGroupByOutputType, T['by']> &
185
- {
186
- [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count'
187
- ? T[P] extends boolean
188
- ? number
189
- : Prisma.GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
190
- : Prisma.GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
191
- }
192
- >
193
- >
194
-
195
-
196
-
197
- export type WorkspaceWhereInput = {
198
- AND?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[]
199
- OR?: Prisma.WorkspaceWhereInput[]
200
- NOT?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[]
201
- id?: Prisma.StringFilter<"Workspace"> | string
202
- name?: Prisma.StringFilter<"Workspace"> | string
203
- icon?: Prisma.StringFilter<"Workspace"> | string
204
- description?: Prisma.StringNullableFilter<"Workspace"> | string | null
205
- pinnedToSidebar?: Prisma.BoolFilter<"Workspace"> | boolean
206
- ownerId?: Prisma.StringFilter<"Workspace"> | string
207
- createdAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string
208
- updatedAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string
209
- owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
210
- projects?: Prisma.ProjectListRelationFilter
211
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
212
- knowledgeBases?: Prisma.KnowledgeBaseListRelationFilter
213
- quickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
214
- usageRecords?: Prisma.UsageRecordListRelationFilter
215
- aiUsageLogs?: Prisma.AiUsageLogListRelationFilter
216
- }
217
-
218
- export type WorkspaceOrderByWithRelationInput = {
219
- id?: Prisma.SortOrder
220
- name?: Prisma.SortOrder
221
- icon?: Prisma.SortOrder
222
- description?: Prisma.SortOrderInput | Prisma.SortOrder
223
- pinnedToSidebar?: Prisma.SortOrder
224
- ownerId?: Prisma.SortOrder
225
- createdAt?: Prisma.SortOrder
226
- updatedAt?: Prisma.SortOrder
227
- owner?: Prisma.UserOrderByWithRelationInput
228
- projects?: Prisma.ProjectOrderByRelationAggregateInput
229
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseOrderByRelationAggregateInput
230
- knowledgeBases?: Prisma.KnowledgeBaseOrderByRelationAggregateInput
231
- quickDocs?: Prisma.WorkspaceQuickDocOrderByRelationAggregateInput
232
- usageRecords?: Prisma.UsageRecordOrderByRelationAggregateInput
233
- aiUsageLogs?: Prisma.AiUsageLogOrderByRelationAggregateInput
234
- }
235
-
236
- export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
237
- id?: string
238
- AND?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[]
239
- OR?: Prisma.WorkspaceWhereInput[]
240
- NOT?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[]
241
- name?: Prisma.StringFilter<"Workspace"> | string
242
- icon?: Prisma.StringFilter<"Workspace"> | string
243
- description?: Prisma.StringNullableFilter<"Workspace"> | string | null
244
- pinnedToSidebar?: Prisma.BoolFilter<"Workspace"> | boolean
245
- ownerId?: Prisma.StringFilter<"Workspace"> | string
246
- createdAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string
247
- updatedAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string
248
- owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
249
- projects?: Prisma.ProjectListRelationFilter
250
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseListRelationFilter
251
- knowledgeBases?: Prisma.KnowledgeBaseListRelationFilter
252
- quickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
253
- usageRecords?: Prisma.UsageRecordListRelationFilter
254
- aiUsageLogs?: Prisma.AiUsageLogListRelationFilter
255
- }, "id">
256
-
257
- export type WorkspaceOrderByWithAggregationInput = {
258
- id?: Prisma.SortOrder
259
- name?: Prisma.SortOrder
260
- icon?: Prisma.SortOrder
261
- description?: Prisma.SortOrderInput | Prisma.SortOrder
262
- pinnedToSidebar?: Prisma.SortOrder
263
- ownerId?: Prisma.SortOrder
264
- createdAt?: Prisma.SortOrder
265
- updatedAt?: Prisma.SortOrder
266
- _count?: Prisma.WorkspaceCountOrderByAggregateInput
267
- _max?: Prisma.WorkspaceMaxOrderByAggregateInput
268
- _min?: Prisma.WorkspaceMinOrderByAggregateInput
269
- }
270
-
271
- export type WorkspaceScalarWhereWithAggregatesInput = {
272
- AND?: Prisma.WorkspaceScalarWhereWithAggregatesInput | Prisma.WorkspaceScalarWhereWithAggregatesInput[]
273
- OR?: Prisma.WorkspaceScalarWhereWithAggregatesInput[]
274
- NOT?: Prisma.WorkspaceScalarWhereWithAggregatesInput | Prisma.WorkspaceScalarWhereWithAggregatesInput[]
275
- id?: Prisma.StringWithAggregatesFilter<"Workspace"> | string
276
- name?: Prisma.StringWithAggregatesFilter<"Workspace"> | string
277
- icon?: Prisma.StringWithAggregatesFilter<"Workspace"> | string
278
- description?: Prisma.StringNullableWithAggregatesFilter<"Workspace"> | string | null
279
- pinnedToSidebar?: Prisma.BoolWithAggregatesFilter<"Workspace"> | boolean
280
- ownerId?: Prisma.StringWithAggregatesFilter<"Workspace"> | string
281
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Workspace"> | Date | string
282
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Workspace"> | Date | string
283
- }
284
-
285
- export type WorkspaceCreateInput = {
286
- id?: string
287
- name: string
288
- icon?: string
289
- description?: string | null
290
- pinnedToSidebar?: boolean
291
- createdAt?: Date | string
292
- updatedAt?: Date | string
293
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
294
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
295
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
296
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
297
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
298
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
299
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
300
- }
301
-
302
- export type WorkspaceUncheckedCreateInput = {
303
- id?: string
304
- name: string
305
- icon?: string
306
- description?: string | null
307
- pinnedToSidebar?: boolean
308
- ownerId: string
309
- createdAt?: Date | string
310
- updatedAt?: Date | string
311
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
312
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
313
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
314
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
315
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
316
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
317
- }
318
-
319
- export type WorkspaceUpdateInput = {
320
- id?: Prisma.StringFieldUpdateOperationsInput | string
321
- name?: Prisma.StringFieldUpdateOperationsInput | string
322
- icon?: Prisma.StringFieldUpdateOperationsInput | string
323
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
324
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
325
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
326
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
327
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
328
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
329
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
330
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
331
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
332
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
333
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
334
- }
335
-
336
- export type WorkspaceUncheckedUpdateInput = {
337
- id?: Prisma.StringFieldUpdateOperationsInput | string
338
- name?: Prisma.StringFieldUpdateOperationsInput | string
339
- icon?: Prisma.StringFieldUpdateOperationsInput | string
340
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
341
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
342
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
343
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
344
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
345
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
346
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
347
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
348
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
349
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
350
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
351
- }
352
-
353
- export type WorkspaceCreateManyInput = {
354
- id?: string
355
- name: string
356
- icon?: string
357
- description?: string | null
358
- pinnedToSidebar?: boolean
359
- ownerId: string
360
- createdAt?: Date | string
361
- updatedAt?: Date | string
362
- }
363
-
364
- export type WorkspaceUpdateManyMutationInput = {
365
- id?: Prisma.StringFieldUpdateOperationsInput | string
366
- name?: Prisma.StringFieldUpdateOperationsInput | string
367
- icon?: Prisma.StringFieldUpdateOperationsInput | string
368
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
369
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
370
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
371
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
372
- }
373
-
374
- export type WorkspaceUncheckedUpdateManyInput = {
375
- id?: Prisma.StringFieldUpdateOperationsInput | string
376
- name?: Prisma.StringFieldUpdateOperationsInput | string
377
- icon?: Prisma.StringFieldUpdateOperationsInput | string
378
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
379
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
380
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
381
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
382
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
383
- }
384
-
385
- export type WorkspaceListRelationFilter = {
386
- every?: Prisma.WorkspaceWhereInput
387
- some?: Prisma.WorkspaceWhereInput
388
- none?: Prisma.WorkspaceWhereInput
389
- }
390
-
391
- export type WorkspaceOrderByRelationAggregateInput = {
392
- _count?: Prisma.SortOrder
393
- }
394
-
395
- export type WorkspaceNullableScalarRelationFilter = {
396
- is?: Prisma.WorkspaceWhereInput | null
397
- isNot?: Prisma.WorkspaceWhereInput | null
398
- }
399
-
400
- export type WorkspaceCountOrderByAggregateInput = {
401
- id?: Prisma.SortOrder
402
- name?: Prisma.SortOrder
403
- icon?: Prisma.SortOrder
404
- description?: Prisma.SortOrder
405
- pinnedToSidebar?: Prisma.SortOrder
406
- ownerId?: Prisma.SortOrder
407
- createdAt?: Prisma.SortOrder
408
- updatedAt?: Prisma.SortOrder
409
- }
410
-
411
- export type WorkspaceMaxOrderByAggregateInput = {
412
- id?: Prisma.SortOrder
413
- name?: Prisma.SortOrder
414
- icon?: Prisma.SortOrder
415
- description?: Prisma.SortOrder
416
- pinnedToSidebar?: Prisma.SortOrder
417
- ownerId?: Prisma.SortOrder
418
- createdAt?: Prisma.SortOrder
419
- updatedAt?: Prisma.SortOrder
420
- }
421
-
422
- export type WorkspaceMinOrderByAggregateInput = {
423
- id?: Prisma.SortOrder
424
- name?: Prisma.SortOrder
425
- icon?: Prisma.SortOrder
426
- description?: Prisma.SortOrder
427
- pinnedToSidebar?: Prisma.SortOrder
428
- ownerId?: Prisma.SortOrder
429
- createdAt?: Prisma.SortOrder
430
- updatedAt?: Prisma.SortOrder
431
- }
432
-
433
- export type WorkspaceScalarRelationFilter = {
434
- is?: Prisma.WorkspaceWhereInput
435
- isNot?: Prisma.WorkspaceWhereInput
436
- }
437
-
438
- export type WorkspaceCreateNestedManyWithoutOwnerInput = {
439
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[]
440
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[]
441
- createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope
442
- connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
443
- }
444
-
445
- export type WorkspaceUncheckedCreateNestedManyWithoutOwnerInput = {
446
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[]
447
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[]
448
- createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope
449
- connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
450
- }
451
-
452
- export type WorkspaceUpdateManyWithoutOwnerNestedInput = {
453
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[]
454
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[]
455
- upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput[]
456
- createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope
457
- set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
458
- disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
459
- delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
460
- connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
461
- update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput[]
462
- updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput | Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput[]
463
- deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[]
464
- }
465
-
466
- export type WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput = {
467
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[]
468
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[]
469
- upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput[]
470
- createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope
471
- set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
472
- disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
473
- delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
474
- connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[]
475
- update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput[]
476
- updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput | Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput[]
477
- deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[]
478
- }
479
-
480
- export type WorkspaceCreateNestedOneWithoutProjectsInput = {
481
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutProjectsInput, Prisma.WorkspaceUncheckedCreateWithoutProjectsInput>
482
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutProjectsInput
483
- connect?: Prisma.WorkspaceWhereUniqueInput
484
- }
485
-
486
- export type WorkspaceUpdateOneWithoutProjectsNestedInput = {
487
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutProjectsInput, Prisma.WorkspaceUncheckedCreateWithoutProjectsInput>
488
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutProjectsInput
489
- upsert?: Prisma.WorkspaceUpsertWithoutProjectsInput
490
- disconnect?: Prisma.WorkspaceWhereInput | boolean
491
- delete?: Prisma.WorkspaceWhereInput | boolean
492
- connect?: Prisma.WorkspaceWhereUniqueInput
493
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutProjectsInput, Prisma.WorkspaceUpdateWithoutProjectsInput>, Prisma.WorkspaceUncheckedUpdateWithoutProjectsInput>
494
- }
495
-
496
- export type BoolFieldUpdateOperationsInput = {
497
- set?: boolean
498
- }
499
-
500
- export type WorkspaceCreateNestedOneWithoutKnowledgeBasesInput = {
501
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>
502
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutKnowledgeBasesInput
503
- connect?: Prisma.WorkspaceWhereUniqueInput
504
- }
505
-
506
- export type WorkspaceUpdateOneWithoutKnowledgeBasesNestedInput = {
507
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>
508
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutKnowledgeBasesInput
509
- upsert?: Prisma.WorkspaceUpsertWithoutKnowledgeBasesInput
510
- disconnect?: Prisma.WorkspaceWhereInput | boolean
511
- delete?: Prisma.WorkspaceWhereInput | boolean
512
- connect?: Prisma.WorkspaceWhereUniqueInput
513
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutKnowledgeBasesInput, Prisma.WorkspaceUpdateWithoutKnowledgeBasesInput>, Prisma.WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput>
514
- }
515
-
516
- export type WorkspaceCreateNestedOneWithoutWorkspaceKbLinksInput = {
517
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput>
518
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutWorkspaceKbLinksInput
519
- connect?: Prisma.WorkspaceWhereUniqueInput
520
- }
521
-
522
- export type WorkspaceUpdateOneRequiredWithoutWorkspaceKbLinksNestedInput = {
523
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput>
524
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutWorkspaceKbLinksInput
525
- upsert?: Prisma.WorkspaceUpsertWithoutWorkspaceKbLinksInput
526
- connect?: Prisma.WorkspaceWhereUniqueInput
527
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUpdateWithoutWorkspaceKbLinksInput>, Prisma.WorkspaceUncheckedUpdateWithoutWorkspaceKbLinksInput>
528
- }
529
-
530
- export type WorkspaceCreateNestedOneWithoutQuickDocsInput = {
531
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutQuickDocsInput, Prisma.WorkspaceUncheckedCreateWithoutQuickDocsInput>
532
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutQuickDocsInput
533
- connect?: Prisma.WorkspaceWhereUniqueInput
534
- }
535
-
536
- export type WorkspaceUpdateOneRequiredWithoutQuickDocsNestedInput = {
537
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutQuickDocsInput, Prisma.WorkspaceUncheckedCreateWithoutQuickDocsInput>
538
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutQuickDocsInput
539
- upsert?: Prisma.WorkspaceUpsertWithoutQuickDocsInput
540
- connect?: Prisma.WorkspaceWhereUniqueInput
541
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutQuickDocsInput, Prisma.WorkspaceUpdateWithoutQuickDocsInput>, Prisma.WorkspaceUncheckedUpdateWithoutQuickDocsInput>
542
- }
543
-
544
- export type WorkspaceCreateNestedOneWithoutUsageRecordsInput = {
545
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutUsageRecordsInput, Prisma.WorkspaceUncheckedCreateWithoutUsageRecordsInput>
546
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutUsageRecordsInput
547
- connect?: Prisma.WorkspaceWhereUniqueInput
548
- }
549
-
550
- export type WorkspaceUpdateOneRequiredWithoutUsageRecordsNestedInput = {
551
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutUsageRecordsInput, Prisma.WorkspaceUncheckedCreateWithoutUsageRecordsInput>
552
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutUsageRecordsInput
553
- upsert?: Prisma.WorkspaceUpsertWithoutUsageRecordsInput
554
- connect?: Prisma.WorkspaceWhereUniqueInput
555
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutUsageRecordsInput, Prisma.WorkspaceUpdateWithoutUsageRecordsInput>, Prisma.WorkspaceUncheckedUpdateWithoutUsageRecordsInput>
556
- }
557
-
558
- export type WorkspaceCreateNestedOneWithoutAiUsageLogsInput = {
559
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedCreateWithoutAiUsageLogsInput>
560
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutAiUsageLogsInput
561
- connect?: Prisma.WorkspaceWhereUniqueInput
562
- }
563
-
564
- export type WorkspaceUpdateOneWithoutAiUsageLogsNestedInput = {
565
- create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedCreateWithoutAiUsageLogsInput>
566
- connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutAiUsageLogsInput
567
- upsert?: Prisma.WorkspaceUpsertWithoutAiUsageLogsInput
568
- disconnect?: Prisma.WorkspaceWhereInput | boolean
569
- delete?: Prisma.WorkspaceWhereInput | boolean
570
- connect?: Prisma.WorkspaceWhereUniqueInput
571
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutAiUsageLogsInput, Prisma.WorkspaceUpdateWithoutAiUsageLogsInput>, Prisma.WorkspaceUncheckedUpdateWithoutAiUsageLogsInput>
572
- }
573
-
574
- export type WorkspaceCreateWithoutOwnerInput = {
575
- id?: string
576
- name: string
577
- icon?: string
578
- description?: string | null
579
- pinnedToSidebar?: boolean
580
- createdAt?: Date | string
581
- updatedAt?: Date | string
582
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
583
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
584
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
585
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
586
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
587
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
588
- }
589
-
590
- export type WorkspaceUncheckedCreateWithoutOwnerInput = {
591
- id?: string
592
- name: string
593
- icon?: string
594
- description?: string | null
595
- pinnedToSidebar?: boolean
596
- createdAt?: Date | string
597
- updatedAt?: Date | string
598
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
599
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
600
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
601
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
602
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
603
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
604
- }
605
-
606
- export type WorkspaceCreateOrConnectWithoutOwnerInput = {
607
- where: Prisma.WorkspaceWhereUniqueInput
608
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput>
609
- }
610
-
611
- export type WorkspaceCreateManyOwnerInputEnvelope = {
612
- data: Prisma.WorkspaceCreateManyOwnerInput | Prisma.WorkspaceCreateManyOwnerInput[]
613
- }
614
-
615
- export type WorkspaceUpsertWithWhereUniqueWithoutOwnerInput = {
616
- where: Prisma.WorkspaceWhereUniqueInput
617
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutOwnerInput, Prisma.WorkspaceUncheckedUpdateWithoutOwnerInput>
618
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput>
619
- }
620
-
621
- export type WorkspaceUpdateWithWhereUniqueWithoutOwnerInput = {
622
- where: Prisma.WorkspaceWhereUniqueInput
623
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutOwnerInput, Prisma.WorkspaceUncheckedUpdateWithoutOwnerInput>
624
- }
625
-
626
- export type WorkspaceUpdateManyWithWhereWithoutOwnerInput = {
627
- where: Prisma.WorkspaceScalarWhereInput
628
- data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyWithoutOwnerInput>
629
- }
630
-
631
- export type WorkspaceScalarWhereInput = {
632
- AND?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[]
633
- OR?: Prisma.WorkspaceScalarWhereInput[]
634
- NOT?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[]
635
- id?: Prisma.StringFilter<"Workspace"> | string
636
- name?: Prisma.StringFilter<"Workspace"> | string
637
- icon?: Prisma.StringFilter<"Workspace"> | string
638
- description?: Prisma.StringNullableFilter<"Workspace"> | string | null
639
- pinnedToSidebar?: Prisma.BoolFilter<"Workspace"> | boolean
640
- ownerId?: Prisma.StringFilter<"Workspace"> | string
641
- createdAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string
642
- updatedAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string
643
- }
644
-
645
- export type WorkspaceCreateWithoutProjectsInput = {
646
- id?: string
647
- name: string
648
- icon?: string
649
- description?: string | null
650
- pinnedToSidebar?: boolean
651
- createdAt?: Date | string
652
- updatedAt?: Date | string
653
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
654
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
655
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
656
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
657
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
658
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
659
- }
660
-
661
- export type WorkspaceUncheckedCreateWithoutProjectsInput = {
662
- id?: string
663
- name: string
664
- icon?: string
665
- description?: string | null
666
- pinnedToSidebar?: boolean
667
- ownerId: string
668
- createdAt?: Date | string
669
- updatedAt?: Date | string
670
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
671
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
672
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
673
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
674
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
675
- }
676
-
677
- export type WorkspaceCreateOrConnectWithoutProjectsInput = {
678
- where: Prisma.WorkspaceWhereUniqueInput
679
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutProjectsInput, Prisma.WorkspaceUncheckedCreateWithoutProjectsInput>
680
- }
681
-
682
- export type WorkspaceUpsertWithoutProjectsInput = {
683
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutProjectsInput, Prisma.WorkspaceUncheckedUpdateWithoutProjectsInput>
684
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutProjectsInput, Prisma.WorkspaceUncheckedCreateWithoutProjectsInput>
685
- where?: Prisma.WorkspaceWhereInput
686
- }
687
-
688
- export type WorkspaceUpdateToOneWithWhereWithoutProjectsInput = {
689
- where?: Prisma.WorkspaceWhereInput
690
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutProjectsInput, Prisma.WorkspaceUncheckedUpdateWithoutProjectsInput>
691
- }
692
-
693
- export type WorkspaceUpdateWithoutProjectsInput = {
694
- id?: Prisma.StringFieldUpdateOperationsInput | string
695
- name?: Prisma.StringFieldUpdateOperationsInput | string
696
- icon?: Prisma.StringFieldUpdateOperationsInput | string
697
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
698
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
699
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
700
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
701
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
702
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
703
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
704
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
705
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
706
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
707
- }
708
-
709
- export type WorkspaceUncheckedUpdateWithoutProjectsInput = {
710
- id?: Prisma.StringFieldUpdateOperationsInput | string
711
- name?: Prisma.StringFieldUpdateOperationsInput | string
712
- icon?: Prisma.StringFieldUpdateOperationsInput | string
713
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
714
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
715
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
716
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
717
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
718
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
719
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
720
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
721
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
722
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
723
- }
724
-
725
- export type WorkspaceCreateWithoutKnowledgeBasesInput = {
726
- id?: string
727
- name: string
728
- icon?: string
729
- description?: string | null
730
- pinnedToSidebar?: boolean
731
- createdAt?: Date | string
732
- updatedAt?: Date | string
733
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
734
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
735
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
736
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
737
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
738
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
739
- }
740
-
741
- export type WorkspaceUncheckedCreateWithoutKnowledgeBasesInput = {
742
- id?: string
743
- name: string
744
- icon?: string
745
- description?: string | null
746
- pinnedToSidebar?: boolean
747
- ownerId: string
748
- createdAt?: Date | string
749
- updatedAt?: Date | string
750
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
751
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
752
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
753
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
754
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
755
- }
756
-
757
- export type WorkspaceCreateOrConnectWithoutKnowledgeBasesInput = {
758
- where: Prisma.WorkspaceWhereUniqueInput
759
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>
760
- }
761
-
762
- export type WorkspaceUpsertWithoutKnowledgeBasesInput = {
763
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput>
764
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>
765
- where?: Prisma.WorkspaceWhereInput
766
- }
767
-
768
- export type WorkspaceUpdateToOneWithWhereWithoutKnowledgeBasesInput = {
769
- where?: Prisma.WorkspaceWhereInput
770
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput>
771
- }
772
-
773
- export type WorkspaceUpdateWithoutKnowledgeBasesInput = {
774
- id?: Prisma.StringFieldUpdateOperationsInput | string
775
- name?: Prisma.StringFieldUpdateOperationsInput | string
776
- icon?: Prisma.StringFieldUpdateOperationsInput | string
777
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
778
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
779
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
780
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
781
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
782
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
783
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
784
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
785
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
786
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
787
- }
788
-
789
- export type WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput = {
790
- id?: Prisma.StringFieldUpdateOperationsInput | string
791
- name?: Prisma.StringFieldUpdateOperationsInput | string
792
- icon?: Prisma.StringFieldUpdateOperationsInput | string
793
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
794
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
795
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
796
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
797
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
798
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
799
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
800
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
801
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
802
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
803
- }
804
-
805
- export type WorkspaceCreateWithoutWorkspaceKbLinksInput = {
806
- id?: string
807
- name: string
808
- icon?: string
809
- description?: string | null
810
- pinnedToSidebar?: boolean
811
- createdAt?: Date | string
812
- updatedAt?: Date | string
813
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
814
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
815
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
816
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
817
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
818
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
819
- }
820
-
821
- export type WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput = {
822
- id?: string
823
- name: string
824
- icon?: string
825
- description?: string | null
826
- pinnedToSidebar?: boolean
827
- ownerId: string
828
- createdAt?: Date | string
829
- updatedAt?: Date | string
830
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
831
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
832
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
833
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
834
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
835
- }
836
-
837
- export type WorkspaceCreateOrConnectWithoutWorkspaceKbLinksInput = {
838
- where: Prisma.WorkspaceWhereUniqueInput
839
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput>
840
- }
841
-
842
- export type WorkspaceUpsertWithoutWorkspaceKbLinksInput = {
843
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUncheckedUpdateWithoutWorkspaceKbLinksInput>
844
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUncheckedCreateWithoutWorkspaceKbLinksInput>
845
- where?: Prisma.WorkspaceWhereInput
846
- }
847
-
848
- export type WorkspaceUpdateToOneWithWhereWithoutWorkspaceKbLinksInput = {
849
- where?: Prisma.WorkspaceWhereInput
850
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutWorkspaceKbLinksInput, Prisma.WorkspaceUncheckedUpdateWithoutWorkspaceKbLinksInput>
851
- }
852
-
853
- export type WorkspaceUpdateWithoutWorkspaceKbLinksInput = {
854
- id?: Prisma.StringFieldUpdateOperationsInput | string
855
- name?: Prisma.StringFieldUpdateOperationsInput | string
856
- icon?: Prisma.StringFieldUpdateOperationsInput | string
857
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
858
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
859
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
860
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
861
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
862
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
863
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
864
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
865
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
866
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
867
- }
868
-
869
- export type WorkspaceUncheckedUpdateWithoutWorkspaceKbLinksInput = {
870
- id?: Prisma.StringFieldUpdateOperationsInput | string
871
- name?: Prisma.StringFieldUpdateOperationsInput | string
872
- icon?: Prisma.StringFieldUpdateOperationsInput | string
873
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
874
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
875
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
876
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
877
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
878
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
879
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
880
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
881
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
882
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
883
- }
884
-
885
- export type WorkspaceCreateWithoutQuickDocsInput = {
886
- id?: string
887
- name: string
888
- icon?: string
889
- description?: string | null
890
- pinnedToSidebar?: boolean
891
- createdAt?: Date | string
892
- updatedAt?: Date | string
893
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
894
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
895
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
896
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
897
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
898
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
899
- }
900
-
901
- export type WorkspaceUncheckedCreateWithoutQuickDocsInput = {
902
- id?: string
903
- name: string
904
- icon?: string
905
- description?: string | null
906
- pinnedToSidebar?: boolean
907
- ownerId: string
908
- createdAt?: Date | string
909
- updatedAt?: Date | string
910
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
911
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
912
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
913
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
914
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
915
- }
916
-
917
- export type WorkspaceCreateOrConnectWithoutQuickDocsInput = {
918
- where: Prisma.WorkspaceWhereUniqueInput
919
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutQuickDocsInput, Prisma.WorkspaceUncheckedCreateWithoutQuickDocsInput>
920
- }
921
-
922
- export type WorkspaceUpsertWithoutQuickDocsInput = {
923
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutQuickDocsInput, Prisma.WorkspaceUncheckedUpdateWithoutQuickDocsInput>
924
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutQuickDocsInput, Prisma.WorkspaceUncheckedCreateWithoutQuickDocsInput>
925
- where?: Prisma.WorkspaceWhereInput
926
- }
927
-
928
- export type WorkspaceUpdateToOneWithWhereWithoutQuickDocsInput = {
929
- where?: Prisma.WorkspaceWhereInput
930
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutQuickDocsInput, Prisma.WorkspaceUncheckedUpdateWithoutQuickDocsInput>
931
- }
932
-
933
- export type WorkspaceUpdateWithoutQuickDocsInput = {
934
- id?: Prisma.StringFieldUpdateOperationsInput | string
935
- name?: Prisma.StringFieldUpdateOperationsInput | string
936
- icon?: Prisma.StringFieldUpdateOperationsInput | string
937
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
938
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
939
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
940
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
941
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
942
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
943
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
944
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
945
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
946
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
947
- }
948
-
949
- export type WorkspaceUncheckedUpdateWithoutQuickDocsInput = {
950
- id?: Prisma.StringFieldUpdateOperationsInput | string
951
- name?: Prisma.StringFieldUpdateOperationsInput | string
952
- icon?: Prisma.StringFieldUpdateOperationsInput | string
953
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
954
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
955
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
956
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
957
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
958
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
959
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
960
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
961
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
962
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
963
- }
964
-
965
- export type WorkspaceCreateWithoutUsageRecordsInput = {
966
- id?: string
967
- name: string
968
- icon?: string
969
- description?: string | null
970
- pinnedToSidebar?: boolean
971
- createdAt?: Date | string
972
- updatedAt?: Date | string
973
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
974
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
975
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
976
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
977
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
978
- aiUsageLogs?: Prisma.AiUsageLogCreateNestedManyWithoutWorkspaceInput
979
- }
980
-
981
- export type WorkspaceUncheckedCreateWithoutUsageRecordsInput = {
982
- id?: string
983
- name: string
984
- icon?: string
985
- description?: string | null
986
- pinnedToSidebar?: boolean
987
- ownerId: string
988
- createdAt?: Date | string
989
- updatedAt?: Date | string
990
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
991
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
992
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
993
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
994
- aiUsageLogs?: Prisma.AiUsageLogUncheckedCreateNestedManyWithoutWorkspaceInput
995
- }
996
-
997
- export type WorkspaceCreateOrConnectWithoutUsageRecordsInput = {
998
- where: Prisma.WorkspaceWhereUniqueInput
999
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutUsageRecordsInput, Prisma.WorkspaceUncheckedCreateWithoutUsageRecordsInput>
1000
- }
1001
-
1002
- export type WorkspaceUpsertWithoutUsageRecordsInput = {
1003
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutUsageRecordsInput, Prisma.WorkspaceUncheckedUpdateWithoutUsageRecordsInput>
1004
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutUsageRecordsInput, Prisma.WorkspaceUncheckedCreateWithoutUsageRecordsInput>
1005
- where?: Prisma.WorkspaceWhereInput
1006
- }
1007
-
1008
- export type WorkspaceUpdateToOneWithWhereWithoutUsageRecordsInput = {
1009
- where?: Prisma.WorkspaceWhereInput
1010
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutUsageRecordsInput, Prisma.WorkspaceUncheckedUpdateWithoutUsageRecordsInput>
1011
- }
1012
-
1013
- export type WorkspaceUpdateWithoutUsageRecordsInput = {
1014
- id?: Prisma.StringFieldUpdateOperationsInput | string
1015
- name?: Prisma.StringFieldUpdateOperationsInput | string
1016
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1017
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1018
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1019
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1020
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1021
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
1022
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
1023
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1024
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1025
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
1026
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
1027
- }
1028
-
1029
- export type WorkspaceUncheckedUpdateWithoutUsageRecordsInput = {
1030
- id?: Prisma.StringFieldUpdateOperationsInput | string
1031
- name?: Prisma.StringFieldUpdateOperationsInput | string
1032
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1033
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1034
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1035
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
1036
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1037
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1038
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
1039
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1040
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1041
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
1042
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1043
- }
1044
-
1045
- export type WorkspaceCreateWithoutAiUsageLogsInput = {
1046
- id?: string
1047
- name: string
1048
- icon?: string
1049
- description?: string | null
1050
- pinnedToSidebar?: boolean
1051
- createdAt?: Date | string
1052
- updatedAt?: Date | string
1053
- owner: Prisma.UserCreateNestedOneWithoutOwnedWorkspacesInput
1054
- projects?: Prisma.ProjectCreateNestedManyWithoutWorkspaceInput
1055
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput
1056
- knowledgeBases?: Prisma.KnowledgeBaseCreateNestedManyWithoutWorkspaceInput
1057
- quickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutWorkspaceInput
1058
- usageRecords?: Prisma.UsageRecordCreateNestedManyWithoutWorkspaceInput
1059
- }
1060
-
1061
- export type WorkspaceUncheckedCreateWithoutAiUsageLogsInput = {
1062
- id?: string
1063
- name: string
1064
- icon?: string
1065
- description?: string | null
1066
- pinnedToSidebar?: boolean
1067
- ownerId: string
1068
- createdAt?: Date | string
1069
- updatedAt?: Date | string
1070
- projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutWorkspaceInput
1071
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
1072
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput
1073
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutWorkspaceInput
1074
- usageRecords?: Prisma.UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput
1075
- }
1076
-
1077
- export type WorkspaceCreateOrConnectWithoutAiUsageLogsInput = {
1078
- where: Prisma.WorkspaceWhereUniqueInput
1079
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedCreateWithoutAiUsageLogsInput>
1080
- }
1081
-
1082
- export type WorkspaceUpsertWithoutAiUsageLogsInput = {
1083
- update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedUpdateWithoutAiUsageLogsInput>
1084
- create: Prisma.XOR<Prisma.WorkspaceCreateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedCreateWithoutAiUsageLogsInput>
1085
- where?: Prisma.WorkspaceWhereInput
1086
- }
1087
-
1088
- export type WorkspaceUpdateToOneWithWhereWithoutAiUsageLogsInput = {
1089
- where?: Prisma.WorkspaceWhereInput
1090
- data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutAiUsageLogsInput, Prisma.WorkspaceUncheckedUpdateWithoutAiUsageLogsInput>
1091
- }
1092
-
1093
- export type WorkspaceUpdateWithoutAiUsageLogsInput = {
1094
- id?: Prisma.StringFieldUpdateOperationsInput | string
1095
- name?: Prisma.StringFieldUpdateOperationsInput | string
1096
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1097
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1098
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1099
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1100
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1101
- owner?: Prisma.UserUpdateOneRequiredWithoutOwnedWorkspacesNestedInput
1102
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
1103
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1104
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1105
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
1106
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
1107
- }
1108
-
1109
- export type WorkspaceUncheckedUpdateWithoutAiUsageLogsInput = {
1110
- id?: Prisma.StringFieldUpdateOperationsInput | string
1111
- name?: Prisma.StringFieldUpdateOperationsInput | string
1112
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1113
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1114
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1115
- ownerId?: Prisma.StringFieldUpdateOperationsInput | string
1116
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1117
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1118
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
1119
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1120
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1121
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
1122
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
1123
- }
1124
-
1125
- export type WorkspaceCreateManyOwnerInput = {
1126
- id?: string
1127
- name: string
1128
- icon?: string
1129
- description?: string | null
1130
- pinnedToSidebar?: boolean
1131
- createdAt?: Date | string
1132
- updatedAt?: Date | string
1133
- }
1134
-
1135
- export type WorkspaceUpdateWithoutOwnerInput = {
1136
- id?: Prisma.StringFieldUpdateOperationsInput | string
1137
- name?: Prisma.StringFieldUpdateOperationsInput | string
1138
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1139
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1140
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1141
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1142
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1143
- projects?: Prisma.ProjectUpdateManyWithoutWorkspaceNestedInput
1144
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1145
- knowledgeBases?: Prisma.KnowledgeBaseUpdateManyWithoutWorkspaceNestedInput
1146
- quickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutWorkspaceNestedInput
1147
- usageRecords?: Prisma.UsageRecordUpdateManyWithoutWorkspaceNestedInput
1148
- aiUsageLogs?: Prisma.AiUsageLogUpdateManyWithoutWorkspaceNestedInput
1149
- }
1150
-
1151
- export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
1152
- id?: Prisma.StringFieldUpdateOperationsInput | string
1153
- name?: Prisma.StringFieldUpdateOperationsInput | string
1154
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1155
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1156
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1157
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1158
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1159
- projects?: Prisma.ProjectUncheckedUpdateManyWithoutWorkspaceNestedInput
1160
- workspaceKbLinks?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1161
- knowledgeBases?: Prisma.KnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput
1162
- quickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutWorkspaceNestedInput
1163
- usageRecords?: Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput
1164
- aiUsageLogs?: Prisma.AiUsageLogUncheckedUpdateManyWithoutWorkspaceNestedInput
1165
- }
1166
-
1167
- export type WorkspaceUncheckedUpdateManyWithoutOwnerInput = {
1168
- id?: Prisma.StringFieldUpdateOperationsInput | string
1169
- name?: Prisma.StringFieldUpdateOperationsInput | string
1170
- icon?: Prisma.StringFieldUpdateOperationsInput | string
1171
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1172
- pinnedToSidebar?: Prisma.BoolFieldUpdateOperationsInput | boolean
1173
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1174
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1175
- }
1176
-
1177
-
1178
- /**
1179
- * Count Type WorkspaceCountOutputType
1180
- */
1181
-
1182
- export type WorkspaceCountOutputType = {
1183
- projects: number
1184
- workspaceKbLinks: number
1185
- knowledgeBases: number
1186
- quickDocs: number
1187
- usageRecords: number
1188
- aiUsageLogs: number
1189
- }
1190
-
1191
- export type WorkspaceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1192
- projects?: boolean | WorkspaceCountOutputTypeCountProjectsArgs
1193
- workspaceKbLinks?: boolean | WorkspaceCountOutputTypeCountWorkspaceKbLinksArgs
1194
- knowledgeBases?: boolean | WorkspaceCountOutputTypeCountKnowledgeBasesArgs
1195
- quickDocs?: boolean | WorkspaceCountOutputTypeCountQuickDocsArgs
1196
- usageRecords?: boolean | WorkspaceCountOutputTypeCountUsageRecordsArgs
1197
- aiUsageLogs?: boolean | WorkspaceCountOutputTypeCountAiUsageLogsArgs
1198
- }
1199
-
1200
- /**
1201
- * WorkspaceCountOutputType without action
1202
- */
1203
- export type WorkspaceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1204
- /**
1205
- * Select specific fields to fetch from the WorkspaceCountOutputType
1206
- */
1207
- select?: Prisma.WorkspaceCountOutputTypeSelect<ExtArgs> | null
1208
- }
1209
-
1210
- /**
1211
- * WorkspaceCountOutputType without action
1212
- */
1213
- export type WorkspaceCountOutputTypeCountProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1214
- where?: Prisma.ProjectWhereInput
1215
- }
1216
-
1217
- /**
1218
- * WorkspaceCountOutputType without action
1219
- */
1220
- export type WorkspaceCountOutputTypeCountWorkspaceKbLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
- where?: Prisma.WorkspaceKnowledgeBaseWhereInput
1222
- }
1223
-
1224
- /**
1225
- * WorkspaceCountOutputType without action
1226
- */
1227
- export type WorkspaceCountOutputTypeCountKnowledgeBasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1228
- where?: Prisma.KnowledgeBaseWhereInput
1229
- }
1230
-
1231
- /**
1232
- * WorkspaceCountOutputType without action
1233
- */
1234
- export type WorkspaceCountOutputTypeCountQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
- where?: Prisma.WorkspaceQuickDocWhereInput
1236
- }
1237
-
1238
- /**
1239
- * WorkspaceCountOutputType without action
1240
- */
1241
- export type WorkspaceCountOutputTypeCountUsageRecordsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
- where?: Prisma.UsageRecordWhereInput
1243
- }
1244
-
1245
- /**
1246
- * WorkspaceCountOutputType without action
1247
- */
1248
- export type WorkspaceCountOutputTypeCountAiUsageLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
- where?: Prisma.AiUsageLogWhereInput
1250
- }
1251
-
1252
-
1253
- export type WorkspaceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1254
- id?: boolean
1255
- name?: boolean
1256
- icon?: boolean
1257
- description?: boolean
1258
- pinnedToSidebar?: boolean
1259
- ownerId?: boolean
1260
- createdAt?: boolean
1261
- updatedAt?: boolean
1262
- owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1263
- projects?: boolean | Prisma.Workspace$projectsArgs<ExtArgs>
1264
- workspaceKbLinks?: boolean | Prisma.Workspace$workspaceKbLinksArgs<ExtArgs>
1265
- knowledgeBases?: boolean | Prisma.Workspace$knowledgeBasesArgs<ExtArgs>
1266
- quickDocs?: boolean | Prisma.Workspace$quickDocsArgs<ExtArgs>
1267
- usageRecords?: boolean | Prisma.Workspace$usageRecordsArgs<ExtArgs>
1268
- aiUsageLogs?: boolean | Prisma.Workspace$aiUsageLogsArgs<ExtArgs>
1269
- _count?: boolean | Prisma.WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
1270
- }, ExtArgs["result"]["workspace"]>
1271
-
1272
- export type WorkspaceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1273
- id?: boolean
1274
- name?: boolean
1275
- icon?: boolean
1276
- description?: boolean
1277
- pinnedToSidebar?: boolean
1278
- ownerId?: boolean
1279
- createdAt?: boolean
1280
- updatedAt?: boolean
1281
- owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1282
- }, ExtArgs["result"]["workspace"]>
1283
-
1284
- export type WorkspaceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1285
- id?: boolean
1286
- name?: boolean
1287
- icon?: boolean
1288
- description?: boolean
1289
- pinnedToSidebar?: boolean
1290
- ownerId?: boolean
1291
- createdAt?: boolean
1292
- updatedAt?: boolean
1293
- owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1294
- }, ExtArgs["result"]["workspace"]>
1295
-
1296
- export type WorkspaceSelectScalar = {
1297
- id?: boolean
1298
- name?: boolean
1299
- icon?: boolean
1300
- description?: boolean
1301
- pinnedToSidebar?: boolean
1302
- ownerId?: boolean
1303
- createdAt?: boolean
1304
- updatedAt?: boolean
1305
- }
1306
-
1307
- export type WorkspaceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "icon" | "description" | "pinnedToSidebar" | "ownerId" | "createdAt" | "updatedAt", ExtArgs["result"]["workspace"]>
1308
- export type WorkspaceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1309
- owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1310
- projects?: boolean | Prisma.Workspace$projectsArgs<ExtArgs>
1311
- workspaceKbLinks?: boolean | Prisma.Workspace$workspaceKbLinksArgs<ExtArgs>
1312
- knowledgeBases?: boolean | Prisma.Workspace$knowledgeBasesArgs<ExtArgs>
1313
- quickDocs?: boolean | Prisma.Workspace$quickDocsArgs<ExtArgs>
1314
- usageRecords?: boolean | Prisma.Workspace$usageRecordsArgs<ExtArgs>
1315
- aiUsageLogs?: boolean | Prisma.Workspace$aiUsageLogsArgs<ExtArgs>
1316
- _count?: boolean | Prisma.WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
1317
- }
1318
- export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1319
- owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1320
- }
1321
- export type WorkspaceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
- owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1323
- }
1324
-
1325
- export type $WorkspacePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
- name: "Workspace"
1327
- objects: {
1328
- owner: Prisma.$UserPayload<ExtArgs>
1329
- projects: Prisma.$ProjectPayload<ExtArgs>[]
1330
- workspaceKbLinks: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>[]
1331
- knowledgeBases: Prisma.$KnowledgeBasePayload<ExtArgs>[]
1332
- quickDocs: Prisma.$WorkspaceQuickDocPayload<ExtArgs>[]
1333
- usageRecords: Prisma.$UsageRecordPayload<ExtArgs>[]
1334
- aiUsageLogs: Prisma.$AiUsageLogPayload<ExtArgs>[]
1335
- }
1336
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1337
- id: string
1338
- name: string
1339
- icon: string
1340
- description: string | null
1341
- pinnedToSidebar: boolean
1342
- ownerId: string
1343
- createdAt: Date
1344
- updatedAt: Date
1345
- }, ExtArgs["result"]["workspace"]>
1346
- composites: {}
1347
- }
1348
-
1349
- export type WorkspaceGetPayload<S extends boolean | null | undefined | WorkspaceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkspacePayload, S>
1350
-
1351
- export type WorkspaceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1352
- Omit<WorkspaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1353
- select?: WorkspaceCountAggregateInputType | true
1354
- }
1355
-
1356
- export interface WorkspaceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1357
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Workspace'], meta: { name: 'Workspace' } }
1358
- /**
1359
- * Find zero or one Workspace that matches the filter.
1360
- * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace
1361
- * @example
1362
- * // Get one Workspace
1363
- * const workspace = await prisma.workspace.findUnique({
1364
- * where: {
1365
- * // ... provide filter here
1366
- * }
1367
- * })
1368
- */
1369
- findUnique<T extends WorkspaceFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkspaceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1370
-
1371
- /**
1372
- * Find one Workspace that matches the filter or throw an error with `error.code='P2025'`
1373
- * if no matches were found.
1374
- * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace
1375
- * @example
1376
- * // Get one Workspace
1377
- * const workspace = await prisma.workspace.findUniqueOrThrow({
1378
- * where: {
1379
- * // ... provide filter here
1380
- * }
1381
- * })
1382
- */
1383
- findUniqueOrThrow<T extends WorkspaceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkspaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1384
-
1385
- /**
1386
- * Find the first Workspace that matches the filter.
1387
- * Note, that providing `undefined` is treated as the value not being there.
1388
- * Read more here: https://pris.ly/d/null-undefined
1389
- * @param {WorkspaceFindFirstArgs} args - Arguments to find a Workspace
1390
- * @example
1391
- * // Get one Workspace
1392
- * const workspace = await prisma.workspace.findFirst({
1393
- * where: {
1394
- * // ... provide filter here
1395
- * }
1396
- * })
1397
- */
1398
- findFirst<T extends WorkspaceFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkspaceFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1399
-
1400
- /**
1401
- * Find the first Workspace that matches the filter or
1402
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1403
- * Note, that providing `undefined` is treated as the value not being there.
1404
- * Read more here: https://pris.ly/d/null-undefined
1405
- * @param {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace
1406
- * @example
1407
- * // Get one Workspace
1408
- * const workspace = await prisma.workspace.findFirstOrThrow({
1409
- * where: {
1410
- * // ... provide filter here
1411
- * }
1412
- * })
1413
- */
1414
- findFirstOrThrow<T extends WorkspaceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkspaceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1415
-
1416
- /**
1417
- * Find zero or more Workspaces that matches the filter.
1418
- * Note, that providing `undefined` is treated as the value not being there.
1419
- * Read more here: https://pris.ly/d/null-undefined
1420
- * @param {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only.
1421
- * @example
1422
- * // Get all Workspaces
1423
- * const workspaces = await prisma.workspace.findMany()
1424
- *
1425
- * // Get first 10 Workspaces
1426
- * const workspaces = await prisma.workspace.findMany({ take: 10 })
1427
- *
1428
- * // Only select the `id`
1429
- * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } })
1430
- *
1431
- */
1432
- findMany<T extends WorkspaceFindManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1433
-
1434
- /**
1435
- * Create a Workspace.
1436
- * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace.
1437
- * @example
1438
- * // Create one Workspace
1439
- * const Workspace = await prisma.workspace.create({
1440
- * data: {
1441
- * // ... data to create a Workspace
1442
- * }
1443
- * })
1444
- *
1445
- */
1446
- create<T extends WorkspaceCreateArgs>(args: Prisma.SelectSubset<T, WorkspaceCreateArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1447
-
1448
- /**
1449
- * Create many Workspaces.
1450
- * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces.
1451
- * @example
1452
- * // Create many Workspaces
1453
- * const workspace = await prisma.workspace.createMany({
1454
- * data: [
1455
- * // ... provide data here
1456
- * ]
1457
- * })
1458
- *
1459
- */
1460
- createMany<T extends WorkspaceCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1461
-
1462
- /**
1463
- * Create many Workspaces and returns the data saved in the database.
1464
- * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces.
1465
- * @example
1466
- * // Create many Workspaces
1467
- * const workspace = await prisma.workspace.createManyAndReturn({
1468
- * data: [
1469
- * // ... provide data here
1470
- * ]
1471
- * })
1472
- *
1473
- * // Create many Workspaces and only return the `id`
1474
- * const workspaceWithIdOnly = await prisma.workspace.createManyAndReturn({
1475
- * select: { id: true },
1476
- * data: [
1477
- * // ... provide data here
1478
- * ]
1479
- * })
1480
- * Note, that providing `undefined` is treated as the value not being there.
1481
- * Read more here: https://pris.ly/d/null-undefined
1482
- *
1483
- */
1484
- createManyAndReturn<T extends WorkspaceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkspaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1485
-
1486
- /**
1487
- * Delete a Workspace.
1488
- * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace.
1489
- * @example
1490
- * // Delete one Workspace
1491
- * const Workspace = await prisma.workspace.delete({
1492
- * where: {
1493
- * // ... filter to delete one Workspace
1494
- * }
1495
- * })
1496
- *
1497
- */
1498
- delete<T extends WorkspaceDeleteArgs>(args: Prisma.SelectSubset<T, WorkspaceDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1499
-
1500
- /**
1501
- * Update one Workspace.
1502
- * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace.
1503
- * @example
1504
- * // Update one Workspace
1505
- * const workspace = await prisma.workspace.update({
1506
- * where: {
1507
- * // ... provide filter here
1508
- * },
1509
- * data: {
1510
- * // ... provide data here
1511
- * }
1512
- * })
1513
- *
1514
- */
1515
- update<T extends WorkspaceUpdateArgs>(args: Prisma.SelectSubset<T, WorkspaceUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1516
-
1517
- /**
1518
- * Delete zero or more Workspaces.
1519
- * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete.
1520
- * @example
1521
- * // Delete a few Workspaces
1522
- * const { count } = await prisma.workspace.deleteMany({
1523
- * where: {
1524
- * // ... provide filter here
1525
- * }
1526
- * })
1527
- *
1528
- */
1529
- deleteMany<T extends WorkspaceDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1530
-
1531
- /**
1532
- * Update zero or more Workspaces.
1533
- * Note, that providing `undefined` is treated as the value not being there.
1534
- * Read more here: https://pris.ly/d/null-undefined
1535
- * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows.
1536
- * @example
1537
- * // Update many Workspaces
1538
- * const workspace = await prisma.workspace.updateMany({
1539
- * where: {
1540
- * // ... provide filter here
1541
- * },
1542
- * data: {
1543
- * // ... provide data here
1544
- * }
1545
- * })
1546
- *
1547
- */
1548
- updateMany<T extends WorkspaceUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkspaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1549
-
1550
- /**
1551
- * Update zero or more Workspaces and returns the data updated in the database.
1552
- * @param {WorkspaceUpdateManyAndReturnArgs} args - Arguments to update many Workspaces.
1553
- * @example
1554
- * // Update many Workspaces
1555
- * const workspace = await prisma.workspace.updateManyAndReturn({
1556
- * where: {
1557
- * // ... provide filter here
1558
- * },
1559
- * data: [
1560
- * // ... provide data here
1561
- * ]
1562
- * })
1563
- *
1564
- * // Update zero or more Workspaces and only return the `id`
1565
- * const workspaceWithIdOnly = await prisma.workspace.updateManyAndReturn({
1566
- * select: { id: true },
1567
- * where: {
1568
- * // ... provide filter here
1569
- * },
1570
- * data: [
1571
- * // ... provide data here
1572
- * ]
1573
- * })
1574
- * Note, that providing `undefined` is treated as the value not being there.
1575
- * Read more here: https://pris.ly/d/null-undefined
1576
- *
1577
- */
1578
- updateManyAndReturn<T extends WorkspaceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkspaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1579
-
1580
- /**
1581
- * Create or update one Workspace.
1582
- * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace.
1583
- * @example
1584
- * // Update or create a Workspace
1585
- * const workspace = await prisma.workspace.upsert({
1586
- * create: {
1587
- * // ... data to create a Workspace
1588
- * },
1589
- * update: {
1590
- * // ... in case it already exists, update
1591
- * },
1592
- * where: {
1593
- * // ... the filter for the Workspace we want to update
1594
- * }
1595
- * })
1596
- */
1597
- upsert<T extends WorkspaceUpsertArgs>(args: Prisma.SelectSubset<T, WorkspaceUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1598
-
1599
-
1600
- /**
1601
- * Count the number of Workspaces.
1602
- * Note, that providing `undefined` is treated as the value not being there.
1603
- * Read more here: https://pris.ly/d/null-undefined
1604
- * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count.
1605
- * @example
1606
- * // Count the number of Workspaces
1607
- * const count = await prisma.workspace.count({
1608
- * where: {
1609
- * // ... the filter for the Workspaces we want to count
1610
- * }
1611
- * })
1612
- **/
1613
- count<T extends WorkspaceCountArgs>(
1614
- args?: Prisma.Subset<T, WorkspaceCountArgs>,
1615
- ): Prisma.PrismaPromise<
1616
- T extends runtime.Types.Utils.Record<'select', any>
1617
- ? T['select'] extends true
1618
- ? number
1619
- : Prisma.GetScalarType<T['select'], WorkspaceCountAggregateOutputType>
1620
- : number
1621
- >
1622
-
1623
- /**
1624
- * Allows you to perform aggregations operations on a Workspace.
1625
- * Note, that providing `undefined` is treated as the value not being there.
1626
- * Read more here: https://pris.ly/d/null-undefined
1627
- * @param {WorkspaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1628
- * @example
1629
- * // Ordered by age ascending
1630
- * // Where email contains prisma.io
1631
- * // Limited to the 10 users
1632
- * const aggregations = await prisma.user.aggregate({
1633
- * _avg: {
1634
- * age: true,
1635
- * },
1636
- * where: {
1637
- * email: {
1638
- * contains: "prisma.io",
1639
- * },
1640
- * },
1641
- * orderBy: {
1642
- * age: "asc",
1643
- * },
1644
- * take: 10,
1645
- * })
1646
- **/
1647
- aggregate<T extends WorkspaceAggregateArgs>(args: Prisma.Subset<T, WorkspaceAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceAggregateType<T>>
1648
-
1649
- /**
1650
- * Group by Workspace.
1651
- * Note, that providing `undefined` is treated as the value not being there.
1652
- * Read more here: https://pris.ly/d/null-undefined
1653
- * @param {WorkspaceGroupByArgs} args - Group by arguments.
1654
- * @example
1655
- * // Group by city, order by createdAt, get count
1656
- * const result = await prisma.user.groupBy({
1657
- * by: ['city', 'createdAt'],
1658
- * orderBy: {
1659
- * createdAt: true
1660
- * },
1661
- * _count: {
1662
- * _all: true
1663
- * },
1664
- * })
1665
- *
1666
- **/
1667
- groupBy<
1668
- T extends WorkspaceGroupByArgs,
1669
- HasSelectOrTake extends Prisma.Or<
1670
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1671
- Prisma.Extends<'take', Prisma.Keys<T>>
1672
- >,
1673
- OrderByArg extends Prisma.True extends HasSelectOrTake
1674
- ? { orderBy: WorkspaceGroupByArgs['orderBy'] }
1675
- : { orderBy?: WorkspaceGroupByArgs['orderBy'] },
1676
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1677
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1678
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1679
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1680
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1681
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1682
- InputErrors extends ByEmpty extends Prisma.True
1683
- ? `Error: "by" must not be empty.`
1684
- : HavingValid extends Prisma.False
1685
- ? {
1686
- [P in HavingFields]: P extends ByFields
1687
- ? never
1688
- : P extends string
1689
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1690
- : [
1691
- Error,
1692
- 'Field ',
1693
- P,
1694
- ` in "having" needs to be provided in "by"`,
1695
- ]
1696
- }[HavingFields]
1697
- : 'take' extends Prisma.Keys<T>
1698
- ? 'orderBy' extends Prisma.Keys<T>
1699
- ? ByValid extends Prisma.True
1700
- ? {}
1701
- : {
1702
- [P in OrderFields]: P extends ByFields
1703
- ? never
1704
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1705
- }[OrderFields]
1706
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1707
- : 'skip' extends Prisma.Keys<T>
1708
- ? 'orderBy' extends Prisma.Keys<T>
1709
- ? ByValid extends Prisma.True
1710
- ? {}
1711
- : {
1712
- [P in OrderFields]: P extends ByFields
1713
- ? never
1714
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1715
- }[OrderFields]
1716
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1717
- : ByValid extends Prisma.True
1718
- ? {}
1719
- : {
1720
- [P in OrderFields]: P extends ByFields
1721
- ? never
1722
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1723
- }[OrderFields]
1724
- >(args: Prisma.SubsetIntersection<T, WorkspaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1725
- /**
1726
- * Fields of the Workspace model
1727
- */
1728
- readonly fields: WorkspaceFieldRefs;
1729
- }
1730
-
1731
- /**
1732
- * The delegate class that acts as a "Promise-like" for Workspace.
1733
- * Why is this prefixed with `Prisma__`?
1734
- * Because we want to prevent naming conflicts as mentioned in
1735
- * https://github.com/prisma/prisma-client-js/issues/707
1736
- */
1737
- export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1738
- readonly [Symbol.toStringTag]: "PrismaPromise"
1739
- owner<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>
1740
- projects<T extends Prisma.Workspace$projectsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$projectsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1741
- workspaceKbLinks<T extends Prisma.Workspace$workspaceKbLinksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$workspaceKbLinksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1742
- knowledgeBases<T extends Prisma.Workspace$knowledgeBasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$knowledgeBasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1743
- quickDocs<T extends Prisma.Workspace$quickDocsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$quickDocsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceQuickDocPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1744
- usageRecords<T extends Prisma.Workspace$usageRecordsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$usageRecordsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1745
- aiUsageLogs<T extends Prisma.Workspace$aiUsageLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$aiUsageLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AiUsageLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1746
- /**
1747
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1748
- * @param onfulfilled The callback to execute when the Promise is resolved.
1749
- * @param onrejected The callback to execute when the Promise is rejected.
1750
- * @returns A Promise for the completion of which ever callback is executed.
1751
- */
1752
- 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>
1753
- /**
1754
- * Attaches a callback for only the rejection of the Promise.
1755
- * @param onrejected The callback to execute when the Promise is rejected.
1756
- * @returns A Promise for the completion of the callback.
1757
- */
1758
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1759
- /**
1760
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1761
- * resolved value cannot be modified from the callback.
1762
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1763
- * @returns A Promise for the completion of the callback.
1764
- */
1765
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1766
- }
1767
-
1768
-
1769
-
1770
-
1771
- /**
1772
- * Fields of the Workspace model
1773
- */
1774
- export interface WorkspaceFieldRefs {
1775
- readonly id: Prisma.FieldRef<"Workspace", 'String'>
1776
- readonly name: Prisma.FieldRef<"Workspace", 'String'>
1777
- readonly icon: Prisma.FieldRef<"Workspace", 'String'>
1778
- readonly description: Prisma.FieldRef<"Workspace", 'String'>
1779
- readonly pinnedToSidebar: Prisma.FieldRef<"Workspace", 'Boolean'>
1780
- readonly ownerId: Prisma.FieldRef<"Workspace", 'String'>
1781
- readonly createdAt: Prisma.FieldRef<"Workspace", 'DateTime'>
1782
- readonly updatedAt: Prisma.FieldRef<"Workspace", 'DateTime'>
1783
- }
1784
-
1785
-
1786
- // Custom InputTypes
1787
- /**
1788
- * Workspace findUnique
1789
- */
1790
- export type WorkspaceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1791
- /**
1792
- * Select specific fields to fetch from the Workspace
1793
- */
1794
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
1795
- /**
1796
- * Omit specific fields from the Workspace
1797
- */
1798
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1799
- /**
1800
- * Choose, which related nodes to fetch as well
1801
- */
1802
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
1803
- /**
1804
- * Filter, which Workspace to fetch.
1805
- */
1806
- where: Prisma.WorkspaceWhereUniqueInput
1807
- }
1808
-
1809
- /**
1810
- * Workspace findUniqueOrThrow
1811
- */
1812
- export type WorkspaceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1813
- /**
1814
- * Select specific fields to fetch from the Workspace
1815
- */
1816
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
1817
- /**
1818
- * Omit specific fields from the Workspace
1819
- */
1820
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1821
- /**
1822
- * Choose, which related nodes to fetch as well
1823
- */
1824
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
1825
- /**
1826
- * Filter, which Workspace to fetch.
1827
- */
1828
- where: Prisma.WorkspaceWhereUniqueInput
1829
- }
1830
-
1831
- /**
1832
- * Workspace findFirst
1833
- */
1834
- export type WorkspaceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1835
- /**
1836
- * Select specific fields to fetch from the Workspace
1837
- */
1838
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
1839
- /**
1840
- * Omit specific fields from the Workspace
1841
- */
1842
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1843
- /**
1844
- * Choose, which related nodes to fetch as well
1845
- */
1846
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
1847
- /**
1848
- * Filter, which Workspace to fetch.
1849
- */
1850
- where?: Prisma.WorkspaceWhereInput
1851
- /**
1852
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1853
- *
1854
- * Determine the order of Workspaces to fetch.
1855
- */
1856
- orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[]
1857
- /**
1858
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1859
- *
1860
- * Sets the position for searching for Workspaces.
1861
- */
1862
- cursor?: Prisma.WorkspaceWhereUniqueInput
1863
- /**
1864
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1865
- *
1866
- * Take `±n` Workspaces from the position of the cursor.
1867
- */
1868
- take?: number
1869
- /**
1870
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1871
- *
1872
- * Skip the first `n` Workspaces.
1873
- */
1874
- skip?: number
1875
- /**
1876
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1877
- *
1878
- * Filter by unique combinations of Workspaces.
1879
- */
1880
- distinct?: Prisma.WorkspaceScalarFieldEnum | Prisma.WorkspaceScalarFieldEnum[]
1881
- }
1882
-
1883
- /**
1884
- * Workspace findFirstOrThrow
1885
- */
1886
- export type WorkspaceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1887
- /**
1888
- * Select specific fields to fetch from the Workspace
1889
- */
1890
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
1891
- /**
1892
- * Omit specific fields from the Workspace
1893
- */
1894
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1895
- /**
1896
- * Choose, which related nodes to fetch as well
1897
- */
1898
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
1899
- /**
1900
- * Filter, which Workspace to fetch.
1901
- */
1902
- where?: Prisma.WorkspaceWhereInput
1903
- /**
1904
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1905
- *
1906
- * Determine the order of Workspaces to fetch.
1907
- */
1908
- orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[]
1909
- /**
1910
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1911
- *
1912
- * Sets the position for searching for Workspaces.
1913
- */
1914
- cursor?: Prisma.WorkspaceWhereUniqueInput
1915
- /**
1916
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1917
- *
1918
- * Take `±n` Workspaces from the position of the cursor.
1919
- */
1920
- take?: number
1921
- /**
1922
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1923
- *
1924
- * Skip the first `n` Workspaces.
1925
- */
1926
- skip?: number
1927
- /**
1928
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1929
- *
1930
- * Filter by unique combinations of Workspaces.
1931
- */
1932
- distinct?: Prisma.WorkspaceScalarFieldEnum | Prisma.WorkspaceScalarFieldEnum[]
1933
- }
1934
-
1935
- /**
1936
- * Workspace findMany
1937
- */
1938
- export type WorkspaceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1939
- /**
1940
- * Select specific fields to fetch from the Workspace
1941
- */
1942
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
1943
- /**
1944
- * Omit specific fields from the Workspace
1945
- */
1946
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1947
- /**
1948
- * Choose, which related nodes to fetch as well
1949
- */
1950
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
1951
- /**
1952
- * Filter, which Workspaces to fetch.
1953
- */
1954
- where?: Prisma.WorkspaceWhereInput
1955
- /**
1956
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1957
- *
1958
- * Determine the order of Workspaces to fetch.
1959
- */
1960
- orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[]
1961
- /**
1962
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1963
- *
1964
- * Sets the position for listing Workspaces.
1965
- */
1966
- cursor?: Prisma.WorkspaceWhereUniqueInput
1967
- /**
1968
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1969
- *
1970
- * Take `±n` Workspaces from the position of the cursor.
1971
- */
1972
- take?: number
1973
- /**
1974
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1975
- *
1976
- * Skip the first `n` Workspaces.
1977
- */
1978
- skip?: number
1979
- /**
1980
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1981
- *
1982
- * Filter by unique combinations of Workspaces.
1983
- */
1984
- distinct?: Prisma.WorkspaceScalarFieldEnum | Prisma.WorkspaceScalarFieldEnum[]
1985
- }
1986
-
1987
- /**
1988
- * Workspace create
1989
- */
1990
- export type WorkspaceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1991
- /**
1992
- * Select specific fields to fetch from the Workspace
1993
- */
1994
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
1995
- /**
1996
- * Omit specific fields from the Workspace
1997
- */
1998
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1999
- /**
2000
- * Choose, which related nodes to fetch as well
2001
- */
2002
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
2003
- /**
2004
- * The data needed to create a Workspace.
2005
- */
2006
- data: Prisma.XOR<Prisma.WorkspaceCreateInput, Prisma.WorkspaceUncheckedCreateInput>
2007
- }
2008
-
2009
- /**
2010
- * Workspace createMany
2011
- */
2012
- export type WorkspaceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2013
- /**
2014
- * The data used to create many Workspaces.
2015
- */
2016
- data: Prisma.WorkspaceCreateManyInput | Prisma.WorkspaceCreateManyInput[]
2017
- }
2018
-
2019
- /**
2020
- * Workspace createManyAndReturn
2021
- */
2022
- export type WorkspaceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2023
- /**
2024
- * Select specific fields to fetch from the Workspace
2025
- */
2026
- select?: Prisma.WorkspaceSelectCreateManyAndReturn<ExtArgs> | null
2027
- /**
2028
- * Omit specific fields from the Workspace
2029
- */
2030
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2031
- /**
2032
- * The data used to create many Workspaces.
2033
- */
2034
- data: Prisma.WorkspaceCreateManyInput | Prisma.WorkspaceCreateManyInput[]
2035
- /**
2036
- * Choose, which related nodes to fetch as well
2037
- */
2038
- include?: Prisma.WorkspaceIncludeCreateManyAndReturn<ExtArgs> | null
2039
- }
2040
-
2041
- /**
2042
- * Workspace update
2043
- */
2044
- export type WorkspaceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2045
- /**
2046
- * Select specific fields to fetch from the Workspace
2047
- */
2048
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
2049
- /**
2050
- * Omit specific fields from the Workspace
2051
- */
2052
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2053
- /**
2054
- * Choose, which related nodes to fetch as well
2055
- */
2056
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
2057
- /**
2058
- * The data needed to update a Workspace.
2059
- */
2060
- data: Prisma.XOR<Prisma.WorkspaceUpdateInput, Prisma.WorkspaceUncheckedUpdateInput>
2061
- /**
2062
- * Choose, which Workspace to update.
2063
- */
2064
- where: Prisma.WorkspaceWhereUniqueInput
2065
- }
2066
-
2067
- /**
2068
- * Workspace updateMany
2069
- */
2070
- export type WorkspaceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2071
- /**
2072
- * The data used to update Workspaces.
2073
- */
2074
- data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyInput>
2075
- /**
2076
- * Filter which Workspaces to update
2077
- */
2078
- where?: Prisma.WorkspaceWhereInput
2079
- /**
2080
- * Limit how many Workspaces to update.
2081
- */
2082
- limit?: number
2083
- }
2084
-
2085
- /**
2086
- * Workspace updateManyAndReturn
2087
- */
2088
- export type WorkspaceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2089
- /**
2090
- * Select specific fields to fetch from the Workspace
2091
- */
2092
- select?: Prisma.WorkspaceSelectUpdateManyAndReturn<ExtArgs> | null
2093
- /**
2094
- * Omit specific fields from the Workspace
2095
- */
2096
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2097
- /**
2098
- * The data used to update Workspaces.
2099
- */
2100
- data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyInput>
2101
- /**
2102
- * Filter which Workspaces to update
2103
- */
2104
- where?: Prisma.WorkspaceWhereInput
2105
- /**
2106
- * Limit how many Workspaces to update.
2107
- */
2108
- limit?: number
2109
- /**
2110
- * Choose, which related nodes to fetch as well
2111
- */
2112
- include?: Prisma.WorkspaceIncludeUpdateManyAndReturn<ExtArgs> | null
2113
- }
2114
-
2115
- /**
2116
- * Workspace upsert
2117
- */
2118
- export type WorkspaceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2119
- /**
2120
- * Select specific fields to fetch from the Workspace
2121
- */
2122
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
2123
- /**
2124
- * Omit specific fields from the Workspace
2125
- */
2126
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2127
- /**
2128
- * Choose, which related nodes to fetch as well
2129
- */
2130
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
2131
- /**
2132
- * The filter to search for the Workspace to update in case it exists.
2133
- */
2134
- where: Prisma.WorkspaceWhereUniqueInput
2135
- /**
2136
- * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data.
2137
- */
2138
- create: Prisma.XOR<Prisma.WorkspaceCreateInput, Prisma.WorkspaceUncheckedCreateInput>
2139
- /**
2140
- * In case the Workspace was found with the provided `where` argument, update it with this data.
2141
- */
2142
- update: Prisma.XOR<Prisma.WorkspaceUpdateInput, Prisma.WorkspaceUncheckedUpdateInput>
2143
- }
2144
-
2145
- /**
2146
- * Workspace delete
2147
- */
2148
- export type WorkspaceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2149
- /**
2150
- * Select specific fields to fetch from the Workspace
2151
- */
2152
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
2153
- /**
2154
- * Omit specific fields from the Workspace
2155
- */
2156
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2157
- /**
2158
- * Choose, which related nodes to fetch as well
2159
- */
2160
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
2161
- /**
2162
- * Filter which Workspace to delete.
2163
- */
2164
- where: Prisma.WorkspaceWhereUniqueInput
2165
- }
2166
-
2167
- /**
2168
- * Workspace deleteMany
2169
- */
2170
- export type WorkspaceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2171
- /**
2172
- * Filter which Workspaces to delete
2173
- */
2174
- where?: Prisma.WorkspaceWhereInput
2175
- /**
2176
- * Limit how many Workspaces to delete.
2177
- */
2178
- limit?: number
2179
- }
2180
-
2181
- /**
2182
- * Workspace.projects
2183
- */
2184
- export type Workspace$projectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2185
- /**
2186
- * Select specific fields to fetch from the Project
2187
- */
2188
- select?: Prisma.ProjectSelect<ExtArgs> | null
2189
- /**
2190
- * Omit specific fields from the Project
2191
- */
2192
- omit?: Prisma.ProjectOmit<ExtArgs> | null
2193
- /**
2194
- * Choose, which related nodes to fetch as well
2195
- */
2196
- include?: Prisma.ProjectInclude<ExtArgs> | null
2197
- where?: Prisma.ProjectWhereInput
2198
- orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
2199
- cursor?: Prisma.ProjectWhereUniqueInput
2200
- take?: number
2201
- skip?: number
2202
- distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
2203
- }
2204
-
2205
- /**
2206
- * Workspace.workspaceKbLinks
2207
- */
2208
- export type Workspace$workspaceKbLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2209
- /**
2210
- * Select specific fields to fetch from the WorkspaceKnowledgeBase
2211
- */
2212
- select?: Prisma.WorkspaceKnowledgeBaseSelect<ExtArgs> | null
2213
- /**
2214
- * Omit specific fields from the WorkspaceKnowledgeBase
2215
- */
2216
- omit?: Prisma.WorkspaceKnowledgeBaseOmit<ExtArgs> | null
2217
- /**
2218
- * Choose, which related nodes to fetch as well
2219
- */
2220
- include?: Prisma.WorkspaceKnowledgeBaseInclude<ExtArgs> | null
2221
- where?: Prisma.WorkspaceKnowledgeBaseWhereInput
2222
- orderBy?: Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput | Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput[]
2223
- cursor?: Prisma.WorkspaceKnowledgeBaseWhereUniqueInput
2224
- take?: number
2225
- skip?: number
2226
- distinct?: Prisma.WorkspaceKnowledgeBaseScalarFieldEnum | Prisma.WorkspaceKnowledgeBaseScalarFieldEnum[]
2227
- }
2228
-
2229
- /**
2230
- * Workspace.knowledgeBases
2231
- */
2232
- export type Workspace$knowledgeBasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2233
- /**
2234
- * Select specific fields to fetch from the KnowledgeBase
2235
- */
2236
- select?: Prisma.KnowledgeBaseSelect<ExtArgs> | null
2237
- /**
2238
- * Omit specific fields from the KnowledgeBase
2239
- */
2240
- omit?: Prisma.KnowledgeBaseOmit<ExtArgs> | null
2241
- /**
2242
- * Choose, which related nodes to fetch as well
2243
- */
2244
- include?: Prisma.KnowledgeBaseInclude<ExtArgs> | null
2245
- where?: Prisma.KnowledgeBaseWhereInput
2246
- orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[]
2247
- cursor?: Prisma.KnowledgeBaseWhereUniqueInput
2248
- take?: number
2249
- skip?: number
2250
- distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[]
2251
- }
2252
-
2253
- /**
2254
- * Workspace.quickDocs
2255
- */
2256
- export type Workspace$quickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2257
- /**
2258
- * Select specific fields to fetch from the WorkspaceQuickDoc
2259
- */
2260
- select?: Prisma.WorkspaceQuickDocSelect<ExtArgs> | null
2261
- /**
2262
- * Omit specific fields from the WorkspaceQuickDoc
2263
- */
2264
- omit?: Prisma.WorkspaceQuickDocOmit<ExtArgs> | null
2265
- /**
2266
- * Choose, which related nodes to fetch as well
2267
- */
2268
- include?: Prisma.WorkspaceQuickDocInclude<ExtArgs> | null
2269
- where?: Prisma.WorkspaceQuickDocWhereInput
2270
- orderBy?: Prisma.WorkspaceQuickDocOrderByWithRelationInput | Prisma.WorkspaceQuickDocOrderByWithRelationInput[]
2271
- cursor?: Prisma.WorkspaceQuickDocWhereUniqueInput
2272
- take?: number
2273
- skip?: number
2274
- distinct?: Prisma.WorkspaceQuickDocScalarFieldEnum | Prisma.WorkspaceQuickDocScalarFieldEnum[]
2275
- }
2276
-
2277
- /**
2278
- * Workspace.usageRecords
2279
- */
2280
- export type Workspace$usageRecordsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2281
- /**
2282
- * Select specific fields to fetch from the UsageRecord
2283
- */
2284
- select?: Prisma.UsageRecordSelect<ExtArgs> | null
2285
- /**
2286
- * Omit specific fields from the UsageRecord
2287
- */
2288
- omit?: Prisma.UsageRecordOmit<ExtArgs> | null
2289
- /**
2290
- * Choose, which related nodes to fetch as well
2291
- */
2292
- include?: Prisma.UsageRecordInclude<ExtArgs> | null
2293
- where?: Prisma.UsageRecordWhereInput
2294
- orderBy?: Prisma.UsageRecordOrderByWithRelationInput | Prisma.UsageRecordOrderByWithRelationInput[]
2295
- cursor?: Prisma.UsageRecordWhereUniqueInput
2296
- take?: number
2297
- skip?: number
2298
- distinct?: Prisma.UsageRecordScalarFieldEnum | Prisma.UsageRecordScalarFieldEnum[]
2299
- }
2300
-
2301
- /**
2302
- * Workspace.aiUsageLogs
2303
- */
2304
- export type Workspace$aiUsageLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2305
- /**
2306
- * Select specific fields to fetch from the AiUsageLog
2307
- */
2308
- select?: Prisma.AiUsageLogSelect<ExtArgs> | null
2309
- /**
2310
- * Omit specific fields from the AiUsageLog
2311
- */
2312
- omit?: Prisma.AiUsageLogOmit<ExtArgs> | null
2313
- /**
2314
- * Choose, which related nodes to fetch as well
2315
- */
2316
- include?: Prisma.AiUsageLogInclude<ExtArgs> | null
2317
- where?: Prisma.AiUsageLogWhereInput
2318
- orderBy?: Prisma.AiUsageLogOrderByWithRelationInput | Prisma.AiUsageLogOrderByWithRelationInput[]
2319
- cursor?: Prisma.AiUsageLogWhereUniqueInput
2320
- take?: number
2321
- skip?: number
2322
- distinct?: Prisma.AiUsageLogScalarFieldEnum | Prisma.AiUsageLogScalarFieldEnum[]
2323
- }
2324
-
2325
- /**
2326
- * Workspace without action
2327
- */
2328
- export type WorkspaceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2329
- /**
2330
- * Select specific fields to fetch from the Workspace
2331
- */
2332
- select?: Prisma.WorkspaceSelect<ExtArgs> | null
2333
- /**
2334
- * Omit specific fields from the Workspace
2335
- */
2336
- omit?: Prisma.WorkspaceOmit<ExtArgs> | null
2337
- /**
2338
- * Choose, which related nodes to fetch as well
2339
- */
2340
- include?: Prisma.WorkspaceInclude<ExtArgs> | null
2341
- }