@aeolus-fleet/gateway 0.0.0-stage → 0.28.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 (528) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +105 -2
  3. package/dist/adapters/crypto/call-keys.d.ts +7 -0
  4. package/dist/adapters/crypto/call-keys.js +18 -0
  5. package/dist/adapters/crypto/call-keys.js.map +1 -0
  6. package/dist/adapters/crypto/oauth-secrets.d.ts +3 -0
  7. package/dist/adapters/crypto/oauth-secrets.js +10 -0
  8. package/dist/adapters/crypto/oauth-secrets.js.map +1 -0
  9. package/dist/adapters/crypto/page-sessions.d.ts +15 -0
  10. package/dist/adapters/crypto/page-sessions.js +40 -0
  11. package/dist/adapters/crypto/page-sessions.js.map +1 -0
  12. package/dist/adapters/crypto/request-hasher.d.ts +3 -0
  13. package/dist/adapters/crypto/request-hasher.js +4 -0
  14. package/dist/adapters/crypto/request-hasher.js.map +1 -0
  15. package/dist/adapters/crypto/request-ids.d.ts +4 -0
  16. package/dist/adapters/crypto/request-ids.js +7 -0
  17. package/dist/adapters/crypto/request-ids.js.map +1 -0
  18. package/dist/adapters/crypto/sealer.d.ts +14 -0
  19. package/dist/adapters/crypto/sealer.js +41 -0
  20. package/dist/adapters/crypto/sealer.js.map +1 -0
  21. package/dist/adapters/crypto/ship-aliases.d.ts +7 -0
  22. package/dist/adapters/crypto/ship-aliases.js +19 -0
  23. package/dist/adapters/crypto/ship-aliases.js.map +1 -0
  24. package/dist/adapters/crypto/sign-in-seals.d.ts +7 -0
  25. package/dist/adapters/crypto/sign-in-seals.js +25 -0
  26. package/dist/adapters/crypto/sign-in-seals.js.map +1 -0
  27. package/dist/adapters/crypto/waiting-seals.d.ts +3 -0
  28. package/dist/adapters/crypto/waiting-seals.js +24 -0
  29. package/dist/adapters/crypto/waiting-seals.js.map +1 -0
  30. package/dist/adapters/fleet/actor-door.d.ts +20 -0
  31. package/dist/adapters/fleet/actor-door.js +75 -0
  32. package/dist/adapters/fleet/actor-door.js.map +1 -0
  33. package/dist/adapters/fleet/console-sessions.d.ts +2 -0
  34. package/dist/adapters/fleet/console-sessions.js +23 -0
  35. package/dist/adapters/fleet/console-sessions.js.map +1 -0
  36. package/dist/adapters/fleet/core-version.d.ts +11 -0
  37. package/dist/adapters/fleet/core-version.js +18 -0
  38. package/dist/adapters/fleet/core-version.js.map +1 -0
  39. package/dist/adapters/fleet/fleet-network.d.ts +2 -0
  40. package/dist/adapters/fleet/fleet-network.js +34 -0
  41. package/dist/adapters/fleet/fleet-network.js.map +1 -0
  42. package/dist/adapters/fleet/logged-verified-facts.d.ts +13 -0
  43. package/dist/adapters/fleet/logged-verified-facts.js +18 -0
  44. package/dist/adapters/fleet/logged-verified-facts.js.map +1 -0
  45. package/dist/adapters/fleet/proxy-ship-reads.d.ts +7 -0
  46. package/dist/adapters/fleet/proxy-ship-reads.js +24 -0
  47. package/dist/adapters/fleet/proxy-ship-reads.js.map +1 -0
  48. package/dist/adapters/fleet/proxy-ships-as-actor.d.ts +3 -0
  49. package/dist/adapters/fleet/proxy-ships-as-actor.js +25 -0
  50. package/dist/adapters/fleet/proxy-ships-as-actor.js.map +1 -0
  51. package/dist/adapters/fleet/rest-fleet-door.d.ts +14 -0
  52. package/dist/adapters/fleet/rest-fleet-door.js +205 -0
  53. package/dist/adapters/fleet/rest-fleet-door.js.map +1 -0
  54. package/dist/adapters/http/add-server-page.d.ts +7 -0
  55. package/dist/adapters/http/add-server-page.js +175 -0
  56. package/dist/adapters/http/add-server-page.js.map +1 -0
  57. package/dist/adapters/http/delivery-page.d.ts +24 -0
  58. package/dist/adapters/http/delivery-page.js +115 -0
  59. package/dist/adapters/http/delivery-page.js.map +1 -0
  60. package/dist/adapters/http/html.d.ts +15 -0
  61. package/dist/adapters/http/html.js +53 -0
  62. package/dist/adapters/http/html.js.map +1 -0
  63. package/dist/adapters/http/live.d.ts +29 -0
  64. package/dist/adapters/http/live.js +100 -0
  65. package/dist/adapters/http/live.js.map +1 -0
  66. package/dist/adapters/http/mcp-endpoint.d.ts +20 -0
  67. package/dist/adapters/http/mcp-endpoint.js +164 -0
  68. package/dist/adapters/http/mcp-endpoint.js.map +1 -0
  69. package/dist/adapters/http/mcp-task.d.ts +45 -0
  70. package/dist/adapters/http/mcp-task.js +35 -0
  71. package/dist/adapters/http/mcp-task.js.map +1 -0
  72. package/dist/adapters/http/oauth-routes.d.ts +47 -0
  73. package/dist/adapters/http/oauth-routes.js +337 -0
  74. package/dist/adapters/http/oauth-routes.js.map +1 -0
  75. package/dist/adapters/http/outside-parties-page.d.ts +33 -0
  76. package/dist/adapters/http/outside-parties-page.js +153 -0
  77. package/dist/adapters/http/outside-parties-page.js.map +1 -0
  78. package/dist/adapters/http/outside-party-page.d.ts +7 -0
  79. package/dist/adapters/http/outside-party-page.js +212 -0
  80. package/dist/adapters/http/outside-party-page.js.map +1 -0
  81. package/dist/adapters/http/overview-page.d.ts +17 -0
  82. package/dist/adapters/http/overview-page.js +298 -0
  83. package/dist/adapters/http/overview-page.js.map +1 -0
  84. package/dist/adapters/http/parties-page.d.ts +7 -0
  85. package/dist/adapters/http/parties-page.js +139 -0
  86. package/dist/adapters/http/parties-page.js.map +1 -0
  87. package/dist/adapters/http/person-tools.d.ts +22 -0
  88. package/dist/adapters/http/person-tools.js +98 -0
  89. package/dist/adapters/http/person-tools.js.map +1 -0
  90. package/dist/adapters/http/scope-rows.d.ts +10 -0
  91. package/dist/adapters/http/scope-rows.js +30 -0
  92. package/dist/adapters/http/scope-rows.js.map +1 -0
  93. package/dist/adapters/http/signal.d.ts +61 -0
  94. package/dist/adapters/http/signal.js +263 -0
  95. package/dist/adapters/http/signal.js.map +1 -0
  96. package/dist/adapters/http/version.d.ts +6 -0
  97. package/dist/adapters/http/version.js +12 -0
  98. package/dist/adapters/http/version.js.map +1 -0
  99. package/dist/adapters/mcp/mcp-servers.d.ts +2 -0
  100. package/dist/adapters/mcp/mcp-servers.js +154 -0
  101. package/dist/adapters/mcp/mcp-servers.js.map +1 -0
  102. package/dist/adapters/oauth/client-metadata-documents.d.ts +9 -0
  103. package/dist/adapters/oauth/client-metadata-documents.js +25 -0
  104. package/dist/adapters/oauth/client-metadata-documents.js.map +1 -0
  105. package/dist/adapters/pagasae/pagasae-client.d.ts +8 -0
  106. package/dist/adapters/pagasae/pagasae-client.js +88 -0
  107. package/dist/adapters/pagasae/pagasae-client.js.map +1 -0
  108. package/dist/adapters/prisma/account-grants.d.ts +4 -0
  109. package/dist/adapters/prisma/account-grants.js +27 -0
  110. package/dist/adapters/prisma/account-grants.js.map +1 -0
  111. package/dist/adapters/prisma/calls.d.ts +4 -0
  112. package/dist/adapters/prisma/calls.js +35 -0
  113. package/dist/adapters/prisma/calls.js.map +1 -0
  114. package/dist/adapters/prisma/changes.d.ts +21 -0
  115. package/dist/adapters/prisma/changes.js +86 -0
  116. package/dist/adapters/prisma/changes.js.map +1 -0
  117. package/dist/adapters/prisma/client-calls.d.ts +4 -0
  118. package/dist/adapters/prisma/client-calls.js +59 -0
  119. package/dist/adapters/prisma/client-calls.js.map +1 -0
  120. package/dist/adapters/prisma/client.d.ts +8 -0
  121. package/dist/adapters/prisma/client.js +11 -0
  122. package/dist/adapters/prisma/client.js.map +1 -0
  123. package/dist/adapters/prisma/connection-store.d.ts +4 -0
  124. package/dist/adapters/prisma/connection-store.js +28 -0
  125. package/dist/adapters/prisma/connection-store.js.map +1 -0
  126. package/dist/adapters/prisma/fleet-forgetter.d.ts +4 -0
  127. package/dist/adapters/prisma/fleet-forgetter.js +10 -0
  128. package/dist/adapters/prisma/fleet-forgetter.js.map +1 -0
  129. package/dist/adapters/prisma/fleet-switches.d.ts +4 -0
  130. package/dist/adapters/prisma/fleet-switches.js +10 -0
  131. package/dist/adapters/prisma/fleet-switches.js.map +1 -0
  132. package/dist/adapters/prisma/generated/browser.d.ts +108 -0
  133. package/dist/adapters/prisma/generated/browser.js +18 -0
  134. package/dist/adapters/prisma/generated/browser.js.map +1 -0
  135. package/dist/adapters/prisma/generated/client.d.ts +127 -0
  136. package/dist/adapters/prisma/generated/client.js +38 -0
  137. package/dist/adapters/prisma/generated/client.js.map +1 -0
  138. package/dist/adapters/prisma/generated/commonInputTypes.d.ts +490 -0
  139. package/dist/adapters/prisma/generated/commonInputTypes.js +11 -0
  140. package/dist/adapters/prisma/generated/commonInputTypes.js.map +1 -0
  141. package/dist/adapters/prisma/generated/enums.d.ts +1 -0
  142. package/dist/adapters/prisma/generated/enums.js +12 -0
  143. package/dist/adapters/prisma/generated/enums.js.map +1 -0
  144. package/dist/adapters/prisma/generated/internal/class.d.ts +319 -0
  145. package/dist/adapters/prisma/generated/internal/class.js +50 -0
  146. package/dist/adapters/prisma/generated/internal/class.js.map +1 -0
  147. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +2102 -0
  148. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +294 -0
  149. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -0
  150. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +273 -0
  151. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +264 -0
  152. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  153. package/dist/adapters/prisma/generated/models/AccountGrant.d.ts +1088 -0
  154. package/dist/adapters/prisma/generated/models/AccountGrant.js +2 -0
  155. package/dist/adapters/prisma/generated/models/AccountGrant.js.map +1 -0
  156. package/dist/adapters/prisma/generated/models/AuthorizationCode.d.ts +1171 -0
  157. package/dist/adapters/prisma/generated/models/AuthorizationCode.js +2 -0
  158. package/dist/adapters/prisma/generated/models/AuthorizationCode.js.map +1 -0
  159. package/dist/adapters/prisma/generated/models/Call.d.ts +994 -0
  160. package/dist/adapters/prisma/generated/models/Call.js +2 -0
  161. package/dist/adapters/prisma/generated/models/Call.js.map +1 -0
  162. package/dist/adapters/prisma/generated/models/ClientCall.d.ts +1119 -0
  163. package/dist/adapters/prisma/generated/models/ClientCall.js +2 -0
  164. package/dist/adapters/prisma/generated/models/ClientCall.js.map +1 -0
  165. package/dist/adapters/prisma/generated/models/ClientCallReply.d.ts +1129 -0
  166. package/dist/adapters/prisma/generated/models/ClientCallReply.js +2 -0
  167. package/dist/adapters/prisma/generated/models/ClientCallReply.js.map +1 -0
  168. package/dist/adapters/prisma/generated/models/Connection.d.ts +1011 -0
  169. package/dist/adapters/prisma/generated/models/Connection.js +2 -0
  170. package/dist/adapters/prisma/generated/models/Connection.js.map +1 -0
  171. package/dist/adapters/prisma/generated/models/FleetSwitch.d.ts +945 -0
  172. package/dist/adapters/prisma/generated/models/FleetSwitch.js +2 -0
  173. package/dist/adapters/prisma/generated/models/FleetSwitch.js.map +1 -0
  174. package/dist/adapters/prisma/generated/models/InstallationRequest.d.ts +1030 -0
  175. package/dist/adapters/prisma/generated/models/InstallationRequest.js +2 -0
  176. package/dist/adapters/prisma/generated/models/InstallationRequest.js.map +1 -0
  177. package/dist/adapters/prisma/generated/models/IssuedToken.d.ts +1224 -0
  178. package/dist/adapters/prisma/generated/models/IssuedToken.js +2 -0
  179. package/dist/adapters/prisma/generated/models/IssuedToken.js.map +1 -0
  180. package/dist/adapters/prisma/generated/models/OAuthClient.d.ts +1005 -0
  181. package/dist/adapters/prisma/generated/models/OAuthClient.js +2 -0
  182. package/dist/adapters/prisma/generated/models/OAuthClient.js.map +1 -0
  183. package/dist/adapters/prisma/generated/models/OpenedDelivery.d.ts +1087 -0
  184. package/dist/adapters/prisma/generated/models/OpenedDelivery.js +2 -0
  185. package/dist/adapters/prisma/generated/models/OpenedDelivery.js.map +1 -0
  186. package/dist/adapters/prisma/generated/models/OutsidePartySwitch.d.ts +942 -0
  187. package/dist/adapters/prisma/generated/models/OutsidePartySwitch.js +2 -0
  188. package/dist/adapters/prisma/generated/models/OutsidePartySwitch.js.map +1 -0
  189. package/dist/adapters/prisma/generated/models/OwnerQuestion.d.ts +1035 -0
  190. package/dist/adapters/prisma/generated/models/OwnerQuestion.js +2 -0
  191. package/dist/adapters/prisma/generated/models/OwnerQuestion.js.map +1 -0
  192. package/dist/adapters/prisma/generated/models/Party.d.ts +1310 -0
  193. package/dist/adapters/prisma/generated/models/Party.js +2 -0
  194. package/dist/adapters/prisma/generated/models/Party.js.map +1 -0
  195. package/dist/adapters/prisma/generated/models/PendingRequest.d.ts +1252 -0
  196. package/dist/adapters/prisma/generated/models/PendingRequest.js +2 -0
  197. package/dist/adapters/prisma/generated/models/PendingRequest.js.map +1 -0
  198. package/dist/adapters/prisma/generated/models/PersonCrew.d.ts +974 -0
  199. package/dist/adapters/prisma/generated/models/PersonCrew.js +2 -0
  200. package/dist/adapters/prisma/generated/models/PersonCrew.js.map +1 -0
  201. package/dist/adapters/prisma/generated/models/RequestOutcomeNotice.d.ts +1120 -0
  202. package/dist/adapters/prisma/generated/models/RequestOutcomeNotice.js +2 -0
  203. package/dist/adapters/prisma/generated/models/RequestOutcomeNotice.js.map +1 -0
  204. package/dist/adapters/prisma/generated/models/ToolMark.d.ts +947 -0
  205. package/dist/adapters/prisma/generated/models/ToolMark.js +2 -0
  206. package/dist/adapters/prisma/generated/models/ToolMark.js.map +1 -0
  207. package/dist/adapters/prisma/generated/models.d.ts +19 -0
  208. package/dist/adapters/prisma/generated/models.js +2 -0
  209. package/dist/adapters/prisma/generated/models.js.map +1 -0
  210. package/dist/adapters/prisma/installation-requests.d.ts +4 -0
  211. package/dist/adapters/prisma/installation-requests.js +25 -0
  212. package/dist/adapters/prisma/installation-requests.js.map +1 -0
  213. package/dist/adapters/prisma/migrate.d.ts +5 -0
  214. package/dist/adapters/prisma/migrate.js +53 -0
  215. package/dist/adapters/prisma/migrate.js.map +1 -0
  216. package/dist/adapters/prisma/oauth-stores.d.ts +5 -0
  217. package/dist/adapters/prisma/oauth-stores.js +85 -0
  218. package/dist/adapters/prisma/oauth-stores.js.map +1 -0
  219. package/dist/adapters/prisma/opened-deliveries.d.ts +4 -0
  220. package/dist/adapters/prisma/opened-deliveries.js +29 -0
  221. package/dist/adapters/prisma/opened-deliveries.js.map +1 -0
  222. package/dist/adapters/prisma/outcome-notices.d.ts +4 -0
  223. package/dist/adapters/prisma/outcome-notices.js +24 -0
  224. package/dist/adapters/prisma/outcome-notices.js.map +1 -0
  225. package/dist/adapters/prisma/outside-party-switches.d.ts +4 -0
  226. package/dist/adapters/prisma/outside-party-switches.js +10 -0
  227. package/dist/adapters/prisma/outside-party-switches.js.map +1 -0
  228. package/dist/adapters/prisma/owner-questions.d.ts +8 -0
  229. package/dist/adapters/prisma/owner-questions.js +54 -0
  230. package/dist/adapters/prisma/owner-questions.js.map +1 -0
  231. package/dist/adapters/prisma/party-store.d.ts +7 -0
  232. package/dist/adapters/prisma/party-store.js +71 -0
  233. package/dist/adapters/prisma/party-store.js.map +1 -0
  234. package/dist/adapters/prisma/pending-requests.d.ts +11 -0
  235. package/dist/adapters/prisma/pending-requests.js +128 -0
  236. package/dist/adapters/prisma/pending-requests.js.map +1 -0
  237. package/dist/adapters/prisma/person-crews.d.ts +4 -0
  238. package/dist/adapters/prisma/person-crews.js +18 -0
  239. package/dist/adapters/prisma/person-crews.js.map +1 -0
  240. package/dist/adapters/prisma/tool-marks.d.ts +4 -0
  241. package/dist/adapters/prisma/tool-marks.js +15 -0
  242. package/dist/adapters/prisma/tool-marks.js.map +1 -0
  243. package/dist/adapters/timers/sleep.d.ts +3 -0
  244. package/dist/adapters/timers/sleep.js +11 -0
  245. package/dist/adapters/timers/sleep.js.map +1 -0
  246. package/dist/adapters/trpc/router.d.ts +606 -0
  247. package/dist/adapters/trpc/router.js +519 -0
  248. package/dist/adapters/trpc/router.js.map +1 -0
  249. package/dist/app.d.ts +43 -0
  250. package/dist/app.js +446 -0
  251. package/dist/app.js.map +1 -0
  252. package/dist/bin/aeolus-gateway.d.ts +2 -0
  253. package/dist/bin/aeolus-gateway.js +65 -0
  254. package/dist/bin/aeolus-gateway.js.map +1 -0
  255. package/dist/config.d.ts +41 -0
  256. package/dist/config.js +65 -0
  257. package/dist/config.js.map +1 -0
  258. package/dist/core/actors/authenticate-actor.d.ts +54 -0
  259. package/dist/core/actors/authenticate-actor.js +42 -0
  260. package/dist/core/actors/authenticate-actor.js.map +1 -0
  261. package/dist/core/actors/credential-of.d.ts +27 -0
  262. package/dist/core/actors/credential-of.js +25 -0
  263. package/dist/core/actors/credential-of.js.map +1 -0
  264. package/dist/core/connection/connect.d.ts +26 -0
  265. package/dist/core/connection/connect.js +58 -0
  266. package/dist/core/connection/connect.js.map +1 -0
  267. package/dist/core/connection/ports.d.ts +92 -0
  268. package/dist/core/connection/ports.js +2 -0
  269. package/dist/core/connection/ports.js.map +1 -0
  270. package/dist/core/connection/read-connection.d.ts +14 -0
  271. package/dist/core/connection/read-connection.js +24 -0
  272. package/dist/core/connection/read-connection.js.map +1 -0
  273. package/dist/core/installation/delete-fleet.d.ts +21 -0
  274. package/dist/core/installation/delete-fleet.js +21 -0
  275. package/dist/core/installation/delete-fleet.js.map +1 -0
  276. package/dist/core/installation/ports.d.ts +43 -0
  277. package/dist/core/installation/ports.js +2 -0
  278. package/dist/core/installation/ports.js.map +1 -0
  279. package/dist/core/installation/read-fleet.d.ts +18 -0
  280. package/dist/core/installation/read-fleet.js +9 -0
  281. package/dist/core/installation/read-fleet.js.map +1 -0
  282. package/dist/core/installation/request-id.d.ts +8 -0
  283. package/dist/core/installation/request-id.js +10 -0
  284. package/dist/core/installation/request-id.js.map +1 -0
  285. package/dist/core/installation/served.d.ts +12 -0
  286. package/dist/core/installation/served.js +8 -0
  287. package/dist/core/installation/served.js.map +1 -0
  288. package/dist/core/installation/set-fleet-enabled.d.ts +25 -0
  289. package/dist/core/installation/set-fleet-enabled.js +22 -0
  290. package/dist/core/installation/set-fleet-enabled.js.map +1 -0
  291. package/dist/core/mcp-in/call-tool.d.ts +42 -0
  292. package/dist/core/mcp-in/call-tool.js +82 -0
  293. package/dist/core/mcp-in/call-tool.js.map +1 -0
  294. package/dist/core/mcp-in/client-call.d.ts +51 -0
  295. package/dist/core/mcp-in/client-call.js +39 -0
  296. package/dist/core/mcp-in/client-call.js.map +1 -0
  297. package/dist/core/mcp-in/collect-replies.d.ts +22 -0
  298. package/dist/core/mcp-in/collect-replies.js +66 -0
  299. package/dist/core/mcp-in/collect-replies.js.map +1 -0
  300. package/dist/core/mcp-in/list-tools.d.ts +48 -0
  301. package/dist/core/mcp-in/list-tools.js +70 -0
  302. package/dist/core/mcp-in/list-tools.js.map +1 -0
  303. package/dist/core/mcp-in/ports.d.ts +108 -0
  304. package/dist/core/mcp-in/ports.js +2 -0
  305. package/dist/core/mcp-in/ports.js.map +1 -0
  306. package/dist/core/mcp-in/read-client-call.d.ts +23 -0
  307. package/dist/core/mcp-in/read-client-call.js +15 -0
  308. package/dist/core/mcp-in/read-client-call.js.map +1 -0
  309. package/dist/core/mcp-out/content-types.d.ts +12 -0
  310. package/dist/core/mcp-out/content-types.js +28 -0
  311. package/dist/core/mcp-out/content-types.js.map +1 -0
  312. package/dist/core/mcp-out/hand-call.d.ts +105 -0
  313. package/dist/core/mcp-out/hand-call.js +118 -0
  314. package/dist/core/mcp-out/hand-call.js.map +1 -0
  315. package/dist/core/mcp-out/mark-tool.d.ts +20 -0
  316. package/dist/core/mcp-out/mark-tool.js +17 -0
  317. package/dist/core/mcp-out/mark-tool.js.map +1 -0
  318. package/dist/core/mcp-out/ports.d.ts +66 -0
  319. package/dist/core/mcp-out/ports.js +2 -0
  320. package/dist/core/mcp-out/ports.js.map +1 -0
  321. package/dist/core/mcp-out/run-party.d.ts +26 -0
  322. package/dist/core/mcp-out/run-party.js +62 -0
  323. package/dist/core/mcp-out/run-party.js.map +1 -0
  324. package/dist/core/mcp-out/state-party.d.ts +39 -0
  325. package/dist/core/mcp-out/state-party.js +30 -0
  326. package/dist/core/mcp-out/state-party.js.map +1 -0
  327. package/dist/core/mcp-out/statement.d.ts +36 -0
  328. package/dist/core/mcp-out/statement.js +34 -0
  329. package/dist/core/mcp-out/statement.js.map +1 -0
  330. package/dist/core/oauth/authenticate-access-token.d.ts +25 -0
  331. package/dist/core/oauth/authenticate-access-token.js +19 -0
  332. package/dist/core/oauth/authenticate-access-token.js.map +1 -0
  333. package/dist/core/oauth/exchange-token.d.ts +32 -0
  334. package/dist/core/oauth/exchange-token.js +98 -0
  335. package/dist/core/oauth/exchange-token.js.map +1 -0
  336. package/dist/core/oauth/issue-code.d.ts +23 -0
  337. package/dist/core/oauth/issue-code.js +34 -0
  338. package/dist/core/oauth/issue-code.js.map +1 -0
  339. package/dist/core/oauth/ports.d.ts +105 -0
  340. package/dist/core/oauth/ports.js +2 -0
  341. package/dist/core/oauth/ports.js.map +1 -0
  342. package/dist/core/oauth/read-authorization.d.ts +43 -0
  343. package/dist/core/oauth/read-authorization.js +74 -0
  344. package/dist/core/oauth/read-authorization.js.map +1 -0
  345. package/dist/core/oauth/redirect-uri.d.ts +6 -0
  346. package/dist/core/oauth/redirect-uri.js +20 -0
  347. package/dist/core/oauth/redirect-uri.js.map +1 -0
  348. package/dist/core/oauth/register-client.d.ts +22 -0
  349. package/dist/core/oauth/register-client.js +20 -0
  350. package/dist/core/oauth/register-client.js.map +1 -0
  351. package/dist/core/operator/authenticate-operator.d.ts +22 -0
  352. package/dist/core/operator/authenticate-operator.js +26 -0
  353. package/dist/core/operator/authenticate-operator.js.map +1 -0
  354. package/dist/core/operator/ports.d.ts +15 -0
  355. package/dist/core/operator/ports.js +2 -0
  356. package/dist/core/operator/ports.js.map +1 -0
  357. package/dist/core/outside-parties/ports.d.ts +17 -0
  358. package/dist/core/outside-parties/ports.js +2 -0
  359. package/dist/core/outside-parties/ports.js.map +1 -0
  360. package/dist/core/outside-parties/set-outside-parties.d.ts +36 -0
  361. package/dist/core/outside-parties/set-outside-parties.js +38 -0
  362. package/dist/core/outside-parties/set-outside-parties.js.map +1 -0
  363. package/dist/core/parties/approve-party.d.ts +55 -0
  364. package/dist/core/parties/approve-party.js +127 -0
  365. package/dist/core/parties/approve-party.js.map +1 -0
  366. package/dist/core/parties/change-party.d.ts +42 -0
  367. package/dist/core/parties/change-party.js +49 -0
  368. package/dist/core/parties/change-party.js.map +1 -0
  369. package/dist/core/parties/check-server.d.ts +24 -0
  370. package/dist/core/parties/check-server.js +21 -0
  371. package/dist/core/parties/check-server.js.map +1 -0
  372. package/dist/core/parties/crew-party.d.ts +21 -0
  373. package/dist/core/parties/crew-party.js +29 -0
  374. package/dist/core/parties/crew-party.js.map +1 -0
  375. package/dist/core/parties/list-parties.d.ts +29 -0
  376. package/dist/core/parties/list-parties.js +39 -0
  377. package/dist/core/parties/list-parties.js.map +1 -0
  378. package/dist/core/parties/party.d.ts +52 -0
  379. package/dist/core/parties/party.js +24 -0
  380. package/dist/core/parties/party.js.map +1 -0
  381. package/dist/core/parties/ports.d.ts +74 -0
  382. package/dist/core/parties/ports.js +2 -0
  383. package/dist/core/parties/ports.js.map +1 -0
  384. package/dist/core/parties/read-party-tools.d.ts +22 -0
  385. package/dist/core/parties/read-party-tools.js +22 -0
  386. package/dist/core/parties/read-party-tools.js.map +1 -0
  387. package/dist/core/parties/retire-party.d.ts +29 -0
  388. package/dist/core/parties/retire-party.js +43 -0
  389. package/dist/core/parties/retire-party.js.map +1 -0
  390. package/dist/core/parties/shown-party.d.ts +27 -0
  391. package/dist/core/parties/shown-party.js +10 -0
  392. package/dist/core/parties/shown-party.js.map +1 -0
  393. package/dist/core/people/answer-delivery.d.ts +24 -0
  394. package/dist/core/people/answer-delivery.js +28 -0
  395. package/dist/core/people/answer-delivery.js.map +1 -0
  396. package/dist/core/people/crew-person-ship.d.ts +42 -0
  397. package/dist/core/people/crew-person-ship.js +59 -0
  398. package/dist/core/people/crew-person-ship.js.map +1 -0
  399. package/dist/core/people/done-delivery.d.ts +16 -0
  400. package/dist/core/people/done-delivery.js +9 -0
  401. package/dist/core/people/done-delivery.js.map +1 -0
  402. package/dist/core/people/inbox-entry.d.ts +14 -0
  403. package/dist/core/people/inbox-entry.js +11 -0
  404. package/dist/core/people/inbox-entry.js.map +1 -0
  405. package/dist/core/people/open-delivery.d.ts +30 -0
  406. package/dist/core/people/open-delivery.js +40 -0
  407. package/dist/core/people/open-delivery.js.map +1 -0
  408. package/dist/core/people/opened-of.d.ts +29 -0
  409. package/dist/core/people/opened-of.js +30 -0
  410. package/dist/core/people/opened-of.js.map +1 -0
  411. package/dist/core/people/person-crew.d.ts +39 -0
  412. package/dist/core/people/person-crew.js +61 -0
  413. package/dist/core/people/person-crew.js.map +1 -0
  414. package/dist/core/people/ports.d.ts +102 -0
  415. package/dist/core/people/ports.js +2 -0
  416. package/dist/core/people/ports.js.map +1 -0
  417. package/dist/core/people/read-inbox.d.ts +37 -0
  418. package/dist/core/people/read-inbox.js +36 -0
  419. package/dist/core/people/read-inbox.js.map +1 -0
  420. package/dist/core/requests/ask-for-client.d.ts +45 -0
  421. package/dist/core/requests/ask-for-client.js +33 -0
  422. package/dist/core/requests/ask-for-client.js.map +1 -0
  423. package/dist/core/requests/ask-for-server.d.ts +32 -0
  424. package/dist/core/requests/ask-for-server.js +42 -0
  425. package/dist/core/requests/ask-for-server.js.map +1 -0
  426. package/dist/core/requests/ask-owners.d.ts +28 -0
  427. package/dist/core/requests/ask-owners.js +85 -0
  428. package/dist/core/requests/ask-owners.js.map +1 -0
  429. package/dist/core/requests/decide-request.d.ts +53 -0
  430. package/dist/core/requests/decide-request.js +83 -0
  431. package/dist/core/requests/decide-request.js.map +1 -0
  432. package/dist/core/requests/expire-requests.d.ts +14 -0
  433. package/dist/core/requests/expire-requests.js +21 -0
  434. package/dist/core/requests/expire-requests.js.map +1 -0
  435. package/dist/core/requests/list-mine.d.ts +16 -0
  436. package/dist/core/requests/list-mine.js +20 -0
  437. package/dist/core/requests/list-mine.js.map +1 -0
  438. package/dist/core/requests/list-to-decide.d.ts +11 -0
  439. package/dist/core/requests/list-to-decide.js +13 -0
  440. package/dist/core/requests/list-to-decide.js.map +1 -0
  441. package/dist/core/requests/open-request.d.ts +21 -0
  442. package/dist/core/requests/open-request.js +26 -0
  443. package/dist/core/requests/open-request.js.map +1 -0
  444. package/dist/core/requests/outcome-notice.d.ts +13 -0
  445. package/dist/core/requests/outcome-notice.js +26 -0
  446. package/dist/core/requests/outcome-notice.js.map +1 -0
  447. package/dist/core/requests/ports.d.ts +191 -0
  448. package/dist/core/requests/ports.js +2 -0
  449. package/dist/core/requests/ports.js.map +1 -0
  450. package/dist/core/requests/read-waiting.d.ts +46 -0
  451. package/dist/core/requests/read-waiting.js +41 -0
  452. package/dist/core/requests/read-waiting.js.map +1 -0
  453. package/dist/core/requests/request-state.d.ts +5 -0
  454. package/dist/core/requests/request-state.js +10 -0
  455. package/dist/core/requests/request-state.js.map +1 -0
  456. package/dist/core/requests/tell-outcomes.d.ts +24 -0
  457. package/dist/core/requests/tell-outcomes.js +39 -0
  458. package/dist/core/requests/tell-outcomes.js.map +1 -0
  459. package/dist/core/requests/watch-waiting.d.ts +32 -0
  460. package/dist/core/requests/watch-waiting.js +31 -0
  461. package/dist/core/requests/watch-waiting.js.map +1 -0
  462. package/dist/core/shared/clock.d.ts +4 -0
  463. package/dist/core/shared/clock.js +2 -0
  464. package/dist/core/shared/clock.js.map +1 -0
  465. package/dist/core/shared/errors.d.ts +10 -0
  466. package/dist/core/shared/errors.js +6 -0
  467. package/dist/core/shared/errors.js.map +1 -0
  468. package/dist/core/shared/result.d.ts +16 -0
  469. package/dist/core/shared/result.js +7 -0
  470. package/dist/core/shared/result.js.map +1 -0
  471. package/dist/core/sign-in/account-token.d.ts +42 -0
  472. package/dist/core/sign-in/account-token.js +46 -0
  473. package/dist/core/sign-in/account-token.js.map +1 -0
  474. package/dist/core/sign-in/complete-sign-in.d.ts +66 -0
  475. package/dist/core/sign-in/complete-sign-in.js +73 -0
  476. package/dist/core/sign-in/complete-sign-in.js.map +1 -0
  477. package/dist/core/sign-in/end-sign-ins.d.ts +19 -0
  478. package/dist/core/sign-in/end-sign-ins.js +17 -0
  479. package/dist/core/sign-in/end-sign-ins.js.map +1 -0
  480. package/dist/core/sign-in/ports.d.ts +115 -0
  481. package/dist/core/sign-in/ports.js +2 -0
  482. package/dist/core/sign-in/ports.js.map +1 -0
  483. package/dist/core/sign-in/sign-out.d.ts +10 -0
  484. package/dist/core/sign-in/sign-out.js +9 -0
  485. package/dist/core/sign-in/sign-out.js.map +1 -0
  486. package/dist/core/sign-in/start-page-sign-in.d.ts +25 -0
  487. package/dist/core/sign-in/start-page-sign-in.js +30 -0
  488. package/dist/core/sign-in/start-page-sign-in.js.map +1 -0
  489. package/dist/core/sign-in/start-sign-in.d.ts +30 -0
  490. package/dist/core/sign-in/start-sign-in.js +25 -0
  491. package/dist/core/sign-in/start-sign-in.js.map +1 -0
  492. package/dist/core/vault/credential.d.ts +18 -0
  493. package/dist/core/vault/credential.js +2 -0
  494. package/dist/core/vault/credential.js.map +1 -0
  495. package/dist/outcome-worker.d.ts +29 -0
  496. package/dist/outcome-worker.js +60 -0
  497. package/dist/outcome-worker.js.map +1 -0
  498. package/dist/party-workers.d.ts +32 -0
  499. package/dist/party-workers.js +57 -0
  500. package/dist/party-workers.js.map +1 -0
  501. package/package.json +70 -4
  502. package/prisma.config.ts +18 -0
  503. package/src/adapters/prisma/migrations/20261018200000_init/migration.sql +35 -0
  504. package/src/adapters/prisma/migrations/20261018210000_parties/migration.sql +19 -0
  505. package/src/adapters/prisma/migrations/20261018220000_tool_marks/migration.sql +8 -0
  506. package/src/adapters/prisma/migrations/20261018230000_calls/migration.sql +13 -0
  507. package/src/adapters/prisma/migrations/20261019090000_oauth/migration.sql +60 -0
  508. package/src/adapters/prisma/migrations/20261019100000_client_parties/migration.sql +8 -0
  509. package/src/adapters/prisma/migrations/20261019110000_oauth_parties/migration.sql +5 -0
  510. package/src/adapters/prisma/migrations/20261019120000_client_calls/migration.sql +15 -0
  511. package/src/adapters/prisma/migrations/20261019130000_client_call_replies/migration.sql +20 -0
  512. package/src/adapters/prisma/migrations/20261019140000_identity_providers/migration.sql +10 -0
  513. package/src/adapters/prisma/migrations/20261020090000_no_identity_providers/migration.sql +2 -0
  514. package/src/adapters/prisma/migrations/20261020100000_account_grants_in_tokens/migration.sql +5 -0
  515. package/src/adapters/prisma/migrations/20261020110000_account_grants/migration.sql +15 -0
  516. package/src/adapters/prisma/migrations/20261020120000_person_crews/migration.sql +9 -0
  517. package/src/adapters/prisma/migrations/20261020130000_opened_deliveries/migration.sql +13 -0
  518. package/src/adapters/prisma/migrations/20261020140000_pending_requests/migration.sql +26 -0
  519. package/src/adapters/prisma/migrations/20261020150000_outside_party_switches/migration.sql +8 -0
  520. package/src/adapters/prisma/migrations/20261020160000_pending_requests_told/migration.sql +2 -0
  521. package/src/adapters/prisma/migrations/20261020170000_request_outcome_notices/migration.sql +17 -0
  522. package/src/adapters/prisma/migrations/20261020180000_owner_questions/migration.sql +11 -0
  523. package/src/adapters/prisma/migrations/20261020190000_request_changes/migration.sql +12 -0
  524. package/src/adapters/prisma/migrations/20261020200000_account_grant_scopes/migration.sql +2 -0
  525. package/src/adapters/prisma/migrations/20261020210000_party_owner_from_fleet/migration.sql +2 -0
  526. package/src/adapters/prisma/migrations/20261020220000_client_call_deadline_optional/migration.sql +2 -0
  527. package/src/adapters/prisma/migrations/migration_lock.toml +3 -0
  528. package/src/adapters/prisma/schema.prisma +312 -0
@@ -0,0 +1,1035 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model OwnerQuestion
5
+ * The gateway's question to its owner about one request (decision 0056):
6
+ * kept with its uuid before it is first sent, so a question sent again is the
7
+ * same question; withdrawn once the request ended.
8
+ */
9
+ export type OwnerQuestionModel = runtime.Types.Result.DefaultSelection<Prisma.$OwnerQuestionPayload>;
10
+ export type AggregateOwnerQuestion = {
11
+ _count: OwnerQuestionCountAggregateOutputType | null;
12
+ _min: OwnerQuestionMinAggregateOutputType | null;
13
+ _max: OwnerQuestionMaxAggregateOutputType | null;
14
+ };
15
+ export type OwnerQuestionMinAggregateOutputType = {
16
+ fleetId: string | null;
17
+ requestId: string | null;
18
+ questionId: string | null;
19
+ askedShipId: string | null;
20
+ askedAt: Date | null;
21
+ withdrawnAt: Date | null;
22
+ };
23
+ export type OwnerQuestionMaxAggregateOutputType = {
24
+ fleetId: string | null;
25
+ requestId: string | null;
26
+ questionId: string | null;
27
+ askedShipId: string | null;
28
+ askedAt: Date | null;
29
+ withdrawnAt: Date | null;
30
+ };
31
+ export type OwnerQuestionCountAggregateOutputType = {
32
+ fleetId: number;
33
+ requestId: number;
34
+ questionId: number;
35
+ askedShipId: number;
36
+ askedAt: number;
37
+ withdrawnAt: number;
38
+ _all: number;
39
+ };
40
+ export type OwnerQuestionMinAggregateInputType = {
41
+ fleetId?: true;
42
+ requestId?: true;
43
+ questionId?: true;
44
+ askedShipId?: true;
45
+ askedAt?: true;
46
+ withdrawnAt?: true;
47
+ };
48
+ export type OwnerQuestionMaxAggregateInputType = {
49
+ fleetId?: true;
50
+ requestId?: true;
51
+ questionId?: true;
52
+ askedShipId?: true;
53
+ askedAt?: true;
54
+ withdrawnAt?: true;
55
+ };
56
+ export type OwnerQuestionCountAggregateInputType = {
57
+ fleetId?: true;
58
+ requestId?: true;
59
+ questionId?: true;
60
+ askedShipId?: true;
61
+ askedAt?: true;
62
+ withdrawnAt?: true;
63
+ _all?: true;
64
+ };
65
+ export type OwnerQuestionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
66
+ /**
67
+ * Filter which OwnerQuestion to aggregate.
68
+ */
69
+ where?: Prisma.OwnerQuestionWhereInput;
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
72
+ *
73
+ * Determine the order of OwnerQuestions to fetch.
74
+ */
75
+ orderBy?: Prisma.OwnerQuestionOrderByWithRelationInput | Prisma.OwnerQuestionOrderByWithRelationInput[];
76
+ /**
77
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
78
+ *
79
+ * Sets the start position
80
+ */
81
+ cursor?: Prisma.OwnerQuestionWhereUniqueInput;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
+ *
85
+ * Take `±n` OwnerQuestions from the position of the cursor.
86
+ */
87
+ take?: number;
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
90
+ *
91
+ * Skip the first `n` OwnerQuestions.
92
+ */
93
+ skip?: number;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
+ *
97
+ * Count returned OwnerQuestions
98
+ **/
99
+ _count?: true | OwnerQuestionCountAggregateInputType;
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
+ *
103
+ * Select which fields to find the minimum value
104
+ **/
105
+ _min?: OwnerQuestionMinAggregateInputType;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
108
+ *
109
+ * Select which fields to find the maximum value
110
+ **/
111
+ _max?: OwnerQuestionMaxAggregateInputType;
112
+ };
113
+ export type GetOwnerQuestionAggregateType<T extends OwnerQuestionAggregateArgs> = {
114
+ [P in keyof T & keyof AggregateOwnerQuestion]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOwnerQuestion[P]> : Prisma.GetScalarType<T[P], AggregateOwnerQuestion[P]>;
115
+ };
116
+ export type OwnerQuestionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
+ where?: Prisma.OwnerQuestionWhereInput;
118
+ orderBy?: Prisma.OwnerQuestionOrderByWithAggregationInput | Prisma.OwnerQuestionOrderByWithAggregationInput[];
119
+ by: Prisma.OwnerQuestionScalarFieldEnum[] | Prisma.OwnerQuestionScalarFieldEnum;
120
+ having?: Prisma.OwnerQuestionScalarWhereWithAggregatesInput;
121
+ take?: number;
122
+ skip?: number;
123
+ _count?: OwnerQuestionCountAggregateInputType | true;
124
+ _min?: OwnerQuestionMinAggregateInputType;
125
+ _max?: OwnerQuestionMaxAggregateInputType;
126
+ };
127
+ export type OwnerQuestionGroupByOutputType = {
128
+ fleetId: string;
129
+ requestId: string;
130
+ questionId: string;
131
+ askedShipId: string | null;
132
+ askedAt: Date | null;
133
+ withdrawnAt: Date | null;
134
+ _count: OwnerQuestionCountAggregateOutputType | null;
135
+ _min: OwnerQuestionMinAggregateOutputType | null;
136
+ _max: OwnerQuestionMaxAggregateOutputType | null;
137
+ };
138
+ export type GetOwnerQuestionGroupByPayload<T extends OwnerQuestionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OwnerQuestionGroupByOutputType, T['by']> & {
139
+ [P in ((keyof T) & (keyof OwnerQuestionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OwnerQuestionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OwnerQuestionGroupByOutputType[P]>;
140
+ }>>;
141
+ export type OwnerQuestionWhereInput = {
142
+ AND?: Prisma.OwnerQuestionWhereInput | Prisma.OwnerQuestionWhereInput[];
143
+ OR?: Prisma.OwnerQuestionWhereInput[];
144
+ NOT?: Prisma.OwnerQuestionWhereInput | Prisma.OwnerQuestionWhereInput[];
145
+ fleetId?: Prisma.StringFilter<"OwnerQuestion"> | string;
146
+ requestId?: Prisma.StringFilter<"OwnerQuestion"> | string;
147
+ questionId?: Prisma.StringFilter<"OwnerQuestion"> | string;
148
+ askedShipId?: Prisma.StringNullableFilter<"OwnerQuestion"> | string | null;
149
+ askedAt?: Prisma.DateTimeNullableFilter<"OwnerQuestion"> | Date | string | null;
150
+ withdrawnAt?: Prisma.DateTimeNullableFilter<"OwnerQuestion"> | Date | string | null;
151
+ };
152
+ export type OwnerQuestionOrderByWithRelationInput = {
153
+ fleetId?: Prisma.SortOrder;
154
+ requestId?: Prisma.SortOrder;
155
+ questionId?: Prisma.SortOrder;
156
+ askedShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
157
+ askedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
158
+ withdrawnAt?: Prisma.SortOrderInput | Prisma.SortOrder;
159
+ };
160
+ export type OwnerQuestionWhereUniqueInput = Prisma.AtLeast<{
161
+ fleetId_requestId?: Prisma.OwnerQuestionFleetIdRequestIdCompoundUniqueInput;
162
+ AND?: Prisma.OwnerQuestionWhereInput | Prisma.OwnerQuestionWhereInput[];
163
+ OR?: Prisma.OwnerQuestionWhereInput[];
164
+ NOT?: Prisma.OwnerQuestionWhereInput | Prisma.OwnerQuestionWhereInput[];
165
+ fleetId?: Prisma.StringFilter<"OwnerQuestion"> | string;
166
+ requestId?: Prisma.StringFilter<"OwnerQuestion"> | string;
167
+ questionId?: Prisma.StringFilter<"OwnerQuestion"> | string;
168
+ askedShipId?: Prisma.StringNullableFilter<"OwnerQuestion"> | string | null;
169
+ askedAt?: Prisma.DateTimeNullableFilter<"OwnerQuestion"> | Date | string | null;
170
+ withdrawnAt?: Prisma.DateTimeNullableFilter<"OwnerQuestion"> | Date | string | null;
171
+ }, "fleetId_requestId">;
172
+ export type OwnerQuestionOrderByWithAggregationInput = {
173
+ fleetId?: Prisma.SortOrder;
174
+ requestId?: Prisma.SortOrder;
175
+ questionId?: Prisma.SortOrder;
176
+ askedShipId?: Prisma.SortOrderInput | Prisma.SortOrder;
177
+ askedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
178
+ withdrawnAt?: Prisma.SortOrderInput | Prisma.SortOrder;
179
+ _count?: Prisma.OwnerQuestionCountOrderByAggregateInput;
180
+ _max?: Prisma.OwnerQuestionMaxOrderByAggregateInput;
181
+ _min?: Prisma.OwnerQuestionMinOrderByAggregateInput;
182
+ };
183
+ export type OwnerQuestionScalarWhereWithAggregatesInput = {
184
+ AND?: Prisma.OwnerQuestionScalarWhereWithAggregatesInput | Prisma.OwnerQuestionScalarWhereWithAggregatesInput[];
185
+ OR?: Prisma.OwnerQuestionScalarWhereWithAggregatesInput[];
186
+ NOT?: Prisma.OwnerQuestionScalarWhereWithAggregatesInput | Prisma.OwnerQuestionScalarWhereWithAggregatesInput[];
187
+ fleetId?: Prisma.StringWithAggregatesFilter<"OwnerQuestion"> | string;
188
+ requestId?: Prisma.StringWithAggregatesFilter<"OwnerQuestion"> | string;
189
+ questionId?: Prisma.StringWithAggregatesFilter<"OwnerQuestion"> | string;
190
+ askedShipId?: Prisma.StringNullableWithAggregatesFilter<"OwnerQuestion"> | string | null;
191
+ askedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OwnerQuestion"> | Date | string | null;
192
+ withdrawnAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OwnerQuestion"> | Date | string | null;
193
+ };
194
+ export type OwnerQuestionCreateInput = {
195
+ fleetId: string;
196
+ requestId: string;
197
+ questionId: string;
198
+ askedShipId?: string | null;
199
+ askedAt?: Date | string | null;
200
+ withdrawnAt?: Date | string | null;
201
+ };
202
+ export type OwnerQuestionUncheckedCreateInput = {
203
+ fleetId: string;
204
+ requestId: string;
205
+ questionId: string;
206
+ askedShipId?: string | null;
207
+ askedAt?: Date | string | null;
208
+ withdrawnAt?: Date | string | null;
209
+ };
210
+ export type OwnerQuestionUpdateInput = {
211
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
212
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
213
+ questionId?: Prisma.StringFieldUpdateOperationsInput | string;
214
+ askedShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
215
+ askedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
216
+ withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
217
+ };
218
+ export type OwnerQuestionUncheckedUpdateInput = {
219
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
221
+ questionId?: Prisma.StringFieldUpdateOperationsInput | string;
222
+ askedShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
223
+ askedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
224
+ withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
225
+ };
226
+ export type OwnerQuestionCreateManyInput = {
227
+ fleetId: string;
228
+ requestId: string;
229
+ questionId: string;
230
+ askedShipId?: string | null;
231
+ askedAt?: Date | string | null;
232
+ withdrawnAt?: Date | string | null;
233
+ };
234
+ export type OwnerQuestionUpdateManyMutationInput = {
235
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
236
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
237
+ questionId?: Prisma.StringFieldUpdateOperationsInput | string;
238
+ askedShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
239
+ askedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
240
+ withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
241
+ };
242
+ export type OwnerQuestionUncheckedUpdateManyInput = {
243
+ fleetId?: Prisma.StringFieldUpdateOperationsInput | string;
244
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
245
+ questionId?: Prisma.StringFieldUpdateOperationsInput | string;
246
+ askedShipId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
247
+ askedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
248
+ withdrawnAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
249
+ };
250
+ export type OwnerQuestionFleetIdRequestIdCompoundUniqueInput = {
251
+ fleetId: string;
252
+ requestId: string;
253
+ };
254
+ export type OwnerQuestionCountOrderByAggregateInput = {
255
+ fleetId?: Prisma.SortOrder;
256
+ requestId?: Prisma.SortOrder;
257
+ questionId?: Prisma.SortOrder;
258
+ askedShipId?: Prisma.SortOrder;
259
+ askedAt?: Prisma.SortOrder;
260
+ withdrawnAt?: Prisma.SortOrder;
261
+ };
262
+ export type OwnerQuestionMaxOrderByAggregateInput = {
263
+ fleetId?: Prisma.SortOrder;
264
+ requestId?: Prisma.SortOrder;
265
+ questionId?: Prisma.SortOrder;
266
+ askedShipId?: Prisma.SortOrder;
267
+ askedAt?: Prisma.SortOrder;
268
+ withdrawnAt?: Prisma.SortOrder;
269
+ };
270
+ export type OwnerQuestionMinOrderByAggregateInput = {
271
+ fleetId?: Prisma.SortOrder;
272
+ requestId?: Prisma.SortOrder;
273
+ questionId?: Prisma.SortOrder;
274
+ askedShipId?: Prisma.SortOrder;
275
+ askedAt?: Prisma.SortOrder;
276
+ withdrawnAt?: Prisma.SortOrder;
277
+ };
278
+ export type OwnerQuestionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
279
+ fleetId?: boolean;
280
+ requestId?: boolean;
281
+ questionId?: boolean;
282
+ askedShipId?: boolean;
283
+ askedAt?: boolean;
284
+ withdrawnAt?: boolean;
285
+ }, ExtArgs["result"]["ownerQuestion"]>;
286
+ export type OwnerQuestionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
287
+ fleetId?: boolean;
288
+ requestId?: boolean;
289
+ questionId?: boolean;
290
+ askedShipId?: boolean;
291
+ askedAt?: boolean;
292
+ withdrawnAt?: boolean;
293
+ }, ExtArgs["result"]["ownerQuestion"]>;
294
+ export type OwnerQuestionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
295
+ fleetId?: boolean;
296
+ requestId?: boolean;
297
+ questionId?: boolean;
298
+ askedShipId?: boolean;
299
+ askedAt?: boolean;
300
+ withdrawnAt?: boolean;
301
+ }, ExtArgs["result"]["ownerQuestion"]>;
302
+ export type OwnerQuestionSelectScalar = {
303
+ fleetId?: boolean;
304
+ requestId?: boolean;
305
+ questionId?: boolean;
306
+ askedShipId?: boolean;
307
+ askedAt?: boolean;
308
+ withdrawnAt?: boolean;
309
+ };
310
+ export type OwnerQuestionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"fleetId" | "requestId" | "questionId" | "askedShipId" | "askedAt" | "withdrawnAt", ExtArgs["result"]["ownerQuestion"]>;
311
+ export type $OwnerQuestionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
312
+ name: "OwnerQuestion";
313
+ objects: {};
314
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
315
+ fleetId: string;
316
+ requestId: string;
317
+ questionId: string;
318
+ /**
319
+ * The ship asked; null before it is asked, or when the fleet refused it.
320
+ */
321
+ askedShipId: string | null;
322
+ askedAt: Date | null;
323
+ withdrawnAt: Date | null;
324
+ }, ExtArgs["result"]["ownerQuestion"]>;
325
+ composites: {};
326
+ };
327
+ export type OwnerQuestionGetPayload<S extends boolean | null | undefined | OwnerQuestionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload, S>;
328
+ export type OwnerQuestionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OwnerQuestionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
329
+ select?: OwnerQuestionCountAggregateInputType | true;
330
+ };
331
+ export interface OwnerQuestionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
332
+ [K: symbol]: {
333
+ types: Prisma.TypeMap<ExtArgs>['model']['OwnerQuestion'];
334
+ meta: {
335
+ name: 'OwnerQuestion';
336
+ };
337
+ };
338
+ /**
339
+ * Find zero or one OwnerQuestion that matches the filter.
340
+ * @param {OwnerQuestionFindUniqueArgs} args - Arguments to find a OwnerQuestion
341
+ * @example
342
+ * // Get one OwnerQuestion
343
+ * const ownerQuestion = await prisma.ownerQuestion.findUnique({
344
+ * where: {
345
+ * // ... provide filter here
346
+ * }
347
+ * })
348
+ */
349
+ findUnique<T extends OwnerQuestionFindUniqueArgs>(args: Prisma.SelectSubset<T, OwnerQuestionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
350
+ /**
351
+ * Find one OwnerQuestion that matches the filter or throw an error with `error.code='P2025'`
352
+ * if no matches were found.
353
+ * @param {OwnerQuestionFindUniqueOrThrowArgs} args - Arguments to find a OwnerQuestion
354
+ * @example
355
+ * // Get one OwnerQuestion
356
+ * const ownerQuestion = await prisma.ownerQuestion.findUniqueOrThrow({
357
+ * where: {
358
+ * // ... provide filter here
359
+ * }
360
+ * })
361
+ */
362
+ findUniqueOrThrow<T extends OwnerQuestionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OwnerQuestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
363
+ /**
364
+ * Find the first OwnerQuestion that matches the filter.
365
+ * Note, that providing `undefined` is treated as the value not being there.
366
+ * Read more here: https://pris.ly/d/null-undefined
367
+ * @param {OwnerQuestionFindFirstArgs} args - Arguments to find a OwnerQuestion
368
+ * @example
369
+ * // Get one OwnerQuestion
370
+ * const ownerQuestion = await prisma.ownerQuestion.findFirst({
371
+ * where: {
372
+ * // ... provide filter here
373
+ * }
374
+ * })
375
+ */
376
+ findFirst<T extends OwnerQuestionFindFirstArgs>(args?: Prisma.SelectSubset<T, OwnerQuestionFindFirstArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
377
+ /**
378
+ * Find the first OwnerQuestion that matches the filter or
379
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
380
+ * Note, that providing `undefined` is treated as the value not being there.
381
+ * Read more here: https://pris.ly/d/null-undefined
382
+ * @param {OwnerQuestionFindFirstOrThrowArgs} args - Arguments to find a OwnerQuestion
383
+ * @example
384
+ * // Get one OwnerQuestion
385
+ * const ownerQuestion = await prisma.ownerQuestion.findFirstOrThrow({
386
+ * where: {
387
+ * // ... provide filter here
388
+ * }
389
+ * })
390
+ */
391
+ findFirstOrThrow<T extends OwnerQuestionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OwnerQuestionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
392
+ /**
393
+ * Find zero or more OwnerQuestions that matches the filter.
394
+ * Note, that providing `undefined` is treated as the value not being there.
395
+ * Read more here: https://pris.ly/d/null-undefined
396
+ * @param {OwnerQuestionFindManyArgs} args - Arguments to filter and select certain fields only.
397
+ * @example
398
+ * // Get all OwnerQuestions
399
+ * const ownerQuestions = await prisma.ownerQuestion.findMany()
400
+ *
401
+ * // Get first 10 OwnerQuestions
402
+ * const ownerQuestions = await prisma.ownerQuestion.findMany({ take: 10 })
403
+ *
404
+ * // Only select the `fleetId`
405
+ * const ownerQuestionWithFleetIdOnly = await prisma.ownerQuestion.findMany({ select: { fleetId: true } })
406
+ *
407
+ */
408
+ findMany<T extends OwnerQuestionFindManyArgs>(args?: Prisma.SelectSubset<T, OwnerQuestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
409
+ /**
410
+ * Create a OwnerQuestion.
411
+ * @param {OwnerQuestionCreateArgs} args - Arguments to create a OwnerQuestion.
412
+ * @example
413
+ * // Create one OwnerQuestion
414
+ * const OwnerQuestion = await prisma.ownerQuestion.create({
415
+ * data: {
416
+ * // ... data to create a OwnerQuestion
417
+ * }
418
+ * })
419
+ *
420
+ */
421
+ create<T extends OwnerQuestionCreateArgs>(args: Prisma.SelectSubset<T, OwnerQuestionCreateArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
422
+ /**
423
+ * Create many OwnerQuestions.
424
+ * @param {OwnerQuestionCreateManyArgs} args - Arguments to create many OwnerQuestions.
425
+ * @example
426
+ * // Create many OwnerQuestions
427
+ * const ownerQuestion = await prisma.ownerQuestion.createMany({
428
+ * data: [
429
+ * // ... provide data here
430
+ * ]
431
+ * })
432
+ *
433
+ */
434
+ createMany<T extends OwnerQuestionCreateManyArgs>(args?: Prisma.SelectSubset<T, OwnerQuestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
435
+ /**
436
+ * Create many OwnerQuestions and returns the data saved in the database.
437
+ * @param {OwnerQuestionCreateManyAndReturnArgs} args - Arguments to create many OwnerQuestions.
438
+ * @example
439
+ * // Create many OwnerQuestions
440
+ * const ownerQuestion = await prisma.ownerQuestion.createManyAndReturn({
441
+ * data: [
442
+ * // ... provide data here
443
+ * ]
444
+ * })
445
+ *
446
+ * // Create many OwnerQuestions and only return the `fleetId`
447
+ * const ownerQuestionWithFleetIdOnly = await prisma.ownerQuestion.createManyAndReturn({
448
+ * select: { fleetId: true },
449
+ * data: [
450
+ * // ... provide data here
451
+ * ]
452
+ * })
453
+ * Note, that providing `undefined` is treated as the value not being there.
454
+ * Read more here: https://pris.ly/d/null-undefined
455
+ *
456
+ */
457
+ createManyAndReturn<T extends OwnerQuestionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OwnerQuestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
458
+ /**
459
+ * Delete a OwnerQuestion.
460
+ * @param {OwnerQuestionDeleteArgs} args - Arguments to delete one OwnerQuestion.
461
+ * @example
462
+ * // Delete one OwnerQuestion
463
+ * const OwnerQuestion = await prisma.ownerQuestion.delete({
464
+ * where: {
465
+ * // ... filter to delete one OwnerQuestion
466
+ * }
467
+ * })
468
+ *
469
+ */
470
+ delete<T extends OwnerQuestionDeleteArgs>(args: Prisma.SelectSubset<T, OwnerQuestionDeleteArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
471
+ /**
472
+ * Update one OwnerQuestion.
473
+ * @param {OwnerQuestionUpdateArgs} args - Arguments to update one OwnerQuestion.
474
+ * @example
475
+ * // Update one OwnerQuestion
476
+ * const ownerQuestion = await prisma.ownerQuestion.update({
477
+ * where: {
478
+ * // ... provide filter here
479
+ * },
480
+ * data: {
481
+ * // ... provide data here
482
+ * }
483
+ * })
484
+ *
485
+ */
486
+ update<T extends OwnerQuestionUpdateArgs>(args: Prisma.SelectSubset<T, OwnerQuestionUpdateArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
487
+ /**
488
+ * Delete zero or more OwnerQuestions.
489
+ * @param {OwnerQuestionDeleteManyArgs} args - Arguments to filter OwnerQuestions to delete.
490
+ * @example
491
+ * // Delete a few OwnerQuestions
492
+ * const { count } = await prisma.ownerQuestion.deleteMany({
493
+ * where: {
494
+ * // ... provide filter here
495
+ * }
496
+ * })
497
+ *
498
+ */
499
+ deleteMany<T extends OwnerQuestionDeleteManyArgs>(args?: Prisma.SelectSubset<T, OwnerQuestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
500
+ /**
501
+ * Update zero or more OwnerQuestions.
502
+ * Note, that providing `undefined` is treated as the value not being there.
503
+ * Read more here: https://pris.ly/d/null-undefined
504
+ * @param {OwnerQuestionUpdateManyArgs} args - Arguments to update one or more rows.
505
+ * @example
506
+ * // Update many OwnerQuestions
507
+ * const ownerQuestion = await prisma.ownerQuestion.updateMany({
508
+ * where: {
509
+ * // ... provide filter here
510
+ * },
511
+ * data: {
512
+ * // ... provide data here
513
+ * }
514
+ * })
515
+ *
516
+ */
517
+ updateMany<T extends OwnerQuestionUpdateManyArgs>(args: Prisma.SelectSubset<T, OwnerQuestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
518
+ /**
519
+ * Update zero or more OwnerQuestions and returns the data updated in the database.
520
+ * @param {OwnerQuestionUpdateManyAndReturnArgs} args - Arguments to update many OwnerQuestions.
521
+ * @example
522
+ * // Update many OwnerQuestions
523
+ * const ownerQuestion = await prisma.ownerQuestion.updateManyAndReturn({
524
+ * where: {
525
+ * // ... provide filter here
526
+ * },
527
+ * data: [
528
+ * // ... provide data here
529
+ * ]
530
+ * })
531
+ *
532
+ * // Update zero or more OwnerQuestions and only return the `fleetId`
533
+ * const ownerQuestionWithFleetIdOnly = await prisma.ownerQuestion.updateManyAndReturn({
534
+ * select: { fleetId: true },
535
+ * where: {
536
+ * // ... provide filter here
537
+ * },
538
+ * data: [
539
+ * // ... provide data here
540
+ * ]
541
+ * })
542
+ * Note, that providing `undefined` is treated as the value not being there.
543
+ * Read more here: https://pris.ly/d/null-undefined
544
+ *
545
+ */
546
+ updateManyAndReturn<T extends OwnerQuestionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OwnerQuestionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
547
+ /**
548
+ * Create or update one OwnerQuestion.
549
+ * @param {OwnerQuestionUpsertArgs} args - Arguments to update or create a OwnerQuestion.
550
+ * @example
551
+ * // Update or create a OwnerQuestion
552
+ * const ownerQuestion = await prisma.ownerQuestion.upsert({
553
+ * create: {
554
+ * // ... data to create a OwnerQuestion
555
+ * },
556
+ * update: {
557
+ * // ... in case it already exists, update
558
+ * },
559
+ * where: {
560
+ * // ... the filter for the OwnerQuestion we want to update
561
+ * }
562
+ * })
563
+ */
564
+ upsert<T extends OwnerQuestionUpsertArgs>(args: Prisma.SelectSubset<T, OwnerQuestionUpsertArgs<ExtArgs>>): Prisma.Prisma__OwnerQuestionClient<runtime.Types.Result.GetResult<Prisma.$OwnerQuestionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
565
+ /**
566
+ * Count the number of OwnerQuestions.
567
+ * Note, that providing `undefined` is treated as the value not being there.
568
+ * Read more here: https://pris.ly/d/null-undefined
569
+ * @param {OwnerQuestionCountArgs} args - Arguments to filter OwnerQuestions to count.
570
+ * @example
571
+ * // Count the number of OwnerQuestions
572
+ * const count = await prisma.ownerQuestion.count({
573
+ * where: {
574
+ * // ... the filter for the OwnerQuestions we want to count
575
+ * }
576
+ * })
577
+ **/
578
+ count<T extends OwnerQuestionCountArgs>(args?: Prisma.Subset<T, OwnerQuestionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OwnerQuestionCountAggregateOutputType> : number>;
579
+ /**
580
+ * Allows you to perform aggregations operations on a OwnerQuestion.
581
+ * Note, that providing `undefined` is treated as the value not being there.
582
+ * Read more here: https://pris.ly/d/null-undefined
583
+ * @param {OwnerQuestionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
584
+ * @example
585
+ * // Ordered by age ascending
586
+ * // Where email contains prisma.io
587
+ * // Limited to the 10 users
588
+ * const aggregations = await prisma.user.aggregate({
589
+ * _avg: {
590
+ * age: true,
591
+ * },
592
+ * where: {
593
+ * email: {
594
+ * contains: "prisma.io",
595
+ * },
596
+ * },
597
+ * orderBy: {
598
+ * age: "asc",
599
+ * },
600
+ * take: 10,
601
+ * })
602
+ **/
603
+ aggregate<T extends OwnerQuestionAggregateArgs>(args: Prisma.Subset<T, OwnerQuestionAggregateArgs>): Prisma.PrismaPromise<GetOwnerQuestionAggregateType<T>>;
604
+ /**
605
+ * Group by OwnerQuestion.
606
+ * Note, that providing `undefined` is treated as the value not being there.
607
+ * Read more here: https://pris.ly/d/null-undefined
608
+ * @param {OwnerQuestionGroupByArgs} args - Group by arguments.
609
+ * @example
610
+ * // Group by city, order by createdAt, get count
611
+ * const result = await prisma.user.groupBy({
612
+ * by: ['city', 'createdAt'],
613
+ * orderBy: {
614
+ * createdAt: true
615
+ * },
616
+ * _count: {
617
+ * _all: true
618
+ * },
619
+ * })
620
+ *
621
+ **/
622
+ groupBy<T extends OwnerQuestionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
623
+ orderBy: OwnerQuestionGroupByArgs['orderBy'];
624
+ } : {
625
+ orderBy?: OwnerQuestionGroupByArgs['orderBy'];
626
+ }, 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 ? {
627
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
628
+ Error,
629
+ 'Field ',
630
+ P,
631
+ ` in "having" needs to be provided in "by"`
632
+ ];
633
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
634
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
635
+ }[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 ? {} : {
636
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
637
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
638
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
639
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OwnerQuestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOwnerQuestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
640
+ /**
641
+ * Fields of the OwnerQuestion model
642
+ */
643
+ readonly fields: OwnerQuestionFieldRefs;
644
+ }
645
+ /**
646
+ * The delegate class that acts as a "Promise-like" for OwnerQuestion.
647
+ * Why is this prefixed with `Prisma__`?
648
+ * Because we want to prevent naming conflicts as mentioned in
649
+ * https://github.com/prisma/prisma-client-js/issues/707
650
+ */
651
+ export interface Prisma__OwnerQuestionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
652
+ readonly [Symbol.toStringTag]: "PrismaPromise";
653
+ /**
654
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
655
+ * @param onfulfilled The callback to execute when the Promise is resolved.
656
+ * @param onrejected The callback to execute when the Promise is rejected.
657
+ * @returns A Promise for the completion of which ever callback is executed.
658
+ */
659
+ 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>;
660
+ /**
661
+ * Attaches a callback for only the rejection of the Promise.
662
+ * @param onrejected The callback to execute when the Promise is rejected.
663
+ * @returns A Promise for the completion of the callback.
664
+ */
665
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
666
+ /**
667
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
668
+ * resolved value cannot be modified from the callback.
669
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
670
+ * @returns A Promise for the completion of the callback.
671
+ */
672
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
673
+ }
674
+ /**
675
+ * Fields of the OwnerQuestion model
676
+ */
677
+ export interface OwnerQuestionFieldRefs {
678
+ readonly fleetId: Prisma.FieldRef<"OwnerQuestion", 'String'>;
679
+ readonly requestId: Prisma.FieldRef<"OwnerQuestion", 'String'>;
680
+ readonly questionId: Prisma.FieldRef<"OwnerQuestion", 'String'>;
681
+ readonly askedShipId: Prisma.FieldRef<"OwnerQuestion", 'String'>;
682
+ readonly askedAt: Prisma.FieldRef<"OwnerQuestion", 'DateTime'>;
683
+ readonly withdrawnAt: Prisma.FieldRef<"OwnerQuestion", 'DateTime'>;
684
+ }
685
+ /**
686
+ * OwnerQuestion findUnique
687
+ */
688
+ export type OwnerQuestionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
689
+ /**
690
+ * Select specific fields to fetch from the OwnerQuestion
691
+ */
692
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
693
+ /**
694
+ * Omit specific fields from the OwnerQuestion
695
+ */
696
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
697
+ /**
698
+ * Filter, which OwnerQuestion to fetch.
699
+ */
700
+ where: Prisma.OwnerQuestionWhereUniqueInput;
701
+ };
702
+ /**
703
+ * OwnerQuestion findUniqueOrThrow
704
+ */
705
+ export type OwnerQuestionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
706
+ /**
707
+ * Select specific fields to fetch from the OwnerQuestion
708
+ */
709
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
710
+ /**
711
+ * Omit specific fields from the OwnerQuestion
712
+ */
713
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
714
+ /**
715
+ * Filter, which OwnerQuestion to fetch.
716
+ */
717
+ where: Prisma.OwnerQuestionWhereUniqueInput;
718
+ };
719
+ /**
720
+ * OwnerQuestion findFirst
721
+ */
722
+ export type OwnerQuestionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
723
+ /**
724
+ * Select specific fields to fetch from the OwnerQuestion
725
+ */
726
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
727
+ /**
728
+ * Omit specific fields from the OwnerQuestion
729
+ */
730
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
731
+ /**
732
+ * Filter, which OwnerQuestion to fetch.
733
+ */
734
+ where?: Prisma.OwnerQuestionWhereInput;
735
+ /**
736
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
737
+ *
738
+ * Determine the order of OwnerQuestions to fetch.
739
+ */
740
+ orderBy?: Prisma.OwnerQuestionOrderByWithRelationInput | Prisma.OwnerQuestionOrderByWithRelationInput[];
741
+ /**
742
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
743
+ *
744
+ * Sets the position for searching for OwnerQuestions.
745
+ */
746
+ cursor?: Prisma.OwnerQuestionWhereUniqueInput;
747
+ /**
748
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
749
+ *
750
+ * Take `±n` OwnerQuestions from the position of the cursor.
751
+ */
752
+ take?: number;
753
+ /**
754
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
755
+ *
756
+ * Skip the first `n` OwnerQuestions.
757
+ */
758
+ skip?: number;
759
+ /**
760
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
761
+ *
762
+ * Filter by unique combinations of OwnerQuestions.
763
+ */
764
+ distinct?: Prisma.OwnerQuestionScalarFieldEnum | Prisma.OwnerQuestionScalarFieldEnum[];
765
+ };
766
+ /**
767
+ * OwnerQuestion findFirstOrThrow
768
+ */
769
+ export type OwnerQuestionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
770
+ /**
771
+ * Select specific fields to fetch from the OwnerQuestion
772
+ */
773
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
774
+ /**
775
+ * Omit specific fields from the OwnerQuestion
776
+ */
777
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
778
+ /**
779
+ * Filter, which OwnerQuestion to fetch.
780
+ */
781
+ where?: Prisma.OwnerQuestionWhereInput;
782
+ /**
783
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
784
+ *
785
+ * Determine the order of OwnerQuestions to fetch.
786
+ */
787
+ orderBy?: Prisma.OwnerQuestionOrderByWithRelationInput | Prisma.OwnerQuestionOrderByWithRelationInput[];
788
+ /**
789
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
790
+ *
791
+ * Sets the position for searching for OwnerQuestions.
792
+ */
793
+ cursor?: Prisma.OwnerQuestionWhereUniqueInput;
794
+ /**
795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
796
+ *
797
+ * Take `±n` OwnerQuestions from the position of the cursor.
798
+ */
799
+ take?: number;
800
+ /**
801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
802
+ *
803
+ * Skip the first `n` OwnerQuestions.
804
+ */
805
+ skip?: number;
806
+ /**
807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
808
+ *
809
+ * Filter by unique combinations of OwnerQuestions.
810
+ */
811
+ distinct?: Prisma.OwnerQuestionScalarFieldEnum | Prisma.OwnerQuestionScalarFieldEnum[];
812
+ };
813
+ /**
814
+ * OwnerQuestion findMany
815
+ */
816
+ export type OwnerQuestionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
817
+ /**
818
+ * Select specific fields to fetch from the OwnerQuestion
819
+ */
820
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
821
+ /**
822
+ * Omit specific fields from the OwnerQuestion
823
+ */
824
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
825
+ /**
826
+ * Filter, which OwnerQuestions to fetch.
827
+ */
828
+ where?: Prisma.OwnerQuestionWhereInput;
829
+ /**
830
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
831
+ *
832
+ * Determine the order of OwnerQuestions to fetch.
833
+ */
834
+ orderBy?: Prisma.OwnerQuestionOrderByWithRelationInput | Prisma.OwnerQuestionOrderByWithRelationInput[];
835
+ /**
836
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
837
+ *
838
+ * Sets the position for listing OwnerQuestions.
839
+ */
840
+ cursor?: Prisma.OwnerQuestionWhereUniqueInput;
841
+ /**
842
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
843
+ *
844
+ * Take `±n` OwnerQuestions from the position of the cursor.
845
+ */
846
+ take?: number;
847
+ /**
848
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
849
+ *
850
+ * Skip the first `n` OwnerQuestions.
851
+ */
852
+ skip?: number;
853
+ /**
854
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
855
+ *
856
+ * Filter by unique combinations of OwnerQuestions.
857
+ */
858
+ distinct?: Prisma.OwnerQuestionScalarFieldEnum | Prisma.OwnerQuestionScalarFieldEnum[];
859
+ };
860
+ /**
861
+ * OwnerQuestion create
862
+ */
863
+ export type OwnerQuestionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
864
+ /**
865
+ * Select specific fields to fetch from the OwnerQuestion
866
+ */
867
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
868
+ /**
869
+ * Omit specific fields from the OwnerQuestion
870
+ */
871
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
872
+ /**
873
+ * The data needed to create a OwnerQuestion.
874
+ */
875
+ data: Prisma.XOR<Prisma.OwnerQuestionCreateInput, Prisma.OwnerQuestionUncheckedCreateInput>;
876
+ };
877
+ /**
878
+ * OwnerQuestion createMany
879
+ */
880
+ export type OwnerQuestionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
881
+ /**
882
+ * The data used to create many OwnerQuestions.
883
+ */
884
+ data: Prisma.OwnerQuestionCreateManyInput | Prisma.OwnerQuestionCreateManyInput[];
885
+ skipDuplicates?: boolean;
886
+ };
887
+ /**
888
+ * OwnerQuestion createManyAndReturn
889
+ */
890
+ export type OwnerQuestionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
891
+ /**
892
+ * Select specific fields to fetch from the OwnerQuestion
893
+ */
894
+ select?: Prisma.OwnerQuestionSelectCreateManyAndReturn<ExtArgs> | null;
895
+ /**
896
+ * Omit specific fields from the OwnerQuestion
897
+ */
898
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
899
+ /**
900
+ * The data used to create many OwnerQuestions.
901
+ */
902
+ data: Prisma.OwnerQuestionCreateManyInput | Prisma.OwnerQuestionCreateManyInput[];
903
+ skipDuplicates?: boolean;
904
+ };
905
+ /**
906
+ * OwnerQuestion update
907
+ */
908
+ export type OwnerQuestionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
+ /**
910
+ * Select specific fields to fetch from the OwnerQuestion
911
+ */
912
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
913
+ /**
914
+ * Omit specific fields from the OwnerQuestion
915
+ */
916
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
917
+ /**
918
+ * The data needed to update a OwnerQuestion.
919
+ */
920
+ data: Prisma.XOR<Prisma.OwnerQuestionUpdateInput, Prisma.OwnerQuestionUncheckedUpdateInput>;
921
+ /**
922
+ * Choose, which OwnerQuestion to update.
923
+ */
924
+ where: Prisma.OwnerQuestionWhereUniqueInput;
925
+ };
926
+ /**
927
+ * OwnerQuestion updateMany
928
+ */
929
+ export type OwnerQuestionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
930
+ /**
931
+ * The data used to update OwnerQuestions.
932
+ */
933
+ data: Prisma.XOR<Prisma.OwnerQuestionUpdateManyMutationInput, Prisma.OwnerQuestionUncheckedUpdateManyInput>;
934
+ /**
935
+ * Filter which OwnerQuestions to update
936
+ */
937
+ where?: Prisma.OwnerQuestionWhereInput;
938
+ /**
939
+ * Limit how many OwnerQuestions to update.
940
+ */
941
+ limit?: number;
942
+ };
943
+ /**
944
+ * OwnerQuestion updateManyAndReturn
945
+ */
946
+ export type OwnerQuestionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * Select specific fields to fetch from the OwnerQuestion
949
+ */
950
+ select?: Prisma.OwnerQuestionSelectUpdateManyAndReturn<ExtArgs> | null;
951
+ /**
952
+ * Omit specific fields from the OwnerQuestion
953
+ */
954
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
955
+ /**
956
+ * The data used to update OwnerQuestions.
957
+ */
958
+ data: Prisma.XOR<Prisma.OwnerQuestionUpdateManyMutationInput, Prisma.OwnerQuestionUncheckedUpdateManyInput>;
959
+ /**
960
+ * Filter which OwnerQuestions to update
961
+ */
962
+ where?: Prisma.OwnerQuestionWhereInput;
963
+ /**
964
+ * Limit how many OwnerQuestions to update.
965
+ */
966
+ limit?: number;
967
+ };
968
+ /**
969
+ * OwnerQuestion upsert
970
+ */
971
+ export type OwnerQuestionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
972
+ /**
973
+ * Select specific fields to fetch from the OwnerQuestion
974
+ */
975
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
976
+ /**
977
+ * Omit specific fields from the OwnerQuestion
978
+ */
979
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
980
+ /**
981
+ * The filter to search for the OwnerQuestion to update in case it exists.
982
+ */
983
+ where: Prisma.OwnerQuestionWhereUniqueInput;
984
+ /**
985
+ * In case the OwnerQuestion found by the `where` argument doesn't exist, create a new OwnerQuestion with this data.
986
+ */
987
+ create: Prisma.XOR<Prisma.OwnerQuestionCreateInput, Prisma.OwnerQuestionUncheckedCreateInput>;
988
+ /**
989
+ * In case the OwnerQuestion was found with the provided `where` argument, update it with this data.
990
+ */
991
+ update: Prisma.XOR<Prisma.OwnerQuestionUpdateInput, Prisma.OwnerQuestionUncheckedUpdateInput>;
992
+ };
993
+ /**
994
+ * OwnerQuestion delete
995
+ */
996
+ export type OwnerQuestionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
997
+ /**
998
+ * Select specific fields to fetch from the OwnerQuestion
999
+ */
1000
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
1001
+ /**
1002
+ * Omit specific fields from the OwnerQuestion
1003
+ */
1004
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
1005
+ /**
1006
+ * Filter which OwnerQuestion to delete.
1007
+ */
1008
+ where: Prisma.OwnerQuestionWhereUniqueInput;
1009
+ };
1010
+ /**
1011
+ * OwnerQuestion deleteMany
1012
+ */
1013
+ export type OwnerQuestionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1014
+ /**
1015
+ * Filter which OwnerQuestions to delete
1016
+ */
1017
+ where?: Prisma.OwnerQuestionWhereInput;
1018
+ /**
1019
+ * Limit how many OwnerQuestions to delete.
1020
+ */
1021
+ limit?: number;
1022
+ };
1023
+ /**
1024
+ * OwnerQuestion without action
1025
+ */
1026
+ export type OwnerQuestionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1027
+ /**
1028
+ * Select specific fields to fetch from the OwnerQuestion
1029
+ */
1030
+ select?: Prisma.OwnerQuestionSelect<ExtArgs> | null;
1031
+ /**
1032
+ * Omit specific fields from the OwnerQuestion
1033
+ */
1034
+ omit?: Prisma.OwnerQuestionOmit<ExtArgs> | null;
1035
+ };