@wardby/cli 0.5.3 → 0.6.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 (370) hide show
  1. package/.env.example +33 -0
  2. package/README.md +25 -14
  3. package/dist/claude-coding-worker/context.d.ts +22 -0
  4. package/dist/claude-coding-worker/context.js +92 -0
  5. package/dist/claude-coding-worker/driver.d.ts +7 -1
  6. package/dist/claude-coding-worker/driver.js +38 -5
  7. package/dist/claude-coding-worker/sdk.js +13 -4
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +5 -2
  10. package/dist/cli-native-mode.d.ts +9 -0
  11. package/dist/cli-native-mode.js +20 -0
  12. package/dist/cli.d.ts +3 -1
  13. package/dist/cli.js +141 -5
  14. package/dist/coding/claude-context.d.ts +45 -0
  15. package/dist/coding/claude-context.js +434 -0
  16. package/dist/coding/profile.d.ts +12 -0
  17. package/dist/coding/profile.js +6 -0
  18. package/dist/coding/protocol.d.ts +104 -0
  19. package/dist/coding/protocol.js +87 -3
  20. package/dist/coding-worker/artifact.d.ts +8 -0
  21. package/dist/coding-worker/artifact.js +2 -2
  22. package/dist/coding-worker/driver.js +2 -0
  23. package/dist/coding-worker/sdk.d.ts +6 -0
  24. package/dist/coding-worker/sdk.js +1 -0
  25. package/dist/coding-worker/skills.d.ts +23 -0
  26. package/dist/coding-worker/skills.js +117 -0
  27. package/dist/coding-worker/types.d.ts +2 -0
  28. package/dist/config/github-allowed-accounts.d.ts +15 -0
  29. package/dist/config/github-allowed-accounts.js +36 -0
  30. package/dist/config/low-power.d.ts +12 -0
  31. package/dist/config/low-power.js +18 -0
  32. package/dist/config/mobile.d.ts +12 -0
  33. package/dist/config/mobile.js +18 -0
  34. package/dist/config/providers.d.ts +53 -0
  35. package/dist/config/providers.js +92 -6
  36. package/dist/core/db.d.ts +16 -6
  37. package/dist/core/db.js +12 -10
  38. package/dist/core/dispatch.d.ts +11 -0
  39. package/dist/core/dispatch.js +36 -1
  40. package/dist/core/engine-native.js +9 -5
  41. package/dist/core/host-events.d.ts +49 -3
  42. package/dist/core/host-events.js +289 -15
  43. package/dist/core/issue-bridge.js +42 -2
  44. package/dist/core/issue-events.js +12 -1
  45. package/dist/core/issue-status.js +14 -3
  46. package/dist/core/merge-order-check.d.ts +129 -0
  47. package/dist/core/merge-order-check.js +336 -0
  48. package/dist/core/notification-dispatcher.d.ts +70 -0
  49. package/dist/core/notification-dispatcher.js +368 -0
  50. package/dist/core/notification-templates.d.ts +25 -0
  51. package/dist/core/notification-templates.js +105 -0
  52. package/dist/core/notifications.d.ts +10 -0
  53. package/dist/core/notifications.js +38 -0
  54. package/dist/core/pg-auth.d.ts +22 -0
  55. package/dist/core/pg-auth.js +152 -0
  56. package/dist/core/power-composition.d.ts +16 -0
  57. package/dist/core/power-composition.js +37 -0
  58. package/dist/core/power-idle.d.ts +14 -0
  59. package/dist/core/power-idle.js +30 -0
  60. package/dist/core/power.d.ts +71 -0
  61. package/dist/core/power.js +202 -0
  62. package/dist/core/reconciler.d.ts +4 -2
  63. package/dist/core/reconciler.js +29 -5
  64. package/dist/core/related-pull-requests.d.ts +48 -4
  65. package/dist/core/related-pull-requests.js +113 -11
  66. package/dist/core/repo-access.d.ts +15 -0
  67. package/dist/core/repo-access.js +66 -0
  68. package/dist/core/review-fix.d.ts +37 -0
  69. package/dist/core/review-fix.js +207 -6
  70. package/dist/core/review-host-tools.d.ts +20 -0
  71. package/dist/core/review-host-tools.js +58 -2
  72. package/dist/core/runner.d.ts +336 -3
  73. package/dist/core/runner.js +894 -317
  74. package/dist/core/secret-broker-config.d.ts +103 -0
  75. package/dist/core/secret-broker-config.js +112 -0
  76. package/dist/core/secrets.d.ts +39 -4
  77. package/dist/core/secrets.js +148 -40
  78. package/dist/core/workflow-event-recorder.d.ts +14 -0
  79. package/dist/core/workflow-event-recorder.js +120 -0
  80. package/dist/core/workflow-events.d.ts +82 -0
  81. package/dist/core/workflow-events.js +44 -0
  82. package/dist/core/workflow-run-events.d.ts +16 -0
  83. package/dist/core/workflow-run-events.js +40 -0
  84. package/dist/generated/prisma/browser.d.ts +58 -0
  85. package/dist/generated/prisma/client.d.ts +58 -0
  86. package/dist/generated/prisma/commonInputTypes.d.ts +150 -0
  87. package/dist/generated/prisma/enums.d.ts +27 -0
  88. package/dist/generated/prisma/enums.js +23 -0
  89. package/dist/generated/prisma/internal/class.d.ts +88 -0
  90. package/dist/generated/prisma/internal/class.js +4 -4
  91. package/dist/generated/prisma/internal/prismaNamespace.d.ts +772 -1
  92. package/dist/generated/prisma/internal/prismaNamespace.js +135 -4
  93. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +139 -0
  94. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -4
  95. package/dist/generated/prisma/models/Agent.d.ts +360 -1
  96. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +73 -1
  97. package/dist/generated/prisma/models/CodingRun.d.ts +205 -1
  98. package/dist/generated/prisma/models/DeferredReview.d.ts +78 -1
  99. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +1675 -0
  100. package/dist/generated/prisma/models/NativeGatewayCall.js +1 -0
  101. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +1517 -0
  102. package/dist/generated/prisma/models/NativeGatewaySession.js +1 -0
  103. package/dist/generated/prisma/models/NativeWarmWorker.d.ts +1296 -0
  104. package/dist/generated/prisma/models/NativeWarmWorker.js +1 -0
  105. package/dist/generated/prisma/models/NotificationChannel.d.ts +1543 -0
  106. package/dist/generated/prisma/models/NotificationChannel.js +1 -0
  107. package/dist/generated/prisma/models/NotificationDelivery.d.ts +1502 -0
  108. package/dist/generated/prisma/models/NotificationDelivery.js +1 -0
  109. package/dist/generated/prisma/models/NotificationThread.d.ts +1090 -0
  110. package/dist/generated/prisma/models/NotificationThread.js +1 -0
  111. package/dist/generated/prisma/models/Run.d.ts +826 -1
  112. package/dist/generated/prisma/models/RunHostCheck.d.ts +36 -1
  113. package/dist/generated/prisma/models/Secret.d.ts +37 -1
  114. package/dist/generated/prisma/models/SecretBrokerChange.d.ts +1101 -0
  115. package/dist/generated/prisma/models/SecretBrokerChange.js +1 -0
  116. package/dist/generated/prisma/models/WorkflowEvent.d.ts +1422 -0
  117. package/dist/generated/prisma/models/WorkflowEvent.js +1 -0
  118. package/dist/generated/prisma/models.d.ts +8 -0
  119. package/dist/help/build.js +4 -2
  120. package/dist/help/catalog.d.ts +1 -1
  121. package/dist/help/catalog.js +31 -6
  122. package/dist/help-index.json +1363 -176
  123. package/dist/import/create.js +17 -0
  124. package/dist/import/neutral-schema.d.ts +6 -2
  125. package/dist/import/neutral-schema.js +2 -0
  126. package/dist/mcp/auth/access.d.ts +1 -0
  127. package/dist/mcp/auth/repo-authorization.js +14 -0
  128. package/dist/mcp/auth/resource-server.d.ts +2 -1
  129. package/dist/mcp/auth/resource-server.js +7 -2
  130. package/dist/mcp/auth/self-hosted/browser.d.ts +1 -1
  131. package/dist/mcp/auth/self-hosted/browser.js +19 -6
  132. package/dist/mcp/context.d.ts +6 -0
  133. package/dist/mcp/host-events/github-ingress.d.ts +23 -1
  134. package/dist/mcp/host-events/github-ingress.js +68 -0
  135. package/dist/mcp/index.d.ts +13 -0
  136. package/dist/mcp/index.js +59 -10
  137. package/dist/mcp/tools/agents.js +82 -11
  138. package/dist/mcp/tools/notification-channels.d.ts +2 -0
  139. package/dist/mcp/tools/notification-channels.js +293 -0
  140. package/dist/mcp/tools/power.d.ts +2 -0
  141. package/dist/mcp/tools/power.js +77 -0
  142. package/dist/mcp/tools/runs.d.ts +0 -6
  143. package/dist/mcp/tools/runs.js +7 -2
  144. package/dist/mcp/tools/secret-broker-compat.d.ts +12 -0
  145. package/dist/mcp/tools/secret-broker-compat.js +23 -0
  146. package/dist/mcp/tools/secret-elicitation-form.d.ts +22 -2
  147. package/dist/mcp/tools/secret-elicitation-form.js +200 -10
  148. package/dist/mcp/tools/secret-elicitation-server.js +8 -1
  149. package/dist/mcp/tools/secret-elicitation.d.ts +38 -3
  150. package/dist/mcp/tools/secret-elicitation.js +110 -12
  151. package/dist/mcp/tools/secrets.js +184 -7
  152. package/dist/mcp/tools/tools.d.ts +1 -1
  153. package/dist/mcp/tools/tools.js +22 -2
  154. package/dist/native-worker/composition.d.ts +23 -0
  155. package/dist/native-worker/composition.js +77 -0
  156. package/dist/native-worker/docker-isolation.d.ts +65 -0
  157. package/dist/native-worker/docker-isolation.js +183 -0
  158. package/dist/native-worker/docker-launcher.d.ts +74 -0
  159. package/dist/native-worker/docker-launcher.js +237 -0
  160. package/dist/native-worker/gateway-server.d.ts +39 -0
  161. package/dist/native-worker/gateway-server.js +315 -0
  162. package/dist/native-worker/gateway.d.ts +44 -0
  163. package/dist/native-worker/gateway.js +197 -0
  164. package/dist/native-worker/http-server.d.ts +22 -0
  165. package/dist/native-worker/http-server.js +109 -0
  166. package/dist/native-worker/http-transport.d.ts +17 -0
  167. package/dist/native-worker/http-transport.js +88 -0
  168. package/dist/native-worker/kubernetes-isolation.d.ts +90 -0
  169. package/dist/native-worker/kubernetes-isolation.js +218 -0
  170. package/dist/native-worker/kubernetes-launcher.d.ts +102 -0
  171. package/dist/native-worker/kubernetes-launcher.js +335 -0
  172. package/dist/native-worker/launch.d.ts +45 -0
  173. package/dist/native-worker/launch.js +44 -0
  174. package/dist/native-worker/ledger.d.ts +109 -0
  175. package/dist/native-worker/ledger.js +192 -0
  176. package/dist/native-worker/loopback.d.ts +12 -0
  177. package/dist/native-worker/loopback.js +49 -0
  178. package/dist/native-worker/main.d.ts +7 -0
  179. package/dist/native-worker/main.js +74 -0
  180. package/dist/native-worker/protocol.d.ts +744 -0
  181. package/dist/native-worker/protocol.js +200 -0
  182. package/dist/native-worker/sandbox-executor.d.ts +68 -0
  183. package/dist/native-worker/sandbox-executor.js +210 -0
  184. package/dist/native-worker/stdio.d.ts +29 -0
  185. package/dist/native-worker/stdio.js +188 -0
  186. package/dist/native-worker/warm-delivery.d.ts +16 -0
  187. package/dist/native-worker/warm-delivery.js +33 -0
  188. package/dist/native-worker/warm-pool-ledger.d.ts +39 -0
  189. package/dist/native-worker/warm-pool-ledger.js +73 -0
  190. package/dist/native-worker/warm-pool.d.ts +107 -0
  191. package/dist/native-worker/warm-pool.js +283 -0
  192. package/dist/native-worker/worker.d.ts +17 -0
  193. package/dist/native-worker/worker.js +115 -0
  194. package/dist/providers/auth/authorization-server.d.ts +3 -0
  195. package/dist/providers/auth/index.js +2 -0
  196. package/dist/providers/auth/self-hosted.d.ts +13 -1
  197. package/dist/providers/auth/self-hosted.js +54 -4
  198. package/dist/providers/chat/fake.d.ts +46 -0
  199. package/dist/providers/chat/fake.js +39 -0
  200. package/dist/providers/chat/index.d.ts +4 -0
  201. package/dist/providers/chat/index.js +8 -0
  202. package/dist/providers/chat/slack.d.ts +37 -0
  203. package/dist/providers/chat/slack.js +105 -0
  204. package/dist/providers/chat/types.d.ts +42 -0
  205. package/dist/providers/chat/types.js +19 -0
  206. package/dist/providers/engine/types.d.ts +19 -0
  207. package/dist/providers/engine/types.js +22 -0
  208. package/dist/providers/executor/composition.d.ts +24 -1
  209. package/dist/providers/executor/composition.js +39 -6
  210. package/dist/providers/executor/container.d.ts +24 -1
  211. package/dist/providers/executor/container.js +101 -11
  212. package/dist/providers/executor/dbos.d.ts +42 -0
  213. package/dist/providers/executor/dbos.js +118 -12
  214. package/dist/providers/executor/deferred.d.ts +56 -0
  215. package/dist/providers/executor/deferred.js +119 -0
  216. package/dist/providers/executor/routing.d.ts +37 -10
  217. package/dist/providers/executor/routing.js +73 -32
  218. package/dist/providers/executor/types.d.ts +12 -0
  219. package/dist/providers/jobs/docker.js +3 -3
  220. package/dist/providers/jobs/fake-kubernetes-api.d.ts +21 -2
  221. package/dist/providers/jobs/fake-kubernetes-api.js +42 -1
  222. package/dist/providers/jobs/kubernetes-api.d.ts +17 -1
  223. package/dist/providers/jobs/kubernetes-api.js +7 -0
  224. package/dist/providers/jobs/kubernetes-client.d.ts +10 -1
  225. package/dist/providers/jobs/kubernetes-client.js +52 -3
  226. package/dist/providers/jobs/kubernetes-dry-run-fixture.d.ts +6 -1
  227. package/dist/providers/jobs/kubernetes-dry-run-fixture.js +6 -3
  228. package/dist/providers/jobs/kubernetes-isolation.d.ts +3 -1
  229. package/dist/providers/jobs/kubernetes-isolation.js +6 -0
  230. package/dist/providers/jobs/kubernetes-platform.d.ts +4 -1
  231. package/dist/providers/jobs/kubernetes-platform.js +38 -1
  232. package/dist/providers/jobs/kubernetes-preflight.d.ts +2 -1
  233. package/dist/providers/jobs/kubernetes-preflight.js +4 -2
  234. package/dist/providers/jobs/kubernetes.d.ts +36 -1
  235. package/dist/providers/jobs/kubernetes.js +74 -4
  236. package/dist/providers/jobs/metadata-probes.d.ts +11 -0
  237. package/dist/providers/jobs/metadata-probes.js +13 -0
  238. package/dist/providers/jobs/types.d.ts +9 -0
  239. package/dist/providers/review-host/github.d.ts +11 -1
  240. package/dist/providers/review-host/github.js +50 -0
  241. package/dist/providers/review-host/types.d.ts +23 -0
  242. package/dist/providers/vcs/github.d.ts +32 -6
  243. package/dist/providers/vcs/github.js +74 -16
  244. package/dist/quickstart/coding-seed.d.ts +10 -3
  245. package/dist/quickstart/coding-seed.js +74 -3
  246. package/dist/quickstart/images.d.ts +2 -0
  247. package/dist/quickstart/images.js +7 -1
  248. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  249. package/dist/quickstart/reviewer-prompt.js +1 -1
  250. package/dist/quickstart-images.json +1 -1
  251. package/dist/sandbox/brokered-fetch.d.ts +23 -0
  252. package/dist/sandbox/brokered-fetch.js +37 -0
  253. package/dist/sandbox/host-functions.d.ts +34 -0
  254. package/dist/sandbox/host-functions.js +144 -80
  255. package/dist/sandbox/prelude.js +7 -1
  256. package/dist/sandbox/run-in-sandbox.d.ts +19 -0
  257. package/dist/sandbox/run-in-sandbox.js +28 -10
  258. package/dist/sandbox/safe-fetch.d.ts +2 -0
  259. package/dist/sandbox/safe-fetch.js +3 -1
  260. package/dist/sandbox/secret-broker-sigv4.d.ts +2 -0
  261. package/dist/sandbox/secret-broker-sigv4.js +49 -0
  262. package/dist/sandbox/secret-broker.d.ts +34 -0
  263. package/dist/sandbox/secret-broker.js +162 -0
  264. package/dist/sandbox/user-tool.d.ts +14 -0
  265. package/dist/sandbox/user-tool.js +32 -0
  266. package/dist/serve.js +18 -0
  267. package/dist/viewer/api-schema.d.ts +210 -14
  268. package/dist/viewer/api-schema.js +22 -0
  269. package/dist/viewer/build-schemas.js +4 -1
  270. package/dist/viewer/event-bus.d.ts +6 -0
  271. package/dist/viewer/event-bus.js +16 -7
  272. package/dist/viewer/graph.d.ts +5 -2
  273. package/dist/viewer/graph.js +7 -2
  274. package/dist/viewer/http.d.ts +0 -1
  275. package/dist/viewer/http.js +2 -2
  276. package/dist/viewer/infra.js +25 -2
  277. package/dist/viewer/limits.d.ts +4 -0
  278. package/dist/viewer/limits.js +4 -0
  279. package/dist/viewer/openapi.d.ts +15 -0
  280. package/dist/viewer/openapi.js +172 -0
  281. package/docs/README.md +7 -0
  282. package/docs/agent-recipes.md +57 -8
  283. package/docs/architecture-runtime.md +16 -1
  284. package/docs/code-review-agents.md +139 -5
  285. package/docs/coding-agent-setup.md +113 -5
  286. package/docs/coding-packages.md +4 -2
  287. package/docs/coding-services.md +3 -1
  288. package/docs/coding-worker-byo-images.md +198 -6
  289. package/docs/coding-worker-isolation.md +68 -14
  290. package/docs/getting-started-gke.md +225 -9
  291. package/docs/getting-started-identity-provider.md +21 -10
  292. package/docs/getting-started.md +5 -4
  293. package/docs/jira-agents.md +5 -1
  294. package/docs/native-sandbox.md +635 -0
  295. package/docs/release-verification.md +9 -0
  296. package/docs/security-deployment.md +113 -12
  297. package/docs/slack-notifications.md +252 -0
  298. package/docs/tool-secrets.md +252 -0
  299. package/docs/viewer-api.md +46 -5
  300. package/docs/viewer-api.openapi.yml +1404 -0
  301. package/help/admin-viewer.md +6 -2
  302. package/help/agent-recipes.md +27 -0
  303. package/help/architecture-agent.md +1 -1
  304. package/help/brokered-secrets.md +79 -0
  305. package/help/build-claude-code-image.md +131 -0
  306. package/help/build-worker-image.md +3 -6
  307. package/help/code-review-agents.md +68 -6
  308. package/help/deploy-gke.md +8 -1
  309. package/help/deployment-targets.md +25 -14
  310. package/help/errors/coding-provider-not-configured.md +2 -2
  311. package/help/errors/database-auth-invalid.md +28 -0
  312. package/help/errors/github-account-not-allowed.md +25 -0
  313. package/help/errors/low-power-disabled.md +29 -0
  314. package/help/errors/low-power-scale-forbidden.md +35 -0
  315. package/help/errors/low-power-wake-timeout.md +30 -0
  316. package/help/errors/mobile-disabled.md +31 -0
  317. package/help/errors/native-sandbox-capacity.md +22 -0
  318. package/help/errors/native-sandbox-deadline-exceeded.md +19 -0
  319. package/help/errors/native-sandbox-docker-failed.md +20 -0
  320. package/help/errors/native-sandbox-gateway-unavailable.md +21 -0
  321. package/help/errors/native-sandbox-image-not-pinned.md +19 -0
  322. package/help/errors/native-sandbox-isolation-mismatch.md +20 -0
  323. package/help/errors/native-sandbox-network-unenforced.md +22 -0
  324. package/help/errors/native-sandbox-requires-catalog.md +31 -0
  325. package/help/errors/native-sandbox-unavailable.md +19 -0
  326. package/help/errors/native-sandbox-warm-delivery-failed.md +21 -0
  327. package/help/errors/native-sandbox-worker-exited.md +20 -0
  328. package/help/errors/native-sandbox-worker-lost.md +20 -0
  329. package/help/errors/native-sandbox-worker-unready.md +22 -0
  330. package/help/errors/secret-broker-body-invalid.md +26 -0
  331. package/help/errors/secret-broker-changed.md +20 -0
  332. package/help/errors/secret-broker-config-invalid.md +30 -0
  333. package/help/errors/secret-broker-conflict.md +27 -0
  334. package/help/errors/secret-broker-destination-denied.md +28 -0
  335. package/help/errors/secret-broker-value-invalid.md +28 -0
  336. package/help/errors/secret-brokered.md +24 -0
  337. package/help/errors/secret-not-brokered.md +25 -0
  338. package/help/errors/slack-auth-failed.md +48 -0
  339. package/help/errors/slack-channel-unreachable.md +39 -0
  340. package/help/errors/slack-not-configured.md +33 -0
  341. package/help/getting-started.md +4 -5
  342. package/help/github.md +18 -1
  343. package/help/identity-and-access.md +5 -1
  344. package/help/local-repositories.md +2 -3
  345. package/help/low-power-mode.md +125 -0
  346. package/help/merge-order-check.md +117 -0
  347. package/help/mobile-app.md +54 -0
  348. package/help/native-sandbox.md +136 -0
  349. package/help/observability.md +8 -0
  350. package/help/related-pull-requests.md +70 -9
  351. package/help/repo-instructions-and-skills.md +91 -0
  352. package/help/review-fix-rounds.md +10 -0
  353. package/help/slack-notifications.md +62 -0
  354. package/help/troubleshooting/coding-workers.md +21 -0
  355. package/package.json +11 -4
  356. package/prisma/migrations/20261009000003_native_execution_mode/migration.sql +12 -0
  357. package/prisma/migrations/20261009000004_native_gateway_ledger/migration.sql +65 -0
  358. package/prisma/migrations/20261009000005_native_gateway_call_child_agent/migration.sql +5 -0
  359. package/prisma/migrations/20261009000006_run_deferred_start_stop/migration.sql +14 -0
  360. package/prisma/migrations/20261009000007_native_gateway_network_ready/migration.sql +5 -0
  361. package/prisma/migrations/20261010000001_workflow_notifications/migration.sql +99 -0
  362. package/prisma/migrations/20261011000001_native_gateway_session_status_index/migration.sql +2 -0
  363. package/prisma/migrations/20261012000001_native_warm_worker/migration.sql +32 -0
  364. package/prisma/migrations/20261013000001_coding_run_merge_order/migration.sql +2 -0
  365. package/prisma/migrations/20261013000001_secret_broker/migration.sql +17 -0
  366. package/prisma/migrations/20261013000002_deferred_review_request/migration.sql +4 -0
  367. package/prisma/migrations/20261014000000_repo_skills/migration.sql +15 -0
  368. package/prisma/migrations/20261015000001_coding_run_merge_order_index/migration.sql +2 -0
  369. package/prisma/migrations/20261015000002_no_change_rereview/migration.sql +2 -0
  370. package/prisma/schema.prisma +362 -91
@@ -0,0 +1,1517 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model NativeGatewaySession
6
+ * The trusted gateway's record of one sandbox-mode native run (native
7
+ * sandbox phase 3): the worker authenticates with a capability whose hash is
8
+ * stored here (the raw token is never persisted), and any control-plane
9
+ * replica can serve it from this row. `snapshot` is what the run loaded --
10
+ * the worker's input plus trusted-only capabilities and links -- and never
11
+ * holds a secret value.
12
+ */
13
+ export type NativeGatewaySessionModel = runtime.Types.Result.DefaultSelection<Prisma.$NativeGatewaySessionPayload>;
14
+ export type AggregateNativeGatewaySession = {
15
+ _count: NativeGatewaySessionCountAggregateOutputType | null;
16
+ _avg: NativeGatewaySessionAvgAggregateOutputType | null;
17
+ _sum: NativeGatewaySessionSumAggregateOutputType | null;
18
+ _min: NativeGatewaySessionMinAggregateOutputType | null;
19
+ _max: NativeGatewaySessionMaxAggregateOutputType | null;
20
+ };
21
+ export type NativeGatewaySessionAvgAggregateOutputType = {
22
+ budgetUsd: runtime.Decimal | null;
23
+ };
24
+ export type NativeGatewaySessionSumAggregateOutputType = {
25
+ budgetUsd: runtime.Decimal | null;
26
+ };
27
+ export type NativeGatewaySessionMinAggregateOutputType = {
28
+ id: string | null;
29
+ runId: string | null;
30
+ capabilityHash: string | null;
31
+ status: $Enums.NativeGatewaySessionStatus | null;
32
+ deadlineAt: Date | null;
33
+ budgetUsd: runtime.Decimal | null;
34
+ budgetExhaustedAt: Date | null;
35
+ networkReadyAt: Date | null;
36
+ createdAt: Date | null;
37
+ updatedAt: Date | null;
38
+ };
39
+ export type NativeGatewaySessionMaxAggregateOutputType = {
40
+ id: string | null;
41
+ runId: string | null;
42
+ capabilityHash: string | null;
43
+ status: $Enums.NativeGatewaySessionStatus | null;
44
+ deadlineAt: Date | null;
45
+ budgetUsd: runtime.Decimal | null;
46
+ budgetExhaustedAt: Date | null;
47
+ networkReadyAt: Date | null;
48
+ createdAt: Date | null;
49
+ updatedAt: Date | null;
50
+ };
51
+ export type NativeGatewaySessionCountAggregateOutputType = {
52
+ id: number;
53
+ runId: number;
54
+ capabilityHash: number;
55
+ status: number;
56
+ deadlineAt: number;
57
+ budgetUsd: number;
58
+ snapshot: number;
59
+ budgetExhaustedAt: number;
60
+ networkReadyAt: number;
61
+ createdAt: number;
62
+ updatedAt: number;
63
+ _all: number;
64
+ };
65
+ export type NativeGatewaySessionAvgAggregateInputType = {
66
+ budgetUsd?: true;
67
+ };
68
+ export type NativeGatewaySessionSumAggregateInputType = {
69
+ budgetUsd?: true;
70
+ };
71
+ export type NativeGatewaySessionMinAggregateInputType = {
72
+ id?: true;
73
+ runId?: true;
74
+ capabilityHash?: true;
75
+ status?: true;
76
+ deadlineAt?: true;
77
+ budgetUsd?: true;
78
+ budgetExhaustedAt?: true;
79
+ networkReadyAt?: true;
80
+ createdAt?: true;
81
+ updatedAt?: true;
82
+ };
83
+ export type NativeGatewaySessionMaxAggregateInputType = {
84
+ id?: true;
85
+ runId?: true;
86
+ capabilityHash?: true;
87
+ status?: true;
88
+ deadlineAt?: true;
89
+ budgetUsd?: true;
90
+ budgetExhaustedAt?: true;
91
+ networkReadyAt?: true;
92
+ createdAt?: true;
93
+ updatedAt?: true;
94
+ };
95
+ export type NativeGatewaySessionCountAggregateInputType = {
96
+ id?: true;
97
+ runId?: true;
98
+ capabilityHash?: true;
99
+ status?: true;
100
+ deadlineAt?: true;
101
+ budgetUsd?: true;
102
+ snapshot?: true;
103
+ budgetExhaustedAt?: true;
104
+ networkReadyAt?: true;
105
+ createdAt?: true;
106
+ updatedAt?: true;
107
+ _all?: true;
108
+ };
109
+ export type NativeGatewaySessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
110
+ /**
111
+ * Filter which NativeGatewaySession to aggregate.
112
+ */
113
+ where?: Prisma.NativeGatewaySessionWhereInput;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
116
+ *
117
+ * Determine the order of NativeGatewaySessions to fetch.
118
+ */
119
+ orderBy?: Prisma.NativeGatewaySessionOrderByWithRelationInput | Prisma.NativeGatewaySessionOrderByWithRelationInput[];
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
122
+ *
123
+ * Sets the start position
124
+ */
125
+ cursor?: Prisma.NativeGatewaySessionWhereUniqueInput;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
128
+ *
129
+ * Take `±n` NativeGatewaySessions from the position of the cursor.
130
+ */
131
+ take?: number;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
134
+ *
135
+ * Skip the first `n` NativeGatewaySessions.
136
+ */
137
+ skip?: number;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Count returned NativeGatewaySessions
142
+ **/
143
+ _count?: true | NativeGatewaySessionCountAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to average
148
+ **/
149
+ _avg?: NativeGatewaySessionAvgAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to sum
154
+ **/
155
+ _sum?: NativeGatewaySessionSumAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to find the minimum value
160
+ **/
161
+ _min?: NativeGatewaySessionMinAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to find the maximum value
166
+ **/
167
+ _max?: NativeGatewaySessionMaxAggregateInputType;
168
+ };
169
+ export type GetNativeGatewaySessionAggregateType<T extends NativeGatewaySessionAggregateArgs> = {
170
+ [P in keyof T & keyof AggregateNativeGatewaySession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateNativeGatewaySession[P]> : Prisma.GetScalarType<T[P], AggregateNativeGatewaySession[P]>;
171
+ };
172
+ export type NativeGatewaySessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
173
+ where?: Prisma.NativeGatewaySessionWhereInput;
174
+ orderBy?: Prisma.NativeGatewaySessionOrderByWithAggregationInput | Prisma.NativeGatewaySessionOrderByWithAggregationInput[];
175
+ by: Prisma.NativeGatewaySessionScalarFieldEnum[] | Prisma.NativeGatewaySessionScalarFieldEnum;
176
+ having?: Prisma.NativeGatewaySessionScalarWhereWithAggregatesInput;
177
+ take?: number;
178
+ skip?: number;
179
+ _count?: NativeGatewaySessionCountAggregateInputType | true;
180
+ _avg?: NativeGatewaySessionAvgAggregateInputType;
181
+ _sum?: NativeGatewaySessionSumAggregateInputType;
182
+ _min?: NativeGatewaySessionMinAggregateInputType;
183
+ _max?: NativeGatewaySessionMaxAggregateInputType;
184
+ };
185
+ export type NativeGatewaySessionGroupByOutputType = {
186
+ id: string;
187
+ runId: string;
188
+ capabilityHash: string;
189
+ status: $Enums.NativeGatewaySessionStatus;
190
+ deadlineAt: Date;
191
+ budgetUsd: runtime.Decimal;
192
+ snapshot: runtime.JsonValue;
193
+ budgetExhaustedAt: Date | null;
194
+ networkReadyAt: Date | null;
195
+ createdAt: Date;
196
+ updatedAt: Date;
197
+ _count: NativeGatewaySessionCountAggregateOutputType | null;
198
+ _avg: NativeGatewaySessionAvgAggregateOutputType | null;
199
+ _sum: NativeGatewaySessionSumAggregateOutputType | null;
200
+ _min: NativeGatewaySessionMinAggregateOutputType | null;
201
+ _max: NativeGatewaySessionMaxAggregateOutputType | null;
202
+ };
203
+ export type GetNativeGatewaySessionGroupByPayload<T extends NativeGatewaySessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<NativeGatewaySessionGroupByOutputType, T['by']> & {
204
+ [P in ((keyof T) & (keyof NativeGatewaySessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], NativeGatewaySessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], NativeGatewaySessionGroupByOutputType[P]>;
205
+ }>>;
206
+ export type NativeGatewaySessionWhereInput = {
207
+ AND?: Prisma.NativeGatewaySessionWhereInput | Prisma.NativeGatewaySessionWhereInput[];
208
+ OR?: Prisma.NativeGatewaySessionWhereInput[];
209
+ NOT?: Prisma.NativeGatewaySessionWhereInput | Prisma.NativeGatewaySessionWhereInput[];
210
+ id?: Prisma.StringFilter<"NativeGatewaySession"> | string;
211
+ runId?: Prisma.StringFilter<"NativeGatewaySession"> | string;
212
+ capabilityHash?: Prisma.StringFilter<"NativeGatewaySession"> | string;
213
+ status?: Prisma.EnumNativeGatewaySessionStatusFilter<"NativeGatewaySession"> | $Enums.NativeGatewaySessionStatus;
214
+ deadlineAt?: Prisma.DateTimeFilter<"NativeGatewaySession"> | Date | string;
215
+ budgetUsd?: Prisma.DecimalFilter<"NativeGatewaySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
216
+ snapshot?: Prisma.JsonFilter<"NativeGatewaySession">;
217
+ budgetExhaustedAt?: Prisma.DateTimeNullableFilter<"NativeGatewaySession"> | Date | string | null;
218
+ networkReadyAt?: Prisma.DateTimeNullableFilter<"NativeGatewaySession"> | Date | string | null;
219
+ createdAt?: Prisma.DateTimeFilter<"NativeGatewaySession"> | Date | string;
220
+ updatedAt?: Prisma.DateTimeFilter<"NativeGatewaySession"> | Date | string;
221
+ run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
222
+ calls?: Prisma.NativeGatewayCallListRelationFilter;
223
+ };
224
+ export type NativeGatewaySessionOrderByWithRelationInput = {
225
+ id?: Prisma.SortOrder;
226
+ runId?: Prisma.SortOrder;
227
+ capabilityHash?: Prisma.SortOrder;
228
+ status?: Prisma.SortOrder;
229
+ deadlineAt?: Prisma.SortOrder;
230
+ budgetUsd?: Prisma.SortOrder;
231
+ snapshot?: Prisma.SortOrder;
232
+ budgetExhaustedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
233
+ networkReadyAt?: Prisma.SortOrderInput | Prisma.SortOrder;
234
+ createdAt?: Prisma.SortOrder;
235
+ updatedAt?: Prisma.SortOrder;
236
+ run?: Prisma.RunOrderByWithRelationInput;
237
+ calls?: Prisma.NativeGatewayCallOrderByRelationAggregateInput;
238
+ };
239
+ export type NativeGatewaySessionWhereUniqueInput = Prisma.AtLeast<{
240
+ id?: string;
241
+ runId?: string;
242
+ capabilityHash?: string;
243
+ AND?: Prisma.NativeGatewaySessionWhereInput | Prisma.NativeGatewaySessionWhereInput[];
244
+ OR?: Prisma.NativeGatewaySessionWhereInput[];
245
+ NOT?: Prisma.NativeGatewaySessionWhereInput | Prisma.NativeGatewaySessionWhereInput[];
246
+ status?: Prisma.EnumNativeGatewaySessionStatusFilter<"NativeGatewaySession"> | $Enums.NativeGatewaySessionStatus;
247
+ deadlineAt?: Prisma.DateTimeFilter<"NativeGatewaySession"> | Date | string;
248
+ budgetUsd?: Prisma.DecimalFilter<"NativeGatewaySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
249
+ snapshot?: Prisma.JsonFilter<"NativeGatewaySession">;
250
+ budgetExhaustedAt?: Prisma.DateTimeNullableFilter<"NativeGatewaySession"> | Date | string | null;
251
+ networkReadyAt?: Prisma.DateTimeNullableFilter<"NativeGatewaySession"> | Date | string | null;
252
+ createdAt?: Prisma.DateTimeFilter<"NativeGatewaySession"> | Date | string;
253
+ updatedAt?: Prisma.DateTimeFilter<"NativeGatewaySession"> | Date | string;
254
+ run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
255
+ calls?: Prisma.NativeGatewayCallListRelationFilter;
256
+ }, "id" | "runId" | "capabilityHash">;
257
+ export type NativeGatewaySessionOrderByWithAggregationInput = {
258
+ id?: Prisma.SortOrder;
259
+ runId?: Prisma.SortOrder;
260
+ capabilityHash?: Prisma.SortOrder;
261
+ status?: Prisma.SortOrder;
262
+ deadlineAt?: Prisma.SortOrder;
263
+ budgetUsd?: Prisma.SortOrder;
264
+ snapshot?: Prisma.SortOrder;
265
+ budgetExhaustedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
266
+ networkReadyAt?: Prisma.SortOrderInput | Prisma.SortOrder;
267
+ createdAt?: Prisma.SortOrder;
268
+ updatedAt?: Prisma.SortOrder;
269
+ _count?: Prisma.NativeGatewaySessionCountOrderByAggregateInput;
270
+ _avg?: Prisma.NativeGatewaySessionAvgOrderByAggregateInput;
271
+ _max?: Prisma.NativeGatewaySessionMaxOrderByAggregateInput;
272
+ _min?: Prisma.NativeGatewaySessionMinOrderByAggregateInput;
273
+ _sum?: Prisma.NativeGatewaySessionSumOrderByAggregateInput;
274
+ };
275
+ export type NativeGatewaySessionScalarWhereWithAggregatesInput = {
276
+ AND?: Prisma.NativeGatewaySessionScalarWhereWithAggregatesInput | Prisma.NativeGatewaySessionScalarWhereWithAggregatesInput[];
277
+ OR?: Prisma.NativeGatewaySessionScalarWhereWithAggregatesInput[];
278
+ NOT?: Prisma.NativeGatewaySessionScalarWhereWithAggregatesInput | Prisma.NativeGatewaySessionScalarWhereWithAggregatesInput[];
279
+ id?: Prisma.StringWithAggregatesFilter<"NativeGatewaySession"> | string;
280
+ runId?: Prisma.StringWithAggregatesFilter<"NativeGatewaySession"> | string;
281
+ capabilityHash?: Prisma.StringWithAggregatesFilter<"NativeGatewaySession"> | string;
282
+ status?: Prisma.EnumNativeGatewaySessionStatusWithAggregatesFilter<"NativeGatewaySession"> | $Enums.NativeGatewaySessionStatus;
283
+ deadlineAt?: Prisma.DateTimeWithAggregatesFilter<"NativeGatewaySession"> | Date | string;
284
+ budgetUsd?: Prisma.DecimalWithAggregatesFilter<"NativeGatewaySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
285
+ snapshot?: Prisma.JsonWithAggregatesFilter<"NativeGatewaySession">;
286
+ budgetExhaustedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"NativeGatewaySession"> | Date | string | null;
287
+ networkReadyAt?: Prisma.DateTimeNullableWithAggregatesFilter<"NativeGatewaySession"> | Date | string | null;
288
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"NativeGatewaySession"> | Date | string;
289
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"NativeGatewaySession"> | Date | string;
290
+ };
291
+ export type NativeGatewaySessionCreateInput = {
292
+ id?: string;
293
+ capabilityHash: string;
294
+ status?: $Enums.NativeGatewaySessionStatus;
295
+ deadlineAt: Date | string;
296
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
297
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
298
+ budgetExhaustedAt?: Date | string | null;
299
+ networkReadyAt?: Date | string | null;
300
+ createdAt?: Date | string;
301
+ updatedAt?: Date | string;
302
+ run: Prisma.RunCreateNestedOneWithoutNativeGatewaySessionInput;
303
+ calls?: Prisma.NativeGatewayCallCreateNestedManyWithoutSessionInput;
304
+ };
305
+ export type NativeGatewaySessionUncheckedCreateInput = {
306
+ id?: string;
307
+ runId: string;
308
+ capabilityHash: string;
309
+ status?: $Enums.NativeGatewaySessionStatus;
310
+ deadlineAt: Date | string;
311
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
312
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
313
+ budgetExhaustedAt?: Date | string | null;
314
+ networkReadyAt?: Date | string | null;
315
+ createdAt?: Date | string;
316
+ updatedAt?: Date | string;
317
+ calls?: Prisma.NativeGatewayCallUncheckedCreateNestedManyWithoutSessionInput;
318
+ };
319
+ export type NativeGatewaySessionUpdateInput = {
320
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
323
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
324
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
325
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
326
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
327
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
328
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
329
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ run?: Prisma.RunUpdateOneRequiredWithoutNativeGatewaySessionNestedInput;
331
+ calls?: Prisma.NativeGatewayCallUpdateManyWithoutSessionNestedInput;
332
+ };
333
+ export type NativeGatewaySessionUncheckedUpdateInput = {
334
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
338
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
339
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
340
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
341
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
342
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
343
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
344
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
345
+ calls?: Prisma.NativeGatewayCallUncheckedUpdateManyWithoutSessionNestedInput;
346
+ };
347
+ export type NativeGatewaySessionCreateManyInput = {
348
+ id?: string;
349
+ runId: string;
350
+ capabilityHash: string;
351
+ status?: $Enums.NativeGatewaySessionStatus;
352
+ deadlineAt: Date | string;
353
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
354
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
355
+ budgetExhaustedAt?: Date | string | null;
356
+ networkReadyAt?: Date | string | null;
357
+ createdAt?: Date | string;
358
+ updatedAt?: Date | string;
359
+ };
360
+ export type NativeGatewaySessionUpdateManyMutationInput = {
361
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
362
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
363
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
364
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
365
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
366
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
367
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
368
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
369
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
370
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
371
+ };
372
+ export type NativeGatewaySessionUncheckedUpdateManyInput = {
373
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
376
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
377
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
379
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
380
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
381
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
382
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
383
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
384
+ };
385
+ export type NativeGatewaySessionNullableScalarRelationFilter = {
386
+ is?: Prisma.NativeGatewaySessionWhereInput | null;
387
+ isNot?: Prisma.NativeGatewaySessionWhereInput | null;
388
+ };
389
+ export type NativeGatewaySessionCountOrderByAggregateInput = {
390
+ id?: Prisma.SortOrder;
391
+ runId?: Prisma.SortOrder;
392
+ capabilityHash?: Prisma.SortOrder;
393
+ status?: Prisma.SortOrder;
394
+ deadlineAt?: Prisma.SortOrder;
395
+ budgetUsd?: Prisma.SortOrder;
396
+ snapshot?: Prisma.SortOrder;
397
+ budgetExhaustedAt?: Prisma.SortOrder;
398
+ networkReadyAt?: Prisma.SortOrder;
399
+ createdAt?: Prisma.SortOrder;
400
+ updatedAt?: Prisma.SortOrder;
401
+ };
402
+ export type NativeGatewaySessionAvgOrderByAggregateInput = {
403
+ budgetUsd?: Prisma.SortOrder;
404
+ };
405
+ export type NativeGatewaySessionMaxOrderByAggregateInput = {
406
+ id?: Prisma.SortOrder;
407
+ runId?: Prisma.SortOrder;
408
+ capabilityHash?: Prisma.SortOrder;
409
+ status?: Prisma.SortOrder;
410
+ deadlineAt?: Prisma.SortOrder;
411
+ budgetUsd?: Prisma.SortOrder;
412
+ budgetExhaustedAt?: Prisma.SortOrder;
413
+ networkReadyAt?: Prisma.SortOrder;
414
+ createdAt?: Prisma.SortOrder;
415
+ updatedAt?: Prisma.SortOrder;
416
+ };
417
+ export type NativeGatewaySessionMinOrderByAggregateInput = {
418
+ id?: Prisma.SortOrder;
419
+ runId?: Prisma.SortOrder;
420
+ capabilityHash?: Prisma.SortOrder;
421
+ status?: Prisma.SortOrder;
422
+ deadlineAt?: Prisma.SortOrder;
423
+ budgetUsd?: Prisma.SortOrder;
424
+ budgetExhaustedAt?: Prisma.SortOrder;
425
+ networkReadyAt?: Prisma.SortOrder;
426
+ createdAt?: Prisma.SortOrder;
427
+ updatedAt?: Prisma.SortOrder;
428
+ };
429
+ export type NativeGatewaySessionSumOrderByAggregateInput = {
430
+ budgetUsd?: Prisma.SortOrder;
431
+ };
432
+ export type NativeGatewaySessionScalarRelationFilter = {
433
+ is?: Prisma.NativeGatewaySessionWhereInput;
434
+ isNot?: Prisma.NativeGatewaySessionWhereInput;
435
+ };
436
+ export type NativeGatewaySessionCreateNestedOneWithoutRunInput = {
437
+ create?: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutRunInput>;
438
+ connectOrCreate?: Prisma.NativeGatewaySessionCreateOrConnectWithoutRunInput;
439
+ connect?: Prisma.NativeGatewaySessionWhereUniqueInput;
440
+ };
441
+ export type NativeGatewaySessionUncheckedCreateNestedOneWithoutRunInput = {
442
+ create?: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutRunInput>;
443
+ connectOrCreate?: Prisma.NativeGatewaySessionCreateOrConnectWithoutRunInput;
444
+ connect?: Prisma.NativeGatewaySessionWhereUniqueInput;
445
+ };
446
+ export type NativeGatewaySessionUpdateOneWithoutRunNestedInput = {
447
+ create?: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutRunInput>;
448
+ connectOrCreate?: Prisma.NativeGatewaySessionCreateOrConnectWithoutRunInput;
449
+ upsert?: Prisma.NativeGatewaySessionUpsertWithoutRunInput;
450
+ disconnect?: Prisma.NativeGatewaySessionWhereInput | boolean;
451
+ delete?: Prisma.NativeGatewaySessionWhereInput | boolean;
452
+ connect?: Prisma.NativeGatewaySessionWhereUniqueInput;
453
+ update?: Prisma.XOR<Prisma.XOR<Prisma.NativeGatewaySessionUpdateToOneWithWhereWithoutRunInput, Prisma.NativeGatewaySessionUpdateWithoutRunInput>, Prisma.NativeGatewaySessionUncheckedUpdateWithoutRunInput>;
454
+ };
455
+ export type NativeGatewaySessionUncheckedUpdateOneWithoutRunNestedInput = {
456
+ create?: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutRunInput>;
457
+ connectOrCreate?: Prisma.NativeGatewaySessionCreateOrConnectWithoutRunInput;
458
+ upsert?: Prisma.NativeGatewaySessionUpsertWithoutRunInput;
459
+ disconnect?: Prisma.NativeGatewaySessionWhereInput | boolean;
460
+ delete?: Prisma.NativeGatewaySessionWhereInput | boolean;
461
+ connect?: Prisma.NativeGatewaySessionWhereUniqueInput;
462
+ update?: Prisma.XOR<Prisma.XOR<Prisma.NativeGatewaySessionUpdateToOneWithWhereWithoutRunInput, Prisma.NativeGatewaySessionUpdateWithoutRunInput>, Prisma.NativeGatewaySessionUncheckedUpdateWithoutRunInput>;
463
+ };
464
+ export type EnumNativeGatewaySessionStatusFieldUpdateOperationsInput = {
465
+ set?: $Enums.NativeGatewaySessionStatus;
466
+ };
467
+ export type NativeGatewaySessionCreateNestedOneWithoutCallsInput = {
468
+ create?: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutCallsInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutCallsInput>;
469
+ connectOrCreate?: Prisma.NativeGatewaySessionCreateOrConnectWithoutCallsInput;
470
+ connect?: Prisma.NativeGatewaySessionWhereUniqueInput;
471
+ };
472
+ export type NativeGatewaySessionUpdateOneRequiredWithoutCallsNestedInput = {
473
+ create?: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutCallsInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutCallsInput>;
474
+ connectOrCreate?: Prisma.NativeGatewaySessionCreateOrConnectWithoutCallsInput;
475
+ upsert?: Prisma.NativeGatewaySessionUpsertWithoutCallsInput;
476
+ connect?: Prisma.NativeGatewaySessionWhereUniqueInput;
477
+ update?: Prisma.XOR<Prisma.XOR<Prisma.NativeGatewaySessionUpdateToOneWithWhereWithoutCallsInput, Prisma.NativeGatewaySessionUpdateWithoutCallsInput>, Prisma.NativeGatewaySessionUncheckedUpdateWithoutCallsInput>;
478
+ };
479
+ export type NativeGatewaySessionCreateWithoutRunInput = {
480
+ id?: string;
481
+ capabilityHash: string;
482
+ status?: $Enums.NativeGatewaySessionStatus;
483
+ deadlineAt: Date | string;
484
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
485
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
486
+ budgetExhaustedAt?: Date | string | null;
487
+ networkReadyAt?: Date | string | null;
488
+ createdAt?: Date | string;
489
+ updatedAt?: Date | string;
490
+ calls?: Prisma.NativeGatewayCallCreateNestedManyWithoutSessionInput;
491
+ };
492
+ export type NativeGatewaySessionUncheckedCreateWithoutRunInput = {
493
+ id?: string;
494
+ capabilityHash: string;
495
+ status?: $Enums.NativeGatewaySessionStatus;
496
+ deadlineAt: Date | string;
497
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
498
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
499
+ budgetExhaustedAt?: Date | string | null;
500
+ networkReadyAt?: Date | string | null;
501
+ createdAt?: Date | string;
502
+ updatedAt?: Date | string;
503
+ calls?: Prisma.NativeGatewayCallUncheckedCreateNestedManyWithoutSessionInput;
504
+ };
505
+ export type NativeGatewaySessionCreateOrConnectWithoutRunInput = {
506
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
507
+ create: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutRunInput>;
508
+ };
509
+ export type NativeGatewaySessionUpsertWithoutRunInput = {
510
+ update: Prisma.XOR<Prisma.NativeGatewaySessionUpdateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedUpdateWithoutRunInput>;
511
+ create: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutRunInput>;
512
+ where?: Prisma.NativeGatewaySessionWhereInput;
513
+ };
514
+ export type NativeGatewaySessionUpdateToOneWithWhereWithoutRunInput = {
515
+ where?: Prisma.NativeGatewaySessionWhereInput;
516
+ data: Prisma.XOR<Prisma.NativeGatewaySessionUpdateWithoutRunInput, Prisma.NativeGatewaySessionUncheckedUpdateWithoutRunInput>;
517
+ };
518
+ export type NativeGatewaySessionUpdateWithoutRunInput = {
519
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
520
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
521
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
522
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
523
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
524
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
525
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
526
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
527
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
528
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
529
+ calls?: Prisma.NativeGatewayCallUpdateManyWithoutSessionNestedInput;
530
+ };
531
+ export type NativeGatewaySessionUncheckedUpdateWithoutRunInput = {
532
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
534
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
535
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
536
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
537
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
538
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
539
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
540
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
541
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
542
+ calls?: Prisma.NativeGatewayCallUncheckedUpdateManyWithoutSessionNestedInput;
543
+ };
544
+ export type NativeGatewaySessionCreateWithoutCallsInput = {
545
+ id?: string;
546
+ capabilityHash: string;
547
+ status?: $Enums.NativeGatewaySessionStatus;
548
+ deadlineAt: Date | string;
549
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
550
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
551
+ budgetExhaustedAt?: Date | string | null;
552
+ networkReadyAt?: Date | string | null;
553
+ createdAt?: Date | string;
554
+ updatedAt?: Date | string;
555
+ run: Prisma.RunCreateNestedOneWithoutNativeGatewaySessionInput;
556
+ };
557
+ export type NativeGatewaySessionUncheckedCreateWithoutCallsInput = {
558
+ id?: string;
559
+ runId: string;
560
+ capabilityHash: string;
561
+ status?: $Enums.NativeGatewaySessionStatus;
562
+ deadlineAt: Date | string;
563
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
564
+ snapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue;
565
+ budgetExhaustedAt?: Date | string | null;
566
+ networkReadyAt?: Date | string | null;
567
+ createdAt?: Date | string;
568
+ updatedAt?: Date | string;
569
+ };
570
+ export type NativeGatewaySessionCreateOrConnectWithoutCallsInput = {
571
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
572
+ create: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutCallsInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutCallsInput>;
573
+ };
574
+ export type NativeGatewaySessionUpsertWithoutCallsInput = {
575
+ update: Prisma.XOR<Prisma.NativeGatewaySessionUpdateWithoutCallsInput, Prisma.NativeGatewaySessionUncheckedUpdateWithoutCallsInput>;
576
+ create: Prisma.XOR<Prisma.NativeGatewaySessionCreateWithoutCallsInput, Prisma.NativeGatewaySessionUncheckedCreateWithoutCallsInput>;
577
+ where?: Prisma.NativeGatewaySessionWhereInput;
578
+ };
579
+ export type NativeGatewaySessionUpdateToOneWithWhereWithoutCallsInput = {
580
+ where?: Prisma.NativeGatewaySessionWhereInput;
581
+ data: Prisma.XOR<Prisma.NativeGatewaySessionUpdateWithoutCallsInput, Prisma.NativeGatewaySessionUncheckedUpdateWithoutCallsInput>;
582
+ };
583
+ export type NativeGatewaySessionUpdateWithoutCallsInput = {
584
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
585
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
586
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
587
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
588
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
589
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
590
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
591
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
592
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
593
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
594
+ run?: Prisma.RunUpdateOneRequiredWithoutNativeGatewaySessionNestedInput;
595
+ };
596
+ export type NativeGatewaySessionUncheckedUpdateWithoutCallsInput = {
597
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
598
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
599
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
600
+ status?: Prisma.EnumNativeGatewaySessionStatusFieldUpdateOperationsInput | $Enums.NativeGatewaySessionStatus;
601
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
602
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
603
+ snapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
604
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
605
+ networkReadyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
606
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
607
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
608
+ };
609
+ /**
610
+ * Count Type NativeGatewaySessionCountOutputType
611
+ */
612
+ export type NativeGatewaySessionCountOutputType = {
613
+ calls: number;
614
+ };
615
+ export type NativeGatewaySessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
616
+ calls?: boolean | NativeGatewaySessionCountOutputTypeCountCallsArgs;
617
+ };
618
+ /**
619
+ * NativeGatewaySessionCountOutputType without action
620
+ */
621
+ export type NativeGatewaySessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
622
+ /**
623
+ * Select specific fields to fetch from the NativeGatewaySessionCountOutputType
624
+ */
625
+ select?: Prisma.NativeGatewaySessionCountOutputTypeSelect<ExtArgs> | null;
626
+ };
627
+ /**
628
+ * NativeGatewaySessionCountOutputType without action
629
+ */
630
+ export type NativeGatewaySessionCountOutputTypeCountCallsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
631
+ where?: Prisma.NativeGatewayCallWhereInput;
632
+ };
633
+ export type NativeGatewaySessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
634
+ id?: boolean;
635
+ runId?: boolean;
636
+ capabilityHash?: boolean;
637
+ status?: boolean;
638
+ deadlineAt?: boolean;
639
+ budgetUsd?: boolean;
640
+ snapshot?: boolean;
641
+ budgetExhaustedAt?: boolean;
642
+ networkReadyAt?: boolean;
643
+ createdAt?: boolean;
644
+ updatedAt?: boolean;
645
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
646
+ calls?: boolean | Prisma.NativeGatewaySession$callsArgs<ExtArgs>;
647
+ _count?: boolean | Prisma.NativeGatewaySessionCountOutputTypeDefaultArgs<ExtArgs>;
648
+ }, ExtArgs["result"]["nativeGatewaySession"]>;
649
+ export type NativeGatewaySessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
650
+ id?: boolean;
651
+ runId?: boolean;
652
+ capabilityHash?: boolean;
653
+ status?: boolean;
654
+ deadlineAt?: boolean;
655
+ budgetUsd?: boolean;
656
+ snapshot?: boolean;
657
+ budgetExhaustedAt?: boolean;
658
+ networkReadyAt?: boolean;
659
+ createdAt?: boolean;
660
+ updatedAt?: boolean;
661
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
662
+ }, ExtArgs["result"]["nativeGatewaySession"]>;
663
+ export type NativeGatewaySessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
664
+ id?: boolean;
665
+ runId?: boolean;
666
+ capabilityHash?: boolean;
667
+ status?: boolean;
668
+ deadlineAt?: boolean;
669
+ budgetUsd?: boolean;
670
+ snapshot?: boolean;
671
+ budgetExhaustedAt?: boolean;
672
+ networkReadyAt?: boolean;
673
+ createdAt?: boolean;
674
+ updatedAt?: boolean;
675
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
676
+ }, ExtArgs["result"]["nativeGatewaySession"]>;
677
+ export type NativeGatewaySessionSelectScalar = {
678
+ id?: boolean;
679
+ runId?: boolean;
680
+ capabilityHash?: boolean;
681
+ status?: boolean;
682
+ deadlineAt?: boolean;
683
+ budgetUsd?: boolean;
684
+ snapshot?: boolean;
685
+ budgetExhaustedAt?: boolean;
686
+ networkReadyAt?: boolean;
687
+ createdAt?: boolean;
688
+ updatedAt?: boolean;
689
+ };
690
+ export type NativeGatewaySessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "runId" | "capabilityHash" | "status" | "deadlineAt" | "budgetUsd" | "snapshot" | "budgetExhaustedAt" | "networkReadyAt" | "createdAt" | "updatedAt", ExtArgs["result"]["nativeGatewaySession"]>;
691
+ export type NativeGatewaySessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
692
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
693
+ calls?: boolean | Prisma.NativeGatewaySession$callsArgs<ExtArgs>;
694
+ _count?: boolean | Prisma.NativeGatewaySessionCountOutputTypeDefaultArgs<ExtArgs>;
695
+ };
696
+ export type NativeGatewaySessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
697
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
698
+ };
699
+ export type NativeGatewaySessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
700
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
701
+ };
702
+ export type $NativeGatewaySessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
703
+ name: "NativeGatewaySession";
704
+ objects: {
705
+ run: Prisma.$RunPayload<ExtArgs>;
706
+ calls: Prisma.$NativeGatewayCallPayload<ExtArgs>[];
707
+ };
708
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
709
+ id: string;
710
+ runId: string;
711
+ capabilityHash: string;
712
+ status: $Enums.NativeGatewaySessionStatus;
713
+ deadlineAt: Date;
714
+ budgetUsd: runtime.Decimal;
715
+ snapshot: runtime.JsonValue;
716
+ /**
717
+ * Set the first time the gateway refuses a model call for budget.
718
+ */
719
+ budgetExhaustedAt: Date | null;
720
+ /**
721
+ * When the worker's network isolation was proven (a Kubernetes run's in-pod
722
+ * probe; a Docker run's network exists before its container). The gateway
723
+ * serves nothing before this is set.
724
+ */
725
+ networkReadyAt: Date | null;
726
+ createdAt: Date;
727
+ updatedAt: Date;
728
+ }, ExtArgs["result"]["nativeGatewaySession"]>;
729
+ composites: {};
730
+ };
731
+ export type NativeGatewaySessionGetPayload<S extends boolean | null | undefined | NativeGatewaySessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload, S>;
732
+ export type NativeGatewaySessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<NativeGatewaySessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
733
+ select?: NativeGatewaySessionCountAggregateInputType | true;
734
+ };
735
+ export interface NativeGatewaySessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
736
+ [K: symbol]: {
737
+ types: Prisma.TypeMap<ExtArgs>['model']['NativeGatewaySession'];
738
+ meta: {
739
+ name: 'NativeGatewaySession';
740
+ };
741
+ };
742
+ /**
743
+ * Find zero or one NativeGatewaySession that matches the filter.
744
+ * @param {NativeGatewaySessionFindUniqueArgs} args - Arguments to find a NativeGatewaySession
745
+ * @example
746
+ * // Get one NativeGatewaySession
747
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.findUnique({
748
+ * where: {
749
+ * // ... provide filter here
750
+ * }
751
+ * })
752
+ */
753
+ findUnique<T extends NativeGatewaySessionFindUniqueArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
754
+ /**
755
+ * Find one NativeGatewaySession that matches the filter or throw an error with `error.code='P2025'`
756
+ * if no matches were found.
757
+ * @param {NativeGatewaySessionFindUniqueOrThrowArgs} args - Arguments to find a NativeGatewaySession
758
+ * @example
759
+ * // Get one NativeGatewaySession
760
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.findUniqueOrThrow({
761
+ * where: {
762
+ * // ... provide filter here
763
+ * }
764
+ * })
765
+ */
766
+ findUniqueOrThrow<T extends NativeGatewaySessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
767
+ /**
768
+ * Find the first NativeGatewaySession that matches the filter.
769
+ * Note, that providing `undefined` is treated as the value not being there.
770
+ * Read more here: https://pris.ly/d/null-undefined
771
+ * @param {NativeGatewaySessionFindFirstArgs} args - Arguments to find a NativeGatewaySession
772
+ * @example
773
+ * // Get one NativeGatewaySession
774
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.findFirst({
775
+ * where: {
776
+ * // ... provide filter here
777
+ * }
778
+ * })
779
+ */
780
+ findFirst<T extends NativeGatewaySessionFindFirstArgs>(args?: Prisma.SelectSubset<T, NativeGatewaySessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
781
+ /**
782
+ * Find the first NativeGatewaySession that matches the filter or
783
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
784
+ * Note, that providing `undefined` is treated as the value not being there.
785
+ * Read more here: https://pris.ly/d/null-undefined
786
+ * @param {NativeGatewaySessionFindFirstOrThrowArgs} args - Arguments to find a NativeGatewaySession
787
+ * @example
788
+ * // Get one NativeGatewaySession
789
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.findFirstOrThrow({
790
+ * where: {
791
+ * // ... provide filter here
792
+ * }
793
+ * })
794
+ */
795
+ findFirstOrThrow<T extends NativeGatewaySessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, NativeGatewaySessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
796
+ /**
797
+ * Find zero or more NativeGatewaySessions that matches the filter.
798
+ * Note, that providing `undefined` is treated as the value not being there.
799
+ * Read more here: https://pris.ly/d/null-undefined
800
+ * @param {NativeGatewaySessionFindManyArgs} args - Arguments to filter and select certain fields only.
801
+ * @example
802
+ * // Get all NativeGatewaySessions
803
+ * const nativeGatewaySessions = await prisma.nativeGatewaySession.findMany()
804
+ *
805
+ * // Get first 10 NativeGatewaySessions
806
+ * const nativeGatewaySessions = await prisma.nativeGatewaySession.findMany({ take: 10 })
807
+ *
808
+ * // Only select the `id`
809
+ * const nativeGatewaySessionWithIdOnly = await prisma.nativeGatewaySession.findMany({ select: { id: true } })
810
+ *
811
+ */
812
+ findMany<T extends NativeGatewaySessionFindManyArgs>(args?: Prisma.SelectSubset<T, NativeGatewaySessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
813
+ /**
814
+ * Create a NativeGatewaySession.
815
+ * @param {NativeGatewaySessionCreateArgs} args - Arguments to create a NativeGatewaySession.
816
+ * @example
817
+ * // Create one NativeGatewaySession
818
+ * const NativeGatewaySession = await prisma.nativeGatewaySession.create({
819
+ * data: {
820
+ * // ... data to create a NativeGatewaySession
821
+ * }
822
+ * })
823
+ *
824
+ */
825
+ create<T extends NativeGatewaySessionCreateArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionCreateArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
826
+ /**
827
+ * Create many NativeGatewaySessions.
828
+ * @param {NativeGatewaySessionCreateManyArgs} args - Arguments to create many NativeGatewaySessions.
829
+ * @example
830
+ * // Create many NativeGatewaySessions
831
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.createMany({
832
+ * data: [
833
+ * // ... provide data here
834
+ * ]
835
+ * })
836
+ *
837
+ */
838
+ createMany<T extends NativeGatewaySessionCreateManyArgs>(args?: Prisma.SelectSubset<T, NativeGatewaySessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
839
+ /**
840
+ * Create many NativeGatewaySessions and returns the data saved in the database.
841
+ * @param {NativeGatewaySessionCreateManyAndReturnArgs} args - Arguments to create many NativeGatewaySessions.
842
+ * @example
843
+ * // Create many NativeGatewaySessions
844
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.createManyAndReturn({
845
+ * data: [
846
+ * // ... provide data here
847
+ * ]
848
+ * })
849
+ *
850
+ * // Create many NativeGatewaySessions and only return the `id`
851
+ * const nativeGatewaySessionWithIdOnly = await prisma.nativeGatewaySession.createManyAndReturn({
852
+ * select: { id: true },
853
+ * data: [
854
+ * // ... provide data here
855
+ * ]
856
+ * })
857
+ * Note, that providing `undefined` is treated as the value not being there.
858
+ * Read more here: https://pris.ly/d/null-undefined
859
+ *
860
+ */
861
+ createManyAndReturn<T extends NativeGatewaySessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NativeGatewaySessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
862
+ /**
863
+ * Delete a NativeGatewaySession.
864
+ * @param {NativeGatewaySessionDeleteArgs} args - Arguments to delete one NativeGatewaySession.
865
+ * @example
866
+ * // Delete one NativeGatewaySession
867
+ * const NativeGatewaySession = await prisma.nativeGatewaySession.delete({
868
+ * where: {
869
+ * // ... filter to delete one NativeGatewaySession
870
+ * }
871
+ * })
872
+ *
873
+ */
874
+ delete<T extends NativeGatewaySessionDeleteArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionDeleteArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
875
+ /**
876
+ * Update one NativeGatewaySession.
877
+ * @param {NativeGatewaySessionUpdateArgs} args - Arguments to update one NativeGatewaySession.
878
+ * @example
879
+ * // Update one NativeGatewaySession
880
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.update({
881
+ * where: {
882
+ * // ... provide filter here
883
+ * },
884
+ * data: {
885
+ * // ... provide data here
886
+ * }
887
+ * })
888
+ *
889
+ */
890
+ update<T extends NativeGatewaySessionUpdateArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionUpdateArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
891
+ /**
892
+ * Delete zero or more NativeGatewaySessions.
893
+ * @param {NativeGatewaySessionDeleteManyArgs} args - Arguments to filter NativeGatewaySessions to delete.
894
+ * @example
895
+ * // Delete a few NativeGatewaySessions
896
+ * const { count } = await prisma.nativeGatewaySession.deleteMany({
897
+ * where: {
898
+ * // ... provide filter here
899
+ * }
900
+ * })
901
+ *
902
+ */
903
+ deleteMany<T extends NativeGatewaySessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, NativeGatewaySessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
904
+ /**
905
+ * Update zero or more NativeGatewaySessions.
906
+ * Note, that providing `undefined` is treated as the value not being there.
907
+ * Read more here: https://pris.ly/d/null-undefined
908
+ * @param {NativeGatewaySessionUpdateManyArgs} args - Arguments to update one or more rows.
909
+ * @example
910
+ * // Update many NativeGatewaySessions
911
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.updateMany({
912
+ * where: {
913
+ * // ... provide filter here
914
+ * },
915
+ * data: {
916
+ * // ... provide data here
917
+ * }
918
+ * })
919
+ *
920
+ */
921
+ updateMany<T extends NativeGatewaySessionUpdateManyArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
922
+ /**
923
+ * Update zero or more NativeGatewaySessions and returns the data updated in the database.
924
+ * @param {NativeGatewaySessionUpdateManyAndReturnArgs} args - Arguments to update many NativeGatewaySessions.
925
+ * @example
926
+ * // Update many NativeGatewaySessions
927
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.updateManyAndReturn({
928
+ * where: {
929
+ * // ... provide filter here
930
+ * },
931
+ * data: [
932
+ * // ... provide data here
933
+ * ]
934
+ * })
935
+ *
936
+ * // Update zero or more NativeGatewaySessions and only return the `id`
937
+ * const nativeGatewaySessionWithIdOnly = await prisma.nativeGatewaySession.updateManyAndReturn({
938
+ * select: { id: true },
939
+ * where: {
940
+ * // ... provide filter here
941
+ * },
942
+ * data: [
943
+ * // ... provide data here
944
+ * ]
945
+ * })
946
+ * Note, that providing `undefined` is treated as the value not being there.
947
+ * Read more here: https://pris.ly/d/null-undefined
948
+ *
949
+ */
950
+ updateManyAndReturn<T extends NativeGatewaySessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
951
+ /**
952
+ * Create or update one NativeGatewaySession.
953
+ * @param {NativeGatewaySessionUpsertArgs} args - Arguments to update or create a NativeGatewaySession.
954
+ * @example
955
+ * // Update or create a NativeGatewaySession
956
+ * const nativeGatewaySession = await prisma.nativeGatewaySession.upsert({
957
+ * create: {
958
+ * // ... data to create a NativeGatewaySession
959
+ * },
960
+ * update: {
961
+ * // ... in case it already exists, update
962
+ * },
963
+ * where: {
964
+ * // ... the filter for the NativeGatewaySession we want to update
965
+ * }
966
+ * })
967
+ */
968
+ upsert<T extends NativeGatewaySessionUpsertArgs>(args: Prisma.SelectSubset<T, NativeGatewaySessionUpsertArgs<ExtArgs>>): Prisma.Prisma__NativeGatewaySessionClient<runtime.Types.Result.GetResult<Prisma.$NativeGatewaySessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
969
+ /**
970
+ * Count the number of NativeGatewaySessions.
971
+ * Note, that providing `undefined` is treated as the value not being there.
972
+ * Read more here: https://pris.ly/d/null-undefined
973
+ * @param {NativeGatewaySessionCountArgs} args - Arguments to filter NativeGatewaySessions to count.
974
+ * @example
975
+ * // Count the number of NativeGatewaySessions
976
+ * const count = await prisma.nativeGatewaySession.count({
977
+ * where: {
978
+ * // ... the filter for the NativeGatewaySessions we want to count
979
+ * }
980
+ * })
981
+ **/
982
+ count<T extends NativeGatewaySessionCountArgs>(args?: Prisma.Subset<T, NativeGatewaySessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], NativeGatewaySessionCountAggregateOutputType> : number>;
983
+ /**
984
+ * Allows you to perform aggregations operations on a NativeGatewaySession.
985
+ * Note, that providing `undefined` is treated as the value not being there.
986
+ * Read more here: https://pris.ly/d/null-undefined
987
+ * @param {NativeGatewaySessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
988
+ * @example
989
+ * // Ordered by age ascending
990
+ * // Where email contains prisma.io
991
+ * // Limited to the 10 users
992
+ * const aggregations = await prisma.user.aggregate({
993
+ * _avg: {
994
+ * age: true,
995
+ * },
996
+ * where: {
997
+ * email: {
998
+ * contains: "prisma.io",
999
+ * },
1000
+ * },
1001
+ * orderBy: {
1002
+ * age: "asc",
1003
+ * },
1004
+ * take: 10,
1005
+ * })
1006
+ **/
1007
+ aggregate<T extends NativeGatewaySessionAggregateArgs>(args: Prisma.Subset<T, NativeGatewaySessionAggregateArgs>): Prisma.PrismaPromise<GetNativeGatewaySessionAggregateType<T>>;
1008
+ /**
1009
+ * Group by NativeGatewaySession.
1010
+ * Note, that providing `undefined` is treated as the value not being there.
1011
+ * Read more here: https://pris.ly/d/null-undefined
1012
+ * @param {NativeGatewaySessionGroupByArgs} args - Group by arguments.
1013
+ * @example
1014
+ * // Group by city, order by createdAt, get count
1015
+ * const result = await prisma.user.groupBy({
1016
+ * by: ['city', 'createdAt'],
1017
+ * orderBy: {
1018
+ * createdAt: true
1019
+ * },
1020
+ * _count: {
1021
+ * _all: true
1022
+ * },
1023
+ * })
1024
+ *
1025
+ **/
1026
+ groupBy<T extends NativeGatewaySessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1027
+ orderBy: NativeGatewaySessionGroupByArgs['orderBy'];
1028
+ } : {
1029
+ orderBy?: NativeGatewaySessionGroupByArgs['orderBy'];
1030
+ }, 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 ? {
1031
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1032
+ Error,
1033
+ 'Field ',
1034
+ P,
1035
+ ` in "having" needs to be provided in "by"`
1036
+ ];
1037
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1038
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1039
+ }[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 ? {} : {
1040
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1041
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1042
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1043
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, NativeGatewaySessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNativeGatewaySessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1044
+ /**
1045
+ * Fields of the NativeGatewaySession model
1046
+ */
1047
+ readonly fields: NativeGatewaySessionFieldRefs;
1048
+ }
1049
+ /**
1050
+ * The delegate class that acts as a "Promise-like" for NativeGatewaySession.
1051
+ * Why is this prefixed with `Prisma__`?
1052
+ * Because we want to prevent naming conflicts as mentioned in
1053
+ * https://github.com/prisma/prisma-client-js/issues/707
1054
+ */
1055
+ export interface Prisma__NativeGatewaySessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1056
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1057
+ run<T extends Prisma.RunDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RunDefaultArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1058
+ calls<T extends Prisma.NativeGatewaySession$callsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.NativeGatewaySession$callsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NativeGatewayCallPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1059
+ /**
1060
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1061
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1062
+ * @param onrejected The callback to execute when the Promise is rejected.
1063
+ * @returns A Promise for the completion of which ever callback is executed.
1064
+ */
1065
+ 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>;
1066
+ /**
1067
+ * Attaches a callback for only the rejection of the Promise.
1068
+ * @param onrejected The callback to execute when the Promise is rejected.
1069
+ * @returns A Promise for the completion of the callback.
1070
+ */
1071
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1072
+ /**
1073
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1074
+ * resolved value cannot be modified from the callback.
1075
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1076
+ * @returns A Promise for the completion of the callback.
1077
+ */
1078
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1079
+ }
1080
+ /**
1081
+ * Fields of the NativeGatewaySession model
1082
+ */
1083
+ export interface NativeGatewaySessionFieldRefs {
1084
+ readonly id: Prisma.FieldRef<"NativeGatewaySession", 'String'>;
1085
+ readonly runId: Prisma.FieldRef<"NativeGatewaySession", 'String'>;
1086
+ readonly capabilityHash: Prisma.FieldRef<"NativeGatewaySession", 'String'>;
1087
+ readonly status: Prisma.FieldRef<"NativeGatewaySession", 'NativeGatewaySessionStatus'>;
1088
+ readonly deadlineAt: Prisma.FieldRef<"NativeGatewaySession", 'DateTime'>;
1089
+ readonly budgetUsd: Prisma.FieldRef<"NativeGatewaySession", 'Decimal'>;
1090
+ readonly snapshot: Prisma.FieldRef<"NativeGatewaySession", 'Json'>;
1091
+ readonly budgetExhaustedAt: Prisma.FieldRef<"NativeGatewaySession", 'DateTime'>;
1092
+ readonly networkReadyAt: Prisma.FieldRef<"NativeGatewaySession", 'DateTime'>;
1093
+ readonly createdAt: Prisma.FieldRef<"NativeGatewaySession", 'DateTime'>;
1094
+ readonly updatedAt: Prisma.FieldRef<"NativeGatewaySession", 'DateTime'>;
1095
+ }
1096
+ /**
1097
+ * NativeGatewaySession findUnique
1098
+ */
1099
+ export type NativeGatewaySessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
+ /**
1101
+ * Select specific fields to fetch from the NativeGatewaySession
1102
+ */
1103
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1104
+ /**
1105
+ * Omit specific fields from the NativeGatewaySession
1106
+ */
1107
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1108
+ /**
1109
+ * Choose, which related nodes to fetch as well
1110
+ */
1111
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1112
+ /**
1113
+ * Filter, which NativeGatewaySession to fetch.
1114
+ */
1115
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
1116
+ };
1117
+ /**
1118
+ * NativeGatewaySession findUniqueOrThrow
1119
+ */
1120
+ export type NativeGatewaySessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1121
+ /**
1122
+ * Select specific fields to fetch from the NativeGatewaySession
1123
+ */
1124
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1125
+ /**
1126
+ * Omit specific fields from the NativeGatewaySession
1127
+ */
1128
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1129
+ /**
1130
+ * Choose, which related nodes to fetch as well
1131
+ */
1132
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1133
+ /**
1134
+ * Filter, which NativeGatewaySession to fetch.
1135
+ */
1136
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
1137
+ };
1138
+ /**
1139
+ * NativeGatewaySession findFirst
1140
+ */
1141
+ export type NativeGatewaySessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * Select specific fields to fetch from the NativeGatewaySession
1144
+ */
1145
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1146
+ /**
1147
+ * Omit specific fields from the NativeGatewaySession
1148
+ */
1149
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1150
+ /**
1151
+ * Choose, which related nodes to fetch as well
1152
+ */
1153
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1154
+ /**
1155
+ * Filter, which NativeGatewaySession to fetch.
1156
+ */
1157
+ where?: Prisma.NativeGatewaySessionWhereInput;
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1160
+ *
1161
+ * Determine the order of NativeGatewaySessions to fetch.
1162
+ */
1163
+ orderBy?: Prisma.NativeGatewaySessionOrderByWithRelationInput | Prisma.NativeGatewaySessionOrderByWithRelationInput[];
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1166
+ *
1167
+ * Sets the position for searching for NativeGatewaySessions.
1168
+ */
1169
+ cursor?: Prisma.NativeGatewaySessionWhereUniqueInput;
1170
+ /**
1171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1172
+ *
1173
+ * Take `±n` NativeGatewaySessions from the position of the cursor.
1174
+ */
1175
+ take?: number;
1176
+ /**
1177
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1178
+ *
1179
+ * Skip the first `n` NativeGatewaySessions.
1180
+ */
1181
+ skip?: number;
1182
+ /**
1183
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1184
+ *
1185
+ * Filter by unique combinations of NativeGatewaySessions.
1186
+ */
1187
+ distinct?: Prisma.NativeGatewaySessionScalarFieldEnum | Prisma.NativeGatewaySessionScalarFieldEnum[];
1188
+ };
1189
+ /**
1190
+ * NativeGatewaySession findFirstOrThrow
1191
+ */
1192
+ export type NativeGatewaySessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1193
+ /**
1194
+ * Select specific fields to fetch from the NativeGatewaySession
1195
+ */
1196
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1197
+ /**
1198
+ * Omit specific fields from the NativeGatewaySession
1199
+ */
1200
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1201
+ /**
1202
+ * Choose, which related nodes to fetch as well
1203
+ */
1204
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1205
+ /**
1206
+ * Filter, which NativeGatewaySession to fetch.
1207
+ */
1208
+ where?: Prisma.NativeGatewaySessionWhereInput;
1209
+ /**
1210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1211
+ *
1212
+ * Determine the order of NativeGatewaySessions to fetch.
1213
+ */
1214
+ orderBy?: Prisma.NativeGatewaySessionOrderByWithRelationInput | Prisma.NativeGatewaySessionOrderByWithRelationInput[];
1215
+ /**
1216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1217
+ *
1218
+ * Sets the position for searching for NativeGatewaySessions.
1219
+ */
1220
+ cursor?: Prisma.NativeGatewaySessionWhereUniqueInput;
1221
+ /**
1222
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1223
+ *
1224
+ * Take `±n` NativeGatewaySessions from the position of the cursor.
1225
+ */
1226
+ take?: number;
1227
+ /**
1228
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1229
+ *
1230
+ * Skip the first `n` NativeGatewaySessions.
1231
+ */
1232
+ skip?: number;
1233
+ /**
1234
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1235
+ *
1236
+ * Filter by unique combinations of NativeGatewaySessions.
1237
+ */
1238
+ distinct?: Prisma.NativeGatewaySessionScalarFieldEnum | Prisma.NativeGatewaySessionScalarFieldEnum[];
1239
+ };
1240
+ /**
1241
+ * NativeGatewaySession findMany
1242
+ */
1243
+ export type NativeGatewaySessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the NativeGatewaySession
1246
+ */
1247
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1248
+ /**
1249
+ * Omit specific fields from the NativeGatewaySession
1250
+ */
1251
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1252
+ /**
1253
+ * Choose, which related nodes to fetch as well
1254
+ */
1255
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1256
+ /**
1257
+ * Filter, which NativeGatewaySessions to fetch.
1258
+ */
1259
+ where?: Prisma.NativeGatewaySessionWhereInput;
1260
+ /**
1261
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1262
+ *
1263
+ * Determine the order of NativeGatewaySessions to fetch.
1264
+ */
1265
+ orderBy?: Prisma.NativeGatewaySessionOrderByWithRelationInput | Prisma.NativeGatewaySessionOrderByWithRelationInput[];
1266
+ /**
1267
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1268
+ *
1269
+ * Sets the position for listing NativeGatewaySessions.
1270
+ */
1271
+ cursor?: Prisma.NativeGatewaySessionWhereUniqueInput;
1272
+ /**
1273
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1274
+ *
1275
+ * Take `±n` NativeGatewaySessions from the position of the cursor.
1276
+ */
1277
+ take?: number;
1278
+ /**
1279
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1280
+ *
1281
+ * Skip the first `n` NativeGatewaySessions.
1282
+ */
1283
+ skip?: number;
1284
+ /**
1285
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1286
+ *
1287
+ * Filter by unique combinations of NativeGatewaySessions.
1288
+ */
1289
+ distinct?: Prisma.NativeGatewaySessionScalarFieldEnum | Prisma.NativeGatewaySessionScalarFieldEnum[];
1290
+ };
1291
+ /**
1292
+ * NativeGatewaySession create
1293
+ */
1294
+ export type NativeGatewaySessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1295
+ /**
1296
+ * Select specific fields to fetch from the NativeGatewaySession
1297
+ */
1298
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1299
+ /**
1300
+ * Omit specific fields from the NativeGatewaySession
1301
+ */
1302
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1303
+ /**
1304
+ * Choose, which related nodes to fetch as well
1305
+ */
1306
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1307
+ /**
1308
+ * The data needed to create a NativeGatewaySession.
1309
+ */
1310
+ data: Prisma.XOR<Prisma.NativeGatewaySessionCreateInput, Prisma.NativeGatewaySessionUncheckedCreateInput>;
1311
+ };
1312
+ /**
1313
+ * NativeGatewaySession createMany
1314
+ */
1315
+ export type NativeGatewaySessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1316
+ /**
1317
+ * The data used to create many NativeGatewaySessions.
1318
+ */
1319
+ data: Prisma.NativeGatewaySessionCreateManyInput | Prisma.NativeGatewaySessionCreateManyInput[];
1320
+ skipDuplicates?: boolean;
1321
+ };
1322
+ /**
1323
+ * NativeGatewaySession createManyAndReturn
1324
+ */
1325
+ export type NativeGatewaySessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the NativeGatewaySession
1328
+ */
1329
+ select?: Prisma.NativeGatewaySessionSelectCreateManyAndReturn<ExtArgs> | null;
1330
+ /**
1331
+ * Omit specific fields from the NativeGatewaySession
1332
+ */
1333
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1334
+ /**
1335
+ * The data used to create many NativeGatewaySessions.
1336
+ */
1337
+ data: Prisma.NativeGatewaySessionCreateManyInput | Prisma.NativeGatewaySessionCreateManyInput[];
1338
+ skipDuplicates?: boolean;
1339
+ /**
1340
+ * Choose, which related nodes to fetch as well
1341
+ */
1342
+ include?: Prisma.NativeGatewaySessionIncludeCreateManyAndReturn<ExtArgs> | null;
1343
+ };
1344
+ /**
1345
+ * NativeGatewaySession update
1346
+ */
1347
+ export type NativeGatewaySessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * Select specific fields to fetch from the NativeGatewaySession
1350
+ */
1351
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1352
+ /**
1353
+ * Omit specific fields from the NativeGatewaySession
1354
+ */
1355
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1356
+ /**
1357
+ * Choose, which related nodes to fetch as well
1358
+ */
1359
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1360
+ /**
1361
+ * The data needed to update a NativeGatewaySession.
1362
+ */
1363
+ data: Prisma.XOR<Prisma.NativeGatewaySessionUpdateInput, Prisma.NativeGatewaySessionUncheckedUpdateInput>;
1364
+ /**
1365
+ * Choose, which NativeGatewaySession to update.
1366
+ */
1367
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
1368
+ };
1369
+ /**
1370
+ * NativeGatewaySession updateMany
1371
+ */
1372
+ export type NativeGatewaySessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1373
+ /**
1374
+ * The data used to update NativeGatewaySessions.
1375
+ */
1376
+ data: Prisma.XOR<Prisma.NativeGatewaySessionUpdateManyMutationInput, Prisma.NativeGatewaySessionUncheckedUpdateManyInput>;
1377
+ /**
1378
+ * Filter which NativeGatewaySessions to update
1379
+ */
1380
+ where?: Prisma.NativeGatewaySessionWhereInput;
1381
+ /**
1382
+ * Limit how many NativeGatewaySessions to update.
1383
+ */
1384
+ limit?: number;
1385
+ };
1386
+ /**
1387
+ * NativeGatewaySession updateManyAndReturn
1388
+ */
1389
+ export type NativeGatewaySessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1390
+ /**
1391
+ * Select specific fields to fetch from the NativeGatewaySession
1392
+ */
1393
+ select?: Prisma.NativeGatewaySessionSelectUpdateManyAndReturn<ExtArgs> | null;
1394
+ /**
1395
+ * Omit specific fields from the NativeGatewaySession
1396
+ */
1397
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1398
+ /**
1399
+ * The data used to update NativeGatewaySessions.
1400
+ */
1401
+ data: Prisma.XOR<Prisma.NativeGatewaySessionUpdateManyMutationInput, Prisma.NativeGatewaySessionUncheckedUpdateManyInput>;
1402
+ /**
1403
+ * Filter which NativeGatewaySessions to update
1404
+ */
1405
+ where?: Prisma.NativeGatewaySessionWhereInput;
1406
+ /**
1407
+ * Limit how many NativeGatewaySessions to update.
1408
+ */
1409
+ limit?: number;
1410
+ /**
1411
+ * Choose, which related nodes to fetch as well
1412
+ */
1413
+ include?: Prisma.NativeGatewaySessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1414
+ };
1415
+ /**
1416
+ * NativeGatewaySession upsert
1417
+ */
1418
+ export type NativeGatewaySessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ /**
1420
+ * Select specific fields to fetch from the NativeGatewaySession
1421
+ */
1422
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1423
+ /**
1424
+ * Omit specific fields from the NativeGatewaySession
1425
+ */
1426
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1427
+ /**
1428
+ * Choose, which related nodes to fetch as well
1429
+ */
1430
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1431
+ /**
1432
+ * The filter to search for the NativeGatewaySession to update in case it exists.
1433
+ */
1434
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
1435
+ /**
1436
+ * In case the NativeGatewaySession found by the `where` argument doesn't exist, create a new NativeGatewaySession with this data.
1437
+ */
1438
+ create: Prisma.XOR<Prisma.NativeGatewaySessionCreateInput, Prisma.NativeGatewaySessionUncheckedCreateInput>;
1439
+ /**
1440
+ * In case the NativeGatewaySession was found with the provided `where` argument, update it with this data.
1441
+ */
1442
+ update: Prisma.XOR<Prisma.NativeGatewaySessionUpdateInput, Prisma.NativeGatewaySessionUncheckedUpdateInput>;
1443
+ };
1444
+ /**
1445
+ * NativeGatewaySession delete
1446
+ */
1447
+ export type NativeGatewaySessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1448
+ /**
1449
+ * Select specific fields to fetch from the NativeGatewaySession
1450
+ */
1451
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1452
+ /**
1453
+ * Omit specific fields from the NativeGatewaySession
1454
+ */
1455
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1456
+ /**
1457
+ * Choose, which related nodes to fetch as well
1458
+ */
1459
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1460
+ /**
1461
+ * Filter which NativeGatewaySession to delete.
1462
+ */
1463
+ where: Prisma.NativeGatewaySessionWhereUniqueInput;
1464
+ };
1465
+ /**
1466
+ * NativeGatewaySession deleteMany
1467
+ */
1468
+ export type NativeGatewaySessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1469
+ /**
1470
+ * Filter which NativeGatewaySessions to delete
1471
+ */
1472
+ where?: Prisma.NativeGatewaySessionWhereInput;
1473
+ /**
1474
+ * Limit how many NativeGatewaySessions to delete.
1475
+ */
1476
+ limit?: number;
1477
+ };
1478
+ /**
1479
+ * NativeGatewaySession.calls
1480
+ */
1481
+ export type NativeGatewaySession$callsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * Select specific fields to fetch from the NativeGatewayCall
1484
+ */
1485
+ select?: Prisma.NativeGatewayCallSelect<ExtArgs> | null;
1486
+ /**
1487
+ * Omit specific fields from the NativeGatewayCall
1488
+ */
1489
+ omit?: Prisma.NativeGatewayCallOmit<ExtArgs> | null;
1490
+ /**
1491
+ * Choose, which related nodes to fetch as well
1492
+ */
1493
+ include?: Prisma.NativeGatewayCallInclude<ExtArgs> | null;
1494
+ where?: Prisma.NativeGatewayCallWhereInput;
1495
+ orderBy?: Prisma.NativeGatewayCallOrderByWithRelationInput | Prisma.NativeGatewayCallOrderByWithRelationInput[];
1496
+ cursor?: Prisma.NativeGatewayCallWhereUniqueInput;
1497
+ take?: number;
1498
+ skip?: number;
1499
+ distinct?: Prisma.NativeGatewayCallScalarFieldEnum | Prisma.NativeGatewayCallScalarFieldEnum[];
1500
+ };
1501
+ /**
1502
+ * NativeGatewaySession without action
1503
+ */
1504
+ export type NativeGatewaySessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1505
+ /**
1506
+ * Select specific fields to fetch from the NativeGatewaySession
1507
+ */
1508
+ select?: Prisma.NativeGatewaySessionSelect<ExtArgs> | null;
1509
+ /**
1510
+ * Omit specific fields from the NativeGatewaySession
1511
+ */
1512
+ omit?: Prisma.NativeGatewaySessionOmit<ExtArgs> | null;
1513
+ /**
1514
+ * Choose, which related nodes to fetch as well
1515
+ */
1516
+ include?: Prisma.NativeGatewaySessionInclude<ExtArgs> | null;
1517
+ };