@allbluecn/database 0.4.0 → 0.4.2

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