spawnfile 0.1.17 → 0.1.19

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 (490) hide show
  1. package/README.md +1 -1
  2. package/dist/auth/importers.js +21 -5
  3. package/dist/auth/index.d.ts +1 -0
  4. package/dist/auth/index.js +1 -0
  5. package/dist/auth/profileStore.js +4 -1
  6. package/dist/auth/trainingGrokWriteback.d.ts +4 -0
  7. package/dist/auth/trainingGrokWriteback.js +119 -0
  8. package/dist/auth/trainingGrokWritebackLock.d.ts +5 -0
  9. package/dist/auth/trainingGrokWritebackLock.js +56 -0
  10. package/dist/cli/authCommands.js +9 -5
  11. package/dist/cli/compileBuildCommands.js +4 -0
  12. package/dist/cli/devCommands.js +4 -2
  13. package/dist/cli/downCommand.d.ts +2 -0
  14. package/dist/cli/downCommand.js +3 -0
  15. package/dist/cli/envFileOption.d.ts +18 -0
  16. package/dist/cli/envFileOption.js +20 -0
  17. package/dist/cli/lifecycleCommands.d.ts +1 -1
  18. package/dist/cli/lifecycleCommands.js +3 -1
  19. package/dist/cli/lifecyclePlan.d.ts +1 -0
  20. package/dist/cli/lifecyclePlan.js +2 -0
  21. package/dist/cli/paideiaDelegation.d.ts +2 -1
  22. package/dist/cli/paideiaDelegation.js +5 -4
  23. package/dist/cli/recordCommands.d.ts +17 -0
  24. package/dist/cli/recordCommands.js +43 -0
  25. package/dist/cli/releaseCommand.d.ts +6 -0
  26. package/dist/cli/releaseCommand.js +91 -0
  27. package/dist/cli/runCli.d.ts +7 -1
  28. package/dist/cli/runCli.js +11 -6
  29. package/dist/cli/runPublishCommands.js +5 -3
  30. package/dist/cli/trainCommand.js +73 -20
  31. package/dist/cli/upCommand.js +5 -1
  32. package/dist/cli/volumeCommands.d.ts +8 -0
  33. package/dist/cli/volumeCommands.js +53 -0
  34. package/dist/compiler/agentNodeMerge.js +3 -2
  35. package/dist/compiler/buildCompilePlan.js +4 -0
  36. package/dist/compiler/buildCompilePlanAgent.js +3 -1
  37. package/dist/compiler/buildCompilePlanTraversal.js +2 -0
  38. package/dist/compiler/buildCompilePlanTraversalHelpers.d.ts +2 -2
  39. package/dist/compiler/buildCompilePlanTraversalHelpers.js +4 -3
  40. package/dist/compiler/buildProject.d.ts +10 -0
  41. package/dist/compiler/buildProject.js +14 -2
  42. package/dist/compiler/cleanCompileOutput.d.ts +2 -0
  43. package/dist/compiler/cleanCompileOutput.js +14 -0
  44. package/dist/compiler/compilePlanHelpers.js +2 -0
  45. package/dist/compiler/compileProject.d.ts +10 -0
  46. package/dist/compiler/compileProject.js +29 -3
  47. package/dist/compiler/containerArtifactSummaries.js +1 -0
  48. package/dist/compiler/containerArtifacts.d.ts +4 -4
  49. package/dist/compiler/containerArtifacts.js +18 -34
  50. package/dist/compiler/containerArtifactsPlans.js +7 -0
  51. package/dist/compiler/containerArtifactsTypes.d.ts +7 -0
  52. package/dist/compiler/containerDaimonBrokerRender.d.ts +3 -1
  53. package/dist/compiler/containerDaimonBrokerRender.js +6 -3
  54. package/dist/compiler/containerDaimonGrokTaskClock.d.ts +5 -0
  55. package/dist/compiler/containerDaimonGrokTaskClock.js +29 -0
  56. package/dist/compiler/containerDaimonGrokWorkerProvisioning.d.ts +1 -1
  57. package/dist/compiler/containerDaimonGrokWorkerProvisioning.js +38 -16
  58. package/dist/compiler/containerDaimonGrokWorkerRender.d.ts +33 -8
  59. package/dist/compiler/containerDaimonGrokWorkerRender.js +18 -5
  60. package/dist/compiler/containerDaimonOwnershipGuardRender.d.ts +14 -1
  61. package/dist/compiler/containerDaimonOwnershipGuardRender.js +15 -2
  62. package/dist/compiler/containerDaimonUidEntrypointRender.js +6 -12
  63. package/dist/compiler/containerTargetResources.d.ts +10 -0
  64. package/dist/compiler/containerTargetResources.js +21 -13
  65. package/dist/compiler/containerWorkspaceResourceRender.js +4 -1
  66. package/dist/compiler/index.d.ts +2 -0
  67. package/dist/compiler/index.js +2 -0
  68. package/dist/compiler/mcpPlaceholders.d.ts +11 -0
  69. package/dist/compiler/mcpPlaceholders.js +58 -0
  70. package/dist/compiler/mcpServerInheritance.d.ts +18 -0
  71. package/dist/compiler/mcpServerInheritance.js +43 -0
  72. package/dist/compiler/moltnetArtifactTypes.d.ts +1 -0
  73. package/dist/compiler/moltnetArtifacts.js +1 -0
  74. package/dist/compiler/preflightCompilePlan.d.ts +9 -0
  75. package/dist/compiler/preflightCompilePlan.js +38 -0
  76. package/dist/compiler/recordingAgentFacts.d.ts +4 -0
  77. package/dist/compiler/recordingAgentFacts.js +35 -0
  78. package/dist/compiler/recordingCapability.d.ts +4 -0
  79. package/dist/compiler/recordingCapability.js +22 -0
  80. package/dist/compiler/recordingReport.d.ts +4 -0
  81. package/dist/compiler/recordingReport.js +18 -0
  82. package/dist/compiler/runProject.d.ts +2 -1
  83. package/dist/compiler/runProject.js +2 -0
  84. package/dist/compiler/surfaces.d.ts +1 -2
  85. package/dist/compiler/surfaces.js +0 -1
  86. package/dist/compiler/syncProjectAuth.js +2 -1
  87. package/dist/compiler/training/broker/clockProbe.d.ts +6 -0
  88. package/dist/compiler/training/broker/clockProbe.js +27 -0
  89. package/dist/compiler/training/broker/declaration.d.ts +4 -2
  90. package/dist/compiler/training/broker/declaration.js +4 -2
  91. package/dist/compiler/training/broker/entrypoint.js +33 -18
  92. package/dist/compiler/training/broker/evaluatorSecrets.d.ts +2 -0
  93. package/dist/compiler/training/broker/evaluatorSecrets.js +60 -0
  94. package/dist/compiler/training/broker/index.d.ts +3 -2
  95. package/dist/compiler/training/broker/index.js +3 -2
  96. package/dist/compiler/training/broker/main.js +1 -1
  97. package/dist/compiler/training/broker/paths.d.ts +96 -56
  98. package/dist/compiler/training/broker/paths.js +97 -89
  99. package/dist/compiler/training/broker/processes.d.ts +9 -0
  100. package/dist/compiler/training/broker/processes.js +4 -1
  101. package/dist/compiler/training/broker/projection.d.ts +3 -2
  102. package/dist/compiler/training/broker/projection.js +21 -9
  103. package/dist/compiler/training/broker/provisioning.d.ts +6 -15
  104. package/dist/compiler/training/broker/provisioning.js +71 -53
  105. package/dist/compiler/training/broker/registration.d.ts +3 -1
  106. package/dist/compiler/training/broker/registration.js +29 -21
  107. package/dist/compiler/training/broker/reset.d.ts +9 -0
  108. package/dist/compiler/training/broker/reset.js +71 -0
  109. package/dist/compiler/training/broker/runtime.d.ts +10 -13
  110. package/dist/compiler/training/broker/runtime.js +69 -115
  111. package/dist/compiler/training/broker/supervisor.d.ts +10 -11
  112. package/dist/compiler/training/broker/supervisor.js +22 -23
  113. package/dist/compiler/training/broker/taskClock.d.ts +5 -0
  114. package/dist/compiler/training/broker/taskClock.js +41 -0
  115. package/dist/compiler/training/compiledAgent.d.ts +21 -0
  116. package/dist/compiler/training/compiledAgent.js +62 -0
  117. package/dist/compiler/training/container/contract.d.ts +23 -0
  118. package/dist/compiler/training/container/contract.js +23 -5
  119. package/dist/compiler/training/container/evaluators.d.ts +48 -0
  120. package/dist/compiler/training/container/evaluators.js +50 -0
  121. package/dist/compiler/training/container/grokWriteback.d.ts +8 -0
  122. package/dist/compiler/training/container/grokWriteback.js +26 -0
  123. package/dist/compiler/training/container/index.d.ts +2 -1
  124. package/dist/compiler/training/container/index.js +2 -1
  125. package/dist/compiler/training/container/launch.d.ts +3 -0
  126. package/dist/compiler/training/container/launch.js +119 -28
  127. package/dist/compiler/training/container/nativeSlots.d.ts +14 -0
  128. package/dist/compiler/training/container/nativeSlots.js +13 -0
  129. package/dist/compiler/training/container/outputCopy.d.ts +2 -0
  130. package/dist/compiler/training/container/outputCopy.js +72 -0
  131. package/dist/compiler/training/container/outputVolume.d.ts +27 -0
  132. package/dist/compiler/training/container/outputVolume.js +161 -0
  133. package/dist/compiler/training/container/prepare.d.ts +3 -1
  134. package/dist/compiler/training/container/prepare.js +57 -12
  135. package/dist/compiler/training/container/security.d.ts +5 -3
  136. package/dist/compiler/training/container/security.js +15 -5
  137. package/dist/compiler/training/container/subjectIsolation.d.ts +5 -0
  138. package/dist/compiler/training/container/subjectIsolation.js +15 -0
  139. package/dist/compiler/training/context.d.ts +8 -0
  140. package/dist/compiler/training/context.js +12 -12
  141. package/dist/compiler/training/contract.d.ts +2 -0
  142. package/dist/compiler/training/contract.js +2 -0
  143. package/dist/compiler/training/execution.d.ts +417 -0
  144. package/dist/compiler/training/execution.js +160 -0
  145. package/dist/compiler/training/index.d.ts +8 -0
  146. package/dist/compiler/training/index.js +7 -0
  147. package/dist/compiler/training/moments.d.ts +80 -0
  148. package/dist/compiler/training/moments.js +118 -0
  149. package/dist/compiler/training/output.d.ts +2 -0
  150. package/dist/compiler/training/output.js +20 -0
  151. package/dist/compiler/training/plan/contract.d.ts +287 -0
  152. package/dist/compiler/training/plan/contract.js +49 -0
  153. package/dist/compiler/training/plan/index.d.ts +5 -0
  154. package/dist/compiler/training/plan/index.js +4 -0
  155. package/dist/compiler/training/plan/load.d.ts +9 -0
  156. package/dist/compiler/training/plan/load.js +153 -0
  157. package/dist/compiler/training/plan/references.d.ts +19 -0
  158. package/dist/compiler/training/plan/references.js +57 -0
  159. package/dist/compiler/training/plan/resolve.d.ts +4 -0
  160. package/dist/compiler/training/plan/resolve.js +73 -0
  161. package/dist/compiler/training/plan/targets.d.ts +11 -0
  162. package/dist/compiler/training/plan/targets.js +71 -0
  163. package/dist/compiler/training/plan/types.d.ts +36 -0
  164. package/dist/compiler/training/plan/types.js +1 -0
  165. package/dist/compiler/training/preparation/assets/Dockerfile +13 -2
  166. package/dist/compiler/training/preparation/assets/package-lock.json +2 -2
  167. package/dist/compiler/training/preparation/broker.d.ts +3 -3
  168. package/dist/compiler/training/preparation/broker.js +6 -4
  169. package/dist/compiler/training/preparation/contract.d.ts +27 -2
  170. package/dist/compiler/training/preparation/contract.js +23 -4
  171. package/dist/compiler/training/preparation/files.d.ts +5 -1
  172. package/dist/compiler/training/preparation/files.js +76 -15
  173. package/dist/compiler/training/preparation/image.js +9 -4
  174. package/dist/compiler/training/preparation/inputs.d.ts +1 -0
  175. package/dist/compiler/training/preparation/inputs.js +18 -10
  176. package/dist/compiler/training/preparation/prepare.d.ts +5 -0
  177. package/dist/compiler/training/preparation/prepare.js +66 -29
  178. package/dist/compiler/training/preparation/scratch.d.ts +6 -17
  179. package/dist/compiler/training/preparation/scratch.js +89 -23
  180. package/dist/compiler/training/repair/contract.d.ts +338 -4
  181. package/dist/compiler/training/repair/contract.js +2 -0
  182. package/dist/compiler/training/repair/index.d.ts +1 -1
  183. package/dist/compiler/training/repair/index.js +1 -1
  184. package/dist/compiler/training/repair/prepare.d.ts +155 -3
  185. package/dist/compiler/training/repair/prepare.js +6 -2
  186. package/dist/compiler/training/repair/witness.d.ts +152 -3
  187. package/dist/compiler/training/repair/witness.js +8 -2
  188. package/dist/compiler/training/resolution.d.ts +25 -0
  189. package/dist/compiler/training/resolution.js +69 -0
  190. package/dist/compiler/training/rewind/contract.d.ts +321 -0
  191. package/dist/compiler/training/rewind/contract.js +39 -0
  192. package/dist/compiler/training/rewind/deployedResource.d.ts +22 -0
  193. package/dist/compiler/training/rewind/deployedResource.js +19 -0
  194. package/dist/compiler/training/rewind/feed.d.ts +12 -0
  195. package/dist/compiler/training/rewind/feed.js +182 -0
  196. package/dist/compiler/training/rewind/feedContent.d.ts +6 -0
  197. package/dist/compiler/training/rewind/feedContent.js +38 -0
  198. package/dist/compiler/training/rewind/git.d.ts +8 -0
  199. package/dist/compiler/training/rewind/git.js +159 -0
  200. package/dist/compiler/training/rewind/gitArchive.d.ts +2 -0
  201. package/dist/compiler/training/rewind/gitArchive.js +7 -0
  202. package/dist/compiler/training/rewind/gitHistory.d.ts +3 -0
  203. package/dist/compiler/training/rewind/gitHistory.js +55 -0
  204. package/dist/compiler/training/rewind/gitProcess.d.ts +19 -0
  205. package/dist/compiler/training/rewind/gitProcess.js +81 -0
  206. package/dist/compiler/training/rewind/gitTree.d.ts +14 -0
  207. package/dist/compiler/training/rewind/gitTree.js +90 -0
  208. package/dist/compiler/training/rewind/history.d.ts +28 -0
  209. package/dist/compiler/training/rewind/history.js +239 -0
  210. package/dist/compiler/training/rewind/index.d.ts +18 -0
  211. package/dist/compiler/training/rewind/index.js +15 -0
  212. package/dist/compiler/training/rewind/inputs.d.ts +9 -0
  213. package/dist/compiler/training/rewind/inputs.js +67 -0
  214. package/dist/compiler/training/rewind/instant.d.ts +4 -0
  215. package/dist/compiler/training/rewind/instant.js +24 -0
  216. package/dist/compiler/training/rewind/leakCheck.d.ts +10 -0
  217. package/dist/compiler/training/rewind/leakCheck.js +56 -0
  218. package/dist/compiler/training/rewind/leakFeed.d.ts +5 -0
  219. package/dist/compiler/training/rewind/leakFeed.js +25 -0
  220. package/dist/compiler/training/rewind/leakFiles.d.ts +10 -0
  221. package/dist/compiler/training/rewind/leakFiles.js +106 -0
  222. package/dist/compiler/training/rewind/leakGit.d.ts +3 -0
  223. package/dist/compiler/training/rewind/leakGit.js +78 -0
  224. package/dist/compiler/training/rewind/leakGitPayload.d.ts +4 -0
  225. package/dist/compiler/training/rewind/leakGitPayload.js +57 -0
  226. package/dist/compiler/training/rewind/leakInputs.d.ts +7 -0
  227. package/dist/compiler/training/rewind/leakInputs.js +135 -0
  228. package/dist/compiler/training/rewind/leakLayout.d.ts +2 -0
  229. package/dist/compiler/training/rewind/leakLayout.js +17 -0
  230. package/dist/compiler/training/rewind/leakProvenance.d.ts +3 -0
  231. package/dist/compiler/training/rewind/leakProvenance.js +88 -0
  232. package/dist/compiler/training/rewind/materialize.d.ts +136 -0
  233. package/dist/compiler/training/rewind/materialize.js +212 -0
  234. package/dist/compiler/training/rewind/memory.d.ts +10 -0
  235. package/dist/compiler/training/rewind/memory.js +84 -0
  236. package/dist/compiler/training/rewind/memorySchemas.d.ts +87 -0
  237. package/dist/compiler/training/rewind/memorySchemas.js +50 -0
  238. package/dist/compiler/training/rewind/moltnet.d.ts +2 -0
  239. package/dist/compiler/training/rewind/moltnet.js +54 -0
  240. package/dist/compiler/training/rewind/moltnetJson.d.ts +13 -0
  241. package/dist/compiler/training/rewind/moltnetJson.js +180 -0
  242. package/dist/compiler/training/rewind/moltnetSchemas.d.ts +1226 -0
  243. package/dist/compiler/training/rewind/moltnetSchemas.js +75 -0
  244. package/dist/compiler/training/rewind/moltnetSqlite.d.ts +31 -0
  245. package/dist/compiler/training/rewind/moltnetSqlite.js +192 -0
  246. package/dist/compiler/training/rewind/moltnetSqliteData.d.ts +10 -0
  247. package/dist/compiler/training/rewind/moltnetSqliteData.js +113 -0
  248. package/dist/compiler/training/rewind/recordInput.d.ts +40 -0
  249. package/dist/compiler/training/rewind/recordInput.js +49 -0
  250. package/dist/compiler/training/rewind/recordedBundle.d.ts +4 -0
  251. package/dist/compiler/training/rewind/recordedBundle.js +58 -0
  252. package/dist/compiler/training/rewind/recordedCommit.d.ts +2 -0
  253. package/dist/compiler/training/rewind/recordedCommit.js +10 -0
  254. package/dist/compiler/training/rewind/select.d.ts +18 -0
  255. package/dist/compiler/training/rewind/select.js +64 -0
  256. package/dist/compiler/training/rewind/snapshotManifest.d.ts +42 -0
  257. package/dist/compiler/training/rewind/snapshotManifest.js +134 -0
  258. package/dist/compiler/training/rewind/taskClock.d.ts +12 -0
  259. package/dist/compiler/training/rewind/taskClock.js +40 -0
  260. package/dist/compiler/training/rewind/timestamps.d.ts +4 -0
  261. package/dist/compiler/training/rewind/timestamps.js +26 -0
  262. package/dist/compiler/training/rewind/types.d.ts +43 -0
  263. package/dist/compiler/training/rewind/types.js +1 -0
  264. package/dist/compiler/training/rewind/volumes.d.ts +12 -0
  265. package/dist/compiler/training/rewind/volumes.js +58 -0
  266. package/dist/compiler/training/selection.d.ts +7 -0
  267. package/dist/compiler/training/selection.js +15 -0
  268. package/dist/compiler/types.d.ts +6 -3
  269. package/dist/compiler/upProject.d.ts +1 -0
  270. package/dist/compiler/upProject.js +21 -5
  271. package/dist/compiler/workspaceBundleArtifacts.d.ts +16 -1
  272. package/dist/compiler/workspaceBundleArtifacts.js +69 -20
  273. package/dist/compiler/workspaceBundleCache.d.ts +23 -0
  274. package/dist/compiler/workspaceBundleCache.js +79 -0
  275. package/dist/compiler/workspaceBundleDependencies.d.ts +21 -0
  276. package/dist/compiler/workspaceBundleDependencies.js +122 -0
  277. package/dist/compiler/workspaceBundleFiles.d.ts +51 -0
  278. package/dist/compiler/workspaceBundleFiles.js +251 -0
  279. package/dist/compiler/workspaceBundleGenerated.d.ts +25 -0
  280. package/dist/compiler/workspaceBundleGenerated.js +103 -0
  281. package/dist/compiler/workspaceBundleGit.d.ts +64 -0
  282. package/dist/compiler/workspaceBundleGit.js +154 -0
  283. package/dist/compiler/workspaceBundleKey.d.ts +34 -0
  284. package/dist/compiler/workspaceBundleKey.js +17 -0
  285. package/dist/compiler/workspaceBundleResolve.d.ts +56 -0
  286. package/dist/compiler/workspaceBundleResolve.js +144 -0
  287. package/dist/compiler/workspaceBundleRun.d.ts +41 -0
  288. package/dist/compiler/workspaceBundleRun.js +79 -0
  289. package/dist/compiler/workspaceBundleTar.d.ts +47 -0
  290. package/dist/compiler/workspaceBundleTar.js +140 -0
  291. package/dist/compiler/workspaceBundleTree.d.ts +15 -0
  292. package/dist/compiler/workspaceBundleTree.js +58 -0
  293. package/dist/compiler/workspaceGitFetch.d.ts +41 -0
  294. package/dist/compiler/workspaceGitFetch.js +155 -0
  295. package/dist/compiler/workspaceGitPins.d.ts +33 -0
  296. package/dist/compiler/workspaceGitPins.js +127 -0
  297. package/dist/compiler/workspaceResources.d.ts +5 -1
  298. package/dist/compiler/workspaceResources.js +32 -5
  299. package/dist/deployment/activation.d.ts +3 -0
  300. package/dist/deployment/activation.js +12 -0
  301. package/dist/deployment/canaryCutover.d.ts +1 -1
  302. package/dist/deployment/candidateRecording.d.ts +8 -0
  303. package/dist/deployment/candidateRecording.js +22 -0
  304. package/dist/deployment/dockerManager.d.ts +5 -3
  305. package/dist/deployment/dockerManager.js +12 -2
  306. package/dist/deployment/downDeployment.d.ts +2 -0
  307. package/dist/deployment/downDeployment.js +6 -2
  308. package/dist/deployment/homeStore.d.ts +9 -1
  309. package/dist/deployment/homeStore.js +16 -53
  310. package/dist/deployment/index.d.ts +6 -0
  311. package/dist/deployment/index.js +6 -0
  312. package/dist/deployment/pidLock.d.ts +25 -0
  313. package/dist/deployment/pidLock.js +81 -0
  314. package/dist/deployment/record.d.ts +85 -1
  315. package/dist/deployment/record.js +11 -5
  316. package/dist/deployment/recordPublication.d.ts +15 -0
  317. package/dist/deployment/recordPublication.js +76 -0
  318. package/dist/deployment/recordedMemoryRetention.d.ts +18 -0
  319. package/dist/deployment/recordedMemoryRetention.js +27 -0
  320. package/dist/deployment/resourceLog.d.ts +140 -0
  321. package/dist/deployment/resourceLog.js +78 -0
  322. package/dist/distribution/buildDistributionReport.d.ts +3 -0
  323. package/dist/distribution/buildDistributionReport.js +5 -0
  324. package/dist/distribution/consumeImage.d.ts +3 -0
  325. package/dist/distribution/consumeImage.js +23 -31
  326. package/dist/distribution/consumeImageLifecycle.d.ts +4 -1
  327. package/dist/distribution/consumeImageLifecycle.js +14 -3
  328. package/dist/distribution/consumeImageSupport.d.ts +7 -0
  329. package/dist/distribution/consumeImageSupport.js +25 -0
  330. package/dist/distribution/distributionReportSchema.d.ts +47 -0
  331. package/dist/distribution/distributionReportSchema.js +20 -0
  332. package/dist/distribution/renderImageInterface.js +1 -1
  333. package/dist/distribution/types.d.ts +15 -0
  334. package/dist/filesystem/durableWrite.d.ts +10 -0
  335. package/dist/filesystem/durableWrite.js +87 -0
  336. package/dist/filesystem/index.d.ts +2 -0
  337. package/dist/filesystem/index.js +2 -0
  338. package/dist/filesystem/retainedJsonl.d.ts +23 -0
  339. package/dist/filesystem/retainedJsonl.js +123 -0
  340. package/dist/manifest/commandSchemas.d.ts +5 -0
  341. package/dist/manifest/commandSchemas.js +5 -0
  342. package/dist/manifest/executionSchemas.d.ts +20 -0
  343. package/dist/manifest/executionSchemas.js +13 -3
  344. package/dist/manifest/index.d.ts +2 -0
  345. package/dist/manifest/index.js +2 -0
  346. package/dist/manifest/loadManifest.js +3 -26
  347. package/dist/manifest/mcpSchemas.d.ts +61 -0
  348. package/dist/manifest/mcpSchemas.js +57 -11
  349. package/dist/manifest/memorySchemas.d.ts +1 -1
  350. package/dist/manifest/memorySchemas.js +1 -1
  351. package/dist/manifest/parseManifest.d.ts +7 -0
  352. package/dist/manifest/parseManifest.js +65 -0
  353. package/dist/manifest/renderSpawnfile.js +4 -1
  354. package/dist/manifest/renderSpawnfileWorkspace.js +6 -2
  355. package/dist/manifest/schemas.d.ts +1206 -132
  356. package/dist/manifest/schemas.js +14 -4
  357. package/dist/manifest/teamNetworkSchemas.d.ts +1 -1
  358. package/dist/manifest/trainingDataSchemas.d.ts +357 -0
  359. package/dist/manifest/trainingDataSchemas.js +31 -0
  360. package/dist/manifest/trainingSchemas.d.ts +49 -0
  361. package/dist/manifest/trainingSchemas.js +44 -0
  362. package/dist/manifest/volumeFeedSchemas.d.ts +52 -0
  363. package/dist/manifest/volumeFeedSchemas.js +104 -0
  364. package/dist/manifest/workspaceSchemas.d.ts +182 -5
  365. package/dist/manifest/workspaceSchemas.js +111 -7
  366. package/dist/recording/compose.d.ts +3 -0
  367. package/dist/recording/compose.js +93 -0
  368. package/dist/recording/deployment.d.ts +15 -0
  369. package/dist/recording/deployment.js +38 -0
  370. package/dist/recording/history.d.ts +16 -0
  371. package/dist/recording/history.js +47 -0
  372. package/dist/recording/index.d.ts +9 -0
  373. package/dist/recording/index.js +9 -0
  374. package/dist/recording/moment.d.ts +61 -0
  375. package/dist/recording/moment.js +36 -0
  376. package/dist/recording/parse.d.ts +15 -0
  377. package/dist/recording/parse.js +74 -0
  378. package/dist/recording/read.d.ts +8 -0
  379. package/dist/recording/read.js +61 -0
  380. package/dist/recording/store.d.ts +10 -0
  381. package/dist/recording/store.js +94 -0
  382. package/dist/recording/sync.d.ts +24 -0
  383. package/dist/recording/sync.js +126 -0
  384. package/dist/recording/types.d.ts +45 -0
  385. package/dist/recording/types.js +2 -0
  386. package/dist/release/drainControl.d.ts +54 -0
  387. package/dist/release/drainControl.js +137 -0
  388. package/dist/release/drainPhase.d.ts +37 -0
  389. package/dist/release/drainPhase.js +161 -0
  390. package/dist/release/index.d.ts +11 -0
  391. package/dist/release/index.js +11 -0
  392. package/dist/release/ledger.d.ts +75 -0
  393. package/dist/release/ledger.js +111 -0
  394. package/dist/release/notify.d.ts +58 -0
  395. package/dist/release/notify.js +126 -0
  396. package/dist/release/pending.d.ts +35 -0
  397. package/dist/release/pending.js +60 -0
  398. package/dist/release/postDeploy.d.ts +32 -0
  399. package/dist/release/postDeploy.js +62 -0
  400. package/dist/release/releaseDefaults.d.ts +9 -0
  401. package/dist/release/releaseDefaults.js +115 -0
  402. package/dist/release/releaseDocker.d.ts +38 -0
  403. package/dist/release/releaseDocker.js +94 -0
  404. package/dist/release/releaseTypes.d.ts +94 -0
  405. package/dist/release/releaseTypes.js +1 -0
  406. package/dist/release/runRelease.d.ts +9 -0
  407. package/dist/release/runRelease.js +218 -0
  408. package/dist/release/swap.d.ts +23 -0
  409. package/dist/release/swap.js +55 -0
  410. package/dist/release/types.d.ts +50 -0
  411. package/dist/release/types.js +29 -0
  412. package/dist/report/index.d.ts +1 -0
  413. package/dist/report/index.js +1 -0
  414. package/dist/report/recording.d.ts +57 -0
  415. package/dist/report/recording.js +26 -0
  416. package/dist/report/types.d.ts +58 -0
  417. package/dist/runtime/container.js +8 -13
  418. package/dist/runtime/daimon/adapter.js +15 -4
  419. package/dist/runtime/daimon/config.d.ts +4 -0
  420. package/dist/runtime/daimon/config.js +53 -4
  421. package/dist/runtime/daimon/contract-manifest.json +1 -0
  422. package/dist/runtime/daimon/contract-manifest.sha256 +1 -0
  423. package/dist/runtime/daimon/contractManifest.d.ts +59 -8
  424. package/dist/runtime/daimon/contractManifest.js +26 -10
  425. package/dist/runtime/daimon/grokTurnLimits.d.ts +25 -0
  426. package/dist/runtime/daimon/grokTurnLimits.js +51 -0
  427. package/dist/runtime/daimon/grokWorkerConfigBytes.d.ts +17 -0
  428. package/dist/runtime/daimon/grokWorkerConfigBytes.js +17 -0
  429. package/dist/runtime/daimon/grokWorkerContract.d.ts +5 -0
  430. package/dist/runtime/daimon/grokWorkerContract.js +13 -1
  431. package/dist/runtime/daimon/recording.d.ts +19 -0
  432. package/dist/runtime/daimon/recording.js +50 -0
  433. package/dist/runtime/daimon/scheduleAuthority.d.ts +8 -0
  434. package/dist/runtime/daimon/scheduleAuthority.js +19 -5
  435. package/dist/runtime/daimon/wakeMoments.d.ts +15 -0
  436. package/dist/runtime/daimon/wakeMoments.js +17 -0
  437. package/dist/runtime/daimonInstall.d.ts +3 -0
  438. package/dist/runtime/daimonInstall.js +25 -0
  439. package/dist/runtime/index.d.ts +1 -0
  440. package/dist/runtime/index.js +1 -0
  441. package/dist/runtime/install.d.ts +2 -0
  442. package/dist/runtime/install.js +1 -0
  443. package/dist/runtime/openclaw/adapter.js +3 -0
  444. package/dist/runtime/pi/adapter.js +3 -0
  445. package/dist/runtime/pi/containerTargets.js +6 -0
  446. package/dist/runtime/picoclaw/adapter.js +3 -0
  447. package/dist/runtime/registry.d.ts +3 -0
  448. package/dist/runtime/registry.js +13 -1
  449. package/dist/runtime/types.d.ts +15 -0
  450. package/dist/runtime/usageLedgerRead.d.ts +6 -0
  451. package/dist/runtime/usageLedgerRead.js +3 -3
  452. package/dist/shared/index.d.ts +1 -0
  453. package/dist/shared/index.js +1 -0
  454. package/dist/shared/recording.d.ts +8 -0
  455. package/dist/shared/recording.js +25 -0
  456. package/dist/target/dockerCommandExecutorCore.js +1 -1
  457. package/dist/target/dockerTargetBinding.js +2 -1
  458. package/dist/volume/feedLand.d.ts +31 -0
  459. package/dist/volume/feedLand.js +174 -0
  460. package/dist/volume/feedLandings.d.ts +45 -0
  461. package/dist/volume/feedLandings.js +111 -0
  462. package/dist/volume/feedLayout.d.ts +61 -0
  463. package/dist/volume/feedLayout.js +234 -0
  464. package/dist/volume/feedLock.d.ts +7 -0
  465. package/dist/volume/feedLock.js +131 -0
  466. package/dist/volume/feedManifest.d.ts +27 -0
  467. package/dist/volume/feedManifest.js +123 -0
  468. package/dist/volume/feedPrepare.d.ts +16 -0
  469. package/dist/volume/feedPrepare.js +228 -0
  470. package/dist/volume/feedProject.d.ts +39 -0
  471. package/dist/volume/feedProject.js +92 -0
  472. package/dist/volume/feedRecord.d.ts +55 -0
  473. package/dist/volume/feedRecord.js +148 -0
  474. package/dist/volume/feedRef.d.ts +43 -0
  475. package/dist/volume/feedRef.js +117 -0
  476. package/dist/volume/feedRefresh.d.ts +15 -0
  477. package/dist/volume/feedRefresh.js +187 -0
  478. package/dist/volume/feedSource.d.ts +66 -0
  479. package/dist/volume/feedSource.js +104 -0
  480. package/dist/volume/feedTarget.d.ts +70 -0
  481. package/dist/volume/feedTarget.js +9 -0
  482. package/dist/volume/feedTestKit.d.ts +11 -0
  483. package/dist/volume/feedTestKit.js +45 -0
  484. package/dist/volume/feedVerify.d.ts +18 -0
  485. package/dist/volume/feedVerify.js +104 -0
  486. package/dist/volume/index.d.ts +13 -0
  487. package/dist/volume/index.js +13 -0
  488. package/moltnet-releases.json +4 -4
  489. package/package.json +3 -3
  490. package/runtimes.yaml +8 -6
@@ -0,0 +1,1226 @@
1
+ import { z } from "zod";
2
+ export declare const moltnetInstantSchema: z.ZodString;
3
+ export declare const moltnetMessageSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ network_id: z.ZodString;
6
+ origin: z.ZodOptional<z.ZodObject<{
7
+ network_id: z.ZodString;
8
+ message_id: z.ZodString;
9
+ received_via: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strict>>;
11
+ target: z.ZodObject<{
12
+ kind: z.ZodEnum<{
13
+ room: "room";
14
+ thread: "thread";
15
+ dm: "dm";
16
+ }>;
17
+ room_id: z.ZodOptional<z.ZodString>;
18
+ thread_id: z.ZodOptional<z.ZodString>;
19
+ parent_message_id: z.ZodOptional<z.ZodString>;
20
+ dm_id: z.ZodOptional<z.ZodString>;
21
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ }, z.core.$strict>;
23
+ from: z.ZodObject<{
24
+ type: z.ZodString;
25
+ id: z.ZodString;
26
+ name: z.ZodOptional<z.ZodString>;
27
+ network_id: z.ZodOptional<z.ZodString>;
28
+ fqid: z.ZodOptional<z.ZodString>;
29
+ credential_bound: z.ZodOptional<z.ZodBoolean>;
30
+ }, z.core.$strict>;
31
+ parts: z.ZodNullable<z.ZodArray<z.ZodObject<{
32
+ kind: z.ZodString;
33
+ text: z.ZodOptional<z.ZodString>;
34
+ media_type: z.ZodOptional<z.ZodString>;
35
+ url: z.ZodOptional<z.ZodString>;
36
+ filename: z.ZodOptional<z.ZodString>;
37
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
38
+ }, z.core.$strict>>>;
39
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
40
+ created_at: z.ZodString;
41
+ }, z.core.$strict>;
42
+ export declare const moltnetRoomSchema: z.ZodObject<{
43
+ id: z.ZodString;
44
+ network_id: z.ZodOptional<z.ZodString>;
45
+ fqid: z.ZodOptional<z.ZodString>;
46
+ name: z.ZodString;
47
+ members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
48
+ visibility: z.ZodOptional<z.ZodString>;
49
+ write_policy: z.ZodOptional<z.ZodString>;
50
+ federation: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
51
+ none: "none";
52
+ all: "all";
53
+ }>, z.ZodArray<z.ZodString>]>>>;
54
+ access: z.ZodOptional<z.ZodObject<{
55
+ can_read: z.ZodBoolean;
56
+ can_write: z.ZodBoolean;
57
+ reason: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strict>>;
59
+ created_at: z.ZodString;
60
+ }, z.core.$strict>;
61
+ export declare const moltnetThreadSchema: z.ZodObject<{
62
+ id: z.ZodString;
63
+ network_id: z.ZodOptional<z.ZodString>;
64
+ fqid: z.ZodOptional<z.ZodString>;
65
+ room_id: z.ZodString;
66
+ parent_message_id: z.ZodOptional<z.ZodString>;
67
+ message_count: z.ZodNumber;
68
+ last_message_at: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strict>;
70
+ export declare const moltnetEventSchema: z.ZodObject<{
71
+ id: z.ZodString;
72
+ type: z.ZodString;
73
+ network_id: z.ZodString;
74
+ agent: z.ZodOptional<z.ZodObject<{
75
+ agent_id: z.ZodString;
76
+ network_id: z.ZodOptional<z.ZodString>;
77
+ fqid: z.ZodOptional<z.ZodString>;
78
+ name: z.ZodOptional<z.ZodString>;
79
+ message_id: z.ZodOptional<z.ZodString>;
80
+ reason: z.ZodOptional<z.ZodString>;
81
+ target: z.ZodOptional<z.ZodObject<{
82
+ kind: z.ZodEnum<{
83
+ room: "room";
84
+ thread: "thread";
85
+ dm: "dm";
86
+ }>;
87
+ room_id: z.ZodOptional<z.ZodString>;
88
+ thread_id: z.ZodOptional<z.ZodString>;
89
+ parent_message_id: z.ZodOptional<z.ZodString>;
90
+ dm_id: z.ZodOptional<z.ZodString>;
91
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
+ }, z.core.$strict>>;
93
+ error: z.ZodOptional<z.ZodString>;
94
+ attempts: z.ZodOptional<z.ZodNumber>;
95
+ classification: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>>;
97
+ message: z.ZodOptional<z.ZodObject<{
98
+ id: z.ZodString;
99
+ network_id: z.ZodString;
100
+ origin: z.ZodOptional<z.ZodObject<{
101
+ network_id: z.ZodString;
102
+ message_id: z.ZodString;
103
+ received_via: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strict>>;
105
+ target: z.ZodObject<{
106
+ kind: z.ZodEnum<{
107
+ room: "room";
108
+ thread: "thread";
109
+ dm: "dm";
110
+ }>;
111
+ room_id: z.ZodOptional<z.ZodString>;
112
+ thread_id: z.ZodOptional<z.ZodString>;
113
+ parent_message_id: z.ZodOptional<z.ZodString>;
114
+ dm_id: z.ZodOptional<z.ZodString>;
115
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
116
+ }, z.core.$strict>;
117
+ from: z.ZodObject<{
118
+ type: z.ZodString;
119
+ id: z.ZodString;
120
+ name: z.ZodOptional<z.ZodString>;
121
+ network_id: z.ZodOptional<z.ZodString>;
122
+ fqid: z.ZodOptional<z.ZodString>;
123
+ credential_bound: z.ZodOptional<z.ZodBoolean>;
124
+ }, z.core.$strict>;
125
+ parts: z.ZodNullable<z.ZodArray<z.ZodObject<{
126
+ kind: z.ZodString;
127
+ text: z.ZodOptional<z.ZodString>;
128
+ media_type: z.ZodOptional<z.ZodString>;
129
+ url: z.ZodOptional<z.ZodString>;
130
+ filename: z.ZodOptional<z.ZodString>;
131
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
+ }, z.core.$strict>>>;
133
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
134
+ created_at: z.ZodString;
135
+ }, z.core.$strict>>;
136
+ room: z.ZodOptional<z.ZodObject<{
137
+ id: z.ZodString;
138
+ network_id: z.ZodOptional<z.ZodString>;
139
+ fqid: z.ZodOptional<z.ZodString>;
140
+ name: z.ZodString;
141
+ members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
142
+ visibility: z.ZodOptional<z.ZodString>;
143
+ write_policy: z.ZodOptional<z.ZodString>;
144
+ federation: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
145
+ none: "none";
146
+ all: "all";
147
+ }>, z.ZodArray<z.ZodString>]>>>;
148
+ access: z.ZodOptional<z.ZodObject<{
149
+ can_read: z.ZodBoolean;
150
+ can_write: z.ZodBoolean;
151
+ reason: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>>;
153
+ created_at: z.ZodString;
154
+ }, z.core.$strict>>;
155
+ thread: z.ZodOptional<z.ZodObject<{
156
+ id: z.ZodString;
157
+ network_id: z.ZodOptional<z.ZodString>;
158
+ fqid: z.ZodOptional<z.ZodString>;
159
+ room_id: z.ZodString;
160
+ parent_message_id: z.ZodOptional<z.ZodString>;
161
+ message_count: z.ZodNumber;
162
+ last_message_at: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strict>>;
164
+ dm: z.ZodOptional<z.ZodObject<{
165
+ id: z.ZodString;
166
+ network_id: z.ZodOptional<z.ZodString>;
167
+ fqid: z.ZodOptional<z.ZodString>;
168
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
169
+ message_count: z.ZodNumber;
170
+ last_message_at: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strict>>;
172
+ pairing: z.ZodOptional<z.ZodObject<{
173
+ id: z.ZodString;
174
+ remote_network_id: z.ZodString;
175
+ remote_network_name: z.ZodOptional<z.ZodString>;
176
+ remote_base_url: z.ZodOptional<z.ZodString>;
177
+ status: z.ZodOptional<z.ZodString>;
178
+ token: z.ZodOptional<z.ZodString>;
179
+ relay: z.ZodOptional<z.ZodObject<{
180
+ url: z.ZodString;
181
+ room: z.ZodOptional<z.ZodString>;
182
+ token: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strict>>;
184
+ diagnostics: z.ZodOptional<z.ZodObject<{
185
+ checked_at: z.ZodOptional<z.ZodString>;
186
+ remote_version: z.ZodOptional<z.ZodString>;
187
+ remote_network_id: z.ZodOptional<z.ZodString>;
188
+ remote_protocols: z.ZodOptional<z.ZodObject<{
189
+ http: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ attach: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ pair: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
+ }, z.core.$strict>>;
193
+ reason: z.ZodOptional<z.ZodString>;
194
+ message: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strict>>;
196
+ }, z.core.$strict>>;
197
+ replay_gap: z.ZodOptional<z.ZodObject<{
198
+ requested_event_id: z.ZodOptional<z.ZodString>;
199
+ oldest_event_id: z.ZodOptional<z.ZodString>;
200
+ newest_event_id: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strict>>;
202
+ created_at: z.ZodString;
203
+ }, z.core.$strict>;
204
+ export declare const moltnetSnapshotSchema: z.ZodObject<{
205
+ rooms: z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
206
+ id: z.ZodString;
207
+ network_id: z.ZodOptional<z.ZodString>;
208
+ fqid: z.ZodOptional<z.ZodString>;
209
+ name: z.ZodString;
210
+ members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
211
+ visibility: z.ZodOptional<z.ZodString>;
212
+ write_policy: z.ZodOptional<z.ZodString>;
213
+ federation: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
214
+ none: "none";
215
+ all: "all";
216
+ }>, z.ZodArray<z.ZodString>]>>>;
217
+ access: z.ZodOptional<z.ZodObject<{
218
+ can_read: z.ZodBoolean;
219
+ can_write: z.ZodBoolean;
220
+ reason: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strict>>;
222
+ created_at: z.ZodString;
223
+ }, z.core.$strict>>>, z.ZodTransform<Record<string, {
224
+ id: string;
225
+ name: string;
226
+ created_at: string;
227
+ network_id?: string | undefined;
228
+ fqid?: string | undefined;
229
+ members?: string[] | null | undefined;
230
+ visibility?: string | undefined;
231
+ write_policy?: string | undefined;
232
+ federation?: string[] | "none" | "all" | null | undefined;
233
+ access?: {
234
+ can_read: boolean;
235
+ can_write: boolean;
236
+ reason?: string | undefined;
237
+ } | undefined;
238
+ }>, Record<string, {
239
+ id: string;
240
+ name: string;
241
+ created_at: string;
242
+ network_id?: string | undefined;
243
+ fqid?: string | undefined;
244
+ members?: string[] | null | undefined;
245
+ visibility?: string | undefined;
246
+ write_policy?: string | undefined;
247
+ federation?: string[] | "none" | "all" | null | undefined;
248
+ access?: {
249
+ can_read: boolean;
250
+ can_write: boolean;
251
+ reason?: string | undefined;
252
+ } | undefined;
253
+ }> | null>>;
254
+ removed_rooms: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string> | null>>>>;
255
+ room_messages: z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
256
+ id: z.ZodString;
257
+ network_id: z.ZodString;
258
+ origin: z.ZodOptional<z.ZodObject<{
259
+ network_id: z.ZodString;
260
+ message_id: z.ZodString;
261
+ received_via: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strict>>;
263
+ target: z.ZodObject<{
264
+ kind: z.ZodEnum<{
265
+ room: "room";
266
+ thread: "thread";
267
+ dm: "dm";
268
+ }>;
269
+ room_id: z.ZodOptional<z.ZodString>;
270
+ thread_id: z.ZodOptional<z.ZodString>;
271
+ parent_message_id: z.ZodOptional<z.ZodString>;
272
+ dm_id: z.ZodOptional<z.ZodString>;
273
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
+ }, z.core.$strict>;
275
+ from: z.ZodObject<{
276
+ type: z.ZodString;
277
+ id: z.ZodString;
278
+ name: z.ZodOptional<z.ZodString>;
279
+ network_id: z.ZodOptional<z.ZodString>;
280
+ fqid: z.ZodOptional<z.ZodString>;
281
+ credential_bound: z.ZodOptional<z.ZodBoolean>;
282
+ }, z.core.$strict>;
283
+ parts: z.ZodNullable<z.ZodArray<z.ZodObject<{
284
+ kind: z.ZodString;
285
+ text: z.ZodOptional<z.ZodString>;
286
+ media_type: z.ZodOptional<z.ZodString>;
287
+ url: z.ZodOptional<z.ZodString>;
288
+ filename: z.ZodOptional<z.ZodString>;
289
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
290
+ }, z.core.$strict>>>;
291
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
292
+ created_at: z.ZodString;
293
+ }, z.core.$strict>>>, z.ZodTransform<{
294
+ id: string;
295
+ network_id: string;
296
+ target: {
297
+ kind: "room" | "thread" | "dm";
298
+ room_id?: string | undefined;
299
+ thread_id?: string | undefined;
300
+ parent_message_id?: string | undefined;
301
+ dm_id?: string | undefined;
302
+ participant_ids?: string[] | undefined;
303
+ };
304
+ from: {
305
+ type: string;
306
+ id: string;
307
+ name?: string | undefined;
308
+ network_id?: string | undefined;
309
+ fqid?: string | undefined;
310
+ credential_bound?: boolean | undefined;
311
+ };
312
+ parts: {
313
+ kind: string;
314
+ text?: string | undefined;
315
+ media_type?: string | undefined;
316
+ url?: string | undefined;
317
+ filename?: string | undefined;
318
+ data?: Record<string, unknown> | undefined;
319
+ }[] | null;
320
+ created_at: string;
321
+ origin?: {
322
+ network_id: string;
323
+ message_id: string;
324
+ received_via?: string | undefined;
325
+ } | undefined;
326
+ mentions?: string[] | null | undefined;
327
+ }[], {
328
+ id: string;
329
+ network_id: string;
330
+ target: {
331
+ kind: "room" | "thread" | "dm";
332
+ room_id?: string | undefined;
333
+ thread_id?: string | undefined;
334
+ parent_message_id?: string | undefined;
335
+ dm_id?: string | undefined;
336
+ participant_ids?: string[] | undefined;
337
+ };
338
+ from: {
339
+ type: string;
340
+ id: string;
341
+ name?: string | undefined;
342
+ network_id?: string | undefined;
343
+ fqid?: string | undefined;
344
+ credential_bound?: boolean | undefined;
345
+ };
346
+ parts: {
347
+ kind: string;
348
+ text?: string | undefined;
349
+ media_type?: string | undefined;
350
+ url?: string | undefined;
351
+ filename?: string | undefined;
352
+ data?: Record<string, unknown> | undefined;
353
+ }[] | null;
354
+ created_at: string;
355
+ origin?: {
356
+ network_id: string;
357
+ message_id: string;
358
+ received_via?: string | undefined;
359
+ } | undefined;
360
+ mentions?: string[] | null | undefined;
361
+ }[] | null>>>>, z.ZodTransform<Record<string, {
362
+ id: string;
363
+ network_id: string;
364
+ target: {
365
+ kind: "room" | "thread" | "dm";
366
+ room_id?: string | undefined;
367
+ thread_id?: string | undefined;
368
+ parent_message_id?: string | undefined;
369
+ dm_id?: string | undefined;
370
+ participant_ids?: string[] | undefined;
371
+ };
372
+ from: {
373
+ type: string;
374
+ id: string;
375
+ name?: string | undefined;
376
+ network_id?: string | undefined;
377
+ fqid?: string | undefined;
378
+ credential_bound?: boolean | undefined;
379
+ };
380
+ parts: {
381
+ kind: string;
382
+ text?: string | undefined;
383
+ media_type?: string | undefined;
384
+ url?: string | undefined;
385
+ filename?: string | undefined;
386
+ data?: Record<string, unknown> | undefined;
387
+ }[] | null;
388
+ created_at: string;
389
+ origin?: {
390
+ network_id: string;
391
+ message_id: string;
392
+ received_via?: string | undefined;
393
+ } | undefined;
394
+ mentions?: string[] | null | undefined;
395
+ }[]>, Record<string, {
396
+ id: string;
397
+ network_id: string;
398
+ target: {
399
+ kind: "room" | "thread" | "dm";
400
+ room_id?: string | undefined;
401
+ thread_id?: string | undefined;
402
+ parent_message_id?: string | undefined;
403
+ dm_id?: string | undefined;
404
+ participant_ids?: string[] | undefined;
405
+ };
406
+ from: {
407
+ type: string;
408
+ id: string;
409
+ name?: string | undefined;
410
+ network_id?: string | undefined;
411
+ fqid?: string | undefined;
412
+ credential_bound?: boolean | undefined;
413
+ };
414
+ parts: {
415
+ kind: string;
416
+ text?: string | undefined;
417
+ media_type?: string | undefined;
418
+ url?: string | undefined;
419
+ filename?: string | undefined;
420
+ data?: Record<string, unknown> | undefined;
421
+ }[] | null;
422
+ created_at: string;
423
+ origin?: {
424
+ network_id: string;
425
+ message_id: string;
426
+ received_via?: string | undefined;
427
+ } | undefined;
428
+ mentions?: string[] | null | undefined;
429
+ }[]> | null>>;
430
+ threads: z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
431
+ id: z.ZodString;
432
+ network_id: z.ZodOptional<z.ZodString>;
433
+ fqid: z.ZodOptional<z.ZodString>;
434
+ room_id: z.ZodString;
435
+ parent_message_id: z.ZodOptional<z.ZodString>;
436
+ message_count: z.ZodNumber;
437
+ last_message_at: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strict>>>, z.ZodTransform<Record<string, {
439
+ id: string;
440
+ room_id: string;
441
+ message_count: number;
442
+ network_id?: string | undefined;
443
+ fqid?: string | undefined;
444
+ parent_message_id?: string | undefined;
445
+ last_message_at?: string | undefined;
446
+ }>, Record<string, {
447
+ id: string;
448
+ room_id: string;
449
+ message_count: number;
450
+ network_id?: string | undefined;
451
+ fqid?: string | undefined;
452
+ parent_message_id?: string | undefined;
453
+ last_message_at?: string | undefined;
454
+ }> | null>>;
455
+ thread_messages: z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
456
+ id: z.ZodString;
457
+ network_id: z.ZodString;
458
+ origin: z.ZodOptional<z.ZodObject<{
459
+ network_id: z.ZodString;
460
+ message_id: z.ZodString;
461
+ received_via: z.ZodOptional<z.ZodString>;
462
+ }, z.core.$strict>>;
463
+ target: z.ZodObject<{
464
+ kind: z.ZodEnum<{
465
+ room: "room";
466
+ thread: "thread";
467
+ dm: "dm";
468
+ }>;
469
+ room_id: z.ZodOptional<z.ZodString>;
470
+ thread_id: z.ZodOptional<z.ZodString>;
471
+ parent_message_id: z.ZodOptional<z.ZodString>;
472
+ dm_id: z.ZodOptional<z.ZodString>;
473
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
474
+ }, z.core.$strict>;
475
+ from: z.ZodObject<{
476
+ type: z.ZodString;
477
+ id: z.ZodString;
478
+ name: z.ZodOptional<z.ZodString>;
479
+ network_id: z.ZodOptional<z.ZodString>;
480
+ fqid: z.ZodOptional<z.ZodString>;
481
+ credential_bound: z.ZodOptional<z.ZodBoolean>;
482
+ }, z.core.$strict>;
483
+ parts: z.ZodNullable<z.ZodArray<z.ZodObject<{
484
+ kind: z.ZodString;
485
+ text: z.ZodOptional<z.ZodString>;
486
+ media_type: z.ZodOptional<z.ZodString>;
487
+ url: z.ZodOptional<z.ZodString>;
488
+ filename: z.ZodOptional<z.ZodString>;
489
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
490
+ }, z.core.$strict>>>;
491
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
492
+ created_at: z.ZodString;
493
+ }, z.core.$strict>>>, z.ZodTransform<{
494
+ id: string;
495
+ network_id: string;
496
+ target: {
497
+ kind: "room" | "thread" | "dm";
498
+ room_id?: string | undefined;
499
+ thread_id?: string | undefined;
500
+ parent_message_id?: string | undefined;
501
+ dm_id?: string | undefined;
502
+ participant_ids?: string[] | undefined;
503
+ };
504
+ from: {
505
+ type: string;
506
+ id: string;
507
+ name?: string | undefined;
508
+ network_id?: string | undefined;
509
+ fqid?: string | undefined;
510
+ credential_bound?: boolean | undefined;
511
+ };
512
+ parts: {
513
+ kind: string;
514
+ text?: string | undefined;
515
+ media_type?: string | undefined;
516
+ url?: string | undefined;
517
+ filename?: string | undefined;
518
+ data?: Record<string, unknown> | undefined;
519
+ }[] | null;
520
+ created_at: string;
521
+ origin?: {
522
+ network_id: string;
523
+ message_id: string;
524
+ received_via?: string | undefined;
525
+ } | undefined;
526
+ mentions?: string[] | null | undefined;
527
+ }[], {
528
+ id: string;
529
+ network_id: string;
530
+ target: {
531
+ kind: "room" | "thread" | "dm";
532
+ room_id?: string | undefined;
533
+ thread_id?: string | undefined;
534
+ parent_message_id?: string | undefined;
535
+ dm_id?: string | undefined;
536
+ participant_ids?: string[] | undefined;
537
+ };
538
+ from: {
539
+ type: string;
540
+ id: string;
541
+ name?: string | undefined;
542
+ network_id?: string | undefined;
543
+ fqid?: string | undefined;
544
+ credential_bound?: boolean | undefined;
545
+ };
546
+ parts: {
547
+ kind: string;
548
+ text?: string | undefined;
549
+ media_type?: string | undefined;
550
+ url?: string | undefined;
551
+ filename?: string | undefined;
552
+ data?: Record<string, unknown> | undefined;
553
+ }[] | null;
554
+ created_at: string;
555
+ origin?: {
556
+ network_id: string;
557
+ message_id: string;
558
+ received_via?: string | undefined;
559
+ } | undefined;
560
+ mentions?: string[] | null | undefined;
561
+ }[] | null>>>>, z.ZodTransform<Record<string, {
562
+ id: string;
563
+ network_id: string;
564
+ target: {
565
+ kind: "room" | "thread" | "dm";
566
+ room_id?: string | undefined;
567
+ thread_id?: string | undefined;
568
+ parent_message_id?: string | undefined;
569
+ dm_id?: string | undefined;
570
+ participant_ids?: string[] | undefined;
571
+ };
572
+ from: {
573
+ type: string;
574
+ id: string;
575
+ name?: string | undefined;
576
+ network_id?: string | undefined;
577
+ fqid?: string | undefined;
578
+ credential_bound?: boolean | undefined;
579
+ };
580
+ parts: {
581
+ kind: string;
582
+ text?: string | undefined;
583
+ media_type?: string | undefined;
584
+ url?: string | undefined;
585
+ filename?: string | undefined;
586
+ data?: Record<string, unknown> | undefined;
587
+ }[] | null;
588
+ created_at: string;
589
+ origin?: {
590
+ network_id: string;
591
+ message_id: string;
592
+ received_via?: string | undefined;
593
+ } | undefined;
594
+ mentions?: string[] | null | undefined;
595
+ }[]>, Record<string, {
596
+ id: string;
597
+ network_id: string;
598
+ target: {
599
+ kind: "room" | "thread" | "dm";
600
+ room_id?: string | undefined;
601
+ thread_id?: string | undefined;
602
+ parent_message_id?: string | undefined;
603
+ dm_id?: string | undefined;
604
+ participant_ids?: string[] | undefined;
605
+ };
606
+ from: {
607
+ type: string;
608
+ id: string;
609
+ name?: string | undefined;
610
+ network_id?: string | undefined;
611
+ fqid?: string | undefined;
612
+ credential_bound?: boolean | undefined;
613
+ };
614
+ parts: {
615
+ kind: string;
616
+ text?: string | undefined;
617
+ media_type?: string | undefined;
618
+ url?: string | undefined;
619
+ filename?: string | undefined;
620
+ data?: Record<string, unknown> | undefined;
621
+ }[] | null;
622
+ created_at: string;
623
+ origin?: {
624
+ network_id: string;
625
+ message_id: string;
626
+ received_via?: string | undefined;
627
+ } | undefined;
628
+ mentions?: string[] | null | undefined;
629
+ }[]> | null>>;
630
+ direct_messages: z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
631
+ id: z.ZodString;
632
+ network_id: z.ZodString;
633
+ origin: z.ZodOptional<z.ZodObject<{
634
+ network_id: z.ZodString;
635
+ message_id: z.ZodString;
636
+ received_via: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strict>>;
638
+ target: z.ZodObject<{
639
+ kind: z.ZodEnum<{
640
+ room: "room";
641
+ thread: "thread";
642
+ dm: "dm";
643
+ }>;
644
+ room_id: z.ZodOptional<z.ZodString>;
645
+ thread_id: z.ZodOptional<z.ZodString>;
646
+ parent_message_id: z.ZodOptional<z.ZodString>;
647
+ dm_id: z.ZodOptional<z.ZodString>;
648
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
649
+ }, z.core.$strict>;
650
+ from: z.ZodObject<{
651
+ type: z.ZodString;
652
+ id: z.ZodString;
653
+ name: z.ZodOptional<z.ZodString>;
654
+ network_id: z.ZodOptional<z.ZodString>;
655
+ fqid: z.ZodOptional<z.ZodString>;
656
+ credential_bound: z.ZodOptional<z.ZodBoolean>;
657
+ }, z.core.$strict>;
658
+ parts: z.ZodNullable<z.ZodArray<z.ZodObject<{
659
+ kind: z.ZodString;
660
+ text: z.ZodOptional<z.ZodString>;
661
+ media_type: z.ZodOptional<z.ZodString>;
662
+ url: z.ZodOptional<z.ZodString>;
663
+ filename: z.ZodOptional<z.ZodString>;
664
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
665
+ }, z.core.$strict>>>;
666
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
667
+ created_at: z.ZodString;
668
+ }, z.core.$strict>>>, z.ZodTransform<{
669
+ id: string;
670
+ network_id: string;
671
+ target: {
672
+ kind: "room" | "thread" | "dm";
673
+ room_id?: string | undefined;
674
+ thread_id?: string | undefined;
675
+ parent_message_id?: string | undefined;
676
+ dm_id?: string | undefined;
677
+ participant_ids?: string[] | undefined;
678
+ };
679
+ from: {
680
+ type: string;
681
+ id: string;
682
+ name?: string | undefined;
683
+ network_id?: string | undefined;
684
+ fqid?: string | undefined;
685
+ credential_bound?: boolean | undefined;
686
+ };
687
+ parts: {
688
+ kind: string;
689
+ text?: string | undefined;
690
+ media_type?: string | undefined;
691
+ url?: string | undefined;
692
+ filename?: string | undefined;
693
+ data?: Record<string, unknown> | undefined;
694
+ }[] | null;
695
+ created_at: string;
696
+ origin?: {
697
+ network_id: string;
698
+ message_id: string;
699
+ received_via?: string | undefined;
700
+ } | undefined;
701
+ mentions?: string[] | null | undefined;
702
+ }[], {
703
+ id: string;
704
+ network_id: string;
705
+ target: {
706
+ kind: "room" | "thread" | "dm";
707
+ room_id?: string | undefined;
708
+ thread_id?: string | undefined;
709
+ parent_message_id?: string | undefined;
710
+ dm_id?: string | undefined;
711
+ participant_ids?: string[] | undefined;
712
+ };
713
+ from: {
714
+ type: string;
715
+ id: string;
716
+ name?: string | undefined;
717
+ network_id?: string | undefined;
718
+ fqid?: string | undefined;
719
+ credential_bound?: boolean | undefined;
720
+ };
721
+ parts: {
722
+ kind: string;
723
+ text?: string | undefined;
724
+ media_type?: string | undefined;
725
+ url?: string | undefined;
726
+ filename?: string | undefined;
727
+ data?: Record<string, unknown> | undefined;
728
+ }[] | null;
729
+ created_at: string;
730
+ origin?: {
731
+ network_id: string;
732
+ message_id: string;
733
+ received_via?: string | undefined;
734
+ } | undefined;
735
+ mentions?: string[] | null | undefined;
736
+ }[] | null>>>>, z.ZodTransform<Record<string, {
737
+ id: string;
738
+ network_id: string;
739
+ target: {
740
+ kind: "room" | "thread" | "dm";
741
+ room_id?: string | undefined;
742
+ thread_id?: string | undefined;
743
+ parent_message_id?: string | undefined;
744
+ dm_id?: string | undefined;
745
+ participant_ids?: string[] | undefined;
746
+ };
747
+ from: {
748
+ type: string;
749
+ id: string;
750
+ name?: string | undefined;
751
+ network_id?: string | undefined;
752
+ fqid?: string | undefined;
753
+ credential_bound?: boolean | undefined;
754
+ };
755
+ parts: {
756
+ kind: string;
757
+ text?: string | undefined;
758
+ media_type?: string | undefined;
759
+ url?: string | undefined;
760
+ filename?: string | undefined;
761
+ data?: Record<string, unknown> | undefined;
762
+ }[] | null;
763
+ created_at: string;
764
+ origin?: {
765
+ network_id: string;
766
+ message_id: string;
767
+ received_via?: string | undefined;
768
+ } | undefined;
769
+ mentions?: string[] | null | undefined;
770
+ }[]>, Record<string, {
771
+ id: string;
772
+ network_id: string;
773
+ target: {
774
+ kind: "room" | "thread" | "dm";
775
+ room_id?: string | undefined;
776
+ thread_id?: string | undefined;
777
+ parent_message_id?: string | undefined;
778
+ dm_id?: string | undefined;
779
+ participant_ids?: string[] | undefined;
780
+ };
781
+ from: {
782
+ type: string;
783
+ id: string;
784
+ name?: string | undefined;
785
+ network_id?: string | undefined;
786
+ fqid?: string | undefined;
787
+ credential_bound?: boolean | undefined;
788
+ };
789
+ parts: {
790
+ kind: string;
791
+ text?: string | undefined;
792
+ media_type?: string | undefined;
793
+ url?: string | undefined;
794
+ filename?: string | undefined;
795
+ data?: Record<string, unknown> | undefined;
796
+ }[] | null;
797
+ created_at: string;
798
+ origin?: {
799
+ network_id: string;
800
+ message_id: string;
801
+ received_via?: string | undefined;
802
+ } | undefined;
803
+ mentions?: string[] | null | undefined;
804
+ }[]> | null>>;
805
+ direct_members: z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{}, z.core.$strict>>>, z.ZodTransform<Record<string, Record<string, never>>, Record<string, Record<string, never>> | null>>>>, z.ZodTransform<Record<string, Record<string, Record<string, never>>>, Record<string, Record<string, Record<string, never>>> | null>>;
806
+ agents: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
807
+ network_id: z.ZodString;
808
+ agent_id: z.ZodString;
809
+ actor_uid: z.ZodString;
810
+ actor_uri: z.ZodString;
811
+ display_name: z.ZodOptional<z.ZodString>;
812
+ credential_key: z.ZodOptional<z.ZodString>;
813
+ created_at: z.ZodOptional<z.ZodString>;
814
+ updated_at: z.ZodOptional<z.ZodString>;
815
+ }, z.core.$strict>>>, z.ZodTransform<Record<string, {
816
+ network_id: string;
817
+ agent_id: string;
818
+ actor_uid: string;
819
+ actor_uri: string;
820
+ display_name?: string | undefined;
821
+ credential_key?: string | undefined;
822
+ created_at?: string | undefined;
823
+ updated_at?: string | undefined;
824
+ }>, Record<string, {
825
+ network_id: string;
826
+ agent_id: string;
827
+ actor_uid: string;
828
+ actor_uri: string;
829
+ display_name?: string | undefined;
830
+ credential_key?: string | undefined;
831
+ created_at?: string | undefined;
832
+ updated_at?: string | undefined;
833
+ }> | null>>>>;
834
+ attachment_delivery_events: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
835
+ id: z.ZodString;
836
+ type: z.ZodString;
837
+ network_id: z.ZodString;
838
+ agent: z.ZodOptional<z.ZodObject<{
839
+ agent_id: z.ZodString;
840
+ network_id: z.ZodOptional<z.ZodString>;
841
+ fqid: z.ZodOptional<z.ZodString>;
842
+ name: z.ZodOptional<z.ZodString>;
843
+ message_id: z.ZodOptional<z.ZodString>;
844
+ reason: z.ZodOptional<z.ZodString>;
845
+ target: z.ZodOptional<z.ZodObject<{
846
+ kind: z.ZodEnum<{
847
+ room: "room";
848
+ thread: "thread";
849
+ dm: "dm";
850
+ }>;
851
+ room_id: z.ZodOptional<z.ZodString>;
852
+ thread_id: z.ZodOptional<z.ZodString>;
853
+ parent_message_id: z.ZodOptional<z.ZodString>;
854
+ dm_id: z.ZodOptional<z.ZodString>;
855
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
856
+ }, z.core.$strict>>;
857
+ error: z.ZodOptional<z.ZodString>;
858
+ attempts: z.ZodOptional<z.ZodNumber>;
859
+ classification: z.ZodOptional<z.ZodString>;
860
+ }, z.core.$strict>>;
861
+ message: z.ZodOptional<z.ZodObject<{
862
+ id: z.ZodString;
863
+ network_id: z.ZodString;
864
+ origin: z.ZodOptional<z.ZodObject<{
865
+ network_id: z.ZodString;
866
+ message_id: z.ZodString;
867
+ received_via: z.ZodOptional<z.ZodString>;
868
+ }, z.core.$strict>>;
869
+ target: z.ZodObject<{
870
+ kind: z.ZodEnum<{
871
+ room: "room";
872
+ thread: "thread";
873
+ dm: "dm";
874
+ }>;
875
+ room_id: z.ZodOptional<z.ZodString>;
876
+ thread_id: z.ZodOptional<z.ZodString>;
877
+ parent_message_id: z.ZodOptional<z.ZodString>;
878
+ dm_id: z.ZodOptional<z.ZodString>;
879
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
880
+ }, z.core.$strict>;
881
+ from: z.ZodObject<{
882
+ type: z.ZodString;
883
+ id: z.ZodString;
884
+ name: z.ZodOptional<z.ZodString>;
885
+ network_id: z.ZodOptional<z.ZodString>;
886
+ fqid: z.ZodOptional<z.ZodString>;
887
+ credential_bound: z.ZodOptional<z.ZodBoolean>;
888
+ }, z.core.$strict>;
889
+ parts: z.ZodNullable<z.ZodArray<z.ZodObject<{
890
+ kind: z.ZodString;
891
+ text: z.ZodOptional<z.ZodString>;
892
+ media_type: z.ZodOptional<z.ZodString>;
893
+ url: z.ZodOptional<z.ZodString>;
894
+ filename: z.ZodOptional<z.ZodString>;
895
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
896
+ }, z.core.$strict>>>;
897
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
898
+ created_at: z.ZodString;
899
+ }, z.core.$strict>>;
900
+ room: z.ZodOptional<z.ZodObject<{
901
+ id: z.ZodString;
902
+ network_id: z.ZodOptional<z.ZodString>;
903
+ fqid: z.ZodOptional<z.ZodString>;
904
+ name: z.ZodString;
905
+ members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
906
+ visibility: z.ZodOptional<z.ZodString>;
907
+ write_policy: z.ZodOptional<z.ZodString>;
908
+ federation: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
909
+ none: "none";
910
+ all: "all";
911
+ }>, z.ZodArray<z.ZodString>]>>>;
912
+ access: z.ZodOptional<z.ZodObject<{
913
+ can_read: z.ZodBoolean;
914
+ can_write: z.ZodBoolean;
915
+ reason: z.ZodOptional<z.ZodString>;
916
+ }, z.core.$strict>>;
917
+ created_at: z.ZodString;
918
+ }, z.core.$strict>>;
919
+ thread: z.ZodOptional<z.ZodObject<{
920
+ id: z.ZodString;
921
+ network_id: z.ZodOptional<z.ZodString>;
922
+ fqid: z.ZodOptional<z.ZodString>;
923
+ room_id: z.ZodString;
924
+ parent_message_id: z.ZodOptional<z.ZodString>;
925
+ message_count: z.ZodNumber;
926
+ last_message_at: z.ZodOptional<z.ZodString>;
927
+ }, z.core.$strict>>;
928
+ dm: z.ZodOptional<z.ZodObject<{
929
+ id: z.ZodString;
930
+ network_id: z.ZodOptional<z.ZodString>;
931
+ fqid: z.ZodOptional<z.ZodString>;
932
+ participant_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
933
+ message_count: z.ZodNumber;
934
+ last_message_at: z.ZodOptional<z.ZodString>;
935
+ }, z.core.$strict>>;
936
+ pairing: z.ZodOptional<z.ZodObject<{
937
+ id: z.ZodString;
938
+ remote_network_id: z.ZodString;
939
+ remote_network_name: z.ZodOptional<z.ZodString>;
940
+ remote_base_url: z.ZodOptional<z.ZodString>;
941
+ status: z.ZodOptional<z.ZodString>;
942
+ token: z.ZodOptional<z.ZodString>;
943
+ relay: z.ZodOptional<z.ZodObject<{
944
+ url: z.ZodString;
945
+ room: z.ZodOptional<z.ZodString>;
946
+ token: z.ZodOptional<z.ZodString>;
947
+ }, z.core.$strict>>;
948
+ diagnostics: z.ZodOptional<z.ZodObject<{
949
+ checked_at: z.ZodOptional<z.ZodString>;
950
+ remote_version: z.ZodOptional<z.ZodString>;
951
+ remote_network_id: z.ZodOptional<z.ZodString>;
952
+ remote_protocols: z.ZodOptional<z.ZodObject<{
953
+ http: z.ZodOptional<z.ZodArray<z.ZodString>>;
954
+ attach: z.ZodOptional<z.ZodArray<z.ZodString>>;
955
+ pair: z.ZodOptional<z.ZodArray<z.ZodString>>;
956
+ }, z.core.$strict>>;
957
+ reason: z.ZodOptional<z.ZodString>;
958
+ message: z.ZodOptional<z.ZodString>;
959
+ }, z.core.$strict>>;
960
+ }, z.core.$strict>>;
961
+ replay_gap: z.ZodOptional<z.ZodObject<{
962
+ requested_event_id: z.ZodOptional<z.ZodString>;
963
+ oldest_event_id: z.ZodOptional<z.ZodString>;
964
+ newest_event_id: z.ZodOptional<z.ZodString>;
965
+ }, z.core.$strict>>;
966
+ created_at: z.ZodString;
967
+ }, z.core.$strict>>>>, z.ZodTransform<{
968
+ id: string;
969
+ type: string;
970
+ network_id: string;
971
+ created_at: string;
972
+ agent?: {
973
+ agent_id: string;
974
+ network_id?: string | undefined;
975
+ fqid?: string | undefined;
976
+ name?: string | undefined;
977
+ message_id?: string | undefined;
978
+ reason?: string | undefined;
979
+ target?: {
980
+ kind: "room" | "thread" | "dm";
981
+ room_id?: string | undefined;
982
+ thread_id?: string | undefined;
983
+ parent_message_id?: string | undefined;
984
+ dm_id?: string | undefined;
985
+ participant_ids?: string[] | undefined;
986
+ } | undefined;
987
+ error?: string | undefined;
988
+ attempts?: number | undefined;
989
+ classification?: string | undefined;
990
+ } | undefined;
991
+ message?: {
992
+ id: string;
993
+ network_id: string;
994
+ target: {
995
+ kind: "room" | "thread" | "dm";
996
+ room_id?: string | undefined;
997
+ thread_id?: string | undefined;
998
+ parent_message_id?: string | undefined;
999
+ dm_id?: string | undefined;
1000
+ participant_ids?: string[] | undefined;
1001
+ };
1002
+ from: {
1003
+ type: string;
1004
+ id: string;
1005
+ name?: string | undefined;
1006
+ network_id?: string | undefined;
1007
+ fqid?: string | undefined;
1008
+ credential_bound?: boolean | undefined;
1009
+ };
1010
+ parts: {
1011
+ kind: string;
1012
+ text?: string | undefined;
1013
+ media_type?: string | undefined;
1014
+ url?: string | undefined;
1015
+ filename?: string | undefined;
1016
+ data?: Record<string, unknown> | undefined;
1017
+ }[] | null;
1018
+ created_at: string;
1019
+ origin?: {
1020
+ network_id: string;
1021
+ message_id: string;
1022
+ received_via?: string | undefined;
1023
+ } | undefined;
1024
+ mentions?: string[] | null | undefined;
1025
+ } | undefined;
1026
+ room?: {
1027
+ id: string;
1028
+ name: string;
1029
+ created_at: string;
1030
+ network_id?: string | undefined;
1031
+ fqid?: string | undefined;
1032
+ members?: string[] | null | undefined;
1033
+ visibility?: string | undefined;
1034
+ write_policy?: string | undefined;
1035
+ federation?: string[] | "none" | "all" | null | undefined;
1036
+ access?: {
1037
+ can_read: boolean;
1038
+ can_write: boolean;
1039
+ reason?: string | undefined;
1040
+ } | undefined;
1041
+ } | undefined;
1042
+ thread?: {
1043
+ id: string;
1044
+ room_id: string;
1045
+ message_count: number;
1046
+ network_id?: string | undefined;
1047
+ fqid?: string | undefined;
1048
+ parent_message_id?: string | undefined;
1049
+ last_message_at?: string | undefined;
1050
+ } | undefined;
1051
+ dm?: {
1052
+ id: string;
1053
+ message_count: number;
1054
+ network_id?: string | undefined;
1055
+ fqid?: string | undefined;
1056
+ participant_ids?: string[] | undefined;
1057
+ last_message_at?: string | undefined;
1058
+ } | undefined;
1059
+ pairing?: {
1060
+ id: string;
1061
+ remote_network_id: string;
1062
+ remote_network_name?: string | undefined;
1063
+ remote_base_url?: string | undefined;
1064
+ status?: string | undefined;
1065
+ token?: string | undefined;
1066
+ relay?: {
1067
+ url: string;
1068
+ room?: string | undefined;
1069
+ token?: string | undefined;
1070
+ } | undefined;
1071
+ diagnostics?: {
1072
+ checked_at?: string | undefined;
1073
+ remote_version?: string | undefined;
1074
+ remote_network_id?: string | undefined;
1075
+ remote_protocols?: {
1076
+ http?: string[] | undefined;
1077
+ attach?: string[] | undefined;
1078
+ pair?: string[] | undefined;
1079
+ } | undefined;
1080
+ reason?: string | undefined;
1081
+ message?: string | undefined;
1082
+ } | undefined;
1083
+ } | undefined;
1084
+ replay_gap?: {
1085
+ requested_event_id?: string | undefined;
1086
+ oldest_event_id?: string | undefined;
1087
+ newest_event_id?: string | undefined;
1088
+ } | undefined;
1089
+ }[], {
1090
+ id: string;
1091
+ type: string;
1092
+ network_id: string;
1093
+ created_at: string;
1094
+ agent?: {
1095
+ agent_id: string;
1096
+ network_id?: string | undefined;
1097
+ fqid?: string | undefined;
1098
+ name?: string | undefined;
1099
+ message_id?: string | undefined;
1100
+ reason?: string | undefined;
1101
+ target?: {
1102
+ kind: "room" | "thread" | "dm";
1103
+ room_id?: string | undefined;
1104
+ thread_id?: string | undefined;
1105
+ parent_message_id?: string | undefined;
1106
+ dm_id?: string | undefined;
1107
+ participant_ids?: string[] | undefined;
1108
+ } | undefined;
1109
+ error?: string | undefined;
1110
+ attempts?: number | undefined;
1111
+ classification?: string | undefined;
1112
+ } | undefined;
1113
+ message?: {
1114
+ id: string;
1115
+ network_id: string;
1116
+ target: {
1117
+ kind: "room" | "thread" | "dm";
1118
+ room_id?: string | undefined;
1119
+ thread_id?: string | undefined;
1120
+ parent_message_id?: string | undefined;
1121
+ dm_id?: string | undefined;
1122
+ participant_ids?: string[] | undefined;
1123
+ };
1124
+ from: {
1125
+ type: string;
1126
+ id: string;
1127
+ name?: string | undefined;
1128
+ network_id?: string | undefined;
1129
+ fqid?: string | undefined;
1130
+ credential_bound?: boolean | undefined;
1131
+ };
1132
+ parts: {
1133
+ kind: string;
1134
+ text?: string | undefined;
1135
+ media_type?: string | undefined;
1136
+ url?: string | undefined;
1137
+ filename?: string | undefined;
1138
+ data?: Record<string, unknown> | undefined;
1139
+ }[] | null;
1140
+ created_at: string;
1141
+ origin?: {
1142
+ network_id: string;
1143
+ message_id: string;
1144
+ received_via?: string | undefined;
1145
+ } | undefined;
1146
+ mentions?: string[] | null | undefined;
1147
+ } | undefined;
1148
+ room?: {
1149
+ id: string;
1150
+ name: string;
1151
+ created_at: string;
1152
+ network_id?: string | undefined;
1153
+ fqid?: string | undefined;
1154
+ members?: string[] | null | undefined;
1155
+ visibility?: string | undefined;
1156
+ write_policy?: string | undefined;
1157
+ federation?: string[] | "none" | "all" | null | undefined;
1158
+ access?: {
1159
+ can_read: boolean;
1160
+ can_write: boolean;
1161
+ reason?: string | undefined;
1162
+ } | undefined;
1163
+ } | undefined;
1164
+ thread?: {
1165
+ id: string;
1166
+ room_id: string;
1167
+ message_count: number;
1168
+ network_id?: string | undefined;
1169
+ fqid?: string | undefined;
1170
+ parent_message_id?: string | undefined;
1171
+ last_message_at?: string | undefined;
1172
+ } | undefined;
1173
+ dm?: {
1174
+ id: string;
1175
+ message_count: number;
1176
+ network_id?: string | undefined;
1177
+ fqid?: string | undefined;
1178
+ participant_ids?: string[] | undefined;
1179
+ last_message_at?: string | undefined;
1180
+ } | undefined;
1181
+ pairing?: {
1182
+ id: string;
1183
+ remote_network_id: string;
1184
+ remote_network_name?: string | undefined;
1185
+ remote_base_url?: string | undefined;
1186
+ status?: string | undefined;
1187
+ token?: string | undefined;
1188
+ relay?: {
1189
+ url: string;
1190
+ room?: string | undefined;
1191
+ token?: string | undefined;
1192
+ } | undefined;
1193
+ diagnostics?: {
1194
+ checked_at?: string | undefined;
1195
+ remote_version?: string | undefined;
1196
+ remote_network_id?: string | undefined;
1197
+ remote_protocols?: {
1198
+ http?: string[] | undefined;
1199
+ attach?: string[] | undefined;
1200
+ pair?: string[] | undefined;
1201
+ } | undefined;
1202
+ reason?: string | undefined;
1203
+ message?: string | undefined;
1204
+ } | undefined;
1205
+ } | undefined;
1206
+ replay_gap?: {
1207
+ requested_event_id?: string | undefined;
1208
+ oldest_event_id?: string | undefined;
1209
+ newest_event_id?: string | undefined;
1210
+ } | undefined;
1211
+ }[] | null | undefined>>;
1212
+ attachment_delivery_cursors: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>, z.ZodTransform<Record<string, number>, Record<string, number> | null>>>>;
1213
+ }, z.core.$strict>;
1214
+ export type MoltnetSnapshot = z.infer<typeof moltnetSnapshotSchema>;
1215
+ export type MoltnetMessage = z.infer<typeof moltnetMessageSchema>;
1216
+ export type MoltnetEvent = z.infer<typeof moltnetEventSchema>;
1217
+ export interface MoltnetFinding {
1218
+ class: "moltnet-message" | "moltnet-event" | "moltnet-room";
1219
+ path: string;
1220
+ detail: string;
1221
+ }
1222
+ export interface MoltnetInspection {
1223
+ messages: number;
1224
+ events: number;
1225
+ findings: MoltnetFinding[];
1226
+ }