@namzu/sdk 49.0.0 → 50.0.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 (737) hide show
  1. package/CHANGELOG.md +507 -0
  2. package/README.md +137 -125
  3. package/dist/agents/QueryAgent.d.ts.map +1 -1
  4. package/dist/agents/QueryAgent.js +1 -0
  5. package/dist/agents/QueryAgent.js.map +1 -1
  6. package/dist/agents/examples/SupervisorAgent.d.ts.map +1 -1
  7. package/dist/agents/examples/SupervisorAgent.js +1 -0
  8. package/dist/agents/examples/SupervisorAgent.js.map +1 -1
  9. package/dist/agents/runAgent.d.ts +2 -0
  10. package/dist/agents/runAgent.d.ts.map +1 -1
  11. package/dist/agents/runAgent.js +1 -0
  12. package/dist/agents/runAgent.js.map +1 -1
  13. package/dist/authorization/shell-lexer.d.ts.map +1 -1
  14. package/dist/authorization/shell-lexer.js +16 -1
  15. package/dist/authorization/shell-lexer.js.map +1 -1
  16. package/dist/bridge/acp/permission.d.ts +8 -2
  17. package/dist/bridge/acp/permission.d.ts.map +1 -1
  18. package/dist/bridge/acp/permission.js +1 -0
  19. package/dist/bridge/acp/permission.js.map +1 -1
  20. package/dist/bridge/acp/server.d.ts +25 -1
  21. package/dist/bridge/acp/server.d.ts.map +1 -1
  22. package/dist/bridge/acp/server.js +205 -21
  23. package/dist/bridge/acp/server.js.map +1 -1
  24. package/dist/bridge/acp/tasks.d.ts +5 -0
  25. package/dist/bridge/acp/tasks.d.ts.map +1 -0
  26. package/dist/bridge/acp/tasks.js +19 -0
  27. package/dist/bridge/acp/tasks.js.map +1 -0
  28. package/dist/bridge/acp/update.d.ts.map +1 -1
  29. package/dist/bridge/acp/update.js +148 -13
  30. package/dist/bridge/acp/update.js.map +1 -1
  31. package/dist/config/runtime.d.ts +31 -31
  32. package/dist/connector/mcp/adapter.d.ts.map +1 -1
  33. package/dist/connector/mcp/adapter.js +11 -4
  34. package/dist/connector/mcp/adapter.js.map +1 -1
  35. package/dist/connector/mcp/client.d.ts.map +1 -1
  36. package/dist/connector/mcp/client.js +6 -3
  37. package/dist/connector/mcp/client.js.map +1 -1
  38. package/dist/constants/acp/index.d.ts +3 -0
  39. package/dist/constants/acp/index.d.ts.map +1 -1
  40. package/dist/constants/acp/index.js +3 -0
  41. package/dist/constants/acp/index.js.map +1 -1
  42. package/dist/contracts/a2a.d.ts +80 -80
  43. package/dist/contracts/schemas.d.ts +2 -2
  44. package/dist/contracts/session/schemas.d.ts +10 -10
  45. package/dist/manager/agent/lifecycle.d.ts +11 -0
  46. package/dist/manager/agent/lifecycle.d.ts.map +1 -1
  47. package/dist/manager/agent/lifecycle.js +178 -3
  48. package/dist/manager/agent/lifecycle.js.map +1 -1
  49. package/dist/manager/plan/lifecycle.d.ts +7 -8
  50. package/dist/manager/plan/lifecycle.d.ts.map +1 -1
  51. package/dist/manager/plan/lifecycle.js +7 -8
  52. package/dist/manager/plan/lifecycle.js.map +1 -1
  53. package/dist/manager/resident/consumption.d.ts +8 -8
  54. package/dist/manager/resident/learning-cycle.d.ts +2 -2
  55. package/dist/manager/resident/learning-observation.d.ts +12 -12
  56. package/dist/manager/resident/learning.d.ts +82 -82
  57. package/dist/manager/resident/outbox.d.ts +8 -8
  58. package/dist/manager/resident/proposal.d.ts +2 -2
  59. package/dist/manager/resident/store.d.ts +10 -10
  60. package/dist/manager/session/attribution.d.ts +1 -0
  61. package/dist/manager/session/attribution.d.ts.map +1 -1
  62. package/dist/manager/session/attribution.js +9 -1
  63. package/dist/manager/session/attribution.js.map +1 -1
  64. package/dist/manager/session/streamed-message-identity.d.ts +6 -0
  65. package/dist/manager/session/streamed-message-identity.d.ts.map +1 -0
  66. package/dist/manager/session/streamed-message-identity.js +14 -0
  67. package/dist/manager/session/streamed-message-identity.js.map +1 -0
  68. package/dist/manager/session/turn-recorder.d.ts.map +1 -1
  69. package/dist/manager/session/turn-recorder.js +4 -3
  70. package/dist/manager/session/turn-recorder.js.map +1 -1
  71. package/dist/pals/activity/causality.d.ts +23 -0
  72. package/dist/pals/activity/causality.d.ts.map +1 -0
  73. package/dist/pals/activity/causality.js +205 -0
  74. package/dist/pals/activity/causality.js.map +1 -0
  75. package/dist/pals/activity/projection.d.ts +5 -0
  76. package/dist/pals/activity/projection.d.ts.map +1 -0
  77. package/dist/pals/activity/projection.js +79 -0
  78. package/dist/pals/activity/projection.js.map +1 -0
  79. package/dist/pals/activity/source.d.ts +16 -0
  80. package/dist/pals/activity/source.d.ts.map +1 -0
  81. package/dist/pals/activity/source.js +235 -0
  82. package/dist/pals/activity/source.js.map +1 -0
  83. package/dist/pals/activity/subscription-policy.d.ts +38 -0
  84. package/dist/pals/activity/subscription-policy.d.ts.map +1 -0
  85. package/dist/pals/activity/subscription-policy.js +183 -0
  86. package/dist/pals/activity/subscription-policy.js.map +1 -0
  87. package/dist/pals/activity/subscription-schema.d.ts +353 -0
  88. package/dist/pals/activity/subscription-schema.d.ts.map +1 -0
  89. package/dist/pals/activity/subscription-schema.js +24 -0
  90. package/dist/pals/activity/subscription-schema.js.map +1 -0
  91. package/dist/pals/activity/subscription-store.d.ts +25 -0
  92. package/dist/pals/activity/subscription-store.d.ts.map +1 -0
  93. package/dist/pals/activity/subscription-store.js +152 -0
  94. package/dist/pals/activity/subscription-store.js.map +1 -0
  95. package/dist/pals/activity/subscription-types.d.ts +42 -0
  96. package/dist/pals/activity/subscription-types.d.ts.map +1 -0
  97. package/dist/pals/activity/subscription-types.js +2 -0
  98. package/dist/pals/activity/subscription-types.js.map +1 -0
  99. package/dist/pals/activity/subscriptions.d.ts +32 -0
  100. package/dist/pals/activity/subscriptions.d.ts.map +1 -0
  101. package/dist/pals/activity/subscriptions.js +151 -0
  102. package/dist/pals/activity/subscriptions.js.map +1 -0
  103. package/dist/pals/activity/types.d.ts +77 -0
  104. package/dist/pals/activity/types.d.ts.map +1 -0
  105. package/dist/pals/activity/types.js +2 -0
  106. package/dist/pals/activity/types.js.map +1 -0
  107. package/dist/pals/channels/ingress.d.ts +9 -0
  108. package/dist/pals/channels/ingress.d.ts.map +1 -0
  109. package/dist/pals/channels/ingress.js +131 -0
  110. package/dist/pals/channels/ingress.js.map +1 -0
  111. package/dist/pals/channels/routes.d.ts +20 -0
  112. package/dist/pals/channels/routes.d.ts.map +1 -0
  113. package/dist/pals/channels/routes.js +111 -0
  114. package/dist/pals/channels/routes.js.map +1 -0
  115. package/dist/pals/channels/routing.d.ts +37 -0
  116. package/dist/pals/channels/routing.d.ts.map +1 -0
  117. package/dist/pals/channels/routing.js +150 -0
  118. package/dist/pals/channels/routing.js.map +1 -0
  119. package/dist/pals/channels/schema.d.ts +234 -0
  120. package/dist/pals/channels/schema.d.ts.map +1 -0
  121. package/dist/pals/channels/schema.js +94 -0
  122. package/dist/pals/channels/schema.js.map +1 -0
  123. package/dist/pals/channels/types.d.ts +115 -0
  124. package/dist/pals/channels/types.d.ts.map +1 -0
  125. package/dist/pals/channels/types.js +2 -0
  126. package/dist/pals/channels/types.js.map +1 -0
  127. package/dist/pals/communication/broker.d.ts +8 -0
  128. package/dist/pals/communication/broker.d.ts.map +1 -0
  129. package/dist/pals/communication/broker.js +121 -0
  130. package/dist/pals/communication/broker.js.map +1 -0
  131. package/dist/pals/communication/dispatch.d.ts +4 -0
  132. package/dist/pals/communication/dispatch.d.ts.map +1 -0
  133. package/dist/pals/communication/dispatch.js +57 -0
  134. package/dist/pals/communication/dispatch.js.map +1 -0
  135. package/dist/pals/communication/inbound.d.ts +9 -0
  136. package/dist/pals/communication/inbound.d.ts.map +1 -0
  137. package/dist/pals/communication/inbound.js +155 -0
  138. package/dist/pals/communication/inbound.js.map +1 -0
  139. package/dist/pals/communication/ingress-dispatch.d.ts +5 -0
  140. package/dist/pals/communication/ingress-dispatch.d.ts.map +1 -0
  141. package/dist/pals/communication/ingress-dispatch.js +51 -0
  142. package/dist/pals/communication/ingress-dispatch.js.map +1 -0
  143. package/dist/pals/communication/ingress-inbound.d.ts +9 -0
  144. package/dist/pals/communication/ingress-inbound.d.ts.map +1 -0
  145. package/dist/pals/communication/ingress-inbound.js +222 -0
  146. package/dist/pals/communication/ingress-inbound.js.map +1 -0
  147. package/dist/pals/communication/ingress-schema.d.ts +7829 -0
  148. package/dist/pals/communication/ingress-schema.d.ts.map +1 -0
  149. package/dist/pals/communication/ingress-schema.js +479 -0
  150. package/dist/pals/communication/ingress-schema.js.map +1 -0
  151. package/dist/pals/communication/ingress-types.d.ts +187 -0
  152. package/dist/pals/communication/ingress-types.d.ts.map +1 -0
  153. package/dist/pals/communication/ingress-types.js +73 -0
  154. package/dist/pals/communication/ingress-types.js.map +1 -0
  155. package/dist/pals/communication/operator.d.ts +75 -0
  156. package/dist/pals/communication/operator.d.ts.map +1 -0
  157. package/dist/pals/communication/operator.js +217 -0
  158. package/dist/pals/communication/operator.js.map +1 -0
  159. package/dist/pals/communication/policy.d.ts +41 -0
  160. package/dist/pals/communication/policy.d.ts.map +1 -0
  161. package/dist/pals/communication/policy.js +138 -0
  162. package/dist/pals/communication/policy.js.map +1 -0
  163. package/dist/pals/communication/schema.d.ts +2000 -0
  164. package/dist/pals/communication/schema.d.ts.map +1 -0
  165. package/dist/pals/communication/schema.js +170 -0
  166. package/dist/pals/communication/schema.js.map +1 -0
  167. package/dist/pals/communication/store.d.ts +61 -0
  168. package/dist/pals/communication/store.d.ts.map +1 -0
  169. package/dist/pals/communication/store.js +450 -0
  170. package/dist/pals/communication/store.js.map +1 -0
  171. package/dist/pals/communication/tools.d.ts +23 -0
  172. package/dist/pals/communication/tools.d.ts.map +1 -0
  173. package/dist/pals/communication/tools.js +107 -0
  174. package/dist/pals/communication/tools.js.map +1 -0
  175. package/dist/pals/communication/types.d.ts +168 -0
  176. package/dist/pals/communication/types.d.ts.map +1 -0
  177. package/dist/pals/communication/types.js +24 -0
  178. package/dist/pals/communication/types.js.map +1 -0
  179. package/dist/pals/communication/verify.d.ts +22 -0
  180. package/dist/pals/communication/verify.d.ts.map +1 -0
  181. package/dist/pals/communication/verify.js +142 -0
  182. package/dist/pals/communication/verify.js.map +1 -0
  183. package/dist/pals/lifecycle.d.ts +37 -0
  184. package/dist/pals/lifecycle.d.ts.map +1 -0
  185. package/dist/pals/lifecycle.js +22 -0
  186. package/dist/pals/lifecycle.js.map +1 -0
  187. package/dist/pals/prompt.d.ts +30 -0
  188. package/dist/pals/prompt.d.ts.map +1 -0
  189. package/dist/pals/prompt.js +65 -0
  190. package/dist/pals/prompt.js.map +1 -0
  191. package/dist/pals/reference-images.d.ts +44 -0
  192. package/dist/pals/reference-images.d.ts.map +1 -0
  193. package/dist/pals/reference-images.js +248 -0
  194. package/dist/pals/reference-images.js.map +1 -0
  195. package/dist/pals/runtime.d.ts +46 -0
  196. package/dist/pals/runtime.d.ts.map +1 -0
  197. package/dist/pals/runtime.js +624 -0
  198. package/dist/pals/runtime.js.map +1 -0
  199. package/dist/pals/store.d.ts +26 -0
  200. package/dist/pals/store.d.ts.map +1 -0
  201. package/dist/pals/store.js +334 -0
  202. package/dist/pals/store.js.map +1 -0
  203. package/dist/pals/types.d.ts +145 -0
  204. package/dist/pals/types.d.ts.map +1 -0
  205. package/dist/pals/types.js +2 -0
  206. package/dist/pals/types.js.map +1 -0
  207. package/dist/peers/envelope.js +1 -1
  208. package/dist/peers/envelope.js.map +1 -1
  209. package/dist/peers/protocol.d.ts +83 -83
  210. package/dist/peers/record.d.ts +10 -10
  211. package/dist/plugin/shell-hook.d.ts.map +1 -1
  212. package/dist/plugin/shell-hook.js +7 -2
  213. package/dist/plugin/shell-hook.js.map +1 -1
  214. package/dist/process/kill-tree.d.ts.map +1 -1
  215. package/dist/process/kill-tree.js +9 -1
  216. package/dist/process/kill-tree.js.map +1 -1
  217. package/dist/provider/errors.d.ts +19 -0
  218. package/dist/provider/errors.d.ts.map +1 -1
  219. package/dist/provider/errors.js +123 -2
  220. package/dist/provider/errors.js.map +1 -1
  221. package/dist/public-runtime.d.ts +41 -13
  222. package/dist/public-runtime.d.ts.map +1 -1
  223. package/dist/public-runtime.js +35 -7
  224. package/dist/public-runtime.js.map +1 -1
  225. package/dist/public-tools.d.ts +8 -3
  226. package/dist/public-tools.d.ts.map +1 -1
  227. package/dist/public-tools.js +8 -3
  228. package/dist/public-tools.js.map +1 -1
  229. package/dist/public-types.d.ts +27 -7
  230. package/dist/public-types.d.ts.map +1 -1
  231. package/dist/registry/tool/presentation.d.ts +1 -0
  232. package/dist/registry/tool/presentation.d.ts.map +1 -1
  233. package/dist/registry/tool/presentation.js +9 -7
  234. package/dist/registry/tool/presentation.js.map +1 -1
  235. package/dist/runtime/harness-session/index.d.ts +5 -0
  236. package/dist/runtime/harness-session/index.d.ts.map +1 -0
  237. package/dist/runtime/harness-session/index.js +928 -0
  238. package/dist/runtime/harness-session/index.js.map +1 -0
  239. package/dist/runtime/harness-session/journal.d.ts +37 -0
  240. package/dist/runtime/harness-session/journal.d.ts.map +1 -0
  241. package/dist/runtime/harness-session/journal.js +177 -0
  242. package/dist/runtime/harness-session/journal.js.map +1 -0
  243. package/dist/runtime/harness-session/saved-view.d.ts +8 -0
  244. package/dist/runtime/harness-session/saved-view.d.ts.map +1 -0
  245. package/dist/runtime/harness-session/saved-view.js +112 -0
  246. package/dist/runtime/harness-session/saved-view.js.map +1 -0
  247. package/dist/runtime/jobs/awaited-jobs.d.ts +2 -1
  248. package/dist/runtime/jobs/awaited-jobs.d.ts.map +1 -1
  249. package/dist/runtime/jobs/awaited-jobs.js +2 -1
  250. package/dist/runtime/jobs/awaited-jobs.js.map +1 -1
  251. package/dist/runtime/jobs/registry.d.ts +56 -1
  252. package/dist/runtime/jobs/registry.d.ts.map +1 -1
  253. package/dist/runtime/jobs/registry.js +351 -34
  254. package/dist/runtime/jobs/registry.js.map +1 -1
  255. package/dist/runtime/query/abandon-turn.d.ts +12 -1
  256. package/dist/runtime/query/abandon-turn.d.ts.map +1 -1
  257. package/dist/runtime/query/abandon-turn.js +3 -1
  258. package/dist/runtime/query/abandon-turn.js.map +1 -1
  259. package/dist/runtime/query/checkpoint.d.ts +4 -0
  260. package/dist/runtime/query/checkpoint.d.ts.map +1 -1
  261. package/dist/runtime/query/checkpoint.js +10 -0
  262. package/dist/runtime/query/checkpoint.js.map +1 -1
  263. package/dist/runtime/query/durable-inbound.d.ts +5 -0
  264. package/dist/runtime/query/durable-inbound.d.ts.map +1 -0
  265. package/dist/runtime/query/durable-inbound.js +89 -0
  266. package/dist/runtime/query/durable-inbound.js.map +1 -0
  267. package/dist/runtime/query/events.d.ts +4 -0
  268. package/dist/runtime/query/events.d.ts.map +1 -1
  269. package/dist/runtime/query/events.js +22 -5
  270. package/dist/runtime/query/events.js.map +1 -1
  271. package/dist/runtime/query/executor/tool-call-admission.d.ts +5 -1
  272. package/dist/runtime/query/executor/tool-call-admission.d.ts.map +1 -1
  273. package/dist/runtime/query/executor/tool-call-admission.js +85 -13
  274. package/dist/runtime/query/executor/tool-call-admission.js.map +1 -1
  275. package/dist/runtime/query/executor.d.ts +41 -18
  276. package/dist/runtime/query/executor.d.ts.map +1 -1
  277. package/dist/runtime/query/executor.js +227 -114
  278. package/dist/runtime/query/executor.js.map +1 -1
  279. package/dist/runtime/query/index.d.ts +3 -0
  280. package/dist/runtime/query/index.d.ts.map +1 -1
  281. package/dist/runtime/query/index.js +21 -4
  282. package/dist/runtime/query/index.js.map +1 -1
  283. package/dist/runtime/query/iteration/index.d.ts +18 -6
  284. package/dist/runtime/query/iteration/index.d.ts.map +1 -1
  285. package/dist/runtime/query/iteration/index.js +144 -67
  286. package/dist/runtime/query/iteration/index.js.map +1 -1
  287. package/dist/runtime/query/iteration/outstanding-work.d.ts +9 -5
  288. package/dist/runtime/query/iteration/outstanding-work.d.ts.map +1 -1
  289. package/dist/runtime/query/iteration/outstanding-work.js +61 -6
  290. package/dist/runtime/query/iteration/outstanding-work.js.map +1 -1
  291. package/dist/runtime/query/iteration/phases/context.d.ts +4 -0
  292. package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
  293. package/dist/runtime/query/iteration/phases/context.js.map +1 -1
  294. package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
  295. package/dist/runtime/query/iteration/phases/tool-review.js +99 -16
  296. package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
  297. package/dist/runtime/query/observation-context.d.ts +2 -2
  298. package/dist/runtime/query/observation-context.d.ts.map +1 -1
  299. package/dist/runtime/query/observation-context.js +20 -13
  300. package/dist/runtime/query/observation-context.js.map +1 -1
  301. package/dist/runtime/query/prepare-turn.js +2 -2
  302. package/dist/runtime/query/prepare-turn.js.map +1 -1
  303. package/dist/runtime/query/prompt-cache.d.ts +1 -0
  304. package/dist/runtime/query/prompt-cache.d.ts.map +1 -1
  305. package/dist/runtime/query/prompt-cache.js +2 -0
  306. package/dist/runtime/query/prompt-cache.js.map +1 -1
  307. package/dist/runtime/query/prompt.d.ts +2 -0
  308. package/dist/runtime/query/prompt.d.ts.map +1 -1
  309. package/dist/runtime/query/prompt.js +23 -1
  310. package/dist/runtime/query/prompt.js.map +1 -1
  311. package/dist/runtime/query/repeat-call.d.ts +12 -3
  312. package/dist/runtime/query/repeat-call.d.ts.map +1 -1
  313. package/dist/runtime/query/repeat-call.js +33 -10
  314. package/dist/runtime/query/repeat-call.js.map +1 -1
  315. package/dist/runtime/query/resume-pending.d.ts +5 -6
  316. package/dist/runtime/query/resume-pending.d.ts.map +1 -1
  317. package/dist/runtime/query/resume-pending.js +30 -3
  318. package/dist/runtime/query/resume-pending.js.map +1 -1
  319. package/dist/runtime/query/resume-session.js +1 -1
  320. package/dist/runtime/query/resume-session.js.map +1 -1
  321. package/dist/runtime/query/review-policy.d.ts +8 -1
  322. package/dist/runtime/query/review-policy.d.ts.map +1 -1
  323. package/dist/runtime/query/review-policy.js +6 -0
  324. package/dist/runtime/query/review-policy.js.map +1 -1
  325. package/dist/runtime/query/saved-presentation.d.ts +13 -0
  326. package/dist/runtime/query/saved-presentation.d.ts.map +1 -0
  327. package/dist/runtime/query/saved-presentation.js +63 -0
  328. package/dist/runtime/query/saved-presentation.js.map +1 -0
  329. package/dist/runtime/query/steering.d.ts +6 -9
  330. package/dist/runtime/query/steering.d.ts.map +1 -1
  331. package/dist/runtime/query/steering.js.map +1 -1
  332. package/dist/runtime/query/tool-executions.d.ts +7 -3
  333. package/dist/runtime/query/tool-executions.d.ts.map +1 -1
  334. package/dist/runtime/query/tool-executions.js +89 -9
  335. package/dist/runtime/query/tool-executions.js.map +1 -1
  336. package/dist/runtime/query/tooling.d.ts +3 -1
  337. package/dist/runtime/query/tooling.d.ts.map +1 -1
  338. package/dist/runtime/query/tooling.js +3 -0
  339. package/dist/runtime/query/tooling.js.map +1 -1
  340. package/dist/scheduler/completion-inbox.d.ts +25 -1
  341. package/dist/scheduler/completion-inbox.d.ts.map +1 -1
  342. package/dist/scheduler/completion-inbox.js +102 -8
  343. package/dist/scheduler/completion-inbox.js.map +1 -1
  344. package/dist/scheduler/delegating.d.ts.map +1 -1
  345. package/dist/scheduler/delegating.js +5 -0
  346. package/dist/scheduler/delegating.js.map +1 -1
  347. package/dist/scheduler/local.d.ts.map +1 -1
  348. package/dist/scheduler/local.js +2 -0
  349. package/dist/scheduler/local.js.map +1 -1
  350. package/dist/session/summary/materialize.d.ts +10 -6
  351. package/dist/session/summary/materialize.d.ts.map +1 -1
  352. package/dist/session/summary/materialize.js +41 -8
  353. package/dist/session/summary/materialize.js.map +1 -1
  354. package/dist/store/budget/ledger.d.ts +9 -0
  355. package/dist/store/budget/ledger.d.ts.map +1 -1
  356. package/dist/store/budget/ledger.js +58 -6
  357. package/dist/store/budget/ledger.js.map +1 -1
  358. package/dist/store/evidence/index-page.d.ts +12 -12
  359. package/dist/store/evidence/source-text.d.ts +4 -4
  360. package/dist/store/session/disk.d.ts +9 -4
  361. package/dist/store/session/disk.d.ts.map +1 -1
  362. package/dist/store/session/disk.js +57 -11
  363. package/dist/store/session/disk.js.map +1 -1
  364. package/dist/store/session/memory.d.ts +5 -3
  365. package/dist/store/session/memory.d.ts.map +1 -1
  366. package/dist/store/session/memory.js +24 -7
  367. package/dist/store/session/memory.js.map +1 -1
  368. package/dist/store/session-log/core.d.ts +26 -6
  369. package/dist/store/session-log/core.d.ts.map +1 -1
  370. package/dist/store/session-log/core.js +61 -8
  371. package/dist/store/session-log/core.js.map +1 -1
  372. package/dist/store/session-log/disk.d.ts +2 -2
  373. package/dist/store/session-log/disk.d.ts.map +1 -1
  374. package/dist/store/session-log/disk.js +1 -0
  375. package/dist/store/session-log/disk.js.map +1 -1
  376. package/dist/store/session-log/fold.d.ts +7 -0
  377. package/dist/store/session-log/fold.d.ts.map +1 -1
  378. package/dist/store/session-log/fold.js +21 -0
  379. package/dist/store/session-log/fold.js.map +1 -1
  380. package/dist/store/session-log/index.d.ts +5 -3
  381. package/dist/store/session-log/index.d.ts.map +1 -1
  382. package/dist/store/session-log/index.js +3 -1
  383. package/dist/store/session-log/index.js.map +1 -1
  384. package/dist/store/session-log/memory.d.ts +1 -1
  385. package/dist/store/session-log/memory.d.ts.map +1 -1
  386. package/dist/store/session-log/memory.js +1 -0
  387. package/dist/store/session-log/memory.js.map +1 -1
  388. package/dist/store/session-log/spill.d.ts +10 -3
  389. package/dist/store/session-log/spill.d.ts.map +1 -1
  390. package/dist/store/session-log/spill.js +70 -5
  391. package/dist/store/session-log/spill.js.map +1 -1
  392. package/dist/store/session-log/structured-result.d.ts +21 -0
  393. package/dist/store/session-log/structured-result.d.ts.map +1 -0
  394. package/dist/store/session-log/structured-result.js +67 -0
  395. package/dist/store/session-log/structured-result.js.map +1 -0
  396. package/dist/store/task/disk.d.ts +11 -0
  397. package/dist/store/task/disk.d.ts.map +1 -1
  398. package/dist/store/task/disk.js +41 -2
  399. package/dist/store/task/disk.js.map +1 -1
  400. package/dist/store/task/memory.d.ts.map +1 -1
  401. package/dist/store/task/memory.js +15 -3
  402. package/dist/store/task/memory.js.map +1 -1
  403. package/dist/tools/admit-facts.d.ts +13 -0
  404. package/dist/tools/admit-facts.d.ts.map +1 -0
  405. package/dist/tools/admit-facts.js +142 -0
  406. package/dist/tools/admit-facts.js.map +1 -0
  407. package/dist/tools/builtins/bash.d.ts +4 -1
  408. package/dist/tools/builtins/bash.d.ts.map +1 -1
  409. package/dist/tools/builtins/bash.js +108 -22
  410. package/dist/tools/builtins/bash.js.map +1 -1
  411. package/dist/tools/builtins/browser.d.ts +10 -10
  412. package/dist/tools/builtins/computer-use.d.ts +90 -90
  413. package/dist/tools/builtins/edit.d.ts +17 -0
  414. package/dist/tools/builtins/edit.d.ts.map +1 -1
  415. package/dist/tools/builtins/edit.js +34 -0
  416. package/dist/tools/builtins/edit.js.map +1 -1
  417. package/dist/tools/builtins/file-write-result.d.ts.map +1 -1
  418. package/dist/tools/builtins/file-write-result.js +13 -0
  419. package/dist/tools/builtins/file-write-result.js.map +1 -1
  420. package/dist/tools/builtins/glob.d.ts.map +1 -1
  421. package/dist/tools/builtins/glob.js +12 -0
  422. package/dist/tools/builtins/glob.js.map +1 -1
  423. package/dist/tools/builtins/grep.d.ts.map +1 -1
  424. package/dist/tools/builtins/grep.js +14 -0
  425. package/dist/tools/builtins/grep.js.map +1 -1
  426. package/dist/tools/builtins/index.d.ts +2 -0
  427. package/dist/tools/builtins/index.d.ts.map +1 -1
  428. package/dist/tools/builtins/index.js +1 -0
  429. package/dist/tools/builtins/index.js.map +1 -1
  430. package/dist/tools/builtins/job.d.ts.map +1 -1
  431. package/dist/tools/builtins/job.js +4 -1
  432. package/dist/tools/builtins/job.js.map +1 -1
  433. package/dist/tools/builtins/lsp.d.ts +2 -2
  434. package/dist/tools/builtins/read-file.d.ts.map +1 -1
  435. package/dist/tools/builtins/read-file.js +49 -0
  436. package/dist/tools/builtins/read-file.js.map +1 -1
  437. package/dist/tools/builtins/view-image.d.ts +24 -0
  438. package/dist/tools/builtins/view-image.d.ts.map +1 -0
  439. package/dist/tools/builtins/view-image.js +385 -0
  440. package/dist/tools/builtins/view-image.js.map +1 -0
  441. package/dist/tools/builtins/wait-for-job-bounds.d.ts +2 -0
  442. package/dist/tools/builtins/wait-for-job-bounds.d.ts.map +1 -1
  443. package/dist/tools/builtins/wait-for-job-bounds.js +1 -0
  444. package/dist/tools/builtins/wait-for-job-bounds.js.map +1 -1
  445. package/dist/tools/builtins/wait-for-job.d.ts +2 -0
  446. package/dist/tools/builtins/wait-for-job.d.ts.map +1 -1
  447. package/dist/tools/builtins/wait-for-job.js +104 -6
  448. package/dist/tools/builtins/wait-for-job.js.map +1 -1
  449. package/dist/tools/builtins/write-file.d.ts.map +1 -1
  450. package/dist/tools/builtins/write-file.js +1 -0
  451. package/dist/tools/builtins/write-file.js.map +1 -1
  452. package/dist/tools/command-shell.d.ts +37 -2
  453. package/dist/tools/command-shell.d.ts.map +1 -1
  454. package/dist/tools/command-shell.js +100 -3
  455. package/dist/tools/command-shell.js.map +1 -1
  456. package/dist/tools/coordinator/agent.d.ts +9 -19
  457. package/dist/tools/coordinator/agent.d.ts.map +1 -1
  458. package/dist/tools/coordinator/agent.js.map +1 -1
  459. package/dist/tools/coordinator/index.d.ts.map +1 -1
  460. package/dist/tools/coordinator/index.js +127 -67
  461. package/dist/tools/coordinator/index.js.map +1 -1
  462. package/dist/tools/coordinator/wait-with-idle-bound.d.ts +2 -0
  463. package/dist/tools/coordinator/wait-with-idle-bound.d.ts.map +1 -1
  464. package/dist/tools/coordinator/wait-with-idle-bound.js +1 -1
  465. package/dist/tools/coordinator/wait-with-idle-bound.js.map +1 -1
  466. package/dist/tools/defineTool.d.ts.map +1 -1
  467. package/dist/tools/defineTool.js +4 -0
  468. package/dist/tools/defineTool.js.map +1 -1
  469. package/dist/tools/failure-facts.d.ts +8 -0
  470. package/dist/tools/failure-facts.d.ts.map +1 -0
  471. package/dist/tools/failure-facts.js +24 -0
  472. package/dist/tools/failure-facts.js.map +1 -0
  473. package/dist/tools/host-output.d.ts +24 -0
  474. package/dist/tools/host-output.d.ts.map +1 -0
  475. package/dist/tools/host-output.js +117 -0
  476. package/dist/tools/host-output.js.map +1 -0
  477. package/dist/tools/oem-code-pages.d.ts +8 -0
  478. package/dist/tools/oem-code-pages.d.ts.map +1 -0
  479. package/dist/tools/oem-code-pages.js +23 -0
  480. package/dist/tools/oem-code-pages.js.map +1 -0
  481. package/dist/tools/schedules/schedule-tool.d.ts.map +1 -1
  482. package/dist/tools/schedules/schedule-tool.js +35 -6
  483. package/dist/tools/schedules/schedule-tool.js.map +1 -1
  484. package/dist/tools/schedules/types.d.ts +23 -3
  485. package/dist/tools/schedules/types.d.ts.map +1 -1
  486. package/dist/tools/task/list.d.ts.map +1 -1
  487. package/dist/tools/task/list.js +14 -6
  488. package/dist/tools/task/list.js.map +1 -1
  489. package/dist/tools/task/present.d.ts.map +1 -1
  490. package/dist/tools/task/present.js +26 -6
  491. package/dist/tools/task/present.js.map +1 -1
  492. package/dist/tools/task/update.d.ts.map +1 -1
  493. package/dist/tools/task/update.js +12 -5
  494. package/dist/tools/task/update.js.map +1 -1
  495. package/dist/tools/text-window.d.ts +19 -0
  496. package/dist/tools/text-window.d.ts.map +1 -0
  497. package/dist/tools/text-window.js +83 -0
  498. package/dist/tools/text-window.js.map +1 -0
  499. package/dist/toolsets/manager.d.ts +11 -0
  500. package/dist/toolsets/manager.d.ts.map +1 -1
  501. package/dist/toolsets/manager.js +45 -1
  502. package/dist/toolsets/manager.js.map +1 -1
  503. package/dist/types/acp/index.d.ts +137 -1
  504. package/dist/types/acp/index.d.ts.map +1 -1
  505. package/dist/types/agent/base.d.ts +3 -0
  506. package/dist/types/agent/base.d.ts.map +1 -1
  507. package/dist/types/agent/manager.d.ts +8 -23
  508. package/dist/types/agent/manager.d.ts.map +1 -1
  509. package/dist/types/agent/scheduler.d.ts +10 -1
  510. package/dist/types/agent/scheduler.d.ts.map +1 -1
  511. package/dist/types/agent/task.d.ts +4 -0
  512. package/dist/types/agent/task.d.ts.map +1 -1
  513. package/dist/types/authorization/index.d.ts +30 -30
  514. package/dist/types/connector/mcp.d.ts +7 -0
  515. package/dist/types/connector/mcp.d.ts.map +1 -1
  516. package/dist/types/errors/catalog.d.ts.map +1 -1
  517. package/dist/types/errors/catalog.js +4 -2
  518. package/dist/types/errors/catalog.js.map +1 -1
  519. package/dist/types/harness/schema.d.ts +354 -0
  520. package/dist/types/harness/schema.d.ts.map +1 -0
  521. package/dist/types/harness/schema.js +203 -0
  522. package/dist/types/harness/schema.js.map +1 -0
  523. package/dist/types/harness/session.d.ts +278 -0
  524. package/dist/types/harness/session.d.ts.map +1 -0
  525. package/dist/types/harness/session.js +2 -0
  526. package/dist/types/harness/session.js.map +1 -0
  527. package/dist/types/hitl/index.d.ts +12 -0
  528. package/dist/types/hitl/index.d.ts.map +1 -1
  529. package/dist/types/hitl/index.js.map +1 -1
  530. package/dist/types/job/index.d.ts +47 -0
  531. package/dist/types/job/index.d.ts.map +1 -0
  532. package/dist/types/job/index.js +2 -0
  533. package/dist/types/job/index.js.map +1 -0
  534. package/dist/types/message/inbound-delivery.d.ts +44 -0
  535. package/dist/types/message/inbound-delivery.d.ts.map +1 -0
  536. package/dist/types/message/inbound-delivery.js +14 -0
  537. package/dist/types/message/inbound-delivery.js.map +1 -0
  538. package/dist/types/message/index.d.ts +4 -1
  539. package/dist/types/message/index.d.ts.map +1 -1
  540. package/dist/types/message/index.js +5 -1
  541. package/dist/types/message/index.js.map +1 -1
  542. package/dist/types/plugin/index.d.ts +6 -6
  543. package/dist/types/sandbox/index.d.ts +39 -2
  544. package/dist/types/sandbox/index.d.ts.map +1 -1
  545. package/dist/types/sandbox/index.js.map +1 -1
  546. package/dist/types/session/checkpoint.d.ts +24 -17
  547. package/dist/types/session/checkpoint.d.ts.map +1 -1
  548. package/dist/types/session/checkpoint.js +1 -0
  549. package/dist/types/session/checkpoint.js.map +1 -1
  550. package/dist/types/session/events.d.ts +23 -1
  551. package/dist/types/session/events.d.ts.map +1 -1
  552. package/dist/types/session/events.js.map +1 -1
  553. package/dist/types/session/records.d.ts +1514 -565
  554. package/dist/types/session/records.d.ts.map +1 -1
  555. package/dist/types/session/records.js +89 -1
  556. package/dist/types/session/records.js.map +1 -1
  557. package/dist/types/session/step.d.ts +2 -0
  558. package/dist/types/session/step.d.ts.map +1 -1
  559. package/dist/types/session/step.js.map +1 -1
  560. package/dist/types/session/store.d.ts +19 -10
  561. package/dist/types/session/store.d.ts.map +1 -1
  562. package/dist/types/session/tool-execution.d.ts +6 -0
  563. package/dist/types/session/tool-execution.d.ts.map +1 -1
  564. package/dist/types/structured-output/index.d.ts +12 -2
  565. package/dist/types/structured-output/index.d.ts.map +1 -1
  566. package/dist/types/summary/ref.d.ts +3 -1
  567. package/dist/types/summary/ref.d.ts.map +1 -1
  568. package/dist/types/tool/index.d.ts +32 -4
  569. package/dist/types/tool/index.d.ts.map +1 -1
  570. package/dist/types/tool/index.js.map +1 -1
  571. package/dist/types/tool/presentation.d.ts +106 -0
  572. package/dist/types/tool/presentation.d.ts.map +1 -1
  573. package/dist/utils/json-snapshot.d.ts +6 -2
  574. package/dist/utils/json-snapshot.d.ts.map +1 -1
  575. package/dist/utils/json-snapshot.js +19 -9
  576. package/dist/utils/json-snapshot.js.map +1 -1
  577. package/dist/utils/structured-result-json.d.ts +5 -0
  578. package/dist/utils/structured-result-json.d.ts.map +1 -0
  579. package/dist/utils/structured-result-json.js +10 -0
  580. package/dist/utils/structured-result-json.js.map +1 -0
  581. package/package.json +1 -1
  582. package/src/agents/QueryAgent.ts +1 -0
  583. package/src/agents/examples/SupervisorAgent.ts +1 -0
  584. package/src/agents/runAgent.ts +3 -0
  585. package/src/authorization/shell-lexer.ts +16 -1
  586. package/src/bridge/acp/permission.ts +17 -3
  587. package/src/bridge/acp/server.ts +271 -25
  588. package/src/bridge/acp/tasks.ts +23 -0
  589. package/src/bridge/acp/update.ts +167 -13
  590. package/src/connector/mcp/adapter.ts +16 -4
  591. package/src/connector/mcp/client.ts +6 -2
  592. package/src/constants/acp/index.ts +4 -0
  593. package/src/manager/agent/lifecycle.ts +230 -3
  594. package/src/manager/plan/lifecycle.ts +11 -9
  595. package/src/manager/session/attribution.ts +12 -2
  596. package/src/manager/session/streamed-message-identity.ts +21 -0
  597. package/src/manager/session/turn-recorder.ts +4 -3
  598. package/src/pals/activity/causality.ts +261 -0
  599. package/src/pals/activity/projection.ts +89 -0
  600. package/src/pals/activity/source.ts +240 -0
  601. package/src/pals/activity/subscription-policy.ts +230 -0
  602. package/src/pals/activity/subscription-schema.ts +27 -0
  603. package/src/pals/activity/subscription-store.ts +172 -0
  604. package/src/pals/activity/subscription-types.ts +48 -0
  605. package/src/pals/activity/subscriptions.ts +209 -0
  606. package/src/pals/activity/types.ts +108 -0
  607. package/src/pals/channels/ingress.ts +153 -0
  608. package/src/pals/channels/routes.ts +118 -0
  609. package/src/pals/channels/routing.ts +197 -0
  610. package/src/pals/channels/schema.ts +108 -0
  611. package/src/pals/channels/types.ts +156 -0
  612. package/src/pals/communication/broker.ts +131 -0
  613. package/src/pals/communication/dispatch.ts +66 -0
  614. package/src/pals/communication/inbound.ts +193 -0
  615. package/src/pals/communication/ingress-dispatch.ts +63 -0
  616. package/src/pals/communication/ingress-inbound.ts +269 -0
  617. package/src/pals/communication/ingress-schema.ts +526 -0
  618. package/src/pals/communication/ingress-types.ts +336 -0
  619. package/src/pals/communication/operator.ts +315 -0
  620. package/src/pals/communication/policy.ts +174 -0
  621. package/src/pals/communication/schema.ts +173 -0
  622. package/src/pals/communication/store.ts +577 -0
  623. package/src/pals/communication/tools.ts +139 -0
  624. package/src/pals/communication/types.ts +227 -0
  625. package/src/pals/communication/verify.ts +220 -0
  626. package/src/pals/lifecycle.ts +54 -0
  627. package/src/pals/prompt.ts +101 -0
  628. package/src/pals/reference-images.ts +322 -0
  629. package/src/pals/runtime.ts +670 -0
  630. package/src/pals/store.ts +369 -0
  631. package/src/pals/types.ts +157 -0
  632. package/src/peers/envelope.ts +1 -1
  633. package/src/plugin/shell-hook.ts +8 -2
  634. package/src/process/kill-tree.ts +10 -1
  635. package/src/provider/errors.ts +135 -2
  636. package/src/public-runtime.ts +117 -12
  637. package/src/public-tools.ts +13 -1
  638. package/src/public-types.ts +69 -7
  639. package/src/registry/tool/presentation.ts +9 -4
  640. package/src/runtime/harness-session/index.ts +1125 -0
  641. package/src/runtime/harness-session/journal.ts +209 -0
  642. package/src/runtime/harness-session/saved-view.ts +122 -0
  643. package/src/runtime/jobs/awaited-jobs.ts +2 -1
  644. package/src/runtime/jobs/registry.ts +397 -41
  645. package/src/runtime/query/abandon-turn.ts +18 -2
  646. package/src/runtime/query/checkpoint.ts +11 -0
  647. package/src/runtime/query/durable-inbound.ts +101 -0
  648. package/src/runtime/query/events.ts +22 -5
  649. package/src/runtime/query/executor/tool-call-admission.ts +125 -32
  650. package/src/runtime/query/executor.ts +316 -130
  651. package/src/runtime/query/index.ts +24 -4
  652. package/src/runtime/query/iteration/index.ts +218 -104
  653. package/src/runtime/query/iteration/outstanding-work.ts +55 -7
  654. package/src/runtime/query/iteration/phases/context.ts +4 -0
  655. package/src/runtime/query/iteration/phases/tool-review.ts +118 -21
  656. package/src/runtime/query/observation-context.ts +22 -16
  657. package/src/runtime/query/prepare-turn.ts +2 -2
  658. package/src/runtime/query/prompt-cache.ts +3 -0
  659. package/src/runtime/query/prompt.ts +32 -1
  660. package/src/runtime/query/repeat-call.ts +40 -10
  661. package/src/runtime/query/resume-pending.ts +60 -7
  662. package/src/runtime/query/resume-session.ts +1 -1
  663. package/src/runtime/query/review-policy.ts +23 -2
  664. package/src/runtime/query/saved-presentation.ts +70 -0
  665. package/src/runtime/query/steering.ts +6 -9
  666. package/src/runtime/query/tool-executions.ts +108 -9
  667. package/src/runtime/query/tooling.ts +6 -1
  668. package/src/scheduler/completion-inbox.ts +108 -7
  669. package/src/scheduler/delegating.ts +5 -0
  670. package/src/scheduler/local.ts +2 -0
  671. package/src/session/summary/materialize.ts +51 -9
  672. package/src/store/budget/ledger.ts +60 -5
  673. package/src/store/session/disk.ts +77 -10
  674. package/src/store/session/memory.ts +32 -7
  675. package/src/store/session-log/core.ts +118 -11
  676. package/src/store/session-log/disk.ts +9 -2
  677. package/src/store/session-log/fold.ts +22 -0
  678. package/src/store/session-log/index.ts +5 -0
  679. package/src/store/session-log/memory.ts +2 -1
  680. package/src/store/session-log/spill.ts +89 -6
  681. package/src/store/session-log/structured-result.ts +96 -0
  682. package/src/store/task/disk.ts +46 -2
  683. package/src/store/task/memory.ts +13 -3
  684. package/src/tools/admit-facts.ts +145 -0
  685. package/src/tools/builtins/bash.ts +132 -24
  686. package/src/tools/builtins/edit.ts +42 -0
  687. package/src/tools/builtins/file-write-result.ts +14 -0
  688. package/src/tools/builtins/glob.ts +12 -0
  689. package/src/tools/builtins/grep.ts +14 -0
  690. package/src/tools/builtins/index.ts +2 -0
  691. package/src/tools/builtins/job.ts +4 -1
  692. package/src/tools/builtins/read-file.ts +57 -0
  693. package/src/tools/builtins/view-image.ts +409 -0
  694. package/src/tools/builtins/wait-for-job-bounds.ts +3 -0
  695. package/src/tools/builtins/wait-for-job.ts +141 -32
  696. package/src/tools/builtins/write-file.ts +4 -2
  697. package/src/tools/command-shell.ts +132 -5
  698. package/src/tools/coordinator/agent.ts +9 -19
  699. package/src/tools/coordinator/index.ts +150 -75
  700. package/src/tools/coordinator/wait-with-idle-bound.ts +3 -1
  701. package/src/tools/defineTool.ts +4 -0
  702. package/src/tools/failure-facts.ts +24 -0
  703. package/src/tools/host-output.ts +136 -0
  704. package/src/tools/oem-code-pages.ts +22 -0
  705. package/src/tools/schedules/schedule-tool.ts +38 -5
  706. package/src/tools/schedules/types.ts +23 -3
  707. package/src/tools/task/list.ts +15 -7
  708. package/src/tools/task/present.ts +37 -7
  709. package/src/tools/task/update.ts +12 -5
  710. package/src/tools/text-window.ts +87 -0
  711. package/src/toolsets/manager.ts +58 -1
  712. package/src/types/acp/index.ts +150 -4
  713. package/src/types/agent/base.ts +3 -0
  714. package/src/types/agent/manager.ts +8 -23
  715. package/src/types/agent/scheduler.ts +10 -1
  716. package/src/types/agent/task.ts +4 -0
  717. package/src/types/connector/mcp.ts +7 -0
  718. package/src/types/errors/catalog.ts +4 -2
  719. package/src/types/harness/schema.ts +203 -0
  720. package/src/types/harness/session.ts +306 -0
  721. package/src/types/hitl/index.ts +17 -1
  722. package/src/types/job/index.ts +42 -0
  723. package/src/types/message/inbound-delivery.ts +63 -0
  724. package/src/types/message/index.ts +8 -1
  725. package/src/types/sandbox/index.ts +46 -0
  726. package/src/types/session/checkpoint.ts +4 -1
  727. package/src/types/session/events.ts +23 -1
  728. package/src/types/session/records.ts +114 -2
  729. package/src/types/session/step.ts +2 -0
  730. package/src/types/session/store.ts +23 -9
  731. package/src/types/session/tool-execution.ts +6 -0
  732. package/src/types/structured-output/index.ts +13 -2
  733. package/src/types/summary/ref.ts +3 -1
  734. package/src/types/tool/index.ts +39 -5
  735. package/src/types/tool/presentation.ts +121 -0
  736. package/src/utils/json-snapshot.ts +26 -9
  737. package/src/utils/structured-result-json.ts +10 -0
@@ -0,0 +1,2000 @@
1
+ import { z } from 'zod';
2
+ import type { MessageId, SessionId, TenantId, TurnId } from '../../types/ids/index.js';
3
+ import type { PalAddress, PalMessageIntent, PalMessageSenderContext, PalRouteKey } from './types.js';
4
+ export declare const label: z.ZodEffects<z.ZodString, string, string>;
5
+ export declare const addressSchema: z.ZodObject<{
6
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
7
+ palId: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
10
+ palId: string;
11
+ }, {
12
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
13
+ palId: string;
14
+ }>;
15
+ export declare const routeKeySchema: z.ZodEffects<z.ZodObject<{
16
+ v: z.ZodLiteral<1>;
17
+ kind: z.ZodLiteral<"pal">;
18
+ sender: z.ZodObject<{
19
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
20
+ palId: z.ZodString;
21
+ }, "strict", z.ZodTypeAny, {
22
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
23
+ palId: string;
24
+ }, {
25
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
26
+ palId: string;
27
+ }>;
28
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
29
+ recipient: z.ZodObject<{
30
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
31
+ palId: z.ZodString;
32
+ }, "strict", z.ZodTypeAny, {
33
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
34
+ palId: string;
35
+ }, {
36
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
37
+ palId: string;
38
+ }>;
39
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ v: 1;
42
+ kind: "pal";
43
+ recipient: {
44
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
45
+ palId: string;
46
+ };
47
+ sender: {
48
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
49
+ palId: string;
50
+ };
51
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
52
+ dialogKey: string;
53
+ }, {
54
+ v: 1;
55
+ kind: "pal";
56
+ recipient: {
57
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
58
+ palId: string;
59
+ };
60
+ sender: {
61
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
62
+ palId: string;
63
+ };
64
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
65
+ dialogKey: string;
66
+ }>, {
67
+ v: 1;
68
+ kind: "pal";
69
+ recipient: {
70
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
71
+ palId: string;
72
+ };
73
+ sender: {
74
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
75
+ palId: string;
76
+ };
77
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
78
+ dialogKey: string;
79
+ }, {
80
+ v: 1;
81
+ kind: "pal";
82
+ recipient: {
83
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
84
+ palId: string;
85
+ };
86
+ sender: {
87
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
88
+ palId: string;
89
+ };
90
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
91
+ dialogKey: string;
92
+ }>;
93
+ export declare const sourceSchema: z.ZodObject<{
94
+ address: z.ZodObject<{
95
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
96
+ palId: z.ZodString;
97
+ }, "strict", z.ZodTypeAny, {
98
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
99
+ palId: string;
100
+ }, {
101
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
102
+ palId: string;
103
+ }>;
104
+ conversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
105
+ profileRevision: z.ZodNumber;
106
+ }, "strict", z.ZodTypeAny, {
107
+ address: {
108
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
109
+ palId: string;
110
+ };
111
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
112
+ profileRevision: number;
113
+ }, {
114
+ address: {
115
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
116
+ palId: string;
117
+ };
118
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
119
+ profileRevision: number;
120
+ }>;
121
+ export declare const sendRequestSchema: z.ZodObject<{
122
+ operationId: z.ZodEffects<z.ZodString, string, string>;
123
+ recipient: z.ZodObject<{
124
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
125
+ palId: z.ZodString;
126
+ }, "strict", z.ZodTypeAny, {
127
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
128
+ palId: string;
129
+ }, {
130
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
131
+ palId: string;
132
+ }>;
133
+ body: z.ZodEffects<z.ZodString, string, string>;
134
+ dialogKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
135
+ replyTo: z.ZodOptional<z.ZodString>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ operationId: string;
138
+ body: string;
139
+ recipient: {
140
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
141
+ palId: string;
142
+ };
143
+ replyTo?: string | undefined;
144
+ dialogKey?: string | undefined;
145
+ }, {
146
+ operationId: string;
147
+ body: string;
148
+ recipient: {
149
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
150
+ palId: string;
151
+ };
152
+ replyTo?: string | undefined;
153
+ dialogKey?: string | undefined;
154
+ }>;
155
+ export declare const intentSchema: z.ZodObject<{
156
+ id: z.ZodString;
157
+ digest: z.ZodString;
158
+ operationId: z.ZodEffects<z.ZodString, string, string>;
159
+ source: z.ZodObject<{
160
+ address: z.ZodObject<{
161
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
162
+ palId: z.ZodString;
163
+ }, "strict", z.ZodTypeAny, {
164
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
165
+ palId: string;
166
+ }, {
167
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
168
+ palId: string;
169
+ }>;
170
+ conversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
171
+ profileRevision: z.ZodNumber;
172
+ }, "strict", z.ZodTypeAny, {
173
+ address: {
174
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
175
+ palId: string;
176
+ };
177
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
178
+ profileRevision: number;
179
+ }, {
180
+ address: {
181
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
182
+ palId: string;
183
+ };
184
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
185
+ profileRevision: number;
186
+ }>;
187
+ recipient: z.ZodObject<{
188
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
189
+ palId: z.ZodString;
190
+ }, "strict", z.ZodTypeAny, {
191
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
192
+ palId: string;
193
+ }, {
194
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
195
+ palId: string;
196
+ }>;
197
+ routeKey: z.ZodEffects<z.ZodObject<{
198
+ v: z.ZodLiteral<1>;
199
+ kind: z.ZodLiteral<"pal">;
200
+ sender: z.ZodObject<{
201
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
202
+ palId: z.ZodString;
203
+ }, "strict", z.ZodTypeAny, {
204
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
205
+ palId: string;
206
+ }, {
207
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
208
+ palId: string;
209
+ }>;
210
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
211
+ recipient: z.ZodObject<{
212
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
213
+ palId: z.ZodString;
214
+ }, "strict", z.ZodTypeAny, {
215
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
216
+ palId: string;
217
+ }, {
218
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
219
+ palId: string;
220
+ }>;
221
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
222
+ }, "strict", z.ZodTypeAny, {
223
+ v: 1;
224
+ kind: "pal";
225
+ recipient: {
226
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
227
+ palId: string;
228
+ };
229
+ sender: {
230
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
231
+ palId: string;
232
+ };
233
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
234
+ dialogKey: string;
235
+ }, {
236
+ v: 1;
237
+ kind: "pal";
238
+ recipient: {
239
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
240
+ palId: string;
241
+ };
242
+ sender: {
243
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
244
+ palId: string;
245
+ };
246
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
247
+ dialogKey: string;
248
+ }>, {
249
+ v: 1;
250
+ kind: "pal";
251
+ recipient: {
252
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
253
+ palId: string;
254
+ };
255
+ sender: {
256
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
257
+ palId: string;
258
+ };
259
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
260
+ dialogKey: string;
261
+ }, {
262
+ v: 1;
263
+ kind: "pal";
264
+ recipient: {
265
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
266
+ palId: string;
267
+ };
268
+ sender: {
269
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
270
+ palId: string;
271
+ };
272
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
273
+ dialogKey: string;
274
+ }>;
275
+ body: z.ZodEffects<z.ZodString, string, string>;
276
+ replyTo: z.ZodNullable<z.ZodString>;
277
+ grant: z.ZodObject<{
278
+ id: z.ZodEffects<z.ZodString, string, string>;
279
+ revision: z.ZodEffects<z.ZodString, string, string>;
280
+ }, "strict", z.ZodTypeAny, {
281
+ id: string;
282
+ revision: string;
283
+ }, {
284
+ id: string;
285
+ revision: string;
286
+ }>;
287
+ createdAt: z.ZodNumber;
288
+ }, "strict", z.ZodTypeAny, {
289
+ id: string;
290
+ operationId: string;
291
+ digest: string;
292
+ createdAt: number;
293
+ source: {
294
+ address: {
295
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
296
+ palId: string;
297
+ };
298
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
299
+ profileRevision: number;
300
+ };
301
+ body: string;
302
+ grant: {
303
+ id: string;
304
+ revision: string;
305
+ };
306
+ recipient: {
307
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
308
+ palId: string;
309
+ };
310
+ routeKey: {
311
+ v: 1;
312
+ kind: "pal";
313
+ recipient: {
314
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
315
+ palId: string;
316
+ };
317
+ sender: {
318
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
319
+ palId: string;
320
+ };
321
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
322
+ dialogKey: string;
323
+ };
324
+ replyTo: string | null;
325
+ }, {
326
+ id: string;
327
+ operationId: string;
328
+ digest: string;
329
+ createdAt: number;
330
+ source: {
331
+ address: {
332
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
333
+ palId: string;
334
+ };
335
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
336
+ profileRevision: number;
337
+ };
338
+ body: string;
339
+ grant: {
340
+ id: string;
341
+ revision: string;
342
+ };
343
+ recipient: {
344
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
345
+ palId: string;
346
+ };
347
+ routeKey: {
348
+ v: 1;
349
+ kind: "pal";
350
+ recipient: {
351
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
352
+ palId: string;
353
+ };
354
+ sender: {
355
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
356
+ palId: string;
357
+ };
358
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
359
+ dialogKey: string;
360
+ };
361
+ replyTo: string | null;
362
+ }>;
363
+ export declare const operationReservationSchema: z.ZodObject<{
364
+ revision: z.ZodLiteral<1>;
365
+ intent: z.ZodObject<{
366
+ id: z.ZodString;
367
+ digest: z.ZodString;
368
+ operationId: z.ZodEffects<z.ZodString, string, string>;
369
+ source: z.ZodObject<{
370
+ address: z.ZodObject<{
371
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
372
+ palId: z.ZodString;
373
+ }, "strict", z.ZodTypeAny, {
374
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
375
+ palId: string;
376
+ }, {
377
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
378
+ palId: string;
379
+ }>;
380
+ conversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
381
+ profileRevision: z.ZodNumber;
382
+ }, "strict", z.ZodTypeAny, {
383
+ address: {
384
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
385
+ palId: string;
386
+ };
387
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
388
+ profileRevision: number;
389
+ }, {
390
+ address: {
391
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
392
+ palId: string;
393
+ };
394
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
395
+ profileRevision: number;
396
+ }>;
397
+ recipient: z.ZodObject<{
398
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
399
+ palId: z.ZodString;
400
+ }, "strict", z.ZodTypeAny, {
401
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
402
+ palId: string;
403
+ }, {
404
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
405
+ palId: string;
406
+ }>;
407
+ routeKey: z.ZodEffects<z.ZodObject<{
408
+ v: z.ZodLiteral<1>;
409
+ kind: z.ZodLiteral<"pal">;
410
+ sender: z.ZodObject<{
411
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
412
+ palId: z.ZodString;
413
+ }, "strict", z.ZodTypeAny, {
414
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
415
+ palId: string;
416
+ }, {
417
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
418
+ palId: string;
419
+ }>;
420
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
421
+ recipient: z.ZodObject<{
422
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
423
+ palId: z.ZodString;
424
+ }, "strict", z.ZodTypeAny, {
425
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
426
+ palId: string;
427
+ }, {
428
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
429
+ palId: string;
430
+ }>;
431
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
432
+ }, "strict", z.ZodTypeAny, {
433
+ v: 1;
434
+ kind: "pal";
435
+ recipient: {
436
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
437
+ palId: string;
438
+ };
439
+ sender: {
440
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
441
+ palId: string;
442
+ };
443
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
444
+ dialogKey: string;
445
+ }, {
446
+ v: 1;
447
+ kind: "pal";
448
+ recipient: {
449
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
450
+ palId: string;
451
+ };
452
+ sender: {
453
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
454
+ palId: string;
455
+ };
456
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
457
+ dialogKey: string;
458
+ }>, {
459
+ v: 1;
460
+ kind: "pal";
461
+ recipient: {
462
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
463
+ palId: string;
464
+ };
465
+ sender: {
466
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
467
+ palId: string;
468
+ };
469
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
470
+ dialogKey: string;
471
+ }, {
472
+ v: 1;
473
+ kind: "pal";
474
+ recipient: {
475
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
476
+ palId: string;
477
+ };
478
+ sender: {
479
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
480
+ palId: string;
481
+ };
482
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
483
+ dialogKey: string;
484
+ }>;
485
+ body: z.ZodEffects<z.ZodString, string, string>;
486
+ replyTo: z.ZodNullable<z.ZodString>;
487
+ grant: z.ZodObject<{
488
+ id: z.ZodEffects<z.ZodString, string, string>;
489
+ revision: z.ZodEffects<z.ZodString, string, string>;
490
+ }, "strict", z.ZodTypeAny, {
491
+ id: string;
492
+ revision: string;
493
+ }, {
494
+ id: string;
495
+ revision: string;
496
+ }>;
497
+ createdAt: z.ZodNumber;
498
+ }, "strict", z.ZodTypeAny, {
499
+ id: string;
500
+ operationId: string;
501
+ digest: string;
502
+ createdAt: number;
503
+ source: {
504
+ address: {
505
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
506
+ palId: string;
507
+ };
508
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
509
+ profileRevision: number;
510
+ };
511
+ body: string;
512
+ grant: {
513
+ id: string;
514
+ revision: string;
515
+ };
516
+ recipient: {
517
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
518
+ palId: string;
519
+ };
520
+ routeKey: {
521
+ v: 1;
522
+ kind: "pal";
523
+ recipient: {
524
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
525
+ palId: string;
526
+ };
527
+ sender: {
528
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
529
+ palId: string;
530
+ };
531
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
532
+ dialogKey: string;
533
+ };
534
+ replyTo: string | null;
535
+ }, {
536
+ id: string;
537
+ operationId: string;
538
+ digest: string;
539
+ createdAt: number;
540
+ source: {
541
+ address: {
542
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
543
+ palId: string;
544
+ };
545
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
546
+ profileRevision: number;
547
+ };
548
+ body: string;
549
+ grant: {
550
+ id: string;
551
+ revision: string;
552
+ };
553
+ recipient: {
554
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
555
+ palId: string;
556
+ };
557
+ routeKey: {
558
+ v: 1;
559
+ kind: "pal";
560
+ recipient: {
561
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
562
+ palId: string;
563
+ };
564
+ sender: {
565
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
566
+ palId: string;
567
+ };
568
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
569
+ dialogKey: string;
570
+ };
571
+ replyTo: string | null;
572
+ }>;
573
+ recipientRevision: z.ZodNumber;
574
+ conversationId: z.ZodNullable<z.ZodType<SessionId, z.ZodTypeDef, SessionId>>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ revision: 1;
577
+ conversationId: SessionId | null;
578
+ intent: {
579
+ id: string;
580
+ operationId: string;
581
+ digest: string;
582
+ createdAt: number;
583
+ source: {
584
+ address: {
585
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
586
+ palId: string;
587
+ };
588
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
589
+ profileRevision: number;
590
+ };
591
+ body: string;
592
+ grant: {
593
+ id: string;
594
+ revision: string;
595
+ };
596
+ recipient: {
597
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
598
+ palId: string;
599
+ };
600
+ routeKey: {
601
+ v: 1;
602
+ kind: "pal";
603
+ recipient: {
604
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
605
+ palId: string;
606
+ };
607
+ sender: {
608
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
609
+ palId: string;
610
+ };
611
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
612
+ dialogKey: string;
613
+ };
614
+ replyTo: string | null;
615
+ };
616
+ recipientRevision: number;
617
+ }, {
618
+ revision: 1;
619
+ conversationId: SessionId | null;
620
+ intent: {
621
+ id: string;
622
+ operationId: string;
623
+ digest: string;
624
+ createdAt: number;
625
+ source: {
626
+ address: {
627
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
628
+ palId: string;
629
+ };
630
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
631
+ profileRevision: number;
632
+ };
633
+ body: string;
634
+ grant: {
635
+ id: string;
636
+ revision: string;
637
+ };
638
+ recipient: {
639
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
640
+ palId: string;
641
+ };
642
+ routeKey: {
643
+ v: 1;
644
+ kind: "pal";
645
+ recipient: {
646
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
647
+ palId: string;
648
+ };
649
+ sender: {
650
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
651
+ palId: string;
652
+ };
653
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
654
+ dialogKey: string;
655
+ };
656
+ replyTo: string | null;
657
+ };
658
+ recipientRevision: number;
659
+ }>;
660
+ export declare const bindingSchema: z.ZodObject<{
661
+ id: z.ZodString;
662
+ key: z.ZodEffects<z.ZodObject<{
663
+ v: z.ZodLiteral<1>;
664
+ kind: z.ZodLiteral<"pal">;
665
+ sender: z.ZodObject<{
666
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
667
+ palId: z.ZodString;
668
+ }, "strict", z.ZodTypeAny, {
669
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
670
+ palId: string;
671
+ }, {
672
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
673
+ palId: string;
674
+ }>;
675
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
676
+ recipient: z.ZodObject<{
677
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
678
+ palId: z.ZodString;
679
+ }, "strict", z.ZodTypeAny, {
680
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
681
+ palId: string;
682
+ }, {
683
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
684
+ palId: string;
685
+ }>;
686
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
687
+ }, "strict", z.ZodTypeAny, {
688
+ v: 1;
689
+ kind: "pal";
690
+ recipient: {
691
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
692
+ palId: string;
693
+ };
694
+ sender: {
695
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
696
+ palId: string;
697
+ };
698
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
699
+ dialogKey: string;
700
+ }, {
701
+ v: 1;
702
+ kind: "pal";
703
+ recipient: {
704
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
705
+ palId: string;
706
+ };
707
+ sender: {
708
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
709
+ palId: string;
710
+ };
711
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
712
+ dialogKey: string;
713
+ }>, {
714
+ v: 1;
715
+ kind: "pal";
716
+ recipient: {
717
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
718
+ palId: string;
719
+ };
720
+ sender: {
721
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
722
+ palId: string;
723
+ };
724
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
725
+ dialogKey: string;
726
+ }, {
727
+ v: 1;
728
+ kind: "pal";
729
+ recipient: {
730
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
731
+ palId: string;
732
+ };
733
+ sender: {
734
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
735
+ palId: string;
736
+ };
737
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
738
+ dialogKey: string;
739
+ }>;
740
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
741
+ profileRevision: z.ZodNumber;
742
+ revision: z.ZodNumber;
743
+ phase: z.ZodEnum<["reserved", "active"]>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ id: string;
746
+ phase: "active" | "reserved";
747
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
748
+ key: {
749
+ v: 1;
750
+ kind: "pal";
751
+ recipient: {
752
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
753
+ palId: string;
754
+ };
755
+ sender: {
756
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
757
+ palId: string;
758
+ };
759
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
760
+ dialogKey: string;
761
+ };
762
+ revision: number;
763
+ profileRevision: number;
764
+ }, {
765
+ id: string;
766
+ phase: "active" | "reserved";
767
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
768
+ key: {
769
+ v: 1;
770
+ kind: "pal";
771
+ recipient: {
772
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
773
+ palId: string;
774
+ };
775
+ sender: {
776
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
777
+ palId: string;
778
+ };
779
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
780
+ dialogKey: string;
781
+ };
782
+ revision: number;
783
+ profileRevision: number;
784
+ }>;
785
+ export declare const receiptSchema: z.ZodObject<{
786
+ claimId: z.ZodString;
787
+ ref: z.ZodObject<{
788
+ namespace: z.ZodLiteral<"namzu-pal-message/1">;
789
+ id: z.ZodString;
790
+ digest: z.ZodString;
791
+ }, "strict", z.ZodTypeAny, {
792
+ id: string;
793
+ digest: string;
794
+ namespace: "namzu-pal-message/1";
795
+ }, {
796
+ id: string;
797
+ digest: string;
798
+ namespace: "namzu-pal-message/1";
799
+ }>;
800
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
801
+ turnId: z.ZodType<TurnId, z.ZodTypeDef, TurnId>;
802
+ messageId: z.ZodType<MessageId, z.ZodTypeDef, MessageId>;
803
+ through: z.ZodObject<{
804
+ pointer: z.ZodObject<{
805
+ seq: z.ZodNumber;
806
+ offset: z.ZodNumber;
807
+ length: z.ZodNumber;
808
+ sha256: z.ZodString;
809
+ }, "strict", z.ZodTypeAny, {
810
+ length: number;
811
+ sha256: string;
812
+ offset: number;
813
+ seq: number;
814
+ }, {
815
+ length: number;
816
+ sha256: string;
817
+ offset: number;
818
+ seq: number;
819
+ }>;
820
+ gen: z.ZodNumber;
821
+ bytes: z.ZodNumber;
822
+ }, "strict", z.ZodTypeAny, {
823
+ gen: number;
824
+ bytes: number;
825
+ pointer: {
826
+ length: number;
827
+ sha256: string;
828
+ offset: number;
829
+ seq: number;
830
+ };
831
+ }, {
832
+ gen: number;
833
+ bytes: number;
834
+ pointer: {
835
+ length: number;
836
+ sha256: string;
837
+ offset: number;
838
+ seq: number;
839
+ };
840
+ }>;
841
+ }, "strict", z.ZodTypeAny, {
842
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
843
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
844
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
845
+ ref: {
846
+ id: string;
847
+ digest: string;
848
+ namespace: "namzu-pal-message/1";
849
+ };
850
+ claimId: string;
851
+ through: {
852
+ gen: number;
853
+ bytes: number;
854
+ pointer: {
855
+ length: number;
856
+ sha256: string;
857
+ offset: number;
858
+ seq: number;
859
+ };
860
+ };
861
+ }, {
862
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
863
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
864
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
865
+ ref: {
866
+ id: string;
867
+ digest: string;
868
+ namespace: "namzu-pal-message/1";
869
+ };
870
+ claimId: string;
871
+ through: {
872
+ gen: number;
873
+ bytes: number;
874
+ pointer: {
875
+ length: number;
876
+ sha256: string;
877
+ offset: number;
878
+ seq: number;
879
+ };
880
+ };
881
+ }>;
882
+ export declare const inboxSchema: z.ZodObject<{
883
+ id: z.ZodString;
884
+ digest: z.ZodString;
885
+ operationId: z.ZodEffects<z.ZodString, string, string>;
886
+ source: z.ZodObject<{
887
+ address: z.ZodObject<{
888
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
889
+ palId: z.ZodString;
890
+ }, "strict", z.ZodTypeAny, {
891
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
892
+ palId: string;
893
+ }, {
894
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
895
+ palId: string;
896
+ }>;
897
+ conversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
898
+ profileRevision: z.ZodNumber;
899
+ }, "strict", z.ZodTypeAny, {
900
+ address: {
901
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
902
+ palId: string;
903
+ };
904
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
905
+ profileRevision: number;
906
+ }, {
907
+ address: {
908
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
909
+ palId: string;
910
+ };
911
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
912
+ profileRevision: number;
913
+ }>;
914
+ recipient: z.ZodObject<{
915
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
916
+ palId: z.ZodString;
917
+ }, "strict", z.ZodTypeAny, {
918
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
919
+ palId: string;
920
+ }, {
921
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
922
+ palId: string;
923
+ }>;
924
+ routeKey: z.ZodEffects<z.ZodObject<{
925
+ v: z.ZodLiteral<1>;
926
+ kind: z.ZodLiteral<"pal">;
927
+ sender: z.ZodObject<{
928
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
929
+ palId: z.ZodString;
930
+ }, "strict", z.ZodTypeAny, {
931
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
932
+ palId: string;
933
+ }, {
934
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
935
+ palId: string;
936
+ }>;
937
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
938
+ recipient: z.ZodObject<{
939
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
940
+ palId: z.ZodString;
941
+ }, "strict", z.ZodTypeAny, {
942
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
943
+ palId: string;
944
+ }, {
945
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
946
+ palId: string;
947
+ }>;
948
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
949
+ }, "strict", z.ZodTypeAny, {
950
+ v: 1;
951
+ kind: "pal";
952
+ recipient: {
953
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
954
+ palId: string;
955
+ };
956
+ sender: {
957
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
958
+ palId: string;
959
+ };
960
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
961
+ dialogKey: string;
962
+ }, {
963
+ v: 1;
964
+ kind: "pal";
965
+ recipient: {
966
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
967
+ palId: string;
968
+ };
969
+ sender: {
970
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
971
+ palId: string;
972
+ };
973
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
974
+ dialogKey: string;
975
+ }>, {
976
+ v: 1;
977
+ kind: "pal";
978
+ recipient: {
979
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
980
+ palId: string;
981
+ };
982
+ sender: {
983
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
984
+ palId: string;
985
+ };
986
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
987
+ dialogKey: string;
988
+ }, {
989
+ v: 1;
990
+ kind: "pal";
991
+ recipient: {
992
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
993
+ palId: string;
994
+ };
995
+ sender: {
996
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
997
+ palId: string;
998
+ };
999
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1000
+ dialogKey: string;
1001
+ }>;
1002
+ body: z.ZodEffects<z.ZodString, string, string>;
1003
+ replyTo: z.ZodNullable<z.ZodString>;
1004
+ grant: z.ZodObject<{
1005
+ id: z.ZodEffects<z.ZodString, string, string>;
1006
+ revision: z.ZodEffects<z.ZodString, string, string>;
1007
+ }, "strict", z.ZodTypeAny, {
1008
+ id: string;
1009
+ revision: string;
1010
+ }, {
1011
+ id: string;
1012
+ revision: string;
1013
+ }>;
1014
+ createdAt: z.ZodNumber;
1015
+ } & {
1016
+ ordinal: z.ZodNumber;
1017
+ routeId: z.ZodString;
1018
+ phase: z.ZodEnum<["pending", "claimed", "recorded"]>;
1019
+ claim: z.ZodNullable<z.ZodObject<{
1020
+ id: z.ZodString;
1021
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1022
+ turnId: z.ZodType<TurnId, z.ZodTypeDef, TurnId>;
1023
+ generation: z.ZodNumber;
1024
+ content: z.ZodString;
1025
+ }, "strict", z.ZodTypeAny, {
1026
+ id: string;
1027
+ content: string;
1028
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1029
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1030
+ generation: number;
1031
+ }, {
1032
+ id: string;
1033
+ content: string;
1034
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1035
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1036
+ generation: number;
1037
+ }>>;
1038
+ receipt: z.ZodNullable<z.ZodObject<{
1039
+ claimId: z.ZodString;
1040
+ ref: z.ZodObject<{
1041
+ namespace: z.ZodLiteral<"namzu-pal-message/1">;
1042
+ id: z.ZodString;
1043
+ digest: z.ZodString;
1044
+ }, "strict", z.ZodTypeAny, {
1045
+ id: string;
1046
+ digest: string;
1047
+ namespace: "namzu-pal-message/1";
1048
+ }, {
1049
+ id: string;
1050
+ digest: string;
1051
+ namespace: "namzu-pal-message/1";
1052
+ }>;
1053
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1054
+ turnId: z.ZodType<TurnId, z.ZodTypeDef, TurnId>;
1055
+ messageId: z.ZodType<MessageId, z.ZodTypeDef, MessageId>;
1056
+ through: z.ZodObject<{
1057
+ pointer: z.ZodObject<{
1058
+ seq: z.ZodNumber;
1059
+ offset: z.ZodNumber;
1060
+ length: z.ZodNumber;
1061
+ sha256: z.ZodString;
1062
+ }, "strict", z.ZodTypeAny, {
1063
+ length: number;
1064
+ sha256: string;
1065
+ offset: number;
1066
+ seq: number;
1067
+ }, {
1068
+ length: number;
1069
+ sha256: string;
1070
+ offset: number;
1071
+ seq: number;
1072
+ }>;
1073
+ gen: z.ZodNumber;
1074
+ bytes: z.ZodNumber;
1075
+ }, "strict", z.ZodTypeAny, {
1076
+ gen: number;
1077
+ bytes: number;
1078
+ pointer: {
1079
+ length: number;
1080
+ sha256: string;
1081
+ offset: number;
1082
+ seq: number;
1083
+ };
1084
+ }, {
1085
+ gen: number;
1086
+ bytes: number;
1087
+ pointer: {
1088
+ length: number;
1089
+ sha256: string;
1090
+ offset: number;
1091
+ seq: number;
1092
+ };
1093
+ }>;
1094
+ }, "strict", z.ZodTypeAny, {
1095
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1096
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1097
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1098
+ ref: {
1099
+ id: string;
1100
+ digest: string;
1101
+ namespace: "namzu-pal-message/1";
1102
+ };
1103
+ claimId: string;
1104
+ through: {
1105
+ gen: number;
1106
+ bytes: number;
1107
+ pointer: {
1108
+ length: number;
1109
+ sha256: string;
1110
+ offset: number;
1111
+ seq: number;
1112
+ };
1113
+ };
1114
+ }, {
1115
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1116
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1117
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1118
+ ref: {
1119
+ id: string;
1120
+ digest: string;
1121
+ namespace: "namzu-pal-message/1";
1122
+ };
1123
+ claimId: string;
1124
+ through: {
1125
+ gen: number;
1126
+ bytes: number;
1127
+ pointer: {
1128
+ length: number;
1129
+ sha256: string;
1130
+ offset: number;
1131
+ seq: number;
1132
+ };
1133
+ };
1134
+ }>>;
1135
+ }, "strict", z.ZodTypeAny, {
1136
+ id: string;
1137
+ phase: "pending" | "recorded" | "claimed";
1138
+ operationId: string;
1139
+ digest: string;
1140
+ createdAt: number;
1141
+ source: {
1142
+ address: {
1143
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1144
+ palId: string;
1145
+ };
1146
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1147
+ profileRevision: number;
1148
+ };
1149
+ body: string;
1150
+ receipt: {
1151
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1152
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1153
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1154
+ ref: {
1155
+ id: string;
1156
+ digest: string;
1157
+ namespace: "namzu-pal-message/1";
1158
+ };
1159
+ claimId: string;
1160
+ through: {
1161
+ gen: number;
1162
+ bytes: number;
1163
+ pointer: {
1164
+ length: number;
1165
+ sha256: string;
1166
+ offset: number;
1167
+ seq: number;
1168
+ };
1169
+ };
1170
+ } | null;
1171
+ claim: {
1172
+ id: string;
1173
+ content: string;
1174
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1175
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1176
+ generation: number;
1177
+ } | null;
1178
+ grant: {
1179
+ id: string;
1180
+ revision: string;
1181
+ };
1182
+ ordinal: number;
1183
+ routeId: string;
1184
+ recipient: {
1185
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1186
+ palId: string;
1187
+ };
1188
+ routeKey: {
1189
+ v: 1;
1190
+ kind: "pal";
1191
+ recipient: {
1192
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1193
+ palId: string;
1194
+ };
1195
+ sender: {
1196
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1197
+ palId: string;
1198
+ };
1199
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1200
+ dialogKey: string;
1201
+ };
1202
+ replyTo: string | null;
1203
+ }, {
1204
+ id: string;
1205
+ phase: "pending" | "recorded" | "claimed";
1206
+ operationId: string;
1207
+ digest: string;
1208
+ createdAt: number;
1209
+ source: {
1210
+ address: {
1211
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1212
+ palId: string;
1213
+ };
1214
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1215
+ profileRevision: number;
1216
+ };
1217
+ body: string;
1218
+ receipt: {
1219
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1220
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1221
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1222
+ ref: {
1223
+ id: string;
1224
+ digest: string;
1225
+ namespace: "namzu-pal-message/1";
1226
+ };
1227
+ claimId: string;
1228
+ through: {
1229
+ gen: number;
1230
+ bytes: number;
1231
+ pointer: {
1232
+ length: number;
1233
+ sha256: string;
1234
+ offset: number;
1235
+ seq: number;
1236
+ };
1237
+ };
1238
+ } | null;
1239
+ claim: {
1240
+ id: string;
1241
+ content: string;
1242
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1243
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1244
+ generation: number;
1245
+ } | null;
1246
+ grant: {
1247
+ id: string;
1248
+ revision: string;
1249
+ };
1250
+ ordinal: number;
1251
+ routeId: string;
1252
+ recipient: {
1253
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1254
+ palId: string;
1255
+ };
1256
+ routeKey: {
1257
+ v: 1;
1258
+ kind: "pal";
1259
+ recipient: {
1260
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1261
+ palId: string;
1262
+ };
1263
+ sender: {
1264
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1265
+ palId: string;
1266
+ };
1267
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1268
+ dialogKey: string;
1269
+ };
1270
+ replyTo: string | null;
1271
+ }>;
1272
+ export declare const snapshotSchema: z.ZodObject<{
1273
+ recipient: z.ZodObject<{
1274
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1275
+ palId: z.ZodString;
1276
+ }, "strict", z.ZodTypeAny, {
1277
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1278
+ palId: string;
1279
+ }, {
1280
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1281
+ palId: string;
1282
+ }>;
1283
+ revision: z.ZodNumber;
1284
+ routes: z.ZodArray<z.ZodObject<{
1285
+ id: z.ZodString;
1286
+ key: z.ZodEffects<z.ZodObject<{
1287
+ v: z.ZodLiteral<1>;
1288
+ kind: z.ZodLiteral<"pal">;
1289
+ sender: z.ZodObject<{
1290
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1291
+ palId: z.ZodString;
1292
+ }, "strict", z.ZodTypeAny, {
1293
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1294
+ palId: string;
1295
+ }, {
1296
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1297
+ palId: string;
1298
+ }>;
1299
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1300
+ recipient: z.ZodObject<{
1301
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1302
+ palId: z.ZodString;
1303
+ }, "strict", z.ZodTypeAny, {
1304
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1305
+ palId: string;
1306
+ }, {
1307
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1308
+ palId: string;
1309
+ }>;
1310
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
1311
+ }, "strict", z.ZodTypeAny, {
1312
+ v: 1;
1313
+ kind: "pal";
1314
+ recipient: {
1315
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1316
+ palId: string;
1317
+ };
1318
+ sender: {
1319
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1320
+ palId: string;
1321
+ };
1322
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1323
+ dialogKey: string;
1324
+ }, {
1325
+ v: 1;
1326
+ kind: "pal";
1327
+ recipient: {
1328
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1329
+ palId: string;
1330
+ };
1331
+ sender: {
1332
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1333
+ palId: string;
1334
+ };
1335
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1336
+ dialogKey: string;
1337
+ }>, {
1338
+ v: 1;
1339
+ kind: "pal";
1340
+ recipient: {
1341
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1342
+ palId: string;
1343
+ };
1344
+ sender: {
1345
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1346
+ palId: string;
1347
+ };
1348
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1349
+ dialogKey: string;
1350
+ }, {
1351
+ v: 1;
1352
+ kind: "pal";
1353
+ recipient: {
1354
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1355
+ palId: string;
1356
+ };
1357
+ sender: {
1358
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1359
+ palId: string;
1360
+ };
1361
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1362
+ dialogKey: string;
1363
+ }>;
1364
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1365
+ profileRevision: z.ZodNumber;
1366
+ revision: z.ZodNumber;
1367
+ phase: z.ZodEnum<["reserved", "active"]>;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ id: string;
1370
+ phase: "active" | "reserved";
1371
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1372
+ key: {
1373
+ v: 1;
1374
+ kind: "pal";
1375
+ recipient: {
1376
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1377
+ palId: string;
1378
+ };
1379
+ sender: {
1380
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1381
+ palId: string;
1382
+ };
1383
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1384
+ dialogKey: string;
1385
+ };
1386
+ revision: number;
1387
+ profileRevision: number;
1388
+ }, {
1389
+ id: string;
1390
+ phase: "active" | "reserved";
1391
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1392
+ key: {
1393
+ v: 1;
1394
+ kind: "pal";
1395
+ recipient: {
1396
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1397
+ palId: string;
1398
+ };
1399
+ sender: {
1400
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1401
+ palId: string;
1402
+ };
1403
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1404
+ dialogKey: string;
1405
+ };
1406
+ revision: number;
1407
+ profileRevision: number;
1408
+ }>, "many">;
1409
+ messages: z.ZodArray<z.ZodObject<{
1410
+ id: z.ZodString;
1411
+ digest: z.ZodString;
1412
+ operationId: z.ZodEffects<z.ZodString, string, string>;
1413
+ source: z.ZodObject<{
1414
+ address: z.ZodObject<{
1415
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1416
+ palId: z.ZodString;
1417
+ }, "strict", z.ZodTypeAny, {
1418
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1419
+ palId: string;
1420
+ }, {
1421
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1422
+ palId: string;
1423
+ }>;
1424
+ conversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1425
+ profileRevision: z.ZodNumber;
1426
+ }, "strict", z.ZodTypeAny, {
1427
+ address: {
1428
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1429
+ palId: string;
1430
+ };
1431
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1432
+ profileRevision: number;
1433
+ }, {
1434
+ address: {
1435
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1436
+ palId: string;
1437
+ };
1438
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1439
+ profileRevision: number;
1440
+ }>;
1441
+ recipient: z.ZodObject<{
1442
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1443
+ palId: z.ZodString;
1444
+ }, "strict", z.ZodTypeAny, {
1445
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1446
+ palId: string;
1447
+ }, {
1448
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1449
+ palId: string;
1450
+ }>;
1451
+ routeKey: z.ZodEffects<z.ZodObject<{
1452
+ v: z.ZodLiteral<1>;
1453
+ kind: z.ZodLiteral<"pal">;
1454
+ sender: z.ZodObject<{
1455
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1456
+ palId: z.ZodString;
1457
+ }, "strict", z.ZodTypeAny, {
1458
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1459
+ palId: string;
1460
+ }, {
1461
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1462
+ palId: string;
1463
+ }>;
1464
+ senderConversationId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1465
+ recipient: z.ZodObject<{
1466
+ tenantId: z.ZodType<TenantId, z.ZodTypeDef, TenantId>;
1467
+ palId: z.ZodString;
1468
+ }, "strict", z.ZodTypeAny, {
1469
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1470
+ palId: string;
1471
+ }, {
1472
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1473
+ palId: string;
1474
+ }>;
1475
+ dialogKey: z.ZodEffects<z.ZodString, string, string>;
1476
+ }, "strict", z.ZodTypeAny, {
1477
+ v: 1;
1478
+ kind: "pal";
1479
+ recipient: {
1480
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1481
+ palId: string;
1482
+ };
1483
+ sender: {
1484
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1485
+ palId: string;
1486
+ };
1487
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1488
+ dialogKey: string;
1489
+ }, {
1490
+ v: 1;
1491
+ kind: "pal";
1492
+ recipient: {
1493
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1494
+ palId: string;
1495
+ };
1496
+ sender: {
1497
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1498
+ palId: string;
1499
+ };
1500
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1501
+ dialogKey: string;
1502
+ }>, {
1503
+ v: 1;
1504
+ kind: "pal";
1505
+ recipient: {
1506
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1507
+ palId: string;
1508
+ };
1509
+ sender: {
1510
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1511
+ palId: string;
1512
+ };
1513
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1514
+ dialogKey: string;
1515
+ }, {
1516
+ v: 1;
1517
+ kind: "pal";
1518
+ recipient: {
1519
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1520
+ palId: string;
1521
+ };
1522
+ sender: {
1523
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1524
+ palId: string;
1525
+ };
1526
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1527
+ dialogKey: string;
1528
+ }>;
1529
+ body: z.ZodEffects<z.ZodString, string, string>;
1530
+ replyTo: z.ZodNullable<z.ZodString>;
1531
+ grant: z.ZodObject<{
1532
+ id: z.ZodEffects<z.ZodString, string, string>;
1533
+ revision: z.ZodEffects<z.ZodString, string, string>;
1534
+ }, "strict", z.ZodTypeAny, {
1535
+ id: string;
1536
+ revision: string;
1537
+ }, {
1538
+ id: string;
1539
+ revision: string;
1540
+ }>;
1541
+ createdAt: z.ZodNumber;
1542
+ } & {
1543
+ ordinal: z.ZodNumber;
1544
+ routeId: z.ZodString;
1545
+ phase: z.ZodEnum<["pending", "claimed", "recorded"]>;
1546
+ claim: z.ZodNullable<z.ZodObject<{
1547
+ id: z.ZodString;
1548
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1549
+ turnId: z.ZodType<TurnId, z.ZodTypeDef, TurnId>;
1550
+ generation: z.ZodNumber;
1551
+ content: z.ZodString;
1552
+ }, "strict", z.ZodTypeAny, {
1553
+ id: string;
1554
+ content: string;
1555
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1556
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1557
+ generation: number;
1558
+ }, {
1559
+ id: string;
1560
+ content: string;
1561
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1562
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1563
+ generation: number;
1564
+ }>>;
1565
+ receipt: z.ZodNullable<z.ZodObject<{
1566
+ claimId: z.ZodString;
1567
+ ref: z.ZodObject<{
1568
+ namespace: z.ZodLiteral<"namzu-pal-message/1">;
1569
+ id: z.ZodString;
1570
+ digest: z.ZodString;
1571
+ }, "strict", z.ZodTypeAny, {
1572
+ id: string;
1573
+ digest: string;
1574
+ namespace: "namzu-pal-message/1";
1575
+ }, {
1576
+ id: string;
1577
+ digest: string;
1578
+ namespace: "namzu-pal-message/1";
1579
+ }>;
1580
+ sessionId: z.ZodType<SessionId, z.ZodTypeDef, SessionId>;
1581
+ turnId: z.ZodType<TurnId, z.ZodTypeDef, TurnId>;
1582
+ messageId: z.ZodType<MessageId, z.ZodTypeDef, MessageId>;
1583
+ through: z.ZodObject<{
1584
+ pointer: z.ZodObject<{
1585
+ seq: z.ZodNumber;
1586
+ offset: z.ZodNumber;
1587
+ length: z.ZodNumber;
1588
+ sha256: z.ZodString;
1589
+ }, "strict", z.ZodTypeAny, {
1590
+ length: number;
1591
+ sha256: string;
1592
+ offset: number;
1593
+ seq: number;
1594
+ }, {
1595
+ length: number;
1596
+ sha256: string;
1597
+ offset: number;
1598
+ seq: number;
1599
+ }>;
1600
+ gen: z.ZodNumber;
1601
+ bytes: z.ZodNumber;
1602
+ }, "strict", z.ZodTypeAny, {
1603
+ gen: number;
1604
+ bytes: number;
1605
+ pointer: {
1606
+ length: number;
1607
+ sha256: string;
1608
+ offset: number;
1609
+ seq: number;
1610
+ };
1611
+ }, {
1612
+ gen: number;
1613
+ bytes: number;
1614
+ pointer: {
1615
+ length: number;
1616
+ sha256: string;
1617
+ offset: number;
1618
+ seq: number;
1619
+ };
1620
+ }>;
1621
+ }, "strict", z.ZodTypeAny, {
1622
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1623
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1624
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1625
+ ref: {
1626
+ id: string;
1627
+ digest: string;
1628
+ namespace: "namzu-pal-message/1";
1629
+ };
1630
+ claimId: string;
1631
+ through: {
1632
+ gen: number;
1633
+ bytes: number;
1634
+ pointer: {
1635
+ length: number;
1636
+ sha256: string;
1637
+ offset: number;
1638
+ seq: number;
1639
+ };
1640
+ };
1641
+ }, {
1642
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1643
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1644
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1645
+ ref: {
1646
+ id: string;
1647
+ digest: string;
1648
+ namespace: "namzu-pal-message/1";
1649
+ };
1650
+ claimId: string;
1651
+ through: {
1652
+ gen: number;
1653
+ bytes: number;
1654
+ pointer: {
1655
+ length: number;
1656
+ sha256: string;
1657
+ offset: number;
1658
+ seq: number;
1659
+ };
1660
+ };
1661
+ }>>;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ id: string;
1664
+ phase: "pending" | "recorded" | "claimed";
1665
+ operationId: string;
1666
+ digest: string;
1667
+ createdAt: number;
1668
+ source: {
1669
+ address: {
1670
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1671
+ palId: string;
1672
+ };
1673
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1674
+ profileRevision: number;
1675
+ };
1676
+ body: string;
1677
+ receipt: {
1678
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1679
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1680
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1681
+ ref: {
1682
+ id: string;
1683
+ digest: string;
1684
+ namespace: "namzu-pal-message/1";
1685
+ };
1686
+ claimId: string;
1687
+ through: {
1688
+ gen: number;
1689
+ bytes: number;
1690
+ pointer: {
1691
+ length: number;
1692
+ sha256: string;
1693
+ offset: number;
1694
+ seq: number;
1695
+ };
1696
+ };
1697
+ } | null;
1698
+ claim: {
1699
+ id: string;
1700
+ content: string;
1701
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1702
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1703
+ generation: number;
1704
+ } | null;
1705
+ grant: {
1706
+ id: string;
1707
+ revision: string;
1708
+ };
1709
+ ordinal: number;
1710
+ routeId: string;
1711
+ recipient: {
1712
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1713
+ palId: string;
1714
+ };
1715
+ routeKey: {
1716
+ v: 1;
1717
+ kind: "pal";
1718
+ recipient: {
1719
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1720
+ palId: string;
1721
+ };
1722
+ sender: {
1723
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1724
+ palId: string;
1725
+ };
1726
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1727
+ dialogKey: string;
1728
+ };
1729
+ replyTo: string | null;
1730
+ }, {
1731
+ id: string;
1732
+ phase: "pending" | "recorded" | "claimed";
1733
+ operationId: string;
1734
+ digest: string;
1735
+ createdAt: number;
1736
+ source: {
1737
+ address: {
1738
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1739
+ palId: string;
1740
+ };
1741
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1742
+ profileRevision: number;
1743
+ };
1744
+ body: string;
1745
+ receipt: {
1746
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1747
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1748
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1749
+ ref: {
1750
+ id: string;
1751
+ digest: string;
1752
+ namespace: "namzu-pal-message/1";
1753
+ };
1754
+ claimId: string;
1755
+ through: {
1756
+ gen: number;
1757
+ bytes: number;
1758
+ pointer: {
1759
+ length: number;
1760
+ sha256: string;
1761
+ offset: number;
1762
+ seq: number;
1763
+ };
1764
+ };
1765
+ } | null;
1766
+ claim: {
1767
+ id: string;
1768
+ content: string;
1769
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1770
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1771
+ generation: number;
1772
+ } | null;
1773
+ grant: {
1774
+ id: string;
1775
+ revision: string;
1776
+ };
1777
+ ordinal: number;
1778
+ routeId: string;
1779
+ recipient: {
1780
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1781
+ palId: string;
1782
+ };
1783
+ routeKey: {
1784
+ v: 1;
1785
+ kind: "pal";
1786
+ recipient: {
1787
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1788
+ palId: string;
1789
+ };
1790
+ sender: {
1791
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1792
+ palId: string;
1793
+ };
1794
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1795
+ dialogKey: string;
1796
+ };
1797
+ replyTo: string | null;
1798
+ }>, "many">;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ messages: {
1801
+ id: string;
1802
+ phase: "pending" | "recorded" | "claimed";
1803
+ operationId: string;
1804
+ digest: string;
1805
+ createdAt: number;
1806
+ source: {
1807
+ address: {
1808
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1809
+ palId: string;
1810
+ };
1811
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1812
+ profileRevision: number;
1813
+ };
1814
+ body: string;
1815
+ receipt: {
1816
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1817
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1818
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1819
+ ref: {
1820
+ id: string;
1821
+ digest: string;
1822
+ namespace: "namzu-pal-message/1";
1823
+ };
1824
+ claimId: string;
1825
+ through: {
1826
+ gen: number;
1827
+ bytes: number;
1828
+ pointer: {
1829
+ length: number;
1830
+ sha256: string;
1831
+ offset: number;
1832
+ seq: number;
1833
+ };
1834
+ };
1835
+ } | null;
1836
+ claim: {
1837
+ id: string;
1838
+ content: string;
1839
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1840
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1841
+ generation: number;
1842
+ } | null;
1843
+ grant: {
1844
+ id: string;
1845
+ revision: string;
1846
+ };
1847
+ ordinal: number;
1848
+ routeId: string;
1849
+ recipient: {
1850
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1851
+ palId: string;
1852
+ };
1853
+ routeKey: {
1854
+ v: 1;
1855
+ kind: "pal";
1856
+ recipient: {
1857
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1858
+ palId: string;
1859
+ };
1860
+ sender: {
1861
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1862
+ palId: string;
1863
+ };
1864
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1865
+ dialogKey: string;
1866
+ };
1867
+ replyTo: string | null;
1868
+ }[];
1869
+ revision: number;
1870
+ recipient: {
1871
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1872
+ palId: string;
1873
+ };
1874
+ routes: {
1875
+ id: string;
1876
+ phase: "active" | "reserved";
1877
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1878
+ key: {
1879
+ v: 1;
1880
+ kind: "pal";
1881
+ recipient: {
1882
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1883
+ palId: string;
1884
+ };
1885
+ sender: {
1886
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1887
+ palId: string;
1888
+ };
1889
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1890
+ dialogKey: string;
1891
+ };
1892
+ revision: number;
1893
+ profileRevision: number;
1894
+ }[];
1895
+ }, {
1896
+ messages: {
1897
+ id: string;
1898
+ phase: "pending" | "recorded" | "claimed";
1899
+ operationId: string;
1900
+ digest: string;
1901
+ createdAt: number;
1902
+ source: {
1903
+ address: {
1904
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1905
+ palId: string;
1906
+ };
1907
+ conversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1908
+ profileRevision: number;
1909
+ };
1910
+ body: string;
1911
+ receipt: {
1912
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1913
+ messageId: string & import("../../types/ids/brand.js").IdBrand<"MessageId">;
1914
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1915
+ ref: {
1916
+ id: string;
1917
+ digest: string;
1918
+ namespace: "namzu-pal-message/1";
1919
+ };
1920
+ claimId: string;
1921
+ through: {
1922
+ gen: number;
1923
+ bytes: number;
1924
+ pointer: {
1925
+ length: number;
1926
+ sha256: string;
1927
+ offset: number;
1928
+ seq: number;
1929
+ };
1930
+ };
1931
+ } | null;
1932
+ claim: {
1933
+ id: string;
1934
+ content: string;
1935
+ turnId: string & import("../../types/ids/brand.js").IdBrand<"TurnId">;
1936
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1937
+ generation: number;
1938
+ } | null;
1939
+ grant: {
1940
+ id: string;
1941
+ revision: string;
1942
+ };
1943
+ ordinal: number;
1944
+ routeId: string;
1945
+ recipient: {
1946
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1947
+ palId: string;
1948
+ };
1949
+ routeKey: {
1950
+ v: 1;
1951
+ kind: "pal";
1952
+ recipient: {
1953
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1954
+ palId: string;
1955
+ };
1956
+ sender: {
1957
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1958
+ palId: string;
1959
+ };
1960
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1961
+ dialogKey: string;
1962
+ };
1963
+ replyTo: string | null;
1964
+ }[];
1965
+ revision: number;
1966
+ recipient: {
1967
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1968
+ palId: string;
1969
+ };
1970
+ routes: {
1971
+ id: string;
1972
+ phase: "active" | "reserved";
1973
+ sessionId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1974
+ key: {
1975
+ v: 1;
1976
+ kind: "pal";
1977
+ recipient: {
1978
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1979
+ palId: string;
1980
+ };
1981
+ sender: {
1982
+ tenantId: string & import("../../types/ids/brand.js").IdBrand<"TenantId">;
1983
+ palId: string;
1984
+ };
1985
+ senderConversationId: string & import("../../types/ids/brand.js").IdBrand<"SessionId">;
1986
+ dialogKey: string;
1987
+ };
1988
+ revision: number;
1989
+ profileRevision: number;
1990
+ }[];
1991
+ }>;
1992
+ /** Capture parsed values recursively before any host callback can observe them. */
1993
+ export declare function freezeCommunicationValue<T>(value: T): T;
1994
+ export declare function hash(value: unknown): string;
1995
+ export declare function addressTuple(value: PalAddress): readonly string[];
1996
+ export declare function routeTuple(value: PalRouteKey): readonly unknown[];
1997
+ export declare function routeId(value: PalRouteKey): string;
1998
+ export declare function messageId(source: PalMessageSenderContext, operationId: string): string;
1999
+ export declare function intentDigest(intent: Omit<PalMessageIntent, 'digest'>): string;
2000
+ //# sourceMappingURL=schema.d.ts.map