@goscribe/server 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/generated/prisma/client.d.ts +224 -0
  2. package/dist/generated/prisma/client.js +34 -0
  3. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  4. package/dist/generated/prisma/commonInputTypes.js +10 -0
  5. package/dist/generated/prisma/enums.d.ts +67 -0
  6. package/dist/generated/prisma/enums.js +66 -0
  7. package/dist/generated/prisma/internal/class.d.ts +539 -0
  8. package/dist/generated/prisma/internal/class.js +49 -0
  9. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  10. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  11. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  12. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  13. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  14. package/dist/generated/prisma/models/Artifact.js +1 -0
  15. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  16. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  17. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  18. package/dist/generated/prisma/models/Channel.js +1 -0
  19. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  20. package/dist/generated/prisma/models/Chat.js +1 -0
  21. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  22. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  23. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  24. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  25. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  26. package/dist/generated/prisma/models/FileAsset.js +1 -0
  27. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  28. package/dist/generated/prisma/models/Flashcard.js +1 -0
  29. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  30. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  31. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  32. package/dist/generated/prisma/models/Folder.js +1 -0
  33. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  34. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  35. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  36. package/dist/generated/prisma/models/Invoice.js +1 -0
  37. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  38. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  40. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  43. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  44. package/dist/generated/prisma/models/Notification.js +1 -0
  45. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  46. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  47. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  48. package/dist/generated/prisma/models/Plan.js +1 -0
  49. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  50. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  51. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  52. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  53. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  54. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  55. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  56. package/dist/generated/prisma/models/Role.js +1 -0
  57. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  58. package/dist/generated/prisma/models/Session.js +1 -0
  59. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  60. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  61. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  62. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  64. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  65. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  66. package/dist/generated/prisma/models/Subscription.js +1 -0
  67. package/dist/generated/prisma/models/User.d.ts +7559 -0
  68. package/dist/generated/prisma/models/User.js +1 -0
  69. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  70. package/dist/generated/prisma/models/UserCredit.js +1 -0
  71. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  72. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  73. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  74. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  76. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  78. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  79. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  80. package/dist/generated/prisma/models/Workspace.js +1 -0
  81. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  82. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  84. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  86. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  87. package/dist/generated/prisma/models.d.ts +39 -0
  88. package/dist/generated/prisma/models.js +1 -0
  89. package/dist/src/context.d.ts +27 -0
  90. package/dist/src/context.js +33 -0
  91. package/dist/src/index.d.ts +3 -0
  92. package/dist/src/index.js +1 -0
  93. package/dist/src/lib/ai/config.d.ts +20 -0
  94. package/dist/src/lib/ai/config.js +31 -0
  95. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  96. package/dist/src/lib/ai/embedding-client.js +30 -0
  97. package/dist/src/lib/ai/index.d.ts +48 -0
  98. package/dist/src/lib/ai/index.js +29 -0
  99. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  100. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  101. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  102. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  103. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  104. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  105. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  106. package/dist/src/lib/ai/json-parse.js +34 -0
  107. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  108. package/dist/src/lib/ai/llm-client.js +36 -0
  109. package/dist/src/lib/ai/mock.d.ts +2 -0
  110. package/dist/src/lib/ai/mock.js +10 -0
  111. package/dist/src/lib/ai/types.d.ts +9 -0
  112. package/dist/src/lib/ai/types.js +1 -0
  113. package/dist/src/lib/auth.d.ts +36 -0
  114. package/dist/src/lib/auth.js +117 -0
  115. package/dist/src/lib/chunking.d.ts +19 -0
  116. package/dist/src/lib/chunking.js +47 -0
  117. package/dist/src/lib/constants.d.ts +13 -0
  118. package/dist/src/lib/constants.js +12 -0
  119. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  120. package/dist/src/lib/curated-kb-seed.js +155 -0
  121. package/dist/src/lib/email.d.ts +11 -0
  122. package/dist/src/lib/email.js +152 -0
  123. package/dist/src/lib/embeddings.d.ts +2 -0
  124. package/dist/src/lib/embeddings.js +1 -0
  125. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  126. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  127. package/dist/src/lib/env.d.ts +41 -0
  128. package/dist/src/lib/env.js +57 -0
  129. package/dist/src/lib/errors.d.ts +33 -0
  130. package/dist/src/lib/errors.js +78 -0
  131. package/dist/src/lib/file.d.ts +0 -0
  132. package/dist/src/lib/file.js +1 -0
  133. package/dist/src/lib/inference.d.ts +1 -0
  134. package/dist/src/lib/inference.js +1 -0
  135. package/dist/src/lib/kb-meta.d.ts +8 -0
  136. package/dist/src/lib/kb-meta.js +77 -0
  137. package/dist/src/lib/logger.d.ts +62 -0
  138. package/dist/src/lib/logger.js +364 -0
  139. package/dist/src/lib/pdf.d.ts +11 -0
  140. package/dist/src/lib/pdf.js +11 -0
  141. package/dist/src/lib/prisma.d.ts +3 -0
  142. package/dist/src/lib/prisma.js +15 -0
  143. package/dist/src/lib/pusher.d.ts +38 -0
  144. package/dist/src/lib/pusher.js +170 -0
  145. package/dist/src/lib/retry.d.ts +15 -0
  146. package/dist/src/lib/retry.js +37 -0
  147. package/dist/src/lib/storage.d.ts +11 -0
  148. package/dist/src/lib/storage.js +71 -0
  149. package/dist/src/lib/stripe.d.ts +10 -0
  150. package/dist/src/lib/stripe.js +36 -0
  151. package/dist/src/lib/validation.d.ts +51 -0
  152. package/dist/src/lib/validation.js +64 -0
  153. package/dist/src/lib/workspace-kb.d.ts +5 -0
  154. package/dist/src/lib/workspace-kb.js +7 -0
  155. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  156. package/dist/src/repositories/artifact.repository.js +40 -0
  157. package/dist/src/repositories/base.repository.d.ts +14 -0
  158. package/dist/src/repositories/base.repository.js +14 -0
  159. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  160. package/dist/src/repositories/invitation.repository.js +44 -0
  161. package/dist/src/repositories/notification.repository.d.ts +76 -0
  162. package/dist/src/repositories/notification.repository.js +44 -0
  163. package/dist/src/repositories/user.repository.d.ts +84 -0
  164. package/dist/src/repositories/user.repository.js +37 -0
  165. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  166. package/dist/src/repositories/workspace-member.repository.js +31 -0
  167. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  168. package/dist/src/repositories/workspace.repository.js +79 -0
  169. package/dist/src/routers/_app.d.ts +3464 -0
  170. package/dist/src/routers/_app.js +36 -0
  171. package/dist/src/routers/admin.d.ts +358 -0
  172. package/dist/src/routers/admin.js +105 -0
  173. package/dist/src/routers/annotations.d.ts +219 -0
  174. package/dist/src/routers/annotations.js +29 -0
  175. package/dist/src/routers/artifactVersions.d.ts +65 -0
  176. package/dist/src/routers/artifactVersions.js +14 -0
  177. package/dist/src/routers/auth.d.ts +161 -0
  178. package/dist/src/routers/auth.js +97 -0
  179. package/dist/src/routers/chat.d.ts +170 -0
  180. package/dist/src/routers/chat.js +32 -0
  181. package/dist/src/routers/copilot.d.ts +200 -0
  182. package/dist/src/routers/copilot.js +52 -0
  183. package/dist/src/routers/flashcards.d.ts +336 -0
  184. package/dist/src/routers/flashcards.js +93 -0
  185. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  186. package/dist/src/routers/knowledgeBase.js +118 -0
  187. package/dist/src/routers/members.d.ts +169 -0
  188. package/dist/src/routers/members.js +47 -0
  189. package/dist/src/routers/notifications.d.ts +99 -0
  190. package/dist/src/routers/notifications.js +25 -0
  191. package/dist/src/routers/payment.d.ts +80 -0
  192. package/dist/src/routers/payment.js +21 -0
  193. package/dist/src/routers/podcast.d.ts +287 -0
  194. package/dist/src/routers/podcast.js +34 -0
  195. package/dist/src/routers/studyguide.d.ts +36 -0
  196. package/dist/src/routers/studyguide.js +8 -0
  197. package/dist/src/routers/worksheets.d.ts +429 -0
  198. package/dist/src/routers/worksheets.js +139 -0
  199. package/dist/src/routers/workspace.d.ts +563 -0
  200. package/dist/src/routers/workspace.js +104 -0
  201. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  202. package/dist/src/scripts/purge-deleted-users.js +148 -0
  203. package/dist/src/server.d.ts +1 -0
  204. package/dist/src/server.js +190 -0
  205. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  206. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  207. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  208. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  209. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  210. package/dist/src/services/activity/activity-log.service.js +276 -0
  211. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  212. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  213. package/dist/src/services/admin/admin.service.d.ts +270 -0
  214. package/dist/src/services/admin/admin.service.js +476 -0
  215. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  216. package/dist/src/services/ai/ai-session.service.js +4 -0
  217. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  218. package/dist/src/services/artifacts/annotation.service.js +154 -0
  219. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  220. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  221. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  222. package/dist/src/services/artifacts/chat.service.js +182 -0
  223. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  224. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  225. package/dist/src/services/auth/auth.service.d.ts +94 -0
  226. package/dist/src/services/auth/auth.service.js +368 -0
  227. package/dist/src/services/base.service.d.ts +14 -0
  228. package/dist/src/services/base.service.js +14 -0
  229. package/dist/src/services/billing/payment.service.d.ts +44 -0
  230. package/dist/src/services/billing/payment.service.js +365 -0
  231. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  232. package/dist/src/services/billing/subscription.service.js +654 -0
  233. package/dist/src/services/billing/usage.service.d.ts +47 -0
  234. package/dist/src/services/billing/usage.service.js +149 -0
  235. package/dist/src/services/content/copilot.service.d.ts +113 -0
  236. package/dist/src/services/content/copilot.service.js +439 -0
  237. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  238. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  239. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  240. package/dist/src/services/content/flashcard.service.js +339 -0
  241. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  242. package/dist/src/services/content/media-analysis.service.js +404 -0
  243. package/dist/src/services/content/podcast.service.d.ts +267 -0
  244. package/dist/src/services/content/podcast.service.js +653 -0
  245. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  246. package/dist/src/services/content/worksheet-content.service.js +84 -0
  247. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  248. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  249. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  250. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  251. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  252. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  253. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  254. package/dist/src/services/content/worksheet.service.js +599 -0
  255. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  256. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  257. package/dist/src/services/members/invitation.service.d.ts +66 -0
  258. package/dist/src/services/members/invitation.service.js +348 -0
  259. package/dist/src/services/members/member.service.d.ts +36 -0
  260. package/dist/src/services/members/member.service.js +193 -0
  261. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  262. package/dist/src/services/notifications/notification.service.js +550 -0
  263. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  264. package/dist/src/services/notifications/notification.service.test.js +87 -0
  265. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  266. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  267. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  268. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  269. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  270. package/dist/src/services/workspace/workspace.service.js +401 -0
  271. package/dist/src/trpc.d.ts +60 -0
  272. package/dist/src/trpc.js +217 -0
  273. package/dist/src/types/index.d.ts +126 -0
  274. package/dist/src/types/index.js +1 -0
  275. package/package.json +8 -9
  276. package/prisma/schema.prisma +3 -4
  277. package/prisma/seed.mjs +5 -2
  278. package/prisma.config.ts +16 -0
  279. package/src/lib/prisma.ts +18 -9
  280. package/src/scripts/purge-deleted-users.ts +1 -3
  281. package/tsconfig.json +3 -0
@@ -0,0 +1,1065 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model Role
5
+ *
6
+ */
7
+ export type RoleModel = runtime.Types.Result.DefaultSelection<Prisma.$RolePayload>;
8
+ export type AggregateRole = {
9
+ _count: RoleCountAggregateOutputType | null;
10
+ _min: RoleMinAggregateOutputType | null;
11
+ _max: RoleMaxAggregateOutputType | null;
12
+ };
13
+ export type RoleMinAggregateOutputType = {
14
+ id: string | null;
15
+ name: string | null;
16
+ };
17
+ export type RoleMaxAggregateOutputType = {
18
+ id: string | null;
19
+ name: string | null;
20
+ };
21
+ export type RoleCountAggregateOutputType = {
22
+ id: number;
23
+ name: number;
24
+ _all: number;
25
+ };
26
+ export type RoleMinAggregateInputType = {
27
+ id?: true;
28
+ name?: true;
29
+ };
30
+ export type RoleMaxAggregateInputType = {
31
+ id?: true;
32
+ name?: true;
33
+ };
34
+ export type RoleCountAggregateInputType = {
35
+ id?: true;
36
+ name?: true;
37
+ _all?: true;
38
+ };
39
+ export type RoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
40
+ /**
41
+ * Filter which Role to aggregate.
42
+ */
43
+ where?: Prisma.RoleWhereInput;
44
+ /**
45
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
46
+ *
47
+ * Determine the order of Roles to fetch.
48
+ */
49
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
52
+ *
53
+ * Sets the start position
54
+ */
55
+ cursor?: Prisma.RoleWhereUniqueInput;
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
58
+ *
59
+ * Take `±n` Roles from the position of the cursor.
60
+ */
61
+ take?: number;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Skip the first `n` Roles.
66
+ */
67
+ skip?: number;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
70
+ *
71
+ * Count returned Roles
72
+ **/
73
+ _count?: true | RoleCountAggregateInputType;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Select which fields to find the minimum value
78
+ **/
79
+ _min?: RoleMinAggregateInputType;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Select which fields to find the maximum value
84
+ **/
85
+ _max?: RoleMaxAggregateInputType;
86
+ };
87
+ export type GetRoleAggregateType<T extends RoleAggregateArgs> = {
88
+ [P in keyof T & keyof AggregateRole]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRole[P]> : Prisma.GetScalarType<T[P], AggregateRole[P]>;
89
+ };
90
+ export type RoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ where?: Prisma.RoleWhereInput;
92
+ orderBy?: Prisma.RoleOrderByWithAggregationInput | Prisma.RoleOrderByWithAggregationInput[];
93
+ by: Prisma.RoleScalarFieldEnum[] | Prisma.RoleScalarFieldEnum;
94
+ having?: Prisma.RoleScalarWhereWithAggregatesInput;
95
+ take?: number;
96
+ skip?: number;
97
+ _count?: RoleCountAggregateInputType | true;
98
+ _min?: RoleMinAggregateInputType;
99
+ _max?: RoleMaxAggregateInputType;
100
+ };
101
+ export type RoleGroupByOutputType = {
102
+ id: string;
103
+ name: string;
104
+ _count: RoleCountAggregateOutputType | null;
105
+ _min: RoleMinAggregateOutputType | null;
106
+ _max: RoleMaxAggregateOutputType | null;
107
+ };
108
+ export type GetRoleGroupByPayload<T extends RoleGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RoleGroupByOutputType, T['by']> & {
109
+ [P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]>;
110
+ }>>;
111
+ export type RoleWhereInput = {
112
+ AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
113
+ OR?: Prisma.RoleWhereInput[];
114
+ NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
115
+ id?: Prisma.StringFilter<"Role"> | string;
116
+ name?: Prisma.StringFilter<"Role"> | string;
117
+ users?: Prisma.UserListRelationFilter;
118
+ };
119
+ export type RoleOrderByWithRelationInput = {
120
+ id?: Prisma.SortOrder;
121
+ name?: Prisma.SortOrder;
122
+ users?: Prisma.UserOrderByRelationAggregateInput;
123
+ };
124
+ export type RoleWhereUniqueInput = Prisma.AtLeast<{
125
+ id?: string;
126
+ name?: string;
127
+ AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
128
+ OR?: Prisma.RoleWhereInput[];
129
+ NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
130
+ users?: Prisma.UserListRelationFilter;
131
+ }, "id" | "name">;
132
+ export type RoleOrderByWithAggregationInput = {
133
+ id?: Prisma.SortOrder;
134
+ name?: Prisma.SortOrder;
135
+ _count?: Prisma.RoleCountOrderByAggregateInput;
136
+ _max?: Prisma.RoleMaxOrderByAggregateInput;
137
+ _min?: Prisma.RoleMinOrderByAggregateInput;
138
+ };
139
+ export type RoleScalarWhereWithAggregatesInput = {
140
+ AND?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[];
141
+ OR?: Prisma.RoleScalarWhereWithAggregatesInput[];
142
+ NOT?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[];
143
+ id?: Prisma.StringWithAggregatesFilter<"Role"> | string;
144
+ name?: Prisma.StringWithAggregatesFilter<"Role"> | string;
145
+ };
146
+ export type RoleCreateInput = {
147
+ id?: string;
148
+ name: string;
149
+ users?: Prisma.UserCreateNestedManyWithoutRoleInput;
150
+ };
151
+ export type RoleUncheckedCreateInput = {
152
+ id?: string;
153
+ name: string;
154
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutRoleInput;
155
+ };
156
+ export type RoleUpdateInput = {
157
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
158
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
159
+ users?: Prisma.UserUpdateManyWithoutRoleNestedInput;
160
+ };
161
+ export type RoleUncheckedUpdateInput = {
162
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
163
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
164
+ users?: Prisma.UserUncheckedUpdateManyWithoutRoleNestedInput;
165
+ };
166
+ export type RoleCreateManyInput = {
167
+ id?: string;
168
+ name: string;
169
+ };
170
+ export type RoleUpdateManyMutationInput = {
171
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
172
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
173
+ };
174
+ export type RoleUncheckedUpdateManyInput = {
175
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
176
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
177
+ };
178
+ export type RoleNullableScalarRelationFilter = {
179
+ is?: Prisma.RoleWhereInput | null;
180
+ isNot?: Prisma.RoleWhereInput | null;
181
+ };
182
+ export type RoleCountOrderByAggregateInput = {
183
+ id?: Prisma.SortOrder;
184
+ name?: Prisma.SortOrder;
185
+ };
186
+ export type RoleMaxOrderByAggregateInput = {
187
+ id?: Prisma.SortOrder;
188
+ name?: Prisma.SortOrder;
189
+ };
190
+ export type RoleMinOrderByAggregateInput = {
191
+ id?: Prisma.SortOrder;
192
+ name?: Prisma.SortOrder;
193
+ };
194
+ export type RoleCreateNestedOneWithoutUsersInput = {
195
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutUsersInput, Prisma.RoleUncheckedCreateWithoutUsersInput>;
196
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUsersInput;
197
+ connect?: Prisma.RoleWhereUniqueInput;
198
+ };
199
+ export type RoleUpdateOneWithoutUsersNestedInput = {
200
+ create?: Prisma.XOR<Prisma.RoleCreateWithoutUsersInput, Prisma.RoleUncheckedCreateWithoutUsersInput>;
201
+ connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUsersInput;
202
+ upsert?: Prisma.RoleUpsertWithoutUsersInput;
203
+ disconnect?: Prisma.RoleWhereInput | boolean;
204
+ delete?: Prisma.RoleWhereInput | boolean;
205
+ connect?: Prisma.RoleWhereUniqueInput;
206
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUsersInput, Prisma.RoleUpdateWithoutUsersInput>, Prisma.RoleUncheckedUpdateWithoutUsersInput>;
207
+ };
208
+ export type RoleCreateWithoutUsersInput = {
209
+ id?: string;
210
+ name: string;
211
+ };
212
+ export type RoleUncheckedCreateWithoutUsersInput = {
213
+ id?: string;
214
+ name: string;
215
+ };
216
+ export type RoleCreateOrConnectWithoutUsersInput = {
217
+ where: Prisma.RoleWhereUniqueInput;
218
+ create: Prisma.XOR<Prisma.RoleCreateWithoutUsersInput, Prisma.RoleUncheckedCreateWithoutUsersInput>;
219
+ };
220
+ export type RoleUpsertWithoutUsersInput = {
221
+ update: Prisma.XOR<Prisma.RoleUpdateWithoutUsersInput, Prisma.RoleUncheckedUpdateWithoutUsersInput>;
222
+ create: Prisma.XOR<Prisma.RoleCreateWithoutUsersInput, Prisma.RoleUncheckedCreateWithoutUsersInput>;
223
+ where?: Prisma.RoleWhereInput;
224
+ };
225
+ export type RoleUpdateToOneWithWhereWithoutUsersInput = {
226
+ where?: Prisma.RoleWhereInput;
227
+ data: Prisma.XOR<Prisma.RoleUpdateWithoutUsersInput, Prisma.RoleUncheckedUpdateWithoutUsersInput>;
228
+ };
229
+ export type RoleUpdateWithoutUsersInput = {
230
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
231
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
232
+ };
233
+ export type RoleUncheckedUpdateWithoutUsersInput = {
234
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
235
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
236
+ };
237
+ /**
238
+ * Count Type RoleCountOutputType
239
+ */
240
+ export type RoleCountOutputType = {
241
+ users: number;
242
+ };
243
+ export type RoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
244
+ users?: boolean | RoleCountOutputTypeCountUsersArgs;
245
+ };
246
+ /**
247
+ * RoleCountOutputType without action
248
+ */
249
+ export type RoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
250
+ /**
251
+ * Select specific fields to fetch from the RoleCountOutputType
252
+ */
253
+ select?: Prisma.RoleCountOutputTypeSelect<ExtArgs> | null;
254
+ };
255
+ /**
256
+ * RoleCountOutputType without action
257
+ */
258
+ export type RoleCountOutputTypeCountUsersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
259
+ where?: Prisma.UserWhereInput;
260
+ };
261
+ export type RoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
262
+ id?: boolean;
263
+ name?: boolean;
264
+ users?: boolean | Prisma.Role$usersArgs<ExtArgs>;
265
+ _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
266
+ }, ExtArgs["result"]["role"]>;
267
+ export type RoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
268
+ id?: boolean;
269
+ name?: boolean;
270
+ }, ExtArgs["result"]["role"]>;
271
+ export type RoleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
272
+ id?: boolean;
273
+ name?: boolean;
274
+ }, ExtArgs["result"]["role"]>;
275
+ export type RoleSelectScalar = {
276
+ id?: boolean;
277
+ name?: boolean;
278
+ };
279
+ export type RoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["role"]>;
280
+ export type RoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
281
+ users?: boolean | Prisma.Role$usersArgs<ExtArgs>;
282
+ _count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
283
+ };
284
+ export type RoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
285
+ export type RoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
286
+ export type $RolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
287
+ name: "Role";
288
+ objects: {
289
+ users: Prisma.$UserPayload<ExtArgs>[];
290
+ };
291
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
292
+ id: string;
293
+ name: string;
294
+ }, ExtArgs["result"]["role"]>;
295
+ composites: {};
296
+ };
297
+ export type RoleGetPayload<S extends boolean | null | undefined | RoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RolePayload, S>;
298
+ export type RoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
299
+ select?: RoleCountAggregateInputType | true;
300
+ };
301
+ export interface RoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
302
+ [K: symbol]: {
303
+ types: Prisma.TypeMap<ExtArgs>['model']['Role'];
304
+ meta: {
305
+ name: 'Role';
306
+ };
307
+ };
308
+ /**
309
+ * Find zero or one Role that matches the filter.
310
+ * @param {RoleFindUniqueArgs} args - Arguments to find a Role
311
+ * @example
312
+ * // Get one Role
313
+ * const role = await prisma.role.findUnique({
314
+ * where: {
315
+ * // ... provide filter here
316
+ * }
317
+ * })
318
+ */
319
+ findUnique<T extends RoleFindUniqueArgs>(args: Prisma.SelectSubset<T, RoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
320
+ /**
321
+ * Find one Role that matches the filter or throw an error with `error.code='P2025'`
322
+ * if no matches were found.
323
+ * @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role
324
+ * @example
325
+ * // Get one Role
326
+ * const role = await prisma.role.findUniqueOrThrow({
327
+ * where: {
328
+ * // ... provide filter here
329
+ * }
330
+ * })
331
+ */
332
+ findUniqueOrThrow<T extends RoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
333
+ /**
334
+ * Find the first Role that matches the filter.
335
+ * Note, that providing `undefined` is treated as the value not being there.
336
+ * Read more here: https://pris.ly/d/null-undefined
337
+ * @param {RoleFindFirstArgs} args - Arguments to find a Role
338
+ * @example
339
+ * // Get one Role
340
+ * const role = await prisma.role.findFirst({
341
+ * where: {
342
+ * // ... provide filter here
343
+ * }
344
+ * })
345
+ */
346
+ findFirst<T extends RoleFindFirstArgs>(args?: Prisma.SelectSubset<T, RoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
347
+ /**
348
+ * Find the first Role that matches the filter or
349
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
350
+ * Note, that providing `undefined` is treated as the value not being there.
351
+ * Read more here: https://pris.ly/d/null-undefined
352
+ * @param {RoleFindFirstOrThrowArgs} args - Arguments to find a Role
353
+ * @example
354
+ * // Get one Role
355
+ * const role = await prisma.role.findFirstOrThrow({
356
+ * where: {
357
+ * // ... provide filter here
358
+ * }
359
+ * })
360
+ */
361
+ findFirstOrThrow<T extends RoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
362
+ /**
363
+ * Find zero or more Roles that matches the filter.
364
+ * Note, that providing `undefined` is treated as the value not being there.
365
+ * Read more here: https://pris.ly/d/null-undefined
366
+ * @param {RoleFindManyArgs} args - Arguments to filter and select certain fields only.
367
+ * @example
368
+ * // Get all Roles
369
+ * const roles = await prisma.role.findMany()
370
+ *
371
+ * // Get first 10 Roles
372
+ * const roles = await prisma.role.findMany({ take: 10 })
373
+ *
374
+ * // Only select the `id`
375
+ * const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } })
376
+ *
377
+ */
378
+ findMany<T extends RoleFindManyArgs>(args?: Prisma.SelectSubset<T, RoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
379
+ /**
380
+ * Create a Role.
381
+ * @param {RoleCreateArgs} args - Arguments to create a Role.
382
+ * @example
383
+ * // Create one Role
384
+ * const Role = await prisma.role.create({
385
+ * data: {
386
+ * // ... data to create a Role
387
+ * }
388
+ * })
389
+ *
390
+ */
391
+ create<T extends RoleCreateArgs>(args: Prisma.SelectSubset<T, RoleCreateArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
392
+ /**
393
+ * Create many Roles.
394
+ * @param {RoleCreateManyArgs} args - Arguments to create many Roles.
395
+ * @example
396
+ * // Create many Roles
397
+ * const role = await prisma.role.createMany({
398
+ * data: [
399
+ * // ... provide data here
400
+ * ]
401
+ * })
402
+ *
403
+ */
404
+ createMany<T extends RoleCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
405
+ /**
406
+ * Create many Roles and returns the data saved in the database.
407
+ * @param {RoleCreateManyAndReturnArgs} args - Arguments to create many Roles.
408
+ * @example
409
+ * // Create many Roles
410
+ * const role = await prisma.role.createManyAndReturn({
411
+ * data: [
412
+ * // ... provide data here
413
+ * ]
414
+ * })
415
+ *
416
+ * // Create many Roles and only return the `id`
417
+ * const roleWithIdOnly = await prisma.role.createManyAndReturn({
418
+ * select: { id: true },
419
+ * data: [
420
+ * // ... provide data here
421
+ * ]
422
+ * })
423
+ * Note, that providing `undefined` is treated as the value not being there.
424
+ * Read more here: https://pris.ly/d/null-undefined
425
+ *
426
+ */
427
+ createManyAndReturn<T extends RoleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
428
+ /**
429
+ * Delete a Role.
430
+ * @param {RoleDeleteArgs} args - Arguments to delete one Role.
431
+ * @example
432
+ * // Delete one Role
433
+ * const Role = await prisma.role.delete({
434
+ * where: {
435
+ * // ... filter to delete one Role
436
+ * }
437
+ * })
438
+ *
439
+ */
440
+ delete<T extends RoleDeleteArgs>(args: Prisma.SelectSubset<T, RoleDeleteArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
441
+ /**
442
+ * Update one Role.
443
+ * @param {RoleUpdateArgs} args - Arguments to update one Role.
444
+ * @example
445
+ * // Update one Role
446
+ * const role = await prisma.role.update({
447
+ * where: {
448
+ * // ... provide filter here
449
+ * },
450
+ * data: {
451
+ * // ... provide data here
452
+ * }
453
+ * })
454
+ *
455
+ */
456
+ update<T extends RoleUpdateArgs>(args: Prisma.SelectSubset<T, RoleUpdateArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
457
+ /**
458
+ * Delete zero or more Roles.
459
+ * @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete.
460
+ * @example
461
+ * // Delete a few Roles
462
+ * const { count } = await prisma.role.deleteMany({
463
+ * where: {
464
+ * // ... provide filter here
465
+ * }
466
+ * })
467
+ *
468
+ */
469
+ deleteMany<T extends RoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
470
+ /**
471
+ * Update zero or more Roles.
472
+ * Note, that providing `undefined` is treated as the value not being there.
473
+ * Read more here: https://pris.ly/d/null-undefined
474
+ * @param {RoleUpdateManyArgs} args - Arguments to update one or more rows.
475
+ * @example
476
+ * // Update many Roles
477
+ * const role = await prisma.role.updateMany({
478
+ * where: {
479
+ * // ... provide filter here
480
+ * },
481
+ * data: {
482
+ * // ... provide data here
483
+ * }
484
+ * })
485
+ *
486
+ */
487
+ updateMany<T extends RoleUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
488
+ /**
489
+ * Update zero or more Roles and returns the data updated in the database.
490
+ * @param {RoleUpdateManyAndReturnArgs} args - Arguments to update many Roles.
491
+ * @example
492
+ * // Update many Roles
493
+ * const role = await prisma.role.updateManyAndReturn({
494
+ * where: {
495
+ * // ... provide filter here
496
+ * },
497
+ * data: [
498
+ * // ... provide data here
499
+ * ]
500
+ * })
501
+ *
502
+ * // Update zero or more Roles and only return the `id`
503
+ * const roleWithIdOnly = await prisma.role.updateManyAndReturn({
504
+ * select: { id: true },
505
+ * where: {
506
+ * // ... provide filter here
507
+ * },
508
+ * data: [
509
+ * // ... provide data here
510
+ * ]
511
+ * })
512
+ * Note, that providing `undefined` is treated as the value not being there.
513
+ * Read more here: https://pris.ly/d/null-undefined
514
+ *
515
+ */
516
+ updateManyAndReturn<T extends RoleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
517
+ /**
518
+ * Create or update one Role.
519
+ * @param {RoleUpsertArgs} args - Arguments to update or create a Role.
520
+ * @example
521
+ * // Update or create a Role
522
+ * const role = await prisma.role.upsert({
523
+ * create: {
524
+ * // ... data to create a Role
525
+ * },
526
+ * update: {
527
+ * // ... in case it already exists, update
528
+ * },
529
+ * where: {
530
+ * // ... the filter for the Role we want to update
531
+ * }
532
+ * })
533
+ */
534
+ upsert<T extends RoleUpsertArgs>(args: Prisma.SelectSubset<T, RoleUpsertArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
535
+ /**
536
+ * Count the number of Roles.
537
+ * Note, that providing `undefined` is treated as the value not being there.
538
+ * Read more here: https://pris.ly/d/null-undefined
539
+ * @param {RoleCountArgs} args - Arguments to filter Roles to count.
540
+ * @example
541
+ * // Count the number of Roles
542
+ * const count = await prisma.role.count({
543
+ * where: {
544
+ * // ... the filter for the Roles we want to count
545
+ * }
546
+ * })
547
+ **/
548
+ count<T extends RoleCountArgs>(args?: Prisma.Subset<T, RoleCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RoleCountAggregateOutputType> : number>;
549
+ /**
550
+ * Allows you to perform aggregations operations on a Role.
551
+ * Note, that providing `undefined` is treated as the value not being there.
552
+ * Read more here: https://pris.ly/d/null-undefined
553
+ * @param {RoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
554
+ * @example
555
+ * // Ordered by age ascending
556
+ * // Where email contains prisma.io
557
+ * // Limited to the 10 users
558
+ * const aggregations = await prisma.user.aggregate({
559
+ * _avg: {
560
+ * age: true,
561
+ * },
562
+ * where: {
563
+ * email: {
564
+ * contains: "prisma.io",
565
+ * },
566
+ * },
567
+ * orderBy: {
568
+ * age: "asc",
569
+ * },
570
+ * take: 10,
571
+ * })
572
+ **/
573
+ aggregate<T extends RoleAggregateArgs>(args: Prisma.Subset<T, RoleAggregateArgs>): Prisma.PrismaPromise<GetRoleAggregateType<T>>;
574
+ /**
575
+ * Group by Role.
576
+ * Note, that providing `undefined` is treated as the value not being there.
577
+ * Read more here: https://pris.ly/d/null-undefined
578
+ * @param {RoleGroupByArgs} args - Group by arguments.
579
+ * @example
580
+ * // Group by city, order by createdAt, get count
581
+ * const result = await prisma.user.groupBy({
582
+ * by: ['city', 'createdAt'],
583
+ * orderBy: {
584
+ * createdAt: true
585
+ * },
586
+ * _count: {
587
+ * _all: true
588
+ * },
589
+ * })
590
+ *
591
+ **/
592
+ groupBy<T extends RoleGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
593
+ orderBy: RoleGroupByArgs['orderBy'];
594
+ } : {
595
+ orderBy?: RoleGroupByArgs['orderBy'];
596
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
597
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
598
+ Error,
599
+ 'Field ',
600
+ P,
601
+ ` in "having" needs to be provided in "by"`
602
+ ];
603
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
604
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
605
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
606
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
607
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
608
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
609
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
610
+ /**
611
+ * Fields of the Role model
612
+ */
613
+ readonly fields: RoleFieldRefs;
614
+ }
615
+ /**
616
+ * The delegate class that acts as a "Promise-like" for Role.
617
+ * Why is this prefixed with `Prisma__`?
618
+ * Because we want to prevent naming conflicts as mentioned in
619
+ * https://github.com/prisma/prisma-client-js/issues/707
620
+ */
621
+ export interface Prisma__RoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
622
+ readonly [Symbol.toStringTag]: "PrismaPromise";
623
+ users<T extends Prisma.Role$usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$usersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
624
+ /**
625
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
626
+ * @param onfulfilled The callback to execute when the Promise is resolved.
627
+ * @param onrejected The callback to execute when the Promise is rejected.
628
+ * @returns A Promise for the completion of which ever callback is executed.
629
+ */
630
+ 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>;
631
+ /**
632
+ * Attaches a callback for only the rejection of the Promise.
633
+ * @param onrejected The callback to execute when the Promise is rejected.
634
+ * @returns A Promise for the completion of the callback.
635
+ */
636
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
637
+ /**
638
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
639
+ * resolved value cannot be modified from the callback.
640
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
641
+ * @returns A Promise for the completion of the callback.
642
+ */
643
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
644
+ }
645
+ /**
646
+ * Fields of the Role model
647
+ */
648
+ export interface RoleFieldRefs {
649
+ readonly id: Prisma.FieldRef<"Role", 'String'>;
650
+ readonly name: Prisma.FieldRef<"Role", 'String'>;
651
+ }
652
+ /**
653
+ * Role findUnique
654
+ */
655
+ export type RoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
656
+ /**
657
+ * Select specific fields to fetch from the Role
658
+ */
659
+ select?: Prisma.RoleSelect<ExtArgs> | null;
660
+ /**
661
+ * Omit specific fields from the Role
662
+ */
663
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
664
+ /**
665
+ * Choose, which related nodes to fetch as well
666
+ */
667
+ include?: Prisma.RoleInclude<ExtArgs> | null;
668
+ /**
669
+ * Filter, which Role to fetch.
670
+ */
671
+ where: Prisma.RoleWhereUniqueInput;
672
+ };
673
+ /**
674
+ * Role findUniqueOrThrow
675
+ */
676
+ export type RoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
677
+ /**
678
+ * Select specific fields to fetch from the Role
679
+ */
680
+ select?: Prisma.RoleSelect<ExtArgs> | null;
681
+ /**
682
+ * Omit specific fields from the Role
683
+ */
684
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
685
+ /**
686
+ * Choose, which related nodes to fetch as well
687
+ */
688
+ include?: Prisma.RoleInclude<ExtArgs> | null;
689
+ /**
690
+ * Filter, which Role to fetch.
691
+ */
692
+ where: Prisma.RoleWhereUniqueInput;
693
+ };
694
+ /**
695
+ * Role findFirst
696
+ */
697
+ export type RoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
698
+ /**
699
+ * Select specific fields to fetch from the Role
700
+ */
701
+ select?: Prisma.RoleSelect<ExtArgs> | null;
702
+ /**
703
+ * Omit specific fields from the Role
704
+ */
705
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
706
+ /**
707
+ * Choose, which related nodes to fetch as well
708
+ */
709
+ include?: Prisma.RoleInclude<ExtArgs> | null;
710
+ /**
711
+ * Filter, which Role to fetch.
712
+ */
713
+ where?: Prisma.RoleWhereInput;
714
+ /**
715
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
716
+ *
717
+ * Determine the order of Roles to fetch.
718
+ */
719
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
720
+ /**
721
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
722
+ *
723
+ * Sets the position for searching for Roles.
724
+ */
725
+ cursor?: Prisma.RoleWhereUniqueInput;
726
+ /**
727
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
728
+ *
729
+ * Take `±n` Roles from the position of the cursor.
730
+ */
731
+ take?: number;
732
+ /**
733
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
734
+ *
735
+ * Skip the first `n` Roles.
736
+ */
737
+ skip?: number;
738
+ /**
739
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
740
+ *
741
+ * Filter by unique combinations of Roles.
742
+ */
743
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
744
+ };
745
+ /**
746
+ * Role findFirstOrThrow
747
+ */
748
+ export type RoleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
749
+ /**
750
+ * Select specific fields to fetch from the Role
751
+ */
752
+ select?: Prisma.RoleSelect<ExtArgs> | null;
753
+ /**
754
+ * Omit specific fields from the Role
755
+ */
756
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
757
+ /**
758
+ * Choose, which related nodes to fetch as well
759
+ */
760
+ include?: Prisma.RoleInclude<ExtArgs> | null;
761
+ /**
762
+ * Filter, which Role to fetch.
763
+ */
764
+ where?: Prisma.RoleWhereInput;
765
+ /**
766
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
767
+ *
768
+ * Determine the order of Roles to fetch.
769
+ */
770
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
771
+ /**
772
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
773
+ *
774
+ * Sets the position for searching for Roles.
775
+ */
776
+ cursor?: Prisma.RoleWhereUniqueInput;
777
+ /**
778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
779
+ *
780
+ * Take `±n` Roles from the position of the cursor.
781
+ */
782
+ take?: number;
783
+ /**
784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
785
+ *
786
+ * Skip the first `n` Roles.
787
+ */
788
+ skip?: number;
789
+ /**
790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
791
+ *
792
+ * Filter by unique combinations of Roles.
793
+ */
794
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
795
+ };
796
+ /**
797
+ * Role findMany
798
+ */
799
+ export type RoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
800
+ /**
801
+ * Select specific fields to fetch from the Role
802
+ */
803
+ select?: Prisma.RoleSelect<ExtArgs> | null;
804
+ /**
805
+ * Omit specific fields from the Role
806
+ */
807
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
808
+ /**
809
+ * Choose, which related nodes to fetch as well
810
+ */
811
+ include?: Prisma.RoleInclude<ExtArgs> | null;
812
+ /**
813
+ * Filter, which Roles to fetch.
814
+ */
815
+ where?: Prisma.RoleWhereInput;
816
+ /**
817
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
818
+ *
819
+ * Determine the order of Roles to fetch.
820
+ */
821
+ orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
822
+ /**
823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
824
+ *
825
+ * Sets the position for listing Roles.
826
+ */
827
+ cursor?: Prisma.RoleWhereUniqueInput;
828
+ /**
829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
830
+ *
831
+ * Take `±n` Roles from the position of the cursor.
832
+ */
833
+ take?: number;
834
+ /**
835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
836
+ *
837
+ * Skip the first `n` Roles.
838
+ */
839
+ skip?: number;
840
+ /**
841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
842
+ *
843
+ * Filter by unique combinations of Roles.
844
+ */
845
+ distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
846
+ };
847
+ /**
848
+ * Role create
849
+ */
850
+ export type RoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
851
+ /**
852
+ * Select specific fields to fetch from the Role
853
+ */
854
+ select?: Prisma.RoleSelect<ExtArgs> | null;
855
+ /**
856
+ * Omit specific fields from the Role
857
+ */
858
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
859
+ /**
860
+ * Choose, which related nodes to fetch as well
861
+ */
862
+ include?: Prisma.RoleInclude<ExtArgs> | null;
863
+ /**
864
+ * The data needed to create a Role.
865
+ */
866
+ data: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>;
867
+ };
868
+ /**
869
+ * Role createMany
870
+ */
871
+ export type RoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
872
+ /**
873
+ * The data used to create many Roles.
874
+ */
875
+ data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[];
876
+ skipDuplicates?: boolean;
877
+ };
878
+ /**
879
+ * Role createManyAndReturn
880
+ */
881
+ export type RoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
882
+ /**
883
+ * Select specific fields to fetch from the Role
884
+ */
885
+ select?: Prisma.RoleSelectCreateManyAndReturn<ExtArgs> | null;
886
+ /**
887
+ * Omit specific fields from the Role
888
+ */
889
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
890
+ /**
891
+ * The data used to create many Roles.
892
+ */
893
+ data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[];
894
+ skipDuplicates?: boolean;
895
+ };
896
+ /**
897
+ * Role update
898
+ */
899
+ export type RoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
900
+ /**
901
+ * Select specific fields to fetch from the Role
902
+ */
903
+ select?: Prisma.RoleSelect<ExtArgs> | null;
904
+ /**
905
+ * Omit specific fields from the Role
906
+ */
907
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
908
+ /**
909
+ * Choose, which related nodes to fetch as well
910
+ */
911
+ include?: Prisma.RoleInclude<ExtArgs> | null;
912
+ /**
913
+ * The data needed to update a Role.
914
+ */
915
+ data: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>;
916
+ /**
917
+ * Choose, which Role to update.
918
+ */
919
+ where: Prisma.RoleWhereUniqueInput;
920
+ };
921
+ /**
922
+ * Role updateMany
923
+ */
924
+ export type RoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
925
+ /**
926
+ * The data used to update Roles.
927
+ */
928
+ data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>;
929
+ /**
930
+ * Filter which Roles to update
931
+ */
932
+ where?: Prisma.RoleWhereInput;
933
+ /**
934
+ * Limit how many Roles to update.
935
+ */
936
+ limit?: number;
937
+ };
938
+ /**
939
+ * Role updateManyAndReturn
940
+ */
941
+ export type RoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
942
+ /**
943
+ * Select specific fields to fetch from the Role
944
+ */
945
+ select?: Prisma.RoleSelectUpdateManyAndReturn<ExtArgs> | null;
946
+ /**
947
+ * Omit specific fields from the Role
948
+ */
949
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
950
+ /**
951
+ * The data used to update Roles.
952
+ */
953
+ data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>;
954
+ /**
955
+ * Filter which Roles to update
956
+ */
957
+ where?: Prisma.RoleWhereInput;
958
+ /**
959
+ * Limit how many Roles to update.
960
+ */
961
+ limit?: number;
962
+ };
963
+ /**
964
+ * Role upsert
965
+ */
966
+ export type RoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ /**
968
+ * Select specific fields to fetch from the Role
969
+ */
970
+ select?: Prisma.RoleSelect<ExtArgs> | null;
971
+ /**
972
+ * Omit specific fields from the Role
973
+ */
974
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
975
+ /**
976
+ * Choose, which related nodes to fetch as well
977
+ */
978
+ include?: Prisma.RoleInclude<ExtArgs> | null;
979
+ /**
980
+ * The filter to search for the Role to update in case it exists.
981
+ */
982
+ where: Prisma.RoleWhereUniqueInput;
983
+ /**
984
+ * In case the Role found by the `where` argument doesn't exist, create a new Role with this data.
985
+ */
986
+ create: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>;
987
+ /**
988
+ * In case the Role was found with the provided `where` argument, update it with this data.
989
+ */
990
+ update: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>;
991
+ };
992
+ /**
993
+ * Role delete
994
+ */
995
+ export type RoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
996
+ /**
997
+ * Select specific fields to fetch from the Role
998
+ */
999
+ select?: Prisma.RoleSelect<ExtArgs> | null;
1000
+ /**
1001
+ * Omit specific fields from the Role
1002
+ */
1003
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
1004
+ /**
1005
+ * Choose, which related nodes to fetch as well
1006
+ */
1007
+ include?: Prisma.RoleInclude<ExtArgs> | null;
1008
+ /**
1009
+ * Filter which Role to delete.
1010
+ */
1011
+ where: Prisma.RoleWhereUniqueInput;
1012
+ };
1013
+ /**
1014
+ * Role deleteMany
1015
+ */
1016
+ export type RoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1017
+ /**
1018
+ * Filter which Roles to delete
1019
+ */
1020
+ where?: Prisma.RoleWhereInput;
1021
+ /**
1022
+ * Limit how many Roles to delete.
1023
+ */
1024
+ limit?: number;
1025
+ };
1026
+ /**
1027
+ * Role.users
1028
+ */
1029
+ export type Role$usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1030
+ /**
1031
+ * Select specific fields to fetch from the User
1032
+ */
1033
+ select?: Prisma.UserSelect<ExtArgs> | null;
1034
+ /**
1035
+ * Omit specific fields from the User
1036
+ */
1037
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1038
+ /**
1039
+ * Choose, which related nodes to fetch as well
1040
+ */
1041
+ include?: Prisma.UserInclude<ExtArgs> | null;
1042
+ where?: Prisma.UserWhereInput;
1043
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
1044
+ cursor?: Prisma.UserWhereUniqueInput;
1045
+ take?: number;
1046
+ skip?: number;
1047
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
1048
+ };
1049
+ /**
1050
+ * Role without action
1051
+ */
1052
+ export type RoleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1053
+ /**
1054
+ * Select specific fields to fetch from the Role
1055
+ */
1056
+ select?: Prisma.RoleSelect<ExtArgs> | null;
1057
+ /**
1058
+ * Omit specific fields from the Role
1059
+ */
1060
+ omit?: Prisma.RoleOmit<ExtArgs> | null;
1061
+ /**
1062
+ * Choose, which related nodes to fetch as well
1063
+ */
1064
+ include?: Prisma.RoleInclude<ExtArgs> | null;
1065
+ };