@aeolus-fleet/core 0.0.0 → 0.18.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 (608) hide show
  1. package/README.md +98 -1
  2. package/dist/adapters/cli/fleet-init.d.ts +14 -0
  3. package/dist/adapters/cli/fleet-init.js +68 -0
  4. package/dist/adapters/cli/fleet-init.js.map +1 -0
  5. package/dist/adapters/cli/io.d.ts +35 -0
  6. package/dist/adapters/cli/io.js +21 -0
  7. package/dist/adapters/cli/io.js.map +1 -0
  8. package/dist/adapters/cli/migrate.d.ts +11 -0
  9. package/dist/adapters/cli/migrate.js +12 -0
  10. package/dist/adapters/cli/migrate.js.map +1 -0
  11. package/dist/adapters/cli/operator-reset-password.d.ts +12 -0
  12. package/dist/adapters/cli/operator-reset-password.js +49 -0
  13. package/dist/adapters/cli/operator-reset-password.js.map +1 -0
  14. package/dist/adapters/cli/run.d.ts +14 -0
  15. package/dist/adapters/cli/run.js +40 -0
  16. package/dist/adapters/cli/run.js.map +1 -0
  17. package/dist/adapters/cli/terminal.d.ts +20 -0
  18. package/dist/adapters/cli/terminal.js +68 -0
  19. package/dist/adapters/cli/terminal.js.map +1 -0
  20. package/dist/adapters/crypto/passwords.d.ts +2 -0
  21. package/dist/adapters/crypto/passwords.js +59 -0
  22. package/dist/adapters/crypto/passwords.js.map +1 -0
  23. package/dist/adapters/crypto/secrets.d.ts +5 -0
  24. package/dist/adapters/crypto/secrets.js +10 -0
  25. package/dist/adapters/crypto/secrets.js.map +1 -0
  26. package/dist/adapters/http/device-label.d.ts +9 -0
  27. package/dist/adapters/http/device-label.js +39 -0
  28. package/dist/adapters/http/device-label.js.map +1 -0
  29. package/dist/adapters/http/rate-limiter.d.ts +21 -0
  30. package/dist/adapters/http/rate-limiter.js +44 -0
  31. package/dist/adapters/http/rate-limiter.js.map +1 -0
  32. package/dist/adapters/http/request-credentials.d.ts +23 -0
  33. package/dist/adapters/http/request-credentials.js +45 -0
  34. package/dist/adapters/http/request-credentials.js.map +1 -0
  35. package/dist/adapters/http/server.d.ts +47 -0
  36. package/dist/adapters/http/server.js +216 -0
  37. package/dist/adapters/http/server.js.map +1 -0
  38. package/dist/adapters/http/version.d.ts +9 -0
  39. package/dist/adapters/http/version.js +23 -0
  40. package/dist/adapters/http/version.js.map +1 -0
  41. package/dist/adapters/mcp/mcp-endpoint.d.ts +8 -0
  42. package/dist/adapters/mcp/mcp-endpoint.js +127 -0
  43. package/dist/adapters/mcp/mcp-endpoint.js.map +1 -0
  44. package/dist/adapters/prisma/client.d.ts +10 -0
  45. package/dist/adapters/prisma/client.js +20 -0
  46. package/dist/adapters/prisma/client.js.map +1 -0
  47. package/dist/adapters/prisma/delivery-notices.d.ts +34 -0
  48. package/dist/adapters/prisma/delivery-notices.js +113 -0
  49. package/dist/adapters/prisma/delivery-notices.js.map +1 -0
  50. package/dist/adapters/prisma/event-log.d.ts +11 -0
  51. package/dist/adapters/prisma/event-log.js +61 -0
  52. package/dist/adapters/prisma/event-log.js.map +1 -0
  53. package/dist/adapters/prisma/failure-log.d.ts +22 -0
  54. package/dist/adapters/prisma/failure-log.js +70 -0
  55. package/dist/adapters/prisma/failure-log.js.map +1 -0
  56. package/dist/adapters/prisma/fleet-counter.d.ts +3 -0
  57. package/dist/adapters/prisma/fleet-counter.js +6 -0
  58. package/dist/adapters/prisma/fleet-counter.js.map +1 -0
  59. package/dist/adapters/prisma/fleet-event-wakeups.d.ts +33 -0
  60. package/dist/adapters/prisma/fleet-event-wakeups.js +86 -0
  61. package/dist/adapters/prisma/fleet-event-wakeups.js.map +1 -0
  62. package/dist/adapters/prisma/generated/browser.d.ts +127 -0
  63. package/dist/adapters/prisma/generated/browser.js +18 -0
  64. package/dist/adapters/prisma/generated/browser.js.map +1 -0
  65. package/dist/adapters/prisma/generated/client.d.ts +146 -0
  66. package/dist/adapters/prisma/generated/client.js +38 -0
  67. package/dist/adapters/prisma/generated/client.js.map +1 -0
  68. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +879 -0
  69. package/dist/adapters/prisma/generated/commonInputTypes.js +11 -0
  70. package/dist/adapters/prisma/generated/commonInputTypes.js.map +1 -0
  71. package/dist/adapters/prisma/generated/enums.d.ts +75 -0
  72. package/dist/adapters/prisma/generated/enums.js +73 -0
  73. package/dist/adapters/prisma/generated/enums.js.map +1 -0
  74. package/dist/adapters/prisma/generated/internal/class.d.ts +308 -0
  75. package/dist/adapters/prisma/generated/internal/class.js +52 -0
  76. package/dist/adapters/prisma/generated/internal/class.js.map +1 -0
  77. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +2131 -0
  78. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +295 -0
  79. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -0
  80. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +273 -0
  81. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +265 -0
  82. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  83. package/dist/adapters/prisma/generated/models/ConsoleSession.d.ts +2137 -0
  84. package/dist/adapters/prisma/generated/models/ConsoleSession.js +2 -0
  85. package/dist/adapters/prisma/generated/models/ConsoleSession.js.map +1 -0
  86. package/dist/adapters/prisma/generated/models/Credential.d.ts +1360 -0
  87. package/dist/adapters/prisma/generated/models/Credential.js +2 -0
  88. package/dist/adapters/prisma/generated/models/Credential.js.map +1 -0
  89. package/dist/adapters/prisma/generated/models/CrewRequest.d.ts +1558 -0
  90. package/dist/adapters/prisma/generated/models/CrewRequest.js +2 -0
  91. package/dist/adapters/prisma/generated/models/CrewRequest.js.map +1 -0
  92. package/dist/adapters/prisma/generated/models/Delivery.d.ts +2211 -0
  93. package/dist/adapters/prisma/generated/models/Delivery.js +2 -0
  94. package/dist/adapters/prisma/generated/models/Delivery.js.map +1 -0
  95. package/dist/adapters/prisma/generated/models/Event.d.ts +1991 -0
  96. package/dist/adapters/prisma/generated/models/Event.js +2 -0
  97. package/dist/adapters/prisma/generated/models/Event.js.map +1 -0
  98. package/dist/adapters/prisma/generated/models/Fleet.d.ts +3032 -0
  99. package/dist/adapters/prisma/generated/models/Fleet.js +2 -0
  100. package/dist/adapters/prisma/generated/models/Fleet.js.map +1 -0
  101. package/dist/adapters/prisma/generated/models/Guide.d.ts +943 -0
  102. package/dist/adapters/prisma/generated/models/Guide.js +2 -0
  103. package/dist/adapters/prisma/generated/models/Guide.js.map +1 -0
  104. package/dist/adapters/prisma/generated/models/GuideProgress.d.ts +1323 -0
  105. package/dist/adapters/prisma/generated/models/GuideProgress.js +2 -0
  106. package/dist/adapters/prisma/generated/models/GuideProgress.js.map +1 -0
  107. package/dist/adapters/prisma/generated/models/InstallationRequest.d.ts +1036 -0
  108. package/dist/adapters/prisma/generated/models/InstallationRequest.js +2 -0
  109. package/dist/adapters/prisma/generated/models/InstallationRequest.js.map +1 -0
  110. package/dist/adapters/prisma/generated/models/InstallationSettings.d.ts +1027 -0
  111. package/dist/adapters/prisma/generated/models/InstallationSettings.js +2 -0
  112. package/dist/adapters/prisma/generated/models/InstallationSettings.js.map +1 -0
  113. package/dist/adapters/prisma/generated/models/Lease.d.ts +2076 -0
  114. package/dist/adapters/prisma/generated/models/Lease.js +2 -0
  115. package/dist/adapters/prisma/generated/models/Lease.js.map +1 -0
  116. package/dist/adapters/prisma/generated/models/Message.d.ts +2869 -0
  117. package/dist/adapters/prisma/generated/models/Message.js +2 -0
  118. package/dist/adapters/prisma/generated/models/Message.js.map +1 -0
  119. package/dist/adapters/prisma/generated/models/Notice.d.ts +1068 -0
  120. package/dist/adapters/prisma/generated/models/Notice.js +2 -0
  121. package/dist/adapters/prisma/generated/models/Notice.js.map +1 -0
  122. package/dist/adapters/prisma/generated/models/NoticeDismissal.d.ts +1245 -0
  123. package/dist/adapters/prisma/generated/models/NoticeDismissal.js +2 -0
  124. package/dist/adapters/prisma/generated/models/NoticeDismissal.js.map +1 -0
  125. package/dist/adapters/prisma/generated/models/Operator.d.ts +1173 -0
  126. package/dist/adapters/prisma/generated/models/Operator.js +2 -0
  127. package/dist/adapters/prisma/generated/models/Operator.js.map +1 -0
  128. package/dist/adapters/prisma/generated/models/Ship.d.ts +3320 -0
  129. package/dist/adapters/prisma/generated/models/Ship.js +2 -0
  130. package/dist/adapters/prisma/generated/models/Ship.js.map +1 -0
  131. package/dist/adapters/prisma/generated/models/SignInTicket.d.ts +1222 -0
  132. package/dist/adapters/prisma/generated/models/SignInTicket.js +2 -0
  133. package/dist/adapters/prisma/generated/models/SignInTicket.js.map +1 -0
  134. package/dist/adapters/prisma/generated/models.d.ts +18 -0
  135. package/dist/adapters/prisma/generated/models.js +2 -0
  136. package/dist/adapters/prisma/generated/models.js.map +1 -0
  137. package/dist/adapters/prisma/history.d.ts +3 -0
  138. package/dist/adapters/prisma/history.js +289 -0
  139. package/dist/adapters/prisma/history.js.map +1 -0
  140. package/dist/adapters/prisma/identity.d.ts +10 -0
  141. package/dist/adapters/prisma/identity.js +213 -0
  142. package/dist/adapters/prisma/identity.js.map +1 -0
  143. package/dist/adapters/prisma/installation.d.ts +13 -0
  144. package/dist/adapters/prisma/installation.js +155 -0
  145. package/dist/adapters/prisma/installation.js.map +1 -0
  146. package/dist/adapters/prisma/messaging.d.ts +4 -0
  147. package/dist/adapters/prisma/messaging.js +156 -0
  148. package/dist/adapters/prisma/messaging.js.map +1 -0
  149. package/dist/adapters/prisma/migrate.d.ts +5 -0
  150. package/dist/adapters/prisma/migrate.js +40 -0
  151. package/dist/adapters/prisma/migrate.js.map +1 -0
  152. package/dist/adapters/prisma/receiver-wakeups.d.ts +26 -0
  153. package/dist/adapters/prisma/receiver-wakeups.js +79 -0
  154. package/dist/adapters/prisma/receiver-wakeups.js.map +1 -0
  155. package/dist/adapters/prisma/registry.d.ts +8 -0
  156. package/dist/adapters/prisma/registry.js +427 -0
  157. package/dist/adapters/prisma/registry.js.map +1 -0
  158. package/dist/adapters/prisma/rows.d.ts +58 -0
  159. package/dist/adapters/prisma/rows.js +408 -0
  160. package/dist/adapters/prisma/rows.js.map +1 -0
  161. package/dist/adapters/prisma/unit-of-work.d.ts +36 -0
  162. package/dist/adapters/prisma/unit-of-work.js +66 -0
  163. package/dist/adapters/prisma/unit-of-work.js.map +1 -0
  164. package/dist/adapters/rest/openapi.d.ts +12 -0
  165. package/dist/adapters/rest/openapi.js +62 -0
  166. package/dist/adapters/rest/openapi.js.map +1 -0
  167. package/dist/adapters/rest/rest-api.d.ts +8 -0
  168. package/dist/adapters/rest/rest-api.js +61 -0
  169. package/dist/adapters/rest/rest-api.js.map +1 -0
  170. package/dist/adapters/trpc/console.d.ts +150 -0
  171. package/dist/adapters/trpc/console.js +102 -0
  172. package/dist/adapters/trpc/console.js.map +1 -0
  173. package/dist/adapters/trpc/context.d.ts +201 -0
  174. package/dist/adapters/trpc/context.js +2 -0
  175. package/dist/adapters/trpc/context.js.map +1 -0
  176. package/dist/adapters/trpc/fleet.d.ts +637 -0
  177. package/dist/adapters/trpc/fleet.js +437 -0
  178. package/dist/adapters/trpc/fleet.js.map +1 -0
  179. package/dist/adapters/trpc/installation.d.ts +414 -0
  180. package/dist/adapters/trpc/installation.js +138 -0
  181. package/dist/adapters/trpc/installation.js.map +1 -0
  182. package/dist/adapters/trpc/router.d.ts +1263 -0
  183. package/dist/adapters/trpc/router.js +15 -0
  184. package/dist/adapters/trpc/router.js.map +1 -0
  185. package/dist/adapters/trpc/ship-contract.d.ts +107 -0
  186. package/dist/adapters/trpc/ship-contract.js +165 -0
  187. package/dist/adapters/trpc/ship-contract.js.map +1 -0
  188. package/dist/adapters/trpc/ship-protocol.d.ts +9 -0
  189. package/dist/adapters/trpc/ship-protocol.js +25 -0
  190. package/dist/adapters/trpc/ship-protocol.js.map +1 -0
  191. package/dist/adapters/trpc/ship.d.ts +209 -0
  192. package/dist/adapters/trpc/ship.js +214 -0
  193. package/dist/adapters/trpc/ship.js.map +1 -0
  194. package/dist/adapters/trpc/starting-prompt-text.d.ts +7 -0
  195. package/dist/adapters/trpc/starting-prompt-text.js +60 -0
  196. package/dist/adapters/trpc/starting-prompt-text.js.map +1 -0
  197. package/dist/adapters/trpc/system.d.ts +29 -0
  198. package/dist/adapters/trpc/system.js +15 -0
  199. package/dist/adapters/trpc/system.js.map +1 -0
  200. package/dist/adapters/trpc/trpc.d.ts +131 -0
  201. package/dist/adapters/trpc/trpc.js +350 -0
  202. package/dist/adapters/trpc/trpc.js.map +1 -0
  203. package/dist/app.d.ts +31 -0
  204. package/dist/app.js +80 -0
  205. package/dist/app.js.map +1 -0
  206. package/dist/bin/aeolus-core.d.ts +2 -0
  207. package/dist/bin/aeolus-core.js +45 -0
  208. package/dist/bin/aeolus-core.js.map +1 -0
  209. package/dist/config.d.ts +35 -0
  210. package/dist/config.js +74 -0
  211. package/dist/config.js.map +1 -0
  212. package/dist/domain/identity/authenticate.d.ts +46 -0
  213. package/dist/domain/identity/authenticate.js +18 -0
  214. package/dist/domain/identity/authenticate.js.map +1 -0
  215. package/dist/domain/identity/console-session.d.ts +54 -0
  216. package/dist/domain/identity/console-session.js +29 -0
  217. package/dist/domain/identity/console-session.js.map +1 -0
  218. package/dist/domain/identity/credential.d.ts +76 -0
  219. package/dist/domain/identity/credential.js +63 -0
  220. package/dist/domain/identity/credential.js.map +1 -0
  221. package/dist/domain/identity/dismiss-notice.d.ts +19 -0
  222. package/dist/domain/identity/dismiss-notice.js +23 -0
  223. package/dist/domain/identity/dismiss-notice.js.map +1 -0
  224. package/dist/domain/identity/get-guide.d.ts +7 -0
  225. package/dist/domain/identity/get-guide.js +5 -0
  226. package/dist/domain/identity/get-guide.js.map +1 -0
  227. package/dist/domain/identity/get-notices.d.ts +7 -0
  228. package/dist/domain/identity/get-notices.js +5 -0
  229. package/dist/domain/identity/get-notices.js.map +1 -0
  230. package/dist/domain/identity/guide.d.ts +24 -0
  231. package/dist/domain/identity/guide.js +3 -0
  232. package/dist/domain/identity/guide.js.map +1 -0
  233. package/dist/domain/identity/issue-sign-in-ticket.d.ts +38 -0
  234. package/dist/domain/identity/issue-sign-in-ticket.js +39 -0
  235. package/dist/domain/identity/issue-sign-in-ticket.js.map +1 -0
  236. package/dist/domain/identity/notice.d.ts +16 -0
  237. package/dist/domain/identity/notice.js +12 -0
  238. package/dist/domain/identity/notice.js.map +1 -0
  239. package/dist/domain/identity/operator-account.d.ts +28 -0
  240. package/dist/domain/identity/operator-account.js +21 -0
  241. package/dist/domain/identity/operator-account.js.map +1 -0
  242. package/dist/domain/identity/ports.d.ts +193 -0
  243. package/dist/domain/identity/ports.js +2 -0
  244. package/dist/domain/identity/ports.js.map +1 -0
  245. package/dist/domain/identity/public.d.ts +3 -0
  246. package/dist/domain/identity/public.js +5 -0
  247. package/dist/domain/identity/public.js.map +1 -0
  248. package/dist/domain/identity/read-account.d.ts +35 -0
  249. package/dist/domain/identity/read-account.js +27 -0
  250. package/dist/domain/identity/read-account.js.map +1 -0
  251. package/dist/domain/identity/read-guide.d.ts +18 -0
  252. package/dist/domain/identity/read-guide.js +21 -0
  253. package/dist/domain/identity/read-guide.js.map +1 -0
  254. package/dist/domain/identity/read-notices.d.ts +13 -0
  255. package/dist/domain/identity/read-notices.js +17 -0
  256. package/dist/domain/identity/read-notices.js.map +1 -0
  257. package/dist/domain/identity/record-guide-progress.d.ts +19 -0
  258. package/dist/domain/identity/record-guide-progress.js +24 -0
  259. package/dist/domain/identity/record-guide-progress.js.map +1 -0
  260. package/dist/domain/identity/redeem-sign-in-ticket.d.ts +34 -0
  261. package/dist/domain/identity/redeem-sign-in-ticket.js +25 -0
  262. package/dist/domain/identity/redeem-sign-in-ticket.js.map +1 -0
  263. package/dist/domain/identity/reset-operator-password.d.ts +34 -0
  264. package/dist/domain/identity/reset-operator-password.js +55 -0
  265. package/dist/domain/identity/reset-operator-password.js.map +1 -0
  266. package/dist/domain/identity/set-guide.d.ts +13 -0
  267. package/dist/domain/identity/set-guide.js +12 -0
  268. package/dist/domain/identity/set-guide.js.map +1 -0
  269. package/dist/domain/identity/set-notices.d.ts +13 -0
  270. package/dist/domain/identity/set-notices.js +12 -0
  271. package/dist/domain/identity/set-notices.js.map +1 -0
  272. package/dist/domain/identity/set-theme.d.ts +21 -0
  273. package/dist/domain/identity/set-theme.js +19 -0
  274. package/dist/domain/identity/set-theme.js.map +1 -0
  275. package/dist/domain/identity/sign-in-ticket.d.ts +21 -0
  276. package/dist/domain/identity/sign-in-ticket.js +5 -0
  277. package/dist/domain/identity/sign-in-ticket.js.map +1 -0
  278. package/dist/domain/identity/sign-in.d.ts +51 -0
  279. package/dist/domain/identity/sign-in.js +43 -0
  280. package/dist/domain/identity/sign-in.js.map +1 -0
  281. package/dist/domain/identity/sign-out.d.ts +20 -0
  282. package/dist/domain/identity/sign-out.js +32 -0
  283. package/dist/domain/identity/sign-out.js.map +1 -0
  284. package/dist/domain/identity/start-console-session.d.ts +27 -0
  285. package/dist/domain/identity/start-console-session.js +54 -0
  286. package/dist/domain/identity/start-console-session.js.map +1 -0
  287. package/dist/domain/identity/start-viewer-session.d.ts +29 -0
  288. package/dist/domain/identity/start-viewer-session.js +42 -0
  289. package/dist/domain/identity/start-viewer-session.js.map +1 -0
  290. package/dist/domain/messaging/acknowledge-delivery.d.ts +30 -0
  291. package/dist/domain/messaging/acknowledge-delivery.js +31 -0
  292. package/dist/domain/messaging/acknowledge-delivery.js.map +1 -0
  293. package/dist/domain/messaging/answer-ping.d.ts +33 -0
  294. package/dist/domain/messaging/answer-ping.js +37 -0
  295. package/dist/domain/messaging/answer-ping.js.map +1 -0
  296. package/dist/domain/messaging/check-inbox.d.ts +33 -0
  297. package/dist/domain/messaging/check-inbox.js +61 -0
  298. package/dist/domain/messaging/check-inbox.js.map +1 -0
  299. package/dist/domain/messaging/content-type.d.ts +9 -0
  300. package/dist/domain/messaging/content-type.js +18 -0
  301. package/dist/domain/messaging/content-type.js.map +1 -0
  302. package/dist/domain/messaging/daily-message-limit.d.ts +19 -0
  303. package/dist/domain/messaging/daily-message-limit.js +24 -0
  304. package/dist/domain/messaging/daily-message-limit.js.map +1 -0
  305. package/dist/domain/messaging/delivery.d.ts +116 -0
  306. package/dist/domain/messaging/delivery.js +201 -0
  307. package/dist/domain/messaging/delivery.js.map +1 -0
  308. package/dist/domain/messaging/dismiss-delivery.d.ts +28 -0
  309. package/dist/domain/messaging/dismiss-delivery.js +29 -0
  310. package/dist/domain/messaging/dismiss-delivery.js.map +1 -0
  311. package/dist/domain/messaging/inbox-wait.d.ts +8 -0
  312. package/dist/domain/messaging/inbox-wait.js +19 -0
  313. package/dist/domain/messaging/inbox-wait.js.map +1 -0
  314. package/dist/domain/messaging/mark-done.d.ts +45 -0
  315. package/dist/domain/messaging/mark-done.js +49 -0
  316. package/dist/domain/messaging/mark-done.js.map +1 -0
  317. package/dist/domain/messaging/mark-read.d.ts +27 -0
  318. package/dist/domain/messaging/mark-read.js +34 -0
  319. package/dist/domain/messaging/mark-read.js.map +1 -0
  320. package/dist/domain/messaging/message.d.ts +104 -0
  321. package/dist/domain/messaging/message.js +84 -0
  322. package/dist/domain/messaging/message.js.map +1 -0
  323. package/dist/domain/messaging/payload.d.ts +9 -0
  324. package/dist/domain/messaging/payload.js +16 -0
  325. package/dist/domain/messaging/payload.js.map +1 -0
  326. package/dist/domain/messaging/ping-ship.d.ts +38 -0
  327. package/dist/domain/messaging/ping-ship.js +42 -0
  328. package/dist/domain/messaging/ping-ship.js.map +1 -0
  329. package/dist/domain/messaging/ports.d.ts +116 -0
  330. package/dist/domain/messaging/ports.js +2 -0
  331. package/dist/domain/messaging/ports.js.map +1 -0
  332. package/dist/domain/messaging/receive-deliveries.d.ts +68 -0
  333. package/dist/domain/messaging/receive-deliveries.js +119 -0
  334. package/dist/domain/messaging/receive-deliveries.js.map +1 -0
  335. package/dist/domain/messaging/receive-max.d.ts +8 -0
  336. package/dist/domain/messaging/receive-max.js +17 -0
  337. package/dist/domain/messaging/receive-max.js.map +1 -0
  338. package/dist/domain/messaging/reply-to-message.d.ts +35 -0
  339. package/dist/domain/messaging/reply-to-message.js +49 -0
  340. package/dist/domain/messaging/reply-to-message.js.map +1 -0
  341. package/dist/domain/messaging/resend-delivery.d.ts +48 -0
  342. package/dist/domain/messaging/resend-delivery.js +97 -0
  343. package/dist/domain/messaging/resend-delivery.js.map +1 -0
  344. package/dist/domain/messaging/send-message.d.ts +88 -0
  345. package/dist/domain/messaging/send-message.js +115 -0
  346. package/dist/domain/messaging/send-message.js.map +1 -0
  347. package/dist/domain/messaging/send-request.d.ts +16 -0
  348. package/dist/domain/messaging/send-request.js +18 -0
  349. package/dist/domain/messaging/send-request.js.map +1 -0
  350. package/dist/domain/registry/applied-limits.d.ts +15 -0
  351. package/dist/domain/registry/applied-limits.js +15 -0
  352. package/dist/domain/registry/applied-limits.js.map +1 -0
  353. package/dist/domain/registry/assign-crew.d.ts +31 -0
  354. package/dist/domain/registry/assign-crew.js +35 -0
  355. package/dist/domain/registry/assign-crew.js.map +1 -0
  356. package/dist/domain/registry/claim-ship.d.ts +49 -0
  357. package/dist/domain/registry/claim-ship.js +59 -0
  358. package/dist/domain/registry/claim-ship.js.map +1 -0
  359. package/dist/domain/registry/commission-ship.d.ts +54 -0
  360. package/dist/domain/registry/commission-ship.js +70 -0
  361. package/dist/domain/registry/commission-ship.js.map +1 -0
  362. package/dist/domain/registry/confirm-crew-release.d.ts +28 -0
  363. package/dist/domain/registry/confirm-crew-release.js +28 -0
  364. package/dist/domain/registry/confirm-crew-release.js.map +1 -0
  365. package/dist/domain/registry/create-fleet.d.ts +39 -0
  366. package/dist/domain/registry/create-fleet.js +56 -0
  367. package/dist/domain/registry/create-fleet.js.map +1 -0
  368. package/dist/domain/registry/crew-request.d.ts +148 -0
  369. package/dist/domain/registry/crew-request.js +175 -0
  370. package/dist/domain/registry/crew-request.js.map +1 -0
  371. package/dist/domain/registry/delete-fleet.d.ts +46 -0
  372. package/dist/domain/registry/delete-fleet.js +34 -0
  373. package/dist/domain/registry/delete-fleet.js.map +1 -0
  374. package/dist/domain/registry/deregister.d.ts +32 -0
  375. package/dist/domain/registry/deregister.js +38 -0
  376. package/dist/domain/registry/deregister.js.map +1 -0
  377. package/dist/domain/registry/explain-crew-request.d.ts +30 -0
  378. package/dist/domain/registry/explain-crew-request.js +31 -0
  379. package/dist/domain/registry/explain-crew-request.js.map +1 -0
  380. package/dist/domain/registry/fleet.d.ts +12 -0
  381. package/dist/domain/registry/fleet.js +12 -0
  382. package/dist/domain/registry/fleet.js.map +1 -0
  383. package/dist/domain/registry/found-fleet.d.ts +32 -0
  384. package/dist/domain/registry/found-fleet.js +43 -0
  385. package/dist/domain/registry/found-fleet.js.map +1 -0
  386. package/dist/domain/registry/get-fleet-limits.d.ts +17 -0
  387. package/dist/domain/registry/get-fleet-limits.js +14 -0
  388. package/dist/domain/registry/get-fleet-limits.js.map +1 -0
  389. package/dist/domain/registry/get-installation-fleet.d.ts +15 -0
  390. package/dist/domain/registry/get-installation-fleet.js +12 -0
  391. package/dist/domain/registry/get-installation-fleet.js.map +1 -0
  392. package/dist/domain/registry/get-installation-settings.d.ts +7 -0
  393. package/dist/domain/registry/get-installation-settings.js +5 -0
  394. package/dist/domain/registry/get-installation-settings.js.map +1 -0
  395. package/dist/domain/registry/get-ship.d.ts +34 -0
  396. package/dist/domain/registry/get-ship.js +36 -0
  397. package/dist/domain/registry/get-ship.js.map +1 -0
  398. package/dist/domain/registry/get-starting-prompt.d.ts +24 -0
  399. package/dist/domain/registry/get-starting-prompt.js +46 -0
  400. package/dist/domain/registry/get-starting-prompt.js.map +1 -0
  401. package/dist/domain/registry/initialise-fleet.d.ts +28 -0
  402. package/dist/domain/registry/initialise-fleet.js +39 -0
  403. package/dist/domain/registry/initialise-fleet.js.map +1 -0
  404. package/dist/domain/registry/installation-fleet.d.ts +36 -0
  405. package/dist/domain/registry/installation-fleet.js +22 -0
  406. package/dist/domain/registry/installation-fleet.js.map +1 -0
  407. package/dist/domain/registry/installation-request.d.ts +23 -0
  408. package/dist/domain/registry/installation-request.js +5 -0
  409. package/dist/domain/registry/installation-request.js.map +1 -0
  410. package/dist/domain/registry/lease.d.ts +51 -0
  411. package/dist/domain/registry/lease.js +39 -0
  412. package/dist/domain/registry/lease.js.map +1 -0
  413. package/dist/domain/registry/leases.d.ts +66 -0
  414. package/dist/domain/registry/leases.js +80 -0
  415. package/dist/domain/registry/leases.js.map +1 -0
  416. package/dist/domain/registry/limits.d.ts +50 -0
  417. package/dist/domain/registry/limits.js +24 -0
  418. package/dist/domain/registry/limits.js.map +1 -0
  419. package/dist/domain/registry/list-fleet.d.ts +70 -0
  420. package/dist/domain/registry/list-fleet.js +47 -0
  421. package/dist/domain/registry/list-fleet.js.map +1 -0
  422. package/dist/domain/registry/list-fleets.d.ts +11 -0
  423. package/dist/domain/registry/list-fleets.js +9 -0
  424. package/dist/domain/registry/list-fleets.js.map +1 -0
  425. package/dist/domain/registry/list-installation-fleets.d.ts +15 -0
  426. package/dist/domain/registry/list-installation-fleets.js +15 -0
  427. package/dist/domain/registry/list-installation-fleets.js.map +1 -0
  428. package/dist/domain/registry/ping-status.d.ts +17 -0
  429. package/dist/domain/registry/ping-status.js +28 -0
  430. package/dist/domain/registry/ping-status.js.map +1 -0
  431. package/dist/domain/registry/pingable-ship.d.ts +22 -0
  432. package/dist/domain/registry/pingable-ship.js +21 -0
  433. package/dist/domain/registry/pingable-ship.js.map +1 -0
  434. package/dist/domain/registry/ports.d.ts +318 -0
  435. package/dist/domain/registry/ports.js +2 -0
  436. package/dist/domain/registry/ports.js.map +1 -0
  437. package/dist/domain/registry/public.d.ts +8 -0
  438. package/dist/domain/registry/public.js +10 -0
  439. package/dist/domain/registry/public.js.map +1 -0
  440. package/dist/domain/registry/read-assigned-crew-requests.d.ts +14 -0
  441. package/dist/domain/registry/read-assigned-crew-requests.js +15 -0
  442. package/dist/domain/registry/read-assigned-crew-requests.js.map +1 -0
  443. package/dist/domain/registry/recrew-ship.d.ts +33 -0
  444. package/dist/domain/registry/recrew-ship.js +34 -0
  445. package/dist/domain/registry/recrew-ship.js.map +1 -0
  446. package/dist/domain/registry/release-ship.d.ts +38 -0
  447. package/dist/domain/registry/release-ship.js +47 -0
  448. package/dist/domain/registry/release-ship.js.map +1 -0
  449. package/dist/domain/registry/remove-crew-request.d.ts +28 -0
  450. package/dist/domain/registry/remove-crew-request.js +36 -0
  451. package/dist/domain/registry/remove-crew-request.js.map +1 -0
  452. package/dist/domain/registry/rename-ship.d.ts +30 -0
  453. package/dist/domain/registry/rename-ship.js +39 -0
  454. package/dist/domain/registry/rename-ship.js.map +1 -0
  455. package/dist/domain/registry/report-crew-status.d.ts +29 -0
  456. package/dist/domain/registry/report-crew-status.js +30 -0
  457. package/dist/domain/registry/report-crew-status.js.map +1 -0
  458. package/dist/domain/registry/report-details.d.ts +18 -0
  459. package/dist/domain/registry/report-details.js +41 -0
  460. package/dist/domain/registry/report-details.js.map +1 -0
  461. package/dist/domain/registry/report-log.d.ts +21 -0
  462. package/dist/domain/registry/report-log.js +16 -0
  463. package/dist/domain/registry/report-log.js.map +1 -0
  464. package/dist/domain/registry/report.d.ts +30 -0
  465. package/dist/domain/registry/report.js +30 -0
  466. package/dist/domain/registry/report.js.map +1 -0
  467. package/dist/domain/registry/request-crew.d.ts +32 -0
  468. package/dist/domain/registry/request-crew.js +29 -0
  469. package/dist/domain/registry/request-crew.js.map +1 -0
  470. package/dist/domain/registry/resolve-selector.d.ts +25 -0
  471. package/dist/domain/registry/resolve-selector.js +32 -0
  472. package/dist/domain/registry/resolve-selector.js.map +1 -0
  473. package/dist/domain/registry/retire-ship.d.ts +42 -0
  474. package/dist/domain/registry/retire-ship.js +68 -0
  475. package/dist/domain/registry/retire-ship.js.map +1 -0
  476. package/dist/domain/registry/set-fleet-limits.d.ts +30 -0
  477. package/dist/domain/registry/set-fleet-limits.js +54 -0
  478. package/dist/domain/registry/set-fleet-limits.js.map +1 -0
  479. package/dist/domain/registry/set-installation-settings.d.ts +18 -0
  480. package/dist/domain/registry/set-installation-settings.js +31 -0
  481. package/dist/domain/registry/set-installation-settings.js.map +1 -0
  482. package/dist/domain/registry/ship-handle.d.ts +5 -0
  483. package/dist/domain/registry/ship-handle.js +20 -0
  484. package/dist/domain/registry/ship-handle.js.map +1 -0
  485. package/dist/domain/registry/ship-note.d.ts +7 -0
  486. package/dist/domain/registry/ship-note.js +15 -0
  487. package/dist/domain/registry/ship-note.js.map +1 -0
  488. package/dist/domain/registry/ship-report.d.ts +42 -0
  489. package/dist/domain/registry/ship-report.js +93 -0
  490. package/dist/domain/registry/ship-report.js.map +1 -0
  491. package/dist/domain/registry/ship.d.ts +190 -0
  492. package/dist/domain/registry/ship.js +334 -0
  493. package/dist/domain/registry/ship.js.map +1 -0
  494. package/dist/domain/registry/ships.d.ts +25 -0
  495. package/dist/domain/registry/ships.js +22 -0
  496. package/dist/domain/registry/ships.js.map +1 -0
  497. package/dist/domain/registry/starting-prompt.d.ts +32 -0
  498. package/dist/domain/registry/starting-prompt.js +22 -0
  499. package/dist/domain/registry/starting-prompt.js.map +1 -0
  500. package/dist/domain/registry/whoami.d.ts +20 -0
  501. package/dist/domain/registry/whoami.js +15 -0
  502. package/dist/domain/registry/whoami.js.map +1 -0
  503. package/dist/domain/shared/caller.d.ts +25 -0
  504. package/dist/domain/shared/caller.js +8 -0
  505. package/dist/domain/shared/caller.js.map +1 -0
  506. package/dist/domain/shared/clock.d.ts +4 -0
  507. package/dist/domain/shared/clock.js +2 -0
  508. package/dist/domain/shared/clock.js.map +1 -0
  509. package/dist/domain/shared/errors.d.ts +13 -0
  510. package/dist/domain/shared/errors.js +6 -0
  511. package/dist/domain/shared/errors.js.map +1 -0
  512. package/dist/domain/shared/events.d.ts +75 -0
  513. package/dist/domain/shared/events.js +9 -0
  514. package/dist/domain/shared/events.js.map +1 -0
  515. package/dist/domain/shared/follow-fleet.d.ts +32 -0
  516. package/dist/domain/shared/follow-fleet.js +65 -0
  517. package/dist/domain/shared/follow-fleet.js.map +1 -0
  518. package/dist/domain/shared/history.d.ts +124 -0
  519. package/dist/domain/shared/history.js +16 -0
  520. package/dist/domain/shared/history.js.map +1 -0
  521. package/dist/domain/shared/idempotency-key.d.ts +8 -0
  522. package/dist/domain/shared/idempotency-key.js +14 -0
  523. package/dist/domain/shared/idempotency-key.js.map +1 -0
  524. package/dist/domain/shared/notifier.d.ts +17 -0
  525. package/dist/domain/shared/notifier.js +2 -0
  526. package/dist/domain/shared/notifier.js.map +1 -0
  527. package/dist/domain/shared/ping.d.ts +18 -0
  528. package/dist/domain/shared/ping.js +8 -0
  529. package/dist/domain/shared/ping.js.map +1 -0
  530. package/dist/domain/shared/read-fleet-events.d.ts +29 -0
  531. package/dist/domain/shared/read-fleet-events.js +25 -0
  532. package/dist/domain/shared/read-fleet-events.js.map +1 -0
  533. package/dist/domain/shared/read-fleet-limits.d.ts +39 -0
  534. package/dist/domain/shared/read-fleet-limits.js +24 -0
  535. package/dist/domain/shared/read-fleet-limits.js.map +1 -0
  536. package/dist/domain/shared/read-inbox.d.ts +20 -0
  537. package/dist/domain/shared/read-inbox.js +16 -0
  538. package/dist/domain/shared/read-inbox.js.map +1 -0
  539. package/dist/domain/shared/read-message.d.ts +21 -0
  540. package/dist/domain/shared/read-message.js +18 -0
  541. package/dist/domain/shared/read-message.js.map +1 -0
  542. package/dist/domain/shared/read-needs-attention.d.ts +12 -0
  543. package/dist/domain/shared/read-needs-attention.js +10 -0
  544. package/dist/domain/shared/read-needs-attention.js.map +1 -0
  545. package/dist/domain/shared/read-ship-messages.d.ts +28 -0
  546. package/dist/domain/shared/read-ship-messages.js +30 -0
  547. package/dist/domain/shared/read-ship-messages.js.map +1 -0
  548. package/dist/domain/shared/read-ship-timeline.d.ts +18 -0
  549. package/dist/domain/shared/read-ship-timeline.js +16 -0
  550. package/dist/domain/shared/read-ship-timeline.js.map +1 -0
  551. package/dist/domain/shared/result.d.ts +16 -0
  552. package/dist/domain/shared/result.js +7 -0
  553. package/dist/domain/shared/result.js.map +1 -0
  554. package/dist/domain/shared/secrets.d.ts +26 -0
  555. package/dist/domain/shared/secrets.js +2 -0
  556. package/dist/domain/shared/secrets.js.map +1 -0
  557. package/dist/domain/shared/selector.d.ts +29 -0
  558. package/dist/domain/shared/selector.js +2 -0
  559. package/dist/domain/shared/selector.js.map +1 -0
  560. package/dist/domain/shared/unit-of-work.d.ts +13 -0
  561. package/dist/domain/shared/unit-of-work.js +2 -0
  562. package/dist/domain/shared/unit-of-work.js.map +1 -0
  563. package/dist/domain/shared/utc-day.d.ts +4 -0
  564. package/dist/domain/shared/utc-day.js +9 -0
  565. package/dist/domain/shared/utc-day.js.map +1 -0
  566. package/dist/index.d.ts +1 -0
  567. package/dist/index.js +2 -0
  568. package/dist/index.js.map +1 -0
  569. package/dist/start.d.ts +6 -0
  570. package/dist/start.js +29 -0
  571. package/dist/start.js.map +1 -0
  572. package/dist/wiring.d.ts +158 -0
  573. package/dist/wiring.js +185 -0
  574. package/dist/wiring.js.map +1 -0
  575. package/package.json +56 -3
  576. package/prisma.config.ts +18 -0
  577. package/src/adapters/prisma/migrations/20260929124818_init/migration.sql +201 -0
  578. package/src/adapters/prisma/migrations/20260929160000_fleet_argo_console_session/migration.sql +130 -0
  579. package/src/adapters/prisma/migrations/20260929220017_operator_login/migration.sql +27 -0
  580. package/src/adapters/prisma/migrations/20260930090000_crew_token/migration.sql +5 -0
  581. package/src/adapters/prisma/migrations/20260930120000_send/migration.sql +30 -0
  582. package/src/adapters/prisma/migrations/20260930150000_receive/migration.sql +24 -0
  583. package/src/adapters/prisma/migrations/20261001010000_event_seq/migration.sql +34 -0
  584. package/src/adapters/prisma/migrations/20261001020000_console_session_end_reason/migration.sql +14 -0
  585. package/src/adapters/prisma/migrations/20261001030000_account_theme_session_device/migration.sql +8 -0
  586. package/src/adapters/prisma/migrations/20261001040000_lease_last_seen/migration.sql +2 -0
  587. package/src/adapters/prisma/migrations/20261002190000_lease_report/migration.sql +7 -0
  588. package/src/adapters/prisma/migrations/20261003140000_commission_key/migration.sql +7 -0
  589. package/src/adapters/prisma/migrations/20261003200000_message_model/migration.sql +5 -0
  590. package/src/adapters/prisma/migrations/20261003201000_lease_harness/migration.sql +2 -0
  591. package/src/adapters/prisma/migrations/20261004120000_operator_without_password/migration.sql +2 -0
  592. package/src/adapters/prisma/migrations/20261004121000_installation_requests/migration.sql +21 -0
  593. package/src/adapters/prisma/migrations/20261004122000_events_deleted_with_their_fleet/migration.sql +11 -0
  594. package/src/adapters/prisma/migrations/20261004130000_sign_in_tickets/migration.sql +16 -0
  595. package/src/adapters/prisma/migrations/20261004140000_fleet_limits/migration.sql +6 -0
  596. package/src/adapters/prisma/migrations/20261004141000_installation_settings/migration.sql +12 -0
  597. package/src/adapters/prisma/migrations/20261005090000_viewer_ship/migration.sql +2 -0
  598. package/src/adapters/prisma/migrations/20261005100000_viewer_sessions/migration.sql +20 -0
  599. package/src/adapters/prisma/migrations/20261005110000_notices/migration.sql +37 -0
  600. package/src/adapters/prisma/migrations/20261005120000_guide/migration.sql +34 -0
  601. package/src/adapters/prisma/migrations/20261006100000_fleet_crew_scope/migration.sql +8 -0
  602. package/src/adapters/prisma/migrations/20261006140000_lease_report_details/migration.sql +3 -0
  603. package/src/adapters/prisma/migrations/20261006160000_crew_requests/migration.sql +20 -0
  604. package/src/adapters/prisma/migrations/20261006180000_crew_scopes/migration.sql +9 -0
  605. package/src/adapters/prisma/migrations/20261006190000_crew_assignment/migration.sql +13 -0
  606. package/src/adapters/prisma/migrations/20261006200000_crew_request_reason/migration.sql +3 -0
  607. package/src/adapters/prisma/migrations/migration_lock.toml +3 -0
  608. package/src/adapters/prisma/schema.prisma +558 -0
@@ -0,0 +1,2869 @@
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 Message
6
+ * An immutable envelope plus an opaque payload of at most 64 KB, sent by one ship.
7
+ * Ids start with msg_. The selector is stored as resolved at send time: a ship's
8
+ * id, never its name, or a type. It can name the message it replies to, and a
9
+ * resend names the message it resends (nothing sets that yet).
10
+ */
11
+ export type MessageModel = runtime.Types.Result.DefaultSelection<Prisma.$MessagePayload>;
12
+ export type AggregateMessage = {
13
+ _count: MessageCountAggregateOutputType | null;
14
+ _min: MessageMinAggregateOutputType | null;
15
+ _max: MessageMaxAggregateOutputType | null;
16
+ };
17
+ export type MessageMinAggregateOutputType = {
18
+ id: string | null;
19
+ fleetId: string | null;
20
+ senderShipId: string | null;
21
+ selectorKind: $Enums.SelectorKind | null;
22
+ selectorShipId: string | null;
23
+ selectorType: string | null;
24
+ payload: string | null;
25
+ contentType: string | null;
26
+ model: string | null;
27
+ idempotencyKey: string | null;
28
+ requestHash: string | null;
29
+ inReplyToMessageId: string | null;
30
+ resendOfMessageId: string | null;
31
+ createdAt: Date | null;
32
+ };
33
+ export type MessageMaxAggregateOutputType = {
34
+ id: string | null;
35
+ fleetId: string | null;
36
+ senderShipId: string | null;
37
+ selectorKind: $Enums.SelectorKind | null;
38
+ selectorShipId: string | null;
39
+ selectorType: string | null;
40
+ payload: string | null;
41
+ contentType: string | null;
42
+ model: string | null;
43
+ idempotencyKey: string | null;
44
+ requestHash: string | null;
45
+ inReplyToMessageId: string | null;
46
+ resendOfMessageId: string | null;
47
+ createdAt: Date | null;
48
+ };
49
+ export type MessageCountAggregateOutputType = {
50
+ id: number;
51
+ fleetId: number;
52
+ senderShipId: number;
53
+ selectorKind: number;
54
+ selectorShipId: number;
55
+ selectorType: number;
56
+ payload: number;
57
+ contentType: number;
58
+ model: number;
59
+ idempotencyKey: number;
60
+ requestHash: number;
61
+ inReplyToMessageId: number;
62
+ resendOfMessageId: number;
63
+ createdAt: number;
64
+ _all: number;
65
+ };
66
+ export type MessageMinAggregateInputType = {
67
+ id?: true;
68
+ fleetId?: true;
69
+ senderShipId?: true;
70
+ selectorKind?: true;
71
+ selectorShipId?: true;
72
+ selectorType?: true;
73
+ payload?: true;
74
+ contentType?: true;
75
+ model?: true;
76
+ idempotencyKey?: true;
77
+ requestHash?: true;
78
+ inReplyToMessageId?: true;
79
+ resendOfMessageId?: true;
80
+ createdAt?: true;
81
+ };
82
+ export type MessageMaxAggregateInputType = {
83
+ id?: true;
84
+ fleetId?: true;
85
+ senderShipId?: true;
86
+ selectorKind?: true;
87
+ selectorShipId?: true;
88
+ selectorType?: true;
89
+ payload?: true;
90
+ contentType?: true;
91
+ model?: true;
92
+ idempotencyKey?: true;
93
+ requestHash?: true;
94
+ inReplyToMessageId?: true;
95
+ resendOfMessageId?: true;
96
+ createdAt?: true;
97
+ };
98
+ export type MessageCountAggregateInputType = {
99
+ id?: true;
100
+ fleetId?: true;
101
+ senderShipId?: true;
102
+ selectorKind?: true;
103
+ selectorShipId?: true;
104
+ selectorType?: true;
105
+ payload?: true;
106
+ contentType?: true;
107
+ model?: true;
108
+ idempotencyKey?: true;
109
+ requestHash?: true;
110
+ inReplyToMessageId?: true;
111
+ resendOfMessageId?: true;
112
+ createdAt?: true;
113
+ _all?: true;
114
+ };
115
+ export type MessageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
116
+ /**
117
+ * Filter which Message to aggregate.
118
+ */
119
+ where?: Prisma.MessageWhereInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
122
+ *
123
+ * Determine the order of Messages to fetch.
124
+ */
125
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
128
+ *
129
+ * Sets the start position
130
+ */
131
+ cursor?: Prisma.MessageWhereUniqueInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
134
+ *
135
+ * Take `±n` Messages from the position of the cursor.
136
+ */
137
+ take?: number;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
140
+ *
141
+ * Skip the first `n` Messages.
142
+ */
143
+ skip?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Count returned Messages
148
+ **/
149
+ _count?: true | MessageCountAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to find the minimum value
154
+ **/
155
+ _min?: MessageMinAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to find the maximum value
160
+ **/
161
+ _max?: MessageMaxAggregateInputType;
162
+ };
163
+ export type GetMessageAggregateType<T extends MessageAggregateArgs> = {
164
+ [P in keyof T & keyof AggregateMessage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateMessage[P]> : Prisma.GetScalarType<T[P], AggregateMessage[P]>;
165
+ };
166
+ export type MessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
167
+ where?: Prisma.MessageWhereInput;
168
+ orderBy?: Prisma.MessageOrderByWithAggregationInput | Prisma.MessageOrderByWithAggregationInput[];
169
+ by: Prisma.MessageScalarFieldEnum[] | Prisma.MessageScalarFieldEnum;
170
+ having?: Prisma.MessageScalarWhereWithAggregatesInput;
171
+ take?: number;
172
+ skip?: number;
173
+ _count?: MessageCountAggregateInputType | true;
174
+ _min?: MessageMinAggregateInputType;
175
+ _max?: MessageMaxAggregateInputType;
176
+ };
177
+ export type MessageGroupByOutputType = {
178
+ id: string;
179
+ fleetId: string;
180
+ senderShipId: string;
181
+ selectorKind: $Enums.SelectorKind;
182
+ selectorShipId: string | null;
183
+ selectorType: string | null;
184
+ payload: string;
185
+ contentType: string;
186
+ model: string | null;
187
+ idempotencyKey: string;
188
+ requestHash: string;
189
+ inReplyToMessageId: string | null;
190
+ resendOfMessageId: string | null;
191
+ createdAt: Date;
192
+ _count: MessageCountAggregateOutputType | null;
193
+ _min: MessageMinAggregateOutputType | null;
194
+ _max: MessageMaxAggregateOutputType | null;
195
+ };
196
+ export type GetMessageGroupByPayload<T extends MessageGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<MessageGroupByOutputType, T['by']> & {
197
+ [P in ((keyof T) & (keyof MessageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], MessageGroupByOutputType[P]> : Prisma.GetScalarType<T[P], MessageGroupByOutputType[P]>;
198
+ }>>;
199
+ export type MessageWhereInput = {
200
+ AND?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[];
201
+ OR?: Prisma.MessageWhereInput[];
202
+ NOT?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[];
203
+ id?: Prisma.StringFilter<"Message"> | string;
204
+ fleetId?: Prisma.StringFilter<"Message"> | string;
205
+ senderShipId?: Prisma.StringFilter<"Message"> | string;
206
+ selectorKind?: Prisma.EnumSelectorKindFilter<"Message"> | $Enums.SelectorKind;
207
+ selectorShipId?: Prisma.StringNullableFilter<"Message"> | string | null;
208
+ selectorType?: Prisma.StringNullableFilter<"Message"> | string | null;
209
+ payload?: Prisma.StringFilter<"Message"> | string;
210
+ contentType?: Prisma.StringFilter<"Message"> | string;
211
+ model?: Prisma.StringNullableFilter<"Message"> | string | null;
212
+ idempotencyKey?: Prisma.StringFilter<"Message"> | string;
213
+ requestHash?: Prisma.StringFilter<"Message"> | string;
214
+ inReplyToMessageId?: Prisma.StringNullableFilter<"Message"> | string | null;
215
+ resendOfMessageId?: Prisma.StringNullableFilter<"Message"> | string | null;
216
+ createdAt?: Prisma.DateTimeFilter<"Message"> | Date | string;
217
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
218
+ senderShip?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
219
+ selectorShip?: Prisma.XOR<Prisma.ShipNullableScalarRelationFilter, Prisma.ShipWhereInput> | null;
220
+ inReplyTo?: Prisma.XOR<Prisma.MessageNullableScalarRelationFilter, Prisma.MessageWhereInput> | null;
221
+ replies?: Prisma.MessageListRelationFilter;
222
+ resendOf?: Prisma.XOR<Prisma.MessageNullableScalarRelationFilter, Prisma.MessageWhereInput> | null;
223
+ resends?: Prisma.MessageListRelationFilter;
224
+ deliveries?: Prisma.DeliveryListRelationFilter;
225
+ events?: Prisma.EventListRelationFilter;
226
+ };
227
+ export type MessageOrderByWithRelationInput = {
228
+ id?: Prisma.SortOrder;
229
+ fleetId?: Prisma.SortOrder;
230
+ senderShipId?: Prisma.SortOrder;
231
+ selectorKind?: Prisma.SortOrder;
232
+ selectorShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
233
+ selectorType?: Prisma.SortOrderInput | Prisma.SortOrder;
234
+ payload?: Prisma.SortOrder;
235
+ contentType?: Prisma.SortOrder;
236
+ model?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ idempotencyKey?: Prisma.SortOrder;
238
+ requestHash?: Prisma.SortOrder;
239
+ inReplyToMessageId?: Prisma.SortOrderInput | Prisma.SortOrder;
240
+ resendOfMessageId?: Prisma.SortOrderInput | Prisma.SortOrder;
241
+ createdAt?: Prisma.SortOrder;
242
+ fleet?: Prisma.FleetOrderByWithRelationInput;
243
+ senderShip?: Prisma.ShipOrderByWithRelationInput;
244
+ selectorShip?: Prisma.ShipOrderByWithRelationInput;
245
+ inReplyTo?: Prisma.MessageOrderByWithRelationInput;
246
+ replies?: Prisma.MessageOrderByRelationAggregateInput;
247
+ resendOf?: Prisma.MessageOrderByWithRelationInput;
248
+ resends?: Prisma.MessageOrderByRelationAggregateInput;
249
+ deliveries?: Prisma.DeliveryOrderByRelationAggregateInput;
250
+ events?: Prisma.EventOrderByRelationAggregateInput;
251
+ };
252
+ export type MessageWhereUniqueInput = Prisma.AtLeast<{
253
+ id?: string;
254
+ fleetId_id?: Prisma.MessageFleetIdIdCompoundUniqueInput;
255
+ fleetId_senderShipId_idempotencyKey?: Prisma.MessageFleetIdSenderShipIdIdempotencyKeyCompoundUniqueInput;
256
+ AND?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[];
257
+ OR?: Prisma.MessageWhereInput[];
258
+ NOT?: Prisma.MessageWhereInput | Prisma.MessageWhereInput[];
259
+ fleetId?: Prisma.StringFilter<"Message"> | string;
260
+ senderShipId?: Prisma.StringFilter<"Message"> | string;
261
+ selectorKind?: Prisma.EnumSelectorKindFilter<"Message"> | $Enums.SelectorKind;
262
+ selectorShipId?: Prisma.StringNullableFilter<"Message"> | string | null;
263
+ selectorType?: Prisma.StringNullableFilter<"Message"> | string | null;
264
+ payload?: Prisma.StringFilter<"Message"> | string;
265
+ contentType?: Prisma.StringFilter<"Message"> | string;
266
+ model?: Prisma.StringNullableFilter<"Message"> | string | null;
267
+ idempotencyKey?: Prisma.StringFilter<"Message"> | string;
268
+ requestHash?: Prisma.StringFilter<"Message"> | string;
269
+ inReplyToMessageId?: Prisma.StringNullableFilter<"Message"> | string | null;
270
+ resendOfMessageId?: Prisma.StringNullableFilter<"Message"> | string | null;
271
+ createdAt?: Prisma.DateTimeFilter<"Message"> | Date | string;
272
+ fleet?: Prisma.XOR<Prisma.FleetScalarRelationFilter, Prisma.FleetWhereInput>;
273
+ senderShip?: Prisma.XOR<Prisma.ShipScalarRelationFilter, Prisma.ShipWhereInput>;
274
+ selectorShip?: Prisma.XOR<Prisma.ShipNullableScalarRelationFilter, Prisma.ShipWhereInput> | null;
275
+ inReplyTo?: Prisma.XOR<Prisma.MessageNullableScalarRelationFilter, Prisma.MessageWhereInput> | null;
276
+ replies?: Prisma.MessageListRelationFilter;
277
+ resendOf?: Prisma.XOR<Prisma.MessageNullableScalarRelationFilter, Prisma.MessageWhereInput> | null;
278
+ resends?: Prisma.MessageListRelationFilter;
279
+ deliveries?: Prisma.DeliveryListRelationFilter;
280
+ events?: Prisma.EventListRelationFilter;
281
+ }, "id" | "fleetId_id" | "fleetId_senderShipId_idempotencyKey">;
282
+ export type MessageOrderByWithAggregationInput = {
283
+ id?: Prisma.SortOrder;
284
+ fleetId?: Prisma.SortOrder;
285
+ senderShipId?: Prisma.SortOrder;
286
+ selectorKind?: Prisma.SortOrder;
287
+ selectorShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ selectorType?: Prisma.SortOrderInput | Prisma.SortOrder;
289
+ payload?: Prisma.SortOrder;
290
+ contentType?: Prisma.SortOrder;
291
+ model?: Prisma.SortOrderInput | Prisma.SortOrder;
292
+ idempotencyKey?: Prisma.SortOrder;
293
+ requestHash?: Prisma.SortOrder;
294
+ inReplyToMessageId?: Prisma.SortOrderInput | Prisma.SortOrder;
295
+ resendOfMessageId?: Prisma.SortOrderInput | Prisma.SortOrder;
296
+ createdAt?: Prisma.SortOrder;
297
+ _count?: Prisma.MessageCountOrderByAggregateInput;
298
+ _max?: Prisma.MessageMaxOrderByAggregateInput;
299
+ _min?: Prisma.MessageMinOrderByAggregateInput;
300
+ };
301
+ export type MessageScalarWhereWithAggregatesInput = {
302
+ AND?: Prisma.MessageScalarWhereWithAggregatesInput | Prisma.MessageScalarWhereWithAggregatesInput[];
303
+ OR?: Prisma.MessageScalarWhereWithAggregatesInput[];
304
+ NOT?: Prisma.MessageScalarWhereWithAggregatesInput | Prisma.MessageScalarWhereWithAggregatesInput[];
305
+ id?: Prisma.StringWithAggregatesFilter<"Message"> | string;
306
+ fleetId?: Prisma.StringWithAggregatesFilter<"Message"> | string;
307
+ senderShipId?: Prisma.StringWithAggregatesFilter<"Message"> | string;
308
+ selectorKind?: Prisma.EnumSelectorKindWithAggregatesFilter<"Message"> | $Enums.SelectorKind;
309
+ selectorShipId?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null;
310
+ selectorType?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null;
311
+ payload?: Prisma.StringWithAggregatesFilter<"Message"> | string;
312
+ contentType?: Prisma.StringWithAggregatesFilter<"Message"> | string;
313
+ model?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null;
314
+ idempotencyKey?: Prisma.StringWithAggregatesFilter<"Message"> | string;
315
+ requestHash?: Prisma.StringWithAggregatesFilter<"Message"> | string;
316
+ inReplyToMessageId?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null;
317
+ resendOfMessageId?: Prisma.StringNullableWithAggregatesFilter<"Message"> | string | null;
318
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Message"> | Date | string;
319
+ };
320
+ export type MessageCreateInput = {
321
+ id: string;
322
+ selectorKind: $Enums.SelectorKind;
323
+ selectorType?: string | null;
324
+ payload: string;
325
+ contentType: string;
326
+ model?: string | null;
327
+ idempotencyKey: string;
328
+ requestHash: string;
329
+ createdAt: Date | string;
330
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
331
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
332
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
333
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
334
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
335
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
336
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
337
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
338
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
339
+ };
340
+ export type MessageUncheckedCreateInput = {
341
+ id: string;
342
+ fleetId: string;
343
+ senderShipId: string;
344
+ selectorKind: $Enums.SelectorKind;
345
+ selectorShipId?: string | null;
346
+ selectorType?: string | null;
347
+ payload: string;
348
+ contentType: string;
349
+ model?: string | null;
350
+ idempotencyKey: string;
351
+ requestHash: string;
352
+ inReplyToMessageId?: string | null;
353
+ resendOfMessageId?: string | null;
354
+ createdAt: Date | string;
355
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
356
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
357
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
358
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
359
+ };
360
+ export type MessageUpdateInput = {
361
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
362
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
363
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
364
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
365
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
367
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
369
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
370
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
371
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
372
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
373
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
374
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
375
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
376
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
377
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
378
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
379
+ };
380
+ export type MessageUncheckedUpdateInput = {
381
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
384
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
385
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
386
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
388
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
389
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
390
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
391
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
392
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
393
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
394
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
395
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
396
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
397
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
398
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
399
+ };
400
+ export type MessageCreateManyInput = {
401
+ id: string;
402
+ fleetId: string;
403
+ senderShipId: string;
404
+ selectorKind: $Enums.SelectorKind;
405
+ selectorShipId?: string | null;
406
+ selectorType?: string | null;
407
+ payload: string;
408
+ contentType: string;
409
+ model?: string | null;
410
+ idempotencyKey: string;
411
+ requestHash: string;
412
+ inReplyToMessageId?: string | null;
413
+ resendOfMessageId?: string | null;
414
+ createdAt: Date | string;
415
+ };
416
+ export type MessageUpdateManyMutationInput = {
417
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
418
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
419
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
420
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
421
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
422
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
423
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
424
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
425
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
426
+ };
427
+ export type MessageUncheckedUpdateManyInput = {
428
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
430
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
432
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
433
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
434
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
436
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
437
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
438
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
439
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
441
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
442
+ };
443
+ export type MessageListRelationFilter = {
444
+ every?: Prisma.MessageWhereInput;
445
+ some?: Prisma.MessageWhereInput;
446
+ none?: Prisma.MessageWhereInput;
447
+ };
448
+ export type MessageOrderByRelationAggregateInput = {
449
+ _count?: Prisma.SortOrder;
450
+ };
451
+ export type MessageNullableScalarRelationFilter = {
452
+ is?: Prisma.MessageWhereInput | null;
453
+ isNot?: Prisma.MessageWhereInput | null;
454
+ };
455
+ export type MessageFleetIdIdCompoundUniqueInput = {
456
+ fleetId: string;
457
+ id: string;
458
+ };
459
+ export type MessageFleetIdSenderShipIdIdempotencyKeyCompoundUniqueInput = {
460
+ fleetId: string;
461
+ senderShipId: string;
462
+ idempotencyKey: string;
463
+ };
464
+ export type MessageCountOrderByAggregateInput = {
465
+ id?: Prisma.SortOrder;
466
+ fleetId?: Prisma.SortOrder;
467
+ senderShipId?: Prisma.SortOrder;
468
+ selectorKind?: Prisma.SortOrder;
469
+ selectorShipId?: Prisma.SortOrder;
470
+ selectorType?: Prisma.SortOrder;
471
+ payload?: Prisma.SortOrder;
472
+ contentType?: Prisma.SortOrder;
473
+ model?: Prisma.SortOrder;
474
+ idempotencyKey?: Prisma.SortOrder;
475
+ requestHash?: Prisma.SortOrder;
476
+ inReplyToMessageId?: Prisma.SortOrder;
477
+ resendOfMessageId?: Prisma.SortOrder;
478
+ createdAt?: Prisma.SortOrder;
479
+ };
480
+ export type MessageMaxOrderByAggregateInput = {
481
+ id?: Prisma.SortOrder;
482
+ fleetId?: Prisma.SortOrder;
483
+ senderShipId?: Prisma.SortOrder;
484
+ selectorKind?: Prisma.SortOrder;
485
+ selectorShipId?: Prisma.SortOrder;
486
+ selectorType?: Prisma.SortOrder;
487
+ payload?: Prisma.SortOrder;
488
+ contentType?: Prisma.SortOrder;
489
+ model?: Prisma.SortOrder;
490
+ idempotencyKey?: Prisma.SortOrder;
491
+ requestHash?: Prisma.SortOrder;
492
+ inReplyToMessageId?: Prisma.SortOrder;
493
+ resendOfMessageId?: Prisma.SortOrder;
494
+ createdAt?: Prisma.SortOrder;
495
+ };
496
+ export type MessageMinOrderByAggregateInput = {
497
+ id?: Prisma.SortOrder;
498
+ fleetId?: Prisma.SortOrder;
499
+ senderShipId?: Prisma.SortOrder;
500
+ selectorKind?: Prisma.SortOrder;
501
+ selectorShipId?: Prisma.SortOrder;
502
+ selectorType?: Prisma.SortOrder;
503
+ payload?: Prisma.SortOrder;
504
+ contentType?: Prisma.SortOrder;
505
+ model?: Prisma.SortOrder;
506
+ idempotencyKey?: Prisma.SortOrder;
507
+ requestHash?: Prisma.SortOrder;
508
+ inReplyToMessageId?: Prisma.SortOrder;
509
+ resendOfMessageId?: Prisma.SortOrder;
510
+ createdAt?: Prisma.SortOrder;
511
+ };
512
+ export type MessageScalarRelationFilter = {
513
+ is?: Prisma.MessageWhereInput;
514
+ isNot?: Prisma.MessageWhereInput;
515
+ };
516
+ export type MessageCreateNestedManyWithoutFleetInput = {
517
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutFleetInput, Prisma.MessageUncheckedCreateWithoutFleetInput> | Prisma.MessageCreateWithoutFleetInput[] | Prisma.MessageUncheckedCreateWithoutFleetInput[];
518
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutFleetInput | Prisma.MessageCreateOrConnectWithoutFleetInput[];
519
+ createMany?: Prisma.MessageCreateManyFleetInputEnvelope;
520
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
521
+ };
522
+ export type MessageUncheckedCreateNestedManyWithoutFleetInput = {
523
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutFleetInput, Prisma.MessageUncheckedCreateWithoutFleetInput> | Prisma.MessageCreateWithoutFleetInput[] | Prisma.MessageUncheckedCreateWithoutFleetInput[];
524
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutFleetInput | Prisma.MessageCreateOrConnectWithoutFleetInput[];
525
+ createMany?: Prisma.MessageCreateManyFleetInputEnvelope;
526
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
527
+ };
528
+ export type MessageUpdateManyWithoutFleetNestedInput = {
529
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutFleetInput, Prisma.MessageUncheckedCreateWithoutFleetInput> | Prisma.MessageCreateWithoutFleetInput[] | Prisma.MessageUncheckedCreateWithoutFleetInput[];
530
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutFleetInput | Prisma.MessageCreateOrConnectWithoutFleetInput[];
531
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutFleetInput | Prisma.MessageUpsertWithWhereUniqueWithoutFleetInput[];
532
+ createMany?: Prisma.MessageCreateManyFleetInputEnvelope;
533
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
534
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
535
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
536
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
537
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutFleetInput | Prisma.MessageUpdateWithWhereUniqueWithoutFleetInput[];
538
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutFleetInput | Prisma.MessageUpdateManyWithWhereWithoutFleetInput[];
539
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
540
+ };
541
+ export type MessageUncheckedUpdateManyWithoutFleetNestedInput = {
542
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutFleetInput, Prisma.MessageUncheckedCreateWithoutFleetInput> | Prisma.MessageCreateWithoutFleetInput[] | Prisma.MessageUncheckedCreateWithoutFleetInput[];
543
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutFleetInput | Prisma.MessageCreateOrConnectWithoutFleetInput[];
544
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutFleetInput | Prisma.MessageUpsertWithWhereUniqueWithoutFleetInput[];
545
+ createMany?: Prisma.MessageCreateManyFleetInputEnvelope;
546
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
547
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
548
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
549
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
550
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutFleetInput | Prisma.MessageUpdateWithWhereUniqueWithoutFleetInput[];
551
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutFleetInput | Prisma.MessageUpdateManyWithWhereWithoutFleetInput[];
552
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
553
+ };
554
+ export type MessageCreateNestedManyWithoutSenderShipInput = {
555
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSenderShipInput, Prisma.MessageUncheckedCreateWithoutSenderShipInput> | Prisma.MessageCreateWithoutSenderShipInput[] | Prisma.MessageUncheckedCreateWithoutSenderShipInput[];
556
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSenderShipInput | Prisma.MessageCreateOrConnectWithoutSenderShipInput[];
557
+ createMany?: Prisma.MessageCreateManySenderShipInputEnvelope;
558
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
559
+ };
560
+ export type MessageCreateNestedManyWithoutSelectorShipInput = {
561
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSelectorShipInput, Prisma.MessageUncheckedCreateWithoutSelectorShipInput> | Prisma.MessageCreateWithoutSelectorShipInput[] | Prisma.MessageUncheckedCreateWithoutSelectorShipInput[];
562
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSelectorShipInput | Prisma.MessageCreateOrConnectWithoutSelectorShipInput[];
563
+ createMany?: Prisma.MessageCreateManySelectorShipInputEnvelope;
564
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
565
+ };
566
+ export type MessageUncheckedCreateNestedManyWithoutSenderShipInput = {
567
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSenderShipInput, Prisma.MessageUncheckedCreateWithoutSenderShipInput> | Prisma.MessageCreateWithoutSenderShipInput[] | Prisma.MessageUncheckedCreateWithoutSenderShipInput[];
568
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSenderShipInput | Prisma.MessageCreateOrConnectWithoutSenderShipInput[];
569
+ createMany?: Prisma.MessageCreateManySenderShipInputEnvelope;
570
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
571
+ };
572
+ export type MessageUncheckedCreateNestedManyWithoutSelectorShipInput = {
573
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSelectorShipInput, Prisma.MessageUncheckedCreateWithoutSelectorShipInput> | Prisma.MessageCreateWithoutSelectorShipInput[] | Prisma.MessageUncheckedCreateWithoutSelectorShipInput[];
574
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSelectorShipInput | Prisma.MessageCreateOrConnectWithoutSelectorShipInput[];
575
+ createMany?: Prisma.MessageCreateManySelectorShipInputEnvelope;
576
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
577
+ };
578
+ export type MessageUpdateManyWithoutSenderShipNestedInput = {
579
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSenderShipInput, Prisma.MessageUncheckedCreateWithoutSenderShipInput> | Prisma.MessageCreateWithoutSenderShipInput[] | Prisma.MessageUncheckedCreateWithoutSenderShipInput[];
580
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSenderShipInput | Prisma.MessageCreateOrConnectWithoutSenderShipInput[];
581
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutSenderShipInput | Prisma.MessageUpsertWithWhereUniqueWithoutSenderShipInput[];
582
+ createMany?: Prisma.MessageCreateManySenderShipInputEnvelope;
583
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
584
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
585
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
586
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
587
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutSenderShipInput | Prisma.MessageUpdateWithWhereUniqueWithoutSenderShipInput[];
588
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutSenderShipInput | Prisma.MessageUpdateManyWithWhereWithoutSenderShipInput[];
589
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
590
+ };
591
+ export type MessageUpdateManyWithoutSelectorShipNestedInput = {
592
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSelectorShipInput, Prisma.MessageUncheckedCreateWithoutSelectorShipInput> | Prisma.MessageCreateWithoutSelectorShipInput[] | Prisma.MessageUncheckedCreateWithoutSelectorShipInput[];
593
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSelectorShipInput | Prisma.MessageCreateOrConnectWithoutSelectorShipInput[];
594
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutSelectorShipInput | Prisma.MessageUpsertWithWhereUniqueWithoutSelectorShipInput[];
595
+ createMany?: Prisma.MessageCreateManySelectorShipInputEnvelope;
596
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
597
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
598
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
599
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
600
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutSelectorShipInput | Prisma.MessageUpdateWithWhereUniqueWithoutSelectorShipInput[];
601
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutSelectorShipInput | Prisma.MessageUpdateManyWithWhereWithoutSelectorShipInput[];
602
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
603
+ };
604
+ export type MessageUncheckedUpdateManyWithoutSenderShipNestedInput = {
605
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSenderShipInput, Prisma.MessageUncheckedCreateWithoutSenderShipInput> | Prisma.MessageCreateWithoutSenderShipInput[] | Prisma.MessageUncheckedCreateWithoutSenderShipInput[];
606
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSenderShipInput | Prisma.MessageCreateOrConnectWithoutSenderShipInput[];
607
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutSenderShipInput | Prisma.MessageUpsertWithWhereUniqueWithoutSenderShipInput[];
608
+ createMany?: Prisma.MessageCreateManySenderShipInputEnvelope;
609
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
610
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
611
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
612
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
613
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutSenderShipInput | Prisma.MessageUpdateWithWhereUniqueWithoutSenderShipInput[];
614
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutSenderShipInput | Prisma.MessageUpdateManyWithWhereWithoutSenderShipInput[];
615
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
616
+ };
617
+ export type MessageUncheckedUpdateManyWithoutSelectorShipNestedInput = {
618
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutSelectorShipInput, Prisma.MessageUncheckedCreateWithoutSelectorShipInput> | Prisma.MessageCreateWithoutSelectorShipInput[] | Prisma.MessageUncheckedCreateWithoutSelectorShipInput[];
619
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutSelectorShipInput | Prisma.MessageCreateOrConnectWithoutSelectorShipInput[];
620
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutSelectorShipInput | Prisma.MessageUpsertWithWhereUniqueWithoutSelectorShipInput[];
621
+ createMany?: Prisma.MessageCreateManySelectorShipInputEnvelope;
622
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
623
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
624
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
625
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
626
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutSelectorShipInput | Prisma.MessageUpdateWithWhereUniqueWithoutSelectorShipInput[];
627
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutSelectorShipInput | Prisma.MessageUpdateManyWithWhereWithoutSelectorShipInput[];
628
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
629
+ };
630
+ export type MessageCreateNestedOneWithoutRepliesInput = {
631
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>;
632
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutRepliesInput;
633
+ connect?: Prisma.MessageWhereUniqueInput;
634
+ };
635
+ export type MessageCreateNestedManyWithoutInReplyToInput = {
636
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutInReplyToInput, Prisma.MessageUncheckedCreateWithoutInReplyToInput> | Prisma.MessageCreateWithoutInReplyToInput[] | Prisma.MessageUncheckedCreateWithoutInReplyToInput[];
637
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutInReplyToInput | Prisma.MessageCreateOrConnectWithoutInReplyToInput[];
638
+ createMany?: Prisma.MessageCreateManyInReplyToInputEnvelope;
639
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
640
+ };
641
+ export type MessageCreateNestedOneWithoutResendsInput = {
642
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutResendsInput, Prisma.MessageUncheckedCreateWithoutResendsInput>;
643
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutResendsInput;
644
+ connect?: Prisma.MessageWhereUniqueInput;
645
+ };
646
+ export type MessageCreateNestedManyWithoutResendOfInput = {
647
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutResendOfInput, Prisma.MessageUncheckedCreateWithoutResendOfInput> | Prisma.MessageCreateWithoutResendOfInput[] | Prisma.MessageUncheckedCreateWithoutResendOfInput[];
648
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutResendOfInput | Prisma.MessageCreateOrConnectWithoutResendOfInput[];
649
+ createMany?: Prisma.MessageCreateManyResendOfInputEnvelope;
650
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
651
+ };
652
+ export type MessageUncheckedCreateNestedManyWithoutInReplyToInput = {
653
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutInReplyToInput, Prisma.MessageUncheckedCreateWithoutInReplyToInput> | Prisma.MessageCreateWithoutInReplyToInput[] | Prisma.MessageUncheckedCreateWithoutInReplyToInput[];
654
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutInReplyToInput | Prisma.MessageCreateOrConnectWithoutInReplyToInput[];
655
+ createMany?: Prisma.MessageCreateManyInReplyToInputEnvelope;
656
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
657
+ };
658
+ export type MessageUncheckedCreateNestedManyWithoutResendOfInput = {
659
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutResendOfInput, Prisma.MessageUncheckedCreateWithoutResendOfInput> | Prisma.MessageCreateWithoutResendOfInput[] | Prisma.MessageUncheckedCreateWithoutResendOfInput[];
660
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutResendOfInput | Prisma.MessageCreateOrConnectWithoutResendOfInput[];
661
+ createMany?: Prisma.MessageCreateManyResendOfInputEnvelope;
662
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
663
+ };
664
+ export type EnumSelectorKindFieldUpdateOperationsInput = {
665
+ set?: $Enums.SelectorKind;
666
+ };
667
+ export type MessageUpdateOneWithoutRepliesNestedInput = {
668
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>;
669
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutRepliesInput;
670
+ upsert?: Prisma.MessageUpsertWithoutRepliesInput;
671
+ disconnect?: Prisma.MessageWhereInput | boolean;
672
+ delete?: Prisma.MessageWhereInput | boolean;
673
+ connect?: Prisma.MessageWhereUniqueInput;
674
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MessageUpdateToOneWithWhereWithoutRepliesInput, Prisma.MessageUpdateWithoutRepliesInput>, Prisma.MessageUncheckedUpdateWithoutRepliesInput>;
675
+ };
676
+ export type MessageUpdateManyWithoutInReplyToNestedInput = {
677
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutInReplyToInput, Prisma.MessageUncheckedCreateWithoutInReplyToInput> | Prisma.MessageCreateWithoutInReplyToInput[] | Prisma.MessageUncheckedCreateWithoutInReplyToInput[];
678
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutInReplyToInput | Prisma.MessageCreateOrConnectWithoutInReplyToInput[];
679
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutInReplyToInput | Prisma.MessageUpsertWithWhereUniqueWithoutInReplyToInput[];
680
+ createMany?: Prisma.MessageCreateManyInReplyToInputEnvelope;
681
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
682
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
683
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
684
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
685
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutInReplyToInput | Prisma.MessageUpdateWithWhereUniqueWithoutInReplyToInput[];
686
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutInReplyToInput | Prisma.MessageUpdateManyWithWhereWithoutInReplyToInput[];
687
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
688
+ };
689
+ export type MessageUpdateOneWithoutResendsNestedInput = {
690
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutResendsInput, Prisma.MessageUncheckedCreateWithoutResendsInput>;
691
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutResendsInput;
692
+ upsert?: Prisma.MessageUpsertWithoutResendsInput;
693
+ disconnect?: Prisma.MessageWhereInput | boolean;
694
+ delete?: Prisma.MessageWhereInput | boolean;
695
+ connect?: Prisma.MessageWhereUniqueInput;
696
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MessageUpdateToOneWithWhereWithoutResendsInput, Prisma.MessageUpdateWithoutResendsInput>, Prisma.MessageUncheckedUpdateWithoutResendsInput>;
697
+ };
698
+ export type MessageUpdateManyWithoutResendOfNestedInput = {
699
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutResendOfInput, Prisma.MessageUncheckedCreateWithoutResendOfInput> | Prisma.MessageCreateWithoutResendOfInput[] | Prisma.MessageUncheckedCreateWithoutResendOfInput[];
700
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutResendOfInput | Prisma.MessageCreateOrConnectWithoutResendOfInput[];
701
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutResendOfInput | Prisma.MessageUpsertWithWhereUniqueWithoutResendOfInput[];
702
+ createMany?: Prisma.MessageCreateManyResendOfInputEnvelope;
703
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
704
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
705
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
706
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
707
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutResendOfInput | Prisma.MessageUpdateWithWhereUniqueWithoutResendOfInput[];
708
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutResendOfInput | Prisma.MessageUpdateManyWithWhereWithoutResendOfInput[];
709
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
710
+ };
711
+ export type MessageUncheckedUpdateManyWithoutInReplyToNestedInput = {
712
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutInReplyToInput, Prisma.MessageUncheckedCreateWithoutInReplyToInput> | Prisma.MessageCreateWithoutInReplyToInput[] | Prisma.MessageUncheckedCreateWithoutInReplyToInput[];
713
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutInReplyToInput | Prisma.MessageCreateOrConnectWithoutInReplyToInput[];
714
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutInReplyToInput | Prisma.MessageUpsertWithWhereUniqueWithoutInReplyToInput[];
715
+ createMany?: Prisma.MessageCreateManyInReplyToInputEnvelope;
716
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
717
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
718
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
719
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
720
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutInReplyToInput | Prisma.MessageUpdateWithWhereUniqueWithoutInReplyToInput[];
721
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutInReplyToInput | Prisma.MessageUpdateManyWithWhereWithoutInReplyToInput[];
722
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
723
+ };
724
+ export type MessageUncheckedUpdateManyWithoutResendOfNestedInput = {
725
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutResendOfInput, Prisma.MessageUncheckedCreateWithoutResendOfInput> | Prisma.MessageCreateWithoutResendOfInput[] | Prisma.MessageUncheckedCreateWithoutResendOfInput[];
726
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutResendOfInput | Prisma.MessageCreateOrConnectWithoutResendOfInput[];
727
+ upsert?: Prisma.MessageUpsertWithWhereUniqueWithoutResendOfInput | Prisma.MessageUpsertWithWhereUniqueWithoutResendOfInput[];
728
+ createMany?: Prisma.MessageCreateManyResendOfInputEnvelope;
729
+ set?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
730
+ disconnect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
731
+ delete?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
732
+ connect?: Prisma.MessageWhereUniqueInput | Prisma.MessageWhereUniqueInput[];
733
+ update?: Prisma.MessageUpdateWithWhereUniqueWithoutResendOfInput | Prisma.MessageUpdateWithWhereUniqueWithoutResendOfInput[];
734
+ updateMany?: Prisma.MessageUpdateManyWithWhereWithoutResendOfInput | Prisma.MessageUpdateManyWithWhereWithoutResendOfInput[];
735
+ deleteMany?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
736
+ };
737
+ export type MessageCreateNestedOneWithoutDeliveriesInput = {
738
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutDeliveriesInput, Prisma.MessageUncheckedCreateWithoutDeliveriesInput>;
739
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutDeliveriesInput;
740
+ connect?: Prisma.MessageWhereUniqueInput;
741
+ };
742
+ export type MessageUpdateOneRequiredWithoutDeliveriesNestedInput = {
743
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutDeliveriesInput, Prisma.MessageUncheckedCreateWithoutDeliveriesInput>;
744
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutDeliveriesInput;
745
+ upsert?: Prisma.MessageUpsertWithoutDeliveriesInput;
746
+ connect?: Prisma.MessageWhereUniqueInput;
747
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MessageUpdateToOneWithWhereWithoutDeliveriesInput, Prisma.MessageUpdateWithoutDeliveriesInput>, Prisma.MessageUncheckedUpdateWithoutDeliveriesInput>;
748
+ };
749
+ export type MessageCreateNestedOneWithoutEventsInput = {
750
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutEventsInput, Prisma.MessageUncheckedCreateWithoutEventsInput>;
751
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutEventsInput;
752
+ connect?: Prisma.MessageWhereUniqueInput;
753
+ };
754
+ export type MessageUpdateOneWithoutEventsNestedInput = {
755
+ create?: Prisma.XOR<Prisma.MessageCreateWithoutEventsInput, Prisma.MessageUncheckedCreateWithoutEventsInput>;
756
+ connectOrCreate?: Prisma.MessageCreateOrConnectWithoutEventsInput;
757
+ upsert?: Prisma.MessageUpsertWithoutEventsInput;
758
+ disconnect?: Prisma.MessageWhereInput | boolean;
759
+ delete?: Prisma.MessageWhereInput | boolean;
760
+ connect?: Prisma.MessageWhereUniqueInput;
761
+ update?: Prisma.XOR<Prisma.XOR<Prisma.MessageUpdateToOneWithWhereWithoutEventsInput, Prisma.MessageUpdateWithoutEventsInput>, Prisma.MessageUncheckedUpdateWithoutEventsInput>;
762
+ };
763
+ export type MessageCreateWithoutFleetInput = {
764
+ id: string;
765
+ selectorKind: $Enums.SelectorKind;
766
+ selectorType?: string | null;
767
+ payload: string;
768
+ contentType: string;
769
+ model?: string | null;
770
+ idempotencyKey: string;
771
+ requestHash: string;
772
+ createdAt: Date | string;
773
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
774
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
775
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
776
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
777
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
778
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
779
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
780
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
781
+ };
782
+ export type MessageUncheckedCreateWithoutFleetInput = {
783
+ id: string;
784
+ senderShipId: string;
785
+ selectorKind: $Enums.SelectorKind;
786
+ selectorShipId?: string | null;
787
+ selectorType?: string | null;
788
+ payload: string;
789
+ contentType: string;
790
+ model?: string | null;
791
+ idempotencyKey: string;
792
+ requestHash: string;
793
+ inReplyToMessageId?: string | null;
794
+ resendOfMessageId?: string | null;
795
+ createdAt: Date | string;
796
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
797
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
798
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
799
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
800
+ };
801
+ export type MessageCreateOrConnectWithoutFleetInput = {
802
+ where: Prisma.MessageWhereUniqueInput;
803
+ create: Prisma.XOR<Prisma.MessageCreateWithoutFleetInput, Prisma.MessageUncheckedCreateWithoutFleetInput>;
804
+ };
805
+ export type MessageCreateManyFleetInputEnvelope = {
806
+ data: Prisma.MessageCreateManyFleetInput | Prisma.MessageCreateManyFleetInput[];
807
+ skipDuplicates?: boolean;
808
+ };
809
+ export type MessageUpsertWithWhereUniqueWithoutFleetInput = {
810
+ where: Prisma.MessageWhereUniqueInput;
811
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutFleetInput, Prisma.MessageUncheckedUpdateWithoutFleetInput>;
812
+ create: Prisma.XOR<Prisma.MessageCreateWithoutFleetInput, Prisma.MessageUncheckedCreateWithoutFleetInput>;
813
+ };
814
+ export type MessageUpdateWithWhereUniqueWithoutFleetInput = {
815
+ where: Prisma.MessageWhereUniqueInput;
816
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutFleetInput, Prisma.MessageUncheckedUpdateWithoutFleetInput>;
817
+ };
818
+ export type MessageUpdateManyWithWhereWithoutFleetInput = {
819
+ where: Prisma.MessageScalarWhereInput;
820
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutFleetInput>;
821
+ };
822
+ export type MessageScalarWhereInput = {
823
+ AND?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
824
+ OR?: Prisma.MessageScalarWhereInput[];
825
+ NOT?: Prisma.MessageScalarWhereInput | Prisma.MessageScalarWhereInput[];
826
+ id?: Prisma.StringFilter<"Message"> | string;
827
+ fleetId?: Prisma.StringFilter<"Message"> | string;
828
+ senderShipId?: Prisma.StringFilter<"Message"> | string;
829
+ selectorKind?: Prisma.EnumSelectorKindFilter<"Message"> | $Enums.SelectorKind;
830
+ selectorShipId?: Prisma.StringNullableFilter<"Message"> | string | null;
831
+ selectorType?: Prisma.StringNullableFilter<"Message"> | string | null;
832
+ payload?: Prisma.StringFilter<"Message"> | string;
833
+ contentType?: Prisma.StringFilter<"Message"> | string;
834
+ model?: Prisma.StringNullableFilter<"Message"> | string | null;
835
+ idempotencyKey?: Prisma.StringFilter<"Message"> | string;
836
+ requestHash?: Prisma.StringFilter<"Message"> | string;
837
+ inReplyToMessageId?: Prisma.StringNullableFilter<"Message"> | string | null;
838
+ resendOfMessageId?: Prisma.StringNullableFilter<"Message"> | string | null;
839
+ createdAt?: Prisma.DateTimeFilter<"Message"> | Date | string;
840
+ };
841
+ export type MessageCreateWithoutSenderShipInput = {
842
+ id: string;
843
+ selectorKind: $Enums.SelectorKind;
844
+ selectorType?: string | null;
845
+ payload: string;
846
+ contentType: string;
847
+ model?: string | null;
848
+ idempotencyKey: string;
849
+ requestHash: string;
850
+ createdAt: Date | string;
851
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
852
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
853
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
854
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
855
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
856
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
857
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
858
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
859
+ };
860
+ export type MessageUncheckedCreateWithoutSenderShipInput = {
861
+ id: string;
862
+ selectorKind: $Enums.SelectorKind;
863
+ selectorShipId?: string | null;
864
+ selectorType?: string | null;
865
+ payload: string;
866
+ contentType: string;
867
+ model?: string | null;
868
+ idempotencyKey: string;
869
+ requestHash: string;
870
+ inReplyToMessageId?: string | null;
871
+ resendOfMessageId?: string | null;
872
+ createdAt: Date | string;
873
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
874
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
875
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
876
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
877
+ };
878
+ export type MessageCreateOrConnectWithoutSenderShipInput = {
879
+ where: Prisma.MessageWhereUniqueInput;
880
+ create: Prisma.XOR<Prisma.MessageCreateWithoutSenderShipInput, Prisma.MessageUncheckedCreateWithoutSenderShipInput>;
881
+ };
882
+ export type MessageCreateManySenderShipInputEnvelope = {
883
+ data: Prisma.MessageCreateManySenderShipInput | Prisma.MessageCreateManySenderShipInput[];
884
+ skipDuplicates?: boolean;
885
+ };
886
+ export type MessageCreateWithoutSelectorShipInput = {
887
+ id: string;
888
+ selectorKind: $Enums.SelectorKind;
889
+ selectorType?: string | null;
890
+ payload: string;
891
+ contentType: string;
892
+ model?: string | null;
893
+ idempotencyKey: string;
894
+ requestHash: string;
895
+ createdAt: Date | string;
896
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
897
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
898
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
899
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
900
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
901
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
902
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
903
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
904
+ };
905
+ export type MessageUncheckedCreateWithoutSelectorShipInput = {
906
+ id: string;
907
+ senderShipId: string;
908
+ selectorKind: $Enums.SelectorKind;
909
+ selectorType?: string | null;
910
+ payload: string;
911
+ contentType: string;
912
+ model?: string | null;
913
+ idempotencyKey: string;
914
+ requestHash: string;
915
+ inReplyToMessageId?: string | null;
916
+ resendOfMessageId?: string | null;
917
+ createdAt: Date | string;
918
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
919
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
920
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
921
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
922
+ };
923
+ export type MessageCreateOrConnectWithoutSelectorShipInput = {
924
+ where: Prisma.MessageWhereUniqueInput;
925
+ create: Prisma.XOR<Prisma.MessageCreateWithoutSelectorShipInput, Prisma.MessageUncheckedCreateWithoutSelectorShipInput>;
926
+ };
927
+ export type MessageCreateManySelectorShipInputEnvelope = {
928
+ data: Prisma.MessageCreateManySelectorShipInput | Prisma.MessageCreateManySelectorShipInput[];
929
+ skipDuplicates?: boolean;
930
+ };
931
+ export type MessageUpsertWithWhereUniqueWithoutSenderShipInput = {
932
+ where: Prisma.MessageWhereUniqueInput;
933
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutSenderShipInput, Prisma.MessageUncheckedUpdateWithoutSenderShipInput>;
934
+ create: Prisma.XOR<Prisma.MessageCreateWithoutSenderShipInput, Prisma.MessageUncheckedCreateWithoutSenderShipInput>;
935
+ };
936
+ export type MessageUpdateWithWhereUniqueWithoutSenderShipInput = {
937
+ where: Prisma.MessageWhereUniqueInput;
938
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutSenderShipInput, Prisma.MessageUncheckedUpdateWithoutSenderShipInput>;
939
+ };
940
+ export type MessageUpdateManyWithWhereWithoutSenderShipInput = {
941
+ where: Prisma.MessageScalarWhereInput;
942
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutSenderShipInput>;
943
+ };
944
+ export type MessageUpsertWithWhereUniqueWithoutSelectorShipInput = {
945
+ where: Prisma.MessageWhereUniqueInput;
946
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutSelectorShipInput, Prisma.MessageUncheckedUpdateWithoutSelectorShipInput>;
947
+ create: Prisma.XOR<Prisma.MessageCreateWithoutSelectorShipInput, Prisma.MessageUncheckedCreateWithoutSelectorShipInput>;
948
+ };
949
+ export type MessageUpdateWithWhereUniqueWithoutSelectorShipInput = {
950
+ where: Prisma.MessageWhereUniqueInput;
951
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutSelectorShipInput, Prisma.MessageUncheckedUpdateWithoutSelectorShipInput>;
952
+ };
953
+ export type MessageUpdateManyWithWhereWithoutSelectorShipInput = {
954
+ where: Prisma.MessageScalarWhereInput;
955
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutSelectorShipInput>;
956
+ };
957
+ export type MessageCreateWithoutRepliesInput = {
958
+ id: string;
959
+ selectorKind: $Enums.SelectorKind;
960
+ selectorType?: string | null;
961
+ payload: string;
962
+ contentType: string;
963
+ model?: string | null;
964
+ idempotencyKey: string;
965
+ requestHash: string;
966
+ createdAt: Date | string;
967
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
968
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
969
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
970
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
971
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
972
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
973
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
974
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
975
+ };
976
+ export type MessageUncheckedCreateWithoutRepliesInput = {
977
+ id: string;
978
+ fleetId: string;
979
+ senderShipId: string;
980
+ selectorKind: $Enums.SelectorKind;
981
+ selectorShipId?: string | null;
982
+ selectorType?: string | null;
983
+ payload: string;
984
+ contentType: string;
985
+ model?: string | null;
986
+ idempotencyKey: string;
987
+ requestHash: string;
988
+ inReplyToMessageId?: string | null;
989
+ resendOfMessageId?: string | null;
990
+ createdAt: Date | string;
991
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
992
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
993
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
994
+ };
995
+ export type MessageCreateOrConnectWithoutRepliesInput = {
996
+ where: Prisma.MessageWhereUniqueInput;
997
+ create: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>;
998
+ };
999
+ export type MessageCreateWithoutInReplyToInput = {
1000
+ id: string;
1001
+ selectorKind: $Enums.SelectorKind;
1002
+ selectorType?: string | null;
1003
+ payload: string;
1004
+ contentType: string;
1005
+ model?: string | null;
1006
+ idempotencyKey: string;
1007
+ requestHash: string;
1008
+ createdAt: Date | string;
1009
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
1010
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
1011
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
1012
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
1013
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
1014
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
1015
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
1016
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
1017
+ };
1018
+ export type MessageUncheckedCreateWithoutInReplyToInput = {
1019
+ id: string;
1020
+ senderShipId: string;
1021
+ selectorKind: $Enums.SelectorKind;
1022
+ selectorShipId?: string | null;
1023
+ selectorType?: string | null;
1024
+ payload: string;
1025
+ contentType: string;
1026
+ model?: string | null;
1027
+ idempotencyKey: string;
1028
+ requestHash: string;
1029
+ resendOfMessageId?: string | null;
1030
+ createdAt: Date | string;
1031
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
1032
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
1033
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
1034
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
1035
+ };
1036
+ export type MessageCreateOrConnectWithoutInReplyToInput = {
1037
+ where: Prisma.MessageWhereUniqueInput;
1038
+ create: Prisma.XOR<Prisma.MessageCreateWithoutInReplyToInput, Prisma.MessageUncheckedCreateWithoutInReplyToInput>;
1039
+ };
1040
+ export type MessageCreateManyInReplyToInputEnvelope = {
1041
+ data: Prisma.MessageCreateManyInReplyToInput | Prisma.MessageCreateManyInReplyToInput[];
1042
+ skipDuplicates?: boolean;
1043
+ };
1044
+ export type MessageCreateWithoutResendsInput = {
1045
+ id: string;
1046
+ selectorKind: $Enums.SelectorKind;
1047
+ selectorType?: string | null;
1048
+ payload: string;
1049
+ contentType: string;
1050
+ model?: string | null;
1051
+ idempotencyKey: string;
1052
+ requestHash: string;
1053
+ createdAt: Date | string;
1054
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
1055
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
1056
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
1057
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
1058
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
1059
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
1060
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
1061
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
1062
+ };
1063
+ export type MessageUncheckedCreateWithoutResendsInput = {
1064
+ id: string;
1065
+ fleetId: string;
1066
+ senderShipId: string;
1067
+ selectorKind: $Enums.SelectorKind;
1068
+ selectorShipId?: string | null;
1069
+ selectorType?: string | null;
1070
+ payload: string;
1071
+ contentType: string;
1072
+ model?: string | null;
1073
+ idempotencyKey: string;
1074
+ requestHash: string;
1075
+ inReplyToMessageId?: string | null;
1076
+ resendOfMessageId?: string | null;
1077
+ createdAt: Date | string;
1078
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
1079
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
1080
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
1081
+ };
1082
+ export type MessageCreateOrConnectWithoutResendsInput = {
1083
+ where: Prisma.MessageWhereUniqueInput;
1084
+ create: Prisma.XOR<Prisma.MessageCreateWithoutResendsInput, Prisma.MessageUncheckedCreateWithoutResendsInput>;
1085
+ };
1086
+ export type MessageCreateWithoutResendOfInput = {
1087
+ id: string;
1088
+ selectorKind: $Enums.SelectorKind;
1089
+ selectorType?: string | null;
1090
+ payload: string;
1091
+ contentType: string;
1092
+ model?: string | null;
1093
+ idempotencyKey: string;
1094
+ requestHash: string;
1095
+ createdAt: Date | string;
1096
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
1097
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
1098
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
1099
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
1100
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
1101
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
1102
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
1103
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
1104
+ };
1105
+ export type MessageUncheckedCreateWithoutResendOfInput = {
1106
+ id: string;
1107
+ senderShipId: string;
1108
+ selectorKind: $Enums.SelectorKind;
1109
+ selectorShipId?: string | null;
1110
+ selectorType?: string | null;
1111
+ payload: string;
1112
+ contentType: string;
1113
+ model?: string | null;
1114
+ idempotencyKey: string;
1115
+ requestHash: string;
1116
+ inReplyToMessageId?: string | null;
1117
+ createdAt: Date | string;
1118
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
1119
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
1120
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
1121
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
1122
+ };
1123
+ export type MessageCreateOrConnectWithoutResendOfInput = {
1124
+ where: Prisma.MessageWhereUniqueInput;
1125
+ create: Prisma.XOR<Prisma.MessageCreateWithoutResendOfInput, Prisma.MessageUncheckedCreateWithoutResendOfInput>;
1126
+ };
1127
+ export type MessageCreateManyResendOfInputEnvelope = {
1128
+ data: Prisma.MessageCreateManyResendOfInput | Prisma.MessageCreateManyResendOfInput[];
1129
+ skipDuplicates?: boolean;
1130
+ };
1131
+ export type MessageUpsertWithoutRepliesInput = {
1132
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutRepliesInput, Prisma.MessageUncheckedUpdateWithoutRepliesInput>;
1133
+ create: Prisma.XOR<Prisma.MessageCreateWithoutRepliesInput, Prisma.MessageUncheckedCreateWithoutRepliesInput>;
1134
+ where?: Prisma.MessageWhereInput;
1135
+ };
1136
+ export type MessageUpdateToOneWithWhereWithoutRepliesInput = {
1137
+ where?: Prisma.MessageWhereInput;
1138
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutRepliesInput, Prisma.MessageUncheckedUpdateWithoutRepliesInput>;
1139
+ };
1140
+ export type MessageUpdateWithoutRepliesInput = {
1141
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1142
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1143
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1144
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1145
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1146
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1147
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1148
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1149
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1150
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1151
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1152
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1153
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1154
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1155
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1156
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1157
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1158
+ };
1159
+ export type MessageUncheckedUpdateWithoutRepliesInput = {
1160
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1161
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1162
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1163
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1164
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1165
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1166
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1167
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1168
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1169
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1170
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1171
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1172
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1173
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1174
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1175
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1176
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1177
+ };
1178
+ export type MessageUpsertWithWhereUniqueWithoutInReplyToInput = {
1179
+ where: Prisma.MessageWhereUniqueInput;
1180
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutInReplyToInput, Prisma.MessageUncheckedUpdateWithoutInReplyToInput>;
1181
+ create: Prisma.XOR<Prisma.MessageCreateWithoutInReplyToInput, Prisma.MessageUncheckedCreateWithoutInReplyToInput>;
1182
+ };
1183
+ export type MessageUpdateWithWhereUniqueWithoutInReplyToInput = {
1184
+ where: Prisma.MessageWhereUniqueInput;
1185
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutInReplyToInput, Prisma.MessageUncheckedUpdateWithoutInReplyToInput>;
1186
+ };
1187
+ export type MessageUpdateManyWithWhereWithoutInReplyToInput = {
1188
+ where: Prisma.MessageScalarWhereInput;
1189
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutInReplyToInput>;
1190
+ };
1191
+ export type MessageUpsertWithoutResendsInput = {
1192
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutResendsInput, Prisma.MessageUncheckedUpdateWithoutResendsInput>;
1193
+ create: Prisma.XOR<Prisma.MessageCreateWithoutResendsInput, Prisma.MessageUncheckedCreateWithoutResendsInput>;
1194
+ where?: Prisma.MessageWhereInput;
1195
+ };
1196
+ export type MessageUpdateToOneWithWhereWithoutResendsInput = {
1197
+ where?: Prisma.MessageWhereInput;
1198
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutResendsInput, Prisma.MessageUncheckedUpdateWithoutResendsInput>;
1199
+ };
1200
+ export type MessageUpdateWithoutResendsInput = {
1201
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1202
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1203
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1204
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1205
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1206
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1207
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1208
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1209
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1210
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1211
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1212
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1213
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1214
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1215
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1216
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1217
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1218
+ };
1219
+ export type MessageUncheckedUpdateWithoutResendsInput = {
1220
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1221
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1222
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1223
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1224
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1225
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1226
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1227
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1228
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1229
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1230
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1231
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1232
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1233
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1234
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1235
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1236
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1237
+ };
1238
+ export type MessageUpsertWithWhereUniqueWithoutResendOfInput = {
1239
+ where: Prisma.MessageWhereUniqueInput;
1240
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutResendOfInput, Prisma.MessageUncheckedUpdateWithoutResendOfInput>;
1241
+ create: Prisma.XOR<Prisma.MessageCreateWithoutResendOfInput, Prisma.MessageUncheckedCreateWithoutResendOfInput>;
1242
+ };
1243
+ export type MessageUpdateWithWhereUniqueWithoutResendOfInput = {
1244
+ where: Prisma.MessageWhereUniqueInput;
1245
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutResendOfInput, Prisma.MessageUncheckedUpdateWithoutResendOfInput>;
1246
+ };
1247
+ export type MessageUpdateManyWithWhereWithoutResendOfInput = {
1248
+ where: Prisma.MessageScalarWhereInput;
1249
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyWithoutResendOfInput>;
1250
+ };
1251
+ export type MessageCreateWithoutDeliveriesInput = {
1252
+ id: string;
1253
+ selectorKind: $Enums.SelectorKind;
1254
+ selectorType?: string | null;
1255
+ payload: string;
1256
+ contentType: string;
1257
+ model?: string | null;
1258
+ idempotencyKey: string;
1259
+ requestHash: string;
1260
+ createdAt: Date | string;
1261
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
1262
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
1263
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
1264
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
1265
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
1266
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
1267
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
1268
+ events?: Prisma.EventCreateNestedManyWithoutMessageInput;
1269
+ };
1270
+ export type MessageUncheckedCreateWithoutDeliveriesInput = {
1271
+ id: string;
1272
+ fleetId: string;
1273
+ senderShipId: string;
1274
+ selectorKind: $Enums.SelectorKind;
1275
+ selectorShipId?: string | null;
1276
+ selectorType?: string | null;
1277
+ payload: string;
1278
+ contentType: string;
1279
+ model?: string | null;
1280
+ idempotencyKey: string;
1281
+ requestHash: string;
1282
+ inReplyToMessageId?: string | null;
1283
+ resendOfMessageId?: string | null;
1284
+ createdAt: Date | string;
1285
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
1286
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
1287
+ events?: Prisma.EventUncheckedCreateNestedManyWithoutMessageInput;
1288
+ };
1289
+ export type MessageCreateOrConnectWithoutDeliveriesInput = {
1290
+ where: Prisma.MessageWhereUniqueInput;
1291
+ create: Prisma.XOR<Prisma.MessageCreateWithoutDeliveriesInput, Prisma.MessageUncheckedCreateWithoutDeliveriesInput>;
1292
+ };
1293
+ export type MessageUpsertWithoutDeliveriesInput = {
1294
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutDeliveriesInput, Prisma.MessageUncheckedUpdateWithoutDeliveriesInput>;
1295
+ create: Prisma.XOR<Prisma.MessageCreateWithoutDeliveriesInput, Prisma.MessageUncheckedCreateWithoutDeliveriesInput>;
1296
+ where?: Prisma.MessageWhereInput;
1297
+ };
1298
+ export type MessageUpdateToOneWithWhereWithoutDeliveriesInput = {
1299
+ where?: Prisma.MessageWhereInput;
1300
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutDeliveriesInput, Prisma.MessageUncheckedUpdateWithoutDeliveriesInput>;
1301
+ };
1302
+ export type MessageUpdateWithoutDeliveriesInput = {
1303
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1304
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1305
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1306
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1307
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1308
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1309
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1310
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1311
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1312
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1313
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1314
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1315
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1316
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1317
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1318
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1319
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1320
+ };
1321
+ export type MessageUncheckedUpdateWithoutDeliveriesInput = {
1322
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1323
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1324
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1325
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1326
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1327
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1328
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1329
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1330
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1331
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1332
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1333
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1334
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1335
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1336
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1337
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1338
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1339
+ };
1340
+ export type MessageCreateWithoutEventsInput = {
1341
+ id: string;
1342
+ selectorKind: $Enums.SelectorKind;
1343
+ selectorType?: string | null;
1344
+ payload: string;
1345
+ contentType: string;
1346
+ model?: string | null;
1347
+ idempotencyKey: string;
1348
+ requestHash: string;
1349
+ createdAt: Date | string;
1350
+ fleet: Prisma.FleetCreateNestedOneWithoutMessagesInput;
1351
+ senderShip: Prisma.ShipCreateNestedOneWithoutSentMessagesInput;
1352
+ selectorShip?: Prisma.ShipCreateNestedOneWithoutAddressedMessagesInput;
1353
+ inReplyTo?: Prisma.MessageCreateNestedOneWithoutRepliesInput;
1354
+ replies?: Prisma.MessageCreateNestedManyWithoutInReplyToInput;
1355
+ resendOf?: Prisma.MessageCreateNestedOneWithoutResendsInput;
1356
+ resends?: Prisma.MessageCreateNestedManyWithoutResendOfInput;
1357
+ deliveries?: Prisma.DeliveryCreateNestedManyWithoutMessageInput;
1358
+ };
1359
+ export type MessageUncheckedCreateWithoutEventsInput = {
1360
+ id: string;
1361
+ fleetId: string;
1362
+ senderShipId: string;
1363
+ selectorKind: $Enums.SelectorKind;
1364
+ selectorShipId?: string | null;
1365
+ selectorType?: string | null;
1366
+ payload: string;
1367
+ contentType: string;
1368
+ model?: string | null;
1369
+ idempotencyKey: string;
1370
+ requestHash: string;
1371
+ inReplyToMessageId?: string | null;
1372
+ resendOfMessageId?: string | null;
1373
+ createdAt: Date | string;
1374
+ replies?: Prisma.MessageUncheckedCreateNestedManyWithoutInReplyToInput;
1375
+ resends?: Prisma.MessageUncheckedCreateNestedManyWithoutResendOfInput;
1376
+ deliveries?: Prisma.DeliveryUncheckedCreateNestedManyWithoutMessageInput;
1377
+ };
1378
+ export type MessageCreateOrConnectWithoutEventsInput = {
1379
+ where: Prisma.MessageWhereUniqueInput;
1380
+ create: Prisma.XOR<Prisma.MessageCreateWithoutEventsInput, Prisma.MessageUncheckedCreateWithoutEventsInput>;
1381
+ };
1382
+ export type MessageUpsertWithoutEventsInput = {
1383
+ update: Prisma.XOR<Prisma.MessageUpdateWithoutEventsInput, Prisma.MessageUncheckedUpdateWithoutEventsInput>;
1384
+ create: Prisma.XOR<Prisma.MessageCreateWithoutEventsInput, Prisma.MessageUncheckedCreateWithoutEventsInput>;
1385
+ where?: Prisma.MessageWhereInput;
1386
+ };
1387
+ export type MessageUpdateToOneWithWhereWithoutEventsInput = {
1388
+ where?: Prisma.MessageWhereInput;
1389
+ data: Prisma.XOR<Prisma.MessageUpdateWithoutEventsInput, Prisma.MessageUncheckedUpdateWithoutEventsInput>;
1390
+ };
1391
+ export type MessageUpdateWithoutEventsInput = {
1392
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1393
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1394
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1395
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1396
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1397
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1398
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1399
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1400
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1401
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1402
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1403
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1404
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1405
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1406
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1407
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1408
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1409
+ };
1410
+ export type MessageUncheckedUpdateWithoutEventsInput = {
1411
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1412
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
1413
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1414
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1415
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1416
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1417
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1418
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1419
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1420
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1421
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1422
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1423
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1424
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1425
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1426
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1427
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1428
+ };
1429
+ export type MessageCreateManyFleetInput = {
1430
+ id: string;
1431
+ senderShipId: string;
1432
+ selectorKind: $Enums.SelectorKind;
1433
+ selectorShipId?: string | null;
1434
+ selectorType?: string | null;
1435
+ payload: string;
1436
+ contentType: string;
1437
+ model?: string | null;
1438
+ idempotencyKey: string;
1439
+ requestHash: string;
1440
+ inReplyToMessageId?: string | null;
1441
+ resendOfMessageId?: string | null;
1442
+ createdAt: Date | string;
1443
+ };
1444
+ export type MessageUpdateWithoutFleetInput = {
1445
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1446
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1447
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1448
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1449
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1450
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1451
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1452
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1453
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1454
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1455
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1456
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1457
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1458
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1459
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1460
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1461
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1462
+ };
1463
+ export type MessageUncheckedUpdateWithoutFleetInput = {
1464
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1465
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1466
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1467
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1468
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1469
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1470
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1471
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1472
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1473
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1474
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1475
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1476
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1477
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1478
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1479
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1480
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1481
+ };
1482
+ export type MessageUncheckedUpdateManyWithoutFleetInput = {
1483
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1484
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1485
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1486
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1487
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1488
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1489
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1490
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1491
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1492
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1493
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1494
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1495
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1496
+ };
1497
+ export type MessageCreateManySenderShipInput = {
1498
+ id: string;
1499
+ selectorKind: $Enums.SelectorKind;
1500
+ selectorShipId?: string | null;
1501
+ selectorType?: string | null;
1502
+ payload: string;
1503
+ contentType: string;
1504
+ model?: string | null;
1505
+ idempotencyKey: string;
1506
+ requestHash: string;
1507
+ inReplyToMessageId?: string | null;
1508
+ resendOfMessageId?: string | null;
1509
+ createdAt: Date | string;
1510
+ };
1511
+ export type MessageCreateManySelectorShipInput = {
1512
+ id: string;
1513
+ senderShipId: string;
1514
+ selectorKind: $Enums.SelectorKind;
1515
+ selectorType?: string | null;
1516
+ payload: string;
1517
+ contentType: string;
1518
+ model?: string | null;
1519
+ idempotencyKey: string;
1520
+ requestHash: string;
1521
+ inReplyToMessageId?: string | null;
1522
+ resendOfMessageId?: string | null;
1523
+ createdAt: Date | string;
1524
+ };
1525
+ export type MessageUpdateWithoutSenderShipInput = {
1526
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1527
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1528
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1529
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1530
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1531
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1532
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1533
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1534
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1535
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1536
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1537
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1538
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1539
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1540
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1541
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1542
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1543
+ };
1544
+ export type MessageUncheckedUpdateWithoutSenderShipInput = {
1545
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1546
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1547
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1548
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1549
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1550
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1551
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1552
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1553
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1554
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1555
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1556
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1557
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1558
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1559
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1560
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1561
+ };
1562
+ export type MessageUncheckedUpdateManyWithoutSenderShipInput = {
1563
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1564
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1565
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1566
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1567
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1568
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1569
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1570
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1571
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1572
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1573
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1574
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1575
+ };
1576
+ export type MessageUpdateWithoutSelectorShipInput = {
1577
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1578
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1579
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1580
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1581
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1582
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1583
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1584
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1585
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1586
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1587
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1588
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1589
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1590
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1591
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1592
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1593
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1594
+ };
1595
+ export type MessageUncheckedUpdateWithoutSelectorShipInput = {
1596
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1597
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1598
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1599
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1600
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1601
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1602
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1603
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1604
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1605
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1606
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1607
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1608
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1609
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1610
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1611
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1612
+ };
1613
+ export type MessageUncheckedUpdateManyWithoutSelectorShipInput = {
1614
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1615
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1616
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1617
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1618
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1619
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1620
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1621
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1622
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1623
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1624
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1625
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1626
+ };
1627
+ export type MessageCreateManyInReplyToInput = {
1628
+ id: string;
1629
+ senderShipId: string;
1630
+ selectorKind: $Enums.SelectorKind;
1631
+ selectorShipId?: string | null;
1632
+ selectorType?: string | null;
1633
+ payload: string;
1634
+ contentType: string;
1635
+ model?: string | null;
1636
+ idempotencyKey: string;
1637
+ requestHash: string;
1638
+ resendOfMessageId?: string | null;
1639
+ createdAt: Date | string;
1640
+ };
1641
+ export type MessageCreateManyResendOfInput = {
1642
+ id: string;
1643
+ senderShipId: string;
1644
+ selectorKind: $Enums.SelectorKind;
1645
+ selectorShipId?: string | null;
1646
+ selectorType?: string | null;
1647
+ payload: string;
1648
+ contentType: string;
1649
+ model?: string | null;
1650
+ idempotencyKey: string;
1651
+ requestHash: string;
1652
+ inReplyToMessageId?: string | null;
1653
+ createdAt: Date | string;
1654
+ };
1655
+ export type MessageUpdateWithoutInReplyToInput = {
1656
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1657
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1658
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1659
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1660
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1661
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1662
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1663
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1664
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1665
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1666
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1667
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1668
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1669
+ resendOf?: Prisma.MessageUpdateOneWithoutResendsNestedInput;
1670
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1671
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1672
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1673
+ };
1674
+ export type MessageUncheckedUpdateWithoutInReplyToInput = {
1675
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1676
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1677
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1678
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1679
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1680
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1681
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1682
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1683
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1684
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1685
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1686
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1687
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1688
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1689
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1690
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1691
+ };
1692
+ export type MessageUncheckedUpdateManyWithoutInReplyToInput = {
1693
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1694
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1695
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1696
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1697
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1698
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1699
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1700
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1701
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1702
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1703
+ resendOfMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1704
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1705
+ };
1706
+ export type MessageUpdateWithoutResendOfInput = {
1707
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1708
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1709
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1710
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1711
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1712
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1713
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1714
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1715
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1716
+ fleet?: Prisma.FleetUpdateOneRequiredWithoutMessagesNestedInput;
1717
+ senderShip?: Prisma.ShipUpdateOneRequiredWithoutSentMessagesNestedInput;
1718
+ selectorShip?: Prisma.ShipUpdateOneWithoutAddressedMessagesNestedInput;
1719
+ inReplyTo?: Prisma.MessageUpdateOneWithoutRepliesNestedInput;
1720
+ replies?: Prisma.MessageUpdateManyWithoutInReplyToNestedInput;
1721
+ resends?: Prisma.MessageUpdateManyWithoutResendOfNestedInput;
1722
+ deliveries?: Prisma.DeliveryUpdateManyWithoutMessageNestedInput;
1723
+ events?: Prisma.EventUpdateManyWithoutMessageNestedInput;
1724
+ };
1725
+ export type MessageUncheckedUpdateWithoutResendOfInput = {
1726
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1727
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1728
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1729
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1730
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1731
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1732
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1733
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1734
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1735
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1736
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1737
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1738
+ replies?: Prisma.MessageUncheckedUpdateManyWithoutInReplyToNestedInput;
1739
+ resends?: Prisma.MessageUncheckedUpdateManyWithoutResendOfNestedInput;
1740
+ deliveries?: Prisma.DeliveryUncheckedUpdateManyWithoutMessageNestedInput;
1741
+ events?: Prisma.EventUncheckedUpdateManyWithoutMessageNestedInput;
1742
+ };
1743
+ export type MessageUncheckedUpdateManyWithoutResendOfInput = {
1744
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1745
+ senderShipId?: Prisma.StringFieldUpdateOperationsInput | string;
1746
+ selectorKind?: Prisma.EnumSelectorKindFieldUpdateOperationsInput | $Enums.SelectorKind;
1747
+ selectorShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1748
+ selectorType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1749
+ payload?: Prisma.StringFieldUpdateOperationsInput | string;
1750
+ contentType?: Prisma.StringFieldUpdateOperationsInput | string;
1751
+ model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1752
+ idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string;
1753
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
1754
+ inReplyToMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1755
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1756
+ };
1757
+ /**
1758
+ * Count Type MessageCountOutputType
1759
+ */
1760
+ export type MessageCountOutputType = {
1761
+ replies: number;
1762
+ resends: number;
1763
+ deliveries: number;
1764
+ events: number;
1765
+ };
1766
+ export type MessageCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1767
+ replies?: boolean | MessageCountOutputTypeCountRepliesArgs;
1768
+ resends?: boolean | MessageCountOutputTypeCountResendsArgs;
1769
+ deliveries?: boolean | MessageCountOutputTypeCountDeliveriesArgs;
1770
+ events?: boolean | MessageCountOutputTypeCountEventsArgs;
1771
+ };
1772
+ /**
1773
+ * MessageCountOutputType without action
1774
+ */
1775
+ export type MessageCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1776
+ /**
1777
+ * Select specific fields to fetch from the MessageCountOutputType
1778
+ */
1779
+ select?: Prisma.MessageCountOutputTypeSelect<ExtArgs> | null;
1780
+ };
1781
+ /**
1782
+ * MessageCountOutputType without action
1783
+ */
1784
+ export type MessageCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1785
+ where?: Prisma.MessageWhereInput;
1786
+ };
1787
+ /**
1788
+ * MessageCountOutputType without action
1789
+ */
1790
+ export type MessageCountOutputTypeCountResendsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1791
+ where?: Prisma.MessageWhereInput;
1792
+ };
1793
+ /**
1794
+ * MessageCountOutputType without action
1795
+ */
1796
+ export type MessageCountOutputTypeCountDeliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1797
+ where?: Prisma.DeliveryWhereInput;
1798
+ };
1799
+ /**
1800
+ * MessageCountOutputType without action
1801
+ */
1802
+ export type MessageCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1803
+ where?: Prisma.EventWhereInput;
1804
+ };
1805
+ export type MessageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1806
+ id?: boolean;
1807
+ fleetId?: boolean;
1808
+ senderShipId?: boolean;
1809
+ selectorKind?: boolean;
1810
+ selectorShipId?: boolean;
1811
+ selectorType?: boolean;
1812
+ payload?: boolean;
1813
+ contentType?: boolean;
1814
+ model?: boolean;
1815
+ idempotencyKey?: boolean;
1816
+ requestHash?: boolean;
1817
+ inReplyToMessageId?: boolean;
1818
+ resendOfMessageId?: boolean;
1819
+ createdAt?: boolean;
1820
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1821
+ senderShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1822
+ selectorShip?: boolean | Prisma.Message$selectorShipArgs<ExtArgs>;
1823
+ inReplyTo?: boolean | Prisma.Message$inReplyToArgs<ExtArgs>;
1824
+ replies?: boolean | Prisma.Message$repliesArgs<ExtArgs>;
1825
+ resendOf?: boolean | Prisma.Message$resendOfArgs<ExtArgs>;
1826
+ resends?: boolean | Prisma.Message$resendsArgs<ExtArgs>;
1827
+ deliveries?: boolean | Prisma.Message$deliveriesArgs<ExtArgs>;
1828
+ events?: boolean | Prisma.Message$eventsArgs<ExtArgs>;
1829
+ _count?: boolean | Prisma.MessageCountOutputTypeDefaultArgs<ExtArgs>;
1830
+ }, ExtArgs["result"]["message"]>;
1831
+ export type MessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1832
+ id?: boolean;
1833
+ fleetId?: boolean;
1834
+ senderShipId?: boolean;
1835
+ selectorKind?: boolean;
1836
+ selectorShipId?: boolean;
1837
+ selectorType?: boolean;
1838
+ payload?: boolean;
1839
+ contentType?: boolean;
1840
+ model?: boolean;
1841
+ idempotencyKey?: boolean;
1842
+ requestHash?: boolean;
1843
+ inReplyToMessageId?: boolean;
1844
+ resendOfMessageId?: boolean;
1845
+ createdAt?: boolean;
1846
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1847
+ senderShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1848
+ selectorShip?: boolean | Prisma.Message$selectorShipArgs<ExtArgs>;
1849
+ inReplyTo?: boolean | Prisma.Message$inReplyToArgs<ExtArgs>;
1850
+ resendOf?: boolean | Prisma.Message$resendOfArgs<ExtArgs>;
1851
+ }, ExtArgs["result"]["message"]>;
1852
+ export type MessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1853
+ id?: boolean;
1854
+ fleetId?: boolean;
1855
+ senderShipId?: boolean;
1856
+ selectorKind?: boolean;
1857
+ selectorShipId?: boolean;
1858
+ selectorType?: boolean;
1859
+ payload?: boolean;
1860
+ contentType?: boolean;
1861
+ model?: boolean;
1862
+ idempotencyKey?: boolean;
1863
+ requestHash?: boolean;
1864
+ inReplyToMessageId?: boolean;
1865
+ resendOfMessageId?: boolean;
1866
+ createdAt?: boolean;
1867
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1868
+ senderShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1869
+ selectorShip?: boolean | Prisma.Message$selectorShipArgs<ExtArgs>;
1870
+ inReplyTo?: boolean | Prisma.Message$inReplyToArgs<ExtArgs>;
1871
+ resendOf?: boolean | Prisma.Message$resendOfArgs<ExtArgs>;
1872
+ }, ExtArgs["result"]["message"]>;
1873
+ export type MessageSelectScalar = {
1874
+ id?: boolean;
1875
+ fleetId?: boolean;
1876
+ senderShipId?: boolean;
1877
+ selectorKind?: boolean;
1878
+ selectorShipId?: boolean;
1879
+ selectorType?: boolean;
1880
+ payload?: boolean;
1881
+ contentType?: boolean;
1882
+ model?: boolean;
1883
+ idempotencyKey?: boolean;
1884
+ requestHash?: boolean;
1885
+ inReplyToMessageId?: boolean;
1886
+ resendOfMessageId?: boolean;
1887
+ createdAt?: boolean;
1888
+ };
1889
+ export type MessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fleetId" | "senderShipId" | "selectorKind" | "selectorShipId" | "selectorType" | "payload" | "contentType" | "model" | "idempotencyKey" | "requestHash" | "inReplyToMessageId" | "resendOfMessageId" | "createdAt", ExtArgs["result"]["message"]>;
1890
+ export type MessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1891
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1892
+ senderShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1893
+ selectorShip?: boolean | Prisma.Message$selectorShipArgs<ExtArgs>;
1894
+ inReplyTo?: boolean | Prisma.Message$inReplyToArgs<ExtArgs>;
1895
+ replies?: boolean | Prisma.Message$repliesArgs<ExtArgs>;
1896
+ resendOf?: boolean | Prisma.Message$resendOfArgs<ExtArgs>;
1897
+ resends?: boolean | Prisma.Message$resendsArgs<ExtArgs>;
1898
+ deliveries?: boolean | Prisma.Message$deliveriesArgs<ExtArgs>;
1899
+ events?: boolean | Prisma.Message$eventsArgs<ExtArgs>;
1900
+ _count?: boolean | Prisma.MessageCountOutputTypeDefaultArgs<ExtArgs>;
1901
+ };
1902
+ export type MessageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1903
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1904
+ senderShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1905
+ selectorShip?: boolean | Prisma.Message$selectorShipArgs<ExtArgs>;
1906
+ inReplyTo?: boolean | Prisma.Message$inReplyToArgs<ExtArgs>;
1907
+ resendOf?: boolean | Prisma.Message$resendOfArgs<ExtArgs>;
1908
+ };
1909
+ export type MessageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1910
+ fleet?: boolean | Prisma.FleetDefaultArgs<ExtArgs>;
1911
+ senderShip?: boolean | Prisma.ShipDefaultArgs<ExtArgs>;
1912
+ selectorShip?: boolean | Prisma.Message$selectorShipArgs<ExtArgs>;
1913
+ inReplyTo?: boolean | Prisma.Message$inReplyToArgs<ExtArgs>;
1914
+ resendOf?: boolean | Prisma.Message$resendOfArgs<ExtArgs>;
1915
+ };
1916
+ export type $MessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1917
+ name: "Message";
1918
+ objects: {
1919
+ fleet: Prisma.$FleetPayload<ExtArgs>;
1920
+ senderShip: Prisma.$ShipPayload<ExtArgs>;
1921
+ selectorShip: Prisma.$ShipPayload<ExtArgs> | null;
1922
+ inReplyTo: Prisma.$MessagePayload<ExtArgs> | null;
1923
+ replies: Prisma.$MessagePayload<ExtArgs>[];
1924
+ resendOf: Prisma.$MessagePayload<ExtArgs> | null;
1925
+ resends: Prisma.$MessagePayload<ExtArgs>[];
1926
+ deliveries: Prisma.$DeliveryPayload<ExtArgs>[];
1927
+ events: Prisma.$EventPayload<ExtArgs>[];
1928
+ };
1929
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1930
+ id: string;
1931
+ fleetId: string;
1932
+ senderShipId: string;
1933
+ selectorKind: $Enums.SelectorKind;
1934
+ selectorShipId: string | null;
1935
+ selectorType: string | null;
1936
+ payload: string;
1937
+ contentType: string;
1938
+ /**
1939
+ * The model the sender's session stated; none from argo and on messages from before models were stated.
1940
+ */
1941
+ model: string | null;
1942
+ idempotencyKey: string;
1943
+ requestHash: string;
1944
+ inReplyToMessageId: string | null;
1945
+ resendOfMessageId: string | null;
1946
+ createdAt: Date;
1947
+ }, ExtArgs["result"]["message"]>;
1948
+ composites: {};
1949
+ };
1950
+ export type MessageGetPayload<S extends boolean | null | undefined | MessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MessagePayload, S>;
1951
+ export type MessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<MessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1952
+ select?: MessageCountAggregateInputType | true;
1953
+ };
1954
+ export interface MessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1955
+ [K: symbol]: {
1956
+ types: Prisma.TypeMap<ExtArgs>['model']['Message'];
1957
+ meta: {
1958
+ name: 'Message';
1959
+ };
1960
+ };
1961
+ /**
1962
+ * Find zero or one Message that matches the filter.
1963
+ * @param {MessageFindUniqueArgs} args - Arguments to find a Message
1964
+ * @example
1965
+ * // Get one Message
1966
+ * const message = await prisma.message.findUnique({
1967
+ * where: {
1968
+ * // ... provide filter here
1969
+ * }
1970
+ * })
1971
+ */
1972
+ findUnique<T extends MessageFindUniqueArgs>(args: Prisma.SelectSubset<T, MessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1973
+ /**
1974
+ * Find one Message that matches the filter or throw an error with `error.code='P2025'`
1975
+ * if no matches were found.
1976
+ * @param {MessageFindUniqueOrThrowArgs} args - Arguments to find a Message
1977
+ * @example
1978
+ * // Get one Message
1979
+ * const message = await prisma.message.findUniqueOrThrow({
1980
+ * where: {
1981
+ * // ... provide filter here
1982
+ * }
1983
+ * })
1984
+ */
1985
+ findUniqueOrThrow<T extends MessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1986
+ /**
1987
+ * Find the first Message that matches the filter.
1988
+ * Note, that providing `undefined` is treated as the value not being there.
1989
+ * Read more here: https://pris.ly/d/null-undefined
1990
+ * @param {MessageFindFirstArgs} args - Arguments to find a Message
1991
+ * @example
1992
+ * // Get one Message
1993
+ * const message = await prisma.message.findFirst({
1994
+ * where: {
1995
+ * // ... provide filter here
1996
+ * }
1997
+ * })
1998
+ */
1999
+ findFirst<T extends MessageFindFirstArgs>(args?: Prisma.SelectSubset<T, MessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2000
+ /**
2001
+ * Find the first Message that matches the filter or
2002
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2003
+ * Note, that providing `undefined` is treated as the value not being there.
2004
+ * Read more here: https://pris.ly/d/null-undefined
2005
+ * @param {MessageFindFirstOrThrowArgs} args - Arguments to find a Message
2006
+ * @example
2007
+ * // Get one Message
2008
+ * const message = await prisma.message.findFirstOrThrow({
2009
+ * where: {
2010
+ * // ... provide filter here
2011
+ * }
2012
+ * })
2013
+ */
2014
+ findFirstOrThrow<T extends MessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2015
+ /**
2016
+ * Find zero or more Messages that matches the filter.
2017
+ * Note, that providing `undefined` is treated as the value not being there.
2018
+ * Read more here: https://pris.ly/d/null-undefined
2019
+ * @param {MessageFindManyArgs} args - Arguments to filter and select certain fields only.
2020
+ * @example
2021
+ * // Get all Messages
2022
+ * const messages = await prisma.message.findMany()
2023
+ *
2024
+ * // Get first 10 Messages
2025
+ * const messages = await prisma.message.findMany({ take: 10 })
2026
+ *
2027
+ * // Only select the `id`
2028
+ * const messageWithIdOnly = await prisma.message.findMany({ select: { id: true } })
2029
+ *
2030
+ */
2031
+ findMany<T extends MessageFindManyArgs>(args?: Prisma.SelectSubset<T, MessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2032
+ /**
2033
+ * Create a Message.
2034
+ * @param {MessageCreateArgs} args - Arguments to create a Message.
2035
+ * @example
2036
+ * // Create one Message
2037
+ * const Message = await prisma.message.create({
2038
+ * data: {
2039
+ * // ... data to create a Message
2040
+ * }
2041
+ * })
2042
+ *
2043
+ */
2044
+ create<T extends MessageCreateArgs>(args: Prisma.SelectSubset<T, MessageCreateArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2045
+ /**
2046
+ * Create many Messages.
2047
+ * @param {MessageCreateManyArgs} args - Arguments to create many Messages.
2048
+ * @example
2049
+ * // Create many Messages
2050
+ * const message = await prisma.message.createMany({
2051
+ * data: [
2052
+ * // ... provide data here
2053
+ * ]
2054
+ * })
2055
+ *
2056
+ */
2057
+ createMany<T extends MessageCreateManyArgs>(args?: Prisma.SelectSubset<T, MessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2058
+ /**
2059
+ * Create many Messages and returns the data saved in the database.
2060
+ * @param {MessageCreateManyAndReturnArgs} args - Arguments to create many Messages.
2061
+ * @example
2062
+ * // Create many Messages
2063
+ * const message = await prisma.message.createManyAndReturn({
2064
+ * data: [
2065
+ * // ... provide data here
2066
+ * ]
2067
+ * })
2068
+ *
2069
+ * // Create many Messages and only return the `id`
2070
+ * const messageWithIdOnly = await prisma.message.createManyAndReturn({
2071
+ * select: { id: true },
2072
+ * data: [
2073
+ * // ... provide data here
2074
+ * ]
2075
+ * })
2076
+ * Note, that providing `undefined` is treated as the value not being there.
2077
+ * Read more here: https://pris.ly/d/null-undefined
2078
+ *
2079
+ */
2080
+ createManyAndReturn<T extends MessageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2081
+ /**
2082
+ * Delete a Message.
2083
+ * @param {MessageDeleteArgs} args - Arguments to delete one Message.
2084
+ * @example
2085
+ * // Delete one Message
2086
+ * const Message = await prisma.message.delete({
2087
+ * where: {
2088
+ * // ... filter to delete one Message
2089
+ * }
2090
+ * })
2091
+ *
2092
+ */
2093
+ delete<T extends MessageDeleteArgs>(args: Prisma.SelectSubset<T, MessageDeleteArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2094
+ /**
2095
+ * Update one Message.
2096
+ * @param {MessageUpdateArgs} args - Arguments to update one Message.
2097
+ * @example
2098
+ * // Update one Message
2099
+ * const message = await prisma.message.update({
2100
+ * where: {
2101
+ * // ... provide filter here
2102
+ * },
2103
+ * data: {
2104
+ * // ... provide data here
2105
+ * }
2106
+ * })
2107
+ *
2108
+ */
2109
+ update<T extends MessageUpdateArgs>(args: Prisma.SelectSubset<T, MessageUpdateArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2110
+ /**
2111
+ * Delete zero or more Messages.
2112
+ * @param {MessageDeleteManyArgs} args - Arguments to filter Messages to delete.
2113
+ * @example
2114
+ * // Delete a few Messages
2115
+ * const { count } = await prisma.message.deleteMany({
2116
+ * where: {
2117
+ * // ... provide filter here
2118
+ * }
2119
+ * })
2120
+ *
2121
+ */
2122
+ deleteMany<T extends MessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, MessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2123
+ /**
2124
+ * Update zero or more Messages.
2125
+ * Note, that providing `undefined` is treated as the value not being there.
2126
+ * Read more here: https://pris.ly/d/null-undefined
2127
+ * @param {MessageUpdateManyArgs} args - Arguments to update one or more rows.
2128
+ * @example
2129
+ * // Update many Messages
2130
+ * const message = await prisma.message.updateMany({
2131
+ * where: {
2132
+ * // ... provide filter here
2133
+ * },
2134
+ * data: {
2135
+ * // ... provide data here
2136
+ * }
2137
+ * })
2138
+ *
2139
+ */
2140
+ updateMany<T extends MessageUpdateManyArgs>(args: Prisma.SelectSubset<T, MessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2141
+ /**
2142
+ * Update zero or more Messages and returns the data updated in the database.
2143
+ * @param {MessageUpdateManyAndReturnArgs} args - Arguments to update many Messages.
2144
+ * @example
2145
+ * // Update many Messages
2146
+ * const message = await prisma.message.updateManyAndReturn({
2147
+ * where: {
2148
+ * // ... provide filter here
2149
+ * },
2150
+ * data: [
2151
+ * // ... provide data here
2152
+ * ]
2153
+ * })
2154
+ *
2155
+ * // Update zero or more Messages and only return the `id`
2156
+ * const messageWithIdOnly = await prisma.message.updateManyAndReturn({
2157
+ * select: { id: true },
2158
+ * where: {
2159
+ * // ... provide filter here
2160
+ * },
2161
+ * data: [
2162
+ * // ... provide data here
2163
+ * ]
2164
+ * })
2165
+ * Note, that providing `undefined` is treated as the value not being there.
2166
+ * Read more here: https://pris.ly/d/null-undefined
2167
+ *
2168
+ */
2169
+ updateManyAndReturn<T extends MessageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MessageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2170
+ /**
2171
+ * Create or update one Message.
2172
+ * @param {MessageUpsertArgs} args - Arguments to update or create a Message.
2173
+ * @example
2174
+ * // Update or create a Message
2175
+ * const message = await prisma.message.upsert({
2176
+ * create: {
2177
+ * // ... data to create a Message
2178
+ * },
2179
+ * update: {
2180
+ * // ... in case it already exists, update
2181
+ * },
2182
+ * where: {
2183
+ * // ... the filter for the Message we want to update
2184
+ * }
2185
+ * })
2186
+ */
2187
+ upsert<T extends MessageUpsertArgs>(args: Prisma.SelectSubset<T, MessageUpsertArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2188
+ /**
2189
+ * Count the number of Messages.
2190
+ * Note, that providing `undefined` is treated as the value not being there.
2191
+ * Read more here: https://pris.ly/d/null-undefined
2192
+ * @param {MessageCountArgs} args - Arguments to filter Messages to count.
2193
+ * @example
2194
+ * // Count the number of Messages
2195
+ * const count = await prisma.message.count({
2196
+ * where: {
2197
+ * // ... the filter for the Messages we want to count
2198
+ * }
2199
+ * })
2200
+ **/
2201
+ count<T extends MessageCountArgs>(args?: Prisma.Subset<T, MessageCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], MessageCountAggregateOutputType> : number>;
2202
+ /**
2203
+ * Allows you to perform aggregations operations on a Message.
2204
+ * Note, that providing `undefined` is treated as the value not being there.
2205
+ * Read more here: https://pris.ly/d/null-undefined
2206
+ * @param {MessageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2207
+ * @example
2208
+ * // Ordered by age ascending
2209
+ * // Where email contains prisma.io
2210
+ * // Limited to the 10 users
2211
+ * const aggregations = await prisma.user.aggregate({
2212
+ * _avg: {
2213
+ * age: true,
2214
+ * },
2215
+ * where: {
2216
+ * email: {
2217
+ * contains: "prisma.io",
2218
+ * },
2219
+ * },
2220
+ * orderBy: {
2221
+ * age: "asc",
2222
+ * },
2223
+ * take: 10,
2224
+ * })
2225
+ **/
2226
+ aggregate<T extends MessageAggregateArgs>(args: Prisma.Subset<T, MessageAggregateArgs>): Prisma.PrismaPromise<GetMessageAggregateType<T>>;
2227
+ /**
2228
+ * Group by Message.
2229
+ * Note, that providing `undefined` is treated as the value not being there.
2230
+ * Read more here: https://pris.ly/d/null-undefined
2231
+ * @param {MessageGroupByArgs} args - Group by arguments.
2232
+ * @example
2233
+ * // Group by city, order by createdAt, get count
2234
+ * const result = await prisma.user.groupBy({
2235
+ * by: ['city', 'createdAt'],
2236
+ * orderBy: {
2237
+ * createdAt: true
2238
+ * },
2239
+ * _count: {
2240
+ * _all: true
2241
+ * },
2242
+ * })
2243
+ *
2244
+ **/
2245
+ groupBy<T extends MessageGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2246
+ orderBy: MessageGroupByArgs['orderBy'];
2247
+ } : {
2248
+ orderBy?: MessageGroupByArgs['orderBy'];
2249
+ }, 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 ? {
2250
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2251
+ Error,
2252
+ 'Field ',
2253
+ P,
2254
+ ` in "having" needs to be provided in "by"`
2255
+ ];
2256
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2257
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2258
+ }[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 ? {} : {
2259
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2260
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2261
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2262
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, MessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2263
+ /**
2264
+ * Fields of the Message model
2265
+ */
2266
+ readonly fields: MessageFieldRefs;
2267
+ }
2268
+ /**
2269
+ * The delegate class that acts as a "Promise-like" for Message.
2270
+ * Why is this prefixed with `Prisma__`?
2271
+ * Because we want to prevent naming conflicts as mentioned in
2272
+ * https://github.com/prisma/prisma-client-js/issues/707
2273
+ */
2274
+ export interface Prisma__MessageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2275
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2276
+ 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>;
2277
+ senderShip<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>;
2278
+ selectorShip<T extends Prisma.Message$selectorShipArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$selectorShipArgs<ExtArgs>>): Prisma.Prisma__ShipClient<runtime.Types.Result.GetResult<Prisma.$ShipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2279
+ inReplyTo<T extends Prisma.Message$inReplyToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$inReplyToArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2280
+ replies<T extends Prisma.Message$repliesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$repliesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2281
+ resendOf<T extends Prisma.Message$resendOfArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$resendOfArgs<ExtArgs>>): Prisma.Prisma__MessageClient<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2282
+ resends<T extends Prisma.Message$resendsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$resendsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2283
+ deliveries<T extends Prisma.Message$deliveriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$deliveriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeliveryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2284
+ events<T extends Prisma.Message$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Message$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2285
+ /**
2286
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2287
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2288
+ * @param onrejected The callback to execute when the Promise is rejected.
2289
+ * @returns A Promise for the completion of which ever callback is executed.
2290
+ */
2291
+ 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>;
2292
+ /**
2293
+ * Attaches a callback for only the rejection of the Promise.
2294
+ * @param onrejected The callback to execute when the Promise is rejected.
2295
+ * @returns A Promise for the completion of the callback.
2296
+ */
2297
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2298
+ /**
2299
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2300
+ * resolved value cannot be modified from the callback.
2301
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2302
+ * @returns A Promise for the completion of the callback.
2303
+ */
2304
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2305
+ }
2306
+ /**
2307
+ * Fields of the Message model
2308
+ */
2309
+ export interface MessageFieldRefs {
2310
+ readonly id: Prisma.FieldRef<"Message", 'String'>;
2311
+ readonly fleetId: Prisma.FieldRef<"Message", 'String'>;
2312
+ readonly senderShipId: Prisma.FieldRef<"Message", 'String'>;
2313
+ readonly selectorKind: Prisma.FieldRef<"Message", 'SelectorKind'>;
2314
+ readonly selectorShipId: Prisma.FieldRef<"Message", 'String'>;
2315
+ readonly selectorType: Prisma.FieldRef<"Message", 'String'>;
2316
+ readonly payload: Prisma.FieldRef<"Message", 'String'>;
2317
+ readonly contentType: Prisma.FieldRef<"Message", 'String'>;
2318
+ readonly model: Prisma.FieldRef<"Message", 'String'>;
2319
+ readonly idempotencyKey: Prisma.FieldRef<"Message", 'String'>;
2320
+ readonly requestHash: Prisma.FieldRef<"Message", 'String'>;
2321
+ readonly inReplyToMessageId: Prisma.FieldRef<"Message", 'String'>;
2322
+ readonly resendOfMessageId: Prisma.FieldRef<"Message", 'String'>;
2323
+ readonly createdAt: Prisma.FieldRef<"Message", 'DateTime'>;
2324
+ }
2325
+ /**
2326
+ * Message findUnique
2327
+ */
2328
+ export type MessageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2329
+ /**
2330
+ * Select specific fields to fetch from the Message
2331
+ */
2332
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2333
+ /**
2334
+ * Omit specific fields from the Message
2335
+ */
2336
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2337
+ /**
2338
+ * Choose, which related nodes to fetch as well
2339
+ */
2340
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2341
+ /**
2342
+ * Filter, which Message to fetch.
2343
+ */
2344
+ where: Prisma.MessageWhereUniqueInput;
2345
+ };
2346
+ /**
2347
+ * Message findUniqueOrThrow
2348
+ */
2349
+ export type MessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2350
+ /**
2351
+ * Select specific fields to fetch from the Message
2352
+ */
2353
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2354
+ /**
2355
+ * Omit specific fields from the Message
2356
+ */
2357
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2358
+ /**
2359
+ * Choose, which related nodes to fetch as well
2360
+ */
2361
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2362
+ /**
2363
+ * Filter, which Message to fetch.
2364
+ */
2365
+ where: Prisma.MessageWhereUniqueInput;
2366
+ };
2367
+ /**
2368
+ * Message findFirst
2369
+ */
2370
+ export type MessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2371
+ /**
2372
+ * Select specific fields to fetch from the Message
2373
+ */
2374
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2375
+ /**
2376
+ * Omit specific fields from the Message
2377
+ */
2378
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2379
+ /**
2380
+ * Choose, which related nodes to fetch as well
2381
+ */
2382
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2383
+ /**
2384
+ * Filter, which Message to fetch.
2385
+ */
2386
+ where?: Prisma.MessageWhereInput;
2387
+ /**
2388
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2389
+ *
2390
+ * Determine the order of Messages to fetch.
2391
+ */
2392
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
2393
+ /**
2394
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2395
+ *
2396
+ * Sets the position for searching for Messages.
2397
+ */
2398
+ cursor?: Prisma.MessageWhereUniqueInput;
2399
+ /**
2400
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2401
+ *
2402
+ * Take `±n` Messages from the position of the cursor.
2403
+ */
2404
+ take?: number;
2405
+ /**
2406
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2407
+ *
2408
+ * Skip the first `n` Messages.
2409
+ */
2410
+ skip?: number;
2411
+ /**
2412
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2413
+ *
2414
+ * Filter by unique combinations of Messages.
2415
+ */
2416
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
2417
+ };
2418
+ /**
2419
+ * Message findFirstOrThrow
2420
+ */
2421
+ export type MessageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2422
+ /**
2423
+ * Select specific fields to fetch from the Message
2424
+ */
2425
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2426
+ /**
2427
+ * Omit specific fields from the Message
2428
+ */
2429
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2430
+ /**
2431
+ * Choose, which related nodes to fetch as well
2432
+ */
2433
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2434
+ /**
2435
+ * Filter, which Message to fetch.
2436
+ */
2437
+ where?: Prisma.MessageWhereInput;
2438
+ /**
2439
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2440
+ *
2441
+ * Determine the order of Messages to fetch.
2442
+ */
2443
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
2444
+ /**
2445
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2446
+ *
2447
+ * Sets the position for searching for Messages.
2448
+ */
2449
+ cursor?: Prisma.MessageWhereUniqueInput;
2450
+ /**
2451
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2452
+ *
2453
+ * Take `±n` Messages from the position of the cursor.
2454
+ */
2455
+ take?: number;
2456
+ /**
2457
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2458
+ *
2459
+ * Skip the first `n` Messages.
2460
+ */
2461
+ skip?: number;
2462
+ /**
2463
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2464
+ *
2465
+ * Filter by unique combinations of Messages.
2466
+ */
2467
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
2468
+ };
2469
+ /**
2470
+ * Message findMany
2471
+ */
2472
+ export type MessageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2473
+ /**
2474
+ * Select specific fields to fetch from the Message
2475
+ */
2476
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2477
+ /**
2478
+ * Omit specific fields from the Message
2479
+ */
2480
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2481
+ /**
2482
+ * Choose, which related nodes to fetch as well
2483
+ */
2484
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2485
+ /**
2486
+ * Filter, which Messages to fetch.
2487
+ */
2488
+ where?: Prisma.MessageWhereInput;
2489
+ /**
2490
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2491
+ *
2492
+ * Determine the order of Messages to fetch.
2493
+ */
2494
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
2495
+ /**
2496
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2497
+ *
2498
+ * Sets the position for listing Messages.
2499
+ */
2500
+ cursor?: Prisma.MessageWhereUniqueInput;
2501
+ /**
2502
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2503
+ *
2504
+ * Take `±n` Messages from the position of the cursor.
2505
+ */
2506
+ take?: number;
2507
+ /**
2508
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2509
+ *
2510
+ * Skip the first `n` Messages.
2511
+ */
2512
+ skip?: number;
2513
+ /**
2514
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2515
+ *
2516
+ * Filter by unique combinations of Messages.
2517
+ */
2518
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
2519
+ };
2520
+ /**
2521
+ * Message create
2522
+ */
2523
+ export type MessageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2524
+ /**
2525
+ * Select specific fields to fetch from the Message
2526
+ */
2527
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2528
+ /**
2529
+ * Omit specific fields from the Message
2530
+ */
2531
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2532
+ /**
2533
+ * Choose, which related nodes to fetch as well
2534
+ */
2535
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2536
+ /**
2537
+ * The data needed to create a Message.
2538
+ */
2539
+ data: Prisma.XOR<Prisma.MessageCreateInput, Prisma.MessageUncheckedCreateInput>;
2540
+ };
2541
+ /**
2542
+ * Message createMany
2543
+ */
2544
+ export type MessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2545
+ /**
2546
+ * The data used to create many Messages.
2547
+ */
2548
+ data: Prisma.MessageCreateManyInput | Prisma.MessageCreateManyInput[];
2549
+ skipDuplicates?: boolean;
2550
+ };
2551
+ /**
2552
+ * Message createManyAndReturn
2553
+ */
2554
+ export type MessageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2555
+ /**
2556
+ * Select specific fields to fetch from the Message
2557
+ */
2558
+ select?: Prisma.MessageSelectCreateManyAndReturn<ExtArgs> | null;
2559
+ /**
2560
+ * Omit specific fields from the Message
2561
+ */
2562
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2563
+ /**
2564
+ * The data used to create many Messages.
2565
+ */
2566
+ data: Prisma.MessageCreateManyInput | Prisma.MessageCreateManyInput[];
2567
+ skipDuplicates?: boolean;
2568
+ /**
2569
+ * Choose, which related nodes to fetch as well
2570
+ */
2571
+ include?: Prisma.MessageIncludeCreateManyAndReturn<ExtArgs> | null;
2572
+ };
2573
+ /**
2574
+ * Message update
2575
+ */
2576
+ export type MessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2577
+ /**
2578
+ * Select specific fields to fetch from the Message
2579
+ */
2580
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2581
+ /**
2582
+ * Omit specific fields from the Message
2583
+ */
2584
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2585
+ /**
2586
+ * Choose, which related nodes to fetch as well
2587
+ */
2588
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2589
+ /**
2590
+ * The data needed to update a Message.
2591
+ */
2592
+ data: Prisma.XOR<Prisma.MessageUpdateInput, Prisma.MessageUncheckedUpdateInput>;
2593
+ /**
2594
+ * Choose, which Message to update.
2595
+ */
2596
+ where: Prisma.MessageWhereUniqueInput;
2597
+ };
2598
+ /**
2599
+ * Message updateMany
2600
+ */
2601
+ export type MessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2602
+ /**
2603
+ * The data used to update Messages.
2604
+ */
2605
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyInput>;
2606
+ /**
2607
+ * Filter which Messages to update
2608
+ */
2609
+ where?: Prisma.MessageWhereInput;
2610
+ /**
2611
+ * Limit how many Messages to update.
2612
+ */
2613
+ limit?: number;
2614
+ };
2615
+ /**
2616
+ * Message updateManyAndReturn
2617
+ */
2618
+ export type MessageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2619
+ /**
2620
+ * Select specific fields to fetch from the Message
2621
+ */
2622
+ select?: Prisma.MessageSelectUpdateManyAndReturn<ExtArgs> | null;
2623
+ /**
2624
+ * Omit specific fields from the Message
2625
+ */
2626
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2627
+ /**
2628
+ * The data used to update Messages.
2629
+ */
2630
+ data: Prisma.XOR<Prisma.MessageUpdateManyMutationInput, Prisma.MessageUncheckedUpdateManyInput>;
2631
+ /**
2632
+ * Filter which Messages to update
2633
+ */
2634
+ where?: Prisma.MessageWhereInput;
2635
+ /**
2636
+ * Limit how many Messages to update.
2637
+ */
2638
+ limit?: number;
2639
+ /**
2640
+ * Choose, which related nodes to fetch as well
2641
+ */
2642
+ include?: Prisma.MessageIncludeUpdateManyAndReturn<ExtArgs> | null;
2643
+ };
2644
+ /**
2645
+ * Message upsert
2646
+ */
2647
+ export type MessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2648
+ /**
2649
+ * Select specific fields to fetch from the Message
2650
+ */
2651
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2652
+ /**
2653
+ * Omit specific fields from the Message
2654
+ */
2655
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2656
+ /**
2657
+ * Choose, which related nodes to fetch as well
2658
+ */
2659
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2660
+ /**
2661
+ * The filter to search for the Message to update in case it exists.
2662
+ */
2663
+ where: Prisma.MessageWhereUniqueInput;
2664
+ /**
2665
+ * In case the Message found by the `where` argument doesn't exist, create a new Message with this data.
2666
+ */
2667
+ create: Prisma.XOR<Prisma.MessageCreateInput, Prisma.MessageUncheckedCreateInput>;
2668
+ /**
2669
+ * In case the Message was found with the provided `where` argument, update it with this data.
2670
+ */
2671
+ update: Prisma.XOR<Prisma.MessageUpdateInput, Prisma.MessageUncheckedUpdateInput>;
2672
+ };
2673
+ /**
2674
+ * Message delete
2675
+ */
2676
+ export type MessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2677
+ /**
2678
+ * Select specific fields to fetch from the Message
2679
+ */
2680
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2681
+ /**
2682
+ * Omit specific fields from the Message
2683
+ */
2684
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2685
+ /**
2686
+ * Choose, which related nodes to fetch as well
2687
+ */
2688
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2689
+ /**
2690
+ * Filter which Message to delete.
2691
+ */
2692
+ where: Prisma.MessageWhereUniqueInput;
2693
+ };
2694
+ /**
2695
+ * Message deleteMany
2696
+ */
2697
+ export type MessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2698
+ /**
2699
+ * Filter which Messages to delete
2700
+ */
2701
+ where?: Prisma.MessageWhereInput;
2702
+ /**
2703
+ * Limit how many Messages to delete.
2704
+ */
2705
+ limit?: number;
2706
+ };
2707
+ /**
2708
+ * Message.selectorShip
2709
+ */
2710
+ export type Message$selectorShipArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2711
+ /**
2712
+ * Select specific fields to fetch from the Ship
2713
+ */
2714
+ select?: Prisma.ShipSelect<ExtArgs> | null;
2715
+ /**
2716
+ * Omit specific fields from the Ship
2717
+ */
2718
+ omit?: Prisma.ShipOmit<ExtArgs> | null;
2719
+ /**
2720
+ * Choose, which related nodes to fetch as well
2721
+ */
2722
+ include?: Prisma.ShipInclude<ExtArgs> | null;
2723
+ where?: Prisma.ShipWhereInput;
2724
+ };
2725
+ /**
2726
+ * Message.inReplyTo
2727
+ */
2728
+ export type Message$inReplyToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2729
+ /**
2730
+ * Select specific fields to fetch from the Message
2731
+ */
2732
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2733
+ /**
2734
+ * Omit specific fields from the Message
2735
+ */
2736
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2737
+ /**
2738
+ * Choose, which related nodes to fetch as well
2739
+ */
2740
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2741
+ where?: Prisma.MessageWhereInput;
2742
+ };
2743
+ /**
2744
+ * Message.replies
2745
+ */
2746
+ export type Message$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2747
+ /**
2748
+ * Select specific fields to fetch from the Message
2749
+ */
2750
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2751
+ /**
2752
+ * Omit specific fields from the Message
2753
+ */
2754
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2755
+ /**
2756
+ * Choose, which related nodes to fetch as well
2757
+ */
2758
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2759
+ where?: Prisma.MessageWhereInput;
2760
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
2761
+ cursor?: Prisma.MessageWhereUniqueInput;
2762
+ take?: number;
2763
+ skip?: number;
2764
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
2765
+ };
2766
+ /**
2767
+ * Message.resendOf
2768
+ */
2769
+ export type Message$resendOfArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2770
+ /**
2771
+ * Select specific fields to fetch from the Message
2772
+ */
2773
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2774
+ /**
2775
+ * Omit specific fields from the Message
2776
+ */
2777
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2778
+ /**
2779
+ * Choose, which related nodes to fetch as well
2780
+ */
2781
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2782
+ where?: Prisma.MessageWhereInput;
2783
+ };
2784
+ /**
2785
+ * Message.resends
2786
+ */
2787
+ export type Message$resendsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2788
+ /**
2789
+ * Select specific fields to fetch from the Message
2790
+ */
2791
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2792
+ /**
2793
+ * Omit specific fields from the Message
2794
+ */
2795
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2796
+ /**
2797
+ * Choose, which related nodes to fetch as well
2798
+ */
2799
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2800
+ where?: Prisma.MessageWhereInput;
2801
+ orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[];
2802
+ cursor?: Prisma.MessageWhereUniqueInput;
2803
+ take?: number;
2804
+ skip?: number;
2805
+ distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[];
2806
+ };
2807
+ /**
2808
+ * Message.deliveries
2809
+ */
2810
+ export type Message$deliveriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2811
+ /**
2812
+ * Select specific fields to fetch from the Delivery
2813
+ */
2814
+ select?: Prisma.DeliverySelect<ExtArgs> | null;
2815
+ /**
2816
+ * Omit specific fields from the Delivery
2817
+ */
2818
+ omit?: Prisma.DeliveryOmit<ExtArgs> | null;
2819
+ /**
2820
+ * Choose, which related nodes to fetch as well
2821
+ */
2822
+ include?: Prisma.DeliveryInclude<ExtArgs> | null;
2823
+ where?: Prisma.DeliveryWhereInput;
2824
+ orderBy?: Prisma.DeliveryOrderByWithRelationInput | Prisma.DeliveryOrderByWithRelationInput[];
2825
+ cursor?: Prisma.DeliveryWhereUniqueInput;
2826
+ take?: number;
2827
+ skip?: number;
2828
+ distinct?: Prisma.DeliveryScalarFieldEnum | Prisma.DeliveryScalarFieldEnum[];
2829
+ };
2830
+ /**
2831
+ * Message.events
2832
+ */
2833
+ export type Message$eventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2834
+ /**
2835
+ * Select specific fields to fetch from the Event
2836
+ */
2837
+ select?: Prisma.EventSelect<ExtArgs> | null;
2838
+ /**
2839
+ * Omit specific fields from the Event
2840
+ */
2841
+ omit?: Prisma.EventOmit<ExtArgs> | null;
2842
+ /**
2843
+ * Choose, which related nodes to fetch as well
2844
+ */
2845
+ include?: Prisma.EventInclude<ExtArgs> | null;
2846
+ where?: Prisma.EventWhereInput;
2847
+ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[];
2848
+ cursor?: Prisma.EventWhereUniqueInput;
2849
+ take?: number;
2850
+ skip?: number;
2851
+ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[];
2852
+ };
2853
+ /**
2854
+ * Message without action
2855
+ */
2856
+ export type MessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2857
+ /**
2858
+ * Select specific fields to fetch from the Message
2859
+ */
2860
+ select?: Prisma.MessageSelect<ExtArgs> | null;
2861
+ /**
2862
+ * Omit specific fields from the Message
2863
+ */
2864
+ omit?: Prisma.MessageOmit<ExtArgs> | null;
2865
+ /**
2866
+ * Choose, which related nodes to fetch as well
2867
+ */
2868
+ include?: Prisma.MessageInclude<ExtArgs> | null;
2869
+ };