@goscribe/server 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/dist/context.d.ts +14 -1
  2. package/dist/context.js +23 -2
  3. package/dist/generated/prisma/client.d.ts +224 -0
  4. package/dist/generated/prisma/client.js +34 -0
  5. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  6. package/dist/generated/prisma/commonInputTypes.js +10 -0
  7. package/dist/generated/prisma/enums.d.ts +67 -0
  8. package/dist/generated/prisma/enums.js +66 -0
  9. package/dist/generated/prisma/internal/class.d.ts +539 -0
  10. package/dist/generated/prisma/internal/class.js +49 -0
  11. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  12. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  13. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  14. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  15. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  16. package/dist/generated/prisma/models/Artifact.js +1 -0
  17. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  18. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  19. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  20. package/dist/generated/prisma/models/Channel.js +1 -0
  21. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  22. package/dist/generated/prisma/models/Chat.js +1 -0
  23. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  24. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  25. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  26. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  27. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  28. package/dist/generated/prisma/models/FileAsset.js +1 -0
  29. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  30. package/dist/generated/prisma/models/Flashcard.js +1 -0
  31. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  32. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  33. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  34. package/dist/generated/prisma/models/Folder.js +1 -0
  35. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  36. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  37. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  38. package/dist/generated/prisma/models/Invoice.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  40. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  43. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  44. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  45. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  46. package/dist/generated/prisma/models/Notification.js +1 -0
  47. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  48. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  49. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  50. package/dist/generated/prisma/models/Plan.js +1 -0
  51. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  52. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  53. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  54. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  55. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  56. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  57. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  58. package/dist/generated/prisma/models/Role.js +1 -0
  59. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  60. package/dist/generated/prisma/models/Session.js +1 -0
  61. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  62. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  64. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  65. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  66. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  67. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  68. package/dist/generated/prisma/models/Subscription.js +1 -0
  69. package/dist/generated/prisma/models/User.d.ts +7559 -0
  70. package/dist/generated/prisma/models/User.js +1 -0
  71. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  72. package/dist/generated/prisma/models/UserCredit.js +1 -0
  73. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  74. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  76. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  78. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  79. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  80. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  81. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  82. package/dist/generated/prisma/models/Workspace.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  84. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  86. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  87. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  88. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  89. package/dist/generated/prisma/models.d.ts +39 -0
  90. package/dist/generated/prisma/models.js +1 -0
  91. package/dist/lib/ai/index.d.ts +3 -2
  92. package/dist/lib/ai/index.js +3 -2
  93. package/dist/lib/ai/llm-client.d.ts +1 -0
  94. package/dist/lib/ai/llm-client.js +17 -0
  95. package/dist/routers/_app.d.ts +40 -80
  96. package/dist/routers/auth.js +1 -1
  97. package/dist/routers/flashcards.d.ts +12 -1
  98. package/dist/routers/payment.d.ts +1 -12
  99. package/dist/routers/workspace.d.ts +27 -67
  100. package/dist/routers/workspace.js +1 -0
  101. package/dist/services/billing/payment.service.d.ts +1 -12
  102. package/dist/services/billing/payment.service.js +3 -6
  103. package/dist/services/billing/usage.service.d.ts +30 -10
  104. package/dist/services/billing/usage.service.js +87 -15
  105. package/dist/services/content/copilot.service.js +15 -29
  106. package/dist/services/content/flashcard-progress.service.js +9 -9
  107. package/dist/services/content/flashcard.service.d.ts +45 -1
  108. package/dist/services/content/flashcard.service.js +81 -68
  109. package/dist/services/content/media-analysis.service.js +27 -27
  110. package/dist/services/content/worksheet-generation.service.test.js +2 -2
  111. package/dist/services/workspace/workspace.service.d.ts +23 -67
  112. package/dist/services/workspace/workspace.service.js +69 -62
  113. package/dist/src/context.d.ts +27 -0
  114. package/dist/src/context.js +33 -0
  115. package/dist/src/index.d.ts +3 -0
  116. package/dist/src/index.js +1 -0
  117. package/dist/src/lib/ai/config.d.ts +20 -0
  118. package/dist/src/lib/ai/config.js +31 -0
  119. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  120. package/dist/src/lib/ai/embedding-client.js +30 -0
  121. package/dist/src/lib/ai/index.d.ts +48 -0
  122. package/dist/src/lib/ai/index.js +29 -0
  123. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  124. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  125. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  126. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  127. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  128. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  129. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  130. package/dist/src/lib/ai/json-parse.js +34 -0
  131. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  132. package/dist/src/lib/ai/llm-client.js +36 -0
  133. package/dist/src/lib/ai/mock.d.ts +2 -0
  134. package/dist/src/lib/ai/mock.js +10 -0
  135. package/dist/src/lib/ai/types.d.ts +9 -0
  136. package/dist/src/lib/ai/types.js +1 -0
  137. package/dist/src/lib/auth.d.ts +36 -0
  138. package/dist/src/lib/auth.js +117 -0
  139. package/dist/src/lib/chunking.d.ts +19 -0
  140. package/dist/src/lib/chunking.js +47 -0
  141. package/dist/src/lib/constants.d.ts +13 -0
  142. package/dist/src/lib/constants.js +12 -0
  143. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  144. package/dist/src/lib/curated-kb-seed.js +155 -0
  145. package/dist/src/lib/email.d.ts +11 -0
  146. package/dist/src/lib/email.js +152 -0
  147. package/dist/src/lib/embeddings.d.ts +2 -0
  148. package/dist/src/lib/embeddings.js +1 -0
  149. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  150. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  151. package/dist/src/lib/env.d.ts +41 -0
  152. package/dist/src/lib/env.js +57 -0
  153. package/dist/src/lib/errors.d.ts +33 -0
  154. package/dist/src/lib/errors.js +78 -0
  155. package/dist/src/lib/file.d.ts +0 -0
  156. package/dist/src/lib/file.js +1 -0
  157. package/dist/src/lib/inference.d.ts +1 -0
  158. package/dist/src/lib/inference.js +1 -0
  159. package/dist/src/lib/kb-meta.d.ts +8 -0
  160. package/dist/src/lib/kb-meta.js +77 -0
  161. package/dist/src/lib/logger.d.ts +62 -0
  162. package/dist/src/lib/logger.js +364 -0
  163. package/dist/src/lib/pdf.d.ts +11 -0
  164. package/dist/src/lib/pdf.js +11 -0
  165. package/dist/src/lib/prisma.d.ts +3 -0
  166. package/dist/src/lib/prisma.js +15 -0
  167. package/dist/src/lib/pusher.d.ts +38 -0
  168. package/dist/src/lib/pusher.js +170 -0
  169. package/dist/src/lib/retry.d.ts +15 -0
  170. package/dist/src/lib/retry.js +37 -0
  171. package/dist/src/lib/storage.d.ts +11 -0
  172. package/dist/src/lib/storage.js +71 -0
  173. package/dist/src/lib/stripe.d.ts +10 -0
  174. package/dist/src/lib/stripe.js +36 -0
  175. package/dist/src/lib/validation.d.ts +51 -0
  176. package/dist/src/lib/validation.js +64 -0
  177. package/dist/src/lib/workspace-kb.d.ts +5 -0
  178. package/dist/src/lib/workspace-kb.js +7 -0
  179. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  180. package/dist/src/repositories/artifact.repository.js +40 -0
  181. package/dist/src/repositories/base.repository.d.ts +14 -0
  182. package/dist/src/repositories/base.repository.js +14 -0
  183. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  184. package/dist/src/repositories/invitation.repository.js +44 -0
  185. package/dist/src/repositories/notification.repository.d.ts +76 -0
  186. package/dist/src/repositories/notification.repository.js +44 -0
  187. package/dist/src/repositories/user.repository.d.ts +84 -0
  188. package/dist/src/repositories/user.repository.js +37 -0
  189. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  190. package/dist/src/repositories/workspace-member.repository.js +31 -0
  191. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  192. package/dist/src/repositories/workspace.repository.js +79 -0
  193. package/dist/src/routers/_app.d.ts +3464 -0
  194. package/dist/src/routers/_app.js +36 -0
  195. package/dist/src/routers/admin.d.ts +358 -0
  196. package/dist/src/routers/admin.js +105 -0
  197. package/dist/src/routers/annotations.d.ts +219 -0
  198. package/dist/src/routers/annotations.js +29 -0
  199. package/dist/src/routers/artifactVersions.d.ts +65 -0
  200. package/dist/src/routers/artifactVersions.js +14 -0
  201. package/dist/src/routers/auth.d.ts +161 -0
  202. package/dist/src/routers/auth.js +97 -0
  203. package/dist/src/routers/chat.d.ts +170 -0
  204. package/dist/src/routers/chat.js +32 -0
  205. package/dist/src/routers/copilot.d.ts +200 -0
  206. package/dist/src/routers/copilot.js +52 -0
  207. package/dist/src/routers/flashcards.d.ts +336 -0
  208. package/dist/src/routers/flashcards.js +93 -0
  209. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  210. package/dist/src/routers/knowledgeBase.js +118 -0
  211. package/dist/src/routers/members.d.ts +169 -0
  212. package/dist/src/routers/members.js +47 -0
  213. package/dist/src/routers/notifications.d.ts +99 -0
  214. package/dist/src/routers/notifications.js +25 -0
  215. package/dist/src/routers/payment.d.ts +80 -0
  216. package/dist/src/routers/payment.js +21 -0
  217. package/dist/src/routers/podcast.d.ts +287 -0
  218. package/dist/src/routers/podcast.js +34 -0
  219. package/dist/src/routers/studyguide.d.ts +36 -0
  220. package/dist/src/routers/studyguide.js +8 -0
  221. package/dist/src/routers/worksheets.d.ts +429 -0
  222. package/dist/src/routers/worksheets.js +139 -0
  223. package/dist/src/routers/workspace.d.ts +563 -0
  224. package/dist/src/routers/workspace.js +104 -0
  225. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  226. package/dist/src/scripts/purge-deleted-users.js +148 -0
  227. package/dist/src/server.d.ts +1 -0
  228. package/dist/src/server.js +190 -0
  229. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  230. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  231. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  232. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  233. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  234. package/dist/src/services/activity/activity-log.service.js +276 -0
  235. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  236. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  237. package/dist/src/services/admin/admin.service.d.ts +270 -0
  238. package/dist/src/services/admin/admin.service.js +476 -0
  239. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  240. package/dist/src/services/ai/ai-session.service.js +4 -0
  241. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  242. package/dist/src/services/artifacts/annotation.service.js +154 -0
  243. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  244. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  245. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  246. package/dist/src/services/artifacts/chat.service.js +182 -0
  247. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  248. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  249. package/dist/src/services/auth/auth.service.d.ts +94 -0
  250. package/dist/src/services/auth/auth.service.js +368 -0
  251. package/dist/src/services/base.service.d.ts +14 -0
  252. package/dist/src/services/base.service.js +14 -0
  253. package/dist/src/services/billing/payment.service.d.ts +44 -0
  254. package/dist/src/services/billing/payment.service.js +365 -0
  255. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  256. package/dist/src/services/billing/subscription.service.js +654 -0
  257. package/dist/src/services/billing/usage.service.d.ts +47 -0
  258. package/dist/src/services/billing/usage.service.js +149 -0
  259. package/dist/src/services/content/copilot.service.d.ts +113 -0
  260. package/dist/src/services/content/copilot.service.js +439 -0
  261. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  262. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  263. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  264. package/dist/src/services/content/flashcard.service.js +339 -0
  265. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  266. package/dist/src/services/content/media-analysis.service.js +404 -0
  267. package/dist/src/services/content/podcast.service.d.ts +267 -0
  268. package/dist/src/services/content/podcast.service.js +653 -0
  269. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  270. package/dist/src/services/content/worksheet-content.service.js +84 -0
  271. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  272. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  273. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  274. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  275. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  276. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  277. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  278. package/dist/src/services/content/worksheet.service.js +599 -0
  279. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  280. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  281. package/dist/src/services/members/invitation.service.d.ts +66 -0
  282. package/dist/src/services/members/invitation.service.js +348 -0
  283. package/dist/src/services/members/member.service.d.ts +36 -0
  284. package/dist/src/services/members/member.service.js +193 -0
  285. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  286. package/dist/src/services/notifications/notification.service.js +550 -0
  287. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  288. package/dist/src/services/notifications/notification.service.test.js +87 -0
  289. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  290. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  291. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  292. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  293. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  294. package/dist/src/services/workspace/workspace.service.js +401 -0
  295. package/dist/src/trpc.d.ts +60 -0
  296. package/dist/src/trpc.js +217 -0
  297. package/dist/src/types/index.d.ts +126 -0
  298. package/dist/src/types/index.js +1 -0
  299. package/dist/trpc.d.ts +12 -4
  300. package/dist/trpc.js +5 -11
  301. package/package.json +8 -9
  302. package/prisma/schema.prisma +3 -4
  303. package/prisma/seed.mjs +5 -2
  304. package/prisma.config.ts +16 -0
  305. package/src/context.ts +33 -3
  306. package/src/lib/ai/index.ts +3 -0
  307. package/src/lib/ai/llm-client.ts +23 -0
  308. package/src/lib/prisma.ts +18 -9
  309. package/src/routers/auth.ts +1 -1
  310. package/src/routers/workspace.ts +4 -0
  311. package/src/scripts/purge-deleted-users.ts +1 -3
  312. package/src/services/billing/payment.service.ts +3 -6
  313. package/src/services/billing/usage.service.ts +190 -77
  314. package/src/services/content/copilot.service.ts +23 -32
  315. package/src/services/content/flashcard-progress.service.ts +12 -9
  316. package/src/services/content/flashcard.service.ts +89 -66
  317. package/src/services/content/media-analysis.service.ts +34 -29
  318. package/src/services/content/worksheet-generation.service.test.ts +2 -2
  319. package/src/services/workspace/workspace.service.ts +73 -66
  320. package/src/trpc.ts +5 -13
  321. package/tsconfig.json +3 -0
@@ -0,0 +1,1319 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums";
3
+ import type * as Prisma from "../internal/prismaNamespace";
4
+ /**
5
+ * Model IdempotencyRecord
6
+ *
7
+ */
8
+ export type IdempotencyRecordModel = runtime.Types.Result.DefaultSelection<Prisma.$IdempotencyRecordPayload>;
9
+ export type AggregateIdempotencyRecord = {
10
+ _count: IdempotencyRecordCountAggregateOutputType | null;
11
+ _min: IdempotencyRecordMinAggregateOutputType | null;
12
+ _max: IdempotencyRecordMaxAggregateOutputType | null;
13
+ };
14
+ export type IdempotencyRecordMinAggregateOutputType = {
15
+ id: string | null;
16
+ userId: string | null;
17
+ planId: string | null;
18
+ resourceType: $Enums.ArtifactType | null;
19
+ stripeSessionId: string | null;
20
+ status: string | null;
21
+ activeLockKey: string | null;
22
+ createdAt: Date | null;
23
+ updatedAt: Date | null;
24
+ };
25
+ export type IdempotencyRecordMaxAggregateOutputType = {
26
+ id: string | null;
27
+ userId: string | null;
28
+ planId: string | null;
29
+ resourceType: $Enums.ArtifactType | null;
30
+ stripeSessionId: string | null;
31
+ status: string | null;
32
+ activeLockKey: string | null;
33
+ createdAt: Date | null;
34
+ updatedAt: Date | null;
35
+ };
36
+ export type IdempotencyRecordCountAggregateOutputType = {
37
+ id: number;
38
+ userId: number;
39
+ planId: number;
40
+ resourceType: number;
41
+ stripeSessionId: number;
42
+ status: number;
43
+ activeLockKey: number;
44
+ createdAt: number;
45
+ updatedAt: number;
46
+ _all: number;
47
+ };
48
+ export type IdempotencyRecordMinAggregateInputType = {
49
+ id?: true;
50
+ userId?: true;
51
+ planId?: true;
52
+ resourceType?: true;
53
+ stripeSessionId?: true;
54
+ status?: true;
55
+ activeLockKey?: true;
56
+ createdAt?: true;
57
+ updatedAt?: true;
58
+ };
59
+ export type IdempotencyRecordMaxAggregateInputType = {
60
+ id?: true;
61
+ userId?: true;
62
+ planId?: true;
63
+ resourceType?: true;
64
+ stripeSessionId?: true;
65
+ status?: true;
66
+ activeLockKey?: true;
67
+ createdAt?: true;
68
+ updatedAt?: true;
69
+ };
70
+ export type IdempotencyRecordCountAggregateInputType = {
71
+ id?: true;
72
+ userId?: true;
73
+ planId?: true;
74
+ resourceType?: true;
75
+ stripeSessionId?: true;
76
+ status?: true;
77
+ activeLockKey?: true;
78
+ createdAt?: true;
79
+ updatedAt?: true;
80
+ _all?: true;
81
+ };
82
+ export type IdempotencyRecordAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
83
+ /**
84
+ * Filter which IdempotencyRecord to aggregate.
85
+ */
86
+ where?: Prisma.IdempotencyRecordWhereInput;
87
+ /**
88
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
89
+ *
90
+ * Determine the order of IdempotencyRecords to fetch.
91
+ */
92
+ orderBy?: Prisma.IdempotencyRecordOrderByWithRelationInput | Prisma.IdempotencyRecordOrderByWithRelationInput[];
93
+ /**
94
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
95
+ *
96
+ * Sets the start position
97
+ */
98
+ cursor?: Prisma.IdempotencyRecordWhereUniqueInput;
99
+ /**
100
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
101
+ *
102
+ * Take `±n` IdempotencyRecords from the position of the cursor.
103
+ */
104
+ take?: number;
105
+ /**
106
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
107
+ *
108
+ * Skip the first `n` IdempotencyRecords.
109
+ */
110
+ skip?: number;
111
+ /**
112
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
113
+ *
114
+ * Count returned IdempotencyRecords
115
+ **/
116
+ _count?: true | IdempotencyRecordCountAggregateInputType;
117
+ /**
118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
119
+ *
120
+ * Select which fields to find the minimum value
121
+ **/
122
+ _min?: IdempotencyRecordMinAggregateInputType;
123
+ /**
124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
125
+ *
126
+ * Select which fields to find the maximum value
127
+ **/
128
+ _max?: IdempotencyRecordMaxAggregateInputType;
129
+ };
130
+ export type GetIdempotencyRecordAggregateType<T extends IdempotencyRecordAggregateArgs> = {
131
+ [P in keyof T & keyof AggregateIdempotencyRecord]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateIdempotencyRecord[P]> : Prisma.GetScalarType<T[P], AggregateIdempotencyRecord[P]>;
132
+ };
133
+ export type IdempotencyRecordGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
134
+ where?: Prisma.IdempotencyRecordWhereInput;
135
+ orderBy?: Prisma.IdempotencyRecordOrderByWithAggregationInput | Prisma.IdempotencyRecordOrderByWithAggregationInput[];
136
+ by: Prisma.IdempotencyRecordScalarFieldEnum[] | Prisma.IdempotencyRecordScalarFieldEnum;
137
+ having?: Prisma.IdempotencyRecordScalarWhereWithAggregatesInput;
138
+ take?: number;
139
+ skip?: number;
140
+ _count?: IdempotencyRecordCountAggregateInputType | true;
141
+ _min?: IdempotencyRecordMinAggregateInputType;
142
+ _max?: IdempotencyRecordMaxAggregateInputType;
143
+ };
144
+ export type IdempotencyRecordGroupByOutputType = {
145
+ id: string;
146
+ userId: string;
147
+ planId: string | null;
148
+ resourceType: $Enums.ArtifactType | null;
149
+ stripeSessionId: string | null;
150
+ status: string;
151
+ activeLockKey: string | null;
152
+ createdAt: Date;
153
+ updatedAt: Date;
154
+ _count: IdempotencyRecordCountAggregateOutputType | null;
155
+ _min: IdempotencyRecordMinAggregateOutputType | null;
156
+ _max: IdempotencyRecordMaxAggregateOutputType | null;
157
+ };
158
+ export type GetIdempotencyRecordGroupByPayload<T extends IdempotencyRecordGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<IdempotencyRecordGroupByOutputType, T['by']> & {
159
+ [P in ((keyof T) & (keyof IdempotencyRecordGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], IdempotencyRecordGroupByOutputType[P]> : Prisma.GetScalarType<T[P], IdempotencyRecordGroupByOutputType[P]>;
160
+ }>>;
161
+ export type IdempotencyRecordWhereInput = {
162
+ AND?: Prisma.IdempotencyRecordWhereInput | Prisma.IdempotencyRecordWhereInput[];
163
+ OR?: Prisma.IdempotencyRecordWhereInput[];
164
+ NOT?: Prisma.IdempotencyRecordWhereInput | Prisma.IdempotencyRecordWhereInput[];
165
+ id?: Prisma.StringFilter<"IdempotencyRecord"> | string;
166
+ userId?: Prisma.StringFilter<"IdempotencyRecord"> | string;
167
+ planId?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
168
+ resourceType?: Prisma.EnumArtifactTypeNullableFilter<"IdempotencyRecord"> | $Enums.ArtifactType | null;
169
+ stripeSessionId?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
170
+ status?: Prisma.StringFilter<"IdempotencyRecord"> | string;
171
+ activeLockKey?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
172
+ createdAt?: Prisma.DateTimeFilter<"IdempotencyRecord"> | Date | string;
173
+ updatedAt?: Prisma.DateTimeFilter<"IdempotencyRecord"> | Date | string;
174
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
175
+ };
176
+ export type IdempotencyRecordOrderByWithRelationInput = {
177
+ id?: Prisma.SortOrder;
178
+ userId?: Prisma.SortOrder;
179
+ planId?: Prisma.SortOrderInput | Prisma.SortOrder;
180
+ resourceType?: Prisma.SortOrderInput | Prisma.SortOrder;
181
+ stripeSessionId?: Prisma.SortOrderInput | Prisma.SortOrder;
182
+ status?: Prisma.SortOrder;
183
+ activeLockKey?: Prisma.SortOrderInput | Prisma.SortOrder;
184
+ createdAt?: Prisma.SortOrder;
185
+ updatedAt?: Prisma.SortOrder;
186
+ user?: Prisma.UserOrderByWithRelationInput;
187
+ };
188
+ export type IdempotencyRecordWhereUniqueInput = Prisma.AtLeast<{
189
+ id?: string;
190
+ activeLockKey?: string;
191
+ AND?: Prisma.IdempotencyRecordWhereInput | Prisma.IdempotencyRecordWhereInput[];
192
+ OR?: Prisma.IdempotencyRecordWhereInput[];
193
+ NOT?: Prisma.IdempotencyRecordWhereInput | Prisma.IdempotencyRecordWhereInput[];
194
+ userId?: Prisma.StringFilter<"IdempotencyRecord"> | string;
195
+ planId?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
196
+ resourceType?: Prisma.EnumArtifactTypeNullableFilter<"IdempotencyRecord"> | $Enums.ArtifactType | null;
197
+ stripeSessionId?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
198
+ status?: Prisma.StringFilter<"IdempotencyRecord"> | string;
199
+ createdAt?: Prisma.DateTimeFilter<"IdempotencyRecord"> | Date | string;
200
+ updatedAt?: Prisma.DateTimeFilter<"IdempotencyRecord"> | Date | string;
201
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
202
+ }, "id" | "activeLockKey">;
203
+ export type IdempotencyRecordOrderByWithAggregationInput = {
204
+ id?: Prisma.SortOrder;
205
+ userId?: Prisma.SortOrder;
206
+ planId?: Prisma.SortOrderInput | Prisma.SortOrder;
207
+ resourceType?: Prisma.SortOrderInput | Prisma.SortOrder;
208
+ stripeSessionId?: Prisma.SortOrderInput | Prisma.SortOrder;
209
+ status?: Prisma.SortOrder;
210
+ activeLockKey?: Prisma.SortOrderInput | Prisma.SortOrder;
211
+ createdAt?: Prisma.SortOrder;
212
+ updatedAt?: Prisma.SortOrder;
213
+ _count?: Prisma.IdempotencyRecordCountOrderByAggregateInput;
214
+ _max?: Prisma.IdempotencyRecordMaxOrderByAggregateInput;
215
+ _min?: Prisma.IdempotencyRecordMinOrderByAggregateInput;
216
+ };
217
+ export type IdempotencyRecordScalarWhereWithAggregatesInput = {
218
+ AND?: Prisma.IdempotencyRecordScalarWhereWithAggregatesInput | Prisma.IdempotencyRecordScalarWhereWithAggregatesInput[];
219
+ OR?: Prisma.IdempotencyRecordScalarWhereWithAggregatesInput[];
220
+ NOT?: Prisma.IdempotencyRecordScalarWhereWithAggregatesInput | Prisma.IdempotencyRecordScalarWhereWithAggregatesInput[];
221
+ id?: Prisma.StringWithAggregatesFilter<"IdempotencyRecord"> | string;
222
+ userId?: Prisma.StringWithAggregatesFilter<"IdempotencyRecord"> | string;
223
+ planId?: Prisma.StringNullableWithAggregatesFilter<"IdempotencyRecord"> | string | null;
224
+ resourceType?: Prisma.EnumArtifactTypeNullableWithAggregatesFilter<"IdempotencyRecord"> | $Enums.ArtifactType | null;
225
+ stripeSessionId?: Prisma.StringNullableWithAggregatesFilter<"IdempotencyRecord"> | string | null;
226
+ status?: Prisma.StringWithAggregatesFilter<"IdempotencyRecord"> | string;
227
+ activeLockKey?: Prisma.StringNullableWithAggregatesFilter<"IdempotencyRecord"> | string | null;
228
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"IdempotencyRecord"> | Date | string;
229
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"IdempotencyRecord"> | Date | string;
230
+ };
231
+ export type IdempotencyRecordCreateInput = {
232
+ id?: string;
233
+ planId?: string | null;
234
+ resourceType?: $Enums.ArtifactType | null;
235
+ stripeSessionId?: string | null;
236
+ status?: string;
237
+ activeLockKey?: string | null;
238
+ createdAt?: Date | string;
239
+ updatedAt?: Date | string;
240
+ user: Prisma.UserCreateNestedOneWithoutIdempotencyRecordsInput;
241
+ };
242
+ export type IdempotencyRecordUncheckedCreateInput = {
243
+ id?: string;
244
+ userId: string;
245
+ planId?: string | null;
246
+ resourceType?: $Enums.ArtifactType | null;
247
+ stripeSessionId?: string | null;
248
+ status?: string;
249
+ activeLockKey?: string | null;
250
+ createdAt?: Date | string;
251
+ updatedAt?: Date | string;
252
+ };
253
+ export type IdempotencyRecordUpdateInput = {
254
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
255
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
256
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
257
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
258
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
259
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ user?: Prisma.UserUpdateOneRequiredWithoutIdempotencyRecordsNestedInput;
263
+ };
264
+ export type IdempotencyRecordUncheckedUpdateInput = {
265
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
266
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
268
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
269
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
270
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
271
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
272
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
273
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
274
+ };
275
+ export type IdempotencyRecordCreateManyInput = {
276
+ id?: string;
277
+ userId: string;
278
+ planId?: string | null;
279
+ resourceType?: $Enums.ArtifactType | null;
280
+ stripeSessionId?: string | null;
281
+ status?: string;
282
+ activeLockKey?: string | null;
283
+ createdAt?: Date | string;
284
+ updatedAt?: Date | string;
285
+ };
286
+ export type IdempotencyRecordUpdateManyMutationInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
289
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
290
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
291
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
293
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
294
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
295
+ };
296
+ export type IdempotencyRecordUncheckedUpdateManyInput = {
297
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
298
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
300
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
301
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
302
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
303
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ };
307
+ export type IdempotencyRecordListRelationFilter = {
308
+ every?: Prisma.IdempotencyRecordWhereInput;
309
+ some?: Prisma.IdempotencyRecordWhereInput;
310
+ none?: Prisma.IdempotencyRecordWhereInput;
311
+ };
312
+ export type IdempotencyRecordOrderByRelationAggregateInput = {
313
+ _count?: Prisma.SortOrder;
314
+ };
315
+ export type IdempotencyRecordCountOrderByAggregateInput = {
316
+ id?: Prisma.SortOrder;
317
+ userId?: Prisma.SortOrder;
318
+ planId?: Prisma.SortOrder;
319
+ resourceType?: Prisma.SortOrder;
320
+ stripeSessionId?: Prisma.SortOrder;
321
+ status?: Prisma.SortOrder;
322
+ activeLockKey?: Prisma.SortOrder;
323
+ createdAt?: Prisma.SortOrder;
324
+ updatedAt?: Prisma.SortOrder;
325
+ };
326
+ export type IdempotencyRecordMaxOrderByAggregateInput = {
327
+ id?: Prisma.SortOrder;
328
+ userId?: Prisma.SortOrder;
329
+ planId?: Prisma.SortOrder;
330
+ resourceType?: Prisma.SortOrder;
331
+ stripeSessionId?: Prisma.SortOrder;
332
+ status?: Prisma.SortOrder;
333
+ activeLockKey?: Prisma.SortOrder;
334
+ createdAt?: Prisma.SortOrder;
335
+ updatedAt?: Prisma.SortOrder;
336
+ };
337
+ export type IdempotencyRecordMinOrderByAggregateInput = {
338
+ id?: Prisma.SortOrder;
339
+ userId?: Prisma.SortOrder;
340
+ planId?: Prisma.SortOrder;
341
+ resourceType?: Prisma.SortOrder;
342
+ stripeSessionId?: Prisma.SortOrder;
343
+ status?: Prisma.SortOrder;
344
+ activeLockKey?: Prisma.SortOrder;
345
+ createdAt?: Prisma.SortOrder;
346
+ updatedAt?: Prisma.SortOrder;
347
+ };
348
+ export type IdempotencyRecordCreateNestedManyWithoutUserInput = {
349
+ create?: Prisma.XOR<Prisma.IdempotencyRecordCreateWithoutUserInput, Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput> | Prisma.IdempotencyRecordCreateWithoutUserInput[] | Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput[];
350
+ connectOrCreate?: Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput | Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput[];
351
+ createMany?: Prisma.IdempotencyRecordCreateManyUserInputEnvelope;
352
+ connect?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
353
+ };
354
+ export type IdempotencyRecordUncheckedCreateNestedManyWithoutUserInput = {
355
+ create?: Prisma.XOR<Prisma.IdempotencyRecordCreateWithoutUserInput, Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput> | Prisma.IdempotencyRecordCreateWithoutUserInput[] | Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput[];
356
+ connectOrCreate?: Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput | Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput[];
357
+ createMany?: Prisma.IdempotencyRecordCreateManyUserInputEnvelope;
358
+ connect?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
359
+ };
360
+ export type IdempotencyRecordUpdateManyWithoutUserNestedInput = {
361
+ create?: Prisma.XOR<Prisma.IdempotencyRecordCreateWithoutUserInput, Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput> | Prisma.IdempotencyRecordCreateWithoutUserInput[] | Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput[];
362
+ connectOrCreate?: Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput | Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput[];
363
+ upsert?: Prisma.IdempotencyRecordUpsertWithWhereUniqueWithoutUserInput | Prisma.IdempotencyRecordUpsertWithWhereUniqueWithoutUserInput[];
364
+ createMany?: Prisma.IdempotencyRecordCreateManyUserInputEnvelope;
365
+ set?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
366
+ disconnect?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
367
+ delete?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
368
+ connect?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
369
+ update?: Prisma.IdempotencyRecordUpdateWithWhereUniqueWithoutUserInput | Prisma.IdempotencyRecordUpdateWithWhereUniqueWithoutUserInput[];
370
+ updateMany?: Prisma.IdempotencyRecordUpdateManyWithWhereWithoutUserInput | Prisma.IdempotencyRecordUpdateManyWithWhereWithoutUserInput[];
371
+ deleteMany?: Prisma.IdempotencyRecordScalarWhereInput | Prisma.IdempotencyRecordScalarWhereInput[];
372
+ };
373
+ export type IdempotencyRecordUncheckedUpdateManyWithoutUserNestedInput = {
374
+ create?: Prisma.XOR<Prisma.IdempotencyRecordCreateWithoutUserInput, Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput> | Prisma.IdempotencyRecordCreateWithoutUserInput[] | Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput[];
375
+ connectOrCreate?: Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput | Prisma.IdempotencyRecordCreateOrConnectWithoutUserInput[];
376
+ upsert?: Prisma.IdempotencyRecordUpsertWithWhereUniqueWithoutUserInput | Prisma.IdempotencyRecordUpsertWithWhereUniqueWithoutUserInput[];
377
+ createMany?: Prisma.IdempotencyRecordCreateManyUserInputEnvelope;
378
+ set?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
379
+ disconnect?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
380
+ delete?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
381
+ connect?: Prisma.IdempotencyRecordWhereUniqueInput | Prisma.IdempotencyRecordWhereUniqueInput[];
382
+ update?: Prisma.IdempotencyRecordUpdateWithWhereUniqueWithoutUserInput | Prisma.IdempotencyRecordUpdateWithWhereUniqueWithoutUserInput[];
383
+ updateMany?: Prisma.IdempotencyRecordUpdateManyWithWhereWithoutUserInput | Prisma.IdempotencyRecordUpdateManyWithWhereWithoutUserInput[];
384
+ deleteMany?: Prisma.IdempotencyRecordScalarWhereInput | Prisma.IdempotencyRecordScalarWhereInput[];
385
+ };
386
+ export type NullableEnumArtifactTypeFieldUpdateOperationsInput = {
387
+ set?: $Enums.ArtifactType | null;
388
+ };
389
+ export type IdempotencyRecordCreateWithoutUserInput = {
390
+ id?: string;
391
+ planId?: string | null;
392
+ resourceType?: $Enums.ArtifactType | null;
393
+ stripeSessionId?: string | null;
394
+ status?: string;
395
+ activeLockKey?: string | null;
396
+ createdAt?: Date | string;
397
+ updatedAt?: Date | string;
398
+ };
399
+ export type IdempotencyRecordUncheckedCreateWithoutUserInput = {
400
+ id?: string;
401
+ planId?: string | null;
402
+ resourceType?: $Enums.ArtifactType | null;
403
+ stripeSessionId?: string | null;
404
+ status?: string;
405
+ activeLockKey?: string | null;
406
+ createdAt?: Date | string;
407
+ updatedAt?: Date | string;
408
+ };
409
+ export type IdempotencyRecordCreateOrConnectWithoutUserInput = {
410
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
411
+ create: Prisma.XOR<Prisma.IdempotencyRecordCreateWithoutUserInput, Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput>;
412
+ };
413
+ export type IdempotencyRecordCreateManyUserInputEnvelope = {
414
+ data: Prisma.IdempotencyRecordCreateManyUserInput | Prisma.IdempotencyRecordCreateManyUserInput[];
415
+ skipDuplicates?: boolean;
416
+ };
417
+ export type IdempotencyRecordUpsertWithWhereUniqueWithoutUserInput = {
418
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
419
+ update: Prisma.XOR<Prisma.IdempotencyRecordUpdateWithoutUserInput, Prisma.IdempotencyRecordUncheckedUpdateWithoutUserInput>;
420
+ create: Prisma.XOR<Prisma.IdempotencyRecordCreateWithoutUserInput, Prisma.IdempotencyRecordUncheckedCreateWithoutUserInput>;
421
+ };
422
+ export type IdempotencyRecordUpdateWithWhereUniqueWithoutUserInput = {
423
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
424
+ data: Prisma.XOR<Prisma.IdempotencyRecordUpdateWithoutUserInput, Prisma.IdempotencyRecordUncheckedUpdateWithoutUserInput>;
425
+ };
426
+ export type IdempotencyRecordUpdateManyWithWhereWithoutUserInput = {
427
+ where: Prisma.IdempotencyRecordScalarWhereInput;
428
+ data: Prisma.XOR<Prisma.IdempotencyRecordUpdateManyMutationInput, Prisma.IdempotencyRecordUncheckedUpdateManyWithoutUserInput>;
429
+ };
430
+ export type IdempotencyRecordScalarWhereInput = {
431
+ AND?: Prisma.IdempotencyRecordScalarWhereInput | Prisma.IdempotencyRecordScalarWhereInput[];
432
+ OR?: Prisma.IdempotencyRecordScalarWhereInput[];
433
+ NOT?: Prisma.IdempotencyRecordScalarWhereInput | Prisma.IdempotencyRecordScalarWhereInput[];
434
+ id?: Prisma.StringFilter<"IdempotencyRecord"> | string;
435
+ userId?: Prisma.StringFilter<"IdempotencyRecord"> | string;
436
+ planId?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
437
+ resourceType?: Prisma.EnumArtifactTypeNullableFilter<"IdempotencyRecord"> | $Enums.ArtifactType | null;
438
+ stripeSessionId?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
439
+ status?: Prisma.StringFilter<"IdempotencyRecord"> | string;
440
+ activeLockKey?: Prisma.StringNullableFilter<"IdempotencyRecord"> | string | null;
441
+ createdAt?: Prisma.DateTimeFilter<"IdempotencyRecord"> | Date | string;
442
+ updatedAt?: Prisma.DateTimeFilter<"IdempotencyRecord"> | Date | string;
443
+ };
444
+ export type IdempotencyRecordCreateManyUserInput = {
445
+ id?: string;
446
+ planId?: string | null;
447
+ resourceType?: $Enums.ArtifactType | null;
448
+ stripeSessionId?: string | null;
449
+ status?: string;
450
+ activeLockKey?: string | null;
451
+ createdAt?: Date | string;
452
+ updatedAt?: Date | string;
453
+ };
454
+ export type IdempotencyRecordUpdateWithoutUserInput = {
455
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
456
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
457
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
458
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
459
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
461
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
462
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
463
+ };
464
+ export type IdempotencyRecordUncheckedUpdateWithoutUserInput = {
465
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
466
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
467
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
468
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
469
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
470
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
472
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
473
+ };
474
+ export type IdempotencyRecordUncheckedUpdateManyWithoutUserInput = {
475
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
476
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
477
+ resourceType?: Prisma.NullableEnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType | null;
478
+ stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
479
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
480
+ activeLockKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
481
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
482
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
483
+ };
484
+ export type IdempotencyRecordSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
485
+ id?: boolean;
486
+ userId?: boolean;
487
+ planId?: boolean;
488
+ resourceType?: boolean;
489
+ stripeSessionId?: boolean;
490
+ status?: boolean;
491
+ activeLockKey?: boolean;
492
+ createdAt?: boolean;
493
+ updatedAt?: boolean;
494
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
495
+ }, ExtArgs["result"]["idempotencyRecord"]>;
496
+ export type IdempotencyRecordSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
497
+ id?: boolean;
498
+ userId?: boolean;
499
+ planId?: boolean;
500
+ resourceType?: boolean;
501
+ stripeSessionId?: boolean;
502
+ status?: boolean;
503
+ activeLockKey?: boolean;
504
+ createdAt?: boolean;
505
+ updatedAt?: boolean;
506
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
507
+ }, ExtArgs["result"]["idempotencyRecord"]>;
508
+ export type IdempotencyRecordSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
509
+ id?: boolean;
510
+ userId?: boolean;
511
+ planId?: boolean;
512
+ resourceType?: boolean;
513
+ stripeSessionId?: boolean;
514
+ status?: boolean;
515
+ activeLockKey?: boolean;
516
+ createdAt?: boolean;
517
+ updatedAt?: boolean;
518
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
519
+ }, ExtArgs["result"]["idempotencyRecord"]>;
520
+ export type IdempotencyRecordSelectScalar = {
521
+ id?: boolean;
522
+ userId?: boolean;
523
+ planId?: boolean;
524
+ resourceType?: boolean;
525
+ stripeSessionId?: boolean;
526
+ status?: boolean;
527
+ activeLockKey?: boolean;
528
+ createdAt?: boolean;
529
+ updatedAt?: boolean;
530
+ };
531
+ export type IdempotencyRecordOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "planId" | "resourceType" | "stripeSessionId" | "status" | "activeLockKey" | "createdAt" | "updatedAt", ExtArgs["result"]["idempotencyRecord"]>;
532
+ export type IdempotencyRecordInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
533
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
534
+ };
535
+ export type IdempotencyRecordIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
536
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
537
+ };
538
+ export type IdempotencyRecordIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
539
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
540
+ };
541
+ export type $IdempotencyRecordPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
542
+ name: "IdempotencyRecord";
543
+ objects: {
544
+ user: Prisma.$UserPayload<ExtArgs>;
545
+ };
546
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
547
+ id: string;
548
+ userId: string;
549
+ planId: string | null;
550
+ resourceType: $Enums.ArtifactType | null;
551
+ stripeSessionId: string | null;
552
+ status: string;
553
+ activeLockKey: string | null;
554
+ createdAt: Date;
555
+ updatedAt: Date;
556
+ }, ExtArgs["result"]["idempotencyRecord"]>;
557
+ composites: {};
558
+ };
559
+ export type IdempotencyRecordGetPayload<S extends boolean | null | undefined | IdempotencyRecordDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload, S>;
560
+ export type IdempotencyRecordCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<IdempotencyRecordFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
561
+ select?: IdempotencyRecordCountAggregateInputType | true;
562
+ };
563
+ export interface IdempotencyRecordDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
564
+ [K: symbol]: {
565
+ types: Prisma.TypeMap<ExtArgs>['model']['IdempotencyRecord'];
566
+ meta: {
567
+ name: 'IdempotencyRecord';
568
+ };
569
+ };
570
+ /**
571
+ * Find zero or one IdempotencyRecord that matches the filter.
572
+ * @param {IdempotencyRecordFindUniqueArgs} args - Arguments to find a IdempotencyRecord
573
+ * @example
574
+ * // Get one IdempotencyRecord
575
+ * const idempotencyRecord = await prisma.idempotencyRecord.findUnique({
576
+ * where: {
577
+ * // ... provide filter here
578
+ * }
579
+ * })
580
+ */
581
+ findUnique<T extends IdempotencyRecordFindUniqueArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordFindUniqueArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
582
+ /**
583
+ * Find one IdempotencyRecord that matches the filter or throw an error with `error.code='P2025'`
584
+ * if no matches were found.
585
+ * @param {IdempotencyRecordFindUniqueOrThrowArgs} args - Arguments to find a IdempotencyRecord
586
+ * @example
587
+ * // Get one IdempotencyRecord
588
+ * const idempotencyRecord = await prisma.idempotencyRecord.findUniqueOrThrow({
589
+ * where: {
590
+ * // ... provide filter here
591
+ * }
592
+ * })
593
+ */
594
+ findUniqueOrThrow<T extends IdempotencyRecordFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
595
+ /**
596
+ * Find the first IdempotencyRecord that matches the filter.
597
+ * Note, that providing `undefined` is treated as the value not being there.
598
+ * Read more here: https://pris.ly/d/null-undefined
599
+ * @param {IdempotencyRecordFindFirstArgs} args - Arguments to find a IdempotencyRecord
600
+ * @example
601
+ * // Get one IdempotencyRecord
602
+ * const idempotencyRecord = await prisma.idempotencyRecord.findFirst({
603
+ * where: {
604
+ * // ... provide filter here
605
+ * }
606
+ * })
607
+ */
608
+ findFirst<T extends IdempotencyRecordFindFirstArgs>(args?: Prisma.SelectSubset<T, IdempotencyRecordFindFirstArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
609
+ /**
610
+ * Find the first IdempotencyRecord that matches the filter or
611
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
612
+ * Note, that providing `undefined` is treated as the value not being there.
613
+ * Read more here: https://pris.ly/d/null-undefined
614
+ * @param {IdempotencyRecordFindFirstOrThrowArgs} args - Arguments to find a IdempotencyRecord
615
+ * @example
616
+ * // Get one IdempotencyRecord
617
+ * const idempotencyRecord = await prisma.idempotencyRecord.findFirstOrThrow({
618
+ * where: {
619
+ * // ... provide filter here
620
+ * }
621
+ * })
622
+ */
623
+ findFirstOrThrow<T extends IdempotencyRecordFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, IdempotencyRecordFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
624
+ /**
625
+ * Find zero or more IdempotencyRecords that matches the filter.
626
+ * Note, that providing `undefined` is treated as the value not being there.
627
+ * Read more here: https://pris.ly/d/null-undefined
628
+ * @param {IdempotencyRecordFindManyArgs} args - Arguments to filter and select certain fields only.
629
+ * @example
630
+ * // Get all IdempotencyRecords
631
+ * const idempotencyRecords = await prisma.idempotencyRecord.findMany()
632
+ *
633
+ * // Get first 10 IdempotencyRecords
634
+ * const idempotencyRecords = await prisma.idempotencyRecord.findMany({ take: 10 })
635
+ *
636
+ * // Only select the `id`
637
+ * const idempotencyRecordWithIdOnly = await prisma.idempotencyRecord.findMany({ select: { id: true } })
638
+ *
639
+ */
640
+ findMany<T extends IdempotencyRecordFindManyArgs>(args?: Prisma.SelectSubset<T, IdempotencyRecordFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
641
+ /**
642
+ * Create a IdempotencyRecord.
643
+ * @param {IdempotencyRecordCreateArgs} args - Arguments to create a IdempotencyRecord.
644
+ * @example
645
+ * // Create one IdempotencyRecord
646
+ * const IdempotencyRecord = await prisma.idempotencyRecord.create({
647
+ * data: {
648
+ * // ... data to create a IdempotencyRecord
649
+ * }
650
+ * })
651
+ *
652
+ */
653
+ create<T extends IdempotencyRecordCreateArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordCreateArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
654
+ /**
655
+ * Create many IdempotencyRecords.
656
+ * @param {IdempotencyRecordCreateManyArgs} args - Arguments to create many IdempotencyRecords.
657
+ * @example
658
+ * // Create many IdempotencyRecords
659
+ * const idempotencyRecord = await prisma.idempotencyRecord.createMany({
660
+ * data: [
661
+ * // ... provide data here
662
+ * ]
663
+ * })
664
+ *
665
+ */
666
+ createMany<T extends IdempotencyRecordCreateManyArgs>(args?: Prisma.SelectSubset<T, IdempotencyRecordCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
667
+ /**
668
+ * Create many IdempotencyRecords and returns the data saved in the database.
669
+ * @param {IdempotencyRecordCreateManyAndReturnArgs} args - Arguments to create many IdempotencyRecords.
670
+ * @example
671
+ * // Create many IdempotencyRecords
672
+ * const idempotencyRecord = await prisma.idempotencyRecord.createManyAndReturn({
673
+ * data: [
674
+ * // ... provide data here
675
+ * ]
676
+ * })
677
+ *
678
+ * // Create many IdempotencyRecords and only return the `id`
679
+ * const idempotencyRecordWithIdOnly = await prisma.idempotencyRecord.createManyAndReturn({
680
+ * select: { id: true },
681
+ * data: [
682
+ * // ... provide data here
683
+ * ]
684
+ * })
685
+ * Note, that providing `undefined` is treated as the value not being there.
686
+ * Read more here: https://pris.ly/d/null-undefined
687
+ *
688
+ */
689
+ createManyAndReturn<T extends IdempotencyRecordCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IdempotencyRecordCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
690
+ /**
691
+ * Delete a IdempotencyRecord.
692
+ * @param {IdempotencyRecordDeleteArgs} args - Arguments to delete one IdempotencyRecord.
693
+ * @example
694
+ * // Delete one IdempotencyRecord
695
+ * const IdempotencyRecord = await prisma.idempotencyRecord.delete({
696
+ * where: {
697
+ * // ... filter to delete one IdempotencyRecord
698
+ * }
699
+ * })
700
+ *
701
+ */
702
+ delete<T extends IdempotencyRecordDeleteArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordDeleteArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
703
+ /**
704
+ * Update one IdempotencyRecord.
705
+ * @param {IdempotencyRecordUpdateArgs} args - Arguments to update one IdempotencyRecord.
706
+ * @example
707
+ * // Update one IdempotencyRecord
708
+ * const idempotencyRecord = await prisma.idempotencyRecord.update({
709
+ * where: {
710
+ * // ... provide filter here
711
+ * },
712
+ * data: {
713
+ * // ... provide data here
714
+ * }
715
+ * })
716
+ *
717
+ */
718
+ update<T extends IdempotencyRecordUpdateArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordUpdateArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
719
+ /**
720
+ * Delete zero or more IdempotencyRecords.
721
+ * @param {IdempotencyRecordDeleteManyArgs} args - Arguments to filter IdempotencyRecords to delete.
722
+ * @example
723
+ * // Delete a few IdempotencyRecords
724
+ * const { count } = await prisma.idempotencyRecord.deleteMany({
725
+ * where: {
726
+ * // ... provide filter here
727
+ * }
728
+ * })
729
+ *
730
+ */
731
+ deleteMany<T extends IdempotencyRecordDeleteManyArgs>(args?: Prisma.SelectSubset<T, IdempotencyRecordDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
732
+ /**
733
+ * Update zero or more IdempotencyRecords.
734
+ * Note, that providing `undefined` is treated as the value not being there.
735
+ * Read more here: https://pris.ly/d/null-undefined
736
+ * @param {IdempotencyRecordUpdateManyArgs} args - Arguments to update one or more rows.
737
+ * @example
738
+ * // Update many IdempotencyRecords
739
+ * const idempotencyRecord = await prisma.idempotencyRecord.updateMany({
740
+ * where: {
741
+ * // ... provide filter here
742
+ * },
743
+ * data: {
744
+ * // ... provide data here
745
+ * }
746
+ * })
747
+ *
748
+ */
749
+ updateMany<T extends IdempotencyRecordUpdateManyArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
750
+ /**
751
+ * Update zero or more IdempotencyRecords and returns the data updated in the database.
752
+ * @param {IdempotencyRecordUpdateManyAndReturnArgs} args - Arguments to update many IdempotencyRecords.
753
+ * @example
754
+ * // Update many IdempotencyRecords
755
+ * const idempotencyRecord = await prisma.idempotencyRecord.updateManyAndReturn({
756
+ * where: {
757
+ * // ... provide filter here
758
+ * },
759
+ * data: [
760
+ * // ... provide data here
761
+ * ]
762
+ * })
763
+ *
764
+ * // Update zero or more IdempotencyRecords and only return the `id`
765
+ * const idempotencyRecordWithIdOnly = await prisma.idempotencyRecord.updateManyAndReturn({
766
+ * select: { id: true },
767
+ * where: {
768
+ * // ... provide filter here
769
+ * },
770
+ * data: [
771
+ * // ... provide data here
772
+ * ]
773
+ * })
774
+ * Note, that providing `undefined` is treated as the value not being there.
775
+ * Read more here: https://pris.ly/d/null-undefined
776
+ *
777
+ */
778
+ updateManyAndReturn<T extends IdempotencyRecordUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
779
+ /**
780
+ * Create or update one IdempotencyRecord.
781
+ * @param {IdempotencyRecordUpsertArgs} args - Arguments to update or create a IdempotencyRecord.
782
+ * @example
783
+ * // Update or create a IdempotencyRecord
784
+ * const idempotencyRecord = await prisma.idempotencyRecord.upsert({
785
+ * create: {
786
+ * // ... data to create a IdempotencyRecord
787
+ * },
788
+ * update: {
789
+ * // ... in case it already exists, update
790
+ * },
791
+ * where: {
792
+ * // ... the filter for the IdempotencyRecord we want to update
793
+ * }
794
+ * })
795
+ */
796
+ upsert<T extends IdempotencyRecordUpsertArgs>(args: Prisma.SelectSubset<T, IdempotencyRecordUpsertArgs<ExtArgs>>): Prisma.Prisma__IdempotencyRecordClient<runtime.Types.Result.GetResult<Prisma.$IdempotencyRecordPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
797
+ /**
798
+ * Count the number of IdempotencyRecords.
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 {IdempotencyRecordCountArgs} args - Arguments to filter IdempotencyRecords to count.
802
+ * @example
803
+ * // Count the number of IdempotencyRecords
804
+ * const count = await prisma.idempotencyRecord.count({
805
+ * where: {
806
+ * // ... the filter for the IdempotencyRecords we want to count
807
+ * }
808
+ * })
809
+ **/
810
+ count<T extends IdempotencyRecordCountArgs>(args?: Prisma.Subset<T, IdempotencyRecordCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], IdempotencyRecordCountAggregateOutputType> : number>;
811
+ /**
812
+ * Allows you to perform aggregations operations on a IdempotencyRecord.
813
+ * Note, that providing `undefined` is treated as the value not being there.
814
+ * Read more here: https://pris.ly/d/null-undefined
815
+ * @param {IdempotencyRecordAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
816
+ * @example
817
+ * // Ordered by age ascending
818
+ * // Where email contains prisma.io
819
+ * // Limited to the 10 users
820
+ * const aggregations = await prisma.user.aggregate({
821
+ * _avg: {
822
+ * age: true,
823
+ * },
824
+ * where: {
825
+ * email: {
826
+ * contains: "prisma.io",
827
+ * },
828
+ * },
829
+ * orderBy: {
830
+ * age: "asc",
831
+ * },
832
+ * take: 10,
833
+ * })
834
+ **/
835
+ aggregate<T extends IdempotencyRecordAggregateArgs>(args: Prisma.Subset<T, IdempotencyRecordAggregateArgs>): Prisma.PrismaPromise<GetIdempotencyRecordAggregateType<T>>;
836
+ /**
837
+ * Group by IdempotencyRecord.
838
+ * Note, that providing `undefined` is treated as the value not being there.
839
+ * Read more here: https://pris.ly/d/null-undefined
840
+ * @param {IdempotencyRecordGroupByArgs} args - Group by arguments.
841
+ * @example
842
+ * // Group by city, order by createdAt, get count
843
+ * const result = await prisma.user.groupBy({
844
+ * by: ['city', 'createdAt'],
845
+ * orderBy: {
846
+ * createdAt: true
847
+ * },
848
+ * _count: {
849
+ * _all: true
850
+ * },
851
+ * })
852
+ *
853
+ **/
854
+ groupBy<T extends IdempotencyRecordGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
855
+ orderBy: IdempotencyRecordGroupByArgs['orderBy'];
856
+ } : {
857
+ orderBy?: IdempotencyRecordGroupByArgs['orderBy'];
858
+ }, 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 ? {
859
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
860
+ Error,
861
+ 'Field ',
862
+ P,
863
+ ` in "having" needs to be provided in "by"`
864
+ ];
865
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
866
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
867
+ }[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 ? {} : {
868
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
869
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
870
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
871
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, IdempotencyRecordGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdempotencyRecordGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
872
+ /**
873
+ * Fields of the IdempotencyRecord model
874
+ */
875
+ readonly fields: IdempotencyRecordFieldRefs;
876
+ }
877
+ /**
878
+ * The delegate class that acts as a "Promise-like" for IdempotencyRecord.
879
+ * Why is this prefixed with `Prisma__`?
880
+ * Because we want to prevent naming conflicts as mentioned in
881
+ * https://github.com/prisma/prisma-client-js/issues/707
882
+ */
883
+ export interface Prisma__IdempotencyRecordClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
884
+ readonly [Symbol.toStringTag]: "PrismaPromise";
885
+ 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>;
886
+ /**
887
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
888
+ * @param onfulfilled The callback to execute when the Promise is resolved.
889
+ * @param onrejected The callback to execute when the Promise is rejected.
890
+ * @returns A Promise for the completion of which ever callback is executed.
891
+ */
892
+ 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>;
893
+ /**
894
+ * Attaches a callback for only the rejection of the Promise.
895
+ * @param onrejected The callback to execute when the Promise is rejected.
896
+ * @returns A Promise for the completion of the callback.
897
+ */
898
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
899
+ /**
900
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
901
+ * resolved value cannot be modified from the callback.
902
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
903
+ * @returns A Promise for the completion of the callback.
904
+ */
905
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
906
+ }
907
+ /**
908
+ * Fields of the IdempotencyRecord model
909
+ */
910
+ export interface IdempotencyRecordFieldRefs {
911
+ readonly id: Prisma.FieldRef<"IdempotencyRecord", 'String'>;
912
+ readonly userId: Prisma.FieldRef<"IdempotencyRecord", 'String'>;
913
+ readonly planId: Prisma.FieldRef<"IdempotencyRecord", 'String'>;
914
+ readonly resourceType: Prisma.FieldRef<"IdempotencyRecord", 'ArtifactType'>;
915
+ readonly stripeSessionId: Prisma.FieldRef<"IdempotencyRecord", 'String'>;
916
+ readonly status: Prisma.FieldRef<"IdempotencyRecord", 'String'>;
917
+ readonly activeLockKey: Prisma.FieldRef<"IdempotencyRecord", 'String'>;
918
+ readonly createdAt: Prisma.FieldRef<"IdempotencyRecord", 'DateTime'>;
919
+ readonly updatedAt: Prisma.FieldRef<"IdempotencyRecord", 'DateTime'>;
920
+ }
921
+ /**
922
+ * IdempotencyRecord findUnique
923
+ */
924
+ export type IdempotencyRecordFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
925
+ /**
926
+ * Select specific fields to fetch from the IdempotencyRecord
927
+ */
928
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
929
+ /**
930
+ * Omit specific fields from the IdempotencyRecord
931
+ */
932
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
933
+ /**
934
+ * Choose, which related nodes to fetch as well
935
+ */
936
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
937
+ /**
938
+ * Filter, which IdempotencyRecord to fetch.
939
+ */
940
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
941
+ };
942
+ /**
943
+ * IdempotencyRecord findUniqueOrThrow
944
+ */
945
+ export type IdempotencyRecordFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
946
+ /**
947
+ * Select specific fields to fetch from the IdempotencyRecord
948
+ */
949
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
950
+ /**
951
+ * Omit specific fields from the IdempotencyRecord
952
+ */
953
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
954
+ /**
955
+ * Choose, which related nodes to fetch as well
956
+ */
957
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
958
+ /**
959
+ * Filter, which IdempotencyRecord to fetch.
960
+ */
961
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
962
+ };
963
+ /**
964
+ * IdempotencyRecord findFirst
965
+ */
966
+ export type IdempotencyRecordFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ /**
968
+ * Select specific fields to fetch from the IdempotencyRecord
969
+ */
970
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
971
+ /**
972
+ * Omit specific fields from the IdempotencyRecord
973
+ */
974
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
975
+ /**
976
+ * Choose, which related nodes to fetch as well
977
+ */
978
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
979
+ /**
980
+ * Filter, which IdempotencyRecord to fetch.
981
+ */
982
+ where?: Prisma.IdempotencyRecordWhereInput;
983
+ /**
984
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
985
+ *
986
+ * Determine the order of IdempotencyRecords to fetch.
987
+ */
988
+ orderBy?: Prisma.IdempotencyRecordOrderByWithRelationInput | Prisma.IdempotencyRecordOrderByWithRelationInput[];
989
+ /**
990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
991
+ *
992
+ * Sets the position for searching for IdempotencyRecords.
993
+ */
994
+ cursor?: Prisma.IdempotencyRecordWhereUniqueInput;
995
+ /**
996
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
997
+ *
998
+ * Take `±n` IdempotencyRecords from the position of the cursor.
999
+ */
1000
+ take?: number;
1001
+ /**
1002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1003
+ *
1004
+ * Skip the first `n` IdempotencyRecords.
1005
+ */
1006
+ skip?: number;
1007
+ /**
1008
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1009
+ *
1010
+ * Filter by unique combinations of IdempotencyRecords.
1011
+ */
1012
+ distinct?: Prisma.IdempotencyRecordScalarFieldEnum | Prisma.IdempotencyRecordScalarFieldEnum[];
1013
+ };
1014
+ /**
1015
+ * IdempotencyRecord findFirstOrThrow
1016
+ */
1017
+ export type IdempotencyRecordFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1018
+ /**
1019
+ * Select specific fields to fetch from the IdempotencyRecord
1020
+ */
1021
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1022
+ /**
1023
+ * Omit specific fields from the IdempotencyRecord
1024
+ */
1025
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1026
+ /**
1027
+ * Choose, which related nodes to fetch as well
1028
+ */
1029
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1030
+ /**
1031
+ * Filter, which IdempotencyRecord to fetch.
1032
+ */
1033
+ where?: Prisma.IdempotencyRecordWhereInput;
1034
+ /**
1035
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1036
+ *
1037
+ * Determine the order of IdempotencyRecords to fetch.
1038
+ */
1039
+ orderBy?: Prisma.IdempotencyRecordOrderByWithRelationInput | Prisma.IdempotencyRecordOrderByWithRelationInput[];
1040
+ /**
1041
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1042
+ *
1043
+ * Sets the position for searching for IdempotencyRecords.
1044
+ */
1045
+ cursor?: Prisma.IdempotencyRecordWhereUniqueInput;
1046
+ /**
1047
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1048
+ *
1049
+ * Take `±n` IdempotencyRecords from the position of the cursor.
1050
+ */
1051
+ take?: number;
1052
+ /**
1053
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1054
+ *
1055
+ * Skip the first `n` IdempotencyRecords.
1056
+ */
1057
+ skip?: number;
1058
+ /**
1059
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1060
+ *
1061
+ * Filter by unique combinations of IdempotencyRecords.
1062
+ */
1063
+ distinct?: Prisma.IdempotencyRecordScalarFieldEnum | Prisma.IdempotencyRecordScalarFieldEnum[];
1064
+ };
1065
+ /**
1066
+ * IdempotencyRecord findMany
1067
+ */
1068
+ export type IdempotencyRecordFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1069
+ /**
1070
+ * Select specific fields to fetch from the IdempotencyRecord
1071
+ */
1072
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1073
+ /**
1074
+ * Omit specific fields from the IdempotencyRecord
1075
+ */
1076
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1077
+ /**
1078
+ * Choose, which related nodes to fetch as well
1079
+ */
1080
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1081
+ /**
1082
+ * Filter, which IdempotencyRecords to fetch.
1083
+ */
1084
+ where?: Prisma.IdempotencyRecordWhereInput;
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1087
+ *
1088
+ * Determine the order of IdempotencyRecords to fetch.
1089
+ */
1090
+ orderBy?: Prisma.IdempotencyRecordOrderByWithRelationInput | Prisma.IdempotencyRecordOrderByWithRelationInput[];
1091
+ /**
1092
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1093
+ *
1094
+ * Sets the position for listing IdempotencyRecords.
1095
+ */
1096
+ cursor?: Prisma.IdempotencyRecordWhereUniqueInput;
1097
+ /**
1098
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1099
+ *
1100
+ * Take `±n` IdempotencyRecords from the position of the cursor.
1101
+ */
1102
+ take?: number;
1103
+ /**
1104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1105
+ *
1106
+ * Skip the first `n` IdempotencyRecords.
1107
+ */
1108
+ skip?: number;
1109
+ /**
1110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1111
+ *
1112
+ * Filter by unique combinations of IdempotencyRecords.
1113
+ */
1114
+ distinct?: Prisma.IdempotencyRecordScalarFieldEnum | Prisma.IdempotencyRecordScalarFieldEnum[];
1115
+ };
1116
+ /**
1117
+ * IdempotencyRecord create
1118
+ */
1119
+ export type IdempotencyRecordCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1120
+ /**
1121
+ * Select specific fields to fetch from the IdempotencyRecord
1122
+ */
1123
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1124
+ /**
1125
+ * Omit specific fields from the IdempotencyRecord
1126
+ */
1127
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1128
+ /**
1129
+ * Choose, which related nodes to fetch as well
1130
+ */
1131
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1132
+ /**
1133
+ * The data needed to create a IdempotencyRecord.
1134
+ */
1135
+ data: Prisma.XOR<Prisma.IdempotencyRecordCreateInput, Prisma.IdempotencyRecordUncheckedCreateInput>;
1136
+ };
1137
+ /**
1138
+ * IdempotencyRecord createMany
1139
+ */
1140
+ export type IdempotencyRecordCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1141
+ /**
1142
+ * The data used to create many IdempotencyRecords.
1143
+ */
1144
+ data: Prisma.IdempotencyRecordCreateManyInput | Prisma.IdempotencyRecordCreateManyInput[];
1145
+ skipDuplicates?: boolean;
1146
+ };
1147
+ /**
1148
+ * IdempotencyRecord createManyAndReturn
1149
+ */
1150
+ export type IdempotencyRecordCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1151
+ /**
1152
+ * Select specific fields to fetch from the IdempotencyRecord
1153
+ */
1154
+ select?: Prisma.IdempotencyRecordSelectCreateManyAndReturn<ExtArgs> | null;
1155
+ /**
1156
+ * Omit specific fields from the IdempotencyRecord
1157
+ */
1158
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1159
+ /**
1160
+ * The data used to create many IdempotencyRecords.
1161
+ */
1162
+ data: Prisma.IdempotencyRecordCreateManyInput | Prisma.IdempotencyRecordCreateManyInput[];
1163
+ skipDuplicates?: boolean;
1164
+ /**
1165
+ * Choose, which related nodes to fetch as well
1166
+ */
1167
+ include?: Prisma.IdempotencyRecordIncludeCreateManyAndReturn<ExtArgs> | null;
1168
+ };
1169
+ /**
1170
+ * IdempotencyRecord update
1171
+ */
1172
+ export type IdempotencyRecordUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1173
+ /**
1174
+ * Select specific fields to fetch from the IdempotencyRecord
1175
+ */
1176
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1177
+ /**
1178
+ * Omit specific fields from the IdempotencyRecord
1179
+ */
1180
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1181
+ /**
1182
+ * Choose, which related nodes to fetch as well
1183
+ */
1184
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1185
+ /**
1186
+ * The data needed to update a IdempotencyRecord.
1187
+ */
1188
+ data: Prisma.XOR<Prisma.IdempotencyRecordUpdateInput, Prisma.IdempotencyRecordUncheckedUpdateInput>;
1189
+ /**
1190
+ * Choose, which IdempotencyRecord to update.
1191
+ */
1192
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
1193
+ };
1194
+ /**
1195
+ * IdempotencyRecord updateMany
1196
+ */
1197
+ export type IdempotencyRecordUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
+ /**
1199
+ * The data used to update IdempotencyRecords.
1200
+ */
1201
+ data: Prisma.XOR<Prisma.IdempotencyRecordUpdateManyMutationInput, Prisma.IdempotencyRecordUncheckedUpdateManyInput>;
1202
+ /**
1203
+ * Filter which IdempotencyRecords to update
1204
+ */
1205
+ where?: Prisma.IdempotencyRecordWhereInput;
1206
+ /**
1207
+ * Limit how many IdempotencyRecords to update.
1208
+ */
1209
+ limit?: number;
1210
+ };
1211
+ /**
1212
+ * IdempotencyRecord updateManyAndReturn
1213
+ */
1214
+ export type IdempotencyRecordUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1215
+ /**
1216
+ * Select specific fields to fetch from the IdempotencyRecord
1217
+ */
1218
+ select?: Prisma.IdempotencyRecordSelectUpdateManyAndReturn<ExtArgs> | null;
1219
+ /**
1220
+ * Omit specific fields from the IdempotencyRecord
1221
+ */
1222
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1223
+ /**
1224
+ * The data used to update IdempotencyRecords.
1225
+ */
1226
+ data: Prisma.XOR<Prisma.IdempotencyRecordUpdateManyMutationInput, Prisma.IdempotencyRecordUncheckedUpdateManyInput>;
1227
+ /**
1228
+ * Filter which IdempotencyRecords to update
1229
+ */
1230
+ where?: Prisma.IdempotencyRecordWhereInput;
1231
+ /**
1232
+ * Limit how many IdempotencyRecords to update.
1233
+ */
1234
+ limit?: number;
1235
+ /**
1236
+ * Choose, which related nodes to fetch as well
1237
+ */
1238
+ include?: Prisma.IdempotencyRecordIncludeUpdateManyAndReturn<ExtArgs> | null;
1239
+ };
1240
+ /**
1241
+ * IdempotencyRecord upsert
1242
+ */
1243
+ export type IdempotencyRecordUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the IdempotencyRecord
1246
+ */
1247
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1248
+ /**
1249
+ * Omit specific fields from the IdempotencyRecord
1250
+ */
1251
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1252
+ /**
1253
+ * Choose, which related nodes to fetch as well
1254
+ */
1255
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1256
+ /**
1257
+ * The filter to search for the IdempotencyRecord to update in case it exists.
1258
+ */
1259
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
1260
+ /**
1261
+ * In case the IdempotencyRecord found by the `where` argument doesn't exist, create a new IdempotencyRecord with this data.
1262
+ */
1263
+ create: Prisma.XOR<Prisma.IdempotencyRecordCreateInput, Prisma.IdempotencyRecordUncheckedCreateInput>;
1264
+ /**
1265
+ * In case the IdempotencyRecord was found with the provided `where` argument, update it with this data.
1266
+ */
1267
+ update: Prisma.XOR<Prisma.IdempotencyRecordUpdateInput, Prisma.IdempotencyRecordUncheckedUpdateInput>;
1268
+ };
1269
+ /**
1270
+ * IdempotencyRecord delete
1271
+ */
1272
+ export type IdempotencyRecordDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1273
+ /**
1274
+ * Select specific fields to fetch from the IdempotencyRecord
1275
+ */
1276
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1277
+ /**
1278
+ * Omit specific fields from the IdempotencyRecord
1279
+ */
1280
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1281
+ /**
1282
+ * Choose, which related nodes to fetch as well
1283
+ */
1284
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1285
+ /**
1286
+ * Filter which IdempotencyRecord to delete.
1287
+ */
1288
+ where: Prisma.IdempotencyRecordWhereUniqueInput;
1289
+ };
1290
+ /**
1291
+ * IdempotencyRecord deleteMany
1292
+ */
1293
+ export type IdempotencyRecordDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1294
+ /**
1295
+ * Filter which IdempotencyRecords to delete
1296
+ */
1297
+ where?: Prisma.IdempotencyRecordWhereInput;
1298
+ /**
1299
+ * Limit how many IdempotencyRecords to delete.
1300
+ */
1301
+ limit?: number;
1302
+ };
1303
+ /**
1304
+ * IdempotencyRecord without action
1305
+ */
1306
+ export type IdempotencyRecordDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ /**
1308
+ * Select specific fields to fetch from the IdempotencyRecord
1309
+ */
1310
+ select?: Prisma.IdempotencyRecordSelect<ExtArgs> | null;
1311
+ /**
1312
+ * Omit specific fields from the IdempotencyRecord
1313
+ */
1314
+ omit?: Prisma.IdempotencyRecordOmit<ExtArgs> | null;
1315
+ /**
1316
+ * Choose, which related nodes to fetch as well
1317
+ */
1318
+ include?: Prisma.IdempotencyRecordInclude<ExtArgs> | null;
1319
+ };