@allbluecn/database 0.3.14 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,1419 @@
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 `AnyHubPermission` 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 AnyHubPermission
17
+ *
18
+ */
19
+ export type AnyHubPermissionModel = runtime.Types.Result.DefaultSelection<Prisma.$AnyHubPermissionPayload>
20
+
21
+ export type AggregateAnyHubPermission = {
22
+ _count: AnyHubPermissionCountAggregateOutputType | null
23
+ _min: AnyHubPermissionMinAggregateOutputType | null
24
+ _max: AnyHubPermissionMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type AnyHubPermissionMinAggregateOutputType = {
28
+ id: string | null
29
+ appId: string | null
30
+ capability: string | null
31
+ granted: boolean | null
32
+ userId: string | null
33
+ createdAt: Date | null
34
+ updatedAt: Date | null
35
+ }
36
+
37
+ export type AnyHubPermissionMaxAggregateOutputType = {
38
+ id: string | null
39
+ appId: string | null
40
+ capability: string | null
41
+ granted: boolean | null
42
+ userId: string | null
43
+ createdAt: Date | null
44
+ updatedAt: Date | null
45
+ }
46
+
47
+ export type AnyHubPermissionCountAggregateOutputType = {
48
+ id: number
49
+ appId: number
50
+ capability: number
51
+ granted: number
52
+ userId: number
53
+ createdAt: number
54
+ updatedAt: number
55
+ _all: number
56
+ }
57
+
58
+
59
+ export type AnyHubPermissionMinAggregateInputType = {
60
+ id?: true
61
+ appId?: true
62
+ capability?: true
63
+ granted?: true
64
+ userId?: true
65
+ createdAt?: true
66
+ updatedAt?: true
67
+ }
68
+
69
+ export type AnyHubPermissionMaxAggregateInputType = {
70
+ id?: true
71
+ appId?: true
72
+ capability?: true
73
+ granted?: true
74
+ userId?: true
75
+ createdAt?: true
76
+ updatedAt?: true
77
+ }
78
+
79
+ export type AnyHubPermissionCountAggregateInputType = {
80
+ id?: true
81
+ appId?: true
82
+ capability?: true
83
+ granted?: true
84
+ userId?: true
85
+ createdAt?: true
86
+ updatedAt?: true
87
+ _all?: true
88
+ }
89
+
90
+ export type AnyHubPermissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ /**
92
+ * Filter which AnyHubPermission to aggregate.
93
+ */
94
+ where?: Prisma.AnyHubPermissionWhereInput
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
97
+ *
98
+ * Determine the order of AnyHubPermissions to fetch.
99
+ */
100
+ orderBy?: Prisma.AnyHubPermissionOrderByWithRelationInput | Prisma.AnyHubPermissionOrderByWithRelationInput[]
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.AnyHubPermissionWhereUniqueInput
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Take `±n` AnyHubPermissions 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` AnyHubPermissions.
117
+ */
118
+ skip?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Count returned AnyHubPermissions
123
+ **/
124
+ _count?: true | AnyHubPermissionCountAggregateInputType
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?: AnyHubPermissionMinAggregateInputType
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?: AnyHubPermissionMaxAggregateInputType
137
+ }
138
+
139
+ export type GetAnyHubPermissionAggregateType<T extends AnyHubPermissionAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateAnyHubPermission]: P extends '_count' | 'count'
141
+ ? T[P] extends true
142
+ ? number
143
+ : Prisma.GetScalarType<T[P], AggregateAnyHubPermission[P]>
144
+ : Prisma.GetScalarType<T[P], AggregateAnyHubPermission[P]>
145
+ }
146
+
147
+
148
+
149
+
150
+ export type AnyHubPermissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
+ where?: Prisma.AnyHubPermissionWhereInput
152
+ orderBy?: Prisma.AnyHubPermissionOrderByWithAggregationInput | Prisma.AnyHubPermissionOrderByWithAggregationInput[]
153
+ by: Prisma.AnyHubPermissionScalarFieldEnum[] | Prisma.AnyHubPermissionScalarFieldEnum
154
+ having?: Prisma.AnyHubPermissionScalarWhereWithAggregatesInput
155
+ take?: number
156
+ skip?: number
157
+ _count?: AnyHubPermissionCountAggregateInputType | true
158
+ _min?: AnyHubPermissionMinAggregateInputType
159
+ _max?: AnyHubPermissionMaxAggregateInputType
160
+ }
161
+
162
+ export type AnyHubPermissionGroupByOutputType = {
163
+ id: string
164
+ appId: string
165
+ capability: string
166
+ granted: boolean
167
+ userId: string
168
+ createdAt: Date
169
+ updatedAt: Date
170
+ _count: AnyHubPermissionCountAggregateOutputType | null
171
+ _min: AnyHubPermissionMinAggregateOutputType | null
172
+ _max: AnyHubPermissionMaxAggregateOutputType | null
173
+ }
174
+
175
+ export type GetAnyHubPermissionGroupByPayload<T extends AnyHubPermissionGroupByArgs> = Prisma.PrismaPromise<
176
+ Array<
177
+ Prisma.PickEnumerable<AnyHubPermissionGroupByOutputType, T['by']> &
178
+ {
179
+ [P in ((keyof T) & (keyof AnyHubPermissionGroupByOutputType))]: P extends '_count'
180
+ ? T[P] extends boolean
181
+ ? number
182
+ : Prisma.GetScalarType<T[P], AnyHubPermissionGroupByOutputType[P]>
183
+ : Prisma.GetScalarType<T[P], AnyHubPermissionGroupByOutputType[P]>
184
+ }
185
+ >
186
+ >
187
+
188
+
189
+
190
+ export type AnyHubPermissionWhereInput = {
191
+ AND?: Prisma.AnyHubPermissionWhereInput | Prisma.AnyHubPermissionWhereInput[]
192
+ OR?: Prisma.AnyHubPermissionWhereInput[]
193
+ NOT?: Prisma.AnyHubPermissionWhereInput | Prisma.AnyHubPermissionWhereInput[]
194
+ id?: Prisma.StringFilter<"AnyHubPermission"> | string
195
+ appId?: Prisma.StringFilter<"AnyHubPermission"> | string
196
+ capability?: Prisma.StringFilter<"AnyHubPermission"> | string
197
+ granted?: Prisma.BoolFilter<"AnyHubPermission"> | boolean
198
+ userId?: Prisma.StringFilter<"AnyHubPermission"> | string
199
+ createdAt?: Prisma.DateTimeFilter<"AnyHubPermission"> | Date | string
200
+ updatedAt?: Prisma.DateTimeFilter<"AnyHubPermission"> | Date | string
201
+ app?: Prisma.XOR<Prisma.AnyHubAppScalarRelationFilter, Prisma.AnyHubAppWhereInput>
202
+ }
203
+
204
+ export type AnyHubPermissionOrderByWithRelationInput = {
205
+ id?: Prisma.SortOrder
206
+ appId?: Prisma.SortOrder
207
+ capability?: Prisma.SortOrder
208
+ granted?: Prisma.SortOrder
209
+ userId?: Prisma.SortOrder
210
+ createdAt?: Prisma.SortOrder
211
+ updatedAt?: Prisma.SortOrder
212
+ app?: Prisma.AnyHubAppOrderByWithRelationInput
213
+ }
214
+
215
+ export type AnyHubPermissionWhereUniqueInput = Prisma.AtLeast<{
216
+ id?: string
217
+ appId_capability_userId?: Prisma.AnyHubPermissionAppIdCapabilityUserIdCompoundUniqueInput
218
+ AND?: Prisma.AnyHubPermissionWhereInput | Prisma.AnyHubPermissionWhereInput[]
219
+ OR?: Prisma.AnyHubPermissionWhereInput[]
220
+ NOT?: Prisma.AnyHubPermissionWhereInput | Prisma.AnyHubPermissionWhereInput[]
221
+ appId?: Prisma.StringFilter<"AnyHubPermission"> | string
222
+ capability?: Prisma.StringFilter<"AnyHubPermission"> | string
223
+ granted?: Prisma.BoolFilter<"AnyHubPermission"> | boolean
224
+ userId?: Prisma.StringFilter<"AnyHubPermission"> | string
225
+ createdAt?: Prisma.DateTimeFilter<"AnyHubPermission"> | Date | string
226
+ updatedAt?: Prisma.DateTimeFilter<"AnyHubPermission"> | Date | string
227
+ app?: Prisma.XOR<Prisma.AnyHubAppScalarRelationFilter, Prisma.AnyHubAppWhereInput>
228
+ }, "id" | "appId_capability_userId">
229
+
230
+ export type AnyHubPermissionOrderByWithAggregationInput = {
231
+ id?: Prisma.SortOrder
232
+ appId?: Prisma.SortOrder
233
+ capability?: Prisma.SortOrder
234
+ granted?: Prisma.SortOrder
235
+ userId?: Prisma.SortOrder
236
+ createdAt?: Prisma.SortOrder
237
+ updatedAt?: Prisma.SortOrder
238
+ _count?: Prisma.AnyHubPermissionCountOrderByAggregateInput
239
+ _max?: Prisma.AnyHubPermissionMaxOrderByAggregateInput
240
+ _min?: Prisma.AnyHubPermissionMinOrderByAggregateInput
241
+ }
242
+
243
+ export type AnyHubPermissionScalarWhereWithAggregatesInput = {
244
+ AND?: Prisma.AnyHubPermissionScalarWhereWithAggregatesInput | Prisma.AnyHubPermissionScalarWhereWithAggregatesInput[]
245
+ OR?: Prisma.AnyHubPermissionScalarWhereWithAggregatesInput[]
246
+ NOT?: Prisma.AnyHubPermissionScalarWhereWithAggregatesInput | Prisma.AnyHubPermissionScalarWhereWithAggregatesInput[]
247
+ id?: Prisma.StringWithAggregatesFilter<"AnyHubPermission"> | string
248
+ appId?: Prisma.StringWithAggregatesFilter<"AnyHubPermission"> | string
249
+ capability?: Prisma.StringWithAggregatesFilter<"AnyHubPermission"> | string
250
+ granted?: Prisma.BoolWithAggregatesFilter<"AnyHubPermission"> | boolean
251
+ userId?: Prisma.StringWithAggregatesFilter<"AnyHubPermission"> | string
252
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AnyHubPermission"> | Date | string
253
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AnyHubPermission"> | Date | string
254
+ }
255
+
256
+ export type AnyHubPermissionCreateInput = {
257
+ id?: string
258
+ capability: string
259
+ granted?: boolean
260
+ userId: string
261
+ createdAt?: Date | string
262
+ updatedAt?: Date | string
263
+ app: Prisma.AnyHubAppCreateNestedOneWithoutPermissionsInput
264
+ }
265
+
266
+ export type AnyHubPermissionUncheckedCreateInput = {
267
+ id?: string
268
+ appId: string
269
+ capability: string
270
+ granted?: boolean
271
+ userId: string
272
+ createdAt?: Date | string
273
+ updatedAt?: Date | string
274
+ }
275
+
276
+ export type AnyHubPermissionUpdateInput = {
277
+ id?: Prisma.StringFieldUpdateOperationsInput | string
278
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
279
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
280
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
281
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
282
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
283
+ app?: Prisma.AnyHubAppUpdateOneRequiredWithoutPermissionsNestedInput
284
+ }
285
+
286
+ export type AnyHubPermissionUncheckedUpdateInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string
288
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
289
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
290
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
291
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
292
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
293
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
294
+ }
295
+
296
+ export type AnyHubPermissionCreateManyInput = {
297
+ id?: string
298
+ appId: string
299
+ capability: string
300
+ granted?: boolean
301
+ userId: string
302
+ createdAt?: Date | string
303
+ updatedAt?: Date | string
304
+ }
305
+
306
+ export type AnyHubPermissionUpdateManyMutationInput = {
307
+ id?: Prisma.StringFieldUpdateOperationsInput | string
308
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
309
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
310
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
311
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
312
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
313
+ }
314
+
315
+ export type AnyHubPermissionUncheckedUpdateManyInput = {
316
+ id?: Prisma.StringFieldUpdateOperationsInput | string
317
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
318
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
319
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
320
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
321
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
322
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
323
+ }
324
+
325
+ export type AnyHubPermissionListRelationFilter = {
326
+ every?: Prisma.AnyHubPermissionWhereInput
327
+ some?: Prisma.AnyHubPermissionWhereInput
328
+ none?: Prisma.AnyHubPermissionWhereInput
329
+ }
330
+
331
+ export type AnyHubPermissionOrderByRelationAggregateInput = {
332
+ _count?: Prisma.SortOrder
333
+ }
334
+
335
+ export type AnyHubPermissionAppIdCapabilityUserIdCompoundUniqueInput = {
336
+ appId: string
337
+ capability: string
338
+ userId: string
339
+ }
340
+
341
+ export type AnyHubPermissionCountOrderByAggregateInput = {
342
+ id?: Prisma.SortOrder
343
+ appId?: Prisma.SortOrder
344
+ capability?: Prisma.SortOrder
345
+ granted?: Prisma.SortOrder
346
+ userId?: Prisma.SortOrder
347
+ createdAt?: Prisma.SortOrder
348
+ updatedAt?: Prisma.SortOrder
349
+ }
350
+
351
+ export type AnyHubPermissionMaxOrderByAggregateInput = {
352
+ id?: Prisma.SortOrder
353
+ appId?: Prisma.SortOrder
354
+ capability?: Prisma.SortOrder
355
+ granted?: Prisma.SortOrder
356
+ userId?: Prisma.SortOrder
357
+ createdAt?: Prisma.SortOrder
358
+ updatedAt?: Prisma.SortOrder
359
+ }
360
+
361
+ export type AnyHubPermissionMinOrderByAggregateInput = {
362
+ id?: Prisma.SortOrder
363
+ appId?: Prisma.SortOrder
364
+ capability?: Prisma.SortOrder
365
+ granted?: Prisma.SortOrder
366
+ userId?: Prisma.SortOrder
367
+ createdAt?: Prisma.SortOrder
368
+ updatedAt?: Prisma.SortOrder
369
+ }
370
+
371
+ export type AnyHubPermissionCreateNestedManyWithoutAppInput = {
372
+ create?: Prisma.XOR<Prisma.AnyHubPermissionCreateWithoutAppInput, Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput> | Prisma.AnyHubPermissionCreateWithoutAppInput[] | Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput[]
373
+ connectOrCreate?: Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput | Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput[]
374
+ createMany?: Prisma.AnyHubPermissionCreateManyAppInputEnvelope
375
+ connect?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
376
+ }
377
+
378
+ export type AnyHubPermissionUncheckedCreateNestedManyWithoutAppInput = {
379
+ create?: Prisma.XOR<Prisma.AnyHubPermissionCreateWithoutAppInput, Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput> | Prisma.AnyHubPermissionCreateWithoutAppInput[] | Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput[]
380
+ connectOrCreate?: Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput | Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput[]
381
+ createMany?: Prisma.AnyHubPermissionCreateManyAppInputEnvelope
382
+ connect?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
383
+ }
384
+
385
+ export type AnyHubPermissionUpdateManyWithoutAppNestedInput = {
386
+ create?: Prisma.XOR<Prisma.AnyHubPermissionCreateWithoutAppInput, Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput> | Prisma.AnyHubPermissionCreateWithoutAppInput[] | Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput[]
387
+ connectOrCreate?: Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput | Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput[]
388
+ upsert?: Prisma.AnyHubPermissionUpsertWithWhereUniqueWithoutAppInput | Prisma.AnyHubPermissionUpsertWithWhereUniqueWithoutAppInput[]
389
+ createMany?: Prisma.AnyHubPermissionCreateManyAppInputEnvelope
390
+ set?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
391
+ disconnect?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
392
+ delete?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
393
+ connect?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
394
+ update?: Prisma.AnyHubPermissionUpdateWithWhereUniqueWithoutAppInput | Prisma.AnyHubPermissionUpdateWithWhereUniqueWithoutAppInput[]
395
+ updateMany?: Prisma.AnyHubPermissionUpdateManyWithWhereWithoutAppInput | Prisma.AnyHubPermissionUpdateManyWithWhereWithoutAppInput[]
396
+ deleteMany?: Prisma.AnyHubPermissionScalarWhereInput | Prisma.AnyHubPermissionScalarWhereInput[]
397
+ }
398
+
399
+ export type AnyHubPermissionUncheckedUpdateManyWithoutAppNestedInput = {
400
+ create?: Prisma.XOR<Prisma.AnyHubPermissionCreateWithoutAppInput, Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput> | Prisma.AnyHubPermissionCreateWithoutAppInput[] | Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput[]
401
+ connectOrCreate?: Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput | Prisma.AnyHubPermissionCreateOrConnectWithoutAppInput[]
402
+ upsert?: Prisma.AnyHubPermissionUpsertWithWhereUniqueWithoutAppInput | Prisma.AnyHubPermissionUpsertWithWhereUniqueWithoutAppInput[]
403
+ createMany?: Prisma.AnyHubPermissionCreateManyAppInputEnvelope
404
+ set?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
405
+ disconnect?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
406
+ delete?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
407
+ connect?: Prisma.AnyHubPermissionWhereUniqueInput | Prisma.AnyHubPermissionWhereUniqueInput[]
408
+ update?: Prisma.AnyHubPermissionUpdateWithWhereUniqueWithoutAppInput | Prisma.AnyHubPermissionUpdateWithWhereUniqueWithoutAppInput[]
409
+ updateMany?: Prisma.AnyHubPermissionUpdateManyWithWhereWithoutAppInput | Prisma.AnyHubPermissionUpdateManyWithWhereWithoutAppInput[]
410
+ deleteMany?: Prisma.AnyHubPermissionScalarWhereInput | Prisma.AnyHubPermissionScalarWhereInput[]
411
+ }
412
+
413
+ export type AnyHubPermissionCreateWithoutAppInput = {
414
+ id?: string
415
+ capability: string
416
+ granted?: boolean
417
+ userId: string
418
+ createdAt?: Date | string
419
+ updatedAt?: Date | string
420
+ }
421
+
422
+ export type AnyHubPermissionUncheckedCreateWithoutAppInput = {
423
+ id?: string
424
+ capability: string
425
+ granted?: boolean
426
+ userId: string
427
+ createdAt?: Date | string
428
+ updatedAt?: Date | string
429
+ }
430
+
431
+ export type AnyHubPermissionCreateOrConnectWithoutAppInput = {
432
+ where: Prisma.AnyHubPermissionWhereUniqueInput
433
+ create: Prisma.XOR<Prisma.AnyHubPermissionCreateWithoutAppInput, Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput>
434
+ }
435
+
436
+ export type AnyHubPermissionCreateManyAppInputEnvelope = {
437
+ data: Prisma.AnyHubPermissionCreateManyAppInput | Prisma.AnyHubPermissionCreateManyAppInput[]
438
+ }
439
+
440
+ export type AnyHubPermissionUpsertWithWhereUniqueWithoutAppInput = {
441
+ where: Prisma.AnyHubPermissionWhereUniqueInput
442
+ update: Prisma.XOR<Prisma.AnyHubPermissionUpdateWithoutAppInput, Prisma.AnyHubPermissionUncheckedUpdateWithoutAppInput>
443
+ create: Prisma.XOR<Prisma.AnyHubPermissionCreateWithoutAppInput, Prisma.AnyHubPermissionUncheckedCreateWithoutAppInput>
444
+ }
445
+
446
+ export type AnyHubPermissionUpdateWithWhereUniqueWithoutAppInput = {
447
+ where: Prisma.AnyHubPermissionWhereUniqueInput
448
+ data: Prisma.XOR<Prisma.AnyHubPermissionUpdateWithoutAppInput, Prisma.AnyHubPermissionUncheckedUpdateWithoutAppInput>
449
+ }
450
+
451
+ export type AnyHubPermissionUpdateManyWithWhereWithoutAppInput = {
452
+ where: Prisma.AnyHubPermissionScalarWhereInput
453
+ data: Prisma.XOR<Prisma.AnyHubPermissionUpdateManyMutationInput, Prisma.AnyHubPermissionUncheckedUpdateManyWithoutAppInput>
454
+ }
455
+
456
+ export type AnyHubPermissionScalarWhereInput = {
457
+ AND?: Prisma.AnyHubPermissionScalarWhereInput | Prisma.AnyHubPermissionScalarWhereInput[]
458
+ OR?: Prisma.AnyHubPermissionScalarWhereInput[]
459
+ NOT?: Prisma.AnyHubPermissionScalarWhereInput | Prisma.AnyHubPermissionScalarWhereInput[]
460
+ id?: Prisma.StringFilter<"AnyHubPermission"> | string
461
+ appId?: Prisma.StringFilter<"AnyHubPermission"> | string
462
+ capability?: Prisma.StringFilter<"AnyHubPermission"> | string
463
+ granted?: Prisma.BoolFilter<"AnyHubPermission"> | boolean
464
+ userId?: Prisma.StringFilter<"AnyHubPermission"> | string
465
+ createdAt?: Prisma.DateTimeFilter<"AnyHubPermission"> | Date | string
466
+ updatedAt?: Prisma.DateTimeFilter<"AnyHubPermission"> | Date | string
467
+ }
468
+
469
+ export type AnyHubPermissionCreateManyAppInput = {
470
+ id?: string
471
+ capability: string
472
+ granted?: boolean
473
+ userId: string
474
+ createdAt?: Date | string
475
+ updatedAt?: Date | string
476
+ }
477
+
478
+ export type AnyHubPermissionUpdateWithoutAppInput = {
479
+ id?: Prisma.StringFieldUpdateOperationsInput | string
480
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
481
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
482
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
483
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
484
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
485
+ }
486
+
487
+ export type AnyHubPermissionUncheckedUpdateWithoutAppInput = {
488
+ id?: Prisma.StringFieldUpdateOperationsInput | string
489
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
490
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
491
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
492
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
493
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
494
+ }
495
+
496
+ export type AnyHubPermissionUncheckedUpdateManyWithoutAppInput = {
497
+ id?: Prisma.StringFieldUpdateOperationsInput | string
498
+ capability?: Prisma.StringFieldUpdateOperationsInput | string
499
+ granted?: Prisma.BoolFieldUpdateOperationsInput | boolean
500
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
501
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
502
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
503
+ }
504
+
505
+
506
+
507
+ export type AnyHubPermissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
508
+ id?: boolean
509
+ appId?: boolean
510
+ capability?: boolean
511
+ granted?: boolean
512
+ userId?: boolean
513
+ createdAt?: boolean
514
+ updatedAt?: boolean
515
+ app?: boolean | Prisma.AnyHubAppDefaultArgs<ExtArgs>
516
+ }, ExtArgs["result"]["anyHubPermission"]>
517
+
518
+ export type AnyHubPermissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
519
+ id?: boolean
520
+ appId?: boolean
521
+ capability?: boolean
522
+ granted?: boolean
523
+ userId?: boolean
524
+ createdAt?: boolean
525
+ updatedAt?: boolean
526
+ app?: boolean | Prisma.AnyHubAppDefaultArgs<ExtArgs>
527
+ }, ExtArgs["result"]["anyHubPermission"]>
528
+
529
+ export type AnyHubPermissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
530
+ id?: boolean
531
+ appId?: boolean
532
+ capability?: boolean
533
+ granted?: boolean
534
+ userId?: boolean
535
+ createdAt?: boolean
536
+ updatedAt?: boolean
537
+ app?: boolean | Prisma.AnyHubAppDefaultArgs<ExtArgs>
538
+ }, ExtArgs["result"]["anyHubPermission"]>
539
+
540
+ export type AnyHubPermissionSelectScalar = {
541
+ id?: boolean
542
+ appId?: boolean
543
+ capability?: boolean
544
+ granted?: boolean
545
+ userId?: boolean
546
+ createdAt?: boolean
547
+ updatedAt?: boolean
548
+ }
549
+
550
+ export type AnyHubPermissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "appId" | "capability" | "granted" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["anyHubPermission"]>
551
+ export type AnyHubPermissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
552
+ app?: boolean | Prisma.AnyHubAppDefaultArgs<ExtArgs>
553
+ }
554
+ export type AnyHubPermissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
555
+ app?: boolean | Prisma.AnyHubAppDefaultArgs<ExtArgs>
556
+ }
557
+ export type AnyHubPermissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
558
+ app?: boolean | Prisma.AnyHubAppDefaultArgs<ExtArgs>
559
+ }
560
+
561
+ export type $AnyHubPermissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
562
+ name: "AnyHubPermission"
563
+ objects: {
564
+ app: Prisma.$AnyHubAppPayload<ExtArgs>
565
+ }
566
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
567
+ id: string
568
+ appId: string
569
+ capability: string
570
+ granted: boolean
571
+ userId: string
572
+ createdAt: Date
573
+ updatedAt: Date
574
+ }, ExtArgs["result"]["anyHubPermission"]>
575
+ composites: {}
576
+ }
577
+
578
+ export type AnyHubPermissionGetPayload<S extends boolean | null | undefined | AnyHubPermissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload, S>
579
+
580
+ export type AnyHubPermissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
581
+ Omit<AnyHubPermissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
582
+ select?: AnyHubPermissionCountAggregateInputType | true
583
+ }
584
+
585
+ export interface AnyHubPermissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
586
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AnyHubPermission'], meta: { name: 'AnyHubPermission' } }
587
+ /**
588
+ * Find zero or one AnyHubPermission that matches the filter.
589
+ * @param {AnyHubPermissionFindUniqueArgs} args - Arguments to find a AnyHubPermission
590
+ * @example
591
+ * // Get one AnyHubPermission
592
+ * const anyHubPermission = await prisma.anyHubPermission.findUnique({
593
+ * where: {
594
+ * // ... provide filter here
595
+ * }
596
+ * })
597
+ */
598
+ findUnique<T extends AnyHubPermissionFindUniqueArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
599
+
600
+ /**
601
+ * Find one AnyHubPermission that matches the filter or throw an error with `error.code='P2025'`
602
+ * if no matches were found.
603
+ * @param {AnyHubPermissionFindUniqueOrThrowArgs} args - Arguments to find a AnyHubPermission
604
+ * @example
605
+ * // Get one AnyHubPermission
606
+ * const anyHubPermission = await prisma.anyHubPermission.findUniqueOrThrow({
607
+ * where: {
608
+ * // ... provide filter here
609
+ * }
610
+ * })
611
+ */
612
+ findUniqueOrThrow<T extends AnyHubPermissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
613
+
614
+ /**
615
+ * Find the first AnyHubPermission that matches the filter.
616
+ * Note, that providing `undefined` is treated as the value not being there.
617
+ * Read more here: https://pris.ly/d/null-undefined
618
+ * @param {AnyHubPermissionFindFirstArgs} args - Arguments to find a AnyHubPermission
619
+ * @example
620
+ * // Get one AnyHubPermission
621
+ * const anyHubPermission = await prisma.anyHubPermission.findFirst({
622
+ * where: {
623
+ * // ... provide filter here
624
+ * }
625
+ * })
626
+ */
627
+ findFirst<T extends AnyHubPermissionFindFirstArgs>(args?: Prisma.SelectSubset<T, AnyHubPermissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
628
+
629
+ /**
630
+ * Find the first AnyHubPermission that matches the filter or
631
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {AnyHubPermissionFindFirstOrThrowArgs} args - Arguments to find a AnyHubPermission
635
+ * @example
636
+ * // Get one AnyHubPermission
637
+ * const anyHubPermission = await prisma.anyHubPermission.findFirstOrThrow({
638
+ * where: {
639
+ * // ... provide filter here
640
+ * }
641
+ * })
642
+ */
643
+ findFirstOrThrow<T extends AnyHubPermissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AnyHubPermissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
644
+
645
+ /**
646
+ * Find zero or more AnyHubPermissions that matches the filter.
647
+ * Note, that providing `undefined` is treated as the value not being there.
648
+ * Read more here: https://pris.ly/d/null-undefined
649
+ * @param {AnyHubPermissionFindManyArgs} args - Arguments to filter and select certain fields only.
650
+ * @example
651
+ * // Get all AnyHubPermissions
652
+ * const anyHubPermissions = await prisma.anyHubPermission.findMany()
653
+ *
654
+ * // Get first 10 AnyHubPermissions
655
+ * const anyHubPermissions = await prisma.anyHubPermission.findMany({ take: 10 })
656
+ *
657
+ * // Only select the `id`
658
+ * const anyHubPermissionWithIdOnly = await prisma.anyHubPermission.findMany({ select: { id: true } })
659
+ *
660
+ */
661
+ findMany<T extends AnyHubPermissionFindManyArgs>(args?: Prisma.SelectSubset<T, AnyHubPermissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
662
+
663
+ /**
664
+ * Create a AnyHubPermission.
665
+ * @param {AnyHubPermissionCreateArgs} args - Arguments to create a AnyHubPermission.
666
+ * @example
667
+ * // Create one AnyHubPermission
668
+ * const AnyHubPermission = await prisma.anyHubPermission.create({
669
+ * data: {
670
+ * // ... data to create a AnyHubPermission
671
+ * }
672
+ * })
673
+ *
674
+ */
675
+ create<T extends AnyHubPermissionCreateArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionCreateArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
676
+
677
+ /**
678
+ * Create many AnyHubPermissions.
679
+ * @param {AnyHubPermissionCreateManyArgs} args - Arguments to create many AnyHubPermissions.
680
+ * @example
681
+ * // Create many AnyHubPermissions
682
+ * const anyHubPermission = await prisma.anyHubPermission.createMany({
683
+ * data: [
684
+ * // ... provide data here
685
+ * ]
686
+ * })
687
+ *
688
+ */
689
+ createMany<T extends AnyHubPermissionCreateManyArgs>(args?: Prisma.SelectSubset<T, AnyHubPermissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
690
+
691
+ /**
692
+ * Create many AnyHubPermissions and returns the data saved in the database.
693
+ * @param {AnyHubPermissionCreateManyAndReturnArgs} args - Arguments to create many AnyHubPermissions.
694
+ * @example
695
+ * // Create many AnyHubPermissions
696
+ * const anyHubPermission = await prisma.anyHubPermission.createManyAndReturn({
697
+ * data: [
698
+ * // ... provide data here
699
+ * ]
700
+ * })
701
+ *
702
+ * // Create many AnyHubPermissions and only return the `id`
703
+ * const anyHubPermissionWithIdOnly = await prisma.anyHubPermission.createManyAndReturn({
704
+ * select: { id: true },
705
+ * data: [
706
+ * // ... provide data here
707
+ * ]
708
+ * })
709
+ * Note, that providing `undefined` is treated as the value not being there.
710
+ * Read more here: https://pris.ly/d/null-undefined
711
+ *
712
+ */
713
+ createManyAndReturn<T extends AnyHubPermissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AnyHubPermissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
714
+
715
+ /**
716
+ * Delete a AnyHubPermission.
717
+ * @param {AnyHubPermissionDeleteArgs} args - Arguments to delete one AnyHubPermission.
718
+ * @example
719
+ * // Delete one AnyHubPermission
720
+ * const AnyHubPermission = await prisma.anyHubPermission.delete({
721
+ * where: {
722
+ * // ... filter to delete one AnyHubPermission
723
+ * }
724
+ * })
725
+ *
726
+ */
727
+ delete<T extends AnyHubPermissionDeleteArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionDeleteArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
728
+
729
+ /**
730
+ * Update one AnyHubPermission.
731
+ * @param {AnyHubPermissionUpdateArgs} args - Arguments to update one AnyHubPermission.
732
+ * @example
733
+ * // Update one AnyHubPermission
734
+ * const anyHubPermission = await prisma.anyHubPermission.update({
735
+ * where: {
736
+ * // ... provide filter here
737
+ * },
738
+ * data: {
739
+ * // ... provide data here
740
+ * }
741
+ * })
742
+ *
743
+ */
744
+ update<T extends AnyHubPermissionUpdateArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionUpdateArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
745
+
746
+ /**
747
+ * Delete zero or more AnyHubPermissions.
748
+ * @param {AnyHubPermissionDeleteManyArgs} args - Arguments to filter AnyHubPermissions to delete.
749
+ * @example
750
+ * // Delete a few AnyHubPermissions
751
+ * const { count } = await prisma.anyHubPermission.deleteMany({
752
+ * where: {
753
+ * // ... provide filter here
754
+ * }
755
+ * })
756
+ *
757
+ */
758
+ deleteMany<T extends AnyHubPermissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AnyHubPermissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
759
+
760
+ /**
761
+ * Update zero or more AnyHubPermissions.
762
+ * Note, that providing `undefined` is treated as the value not being there.
763
+ * Read more here: https://pris.ly/d/null-undefined
764
+ * @param {AnyHubPermissionUpdateManyArgs} args - Arguments to update one or more rows.
765
+ * @example
766
+ * // Update many AnyHubPermissions
767
+ * const anyHubPermission = await prisma.anyHubPermission.updateMany({
768
+ * where: {
769
+ * // ... provide filter here
770
+ * },
771
+ * data: {
772
+ * // ... provide data here
773
+ * }
774
+ * })
775
+ *
776
+ */
777
+ updateMany<T extends AnyHubPermissionUpdateManyArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
778
+
779
+ /**
780
+ * Update zero or more AnyHubPermissions and returns the data updated in the database.
781
+ * @param {AnyHubPermissionUpdateManyAndReturnArgs} args - Arguments to update many AnyHubPermissions.
782
+ * @example
783
+ * // Update many AnyHubPermissions
784
+ * const anyHubPermission = await prisma.anyHubPermission.updateManyAndReturn({
785
+ * where: {
786
+ * // ... provide filter here
787
+ * },
788
+ * data: [
789
+ * // ... provide data here
790
+ * ]
791
+ * })
792
+ *
793
+ * // Update zero or more AnyHubPermissions and only return the `id`
794
+ * const anyHubPermissionWithIdOnly = await prisma.anyHubPermission.updateManyAndReturn({
795
+ * select: { id: true },
796
+ * where: {
797
+ * // ... provide filter here
798
+ * },
799
+ * data: [
800
+ * // ... provide data here
801
+ * ]
802
+ * })
803
+ * Note, that providing `undefined` is treated as the value not being there.
804
+ * Read more here: https://pris.ly/d/null-undefined
805
+ *
806
+ */
807
+ updateManyAndReturn<T extends AnyHubPermissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
808
+
809
+ /**
810
+ * Create or update one AnyHubPermission.
811
+ * @param {AnyHubPermissionUpsertArgs} args - Arguments to update or create a AnyHubPermission.
812
+ * @example
813
+ * // Update or create a AnyHubPermission
814
+ * const anyHubPermission = await prisma.anyHubPermission.upsert({
815
+ * create: {
816
+ * // ... data to create a AnyHubPermission
817
+ * },
818
+ * update: {
819
+ * // ... in case it already exists, update
820
+ * },
821
+ * where: {
822
+ * // ... the filter for the AnyHubPermission we want to update
823
+ * }
824
+ * })
825
+ */
826
+ upsert<T extends AnyHubPermissionUpsertArgs>(args: Prisma.SelectSubset<T, AnyHubPermissionUpsertArgs<ExtArgs>>): Prisma.Prisma__AnyHubPermissionClient<runtime.Types.Result.GetResult<Prisma.$AnyHubPermissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
827
+
828
+
829
+ /**
830
+ * Count the number of AnyHubPermissions.
831
+ * Note, that providing `undefined` is treated as the value not being there.
832
+ * Read more here: https://pris.ly/d/null-undefined
833
+ * @param {AnyHubPermissionCountArgs} args - Arguments to filter AnyHubPermissions to count.
834
+ * @example
835
+ * // Count the number of AnyHubPermissions
836
+ * const count = await prisma.anyHubPermission.count({
837
+ * where: {
838
+ * // ... the filter for the AnyHubPermissions we want to count
839
+ * }
840
+ * })
841
+ **/
842
+ count<T extends AnyHubPermissionCountArgs>(
843
+ args?: Prisma.Subset<T, AnyHubPermissionCountArgs>,
844
+ ): Prisma.PrismaPromise<
845
+ T extends runtime.Types.Utils.Record<'select', any>
846
+ ? T['select'] extends true
847
+ ? number
848
+ : Prisma.GetScalarType<T['select'], AnyHubPermissionCountAggregateOutputType>
849
+ : number
850
+ >
851
+
852
+ /**
853
+ * Allows you to perform aggregations operations on a AnyHubPermission.
854
+ * Note, that providing `undefined` is treated as the value not being there.
855
+ * Read more here: https://pris.ly/d/null-undefined
856
+ * @param {AnyHubPermissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
857
+ * @example
858
+ * // Ordered by age ascending
859
+ * // Where email contains prisma.io
860
+ * // Limited to the 10 users
861
+ * const aggregations = await prisma.user.aggregate({
862
+ * _avg: {
863
+ * age: true,
864
+ * },
865
+ * where: {
866
+ * email: {
867
+ * contains: "prisma.io",
868
+ * },
869
+ * },
870
+ * orderBy: {
871
+ * age: "asc",
872
+ * },
873
+ * take: 10,
874
+ * })
875
+ **/
876
+ aggregate<T extends AnyHubPermissionAggregateArgs>(args: Prisma.Subset<T, AnyHubPermissionAggregateArgs>): Prisma.PrismaPromise<GetAnyHubPermissionAggregateType<T>>
877
+
878
+ /**
879
+ * Group by AnyHubPermission.
880
+ * Note, that providing `undefined` is treated as the value not being there.
881
+ * Read more here: https://pris.ly/d/null-undefined
882
+ * @param {AnyHubPermissionGroupByArgs} args - Group by arguments.
883
+ * @example
884
+ * // Group by city, order by createdAt, get count
885
+ * const result = await prisma.user.groupBy({
886
+ * by: ['city', 'createdAt'],
887
+ * orderBy: {
888
+ * createdAt: true
889
+ * },
890
+ * _count: {
891
+ * _all: true
892
+ * },
893
+ * })
894
+ *
895
+ **/
896
+ groupBy<
897
+ T extends AnyHubPermissionGroupByArgs,
898
+ HasSelectOrTake extends Prisma.Or<
899
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
900
+ Prisma.Extends<'take', Prisma.Keys<T>>
901
+ >,
902
+ OrderByArg extends Prisma.True extends HasSelectOrTake
903
+ ? { orderBy: AnyHubPermissionGroupByArgs['orderBy'] }
904
+ : { orderBy?: AnyHubPermissionGroupByArgs['orderBy'] },
905
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
906
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
907
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
908
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
909
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
910
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
911
+ InputErrors extends ByEmpty extends Prisma.True
912
+ ? `Error: "by" must not be empty.`
913
+ : HavingValid extends Prisma.False
914
+ ? {
915
+ [P in HavingFields]: P extends ByFields
916
+ ? never
917
+ : P extends string
918
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
919
+ : [
920
+ Error,
921
+ 'Field ',
922
+ P,
923
+ ` in "having" needs to be provided in "by"`,
924
+ ]
925
+ }[HavingFields]
926
+ : 'take' extends Prisma.Keys<T>
927
+ ? 'orderBy' extends Prisma.Keys<T>
928
+ ? ByValid extends Prisma.True
929
+ ? {}
930
+ : {
931
+ [P in OrderFields]: P extends ByFields
932
+ ? never
933
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
934
+ }[OrderFields]
935
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
936
+ : 'skip' extends Prisma.Keys<T>
937
+ ? 'orderBy' extends Prisma.Keys<T>
938
+ ? ByValid extends Prisma.True
939
+ ? {}
940
+ : {
941
+ [P in OrderFields]: P extends ByFields
942
+ ? never
943
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
944
+ }[OrderFields]
945
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
946
+ : ByValid extends Prisma.True
947
+ ? {}
948
+ : {
949
+ [P in OrderFields]: P extends ByFields
950
+ ? never
951
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
952
+ }[OrderFields]
953
+ >(args: Prisma.SubsetIntersection<T, AnyHubPermissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAnyHubPermissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
954
+ /**
955
+ * Fields of the AnyHubPermission model
956
+ */
957
+ readonly fields: AnyHubPermissionFieldRefs;
958
+ }
959
+
960
+ /**
961
+ * The delegate class that acts as a "Promise-like" for AnyHubPermission.
962
+ * Why is this prefixed with `Prisma__`?
963
+ * Because we want to prevent naming conflicts as mentioned in
964
+ * https://github.com/prisma/prisma-client-js/issues/707
965
+ */
966
+ export interface Prisma__AnyHubPermissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
967
+ readonly [Symbol.toStringTag]: "PrismaPromise"
968
+ app<T extends Prisma.AnyHubAppDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AnyHubAppDefaultArgs<ExtArgs>>): Prisma.Prisma__AnyHubAppClient<runtime.Types.Result.GetResult<Prisma.$AnyHubAppPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
969
+ /**
970
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
971
+ * @param onfulfilled The callback to execute when the Promise is resolved.
972
+ * @param onrejected The callback to execute when the Promise is rejected.
973
+ * @returns A Promise for the completion of which ever callback is executed.
974
+ */
975
+ 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>
976
+ /**
977
+ * Attaches a callback for only the rejection of the Promise.
978
+ * @param onrejected The callback to execute when the Promise is rejected.
979
+ * @returns A Promise for the completion of the callback.
980
+ */
981
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
982
+ /**
983
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
984
+ * resolved value cannot be modified from the callback.
985
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
986
+ * @returns A Promise for the completion of the callback.
987
+ */
988
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
989
+ }
990
+
991
+
992
+
993
+
994
+ /**
995
+ * Fields of the AnyHubPermission model
996
+ */
997
+ export interface AnyHubPermissionFieldRefs {
998
+ readonly id: Prisma.FieldRef<"AnyHubPermission", 'String'>
999
+ readonly appId: Prisma.FieldRef<"AnyHubPermission", 'String'>
1000
+ readonly capability: Prisma.FieldRef<"AnyHubPermission", 'String'>
1001
+ readonly granted: Prisma.FieldRef<"AnyHubPermission", 'Boolean'>
1002
+ readonly userId: Prisma.FieldRef<"AnyHubPermission", 'String'>
1003
+ readonly createdAt: Prisma.FieldRef<"AnyHubPermission", 'DateTime'>
1004
+ readonly updatedAt: Prisma.FieldRef<"AnyHubPermission", 'DateTime'>
1005
+ }
1006
+
1007
+
1008
+ // Custom InputTypes
1009
+ /**
1010
+ * AnyHubPermission findUnique
1011
+ */
1012
+ export type AnyHubPermissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1013
+ /**
1014
+ * Select specific fields to fetch from the AnyHubPermission
1015
+ */
1016
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1017
+ /**
1018
+ * Omit specific fields from the AnyHubPermission
1019
+ */
1020
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1021
+ /**
1022
+ * Choose, which related nodes to fetch as well
1023
+ */
1024
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1025
+ /**
1026
+ * Filter, which AnyHubPermission to fetch.
1027
+ */
1028
+ where: Prisma.AnyHubPermissionWhereUniqueInput
1029
+ }
1030
+
1031
+ /**
1032
+ * AnyHubPermission findUniqueOrThrow
1033
+ */
1034
+ export type AnyHubPermissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1035
+ /**
1036
+ * Select specific fields to fetch from the AnyHubPermission
1037
+ */
1038
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1039
+ /**
1040
+ * Omit specific fields from the AnyHubPermission
1041
+ */
1042
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1043
+ /**
1044
+ * Choose, which related nodes to fetch as well
1045
+ */
1046
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1047
+ /**
1048
+ * Filter, which AnyHubPermission to fetch.
1049
+ */
1050
+ where: Prisma.AnyHubPermissionWhereUniqueInput
1051
+ }
1052
+
1053
+ /**
1054
+ * AnyHubPermission findFirst
1055
+ */
1056
+ export type AnyHubPermissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1057
+ /**
1058
+ * Select specific fields to fetch from the AnyHubPermission
1059
+ */
1060
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1061
+ /**
1062
+ * Omit specific fields from the AnyHubPermission
1063
+ */
1064
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1065
+ /**
1066
+ * Choose, which related nodes to fetch as well
1067
+ */
1068
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1069
+ /**
1070
+ * Filter, which AnyHubPermission to fetch.
1071
+ */
1072
+ where?: Prisma.AnyHubPermissionWhereInput
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1075
+ *
1076
+ * Determine the order of AnyHubPermissions to fetch.
1077
+ */
1078
+ orderBy?: Prisma.AnyHubPermissionOrderByWithRelationInput | Prisma.AnyHubPermissionOrderByWithRelationInput[]
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1081
+ *
1082
+ * Sets the position for searching for AnyHubPermissions.
1083
+ */
1084
+ cursor?: Prisma.AnyHubPermissionWhereUniqueInput
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1087
+ *
1088
+ * Take `±n` AnyHubPermissions from the position of the cursor.
1089
+ */
1090
+ take?: number
1091
+ /**
1092
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1093
+ *
1094
+ * Skip the first `n` AnyHubPermissions.
1095
+ */
1096
+ skip?: number
1097
+ /**
1098
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1099
+ *
1100
+ * Filter by unique combinations of AnyHubPermissions.
1101
+ */
1102
+ distinct?: Prisma.AnyHubPermissionScalarFieldEnum | Prisma.AnyHubPermissionScalarFieldEnum[]
1103
+ }
1104
+
1105
+ /**
1106
+ * AnyHubPermission findFirstOrThrow
1107
+ */
1108
+ export type AnyHubPermissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the AnyHubPermission
1111
+ */
1112
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1113
+ /**
1114
+ * Omit specific fields from the AnyHubPermission
1115
+ */
1116
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1117
+ /**
1118
+ * Choose, which related nodes to fetch as well
1119
+ */
1120
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1121
+ /**
1122
+ * Filter, which AnyHubPermission to fetch.
1123
+ */
1124
+ where?: Prisma.AnyHubPermissionWhereInput
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1127
+ *
1128
+ * Determine the order of AnyHubPermissions to fetch.
1129
+ */
1130
+ orderBy?: Prisma.AnyHubPermissionOrderByWithRelationInput | Prisma.AnyHubPermissionOrderByWithRelationInput[]
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1133
+ *
1134
+ * Sets the position for searching for AnyHubPermissions.
1135
+ */
1136
+ cursor?: Prisma.AnyHubPermissionWhereUniqueInput
1137
+ /**
1138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1139
+ *
1140
+ * Take `±n` AnyHubPermissions from the position of the cursor.
1141
+ */
1142
+ take?: number
1143
+ /**
1144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1145
+ *
1146
+ * Skip the first `n` AnyHubPermissions.
1147
+ */
1148
+ skip?: number
1149
+ /**
1150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1151
+ *
1152
+ * Filter by unique combinations of AnyHubPermissions.
1153
+ */
1154
+ distinct?: Prisma.AnyHubPermissionScalarFieldEnum | Prisma.AnyHubPermissionScalarFieldEnum[]
1155
+ }
1156
+
1157
+ /**
1158
+ * AnyHubPermission findMany
1159
+ */
1160
+ export type AnyHubPermissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1161
+ /**
1162
+ * Select specific fields to fetch from the AnyHubPermission
1163
+ */
1164
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1165
+ /**
1166
+ * Omit specific fields from the AnyHubPermission
1167
+ */
1168
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1169
+ /**
1170
+ * Choose, which related nodes to fetch as well
1171
+ */
1172
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1173
+ /**
1174
+ * Filter, which AnyHubPermissions to fetch.
1175
+ */
1176
+ where?: Prisma.AnyHubPermissionWhereInput
1177
+ /**
1178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1179
+ *
1180
+ * Determine the order of AnyHubPermissions to fetch.
1181
+ */
1182
+ orderBy?: Prisma.AnyHubPermissionOrderByWithRelationInput | Prisma.AnyHubPermissionOrderByWithRelationInput[]
1183
+ /**
1184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1185
+ *
1186
+ * Sets the position for listing AnyHubPermissions.
1187
+ */
1188
+ cursor?: Prisma.AnyHubPermissionWhereUniqueInput
1189
+ /**
1190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1191
+ *
1192
+ * Take `±n` AnyHubPermissions from the position of the cursor.
1193
+ */
1194
+ take?: number
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1197
+ *
1198
+ * Skip the first `n` AnyHubPermissions.
1199
+ */
1200
+ skip?: number
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1203
+ *
1204
+ * Filter by unique combinations of AnyHubPermissions.
1205
+ */
1206
+ distinct?: Prisma.AnyHubPermissionScalarFieldEnum | Prisma.AnyHubPermissionScalarFieldEnum[]
1207
+ }
1208
+
1209
+ /**
1210
+ * AnyHubPermission create
1211
+ */
1212
+ export type AnyHubPermissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1213
+ /**
1214
+ * Select specific fields to fetch from the AnyHubPermission
1215
+ */
1216
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1217
+ /**
1218
+ * Omit specific fields from the AnyHubPermission
1219
+ */
1220
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1221
+ /**
1222
+ * Choose, which related nodes to fetch as well
1223
+ */
1224
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1225
+ /**
1226
+ * The data needed to create a AnyHubPermission.
1227
+ */
1228
+ data: Prisma.XOR<Prisma.AnyHubPermissionCreateInput, Prisma.AnyHubPermissionUncheckedCreateInput>
1229
+ }
1230
+
1231
+ /**
1232
+ * AnyHubPermission createMany
1233
+ */
1234
+ export type AnyHubPermissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
+ /**
1236
+ * The data used to create many AnyHubPermissions.
1237
+ */
1238
+ data: Prisma.AnyHubPermissionCreateManyInput | Prisma.AnyHubPermissionCreateManyInput[]
1239
+ }
1240
+
1241
+ /**
1242
+ * AnyHubPermission createManyAndReturn
1243
+ */
1244
+ export type AnyHubPermissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1245
+ /**
1246
+ * Select specific fields to fetch from the AnyHubPermission
1247
+ */
1248
+ select?: Prisma.AnyHubPermissionSelectCreateManyAndReturn<ExtArgs> | null
1249
+ /**
1250
+ * Omit specific fields from the AnyHubPermission
1251
+ */
1252
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1253
+ /**
1254
+ * The data used to create many AnyHubPermissions.
1255
+ */
1256
+ data: Prisma.AnyHubPermissionCreateManyInput | Prisma.AnyHubPermissionCreateManyInput[]
1257
+ /**
1258
+ * Choose, which related nodes to fetch as well
1259
+ */
1260
+ include?: Prisma.AnyHubPermissionIncludeCreateManyAndReturn<ExtArgs> | null
1261
+ }
1262
+
1263
+ /**
1264
+ * AnyHubPermission update
1265
+ */
1266
+ export type AnyHubPermissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
+ /**
1268
+ * Select specific fields to fetch from the AnyHubPermission
1269
+ */
1270
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1271
+ /**
1272
+ * Omit specific fields from the AnyHubPermission
1273
+ */
1274
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1275
+ /**
1276
+ * Choose, which related nodes to fetch as well
1277
+ */
1278
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1279
+ /**
1280
+ * The data needed to update a AnyHubPermission.
1281
+ */
1282
+ data: Prisma.XOR<Prisma.AnyHubPermissionUpdateInput, Prisma.AnyHubPermissionUncheckedUpdateInput>
1283
+ /**
1284
+ * Choose, which AnyHubPermission to update.
1285
+ */
1286
+ where: Prisma.AnyHubPermissionWhereUniqueInput
1287
+ }
1288
+
1289
+ /**
1290
+ * AnyHubPermission updateMany
1291
+ */
1292
+ export type AnyHubPermissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * The data used to update AnyHubPermissions.
1295
+ */
1296
+ data: Prisma.XOR<Prisma.AnyHubPermissionUpdateManyMutationInput, Prisma.AnyHubPermissionUncheckedUpdateManyInput>
1297
+ /**
1298
+ * Filter which AnyHubPermissions to update
1299
+ */
1300
+ where?: Prisma.AnyHubPermissionWhereInput
1301
+ /**
1302
+ * Limit how many AnyHubPermissions to update.
1303
+ */
1304
+ limit?: number
1305
+ }
1306
+
1307
+ /**
1308
+ * AnyHubPermission updateManyAndReturn
1309
+ */
1310
+ export type AnyHubPermissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
+ /**
1312
+ * Select specific fields to fetch from the AnyHubPermission
1313
+ */
1314
+ select?: Prisma.AnyHubPermissionSelectUpdateManyAndReturn<ExtArgs> | null
1315
+ /**
1316
+ * Omit specific fields from the AnyHubPermission
1317
+ */
1318
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1319
+ /**
1320
+ * The data used to update AnyHubPermissions.
1321
+ */
1322
+ data: Prisma.XOR<Prisma.AnyHubPermissionUpdateManyMutationInput, Prisma.AnyHubPermissionUncheckedUpdateManyInput>
1323
+ /**
1324
+ * Filter which AnyHubPermissions to update
1325
+ */
1326
+ where?: Prisma.AnyHubPermissionWhereInput
1327
+ /**
1328
+ * Limit how many AnyHubPermissions to update.
1329
+ */
1330
+ limit?: number
1331
+ /**
1332
+ * Choose, which related nodes to fetch as well
1333
+ */
1334
+ include?: Prisma.AnyHubPermissionIncludeUpdateManyAndReturn<ExtArgs> | null
1335
+ }
1336
+
1337
+ /**
1338
+ * AnyHubPermission upsert
1339
+ */
1340
+ export type AnyHubPermissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1341
+ /**
1342
+ * Select specific fields to fetch from the AnyHubPermission
1343
+ */
1344
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1345
+ /**
1346
+ * Omit specific fields from the AnyHubPermission
1347
+ */
1348
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1349
+ /**
1350
+ * Choose, which related nodes to fetch as well
1351
+ */
1352
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1353
+ /**
1354
+ * The filter to search for the AnyHubPermission to update in case it exists.
1355
+ */
1356
+ where: Prisma.AnyHubPermissionWhereUniqueInput
1357
+ /**
1358
+ * In case the AnyHubPermission found by the `where` argument doesn't exist, create a new AnyHubPermission with this data.
1359
+ */
1360
+ create: Prisma.XOR<Prisma.AnyHubPermissionCreateInput, Prisma.AnyHubPermissionUncheckedCreateInput>
1361
+ /**
1362
+ * In case the AnyHubPermission was found with the provided `where` argument, update it with this data.
1363
+ */
1364
+ update: Prisma.XOR<Prisma.AnyHubPermissionUpdateInput, Prisma.AnyHubPermissionUncheckedUpdateInput>
1365
+ }
1366
+
1367
+ /**
1368
+ * AnyHubPermission delete
1369
+ */
1370
+ export type AnyHubPermissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1371
+ /**
1372
+ * Select specific fields to fetch from the AnyHubPermission
1373
+ */
1374
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1375
+ /**
1376
+ * Omit specific fields from the AnyHubPermission
1377
+ */
1378
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1379
+ /**
1380
+ * Choose, which related nodes to fetch as well
1381
+ */
1382
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1383
+ /**
1384
+ * Filter which AnyHubPermission to delete.
1385
+ */
1386
+ where: Prisma.AnyHubPermissionWhereUniqueInput
1387
+ }
1388
+
1389
+ /**
1390
+ * AnyHubPermission deleteMany
1391
+ */
1392
+ export type AnyHubPermissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1393
+ /**
1394
+ * Filter which AnyHubPermissions to delete
1395
+ */
1396
+ where?: Prisma.AnyHubPermissionWhereInput
1397
+ /**
1398
+ * Limit how many AnyHubPermissions to delete.
1399
+ */
1400
+ limit?: number
1401
+ }
1402
+
1403
+ /**
1404
+ * AnyHubPermission without action
1405
+ */
1406
+ export type AnyHubPermissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1407
+ /**
1408
+ * Select specific fields to fetch from the AnyHubPermission
1409
+ */
1410
+ select?: Prisma.AnyHubPermissionSelect<ExtArgs> | null
1411
+ /**
1412
+ * Omit specific fields from the AnyHubPermission
1413
+ */
1414
+ omit?: Prisma.AnyHubPermissionOmit<ExtArgs> | null
1415
+ /**
1416
+ * Choose, which related nodes to fetch as well
1417
+ */
1418
+ include?: Prisma.AnyHubPermissionInclude<ExtArgs> | null
1419
+ }