reactor-effect-client 0.7.0 → 0.8.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 (514) hide show
  1. package/NOTICE +7 -2
  2. package/README.md +103 -141
  3. package/dist/Coordinator.d.ts +382 -0
  4. package/dist/Coordinator.d.ts.map +1 -0
  5. package/dist/Coordinator.js +732 -0
  6. package/dist/Coordinator.js.map +1 -0
  7. package/dist/H3.d.ts +159 -0
  8. package/dist/H3.d.ts.map +1 -0
  9. package/dist/H3.js +21 -0
  10. package/dist/H3.js.map +1 -0
  11. package/dist/H3Source.d.ts +93 -0
  12. package/dist/H3Source.d.ts.map +1 -0
  13. package/dist/H3Source.js +401 -0
  14. package/dist/H3Source.js.map +1 -0
  15. package/dist/LocalSource.d.ts +68 -0
  16. package/dist/LocalSource.d.ts.map +1 -0
  17. package/dist/LocalSource.js +354 -0
  18. package/dist/LocalSource.js.map +1 -0
  19. package/dist/Media.d.ts +106 -0
  20. package/dist/Media.d.ts.map +1 -0
  21. package/dist/Media.js +16 -0
  22. package/dist/Media.js.map +1 -0
  23. package/dist/Peer.d.ts +134 -0
  24. package/dist/Peer.d.ts.map +1 -0
  25. package/dist/Peer.js +57 -0
  26. package/dist/Peer.js.map +1 -0
  27. package/dist/Playout.d.ts +724 -0
  28. package/dist/Playout.d.ts.map +1 -0
  29. package/dist/Playout.js +28 -0
  30. package/dist/Playout.js.map +1 -0
  31. package/dist/Reactor.d.ts +135 -0
  32. package/dist/Reactor.d.ts.map +1 -0
  33. package/dist/Reactor.js +158 -0
  34. package/dist/Reactor.js.map +1 -0
  35. package/dist/ReactorError.d.ts +331 -0
  36. package/dist/ReactorError.d.ts.map +1 -0
  37. package/dist/ReactorError.js +316 -0
  38. package/dist/ReactorError.js.map +1 -0
  39. package/dist/ReactorTest.d.ts +383 -0
  40. package/dist/ReactorTest.d.ts.map +1 -0
  41. package/dist/ReactorTest.js +317 -0
  42. package/dist/ReactorTest.js.map +1 -0
  43. package/dist/Session.d.ts +314 -0
  44. package/dist/Session.d.ts.map +1 -0
  45. package/dist/Session.js +51 -0
  46. package/dist/Session.js.map +1 -0
  47. package/dist/index.d.ts +12 -22
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +12 -11
  50. package/dist/index.js.map +1 -1
  51. package/dist/internal/correlator.d.ts +46 -0
  52. package/dist/internal/correlator.d.ts.map +1 -0
  53. package/dist/internal/correlator.js +150 -0
  54. package/dist/internal/correlator.js.map +1 -0
  55. package/dist/internal/deadline.d.ts +24 -0
  56. package/dist/internal/deadline.d.ts.map +1 -0
  57. package/dist/internal/deadline.js +44 -0
  58. package/dist/internal/deadline.js.map +1 -0
  59. package/dist/{h3/_internal/contracts.d.ts → internal/h3/commands.d.ts} +39 -33
  60. package/dist/internal/h3/commands.d.ts.map +1 -0
  61. package/dist/internal/h3/commands.js +128 -0
  62. package/dist/internal/h3/commands.js.map +1 -0
  63. package/dist/{h3 → internal/h3}/messages.d.ts +16 -11
  64. package/dist/internal/h3/messages.d.ts.map +1 -0
  65. package/dist/{h3 → internal/h3}/messages.js +19 -31
  66. package/dist/internal/h3/messages.js.map +1 -0
  67. package/dist/internal/h3/operations.d.ts +145 -0
  68. package/dist/internal/h3/operations.d.ts.map +1 -0
  69. package/dist/internal/h3/operations.js +284 -0
  70. package/dist/internal/h3/operations.js.map +1 -0
  71. package/dist/{h3 → internal/h3}/profile.d.ts +63 -65
  72. package/dist/internal/h3/profile.d.ts.map +1 -0
  73. package/dist/{h3 → internal/h3}/profile.js +39 -39
  74. package/dist/internal/h3/profile.js.map +1 -0
  75. package/dist/internal/h3/provider.d.ts +14 -0
  76. package/dist/internal/h3/provider.d.ts.map +1 -0
  77. package/dist/internal/h3/provider.js +672 -0
  78. package/dist/internal/h3/provider.js.map +1 -0
  79. package/dist/internal/h3/references.d.ts +68 -0
  80. package/dist/internal/h3/references.d.ts.map +1 -0
  81. package/dist/internal/h3/references.js +339 -0
  82. package/dist/internal/h3/references.js.map +1 -0
  83. package/dist/internal/h3/request.d.ts +56 -0
  84. package/dist/internal/h3/request.d.ts.map +1 -0
  85. package/dist/internal/h3/request.js +70 -0
  86. package/dist/internal/h3/request.js.map +1 -0
  87. package/dist/internal/h3/state.d.ts +120 -0
  88. package/dist/internal/h3/state.d.ts.map +1 -0
  89. package/dist/internal/h3/state.js +270 -0
  90. package/dist/internal/h3/state.js.map +1 -0
  91. package/dist/{Submission.d.ts → internal/h3/submission.d.ts} +1 -3
  92. package/dist/internal/h3/submission.d.ts.map +1 -0
  93. package/dist/{Submission.js → internal/h3/submission.js} +1 -9
  94. package/dist/internal/h3/submission.js.map +1 -0
  95. package/dist/internal/hub.d.ts +32 -0
  96. package/dist/internal/hub.d.ts.map +1 -0
  97. package/dist/internal/hub.js +92 -0
  98. package/dist/internal/hub.js.map +1 -0
  99. package/dist/internal/playout/errors.d.ts +51 -0
  100. package/dist/internal/playout/errors.d.ts.map +1 -0
  101. package/dist/internal/playout/errors.js +40 -0
  102. package/dist/internal/playout/errors.js.map +1 -0
  103. package/dist/internal/playout/policy.d.ts +559 -0
  104. package/dist/internal/playout/policy.d.ts.map +1 -0
  105. package/dist/internal/playout/policy.js +2338 -0
  106. package/dist/internal/playout/policy.js.map +1 -0
  107. package/dist/internal/playout/runtime.d.ts +28 -0
  108. package/dist/internal/playout/runtime.d.ts.map +1 -0
  109. package/dist/internal/playout/runtime.js +766 -0
  110. package/dist/internal/playout/runtime.js.map +1 -0
  111. package/dist/internal/playout/tag.d.ts +14 -0
  112. package/dist/internal/playout/tag.d.ts.map +1 -0
  113. package/dist/internal/playout/tag.js +43 -0
  114. package/dist/internal/playout/tag.js.map +1 -0
  115. package/dist/internal/proto/reactor_wire/v1/common_pb.d.ts +55 -0
  116. package/dist/internal/proto/reactor_wire/v1/common_pb.d.ts.map +1 -0
  117. package/dist/internal/proto/reactor_wire/v1/common_pb.js +42 -0
  118. package/dist/internal/proto/reactor_wire/v1/common_pb.js.map +1 -0
  119. package/dist/internal/proto/reactor_wire/v1/control_pb.d.ts +160 -0
  120. package/dist/internal/proto/reactor_wire/v1/control_pb.d.ts.map +1 -0
  121. package/dist/internal/proto/reactor_wire/v1/control_pb.js +21 -0
  122. package/dist/internal/proto/reactor_wire/v1/control_pb.js.map +1 -0
  123. package/dist/internal/proto/reactor_wire/v1/data_pb.d.ts +89 -0
  124. package/dist/internal/proto/reactor_wire/v1/data_pb.d.ts.map +1 -0
  125. package/dist/internal/proto/reactor_wire/v1/data_pb.js +20 -0
  126. package/dist/internal/proto/reactor_wire/v1/data_pb.js.map +1 -0
  127. package/dist/internal/proto/reactor_wire/v1/model_pb.d.ts +85 -0
  128. package/dist/internal/proto/reactor_wire/v1/model_pb.d.ts.map +1 -0
  129. package/dist/internal/proto/reactor_wire/v1/model_pb.js +24 -0
  130. package/dist/internal/proto/reactor_wire/v1/model_pb.js.map +1 -0
  131. package/dist/internal/proto/reactor_wire/v1/platform_pb.d.ts +190 -0
  132. package/dist/internal/proto/reactor_wire/v1/platform_pb.d.ts.map +1 -0
  133. package/dist/internal/proto/reactor_wire/v1/platform_pb.js +54 -0
  134. package/dist/internal/proto/reactor_wire/v1/platform_pb.js.map +1 -0
  135. package/dist/internal/proto/reactor_wire/v1/track_pb.d.ts +88 -0
  136. package/dist/internal/proto/reactor_wire/v1/track_pb.d.ts.map +1 -0
  137. package/dist/internal/proto/reactor_wire/v1/track_pb.js +33 -0
  138. package/dist/internal/proto/reactor_wire/v1/track_pb.js.map +1 -0
  139. package/dist/internal/queue.d.ts +4 -0
  140. package/dist/internal/queue.d.ts.map +1 -0
  141. package/dist/{_internal → internal}/queue.js +0 -9
  142. package/dist/internal/queue.js.map +1 -0
  143. package/dist/internal/reactorTest/coordinator.d.ts +5 -0
  144. package/dist/internal/reactorTest/coordinator.d.ts.map +1 -0
  145. package/dist/internal/reactorTest/coordinator.js +178 -0
  146. package/dist/internal/reactorTest/coordinator.js.map +1 -0
  147. package/dist/internal/reactorTest/faults.d.ts +172 -0
  148. package/dist/internal/reactorTest/faults.d.ts.map +1 -0
  149. package/dist/internal/reactorTest/faults.js +23 -0
  150. package/dist/internal/reactorTest/faults.js.map +1 -0
  151. package/dist/internal/reactorTest/h3.d.ts +431 -0
  152. package/dist/internal/reactorTest/h3.d.ts.map +1 -0
  153. package/dist/internal/reactorTest/h3.js +625 -0
  154. package/dist/internal/reactorTest/h3.js.map +1 -0
  155. package/dist/internal/reactorTest/media.d.ts +22 -0
  156. package/dist/internal/reactorTest/media.d.ts.map +1 -0
  157. package/dist/internal/reactorTest/media.js +34 -0
  158. package/dist/internal/reactorTest/media.js.map +1 -0
  159. package/dist/internal/reactorTest/peer.d.ts +318 -0
  160. package/dist/internal/reactorTest/peer.d.ts.map +1 -0
  161. package/dist/internal/reactorTest/peer.js +206 -0
  162. package/dist/internal/reactorTest/peer.js.map +1 -0
  163. package/dist/internal/reactorTest/playout.d.ts +34 -0
  164. package/dist/internal/reactorTest/playout.d.ts.map +1 -0
  165. package/dist/internal/reactorTest/playout.js +340 -0
  166. package/dist/internal/reactorTest/playout.js.map +1 -0
  167. package/dist/internal/reactorTest/references.d.ts +25 -0
  168. package/dist/internal/reactorTest/references.d.ts.map +1 -0
  169. package/dist/{testing/Png.js → internal/reactorTest/references.js} +50 -12
  170. package/dist/internal/reactorTest/references.js.map +1 -0
  171. package/dist/internal/reactorTest/sessions.d.ts +364 -0
  172. package/dist/internal/reactorTest/sessions.d.ts.map +1 -0
  173. package/dist/internal/reactorTest/sessions.js +592 -0
  174. package/dist/internal/reactorTest/sessions.js.map +1 -0
  175. package/dist/internal/reactorTest/timing.d.ts +13 -0
  176. package/dist/internal/reactorTest/timing.d.ts.map +1 -0
  177. package/dist/internal/reactorTest/timing.js +20 -0
  178. package/dist/internal/reactorTest/timing.js.map +1 -0
  179. package/dist/internal/recording.d.ts +52 -0
  180. package/dist/internal/recording.d.ts.map +1 -0
  181. package/dist/internal/recording.js +141 -0
  182. package/dist/internal/recording.js.map +1 -0
  183. package/dist/internal/session/connect.d.ts +34 -0
  184. package/dist/internal/session/connect.d.ts.map +1 -0
  185. package/dist/internal/session/connect.js +502 -0
  186. package/dist/internal/session/connect.js.map +1 -0
  187. package/dist/internal/session/generation.d.ts +35 -0
  188. package/dist/internal/session/generation.d.ts.map +1 -0
  189. package/dist/internal/session/generation.js +185 -0
  190. package/dist/internal/session/generation.js.map +1 -0
  191. package/dist/internal/session/ice.d.ts +23 -0
  192. package/dist/internal/session/ice.d.ts.map +1 -0
  193. package/dist/internal/session/ice.js +57 -0
  194. package/dist/internal/session/ice.js.map +1 -0
  195. package/dist/internal/session/inbound.d.ts +50 -0
  196. package/dist/internal/session/inbound.d.ts.map +1 -0
  197. package/dist/internal/session/inbound.js +202 -0
  198. package/dist/internal/session/inbound.js.map +1 -0
  199. package/dist/internal/session/model.d.ts +163 -0
  200. package/dist/internal/session/model.d.ts.map +1 -0
  201. package/dist/internal/session/model.js +78 -0
  202. package/dist/internal/session/model.js.map +1 -0
  203. package/dist/internal/session/requests.d.ts +71 -0
  204. package/dist/internal/session/requests.d.ts.map +1 -0
  205. package/dist/internal/session/requests.js +240 -0
  206. package/dist/internal/session/requests.js.map +1 -0
  207. package/dist/internal/session/tracks.d.ts +21 -0
  208. package/dist/internal/session/tracks.d.ts.map +1 -0
  209. package/dist/internal/session/tracks.js +166 -0
  210. package/dist/internal/session/tracks.js.map +1 -0
  211. package/dist/internal/session/upload.d.ts +21 -0
  212. package/dist/internal/session/upload.d.ts.map +1 -0
  213. package/dist/internal/session/upload.js +68 -0
  214. package/dist/internal/session/upload.js.map +1 -0
  215. package/dist/internal/session.d.ts +66 -0
  216. package/dist/internal/session.d.ts.map +1 -0
  217. package/dist/internal/session.js +280 -0
  218. package/dist/internal/session.js.map +1 -0
  219. package/dist/{stats.d.ts → internal/stats.d.ts} +30 -16
  220. package/dist/internal/stats.d.ts.map +1 -0
  221. package/dist/internal/stats.js +201 -0
  222. package/dist/internal/stats.js.map +1 -0
  223. package/dist/internal/token.d.ts +22 -0
  224. package/dist/internal/token.d.ts.map +1 -0
  225. package/dist/internal/token.js +65 -0
  226. package/dist/internal/token.js.map +1 -0
  227. package/dist/internal/wire.d.ts +37 -0
  228. package/dist/internal/wire.d.ts.map +1 -0
  229. package/dist/internal/wire.js +49 -0
  230. package/dist/internal/wire.js.map +1 -0
  231. package/notices/bufbuild-protobuf-LICENSE +201 -0
  232. package/package.json +17 -38
  233. package/dist/FetchHttp.d.ts +0 -9
  234. package/dist/FetchHttp.d.ts.map +0 -1
  235. package/dist/FetchHttp.js +0 -63
  236. package/dist/FetchHttp.js.map +0 -1
  237. package/dist/PeerFactory.d.ts +0 -26
  238. package/dist/PeerFactory.d.ts.map +0 -1
  239. package/dist/PeerFactory.js +0 -4
  240. package/dist/PeerFactory.js.map +0 -1
  241. package/dist/PeerTypes.d.ts +0 -64
  242. package/dist/PeerTypes.d.ts.map +0 -1
  243. package/dist/PeerTypes.js +0 -2
  244. package/dist/PeerTypes.js.map +0 -1
  245. package/dist/Sequence.d.ts +0 -85
  246. package/dist/Sequence.d.ts.map +0 -1
  247. package/dist/Sequence.js +0 -210
  248. package/dist/Sequence.js.map +0 -1
  249. package/dist/SessionTypes.d.ts +0 -312
  250. package/dist/SessionTypes.d.ts.map +0 -1
  251. package/dist/SessionTypes.js +0 -19
  252. package/dist/SessionTypes.js.map +0 -1
  253. package/dist/Submission.d.ts.map +0 -1
  254. package/dist/Submission.js.map +0 -1
  255. package/dist/_internal/queue.d.ts +0 -6
  256. package/dist/_internal/queue.d.ts.map +0 -1
  257. package/dist/_internal/queue.js.map +0 -1
  258. package/dist/bytes.d.ts +0 -6
  259. package/dist/bytes.d.ts.map +0 -1
  260. package/dist/bytes.js +0 -32
  261. package/dist/bytes.js.map +0 -1
  262. package/dist/contract.d.ts +0 -149
  263. package/dist/contract.d.ts.map +0 -1
  264. package/dist/contract.js +0 -119
  265. package/dist/contract.js.map +0 -1
  266. package/dist/coordinator/_internal/client.d.ts +0 -215
  267. package/dist/coordinator/_internal/client.d.ts.map +0 -1
  268. package/dist/coordinator/_internal/client.js +0 -563
  269. package/dist/coordinator/_internal/client.js.map +0 -1
  270. package/dist/coordinator/_internal/recording.d.ts +0 -31
  271. package/dist/coordinator/_internal/recording.d.ts.map +0 -1
  272. package/dist/coordinator/_internal/recording.js +0 -123
  273. package/dist/coordinator/_internal/recording.js.map +0 -1
  274. package/dist/coordinator/_internal/response.d.ts +0 -15
  275. package/dist/coordinator/_internal/response.d.ts.map +0 -1
  276. package/dist/coordinator/_internal/response.js +0 -55
  277. package/dist/coordinator/_internal/response.js.map +0 -1
  278. package/dist/coordinator/_internal/schemas.d.ts +0 -73
  279. package/dist/coordinator/_internal/schemas.d.ts.map +0 -1
  280. package/dist/coordinator/_internal/schemas.js +0 -200
  281. package/dist/coordinator/_internal/schemas.js.map +0 -1
  282. package/dist/coordinator/index.d.ts +0 -40
  283. package/dist/coordinator/index.d.ts.map +0 -1
  284. package/dist/coordinator/index.js +0 -21
  285. package/dist/coordinator/index.js.map +0 -1
  286. package/dist/correlation.d.ts +0 -47
  287. package/dist/correlation.d.ts.map +0 -1
  288. package/dist/correlation.js +0 -131
  289. package/dist/correlation.js.map +0 -1
  290. package/dist/duration.d.ts +0 -27
  291. package/dist/duration.d.ts.map +0 -1
  292. package/dist/duration.js +0 -47
  293. package/dist/duration.js.map +0 -1
  294. package/dist/errors.d.ts +0 -1303
  295. package/dist/errors.d.ts.map +0 -1
  296. package/dist/errors.js +0 -745
  297. package/dist/errors.js.map +0 -1
  298. package/dist/h3/_internal/client.d.ts +0 -9
  299. package/dist/h3/_internal/client.d.ts.map +0 -1
  300. package/dist/h3/_internal/client.js +0 -652
  301. package/dist/h3/_internal/client.js.map +0 -1
  302. package/dist/h3/_internal/contracts.d.ts.map +0 -1
  303. package/dist/h3/_internal/contracts.js +0 -123
  304. package/dist/h3/_internal/contracts.js.map +0 -1
  305. package/dist/h3/_internal/deployment.d.ts +0 -8
  306. package/dist/h3/_internal/deployment.d.ts.map +0 -1
  307. package/dist/h3/_internal/deployment.js +0 -149
  308. package/dist/h3/_internal/deployment.js.map +0 -1
  309. package/dist/h3/_internal/evidence.d.ts +0 -17
  310. package/dist/h3/_internal/evidence.d.ts.map +0 -1
  311. package/dist/h3/_internal/evidence.js +0 -48
  312. package/dist/h3/_internal/evidence.js.map +0 -1
  313. package/dist/h3/_internal/operations.d.ts +0 -58
  314. package/dist/h3/_internal/operations.d.ts.map +0 -1
  315. package/dist/h3/_internal/operations.js +0 -268
  316. package/dist/h3/_internal/operations.js.map +0 -1
  317. package/dist/h3/_internal/references.d.ts +0 -24
  318. package/dist/h3/_internal/references.d.ts.map +0 -1
  319. package/dist/h3/_internal/references.js +0 -309
  320. package/dist/h3/_internal/references.js.map +0 -1
  321. package/dist/h3/_internal/request.d.ts +0 -21
  322. package/dist/h3/_internal/request.d.ts.map +0 -1
  323. package/dist/h3/_internal/request.js +0 -97
  324. package/dist/h3/_internal/request.js.map +0 -1
  325. package/dist/h3/_internal/retained.d.ts +0 -22
  326. package/dist/h3/_internal/retained.d.ts.map +0 -1
  327. package/dist/h3/_internal/retained.js +0 -89
  328. package/dist/h3/_internal/retained.js.map +0 -1
  329. package/dist/h3/_internal/state.d.ts +0 -44
  330. package/dist/h3/_internal/state.d.ts.map +0 -1
  331. package/dist/h3/_internal/state.js +0 -283
  332. package/dist/h3/_internal/state.js.map +0 -1
  333. package/dist/h3/index.d.ts +0 -10
  334. package/dist/h3/index.d.ts.map +0 -1
  335. package/dist/h3/index.js +0 -7
  336. package/dist/h3/index.js.map +0 -1
  337. package/dist/h3/messages.d.ts.map +0 -1
  338. package/dist/h3/messages.js.map +0 -1
  339. package/dist/h3/profile.d.ts.map +0 -1
  340. package/dist/h3/profile.js.map +0 -1
  341. package/dist/h3/types.d.ts +0 -291
  342. package/dist/h3/types.d.ts.map +0 -1
  343. package/dist/h3/types.js +0 -2
  344. package/dist/h3/types.js.map +0 -1
  345. package/dist/host.d.ts +0 -26
  346. package/dist/host.d.ts.map +0 -1
  347. package/dist/host.js +0 -20
  348. package/dist/host.js.map +0 -1
  349. package/dist/json.d.ts +0 -25
  350. package/dist/json.d.ts.map +0 -1
  351. package/dist/json.js +0 -143
  352. package/dist/json.js.map +0 -1
  353. package/dist/media-stream.d.ts +0 -10
  354. package/dist/media-stream.d.ts.map +0 -1
  355. package/dist/media-stream.js +0 -18
  356. package/dist/media-stream.js.map +0 -1
  357. package/dist/observation.d.ts +0 -38
  358. package/dist/observation.d.ts.map +0 -1
  359. package/dist/observation.js +0 -113
  360. package/dist/observation.js.map +0 -1
  361. package/dist/orchestration/elapsed.d.ts +0 -9
  362. package/dist/orchestration/elapsed.d.ts.map +0 -1
  363. package/dist/orchestration/elapsed.js +0 -8
  364. package/dist/orchestration/elapsed.js.map +0 -1
  365. package/dist/orchestration/h3-source.d.ts +0 -58
  366. package/dist/orchestration/h3-source.d.ts.map +0 -1
  367. package/dist/orchestration/h3-source.js +0 -362
  368. package/dist/orchestration/h3-source.js.map +0 -1
  369. package/dist/orchestration/index.d.ts +0 -17
  370. package/dist/orchestration/index.d.ts.map +0 -1
  371. package/dist/orchestration/index.js +0 -12
  372. package/dist/orchestration/index.js.map +0 -1
  373. package/dist/orchestration/media-buffer.d.ts +0 -32
  374. package/dist/orchestration/media-buffer.d.ts.map +0 -1
  375. package/dist/orchestration/media-buffer.js +0 -94
  376. package/dist/orchestration/media-buffer.js.map +0 -1
  377. package/dist/orchestration/open-h3.d.ts +0 -101
  378. package/dist/orchestration/open-h3.d.ts.map +0 -1
  379. package/dist/orchestration/open-h3.js +0 -127
  380. package/dist/orchestration/open-h3.js.map +0 -1
  381. package/dist/orchestration/queries.d.ts +0 -10
  382. package/dist/orchestration/queries.d.ts.map +0 -1
  383. package/dist/orchestration/queries.js +0 -43
  384. package/dist/orchestration/queries.js.map +0 -1
  385. package/dist/orchestration/references.d.ts +0 -18
  386. package/dist/orchestration/references.d.ts.map +0 -1
  387. package/dist/orchestration/references.js +0 -79
  388. package/dist/orchestration/references.js.map +0 -1
  389. package/dist/orchestration/renewal-state.d.ts +0 -84
  390. package/dist/orchestration/renewal-state.d.ts.map +0 -1
  391. package/dist/orchestration/renewal-state.js +0 -95
  392. package/dist/orchestration/renewal-state.js.map +0 -1
  393. package/dist/orchestration/renewal.d.ts +0 -103
  394. package/dist/orchestration/renewal.d.ts.map +0 -1
  395. package/dist/orchestration/renewal.js +0 -1088
  396. package/dist/orchestration/renewal.js.map +0 -1
  397. package/dist/orchestration/request.d.ts +0 -65
  398. package/dist/orchestration/request.d.ts.map +0 -1
  399. package/dist/orchestration/request.js +0 -134
  400. package/dist/orchestration/request.js.map +0 -1
  401. package/dist/orchestration/retention.d.ts +0 -100
  402. package/dist/orchestration/retention.d.ts.map +0 -1
  403. package/dist/orchestration/retention.js +0 -134
  404. package/dist/orchestration/retention.js.map +0 -1
  405. package/dist/orchestration/routing.d.ts +0 -21
  406. package/dist/orchestration/routing.d.ts.map +0 -1
  407. package/dist/orchestration/routing.js +0 -93
  408. package/dist/orchestration/routing.js.map +0 -1
  409. package/dist/orchestration/scheduler-key.d.ts +0 -14
  410. package/dist/orchestration/scheduler-key.d.ts.map +0 -1
  411. package/dist/orchestration/scheduler-key.js +0 -62
  412. package/dist/orchestration/scheduler-key.js.map +0 -1
  413. package/dist/orchestration/scheduler-policy.d.ts +0 -222
  414. package/dist/orchestration/scheduler-policy.d.ts.map +0 -1
  415. package/dist/orchestration/scheduler-policy.js +0 -582
  416. package/dist/orchestration/scheduler-policy.js.map +0 -1
  417. package/dist/orchestration/scheduler.d.ts +0 -383
  418. package/dist/orchestration/scheduler.d.ts.map +0 -1
  419. package/dist/orchestration/scheduler.js +0 -2597
  420. package/dist/orchestration/scheduler.js.map +0 -1
  421. package/dist/orchestration/source-slot.d.ts +0 -124
  422. package/dist/orchestration/source-slot.d.ts.map +0 -1
  423. package/dist/orchestration/source-slot.js +0 -348
  424. package/dist/orchestration/source-slot.js.map +0 -1
  425. package/dist/orchestration/types.d.ts +0 -1462
  426. package/dist/orchestration/types.d.ts.map +0 -1
  427. package/dist/orchestration/types.js +0 -135
  428. package/dist/orchestration/types.js.map +0 -1
  429. package/dist/protobuf.d.ts +0 -63
  430. package/dist/protobuf.d.ts.map +0 -1
  431. package/dist/protobuf.js +0 -252
  432. package/dist/protobuf.js.map +0 -1
  433. package/dist/session/_internal/acquire.d.ts +0 -21
  434. package/dist/session/_internal/acquire.d.ts.map +0 -1
  435. package/dist/session/_internal/acquire.js +0 -168
  436. package/dist/session/_internal/acquire.js.map +0 -1
  437. package/dist/session/_internal/cleanup.d.ts +0 -19
  438. package/dist/session/_internal/cleanup.d.ts.map +0 -1
  439. package/dist/session/_internal/cleanup.js +0 -102
  440. package/dist/session/_internal/cleanup.js.map +0 -1
  441. package/dist/session/_internal/lifecycle.d.ts +0 -67
  442. package/dist/session/_internal/lifecycle.d.ts.map +0 -1
  443. package/dist/session/_internal/lifecycle.js +0 -142
  444. package/dist/session/_internal/lifecycle.js.map +0 -1
  445. package/dist/session/_internal/remote.d.ts +0 -28
  446. package/dist/session/_internal/remote.d.ts.map +0 -1
  447. package/dist/session/_internal/remote.js +0 -71
  448. package/dist/session/_internal/remote.js.map +0 -1
  449. package/dist/session/_internal/uploads.d.ts +0 -7
  450. package/dist/session/_internal/uploads.d.ts.map +0 -1
  451. package/dist/session/_internal/uploads.js +0 -31
  452. package/dist/session/_internal/uploads.js.map +0 -1
  453. package/dist/session/commands.d.ts +0 -2
  454. package/dist/session/commands.d.ts.map +0 -1
  455. package/dist/session/commands.js +0 -2
  456. package/dist/session/commands.js.map +0 -1
  457. package/dist/session/files.d.ts +0 -21
  458. package/dist/session/files.d.ts.map +0 -1
  459. package/dist/session/files.js +0 -49
  460. package/dist/session/files.js.map +0 -1
  461. package/dist/session/index.d.ts +0 -84
  462. package/dist/session/index.d.ts.map +0 -1
  463. package/dist/session/index.js +0 -16
  464. package/dist/session/index.js.map +0 -1
  465. package/dist/session/media.d.ts +0 -114
  466. package/dist/session/media.d.ts.map +0 -1
  467. package/dist/session/media.js +0 -2
  468. package/dist/session/media.js.map +0 -1
  469. package/dist/session/recorder.d.ts +0 -24
  470. package/dist/session/recorder.d.ts.map +0 -1
  471. package/dist/session/recorder.js +0 -19
  472. package/dist/session/recorder.js.map +0 -1
  473. package/dist/session.d.ts +0 -105
  474. package/dist/session.d.ts.map +0 -1
  475. package/dist/session.js +0 -976
  476. package/dist/session.js.map +0 -1
  477. package/dist/simulation/_internal/source.d.ts +0 -12
  478. package/dist/simulation/_internal/source.d.ts.map +0 -1
  479. package/dist/simulation/_internal/source.js +0 -513
  480. package/dist/simulation/_internal/source.js.map +0 -1
  481. package/dist/simulation/index.d.ts +0 -13
  482. package/dist/simulation/index.d.ts.map +0 -1
  483. package/dist/simulation/index.js +0 -12
  484. package/dist/simulation/index.js.map +0 -1
  485. package/dist/simulation/types.d.ts +0 -39
  486. package/dist/simulation/types.d.ts.map +0 -1
  487. package/dist/simulation/types.js +0 -2
  488. package/dist/simulation/types.js.map +0 -1
  489. package/dist/stats.d.ts.map +0 -1
  490. package/dist/stats.js +0 -205
  491. package/dist/stats.js.map +0 -1
  492. package/dist/testing/Faults.d.ts +0 -4
  493. package/dist/testing/Faults.d.ts.map +0 -1
  494. package/dist/testing/Faults.js +0 -7
  495. package/dist/testing/Faults.js.map +0 -1
  496. package/dist/testing/Png.d.ts +0 -3
  497. package/dist/testing/Png.d.ts.map +0 -1
  498. package/dist/testing/Png.js.map +0 -1
  499. package/dist/testing/Wav.d.ts +0 -14
  500. package/dist/testing/Wav.d.ts.map +0 -1
  501. package/dist/testing/Wav.js +0 -37
  502. package/dist/testing/Wav.js.map +0 -1
  503. package/dist/testing/index.d.ts +0 -5
  504. package/dist/testing/index.d.ts.map +0 -1
  505. package/dist/testing/index.js +0 -4
  506. package/dist/testing/index.js.map +0 -1
  507. package/dist/wire.d.ts +0 -7
  508. package/dist/wire.d.ts.map +0 -1
  509. package/dist/wire.generated.d.ts +0 -305
  510. package/dist/wire.generated.d.ts.map +0 -1
  511. package/dist/wire.generated.js +0 -1257
  512. package/dist/wire.generated.js.map +0 -1
  513. package/dist/wire.js +0 -5
  514. package/dist/wire.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactorError.js","sourceRoot":"","sources":["../src/ReactorError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,MAAM,MAAM,GAAG,uCAAgD,CAAC;AAEhE,+EAA+E;AAC/E,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC;IACzC,cAAc;IACd,UAAU;IACV,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,cAAc;IACd,iBAAiB;IACjB,SAAS;IACT,cAAc;IACd,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,QAAQ;IACR,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,aAAa;IACb,eAAe;IACf,eAAe;IACf,sDAAsD;IACtD,WAAW;CACZ,CAAC,CAAC;AAGH,yCAAyC;AACzC,MAAM,OAAO,OAAQ,SAAQ,MAAM,CAAC,KAAK,CAAU,4CAA4C,CAAC,CAAC;IAC/F,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC;CAAG;AAEL,+EAA+E;AAC/E,MAAM,OAAO,IAAK,SAAQ,MAAM,CAAC,KAAK,CAAO,yCAAyC,CAAC,CAAC;IACtF,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,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AAC;QACjD,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QACvE,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;KAC9C,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,383 @@
1
+ /**
2
+ * Reactor in a box: Reactor's coordinator and an H3 model simulated in memory
3
+ * at the network edge, so an application and every SDK layer above it run
4
+ * unchanged without a paid session. Provide `layer({ timing })` beneath
5
+ * `Reactor.layer()` in place of an HTTP client and a host; `layerCoordinator`
6
+ * is the coordinator's HTTP API alone, with no host.
7
+ *
8
+ * It models what H3 does, not how fast it does it: every delay comes from the
9
+ * `timing` the caller chooses. A scenario test states the timing it relies on
10
+ * with `Timing.fixed`; a simulation test draws from wide ranges with
11
+ * `Timing.random`, reproducibly for its seed; `Timing.hosted` draws from
12
+ * ranges paid runs measured, for demos. Every delay is an `Effect.sleep`: under
13
+ * `TestClock`, fork `flow()` and the run is deterministic; on the live clock
14
+ * it plays in real time.
15
+ */
16
+ import * as Context from "effect/Context";
17
+ import * as Duration from "effect/Duration";
18
+ import * as Effect from "effect/Effect";
19
+ import * as Layer from "effect/Layer";
20
+ import * as Redacted from "effect/Redacted";
21
+ import * as Schema from "effect/Schema";
22
+ import * as HttpClient from "effect/unstable/http/HttpClient";
23
+ import type { VideoFrame } from "./Media.js";
24
+ import { PeerFactory } from "./Peer.js";
25
+ /**
26
+ * A fault the simulated Reactor injects. `nth` counts the occurrences the
27
+ * fault matches since it was added, from 1; without it every one matches.
28
+ */
29
+ export declare const Fault: Schema.Union<readonly [Schema.TaggedStruct<"RefuseAllocation", {
30
+ readonly nth: Schema.optionalKey<Schema.Int>;
31
+ readonly status: Schema.optionalKey<Schema.Int>;
32
+ }>, Schema.TaggedStruct<"IgnoreSessionLimit", {
33
+ nth: Schema.optionalKey<Schema.Int>;
34
+ }>, Schema.TaggedStruct<"RepeatSession", {
35
+ nth: Schema.optionalKey<Schema.Int>;
36
+ }>, Schema.TaggedStruct<"UnnamedAllocation", {
37
+ nth: Schema.optionalKey<Schema.Int>;
38
+ }>, Schema.TaggedStruct<"StallAllocation", {
39
+ nth: Schema.optionalKey<Schema.Int>;
40
+ }>, Schema.TaggedStruct<"RefuseConnect", {
41
+ nth: Schema.optionalKey<Schema.Int>;
42
+ }>, Schema.TaggedStruct<"RefuseReconnect", {
43
+ readonly nth: Schema.optionalKey<Schema.Int>;
44
+ readonly status: Schema.optionalKey<Schema.Int>;
45
+ /** Sent as `Retry-After`, in whole seconds. */
46
+ readonly retryAfter: Schema.optionalKey<Schema.Duration>;
47
+ }>, Schema.TaggedStruct<"DropReply", {
48
+ readonly nth: Schema.optionalKey<Schema.Int>;
49
+ readonly command: Schema.String;
50
+ readonly applied: Schema.optionalKey<Schema.Boolean>;
51
+ }>, Schema.TaggedStruct<"LateReply", {
52
+ readonly nth: Schema.optionalKey<Schema.Int>;
53
+ readonly command: Schema.String;
54
+ readonly after: Schema.Duration;
55
+ }>, Schema.TaggedStruct<"StallBuild", {
56
+ nth: Schema.optionalKey<Schema.Int>;
57
+ }>, Schema.TaggedStruct<"FailBuild", {
58
+ readonly nth: Schema.optionalKey<Schema.Int>;
59
+ readonly reason: Schema.optionalKey<Schema.String>;
60
+ }>, Schema.TaggedStruct<"Disconnect", {
61
+ readonly nth: Schema.optionalKey<Schema.Int>;
62
+ readonly after: Schema.Duration;
63
+ }>, Schema.TaggedStruct<"Expire", {
64
+ readonly after: Schema.Duration;
65
+ }>, Schema.TaggedStruct<"IgnoreCap", {}>, Schema.TaggedStruct<"SlowDelete", {
66
+ readonly for: Schema.Duration;
67
+ }>, Schema.TaggedStruct<"IgnoreDelete", {}>, Schema.TaggedStruct<"MissingSession", {
68
+ nth: Schema.optionalKey<Schema.Int>;
69
+ }>, Schema.TaggedStruct<"Video", {
70
+ readonly video: Schema.Literals<readonly ["absent", "black", "frozen"]>;
71
+ }>, Schema.TaggedStruct<"NoAudio", {}>, Schema.TaggedStruct<"InvalidImage", {
72
+ nth: Schema.optionalKey<Schema.Int>;
73
+ }>, Schema.TaggedStruct<"OverGrant", {
74
+ readonly nth: Schema.optionalKey<Schema.Int>;
75
+ readonly grant: Schema.optionalKey<Schema.Literals<readonly ["longer", "uncapped", "bound", "expired", "silent"]>>;
76
+ }>, Schema.TaggedStruct<"LateRecording", {
77
+ readonly nth: Schema.optionalKey<Schema.Int>;
78
+ readonly by: Schema.Duration;
79
+ }>, Schema.TaggedStruct<"Moderate", {
80
+ readonly nth: Schema.optionalKey<Schema.Int>;
81
+ readonly prompt: Schema.optionalKey<Schema.String>;
82
+ readonly action: Schema.optionalKey<Schema.Literals<readonly ["terminate", "warn"]>>;
83
+ /** False ends the session with no verdict sent, which Reactor's docs allow. */
84
+ readonly verdict: Schema.optionalKey<Schema.Boolean>;
85
+ }>]>;
86
+ export type Fault = typeof Fault.Type;
87
+ /** A delay drawn uniformly from `min` to `max`; equal ends make it fixed. */
88
+ export interface Range {
89
+ readonly min: Duration.Duration;
90
+ readonly max: Duration.Duration;
91
+ }
92
+ /** Where each simulated delay comes from. */
93
+ export interface Timing {
94
+ /** Where the numbers come from, for a reader of a failing run. */
95
+ readonly label: string;
96
+ /** Seeds every draw, so a run repeats. */
97
+ readonly seed: number;
98
+ /** Each coordinator request, once. */
99
+ readonly http: Range;
100
+ /**
101
+ * Each channel message, one way. A connection's media arrives at one delay
102
+ * from this range, drawn when the connection opens.
103
+ */
104
+ readonly channel: Range;
105
+ /** From `POST /sessions` until the session is ACTIVE and billed. */
106
+ readonly allocation: Range;
107
+ /** From the SDP offer until its answer is ready. */
108
+ readonly negotiation: Range;
109
+ /** From the SDP answer until both channels open. */
110
+ readonly connect: Range;
111
+ /** From `clip_finished` to the next `clip_started` under autoplay. */
112
+ readonly seam: Range;
113
+ /** From a `stop`'s acknowledgement until it takes effect and its clip ends. */
114
+ readonly stop: Range;
115
+ /** From a flagged enqueue until content moderation's verdict, and the session's end on `terminate`. */
116
+ readonly moderation: Range;
117
+ /** Seconds of video built per second of build time; below 1 the queue starves. */
118
+ readonly buildSpeed: {
119
+ readonly min: number;
120
+ readonly max: number;
121
+ };
122
+ /** The same for a clip built continuing from another, which hosted H3 built slower. */
123
+ readonly continuedBuildSpeed: {
124
+ readonly min: number;
125
+ readonly max: number;
126
+ };
127
+ }
128
+ export declare const Timing: {
129
+ /**
130
+ * Every delay fixed: zero unless named. A scenario test names the ones its
131
+ * outcome depends on.
132
+ */
133
+ fixed: (input: {
134
+ readonly buildSpeed: number;
135
+ /** `buildSpeed` unless named. */
136
+ readonly continuedBuildSpeed?: number;
137
+ readonly http?: Duration.Input;
138
+ readonly channel?: Duration.Input;
139
+ readonly allocation?: Duration.Input;
140
+ readonly negotiation?: Duration.Input;
141
+ readonly connect?: Duration.Input;
142
+ readonly seam?: Duration.Input;
143
+ readonly stop?: Duration.Input;
144
+ readonly moderation?: Duration.Input;
145
+ }) => Timing;
146
+ /**
147
+ * Every delay drawn from a range, deliberately wider than anything measured
148
+ * so that code tuned to one provider speed fails: builds from a quarter of
149
+ * real time to ten times it, requests and messages up to 2 s, seams up to
150
+ * half a second, stops landing up to a second after their acknowledgement.
151
+ * Name a narrower range to explore one.
152
+ */
153
+ random: (input: {
154
+ readonly seed: number;
155
+ readonly http?: readonly [Duration.Input, Duration.Input];
156
+ readonly channel?: readonly [Duration.Input, Duration.Input];
157
+ readonly allocation?: readonly [Duration.Input, Duration.Input];
158
+ readonly negotiation?: readonly [Duration.Input, Duration.Input];
159
+ readonly connect?: readonly [Duration.Input, Duration.Input];
160
+ readonly seam?: readonly [Duration.Input, Duration.Input];
161
+ readonly stop?: readonly [Duration.Input, Duration.Input];
162
+ readonly moderation?: readonly [Duration.Input, Duration.Input];
163
+ readonly buildSpeed?: readonly [number, number];
164
+ readonly continuedBuildSpeed?: readonly [number, number];
165
+ }) => Timing;
166
+ /**
167
+ * What two paid hosted H3 runs measured on 2026-09-27 (0.6.0 evidence):
168
+ * connect steps of 0.2–0.9 s, eleven 5 s clips built about every 2.1 s
169
+ * while playing, five seams of 30–110 ms and command round trips of 60–90
170
+ * ms; from 0.7.0's two runs on 2026-09-28, a stop landing about 20 ms
171
+ * after its acknowledgement and one continued 5 s clip built in 5.45 s; and
172
+ * from 0.8.0's cut run, a moderation verdict 1.01 s after its enqueue. These
173
+ * are small samples, drawn as ranges and not replayed as a trace: use them
174
+ * for demos and realism checks, not as what a test depends on.
175
+ */
176
+ hosted: {
177
+ label: string;
178
+ seed: number;
179
+ http: Range;
180
+ channel: Range;
181
+ allocation: Range;
182
+ negotiation: Range;
183
+ connect: Range;
184
+ seam: Range;
185
+ stop: Range;
186
+ moderation: Range;
187
+ buildSpeed: {
188
+ min: number;
189
+ max: number;
190
+ };
191
+ continuedBuildSpeed: {
192
+ min: number;
193
+ max: number;
194
+ };
195
+ };
196
+ };
197
+ /** The simulated Reactor's fixed facts; its delays come from `Timing`. */
198
+ export declare const Options: Schema.Struct<{
199
+ /** The key `POST /tokens` accepts. */
200
+ readonly apiKey: Schema.withConstructorDefault<Schema.String>;
201
+ /** The queue capacities H3's state reports. */
202
+ readonly generationCapacity: Schema.withConstructorDefault<Schema.Int>;
203
+ readonly playoutCapacity: Schema.withConstructorDefault<Schema.Int>;
204
+ /**
205
+ * The rate the pricing API publishes, in credits a second, as it stated
206
+ * H3's for the paid runs: 125 at 10,000 a dollar is $0.0125 a second.
207
+ */
208
+ readonly creditsPerSecond: Schema.withConstructorDefault<Schema.Int>;
209
+ readonly creditsPerDollar: Schema.withConstructorDefault<Schema.Int>;
210
+ /** Sessions the account may run at once, as Reactor's default quota; more are refused with 429. */
211
+ readonly concurrentSessions: Schema.withConstructorDefault<Schema.Int>;
212
+ /**
213
+ * Sessions the account may create a minute, three back to back, as Reactor's
214
+ * default quota; more are refused with 429 and a `Retry-After`.
215
+ */
216
+ readonly sessionsPerMinute: Schema.withConstructorDefault<Schema.Int>;
217
+ /** Decoded frame size. */
218
+ readonly width: Schema.withConstructorDefault<Schema.Int>;
219
+ readonly height: Schema.withConstructorDefault<Schema.Int>;
220
+ /**
221
+ * The local candidate type of the pair a peer's statistics report carrying
222
+ * its media: `relay` stands for a connection through TURN.
223
+ */
224
+ readonly candidate: Schema.withConstructorDefault<Schema.Literals<readonly ["host", "srflx", "relay"]>>;
225
+ /** Whether the deployment's `enqueue` declares `reference_audios`. */
226
+ readonly referenceAudio: Schema.withConstructorDefault<Schema.Boolean>;
227
+ /**
228
+ * Whether the deployment records. A recorder answers a clip or recording
229
+ * request with an HLS playlist, ready when the clip says; without one the
230
+ * request fails as a disabled recorder does. Whether hosted H3 records is
231
+ * unobserved.
232
+ */
233
+ readonly recorder: Schema.withConstructorDefault<Schema.Boolean>;
234
+ readonly faults: Schema.withConstructorDefault<Schema.$Array<Schema.Union<readonly [Schema.TaggedStruct<"RefuseAllocation", {
235
+ readonly nth: Schema.optionalKey<Schema.Int>;
236
+ readonly status: Schema.optionalKey<Schema.Int>;
237
+ }>, Schema.TaggedStruct<"IgnoreSessionLimit", {
238
+ nth: Schema.optionalKey<Schema.Int>;
239
+ }>, Schema.TaggedStruct<"RepeatSession", {
240
+ nth: Schema.optionalKey<Schema.Int>;
241
+ }>, Schema.TaggedStruct<"UnnamedAllocation", {
242
+ nth: Schema.optionalKey<Schema.Int>;
243
+ }>, Schema.TaggedStruct<"StallAllocation", {
244
+ nth: Schema.optionalKey<Schema.Int>;
245
+ }>, Schema.TaggedStruct<"RefuseConnect", {
246
+ nth: Schema.optionalKey<Schema.Int>;
247
+ }>, Schema.TaggedStruct<"RefuseReconnect", {
248
+ readonly nth: Schema.optionalKey<Schema.Int>;
249
+ readonly status: Schema.optionalKey<Schema.Int>;
250
+ /** Sent as `Retry-After`, in whole seconds. */
251
+ readonly retryAfter: Schema.optionalKey<Schema.Duration>;
252
+ }>, Schema.TaggedStruct<"DropReply", {
253
+ readonly nth: Schema.optionalKey<Schema.Int>;
254
+ readonly command: Schema.String;
255
+ readonly applied: Schema.optionalKey<Schema.Boolean>;
256
+ }>, Schema.TaggedStruct<"LateReply", {
257
+ readonly nth: Schema.optionalKey<Schema.Int>;
258
+ readonly command: Schema.String;
259
+ readonly after: Schema.Duration;
260
+ }>, Schema.TaggedStruct<"StallBuild", {
261
+ nth: Schema.optionalKey<Schema.Int>;
262
+ }>, Schema.TaggedStruct<"FailBuild", {
263
+ readonly nth: Schema.optionalKey<Schema.Int>;
264
+ readonly reason: Schema.optionalKey<Schema.String>;
265
+ }>, Schema.TaggedStruct<"Disconnect", {
266
+ readonly nth: Schema.optionalKey<Schema.Int>;
267
+ readonly after: Schema.Duration;
268
+ }>, Schema.TaggedStruct<"Expire", {
269
+ readonly after: Schema.Duration;
270
+ }>, Schema.TaggedStruct<"IgnoreCap", {}>, Schema.TaggedStruct<"SlowDelete", {
271
+ readonly for: Schema.Duration;
272
+ }>, Schema.TaggedStruct<"IgnoreDelete", {}>, Schema.TaggedStruct<"MissingSession", {
273
+ nth: Schema.optionalKey<Schema.Int>;
274
+ }>, Schema.TaggedStruct<"Video", {
275
+ readonly video: Schema.Literals<readonly ["absent", "black", "frozen"]>;
276
+ }>, Schema.TaggedStruct<"NoAudio", {}>, Schema.TaggedStruct<"InvalidImage", {
277
+ nth: Schema.optionalKey<Schema.Int>;
278
+ }>, Schema.TaggedStruct<"OverGrant", {
279
+ readonly nth: Schema.optionalKey<Schema.Int>;
280
+ readonly grant: Schema.optionalKey<Schema.Literals<readonly ["longer", "uncapped", "bound", "expired", "silent"]>>;
281
+ }>, Schema.TaggedStruct<"LateRecording", {
282
+ readonly nth: Schema.optionalKey<Schema.Int>;
283
+ readonly by: Schema.Duration;
284
+ }>, Schema.TaggedStruct<"Moderate", {
285
+ readonly nth: Schema.optionalKey<Schema.Int>;
286
+ readonly prompt: Schema.optionalKey<Schema.String>;
287
+ readonly action: Schema.optionalKey<Schema.Literals<readonly ["terminate", "warn"]>>;
288
+ /** False ends the session with no verdict sent, which Reactor's docs allow. */
289
+ readonly verdict: Schema.optionalKey<Schema.Boolean>;
290
+ }>]>>>;
291
+ }>;
292
+ export type Options = typeof Options.Type;
293
+ export interface SessionInfo {
294
+ readonly id: string;
295
+ /** INACTIVE: its last connection dropped; it ends 30 s later unless one returns. */
296
+ readonly state: "PENDING" | "ACTIVE" | "INACTIVE" | "STOPPING" | "CLOSED";
297
+ /** One of its connections at least is connected with both channels open. */
298
+ readonly connected: boolean;
299
+ /** DELETE requests received, repeats and ignored ones included. */
300
+ readonly deletes: number;
301
+ /** The creating token's cap, undefined for none, and when that token expires. */
302
+ readonly grant: {
303
+ readonly maxSessionSeconds: number | undefined;
304
+ readonly expiresAt: number;
305
+ };
306
+ /** The SDK that created it, as its `client_info` named itself. */
307
+ readonly client: {
308
+ readonly sdkVersion: string;
309
+ readonly sdkType: string;
310
+ } | undefined;
311
+ }
312
+ /** What the sessions cost, billed per second as the pricing API states H3's rate. */
313
+ export interface Billing {
314
+ /** From ACTIVE until each session ended, or now. */
315
+ readonly seconds: number;
316
+ readonly usd: number;
317
+ }
318
+ /**
319
+ * A command the model received, a message it sent, a track paused or resumed,
320
+ * a session's lifecycle step, or a request the coordinator or storage served.
321
+ */
322
+ export interface Entry {
323
+ /** Monotonic milliseconds. */
324
+ readonly at: number;
325
+ /** The session it concerns; empty for a request that names none. */
326
+ readonly sessionId: string;
327
+ readonly kind: "session" | "command" | "message" | "upload" | "build" | "track" | "request";
328
+ /** A request's is its method and URL. */
329
+ readonly name: string;
330
+ /** The bearer a request carried: the API key or a token. */
331
+ readonly bearer?: "key" | "token";
332
+ readonly clipId?: string;
333
+ /**
334
+ * A build that asked to continue from this clip: its name says whether it
335
+ * `continued` or built `independent`ly, which H3 itself never reports.
336
+ */
337
+ readonly continuedFrom?: string;
338
+ /** What a `DropReply` fault took: the reply only, or the whole command. */
339
+ readonly dropped?: "reply" | "command";
340
+ }
341
+ declare const ReactorTest_base: Context.ServiceClass<ReactorTest, "reactor-effect-client/ReactorTest", {
342
+ /** The key the simulated `POST /tokens` accepts. */
343
+ readonly apiKey: Redacted.Redacted<string>;
344
+ readonly sessions: Effect.Effect<ReadonlyArray<SessionInfo>>;
345
+ readonly billing: Effect.Effect<Billing>;
346
+ /** Commands received, messages sent and session lifecycle, in order. */
347
+ readonly log: Effect.Effect<ReadonlyArray<Entry>>;
348
+ /** Arms a fault from now on; its `nth` counts from this call. */
349
+ readonly inject: (fault: Fault) => Effect.Effect<void>;
350
+ }>;
351
+ /** Inspects and disturbs the simulated Reactor. */
352
+ export declare class ReactorTest extends ReactorTest_base {
353
+ }
354
+ type Input = Schema.Struct.MakeIn<typeof Options.fields> & {
355
+ readonly timing: Timing;
356
+ };
357
+ /**
358
+ * The simulated coordinator alone: tokens, sessions and their lifetimes,
359
+ * uploads and recordings over its HTTP API, with no host. Its sessions run
360
+ * without a connection, as a session does before its first or after its last.
361
+ */
362
+ export declare const layerCoordinator: (input: Input) => Layer.Layer<ReactorTest | HttpClient.HttpClient>;
363
+ /** The simulated Reactor, as the network edge `Reactor.layer` needs. */
364
+ export declare const layer: (input: Input) => Layer.Layer<ReactorTest | HttpClient.HttpClient | PeerFactory>;
365
+ /** The clip a simulated frame belongs to and its index in the clip; undefined when black. */
366
+ export declare const frameOf: (frame: VideoFrame) => {
367
+ readonly clipId: string;
368
+ readonly index: number;
369
+ } | undefined;
370
+ /**
371
+ * Keeps a `TestClock` moving in `step`s (5 ms by default) while it runs, so a
372
+ * scenario written as straight-line code advances in virtual time and each
373
+ * message chain lands within a step of when it would. Fork it into the test's
374
+ * scope; one large `TestClock.adjust` can run ahead of a fiber still being
375
+ * woken.
376
+ */
377
+ export declare const flow: (step?: Duration.Input) => Effect.Effect<never>;
378
+ /**
379
+ * Reference media H3's local checks accept, for tests and demos:
380
+ * `pngBytes({ width, height })` is a black PNG, `wavBytes({ seconds })` a WAV tone.
381
+ */
382
+ export { pngBytes, wavBytes, type WavOptions } from "./internal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