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