@aeolus-fleet/core 0.0.0 → 0.19.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 (610) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +98 -1
  3. package/dist/adapters/cli/fleet-init.d.ts +14 -0
  4. package/dist/adapters/cli/fleet-init.js +68 -0
  5. package/dist/adapters/cli/fleet-init.js.map +1 -0
  6. package/dist/adapters/cli/io.d.ts +35 -0
  7. package/dist/adapters/cli/io.js +21 -0
  8. package/dist/adapters/cli/io.js.map +1 -0
  9. package/dist/adapters/cli/migrate.d.ts +11 -0
  10. package/dist/adapters/cli/migrate.js +12 -0
  11. package/dist/adapters/cli/migrate.js.map +1 -0
  12. package/dist/adapters/cli/operator-reset-password.d.ts +12 -0
  13. package/dist/adapters/cli/operator-reset-password.js +49 -0
  14. package/dist/adapters/cli/operator-reset-password.js.map +1 -0
  15. package/dist/adapters/cli/run.d.ts +14 -0
  16. package/dist/adapters/cli/run.js +40 -0
  17. package/dist/adapters/cli/run.js.map +1 -0
  18. package/dist/adapters/cli/terminal.d.ts +20 -0
  19. package/dist/adapters/cli/terminal.js +68 -0
  20. package/dist/adapters/cli/terminal.js.map +1 -0
  21. package/dist/adapters/crypto/passwords.d.ts +2 -0
  22. package/dist/adapters/crypto/passwords.js +59 -0
  23. package/dist/adapters/crypto/passwords.js.map +1 -0
  24. package/dist/adapters/crypto/secrets.d.ts +5 -0
  25. package/dist/adapters/crypto/secrets.js +10 -0
  26. package/dist/adapters/crypto/secrets.js.map +1 -0
  27. package/dist/adapters/http/device-label.d.ts +9 -0
  28. package/dist/adapters/http/device-label.js +39 -0
  29. package/dist/adapters/http/device-label.js.map +1 -0
  30. package/dist/adapters/http/rate-limiter.d.ts +21 -0
  31. package/dist/adapters/http/rate-limiter.js +44 -0
  32. package/dist/adapters/http/rate-limiter.js.map +1 -0
  33. package/dist/adapters/http/request-credentials.d.ts +23 -0
  34. package/dist/adapters/http/request-credentials.js +45 -0
  35. package/dist/adapters/http/request-credentials.js.map +1 -0
  36. package/dist/adapters/http/server.d.ts +47 -0
  37. package/dist/adapters/http/server.js +216 -0
  38. package/dist/adapters/http/server.js.map +1 -0
  39. package/dist/adapters/http/version.d.ts +9 -0
  40. package/dist/adapters/http/version.js +23 -0
  41. package/dist/adapters/http/version.js.map +1 -0
  42. package/dist/adapters/mcp/mcp-endpoint.d.ts +8 -0
  43. package/dist/adapters/mcp/mcp-endpoint.js +127 -0
  44. package/dist/adapters/mcp/mcp-endpoint.js.map +1 -0
  45. package/dist/adapters/prisma/client.d.ts +10 -0
  46. package/dist/adapters/prisma/client.js +20 -0
  47. package/dist/adapters/prisma/client.js.map +1 -0
  48. package/dist/adapters/prisma/delivery-notices.d.ts +34 -0
  49. package/dist/adapters/prisma/delivery-notices.js +113 -0
  50. package/dist/adapters/prisma/delivery-notices.js.map +1 -0
  51. package/dist/adapters/prisma/event-log.d.ts +11 -0
  52. package/dist/adapters/prisma/event-log.js +61 -0
  53. package/dist/adapters/prisma/event-log.js.map +1 -0
  54. package/dist/adapters/prisma/failure-log.d.ts +22 -0
  55. package/dist/adapters/prisma/failure-log.js +70 -0
  56. package/dist/adapters/prisma/failure-log.js.map +1 -0
  57. package/dist/adapters/prisma/fleet-counter.d.ts +3 -0
  58. package/dist/adapters/prisma/fleet-counter.js +6 -0
  59. package/dist/adapters/prisma/fleet-counter.js.map +1 -0
  60. package/dist/adapters/prisma/fleet-event-wakeups.d.ts +33 -0
  61. package/dist/adapters/prisma/fleet-event-wakeups.js +86 -0
  62. package/dist/adapters/prisma/fleet-event-wakeups.js.map +1 -0
  63. package/dist/adapters/prisma/generated/browser.d.ts +127 -0
  64. package/dist/adapters/prisma/generated/browser.js +18 -0
  65. package/dist/adapters/prisma/generated/browser.js.map +1 -0
  66. package/dist/adapters/prisma/generated/client.d.ts +146 -0
  67. package/dist/adapters/prisma/generated/client.js +38 -0
  68. package/dist/adapters/prisma/generated/client.js.map +1 -0
  69. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +879 -0
  70. package/dist/adapters/prisma/generated/commonInputTypes.js +11 -0
  71. package/dist/adapters/prisma/generated/commonInputTypes.js.map +1 -0
  72. package/dist/adapters/prisma/generated/enums.d.ts +75 -0
  73. package/dist/adapters/prisma/generated/enums.js +73 -0
  74. package/dist/adapters/prisma/generated/enums.js.map +1 -0
  75. package/dist/adapters/prisma/generated/internal/class.d.ts +308 -0
  76. package/dist/adapters/prisma/generated/internal/class.js +52 -0
  77. package/dist/adapters/prisma/generated/internal/class.js.map +1 -0
  78. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +2131 -0
  79. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +295 -0
  80. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -0
  81. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +273 -0
  82. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +265 -0
  83. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  84. package/dist/adapters/prisma/generated/models/ConsoleSession.d.ts +2137 -0
  85. package/dist/adapters/prisma/generated/models/ConsoleSession.js +2 -0
  86. package/dist/adapters/prisma/generated/models/ConsoleSession.js.map +1 -0
  87. package/dist/adapters/prisma/generated/models/Credential.d.ts +1360 -0
  88. package/dist/adapters/prisma/generated/models/Credential.js +2 -0
  89. package/dist/adapters/prisma/generated/models/Credential.js.map +1 -0
  90. package/dist/adapters/prisma/generated/models/CrewRequest.d.ts +1558 -0
  91. package/dist/adapters/prisma/generated/models/CrewRequest.js +2 -0
  92. package/dist/adapters/prisma/generated/models/CrewRequest.js.map +1 -0
  93. package/dist/adapters/prisma/generated/models/Delivery.d.ts +2211 -0
  94. package/dist/adapters/prisma/generated/models/Delivery.js +2 -0
  95. package/dist/adapters/prisma/generated/models/Delivery.js.map +1 -0
  96. package/dist/adapters/prisma/generated/models/Event.d.ts +1991 -0
  97. package/dist/adapters/prisma/generated/models/Event.js +2 -0
  98. package/dist/adapters/prisma/generated/models/Event.js.map +1 -0
  99. package/dist/adapters/prisma/generated/models/Fleet.d.ts +3032 -0
  100. package/dist/adapters/prisma/generated/models/Fleet.js +2 -0
  101. package/dist/adapters/prisma/generated/models/Fleet.js.map +1 -0
  102. package/dist/adapters/prisma/generated/models/Guide.d.ts +943 -0
  103. package/dist/adapters/prisma/generated/models/Guide.js +2 -0
  104. package/dist/adapters/prisma/generated/models/Guide.js.map +1 -0
  105. package/dist/adapters/prisma/generated/models/GuideProgress.d.ts +1323 -0
  106. package/dist/adapters/prisma/generated/models/GuideProgress.js +2 -0
  107. package/dist/adapters/prisma/generated/models/GuideProgress.js.map +1 -0
  108. package/dist/adapters/prisma/generated/models/InstallationRequest.d.ts +1036 -0
  109. package/dist/adapters/prisma/generated/models/InstallationRequest.js +2 -0
  110. package/dist/adapters/prisma/generated/models/InstallationRequest.js.map +1 -0
  111. package/dist/adapters/prisma/generated/models/InstallationSettings.d.ts +1027 -0
  112. package/dist/adapters/prisma/generated/models/InstallationSettings.js +2 -0
  113. package/dist/adapters/prisma/generated/models/InstallationSettings.js.map +1 -0
  114. package/dist/adapters/prisma/generated/models/Lease.d.ts +2076 -0
  115. package/dist/adapters/prisma/generated/models/Lease.js +2 -0
  116. package/dist/adapters/prisma/generated/models/Lease.js.map +1 -0
  117. package/dist/adapters/prisma/generated/models/Message.d.ts +2869 -0
  118. package/dist/adapters/prisma/generated/models/Message.js +2 -0
  119. package/dist/adapters/prisma/generated/models/Message.js.map +1 -0
  120. package/dist/adapters/prisma/generated/models/Notice.d.ts +1068 -0
  121. package/dist/adapters/prisma/generated/models/Notice.js +2 -0
  122. package/dist/adapters/prisma/generated/models/Notice.js.map +1 -0
  123. package/dist/adapters/prisma/generated/models/NoticeDismissal.d.ts +1245 -0
  124. package/dist/adapters/prisma/generated/models/NoticeDismissal.js +2 -0
  125. package/dist/adapters/prisma/generated/models/NoticeDismissal.js.map +1 -0
  126. package/dist/adapters/prisma/generated/models/Operator.d.ts +1173 -0
  127. package/dist/adapters/prisma/generated/models/Operator.js +2 -0
  128. package/dist/adapters/prisma/generated/models/Operator.js.map +1 -0
  129. package/dist/adapters/prisma/generated/models/Ship.d.ts +3320 -0
  130. package/dist/adapters/prisma/generated/models/Ship.js +2 -0
  131. package/dist/adapters/prisma/generated/models/Ship.js.map +1 -0
  132. package/dist/adapters/prisma/generated/models/SignInTicket.d.ts +1222 -0
  133. package/dist/adapters/prisma/generated/models/SignInTicket.js +2 -0
  134. package/dist/adapters/prisma/generated/models/SignInTicket.js.map +1 -0
  135. package/dist/adapters/prisma/generated/models.d.ts +18 -0
  136. package/dist/adapters/prisma/generated/models.js +2 -0
  137. package/dist/adapters/prisma/generated/models.js.map +1 -0
  138. package/dist/adapters/prisma/history.d.ts +3 -0
  139. package/dist/adapters/prisma/history.js +289 -0
  140. package/dist/adapters/prisma/history.js.map +1 -0
  141. package/dist/adapters/prisma/identity.d.ts +10 -0
  142. package/dist/adapters/prisma/identity.js +213 -0
  143. package/dist/adapters/prisma/identity.js.map +1 -0
  144. package/dist/adapters/prisma/installation.d.ts +13 -0
  145. package/dist/adapters/prisma/installation.js +155 -0
  146. package/dist/adapters/prisma/installation.js.map +1 -0
  147. package/dist/adapters/prisma/messaging.d.ts +4 -0
  148. package/dist/adapters/prisma/messaging.js +156 -0
  149. package/dist/adapters/prisma/messaging.js.map +1 -0
  150. package/dist/adapters/prisma/migrate.d.ts +5 -0
  151. package/dist/adapters/prisma/migrate.js +40 -0
  152. package/dist/adapters/prisma/migrate.js.map +1 -0
  153. package/dist/adapters/prisma/receiver-wakeups.d.ts +26 -0
  154. package/dist/adapters/prisma/receiver-wakeups.js +79 -0
  155. package/dist/adapters/prisma/receiver-wakeups.js.map +1 -0
  156. package/dist/adapters/prisma/registry.d.ts +8 -0
  157. package/dist/adapters/prisma/registry.js +427 -0
  158. package/dist/adapters/prisma/registry.js.map +1 -0
  159. package/dist/adapters/prisma/rows.d.ts +58 -0
  160. package/dist/adapters/prisma/rows.js +408 -0
  161. package/dist/adapters/prisma/rows.js.map +1 -0
  162. package/dist/adapters/prisma/unit-of-work.d.ts +36 -0
  163. package/dist/adapters/prisma/unit-of-work.js +66 -0
  164. package/dist/adapters/prisma/unit-of-work.js.map +1 -0
  165. package/dist/adapters/rest/openapi.d.ts +12 -0
  166. package/dist/adapters/rest/openapi.js +62 -0
  167. package/dist/adapters/rest/openapi.js.map +1 -0
  168. package/dist/adapters/rest/rest-api.d.ts +8 -0
  169. package/dist/adapters/rest/rest-api.js +61 -0
  170. package/dist/adapters/rest/rest-api.js.map +1 -0
  171. package/dist/adapters/trpc/console.d.ts +150 -0
  172. package/dist/adapters/trpc/console.js +102 -0
  173. package/dist/adapters/trpc/console.js.map +1 -0
  174. package/dist/adapters/trpc/context.d.ts +201 -0
  175. package/dist/adapters/trpc/context.js +2 -0
  176. package/dist/adapters/trpc/context.js.map +1 -0
  177. package/dist/adapters/trpc/fleet.d.ts +637 -0
  178. package/dist/adapters/trpc/fleet.js +437 -0
  179. package/dist/adapters/trpc/fleet.js.map +1 -0
  180. package/dist/adapters/trpc/installation.d.ts +414 -0
  181. package/dist/adapters/trpc/installation.js +138 -0
  182. package/dist/adapters/trpc/installation.js.map +1 -0
  183. package/dist/adapters/trpc/router.d.ts +1263 -0
  184. package/dist/adapters/trpc/router.js +15 -0
  185. package/dist/adapters/trpc/router.js.map +1 -0
  186. package/dist/adapters/trpc/ship-contract.d.ts +107 -0
  187. package/dist/adapters/trpc/ship-contract.js +165 -0
  188. package/dist/adapters/trpc/ship-contract.js.map +1 -0
  189. package/dist/adapters/trpc/ship-protocol.d.ts +9 -0
  190. package/dist/adapters/trpc/ship-protocol.js +25 -0
  191. package/dist/adapters/trpc/ship-protocol.js.map +1 -0
  192. package/dist/adapters/trpc/ship.d.ts +209 -0
  193. package/dist/adapters/trpc/ship.js +214 -0
  194. package/dist/adapters/trpc/ship.js.map +1 -0
  195. package/dist/adapters/trpc/starting-prompt-text.d.ts +7 -0
  196. package/dist/adapters/trpc/starting-prompt-text.js +60 -0
  197. package/dist/adapters/trpc/starting-prompt-text.js.map +1 -0
  198. package/dist/adapters/trpc/system.d.ts +29 -0
  199. package/dist/adapters/trpc/system.js +15 -0
  200. package/dist/adapters/trpc/system.js.map +1 -0
  201. package/dist/adapters/trpc/trpc.d.ts +131 -0
  202. package/dist/adapters/trpc/trpc.js +350 -0
  203. package/dist/adapters/trpc/trpc.js.map +1 -0
  204. package/dist/app.d.ts +31 -0
  205. package/dist/app.js +80 -0
  206. package/dist/app.js.map +1 -0
  207. package/dist/bin/aeolus-core.d.ts +2 -0
  208. package/dist/bin/aeolus-core.js +45 -0
  209. package/dist/bin/aeolus-core.js.map +1 -0
  210. package/dist/config.d.ts +35 -0
  211. package/dist/config.js +74 -0
  212. package/dist/config.js.map +1 -0
  213. package/dist/domain/identity/authenticate.d.ts +46 -0
  214. package/dist/domain/identity/authenticate.js +18 -0
  215. package/dist/domain/identity/authenticate.js.map +1 -0
  216. package/dist/domain/identity/console-session.d.ts +54 -0
  217. package/dist/domain/identity/console-session.js +29 -0
  218. package/dist/domain/identity/console-session.js.map +1 -0
  219. package/dist/domain/identity/credential.d.ts +76 -0
  220. package/dist/domain/identity/credential.js +63 -0
  221. package/dist/domain/identity/credential.js.map +1 -0
  222. package/dist/domain/identity/dismiss-notice.d.ts +19 -0
  223. package/dist/domain/identity/dismiss-notice.js +23 -0
  224. package/dist/domain/identity/dismiss-notice.js.map +1 -0
  225. package/dist/domain/identity/get-guide.d.ts +7 -0
  226. package/dist/domain/identity/get-guide.js +5 -0
  227. package/dist/domain/identity/get-guide.js.map +1 -0
  228. package/dist/domain/identity/get-notices.d.ts +7 -0
  229. package/dist/domain/identity/get-notices.js +5 -0
  230. package/dist/domain/identity/get-notices.js.map +1 -0
  231. package/dist/domain/identity/guide.d.ts +24 -0
  232. package/dist/domain/identity/guide.js +3 -0
  233. package/dist/domain/identity/guide.js.map +1 -0
  234. package/dist/domain/identity/issue-sign-in-ticket.d.ts +38 -0
  235. package/dist/domain/identity/issue-sign-in-ticket.js +39 -0
  236. package/dist/domain/identity/issue-sign-in-ticket.js.map +1 -0
  237. package/dist/domain/identity/notice.d.ts +16 -0
  238. package/dist/domain/identity/notice.js +12 -0
  239. package/dist/domain/identity/notice.js.map +1 -0
  240. package/dist/domain/identity/operator-account.d.ts +28 -0
  241. package/dist/domain/identity/operator-account.js +21 -0
  242. package/dist/domain/identity/operator-account.js.map +1 -0
  243. package/dist/domain/identity/ports.d.ts +193 -0
  244. package/dist/domain/identity/ports.js +2 -0
  245. package/dist/domain/identity/ports.js.map +1 -0
  246. package/dist/domain/identity/public.d.ts +3 -0
  247. package/dist/domain/identity/public.js +5 -0
  248. package/dist/domain/identity/public.js.map +1 -0
  249. package/dist/domain/identity/read-account.d.ts +35 -0
  250. package/dist/domain/identity/read-account.js +27 -0
  251. package/dist/domain/identity/read-account.js.map +1 -0
  252. package/dist/domain/identity/read-guide.d.ts +18 -0
  253. package/dist/domain/identity/read-guide.js +21 -0
  254. package/dist/domain/identity/read-guide.js.map +1 -0
  255. package/dist/domain/identity/read-notices.d.ts +13 -0
  256. package/dist/domain/identity/read-notices.js +17 -0
  257. package/dist/domain/identity/read-notices.js.map +1 -0
  258. package/dist/domain/identity/record-guide-progress.d.ts +19 -0
  259. package/dist/domain/identity/record-guide-progress.js +24 -0
  260. package/dist/domain/identity/record-guide-progress.js.map +1 -0
  261. package/dist/domain/identity/redeem-sign-in-ticket.d.ts +34 -0
  262. package/dist/domain/identity/redeem-sign-in-ticket.js +25 -0
  263. package/dist/domain/identity/redeem-sign-in-ticket.js.map +1 -0
  264. package/dist/domain/identity/reset-operator-password.d.ts +34 -0
  265. package/dist/domain/identity/reset-operator-password.js +55 -0
  266. package/dist/domain/identity/reset-operator-password.js.map +1 -0
  267. package/dist/domain/identity/set-guide.d.ts +13 -0
  268. package/dist/domain/identity/set-guide.js +12 -0
  269. package/dist/domain/identity/set-guide.js.map +1 -0
  270. package/dist/domain/identity/set-notices.d.ts +13 -0
  271. package/dist/domain/identity/set-notices.js +12 -0
  272. package/dist/domain/identity/set-notices.js.map +1 -0
  273. package/dist/domain/identity/set-theme.d.ts +21 -0
  274. package/dist/domain/identity/set-theme.js +19 -0
  275. package/dist/domain/identity/set-theme.js.map +1 -0
  276. package/dist/domain/identity/sign-in-ticket.d.ts +21 -0
  277. package/dist/domain/identity/sign-in-ticket.js +5 -0
  278. package/dist/domain/identity/sign-in-ticket.js.map +1 -0
  279. package/dist/domain/identity/sign-in.d.ts +51 -0
  280. package/dist/domain/identity/sign-in.js +43 -0
  281. package/dist/domain/identity/sign-in.js.map +1 -0
  282. package/dist/domain/identity/sign-out.d.ts +20 -0
  283. package/dist/domain/identity/sign-out.js +32 -0
  284. package/dist/domain/identity/sign-out.js.map +1 -0
  285. package/dist/domain/identity/start-console-session.d.ts +27 -0
  286. package/dist/domain/identity/start-console-session.js +54 -0
  287. package/dist/domain/identity/start-console-session.js.map +1 -0
  288. package/dist/domain/identity/start-viewer-session.d.ts +29 -0
  289. package/dist/domain/identity/start-viewer-session.js +42 -0
  290. package/dist/domain/identity/start-viewer-session.js.map +1 -0
  291. package/dist/domain/messaging/acknowledge-delivery.d.ts +30 -0
  292. package/dist/domain/messaging/acknowledge-delivery.js +31 -0
  293. package/dist/domain/messaging/acknowledge-delivery.js.map +1 -0
  294. package/dist/domain/messaging/answer-ping.d.ts +33 -0
  295. package/dist/domain/messaging/answer-ping.js +37 -0
  296. package/dist/domain/messaging/answer-ping.js.map +1 -0
  297. package/dist/domain/messaging/check-inbox.d.ts +33 -0
  298. package/dist/domain/messaging/check-inbox.js +61 -0
  299. package/dist/domain/messaging/check-inbox.js.map +1 -0
  300. package/dist/domain/messaging/content-type.d.ts +9 -0
  301. package/dist/domain/messaging/content-type.js +18 -0
  302. package/dist/domain/messaging/content-type.js.map +1 -0
  303. package/dist/domain/messaging/daily-message-limit.d.ts +19 -0
  304. package/dist/domain/messaging/daily-message-limit.js +24 -0
  305. package/dist/domain/messaging/daily-message-limit.js.map +1 -0
  306. package/dist/domain/messaging/delivery.d.ts +116 -0
  307. package/dist/domain/messaging/delivery.js +201 -0
  308. package/dist/domain/messaging/delivery.js.map +1 -0
  309. package/dist/domain/messaging/dismiss-delivery.d.ts +28 -0
  310. package/dist/domain/messaging/dismiss-delivery.js +29 -0
  311. package/dist/domain/messaging/dismiss-delivery.js.map +1 -0
  312. package/dist/domain/messaging/inbox-wait.d.ts +8 -0
  313. package/dist/domain/messaging/inbox-wait.js +19 -0
  314. package/dist/domain/messaging/inbox-wait.js.map +1 -0
  315. package/dist/domain/messaging/mark-done.d.ts +45 -0
  316. package/dist/domain/messaging/mark-done.js +49 -0
  317. package/dist/domain/messaging/mark-done.js.map +1 -0
  318. package/dist/domain/messaging/mark-read.d.ts +27 -0
  319. package/dist/domain/messaging/mark-read.js +34 -0
  320. package/dist/domain/messaging/mark-read.js.map +1 -0
  321. package/dist/domain/messaging/message.d.ts +104 -0
  322. package/dist/domain/messaging/message.js +84 -0
  323. package/dist/domain/messaging/message.js.map +1 -0
  324. package/dist/domain/messaging/payload.d.ts +9 -0
  325. package/dist/domain/messaging/payload.js +16 -0
  326. package/dist/domain/messaging/payload.js.map +1 -0
  327. package/dist/domain/messaging/ping-ship.d.ts +38 -0
  328. package/dist/domain/messaging/ping-ship.js +42 -0
  329. package/dist/domain/messaging/ping-ship.js.map +1 -0
  330. package/dist/domain/messaging/ports.d.ts +116 -0
  331. package/dist/domain/messaging/ports.js +2 -0
  332. package/dist/domain/messaging/ports.js.map +1 -0
  333. package/dist/domain/messaging/receive-deliveries.d.ts +68 -0
  334. package/dist/domain/messaging/receive-deliveries.js +119 -0
  335. package/dist/domain/messaging/receive-deliveries.js.map +1 -0
  336. package/dist/domain/messaging/receive-max.d.ts +8 -0
  337. package/dist/domain/messaging/receive-max.js +17 -0
  338. package/dist/domain/messaging/receive-max.js.map +1 -0
  339. package/dist/domain/messaging/reply-to-message.d.ts +35 -0
  340. package/dist/domain/messaging/reply-to-message.js +49 -0
  341. package/dist/domain/messaging/reply-to-message.js.map +1 -0
  342. package/dist/domain/messaging/resend-delivery.d.ts +48 -0
  343. package/dist/domain/messaging/resend-delivery.js +97 -0
  344. package/dist/domain/messaging/resend-delivery.js.map +1 -0
  345. package/dist/domain/messaging/send-message.d.ts +88 -0
  346. package/dist/domain/messaging/send-message.js +115 -0
  347. package/dist/domain/messaging/send-message.js.map +1 -0
  348. package/dist/domain/messaging/send-request.d.ts +16 -0
  349. package/dist/domain/messaging/send-request.js +18 -0
  350. package/dist/domain/messaging/send-request.js.map +1 -0
  351. package/dist/domain/registry/applied-limits.d.ts +15 -0
  352. package/dist/domain/registry/applied-limits.js +15 -0
  353. package/dist/domain/registry/applied-limits.js.map +1 -0
  354. package/dist/domain/registry/assign-crew.d.ts +31 -0
  355. package/dist/domain/registry/assign-crew.js +35 -0
  356. package/dist/domain/registry/assign-crew.js.map +1 -0
  357. package/dist/domain/registry/claim-ship.d.ts +49 -0
  358. package/dist/domain/registry/claim-ship.js +59 -0
  359. package/dist/domain/registry/claim-ship.js.map +1 -0
  360. package/dist/domain/registry/commission-ship.d.ts +54 -0
  361. package/dist/domain/registry/commission-ship.js +70 -0
  362. package/dist/domain/registry/commission-ship.js.map +1 -0
  363. package/dist/domain/registry/confirm-crew-release.d.ts +28 -0
  364. package/dist/domain/registry/confirm-crew-release.js +28 -0
  365. package/dist/domain/registry/confirm-crew-release.js.map +1 -0
  366. package/dist/domain/registry/create-fleet.d.ts +39 -0
  367. package/dist/domain/registry/create-fleet.js +56 -0
  368. package/dist/domain/registry/create-fleet.js.map +1 -0
  369. package/dist/domain/registry/crew-request.d.ts +148 -0
  370. package/dist/domain/registry/crew-request.js +175 -0
  371. package/dist/domain/registry/crew-request.js.map +1 -0
  372. package/dist/domain/registry/delete-fleet.d.ts +46 -0
  373. package/dist/domain/registry/delete-fleet.js +34 -0
  374. package/dist/domain/registry/delete-fleet.js.map +1 -0
  375. package/dist/domain/registry/deregister.d.ts +32 -0
  376. package/dist/domain/registry/deregister.js +38 -0
  377. package/dist/domain/registry/deregister.js.map +1 -0
  378. package/dist/domain/registry/explain-crew-request.d.ts +30 -0
  379. package/dist/domain/registry/explain-crew-request.js +31 -0
  380. package/dist/domain/registry/explain-crew-request.js.map +1 -0
  381. package/dist/domain/registry/fleet.d.ts +12 -0
  382. package/dist/domain/registry/fleet.js +12 -0
  383. package/dist/domain/registry/fleet.js.map +1 -0
  384. package/dist/domain/registry/found-fleet.d.ts +32 -0
  385. package/dist/domain/registry/found-fleet.js +43 -0
  386. package/dist/domain/registry/found-fleet.js.map +1 -0
  387. package/dist/domain/registry/get-fleet-limits.d.ts +17 -0
  388. package/dist/domain/registry/get-fleet-limits.js +14 -0
  389. package/dist/domain/registry/get-fleet-limits.js.map +1 -0
  390. package/dist/domain/registry/get-installation-fleet.d.ts +15 -0
  391. package/dist/domain/registry/get-installation-fleet.js +12 -0
  392. package/dist/domain/registry/get-installation-fleet.js.map +1 -0
  393. package/dist/domain/registry/get-installation-settings.d.ts +7 -0
  394. package/dist/domain/registry/get-installation-settings.js +5 -0
  395. package/dist/domain/registry/get-installation-settings.js.map +1 -0
  396. package/dist/domain/registry/get-ship.d.ts +34 -0
  397. package/dist/domain/registry/get-ship.js +36 -0
  398. package/dist/domain/registry/get-ship.js.map +1 -0
  399. package/dist/domain/registry/get-starting-prompt.d.ts +24 -0
  400. package/dist/domain/registry/get-starting-prompt.js +46 -0
  401. package/dist/domain/registry/get-starting-prompt.js.map +1 -0
  402. package/dist/domain/registry/initialise-fleet.d.ts +28 -0
  403. package/dist/domain/registry/initialise-fleet.js +39 -0
  404. package/dist/domain/registry/initialise-fleet.js.map +1 -0
  405. package/dist/domain/registry/installation-fleet.d.ts +36 -0
  406. package/dist/domain/registry/installation-fleet.js +22 -0
  407. package/dist/domain/registry/installation-fleet.js.map +1 -0
  408. package/dist/domain/registry/installation-request.d.ts +23 -0
  409. package/dist/domain/registry/installation-request.js +5 -0
  410. package/dist/domain/registry/installation-request.js.map +1 -0
  411. package/dist/domain/registry/lease.d.ts +51 -0
  412. package/dist/domain/registry/lease.js +39 -0
  413. package/dist/domain/registry/lease.js.map +1 -0
  414. package/dist/domain/registry/leases.d.ts +66 -0
  415. package/dist/domain/registry/leases.js +80 -0
  416. package/dist/domain/registry/leases.js.map +1 -0
  417. package/dist/domain/registry/limits.d.ts +50 -0
  418. package/dist/domain/registry/limits.js +24 -0
  419. package/dist/domain/registry/limits.js.map +1 -0
  420. package/dist/domain/registry/list-fleet.d.ts +70 -0
  421. package/dist/domain/registry/list-fleet.js +47 -0
  422. package/dist/domain/registry/list-fleet.js.map +1 -0
  423. package/dist/domain/registry/list-fleets.d.ts +11 -0
  424. package/dist/domain/registry/list-fleets.js +9 -0
  425. package/dist/domain/registry/list-fleets.js.map +1 -0
  426. package/dist/domain/registry/list-installation-fleets.d.ts +15 -0
  427. package/dist/domain/registry/list-installation-fleets.js +15 -0
  428. package/dist/domain/registry/list-installation-fleets.js.map +1 -0
  429. package/dist/domain/registry/ping-status.d.ts +17 -0
  430. package/dist/domain/registry/ping-status.js +28 -0
  431. package/dist/domain/registry/ping-status.js.map +1 -0
  432. package/dist/domain/registry/pingable-ship.d.ts +22 -0
  433. package/dist/domain/registry/pingable-ship.js +21 -0
  434. package/dist/domain/registry/pingable-ship.js.map +1 -0
  435. package/dist/domain/registry/ports.d.ts +318 -0
  436. package/dist/domain/registry/ports.js +2 -0
  437. package/dist/domain/registry/ports.js.map +1 -0
  438. package/dist/domain/registry/public.d.ts +8 -0
  439. package/dist/domain/registry/public.js +10 -0
  440. package/dist/domain/registry/public.js.map +1 -0
  441. package/dist/domain/registry/read-assigned-crew-requests.d.ts +14 -0
  442. package/dist/domain/registry/read-assigned-crew-requests.js +15 -0
  443. package/dist/domain/registry/read-assigned-crew-requests.js.map +1 -0
  444. package/dist/domain/registry/recrew-ship.d.ts +33 -0
  445. package/dist/domain/registry/recrew-ship.js +34 -0
  446. package/dist/domain/registry/recrew-ship.js.map +1 -0
  447. package/dist/domain/registry/release-ship.d.ts +38 -0
  448. package/dist/domain/registry/release-ship.js +47 -0
  449. package/dist/domain/registry/release-ship.js.map +1 -0
  450. package/dist/domain/registry/remove-crew-request.d.ts +28 -0
  451. package/dist/domain/registry/remove-crew-request.js +36 -0
  452. package/dist/domain/registry/remove-crew-request.js.map +1 -0
  453. package/dist/domain/registry/rename-ship.d.ts +30 -0
  454. package/dist/domain/registry/rename-ship.js +39 -0
  455. package/dist/domain/registry/rename-ship.js.map +1 -0
  456. package/dist/domain/registry/report-crew-status.d.ts +29 -0
  457. package/dist/domain/registry/report-crew-status.js +30 -0
  458. package/dist/domain/registry/report-crew-status.js.map +1 -0
  459. package/dist/domain/registry/report-details.d.ts +18 -0
  460. package/dist/domain/registry/report-details.js +41 -0
  461. package/dist/domain/registry/report-details.js.map +1 -0
  462. package/dist/domain/registry/report-log.d.ts +21 -0
  463. package/dist/domain/registry/report-log.js +16 -0
  464. package/dist/domain/registry/report-log.js.map +1 -0
  465. package/dist/domain/registry/report.d.ts +30 -0
  466. package/dist/domain/registry/report.js +30 -0
  467. package/dist/domain/registry/report.js.map +1 -0
  468. package/dist/domain/registry/request-crew.d.ts +32 -0
  469. package/dist/domain/registry/request-crew.js +29 -0
  470. package/dist/domain/registry/request-crew.js.map +1 -0
  471. package/dist/domain/registry/resolve-selector.d.ts +25 -0
  472. package/dist/domain/registry/resolve-selector.js +32 -0
  473. package/dist/domain/registry/resolve-selector.js.map +1 -0
  474. package/dist/domain/registry/retire-ship.d.ts +42 -0
  475. package/dist/domain/registry/retire-ship.js +68 -0
  476. package/dist/domain/registry/retire-ship.js.map +1 -0
  477. package/dist/domain/registry/set-fleet-limits.d.ts +30 -0
  478. package/dist/domain/registry/set-fleet-limits.js +54 -0
  479. package/dist/domain/registry/set-fleet-limits.js.map +1 -0
  480. package/dist/domain/registry/set-installation-settings.d.ts +18 -0
  481. package/dist/domain/registry/set-installation-settings.js +31 -0
  482. package/dist/domain/registry/set-installation-settings.js.map +1 -0
  483. package/dist/domain/registry/ship-handle.d.ts +5 -0
  484. package/dist/domain/registry/ship-handle.js +20 -0
  485. package/dist/domain/registry/ship-handle.js.map +1 -0
  486. package/dist/domain/registry/ship-note.d.ts +7 -0
  487. package/dist/domain/registry/ship-note.js +15 -0
  488. package/dist/domain/registry/ship-note.js.map +1 -0
  489. package/dist/domain/registry/ship-report.d.ts +42 -0
  490. package/dist/domain/registry/ship-report.js +93 -0
  491. package/dist/domain/registry/ship-report.js.map +1 -0
  492. package/dist/domain/registry/ship.d.ts +190 -0
  493. package/dist/domain/registry/ship.js +334 -0
  494. package/dist/domain/registry/ship.js.map +1 -0
  495. package/dist/domain/registry/ships.d.ts +25 -0
  496. package/dist/domain/registry/ships.js +22 -0
  497. package/dist/domain/registry/ships.js.map +1 -0
  498. package/dist/domain/registry/starting-prompt.d.ts +32 -0
  499. package/dist/domain/registry/starting-prompt.js +22 -0
  500. package/dist/domain/registry/starting-prompt.js.map +1 -0
  501. package/dist/domain/registry/whoami.d.ts +20 -0
  502. package/dist/domain/registry/whoami.js +15 -0
  503. package/dist/domain/registry/whoami.js.map +1 -0
  504. package/dist/domain/shared/caller.d.ts +25 -0
  505. package/dist/domain/shared/caller.js +8 -0
  506. package/dist/domain/shared/caller.js.map +1 -0
  507. package/dist/domain/shared/clock.d.ts +4 -0
  508. package/dist/domain/shared/clock.js +2 -0
  509. package/dist/domain/shared/clock.js.map +1 -0
  510. package/dist/domain/shared/errors.d.ts +13 -0
  511. package/dist/domain/shared/errors.js +6 -0
  512. package/dist/domain/shared/errors.js.map +1 -0
  513. package/dist/domain/shared/events.d.ts +75 -0
  514. package/dist/domain/shared/events.js +9 -0
  515. package/dist/domain/shared/events.js.map +1 -0
  516. package/dist/domain/shared/follow-fleet.d.ts +32 -0
  517. package/dist/domain/shared/follow-fleet.js +65 -0
  518. package/dist/domain/shared/follow-fleet.js.map +1 -0
  519. package/dist/domain/shared/history.d.ts +124 -0
  520. package/dist/domain/shared/history.js +16 -0
  521. package/dist/domain/shared/history.js.map +1 -0
  522. package/dist/domain/shared/idempotency-key.d.ts +8 -0
  523. package/dist/domain/shared/idempotency-key.js +14 -0
  524. package/dist/domain/shared/idempotency-key.js.map +1 -0
  525. package/dist/domain/shared/notifier.d.ts +17 -0
  526. package/dist/domain/shared/notifier.js +2 -0
  527. package/dist/domain/shared/notifier.js.map +1 -0
  528. package/dist/domain/shared/ping.d.ts +18 -0
  529. package/dist/domain/shared/ping.js +8 -0
  530. package/dist/domain/shared/ping.js.map +1 -0
  531. package/dist/domain/shared/read-fleet-events.d.ts +29 -0
  532. package/dist/domain/shared/read-fleet-events.js +25 -0
  533. package/dist/domain/shared/read-fleet-events.js.map +1 -0
  534. package/dist/domain/shared/read-fleet-limits.d.ts +39 -0
  535. package/dist/domain/shared/read-fleet-limits.js +24 -0
  536. package/dist/domain/shared/read-fleet-limits.js.map +1 -0
  537. package/dist/domain/shared/read-inbox.d.ts +20 -0
  538. package/dist/domain/shared/read-inbox.js +16 -0
  539. package/dist/domain/shared/read-inbox.js.map +1 -0
  540. package/dist/domain/shared/read-message.d.ts +21 -0
  541. package/dist/domain/shared/read-message.js +18 -0
  542. package/dist/domain/shared/read-message.js.map +1 -0
  543. package/dist/domain/shared/read-needs-attention.d.ts +12 -0
  544. package/dist/domain/shared/read-needs-attention.js +10 -0
  545. package/dist/domain/shared/read-needs-attention.js.map +1 -0
  546. package/dist/domain/shared/read-ship-messages.d.ts +28 -0
  547. package/dist/domain/shared/read-ship-messages.js +30 -0
  548. package/dist/domain/shared/read-ship-messages.js.map +1 -0
  549. package/dist/domain/shared/read-ship-timeline.d.ts +18 -0
  550. package/dist/domain/shared/read-ship-timeline.js +16 -0
  551. package/dist/domain/shared/read-ship-timeline.js.map +1 -0
  552. package/dist/domain/shared/result.d.ts +16 -0
  553. package/dist/domain/shared/result.js +7 -0
  554. package/dist/domain/shared/result.js.map +1 -0
  555. package/dist/domain/shared/secrets.d.ts +26 -0
  556. package/dist/domain/shared/secrets.js +2 -0
  557. package/dist/domain/shared/secrets.js.map +1 -0
  558. package/dist/domain/shared/selector.d.ts +29 -0
  559. package/dist/domain/shared/selector.js +2 -0
  560. package/dist/domain/shared/selector.js.map +1 -0
  561. package/dist/domain/shared/unit-of-work.d.ts +13 -0
  562. package/dist/domain/shared/unit-of-work.js +2 -0
  563. package/dist/domain/shared/unit-of-work.js.map +1 -0
  564. package/dist/domain/shared/utc-day.d.ts +4 -0
  565. package/dist/domain/shared/utc-day.js +9 -0
  566. package/dist/domain/shared/utc-day.js.map +1 -0
  567. package/dist/index.d.ts +1 -0
  568. package/dist/index.js +2 -0
  569. package/dist/index.js.map +1 -0
  570. package/dist/start.d.ts +6 -0
  571. package/dist/start.js +29 -0
  572. package/dist/start.js.map +1 -0
  573. package/dist/wiring.d.ts +158 -0
  574. package/dist/wiring.js +185 -0
  575. package/dist/wiring.js.map +1 -0
  576. package/package.json +58 -3
  577. package/prisma.config.ts +18 -0
  578. package/src/adapters/prisma/migrations/20260929124818_init/migration.sql +201 -0
  579. package/src/adapters/prisma/migrations/20260929160000_fleet_argo_console_session/migration.sql +130 -0
  580. package/src/adapters/prisma/migrations/20260929220017_operator_login/migration.sql +27 -0
  581. package/src/adapters/prisma/migrations/20260930090000_crew_token/migration.sql +5 -0
  582. package/src/adapters/prisma/migrations/20260930120000_send/migration.sql +30 -0
  583. package/src/adapters/prisma/migrations/20260930150000_receive/migration.sql +24 -0
  584. package/src/adapters/prisma/migrations/20261001010000_event_seq/migration.sql +34 -0
  585. package/src/adapters/prisma/migrations/20261001020000_console_session_end_reason/migration.sql +14 -0
  586. package/src/adapters/prisma/migrations/20261001030000_account_theme_session_device/migration.sql +8 -0
  587. package/src/adapters/prisma/migrations/20261001040000_lease_last_seen/migration.sql +2 -0
  588. package/src/adapters/prisma/migrations/20261002190000_lease_report/migration.sql +7 -0
  589. package/src/adapters/prisma/migrations/20261003140000_commission_key/migration.sql +7 -0
  590. package/src/adapters/prisma/migrations/20261003200000_message_model/migration.sql +5 -0
  591. package/src/adapters/prisma/migrations/20261003201000_lease_harness/migration.sql +2 -0
  592. package/src/adapters/prisma/migrations/20261004120000_operator_without_password/migration.sql +2 -0
  593. package/src/adapters/prisma/migrations/20261004121000_installation_requests/migration.sql +21 -0
  594. package/src/adapters/prisma/migrations/20261004122000_events_deleted_with_their_fleet/migration.sql +11 -0
  595. package/src/adapters/prisma/migrations/20261004130000_sign_in_tickets/migration.sql +16 -0
  596. package/src/adapters/prisma/migrations/20261004140000_fleet_limits/migration.sql +6 -0
  597. package/src/adapters/prisma/migrations/20261004141000_installation_settings/migration.sql +12 -0
  598. package/src/adapters/prisma/migrations/20261005090000_viewer_ship/migration.sql +2 -0
  599. package/src/adapters/prisma/migrations/20261005100000_viewer_sessions/migration.sql +20 -0
  600. package/src/adapters/prisma/migrations/20261005110000_notices/migration.sql +37 -0
  601. package/src/adapters/prisma/migrations/20261005120000_guide/migration.sql +34 -0
  602. package/src/adapters/prisma/migrations/20261006100000_fleet_crew_scope/migration.sql +8 -0
  603. package/src/adapters/prisma/migrations/20261006140000_lease_report_details/migration.sql +3 -0
  604. package/src/adapters/prisma/migrations/20261006160000_crew_requests/migration.sql +20 -0
  605. package/src/adapters/prisma/migrations/20261006180000_crew_scopes/migration.sql +9 -0
  606. package/src/adapters/prisma/migrations/20261006190000_crew_assignment/migration.sql +13 -0
  607. package/src/adapters/prisma/migrations/20261006200000_crew_request_reason/migration.sql +3 -0
  608. package/src/adapters/prisma/migrations/20261007020000_broad_crewing_scope_retired/migration.sql +8 -0
  609. package/src/adapters/prisma/migrations/migration_lock.toml +3 -0
  610. package/src/adapters/prisma/schema.prisma +558 -0
@@ -0,0 +1,2137 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model ConsoleSession
6
+ * The operator crewing argo through the web console. Ids start with ses_.
7
+ * Only the hash of the session token is stored, unique across all fleets: finding
8
+ * a session by its token is the one lookup not scoped by fleet (ADR 0007).
9
+ * Valid until expires_at, which moves to idle_limit_seconds after each use
10
+ * (30 days for the operator, 2 hours for a viewer), never past ends_by.
11
+ */
12
+ export type ConsoleSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$ConsoleSessionPayload>;
13
+ export type AggregateConsoleSession = {
14
+ _count: ConsoleSessionCountAggregateOutputType | null;
15
+ _avg: ConsoleSessionAvgAggregateOutputType | null;
16
+ _sum: ConsoleSessionSumAggregateOutputType | null;
17
+ _min: ConsoleSessionMinAggregateOutputType | null;
18
+ _max: ConsoleSessionMaxAggregateOutputType | null;
19
+ };
20
+ export type ConsoleSessionAvgAggregateOutputType = {
21
+ idleLimitSeconds: number | null;
22
+ };
23
+ export type ConsoleSessionSumAggregateOutputType = {
24
+ idleLimitSeconds: number | null;
25
+ };
26
+ export type ConsoleSessionMinAggregateOutputType = {
27
+ id: string | null;
28
+ fleetId: string | null;
29
+ shipId: string | null;
30
+ leaseId: string | null;
31
+ idleLimitSeconds: number | null;
32
+ endsBy: Date | null;
33
+ device: string | null;
34
+ tokenHash: string | null;
35
+ createdAt: Date | null;
36
+ lastUsedAt: Date | null;
37
+ expiresAt: Date | null;
38
+ endedAt: Date | null;
39
+ endReason: $Enums.ConsoleSessionEndReason | null;
40
+ };
41
+ export type ConsoleSessionMaxAggregateOutputType = {
42
+ id: string | null;
43
+ fleetId: string | null;
44
+ shipId: string | null;
45
+ leaseId: string | null;
46
+ idleLimitSeconds: number | null;
47
+ endsBy: Date | null;
48
+ device: string | null;
49
+ tokenHash: string | null;
50
+ createdAt: Date | null;
51
+ lastUsedAt: Date | null;
52
+ expiresAt: Date | null;
53
+ endedAt: Date | null;
54
+ endReason: $Enums.ConsoleSessionEndReason | null;
55
+ };
56
+ export type ConsoleSessionCountAggregateOutputType = {
57
+ id: number;
58
+ fleetId: number;
59
+ shipId: number;
60
+ leaseId: number;
61
+ idleLimitSeconds: number;
62
+ endsBy: number;
63
+ device: number;
64
+ tokenHash: number;
65
+ createdAt: number;
66
+ lastUsedAt: number;
67
+ expiresAt: number;
68
+ endedAt: number;
69
+ endReason: number;
70
+ _all: number;
71
+ };
72
+ export type ConsoleSessionAvgAggregateInputType = {
73
+ idleLimitSeconds?: true;
74
+ };
75
+ export type ConsoleSessionSumAggregateInputType = {
76
+ idleLimitSeconds?: true;
77
+ };
78
+ export type ConsoleSessionMinAggregateInputType = {
79
+ id?: true;
80
+ fleetId?: true;
81
+ shipId?: true;
82
+ leaseId?: true;
83
+ idleLimitSeconds?: true;
84
+ endsBy?: true;
85
+ device?: true;
86
+ tokenHash?: true;
87
+ createdAt?: true;
88
+ lastUsedAt?: true;
89
+ expiresAt?: true;
90
+ endedAt?: true;
91
+ endReason?: true;
92
+ };
93
+ export type ConsoleSessionMaxAggregateInputType = {
94
+ id?: true;
95
+ fleetId?: true;
96
+ shipId?: true;
97
+ leaseId?: true;
98
+ idleLimitSeconds?: true;
99
+ endsBy?: true;
100
+ device?: true;
101
+ tokenHash?: true;
102
+ createdAt?: true;
103
+ lastUsedAt?: true;
104
+ expiresAt?: true;
105
+ endedAt?: true;
106
+ endReason?: true;
107
+ };
108
+ export type ConsoleSessionCountAggregateInputType = {
109
+ id?: true;
110
+ fleetId?: true;
111
+ shipId?: true;
112
+ leaseId?: true;
113
+ idleLimitSeconds?: true;
114
+ endsBy?: true;
115
+ device?: true;
116
+ tokenHash?: true;
117
+ createdAt?: true;
118
+ lastUsedAt?: true;
119
+ expiresAt?: true;
120
+ endedAt?: true;
121
+ endReason?: true;
122
+ _all?: true;
123
+ };
124
+ export type ConsoleSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
125
+ /**
126
+ * Filter which ConsoleSession to aggregate.
127
+ */
128
+ where?: Prisma.ConsoleSessionWhereInput;
129
+ /**
130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
131
+ *
132
+ * Determine the order of ConsoleSessions to fetch.
133
+ */
134
+ orderBy?: Prisma.ConsoleSessionOrderByWithRelationInput | Prisma.ConsoleSessionOrderByWithRelationInput[];
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
137
+ *
138
+ * Sets the start position
139
+ */
140
+ cursor?: Prisma.ConsoleSessionWhereUniqueInput;
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
143
+ *
144
+ * Take `±n` ConsoleSessions from the position of the cursor.
145
+ */
146
+ take?: number;
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
149
+ *
150
+ * Skip the first `n` ConsoleSessions.
151
+ */
152
+ skip?: number;
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
+ *
156
+ * Count returned ConsoleSessions
157
+ **/
158
+ _count?: true | ConsoleSessionCountAggregateInputType;
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Select which fields to average
163
+ **/
164
+ _avg?: ConsoleSessionAvgAggregateInputType;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to sum
169
+ **/
170
+ _sum?: ConsoleSessionSumAggregateInputType;
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Select which fields to find the minimum value
175
+ **/
176
+ _min?: ConsoleSessionMinAggregateInputType;
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to find the maximum value
181
+ **/
182
+ _max?: ConsoleSessionMaxAggregateInputType;
183
+ };
184
+ export type GetConsoleSessionAggregateType<T extends ConsoleSessionAggregateArgs> = {
185
+ [P in keyof T & keyof AggregateConsoleSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateConsoleSession[P]> : Prisma.GetScalarType<T[P], AggregateConsoleSession[P]>;
186
+ };
187
+ export type ConsoleSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
188
+ where?: Prisma.ConsoleSessionWhereInput;
189
+ orderBy?: Prisma.ConsoleSessionOrderByWithAggregationInput | Prisma.ConsoleSessionOrderByWithAggregationInput[];
190
+ by: Prisma.ConsoleSessionScalarFieldEnum[] | Prisma.ConsoleSessionScalarFieldEnum;
191
+ having?: Prisma.ConsoleSessionScalarWhereWithAggregatesInput;
192
+ take?: number;
193
+ skip?: number;
194
+ _count?: ConsoleSessionCountAggregateInputType | true;
195
+ _avg?: ConsoleSessionAvgAggregateInputType;
196
+ _sum?: ConsoleSessionSumAggregateInputType;
197
+ _min?: ConsoleSessionMinAggregateInputType;
198
+ _max?: ConsoleSessionMaxAggregateInputType;
199
+ };
200
+ export type ConsoleSessionGroupByOutputType = {
201
+ id: string;
202
+ fleetId: string;
203
+ shipId: string;
204
+ leaseId: string | null;
205
+ idleLimitSeconds: number;
206
+ endsBy: Date | null;
207
+ device: string;
208
+ tokenHash: string;
209
+ createdAt: Date;
210
+ lastUsedAt: Date;
211
+ expiresAt: Date;
212
+ endedAt: Date | null;
213
+ endReason: $Enums.ConsoleSessionEndReason | null;
214
+ _count: ConsoleSessionCountAggregateOutputType | null;
215
+ _avg: ConsoleSessionAvgAggregateOutputType | null;
216
+ _sum: ConsoleSessionSumAggregateOutputType | null;
217
+ _min: ConsoleSessionMinAggregateOutputType | null;
218
+ _max: ConsoleSessionMaxAggregateOutputType | null;
219
+ };
220
+ export type GetConsoleSessionGroupByPayload<T extends ConsoleSessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ConsoleSessionGroupByOutputType, T['by']> & {
221
+ [P in ((keyof T) & (keyof ConsoleSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ConsoleSessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ConsoleSessionGroupByOutputType[P]>;
222
+ }>>;
223
+ export type ConsoleSessionWhereInput = {
224
+ AND?: Prisma.ConsoleSessionWhereInput | Prisma.ConsoleSessionWhereInput[];
225
+ OR?: Prisma.ConsoleSessionWhereInput[];
226
+ NOT?: Prisma.ConsoleSessionWhereInput | Prisma.ConsoleSessionWhereInput[];
227
+ id?: Prisma.StringFilter<"ConsoleSession"> | string;
228
+ fleetId?: Prisma.StringFilter<"ConsoleSession"> | string;
229
+ shipId?: Prisma.StringFilter<"ConsoleSession"> | string;
230
+ leaseId?: Prisma.StringNullableFilter<"ConsoleSession"> | string | null;
231
+ idleLimitSeconds?: Prisma.IntFilter<"ConsoleSession"> | number;
232
+ endsBy?: Prisma.DateTimeNullableFilter<"ConsoleSession"> | Date | string | null;
233
+ device?: Prisma.StringFilter<"ConsoleSession"> | string;
234
+ tokenHash?: Prisma.StringFilter<"ConsoleSession"> | string;
235
+ createdAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
236
+ lastUsedAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
237
+ expiresAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
238
+ endedAt?: Prisma.DateTimeNullableFilter<"ConsoleSession"> | Date | string | null;
239
+ endReason?: Prisma.EnumConsoleSessionEndReasonNullableFilter<"ConsoleSession"> | $Enums.ConsoleSessionEndReason | null;
240
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
241
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
242
+ lease?: Prisma.XOR<Prisma.LeaseNullableScalarRelationFilter, Prisma.LeaseWhereInput> | null;
243
+ noticeDismissals?: Prisma.NoticeDismissalListRelationFilter;
244
+ guideProgress?: Prisma.GuideProgressListRelationFilter;
245
+ };
246
+ export type ConsoleSessionOrderByWithRelationInput = {
247
+ id?: Prisma.SortOrder;
248
+ fleetId?: Prisma.SortOrder;
249
+ shipId?: Prisma.SortOrder;
250
+ leaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ idleLimitSeconds?: Prisma.SortOrder;
252
+ endsBy?: Prisma.SortOrderInput | Prisma.SortOrder;
253
+ device?: Prisma.SortOrder;
254
+ tokenHash?: Prisma.SortOrder;
255
+ createdAt?: Prisma.SortOrder;
256
+ lastUsedAt?: Prisma.SortOrder;
257
+ expiresAt?: Prisma.SortOrder;
258
+ endedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ endReason?: Prisma.SortOrderInput | Prisma.SortOrder;
260
+ fleet?: Prisma.FleetOrderByWithRelationInput;
261
+ ship?: Prisma.ShipOrderByWithRelationInput;
262
+ lease?: Prisma.LeaseOrderByWithRelationInput;
263
+ noticeDismissals?: Prisma.NoticeDismissalOrderByRelationAggregateInput;
264
+ guideProgress?: Prisma.GuideProgressOrderByRelationAggregateInput;
265
+ };
266
+ export type ConsoleSessionWhereUniqueInput = Prisma.AtLeast<{
267
+ id?: string;
268
+ fleetId?: string;
269
+ tokenHash?: string;
270
+ AND?: Prisma.ConsoleSessionWhereInput | Prisma.ConsoleSessionWhereInput[];
271
+ OR?: Prisma.ConsoleSessionWhereInput[];
272
+ NOT?: Prisma.ConsoleSessionWhereInput | Prisma.ConsoleSessionWhereInput[];
273
+ shipId?: Prisma.StringFilter<"ConsoleSession"> | string;
274
+ leaseId?: Prisma.StringNullableFilter<"ConsoleSession"> | string | null;
275
+ idleLimitSeconds?: Prisma.IntFilter<"ConsoleSession"> | number;
276
+ endsBy?: Prisma.DateTimeNullableFilter<"ConsoleSession"> | Date | string | null;
277
+ device?: Prisma.StringFilter<"ConsoleSession"> | string;
278
+ createdAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
279
+ lastUsedAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
280
+ expiresAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
281
+ endedAt?: Prisma.DateTimeNullableFilter<"ConsoleSession"> | Date | string | null;
282
+ endReason?: Prisma.EnumConsoleSessionEndReasonNullableFilter<"ConsoleSession"> | $Enums.ConsoleSessionEndReason | null;
283
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
284
+ ship?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
285
+ lease?: Prisma.XOR<Prisma.LeaseNullableScalarRelationFilter, Prisma.LeaseWhereInput> | null;
286
+ noticeDismissals?: Prisma.NoticeDismissalListRelationFilter;
287
+ guideProgress?: Prisma.GuideProgressListRelationFilter;
288
+ }, "id" | "tokenHash" | "fleetId">;
289
+ export type ConsoleSessionOrderByWithAggregationInput = {
290
+ id?: Prisma.SortOrder;
291
+ fleetId?: Prisma.SortOrder;
292
+ shipId?: Prisma.SortOrder;
293
+ leaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
294
+ idleLimitSeconds?: Prisma.SortOrder;
295
+ endsBy?: Prisma.SortOrderInput | Prisma.SortOrder;
296
+ device?: Prisma.SortOrder;
297
+ tokenHash?: Prisma.SortOrder;
298
+ createdAt?: Prisma.SortOrder;
299
+ lastUsedAt?: Prisma.SortOrder;
300
+ expiresAt?: Prisma.SortOrder;
301
+ endedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ endReason?: Prisma.SortOrderInput | Prisma.SortOrder;
303
+ _count?: Prisma.ConsoleSessionCountOrderByAggregateInput;
304
+ _avg?: Prisma.ConsoleSessionAvgOrderByAggregateInput;
305
+ _max?: Prisma.ConsoleSessionMaxOrderByAggregateInput;
306
+ _min?: Prisma.ConsoleSessionMinOrderByAggregateInput;
307
+ _sum?: Prisma.ConsoleSessionSumOrderByAggregateInput;
308
+ };
309
+ export type ConsoleSessionScalarWhereWithAggregatesInput = {
310
+ AND?: Prisma.ConsoleSessionScalarWhereWithAggregatesInput | Prisma.ConsoleSessionScalarWhereWithAggregatesInput[];
311
+ OR?: Prisma.ConsoleSessionScalarWhereWithAggregatesInput[];
312
+ NOT?: Prisma.ConsoleSessionScalarWhereWithAggregatesInput | Prisma.ConsoleSessionScalarWhereWithAggregatesInput[];
313
+ id?: Prisma.StringWithAggregatesFilter<"ConsoleSession"> | string;
314
+ fleetId?: Prisma.StringWithAggregatesFilter<"ConsoleSession"> | string;
315
+ shipId?: Prisma.StringWithAggregatesFilter<"ConsoleSession"> | string;
316
+ leaseId?: Prisma.StringNullableWithAggregatesFilter<"ConsoleSession"> | string | null;
317
+ idleLimitSeconds?: Prisma.IntWithAggregatesFilter<"ConsoleSession"> | number;
318
+ endsBy?: Prisma.DateTimeNullableWithAggregatesFilter<"ConsoleSession"> | Date | string | null;
319
+ device?: Prisma.StringWithAggregatesFilter<"ConsoleSession"> | string;
320
+ tokenHash?: Prisma.StringWithAggregatesFilter<"ConsoleSession"> | string;
321
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ConsoleSession"> | Date | string;
322
+ lastUsedAt?: Prisma.DateTimeWithAggregatesFilter<"ConsoleSession"> | Date | string;
323
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"ConsoleSession"> | Date | string;
324
+ endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ConsoleSession"> | Date | string | null;
325
+ endReason?: Prisma.EnumConsoleSessionEndReasonNullableWithAggregatesFilter<"ConsoleSession"> | $Enums.ConsoleSessionEndReason | null;
326
+ };
327
+ export type ConsoleSessionCreateInput = {
328
+ id: string;
329
+ idleLimitSeconds: number;
330
+ endsBy?: Date | string | null;
331
+ device?: string;
332
+ tokenHash: string;
333
+ createdAt: Date | string;
334
+ lastUsedAt: Date | string;
335
+ expiresAt: Date | string;
336
+ endedAt?: Date | string | null;
337
+ endReason?: $Enums.ConsoleSessionEndReason | null;
338
+ fleet: Prisma.FleetCreateNestedOneWithoutConsoleSessionsInput;
339
+ ship: Prisma.ShipCreateNestedOneWithoutConsoleSessionsInput;
340
+ lease?: Prisma.LeaseCreateNestedOneWithoutConsoleSessionsInput;
341
+ noticeDismissals?: Prisma.NoticeDismissalCreateNestedManyWithoutConsoleSessionInput;
342
+ guideProgress?: Prisma.GuideProgressCreateNestedManyWithoutConsoleSessionInput;
343
+ };
344
+ export type ConsoleSessionUncheckedCreateInput = {
345
+ id: string;
346
+ fleetId: string;
347
+ shipId: string;
348
+ leaseId?: string | null;
349
+ idleLimitSeconds: number;
350
+ endsBy?: Date | string | null;
351
+ device?: string;
352
+ tokenHash: string;
353
+ createdAt: Date | string;
354
+ lastUsedAt: Date | string;
355
+ expiresAt: Date | string;
356
+ endedAt?: Date | string | null;
357
+ endReason?: $Enums.ConsoleSessionEndReason | null;
358
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedCreateNestedManyWithoutConsoleSessionInput;
359
+ guideProgress?: Prisma.GuideProgressUncheckedCreateNestedManyWithoutConsoleSessionInput;
360
+ };
361
+ export type ConsoleSessionUpdateInput = {
362
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
363
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
364
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
365
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
368
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
369
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
370
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
371
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
372
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutConsoleSessionsNestedInput;
373
+ ship?: Prisma.ShipUpdateOneRequiredWithoutConsoleSessionsNestedInput;
374
+ lease?: Prisma.LeaseUpdateOneWithoutConsoleSessionsNestedInput;
375
+ noticeDismissals?: Prisma.NoticeDismissalUpdateManyWithoutConsoleSessionNestedInput;
376
+ guideProgress?: Prisma.GuideProgressUpdateManyWithoutConsoleSessionNestedInput;
377
+ };
378
+ export type ConsoleSessionUncheckedUpdateInput = {
379
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
380
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
381
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
383
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
384
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
385
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
386
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
387
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
388
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
389
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
390
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
391
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
392
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedUpdateManyWithoutConsoleSessionNestedInput;
393
+ guideProgress?: Prisma.GuideProgressUncheckedUpdateManyWithoutConsoleSessionNestedInput;
394
+ };
395
+ export type ConsoleSessionCreateManyInput = {
396
+ id: string;
397
+ fleetId: string;
398
+ shipId: string;
399
+ leaseId?: string | null;
400
+ idleLimitSeconds: number;
401
+ endsBy?: Date | string | null;
402
+ device?: string;
403
+ tokenHash: string;
404
+ createdAt: Date | string;
405
+ lastUsedAt: Date | string;
406
+ expiresAt: Date | string;
407
+ endedAt?: Date | string | null;
408
+ endReason?: $Enums.ConsoleSessionEndReason | null;
409
+ };
410
+ export type ConsoleSessionUpdateManyMutationInput = {
411
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
412
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
413
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
414
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
416
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
417
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
418
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
419
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
420
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
421
+ };
422
+ export type ConsoleSessionUncheckedUpdateManyInput = {
423
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
424
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
425
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
426
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
427
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
428
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
429
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
430
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
432
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
433
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
434
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
435
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
436
+ };
437
+ export type ConsoleSessionListRelationFilter = {
438
+ every?: Prisma.ConsoleSessionWhereInput;
439
+ some?: Prisma.ConsoleSessionWhereInput;
440
+ none?: Prisma.ConsoleSessionWhereInput;
441
+ };
442
+ export type ConsoleSessionOrderByRelationAggregateInput = {
443
+ _count?: Prisma.SortOrder;
444
+ };
445
+ export type ConsoleSessionCountOrderByAggregateInput = {
446
+ id?: Prisma.SortOrder;
447
+ fleetId?: Prisma.SortOrder;
448
+ shipId?: Prisma.SortOrder;
449
+ leaseId?: Prisma.SortOrder;
450
+ idleLimitSeconds?: Prisma.SortOrder;
451
+ endsBy?: Prisma.SortOrder;
452
+ device?: Prisma.SortOrder;
453
+ tokenHash?: Prisma.SortOrder;
454
+ createdAt?: Prisma.SortOrder;
455
+ lastUsedAt?: Prisma.SortOrder;
456
+ expiresAt?: Prisma.SortOrder;
457
+ endedAt?: Prisma.SortOrder;
458
+ endReason?: Prisma.SortOrder;
459
+ };
460
+ export type ConsoleSessionAvgOrderByAggregateInput = {
461
+ idleLimitSeconds?: Prisma.SortOrder;
462
+ };
463
+ export type ConsoleSessionMaxOrderByAggregateInput = {
464
+ id?: Prisma.SortOrder;
465
+ fleetId?: Prisma.SortOrder;
466
+ shipId?: Prisma.SortOrder;
467
+ leaseId?: Prisma.SortOrder;
468
+ idleLimitSeconds?: Prisma.SortOrder;
469
+ endsBy?: Prisma.SortOrder;
470
+ device?: Prisma.SortOrder;
471
+ tokenHash?: Prisma.SortOrder;
472
+ createdAt?: Prisma.SortOrder;
473
+ lastUsedAt?: Prisma.SortOrder;
474
+ expiresAt?: Prisma.SortOrder;
475
+ endedAt?: Prisma.SortOrder;
476
+ endReason?: Prisma.SortOrder;
477
+ };
478
+ export type ConsoleSessionMinOrderByAggregateInput = {
479
+ id?: Prisma.SortOrder;
480
+ fleetId?: Prisma.SortOrder;
481
+ shipId?: Prisma.SortOrder;
482
+ leaseId?: Prisma.SortOrder;
483
+ idleLimitSeconds?: Prisma.SortOrder;
484
+ endsBy?: Prisma.SortOrder;
485
+ device?: Prisma.SortOrder;
486
+ tokenHash?: Prisma.SortOrder;
487
+ createdAt?: Prisma.SortOrder;
488
+ lastUsedAt?: Prisma.SortOrder;
489
+ expiresAt?: Prisma.SortOrder;
490
+ endedAt?: Prisma.SortOrder;
491
+ endReason?: Prisma.SortOrder;
492
+ };
493
+ export type ConsoleSessionSumOrderByAggregateInput = {
494
+ idleLimitSeconds?: Prisma.SortOrder;
495
+ };
496
+ export type ConsoleSessionScalarRelationFilter = {
497
+ is?: Prisma.ConsoleSessionWhereInput;
498
+ isNot?: Prisma.ConsoleSessionWhereInput;
499
+ };
500
+ export type ConsoleSessionCreateNestedManyWithoutFleetInput = {
501
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutFleetInput, Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput> | Prisma.ConsoleSessionCreateWithoutFleetInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput[];
502
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput | Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput[];
503
+ createMany?: Prisma.ConsoleSessionCreateManyFleetInputEnvelope;
504
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
505
+ };
506
+ export type ConsoleSessionUncheckedCreateNestedManyWithoutFleetInput = {
507
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutFleetInput, Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput> | Prisma.ConsoleSessionCreateWithoutFleetInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput[];
508
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput | Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput[];
509
+ createMany?: Prisma.ConsoleSessionCreateManyFleetInputEnvelope;
510
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
511
+ };
512
+ export type ConsoleSessionUpdateManyWithoutFleetNestedInput = {
513
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutFleetInput, Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput> | Prisma.ConsoleSessionCreateWithoutFleetInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput[];
514
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput | Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput[];
515
+ upsert?: Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutFleetInput | Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutFleetInput[];
516
+ createMany?: Prisma.ConsoleSessionCreateManyFleetInputEnvelope;
517
+ set?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
518
+ disconnect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
519
+ delete?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
520
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
521
+ update?: Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutFleetInput | Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutFleetInput[];
522
+ updateMany?: Prisma.ConsoleSessionUpdateManyWithWhereWithoutFleetInput | Prisma.ConsoleSessionUpdateManyWithWhereWithoutFleetInput[];
523
+ deleteMany?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
524
+ };
525
+ export type ConsoleSessionUncheckedUpdateManyWithoutFleetNestedInput = {
526
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutFleetInput, Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput> | Prisma.ConsoleSessionCreateWithoutFleetInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput[];
527
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput | Prisma.ConsoleSessionCreateOrConnectWithoutFleetInput[];
528
+ upsert?: Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutFleetInput | Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutFleetInput[];
529
+ createMany?: Prisma.ConsoleSessionCreateManyFleetInputEnvelope;
530
+ set?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
531
+ disconnect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
532
+ delete?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
533
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
534
+ update?: Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutFleetInput | Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutFleetInput[];
535
+ updateMany?: Prisma.ConsoleSessionUpdateManyWithWhereWithoutFleetInput | Prisma.ConsoleSessionUpdateManyWithWhereWithoutFleetInput[];
536
+ deleteMany?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
537
+ };
538
+ export type ConsoleSessionCreateNestedManyWithoutShipInput = {
539
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutShipInput, Prisma.ConsoleSessionUncheckedCreateWithoutShipInput> | Prisma.ConsoleSessionCreateWithoutShipInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutShipInput[];
540
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutShipInput | Prisma.ConsoleSessionCreateOrConnectWithoutShipInput[];
541
+ createMany?: Prisma.ConsoleSessionCreateManyShipInputEnvelope;
542
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
543
+ };
544
+ export type ConsoleSessionUncheckedCreateNestedManyWithoutShipInput = {
545
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutShipInput, Prisma.ConsoleSessionUncheckedCreateWithoutShipInput> | Prisma.ConsoleSessionCreateWithoutShipInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutShipInput[];
546
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutShipInput | Prisma.ConsoleSessionCreateOrConnectWithoutShipInput[];
547
+ createMany?: Prisma.ConsoleSessionCreateManyShipInputEnvelope;
548
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
549
+ };
550
+ export type ConsoleSessionUpdateManyWithoutShipNestedInput = {
551
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutShipInput, Prisma.ConsoleSessionUncheckedCreateWithoutShipInput> | Prisma.ConsoleSessionCreateWithoutShipInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutShipInput[];
552
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutShipInput | Prisma.ConsoleSessionCreateOrConnectWithoutShipInput[];
553
+ upsert?: Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutShipInput | Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutShipInput[];
554
+ createMany?: Prisma.ConsoleSessionCreateManyShipInputEnvelope;
555
+ set?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
556
+ disconnect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
557
+ delete?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
558
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
559
+ update?: Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutShipInput | Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutShipInput[];
560
+ updateMany?: Prisma.ConsoleSessionUpdateManyWithWhereWithoutShipInput | Prisma.ConsoleSessionUpdateManyWithWhereWithoutShipInput[];
561
+ deleteMany?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
562
+ };
563
+ export type ConsoleSessionUncheckedUpdateManyWithoutShipNestedInput = {
564
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutShipInput, Prisma.ConsoleSessionUncheckedCreateWithoutShipInput> | Prisma.ConsoleSessionCreateWithoutShipInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutShipInput[];
565
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutShipInput | Prisma.ConsoleSessionCreateOrConnectWithoutShipInput[];
566
+ upsert?: Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutShipInput | Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutShipInput[];
567
+ createMany?: Prisma.ConsoleSessionCreateManyShipInputEnvelope;
568
+ set?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
569
+ disconnect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
570
+ delete?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
571
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
572
+ update?: Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutShipInput | Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutShipInput[];
573
+ updateMany?: Prisma.ConsoleSessionUpdateManyWithWhereWithoutShipInput | Prisma.ConsoleSessionUpdateManyWithWhereWithoutShipInput[];
574
+ deleteMany?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
575
+ };
576
+ export type ConsoleSessionCreateNestedManyWithoutLeaseInput = {
577
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput> | Prisma.ConsoleSessionCreateWithoutLeaseInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput[];
578
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput | Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput[];
579
+ createMany?: Prisma.ConsoleSessionCreateManyLeaseInputEnvelope;
580
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
581
+ };
582
+ export type ConsoleSessionUncheckedCreateNestedManyWithoutLeaseInput = {
583
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput> | Prisma.ConsoleSessionCreateWithoutLeaseInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput[];
584
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput | Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput[];
585
+ createMany?: Prisma.ConsoleSessionCreateManyLeaseInputEnvelope;
586
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
587
+ };
588
+ export type ConsoleSessionUpdateManyWithoutLeaseNestedInput = {
589
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput> | Prisma.ConsoleSessionCreateWithoutLeaseInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput[];
590
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput | Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput[];
591
+ upsert?: Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutLeaseInput | Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutLeaseInput[];
592
+ createMany?: Prisma.ConsoleSessionCreateManyLeaseInputEnvelope;
593
+ set?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
594
+ disconnect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
595
+ delete?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
596
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
597
+ update?: Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutLeaseInput | Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutLeaseInput[];
598
+ updateMany?: Prisma.ConsoleSessionUpdateManyWithWhereWithoutLeaseInput | Prisma.ConsoleSessionUpdateManyWithWhereWithoutLeaseInput[];
599
+ deleteMany?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
600
+ };
601
+ export type ConsoleSessionUncheckedUpdateManyWithoutLeaseNestedInput = {
602
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput> | Prisma.ConsoleSessionCreateWithoutLeaseInput[] | Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput[];
603
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput | Prisma.ConsoleSessionCreateOrConnectWithoutLeaseInput[];
604
+ upsert?: Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutLeaseInput | Prisma.ConsoleSessionUpsertWithWhereUniqueWithoutLeaseInput[];
605
+ createMany?: Prisma.ConsoleSessionCreateManyLeaseInputEnvelope;
606
+ set?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
607
+ disconnect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
608
+ delete?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
609
+ connect?: Prisma.ConsoleSessionWhereUniqueInput | Prisma.ConsoleSessionWhereUniqueInput[];
610
+ update?: Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutLeaseInput | Prisma.ConsoleSessionUpdateWithWhereUniqueWithoutLeaseInput[];
611
+ updateMany?: Prisma.ConsoleSessionUpdateManyWithWhereWithoutLeaseInput | Prisma.ConsoleSessionUpdateManyWithWhereWithoutLeaseInput[];
612
+ deleteMany?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
613
+ };
614
+ export type NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput = {
615
+ set?: $Enums.ConsoleSessionEndReason | null;
616
+ };
617
+ export type ConsoleSessionCreateNestedOneWithoutNoticeDismissalsInput = {
618
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUncheckedCreateWithoutNoticeDismissalsInput>;
619
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutNoticeDismissalsInput;
620
+ connect?: Prisma.ConsoleSessionWhereUniqueInput;
621
+ };
622
+ export type ConsoleSessionUpdateOneRequiredWithoutNoticeDismissalsNestedInput = {
623
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUncheckedCreateWithoutNoticeDismissalsInput>;
624
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutNoticeDismissalsInput;
625
+ upsert?: Prisma.ConsoleSessionUpsertWithoutNoticeDismissalsInput;
626
+ connect?: Prisma.ConsoleSessionWhereUniqueInput;
627
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ConsoleSessionUpdateToOneWithWhereWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUpdateWithoutNoticeDismissalsInput>, Prisma.ConsoleSessionUncheckedUpdateWithoutNoticeDismissalsInput>;
628
+ };
629
+ export type ConsoleSessionCreateNestedOneWithoutGuideProgressInput = {
630
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutGuideProgressInput, Prisma.ConsoleSessionUncheckedCreateWithoutGuideProgressInput>;
631
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutGuideProgressInput;
632
+ connect?: Prisma.ConsoleSessionWhereUniqueInput;
633
+ };
634
+ export type ConsoleSessionUpdateOneRequiredWithoutGuideProgressNestedInput = {
635
+ create?: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutGuideProgressInput, Prisma.ConsoleSessionUncheckedCreateWithoutGuideProgressInput>;
636
+ connectOrCreate?: Prisma.ConsoleSessionCreateOrConnectWithoutGuideProgressInput;
637
+ upsert?: Prisma.ConsoleSessionUpsertWithoutGuideProgressInput;
638
+ connect?: Prisma.ConsoleSessionWhereUniqueInput;
639
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ConsoleSessionUpdateToOneWithWhereWithoutGuideProgressInput, Prisma.ConsoleSessionUpdateWithoutGuideProgressInput>, Prisma.ConsoleSessionUncheckedUpdateWithoutGuideProgressInput>;
640
+ };
641
+ export type ConsoleSessionCreateWithoutFleetInput = {
642
+ id: string;
643
+ idleLimitSeconds: number;
644
+ endsBy?: Date | string | null;
645
+ device?: string;
646
+ tokenHash: string;
647
+ createdAt: Date | string;
648
+ lastUsedAt: Date | string;
649
+ expiresAt: Date | string;
650
+ endedAt?: Date | string | null;
651
+ endReason?: $Enums.ConsoleSessionEndReason | null;
652
+ ship: Prisma.ShipCreateNestedOneWithoutConsoleSessionsInput;
653
+ lease?: Prisma.LeaseCreateNestedOneWithoutConsoleSessionsInput;
654
+ noticeDismissals?: Prisma.NoticeDismissalCreateNestedManyWithoutConsoleSessionInput;
655
+ guideProgress?: Prisma.GuideProgressCreateNestedManyWithoutConsoleSessionInput;
656
+ };
657
+ export type ConsoleSessionUncheckedCreateWithoutFleetInput = {
658
+ id: string;
659
+ shipId: string;
660
+ leaseId?: string | null;
661
+ idleLimitSeconds: number;
662
+ endsBy?: Date | string | null;
663
+ device?: string;
664
+ tokenHash: string;
665
+ createdAt: Date | string;
666
+ lastUsedAt: Date | string;
667
+ expiresAt: Date | string;
668
+ endedAt?: Date | string | null;
669
+ endReason?: $Enums.ConsoleSessionEndReason | null;
670
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedCreateNestedManyWithoutConsoleSessionInput;
671
+ guideProgress?: Prisma.GuideProgressUncheckedCreateNestedManyWithoutConsoleSessionInput;
672
+ };
673
+ export type ConsoleSessionCreateOrConnectWithoutFleetInput = {
674
+ where: Prisma.ConsoleSessionWhereUniqueInput;
675
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutFleetInput, Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput>;
676
+ };
677
+ export type ConsoleSessionCreateManyFleetInputEnvelope = {
678
+ data: Prisma.ConsoleSessionCreateManyFleetInput | Prisma.ConsoleSessionCreateManyFleetInput[];
679
+ skipDuplicates?: boolean;
680
+ };
681
+ export type ConsoleSessionUpsertWithWhereUniqueWithoutFleetInput = {
682
+ where: Prisma.ConsoleSessionWhereUniqueInput;
683
+ update: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutFleetInput, Prisma.ConsoleSessionUncheckedUpdateWithoutFleetInput>;
684
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutFleetInput, Prisma.ConsoleSessionUncheckedCreateWithoutFleetInput>;
685
+ };
686
+ export type ConsoleSessionUpdateWithWhereUniqueWithoutFleetInput = {
687
+ where: Prisma.ConsoleSessionWhereUniqueInput;
688
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutFleetInput, Prisma.ConsoleSessionUncheckedUpdateWithoutFleetInput>;
689
+ };
690
+ export type ConsoleSessionUpdateManyWithWhereWithoutFleetInput = {
691
+ where: Prisma.ConsoleSessionScalarWhereInput;
692
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateManyMutationInput, Prisma.ConsoleSessionUncheckedUpdateManyWithoutFleetInput>;
693
+ };
694
+ export type ConsoleSessionScalarWhereInput = {
695
+ AND?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
696
+ OR?: Prisma.ConsoleSessionScalarWhereInput[];
697
+ NOT?: Prisma.ConsoleSessionScalarWhereInput | Prisma.ConsoleSessionScalarWhereInput[];
698
+ id?: Prisma.StringFilter<"ConsoleSession"> | string;
699
+ fleetId?: Prisma.StringFilter<"ConsoleSession"> | string;
700
+ shipId?: Prisma.StringFilter<"ConsoleSession"> | string;
701
+ leaseId?: Prisma.StringNullableFilter<"ConsoleSession"> | string | null;
702
+ idleLimitSeconds?: Prisma.IntFilter<"ConsoleSession"> | number;
703
+ endsBy?: Prisma.DateTimeNullableFilter<"ConsoleSession"> | Date | string | null;
704
+ device?: Prisma.StringFilter<"ConsoleSession"> | string;
705
+ tokenHash?: Prisma.StringFilter<"ConsoleSession"> | string;
706
+ createdAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
707
+ lastUsedAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
708
+ expiresAt?: Prisma.DateTimeFilter<"ConsoleSession"> | Date | string;
709
+ endedAt?: Prisma.DateTimeNullableFilter<"ConsoleSession"> | Date | string | null;
710
+ endReason?: Prisma.EnumConsoleSessionEndReasonNullableFilter<"ConsoleSession"> | $Enums.ConsoleSessionEndReason | null;
711
+ };
712
+ export type ConsoleSessionCreateWithoutShipInput = {
713
+ id: string;
714
+ idleLimitSeconds: number;
715
+ endsBy?: Date | string | null;
716
+ device?: string;
717
+ tokenHash: string;
718
+ createdAt: Date | string;
719
+ lastUsedAt: Date | string;
720
+ expiresAt: Date | string;
721
+ endedAt?: Date | string | null;
722
+ endReason?: $Enums.ConsoleSessionEndReason | null;
723
+ fleet: Prisma.FleetCreateNestedOneWithoutConsoleSessionsInput;
724
+ lease?: Prisma.LeaseCreateNestedOneWithoutConsoleSessionsInput;
725
+ noticeDismissals?: Prisma.NoticeDismissalCreateNestedManyWithoutConsoleSessionInput;
726
+ guideProgress?: Prisma.GuideProgressCreateNestedManyWithoutConsoleSessionInput;
727
+ };
728
+ export type ConsoleSessionUncheckedCreateWithoutShipInput = {
729
+ id: string;
730
+ leaseId?: string | null;
731
+ idleLimitSeconds: number;
732
+ endsBy?: Date | string | null;
733
+ device?: string;
734
+ tokenHash: string;
735
+ createdAt: Date | string;
736
+ lastUsedAt: Date | string;
737
+ expiresAt: Date | string;
738
+ endedAt?: Date | string | null;
739
+ endReason?: $Enums.ConsoleSessionEndReason | null;
740
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedCreateNestedManyWithoutConsoleSessionInput;
741
+ guideProgress?: Prisma.GuideProgressUncheckedCreateNestedManyWithoutConsoleSessionInput;
742
+ };
743
+ export type ConsoleSessionCreateOrConnectWithoutShipInput = {
744
+ where: Prisma.ConsoleSessionWhereUniqueInput;
745
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutShipInput, Prisma.ConsoleSessionUncheckedCreateWithoutShipInput>;
746
+ };
747
+ export type ConsoleSessionCreateManyShipInputEnvelope = {
748
+ data: Prisma.ConsoleSessionCreateManyShipInput | Prisma.ConsoleSessionCreateManyShipInput[];
749
+ skipDuplicates?: boolean;
750
+ };
751
+ export type ConsoleSessionUpsertWithWhereUniqueWithoutShipInput = {
752
+ where: Prisma.ConsoleSessionWhereUniqueInput;
753
+ update: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutShipInput, Prisma.ConsoleSessionUncheckedUpdateWithoutShipInput>;
754
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutShipInput, Prisma.ConsoleSessionUncheckedCreateWithoutShipInput>;
755
+ };
756
+ export type ConsoleSessionUpdateWithWhereUniqueWithoutShipInput = {
757
+ where: Prisma.ConsoleSessionWhereUniqueInput;
758
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutShipInput, Prisma.ConsoleSessionUncheckedUpdateWithoutShipInput>;
759
+ };
760
+ export type ConsoleSessionUpdateManyWithWhereWithoutShipInput = {
761
+ where: Prisma.ConsoleSessionScalarWhereInput;
762
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateManyMutationInput, Prisma.ConsoleSessionUncheckedUpdateManyWithoutShipInput>;
763
+ };
764
+ export type ConsoleSessionCreateWithoutLeaseInput = {
765
+ id: string;
766
+ idleLimitSeconds: number;
767
+ endsBy?: Date | string | null;
768
+ device?: string;
769
+ tokenHash: string;
770
+ createdAt: Date | string;
771
+ lastUsedAt: Date | string;
772
+ expiresAt: Date | string;
773
+ endedAt?: Date | string | null;
774
+ endReason?: $Enums.ConsoleSessionEndReason | null;
775
+ fleet: Prisma.FleetCreateNestedOneWithoutConsoleSessionsInput;
776
+ ship: Prisma.ShipCreateNestedOneWithoutConsoleSessionsInput;
777
+ noticeDismissals?: Prisma.NoticeDismissalCreateNestedManyWithoutConsoleSessionInput;
778
+ guideProgress?: Prisma.GuideProgressCreateNestedManyWithoutConsoleSessionInput;
779
+ };
780
+ export type ConsoleSessionUncheckedCreateWithoutLeaseInput = {
781
+ id: string;
782
+ shipId: string;
783
+ idleLimitSeconds: number;
784
+ endsBy?: Date | string | null;
785
+ device?: string;
786
+ tokenHash: string;
787
+ createdAt: Date | string;
788
+ lastUsedAt: Date | string;
789
+ expiresAt: Date | string;
790
+ endedAt?: Date | string | null;
791
+ endReason?: $Enums.ConsoleSessionEndReason | null;
792
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedCreateNestedManyWithoutConsoleSessionInput;
793
+ guideProgress?: Prisma.GuideProgressUncheckedCreateNestedManyWithoutConsoleSessionInput;
794
+ };
795
+ export type ConsoleSessionCreateOrConnectWithoutLeaseInput = {
796
+ where: Prisma.ConsoleSessionWhereUniqueInput;
797
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput>;
798
+ };
799
+ export type ConsoleSessionCreateManyLeaseInputEnvelope = {
800
+ data: Prisma.ConsoleSessionCreateManyLeaseInput | Prisma.ConsoleSessionCreateManyLeaseInput[];
801
+ skipDuplicates?: boolean;
802
+ };
803
+ export type ConsoleSessionUpsertWithWhereUniqueWithoutLeaseInput = {
804
+ where: Prisma.ConsoleSessionWhereUniqueInput;
805
+ update: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedUpdateWithoutLeaseInput>;
806
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedCreateWithoutLeaseInput>;
807
+ };
808
+ export type ConsoleSessionUpdateWithWhereUniqueWithoutLeaseInput = {
809
+ where: Prisma.ConsoleSessionWhereUniqueInput;
810
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutLeaseInput, Prisma.ConsoleSessionUncheckedUpdateWithoutLeaseInput>;
811
+ };
812
+ export type ConsoleSessionUpdateManyWithWhereWithoutLeaseInput = {
813
+ where: Prisma.ConsoleSessionScalarWhereInput;
814
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateManyMutationInput, Prisma.ConsoleSessionUncheckedUpdateManyWithoutLeaseInput>;
815
+ };
816
+ export type ConsoleSessionCreateWithoutNoticeDismissalsInput = {
817
+ id: string;
818
+ idleLimitSeconds: number;
819
+ endsBy?: Date | string | null;
820
+ device?: string;
821
+ tokenHash: string;
822
+ createdAt: Date | string;
823
+ lastUsedAt: Date | string;
824
+ expiresAt: Date | string;
825
+ endedAt?: Date | string | null;
826
+ endReason?: $Enums.ConsoleSessionEndReason | null;
827
+ fleet: Prisma.FleetCreateNestedOneWithoutConsoleSessionsInput;
828
+ ship: Prisma.ShipCreateNestedOneWithoutConsoleSessionsInput;
829
+ lease?: Prisma.LeaseCreateNestedOneWithoutConsoleSessionsInput;
830
+ guideProgress?: Prisma.GuideProgressCreateNestedManyWithoutConsoleSessionInput;
831
+ };
832
+ export type ConsoleSessionUncheckedCreateWithoutNoticeDismissalsInput = {
833
+ id: string;
834
+ fleetId: string;
835
+ shipId: string;
836
+ leaseId?: string | null;
837
+ idleLimitSeconds: number;
838
+ endsBy?: Date | string | null;
839
+ device?: string;
840
+ tokenHash: string;
841
+ createdAt: Date | string;
842
+ lastUsedAt: Date | string;
843
+ expiresAt: Date | string;
844
+ endedAt?: Date | string | null;
845
+ endReason?: $Enums.ConsoleSessionEndReason | null;
846
+ guideProgress?: Prisma.GuideProgressUncheckedCreateNestedManyWithoutConsoleSessionInput;
847
+ };
848
+ export type ConsoleSessionCreateOrConnectWithoutNoticeDismissalsInput = {
849
+ where: Prisma.ConsoleSessionWhereUniqueInput;
850
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUncheckedCreateWithoutNoticeDismissalsInput>;
851
+ };
852
+ export type ConsoleSessionUpsertWithoutNoticeDismissalsInput = {
853
+ update: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUncheckedUpdateWithoutNoticeDismissalsInput>;
854
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUncheckedCreateWithoutNoticeDismissalsInput>;
855
+ where?: Prisma.ConsoleSessionWhereInput;
856
+ };
857
+ export type ConsoleSessionUpdateToOneWithWhereWithoutNoticeDismissalsInput = {
858
+ where?: Prisma.ConsoleSessionWhereInput;
859
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutNoticeDismissalsInput, Prisma.ConsoleSessionUncheckedUpdateWithoutNoticeDismissalsInput>;
860
+ };
861
+ export type ConsoleSessionUpdateWithoutNoticeDismissalsInput = {
862
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
863
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
864
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
865
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
866
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
867
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
868
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
869
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
870
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
871
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
872
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutConsoleSessionsNestedInput;
873
+ ship?: Prisma.ShipUpdateOneRequiredWithoutConsoleSessionsNestedInput;
874
+ lease?: Prisma.LeaseUpdateOneWithoutConsoleSessionsNestedInput;
875
+ guideProgress?: Prisma.GuideProgressUpdateManyWithoutConsoleSessionNestedInput;
876
+ };
877
+ export type ConsoleSessionUncheckedUpdateWithoutNoticeDismissalsInput = {
878
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
879
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
880
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
881
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
882
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
883
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
884
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
885
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
886
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
887
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
888
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
889
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
890
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
891
+ guideProgress?: Prisma.GuideProgressUncheckedUpdateManyWithoutConsoleSessionNestedInput;
892
+ };
893
+ export type ConsoleSessionCreateWithoutGuideProgressInput = {
894
+ id: string;
895
+ idleLimitSeconds: number;
896
+ endsBy?: Date | string | null;
897
+ device?: string;
898
+ tokenHash: string;
899
+ createdAt: Date | string;
900
+ lastUsedAt: Date | string;
901
+ expiresAt: Date | string;
902
+ endedAt?: Date | string | null;
903
+ endReason?: $Enums.ConsoleSessionEndReason | null;
904
+ fleet: Prisma.FleetCreateNestedOneWithoutConsoleSessionsInput;
905
+ ship: Prisma.ShipCreateNestedOneWithoutConsoleSessionsInput;
906
+ lease?: Prisma.LeaseCreateNestedOneWithoutConsoleSessionsInput;
907
+ noticeDismissals?: Prisma.NoticeDismissalCreateNestedManyWithoutConsoleSessionInput;
908
+ };
909
+ export type ConsoleSessionUncheckedCreateWithoutGuideProgressInput = {
910
+ id: string;
911
+ fleetId: string;
912
+ shipId: string;
913
+ leaseId?: string | null;
914
+ idleLimitSeconds: number;
915
+ endsBy?: Date | string | null;
916
+ device?: string;
917
+ tokenHash: string;
918
+ createdAt: Date | string;
919
+ lastUsedAt: Date | string;
920
+ expiresAt: Date | string;
921
+ endedAt?: Date | string | null;
922
+ endReason?: $Enums.ConsoleSessionEndReason | null;
923
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedCreateNestedManyWithoutConsoleSessionInput;
924
+ };
925
+ export type ConsoleSessionCreateOrConnectWithoutGuideProgressInput = {
926
+ where: Prisma.ConsoleSessionWhereUniqueInput;
927
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutGuideProgressInput, Prisma.ConsoleSessionUncheckedCreateWithoutGuideProgressInput>;
928
+ };
929
+ export type ConsoleSessionUpsertWithoutGuideProgressInput = {
930
+ update: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutGuideProgressInput, Prisma.ConsoleSessionUncheckedUpdateWithoutGuideProgressInput>;
931
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateWithoutGuideProgressInput, Prisma.ConsoleSessionUncheckedCreateWithoutGuideProgressInput>;
932
+ where?: Prisma.ConsoleSessionWhereInput;
933
+ };
934
+ export type ConsoleSessionUpdateToOneWithWhereWithoutGuideProgressInput = {
935
+ where?: Prisma.ConsoleSessionWhereInput;
936
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateWithoutGuideProgressInput, Prisma.ConsoleSessionUncheckedUpdateWithoutGuideProgressInput>;
937
+ };
938
+ export type ConsoleSessionUpdateWithoutGuideProgressInput = {
939
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
940
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
941
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
942
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
943
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
944
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
945
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
946
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
947
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
948
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
949
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutConsoleSessionsNestedInput;
950
+ ship?: Prisma.ShipUpdateOneRequiredWithoutConsoleSessionsNestedInput;
951
+ lease?: Prisma.LeaseUpdateOneWithoutConsoleSessionsNestedInput;
952
+ noticeDismissals?: Prisma.NoticeDismissalUpdateManyWithoutConsoleSessionNestedInput;
953
+ };
954
+ export type ConsoleSessionUncheckedUpdateWithoutGuideProgressInput = {
955
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
956
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
957
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
958
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
959
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
960
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
961
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
962
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
963
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
964
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
965
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
966
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
967
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
968
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedUpdateManyWithoutConsoleSessionNestedInput;
969
+ };
970
+ export type ConsoleSessionCreateManyFleetInput = {
971
+ id: string;
972
+ shipId: string;
973
+ leaseId?: string | null;
974
+ idleLimitSeconds: number;
975
+ endsBy?: Date | string | null;
976
+ device?: string;
977
+ tokenHash: string;
978
+ createdAt: Date | string;
979
+ lastUsedAt: Date | string;
980
+ expiresAt: Date | string;
981
+ endedAt?: Date | string | null;
982
+ endReason?: $Enums.ConsoleSessionEndReason | null;
983
+ };
984
+ export type ConsoleSessionUpdateWithoutFleetInput = {
985
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
986
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
987
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
988
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
989
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
990
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
991
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
992
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
993
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
994
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
995
+ ship?: Prisma.ShipUpdateOneRequiredWithoutConsoleSessionsNestedInput;
996
+ lease?: Prisma.LeaseUpdateOneWithoutConsoleSessionsNestedInput;
997
+ noticeDismissals?: Prisma.NoticeDismissalUpdateManyWithoutConsoleSessionNestedInput;
998
+ guideProgress?: Prisma.GuideProgressUpdateManyWithoutConsoleSessionNestedInput;
999
+ };
1000
+ export type ConsoleSessionUncheckedUpdateWithoutFleetInput = {
1001
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1002
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
1003
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1004
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1005
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1006
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1007
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1008
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1009
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1010
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1011
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1012
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1013
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedUpdateManyWithoutConsoleSessionNestedInput;
1014
+ guideProgress?: Prisma.GuideProgressUncheckedUpdateManyWithoutConsoleSessionNestedInput;
1015
+ };
1016
+ export type ConsoleSessionUncheckedUpdateManyWithoutFleetInput = {
1017
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1018
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
1019
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1021
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1022
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1023
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1024
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1025
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1026
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1027
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1028
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1029
+ };
1030
+ export type ConsoleSessionCreateManyShipInput = {
1031
+ id: string;
1032
+ leaseId?: string | null;
1033
+ idleLimitSeconds: number;
1034
+ endsBy?: Date | string | null;
1035
+ device?: string;
1036
+ tokenHash: string;
1037
+ createdAt: Date | string;
1038
+ lastUsedAt: Date | string;
1039
+ expiresAt: Date | string;
1040
+ endedAt?: Date | string | null;
1041
+ endReason?: $Enums.ConsoleSessionEndReason | null;
1042
+ };
1043
+ export type ConsoleSessionUpdateWithoutShipInput = {
1044
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1045
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1046
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1047
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1048
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1049
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1050
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1051
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1052
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1053
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1054
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutConsoleSessionsNestedInput;
1055
+ lease?: Prisma.LeaseUpdateOneWithoutConsoleSessionsNestedInput;
1056
+ noticeDismissals?: Prisma.NoticeDismissalUpdateManyWithoutConsoleSessionNestedInput;
1057
+ guideProgress?: Prisma.GuideProgressUpdateManyWithoutConsoleSessionNestedInput;
1058
+ };
1059
+ export type ConsoleSessionUncheckedUpdateWithoutShipInput = {
1060
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1061
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1062
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1063
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1064
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1065
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1066
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1067
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1068
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1069
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1070
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1071
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedUpdateManyWithoutConsoleSessionNestedInput;
1072
+ guideProgress?: Prisma.GuideProgressUncheckedUpdateManyWithoutConsoleSessionNestedInput;
1073
+ };
1074
+ export type ConsoleSessionUncheckedUpdateManyWithoutShipInput = {
1075
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1076
+ leaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1077
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1078
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1079
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1080
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1081
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1082
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1083
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1084
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1085
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1086
+ };
1087
+ export type ConsoleSessionCreateManyLeaseInput = {
1088
+ id: string;
1089
+ shipId: string;
1090
+ idleLimitSeconds: number;
1091
+ endsBy?: Date | string | null;
1092
+ device?: string;
1093
+ tokenHash: string;
1094
+ createdAt: Date | string;
1095
+ lastUsedAt: Date | string;
1096
+ expiresAt: Date | string;
1097
+ endedAt?: Date | string | null;
1098
+ endReason?: $Enums.ConsoleSessionEndReason | null;
1099
+ };
1100
+ export type ConsoleSessionUpdateWithoutLeaseInput = {
1101
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1102
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1103
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1104
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1105
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1106
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1107
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1108
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1109
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1110
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1111
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutConsoleSessionsNestedInput;
1112
+ ship?: Prisma.ShipUpdateOneRequiredWithoutConsoleSessionsNestedInput;
1113
+ noticeDismissals?: Prisma.NoticeDismissalUpdateManyWithoutConsoleSessionNestedInput;
1114
+ guideProgress?: Prisma.GuideProgressUpdateManyWithoutConsoleSessionNestedInput;
1115
+ };
1116
+ export type ConsoleSessionUncheckedUpdateWithoutLeaseInput = {
1117
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1118
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
1119
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1120
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1121
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1122
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1123
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1124
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1125
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1126
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1127
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1128
+ noticeDismissals?: Prisma.NoticeDismissalUncheckedUpdateManyWithoutConsoleSessionNestedInput;
1129
+ guideProgress?: Prisma.GuideProgressUncheckedUpdateManyWithoutConsoleSessionNestedInput;
1130
+ };
1131
+ export type ConsoleSessionUncheckedUpdateManyWithoutLeaseInput = {
1132
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1133
+ shipId?: Prisma.StringFieldUpdateOperationsInput | string;
1134
+ idleLimitSeconds?: Prisma.IntFieldUpdateOperationsInput | number;
1135
+ endsBy?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1136
+ device?: Prisma.StringFieldUpdateOperationsInput | string;
1137
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
1138
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1139
+ lastUsedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1140
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1141
+ endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1142
+ endReason?: Prisma.NullableEnumConsoleSessionEndReasonFieldUpdateOperationsInput | $Enums.ConsoleSessionEndReason | null;
1143
+ };
1144
+ /**
1145
+ * Count Type ConsoleSessionCountOutputType
1146
+ */
1147
+ export type ConsoleSessionCountOutputType = {
1148
+ noticeDismissals: number;
1149
+ guideProgress: number;
1150
+ };
1151
+ export type ConsoleSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
+ noticeDismissals?: boolean | ConsoleSessionCountOutputTypeCountNoticeDismissalsArgs;
1153
+ guideProgress?: boolean | ConsoleSessionCountOutputTypeCountGuideProgressArgs;
1154
+ };
1155
+ /**
1156
+ * ConsoleSessionCountOutputType without action
1157
+ */
1158
+ export type ConsoleSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ /**
1160
+ * Select specific fields to fetch from the ConsoleSessionCountOutputType
1161
+ */
1162
+ select?: Prisma.ConsoleSessionCountOutputTypeSelect<ExtArgs> | null;
1163
+ };
1164
+ /**
1165
+ * ConsoleSessionCountOutputType without action
1166
+ */
1167
+ export type ConsoleSessionCountOutputTypeCountNoticeDismissalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1168
+ where?: Prisma.NoticeDismissalWhereInput;
1169
+ };
1170
+ /**
1171
+ * ConsoleSessionCountOutputType without action
1172
+ */
1173
+ export type ConsoleSessionCountOutputTypeCountGuideProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1174
+ where?: Prisma.GuideProgressWhereInput;
1175
+ };
1176
+ export type ConsoleSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1177
+ id?: boolean;
1178
+ fleetId?: boolean;
1179
+ shipId?: boolean;
1180
+ leaseId?: boolean;
1181
+ idleLimitSeconds?: boolean;
1182
+ endsBy?: boolean;
1183
+ device?: boolean;
1184
+ tokenHash?: boolean;
1185
+ createdAt?: boolean;
1186
+ lastUsedAt?: boolean;
1187
+ expiresAt?: boolean;
1188
+ endedAt?: boolean;
1189
+ endReason?: boolean;
1190
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1191
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1192
+ lease?: boolean | Prisma.ConsoleSession$leaseArgs<ExtArgs>;
1193
+ noticeDismissals?: boolean | Prisma.ConsoleSession$noticeDismissalsArgs<ExtArgs>;
1194
+ guideProgress?: boolean | Prisma.ConsoleSession$guideProgressArgs<ExtArgs>;
1195
+ _count?: boolean | Prisma.ConsoleSessionCountOutputTypeDefaultArgs<ExtArgs>;
1196
+ }, ExtArgs["result"]["consoleSession"]>;
1197
+ export type ConsoleSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1198
+ id?: boolean;
1199
+ fleetId?: boolean;
1200
+ shipId?: boolean;
1201
+ leaseId?: boolean;
1202
+ idleLimitSeconds?: boolean;
1203
+ endsBy?: boolean;
1204
+ device?: boolean;
1205
+ tokenHash?: boolean;
1206
+ createdAt?: boolean;
1207
+ lastUsedAt?: boolean;
1208
+ expiresAt?: boolean;
1209
+ endedAt?: boolean;
1210
+ endReason?: boolean;
1211
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1212
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1213
+ lease?: boolean | Prisma.ConsoleSession$leaseArgs<ExtArgs>;
1214
+ }, ExtArgs["result"]["consoleSession"]>;
1215
+ export type ConsoleSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1216
+ id?: boolean;
1217
+ fleetId?: boolean;
1218
+ shipId?: boolean;
1219
+ leaseId?: boolean;
1220
+ idleLimitSeconds?: boolean;
1221
+ endsBy?: boolean;
1222
+ device?: boolean;
1223
+ tokenHash?: boolean;
1224
+ createdAt?: boolean;
1225
+ lastUsedAt?: boolean;
1226
+ expiresAt?: boolean;
1227
+ endedAt?: boolean;
1228
+ endReason?: boolean;
1229
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1230
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1231
+ lease?: boolean | Prisma.ConsoleSession$leaseArgs<ExtArgs>;
1232
+ }, ExtArgs["result"]["consoleSession"]>;
1233
+ export type ConsoleSessionSelectScalar = {
1234
+ id?: boolean;
1235
+ fleetId?: boolean;
1236
+ shipId?: boolean;
1237
+ leaseId?: boolean;
1238
+ idleLimitSeconds?: boolean;
1239
+ endsBy?: boolean;
1240
+ device?: boolean;
1241
+ tokenHash?: boolean;
1242
+ createdAt?: boolean;
1243
+ lastUsedAt?: boolean;
1244
+ expiresAt?: boolean;
1245
+ endedAt?: boolean;
1246
+ endReason?: boolean;
1247
+ };
1248
+ export type ConsoleSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "shipId" | "leaseId" | "idleLimitSeconds" | "endsBy" | "device" | "tokenHash" | "createdAt" | "lastUsedAt" | "expiresAt" | "endedAt" | "endReason", ExtArgs["result"]["consoleSession"]>;
1249
+ export type ConsoleSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1250
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1251
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1252
+ lease?: boolean | Prisma.ConsoleSession$leaseArgs<ExtArgs>;
1253
+ noticeDismissals?: boolean | Prisma.ConsoleSession$noticeDismissalsArgs<ExtArgs>;
1254
+ guideProgress?: boolean | Prisma.ConsoleSession$guideProgressArgs<ExtArgs>;
1255
+ _count?: boolean | Prisma.ConsoleSessionCountOutputTypeDefaultArgs<ExtArgs>;
1256
+ };
1257
+ export type ConsoleSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1258
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1259
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1260
+ lease?: boolean | Prisma.ConsoleSession$leaseArgs<ExtArgs>;
1261
+ };
1262
+ export type ConsoleSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1264
+ ship?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1265
+ lease?: boolean | Prisma.ConsoleSession$leaseArgs<ExtArgs>;
1266
+ };
1267
+ export type $ConsoleSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1268
+ name: "ConsoleSession";
1269
+ objects: {
1270
+ fleet: Prisma.$FleetPayload<ExtArgs>;
1271
+ ship: Prisma.$ShipPayload<ExtArgs>;
1272
+ lease: Prisma.$LeasePayload<ExtArgs> | null;
1273
+ noticeDismissals: Prisma.$NoticeDismissalPayload<ExtArgs>[];
1274
+ guideProgress: Prisma.$GuideProgressPayload<ExtArgs>[];
1275
+ };
1276
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1277
+ id: string;
1278
+ fleetId: string;
1279
+ shipId: string;
1280
+ /**
1281
+ * The lease on argo it holds; null for a viewer session (decision 0022).
1282
+ */
1283
+ leaseId: string | null;
1284
+ idleLimitSeconds: number;
1285
+ /**
1286
+ * No use renews it past this; null when only idleness ends it.
1287
+ */
1288
+ endsBy: Date | null;
1289
+ /**
1290
+ * The device it signed in from, as the browser told: "Mac · Chrome".
1291
+ */
1292
+ device: string;
1293
+ tokenHash: string;
1294
+ createdAt: Date;
1295
+ lastUsedAt: Date;
1296
+ expiresAt: Date;
1297
+ endedAt: Date | null;
1298
+ /**
1299
+ * Why the session ended; null while it has not.
1300
+ */
1301
+ endReason: $Enums.ConsoleSessionEndReason | null;
1302
+ }, ExtArgs["result"]["consoleSession"]>;
1303
+ composites: {};
1304
+ };
1305
+ export type ConsoleSessionGetPayload<S extends boolean | null | undefined | ConsoleSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload, S>;
1306
+ export type ConsoleSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ConsoleSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1307
+ select?: ConsoleSessionCountAggregateInputType | true;
1308
+ };
1309
+ export interface ConsoleSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1310
+ [K: symbol]: {
1311
+ types: Prisma.TypeMap<ExtArgs>['model']['ConsoleSession'];
1312
+ meta: {
1313
+ name: 'ConsoleSession';
1314
+ };
1315
+ };
1316
+ /**
1317
+ * Find zero or one ConsoleSession that matches the filter.
1318
+ * @param {ConsoleSessionFindUniqueArgs} args - Arguments to find a ConsoleSession
1319
+ * @example
1320
+ * // Get one ConsoleSession
1321
+ * const consoleSession = await prisma.consoleSession.findUnique({
1322
+ * where: {
1323
+ * // ... provide filter here
1324
+ * }
1325
+ * })
1326
+ */
1327
+ findUnique<T extends ConsoleSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, ConsoleSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1328
+ /**
1329
+ * Find one ConsoleSession that matches the filter or throw an error with `error.code='P2025'`
1330
+ * if no matches were found.
1331
+ * @param {ConsoleSessionFindUniqueOrThrowArgs} args - Arguments to find a ConsoleSession
1332
+ * @example
1333
+ * // Get one ConsoleSession
1334
+ * const consoleSession = await prisma.consoleSession.findUniqueOrThrow({
1335
+ * where: {
1336
+ * // ... provide filter here
1337
+ * }
1338
+ * })
1339
+ */
1340
+ findUniqueOrThrow<T extends ConsoleSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ConsoleSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1341
+ /**
1342
+ * Find the first ConsoleSession that matches the filter.
1343
+ * Note, that providing `undefined` is treated as the value not being there.
1344
+ * Read more here: https://pris.ly/d/null-undefined
1345
+ * @param {ConsoleSessionFindFirstArgs} args - Arguments to find a ConsoleSession
1346
+ * @example
1347
+ * // Get one ConsoleSession
1348
+ * const consoleSession = await prisma.consoleSession.findFirst({
1349
+ * where: {
1350
+ * // ... provide filter here
1351
+ * }
1352
+ * })
1353
+ */
1354
+ findFirst<T extends ConsoleSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, ConsoleSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1355
+ /**
1356
+ * Find the first ConsoleSession that matches the filter or
1357
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1358
+ * Note, that providing `undefined` is treated as the value not being there.
1359
+ * Read more here: https://pris.ly/d/null-undefined
1360
+ * @param {ConsoleSessionFindFirstOrThrowArgs} args - Arguments to find a ConsoleSession
1361
+ * @example
1362
+ * // Get one ConsoleSession
1363
+ * const consoleSession = await prisma.consoleSession.findFirstOrThrow({
1364
+ * where: {
1365
+ * // ... provide filter here
1366
+ * }
1367
+ * })
1368
+ */
1369
+ findFirstOrThrow<T extends ConsoleSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ConsoleSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1370
+ /**
1371
+ * Find zero or more ConsoleSessions that matches the filter.
1372
+ * Note, that providing `undefined` is treated as the value not being there.
1373
+ * Read more here: https://pris.ly/d/null-undefined
1374
+ * @param {ConsoleSessionFindManyArgs} args - Arguments to filter and select certain fields only.
1375
+ * @example
1376
+ * // Get all ConsoleSessions
1377
+ * const consoleSessions = await prisma.consoleSession.findMany()
1378
+ *
1379
+ * // Get first 10 ConsoleSessions
1380
+ * const consoleSessions = await prisma.consoleSession.findMany({ take: 10 })
1381
+ *
1382
+ * // Only select the `id`
1383
+ * const consoleSessionWithIdOnly = await prisma.consoleSession.findMany({ select: { id: true } })
1384
+ *
1385
+ */
1386
+ findMany<T extends ConsoleSessionFindManyArgs>(args?: Prisma.SelectSubset<T, ConsoleSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1387
+ /**
1388
+ * Create a ConsoleSession.
1389
+ * @param {ConsoleSessionCreateArgs} args - Arguments to create a ConsoleSession.
1390
+ * @example
1391
+ * // Create one ConsoleSession
1392
+ * const ConsoleSession = await prisma.consoleSession.create({
1393
+ * data: {
1394
+ * // ... data to create a ConsoleSession
1395
+ * }
1396
+ * })
1397
+ *
1398
+ */
1399
+ create<T extends ConsoleSessionCreateArgs>(args: Prisma.SelectSubset<T, ConsoleSessionCreateArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1400
+ /**
1401
+ * Create many ConsoleSessions.
1402
+ * @param {ConsoleSessionCreateManyArgs} args - Arguments to create many ConsoleSessions.
1403
+ * @example
1404
+ * // Create many ConsoleSessions
1405
+ * const consoleSession = await prisma.consoleSession.createMany({
1406
+ * data: [
1407
+ * // ... provide data here
1408
+ * ]
1409
+ * })
1410
+ *
1411
+ */
1412
+ createMany<T extends ConsoleSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, ConsoleSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1413
+ /**
1414
+ * Create many ConsoleSessions and returns the data saved in the database.
1415
+ * @param {ConsoleSessionCreateManyAndReturnArgs} args - Arguments to create many ConsoleSessions.
1416
+ * @example
1417
+ * // Create many ConsoleSessions
1418
+ * const consoleSession = await prisma.consoleSession.createManyAndReturn({
1419
+ * data: [
1420
+ * // ... provide data here
1421
+ * ]
1422
+ * })
1423
+ *
1424
+ * // Create many ConsoleSessions and only return the `id`
1425
+ * const consoleSessionWithIdOnly = await prisma.consoleSession.createManyAndReturn({
1426
+ * select: { id: true },
1427
+ * data: [
1428
+ * // ... provide data here
1429
+ * ]
1430
+ * })
1431
+ * Note, that providing `undefined` is treated as the value not being there.
1432
+ * Read more here: https://pris.ly/d/null-undefined
1433
+ *
1434
+ */
1435
+ createManyAndReturn<T extends ConsoleSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ConsoleSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1436
+ /**
1437
+ * Delete a ConsoleSession.
1438
+ * @param {ConsoleSessionDeleteArgs} args - Arguments to delete one ConsoleSession.
1439
+ * @example
1440
+ * // Delete one ConsoleSession
1441
+ * const ConsoleSession = await prisma.consoleSession.delete({
1442
+ * where: {
1443
+ * // ... filter to delete one ConsoleSession
1444
+ * }
1445
+ * })
1446
+ *
1447
+ */
1448
+ delete<T extends ConsoleSessionDeleteArgs>(args: Prisma.SelectSubset<T, ConsoleSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1449
+ /**
1450
+ * Update one ConsoleSession.
1451
+ * @param {ConsoleSessionUpdateArgs} args - Arguments to update one ConsoleSession.
1452
+ * @example
1453
+ * // Update one ConsoleSession
1454
+ * const consoleSession = await prisma.consoleSession.update({
1455
+ * where: {
1456
+ * // ... provide filter here
1457
+ * },
1458
+ * data: {
1459
+ * // ... provide data here
1460
+ * }
1461
+ * })
1462
+ *
1463
+ */
1464
+ update<T extends ConsoleSessionUpdateArgs>(args: Prisma.SelectSubset<T, ConsoleSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1465
+ /**
1466
+ * Delete zero or more ConsoleSessions.
1467
+ * @param {ConsoleSessionDeleteManyArgs} args - Arguments to filter ConsoleSessions to delete.
1468
+ * @example
1469
+ * // Delete a few ConsoleSessions
1470
+ * const { count } = await prisma.consoleSession.deleteMany({
1471
+ * where: {
1472
+ * // ... provide filter here
1473
+ * }
1474
+ * })
1475
+ *
1476
+ */
1477
+ deleteMany<T extends ConsoleSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, ConsoleSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1478
+ /**
1479
+ * Update zero or more ConsoleSessions.
1480
+ * Note, that providing `undefined` is treated as the value not being there.
1481
+ * Read more here: https://pris.ly/d/null-undefined
1482
+ * @param {ConsoleSessionUpdateManyArgs} args - Arguments to update one or more rows.
1483
+ * @example
1484
+ * // Update many ConsoleSessions
1485
+ * const consoleSession = await prisma.consoleSession.updateMany({
1486
+ * where: {
1487
+ * // ... provide filter here
1488
+ * },
1489
+ * data: {
1490
+ * // ... provide data here
1491
+ * }
1492
+ * })
1493
+ *
1494
+ */
1495
+ updateMany<T extends ConsoleSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, ConsoleSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1496
+ /**
1497
+ * Update zero or more ConsoleSessions and returns the data updated in the database.
1498
+ * @param {ConsoleSessionUpdateManyAndReturnArgs} args - Arguments to update many ConsoleSessions.
1499
+ * @example
1500
+ * // Update many ConsoleSessions
1501
+ * const consoleSession = await prisma.consoleSession.updateManyAndReturn({
1502
+ * where: {
1503
+ * // ... provide filter here
1504
+ * },
1505
+ * data: [
1506
+ * // ... provide data here
1507
+ * ]
1508
+ * })
1509
+ *
1510
+ * // Update zero or more ConsoleSessions and only return the `id`
1511
+ * const consoleSessionWithIdOnly = await prisma.consoleSession.updateManyAndReturn({
1512
+ * select: { id: true },
1513
+ * where: {
1514
+ * // ... provide filter here
1515
+ * },
1516
+ * data: [
1517
+ * // ... provide data here
1518
+ * ]
1519
+ * })
1520
+ * Note, that providing `undefined` is treated as the value not being there.
1521
+ * Read more here: https://pris.ly/d/null-undefined
1522
+ *
1523
+ */
1524
+ updateManyAndReturn<T extends ConsoleSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ConsoleSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1525
+ /**
1526
+ * Create or update one ConsoleSession.
1527
+ * @param {ConsoleSessionUpsertArgs} args - Arguments to update or create a ConsoleSession.
1528
+ * @example
1529
+ * // Update or create a ConsoleSession
1530
+ * const consoleSession = await prisma.consoleSession.upsert({
1531
+ * create: {
1532
+ * // ... data to create a ConsoleSession
1533
+ * },
1534
+ * update: {
1535
+ * // ... in case it already exists, update
1536
+ * },
1537
+ * where: {
1538
+ * // ... the filter for the ConsoleSession we want to update
1539
+ * }
1540
+ * })
1541
+ */
1542
+ upsert<T extends ConsoleSessionUpsertArgs>(args: Prisma.SelectSubset<T, ConsoleSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__ConsoleSessionClient<runtime.Types.Result.GetResult<Prisma.$ConsoleSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1543
+ /**
1544
+ * Count the number of ConsoleSessions.
1545
+ * Note, that providing `undefined` is treated as the value not being there.
1546
+ * Read more here: https://pris.ly/d/null-undefined
1547
+ * @param {ConsoleSessionCountArgs} args - Arguments to filter ConsoleSessions to count.
1548
+ * @example
1549
+ * // Count the number of ConsoleSessions
1550
+ * const count = await prisma.consoleSession.count({
1551
+ * where: {
1552
+ * // ... the filter for the ConsoleSessions we want to count
1553
+ * }
1554
+ * })
1555
+ **/
1556
+ count<T extends ConsoleSessionCountArgs>(args?: Prisma.Subset<T, ConsoleSessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ConsoleSessionCountAggregateOutputType> : number>;
1557
+ /**
1558
+ * Allows you to perform aggregations operations on a ConsoleSession.
1559
+ * Note, that providing `undefined` is treated as the value not being there.
1560
+ * Read more here: https://pris.ly/d/null-undefined
1561
+ * @param {ConsoleSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1562
+ * @example
1563
+ * // Ordered by age ascending
1564
+ * // Where email contains prisma.io
1565
+ * // Limited to the 10 users
1566
+ * const aggregations = await prisma.user.aggregate({
1567
+ * _avg: {
1568
+ * age: true,
1569
+ * },
1570
+ * where: {
1571
+ * email: {
1572
+ * contains: "prisma.io",
1573
+ * },
1574
+ * },
1575
+ * orderBy: {
1576
+ * age: "asc",
1577
+ * },
1578
+ * take: 10,
1579
+ * })
1580
+ **/
1581
+ aggregate<T extends ConsoleSessionAggregateArgs>(args: Prisma.Subset<T, ConsoleSessionAggregateArgs>): Prisma.PrismaPromise<GetConsoleSessionAggregateType<T>>;
1582
+ /**
1583
+ * Group by ConsoleSession.
1584
+ * Note, that providing `undefined` is treated as the value not being there.
1585
+ * Read more here: https://pris.ly/d/null-undefined
1586
+ * @param {ConsoleSessionGroupByArgs} args - Group by arguments.
1587
+ * @example
1588
+ * // Group by city, order by createdAt, get count
1589
+ * const result = await prisma.user.groupBy({
1590
+ * by: ['city', 'createdAt'],
1591
+ * orderBy: {
1592
+ * createdAt: true
1593
+ * },
1594
+ * _count: {
1595
+ * _all: true
1596
+ * },
1597
+ * })
1598
+ *
1599
+ **/
1600
+ groupBy<T extends ConsoleSessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1601
+ orderBy: ConsoleSessionGroupByArgs['orderBy'];
1602
+ } : {
1603
+ orderBy?: ConsoleSessionGroupByArgs['orderBy'];
1604
+ }, 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 ? {
1605
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1606
+ Error,
1607
+ 'Field ',
1608
+ P,
1609
+ ` in "having" needs to be provided in "by"`
1610
+ ];
1611
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1612
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1613
+ }[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 ? {} : {
1614
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1615
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1616
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1617
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ConsoleSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConsoleSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1618
+ /**
1619
+ * Fields of the ConsoleSession model
1620
+ */
1621
+ readonly fields: ConsoleSessionFieldRefs;
1622
+ }
1623
+ /**
1624
+ * The delegate class that acts as a "Promise-like" for ConsoleSession.
1625
+ * Why is this prefixed with `Prisma__`?
1626
+ * Because we want to prevent naming conflicts as mentioned in
1627
+ * https://github.com/prisma/prisma-client-js/issues/707
1628
+ */
1629
+ export interface Prisma__ConsoleSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1630
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1631
+ fleet<T extends Prisma.FleetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FleetDefaultArgs<ExtArgs>>): Prisma.Prisma__FleetClient<runtime.Types.Result.GetResult<Prisma.$FleetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1632
+ ship<T extends Prisma.ShipDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShipDefaultArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1633
+ lease<T extends Prisma.ConsoleSession$leaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsoleSession$leaseArgs<ExtArgs>>): Prisma.Prisma__LeaseClient<runtime.Types.Result.GetResult<Prisma.$LeasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1634
+ noticeDismissals<T extends Prisma.ConsoleSession$noticeDismissalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsoleSession$noticeDismissalsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NoticeDismissalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1635
+ guideProgress<T extends Prisma.ConsoleSession$guideProgressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsoleSession$guideProgressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GuideProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1636
+ /**
1637
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1638
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1639
+ * @param onrejected The callback to execute when the Promise is rejected.
1640
+ * @returns A Promise for the completion of which ever callback is executed.
1641
+ */
1642
+ 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>;
1643
+ /**
1644
+ * Attaches a callback for only the rejection of the Promise.
1645
+ * @param onrejected The callback to execute when the Promise is rejected.
1646
+ * @returns A Promise for the completion of the callback.
1647
+ */
1648
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1649
+ /**
1650
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1651
+ * resolved value cannot be modified from the callback.
1652
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1653
+ * @returns A Promise for the completion of the callback.
1654
+ */
1655
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1656
+ }
1657
+ /**
1658
+ * Fields of the ConsoleSession model
1659
+ */
1660
+ export interface ConsoleSessionFieldRefs {
1661
+ readonly id: Prisma.FieldRef<"ConsoleSession", 'String'>;
1662
+ readonly fleetId: Prisma.FieldRef<"ConsoleSession", 'String'>;
1663
+ readonly shipId: Prisma.FieldRef<"ConsoleSession", 'String'>;
1664
+ readonly leaseId: Prisma.FieldRef<"ConsoleSession", 'String'>;
1665
+ readonly idleLimitSeconds: Prisma.FieldRef<"ConsoleSession", 'Int'>;
1666
+ readonly endsBy: Prisma.FieldRef<"ConsoleSession", 'DateTime'>;
1667
+ readonly device: Prisma.FieldRef<"ConsoleSession", 'String'>;
1668
+ readonly tokenHash: Prisma.FieldRef<"ConsoleSession", 'String'>;
1669
+ readonly createdAt: Prisma.FieldRef<"ConsoleSession", 'DateTime'>;
1670
+ readonly lastUsedAt: Prisma.FieldRef<"ConsoleSession", 'DateTime'>;
1671
+ readonly expiresAt: Prisma.FieldRef<"ConsoleSession", 'DateTime'>;
1672
+ readonly endedAt: Prisma.FieldRef<"ConsoleSession", 'DateTime'>;
1673
+ readonly endReason: Prisma.FieldRef<"ConsoleSession", 'ConsoleSessionEndReason'>;
1674
+ }
1675
+ /**
1676
+ * ConsoleSession findUnique
1677
+ */
1678
+ export type ConsoleSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1679
+ /**
1680
+ * Select specific fields to fetch from the ConsoleSession
1681
+ */
1682
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1683
+ /**
1684
+ * Omit specific fields from the ConsoleSession
1685
+ */
1686
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1687
+ /**
1688
+ * Choose, which related nodes to fetch as well
1689
+ */
1690
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1691
+ /**
1692
+ * Filter, which ConsoleSession to fetch.
1693
+ */
1694
+ where: Prisma.ConsoleSessionWhereUniqueInput;
1695
+ };
1696
+ /**
1697
+ * ConsoleSession findUniqueOrThrow
1698
+ */
1699
+ export type ConsoleSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1700
+ /**
1701
+ * Select specific fields to fetch from the ConsoleSession
1702
+ */
1703
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1704
+ /**
1705
+ * Omit specific fields from the ConsoleSession
1706
+ */
1707
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1708
+ /**
1709
+ * Choose, which related nodes to fetch as well
1710
+ */
1711
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1712
+ /**
1713
+ * Filter, which ConsoleSession to fetch.
1714
+ */
1715
+ where: Prisma.ConsoleSessionWhereUniqueInput;
1716
+ };
1717
+ /**
1718
+ * ConsoleSession findFirst
1719
+ */
1720
+ export type ConsoleSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1721
+ /**
1722
+ * Select specific fields to fetch from the ConsoleSession
1723
+ */
1724
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1725
+ /**
1726
+ * Omit specific fields from the ConsoleSession
1727
+ */
1728
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1729
+ /**
1730
+ * Choose, which related nodes to fetch as well
1731
+ */
1732
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1733
+ /**
1734
+ * Filter, which ConsoleSession to fetch.
1735
+ */
1736
+ where?: Prisma.ConsoleSessionWhereInput;
1737
+ /**
1738
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1739
+ *
1740
+ * Determine the order of ConsoleSessions to fetch.
1741
+ */
1742
+ orderBy?: Prisma.ConsoleSessionOrderByWithRelationInput | Prisma.ConsoleSessionOrderByWithRelationInput[];
1743
+ /**
1744
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1745
+ *
1746
+ * Sets the position for searching for ConsoleSessions.
1747
+ */
1748
+ cursor?: Prisma.ConsoleSessionWhereUniqueInput;
1749
+ /**
1750
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1751
+ *
1752
+ * Take `±n` ConsoleSessions from the position of the cursor.
1753
+ */
1754
+ take?: number;
1755
+ /**
1756
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1757
+ *
1758
+ * Skip the first `n` ConsoleSessions.
1759
+ */
1760
+ skip?: number;
1761
+ /**
1762
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1763
+ *
1764
+ * Filter by unique combinations of ConsoleSessions.
1765
+ */
1766
+ distinct?: Prisma.ConsoleSessionScalarFieldEnum | Prisma.ConsoleSessionScalarFieldEnum[];
1767
+ };
1768
+ /**
1769
+ * ConsoleSession findFirstOrThrow
1770
+ */
1771
+ export type ConsoleSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1772
+ /**
1773
+ * Select specific fields to fetch from the ConsoleSession
1774
+ */
1775
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1776
+ /**
1777
+ * Omit specific fields from the ConsoleSession
1778
+ */
1779
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1780
+ /**
1781
+ * Choose, which related nodes to fetch as well
1782
+ */
1783
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1784
+ /**
1785
+ * Filter, which ConsoleSession to fetch.
1786
+ */
1787
+ where?: Prisma.ConsoleSessionWhereInput;
1788
+ /**
1789
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1790
+ *
1791
+ * Determine the order of ConsoleSessions to fetch.
1792
+ */
1793
+ orderBy?: Prisma.ConsoleSessionOrderByWithRelationInput | Prisma.ConsoleSessionOrderByWithRelationInput[];
1794
+ /**
1795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1796
+ *
1797
+ * Sets the position for searching for ConsoleSessions.
1798
+ */
1799
+ cursor?: Prisma.ConsoleSessionWhereUniqueInput;
1800
+ /**
1801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1802
+ *
1803
+ * Take `±n` ConsoleSessions from the position of the cursor.
1804
+ */
1805
+ take?: number;
1806
+ /**
1807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1808
+ *
1809
+ * Skip the first `n` ConsoleSessions.
1810
+ */
1811
+ skip?: number;
1812
+ /**
1813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1814
+ *
1815
+ * Filter by unique combinations of ConsoleSessions.
1816
+ */
1817
+ distinct?: Prisma.ConsoleSessionScalarFieldEnum | Prisma.ConsoleSessionScalarFieldEnum[];
1818
+ };
1819
+ /**
1820
+ * ConsoleSession findMany
1821
+ */
1822
+ export type ConsoleSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1823
+ /**
1824
+ * Select specific fields to fetch from the ConsoleSession
1825
+ */
1826
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1827
+ /**
1828
+ * Omit specific fields from the ConsoleSession
1829
+ */
1830
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1831
+ /**
1832
+ * Choose, which related nodes to fetch as well
1833
+ */
1834
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1835
+ /**
1836
+ * Filter, which ConsoleSessions to fetch.
1837
+ */
1838
+ where?: Prisma.ConsoleSessionWhereInput;
1839
+ /**
1840
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1841
+ *
1842
+ * Determine the order of ConsoleSessions to fetch.
1843
+ */
1844
+ orderBy?: Prisma.ConsoleSessionOrderByWithRelationInput | Prisma.ConsoleSessionOrderByWithRelationInput[];
1845
+ /**
1846
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1847
+ *
1848
+ * Sets the position for listing ConsoleSessions.
1849
+ */
1850
+ cursor?: Prisma.ConsoleSessionWhereUniqueInput;
1851
+ /**
1852
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1853
+ *
1854
+ * Take `±n` ConsoleSessions from the position of the cursor.
1855
+ */
1856
+ take?: number;
1857
+ /**
1858
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1859
+ *
1860
+ * Skip the first `n` ConsoleSessions.
1861
+ */
1862
+ skip?: number;
1863
+ /**
1864
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1865
+ *
1866
+ * Filter by unique combinations of ConsoleSessions.
1867
+ */
1868
+ distinct?: Prisma.ConsoleSessionScalarFieldEnum | Prisma.ConsoleSessionScalarFieldEnum[];
1869
+ };
1870
+ /**
1871
+ * ConsoleSession create
1872
+ */
1873
+ export type ConsoleSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1874
+ /**
1875
+ * Select specific fields to fetch from the ConsoleSession
1876
+ */
1877
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1878
+ /**
1879
+ * Omit specific fields from the ConsoleSession
1880
+ */
1881
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1882
+ /**
1883
+ * Choose, which related nodes to fetch as well
1884
+ */
1885
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1886
+ /**
1887
+ * The data needed to create a ConsoleSession.
1888
+ */
1889
+ data: Prisma.XOR<Prisma.ConsoleSessionCreateInput, Prisma.ConsoleSessionUncheckedCreateInput>;
1890
+ };
1891
+ /**
1892
+ * ConsoleSession createMany
1893
+ */
1894
+ export type ConsoleSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1895
+ /**
1896
+ * The data used to create many ConsoleSessions.
1897
+ */
1898
+ data: Prisma.ConsoleSessionCreateManyInput | Prisma.ConsoleSessionCreateManyInput[];
1899
+ skipDuplicates?: boolean;
1900
+ };
1901
+ /**
1902
+ * ConsoleSession createManyAndReturn
1903
+ */
1904
+ export type ConsoleSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1905
+ /**
1906
+ * Select specific fields to fetch from the ConsoleSession
1907
+ */
1908
+ select?: Prisma.ConsoleSessionSelectCreateManyAndReturn<ExtArgs> | null;
1909
+ /**
1910
+ * Omit specific fields from the ConsoleSession
1911
+ */
1912
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1913
+ /**
1914
+ * The data used to create many ConsoleSessions.
1915
+ */
1916
+ data: Prisma.ConsoleSessionCreateManyInput | Prisma.ConsoleSessionCreateManyInput[];
1917
+ skipDuplicates?: boolean;
1918
+ /**
1919
+ * Choose, which related nodes to fetch as well
1920
+ */
1921
+ include?: Prisma.ConsoleSessionIncludeCreateManyAndReturn<ExtArgs> | null;
1922
+ };
1923
+ /**
1924
+ * ConsoleSession update
1925
+ */
1926
+ export type ConsoleSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1927
+ /**
1928
+ * Select specific fields to fetch from the ConsoleSession
1929
+ */
1930
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
1931
+ /**
1932
+ * Omit specific fields from the ConsoleSession
1933
+ */
1934
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1935
+ /**
1936
+ * Choose, which related nodes to fetch as well
1937
+ */
1938
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
1939
+ /**
1940
+ * The data needed to update a ConsoleSession.
1941
+ */
1942
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateInput, Prisma.ConsoleSessionUncheckedUpdateInput>;
1943
+ /**
1944
+ * Choose, which ConsoleSession to update.
1945
+ */
1946
+ where: Prisma.ConsoleSessionWhereUniqueInput;
1947
+ };
1948
+ /**
1949
+ * ConsoleSession updateMany
1950
+ */
1951
+ export type ConsoleSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1952
+ /**
1953
+ * The data used to update ConsoleSessions.
1954
+ */
1955
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateManyMutationInput, Prisma.ConsoleSessionUncheckedUpdateManyInput>;
1956
+ /**
1957
+ * Filter which ConsoleSessions to update
1958
+ */
1959
+ where?: Prisma.ConsoleSessionWhereInput;
1960
+ /**
1961
+ * Limit how many ConsoleSessions to update.
1962
+ */
1963
+ limit?: number;
1964
+ };
1965
+ /**
1966
+ * ConsoleSession updateManyAndReturn
1967
+ */
1968
+ export type ConsoleSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1969
+ /**
1970
+ * Select specific fields to fetch from the ConsoleSession
1971
+ */
1972
+ select?: Prisma.ConsoleSessionSelectUpdateManyAndReturn<ExtArgs> | null;
1973
+ /**
1974
+ * Omit specific fields from the ConsoleSession
1975
+ */
1976
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
1977
+ /**
1978
+ * The data used to update ConsoleSessions.
1979
+ */
1980
+ data: Prisma.XOR<Prisma.ConsoleSessionUpdateManyMutationInput, Prisma.ConsoleSessionUncheckedUpdateManyInput>;
1981
+ /**
1982
+ * Filter which ConsoleSessions to update
1983
+ */
1984
+ where?: Prisma.ConsoleSessionWhereInput;
1985
+ /**
1986
+ * Limit how many ConsoleSessions to update.
1987
+ */
1988
+ limit?: number;
1989
+ /**
1990
+ * Choose, which related nodes to fetch as well
1991
+ */
1992
+ include?: Prisma.ConsoleSessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1993
+ };
1994
+ /**
1995
+ * ConsoleSession upsert
1996
+ */
1997
+ export type ConsoleSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1998
+ /**
1999
+ * Select specific fields to fetch from the ConsoleSession
2000
+ */
2001
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
2002
+ /**
2003
+ * Omit specific fields from the ConsoleSession
2004
+ */
2005
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
2006
+ /**
2007
+ * Choose, which related nodes to fetch as well
2008
+ */
2009
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
2010
+ /**
2011
+ * The filter to search for the ConsoleSession to update in case it exists.
2012
+ */
2013
+ where: Prisma.ConsoleSessionWhereUniqueInput;
2014
+ /**
2015
+ * In case the ConsoleSession found by the `where` argument doesn't exist, create a new ConsoleSession with this data.
2016
+ */
2017
+ create: Prisma.XOR<Prisma.ConsoleSessionCreateInput, Prisma.ConsoleSessionUncheckedCreateInput>;
2018
+ /**
2019
+ * In case the ConsoleSession was found with the provided `where` argument, update it with this data.
2020
+ */
2021
+ update: Prisma.XOR<Prisma.ConsoleSessionUpdateInput, Prisma.ConsoleSessionUncheckedUpdateInput>;
2022
+ };
2023
+ /**
2024
+ * ConsoleSession delete
2025
+ */
2026
+ export type ConsoleSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2027
+ /**
2028
+ * Select specific fields to fetch from the ConsoleSession
2029
+ */
2030
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
2031
+ /**
2032
+ * Omit specific fields from the ConsoleSession
2033
+ */
2034
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
2035
+ /**
2036
+ * Choose, which related nodes to fetch as well
2037
+ */
2038
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
2039
+ /**
2040
+ * Filter which ConsoleSession to delete.
2041
+ */
2042
+ where: Prisma.ConsoleSessionWhereUniqueInput;
2043
+ };
2044
+ /**
2045
+ * ConsoleSession deleteMany
2046
+ */
2047
+ export type ConsoleSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2048
+ /**
2049
+ * Filter which ConsoleSessions to delete
2050
+ */
2051
+ where?: Prisma.ConsoleSessionWhereInput;
2052
+ /**
2053
+ * Limit how many ConsoleSessions to delete.
2054
+ */
2055
+ limit?: number;
2056
+ };
2057
+ /**
2058
+ * ConsoleSession.lease
2059
+ */
2060
+ export type ConsoleSession$leaseArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2061
+ /**
2062
+ * Select specific fields to fetch from the Lease
2063
+ */
2064
+ select?: Prisma.LeaseSelect<ExtArgs> | null;
2065
+ /**
2066
+ * Omit specific fields from the Lease
2067
+ */
2068
+ omit?: Prisma.LeaseOmit<ExtArgs> | null;
2069
+ /**
2070
+ * Choose, which related nodes to fetch as well
2071
+ */
2072
+ include?: Prisma.LeaseInclude<ExtArgs> | null;
2073
+ where?: Prisma.LeaseWhereInput;
2074
+ };
2075
+ /**
2076
+ * ConsoleSession.noticeDismissals
2077
+ */
2078
+ export type ConsoleSession$noticeDismissalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2079
+ /**
2080
+ * Select specific fields to fetch from the NoticeDismissal
2081
+ */
2082
+ select?: Prisma.NoticeDismissalSelect<ExtArgs> | null;
2083
+ /**
2084
+ * Omit specific fields from the NoticeDismissal
2085
+ */
2086
+ omit?: Prisma.NoticeDismissalOmit<ExtArgs> | null;
2087
+ /**
2088
+ * Choose, which related nodes to fetch as well
2089
+ */
2090
+ include?: Prisma.NoticeDismissalInclude<ExtArgs> | null;
2091
+ where?: Prisma.NoticeDismissalWhereInput;
2092
+ orderBy?: Prisma.NoticeDismissalOrderByWithRelationInput | Prisma.NoticeDismissalOrderByWithRelationInput[];
2093
+ cursor?: Prisma.NoticeDismissalWhereUniqueInput;
2094
+ take?: number;
2095
+ skip?: number;
2096
+ distinct?: Prisma.NoticeDismissalScalarFieldEnum | Prisma.NoticeDismissalScalarFieldEnum[];
2097
+ };
2098
+ /**
2099
+ * ConsoleSession.guideProgress
2100
+ */
2101
+ export type ConsoleSession$guideProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2102
+ /**
2103
+ * Select specific fields to fetch from the GuideProgress
2104
+ */
2105
+ select?: Prisma.GuideProgressSelect<ExtArgs> | null;
2106
+ /**
2107
+ * Omit specific fields from the GuideProgress
2108
+ */
2109
+ omit?: Prisma.GuideProgressOmit<ExtArgs> | null;
2110
+ /**
2111
+ * Choose, which related nodes to fetch as well
2112
+ */
2113
+ include?: Prisma.GuideProgressInclude<ExtArgs> | null;
2114
+ where?: Prisma.GuideProgressWhereInput;
2115
+ orderBy?: Prisma.GuideProgressOrderByWithRelationInput | Prisma.GuideProgressOrderByWithRelationInput[];
2116
+ cursor?: Prisma.GuideProgressWhereUniqueInput;
2117
+ take?: number;
2118
+ skip?: number;
2119
+ distinct?: Prisma.GuideProgressScalarFieldEnum | Prisma.GuideProgressScalarFieldEnum[];
2120
+ };
2121
+ /**
2122
+ * ConsoleSession without action
2123
+ */
2124
+ export type ConsoleSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2125
+ /**
2126
+ * Select specific fields to fetch from the ConsoleSession
2127
+ */
2128
+ select?: Prisma.ConsoleSessionSelect<ExtArgs> | null;
2129
+ /**
2130
+ * Omit specific fields from the ConsoleSession
2131
+ */
2132
+ omit?: Prisma.ConsoleSessionOmit<ExtArgs> | null;
2133
+ /**
2134
+ * Choose, which related nodes to fetch as well
2135
+ */
2136
+ include?: Prisma.ConsoleSessionInclude<ExtArgs> | null;
2137
+ };