@trycompai/db 1.3.22-canary.0 → 2.0.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 (269) hide show
  1. package/dist/client.d.ts +2 -2
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +4 -5
  4. package/dist/client.ts +5 -2
  5. package/dist/generated/prisma/client.d.ts +427 -0
  6. package/dist/generated/prisma/client.d.ts.map +1 -0
  7. package/dist/generated/prisma/client.js +73 -0
  8. package/dist/generated/prisma/commonInputTypes.d.ts +2082 -0
  9. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  10. package/dist/generated/prisma/commonInputTypes.js +11 -0
  11. package/dist/generated/prisma/enums.d.ts +367 -0
  12. package/dist/generated/prisma/enums.d.ts.map +1 -0
  13. package/dist/generated/prisma/enums.js +329 -0
  14. package/dist/generated/prisma/internal/class.d.ts +1000 -0
  15. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  16. package/dist/generated/prisma/internal/class.js +87 -0
  17. package/dist/generated/prisma/internal/prismaNamespace.d.ts +8063 -0
  18. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  19. package/dist/generated/prisma/internal/prismaNamespace.js +1256 -0
  20. package/dist/generated/prisma/models/Account.d.ts +1456 -0
  21. package/dist/generated/prisma/models/Account.d.ts.map +1 -0
  22. package/dist/generated/prisma/models/Account.js +2 -0
  23. package/dist/generated/prisma/models/ApiKey.d.ts +1387 -0
  24. package/dist/generated/prisma/models/ApiKey.d.ts.map +1 -0
  25. package/dist/generated/prisma/models/ApiKey.js +2 -0
  26. package/dist/generated/prisma/models/Attachment.d.ts +1520 -0
  27. package/dist/generated/prisma/models/Attachment.d.ts.map +1 -0
  28. package/dist/generated/prisma/models/Attachment.js +2 -0
  29. package/dist/generated/prisma/models/AuditLog.d.ts +1590 -0
  30. package/dist/generated/prisma/models/AuditLog.d.ts.map +1 -0
  31. package/dist/generated/prisma/models/AuditLog.js +2 -0
  32. package/dist/generated/prisma/models/BrowserAutomation.d.ts +1507 -0
  33. package/dist/generated/prisma/models/BrowserAutomation.d.ts.map +1 -0
  34. package/dist/generated/prisma/models/BrowserAutomation.js +2 -0
  35. package/dist/generated/prisma/models/BrowserAutomationRun.d.ts +1455 -0
  36. package/dist/generated/prisma/models/BrowserAutomationRun.d.ts.map +1 -0
  37. package/dist/generated/prisma/models/BrowserAutomationRun.js +2 -0
  38. package/dist/generated/prisma/models/BrowserbaseContext.d.ts +1139 -0
  39. package/dist/generated/prisma/models/BrowserbaseContext.d.ts.map +1 -0
  40. package/dist/generated/prisma/models/BrowserbaseContext.js +2 -0
  41. package/dist/generated/prisma/models/Comment.d.ts +1502 -0
  42. package/dist/generated/prisma/models/Comment.d.ts.map +1 -0
  43. package/dist/generated/prisma/models/Comment.js +2 -0
  44. package/dist/generated/prisma/models/Context.d.ts +1254 -0
  45. package/dist/generated/prisma/models/Context.d.ts.map +1 -0
  46. package/dist/generated/prisma/models/Context.js +2 -0
  47. package/dist/generated/prisma/models/Control.d.ts +1965 -0
  48. package/dist/generated/prisma/models/Control.d.ts.map +1 -0
  49. package/dist/generated/prisma/models/Control.js +2 -0
  50. package/dist/generated/prisma/models/ControlDocumentType.d.ts +1115 -0
  51. package/dist/generated/prisma/models/ControlDocumentType.d.ts.map +1 -0
  52. package/dist/generated/prisma/models/ControlDocumentType.js +2 -0
  53. package/dist/generated/prisma/models/Device.d.ts +1858 -0
  54. package/dist/generated/prisma/models/Device.d.ts.map +1 -0
  55. package/dist/generated/prisma/models/Device.js +2 -0
  56. package/dist/generated/prisma/models/DynamicCheck.d.ts +1517 -0
  57. package/dist/generated/prisma/models/DynamicCheck.d.ts.map +1 -0
  58. package/dist/generated/prisma/models/DynamicCheck.js +2 -0
  59. package/dist/generated/prisma/models/DynamicIntegration.d.ts +1528 -0
  60. package/dist/generated/prisma/models/DynamicIntegration.d.ts.map +1 -0
  61. package/dist/generated/prisma/models/DynamicIntegration.js +2 -0
  62. package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts +1146 -0
  63. package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.d.ts.map +1 -0
  64. package/dist/generated/prisma/models/EmployeeTrainingVideoCompletion.js +2 -0
  65. package/dist/generated/prisma/models/EvidenceAutomation.d.ts +1533 -0
  66. package/dist/generated/prisma/models/EvidenceAutomation.d.ts.map +1 -0
  67. package/dist/generated/prisma/models/EvidenceAutomation.js +2 -0
  68. package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts +1833 -0
  69. package/dist/generated/prisma/models/EvidenceAutomationRun.d.ts.map +1 -0
  70. package/dist/generated/prisma/models/EvidenceAutomationRun.js +2 -0
  71. package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts +1331 -0
  72. package/dist/generated/prisma/models/EvidenceAutomationVersion.d.ts.map +1 -0
  73. package/dist/generated/prisma/models/EvidenceAutomationVersion.js +2 -0
  74. package/dist/generated/prisma/models/EvidenceSubmission.d.ts +1905 -0
  75. package/dist/generated/prisma/models/EvidenceSubmission.d.ts.map +1 -0
  76. package/dist/generated/prisma/models/EvidenceSubmission.js +2 -0
  77. package/dist/generated/prisma/models/Finding.d.ts +2386 -0
  78. package/dist/generated/prisma/models/Finding.d.ts.map +1 -0
  79. package/dist/generated/prisma/models/Finding.js +2 -0
  80. package/dist/generated/prisma/models/FindingTemplate.d.ts +1264 -0
  81. package/dist/generated/prisma/models/FindingTemplate.d.ts.map +1 -0
  82. package/dist/generated/prisma/models/FindingTemplate.js +2 -0
  83. package/dist/generated/prisma/models/FleetPolicyResult.d.ts +1484 -0
  84. package/dist/generated/prisma/models/FleetPolicyResult.d.ts.map +1 -0
  85. package/dist/generated/prisma/models/FleetPolicyResult.js +2 -0
  86. package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts +1669 -0
  87. package/dist/generated/prisma/models/FrameworkEditorControlTemplate.d.ts.map +1 -0
  88. package/dist/generated/prisma/models/FrameworkEditorControlTemplate.js +2 -0
  89. package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts +1581 -0
  90. package/dist/generated/prisma/models/FrameworkEditorFramework.d.ts.map +1 -0
  91. package/dist/generated/prisma/models/FrameworkEditorFramework.js +2 -0
  92. package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts +1428 -0
  93. package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.d.ts.map +1 -0
  94. package/dist/generated/prisma/models/FrameworkEditorPolicyTemplate.js +2 -0
  95. package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts +1525 -0
  96. package/dist/generated/prisma/models/FrameworkEditorRequirement.d.ts.map +1 -0
  97. package/dist/generated/prisma/models/FrameworkEditorRequirement.js +2 -0
  98. package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts +1434 -0
  99. package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.d.ts.map +1 -0
  100. package/dist/generated/prisma/models/FrameworkEditorTaskTemplate.js +2 -0
  101. package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts +1054 -0
  102. package/dist/generated/prisma/models/FrameworkEditorVideo.d.ts.map +1 -0
  103. package/dist/generated/prisma/models/FrameworkEditorVideo.js +2 -0
  104. package/dist/generated/prisma/models/FrameworkInstance.d.ts +1321 -0
  105. package/dist/generated/prisma/models/FrameworkInstance.d.ts.map +1 -0
  106. package/dist/generated/prisma/models/FrameworkInstance.js +2 -0
  107. package/dist/generated/prisma/models/GlobalVendors.d.ts +1358 -0
  108. package/dist/generated/prisma/models/GlobalVendors.d.ts.map +1 -0
  109. package/dist/generated/prisma/models/GlobalVendors.js +2 -0
  110. package/dist/generated/prisma/models/Integration.d.ts +1363 -0
  111. package/dist/generated/prisma/models/Integration.d.ts.map +1 -0
  112. package/dist/generated/prisma/models/Integration.js +2 -0
  113. package/dist/generated/prisma/models/IntegrationCheckResult.d.ts +1408 -0
  114. package/dist/generated/prisma/models/IntegrationCheckResult.d.ts.map +1 -0
  115. package/dist/generated/prisma/models/IntegrationCheckResult.js +2 -0
  116. package/dist/generated/prisma/models/IntegrationCheckRun.d.ts +1958 -0
  117. package/dist/generated/prisma/models/IntegrationCheckRun.d.ts.map +1 -0
  118. package/dist/generated/prisma/models/IntegrationCheckRun.js +2 -0
  119. package/dist/generated/prisma/models/IntegrationConnection.d.ts +2472 -0
  120. package/dist/generated/prisma/models/IntegrationConnection.d.ts.map +1 -0
  121. package/dist/generated/prisma/models/IntegrationConnection.js +2 -0
  122. package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts +1298 -0
  123. package/dist/generated/prisma/models/IntegrationCredentialVersion.d.ts.map +1 -0
  124. package/dist/generated/prisma/models/IntegrationCredentialVersion.js +2 -0
  125. package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts +1362 -0
  126. package/dist/generated/prisma/models/IntegrationOAuthApp.d.ts.map +1 -0
  127. package/dist/generated/prisma/models/IntegrationOAuthApp.js +2 -0
  128. package/dist/generated/prisma/models/IntegrationOAuthState.d.ts +1131 -0
  129. package/dist/generated/prisma/models/IntegrationOAuthState.d.ts.map +1 -0
  130. package/dist/generated/prisma/models/IntegrationOAuthState.js +2 -0
  131. package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts +1237 -0
  132. package/dist/generated/prisma/models/IntegrationPlatformCredential.d.ts.map +1 -0
  133. package/dist/generated/prisma/models/IntegrationPlatformCredential.js +2 -0
  134. package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts +1652 -0
  135. package/dist/generated/prisma/models/IntegrationPlatformFinding.d.ts.map +1 -0
  136. package/dist/generated/prisma/models/IntegrationPlatformFinding.js +2 -0
  137. package/dist/generated/prisma/models/IntegrationProvider.d.ts +1300 -0
  138. package/dist/generated/prisma/models/IntegrationProvider.d.ts.map +1 -0
  139. package/dist/generated/prisma/models/IntegrationProvider.js +2 -0
  140. package/dist/generated/prisma/models/IntegrationResult.d.ts +1539 -0
  141. package/dist/generated/prisma/models/IntegrationResult.d.ts.map +1 -0
  142. package/dist/generated/prisma/models/IntegrationResult.js +2 -0
  143. package/dist/generated/prisma/models/IntegrationRun.d.ts +1596 -0
  144. package/dist/generated/prisma/models/IntegrationRun.d.ts.map +1 -0
  145. package/dist/generated/prisma/models/IntegrationRun.js +2 -0
  146. package/dist/generated/prisma/models/IntegrationSyncLog.d.ts +1716 -0
  147. package/dist/generated/prisma/models/IntegrationSyncLog.d.ts.map +1 -0
  148. package/dist/generated/prisma/models/IntegrationSyncLog.js +2 -0
  149. package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
  150. package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
  151. package/dist/generated/prisma/models/Invitation.js +2 -0
  152. package/dist/generated/prisma/models/Jwks.d.ts +998 -0
  153. package/dist/generated/prisma/models/Jwks.d.ts.map +1 -0
  154. package/dist/generated/prisma/models/Jwks.js +2 -0
  155. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1463 -0
  156. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts.map +1 -0
  157. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +2 -0
  158. package/dist/generated/prisma/models/Member.d.ts +5530 -0
  159. package/dist/generated/prisma/models/Member.d.ts.map +1 -0
  160. package/dist/generated/prisma/models/Member.js +2 -0
  161. package/dist/generated/prisma/models/Onboarding.d.ts +1376 -0
  162. package/dist/generated/prisma/models/Onboarding.d.ts.map +1 -0
  163. package/dist/generated/prisma/models/Onboarding.js +2 -0
  164. package/dist/generated/prisma/models/Organization.d.ts +14367 -0
  165. package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
  166. package/dist/generated/prisma/models/Organization.js +2 -0
  167. package/dist/generated/prisma/models/OrganizationBilling.d.ts +1222 -0
  168. package/dist/generated/prisma/models/OrganizationBilling.d.ts.map +1 -0
  169. package/dist/generated/prisma/models/OrganizationBilling.js +2 -0
  170. package/dist/generated/prisma/models/OrganizationChart.d.ts +1248 -0
  171. package/dist/generated/prisma/models/OrganizationChart.d.ts.map +1 -0
  172. package/dist/generated/prisma/models/OrganizationChart.js +2 -0
  173. package/dist/generated/prisma/models/OrganizationRole.d.ts +1251 -0
  174. package/dist/generated/prisma/models/OrganizationRole.d.ts.map +1 -0
  175. package/dist/generated/prisma/models/OrganizationRole.js +2 -0
  176. package/dist/generated/prisma/models/PentestSubscription.d.ts +1497 -0
  177. package/dist/generated/prisma/models/PentestSubscription.d.ts.map +1 -0
  178. package/dist/generated/prisma/models/PentestSubscription.js +2 -0
  179. package/dist/generated/prisma/models/Policy.d.ts +3356 -0
  180. package/dist/generated/prisma/models/Policy.d.ts.map +1 -0
  181. package/dist/generated/prisma/models/Policy.js +2 -0
  182. package/dist/generated/prisma/models/PolicyVersion.d.ts +1619 -0
  183. package/dist/generated/prisma/models/PolicyVersion.d.ts.map +1 -0
  184. package/dist/generated/prisma/models/PolicyVersion.js +2 -0
  185. package/dist/generated/prisma/models/Questionnaire.d.ts +1808 -0
  186. package/dist/generated/prisma/models/Questionnaire.d.ts.map +1 -0
  187. package/dist/generated/prisma/models/Questionnaire.js +2 -0
  188. package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts +1422 -0
  189. package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.d.ts.map +1 -0
  190. package/dist/generated/prisma/models/QuestionnaireQuestionAnswer.js +2 -0
  191. package/dist/generated/prisma/models/RequirementMap.d.ts +1345 -0
  192. package/dist/generated/prisma/models/RequirementMap.d.ts.map +1 -0
  193. package/dist/generated/prisma/models/RequirementMap.js +2 -0
  194. package/dist/generated/prisma/models/Risk.d.ts +1975 -0
  195. package/dist/generated/prisma/models/Risk.d.ts.map +1 -0
  196. package/dist/generated/prisma/models/Risk.js +2 -0
  197. package/dist/generated/prisma/models/RoleNotificationSetting.d.ts +1391 -0
  198. package/dist/generated/prisma/models/RoleNotificationSetting.d.ts.map +1 -0
  199. package/dist/generated/prisma/models/RoleNotificationSetting.js +2 -0
  200. package/dist/generated/prisma/models/SOAAnswer.d.ts +1498 -0
  201. package/dist/generated/prisma/models/SOAAnswer.d.ts.map +1 -0
  202. package/dist/generated/prisma/models/SOAAnswer.js +2 -0
  203. package/dist/generated/prisma/models/SOADocument.d.ts +2272 -0
  204. package/dist/generated/prisma/models/SOADocument.d.ts.map +1 -0
  205. package/dist/generated/prisma/models/SOADocument.js +2 -0
  206. package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts +1445 -0
  207. package/dist/generated/prisma/models/SOAFrameworkConfiguration.d.ts.map +1 -0
  208. package/dist/generated/prisma/models/SOAFrameworkConfiguration.js +2 -0
  209. package/dist/generated/prisma/models/Secret.d.ts +1321 -0
  210. package/dist/generated/prisma/models/Secret.d.ts.map +1 -0
  211. package/dist/generated/prisma/models/Secret.js +2 -0
  212. package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts +1176 -0
  213. package/dist/generated/prisma/models/SecurityPenetrationTestRun.d.ts.map +1 -0
  214. package/dist/generated/prisma/models/SecurityPenetrationTestRun.js +2 -0
  215. package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts +1510 -0
  216. package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.d.ts.map +1 -0
  217. package/dist/generated/prisma/models/SecurityQuestionnaireManualAnswer.js +2 -0
  218. package/dist/generated/prisma/models/Session.d.ts +1351 -0
  219. package/dist/generated/prisma/models/Session.d.ts.map +1 -0
  220. package/dist/generated/prisma/models/Session.js +2 -0
  221. package/dist/generated/prisma/models/Task.d.ts +3980 -0
  222. package/dist/generated/prisma/models/Task.d.ts.map +1 -0
  223. package/dist/generated/prisma/models/Task.js +2 -0
  224. package/dist/generated/prisma/models/TaskItem.d.ts +1961 -0
  225. package/dist/generated/prisma/models/TaskItem.d.ts.map +1 -0
  226. package/dist/generated/prisma/models/TaskItem.js +2 -0
  227. package/dist/generated/prisma/models/Trust.d.ts +2242 -0
  228. package/dist/generated/prisma/models/Trust.d.ts.map +1 -0
  229. package/dist/generated/prisma/models/Trust.js +2 -0
  230. package/dist/generated/prisma/models/TrustAccessGrant.d.ts +1888 -0
  231. package/dist/generated/prisma/models/TrustAccessGrant.d.ts.map +1 -0
  232. package/dist/generated/prisma/models/TrustAccessGrant.js +2 -0
  233. package/dist/generated/prisma/models/TrustAccessRequest.d.ts +2103 -0
  234. package/dist/generated/prisma/models/TrustAccessRequest.d.ts.map +1 -0
  235. package/dist/generated/prisma/models/TrustAccessRequest.js +2 -0
  236. package/dist/generated/prisma/models/TrustCustomLink.d.ts +1354 -0
  237. package/dist/generated/prisma/models/TrustCustomLink.d.ts.map +1 -0
  238. package/dist/generated/prisma/models/TrustCustomLink.js +2 -0
  239. package/dist/generated/prisma/models/TrustDocument.d.ts +1281 -0
  240. package/dist/generated/prisma/models/TrustDocument.d.ts.map +1 -0
  241. package/dist/generated/prisma/models/TrustDocument.js +2 -0
  242. package/dist/generated/prisma/models/TrustNDAAgreement.d.ts +1877 -0
  243. package/dist/generated/prisma/models/TrustNDAAgreement.d.ts.map +1 -0
  244. package/dist/generated/prisma/models/TrustNDAAgreement.js +2 -0
  245. package/dist/generated/prisma/models/TrustResource.d.ts +1328 -0
  246. package/dist/generated/prisma/models/TrustResource.d.ts.map +1 -0
  247. package/dist/generated/prisma/models/TrustResource.js +2 -0
  248. package/dist/generated/prisma/models/User.d.ts +3070 -0
  249. package/dist/generated/prisma/models/User.d.ts.map +1 -0
  250. package/dist/generated/prisma/models/User.js +2 -0
  251. package/dist/generated/prisma/models/Vendor.d.ts +2307 -0
  252. package/dist/generated/prisma/models/Vendor.d.ts.map +1 -0
  253. package/dist/generated/prisma/models/Vendor.js +2 -0
  254. package/dist/generated/prisma/models/VendorContact.d.ts +1246 -0
  255. package/dist/generated/prisma/models/VendorContact.d.ts.map +1 -0
  256. package/dist/generated/prisma/models/VendorContact.js +2 -0
  257. package/dist/generated/prisma/models/Verification.d.ts +1026 -0
  258. package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
  259. package/dist/generated/prisma/models/Verification.js +2 -0
  260. package/dist/generated/prisma/models.d.ts +82 -0
  261. package/dist/generated/prisma/models.d.ts.map +1 -0
  262. package/dist/generated/prisma/models.js +2 -0
  263. package/dist/index.d.ts +0 -1
  264. package/dist/index.d.ts.map +1 -1
  265. package/dist/index.js +0 -3
  266. package/dist/index.ts +1 -2
  267. package/dist/postinstall.js +1 -1
  268. package/dist/schema.prisma +458 -39
  269. package/package.json +56 -55
@@ -0,0 +1,1351 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Session
5
+ *
6
+ */
7
+ export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>;
8
+ export type AggregateSession = {
9
+ _count: SessionCountAggregateOutputType | null;
10
+ _min: SessionMinAggregateOutputType | null;
11
+ _max: SessionMaxAggregateOutputType | null;
12
+ };
13
+ export type SessionMinAggregateOutputType = {
14
+ id: string | null;
15
+ expiresAt: Date | null;
16
+ token: string | null;
17
+ createdAt: Date | null;
18
+ updatedAt: Date | null;
19
+ ipAddress: string | null;
20
+ userAgent: string | null;
21
+ userId: string | null;
22
+ activeOrganizationId: string | null;
23
+ impersonatedBy: string | null;
24
+ };
25
+ export type SessionMaxAggregateOutputType = {
26
+ id: string | null;
27
+ expiresAt: Date | null;
28
+ token: string | null;
29
+ createdAt: Date | null;
30
+ updatedAt: Date | null;
31
+ ipAddress: string | null;
32
+ userAgent: string | null;
33
+ userId: string | null;
34
+ activeOrganizationId: string | null;
35
+ impersonatedBy: string | null;
36
+ };
37
+ export type SessionCountAggregateOutputType = {
38
+ id: number;
39
+ expiresAt: number;
40
+ token: number;
41
+ createdAt: number;
42
+ updatedAt: number;
43
+ ipAddress: number;
44
+ userAgent: number;
45
+ userId: number;
46
+ activeOrganizationId: number;
47
+ impersonatedBy: number;
48
+ _all: number;
49
+ };
50
+ export type SessionMinAggregateInputType = {
51
+ id?: true;
52
+ expiresAt?: true;
53
+ token?: true;
54
+ createdAt?: true;
55
+ updatedAt?: true;
56
+ ipAddress?: true;
57
+ userAgent?: true;
58
+ userId?: true;
59
+ activeOrganizationId?: true;
60
+ impersonatedBy?: true;
61
+ };
62
+ export type SessionMaxAggregateInputType = {
63
+ id?: true;
64
+ expiresAt?: true;
65
+ token?: true;
66
+ createdAt?: true;
67
+ updatedAt?: true;
68
+ ipAddress?: true;
69
+ userAgent?: true;
70
+ userId?: true;
71
+ activeOrganizationId?: true;
72
+ impersonatedBy?: true;
73
+ };
74
+ export type SessionCountAggregateInputType = {
75
+ id?: true;
76
+ expiresAt?: true;
77
+ token?: true;
78
+ createdAt?: true;
79
+ updatedAt?: true;
80
+ ipAddress?: true;
81
+ userAgent?: true;
82
+ userId?: true;
83
+ activeOrganizationId?: true;
84
+ impersonatedBy?: true;
85
+ _all?: true;
86
+ };
87
+ export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
88
+ /**
89
+ * Filter which Session to aggregate.
90
+ */
91
+ where?: Prisma.SessionWhereInput;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
94
+ *
95
+ * Determine the order of Sessions to fetch.
96
+ */
97
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
100
+ *
101
+ * Sets the start position
102
+ */
103
+ cursor?: Prisma.SessionWhereUniqueInput;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
106
+ *
107
+ * Take `±n` Sessions from the position of the cursor.
108
+ */
109
+ take?: number;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
112
+ *
113
+ * Skip the first `n` Sessions.
114
+ */
115
+ skip?: number;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Count returned Sessions
120
+ **/
121
+ _count?: true | SessionCountAggregateInputType;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the minimum value
126
+ **/
127
+ _min?: SessionMinAggregateInputType;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Select which fields to find the maximum value
132
+ **/
133
+ _max?: SessionMaxAggregateInputType;
134
+ };
135
+ export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
136
+ [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSession[P]> : Prisma.GetScalarType<T[P], AggregateSession[P]>;
137
+ };
138
+ export type SessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
139
+ where?: Prisma.SessionWhereInput;
140
+ orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[];
141
+ by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum;
142
+ having?: Prisma.SessionScalarWhereWithAggregatesInput;
143
+ take?: number;
144
+ skip?: number;
145
+ _count?: SessionCountAggregateInputType | true;
146
+ _min?: SessionMinAggregateInputType;
147
+ _max?: SessionMaxAggregateInputType;
148
+ };
149
+ export type SessionGroupByOutputType = {
150
+ id: string;
151
+ expiresAt: Date;
152
+ token: string;
153
+ createdAt: Date;
154
+ updatedAt: Date;
155
+ ipAddress: string | null;
156
+ userAgent: string | null;
157
+ userId: string;
158
+ activeOrganizationId: string | null;
159
+ impersonatedBy: string | null;
160
+ _count: SessionCountAggregateOutputType | null;
161
+ _min: SessionMinAggregateOutputType | null;
162
+ _max: SessionMaxAggregateOutputType | null;
163
+ };
164
+ export type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SessionGroupByOutputType, T['by']> & {
165
+ [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>;
166
+ }>>;
167
+ export type SessionWhereInput = {
168
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
169
+ OR?: Prisma.SessionWhereInput[];
170
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
171
+ id?: Prisma.StringFilter<"Session"> | string;
172
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
173
+ token?: Prisma.StringFilter<"Session"> | string;
174
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
175
+ updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
176
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null;
177
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null;
178
+ userId?: Prisma.StringFilter<"Session"> | string;
179
+ activeOrganizationId?: Prisma.StringNullableFilter<"Session"> | string | null;
180
+ impersonatedBy?: Prisma.StringNullableFilter<"Session"> | string | null;
181
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
182
+ };
183
+ export type SessionOrderByWithRelationInput = {
184
+ id?: Prisma.SortOrder;
185
+ expiresAt?: Prisma.SortOrder;
186
+ token?: Prisma.SortOrder;
187
+ createdAt?: Prisma.SortOrder;
188
+ updatedAt?: Prisma.SortOrder;
189
+ ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder;
190
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder;
191
+ userId?: Prisma.SortOrder;
192
+ activeOrganizationId?: Prisma.SortOrderInput | Prisma.SortOrder;
193
+ impersonatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
194
+ user?: Prisma.UserOrderByWithRelationInput;
195
+ };
196
+ export type SessionWhereUniqueInput = Prisma.AtLeast<{
197
+ id?: string;
198
+ token?: string;
199
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
200
+ OR?: Prisma.SessionWhereInput[];
201
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
202
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
203
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
204
+ updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
205
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null;
206
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null;
207
+ userId?: Prisma.StringFilter<"Session"> | string;
208
+ activeOrganizationId?: Prisma.StringNullableFilter<"Session"> | string | null;
209
+ impersonatedBy?: Prisma.StringNullableFilter<"Session"> | string | null;
210
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
211
+ }, "id" | "token">;
212
+ export type SessionOrderByWithAggregationInput = {
213
+ id?: Prisma.SortOrder;
214
+ expiresAt?: Prisma.SortOrder;
215
+ token?: Prisma.SortOrder;
216
+ createdAt?: Prisma.SortOrder;
217
+ updatedAt?: Prisma.SortOrder;
218
+ ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ userId?: Prisma.SortOrder;
221
+ activeOrganizationId?: Prisma.SortOrderInput | Prisma.SortOrder;
222
+ impersonatedBy?: Prisma.SortOrderInput | Prisma.SortOrder;
223
+ _count?: Prisma.SessionCountOrderByAggregateInput;
224
+ _max?: Prisma.SessionMaxOrderByAggregateInput;
225
+ _min?: Prisma.SessionMinOrderByAggregateInput;
226
+ };
227
+ export type SessionScalarWhereWithAggregatesInput = {
228
+ AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
229
+ OR?: Prisma.SessionScalarWhereWithAggregatesInput[];
230
+ NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
231
+ id?: Prisma.StringWithAggregatesFilter<"Session"> | string;
232
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
233
+ token?: Prisma.StringWithAggregatesFilter<"Session"> | string;
234
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
235
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
236
+ ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
237
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
238
+ userId?: Prisma.StringWithAggregatesFilter<"Session"> | string;
239
+ activeOrganizationId?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
240
+ impersonatedBy?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null;
241
+ };
242
+ export type SessionCreateInput = {
243
+ id?: string;
244
+ expiresAt: Date | string;
245
+ token: string;
246
+ createdAt?: Date | string;
247
+ updatedAt?: Date | string;
248
+ ipAddress?: string | null;
249
+ userAgent?: string | null;
250
+ activeOrganizationId?: string | null;
251
+ impersonatedBy?: string | null;
252
+ user: Prisma.UserCreateNestedOneWithoutSessionsInput;
253
+ };
254
+ export type SessionUncheckedCreateInput = {
255
+ id?: string;
256
+ expiresAt: Date | string;
257
+ token: string;
258
+ createdAt?: Date | string;
259
+ updatedAt?: Date | string;
260
+ ipAddress?: string | null;
261
+ userAgent?: string | null;
262
+ userId: string;
263
+ activeOrganizationId?: string | null;
264
+ impersonatedBy?: string | null;
265
+ };
266
+ export type SessionUpdateInput = {
267
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
269
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
270
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
271
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
272
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
273
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
274
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
275
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
276
+ user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput;
277
+ };
278
+ export type SessionUncheckedUpdateInput = {
279
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
280
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
281
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
284
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
285
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
286
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
287
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
288
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
289
+ };
290
+ export type SessionCreateManyInput = {
291
+ id?: string;
292
+ expiresAt: Date | string;
293
+ token: string;
294
+ createdAt?: Date | string;
295
+ updatedAt?: Date | string;
296
+ ipAddress?: string | null;
297
+ userAgent?: string | null;
298
+ userId: string;
299
+ activeOrganizationId?: string | null;
300
+ impersonatedBy?: string | null;
301
+ };
302
+ export type SessionUpdateManyMutationInput = {
303
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
304
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
307
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
308
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
310
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
311
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
312
+ };
313
+ export type SessionUncheckedUpdateManyInput = {
314
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
315
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
316
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
318
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
319
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
320
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
321
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
323
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
324
+ };
325
+ export type SessionListRelationFilter = {
326
+ every?: Prisma.SessionWhereInput;
327
+ some?: Prisma.SessionWhereInput;
328
+ none?: Prisma.SessionWhereInput;
329
+ };
330
+ export type SessionOrderByRelationAggregateInput = {
331
+ _count?: Prisma.SortOrder;
332
+ };
333
+ export type SessionCountOrderByAggregateInput = {
334
+ id?: Prisma.SortOrder;
335
+ expiresAt?: Prisma.SortOrder;
336
+ token?: Prisma.SortOrder;
337
+ createdAt?: Prisma.SortOrder;
338
+ updatedAt?: Prisma.SortOrder;
339
+ ipAddress?: Prisma.SortOrder;
340
+ userAgent?: Prisma.SortOrder;
341
+ userId?: Prisma.SortOrder;
342
+ activeOrganizationId?: Prisma.SortOrder;
343
+ impersonatedBy?: Prisma.SortOrder;
344
+ };
345
+ export type SessionMaxOrderByAggregateInput = {
346
+ id?: Prisma.SortOrder;
347
+ expiresAt?: Prisma.SortOrder;
348
+ token?: Prisma.SortOrder;
349
+ createdAt?: Prisma.SortOrder;
350
+ updatedAt?: Prisma.SortOrder;
351
+ ipAddress?: Prisma.SortOrder;
352
+ userAgent?: Prisma.SortOrder;
353
+ userId?: Prisma.SortOrder;
354
+ activeOrganizationId?: Prisma.SortOrder;
355
+ impersonatedBy?: Prisma.SortOrder;
356
+ };
357
+ export type SessionMinOrderByAggregateInput = {
358
+ id?: Prisma.SortOrder;
359
+ expiresAt?: Prisma.SortOrder;
360
+ token?: Prisma.SortOrder;
361
+ createdAt?: Prisma.SortOrder;
362
+ updatedAt?: Prisma.SortOrder;
363
+ ipAddress?: Prisma.SortOrder;
364
+ userAgent?: Prisma.SortOrder;
365
+ userId?: Prisma.SortOrder;
366
+ activeOrganizationId?: Prisma.SortOrder;
367
+ impersonatedBy?: Prisma.SortOrder;
368
+ };
369
+ export type SessionCreateNestedManyWithoutUserInput = {
370
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
371
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
372
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
373
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
374
+ };
375
+ export type SessionUncheckedCreateNestedManyWithoutUserInput = {
376
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
377
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
378
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
379
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
380
+ };
381
+ export type SessionUpdateManyWithoutUserNestedInput = {
382
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
383
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
384
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
385
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
386
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
387
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
388
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
389
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
390
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
391
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
392
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
393
+ };
394
+ export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
395
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
396
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
397
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
398
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
399
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
400
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
401
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
402
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
403
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
404
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
405
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
406
+ };
407
+ export type SessionCreateWithoutUserInput = {
408
+ id?: string;
409
+ expiresAt: Date | string;
410
+ token: string;
411
+ createdAt?: Date | string;
412
+ updatedAt?: Date | string;
413
+ ipAddress?: string | null;
414
+ userAgent?: string | null;
415
+ activeOrganizationId?: string | null;
416
+ impersonatedBy?: string | null;
417
+ };
418
+ export type SessionUncheckedCreateWithoutUserInput = {
419
+ id?: string;
420
+ expiresAt: Date | string;
421
+ token: string;
422
+ createdAt?: Date | string;
423
+ updatedAt?: Date | string;
424
+ ipAddress?: string | null;
425
+ userAgent?: string | null;
426
+ activeOrganizationId?: string | null;
427
+ impersonatedBy?: string | null;
428
+ };
429
+ export type SessionCreateOrConnectWithoutUserInput = {
430
+ where: Prisma.SessionWhereUniqueInput;
431
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
432
+ };
433
+ export type SessionCreateManyUserInputEnvelope = {
434
+ data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[];
435
+ skipDuplicates?: boolean;
436
+ };
437
+ export type SessionUpsertWithWhereUniqueWithoutUserInput = {
438
+ where: Prisma.SessionWhereUniqueInput;
439
+ update: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
440
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
441
+ };
442
+ export type SessionUpdateWithWhereUniqueWithoutUserInput = {
443
+ where: Prisma.SessionWhereUniqueInput;
444
+ data: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
445
+ };
446
+ export type SessionUpdateManyWithWhereWithoutUserInput = {
447
+ where: Prisma.SessionScalarWhereInput;
448
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyWithoutUserInput>;
449
+ };
450
+ export type SessionScalarWhereInput = {
451
+ AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
452
+ OR?: Prisma.SessionScalarWhereInput[];
453
+ NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
454
+ id?: Prisma.StringFilter<"Session"> | string;
455
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
456
+ token?: Prisma.StringFilter<"Session"> | string;
457
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
458
+ updatedAt?: Prisma.DateTimeFilter<"Session"> | Date | string;
459
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null;
460
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null;
461
+ userId?: Prisma.StringFilter<"Session"> | string;
462
+ activeOrganizationId?: Prisma.StringNullableFilter<"Session"> | string | null;
463
+ impersonatedBy?: Prisma.StringNullableFilter<"Session"> | string | null;
464
+ };
465
+ export type SessionCreateManyUserInput = {
466
+ id?: string;
467
+ expiresAt: Date | string;
468
+ token: string;
469
+ createdAt?: Date | string;
470
+ updatedAt?: Date | string;
471
+ ipAddress?: string | null;
472
+ userAgent?: string | null;
473
+ activeOrganizationId?: string | null;
474
+ impersonatedBy?: string | null;
475
+ };
476
+ export type SessionUpdateWithoutUserInput = {
477
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
478
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
479
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
480
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
481
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
482
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
483
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
484
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
485
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
486
+ };
487
+ export type SessionUncheckedUpdateWithoutUserInput = {
488
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
489
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
490
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
491
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
492
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
493
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
495
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
496
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
497
+ };
498
+ export type SessionUncheckedUpdateManyWithoutUserInput = {
499
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
500
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
501
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
502
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
503
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
504
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
505
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
506
+ activeOrganizationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
507
+ impersonatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
508
+ };
509
+ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
510
+ id?: boolean;
511
+ expiresAt?: boolean;
512
+ token?: boolean;
513
+ createdAt?: boolean;
514
+ updatedAt?: boolean;
515
+ ipAddress?: boolean;
516
+ userAgent?: boolean;
517
+ userId?: boolean;
518
+ activeOrganizationId?: boolean;
519
+ impersonatedBy?: boolean;
520
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
521
+ }, ExtArgs["result"]["session"]>;
522
+ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
523
+ id?: boolean;
524
+ expiresAt?: boolean;
525
+ token?: boolean;
526
+ createdAt?: boolean;
527
+ updatedAt?: boolean;
528
+ ipAddress?: boolean;
529
+ userAgent?: boolean;
530
+ userId?: boolean;
531
+ activeOrganizationId?: boolean;
532
+ impersonatedBy?: boolean;
533
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
534
+ }, ExtArgs["result"]["session"]>;
535
+ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
536
+ id?: boolean;
537
+ expiresAt?: boolean;
538
+ token?: boolean;
539
+ createdAt?: boolean;
540
+ updatedAt?: boolean;
541
+ ipAddress?: boolean;
542
+ userAgent?: boolean;
543
+ userId?: boolean;
544
+ activeOrganizationId?: boolean;
545
+ impersonatedBy?: boolean;
546
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
547
+ }, ExtArgs["result"]["session"]>;
548
+ export type SessionSelectScalar = {
549
+ id?: boolean;
550
+ expiresAt?: boolean;
551
+ token?: boolean;
552
+ createdAt?: boolean;
553
+ updatedAt?: boolean;
554
+ ipAddress?: boolean;
555
+ userAgent?: boolean;
556
+ userId?: boolean;
557
+ activeOrganizationId?: boolean;
558
+ impersonatedBy?: boolean;
559
+ };
560
+ export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "activeOrganizationId" | "impersonatedBy", ExtArgs["result"]["session"]>;
561
+ export type SessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
562
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
563
+ };
564
+ export type SessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
565
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
566
+ };
567
+ export type SessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
568
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
569
+ };
570
+ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
571
+ name: "Session";
572
+ objects: {
573
+ user: Prisma.$UserPayload<ExtArgs>;
574
+ };
575
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
576
+ id: string;
577
+ expiresAt: Date;
578
+ token: string;
579
+ createdAt: Date;
580
+ updatedAt: Date;
581
+ ipAddress: string | null;
582
+ userAgent: string | null;
583
+ userId: string;
584
+ activeOrganizationId: string | null;
585
+ impersonatedBy: string | null;
586
+ }, ExtArgs["result"]["session"]>;
587
+ composites: {};
588
+ };
589
+ export type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionPayload, S>;
590
+ export type SessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
591
+ select?: SessionCountAggregateInputType | true;
592
+ };
593
+ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
594
+ [K: symbol]: {
595
+ types: Prisma.TypeMap<ExtArgs>['model']['Session'];
596
+ meta: {
597
+ name: 'Session';
598
+ };
599
+ };
600
+ /**
601
+ * Find zero or one Session that matches the filter.
602
+ * @param {SessionFindUniqueArgs} args - Arguments to find a Session
603
+ * @example
604
+ * // Get one Session
605
+ * const session = await prisma.session.findUnique({
606
+ * where: {
607
+ * // ... provide filter here
608
+ * }
609
+ * })
610
+ */
611
+ findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
612
+ /**
613
+ * Find one Session that matches the filter or throw an error with `error.code='P2025'`
614
+ * if no matches were found.
615
+ * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
616
+ * @example
617
+ * // Get one Session
618
+ * const session = await prisma.session.findUniqueOrThrow({
619
+ * where: {
620
+ * // ... provide filter here
621
+ * }
622
+ * })
623
+ */
624
+ findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
625
+ /**
626
+ * Find the first Session that matches the filter.
627
+ * Note, that providing `undefined` is treated as the value not being there.
628
+ * Read more here: https://pris.ly/d/null-undefined
629
+ * @param {SessionFindFirstArgs} args - Arguments to find a Session
630
+ * @example
631
+ * // Get one Session
632
+ * const session = await prisma.session.findFirst({
633
+ * where: {
634
+ * // ... provide filter here
635
+ * }
636
+ * })
637
+ */
638
+ findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
639
+ /**
640
+ * Find the first Session that matches the filter or
641
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
642
+ * Note, that providing `undefined` is treated as the value not being there.
643
+ * Read more here: https://pris.ly/d/null-undefined
644
+ * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
645
+ * @example
646
+ * // Get one Session
647
+ * const session = await prisma.session.findFirstOrThrow({
648
+ * where: {
649
+ * // ... provide filter here
650
+ * }
651
+ * })
652
+ */
653
+ findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
654
+ /**
655
+ * Find zero or more Sessions that matches the filter.
656
+ * Note, that providing `undefined` is treated as the value not being there.
657
+ * Read more here: https://pris.ly/d/null-undefined
658
+ * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
659
+ * @example
660
+ * // Get all Sessions
661
+ * const sessions = await prisma.session.findMany()
662
+ *
663
+ * // Get first 10 Sessions
664
+ * const sessions = await prisma.session.findMany({ take: 10 })
665
+ *
666
+ * // Only select the `id`
667
+ * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
668
+ *
669
+ */
670
+ findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
671
+ /**
672
+ * Create a Session.
673
+ * @param {SessionCreateArgs} args - Arguments to create a Session.
674
+ * @example
675
+ * // Create one Session
676
+ * const Session = await prisma.session.create({
677
+ * data: {
678
+ * // ... data to create a Session
679
+ * }
680
+ * })
681
+ *
682
+ */
683
+ create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
684
+ /**
685
+ * Create many Sessions.
686
+ * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
687
+ * @example
688
+ * // Create many Sessions
689
+ * const session = await prisma.session.createMany({
690
+ * data: [
691
+ * // ... provide data here
692
+ * ]
693
+ * })
694
+ *
695
+ */
696
+ createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
697
+ /**
698
+ * Create many Sessions and returns the data saved in the database.
699
+ * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
700
+ * @example
701
+ * // Create many Sessions
702
+ * const session = await prisma.session.createManyAndReturn({
703
+ * data: [
704
+ * // ... provide data here
705
+ * ]
706
+ * })
707
+ *
708
+ * // Create many Sessions and only return the `id`
709
+ * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
710
+ * select: { id: true },
711
+ * data: [
712
+ * // ... provide data here
713
+ * ]
714
+ * })
715
+ * Note, that providing `undefined` is treated as the value not being there.
716
+ * Read more here: https://pris.ly/d/null-undefined
717
+ *
718
+ */
719
+ createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
720
+ /**
721
+ * Delete a Session.
722
+ * @param {SessionDeleteArgs} args - Arguments to delete one Session.
723
+ * @example
724
+ * // Delete one Session
725
+ * const Session = await prisma.session.delete({
726
+ * where: {
727
+ * // ... filter to delete one Session
728
+ * }
729
+ * })
730
+ *
731
+ */
732
+ delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
733
+ /**
734
+ * Update one Session.
735
+ * @param {SessionUpdateArgs} args - Arguments to update one Session.
736
+ * @example
737
+ * // Update one Session
738
+ * const session = await prisma.session.update({
739
+ * where: {
740
+ * // ... provide filter here
741
+ * },
742
+ * data: {
743
+ * // ... provide data here
744
+ * }
745
+ * })
746
+ *
747
+ */
748
+ update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
749
+ /**
750
+ * Delete zero or more Sessions.
751
+ * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
752
+ * @example
753
+ * // Delete a few Sessions
754
+ * const { count } = await prisma.session.deleteMany({
755
+ * where: {
756
+ * // ... provide filter here
757
+ * }
758
+ * })
759
+ *
760
+ */
761
+ deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
762
+ /**
763
+ * Update zero or more Sessions.
764
+ * Note, that providing `undefined` is treated as the value not being there.
765
+ * Read more here: https://pris.ly/d/null-undefined
766
+ * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
767
+ * @example
768
+ * // Update many Sessions
769
+ * const session = await prisma.session.updateMany({
770
+ * where: {
771
+ * // ... provide filter here
772
+ * },
773
+ * data: {
774
+ * // ... provide data here
775
+ * }
776
+ * })
777
+ *
778
+ */
779
+ updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
780
+ /**
781
+ * Update zero or more Sessions and returns the data updated in the database.
782
+ * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
783
+ * @example
784
+ * // Update many Sessions
785
+ * const session = await prisma.session.updateManyAndReturn({
786
+ * where: {
787
+ * // ... provide filter here
788
+ * },
789
+ * data: [
790
+ * // ... provide data here
791
+ * ]
792
+ * })
793
+ *
794
+ * // Update zero or more Sessions and only return the `id`
795
+ * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
796
+ * select: { id: true },
797
+ * where: {
798
+ * // ... provide filter here
799
+ * },
800
+ * data: [
801
+ * // ... provide data here
802
+ * ]
803
+ * })
804
+ * Note, that providing `undefined` is treated as the value not being there.
805
+ * Read more here: https://pris.ly/d/null-undefined
806
+ *
807
+ */
808
+ updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
809
+ /**
810
+ * Create or update one Session.
811
+ * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
812
+ * @example
813
+ * // Update or create a Session
814
+ * const session = await prisma.session.upsert({
815
+ * create: {
816
+ * // ... data to create a Session
817
+ * },
818
+ * update: {
819
+ * // ... in case it already exists, update
820
+ * },
821
+ * where: {
822
+ * // ... the filter for the Session we want to update
823
+ * }
824
+ * })
825
+ */
826
+ upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
827
+ /**
828
+ * Count the number of Sessions.
829
+ * Note, that providing `undefined` is treated as the value not being there.
830
+ * Read more here: https://pris.ly/d/null-undefined
831
+ * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
832
+ * @example
833
+ * // Count the number of Sessions
834
+ * const count = await prisma.session.count({
835
+ * where: {
836
+ * // ... the filter for the Sessions we want to count
837
+ * }
838
+ * })
839
+ **/
840
+ count<T extends SessionCountArgs>(args?: Prisma.Subset<T, SessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType> : number>;
841
+ /**
842
+ * Allows you to perform aggregations operations on a Session.
843
+ * Note, that providing `undefined` is treated as the value not being there.
844
+ * Read more here: https://pris.ly/d/null-undefined
845
+ * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
846
+ * @example
847
+ * // Ordered by age ascending
848
+ * // Where email contains prisma.io
849
+ * // Limited to the 10 users
850
+ * const aggregations = await prisma.user.aggregate({
851
+ * _avg: {
852
+ * age: true,
853
+ * },
854
+ * where: {
855
+ * email: {
856
+ * contains: "prisma.io",
857
+ * },
858
+ * },
859
+ * orderBy: {
860
+ * age: "asc",
861
+ * },
862
+ * take: 10,
863
+ * })
864
+ **/
865
+ aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>;
866
+ /**
867
+ * Group by Session.
868
+ * Note, that providing `undefined` is treated as the value not being there.
869
+ * Read more here: https://pris.ly/d/null-undefined
870
+ * @param {SessionGroupByArgs} args - Group by arguments.
871
+ * @example
872
+ * // Group by city, order by createdAt, get count
873
+ * const result = await prisma.user.groupBy({
874
+ * by: ['city', 'createdAt'],
875
+ * orderBy: {
876
+ * createdAt: true
877
+ * },
878
+ * _count: {
879
+ * _all: true
880
+ * },
881
+ * })
882
+ *
883
+ **/
884
+ groupBy<T extends SessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
885
+ orderBy: SessionGroupByArgs['orderBy'];
886
+ } : {
887
+ orderBy?: SessionGroupByArgs['orderBy'];
888
+ }, 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 ? {
889
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
890
+ Error,
891
+ 'Field ',
892
+ P,
893
+ ` in "having" needs to be provided in "by"`
894
+ ];
895
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
896
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
897
+ }[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 ? {} : {
898
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
899
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
900
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
901
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
902
+ /**
903
+ * Fields of the Session model
904
+ */
905
+ readonly fields: SessionFieldRefs;
906
+ }
907
+ /**
908
+ * The delegate class that acts as a "Promise-like" for Session.
909
+ * Why is this prefixed with `Prisma__`?
910
+ * Because we want to prevent naming conflicts as mentioned in
911
+ * https://github.com/prisma/prisma-client-js/issues/707
912
+ */
913
+ export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
914
+ readonly [Symbol.toStringTag]: "PrismaPromise";
915
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
916
+ /**
917
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
918
+ * @param onfulfilled The callback to execute when the Promise is resolved.
919
+ * @param onrejected The callback to execute when the Promise is rejected.
920
+ * @returns A Promise for the completion of which ever callback is executed.
921
+ */
922
+ 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>;
923
+ /**
924
+ * Attaches a callback for only the rejection of the Promise.
925
+ * @param onrejected The callback to execute when the Promise is rejected.
926
+ * @returns A Promise for the completion of the callback.
927
+ */
928
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
929
+ /**
930
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
931
+ * resolved value cannot be modified from the callback.
932
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
933
+ * @returns A Promise for the completion of the callback.
934
+ */
935
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
936
+ }
937
+ /**
938
+ * Fields of the Session model
939
+ */
940
+ export interface SessionFieldRefs {
941
+ readonly id: Prisma.FieldRef<"Session", 'String'>;
942
+ readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'>;
943
+ readonly token: Prisma.FieldRef<"Session", 'String'>;
944
+ readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>;
945
+ readonly updatedAt: Prisma.FieldRef<"Session", 'DateTime'>;
946
+ readonly ipAddress: Prisma.FieldRef<"Session", 'String'>;
947
+ readonly userAgent: Prisma.FieldRef<"Session", 'String'>;
948
+ readonly userId: Prisma.FieldRef<"Session", 'String'>;
949
+ readonly activeOrganizationId: Prisma.FieldRef<"Session", 'String'>;
950
+ readonly impersonatedBy: Prisma.FieldRef<"Session", 'String'>;
951
+ }
952
+ /**
953
+ * Session findUnique
954
+ */
955
+ export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
956
+ /**
957
+ * Select specific fields to fetch from the Session
958
+ */
959
+ select?: Prisma.SessionSelect<ExtArgs> | null;
960
+ /**
961
+ * Omit specific fields from the Session
962
+ */
963
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
964
+ /**
965
+ * Choose, which related nodes to fetch as well
966
+ */
967
+ include?: Prisma.SessionInclude<ExtArgs> | null;
968
+ /**
969
+ * Filter, which Session to fetch.
970
+ */
971
+ where: Prisma.SessionWhereUniqueInput;
972
+ };
973
+ /**
974
+ * Session findUniqueOrThrow
975
+ */
976
+ export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
977
+ /**
978
+ * Select specific fields to fetch from the Session
979
+ */
980
+ select?: Prisma.SessionSelect<ExtArgs> | null;
981
+ /**
982
+ * Omit specific fields from the Session
983
+ */
984
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
985
+ /**
986
+ * Choose, which related nodes to fetch as well
987
+ */
988
+ include?: Prisma.SessionInclude<ExtArgs> | null;
989
+ /**
990
+ * Filter, which Session to fetch.
991
+ */
992
+ where: Prisma.SessionWhereUniqueInput;
993
+ };
994
+ /**
995
+ * Session findFirst
996
+ */
997
+ export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
998
+ /**
999
+ * Select specific fields to fetch from the Session
1000
+ */
1001
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1002
+ /**
1003
+ * Omit specific fields from the Session
1004
+ */
1005
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1006
+ /**
1007
+ * Choose, which related nodes to fetch as well
1008
+ */
1009
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1010
+ /**
1011
+ * Filter, which Session to fetch.
1012
+ */
1013
+ where?: Prisma.SessionWhereInput;
1014
+ /**
1015
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1016
+ *
1017
+ * Determine the order of Sessions to fetch.
1018
+ */
1019
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
1020
+ /**
1021
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1022
+ *
1023
+ * Sets the position for searching for Sessions.
1024
+ */
1025
+ cursor?: Prisma.SessionWhereUniqueInput;
1026
+ /**
1027
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1028
+ *
1029
+ * Take `±n` Sessions from the position of the cursor.
1030
+ */
1031
+ take?: number;
1032
+ /**
1033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1034
+ *
1035
+ * Skip the first `n` Sessions.
1036
+ */
1037
+ skip?: number;
1038
+ /**
1039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1040
+ *
1041
+ * Filter by unique combinations of Sessions.
1042
+ */
1043
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1044
+ };
1045
+ /**
1046
+ * Session findFirstOrThrow
1047
+ */
1048
+ export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the Session
1051
+ */
1052
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1053
+ /**
1054
+ * Omit specific fields from the Session
1055
+ */
1056
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1057
+ /**
1058
+ * Choose, which related nodes to fetch as well
1059
+ */
1060
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1061
+ /**
1062
+ * Filter, which Session to fetch.
1063
+ */
1064
+ where?: Prisma.SessionWhereInput;
1065
+ /**
1066
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1067
+ *
1068
+ * Determine the order of Sessions to fetch.
1069
+ */
1070
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
1071
+ /**
1072
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1073
+ *
1074
+ * Sets the position for searching for Sessions.
1075
+ */
1076
+ cursor?: Prisma.SessionWhereUniqueInput;
1077
+ /**
1078
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1079
+ *
1080
+ * Take `±n` Sessions from the position of the cursor.
1081
+ */
1082
+ take?: number;
1083
+ /**
1084
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1085
+ *
1086
+ * Skip the first `n` Sessions.
1087
+ */
1088
+ skip?: number;
1089
+ /**
1090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1091
+ *
1092
+ * Filter by unique combinations of Sessions.
1093
+ */
1094
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1095
+ };
1096
+ /**
1097
+ * Session findMany
1098
+ */
1099
+ export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
+ /**
1101
+ * Select specific fields to fetch from the Session
1102
+ */
1103
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1104
+ /**
1105
+ * Omit specific fields from the Session
1106
+ */
1107
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1108
+ /**
1109
+ * Choose, which related nodes to fetch as well
1110
+ */
1111
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1112
+ /**
1113
+ * Filter, which Sessions to fetch.
1114
+ */
1115
+ where?: Prisma.SessionWhereInput;
1116
+ /**
1117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1118
+ *
1119
+ * Determine the order of Sessions to fetch.
1120
+ */
1121
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
1122
+ /**
1123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1124
+ *
1125
+ * Sets the position for listing Sessions.
1126
+ */
1127
+ cursor?: Prisma.SessionWhereUniqueInput;
1128
+ /**
1129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1130
+ *
1131
+ * Take `±n` Sessions from the position of the cursor.
1132
+ */
1133
+ take?: number;
1134
+ /**
1135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1136
+ *
1137
+ * Skip the first `n` Sessions.
1138
+ */
1139
+ skip?: number;
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1142
+ *
1143
+ * Filter by unique combinations of Sessions.
1144
+ */
1145
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
1146
+ };
1147
+ /**
1148
+ * Session create
1149
+ */
1150
+ export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1151
+ /**
1152
+ * Select specific fields to fetch from the Session
1153
+ */
1154
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1155
+ /**
1156
+ * Omit specific fields from the Session
1157
+ */
1158
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1159
+ /**
1160
+ * Choose, which related nodes to fetch as well
1161
+ */
1162
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1163
+ /**
1164
+ * The data needed to create a Session.
1165
+ */
1166
+ data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1167
+ };
1168
+ /**
1169
+ * Session createMany
1170
+ */
1171
+ export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1172
+ /**
1173
+ * The data used to create many Sessions.
1174
+ */
1175
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
1176
+ skipDuplicates?: boolean;
1177
+ };
1178
+ /**
1179
+ * Session createManyAndReturn
1180
+ */
1181
+ export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1182
+ /**
1183
+ * Select specific fields to fetch from the Session
1184
+ */
1185
+ select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null;
1186
+ /**
1187
+ * Omit specific fields from the Session
1188
+ */
1189
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1190
+ /**
1191
+ * The data used to create many Sessions.
1192
+ */
1193
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
1194
+ skipDuplicates?: boolean;
1195
+ /**
1196
+ * Choose, which related nodes to fetch as well
1197
+ */
1198
+ include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null;
1199
+ };
1200
+ /**
1201
+ * Session update
1202
+ */
1203
+ export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1204
+ /**
1205
+ * Select specific fields to fetch from the Session
1206
+ */
1207
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1208
+ /**
1209
+ * Omit specific fields from the Session
1210
+ */
1211
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1212
+ /**
1213
+ * Choose, which related nodes to fetch as well
1214
+ */
1215
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1216
+ /**
1217
+ * The data needed to update a Session.
1218
+ */
1219
+ data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1220
+ /**
1221
+ * Choose, which Session to update.
1222
+ */
1223
+ where: Prisma.SessionWhereUniqueInput;
1224
+ };
1225
+ /**
1226
+ * Session updateMany
1227
+ */
1228
+ export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1229
+ /**
1230
+ * The data used to update Sessions.
1231
+ */
1232
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1233
+ /**
1234
+ * Filter which Sessions to update
1235
+ */
1236
+ where?: Prisma.SessionWhereInput;
1237
+ /**
1238
+ * Limit how many Sessions to update.
1239
+ */
1240
+ limit?: number;
1241
+ };
1242
+ /**
1243
+ * Session updateManyAndReturn
1244
+ */
1245
+ export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1246
+ /**
1247
+ * Select specific fields to fetch from the Session
1248
+ */
1249
+ select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null;
1250
+ /**
1251
+ * Omit specific fields from the Session
1252
+ */
1253
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1254
+ /**
1255
+ * The data used to update Sessions.
1256
+ */
1257
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1258
+ /**
1259
+ * Filter which Sessions to update
1260
+ */
1261
+ where?: Prisma.SessionWhereInput;
1262
+ /**
1263
+ * Limit how many Sessions to update.
1264
+ */
1265
+ limit?: number;
1266
+ /**
1267
+ * Choose, which related nodes to fetch as well
1268
+ */
1269
+ include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1270
+ };
1271
+ /**
1272
+ * Session upsert
1273
+ */
1274
+ export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * Select specific fields to fetch from the Session
1277
+ */
1278
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1279
+ /**
1280
+ * Omit specific fields from the Session
1281
+ */
1282
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1283
+ /**
1284
+ * Choose, which related nodes to fetch as well
1285
+ */
1286
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1287
+ /**
1288
+ * The filter to search for the Session to update in case it exists.
1289
+ */
1290
+ where: Prisma.SessionWhereUniqueInput;
1291
+ /**
1292
+ * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
1293
+ */
1294
+ create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1295
+ /**
1296
+ * In case the Session was found with the provided `where` argument, update it with this data.
1297
+ */
1298
+ update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1299
+ };
1300
+ /**
1301
+ * Session delete
1302
+ */
1303
+ export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * Select specific fields to fetch from the Session
1306
+ */
1307
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1308
+ /**
1309
+ * Omit specific fields from the Session
1310
+ */
1311
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1312
+ /**
1313
+ * Choose, which related nodes to fetch as well
1314
+ */
1315
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1316
+ /**
1317
+ * Filter which Session to delete.
1318
+ */
1319
+ where: Prisma.SessionWhereUniqueInput;
1320
+ };
1321
+ /**
1322
+ * Session deleteMany
1323
+ */
1324
+ export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
+ /**
1326
+ * Filter which Sessions to delete
1327
+ */
1328
+ where?: Prisma.SessionWhereInput;
1329
+ /**
1330
+ * Limit how many Sessions to delete.
1331
+ */
1332
+ limit?: number;
1333
+ };
1334
+ /**
1335
+ * Session without action
1336
+ */
1337
+ export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1338
+ /**
1339
+ * Select specific fields to fetch from the Session
1340
+ */
1341
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1342
+ /**
1343
+ * Omit specific fields from the Session
1344
+ */
1345
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1346
+ /**
1347
+ * Choose, which related nodes to fetch as well
1348
+ */
1349
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1350
+ };
1351
+ //# sourceMappingURL=Session.d.ts.map