@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,1030 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model InstallationRequest
5
+ * The installation's requests, by the caller's request id, so a replay answers
6
+ * what the first call answered. A switch names its fleet and goes with it; a
7
+ * delete keeps only the request's hash, so nothing of the deleted fleet stays.
8
+ */
9
+ export type InstallationRequestModel = runtime.Types.Result.DefaultSelection<Prisma.$InstallationRequestPayload>;
10
+ export type AggregateInstallationRequest = {
11
+ _count: InstallationRequestCountAggregateOutputType | null;
12
+ _min: InstallationRequestMinAggregateOutputType | null;
13
+ _max: InstallationRequestMaxAggregateOutputType | null;
14
+ };
15
+ export type InstallationRequestMinAggregateOutputType = {
16
+ requestId: string | null;
17
+ kind: string | null;
18
+ requestHash: string | null;
19
+ fleetId: string | null;
20
+ enabled: boolean | null;
21
+ at: Date | null;
22
+ };
23
+ export type InstallationRequestMaxAggregateOutputType = {
24
+ requestId: string | null;
25
+ kind: string | null;
26
+ requestHash: string | null;
27
+ fleetId: string | null;
28
+ enabled: boolean | null;
29
+ at: Date | null;
30
+ };
31
+ export type InstallationRequestCountAggregateOutputType = {
32
+ requestId: number;
33
+ kind: number;
34
+ requestHash: number;
35
+ fleetId: number;
36
+ enabled: number;
37
+ at: number;
38
+ _all: number;
39
+ };
40
+ export type InstallationRequestMinAggregateInputType = {
41
+ requestId?: true;
42
+ kind?: true;
43
+ requestHash?: true;
44
+ fleetId?: true;
45
+ enabled?: true;
46
+ at?: true;
47
+ };
48
+ export type InstallationRequestMaxAggregateInputType = {
49
+ requestId?: true;
50
+ kind?: true;
51
+ requestHash?: true;
52
+ fleetId?: true;
53
+ enabled?: true;
54
+ at?: true;
55
+ };
56
+ export type InstallationRequestCountAggregateInputType = {
57
+ requestId?: true;
58
+ kind?: true;
59
+ requestHash?: true;
60
+ fleetId?: true;
61
+ enabled?: true;
62
+ at?: true;
63
+ _all?: true;
64
+ };
65
+ export type InstallationRequestAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
66
+ /**
67
+ * Filter which InstallationRequest to aggregate.
68
+ */
69
+ where?: Prisma.InstallationRequestWhereInput;
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
72
+ *
73
+ * Determine the order of InstallationRequests to fetch.
74
+ */
75
+ orderBy?: Prisma.InstallationRequestOrderByWithRelationInput | Prisma.InstallationRequestOrderByWithRelationInput[];
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.InstallationRequestWhereUniqueInput;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
+ *
85
+ * Take `±n` InstallationRequests 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` InstallationRequests.
92
+ */
93
+ skip?: number;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
+ *
97
+ * Count returned InstallationRequests
98
+ **/
99
+ _count?: true | InstallationRequestCountAggregateInputType;
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?: InstallationRequestMinAggregateInputType;
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?: InstallationRequestMaxAggregateInputType;
112
+ };
113
+ export type GetInstallationRequestAggregateType<T extends InstallationRequestAggregateArgs> = {
114
+ [P in keyof T & keyof AggregateInstallationRequest]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateInstallationRequest[P]> : Prisma.GetScalarType<T[P], AggregateInstallationRequest[P]>;
115
+ };
116
+ export type InstallationRequestGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
+ where?: Prisma.InstallationRequestWhereInput;
118
+ orderBy?: Prisma.InstallationRequestOrderByWithAggregationInput | Prisma.InstallationRequestOrderByWithAggregationInput[];
119
+ by: Prisma.InstallationRequestScalarFieldEnum[] | Prisma.InstallationRequestScalarFieldEnum;
120
+ having?: Prisma.InstallationRequestScalarWhereWithAggregatesInput;
121
+ take?: number;
122
+ skip?: number;
123
+ _count?: InstallationRequestCountAggregateInputType | true;
124
+ _min?: InstallationRequestMinAggregateInputType;
125
+ _max?: InstallationRequestMaxAggregateInputType;
126
+ };
127
+ export type InstallationRequestGroupByOutputType = {
128
+ requestId: string;
129
+ kind: string;
130
+ requestHash: string;
131
+ fleetId: string | null;
132
+ enabled: boolean | null;
133
+ at: Date;
134
+ _count: InstallationRequestCountAggregateOutputType | null;
135
+ _min: InstallationRequestMinAggregateOutputType | null;
136
+ _max: InstallationRequestMaxAggregateOutputType | null;
137
+ };
138
+ export type GetInstallationRequestGroupByPayload<T extends InstallationRequestGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<InstallationRequestGroupByOutputType, T['by']> & {
139
+ [P in ((keyof T) & (keyof InstallationRequestGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], InstallationRequestGroupByOutputType[P]> : Prisma.GetScalarType<T[P], InstallationRequestGroupByOutputType[P]>;
140
+ }>>;
141
+ export type InstallationRequestWhereInput = {
142
+ AND?: Prisma.InstallationRequestWhereInput | Prisma.InstallationRequestWhereInput[];
143
+ OR?: Prisma.InstallationRequestWhereInput[];
144
+ NOT?: Prisma.InstallationRequestWhereInput | Prisma.InstallationRequestWhereInput[];
145
+ requestId?: Prisma.StringFilter<"InstallationRequest"> | string;
146
+ kind?: Prisma.StringFilter<"InstallationRequest"> | string;
147
+ requestHash?: Prisma.StringFilter<"InstallationRequest"> | string;
148
+ fleetId?: Prisma.StringNullableFilter<"InstallationRequest"> | string | null;
149
+ enabled?: Prisma.BoolNullableFilter<"InstallationRequest"> | boolean | null;
150
+ at?: Prisma.DateTimeFilter<"InstallationRequest"> | Date | string;
151
+ };
152
+ export type InstallationRequestOrderByWithRelationInput = {
153
+ requestId?: Prisma.SortOrder;
154
+ kind?: Prisma.SortOrder;
155
+ requestHash?: Prisma.SortOrder;
156
+ fleetId?: Prisma.SortOrderInput | Prisma.SortOrder;
157
+ enabled?: Prisma.SortOrderInput | Prisma.SortOrder;
158
+ at?: Prisma.SortOrder;
159
+ };
160
+ export type InstallationRequestWhereUniqueInput = Prisma.AtLeast<{
161
+ requestId?: string;
162
+ AND?: Prisma.InstallationRequestWhereInput | Prisma.InstallationRequestWhereInput[];
163
+ OR?: Prisma.InstallationRequestWhereInput[];
164
+ NOT?: Prisma.InstallationRequestWhereInput | Prisma.InstallationRequestWhereInput[];
165
+ kind?: Prisma.StringFilter<"InstallationRequest"> | string;
166
+ requestHash?: Prisma.StringFilter<"InstallationRequest"> | string;
167
+ fleetId?: Prisma.StringNullableFilter<"InstallationRequest"> | string | null;
168
+ enabled?: Prisma.BoolNullableFilter<"InstallationRequest"> | boolean | null;
169
+ at?: Prisma.DateTimeFilter<"InstallationRequest"> | Date | string;
170
+ }, "requestId">;
171
+ export type InstallationRequestOrderByWithAggregationInput = {
172
+ requestId?: Prisma.SortOrder;
173
+ kind?: Prisma.SortOrder;
174
+ requestHash?: Prisma.SortOrder;
175
+ fleetId?: Prisma.SortOrderInput | Prisma.SortOrder;
176
+ enabled?: Prisma.SortOrderInput | Prisma.SortOrder;
177
+ at?: Prisma.SortOrder;
178
+ _count?: Prisma.InstallationRequestCountOrderByAggregateInput;
179
+ _max?: Prisma.InstallationRequestMaxOrderByAggregateInput;
180
+ _min?: Prisma.InstallationRequestMinOrderByAggregateInput;
181
+ };
182
+ export type InstallationRequestScalarWhereWithAggregatesInput = {
183
+ AND?: Prisma.InstallationRequestScalarWhereWithAggregatesInput | Prisma.InstallationRequestScalarWhereWithAggregatesInput[];
184
+ OR?: Prisma.InstallationRequestScalarWhereWithAggregatesInput[];
185
+ NOT?: Prisma.InstallationRequestScalarWhereWithAggregatesInput | Prisma.InstallationRequestScalarWhereWithAggregatesInput[];
186
+ requestId?: Prisma.StringWithAggregatesFilter<"InstallationRequest"> | string;
187
+ kind?: Prisma.StringWithAggregatesFilter<"InstallationRequest"> | string;
188
+ requestHash?: Prisma.StringWithAggregatesFilter<"InstallationRequest"> | string;
189
+ fleetId?: Prisma.StringNullableWithAggregatesFilter<"InstallationRequest"> | string | null;
190
+ enabled?: Prisma.BoolNullableWithAggregatesFilter<"InstallationRequest"> | boolean | null;
191
+ at?: Prisma.DateTimeWithAggregatesFilter<"InstallationRequest"> | Date | string;
192
+ };
193
+ export type InstallationRequestCreateInput = {
194
+ requestId: string;
195
+ kind: string;
196
+ requestHash: string;
197
+ fleetId?: string | null;
198
+ enabled?: boolean | null;
199
+ at: Date | string;
200
+ };
201
+ export type InstallationRequestUncheckedCreateInput = {
202
+ requestId: string;
203
+ kind: string;
204
+ requestHash: string;
205
+ fleetId?: string | null;
206
+ enabled?: boolean | null;
207
+ at: Date | string;
208
+ };
209
+ export type InstallationRequestUpdateInput = {
210
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
211
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
212
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
213
+ fleetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
214
+ enabled?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
215
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
216
+ };
217
+ export type InstallationRequestUncheckedUpdateInput = {
218
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
219
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
221
+ fleetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
222
+ enabled?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
223
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
224
+ };
225
+ export type InstallationRequestCreateManyInput = {
226
+ requestId: string;
227
+ kind: string;
228
+ requestHash: string;
229
+ fleetId?: string | null;
230
+ enabled?: boolean | null;
231
+ at: Date | string;
232
+ };
233
+ export type InstallationRequestUpdateManyMutationInput = {
234
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
235
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
236
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
237
+ fleetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
238
+ enabled?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
239
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
240
+ };
241
+ export type InstallationRequestUncheckedUpdateManyInput = {
242
+ requestId?: Prisma.StringFieldUpdateOperationsInput | string;
243
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
244
+ requestHash?: Prisma.StringFieldUpdateOperationsInput | string;
245
+ fleetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
246
+ enabled?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
247
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
248
+ };
249
+ export type InstallationRequestCountOrderByAggregateInput = {
250
+ requestId?: Prisma.SortOrder;
251
+ kind?: Prisma.SortOrder;
252
+ requestHash?: Prisma.SortOrder;
253
+ fleetId?: Prisma.SortOrder;
254
+ enabled?: Prisma.SortOrder;
255
+ at?: Prisma.SortOrder;
256
+ };
257
+ export type InstallationRequestMaxOrderByAggregateInput = {
258
+ requestId?: Prisma.SortOrder;
259
+ kind?: Prisma.SortOrder;
260
+ requestHash?: Prisma.SortOrder;
261
+ fleetId?: Prisma.SortOrder;
262
+ enabled?: Prisma.SortOrder;
263
+ at?: Prisma.SortOrder;
264
+ };
265
+ export type InstallationRequestMinOrderByAggregateInput = {
266
+ requestId?: Prisma.SortOrder;
267
+ kind?: Prisma.SortOrder;
268
+ requestHash?: Prisma.SortOrder;
269
+ fleetId?: Prisma.SortOrder;
270
+ enabled?: Prisma.SortOrder;
271
+ at?: Prisma.SortOrder;
272
+ };
273
+ export type NullableBoolFieldUpdateOperationsInput = {
274
+ set?: boolean | null;
275
+ };
276
+ export type InstallationRequestSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
277
+ requestId?: boolean;
278
+ kind?: boolean;
279
+ requestHash?: boolean;
280
+ fleetId?: boolean;
281
+ enabled?: boolean;
282
+ at?: boolean;
283
+ }, ExtArgs["result"]["installationRequest"]>;
284
+ export type InstallationRequestSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
285
+ requestId?: boolean;
286
+ kind?: boolean;
287
+ requestHash?: boolean;
288
+ fleetId?: boolean;
289
+ enabled?: boolean;
290
+ at?: boolean;
291
+ }, ExtArgs["result"]["installationRequest"]>;
292
+ export type InstallationRequestSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
293
+ requestId?: boolean;
294
+ kind?: boolean;
295
+ requestHash?: boolean;
296
+ fleetId?: boolean;
297
+ enabled?: boolean;
298
+ at?: boolean;
299
+ }, ExtArgs["result"]["installationRequest"]>;
300
+ export type InstallationRequestSelectScalar = {
301
+ requestId?: boolean;
302
+ kind?: boolean;
303
+ requestHash?: boolean;
304
+ fleetId?: boolean;
305
+ enabled?: boolean;
306
+ at?: boolean;
307
+ };
308
+ export type InstallationRequestOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"requestId" | "kind" | "requestHash" | "fleetId" | "enabled" | "at", ExtArgs["result"]["installationRequest"]>;
309
+ export type $InstallationRequestPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
310
+ name: "InstallationRequest";
311
+ objects: {};
312
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
313
+ requestId: string;
314
+ kind: string;
315
+ requestHash: string;
316
+ fleetId: string | null;
317
+ enabled: boolean | null;
318
+ at: Date;
319
+ }, ExtArgs["result"]["installationRequest"]>;
320
+ composites: {};
321
+ };
322
+ export type InstallationRequestGetPayload<S extends boolean | null | undefined | InstallationRequestDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload, S>;
323
+ export type InstallationRequestCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<InstallationRequestFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
324
+ select?: InstallationRequestCountAggregateInputType | true;
325
+ };
326
+ export interface InstallationRequestDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
327
+ [K: symbol]: {
328
+ types: Prisma.TypeMap<ExtArgs>['model']['InstallationRequest'];
329
+ meta: {
330
+ name: 'InstallationRequest';
331
+ };
332
+ };
333
+ /**
334
+ * Find zero or one InstallationRequest that matches the filter.
335
+ * @param {InstallationRequestFindUniqueArgs} args - Arguments to find a InstallationRequest
336
+ * @example
337
+ * // Get one InstallationRequest
338
+ * const installationRequest = await prisma.installationRequest.findUnique({
339
+ * where: {
340
+ * // ... provide filter here
341
+ * }
342
+ * })
343
+ */
344
+ findUnique<T extends InstallationRequestFindUniqueArgs>(args: Prisma.SelectSubset<T, InstallationRequestFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
345
+ /**
346
+ * Find one InstallationRequest that matches the filter or throw an error with `error.code='P2025'`
347
+ * if no matches were found.
348
+ * @param {InstallationRequestFindUniqueOrThrowArgs} args - Arguments to find a InstallationRequest
349
+ * @example
350
+ * // Get one InstallationRequest
351
+ * const installationRequest = await prisma.installationRequest.findUniqueOrThrow({
352
+ * where: {
353
+ * // ... provide filter here
354
+ * }
355
+ * })
356
+ */
357
+ findUniqueOrThrow<T extends InstallationRequestFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InstallationRequestFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
358
+ /**
359
+ * Find the first InstallationRequest that matches the filter.
360
+ * Note, that providing `undefined` is treated as the value not being there.
361
+ * Read more here: https://pris.ly/d/null-undefined
362
+ * @param {InstallationRequestFindFirstArgs} args - Arguments to find a InstallationRequest
363
+ * @example
364
+ * // Get one InstallationRequest
365
+ * const installationRequest = await prisma.installationRequest.findFirst({
366
+ * where: {
367
+ * // ... provide filter here
368
+ * }
369
+ * })
370
+ */
371
+ findFirst<T extends InstallationRequestFindFirstArgs>(args?: Prisma.SelectSubset<T, InstallationRequestFindFirstArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
372
+ /**
373
+ * Find the first InstallationRequest that matches the filter or
374
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
375
+ * Note, that providing `undefined` is treated as the value not being there.
376
+ * Read more here: https://pris.ly/d/null-undefined
377
+ * @param {InstallationRequestFindFirstOrThrowArgs} args - Arguments to find a InstallationRequest
378
+ * @example
379
+ * // Get one InstallationRequest
380
+ * const installationRequest = await prisma.installationRequest.findFirstOrThrow({
381
+ * where: {
382
+ * // ... provide filter here
383
+ * }
384
+ * })
385
+ */
386
+ findFirstOrThrow<T extends InstallationRequestFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InstallationRequestFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
387
+ /**
388
+ * Find zero or more InstallationRequests that matches the filter.
389
+ * Note, that providing `undefined` is treated as the value not being there.
390
+ * Read more here: https://pris.ly/d/null-undefined
391
+ * @param {InstallationRequestFindManyArgs} args - Arguments to filter and select certain fields only.
392
+ * @example
393
+ * // Get all InstallationRequests
394
+ * const installationRequests = await prisma.installationRequest.findMany()
395
+ *
396
+ * // Get first 10 InstallationRequests
397
+ * const installationRequests = await prisma.installationRequest.findMany({ take: 10 })
398
+ *
399
+ * // Only select the `requestId`
400
+ * const installationRequestWithRequestIdOnly = await prisma.installationRequest.findMany({ select: { requestId: true } })
401
+ *
402
+ */
403
+ findMany<T extends InstallationRequestFindManyArgs>(args?: Prisma.SelectSubset<T, InstallationRequestFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
404
+ /**
405
+ * Create a InstallationRequest.
406
+ * @param {InstallationRequestCreateArgs} args - Arguments to create a InstallationRequest.
407
+ * @example
408
+ * // Create one InstallationRequest
409
+ * const InstallationRequest = await prisma.installationRequest.create({
410
+ * data: {
411
+ * // ... data to create a InstallationRequest
412
+ * }
413
+ * })
414
+ *
415
+ */
416
+ create<T extends InstallationRequestCreateArgs>(args: Prisma.SelectSubset<T, InstallationRequestCreateArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
417
+ /**
418
+ * Create many InstallationRequests.
419
+ * @param {InstallationRequestCreateManyArgs} args - Arguments to create many InstallationRequests.
420
+ * @example
421
+ * // Create many InstallationRequests
422
+ * const installationRequest = await prisma.installationRequest.createMany({
423
+ * data: [
424
+ * // ... provide data here
425
+ * ]
426
+ * })
427
+ *
428
+ */
429
+ createMany<T extends InstallationRequestCreateManyArgs>(args?: Prisma.SelectSubset<T, InstallationRequestCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
430
+ /**
431
+ * Create many InstallationRequests and returns the data saved in the database.
432
+ * @param {InstallationRequestCreateManyAndReturnArgs} args - Arguments to create many InstallationRequests.
433
+ * @example
434
+ * // Create many InstallationRequests
435
+ * const installationRequest = await prisma.installationRequest.createManyAndReturn({
436
+ * data: [
437
+ * // ... provide data here
438
+ * ]
439
+ * })
440
+ *
441
+ * // Create many InstallationRequests and only return the `requestId`
442
+ * const installationRequestWithRequestIdOnly = await prisma.installationRequest.createManyAndReturn({
443
+ * select: { requestId: true },
444
+ * data: [
445
+ * // ... provide data here
446
+ * ]
447
+ * })
448
+ * Note, that providing `undefined` is treated as the value not being there.
449
+ * Read more here: https://pris.ly/d/null-undefined
450
+ *
451
+ */
452
+ createManyAndReturn<T extends InstallationRequestCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InstallationRequestCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
453
+ /**
454
+ * Delete a InstallationRequest.
455
+ * @param {InstallationRequestDeleteArgs} args - Arguments to delete one InstallationRequest.
456
+ * @example
457
+ * // Delete one InstallationRequest
458
+ * const InstallationRequest = await prisma.installationRequest.delete({
459
+ * where: {
460
+ * // ... filter to delete one InstallationRequest
461
+ * }
462
+ * })
463
+ *
464
+ */
465
+ delete<T extends InstallationRequestDeleteArgs>(args: Prisma.SelectSubset<T, InstallationRequestDeleteArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
466
+ /**
467
+ * Update one InstallationRequest.
468
+ * @param {InstallationRequestUpdateArgs} args - Arguments to update one InstallationRequest.
469
+ * @example
470
+ * // Update one InstallationRequest
471
+ * const installationRequest = await prisma.installationRequest.update({
472
+ * where: {
473
+ * // ... provide filter here
474
+ * },
475
+ * data: {
476
+ * // ... provide data here
477
+ * }
478
+ * })
479
+ *
480
+ */
481
+ update<T extends InstallationRequestUpdateArgs>(args: Prisma.SelectSubset<T, InstallationRequestUpdateArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
482
+ /**
483
+ * Delete zero or more InstallationRequests.
484
+ * @param {InstallationRequestDeleteManyArgs} args - Arguments to filter InstallationRequests to delete.
485
+ * @example
486
+ * // Delete a few InstallationRequests
487
+ * const { count } = await prisma.installationRequest.deleteMany({
488
+ * where: {
489
+ * // ... provide filter here
490
+ * }
491
+ * })
492
+ *
493
+ */
494
+ deleteMany<T extends InstallationRequestDeleteManyArgs>(args?: Prisma.SelectSubset<T, InstallationRequestDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
495
+ /**
496
+ * Update zero or more InstallationRequests.
497
+ * Note, that providing `undefined` is treated as the value not being there.
498
+ * Read more here: https://pris.ly/d/null-undefined
499
+ * @param {InstallationRequestUpdateManyArgs} args - Arguments to update one or more rows.
500
+ * @example
501
+ * // Update many InstallationRequests
502
+ * const installationRequest = await prisma.installationRequest.updateMany({
503
+ * where: {
504
+ * // ... provide filter here
505
+ * },
506
+ * data: {
507
+ * // ... provide data here
508
+ * }
509
+ * })
510
+ *
511
+ */
512
+ updateMany<T extends InstallationRequestUpdateManyArgs>(args: Prisma.SelectSubset<T, InstallationRequestUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
513
+ /**
514
+ * Update zero or more InstallationRequests and returns the data updated in the database.
515
+ * @param {InstallationRequestUpdateManyAndReturnArgs} args - Arguments to update many InstallationRequests.
516
+ * @example
517
+ * // Update many InstallationRequests
518
+ * const installationRequest = await prisma.installationRequest.updateManyAndReturn({
519
+ * where: {
520
+ * // ... provide filter here
521
+ * },
522
+ * data: [
523
+ * // ... provide data here
524
+ * ]
525
+ * })
526
+ *
527
+ * // Update zero or more InstallationRequests and only return the `requestId`
528
+ * const installationRequestWithRequestIdOnly = await prisma.installationRequest.updateManyAndReturn({
529
+ * select: { requestId: true },
530
+ * where: {
531
+ * // ... provide filter here
532
+ * },
533
+ * data: [
534
+ * // ... provide data here
535
+ * ]
536
+ * })
537
+ * Note, that providing `undefined` is treated as the value not being there.
538
+ * Read more here: https://pris.ly/d/null-undefined
539
+ *
540
+ */
541
+ updateManyAndReturn<T extends InstallationRequestUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InstallationRequestUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
542
+ /**
543
+ * Create or update one InstallationRequest.
544
+ * @param {InstallationRequestUpsertArgs} args - Arguments to update or create a InstallationRequest.
545
+ * @example
546
+ * // Update or create a InstallationRequest
547
+ * const installationRequest = await prisma.installationRequest.upsert({
548
+ * create: {
549
+ * // ... data to create a InstallationRequest
550
+ * },
551
+ * update: {
552
+ * // ... in case it already exists, update
553
+ * },
554
+ * where: {
555
+ * // ... the filter for the InstallationRequest we want to update
556
+ * }
557
+ * })
558
+ */
559
+ upsert<T extends InstallationRequestUpsertArgs>(args: Prisma.SelectSubset<T, InstallationRequestUpsertArgs<ExtArgs>>): Prisma.Prisma__InstallationRequestClient<runtime.Types.Result.GetResult<Prisma.$InstallationRequestPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
560
+ /**
561
+ * Count the number of InstallationRequests.
562
+ * Note, that providing `undefined` is treated as the value not being there.
563
+ * Read more here: https://pris.ly/d/null-undefined
564
+ * @param {InstallationRequestCountArgs} args - Arguments to filter InstallationRequests to count.
565
+ * @example
566
+ * // Count the number of InstallationRequests
567
+ * const count = await prisma.installationRequest.count({
568
+ * where: {
569
+ * // ... the filter for the InstallationRequests we want to count
570
+ * }
571
+ * })
572
+ **/
573
+ count<T extends InstallationRequestCountArgs>(args?: Prisma.Subset<T, InstallationRequestCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], InstallationRequestCountAggregateOutputType> : number>;
574
+ /**
575
+ * Allows you to perform aggregations operations on a InstallationRequest.
576
+ * Note, that providing `undefined` is treated as the value not being there.
577
+ * Read more here: https://pris.ly/d/null-undefined
578
+ * @param {InstallationRequestAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
579
+ * @example
580
+ * // Ordered by age ascending
581
+ * // Where email contains prisma.io
582
+ * // Limited to the 10 users
583
+ * const aggregations = await prisma.user.aggregate({
584
+ * _avg: {
585
+ * age: true,
586
+ * },
587
+ * where: {
588
+ * email: {
589
+ * contains: "prisma.io",
590
+ * },
591
+ * },
592
+ * orderBy: {
593
+ * age: "asc",
594
+ * },
595
+ * take: 10,
596
+ * })
597
+ **/
598
+ aggregate<T extends InstallationRequestAggregateArgs>(args: Prisma.Subset<T, InstallationRequestAggregateArgs>): Prisma.PrismaPromise<GetInstallationRequestAggregateType<T>>;
599
+ /**
600
+ * Group by InstallationRequest.
601
+ * Note, that providing `undefined` is treated as the value not being there.
602
+ * Read more here: https://pris.ly/d/null-undefined
603
+ * @param {InstallationRequestGroupByArgs} args - Group by arguments.
604
+ * @example
605
+ * // Group by city, order by createdAt, get count
606
+ * const result = await prisma.user.groupBy({
607
+ * by: ['city', 'createdAt'],
608
+ * orderBy: {
609
+ * createdAt: true
610
+ * },
611
+ * _count: {
612
+ * _all: true
613
+ * },
614
+ * })
615
+ *
616
+ **/
617
+ groupBy<T extends InstallationRequestGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
618
+ orderBy: InstallationRequestGroupByArgs['orderBy'];
619
+ } : {
620
+ orderBy?: InstallationRequestGroupByArgs['orderBy'];
621
+ }, 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 ? {
622
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
623
+ Error,
624
+ 'Field ',
625
+ P,
626
+ ` in "having" needs to be provided in "by"`
627
+ ];
628
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
629
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
630
+ }[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 ? {} : {
631
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
632
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
633
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
634
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, InstallationRequestGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInstallationRequestGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
635
+ /**
636
+ * Fields of the InstallationRequest model
637
+ */
638
+ readonly fields: InstallationRequestFieldRefs;
639
+ }
640
+ /**
641
+ * The delegate class that acts as a "Promise-like" for InstallationRequest.
642
+ * Why is this prefixed with `Prisma__`?
643
+ * Because we want to prevent naming conflicts as mentioned in
644
+ * https://github.com/prisma/prisma-client-js/issues/707
645
+ */
646
+ export interface Prisma__InstallationRequestClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
647
+ readonly [Symbol.toStringTag]: "PrismaPromise";
648
+ /**
649
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
650
+ * @param onfulfilled The callback to execute when the Promise is resolved.
651
+ * @param onrejected The callback to execute when the Promise is rejected.
652
+ * @returns A Promise for the completion of which ever callback is executed.
653
+ */
654
+ 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>;
655
+ /**
656
+ * Attaches a callback for only the rejection of the Promise.
657
+ * @param onrejected The callback to execute when the Promise is rejected.
658
+ * @returns A Promise for the completion of the callback.
659
+ */
660
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
661
+ /**
662
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
663
+ * resolved value cannot be modified from the callback.
664
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
665
+ * @returns A Promise for the completion of the callback.
666
+ */
667
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
668
+ }
669
+ /**
670
+ * Fields of the InstallationRequest model
671
+ */
672
+ export interface InstallationRequestFieldRefs {
673
+ readonly requestId: Prisma.FieldRef<"InstallationRequest", 'String'>;
674
+ readonly kind: Prisma.FieldRef<"InstallationRequest", 'String'>;
675
+ readonly requestHash: Prisma.FieldRef<"InstallationRequest", 'String'>;
676
+ readonly fleetId: Prisma.FieldRef<"InstallationRequest", 'String'>;
677
+ readonly enabled: Prisma.FieldRef<"InstallationRequest", 'Boolean'>;
678
+ readonly at: Prisma.FieldRef<"InstallationRequest", 'DateTime'>;
679
+ }
680
+ /**
681
+ * InstallationRequest findUnique
682
+ */
683
+ export type InstallationRequestFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
684
+ /**
685
+ * Select specific fields to fetch from the InstallationRequest
686
+ */
687
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
688
+ /**
689
+ * Omit specific fields from the InstallationRequest
690
+ */
691
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
692
+ /**
693
+ * Filter, which InstallationRequest to fetch.
694
+ */
695
+ where: Prisma.InstallationRequestWhereUniqueInput;
696
+ };
697
+ /**
698
+ * InstallationRequest findUniqueOrThrow
699
+ */
700
+ export type InstallationRequestFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
701
+ /**
702
+ * Select specific fields to fetch from the InstallationRequest
703
+ */
704
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
705
+ /**
706
+ * Omit specific fields from the InstallationRequest
707
+ */
708
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
709
+ /**
710
+ * Filter, which InstallationRequest to fetch.
711
+ */
712
+ where: Prisma.InstallationRequestWhereUniqueInput;
713
+ };
714
+ /**
715
+ * InstallationRequest findFirst
716
+ */
717
+ export type InstallationRequestFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
718
+ /**
719
+ * Select specific fields to fetch from the InstallationRequest
720
+ */
721
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
722
+ /**
723
+ * Omit specific fields from the InstallationRequest
724
+ */
725
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
726
+ /**
727
+ * Filter, which InstallationRequest to fetch.
728
+ */
729
+ where?: Prisma.InstallationRequestWhereInput;
730
+ /**
731
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
732
+ *
733
+ * Determine the order of InstallationRequests to fetch.
734
+ */
735
+ orderBy?: Prisma.InstallationRequestOrderByWithRelationInput | Prisma.InstallationRequestOrderByWithRelationInput[];
736
+ /**
737
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
738
+ *
739
+ * Sets the position for searching for InstallationRequests.
740
+ */
741
+ cursor?: Prisma.InstallationRequestWhereUniqueInput;
742
+ /**
743
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
744
+ *
745
+ * Take `±n` InstallationRequests from the position of the cursor.
746
+ */
747
+ take?: number;
748
+ /**
749
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
750
+ *
751
+ * Skip the first `n` InstallationRequests.
752
+ */
753
+ skip?: number;
754
+ /**
755
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
756
+ *
757
+ * Filter by unique combinations of InstallationRequests.
758
+ */
759
+ distinct?: Prisma.InstallationRequestScalarFieldEnum | Prisma.InstallationRequestScalarFieldEnum[];
760
+ };
761
+ /**
762
+ * InstallationRequest findFirstOrThrow
763
+ */
764
+ export type InstallationRequestFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
765
+ /**
766
+ * Select specific fields to fetch from the InstallationRequest
767
+ */
768
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
769
+ /**
770
+ * Omit specific fields from the InstallationRequest
771
+ */
772
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
773
+ /**
774
+ * Filter, which InstallationRequest to fetch.
775
+ */
776
+ where?: Prisma.InstallationRequestWhereInput;
777
+ /**
778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
779
+ *
780
+ * Determine the order of InstallationRequests to fetch.
781
+ */
782
+ orderBy?: Prisma.InstallationRequestOrderByWithRelationInput | Prisma.InstallationRequestOrderByWithRelationInput[];
783
+ /**
784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
785
+ *
786
+ * Sets the position for searching for InstallationRequests.
787
+ */
788
+ cursor?: Prisma.InstallationRequestWhereUniqueInput;
789
+ /**
790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
791
+ *
792
+ * Take `±n` InstallationRequests from the position of the cursor.
793
+ */
794
+ take?: number;
795
+ /**
796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
797
+ *
798
+ * Skip the first `n` InstallationRequests.
799
+ */
800
+ skip?: number;
801
+ /**
802
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
803
+ *
804
+ * Filter by unique combinations of InstallationRequests.
805
+ */
806
+ distinct?: Prisma.InstallationRequestScalarFieldEnum | Prisma.InstallationRequestScalarFieldEnum[];
807
+ };
808
+ /**
809
+ * InstallationRequest findMany
810
+ */
811
+ export type InstallationRequestFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
812
+ /**
813
+ * Select specific fields to fetch from the InstallationRequest
814
+ */
815
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
816
+ /**
817
+ * Omit specific fields from the InstallationRequest
818
+ */
819
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
820
+ /**
821
+ * Filter, which InstallationRequests to fetch.
822
+ */
823
+ where?: Prisma.InstallationRequestWhereInput;
824
+ /**
825
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
826
+ *
827
+ * Determine the order of InstallationRequests to fetch.
828
+ */
829
+ orderBy?: Prisma.InstallationRequestOrderByWithRelationInput | Prisma.InstallationRequestOrderByWithRelationInput[];
830
+ /**
831
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
832
+ *
833
+ * Sets the position for listing InstallationRequests.
834
+ */
835
+ cursor?: Prisma.InstallationRequestWhereUniqueInput;
836
+ /**
837
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
838
+ *
839
+ * Take `±n` InstallationRequests from the position of the cursor.
840
+ */
841
+ take?: number;
842
+ /**
843
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
844
+ *
845
+ * Skip the first `n` InstallationRequests.
846
+ */
847
+ skip?: number;
848
+ /**
849
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
850
+ *
851
+ * Filter by unique combinations of InstallationRequests.
852
+ */
853
+ distinct?: Prisma.InstallationRequestScalarFieldEnum | Prisma.InstallationRequestScalarFieldEnum[];
854
+ };
855
+ /**
856
+ * InstallationRequest create
857
+ */
858
+ export type InstallationRequestCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
859
+ /**
860
+ * Select specific fields to fetch from the InstallationRequest
861
+ */
862
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
863
+ /**
864
+ * Omit specific fields from the InstallationRequest
865
+ */
866
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
867
+ /**
868
+ * The data needed to create a InstallationRequest.
869
+ */
870
+ data: Prisma.XOR<Prisma.InstallationRequestCreateInput, Prisma.InstallationRequestUncheckedCreateInput>;
871
+ };
872
+ /**
873
+ * InstallationRequest createMany
874
+ */
875
+ export type InstallationRequestCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
876
+ /**
877
+ * The data used to create many InstallationRequests.
878
+ */
879
+ data: Prisma.InstallationRequestCreateManyInput | Prisma.InstallationRequestCreateManyInput[];
880
+ skipDuplicates?: boolean;
881
+ };
882
+ /**
883
+ * InstallationRequest createManyAndReturn
884
+ */
885
+ export type InstallationRequestCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
886
+ /**
887
+ * Select specific fields to fetch from the InstallationRequest
888
+ */
889
+ select?: Prisma.InstallationRequestSelectCreateManyAndReturn<ExtArgs> | null;
890
+ /**
891
+ * Omit specific fields from the InstallationRequest
892
+ */
893
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
894
+ /**
895
+ * The data used to create many InstallationRequests.
896
+ */
897
+ data: Prisma.InstallationRequestCreateManyInput | Prisma.InstallationRequestCreateManyInput[];
898
+ skipDuplicates?: boolean;
899
+ };
900
+ /**
901
+ * InstallationRequest update
902
+ */
903
+ export type InstallationRequestUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
904
+ /**
905
+ * Select specific fields to fetch from the InstallationRequest
906
+ */
907
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
908
+ /**
909
+ * Omit specific fields from the InstallationRequest
910
+ */
911
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
912
+ /**
913
+ * The data needed to update a InstallationRequest.
914
+ */
915
+ data: Prisma.XOR<Prisma.InstallationRequestUpdateInput, Prisma.InstallationRequestUncheckedUpdateInput>;
916
+ /**
917
+ * Choose, which InstallationRequest to update.
918
+ */
919
+ where: Prisma.InstallationRequestWhereUniqueInput;
920
+ };
921
+ /**
922
+ * InstallationRequest updateMany
923
+ */
924
+ export type InstallationRequestUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
925
+ /**
926
+ * The data used to update InstallationRequests.
927
+ */
928
+ data: Prisma.XOR<Prisma.InstallationRequestUpdateManyMutationInput, Prisma.InstallationRequestUncheckedUpdateManyInput>;
929
+ /**
930
+ * Filter which InstallationRequests to update
931
+ */
932
+ where?: Prisma.InstallationRequestWhereInput;
933
+ /**
934
+ * Limit how many InstallationRequests to update.
935
+ */
936
+ limit?: number;
937
+ };
938
+ /**
939
+ * InstallationRequest updateManyAndReturn
940
+ */
941
+ export type InstallationRequestUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
942
+ /**
943
+ * Select specific fields to fetch from the InstallationRequest
944
+ */
945
+ select?: Prisma.InstallationRequestSelectUpdateManyAndReturn<ExtArgs> | null;
946
+ /**
947
+ * Omit specific fields from the InstallationRequest
948
+ */
949
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
950
+ /**
951
+ * The data used to update InstallationRequests.
952
+ */
953
+ data: Prisma.XOR<Prisma.InstallationRequestUpdateManyMutationInput, Prisma.InstallationRequestUncheckedUpdateManyInput>;
954
+ /**
955
+ * Filter which InstallationRequests to update
956
+ */
957
+ where?: Prisma.InstallationRequestWhereInput;
958
+ /**
959
+ * Limit how many InstallationRequests to update.
960
+ */
961
+ limit?: number;
962
+ };
963
+ /**
964
+ * InstallationRequest upsert
965
+ */
966
+ export type InstallationRequestUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ /**
968
+ * Select specific fields to fetch from the InstallationRequest
969
+ */
970
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
971
+ /**
972
+ * Omit specific fields from the InstallationRequest
973
+ */
974
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
975
+ /**
976
+ * The filter to search for the InstallationRequest to update in case it exists.
977
+ */
978
+ where: Prisma.InstallationRequestWhereUniqueInput;
979
+ /**
980
+ * In case the InstallationRequest found by the `where` argument doesn't exist, create a new InstallationRequest with this data.
981
+ */
982
+ create: Prisma.XOR<Prisma.InstallationRequestCreateInput, Prisma.InstallationRequestUncheckedCreateInput>;
983
+ /**
984
+ * In case the InstallationRequest was found with the provided `where` argument, update it with this data.
985
+ */
986
+ update: Prisma.XOR<Prisma.InstallationRequestUpdateInput, Prisma.InstallationRequestUncheckedUpdateInput>;
987
+ };
988
+ /**
989
+ * InstallationRequest delete
990
+ */
991
+ export type InstallationRequestDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
992
+ /**
993
+ * Select specific fields to fetch from the InstallationRequest
994
+ */
995
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
996
+ /**
997
+ * Omit specific fields from the InstallationRequest
998
+ */
999
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
1000
+ /**
1001
+ * Filter which InstallationRequest to delete.
1002
+ */
1003
+ where: Prisma.InstallationRequestWhereUniqueInput;
1004
+ };
1005
+ /**
1006
+ * InstallationRequest deleteMany
1007
+ */
1008
+ export type InstallationRequestDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1009
+ /**
1010
+ * Filter which InstallationRequests to delete
1011
+ */
1012
+ where?: Prisma.InstallationRequestWhereInput;
1013
+ /**
1014
+ * Limit how many InstallationRequests to delete.
1015
+ */
1016
+ limit?: number;
1017
+ };
1018
+ /**
1019
+ * InstallationRequest without action
1020
+ */
1021
+ export type InstallationRequestDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1022
+ /**
1023
+ * Select specific fields to fetch from the InstallationRequest
1024
+ */
1025
+ select?: Prisma.InstallationRequestSelect<ExtArgs> | null;
1026
+ /**
1027
+ * Omit specific fields from the InstallationRequest
1028
+ */
1029
+ omit?: Prisma.InstallationRequestOmit<ExtArgs> | null;
1030
+ };