deepline 0.3.460 → 0.3.462

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 (297) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +7593 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -7366
  3. package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
  4. package/dist/bundling-sources/sdk/src/http.ts +6 -1231
  5. package/dist/bundling-sources/sdk/src/index.ts +4 -1
  6. package/dist/bundling-sources/sdk/src/play.ts +5 -5
  7. package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
  8. package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
  9. package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
  10. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  13. package/dist/bundling-sources/sdk/src/server.ts +43 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +15 -5
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
  16. package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +28 -0
  17. package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
  18. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
  19. package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
  20. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  21. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
  22. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +59 -0
  23. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +94 -1
  24. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +35 -1
  25. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
  26. package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
  27. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
  28. package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
  30. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
  31. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
  32. package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
  34. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
  38. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
  39. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
  40. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
  42. package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
  44. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
  46. package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
  47. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
  48. package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
  49. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
  50. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
  53. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
  54. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
  56. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
  57. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  60. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
  64. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
  65. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
  66. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
  67. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
  68. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
  69. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
  71. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
  72. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
  73. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
  74. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
  76. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
  77. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
  78. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
  79. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
  80. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
  81. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
  82. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
  83. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
  84. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
  85. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
  86. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
  88. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
  91. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
  92. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
  95. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
  96. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
  97. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +162 -23
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
  104. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
  105. package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
  106. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
  108. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
  109. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
  110. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +26 -3
  111. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +16 -2
  112. package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
  113. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
  114. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
  115. package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
  116. package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
  117. package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
  118. package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
  119. package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
  120. package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
  121. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
  122. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
  123. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
  124. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
  125. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
  126. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
  127. package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
  128. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
  129. package/dist/cli/{auth-HKA6ZVHQ.mjs → auth-JDLEY7VU.mjs} +5 -4
  130. package/dist/cli/auth-UXKY6TCC.js +41 -0
  131. package/dist/cli/{billing-MTO2ZZ3G.js → billing-HXAXB3XZ.js} +152 -78
  132. package/dist/cli/{billing-26G44S5N.mjs → billing-SDHLBLMV.mjs} +84 -10
  133. package/dist/cli/{chunk-BHGII2D6.js → chunk-3ACMRZRV.js} +8 -6
  134. package/dist/cli/{chunk-S4Q2XCGM.mjs → chunk-3KZCFOZ6.mjs} +1 -1
  135. package/dist/cli/chunk-4KQ6SIBC.mjs +1038 -0
  136. package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
  137. package/dist/cli/{chunk-XAYO3Q2X.mjs → chunk-6NNVJDVR.mjs} +7 -5
  138. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
  139. package/dist/cli/{chunk-OMM54B3X.mjs → chunk-6RNQGWFD.mjs} +16 -806
  140. package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
  141. package/dist/cli/{chunk-RDPTDDKX.js → chunk-7LFIMWMW.js} +2 -2
  142. package/dist/cli/chunk-7MJ6VI2T.mjs +19 -0
  143. package/dist/cli/chunk-7SWNPNML.js +1039 -0
  144. package/dist/cli/{chunk-CTRPCARW.mjs → chunk-7U3XNPOA.mjs} +267 -38
  145. package/dist/cli/{chunk-RBTTUYZZ.js → chunk-7VZHXVOQ.js} +1 -1
  146. package/dist/cli/{chunk-YVBWO647.mjs → chunk-AT636LLU.mjs} +2 -2
  147. package/dist/cli/{chunk-VTODQWQA.js → chunk-BGTPIMSM.js} +392 -261
  148. package/dist/cli/{chunk-KADIT5NV.mjs → chunk-CKSOY47X.mjs} +2 -2
  149. package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
  150. package/dist/cli/chunk-D6DXOUTO.mjs +827 -0
  151. package/dist/cli/{describe-QW54QQNB.js → chunk-EM4TXCCI.js} +27 -44
  152. package/dist/cli/chunk-F6QV42MC.mjs +91 -0
  153. package/dist/cli/chunk-FKVYR3QA.mjs +1039 -0
  154. package/dist/cli/{chunk-LMAULZLF.js → chunk-GEGW5HPZ.js} +29 -27
  155. package/dist/cli/{chunk-M52JQSLK.js → chunk-HUB3CCM2.js} +13 -4
  156. package/dist/cli/{chunk-YHTQM5XI.js → chunk-I6VHOU5O.js} +27 -27
  157. package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
  158. package/dist/cli/chunk-JF3TLIMQ.js +19 -0
  159. package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
  160. package/dist/cli/{chunk-LAWEURCT.mjs → chunk-LFXLQEZN.mjs} +1 -1
  161. package/dist/cli/{chunk-2PBN4SZE.js → chunk-LROWFPGN.js} +16 -16
  162. package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
  163. package/dist/cli/{chunk-LVJOFUU7.mjs → chunk-MUUQZIOF.mjs} +23 -49
  164. package/dist/cli/{chunk-2XHWOQF4.js → chunk-NBLSCHKK.js} +52 -50
  165. package/dist/cli/{chunk-526R2HON.mjs → chunk-NHRWZPWZ.mjs} +4 -2
  166. package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
  167. package/dist/cli/{chunk-W3BE3CHK.mjs → chunk-O2RX5A66.mjs} +14 -12
  168. package/dist/cli/{chunk-UKFZT7RF.js → chunk-OMQ23IXL.js} +2 -2
  169. package/dist/cli/{chunk-LJTFZOHU.js → chunk-OPJAJBD4.js} +28 -54
  170. package/dist/cli/{chunk-MLFR6DVF.mjs → chunk-PHSEINNH.mjs} +5 -5
  171. package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-PKHVSIJG.mjs} +19 -1
  172. package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
  173. package/dist/cli/{chunk-VJAEA4CS.js → chunk-QJZ6WNWD.js} +8 -8
  174. package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
  175. package/dist/cli/{chunk-RZSTT45F.mjs → chunk-S42YIQNE.mjs} +13 -8
  176. package/dist/cli/{chunk-YULBYKAK.mjs → chunk-S6UAJR6V.mjs} +3 -3
  177. package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
  178. package/dist/cli/{chunk-QWRHGGUH.js → chunk-UAJFWWZE.js} +20 -2
  179. package/dist/cli/{chunk-ZR2RLI4O.mjs → chunk-UDRPEZ5F.mjs} +223 -92
  180. package/dist/cli/{chunk-QGAWTBIR.js → chunk-ULK7JGGI.js} +511 -282
  181. package/dist/cli/chunk-V335HGX5.js +1038 -0
  182. package/dist/cli/{chunk-NH6JSJW6.mjs → chunk-V3MEA7NB.mjs} +7 -5
  183. package/dist/cli/{chunk-NRGGFVVB.js → chunk-VFGVXXZP.js} +37 -35
  184. package/dist/cli/chunk-VLEVVDWG.js +91 -0
  185. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
  186. package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
  187. package/dist/cli/{describe-TOMIAT37.mjs → chunk-WIY6U6GD.mjs} +19 -36
  188. package/dist/cli/{chunk-YS2YBSJB.js → chunk-XANRM3QA.js} +6 -6
  189. package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
  190. package/dist/cli/{chunk-EJGBLXDZ.mjs → chunk-XZAFIOUQ.mjs} +1 -1
  191. package/dist/cli/chunk-Y4DPU4OM.js +827 -0
  192. package/dist/cli/chunk-YT5EODJO.js +920 -0
  193. package/dist/cli/{chunk-2WRO2UJ5.js → chunk-ZGQSFYD2.js} +56 -51
  194. package/dist/cli/{chunk-OJ6RUKVT.mjs → chunk-ZUK6LIJB.mjs} +10 -1
  195. package/dist/cli/command-docs.d.mts +5 -0
  196. package/dist/cli/command-docs.d.ts +5 -0
  197. package/dist/cli/command-docs.js +2 -2
  198. package/dist/cli/command-docs.mjs +1 -1
  199. package/dist/cli/{csv-6FNFYJUC.js → csv-C56GSCEU.js} +13 -12
  200. package/dist/cli/{csv-MDHT4BKK.mjs → csv-L54JS7TF.mjs} +4 -3
  201. package/dist/cli/{db-D6AMVOEW.js → db-MOGRMZTA.js} +30 -27
  202. package/dist/cli/{db-74O3RFWY.mjs → db-YVBUW2DX.mjs} +10 -7
  203. package/dist/cli/describe-KYEULWPG.js +48 -0
  204. package/dist/cli/describe-NLZKKT7C.mjs +48 -0
  205. package/dist/cli/describe-core.d.mts +153 -5
  206. package/dist/cli/describe-core.d.ts +153 -5
  207. package/dist/cli/describe-core.js +9 -5
  208. package/dist/cli/describe-core.mjs +10 -6
  209. package/dist/cli/{executions-N4FMGVSC.js → executions-A7L4ULPP.js} +9 -7
  210. package/dist/cli/{executions-PVSF4HUF.mjs → executions-ZBGSTT37.mjs} +7 -5
  211. package/dist/cli/{feedback-OB7NANZW.mjs → feedback-G6GU37FD.mjs} +6 -5
  212. package/dist/cli/{feedback-WFSPCAI2.js → feedback-OHLY7RYD.js} +10 -9
  213. package/dist/cli/getting-started.d.mts +6 -6
  214. package/dist/cli/getting-started.d.ts +6 -6
  215. package/dist/cli/getting-started.js +2 -2
  216. package/dist/cli/getting-started.mjs +1 -1
  217. package/dist/cli/git-P76N4NDQ.js +25 -0
  218. package/dist/cli/{git-FHUSPAEU.mjs → git-PKZW3QD5.mjs} +5 -4
  219. package/dist/cli/index.js +152 -142
  220. package/dist/cli/index.mjs +56 -46
  221. package/dist/cli/{legacy-noops-ECHNA5HN.js → legacy-noops-5LM3D724.js} +8 -7
  222. package/dist/cli/{legacy-noops-HMK4BSCI.mjs → legacy-noops-LJJYG6YA.mjs} +5 -4
  223. package/dist/cli/{monitors-U7VQ3EZM.mjs → monitors-72QV4ALO.mjs} +19 -6
  224. package/dist/cli/{monitors-XLLFNENH.js → monitors-UX3H5DC2.js} +103 -90
  225. package/dist/cli/{org-6H3USO5M.mjs → org-6RRRKOCP.mjs} +9 -6
  226. package/dist/cli/{org-QX6ER2HN.js → org-IF7ISUVB.js} +70 -67
  227. package/dist/cli/pages-3SU3HKL7.js +252 -0
  228. package/dist/cli/pages-DXDYYKEK.mjs +252 -0
  229. package/dist/cli/{play-MOB2WYOR.mjs → play-AHASKRLA.mjs} +512 -1508
  230. package/dist/cli/{play-WNB7HBZK.js → play-EUIUVLUH.js} +1090 -2086
  231. package/dist/cli/{providers-CXEZ23E2.mjs → providers-GWGE3WY3.mjs} +7 -5
  232. package/dist/cli/{providers-7M3DISKX.js → providers-V5WU4VXJ.js} +10 -8
  233. package/dist/cli/{quickstart-ZFCHKHF6.mjs → quickstart-OXKQ5ZST.mjs} +5 -4
  234. package/dist/cli/{quickstart-CLJT4AZL.js → quickstart-QP65I5PF.js} +13 -12
  235. package/dist/cli/run-6MM72IGL.mjs +443 -0
  236. package/dist/cli/run-F3FTYS56.js +443 -0
  237. package/dist/cli/search-OYKOOI7A.js +32 -0
  238. package/dist/cli/{search-FVYWYIC3.mjs → search-ZMEBVJZB.mjs} +8 -6
  239. package/dist/cli/{secrets-YRLKZQS5.js → secrets-ACND5N6A.js} +16 -14
  240. package/dist/cli/{secrets-WAMPTQFC.mjs → secrets-XRCJFF3L.mjs} +7 -5
  241. package/dist/cli/{sessions-IQ332BJH.mjs → sessions-RTK3CEW6.mjs} +5 -4
  242. package/dist/cli/{sessions-44J6WIVU.js → sessions-ZGRJPCFF.js} +6 -5
  243. package/dist/cli/{settings-4IJR2I2T.js → settings-PD5KWQQZ.js} +80 -77
  244. package/dist/cli/{settings-22S6NIFQ.mjs → settings-XDRBPRDE.mjs} +14 -11
  245. package/dist/cli/{setup-OZUPKKPW.mjs → setup-3HPYAOCC.mjs} +12 -10
  246. package/dist/cli/{setup-3FWSRNOX.js → setup-E2Q6PXHC.js} +53 -51
  247. package/dist/cli/{skills-5CW3NFP3.mjs → skills-OOQFMPOV.mjs} +7 -6
  248. package/dist/cli/skills-XYWV52KB.js +31 -0
  249. package/dist/cli/tools-ASCDZJCK.js +55 -0
  250. package/dist/cli/tools-C5ZT3UIC.mjs +55 -0
  251. package/dist/cli/update-5RQSEIFM.js +33 -0
  252. package/dist/cli/{update-IBULOV7P.mjs → update-ZWJTADIW.mjs} +9 -8
  253. package/dist/cli/{workflow-MVZT7MWT.mjs → workflow-23NMPAJ7.mjs} +10 -8
  254. package/dist/cli/{workflow-Z7FW6GT2.js → workflow-TCXU5YJV.js} +20 -18
  255. package/dist/client-DS2IWYZF.d.ts +10 -0
  256. package/dist/client-DTwnz_AW.d.mts +10 -0
  257. package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
  258. package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
  259. package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
  260. package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
  261. package/dist/errors-d-sTrZhe.d.mts +142 -0
  262. package/dist/errors-yQwfgrcX.d.ts +142 -0
  263. package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
  264. package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
  265. package/dist/index.d.mts +11 -147
  266. package/dist/index.d.ts +11 -147
  267. package/dist/index.js +15 -11
  268. package/dist/index.mjs +14 -10
  269. package/dist/install-integrity.json +141 -104
  270. package/dist/plays/bundle-play-file.d.mts +3 -3
  271. package/dist/plays/bundle-play-file.d.ts +3 -3
  272. package/dist/plays/bundle-play-file.mjs +2 -1
  273. package/dist/plays/play-description.d.mts +2 -2
  274. package/dist/plays/play-description.d.ts +2 -2
  275. package/dist/plays/play-description.js +2 -2
  276. package/dist/plays/play-description.mjs +1 -1
  277. package/dist/plays/run-request.d.mts +2 -2
  278. package/dist/plays/run-request.d.ts +2 -2
  279. package/dist/release.d.mts +1 -1
  280. package/dist/release.d.ts +1 -1
  281. package/dist/release.js +2 -2
  282. package/dist/release.mjs +1 -1
  283. package/dist/server.d.mts +17 -0
  284. package/dist/server.d.ts +17 -0
  285. package/dist/server.js +76 -0
  286. package/dist/server.mjs +76 -0
  287. package/package.json +6 -1
  288. package/dist/cli/auth-VDOCNR7H.js +0 -40
  289. package/dist/cli/chunk-PQUUWFXY.js +0 -95
  290. package/dist/cli/chunk-QJLKYYPX.js +0 -1710
  291. package/dist/cli/chunk-YBWAG72P.mjs +0 -95
  292. package/dist/cli/git-4PMBJSH5.js +0 -24
  293. package/dist/cli/search-4CCQCTVD.js +0 -30
  294. package/dist/cli/skills-LMNM6B5F.js +0 -30
  295. package/dist/cli/tools-AGBBDJ7P.js +0 -45
  296. package/dist/cli/tools-NOPBDRGW.mjs +0 -45
  297. package/dist/cli/update-U3W6USVD.js +0 -32
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-CWz_sNOQ.mjs';
2
+ import { u as PlayCompilerManifest, am as ToolResultBilling, D as DeeplineError, B as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-Dcyd3-Zd.mjs';
3
3
  import { z } from 'zod';
4
4
  import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
5
5
 
@@ -298,6 +298,8 @@ type FixtureReplayBundle = {
298
298
  bundleId: string;
299
299
  manifestSha256: string;
300
300
  syntheticFallbackToolIds?: string[];
301
+ /** Opt-in response selection by seed + semantic payload, independent of run/org identities. */
302
+ selectionSeed?: string;
301
303
  };
302
304
  type FixtureBehaviorV3 = {
303
305
  version: typeof FIXTURE_BEHAVIOR_REPLAY_VERSION;
@@ -308,6 +310,90 @@ type FixtureBehaviorV3 = {
308
310
  };
309
311
  type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
310
312
 
313
+ /** Closed producer-owned terminal sample. Never read this from Play output.
314
+ * CPU is runner-process lifetime usage; peaks are process high-water samples.
315
+ * These are neither database CPU nor provider occupancy/billable seconds.
316
+ */
317
+ declare const TERMINAL_RUNTIME_PHASES: readonly ["rowAdmission", "providerAdmission", "externalExecution", "providerResidence", "fixtureDelay", "transportSlotWait", "fetchToHeaders", "bodyRead", "eventLoopLag", "receiptSettlement", "receiptClaim", "receiptHydrationGateWait", "receiptCompletionQueue", "receiptCompletionFlight", "receiptCompletionReadBack", "rowPersistence", "dispatchQueueWait", "rowResolverGap", "toolCallLogicalWall", "resultDelivery", "deliveryWrap", "deliveryPublishWait", "deliveryResolve", "flightSerialize", "flightTransport", "flightDecode", "gatewayAuthLaunch", "gatewayAuthVerify", "gatewayBodyParse", "gatewayBodyInflate", "gatewayPoolWait", "gatewayReceiptValuePersist", "gatewayCallback", "gatewayRoundTrip", "gatewayRequestSerialize", "gatewayRequestPack"];
318
+ type TerminalRuntimePhase = (typeof TERMINAL_RUNTIME_PHASES)[number];
319
+ type TerminalRuntimeSegment = {
320
+ attempt: number;
321
+ invocationSeq: number;
322
+ segmentId: string;
323
+ };
324
+ type TerminalRuntimePerformanceUnavailableReason = 'invalid_runner_stats' | 'invalid_terminal_performance';
325
+ type TerminalRuntimeHistogram = [
326
+ number,
327
+ number,
328
+ number,
329
+ number,
330
+ number,
331
+ number,
332
+ number,
333
+ number,
334
+ number,
335
+ number,
336
+ number,
337
+ number,
338
+ number,
339
+ number,
340
+ number,
341
+ number,
342
+ number,
343
+ number
344
+ ];
345
+ type TerminalRuntimeDistribution = {
346
+ count: number;
347
+ totalMs: number;
348
+ maxMs: number | null;
349
+ ewmaMs: number | null;
350
+ p50Ms: number | null;
351
+ p90Ms: number | null;
352
+ p99Ms: number | null;
353
+ /** Bucket0 <1ms; buckets1..16 powers of two; bucket17 >=65536ms. */
354
+ histogram: TerminalRuntimeHistogram;
355
+ };
356
+ /** Decoded runner execute-envelope UTF-8 bytes, not upstream wire bytes or RSS. */
357
+ type TerminalRuntimeToolResponseBodyAdmission = {
358
+ turns: number;
359
+ measuredTurns: number;
360
+ decodedUtf8BytesTotal: number;
361
+ decodedUtf8BytesMax: number;
362
+ /** Peak simultaneous expected-or-measured gate reservations. */
363
+ permitBytesPeak: number;
364
+ /** Delayed requests may abort before admission; refusals may repeat. */
365
+ queuedTurns: number;
366
+ budgetRefusals: number;
367
+ progressAdmissions: number;
368
+ unpricedAdmissions: number;
369
+ };
370
+ type TerminalRuntimePerformance = TerminalRuntimeSegment & {
371
+ scope: 'terminal_attempt';
372
+ process: {
373
+ cpuUserMs: number;
374
+ cpuSystemMs: number;
375
+ rssBytes: number | null;
376
+ maxRssBytes: number | null;
377
+ heapUsedBytes: number | null;
378
+ externalBytes: number | null;
379
+ };
380
+ counters: {
381
+ logicalCalls: number;
382
+ providerRequests: number;
383
+ provider429s: number;
384
+ };
385
+ phases: Partial<Record<TerminalRuntimePhase, TerminalRuntimeDistribution>>;
386
+ /** Maximum individual map peak; not a sum or simultaneous whole-run peak. */
387
+ rows: {
388
+ mapCount: number;
389
+ maxIndividualMapActiveRowPeak: number;
390
+ };
391
+ /** Missing means an older/partial producer, never measured zero bytes. */
392
+ memoryAdmission?: {
393
+ toolResponseBody: TerminalRuntimeToolResponseBodyAdmission;
394
+ };
395
+ };
396
+
311
397
  /** Declarative request predicates authored by the server, with no provider knowledge in clients. */
312
398
  type ToolRequestCondition = {
313
399
  field: string;
@@ -353,6 +439,17 @@ type PlayRuntimeSelection = {
353
439
  /** Durable placement contract for the selected Preview worker lane. */
354
440
  sandboxPlacementPolicy?: string;
355
441
  };
442
+ /**
443
+ * The app's own runtime, on a named sandbox placement policy. Internal-only:
444
+ * the `play_run.sandbox_placement` capability in
445
+ * `@deepline/auth/internal-capabilities` decides who may send it.
446
+ */
447
+ type PlayNativeRuntimeSelection = {
448
+ environment: 'native';
449
+ sandboxPlacementPolicy: string;
450
+ };
451
+ /** Every `runtime` value a Play run accepts. */
452
+ type PlayRunRuntimeSelection = PlayRuntimeSelection | PlayNativeRuntimeSelection;
356
453
 
357
454
  declare const RUN_LOG_LEVELS: readonly ["debug", "info", "warn", "error"];
358
455
  type RunLogLevel = (typeof RUN_LOG_LEVELS)[number];
@@ -606,6 +703,14 @@ type NotificationText = string | readonly (string | {
606
703
  icon: NotificationIcon;
607
704
  })[];
608
705
  type NotificationIcon = 'calendar' | 'book-open';
706
+ type PlayRunEmailContent = {
707
+ name: string;
708
+ description?: string;
709
+ output?: string;
710
+ error?: string;
711
+ runId: string;
712
+ details: NotificationText[];
713
+ };
609
714
 
610
715
  declare const PRODUCT_NOTIFICATION_EVENT_NAMES: readonly ["credits.balance.changed", "monitor.lifecycle.changed", "play.lifecycle.changed", "play.run.completed", "webhook.delivery.completed", "credits.usage.recorded", "billing.auto_topup.limit_observed", "credits.purchase.completed", "billing.plan.purchased", "billing.purchase.late", "billing.renewal.late"];
611
716
  declare const PRODUCT_NOTIFICATION_COMPATIBILITY_EVENT_NAMES: readonly ["play.cron.succeeded", "play.cron.failed", "play.webhook.succeeded", "play.webhook.failed"];
@@ -661,6 +766,7 @@ type ProductNotificationPresentation = {
661
766
  severity?: ProductNotificationSeverity;
662
767
  /** Selects an alternate email layout; absent means the standard one. */
663
768
  emailFormat?: 'thank_you';
769
+ playRun?: PlayRunEmailContent;
664
770
  };
665
771
  type ProductNotificationRuleInput = {
666
772
  ruleKey: string;
@@ -2349,6 +2455,9 @@ interface PlayRunPackage {
2349
2455
  sourceRunId?: string;
2350
2456
  };
2351
2457
  error?: string;
2458
+ /** Accepted terminal invocation only; absent on older/unsupported runtimes. */
2459
+ performance?: TerminalRuntimePerformance;
2460
+ performanceUnavailableReason?: TerminalRuntimePerformanceUnavailableReason;
2352
2461
  /** Canonical explanation of what this run is doing or waiting on. */
2353
2462
  activity?: PlayRunActivityProjection | null;
2354
2463
  };
@@ -3267,7 +3376,7 @@ interface ClearPlayHistoryResult {
3267
3376
  * Response from starting a play run.
3268
3377
  *
3269
3378
  * Internal/advanced payload returned by low-level play submission primitives.
3270
- * Most callers should prefer `deepline plays run`, {@link DeeplineClient.runPlay},
3379
+ * Most callers should prefer `deepline run`, {@link DeeplineClient.runPlay},
3271
3380
  * or {@link PlayJob.get}.
3272
3381
  *
3273
3382
  * @example
@@ -3531,7 +3640,7 @@ interface PlayCheckToolGetterHint {
3531
3640
  * Request body for starting a play run via {@link DeeplineClient.startPlayRun}.
3532
3641
  *
3533
3642
  * Internal/advanced request shape for low-level submission primitives.
3534
- * Most callers should prefer `deepline plays run`, {@link DeeplineClient.runPlay},
3643
+ * Most callers should prefer `deepline run`, {@link DeeplineClient.runPlay},
3535
3644
  * or {@link Deepline.connect}.
3536
3645
  *
3537
3646
  * Either `name` (for live plays) or `artifactStorageKey` (for packaged ad hoc runs) is required.
@@ -3616,8 +3725,11 @@ interface StartPlayRunRequest {
3616
3725
  integrationMode?: 'live' | 'eval_stub' | 'fixture';
3617
3726
  /** Fixture-only provider response timing and outcome simulation. */
3618
3727
  fixtureBehavior?: FixtureBehavior;
3619
- /** Internal runtime estate selection. The app host remains unchanged. */
3620
- runtime?: PlayRuntimeSelection;
3728
+ /**
3729
+ * Internal runtime selection: a Preview estate, or the app's own runtime on
3730
+ * a named sandbox placement policy. The app host remains unchanged.
3731
+ */
3732
+ runtime?: PlayRunRuntimeSelection;
3621
3733
  /** Internal/dev-only runtime policy overrides for black-box durability tests. */
3622
3734
  testPolicyOverrides?: Record<string, unknown>;
3623
3735
  }
@@ -3732,6 +3844,154 @@ declare function cloneEditStarter(play: Pick<PlayListItem, 'name' | 'reference'
3732
3844
  declare function describePlayListItem(play: PlayListItem, options?: PlayDescriptionOptions): PlayDescription;
3733
3845
  declare function describePlayDetail(detail: PlayDetail, options?: PlayDescriptionOptions): PlayDescription;
3734
3846
 
3847
+ /**
3848
+ * HTTP transport layer for the Deepline SDK.
3849
+ *
3850
+ * Handles authentication, retries with exponential backoff, localhost failover
3851
+ * (tries both `localhost` and `127.0.0.1`), and structured error mapping.
3852
+ *
3853
+ * ## Retry behavior
3854
+ *
3855
+ * - **Max attempts**: `1 + maxRetries` (default: 4 total attempts)
3856
+ * - **Backoff**: exponential — 1s, 2s, 4s, 8s, ... capped at 30s
3857
+ * - **Total automatic retry wait**: 30s per request; a longer upstream
3858
+ * `Retry-After` is returned to the caller instead of blocking the request
3859
+ * - **Retryable**: network errors, timeouts, HTTP 429 (rate limit)
3860
+ * - **Not retryable**: HTTP 401 (auth error), HTTP 403 and other 4xx API errors
3861
+ *
3862
+ * ## Localhost failover
3863
+ *
3864
+ * Local development hosts try loopback variants. This handles DNS resolution
3865
+ * differences across platforms.
3866
+ *
3867
+ * @module
3868
+ */
3869
+
3870
+ interface RequestOptions {
3871
+ method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3872
+ body?: unknown;
3873
+ formData?: FormData | (() => FormData);
3874
+ headers?: Record<string, string>;
3875
+ /** Per-request timeout override in milliseconds. */
3876
+ timeout?: number;
3877
+ /** Cancel this request, including body reads, failover, and retry waits. */
3878
+ signal?: AbortSignal;
3879
+ /**
3880
+ * Retry HTTP 408/425/5xx JSON API responses. Use only for idempotent requests;
3881
+ * most mutating API calls must fail loudly after the first server response.
3882
+ */
3883
+ retryApiErrors?: boolean;
3884
+ /**
3885
+ * Only explicit server-authorized responses may retry; transport failures
3886
+ * never retry unless `retryAmbiguousDelivery` is also set.
3887
+ */
3888
+ retryFromExecutePolicy?: boolean;
3889
+ /**
3890
+ * The server declared this tool safe to resend after a timeout or lost
3891
+ * response, so those failures retry and stay retryable when exhausted.
3892
+ */
3893
+ retryAmbiguousDelivery?: boolean;
3894
+ /** Retry budget enabled only by an explicit safe execute-policy response. */
3895
+ executePolicyMaxRetries?: number;
3896
+ /** Per-request retry override. Use 0 for possibly delivered mutating calls. */
3897
+ maxRetries?: number;
3898
+ /** Disable localhost/127.0.0.1 failover for non-idempotent requests. */
3899
+ exactUrlOnly?: boolean;
3900
+ /**
3901
+ * Return a server-owned 429 envelope as a DeeplineError instead of replacing
3902
+ * it with the transport's generic RateLimitError. Lifecycle mutations use
3903
+ * this when their response explains whether the upstream change applied.
3904
+ */
3905
+ preserveRateLimitResponse?: boolean;
3906
+ /** Enables endpoint-specific structured tool failure mapping. */
3907
+ toolId?: string;
3908
+ onResponse?: (response: Response) => void;
3909
+ /** Observation after the entire response body arrives, before error mapping. */
3910
+ onResponseBody?: (observation: {
3911
+ receivedAtMs: number;
3912
+ httpStatus: number;
3913
+ body: unknown;
3914
+ }) => void;
3915
+ allowNotFound?: boolean;
3916
+ idempotencyKey?: string;
3917
+ }
3918
+ interface StreamOptions {
3919
+ method?: 'GET' | 'POST';
3920
+ /** An unkeyed mutation must not try another URL after a lost response. */
3921
+ exactUrlOnly?: boolean;
3922
+ body?: unknown;
3923
+ headers?: Record<string, string>;
3924
+ signal?: AbortSignal;
3925
+ }
3926
+ /**
3927
+ * Low-level HTTP client used internally by {@link DeeplineClient}.
3928
+ *
3929
+ * You typically don't construct this directly — it's created automatically
3930
+ * when you instantiate `DeeplineClient` or call `Deepline.connect()`.
3931
+ *
3932
+ * @example
3933
+ * ```typescript
3934
+ * // Internal usage pattern:
3935
+ * const http = new HttpClient(resolvedConfig);
3936
+ * const tools = await http.get<{ tools: ToolDefinition[] }>('/api/v2/tools');
3937
+ * const result = await http.post('/api/v2/integrations/apollo/execute', { payload: input });
3938
+ * ```
3939
+ */
3940
+ declare class HttpClient {
3941
+ private config;
3942
+ private readonly readLocalSkillsVersion?;
3943
+ constructor(config: ResolvedConfig, readLocalSkillsVersion?: ((baseUrl: string) => string | null) | undefined);
3944
+ private cleanDiagnosticHeader;
3945
+ private environment;
3946
+ private readSkillsVersionHeader;
3947
+ private authHeaders;
3948
+ /**
3949
+ * Send an HTTP request with automatic retries and error handling.
3950
+ *
3951
+ * @typeParam T - Expected response body type
3952
+ * @param path - API path (e.g. `"/api/v2/tools"`)
3953
+ * @param options - HTTP method, body, headers, and timeout
3954
+ * @returns Parsed JSON response body
3955
+ * @throws {@link AuthError} on Deepline-auth HTTP 401/403 (immediate, no retry)
3956
+ * @throws {@link RateLimitError} on HTTP 429 after all retries exhausted
3957
+ * @throws {@link DeeplineError} on other API errors or connection failures
3958
+ */
3959
+ request<T = unknown>(path: string, options?: RequestOptions): Promise<T>;
3960
+ /**
3961
+ * Send a GET request.
3962
+ *
3963
+ * @typeParam T - Expected response body type
3964
+ * @param path - API path (e.g. `"/api/v2/tools"`)
3965
+ */
3966
+ get<T = unknown>(path: string, options?: Pick<RequestOptions, 'retryApiErrors' | 'timeout' | 'signal' | 'maxRetries' | 'exactUrlOnly' | 'toolId' | 'onResponse' | 'onResponseBody' | 'allowNotFound' | 'idempotencyKey' | 'headers'>): Promise<T>;
3967
+ streamSse<TEvent extends LiveEventEnvelope = LiveEventEnvelope>(path: string, options?: StreamOptions): AsyncGenerator<TEvent>;
3968
+ /**
3969
+ * Send a POST request with a JSON body.
3970
+ *
3971
+ * @typeParam T - Expected response body type
3972
+ * @param path - API path
3973
+ * @param body - Request body (will be JSON-serialized)
3974
+ */
3975
+ post<T = unknown>(path: string, body: unknown, headers?: Record<string, string>, options?: Pick<RequestOptions, 'retryApiErrors' | 'retryFromExecutePolicy' | 'retryAmbiguousDelivery' | 'executePolicyMaxRetries' | 'timeout' | 'signal' | 'maxRetries' | 'exactUrlOnly' | 'toolId' | 'onResponse' | 'onResponseBody' | 'allowNotFound' | 'idempotencyKey'>): Promise<T>;
3976
+ postFormData<T = unknown>(path: string, formData: FormData | (() => FormData), headers?: Record<string, string>): Promise<T>;
3977
+ /**
3978
+ * Send a PATCH request with a JSON body.
3979
+ *
3980
+ * @typeParam T - Expected response body type
3981
+ * @param path - API path
3982
+ * @param body - JSON-serializable request body
3983
+ */
3984
+ patch<T = unknown>(path: string, body?: unknown, headers?: Record<string, string>): Promise<T>;
3985
+ put<T = unknown>(path: string, body?: unknown, headers?: Record<string, string>): Promise<T>;
3986
+ /**
3987
+ * Send a DELETE request.
3988
+ *
3989
+ * @typeParam T - Expected response body type
3990
+ * @param path - API path
3991
+ */
3992
+ delete<T = unknown>(path: string): Promise<T>;
3993
+ }
3994
+
3735
3995
  type CustomerDbQueryOptions = {
3736
3996
  sql: string;
3737
3997
  maxRows?: number;
@@ -4218,7 +4478,7 @@ interface PlayStagedFileRef {
4218
4478
  /**
4219
4479
  * The one client-side construction of a Play run start.
4220
4480
  *
4221
- * `deepline plays run <name>` (CLI), `DeeplineClient.startPlayRun` (SDK), and
4481
+ * `deepline run <name>` (CLI), `DeeplineClient.startPlayRun` (SDK), and
4222
4482
  * the dashboard's "Run in UI" form all start a run through this module: the
4223
4483
  * same file-input bindings, the same staged-file upload
4224
4484
  * (`/api/v2/plays/files/stage/mint`, direct PUT, multipart fallback), the same
@@ -4950,6 +5210,8 @@ type PlaySheetRowsResult = {
4950
5210
  kind: 'run';
4951
5211
  runId: string;
4952
5212
  };
5213
+ /** Present when the server applied the counts-only aggregate mode. */
5214
+ summaryMode?: 'counts';
4953
5215
  summary?: {
4954
5216
  stats?: {
4955
5217
  total?: number;
@@ -5045,6 +5307,8 @@ type RunsNamespace = {
5045
5307
  limit?: number;
5046
5308
  offset?: number;
5047
5309
  rowMode?: 'output' | 'all' | 'live';
5310
+ /** Keep exact row counts while omitting column aggregates with `counts`. */
5311
+ summary?: 'full' | 'counts';
5048
5312
  /** Cancel the page request, including its response body and retry waits. */
5049
5313
  signal?: AbortSignal;
5050
5314
  }) => Promise<PlaySheetRowsResult>;
@@ -6191,6 +6455,32 @@ type BillingUsageEvent = {
6191
6455
  /** Pending/unknown amounts are null; a final amount can be zero. */
6192
6456
  charge_finality?: BillingRecentUsageEntry['charge_finality'];
6193
6457
  };
6458
+ /** One raw event-history entry, with its original run attribution. */
6459
+ type BillingUsageEventListEntry = BillingUsageEvent & {
6460
+ auth_type: string;
6461
+ user_id: string | null;
6462
+ api_key_id: string | null;
6463
+ workflow_id: string | null;
6464
+ run_id: string | null;
6465
+ billing_run_id: string | null;
6466
+ execution_run_id: string | null;
6467
+ included_in_run_id: string | null;
6468
+ billing_scope: string | null;
6469
+ };
6470
+ /** One page of event history; follow next_cursor until null, even for empty pages. */
6471
+ type BillingUsageEventsResult = {
6472
+ org_id: string;
6473
+ run_id: string | null;
6474
+ next_cursor: string | null;
6475
+ entries: BillingUsageEventListEntry[];
6476
+ };
6477
+ type BillingUsageEventsOptions = {
6478
+ /** Page size, 1–500. The server default is 200. */
6479
+ limit?: number;
6480
+ /** Opaque continuation from the preceding event-history page. */
6481
+ cursor?: string;
6482
+ runId?: string;
6483
+ };
6194
6484
  /** One customer-facing recent billing operation from `/api/v2/billing/usage`. */
6195
6485
  type BillingRecentUsageEntry = {
6196
6486
  id: string;
@@ -6312,6 +6602,8 @@ type BillingNamespace = {
6312
6602
  };
6313
6603
  /** Read one exact execution outcome using the request_id returned by executeTool. */
6314
6604
  usageEvent: (requestId: string) => Promise<BillingUsageEvent>;
6605
+ /** Read one raw event-history page, without charge/ledger reconciliation. */
6606
+ usageEvents: (options?: BillingUsageEventsOptions) => Promise<BillingUsageEventsResult>;
6315
6607
  /** Read current billing usage, or look up one exact execution charge by request ID. */
6316
6608
  usage: (options?: BillingUsageOptions) => Promise<BillingUsageResult>;
6317
6609
  /** Metronome-authored target catalog and current Contract projection. */
@@ -6378,6 +6670,42 @@ type BillingQuoteResult = {
6378
6670
  plan_version_id: string;
6379
6671
  rate_card_id: string;
6380
6672
  };
6673
+ type HostedPage = {
6674
+ id: string;
6675
+ name: string;
6676
+ url: string;
6677
+ description: string | null;
6678
+ public: boolean;
6679
+ state: 'active' | 'deleting';
6680
+ has_document: boolean;
6681
+ content_type: string | null;
6682
+ size_bytes: number | null;
6683
+ revision: number;
6684
+ created_at: number;
6685
+ updated_at: number;
6686
+ last_written_by_run_id: string | null;
6687
+ };
6688
+ type HostedPageList = {
6689
+ pages: HostedPage[];
6690
+ next_cursor: string | null;
6691
+ page_limit: number;
6692
+ /** Whether this workspace may publish pages anyone can open. */
6693
+ public_allowed: boolean;
6694
+ };
6695
+ type HostedPageWriteResult = {
6696
+ name: string;
6697
+ url: string;
6698
+ public: boolean;
6699
+ revision: number;
6700
+ created: boolean;
6701
+ warnings: string[];
6702
+ };
6703
+ type HostedPageLink = {
6704
+ id: string;
6705
+ label: string | null;
6706
+ expires_at: number | null;
6707
+ created_at: number;
6708
+ };
6381
6709
  /**
6382
6710
  * Low-level typed REST client with authentication, retries, and localhost failover.
6383
6711
  *
@@ -6422,9 +6750,47 @@ declare class DeeplineClient {
6422
6750
  * @param options - Optional overrides for API key, base URL, timeout, and retries.
6423
6751
  * @throws {@link ConfigError} if no API key can be resolved from any source.
6424
6752
  */
6425
- constructor(options?: DeeplineClientOptions);
6753
+ constructor(config: ResolvedConfig, http: HttpClient, explicitTimeout?: number);
6426
6754
  /** The resolved base URL this client is targeting (e.g. `"http://localhost:3000"`). */
6427
6755
  get baseUrl(): string;
6756
+ /** List this workspace's hosted pages, newest update first. */
6757
+ listPages(input?: {
6758
+ cursor?: string;
6759
+ limit?: number;
6760
+ }): Promise<HostedPageList>;
6761
+ /** Read one hosted page's metadata. */
6762
+ getPage(name: string): Promise<HostedPage>;
6763
+ /** Replace a page's whole content. `public` says who the write is for. */
6764
+ writePage(name: string, input: {
6765
+ public: boolean;
6766
+ contentBase64: string;
6767
+ contentType: string;
6768
+ description?: string;
6769
+ }): Promise<HostedPageWriteResult>;
6770
+ /** Delete a page, its content, and its links. Safe to repeat. */
6771
+ deletePage(name: string): Promise<{
6772
+ name: string;
6773
+ deleted: boolean;
6774
+ }>;
6775
+ /** The explicit way to change who can see an existing page. */
6776
+ setPageVisibility(name: string, isPublic: boolean): Promise<HostedPage>;
6777
+ /** List a page's links. Their URLs cannot be shown again. */
6778
+ listPageLinks(name: string): Promise<{
6779
+ links: HostedPageLink[];
6780
+ }>;
6781
+ /** The returned URL is shown once. Either expiry or `permanent` is required. */
6782
+ createPageLink(name: string, input: {
6783
+ expiresInSeconds?: number;
6784
+ permanent?: boolean;
6785
+ label?: string;
6786
+ }): Promise<HostedPageLink & {
6787
+ url: string;
6788
+ }>;
6789
+ /** Stop a link working. Safe to repeat. */
6790
+ revokePageLink(name: string, linkId: string): Promise<{
6791
+ id: string;
6792
+ revoked: boolean;
6793
+ }>;
6428
6794
  /** List secret metadata visible to the current workspace. */
6429
6795
  listSecrets(): Promise<PlaySecretMetadata[]>;
6430
6796
  /**
@@ -6587,8 +6953,8 @@ declare class DeeplineClient {
6587
6953
  *
6588
6954
  * These interfaces share the run contract and return a workflow or run ID:
6589
6955
  *
6590
- * - `deepline plays run`.
6591
- * - Repository scripts such as `bun run deepline -- plays run`.
6956
+ * - `deepline run`.
6957
+ * - Repository scripts such as `bun run deepline -- run`.
6592
6958
  * - SDK context calls such as `Deepline.connect().play(name).run()`.
6593
6959
  * - Direct `POST /api/v2/plays/run` calls.
6594
6960
  *
@@ -6798,7 +7164,7 @@ declare class DeeplineClient {
6798
7164
  * This method wraps {@link registerPlayArtifact} and {@link startPlayRun}.
6799
7165
  * Packaging wrappers use this method for file-based Plays.
6800
7166
  * Pass the returned ID to {@link getPlayStatus}.
6801
- * The method returns the same durable `{ result }` object that the CLI prints after `plays run` completes.
7167
+ * The method returns the same durable `{ result }` object that `deepline run` saves when it completes.
6802
7168
  *
6803
7169
  * @param code - Fallback source string. Pass the bundled artifact in `options.artifact`.
6804
7170
  * @param csvPath - Path to the input CSV file, or `null`.
@@ -6892,7 +7258,7 @@ declare class DeeplineClient {
6892
7258
  * Get the current status of a play execution.
6893
7259
  *
6894
7260
  * Internal/advanced primitive. Public callers should usually prefer
6895
- * {@link runPlay}, {@link PlayJob.get}, or `deepline plays run`.
7261
+ * {@link runPlay}, {@link PlayJob.get}, or `deepline run`.
6896
7262
  *
6897
7263
  * @param workflowId - Play-run id from {@link startPlayRun}
6898
7264
  * @returns Current status with progress logs and partial results
@@ -7159,6 +7525,8 @@ declare class DeeplineClient {
7159
7525
  limit?: number;
7160
7526
  offset?: number;
7161
7527
  rowMode?: 'output' | 'all' | 'live';
7528
+ /** Keep exact row counts while omitting column aggregates with `counts`. */
7529
+ summary?: 'full' | 'counts';
7162
7530
  /** Cancel the page request, including its response body and retry waits. */
7163
7531
  signal?: AbortSignal;
7164
7532
  }): Promise<PlaySheetRowsResult>;
@@ -7541,6 +7909,11 @@ declare class DeeplineClient {
7541
7909
  * retry or idempotency token.
7542
7910
  */
7543
7911
  getBillingUsageEvent(requestId: string): Promise<BillingUsageEvent>;
7912
+ /**
7913
+ * Read one authenticated raw usage-event page. This history is not a final
7914
+ * charge or settlement oracle. Empty pages may still carry a continuation.
7915
+ */
7916
+ getBillingUsageEvents(options?: BillingUsageEventsOptions): Promise<BillingUsageEventsResult>;
7544
7917
  /**
7545
7918
  * Read Deepline credits billed to each run and whether charges are still settling.
7546
7919
  * The response never shows provider spend. The dashboard runs grid uses the same read.
@@ -7798,4 +8171,4 @@ declare class DeeplineClient {
7798
8171
  }>;
7799
8172
  }
7800
8173
 
7801
- export { type MonitorDeleteResult as $, type ChildRunSummary as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineAgentModelDescription as D, type ExecuteToolRawOptions as E, type ClearPlayHistoryRequest as F, type CreateNotificationGroupInput as G, type CreateNotificationGroupResult as H, type CustomerDbQueryOptions as I, type CustomerDbQueryPlan as J, type CustomerDbQueryResult as K, DEEPLINE_TOOL_CATEGORIES as L, type DbNamespace as M, type DeeplineToolCategory as N, type IngestionStorageRepairResult as O, type PlayDescription as P, type LegacyMonitorStatusFilter as Q, type ResolvedConfig as R, type SearchType as S, type ToolDefinition as T, type LiveEventEnvelope as U, MONITOR_JOB_PHASES as V, MONITOR_JOB_RECONCILIATION_STATES as W, MONITOR_JOB_STATES as X, type MonitorBatchNamespace as Y, type MonitorCheckResult as Z, type MonitorDefinition as _, DeeplineClient as a, type PlaysListOptions as a$, type MonitorDependents as a0, type MonitorDeployResult as a1, type MonitorDetail as a2, type MonitorFleetDeactivateOptions as a3, type MonitorFleetGetOptions as a4, type MonitorFleetReactivateOptions as a5, type MonitorFleetResult as a6, type MonitorFleetStatus as a7, type MonitorFleetSyncOptions as a8, type MonitorFleetWaitOptions as a9, type PlayActivityObservation as aA, type PlayActivityState as aB, type PlayActivityTarget as aC, type PlayCostEstimate as aD, type PlayCronTriggerConfig as aE, type PlayDescriptionOptions as aF, type PlayLiveEvent as aG, type PlayPath as aH, type PlayRunActionPackage as aI, type PlayRunActivityProjection as aJ, type PlayRunDatasetActions as aK, type PlayRunPackage as aL, type PlayRunResult as aM, type PlayRunRowHistoryOptions as aN, type PlayRunStart as aO, type PlaySettings as aP, type PlaySettingsPatch as aQ, type PlaySettingsPathsPage as aR, type PlaySettingsResult as aS, type PlaySheetRow as aT, type PlaySheetRowsResult as aU, type PlayTriggerConfigUpdate as aV, type PlayTriggerConfigUpdateResult as aW, type PlayTriggerConfigView as aX, type PlayWebhookAuthConfig as aY, type PlayWebhookTriggerConfig as aZ, type PlaysActivityResponse as a_, type MonitorFleetsNamespace as aa, type MonitorJobDeployOptions as ab, type MonitorJobLogsOptions as ac, type MonitorJobPhase as ad, type MonitorJobReconciliationState as ae, type MonitorJobResult as af, type MonitorJobState as ag, type MonitorJobWaitOptions as ah, type MonitorJobsNamespace as ai, type MonitorListEntry as aj, type MonitorPayload as ak, type MonitorPreviewOptions as al, type MonitorPreviewResult as am, type MonitorReactivateResult as an, type MonitorSpec as ao, type MonitorState as ap, type MonitorStateFilter as aq, type MonitorUpdateChangeSummary as ar, type MonitorUpdateResult as as, type MonitorsAccessStatus as at, type MonitorsAvailableOptions as au, type MonitorsAvailableResult as av, type MonitorsListOptions as aw, type MonitorsListResult as ax, type MonitorsNamespace as ay, type NormalizedRunEventQuery as az, type DeeplineClientOptions as b, type StopAllRunsOptions as b$, type PlaysListPage as b0, type PublishPlayVersionRequest as b1, type RerunOptions as b2, type RerunPlayRunResult as b3, type RunChildrenPage as b4, type RunEventCountResult as b5, type RunEventField as b6, type RunEventFieldDescriptor as b7, type RunEventFieldOperators as b8, type RunEventFieldsResult as b9, type RunsEventsSummaryOptions as bA, type RunsEventsSummaryResult as bB, type RunsHistoryItem as bC, type RunsHistoryOptions as bD, type RunsHistoryPage as bE, type RunsListOptions as bF, type RunsListPage as bG, type RunsLogCriteria as bH, type RunsLogsCountResult as bI, type RunsLogsNamespace as bJ, type RunsLogsOptions as bK, type RunsLogsQueryOptions as bL, type RunsLogsQueryResult as bM, type RunsLogsResult as bN, type RunsLogsSummaryOptions as bO, type RunsLogsSummaryResult as bP, type RunsNamespace as bQ, type RunsTailOptions as bR, type RunsWatchOptions as bS, type SearchOptions as bT, type SearchResult as bU, type SearchResultItem as bV, type StartPlayRunRequest as bW, type StopAllCandidate as bX, type StopAllPlayRunsDryRunResult as bY, type StopAllPlayRunsResult as bZ, type StopAllPlayRunsStopResult as b_, type RunEventGroupValue as ba, type RunEventMeasure as bb, type RunEventQueryCriteria as bc, type RunEventQueryEvent as bd, RunEventQueryInputError as be, type RunEventQueryOptions as bf, type RunEventQueryPage as bg, type RunEventQueryRetention as bh, type RunEventScalar as bi, type RunEventSummaryOptions as bj, type RunEventSummaryResult as bk, type RunEventWhere as bl, type RunLifecycleStatus as bm, type RunToolReceiptResult as bn, type RunToolReceiptsResponse as bo, type RunsChildrenOptions as bp, type RunsEventPayload as bq, type RunsEventSearchEntry as br, type RunsEventSearchOptions as bs, type RunsEventSearchResult as bt, type RunsEventsCountResult as bu, type RunsEventsCriteria as bv, type RunsEventsFieldsOptions as bw, type RunsEventsListOptions as bx, type RunsEventsListResult as by, type RunsEventsNamespace as bz, type ToolMetadata as c, type ToolCategoryListing as c0, type ToolCategorySummary as c1, type ToolExecution as c2, type ToolRequestCondition as c3, type ToolRequestWarningRule as c4, type ToolSearchOptions as c5, type ToolSearchResult as c6, type WorkspaceCreateResult as c7, type WorkspacesNamespace as c8, defineMonitor as c9, createSessionPlayRunHttp as cA, createStagedFileUpload as cB, fileInputBindingsFromPlaySchema as cC, fileInputBindingsFromStaticPipeline as cD, getDottedInputValue as cE, isPlayRunPackage as cF, mintStagedPlayFileUploads as cG, normalizePlayRunStart as cH, playRunFileInputBindings as cI, preparePlayRunAdmission as cJ, setDottedInputValue as cK, stageFileInputs as cL, stagePlayFiles as cM, stagedFileContentType as cN, startPlayRun as cO, webStagedFileCodec as cP, isStopAllPlayRunsDryRunResult as ca, planCustomerDbQuery as cb, cloneEditStarter as cc, describePlayDetail as cd, describePlayListItem as ce, CLI_PLAY_RUN_START_PATH as cf, CLI_PLAY_RUN_START_STREAM_PATH as cg, CLI_PLAY_RUN_SUPPORTED_HEADER as ch, CSV_DATA_INPUT_KEY as ci, CliPlayAdmissionUnsupportedError as cj, type FileInputBinding as ck, type LocalFileInput as cl, type MintStagedFileUpload as cm, PLAY_FILES_STAGE_MINT_PATH as cn, PLAY_FILES_STAGE_PATH as co, PLAY_RUN_START_PATH as cp, PLAY_RUN_START_STREAM_PATH as cq, type PlayRunHttp as cr, type PlayRunStartOptions as cs, type ResolvedStartPlayRunRequest as ct, STAGE_LEGACY_MULTIPART_MAX_BYTES as cu, type StagedFileCodec as cv, type StagedFileInputs as cw, type StagedFileUpload as cx, buildNamedPlayRunRequest as cy, buildPlayRunStartBody as cz, type ExecutionRecovery as d, type ExecutionByKeyResult as e, type PlayListItem as f, type PlayDetail as g, type PlayRunListItem as h, type PlayRevisionSummary as i, type PublishPlayVersionResult as j, type PlayStatus as k, type StopPlayRunResult as l, type BillingCreditPool as m, type BillingInvoiceEntry as n, type BillingInvoicesResult as o, type BillingPaymentMethodSummary as p, type BillingQuoteRequest as q, type BillingQuoteResult as r, type BillingRecentUsageEntry as s, type BillingSubscriptionCancelResult as t, type BillingSubscriptionStatus as u, type BillingTopUpReceipt as v, type BillingTopUpResult as w, type BillingUsageEvent as x, type BillingUsageOptions as y, type BillingUsageResult as z };
8174
+ export { type LiveEventScope as $, type AsyncChildRunLaunchProjection as A, type BillingActivePlan as B, type ChildRunSummary as C, DeeplineClient as D, type ClearPlayHistoryResult as E, type CreateNotificationGroupInput as F, type CreateNotificationGroupResult as G, type CreateNotificationInput as H, type CustomerDbColumn as I, type CustomerDbQueryResult as J, type DbNamespace as K, type DeeplineAgentModelDescription as L, type DeeplineToolCategory as M, type DeletePlayResult as N, type EffectiveProductNotificationConfiguration as O, type ExecutionByKeyResult as P, type ExecutionRecovery as Q, type HostedPage as R, type HostedPageLink as S, type HostedPageList as T, type HostedPageWriteResult as U, type InferenceDynamicPricingCapability as V, type InferenceQuote as W, type InferenceQuoteAssumptions as X, type IngestionStorageRepairResult as Y, type LegacyMonitorStatusFilter as Z, type LiveEventEnvelope as _, type DeeplineClientOptions as a, type PlayCheckIssue as a$, MONITOR_JOB_PHASES as a0, MONITOR_JOB_RECONCILIATION_STATES as a1, MONITOR_JOB_STATES as a2, type ModelProviderOptionField as a3, type ModelProviderOptionNamespace as a4, type MonitorBatchDeploySubmitOptions as a5, type MonitorBatchExistingSubmitOptions as a6, type MonitorBatchNamespace as a7, type MonitorBatchOperationResult as a8, type MonitorBatchScope as a9, type MonitorNamedBatchProjection as aA, type MonitorNamedBatchesNamespace as aB, type MonitorPreviewOptions as aC, type MonitorPreviewResult as aD, type MonitorReactivateResult as aE, type MonitorSpec as aF, type MonitorState as aG, type MonitorStateFilter as aH, type MonitorTestOptions as aI, type MonitorTestResult as aJ, type MonitorUpdateChangeSummary as aK, type MonitorUpdateResult as aL, type MonitorValidateResult as aM, type MonitorsAccessStatus as aN, type MonitorsAuditResult as aO, type MonitorsAvailableOptions as aP, type MonitorsAvailableResult as aQ, type MonitorsHealth as aR, type MonitorsListOptions as aS, type MonitorsListResult as aT, type MonitorsNamespace as aU, type MonitorsRepairResult as aV, type PlayActivityObservation as aW, type PlayActivityState as aX, type PlayActivityTarget as aY, type PlayCheckExportResult as aZ, type PlayCheckFeatureFlag as a_, type MonitorBatchSubmitOptions as aa, type MonitorCheckResult as ab, type MonitorDeleteResult as ac, type MonitorDependents as ad, type MonitorDeployResult as ae, type MonitorDetail as af, type MonitorFleetDeactivateOptions as ag, type MonitorFleetGetOptions as ah, type MonitorFleetReactivateOptions as ai, type MonitorFleetResult as aj, type MonitorFleetStatus as ak, type MonitorFleetSyncOptions as al, type MonitorFleetWaitOptions as am, type MonitorFleetsNamespace as an, type MonitorJobDeployOptions as ao, type MonitorJobLogsOptions as ap, type MonitorJobPhase as aq, type MonitorJobProjection as ar, type MonitorJobReconciliationState as as, type MonitorJobResult as at, type MonitorJobState as au, type MonitorJobWaitOptions as av, type MonitorJobsNamespace as aw, type MonitorLifecycleOptions as ax, type MonitorListEntry as ay, type MonitorNamedBatchOptions as az, type AsyncChildRunProjection as b, type RunsEventSearchResult as b$, type PlayCheckIssueSeverity as b0, type PlayCheckRecognizedSummary as b1, type PlayCheckResult as b2, type PlayCheckSqlListenerEventSummary as b3, type PlayCheckSqlListenerTrigger as b4, type PlayCheckToolGetterHint as b5, type PlayCheckTriggersSummary as b6, type PlayCostEstimate as b7, type PlayDefinitionDetail as b8, type PlayDescription as b9, type PlaysListOptions as bA, type PlaysListPage as bB, type PrebuiltPlayObservedCost as bC, type ProductNotification as bD, type ProductNotificationConfigurationChange as bE, type ProductNotificationConfigurationResponse as bF, type ProductNotificationDefaultPolicy as bG, type ProductNotificationEventDefinition as bH, type ProductNotificationSettings as bI, type ProductNotificationTypeCatalogItem as bJ, type ProviderDefinition as bK, type PublishPlayVersionRequest as bL, type PublishPlayVersionResult as bM, type PublishSharePageRequest as bN, type RerunOptions as bO, type RerunPlayRunResult as bP, type ResolvedConfig as bQ, type RestorePlayResult as bR, type RunBillingResult as bS, type RunBillingSummary as bT, type RunChildrenPage as bU, type RunGetStatus as bV, type RunLifecycleStatus as bW, type RunsChildrenOptions as bX, type RunsEventPayload as bY, type RunsEventSearchEntry as bZ, type RunsEventSearchOptions as b_, type PlayDetail as ba, type PlayListItem as bb, type PlayLiveEvent as bc, type PlayProgressStatus as bd, type PlayRevisionSummary as be, type PlayRunActionPackage as bf, type PlayRunActivityProjection as bg, type PlayRunDatasetActions as bh, type PlayRunListItem as bi, type PlayRunOutcome as bj, type PlayRunPackage as bk, type PlayRunResult as bl, type PlayRunRowHistoryOptions as bm, type PlayRunStart as bn, type PlayRuntimeLimit as bo, type PlayScheduledCapacity as bp, type PlaySecretCheck as bq, type PlaySecretMetadata as br, type PlaySheetColumnStats as bs, type PlaySheetRow as bt, type PlaySheetRowsResult as bu, type PlaySheetStats as bv, type PlaySheetSummary as bw, type PlayStatus as bx, type PlayTriggerStatus as by, type PlaysActivityResponse as bz, type AsyncChildRunStatusCounts as c, type UpdateSharePageRequest as c$, type RunsEventsCountResult as c0, type RunsEventsCriteria as c1, type RunsEventsFieldsOptions as c2, type RunsEventsListOptions as c3, type RunsEventsListResult as c4, type RunsEventsNamespace as c5, type RunsEventsSummaryOptions as c6, type RunsEventsSummaryResult as c7, type RunsGetOptions as c8, type RunsHistoryItem as c9, type StopAllPlayRunsDryRunResult as cA, type StopAllPlayRunsResult as cB, type StopAllPlayRunsStopResult as cC, type StopAllRunsOptions as cD, type StopPlayRunResult as cE, type TargetAutoRechargeResult as cF, type TargetAutoRechargeUpdateOptions as cG, type TargetBillingMutationResult as cH, type TargetBillingOperation as cI, type TargetBillingPlan as cJ, type TargetBillingPlanTransitionOptions as cK, type TargetBillingPlansResult as cL, type TargetBillingStatusResult as cM, type ToolBatchCapability as cN, type ToolCategoryListing as cO, type ToolCategorySummary as cP, type ToolDefinition as cQ, type ToolExecution as cR, type ToolExecutionMetadata as cS, type ToolExecutionMetadataFields as cT, type ToolMetadata as cU, type ToolPricingSummary as cV, type ToolRequestCondition as cW, type ToolRequestWarningRule as cX, type ToolSearchOptions as cY, type ToolSearchResult as cZ, type UpdateNotificationInput as c_, type RunsHistoryOptions as ca, type RunsHistoryPage as cb, type RunsListOptions as cc, type RunsListPage as cd, type RunsLogCriteria as ce, type RunsLogsCountResult as cf, type RunsLogsNamespace as cg, type RunsLogsOptions as ch, type RunsLogsQueryOptions as ci, type RunsLogsQueryResult as cj, type RunsLogsResult as ck, type RunsLogsSummaryOptions as cl, type RunsLogsSummaryResult as cm, type RunsNamespace as cn, type RunsTailOptions as co, type RunsWatchOptions as cp, type SearchOptions as cq, type SearchResult as cr, type SearchResultItem as cs, type SearchType as ct, type SharePageOwnerView as cu, type SharePageRevisionOption as cv, type SharePageStatus as cw, type SlackNotificationTarget as cx, type StartPlayRunRequest as cy, type StopAllCandidate as cz, type BillingCreditPool as d, type StagedFileCodec as d$, type WorkspaceCreateResult as d0, type WorkspacesNamespace as d1, isStopAllPlayRunsDryRunResult as d2, type ExecuteToolRawOptions as d3, type CustomerDbQueryOptions as d4, type CustomerDbQueryPlan as d5, DEEPLINE_TOOL_CATEGORIES as d6, type MonitorDefinition as d7, type MonitorPayload as d8, type NormalizedRunEventQuery as d9, type RunEventScalar as dA, type RunEventSummaryOptions as dB, type RunEventSummaryResult as dC, type RunEventWhere as dD, type RunToolReceiptResult as dE, type RunToolReceiptsResponse as dF, defineMonitor as dG, planCustomerDbQuery as dH, cloneEditStarter as dI, describePlayDetail as dJ, describePlayListItem as dK, CLI_PLAY_RUN_START_PATH as dL, CLI_PLAY_RUN_START_STREAM_PATH as dM, CLI_PLAY_RUN_SUPPORTED_HEADER as dN, CSV_DATA_INPUT_KEY as dO, CliPlayAdmissionUnsupportedError as dP, type FileInputBinding as dQ, type LocalFileInput as dR, type MintStagedFileUpload as dS, PLAY_FILES_STAGE_MINT_PATH as dT, PLAY_FILES_STAGE_PATH as dU, PLAY_RUN_START_PATH as dV, PLAY_RUN_START_STREAM_PATH as dW, type PlayRunHttp as dX, type PlayRunStartOptions as dY, type ResolvedStartPlayRunRequest as dZ, STAGE_LEGACY_MULTIPART_MAX_BYTES as d_, type PlayCronTriggerConfig as da, type PlayDescriptionOptions as db, type PlayPath as dc, type PlaySettings as dd, type PlaySettingsPatch as de, type PlaySettingsPathsPage as df, type PlaySettingsResult as dg, type PlayTriggerConfigUpdate as dh, type PlayTriggerConfigUpdateResult as di, type PlayTriggerConfigView as dj, type PlayWebhookAuthConfig as dk, type PlayWebhookTriggerConfig as dl, type RunEventCountResult as dm, type RunEventField as dn, type RunEventFieldDescriptor as dp, type RunEventFieldOperators as dq, type RunEventFieldsResult as dr, type RunEventGroupValue as ds, type RunEventMeasure as dt, type RunEventQueryCriteria as du, type RunEventQueryEvent as dv, RunEventQueryInputError as dw, type RunEventQueryOptions as dx, type RunEventQueryPage as dy, type RunEventQueryRetention as dz, type BillingInvoiceEntry as e, type StagedFileInputs as e0, type StagedFileUpload as e1, buildNamedPlayRunRequest as e2, buildPlayRunStartBody as e3, createSessionPlayRunHttp as e4, createStagedFileUpload as e5, fileInputBindingsFromPlaySchema as e6, fileInputBindingsFromStaticPipeline as e7, getDottedInputValue as e8, isPlayRunPackage as e9, mintStagedPlayFileUploads as ea, normalizePlayRunStart as eb, playRunFileInputBindings as ec, preparePlayRunAdmission as ed, setDottedInputValue as ee, stageFileInputs as ef, stagePlayFiles as eg, stagedFileContentType as eh, startPlayRun as ei, webStagedFileCodec as ej, type BillingInvoicesResult as f, type BillingMeterEntry as g, type BillingMetricEntry as h, type BillingNamespace as i, type BillingPaymentMethodSummary as j, type BillingPlanEntry as k, type BillingPlansResult as l, type BillingQuoteRequest as m, type BillingQuoteResult as n, type BillingRecentUsageEntry as o, type BillingSubscriptionCancelResult as p, type BillingSubscriptionStatus as q, type BillingTopUpReceipt as r, type BillingTopUpResult as s, type BillingUsageEvent as t, type BillingUsageEventListEntry as u, type BillingUsageEventsOptions as v, type BillingUsageEventsResult as w, type BillingUsageOptions as x, type BillingUsageResult as y, type ClearPlayHistoryRequest as z };
@@ -44,6 +44,21 @@ type BillingEntitlements = {
44
44
  remaining: number;
45
45
  };
46
46
  };
47
+ /** Managed database storage (GB) included before overage. */
48
+ includedStorage?: {
49
+ status: 'active';
50
+ usage: {
51
+ /** GB included. */
52
+ limit: number;
53
+ /** GB stored on the latest measured UTC day. */
54
+ consumed: number;
55
+ remaining: number;
56
+ /** The UTC day `consumed` was measured, `YYYY-MM-DD`. */
57
+ measuredDay: string;
58
+ /** False when storage charges are not rolled out to the workspace. */
59
+ overageCharged: boolean;
60
+ };
61
+ };
47
62
  quickenrichUnlimited?: {
48
63
  status: 'active' | 'past_due';
49
64
  value: BillingBenefitValues['quickenrichUnlimited'];
@@ -1348,6 +1363,26 @@ type PlayAuthoringRunScope = {
1348
1363
  readonly actor: PlayAuthoringRunActor | null;
1349
1364
  };
1350
1365
  /** The complete customer-authored `ctx` Interface shared by every Adapter. */
1366
+ type PlayAuthoringPageWriteOptions = {
1367
+ /**
1368
+ * Who can see the page. Taken from the first write. A later write cannot make
1369
+ * a private page public: run `deepline pages set-public <name>` for that.
1370
+ */
1371
+ public: boolean;
1372
+ /** Replaces the page's whole content. A non-string is stored as JSON. */
1373
+ content: unknown;
1374
+ /** Defaults to text, JSON, or binary according to `content`. */
1375
+ contentType?: string;
1376
+ description?: string;
1377
+ };
1378
+ type PlayAuthoringPageWriteResult = {
1379
+ name: string;
1380
+ url: string;
1381
+ /** Who can actually see the page after this write. */
1382
+ public: boolean;
1383
+ created: boolean;
1384
+ warnings: string[];
1385
+ };
1351
1386
  interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' = 'dataset'> {
1352
1387
  billing: {
1353
1388
  /**
@@ -1357,6 +1392,13 @@ interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' =
1357
1392
  */
1358
1393
  entitlements(): Promise<BillingEntitlements>;
1359
1394
  };
1395
+ pages: {
1396
+ /**
1397
+ * Replace a named page in this workspace and return its URL.
1398
+ * @sdkReference runtime 181 deepline.pages.write(name, options)
1399
+ */
1400
+ write(name: string, options: PlayAuthoringPageWriteOptions): Promise<PlayAuthoringPageWriteResult>;
1401
+ };
1360
1402
  /**
1361
1403
  * Load a staged CSV file as a durable dataset handle.
1362
1404
  * @sdkReference runtime 040 deepline.csv(path, options)
@@ -3538,4 +3580,4 @@ type PlayCompilerManifest = {
3538
3580
  authoringContract?: AdmittedPlayAuthoringContract;
3539
3581
  };
3540
3582
 
3541
- export { type DeeplineEmailStatusGetterValue as $, type AsyncPlayRunRef as A, type BasicToolExecuteResult as B, type PlayAuthoringBindings as C, type PlayAuthoringCallExecution as D, type PlayAuthoringCallOptions as E, type PlayAuthoringInputContract as F, type PlayRunId as G, type PlayAuthoringStepProgramStep as H, type PlayAuthoringRuntimeStepOptions as I, type PlaySqlListenerDeclaration as J, type PlaySqlListenerEvent as K, type PlaySqlListenerOperation as L, type PlaySqlQuery as M, type PlayAuthoringStepOptions as N, type PlayAuthoringStepProgram as O, PLAY_ARTIFACT_KINDS as P, type PlayAuthoringStepProgramResolver as Q, type PlayAuthoringStepResolver as R, type PlayToolExecutionRequest as S, type ToolExecuteResult as T, type PlayAuthoringStepProgramOptions as U, DeeplineError as V, ToolExecutionError as W, type ToolExecutionErrorOptions as X, type BillingEntitlements as Y, DEEPLINE_EXTRACTOR_TARGETS as Z, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as _, type PlayArtifactCompatibility as a, type DeeplineExtractorTarget as a0, type DeeplineGetterValue as a1, type DeeplineGetterValueMap as a2, JOB_CHANGE_STATUS_VALUES as a3, type JobChangeStatus as a4, PHONE_STATUS_VALUES as a5, type PhoneStatus as a6, type PlayDatasetInput as a7, type PreviousCell as a8, ProviderTransientError as a9, type ProviderTransientErrorCategory as aa, type ProviderUnavailableError as ab, type ProviderUnavailableReason as ac, type ToolExecutionErrorCategory as ad, type ToolExecutionErrorOrigin as ae, type ToolExecutionFailureV1 as af, type ToolExecutionNetworkKind as ag, type ToolExecutionNetworkScope as ah, type ToolExecutionPublicDetails as ai, type ToolResultBilling as aj, getProviderUnavailableReason as ak, isDeeplineExtractorTarget as al, isProviderUnavailable as am, isProviderWaterfallUnavailableError as an, type BillingBenefitValues as ao, type PlayBundleArtifact as b, type PlayImportPolicy as c, type PlayPackageImport as d, type PlayRuntimeFeature as e, type PlaySandboxRuntimeDeclaration as f, type PlayCompilerManifest as g, type PlayArtifactKind as h, type PlayAuthoringFetchResponse as i, type PlayDataset as j, type PlayAuthoringColumnMap as k, type PlayAuthoringColumnResolver as l, type PlayAuthoringRuntimeContext as m, type PlayAuthoringConditionalStepResolver as n, type PlayAuthoringCsvInput as o, type PlayAuthoringCsvOptions as p, type PlayAuthoringDatasetBuilder as q, type PlayAuthoringDatasetColumnDefinition as r, type PlayAuthoringDatasetColumnRunInput as s, type PlayAuthoringReferenceLike as t, type PlayReturnObject as u, type PlayAuthoringDefineConfig as v, type PlayAuthoringDefinedPlay as w, type PlayAuthoringFetchOptions as x, type PlayAuthoringFileInput as y, type PlayAuthoringAsyncCallOptions as z };
3583
+ export { type PlayAuthoringRuntimeStepOptions as $, type AsyncPlayRunRef as A, type BillingEntitlements as B, type PlayAuthoringColumnMap as C, DeeplineError as D, type PlayAuthoringColumnResolver as E, type PlayAuthoringRuntimeContext as F, type PlayAuthoringConditionalStepResolver as G, type PlayAuthoringCsvInput as H, type PlayAuthoringCsvOptions as I, type PlayAuthoringDatasetBuilder as J, type PlayAuthoringDatasetColumnDefinition as K, type PlayAuthoringDatasetColumnRunInput as L, type PlayAuthoringReferenceLike as M, type PlayReturnObject as N, type PlayAuthoringDefineConfig as O, ProviderTransientError as P, type PlayAuthoringDefinedPlay as Q, type PlayAuthoringFetchOptions as R, type PlayAuthoringFileInput as S, ToolExecutionError as T, type PlayAuthoringAsyncCallOptions as U, type PlayAuthoringBindings as V, type PlayAuthoringCallExecution as W, type PlayAuthoringCallOptions as X, type PlayAuthoringInputContract as Y, type PlayRunId as Z, type PlayAuthoringStepProgramStep as _, type ProviderTransientErrorCategory as a, type PlaySqlListenerDeclaration as a0, type PlaySqlListenerEvent as a1, type PlaySqlListenerOperation as a2, type PlaySqlQuery as a3, type PlayAuthoringStepOptions as a4, type PlayAuthoringStepProgram as a5, type PlayAuthoringStepProgramResolver as a6, type PlayAuthoringStepResolver as a7, type PlayToolExecutionRequest as a8, type PlayAuthoringStepProgramOptions as a9, DEEPLINE_EXTRACTOR_TARGETS as aa, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as ab, type DeeplineEmailStatusGetterValue as ac, type DeeplineExtractorTarget as ad, type DeeplineGetterValue as ae, type DeeplineGetterValueMap as af, JOB_CHANGE_STATUS_VALUES as ag, type JobChangeStatus as ah, PHONE_STATUS_VALUES as ai, type PhoneStatus as aj, type PlayDatasetInput as ak, type PreviousCell as al, type ToolResultBilling as am, isDeeplineExtractorTarget as an, type BillingBenefitValues as ao, type ProviderUnavailableError as b, type ProviderUnavailableReason as c, type ToolExecutionErrorCategory as d, type ToolExecutionErrorOptions as e, type ToolExecutionErrorOrigin as f, type ToolExecutionFailureV1 as g, type ToolExecutionNetworkKind as h, type ToolExecutionNetworkScope as i, type ToolExecutionPublicDetails as j, getProviderUnavailableReason as k, isProviderUnavailable as l, isProviderWaterfallUnavailableError as m, PLAY_ARTIFACT_KINDS as n, type PlayArtifactCompatibility as o, type PlayBundleArtifact as p, type PlayImportPolicy as q, type PlayPackageImport as r, type PlayRuntimeFeature as s, type PlaySandboxRuntimeDeclaration as t, type PlayCompilerManifest as u, type PlayArtifactKind as v, type PlayAuthoringFetchResponse as w, type ToolExecuteResult as x, type BasicToolExecuteResult as y, type PlayDataset as z };