@blue-repository/types 1.0.0-rc.3 → 1.0.0-rc.5

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 (272) hide show
  1. package/README.md +1 -1
  2. package/dist/meta.d.ts +2 -2
  3. package/dist/meta.d.ts.map +1 -1
  4. package/dist/meta.js +1 -2
  5. package/dist/meta.js.map +1 -1
  6. package/dist/packages/conversation/blue-ids.d.ts +0 -1
  7. package/dist/packages/conversation/blue-ids.d.ts.map +1 -1
  8. package/dist/packages/conversation/blue-ids.js +0 -1
  9. package/dist/packages/conversation/blue-ids.js.map +1 -1
  10. package/dist/packages/conversation/contents/index.d.ts +0 -24
  11. package/dist/packages/conversation/contents/index.d.ts.map +1 -1
  12. package/dist/packages/conversation/contents/index.js +0 -3
  13. package/dist/packages/conversation/contents/index.js.map +1 -1
  14. package/dist/packages/conversation/index.d.ts +0 -64
  15. package/dist/packages/conversation/index.d.ts.map +1 -1
  16. package/dist/packages/conversation/meta.d.ts +0 -10
  17. package/dist/packages/conversation/meta.d.ts.map +1 -1
  18. package/dist/packages/conversation/meta.js +0 -12
  19. package/dist/packages/conversation/meta.js.map +1 -1
  20. package/dist/packages/conversation/schemas/index.d.ts +0 -32
  21. package/dist/packages/conversation/schemas/index.d.ts.map +1 -1
  22. package/dist/packages/conversation/schemas/index.js +0 -3
  23. package/dist/packages/conversation/schemas/index.js.map +1 -1
  24. package/dist/packages/myos/blue-ids.d.ts +37 -38
  25. package/dist/packages/myos/blue-ids.d.ts.map +1 -1
  26. package/dist/packages/myos/blue-ids.js +37 -38
  27. package/dist/packages/myos/blue-ids.js.map +1 -1
  28. package/dist/packages/myos/contents/AddingParticipantRequested.d.ts +3 -0
  29. package/dist/packages/myos/contents/AddingParticipantRequested.d.ts.map +1 -1
  30. package/dist/packages/myos/contents/AddingParticipantRequested.js +3 -0
  31. package/dist/packages/myos/contents/AddingParticipantRequested.js.map +1 -1
  32. package/dist/packages/myos/contents/AddingParticipantResponded.d.ts +4 -1
  33. package/dist/packages/myos/contents/AddingParticipantResponded.d.ts.map +1 -1
  34. package/dist/packages/myos/contents/AddingParticipantResponded.js +4 -1
  35. package/dist/packages/myos/contents/AddingParticipantResponded.js.map +1 -1
  36. package/dist/packages/myos/contents/Agent.d.ts +0 -5
  37. package/dist/packages/myos/contents/Agent.d.ts.map +1 -1
  38. package/dist/packages/myos/contents/Agent.js +0 -5
  39. package/dist/packages/myos/contents/Agent.js.map +1 -1
  40. package/dist/packages/myos/contents/AnchorAutomationTemplate.d.ts +1 -1
  41. package/dist/packages/myos/contents/AnchorAutomationTemplate.js +1 -1
  42. package/dist/packages/myos/contents/AnchorAutomationTemplate.js.map +1 -1
  43. package/dist/packages/myos/contents/ChatGPTConnectorAgent.d.ts +4 -4
  44. package/dist/packages/myos/contents/ChatGPTConnectorAgent.js +4 -4
  45. package/dist/packages/myos/contents/DocumentSessionBootstrap.d.ts +2 -2
  46. package/dist/packages/myos/contents/DocumentSessionBootstrap.js +2 -2
  47. package/dist/packages/myos/contents/DocumentSessionBootstrap.js.map +1 -1
  48. package/dist/packages/myos/contents/InformUserToInstallMyOSPackage.d.ts +1 -1
  49. package/dist/packages/myos/contents/InformUserToInstallMyOSPackage.js +1 -1
  50. package/dist/packages/myos/contents/MyOSPackage.d.ts +2 -2
  51. package/dist/packages/myos/contents/MyOSPackage.js +2 -2
  52. package/dist/packages/myos/contents/RemovingParticipantRequested.d.ts +3 -0
  53. package/dist/packages/myos/contents/RemovingParticipantRequested.d.ts.map +1 -1
  54. package/dist/packages/myos/contents/RemovingParticipantRequested.js +3 -0
  55. package/dist/packages/myos/contents/RemovingParticipantRequested.js.map +1 -1
  56. package/dist/packages/myos/contents/RemovingParticipantResponded.d.ts +4 -1
  57. package/dist/packages/myos/contents/RemovingParticipantResponded.d.ts.map +1 -1
  58. package/dist/packages/myos/contents/RemovingParticipantResponded.js +4 -1
  59. package/dist/packages/myos/contents/RemovingParticipantResponded.js.map +1 -1
  60. package/dist/packages/myos/contents/SingleDocumentPermissionGrantRequested.d.ts +1 -1
  61. package/dist/packages/myos/contents/SingleDocumentPermissionGrantRequested.js +1 -1
  62. package/dist/packages/myos/contents/SingleDocumentPermissionGrantResponded.d.ts +1 -1
  63. package/dist/packages/myos/contents/SingleDocumentPermissionGrantResponded.js +1 -1
  64. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.d.ts +1 -1
  65. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.js +1 -1
  66. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.js.map +1 -1
  67. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.d.ts +1 -1
  68. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.js +1 -1
  69. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.js.map +1 -1
  70. package/dist/packages/myos/contents/SingleDocumentPermissionGranted.d.ts +1 -1
  71. package/dist/packages/myos/contents/SingleDocumentPermissionGranted.js +1 -1
  72. package/dist/packages/myos/contents/SingleDocumentPermissionGrantingInProgress.d.ts +1 -1
  73. package/dist/packages/myos/contents/SingleDocumentPermissionGrantingInProgress.js +1 -1
  74. package/dist/packages/myos/contents/SingleDocumentPermissionRejected.d.ts +1 -1
  75. package/dist/packages/myos/contents/SingleDocumentPermissionRejected.js +1 -1
  76. package/dist/packages/myos/contents/SingleDocumentPermissionRevokeRequested.d.ts +1 -1
  77. package/dist/packages/myos/contents/SingleDocumentPermissionRevokeRequested.js +1 -1
  78. package/dist/packages/myos/contents/SingleDocumentPermissionRevoked.d.ts +1 -1
  79. package/dist/packages/myos/contents/SingleDocumentPermissionRevoked.js +1 -1
  80. package/dist/packages/myos/contents/SingleDocumentPermissionRevokingInProgress.d.ts +1 -1
  81. package/dist/packages/myos/contents/SingleDocumentPermissionRevokingInProgress.js +1 -1
  82. package/dist/packages/myos/contents/SingleDocumentPermissionValidated.d.ts +1 -1
  83. package/dist/packages/myos/contents/SingleDocumentPermissionValidated.js +1 -1
  84. package/dist/packages/myos/contents/StartWorkerSessionRequested.d.ts +1 -1
  85. package/dist/packages/myos/contents/StartWorkerSessionRequested.js +1 -1
  86. package/dist/packages/myos/contents/SubscribeToSessionRequested.d.ts +1 -1
  87. package/dist/packages/myos/contents/SubscribeToSessionRequested.js +1 -1
  88. package/dist/packages/myos/contents/SubscriptionToSessionFailed.d.ts +1 -1
  89. package/dist/packages/myos/contents/SubscriptionToSessionFailed.js +1 -1
  90. package/dist/packages/myos/contents/SubscriptionToSessionInitiated.d.ts +1 -1
  91. package/dist/packages/myos/contents/SubscriptionToSessionInitiated.js +1 -1
  92. package/dist/packages/myos/contents/SubscriptionToSessionRevoked.d.ts +1 -1
  93. package/dist/packages/myos/contents/SubscriptionToSessionRevoked.js +1 -1
  94. package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.d.ts +1 -1
  95. package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.js +1 -1
  96. package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.js.map +1 -1
  97. package/dist/packages/myos/contents/WorkerAgencyPermissionGrantRequested.d.ts +1 -1
  98. package/dist/packages/myos/contents/WorkerAgencyPermissionGrantRequested.js +1 -1
  99. package/dist/packages/myos/contents/WorkerAgencyPermissionGranted.d.ts +1 -1
  100. package/dist/packages/myos/contents/WorkerAgencyPermissionGranted.js +1 -1
  101. package/dist/packages/myos/contents/WorkerAgencyPermissionGrantingInProgress.d.ts +1 -1
  102. package/dist/packages/myos/contents/WorkerAgencyPermissionGrantingInProgress.js +1 -1
  103. package/dist/packages/myos/contents/WorkerAgencyPermissionInvalid.d.ts +1 -1
  104. package/dist/packages/myos/contents/WorkerAgencyPermissionInvalid.js +1 -1
  105. package/dist/packages/myos/contents/WorkerAgencyPermissionRejected.d.ts +1 -1
  106. package/dist/packages/myos/contents/WorkerAgencyPermissionRejected.js +1 -1
  107. package/dist/packages/myos/contents/WorkerAgencyPermissionRevokeRequested.d.ts +1 -1
  108. package/dist/packages/myos/contents/WorkerAgencyPermissionRevokeRequested.js +1 -1
  109. package/dist/packages/myos/contents/WorkerAgencyPermissionRevoked.d.ts +1 -1
  110. package/dist/packages/myos/contents/WorkerAgencyPermissionRevoked.js +1 -1
  111. package/dist/packages/myos/contents/WorkerAgencyPermissionRevokingInProgress.d.ts +1 -1
  112. package/dist/packages/myos/contents/WorkerAgencyPermissionRevokingInProgress.js +1 -1
  113. package/dist/packages/myos/contents/WorkerAgencyPermissionValidated.d.ts +1 -1
  114. package/dist/packages/myos/contents/WorkerAgencyPermissionValidated.js +1 -1
  115. package/dist/packages/myos/contents/WorkerSessionStarting.d.ts +1 -1
  116. package/dist/packages/myos/contents/WorkerSessionStarting.js +1 -1
  117. package/dist/packages/myos/contents/index.d.ts +1079 -1086
  118. package/dist/packages/myos/contents/index.d.ts.map +1 -1
  119. package/dist/packages/myos/contents/index.js +101 -104
  120. package/dist/packages/myos/contents/index.js.map +1 -1
  121. package/dist/packages/myos/index.d.ts +1400 -1245
  122. package/dist/packages/myos/index.d.ts.map +1 -1
  123. package/dist/packages/myos/meta.d.ts +110 -136
  124. package/dist/packages/myos/meta.d.ts.map +1 -1
  125. package/dist/packages/myos/meta.js +110 -142
  126. package/dist/packages/myos/meta.js.map +1 -1
  127. package/dist/packages/myos/schemas/AddingParticipantRequested.d.ts +13 -2
  128. package/dist/packages/myos/schemas/AddingParticipantRequested.d.ts.map +1 -1
  129. package/dist/packages/myos/schemas/AddingParticipantRequested.js +2 -1
  130. package/dist/packages/myos/schemas/AddingParticipantRequested.js.map +1 -1
  131. package/dist/packages/myos/schemas/AddingParticipantResponded.d.ts +30 -4
  132. package/dist/packages/myos/schemas/AddingParticipantResponded.d.ts.map +1 -1
  133. package/dist/packages/myos/schemas/AddingParticipantResponded.js +2 -1
  134. package/dist/packages/myos/schemas/AddingParticipantResponded.js.map +1 -1
  135. package/dist/packages/myos/schemas/Agent.d.ts +0 -3
  136. package/dist/packages/myos/schemas/Agent.d.ts.map +1 -1
  137. package/dist/packages/myos/schemas/Agent.js +0 -1
  138. package/dist/packages/myos/schemas/Agent.js.map +1 -1
  139. package/dist/packages/myos/schemas/ChatGPTConnectorAgent.d.ts +0 -3
  140. package/dist/packages/myos/schemas/ChatGPTConnectorAgent.d.ts.map +1 -1
  141. package/dist/packages/myos/schemas/InformUserToInstallMyOSPackage.d.ts +0 -5
  142. package/dist/packages/myos/schemas/InformUserToInstallMyOSPackage.d.ts.map +1 -1
  143. package/dist/packages/myos/schemas/MyOSPackage.d.ts +0 -3
  144. package/dist/packages/myos/schemas/MyOSPackage.d.ts.map +1 -1
  145. package/dist/packages/myos/schemas/RemovingParticipantRequested.d.ts +13 -2
  146. package/dist/packages/myos/schemas/RemovingParticipantRequested.d.ts.map +1 -1
  147. package/dist/packages/myos/schemas/RemovingParticipantRequested.js +2 -1
  148. package/dist/packages/myos/schemas/RemovingParticipantRequested.js.map +1 -1
  149. package/dist/packages/myos/schemas/RemovingParticipantResponded.d.ts +30 -4
  150. package/dist/packages/myos/schemas/RemovingParticipantResponded.d.ts.map +1 -1
  151. package/dist/packages/myos/schemas/RemovingParticipantResponded.js +2 -1
  152. package/dist/packages/myos/schemas/RemovingParticipantResponded.js.map +1 -1
  153. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantRequested.d.ts +7 -1
  154. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantRequested.d.ts.map +1 -1
  155. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantRequested.js +2 -2
  156. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantRequested.js.map +1 -1
  157. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantResponded.d.ts +7 -1
  158. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantResponded.d.ts.map +1 -1
  159. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantResponded.js +2 -2
  160. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantResponded.js.map +1 -1
  161. package/dist/packages/myos/schemas/SingleDocumentPermissionGranted.d.ts +7 -1
  162. package/dist/packages/myos/schemas/SingleDocumentPermissionGranted.d.ts.map +1 -1
  163. package/dist/packages/myos/schemas/SingleDocumentPermissionGranted.js +2 -2
  164. package/dist/packages/myos/schemas/SingleDocumentPermissionGranted.js.map +1 -1
  165. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantingInProgress.d.ts +9 -3
  166. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantingInProgress.d.ts.map +1 -1
  167. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantingInProgress.js +2 -2
  168. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantingInProgress.js.map +1 -1
  169. package/dist/packages/myos/schemas/SingleDocumentPermissionRejected.d.ts +7 -1
  170. package/dist/packages/myos/schemas/SingleDocumentPermissionRejected.d.ts.map +1 -1
  171. package/dist/packages/myos/schemas/SingleDocumentPermissionRejected.js +2 -2
  172. package/dist/packages/myos/schemas/SingleDocumentPermissionRejected.js.map +1 -1
  173. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokeRequested.d.ts +7 -1
  174. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokeRequested.d.ts.map +1 -1
  175. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokeRequested.js +2 -2
  176. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokeRequested.js.map +1 -1
  177. package/dist/packages/myos/schemas/SingleDocumentPermissionRevoked.d.ts +7 -1
  178. package/dist/packages/myos/schemas/SingleDocumentPermissionRevoked.d.ts.map +1 -1
  179. package/dist/packages/myos/schemas/SingleDocumentPermissionRevoked.js +2 -2
  180. package/dist/packages/myos/schemas/SingleDocumentPermissionRevoked.js.map +1 -1
  181. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokingInProgress.d.ts +9 -3
  182. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokingInProgress.d.ts.map +1 -1
  183. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokingInProgress.js +2 -2
  184. package/dist/packages/myos/schemas/SingleDocumentPermissionRevokingInProgress.js.map +1 -1
  185. package/dist/packages/myos/schemas/SingleDocumentPermissionValidated.d.ts +7 -1
  186. package/dist/packages/myos/schemas/SingleDocumentPermissionValidated.d.ts.map +1 -1
  187. package/dist/packages/myos/schemas/SingleDocumentPermissionValidated.js +2 -2
  188. package/dist/packages/myos/schemas/SingleDocumentPermissionValidated.js.map +1 -1
  189. package/dist/packages/myos/schemas/StartWorkerSessionRequested.d.ts +7 -1
  190. package/dist/packages/myos/schemas/StartWorkerSessionRequested.d.ts.map +1 -1
  191. package/dist/packages/myos/schemas/StartWorkerSessionRequested.js +2 -2
  192. package/dist/packages/myos/schemas/StartWorkerSessionRequested.js.map +1 -1
  193. package/dist/packages/myos/schemas/SubscribeToSessionRequested.d.ts +7 -1
  194. package/dist/packages/myos/schemas/SubscribeToSessionRequested.d.ts.map +1 -1
  195. package/dist/packages/myos/schemas/SubscribeToSessionRequested.js +2 -2
  196. package/dist/packages/myos/schemas/SubscribeToSessionRequested.js.map +1 -1
  197. package/dist/packages/myos/schemas/SubscriptionToSessionFailed.d.ts +7 -1
  198. package/dist/packages/myos/schemas/SubscriptionToSessionFailed.d.ts.map +1 -1
  199. package/dist/packages/myos/schemas/SubscriptionToSessionFailed.js +2 -2
  200. package/dist/packages/myos/schemas/SubscriptionToSessionFailed.js.map +1 -1
  201. package/dist/packages/myos/schemas/SubscriptionToSessionInitiated.d.ts +7 -1
  202. package/dist/packages/myos/schemas/SubscriptionToSessionInitiated.d.ts.map +1 -1
  203. package/dist/packages/myos/schemas/SubscriptionToSessionInitiated.js +2 -2
  204. package/dist/packages/myos/schemas/SubscriptionToSessionInitiated.js.map +1 -1
  205. package/dist/packages/myos/schemas/SubscriptionToSessionRevoked.d.ts +7 -1
  206. package/dist/packages/myos/schemas/SubscriptionToSessionRevoked.d.ts.map +1 -1
  207. package/dist/packages/myos/schemas/SubscriptionToSessionRevoked.js +2 -2
  208. package/dist/packages/myos/schemas/SubscriptionToSessionRevoked.js.map +1 -1
  209. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantRequested.d.ts +7 -1
  210. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantRequested.d.ts.map +1 -1
  211. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantRequested.js +2 -2
  212. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantRequested.js.map +1 -1
  213. package/dist/packages/myos/schemas/WorkerAgencyPermissionGranted.d.ts +7 -1
  214. package/dist/packages/myos/schemas/WorkerAgencyPermissionGranted.d.ts.map +1 -1
  215. package/dist/packages/myos/schemas/WorkerAgencyPermissionGranted.js +2 -2
  216. package/dist/packages/myos/schemas/WorkerAgencyPermissionGranted.js.map +1 -1
  217. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantingInProgress.d.ts +9 -3
  218. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantingInProgress.d.ts.map +1 -1
  219. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantingInProgress.js +2 -2
  220. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrantingInProgress.js.map +1 -1
  221. package/dist/packages/myos/schemas/WorkerAgencyPermissionInvalid.d.ts +7 -1
  222. package/dist/packages/myos/schemas/WorkerAgencyPermissionInvalid.d.ts.map +1 -1
  223. package/dist/packages/myos/schemas/WorkerAgencyPermissionInvalid.js +2 -2
  224. package/dist/packages/myos/schemas/WorkerAgencyPermissionInvalid.js.map +1 -1
  225. package/dist/packages/myos/schemas/WorkerAgencyPermissionRejected.d.ts +7 -1
  226. package/dist/packages/myos/schemas/WorkerAgencyPermissionRejected.d.ts.map +1 -1
  227. package/dist/packages/myos/schemas/WorkerAgencyPermissionRejected.js +2 -2
  228. package/dist/packages/myos/schemas/WorkerAgencyPermissionRejected.js.map +1 -1
  229. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokeRequested.d.ts +7 -1
  230. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokeRequested.d.ts.map +1 -1
  231. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokeRequested.js +2 -2
  232. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokeRequested.js.map +1 -1
  233. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevoked.d.ts +7 -1
  234. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevoked.d.ts.map +1 -1
  235. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevoked.js +2 -2
  236. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevoked.js.map +1 -1
  237. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokingInProgress.d.ts +9 -3
  238. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokingInProgress.d.ts.map +1 -1
  239. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokingInProgress.js +2 -2
  240. package/dist/packages/myos/schemas/WorkerAgencyPermissionRevokingInProgress.js.map +1 -1
  241. package/dist/packages/myos/schemas/WorkerAgencyPermissionValidated.d.ts +7 -1
  242. package/dist/packages/myos/schemas/WorkerAgencyPermissionValidated.d.ts.map +1 -1
  243. package/dist/packages/myos/schemas/WorkerAgencyPermissionValidated.js +2 -2
  244. package/dist/packages/myos/schemas/WorkerAgencyPermissionValidated.js.map +1 -1
  245. package/dist/packages/myos/schemas/WorkerSessionStarting.d.ts +7 -1
  246. package/dist/packages/myos/schemas/WorkerSessionStarting.d.ts.map +1 -1
  247. package/dist/packages/myos/schemas/WorkerSessionStarting.js +2 -2
  248. package/dist/packages/myos/schemas/WorkerSessionStarting.js.map +1 -1
  249. package/dist/packages/myos/schemas/index.d.ts +271 -85
  250. package/dist/packages/myos/schemas/index.d.ts.map +1 -1
  251. package/dist/packages/myos/schemas/index.js +37 -40
  252. package/dist/packages/myos/schemas/index.js.map +1 -1
  253. package/dist/repository.d.ts +1440 -1349
  254. package/dist/repository.d.ts.map +1 -1
  255. package/dist/repository.js.map +1 -1
  256. package/package.json +2 -2
  257. package/dist/packages/conversation/contents/TimelineChannelV2.d.ts +0 -24
  258. package/dist/packages/conversation/contents/TimelineChannelV2.d.ts.map +0 -1
  259. package/dist/packages/conversation/contents/TimelineChannelV2.js +0 -24
  260. package/dist/packages/conversation/contents/TimelineChannelV2.js.map +0 -1
  261. package/dist/packages/conversation/schemas/TimelineChannelV2.d.ts +0 -34
  262. package/dist/packages/conversation/schemas/TimelineChannelV2.d.ts.map +0 -1
  263. package/dist/packages/conversation/schemas/TimelineChannelV2.js +0 -12
  264. package/dist/packages/conversation/schemas/TimelineChannelV2.js.map +0 -1
  265. package/dist/packages/myos/contents/AgentLLM.d.ts +0 -14
  266. package/dist/packages/myos/contents/AgentLLM.d.ts.map +0 -1
  267. package/dist/packages/myos/contents/AgentLLM.js +0 -14
  268. package/dist/packages/myos/contents/AgentLLM.js.map +0 -1
  269. package/dist/packages/myos/schemas/AgentLLM.d.ts +0 -20
  270. package/dist/packages/myos/schemas/AgentLLM.d.ts.map +0 -1
  271. package/dist/packages/myos/schemas/AgentLLM.js +0 -10
  272. package/dist/packages/myos/schemas/AgentLLM.js.map +0 -1
@@ -1,96 +1,97 @@
1
- export { WorkerAgencyPermissionGrantRequested } from './WorkerAgencyPermissionGrantRequested.js';
1
+ export { SingleDocumentPermissionRevoked } from './SingleDocumentPermissionRevoked.js';
2
+ export { WorkerAgencyPermissionInvalid } from './WorkerAgencyPermissionInvalid.js';
2
3
  export { SubscriptionUpdate } from './SubscriptionUpdate.js';
3
4
  export { MyOSTimeline } from './MyOSTimeline.js';
4
- export { DocumentSessionBootstrap } from './DocumentSessionBootstrap.js';
5
- export { SingleDocumentPermissionRejected } from './SingleDocumentPermissionRejected.js';
6
- export { SingleDocumentPermissionGrantResponded } from './SingleDocumentPermissionGrantResponded.js';
5
+ export { WorkerAgencyPermissionGrant } from './WorkerAgencyPermissionGrant.js';
6
+ export { WorkerSessionStarting } from './WorkerSessionStarting.js';
7
+ export { StartWorkerSessionRequested } from './StartWorkerSessionRequested.js';
7
8
  export { CallOperationResponded } from './CallOperationResponded.js';
8
9
  export { AgentActor } from './AgentActor.js';
9
- export { WorkerAgencyPermissionGrant } from './WorkerAgencyPermissionGrant.js';
10
- export { InformUserToInstallMyOSPackage } from './InformUserToInstallMyOSPackage.js';
11
10
  export { DocumentLinks } from './DocumentLinks.js';
12
- export { WorkerAgencyPermissionRevokeRequested } from './WorkerAgencyPermissionRevokeRequested.js';
13
11
  export { MyOSAgentChannel } from './MyOSAgentChannel.js';
14
12
  export { MyOSWorkerAgency } from './MyOSWorkerAgency.js';
15
13
  export { SingleDocumentPermissionInvalid } from './SingleDocumentPermissionInvalid.js';
14
+ export { MyOSPackage } from './MyOSPackage.js';
15
+ export { SingleDocumentPermissionGrantingInProgress } from './SingleDocumentPermissionGrantingInProgress.js';
16
16
  export { PrincipalActor } from './PrincipalActor.js';
17
17
  export { WorkerAgencyPermission } from './WorkerAgencyPermission.js';
18
+ export { SingleDocumentPermissionGrantResponded } from './SingleDocumentPermissionGrantResponded.js';
18
19
  export { WorkerAgencyPermissionRevokingInProgress } from './WorkerAgencyPermissionRevokingInProgress.js';
19
- export { WorkerAgencyPermissionInvalid } from './WorkerAgencyPermissionInvalid.js';
20
- export { SingleDocumentPermissionRevokingInProgress } from './SingleDocumentPermissionRevokingInProgress.js';
21
- export { WorkerAgencyPermissionRevoked } from './WorkerAgencyPermissionRevoked.js';
20
+ export { RemovingParticipantResponded } from './RemovingParticipantResponded.js';
22
21
  export { MyOSParticipantsOrchestration } from './MyOSParticipantsOrchestration.js';
23
22
  export { DocumentAnchors } from './DocumentAnchors.js';
23
+ export { DocumentSessionBootstrap } from './DocumentSessionBootstrap.js';
24
24
  export { MyOSAgent } from './MyOSAgent.js';
25
- export { MyOSDocumentSessionReference } from './MyOSDocumentSessionReference.js';
26
25
  export { AnchorAutomationTemplate } from './AnchorAutomationTemplate.js';
26
+ export { WorkerAgencyPermissionGranted } from './WorkerAgencyPermissionGranted.js';
27
+ export { MyOSDocumentSessionReference } from './MyOSDocumentSessionReference.js';
28
+ export { RemovingParticipantRequested } from './RemovingParticipantRequested.js';
29
+ export { Agent } from './Agent.js';
30
+ export { SingleDocumentPermissionGranted } from './SingleDocumentPermissionGranted.js';
31
+ export { AddingParticipantRequested } from './AddingParticipantRequested.js';
27
32
  export { SessionEpochAdvanced } from './SessionEpochAdvanced.js';
28
33
  export { BootstrapFailed } from './BootstrapFailed.js';
29
- export { SingleDocumentPermissionGrantingInProgress } from './SingleDocumentPermissionGrantingInProgress.js';
30
- export { WorkerAgencyPermissionGrantingInProgress } from './WorkerAgencyPermissionGrantingInProgress.js';
34
+ export { WorkerAgencyPermissionRevokeRequested } from './WorkerAgencyPermissionRevokeRequested.js';
31
35
  export { SingleDocumentPermissionValidated } from './SingleDocumentPermissionValidated.js';
32
- export { AddingParticipantRequested } from './AddingParticipantRequested.js';
36
+ export { WorkerAgencyPermissionRevoked } from './WorkerAgencyPermissionRevoked.js';
33
37
  export { SingleDocumentPermissionGrantToDocument } from './SingleDocumentPermissionGrantToDocument.js';
34
- export { Agent } from './Agent.js';
35
38
  export { CallOperationFailed } from './CallOperationFailed.js';
36
39
  export { DocumentLink } from './DocumentLink.js';
37
- export { SingleDocumentPermissionRevoked } from './SingleDocumentPermissionRevoked.js';
38
- export { StartWorkerSessionRequested } from './StartWorkerSessionRequested.js';
39
- export { WorkerAgencyPermissionRejected } from './WorkerAgencyPermissionRejected.js';
40
+ export { SubscribeToSessionRequested } from './SubscribeToSessionRequested.js';
40
41
  export { AddingParticipantResponded } from './AddingParticipantResponded.js';
41
42
  export { MyOSSessionInteraction } from './MyOSSessionInteraction.js';
42
- export { SubscriptionToSessionRevoked } from './SubscriptionToSessionRevoked.js';
43
43
  export { ParticipantActivationState } from './ParticipantActivationState.js';
44
- export { SubscribeToSessionRequested } from './SubscribeToSessionRequested.js';
44
+ export { InformUserToInstallMyOSPackage } from './InformUserToInstallMyOSPackage.js';
45
+ export { SingleDocumentPermissionRevokingInProgress } from './SingleDocumentPermissionRevokingInProgress.js';
45
46
  export { MyOSSessionLink } from './MyOSSessionLink.js';
46
47
  export { Link } from './Link.js';
47
- export { AgentLLM } from './AgentLLM.js';
48
48
  export { DocumentTypeLink } from './DocumentTypeLink.js';
49
49
  export { CallOperationAccepted } from './CallOperationAccepted.js';
50
50
  export { SingleDocumentPermissionSet } from './SingleDocumentPermissionSet.js';
51
- export { SubscriptionToSessionInitiated } from './SubscriptionToSessionInitiated.js';
52
- export { SingleDocumentPermissionGranted } from './SingleDocumentPermissionGranted.js';
51
+ export { SingleDocumentPermissionRevokeRequested } from './SingleDocumentPermissionRevokeRequested.js';
52
+ export { SingleDocumentPermissionGrantRequested } from './SingleDocumentPermissionGrantRequested.js';
53
53
  export { ParticipantActivated } from './ParticipantActivated.js';
54
54
  export { ParticipantResolved } from './ParticipantResolved.js';
55
- export { WorkerAgencyPermissionGranted } from './WorkerAgencyPermissionGranted.js';
55
+ export { SingleDocumentPermissionGrantToAccount } from './SingleDocumentPermissionGrantToAccount.js';
56
56
  export { CallOperationRequested } from './CallOperationRequested.js';
57
57
  export { AllParticipantsReady } from './AllParticipantsReady.js';
58
58
  export { MyOSAdminBase } from './MyOSAdminBase.js';
59
59
  export { TargetDocumentSessionStarted } from './TargetDocumentSessionStarted.js';
60
- export { RemovingParticipantRequested } from './RemovingParticipantRequested.js';
61
- export { RemovingParticipantResponded } from './RemovingParticipantResponded.js';
62
60
  export { MyOSTimelineEntry } from './MyOSTimelineEntry.js';
63
- export { WorkerSessionStarting } from './WorkerSessionStarting.js';
61
+ export { WorkerAgencyPermissionRejected } from './WorkerAgencyPermissionRejected.js';
62
+ export { SubscriptionToSessionRevoked } from './SubscriptionToSessionRevoked.js';
63
+ export { ChatGPTConnectorAgent } from './ChatGPTConnectorAgent.js';
64
64
  export { MyOSAgentEvent } from './MyOSAgentEvent.js';
65
- export { MyOSPackage } from './MyOSPackage.js';
66
- export { SingleDocumentPermissionRevokeRequested } from './SingleDocumentPermissionRevokeRequested.js';
65
+ export { WorkerAgencyPermissionValidated } from './WorkerAgencyPermissionValidated.js';
66
+ export { SubscriptionToSessionInitiated } from './SubscriptionToSessionInitiated.js';
67
67
  export { MyOSTimelineChannel } from './MyOSTimelineChannel.js';
68
- export { ChatGPTConnectorAgent } from './ChatGPTConnectorAgent.js';
68
+ export { WorkerAgencyPermissionGrantRequested } from './WorkerAgencyPermissionGrantRequested.js';
69
69
  export { DocumentAnchor } from './DocumentAnchor.js';
70
- export { WorkerAgencyPermissionValidated } from './WorkerAgencyPermissionValidated.js';
71
- export { SingleDocumentPermissionGrantRequested } from './SingleDocumentPermissionGrantRequested.js';
70
+ export { WorkerAgencyPermissionGrantingInProgress } from './WorkerAgencyPermissionGrantingInProgress.js';
71
+ export { SingleDocumentPermissionRejected } from './SingleDocumentPermissionRejected.js';
72
72
  export { Participant } from './Participant.js';
73
73
  export { SubscriptionToSessionFailed } from './SubscriptionToSessionFailed.js';
74
- export { SingleDocumentPermissionGrantToAccount } from './SingleDocumentPermissionGrantToAccount.js';
75
74
  export declare const contents: {
76
- readonly '2533GSBC4sXbbhDNdB6hKnRoySzQDziUb9u7bK3sa7tD': {
77
- readonly allowedWorkerAgencyPermissions: {
75
+ readonly '29JSV8DwY6x3zfvAqiM7xNc96i46sKcunFYgfywBkF2f': {
76
+ readonly description: "Rights granted by this PGD have been retracted.";
77
+ readonly name: "Single Document Permission Revoked";
78
+ readonly type: {
79
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
80
+ };
81
+ };
82
+ readonly '29zvV2MA4XAwLoGoNLLhLMa61mEgGceFnDvMznfQauYY': {
83
+ readonly description: "Emitted on initialise when local shape checks fail.";
84
+ readonly issues: {
78
85
  readonly itemType: {
79
- readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
86
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
80
87
  };
81
88
  readonly type: {
82
89
  readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
83
90
  };
84
91
  };
85
- readonly description: "Parent worker requests authority to start specific sub-worker types and receive per-instance SDPGs.";
86
- readonly name: "Worker Agency Permission Grant Requested";
87
- readonly onBehalfOf: {
88
- readonly type: {
89
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
90
- };
91
- };
92
+ readonly name: "Worker Agency Permission Invalid";
92
93
  readonly type: {
93
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
94
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
94
95
  };
95
96
  };
96
97
  readonly '2gc8djtKGGRPjGfMQzvJZMviaXm4ytM1nA4DVbfyjkrW': {
@@ -128,112 +129,81 @@ export declare const contents: {
128
129
  readonly blueId: "3Ge54FsGJaaeZmm8nTKJdS6HVdYhiR3g18fDwg3Ev1Sa";
129
130
  };
130
131
  };
131
- readonly '2K3rW6d4KychEQDerQpigPzQp8wHTJzbmueJaDXfGZqg': {
132
- readonly bootstrapError: {
133
- readonly description: "Error message explaining bootstrap failure";
134
- readonly type: {
135
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
136
- };
137
- };
138
- readonly bootstrapStatus: {
139
- readonly description: "Overall bootstrap process status";
140
- readonly type: {
141
- readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
142
- };
143
- };
144
- readonly capabilities: {
145
- readonly description: "Optional MyOS Admin capability contracts to attach (participantsOrchestration, sessionInteraction, workerAgency)";
146
- readonly keyType: {
147
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
132
+ readonly '2NN4VerhNHSyBcyoJpgtcuURkss2QRMmGkocQobJ8JYP': {
133
+ readonly allowedWorkerAgencyPermissions: {
134
+ readonly itemType: {
135
+ readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
148
136
  };
149
137
  readonly type: {
150
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
151
- };
152
- readonly valueType: {
153
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
138
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
154
139
  };
155
140
  };
156
- readonly channelBindings: {
157
- readonly description: "Maps channel names to participant identifiers";
158
- readonly keyType: {
159
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
160
- };
161
- readonly type: {
162
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
141
+ readonly contracts: {
142
+ readonly granterChannel: {
143
+ readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
144
+ readonly type: {
145
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
146
+ };
163
147
  };
164
- readonly valueType: {
165
- readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
148
+ readonly initLifecycleChannel: {
149
+ readonly event: {
150
+ readonly type: {
151
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
152
+ };
153
+ };
154
+ readonly type: {
155
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
156
+ };
166
157
  };
167
- };
168
- readonly contracts: {
169
- readonly handleBootstrapFailed: {
158
+ readonly revoke: {
170
159
  readonly channel: {
171
160
  readonly type: {
172
161
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
173
162
  };
174
- readonly value: "triggeredEventsChannel";
163
+ readonly value: "granterChannel";
175
164
  };
176
- readonly event: {
165
+ readonly description: "Granter requests revocation (handled by MyOS Admin)";
166
+ readonly request: {
167
+ readonly description: "Optional human-readable reason";
177
168
  readonly type: {
178
- readonly blueId: "9iEADVdqxqgacF3GAZVMFZu4m5ywuNpsGzButLUNkPWo";
169
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
170
+ };
171
+ };
172
+ readonly type: {
173
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
174
+ };
175
+ };
176
+ readonly revokeImplGranter: {
177
+ readonly operation: {
178
+ readonly type: {
179
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
179
180
  };
181
+ readonly value: "revoke";
180
182
  };
181
183
  readonly steps: {
182
184
  readonly items: readonly [{
183
- readonly changeset: {
184
- readonly items: readonly [{
185
- readonly op: {
186
- readonly type: {
187
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
188
- };
189
- readonly value: "replace";
190
- };
191
- readonly path: {
192
- readonly type: {
193
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
194
- };
195
- readonly value: "/bootstrapError";
196
- };
197
- readonly val: {
198
- readonly type: {
199
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
200
- };
201
- readonly value: "${event.reason}";
202
- };
203
- }];
204
- };
205
- readonly name: "Update Error Message";
206
- readonly type: {
207
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
208
- };
209
- }, {
210
185
  readonly code: {
211
186
  readonly type: {
212
187
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
213
188
  };
214
- readonly value: "return { events: [ { type: 'Status Change', status: { type: 'Status Failed' } } ] };\n";
189
+ readonly value: "return {\n events: [\n {\n type: \"MyOS/Worker Agency Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
215
190
  };
216
- readonly name: "Emit Failure Event";
191
+ readonly name: "EmitRevokeRequested";
217
192
  readonly type: {
218
193
  readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
219
194
  };
220
195
  }];
221
196
  };
222
197
  readonly type: {
223
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
198
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
224
199
  };
225
200
  };
226
- readonly handleParticipantResolved: {
201
+ readonly validateOnInit: {
227
202
  readonly channel: {
228
203
  readonly type: {
229
204
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
230
205
  };
231
- readonly value: "triggeredEventsChannel";
232
- };
233
- readonly event: {
234
- readonly type: {
235
- readonly blueId: "EQVu8aZyp5ivTyKpSm8ueVsDLgprfcrHzr5QWdH1p6Cz";
236
- };
206
+ readonly value: "initLifecycleChannel";
237
207
  };
238
208
  readonly steps: {
239
209
  readonly items: readonly [{
@@ -241,74 +211,575 @@ export declare const contents: {
241
211
  readonly type: {
242
212
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
243
213
  };
244
- readonly value: "const participantState = {\n accountStatus: event.participant?.status?.accountStatus || 'Unknown', // \"Active\" | \"Inactive\"\n errorMessage: ''\n};\n\nreturn {\n participantState,\n channelName: event.channelName\n};\n";
214
+ readonly value: "const issues = [];\n\nconst unwrapText = value => {\n if (typeof value === 'string') {\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (value && typeof value === 'object') {\n if (typeof value.value === 'string') {\n const trimmed = value.value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (typeof value.workerType === 'string') {\n const trimmed = value.workerType.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (typeof value.name === 'string') {\n const trimmed = value.name.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n }\n return undefined;\n};\n\nconst unwrapBoolean = value => {\n if (typeof value === 'boolean') {\n return value;\n }\n if (value && typeof value === 'object') {\n if (typeof value.value === 'boolean') {\n return value.value;\n }\n if (\n value.value &&\n typeof value.value === 'object' &&\n typeof value.value.value === 'boolean'\n ) {\n return value.value.value;\n }\n }\n return undefined;\n};\n\nconst hasBooleanValue = value => {\n if (typeof value === 'boolean') {\n return true;\n }\n if (value && typeof value === 'object') {\n if (typeof value.value === 'boolean') {\n return true;\n }\n if (\n value.value &&\n typeof value.value === 'object' &&\n typeof value.value.value === 'boolean'\n ) {\n return true;\n }\n }\n return false;\n};\n\nconst unwrapArray = value => {\n if (Array.isArray(value)) {\n return value;\n }\n if (value && typeof value === 'object' && Array.isArray(value.items)) {\n return value.items;\n }\n return [];\n};\n\nconst unwrapRecord = value => {\n if (value && typeof value === 'object' && !Array.isArray(value)) {\n if (value.value && typeof value.value === 'object') {\n return value.value;\n }\n return value;\n }\n return {};\n};\n\n// --- granter binding (owner account) ---\nconst granterId = document('/contracts/granterChannel/accountId');\nif (typeof granterId !== 'string' || granterId.length === 0) {\n issues.push(\"granterChannel must be bound to an accountId\");\n}\n// --- grantee (parent worker) session id ---\nconst granteeDocumentId = document('/granteeDocumentId');\nif (\n typeof granteeDocumentId !== 'string' ||\n granteeDocumentId.trim().length === 0\n) {\n issues.push(\"granteeDocumentId must be a non-empty string\");\n}\n// --- allowedWorkerAgencyPermissions : list of { workerType, permissions } ---\nconst list = document('/allowedWorkerAgencyPermissions');\nif (!Array.isArray(list) || list.length === 0) {\n issues.push(\"allowedWorkerAgencyPermissions must be a non-empty array\");\n} else {\n // helper: validate Single Document Permission Set\n const validateSDPS = (p, path) => {\n const record = unwrapRecord(p);\n if (Object.keys(record).length === 0) {\n issues.push(`${path} must be an object`);\n return;\n }\n // read must be true to allow any access at all\n const read = unwrapBoolean(record.read);\n if (read !== true) {\n issues.push(`${path}.read must be true`);\n }\n const share = record.share;\n const shareValue = unwrapBoolean(share);\n if (hasBooleanValue(share) && typeof shareValue !== 'boolean') {\n issues.push(`${path}.share must be boolean if provided`);\n }\n const allOps = record.allOps;\n const allOpsValue = unwrapBoolean(allOps);\n if (hasBooleanValue(allOps) && typeof allOpsValue !== 'boolean') {\n issues.push(`${path}.allOps must be boolean if provided`);\n }\n const singleOpsRaw = unwrapArray(record.singleOps)\n .map(entry => unwrapText(entry))\n .filter(Boolean);\n const hasSingle = singleOpsRaw.length > 0;\n if (hasSingle) {\n const bad = singleOpsRaw.length !== unwrapArray(record.singleOps).length;\n if (bad) issues.push(`${path}.singleOps must contain only non-empty strings`);\n }\n if (allOpsValue === true && hasSingle) {\n issues.push(`${path}.allOps=true and ${path}.singleOps are mutually exclusive`);\n }\n // Note: it is valid to have read=true with neither allOps nor singleOps (read-only template)\n };\n const seenTypes = new Set();\n list.forEach((item, idx) => {\n const itemPath = `/allowedWorkerAgencyPermissions[${idx}]`;\n // shape\n if (typeof item !== 'object' || item === null) {\n issues.push(`${itemPath} must be an object`);\n return;\n }\n // workerType\n const workerType = unwrapText(item.workerType);\n if (!workerType) {\n issues.push(`${itemPath}.workerType must be a non-empty string`);\n } else {\n if (seenTypes.has(workerType)) {\n issues.push(`duplicate workerType '${workerType}' in allowedWorkerAgencyPermissions`);\n } else {\n seenTypes.add(workerType);\n }\n }\n // permissions (Single Document Permission Set)\n const perms = item.permissions;\n if (typeof perms === 'undefined') {\n issues.push(`${itemPath}.permissions is required`);\n } else {\n validateSDPS(perms, `${itemPath}.permissions`);\n }\n });\n}\nif (issues.length > 0) {\n return { events: [ { type: \"MyOS/Worker Agency Permission Invalid\", issues } ] };\n} else {\n return { events: [ { type: \"MyOS/Worker Agency Permission Validated\" } ] };\n}\n";
245
215
  };
246
- readonly name: "Prepare Participant State";
216
+ readonly name: "ValidateBasicShape";
247
217
  readonly type: {
248
218
  readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
249
219
  };
250
- }, {
251
- readonly changeset: {
252
- readonly items: readonly [{
253
- readonly op: {
254
- readonly type: {
255
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
256
- };
257
- readonly value: "replace";
258
- };
259
- readonly path: {
260
- readonly type: {
261
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
262
- };
263
- readonly value: "/participantsState/${steps['Prepare Participant State'].channelName}";
264
- };
265
- readonly val: {
266
- readonly type: {
267
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
268
- };
269
- readonly value: "${steps['Prepare Participant State'].participantState}";
270
- };
271
- }];
272
- };
273
- readonly name: "Update Participants State";
274
- readonly type: {
275
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
276
- };
277
220
  }];
278
221
  };
279
222
  readonly type: {
280
223
  readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
281
224
  };
282
225
  };
283
- readonly handleStatusChange: {
284
- readonly channel: {
285
- readonly type: {
286
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
287
- };
288
- readonly value: "triggeredEventsChannel";
289
- };
290
- readonly event: {
291
- readonly type: {
292
- readonly blueId: "C48nKSkbxraMSv4gCiGYVHKFjmtK12k63Yasn95zknWE";
293
- };
294
- };
295
- readonly steps: {
296
- readonly items: readonly [{
297
- readonly changeset: {
298
- readonly items: readonly [{
299
- readonly op: {
300
- readonly type: {
301
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
302
- };
303
- readonly value: "replace";
304
- };
305
- readonly path: {
306
- readonly type: {
307
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
308
- };
309
- readonly value: "/bootstrapStatus";
310
- };
311
- readonly val: {
226
+ };
227
+ readonly granteeDocumentId: {
228
+ readonly type: {
229
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
230
+ };
231
+ };
232
+ readonly name: "Worker Agency Permission Grant";
233
+ readonly type: {
234
+ readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
235
+ };
236
+ };
237
+ readonly '3B7ErHwZ9NHiW4e6msFDt57U8sTvFXZQBEwHzcdNCjmf': {
238
+ readonly description: "Worker session is starting.";
239
+ readonly granteeDocumentId: {
240
+ readonly type: {
241
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
242
+ };
243
+ };
244
+ readonly name: "Worker Session Starting";
245
+ readonly targetDocumentType: {
246
+ readonly type: {
247
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
248
+ };
249
+ };
250
+ readonly type: {
251
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
252
+ };
253
+ };
254
+ readonly '3f9PA4RUDBxs6DsqGEYjna2RNf8XhCDHjQGDjLyNZyRh': {
255
+ readonly capabilities: {
256
+ readonly description: "Optional MyOS Admin capability contracts to attach (participantsOrchestration, sessionInteraction, workerAgency)";
257
+ readonly keyType: {
258
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
259
+ };
260
+ readonly type: {
261
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
262
+ };
263
+ readonly valueType: {
264
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
265
+ };
266
+ };
267
+ readonly channelBindings: {
268
+ readonly description: "Maps channel names to participant identifiers";
269
+ readonly keyType: {
270
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
271
+ };
272
+ readonly type: {
273
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
274
+ };
275
+ readonly valueType: {
276
+ readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
277
+ };
278
+ };
279
+ readonly description: "Parent worker requests from MyOS Admin to start a new child session. Parent worker requires to have Worker Agency Permission Grant.";
280
+ readonly document: {
281
+ readonly description: "Target Blue document to be bootstrapped";
282
+ };
283
+ readonly initialMessages: {
284
+ readonly defaultMessage: {
285
+ readonly description: "Default invitation message sent to all participants";
286
+ readonly type: {
287
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
288
+ };
289
+ };
290
+ readonly description: "Messages sent to participants when inviting them to the bootstrapped document";
291
+ readonly perChannel: {
292
+ readonly description: "Per-channel custom invitation messages";
293
+ readonly keyType: {
294
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
295
+ };
296
+ readonly type: {
297
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
298
+ };
299
+ readonly valueType: {
300
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
301
+ };
302
+ };
303
+ };
304
+ readonly name: "Start Worker Session Requested";
305
+ readonly onBehalfOf: {
306
+ readonly type: {
307
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
308
+ };
309
+ };
310
+ readonly type: {
311
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
312
+ };
313
+ };
314
+ readonly '3P4vsTx8Ky2pucXxKgkn8MouveP2DBRjkwZckCG5b9Lb': {
315
+ readonly description: "MyOS Admin forwards operation Response events to the requesting session";
316
+ readonly events: {
317
+ readonly description: "Operation Response events";
318
+ readonly itemType: {
319
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
320
+ };
321
+ readonly type: {
322
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
323
+ };
324
+ };
325
+ readonly name: "Call Operation Responded";
326
+ readonly type: {
327
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
328
+ };
329
+ };
330
+ readonly '3SJK2XGFHJgqXyCK4sjZ6tmAk3VjyuX6imGBJmV2LgQZ': {
331
+ readonly agentRef: {
332
+ readonly description: "Which Worker acted";
333
+ readonly type: {
334
+ readonly blueId: "8jCUCDoX7LUd5UaktCD7i4xxEheCWFQDkTbbNTEdYVZ9";
335
+ };
336
+ };
337
+ readonly delegation: {
338
+ readonly description: "The grant document/session used";
339
+ readonly type: {
340
+ readonly blueId: "8jCUCDoX7LUd5UaktCD7i4xxEheCWFQDkTbbNTEdYVZ9";
341
+ };
342
+ };
343
+ readonly name: "Agent Actor";
344
+ readonly onBehalfOf: {
345
+ readonly description: "The principal's accountId";
346
+ readonly type: {
347
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
348
+ };
349
+ };
350
+ readonly type: {
351
+ readonly blueId: "CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ";
352
+ };
353
+ };
354
+ readonly '4cmrbevB6K23ZenjqwmNxpnaw6RF4VB3wkP7XB59V7W5': {
355
+ readonly description: "Dictionary of named outgoing connections from this document to anchors on other documents or sessions. MyOS indexes supported link variants to power discovery.";
356
+ readonly keyType: {
357
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
358
+ };
359
+ readonly name: "Document Links";
360
+ readonly type: {
361
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
362
+ };
363
+ readonly valueType: {
364
+ readonly blueId: "D2ERUvbpn6R6PR7hjFsGofwQsu9bkRfc6wbSYHcfJtMD";
365
+ };
366
+ };
367
+ readonly '4fYuD2ZdTQpm5T6Xtibge9SKkNA8RrvDVmKmArrToQQW': {
368
+ readonly agent: {
369
+ readonly description: "Optional MyOS agent associated with this channel";
370
+ readonly type: {
371
+ readonly blueId: "8DQrCT6Mf9wHQyRc4NdYhjFW4FbKi83no2QPe54UhdQ5";
372
+ };
373
+ };
374
+ readonly description: "MyOS-specific agent channel extending Channel with agent and event fields";
375
+ readonly event: {
376
+ readonly description: "Optional event node reference";
377
+ };
378
+ readonly name: "MyOS Agent Channel";
379
+ };
380
+ readonly '4Lix4AKXvBDvrwxw2htSdYFKxL4wugEQzqoSEYet5Dh1': {
381
+ readonly name: "MyOS Worker Agency";
382
+ };
383
+ readonly '567voUMtKJQoqru6ZVPYb4EGwdeV99rUSAqsnod7gqfd': {
384
+ readonly description: "Emitted on initialise when local shape checks fail.";
385
+ readonly issues: {
386
+ readonly itemType: {
387
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
388
+ };
389
+ readonly type: {
390
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
391
+ };
392
+ };
393
+ readonly name: "Single Document Permission Invalid";
394
+ readonly type: {
395
+ readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
396
+ };
397
+ };
398
+ readonly '5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr': {
399
+ readonly agentStoreDescription: {
400
+ readonly description: "Human-readable description for stores/directories";
401
+ readonly type: {
402
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
403
+ };
404
+ };
405
+ readonly automationTemplate: {
406
+ readonly description: "Optional automation template to start post-creation";
407
+ readonly type: {
408
+ readonly blueId: "8eyv5ogjHbTqUeaJKWHMenLs3MaCnpGSQkbPrCqvk2Ga";
409
+ };
410
+ };
411
+ readonly capabilities: {
412
+ readonly description: "Optional MyOS Admin capability contracts to attach (participantsOrchestration, sessionInteraction, workerAgency)";
413
+ readonly keyType: {
414
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
415
+ };
416
+ readonly type: {
417
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
418
+ };
419
+ readonly valueType: {
420
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
421
+ };
422
+ };
423
+ readonly channelBindings: {
424
+ readonly description: "Maps channel names to participant identifiers";
425
+ readonly keyType: {
426
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
427
+ };
428
+ readonly type: {
429
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
430
+ };
431
+ readonly valueType: {
432
+ readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
433
+ };
434
+ };
435
+ readonly description: "A distributable blueprint for a new Agent session, which can include pre-configured automations that start on installation.\n";
436
+ readonly document: {
437
+ readonly description: "The full initial state of the Agent to be created. Root type MUST specialize 'Agent'.";
438
+ };
439
+ readonly initialMessages: {
440
+ readonly defaultMessage: {
441
+ readonly description: "Default invitation message sent to all participants";
442
+ readonly type: {
443
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
444
+ };
445
+ };
446
+ readonly description: "Optional per-participant invitation messages (installer's message is public)";
447
+ readonly perChannel: {
448
+ readonly description: "Per-channel custom invitation messages";
449
+ readonly keyType: {
450
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
451
+ };
452
+ readonly type: {
453
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
454
+ };
455
+ readonly valueType: {
456
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
457
+ };
458
+ };
459
+ };
460
+ readonly installerChannel: {
461
+ readonly description: "Channel name in 'document' to bind to the installing user/account";
462
+ readonly type: {
463
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
464
+ };
465
+ };
466
+ readonly name: "MyOS Package";
467
+ readonly type: {
468
+ readonly blueId: "8s2rAFDtiB6sCwqeURkT4Lq7fcc2FXBkmX9B9p7R4Boc";
469
+ };
470
+ };
471
+ readonly '5dYUepkS2uQHtzhVYoHEtR4x8vaMRtNuHyiqqTvRrKGY': {
472
+ readonly description: "Admin has started applying the grant for this PGD.";
473
+ readonly name: "Single Document Permission Granting in Progress";
474
+ readonly note: {
475
+ readonly type: {
476
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
477
+ };
478
+ };
479
+ readonly permissions: {
480
+ readonly type: {
481
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
482
+ };
483
+ };
484
+ readonly targetSessionId: {
485
+ readonly type: {
486
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
487
+ };
488
+ };
489
+ readonly type: {
490
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
491
+ };
492
+ };
493
+ readonly '5GB8C22LsZGR3kkEmP5j5Zye7SR173ojzzUK99tUcoP': {
494
+ readonly accountId: {
495
+ readonly description: "MyOS account ID of the principal.";
496
+ readonly type: {
497
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
498
+ };
499
+ };
500
+ readonly description: "The base type for a direct action by the account owner.";
501
+ readonly name: "Principal Actor";
502
+ readonly type: {
503
+ readonly blueId: "CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ";
504
+ };
505
+ };
506
+ readonly '5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp': {
507
+ readonly name: "Worker Agency Permission";
508
+ readonly permissions: {
509
+ readonly description: "The permissions granted to the worker for documents of the given type.";
510
+ readonly type: {
511
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
512
+ };
513
+ };
514
+ readonly workerType: {
515
+ readonly description: "The document type the worker is allowed to create.";
516
+ };
517
+ };
518
+ readonly '5jtNV7xpaim18pUQp4uvron8uHfTjPSi6kUZQdCMGsKa': {
519
+ readonly description: "Whatever granter confirmed or rejected the request.";
520
+ readonly name: "Single Document Permission Grant Responded";
521
+ readonly permissions: {
522
+ readonly type: {
523
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
524
+ };
525
+ };
526
+ readonly reason: {
527
+ readonly type: {
528
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
529
+ };
530
+ };
531
+ readonly status: {
532
+ readonly type: {
533
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
534
+ };
535
+ };
536
+ readonly targetSessionId: {
537
+ readonly type: {
538
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
539
+ };
540
+ };
541
+ readonly type: {
542
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
543
+ };
544
+ };
545
+ readonly '5zNb9H63xeG2RjZ1gzJwyGxvTVzWdyNBb2Te6g8UXd72': {
546
+ readonly allowedWorkerAgencyPermissions: {
547
+ readonly itemType: {
548
+ readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
549
+ };
550
+ readonly type: {
551
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
552
+ };
553
+ };
554
+ readonly description: "MyOS Admin is retracting rights granted by this WAG.";
555
+ readonly granteeDocumentId: {
556
+ readonly type: {
557
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
558
+ };
559
+ };
560
+ readonly name: "Worker Agency Permission Revoking in Progress";
561
+ readonly note: {
562
+ readonly type: {
563
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
564
+ };
565
+ };
566
+ readonly type: {
567
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
568
+ };
569
+ };
570
+ readonly '6efzqM67y1po3YWbsbYSkKW8L41Tx8THeMv1q1TksAmr': {
571
+ readonly name: "Removing Participant Responded";
572
+ readonly request: {
573
+ readonly type: {
574
+ readonly blueId: "8PrHr6fcJ1xMyNFptEy2sksyYYuZ48Ypkcnjv4V2WcoD";
575
+ };
576
+ };
577
+ readonly status: {
578
+ readonly type: {
579
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
580
+ };
581
+ };
582
+ readonly type: {
583
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
584
+ };
585
+ };
586
+ readonly '6tzp2YX1rei3aAXg22SqYbeiiteGthj1LesTNCWm7wbU': {
587
+ readonly name: "MyOS Participants Orchestration";
588
+ };
589
+ readonly '7Usvk6dZMVqas3yqs23ZEXn1zu1YDPjgYiZFNYaw3puH': {
590
+ readonly description: "Dictionary of named incoming connection points (anchors) that other documents can link to. Links to an anchor are by its dictionary key.";
591
+ readonly keyType: {
592
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
593
+ };
594
+ readonly name: "Document Anchors";
595
+ readonly type: {
596
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
597
+ };
598
+ readonly valueType: {
599
+ readonly blueId: "HS9yo34TGEAM2LGcNbLh7XPN4goPRhqdGZQkiyh473Wb";
600
+ };
601
+ };
602
+ readonly '84xMEnEYr3DPBuYZL3JtcsZBBTtRH9fEEJiPnk7ASj1o': {
603
+ readonly bootstrapError: {
604
+ readonly description: "Error message explaining bootstrap failure";
605
+ readonly type: {
606
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
607
+ };
608
+ };
609
+ readonly bootstrapStatus: {
610
+ readonly description: "Overall bootstrap process status";
611
+ readonly type: {
612
+ readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
613
+ };
614
+ };
615
+ readonly capabilities: {
616
+ readonly description: "Optional MyOS Admin capability contracts to attach (participantsOrchestration, sessionInteraction, workerAgency)";
617
+ readonly keyType: {
618
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
619
+ };
620
+ readonly type: {
621
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
622
+ };
623
+ readonly valueType: {
624
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
625
+ };
626
+ };
627
+ readonly channelBindings: {
628
+ readonly description: "Maps channel names to participant identifiers";
629
+ readonly keyType: {
630
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
631
+ };
632
+ readonly type: {
633
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
634
+ };
635
+ readonly valueType: {
636
+ readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
637
+ };
638
+ };
639
+ readonly contracts: {
640
+ readonly handleBootstrapFailed: {
641
+ readonly channel: {
642
+ readonly type: {
643
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
644
+ };
645
+ readonly value: "triggeredEventsChannel";
646
+ };
647
+ readonly event: {
648
+ readonly type: {
649
+ readonly blueId: "9iEADVdqxqgacF3GAZVMFZu4m5ywuNpsGzButLUNkPWo";
650
+ };
651
+ };
652
+ readonly steps: {
653
+ readonly items: readonly [{
654
+ readonly changeset: {
655
+ readonly items: readonly [{
656
+ readonly op: {
657
+ readonly type: {
658
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
659
+ };
660
+ readonly value: "replace";
661
+ };
662
+ readonly path: {
663
+ readonly type: {
664
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
665
+ };
666
+ readonly value: "/bootstrapError";
667
+ };
668
+ readonly val: {
669
+ readonly type: {
670
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
671
+ };
672
+ readonly value: "${event.reason}";
673
+ };
674
+ }];
675
+ };
676
+ readonly name: "Update Error Message";
677
+ readonly type: {
678
+ readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
679
+ };
680
+ }, {
681
+ readonly code: {
682
+ readonly type: {
683
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
684
+ };
685
+ readonly value: "return { events: [ { type: 'Conversation/Status Change', status: { type: 'Conversation/Status Failed' } } ] };\n";
686
+ };
687
+ readonly name: "Emit Failure Event";
688
+ readonly type: {
689
+ readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
690
+ };
691
+ }];
692
+ };
693
+ readonly type: {
694
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
695
+ };
696
+ };
697
+ readonly handleParticipantResolved: {
698
+ readonly channel: {
699
+ readonly type: {
700
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
701
+ };
702
+ readonly value: "triggeredEventsChannel";
703
+ };
704
+ readonly event: {
705
+ readonly type: {
706
+ readonly blueId: "EQVu8aZyp5ivTyKpSm8ueVsDLgprfcrHzr5QWdH1p6Cz";
707
+ };
708
+ };
709
+ readonly steps: {
710
+ readonly items: readonly [{
711
+ readonly code: {
712
+ readonly type: {
713
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
714
+ };
715
+ readonly value: "const participantState = {\n accountStatus: event.participant?.status?.accountStatus || 'Unknown', // \"Active\" | \"Inactive\"\n errorMessage: ''\n};\n\nreturn {\n participantState,\n channelName: event.channelName\n};\n";
716
+ };
717
+ readonly name: "Prepare Participant State";
718
+ readonly type: {
719
+ readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
720
+ };
721
+ }, {
722
+ readonly changeset: {
723
+ readonly items: readonly [{
724
+ readonly op: {
725
+ readonly type: {
726
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
727
+ };
728
+ readonly value: "replace";
729
+ };
730
+ readonly path: {
731
+ readonly type: {
732
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
733
+ };
734
+ readonly value: "/participantsState/${steps['Prepare Participant State'].channelName}";
735
+ };
736
+ readonly val: {
737
+ readonly type: {
738
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
739
+ };
740
+ readonly value: "${steps['Prepare Participant State'].participantState}";
741
+ };
742
+ }];
743
+ };
744
+ readonly name: "Update Participants State";
745
+ readonly type: {
746
+ readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
747
+ };
748
+ }];
749
+ };
750
+ readonly type: {
751
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
752
+ };
753
+ };
754
+ readonly handleStatusChange: {
755
+ readonly channel: {
756
+ readonly type: {
757
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
758
+ };
759
+ readonly value: "triggeredEventsChannel";
760
+ };
761
+ readonly event: {
762
+ readonly type: {
763
+ readonly blueId: "C48nKSkbxraMSv4gCiGYVHKFjmtK12k63Yasn95zknWE";
764
+ };
765
+ };
766
+ readonly steps: {
767
+ readonly items: readonly [{
768
+ readonly changeset: {
769
+ readonly items: readonly [{
770
+ readonly op: {
771
+ readonly type: {
772
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
773
+ };
774
+ readonly value: "replace";
775
+ };
776
+ readonly path: {
777
+ readonly type: {
778
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
779
+ };
780
+ readonly value: "/bootstrapStatus";
781
+ };
782
+ readonly val: {
312
783
  readonly type: {
313
784
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
314
785
  };
@@ -371,7 +842,7 @@ export declare const contents: {
371
842
  readonly type: {
372
843
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
373
844
  };
374
- readonly value: "return { events: [ { type: 'Status Change', status: { type: 'Status Completed' } } ] };\n";
845
+ readonly value: "return { events: [ { type: 'Conversation/Status Change', status: { type: 'Conversation/Status Completed' } } ] };\n";
375
846
  };
376
847
  readonly name: "Emit Completion Event";
377
848
  readonly type: {
@@ -405,389 +876,106 @@ export declare const contents: {
405
876
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
406
877
  };
407
878
  readonly value: "/bootstrapStatus";
408
- };
409
- readonly val: {
410
- readonly type: {
411
- readonly blueId: "56Lhu3Z2oF3kuYG41eZAK8TvgVtRNevkbRi4D31kKWZm";
412
- };
413
- };
414
- }];
415
- };
416
- readonly name: "Initialize Bootstrap Status";
417
- readonly type: {
418
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
419
- };
420
- }];
421
- };
422
- readonly type: {
423
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
424
- };
425
- };
426
- readonly lifecycle: {
427
- readonly event: {
428
- readonly type: {
429
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
430
- };
431
- };
432
- readonly type: {
433
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
434
- };
435
- };
436
- readonly triggeredEventsChannel: {
437
- readonly type: {
438
- readonly blueId: "C77W4kVGcxL7Mkx9WL9QESPEFFL2GzWAe647s1Efprt";
439
- };
440
- };
441
- };
442
- readonly description: "MyOS-specific document for bootstrapping document sessions and tracking bootstrap progress";
443
- readonly document: {
444
- readonly description: "Target Blue document to be bootstrapped";
445
- };
446
- readonly initialMessages: {
447
- readonly defaultMessage: {
448
- readonly description: "Default invitation message sent to all participants";
449
- readonly type: {
450
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
451
- };
452
- };
453
- readonly description: "Messages sent to participants when inviting them to the bootstrapped document";
454
- readonly perChannel: {
455
- readonly description: "Per-channel custom invitation messages";
456
- readonly keyType: {
457
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
458
- };
459
- readonly type: {
460
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
461
- };
462
- readonly valueType: {
463
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
464
- };
465
- };
466
- };
467
- readonly initiatorSessionIds: {
468
- readonly description: "Session IDs created for the bootstrap initiator (caller)";
469
- readonly itemType: {
470
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
471
- };
472
- readonly type: {
473
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
474
- };
475
- };
476
- readonly name: "Document Session Bootstrap";
477
- readonly participantsState: {
478
- readonly description: "Maps channel names to participant activation tracking";
479
- readonly keyType: {
480
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
481
- };
482
- readonly type: {
483
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
484
- };
485
- readonly valueType: {
486
- readonly blueId: "CocmZUt2K7LuGukwuPSAFC7EFo5HZonozAm4tUsSmuFB";
487
- };
488
- };
489
- readonly type: {
490
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
491
- };
492
- };
493
- readonly '387NGsN9DZNttQbjZHZksVSyHjb5SSZdhxKtCmMu36yo': {
494
- readonly description: "Grant could not be applied.";
495
- readonly name: "Single Document Permission Rejected";
496
- readonly permissions: {
497
- readonly type: {
498
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
499
- };
500
- };
501
- readonly reason: {
502
- readonly type: {
503
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
504
- };
505
- };
506
- readonly targetSessionId: {
507
- readonly type: {
508
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
509
- };
510
- };
511
- readonly type: {
512
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
513
- };
514
- };
515
- readonly '3FS3vHTB9XMw2RbwatfUTCSgoh647XduUBjYcz6Bdkwh': {
516
- readonly description: "Whatever granter confirmed or rejected the request.";
517
- readonly name: "Single Document Permission Grant Responded";
518
- readonly permissions: {
519
- readonly type: {
520
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
521
- };
522
- };
523
- readonly reason: {
524
- readonly type: {
525
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
526
- };
527
- };
528
- readonly status: {
529
- readonly type: {
530
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
531
- };
532
- };
533
- readonly targetSessionId: {
534
- readonly type: {
535
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
536
- };
537
- };
538
- readonly type: {
539
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
540
- };
541
- };
542
- readonly '3P4vsTx8Ky2pucXxKgkn8MouveP2DBRjkwZckCG5b9Lb': {
543
- readonly description: "MyOS Admin forwards operation Response events to the requesting session";
544
- readonly events: {
545
- readonly description: "Operation Response events";
546
- readonly itemType: {
547
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
548
- };
549
- readonly type: {
550
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
551
- };
552
- };
553
- readonly name: "Call Operation Responded";
554
- readonly type: {
555
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
556
- };
557
- };
558
- readonly '3SJK2XGFHJgqXyCK4sjZ6tmAk3VjyuX6imGBJmV2LgQZ': {
559
- readonly agentRef: {
560
- readonly description: "Which Worker acted";
561
- readonly type: {
562
- readonly blueId: "8jCUCDoX7LUd5UaktCD7i4xxEheCWFQDkTbbNTEdYVZ9";
563
- };
564
- };
565
- readonly delegation: {
566
- readonly description: "The grant document/session used";
567
- readonly type: {
568
- readonly blueId: "8jCUCDoX7LUd5UaktCD7i4xxEheCWFQDkTbbNTEdYVZ9";
569
- };
570
- };
571
- readonly name: "Agent Actor";
572
- readonly onBehalfOf: {
573
- readonly description: "The principal's accountId";
574
- readonly type: {
575
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
576
- };
577
- };
578
- readonly type: {
579
- readonly blueId: "CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ";
580
- };
581
- };
582
- readonly '3Wb5cwcZ3P6bSjTJAVrXPBzaAvoccBauUNVud1pqpEM2': {
583
- readonly allowedWorkerAgencyPermissions: {
584
- readonly itemType: {
585
- readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
586
- };
587
- readonly type: {
588
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
589
- };
590
- };
591
- readonly contracts: {
592
- readonly granterChannel: {
593
- readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
594
- readonly type: {
595
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
596
- };
597
- };
598
- readonly initLifecycleChannel: {
599
- readonly event: {
600
- readonly type: {
601
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
602
- };
603
- };
604
- readonly type: {
605
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
606
- };
607
- };
608
- readonly revoke: {
609
- readonly channel: {
610
- readonly type: {
611
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
612
- };
613
- readonly value: "granterChannel";
614
- };
615
- readonly description: "Granter requests revocation (handled by MyOS Admin)";
616
- readonly request: {
617
- readonly description: "Optional human-readable reason";
618
- readonly type: {
619
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
620
- };
621
- };
622
- readonly type: {
623
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
624
- };
625
- };
626
- readonly revokeImplGranter: {
627
- readonly operation: {
628
- readonly type: {
629
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
630
- };
631
- readonly value: "revoke";
632
- };
633
- readonly steps: {
634
- readonly items: readonly [{
635
- readonly code: {
636
- readonly type: {
637
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
638
- };
639
- readonly value: "return {\n events: [\n {\n type: \"MyOS/Worker Agency Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
879
+ };
880
+ readonly val: {
881
+ readonly type: {
882
+ readonly blueId: "56Lhu3Z2oF3kuYG41eZAK8TvgVtRNevkbRi4D31kKWZm";
883
+ };
884
+ };
885
+ }];
640
886
  };
641
- readonly name: "EmitRevokeRequested";
887
+ readonly name: "Initialize Bootstrap Status";
642
888
  readonly type: {
643
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
889
+ readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
644
890
  };
645
891
  }];
646
892
  };
647
893
  readonly type: {
648
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
894
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
649
895
  };
650
896
  };
651
- readonly validateOnInit: {
652
- readonly channel: {
897
+ readonly lifecycle: {
898
+ readonly event: {
653
899
  readonly type: {
654
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
900
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
655
901
  };
656
- readonly value: "initLifecycleChannel";
657
- };
658
- readonly steps: {
659
- readonly items: readonly [{
660
- readonly code: {
661
- readonly type: {
662
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
663
- };
664
- readonly value: "const issues = [];\n\nconst unwrapText = value => {\n if (typeof value === 'string') {\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (value && typeof value === 'object') {\n if (typeof value.value === 'string') {\n const trimmed = value.value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (typeof value.workerType === 'string') {\n const trimmed = value.workerType.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n if (typeof value.name === 'string') {\n const trimmed = value.name.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n }\n return undefined;\n};\n\nconst unwrapBoolean = value => {\n if (typeof value === 'boolean') {\n return value;\n }\n if (value && typeof value === 'object') {\n if (typeof value.value === 'boolean') {\n return value.value;\n }\n if (\n value.value &&\n typeof value.value === 'object' &&\n typeof value.value.value === 'boolean'\n ) {\n return value.value.value;\n }\n }\n return undefined;\n};\n\nconst hasBooleanValue = value => {\n if (typeof value === 'boolean') {\n return true;\n }\n if (value && typeof value === 'object') {\n if (typeof value.value === 'boolean') {\n return true;\n }\n if (\n value.value &&\n typeof value.value === 'object' &&\n typeof value.value.value === 'boolean'\n ) {\n return true;\n }\n }\n return false;\n};\n\nconst unwrapArray = value => {\n if (Array.isArray(value)) {\n return value;\n }\n if (value && typeof value === 'object' && Array.isArray(value.items)) {\n return value.items;\n }\n return [];\n};\n\nconst unwrapRecord = value => {\n if (value && typeof value === 'object' && !Array.isArray(value)) {\n if (value.value && typeof value.value === 'object') {\n return value.value;\n }\n return value;\n }\n return {};\n};\n\n// --- granter binding (owner account) ---\nconst granterId = document('/contracts/granterChannel/accountId');\nif (typeof granterId !== 'string' || granterId.length === 0) {\n issues.push(\"granterChannel must be bound to an accountId\");\n}\n// --- grantee (parent worker) session id ---\nconst granteeDocumentId = document('/granteeDocumentId');\nif (\n typeof granteeDocumentId !== 'string' ||\n granteeDocumentId.trim().length === 0\n) {\n issues.push(\"granteeDocumentId must be a non-empty string\");\n}\n// --- allowedWorkerAgencyPermissions : list of { workerType, permissions } ---\nconst list = document('/allowedWorkerAgencyPermissions');\nif (!Array.isArray(list) || list.length === 0) {\n issues.push(\"allowedWorkerAgencyPermissions must be a non-empty array\");\n} else {\n // helper: validate Single Document Permission Set\n const validateSDPS = (p, path) => {\n const record = unwrapRecord(p);\n if (Object.keys(record).length === 0) {\n issues.push(`${path} must be an object`);\n return;\n }\n // read must be true to allow any access at all\n const read = unwrapBoolean(record.read);\n if (read !== true) {\n issues.push(`${path}.read must be true`);\n }\n const share = record.share;\n const shareValue = unwrapBoolean(share);\n if (hasBooleanValue(share) && typeof shareValue !== 'boolean') {\n issues.push(`${path}.share must be boolean if provided`);\n }\n const allOps = record.allOps;\n const allOpsValue = unwrapBoolean(allOps);\n if (hasBooleanValue(allOps) && typeof allOpsValue !== 'boolean') {\n issues.push(`${path}.allOps must be boolean if provided`);\n }\n const singleOpsRaw = unwrapArray(record.singleOps)\n .map(entry => unwrapText(entry))\n .filter(Boolean);\n const hasSingle = singleOpsRaw.length > 0;\n if (hasSingle) {\n const bad = singleOpsRaw.length !== unwrapArray(record.singleOps).length;\n if (bad) issues.push(`${path}.singleOps must contain only non-empty strings`);\n }\n if (allOpsValue === true && hasSingle) {\n issues.push(`${path}.allOps=true and ${path}.singleOps are mutually exclusive`);\n }\n // Note: it is valid to have read=true with neither allOps nor singleOps (read-only template)\n };\n const seenTypes = new Set();\n list.forEach((item, idx) => {\n const itemPath = `/allowedWorkerAgencyPermissions[${idx}]`;\n // shape\n if (typeof item !== 'object' || item === null) {\n issues.push(`${itemPath} must be an object`);\n return;\n }\n // workerType\n const workerType = unwrapText(item.workerType);\n if (!workerType) {\n issues.push(`${itemPath}.workerType must be a non-empty string`);\n } else {\n if (seenTypes.has(workerType)) {\n issues.push(`duplicate workerType '${workerType}' in allowedWorkerAgencyPermissions`);\n } else {\n seenTypes.add(workerType);\n }\n }\n // permissions (Single Document Permission Set)\n const perms = item.permissions;\n if (typeof perms === 'undefined') {\n issues.push(`${itemPath}.permissions is required`);\n } else {\n validateSDPS(perms, `${itemPath}.permissions`);\n }\n });\n}\nif (issues.length > 0) {\n return { events: [ { type: \"Worker Agency Permission Invalid\", issues } ] };\n} else {\n return { events: [ { type: \"Worker Agency Permission Validated\" } ] };\n}\n";
665
- };
666
- readonly name: "ValidateBasicShape";
667
- readonly type: {
668
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
669
- };
670
- }];
671
902
  };
672
903
  readonly type: {
673
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
904
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
674
905
  };
675
906
  };
676
- };
677
- readonly granteeDocumentId: {
678
- readonly type: {
679
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
907
+ readonly triggeredEventsChannel: {
908
+ readonly type: {
909
+ readonly blueId: "C77W4kVGcxL7Mkx9WL9QESPEFFL2GzWAe647s1Efprt";
910
+ };
680
911
  };
681
912
  };
682
- readonly name: "Worker Agency Permission Grant";
683
- readonly type: {
684
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
685
- };
686
- };
687
- readonly '3wH1r5RQVidCMcu4cJ4ZweVHZwt1mMu78RA3uXayTqeq': {
688
- readonly description: "Notifies the user that a MyOS Package is ready to install.";
689
- readonly message: {
690
- readonly description: "Context for the user (e.g., who suggested it, what it does)";
691
- readonly type: {
692
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
693
- };
913
+ readonly description: "MyOS-specific document for bootstrapping document sessions and tracking bootstrap progress";
914
+ readonly document: {
915
+ readonly description: "Target Blue document to be bootstrapped";
694
916
  };
695
- readonly name: "Inform User To Install MyOS Package";
696
- readonly package: {
697
- readonly description: "The complete package to be bootstrapped";
698
- readonly type: {
699
- readonly blueId: "GmeLRydVPtUsPZaPpgiaaPWPBBNXnRJZsgi3fvQ4qe33";
917
+ readonly initialMessages: {
918
+ readonly defaultMessage: {
919
+ readonly description: "Default invitation message sent to all participants";
920
+ readonly type: {
921
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
922
+ };
700
923
  };
701
- };
702
- readonly title: {
703
- readonly description: "Short, user-facing headline (e.g., \"Install Agent Package\")";
704
- readonly type: {
705
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
924
+ readonly description: "Messages sent to participants when inviting them to the bootstrapped document";
925
+ readonly perChannel: {
926
+ readonly description: "Per-channel custom invitation messages";
927
+ readonly keyType: {
928
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
929
+ };
930
+ readonly type: {
931
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
932
+ };
933
+ readonly valueType: {
934
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
935
+ };
706
936
  };
707
937
  };
708
- };
709
- readonly '4cmrbevB6K23ZenjqwmNxpnaw6RF4VB3wkP7XB59V7W5': {
710
- readonly description: "Dictionary of named outgoing connections from this document to anchors on other documents or sessions. MyOS indexes supported link variants to power discovery.";
711
- readonly keyType: {
712
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
713
- };
714
- readonly name: "Document Links";
715
- readonly type: {
716
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
717
- };
718
- readonly valueType: {
719
- readonly blueId: "D2ERUvbpn6R6PR7hjFsGofwQsu9bkRfc6wbSYHcfJtMD";
720
- };
721
- };
722
- readonly '4cPqgXEsF6NHdAGhhAaHBPGZ6RNi5Dnr7YWp2vQd8HYk': {
723
- readonly description: "Emitted by revoke operation";
724
- readonly name: "Worker Agency Permission Revoke Requested";
725
- readonly reason: {
726
- readonly type: {
938
+ readonly initiatorSessionIds: {
939
+ readonly description: "Session IDs created for the bootstrap initiator (caller)";
940
+ readonly itemType: {
727
941
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
728
942
  };
729
- };
730
- readonly type: {
731
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
732
- };
733
- };
734
- readonly '4fYuD2ZdTQpm5T6Xtibge9SKkNA8RrvDVmKmArrToQQW': {
735
- readonly agent: {
736
- readonly description: "Optional MyOS agent associated with this channel";
737
943
  readonly type: {
738
- readonly blueId: "8DQrCT6Mf9wHQyRc4NdYhjFW4FbKi83no2QPe54UhdQ5";
944
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
739
945
  };
740
946
  };
741
- readonly description: "MyOS-specific agent channel extending Channel with agent and event fields";
742
- readonly event: {
743
- readonly description: "Optional event node reference";
744
- };
745
- readonly name: "MyOS Agent Channel";
746
- };
747
- readonly '4Lix4AKXvBDvrwxw2htSdYFKxL4wugEQzqoSEYet5Dh1': {
748
- readonly name: "MyOS Worker Agency";
749
- };
750
- readonly '567voUMtKJQoqru6ZVPYb4EGwdeV99rUSAqsnod7gqfd': {
751
- readonly description: "Emitted on initialise when local shape checks fail.";
752
- readonly issues: {
753
- readonly itemType: {
947
+ readonly name: "Document Session Bootstrap";
948
+ readonly participantsState: {
949
+ readonly description: "Maps channel names to participant activation tracking";
950
+ readonly keyType: {
754
951
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
755
952
  };
756
953
  readonly type: {
757
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
954
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
955
+ };
956
+ readonly valueType: {
957
+ readonly blueId: "CocmZUt2K7LuGukwuPSAFC7EFo5HZonozAm4tUsSmuFB";
758
958
  };
759
959
  };
760
- readonly name: "Single Document Permission Invalid";
761
960
  readonly type: {
762
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
961
+ readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
763
962
  };
764
963
  };
765
- readonly '5GB8C22LsZGR3kkEmP5j5Zye7SR173ojzzUK99tUcoP': {
766
- readonly accountId: {
767
- readonly description: "MyOS account ID of the principal.";
964
+ readonly '8DQrCT6Mf9wHQyRc4NdYhjFW4FbKi83no2QPe54UhdQ5': {
965
+ readonly agentId: {
966
+ readonly description: "Optional agent identifier";
768
967
  readonly type: {
769
968
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
770
969
  };
771
970
  };
772
- readonly description: "The base type for a direct action by the account owner.";
773
- readonly name: "Principal Actor";
774
- readonly type: {
775
- readonly blueId: "CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ";
776
- };
971
+ readonly description: "MyOS-specific agent with optional agent identifier";
972
+ readonly name: "MyOS Agent";
777
973
  };
778
- readonly '5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp': {
779
- readonly name: "Worker Agency Permission";
780
- readonly permissions: {
781
- readonly description: "The permissions granted to the worker for documents of the given type.";
782
- readonly type: {
783
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
784
- };
785
- };
786
- readonly workerType: {
787
- readonly description: "The document type the worker is allowed to create.";
788
- };
974
+ readonly '8eyv5ogjHbTqUeaJKWHMenLs3MaCnpGSQkbPrCqvk2Ga': {
975
+ readonly description: "Template payload that can be included in a MyOS package to optionally start an automation after the Agent session is created.\n";
976
+ readonly name: "Anchor Automation Template";
789
977
  };
790
- readonly '5sX6PjLHydkuj1BrvCM5QoUd4e3GCtCyc8KsNqpV2e9j': {
978
+ readonly '8GNc7HmPKXmURG12ZBY8iXYEP7CTfBLsfXvpLcQ6EMwS': {
791
979
  readonly allowedWorkerAgencyPermissions: {
792
980
  readonly itemType: {
793
981
  readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
@@ -796,45 +984,52 @@ export declare const contents: {
796
984
  readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
797
985
  };
798
986
  };
799
- readonly description: "MyOS Admin is retracting rights granted by this WAG.";
987
+ readonly description: "DB rows written; rights are effective.";
800
988
  readonly granteeDocumentId: {
801
989
  readonly type: {
802
990
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
803
991
  };
804
992
  };
805
- readonly name: "Worker Agency Permission Revoking in Progress";
806
- readonly note: {
807
- readonly type: {
808
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
809
- };
810
- };
993
+ readonly name: "Worker Agency Permission Granted";
811
994
  readonly type: {
812
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
995
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
813
996
  };
814
997
  };
815
- readonly '63kEoiNgJnYPGd2fnJw4Km2MD6zuCBBTn9v9qVPWx2Nz': {
816
- readonly description: "Emitted on initialise when local shape checks fail.";
817
- readonly issues: {
818
- readonly itemType: {
998
+ readonly '8jCUCDoX7LUd5UaktCD7i4xxEheCWFQDkTbbNTEdYVZ9': {
999
+ readonly description: "A reference to a specific, live document processing session on the MyOS platform.";
1000
+ readonly documentId: {
1001
+ readonly description: "The initial blueId of the logical document.";
1002
+ readonly type: {
819
1003
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
820
1004
  };
1005
+ };
1006
+ readonly name: "MyOS Document Session Reference";
1007
+ readonly sessionId: {
1008
+ readonly description: "The id of a specific, live processing session.";
821
1009
  readonly type: {
822
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1010
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
823
1011
  };
824
1012
  };
825
- readonly name: "Worker Agency Permission Invalid";
826
- readonly type: {
827
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
828
- };
829
1013
  };
830
- readonly '6h9TRB22W218Bkjo11TD3zyCfuatFY8Ack4GBeW7vF69': {
831
- readonly description: "MyOS Admin is retracting rights granted by this PGD.";
832
- readonly name: "Single Document Permission Revoking in Progress";
833
- readonly note: {
1014
+ readonly '8PrHr6fcJ1xMyNFptEy2sksyYYuZ48Ypkcnjv4V2WcoD': {
1015
+ readonly channelName: {
1016
+ readonly description: "The abstract channel name of the participant to be removed.";
834
1017
  readonly type: {
835
1018
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
836
1019
  };
837
1020
  };
1021
+ readonly name: "Removing Participant Requested";
1022
+ readonly type: {
1023
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1024
+ };
1025
+ };
1026
+ readonly '8s2rAFDtiB6sCwqeURkT4Lq7fcc2FXBkmX9B9p7R4Boc': {
1027
+ readonly description: "Marker type for a specialized Blue document that MyOS treats as an Agent, enabling richer UI and behaviors while remaining a standard Blue document.";
1028
+ readonly name: "Agent";
1029
+ };
1030
+ readonly '8XYzJ3BrgB5uoAWU5HvZ7Gej9RXNG5r52ccneLZxMAQd': {
1031
+ readonly description: "DB rows written; rights are effective.";
1032
+ readonly name: "Single Document Permission Granted";
838
1033
  readonly permissions: {
839
1034
  readonly type: {
840
1035
  readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
@@ -846,62 +1041,34 @@ export declare const contents: {
846
1041
  };
847
1042
  };
848
1043
  readonly type: {
849
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
850
- };
851
- };
852
- readonly '6nYAWfizha9PvKi9scLLCReYimYaupRLoyZTCgB8zUpR': {
853
- readonly description: "Rights granted by this WAG have been retracted.";
854
- readonly name: "Worker Agency Permission Revoked";
855
- readonly type: {
856
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
857
- };
858
- };
859
- readonly '6tzp2YX1rei3aAXg22SqYbeiiteGthj1LesTNCWm7wbU': {
860
- readonly name: "MyOS Participants Orchestration";
861
- };
862
- readonly '7Usvk6dZMVqas3yqs23ZEXn1zu1YDPjgYiZFNYaw3puH': {
863
- readonly description: "Dictionary of named incoming connection points (anchors) that other documents can link to. Links to an anchor are by its dictionary key.";
864
- readonly keyType: {
865
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
866
- };
867
- readonly name: "Document Anchors";
868
- readonly type: {
869
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
870
- };
871
- readonly valueType: {
872
- readonly blueId: "HS9yo34TGEAM2LGcNbLh7XPN4goPRhqdGZQkiyh473Wb";
1044
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
873
1045
  };
874
1046
  };
875
- readonly '8DQrCT6Mf9wHQyRc4NdYhjFW4FbKi83no2QPe54UhdQ5': {
876
- readonly agentId: {
877
- readonly description: "Optional agent identifier";
1047
+ readonly '98JmkF189jZpQRyzaiQxLbc2rRUqnRy2o6bH2qCRaBg3': {
1048
+ readonly channelName: {
1049
+ readonly description: "The abstract channel name for the new participant.";
878
1050
  readonly type: {
879
1051
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
880
1052
  };
881
1053
  };
882
- readonly description: "MyOS-specific agent with optional agent identifier";
883
- readonly name: "MyOS Agent";
884
- };
885
- readonly '8jCUCDoX7LUd5UaktCD7i4xxEheCWFQDkTbbNTEdYVZ9': {
886
- readonly description: "A reference to a specific, live document processing session on the MyOS platform.";
887
- readonly documentId: {
888
- readonly description: "The initial blueId of the logical document.";
889
- readonly type: {
890
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1054
+ readonly name: "Adding Participant Requested";
1055
+ readonly participantBinding: {
1056
+ readonly accountId: {
1057
+ readonly type: {
1058
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1059
+ };
1060
+ };
1061
+ readonly description: "How to identify the new user.";
1062
+ readonly email: {
1063
+ readonly type: {
1064
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1065
+ };
891
1066
  };
892
1067
  };
893
- readonly name: "MyOS Document Session Reference";
894
- readonly sessionId: {
895
- readonly description: "The id of a specific, live processing session.";
896
- readonly type: {
897
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
898
- };
1068
+ readonly type: {
1069
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
899
1070
  };
900
1071
  };
901
- readonly '8JHhvprgxVUFZCQpyeEJfMFF8vuVEAnjqojftJ6B2E6S': {
902
- readonly description: "Placeholder for automation template referenced by MyOS Package.";
903
- readonly name: "Anchor Automation Template";
904
- };
905
1072
  readonly '9CvxqAMJhqcFoLr5nXSEdWDZUMD383xhJtyFwXsCqD9E': {
906
1073
  readonly description: "Snapshot captured from a target session epoch emission.";
907
1074
  readonly document: {
@@ -938,83 +1105,33 @@ export declare const contents: {
938
1105
  };
939
1106
  };
940
1107
  };
941
- readonly '9iu6bai3dWkJwdQtYRsUf85uqpRBRnC7SH8JFWgJBoWs': {
942
- readonly description: "Admin has started applying the grant for this PGD.";
943
- readonly name: "Single Document Permission Granting in Progress";
944
- readonly note: {
945
- readonly type: {
946
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
947
- };
948
- };
949
- readonly permissions: {
950
- readonly type: {
951
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
952
- };
953
- };
954
- readonly targetSessionId: {
955
- readonly type: {
956
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
957
- };
958
- };
959
- readonly type: {
960
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
961
- };
962
- };
963
- readonly '9Q2Kdb1FzRVZrbQHv1JZ9Emo14NavVqD32jnF5u6FUmj': {
964
- readonly allowedWorkerAgencyPermissions: {
965
- readonly itemType: {
966
- readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
967
- };
968
- readonly type: {
969
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
970
- };
971
- };
972
- readonly description: "Admin has started applying the grant for this WAG.";
973
- readonly granteeDocumentId: {
974
- readonly type: {
975
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
976
- };
977
- };
978
- readonly name: "Worker Agency Permission Granting in Progress";
979
- readonly note: {
1108
+ readonly ABJ7njZbfTXNP173SCoMytQtVfMXCEwPdFhSJ7F3Vbx9: {
1109
+ readonly description: "Emitted by revoke operation";
1110
+ readonly name: "Worker Agency Permission Revoke Requested";
1111
+ readonly reason: {
980
1112
  readonly type: {
981
1113
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
982
1114
  };
983
1115
  };
984
1116
  readonly type: {
985
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1117
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
986
1118
  };
987
1119
  };
988
- readonly '9T3AsCqKkpoxHs6K9dTeCHRCXYGHPMthjaNcZxLdckgi': {
1120
+ readonly AG6fiGy88gX5eKoUcHS2BV17EfMssiYZj99kx9RcpKEX: {
989
1121
  readonly description: "Emitted on initialise when local shape checks pass.";
990
1122
  readonly name: "Single Document Permission Validated";
991
1123
  readonly type: {
992
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1124
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
993
1125
  };
994
1126
  };
995
- readonly A3nxy96fKtp3bPnCYP14uhrnYCJoigDLJNvdbGnjdXg6: {
996
- readonly channelName: {
997
- readonly description: "The abstract channel name for the new participant.";
998
- readonly type: {
999
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1000
- };
1001
- };
1002
- readonly name: "Adding Participant Requested";
1003
- readonly participantBinding: {
1004
- readonly accountId: {
1005
- readonly type: {
1006
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1007
- };
1008
- };
1009
- readonly description: "How to identify the new user.";
1010
- readonly email: {
1011
- readonly type: {
1012
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1013
- };
1014
- };
1127
+ readonly AMNPp7uGYBgygbnmMS649m6Gf5bNULaEK8aSQ3b4xdrf: {
1128
+ readonly description: "Rights granted by this WAG have been retracted.";
1129
+ readonly name: "Worker Agency Permission Revoked";
1130
+ readonly type: {
1131
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1015
1132
  };
1016
1133
  };
1017
- readonly AgkFLMmzZKt9iExpz2UcVZubPZ7vsCJRXJfgLReMkjW9: {
1134
+ readonly AQyDRNKEkDan8VGNcvBdJCz95HKcwcAurhccHnCgV1j9: {
1018
1135
  readonly contracts: {
1019
1136
  readonly granterChannel: {
1020
1137
  readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
@@ -1088,7 +1205,7 @@ export declare const contents: {
1088
1205
  readonly type: {
1089
1206
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1090
1207
  };
1091
- readonly value: "const skipValidation = document('/skipValidation');\nif (skipValidation === true) return { events: [] };\n\nconst issues = [];\n\n// Required: target session\nconst target = document('/targetSessionId');\nif (!target || typeof target !== 'string') issues.push(\"targetSessionId is missing or invalid\");\n\n// Required: bound granter identity\nconst granterId = document('/contracts/granterChannel/accountId');\nif (typeof granterId !== 'string' || granterId.length === 0) issues.push(\"granterChannel must be bound to an accountId\");\n\n// Required: grantee document id\nconst gdoc = document('/granteeDocumentId');\nif (typeof gdoc !== 'string' || gdoc.trim().length === 0) issues.push(\"granteeDocumentId must be a non-empty string (originalBlueId)\");\n\n// Permissions\nconst perms = document('/permissions');\nif (!perms || typeof perms !== 'object') {\n issues.push(\"permissions block is missing\");\n} else {\n if (perms.read !== true) issues.push(\"permissions.read must be true for SDPG\");\n const hasSingle = Array.isArray(perms?.singleOps) && perms.singleOps.length > 0;\n if (hasSingle) {\n if (perms.singleOps.some(x => typeof x !== 'string' || x.trim().length === 0)) {\n issues.push(\"permissions.singleOps must contain only non-empty strings\");\n }\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(\"permissions.allOps=true and permissions.singleOps are mutually exclusive\");\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"Single Document Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"Single Document Permission Validated\" } ] };\n";
1208
+ readonly value: "const skipValidation = document('/skipValidation');\nif (skipValidation === true) return { events: [] };\n\nconst issues = [];\n\n// Required: target session\nconst target = document('/targetSessionId');\nif (!target || typeof target !== 'string') issues.push(\"targetSessionId is missing or invalid\");\n\n// Required: bound granter identity\nconst granterId = document('/contracts/granterChannel/accountId');\nif (typeof granterId !== 'string' || granterId.length === 0) issues.push(\"granterChannel must be bound to an accountId\");\n\n// Required: grantee document id\nconst gdoc = document('/granteeDocumentId');\nif (typeof gdoc !== 'string' || gdoc.trim().length === 0) issues.push(\"granteeDocumentId must be a non-empty string (originalBlueId)\");\n\n// Permissions\nconst perms = document('/permissions');\nif (!perms || typeof perms !== 'object') {\n issues.push(\"permissions block is missing\");\n} else {\n if (perms.read !== true) issues.push(\"permissions.read must be true for SDPG\");\n const hasSingle = Array.isArray(perms?.singleOps) && perms.singleOps.length > 0;\n if (hasSingle) {\n if (perms.singleOps.some(x => typeof x !== 'string' || x.trim().length === 0)) {\n issues.push(\"permissions.singleOps must contain only non-empty strings\");\n }\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(\"permissions.allOps=true and permissions.singleOps are mutually exclusive\");\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"MyOS/Single Document Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"MyOS/Single Document Permission Validated\" } ] };\n";
1092
1209
  };
1093
1210
  readonly name: "ValidateBasicShape";
1094
1211
  readonly type: {
@@ -1136,15 +1253,6 @@ export declare const contents: {
1136
1253
  readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
1137
1254
  };
1138
1255
  };
1139
- readonly AjfPDYhjp31oYmraTy7PYFrSUGQKxtfQnHdBr8o7mt3g: {
1140
- readonly description: "Marker type for a specialized Blue document that MyOS treats as an Agent, enabling richer UI and behaviors while remaining a standard Blue document.";
1141
- readonly llmEnabled: {
1142
- readonly type: {
1143
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1144
- };
1145
- };
1146
- readonly name: "Agent";
1147
- };
1148
1256
  readonly BaNmvStTGdsBsSHiHbqdhrrC7vfwiQdDK6NYiyRbJowx: {
1149
1257
  readonly description: "MyOS Admin could not invoke the requested operation.";
1150
1258
  readonly name: "Call Operation Failed";
@@ -1183,103 +1291,38 @@ export declare const contents: {
1183
1291
  readonly blueId: "D2ERUvbpn6R6PR7hjFsGofwQsu9bkRfc6wbSYHcfJtMD";
1184
1292
  };
1185
1293
  };
1186
- readonly BmmvGcvB1yAe1fb3bsxpajwo9WuCNVAYQN8CGuMivUkT: {
1187
- readonly description: "Rights granted by this PGD have been retracted.";
1188
- readonly name: "Single Document Permission Revoked";
1189
- readonly type: {
1190
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1191
- };
1192
- };
1193
- readonly C9Fyy28LCQACfDootHHWRB4eEm1xCiSnaH7FYTSdZmwQ: {
1194
- readonly capabilities: {
1195
- readonly description: "Optional MyOS Admin capability contracts to attach (participantsOrchestration, sessionInteraction, workerAgency)";
1196
- readonly keyType: {
1197
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1198
- };
1199
- readonly type: {
1200
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1201
- };
1202
- readonly valueType: {
1203
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1204
- };
1205
- };
1206
- readonly channelBindings: {
1207
- readonly description: "Maps channel names to participant identifiers";
1208
- readonly keyType: {
1209
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1210
- };
1211
- readonly type: {
1212
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1213
- };
1214
- readonly valueType: {
1215
- readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
1216
- };
1217
- };
1218
- readonly description: "Parent worker requests from MyOS Admin to start a new child session. Parent worker requires to have Worker Agency Permission Grant.";
1219
- readonly document: {
1220
- readonly description: "Target Blue document to be bootstrapped";
1221
- };
1222
- readonly initialMessages: {
1223
- readonly defaultMessage: {
1224
- readonly description: "Default invitation message sent to all participants";
1294
+ readonly BnrAcFrEHzoARE2yqKmRv7jrPWCbJsVBqSoXwWCaTtrk: {
1295
+ readonly description: "Document asks MyOS Admin to mediate a subscription to a target session it can READ.";
1296
+ readonly name: "Subscribe to Session Requested";
1297
+ readonly subscription: {
1298
+ readonly events: {
1299
+ readonly description: "Optional allow-list of emitted event patterns to forward.";
1225
1300
  readonly type: {
1226
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1301
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1227
1302
  };
1228
1303
  };
1229
- readonly description: "Messages sent to participants when inviting them to the bootstrapped document";
1230
- readonly perChannel: {
1231
- readonly description: "Per-channel custom invitation messages";
1232
- readonly keyType: {
1233
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1234
- };
1304
+ readonly id: {
1305
+ readonly description: "Optional client correlation id.";
1235
1306
  readonly type: {
1236
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1237
- };
1238
- readonly valueType: {
1239
1307
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1240
1308
  };
1241
1309
  };
1242
1310
  };
1243
- readonly name: "Start Worker Session Requested";
1244
- readonly onBehalfOf: {
1245
- readonly type: {
1246
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1247
- };
1248
- };
1249
- readonly type: {
1250
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1251
- };
1252
- };
1253
- readonly CB4YQq9GGVb3i3enmWnxx1zbV2Ks7nNHYdBhcCuJ8iht: {
1254
- readonly allowedWorkerAgencyPermissions: {
1255
- readonly itemType: {
1256
- readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
1257
- };
1258
- readonly type: {
1259
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1260
- };
1261
- };
1262
- readonly description: "Grant could not be applied.";
1263
- readonly granteeDocumentId: {
1264
- readonly type: {
1265
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1266
- };
1267
- };
1268
- readonly name: "Worker Agency Permission Rejected";
1269
- readonly reason: {
1311
+ readonly targetSessionId: {
1312
+ readonly description: "Session to subscribe to.";
1270
1313
  readonly type: {
1271
1314
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1272
1315
  };
1273
1316
  };
1274
1317
  readonly type: {
1275
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1318
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1276
1319
  };
1277
1320
  };
1278
- readonly CbcVNTgCj7hnq4nKBDdgWAcymuRqTTmCzxY1LUuK3ze6: {
1321
+ readonly BQMtWzcdbYUdaJQADyy6bkscxQGfhQHT4BgFhXQAgKfz: {
1279
1322
  readonly name: "Adding Participant Responded";
1280
1323
  readonly request: {
1281
1324
  readonly type: {
1282
- readonly blueId: "A3nxy96fKtp3bPnCYP14uhrnYCJoigDLJNvdbGnjdXg6";
1325
+ readonly blueId: "98JmkF189jZpQRyzaiQxLbc2rRUqnRy2o6bH2qCRaBg3";
1283
1326
  };
1284
1327
  };
1285
1328
  readonly status: {
@@ -1287,76 +1330,71 @@ export declare const contents: {
1287
1330
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1288
1331
  };
1289
1332
  };
1333
+ readonly type: {
1334
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1335
+ };
1290
1336
  };
1291
1337
  readonly CeWyRmXAMZqvWBvby2KbRUZWcS7Pdxs42vnMXgn9gg6H: {
1292
1338
  readonly name: "MyOS Session Interaction";
1293
1339
  };
1294
- readonly CF47wMy4XsVYMiFLmkvgYvXN8TBhfSTh1vnt8xvcFaE1: {
1295
- readonly description: "Indicates MyOS Admin stopped forwarding updates for the subscription.";
1296
- readonly name: "Subscription to Session Revoked";
1297
- readonly reason: {
1298
- readonly description: "Optional explanation for the revocation.";
1340
+ readonly CocmZUt2K7LuGukwuPSAFC7EFo5HZonozAm4tUsSmuFB: {
1341
+ readonly accountStatus: {
1342
+ readonly description: "Participant's MyOS account status from bootstrap events (Active | Inactive | Failed)";
1299
1343
  readonly type: {
1300
1344
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1301
1345
  };
1302
1346
  };
1303
- readonly subscriptionId: {
1304
- readonly description: "The subscription id that was revoked.";
1347
+ readonly description: "Tracks participant account status and activation";
1348
+ readonly errorMessage: {
1349
+ readonly description: "Error message if participant activation failed";
1305
1350
  readonly type: {
1306
1351
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1307
1352
  };
1308
1353
  };
1309
- readonly targetSessionId: {
1310
- readonly description: "Session that is no longer being forwarded.";
1354
+ readonly name: "Participant Activation State";
1355
+ };
1356
+ readonly CrGV4ZYjvPvMqrgNQAfgZCUnFjFW6HDjYNdon2chLKU3: {
1357
+ readonly description: "Notifies the user that a MyOS Package is ready to install.";
1358
+ readonly message: {
1359
+ readonly description: "Context for the user (e.g., who suggested it, what it does)";
1311
1360
  readonly type: {
1312
1361
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1313
1362
  };
1314
1363
  };
1315
- readonly type: {
1316
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1317
- };
1318
- };
1319
- readonly CocmZUt2K7LuGukwuPSAFC7EFo5HZonozAm4tUsSmuFB: {
1320
- readonly accountStatus: {
1321
- readonly description: "Participant's MyOS account status from bootstrap events (Active | Inactive | Failed)";
1364
+ readonly name: "Inform User To Install MyOS Package";
1365
+ readonly package: {
1366
+ readonly description: "The complete package to be bootstrapped";
1322
1367
  readonly type: {
1323
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1368
+ readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
1324
1369
  };
1325
1370
  };
1326
- readonly description: "Tracks participant account status and activation";
1327
- readonly errorMessage: {
1328
- readonly description: "Error message if participant activation failed";
1371
+ readonly title: {
1372
+ readonly description: "Short, user-facing headline (e.g., \"Install Agent Package\")";
1329
1373
  readonly type: {
1330
1374
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1331
1375
  };
1332
1376
  };
1333
- readonly name: "Participant Activation State";
1334
1377
  };
1335
- readonly CohDM1yrnMV32VE73JiRbnmT3h8TgVqryd2Eb8K5Tmzc: {
1336
- readonly description: "Document asks MyOS Admin to mediate a subscription to a target session it can READ.";
1337
- readonly name: "Subscribe to Session Requested";
1338
- readonly subscription: {
1339
- readonly events: {
1340
- readonly description: "Optional allow-list of emitted event patterns to forward.";
1341
- readonly type: {
1342
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1343
- };
1378
+ readonly Cyr8aNNYedFse1EZ74dy9uXJ59gLH5LhTRyVeLiSMkg8: {
1379
+ readonly description: "MyOS Admin is retracting rights granted by this PGD.";
1380
+ readonly name: "Single Document Permission Revoking in Progress";
1381
+ readonly note: {
1382
+ readonly type: {
1383
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1344
1384
  };
1345
- readonly id: {
1346
- readonly description: "Optional client correlation id.";
1347
- readonly type: {
1348
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1349
- };
1385
+ };
1386
+ readonly permissions: {
1387
+ readonly type: {
1388
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
1350
1389
  };
1351
1390
  };
1352
1391
  readonly targetSessionId: {
1353
- readonly description: "Session to subscribe to.";
1354
1392
  readonly type: {
1355
1393
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1356
1394
  };
1357
1395
  };
1358
1396
  readonly type: {
1359
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1397
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1360
1398
  };
1361
1399
  };
1362
1400
  readonly d1vQ8ZTPcQc5KeuU6tzWaVukWRVtKjQL4hbvbpC22rB: {
@@ -1382,19 +1420,6 @@ export declare const contents: {
1382
1420
  readonly description: "Abstract base class for all link types.";
1383
1421
  readonly name: "Link";
1384
1422
  };
1385
- readonly D7eJffANsyfVjzxBRkehE7jb2F942Yxbeut3PzSLjVsP: {
1386
- readonly description: "Marker type for a specialized Blue document that MyOS treats as an LLM enabled Agent, enabling richer UI and behaviors while remaining a standard Blue document.";
1387
- readonly llmEnabled: {
1388
- readonly type: {
1389
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1390
- };
1391
- readonly value: true;
1392
- };
1393
- readonly name: "Agent LLM";
1394
- readonly type: {
1395
- readonly blueId: "AjfPDYhjp31oYmraTy7PYFrSUGQKxtfQnHdBr8o7mt3g";
1396
- };
1397
- };
1398
1423
  readonly D9Ret9Hmz5TWxzuJEeauWEuZVPkPL7hcHYsSNY1cZ5zX: {
1399
1424
  readonly description: "Link targeting any document of a specific Blue type. Enables dynamic discovery where the platform resolves to a concrete instance at runtime.";
1400
1425
  readonly documentType: {
@@ -1452,34 +1477,26 @@ export declare const contents: {
1452
1477
  };
1453
1478
  };
1454
1479
  };
1455
- readonly EdrM9LnMKjfpYPpKNSm9hK61ywFCv8xwhd4nqUTv7Sy5: {
1456
- readonly at: {
1457
- readonly description: "ISO 8601 timestamp when the subscription became active.";
1458
- readonly type: {
1459
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1460
- };
1461
- };
1462
- readonly description: "Confirms that MyOS Admin accepted the subscription request and will start forwarding updates.";
1463
- readonly name: "Subscription to Session Initiated";
1464
- readonly subscriptionId: {
1465
- readonly description: "The subscription id that was initiated.";
1480
+ readonly E4R5PmrxAtCHsQtUKtwxMjXgE5qNJWuuziArDMATudfb: {
1481
+ readonly description: "Emitted by revoke operation";
1482
+ readonly name: "Single Document Permission Revoke Requested";
1483
+ readonly reason: {
1466
1484
  readonly type: {
1467
1485
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1468
1486
  };
1469
1487
  };
1470
- readonly targetSessionId: {
1471
- readonly description: "Session being observed.";
1488
+ readonly type: {
1489
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1490
+ };
1491
+ };
1492
+ readonly Ef7EvcR5He11JtgBFtswYTHEfUKnTHmFysMTo3ZsoQby: {
1493
+ readonly description: "Ask MyOS Admin to grant permisison to document (event emitter) for a concrete target session.";
1494
+ readonly name: "Single Document Permission Grant Requested";
1495
+ readonly onBehalfOf: {
1472
1496
  readonly type: {
1473
1497
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1474
1498
  };
1475
1499
  };
1476
- readonly type: {
1477
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1478
- };
1479
- };
1480
- readonly EkZN2mSyrJpF4DQmBsdW5NYzw626N6jhSzYYsibpB1MW: {
1481
- readonly description: "DB rows written; rights are effective.";
1482
- readonly name: "Single Document Permission Granted";
1483
1500
  readonly permissions: {
1484
1501
  readonly type: {
1485
1502
  readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
@@ -1491,7 +1508,7 @@ export declare const contents: {
1491
1508
  };
1492
1509
  };
1493
1510
  readonly type: {
1494
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1511
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1495
1512
  };
1496
1513
  };
1497
1514
  readonly EQhLKv5EAcFriegGYEP7ykwbjeyzFoaTxeizzuTd8VDq: {
@@ -1520,24 +1537,120 @@ export declare const contents: {
1520
1537
  };
1521
1538
  };
1522
1539
  };
1523
- readonly ESCifdJpDaKviHDVPzCAuaUeroYJTuQTNAUW6ikQHHWd: {
1524
- readonly allowedWorkerAgencyPermissions: {
1525
- readonly itemType: {
1526
- readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
1540
+ readonly EVkAZAwJkgjQfTkA3RXpdEX2VgYJtMREmkQEFrojAQ1j: {
1541
+ readonly contracts: {
1542
+ readonly granteeChannel: {
1543
+ readonly description: "Grantee’s timeline (recipient of the rights)";
1544
+ readonly type: {
1545
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1546
+ };
1547
+ };
1548
+ readonly granterChannel: {
1549
+ readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
1550
+ readonly type: {
1551
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1552
+ };
1553
+ };
1554
+ readonly initLifecycleChannel: {
1555
+ readonly event: {
1556
+ readonly type: {
1557
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
1558
+ };
1559
+ };
1560
+ readonly type: {
1561
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
1562
+ };
1563
+ };
1564
+ readonly revoke: {
1565
+ readonly channel: {
1566
+ readonly type: {
1567
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1568
+ };
1569
+ readonly value: "granterChannel";
1570
+ };
1571
+ readonly description: "Granter or grantee indicates the grant should be revoked (MyOS Admin will handle)";
1572
+ readonly request: {
1573
+ readonly description: "Optional human-readable reason";
1574
+ readonly type: {
1575
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1576
+ };
1577
+ };
1578
+ readonly type: {
1579
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1580
+ };
1581
+ };
1582
+ readonly revokeImplGranter: {
1583
+ readonly operation: {
1584
+ readonly type: {
1585
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1586
+ };
1587
+ readonly value: "revoke";
1588
+ };
1589
+ readonly steps: {
1590
+ readonly items: readonly [{
1591
+ readonly code: {
1592
+ readonly type: {
1593
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1594
+ };
1595
+ readonly value: "return {\n events: [\n {\n type: \"MyOS/Single Document Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
1596
+ };
1597
+ readonly name: "EmitRevokeRequested";
1598
+ readonly type: {
1599
+ readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
1600
+ };
1601
+ }];
1602
+ };
1603
+ readonly type: {
1604
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1605
+ };
1606
+ };
1607
+ readonly validateOnInit: {
1608
+ readonly channel: {
1609
+ readonly type: {
1610
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1611
+ };
1612
+ readonly value: "initLifecycleChannel";
1613
+ };
1614
+ readonly steps: {
1615
+ readonly items: readonly [{
1616
+ readonly code: {
1617
+ readonly type: {
1618
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1619
+ };
1620
+ readonly value: "const issues = [];\n\n// Required: target session\nconst target = document('/targetSessionId');\nif (!target || typeof target !== 'string') issues.push(\"targetSessionId is missing or invalid\");\n\n// Required: bound identities\nconst granterId = document('/contracts/granterChannel/accountId');\nif (typeof granterId !== 'string' || granterId.length === 0) issues.push(\"granterChannel must be bound to an accountId\");\nconst granteeId = document('/contracts/granteeChannel/accountId');\nif (typeof granteeId !== 'string' || granteeId.length === 0) issues.push(\"granteeChannel must be bound to an accountId\");\n\n// Permissions\nconst perms = document('/permissions');\nif (!perms || typeof perms !== 'object') {\n issues.push(\"permissions block is missing\");\n} else {\n if (perms.read !== true) issues.push(\"permissions.read must be true for SDPG\");\n const hasSingle = Array.isArray(perms?.singleOps) && perms.singleOps.length > 0;\n if (hasSingle) {\n if (perms.singleOps.some(x => typeof x !== 'string' || x.trim().length === 0)) {\n issues.push(\"permissions.singleOps must contain only non-empty strings\");\n }\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(\"permissions.allOps=true and permissions.singleOps are mutually exclusive\");\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"MyOS/Single Document Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"MyOS/Single Document Permission Validated\" } ] };\n";
1621
+ };
1622
+ readonly name: "ValidateBasicShape";
1623
+ readonly type: {
1624
+ readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
1625
+ };
1626
+ }];
1627
+ };
1628
+ readonly type: {
1629
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
1630
+ };
1631
+ };
1632
+ };
1633
+ readonly granterDocumentSessionId: {
1634
+ readonly description: "Optional. If set, MyOS should evaluate authority using this document session as the principal (instead of granter accountId).";
1635
+ readonly type: {
1636
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1527
1637
  };
1638
+ };
1639
+ readonly name: "Single Document Permission Grant To Account";
1640
+ readonly permissions: {
1641
+ readonly description: "Rights to grant on the target session (READ required; allOps and singleOps are mutually exclusive; singleOps is optional but must be non-empty if provided).";
1528
1642
  readonly type: {
1529
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1643
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
1530
1644
  };
1531
1645
  };
1532
- readonly description: "DB rows written; rights are effective.";
1533
- readonly granteeDocumentId: {
1646
+ readonly targetSessionId: {
1647
+ readonly description: "Target document session id to grant access to";
1534
1648
  readonly type: {
1535
1649
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1536
1650
  };
1537
1651
  };
1538
- readonly name: "Worker Agency Permission Granted";
1539
1652
  readonly type: {
1540
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1653
+ readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
1541
1654
  };
1542
1655
  };
1543
1656
  readonly EVX6nBdHdVEBH9Gbthpd2eqpxaxS4bb9wM55QNdZmcBy: {
@@ -1636,28 +1749,6 @@ export declare const contents: {
1636
1749
  };
1637
1750
  readonly name: "Target Document Session Started";
1638
1751
  };
1639
- readonly FsQKJihteQLatQio6mU8c15opBb9i2C2X882xGRKn46C: {
1640
- readonly channelName: {
1641
- readonly description: "The abstract channel name of the participant to be removed.";
1642
- readonly type: {
1643
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1644
- };
1645
- };
1646
- readonly name: "Removing Participant Requested";
1647
- };
1648
- readonly Fu7pgwV2VKNs1KqGcpoVewhYNeL2TE7nhaxDwEAs2iZx: {
1649
- readonly name: "Removing Participant Responded";
1650
- readonly request: {
1651
- readonly type: {
1652
- readonly blueId: "FsQKJihteQLatQio6mU8c15opBb9i2C2X882xGRKn46C";
1653
- };
1654
- };
1655
- readonly status: {
1656
- readonly type: {
1657
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1658
- };
1659
- };
1660
- };
1661
1752
  readonly Furgmg5xcJVMDmaQXZRfZ1XehSf7PWctrioo8etRYJHQ: {
1662
1753
  readonly description: "MyOS-specific timeline entry with account and email information";
1663
1754
  readonly name: "MyOS Timeline Entry";
@@ -1670,153 +1761,57 @@ export declare const contents: {
1670
1761
  readonly blueId: "EzDiC9Frs8V5yQBMtDYh1DobVnWtWpFemXDX5fGUULBn";
1671
1762
  };
1672
1763
  };
1673
- readonly FYMd1LAezBcUXp9gh4bEjEwWKqZfgWStwHQ4Q7juTc8F: {
1674
- readonly description: "Worker session is starting.";
1675
- readonly granteeDocumentId: {
1676
- readonly type: {
1677
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1678
- };
1679
- };
1680
- readonly name: "Worker Session Starting";
1681
- readonly targetDocumentType: {
1682
- readonly type: {
1683
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1684
- };
1685
- };
1686
- readonly type: {
1687
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1688
- };
1689
- };
1690
- readonly GiYocGMGQcneiMPm4NH9MxVj7Fr4jwg2BUAMzwZcWRNR: {
1691
- readonly agentId: {
1692
- readonly description: "Optional agent identifier";
1693
- readonly type: {
1694
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1695
- };
1696
- };
1697
- readonly description: "MyOS-specific agent event with agent ID, timestamp, and event data";
1698
- readonly event: {
1699
- readonly description: "Optional event node reference";
1700
- };
1701
- readonly id: {
1702
- readonly description: "Optional event ID";
1703
- readonly type: {
1704
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1705
- };
1706
- };
1707
- readonly name: "MyOS Agent Event";
1708
- readonly timestamp: {
1709
- readonly description: "Optional timestamp for the event";
1710
- readonly type: {
1711
- readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1712
- };
1713
- };
1714
- };
1715
- readonly GmeLRydVPtUsPZaPpgiaaPWPBBNXnRJZsgi3fvQ4qe33: {
1716
- readonly agentStoreDescription: {
1717
- readonly description: "Human-readable description for stores/directories";
1718
- readonly type: {
1719
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1764
+ readonly G1cW5kjZdJrmCwfrwiHXQcJfYfFAY5jEFZNA7u7pFdtY: {
1765
+ readonly allowedWorkerAgencyPermissions: {
1766
+ readonly itemType: {
1767
+ readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
1720
1768
  };
1721
- };
1722
- readonly automationTemplate: {
1723
- readonly description: "Optional automation template to start post-creation";
1724
1769
  readonly type: {
1725
- readonly blueId: "8JHhvprgxVUFZCQpyeEJfMFF8vuVEAnjqojftJ6B2E6S";
1770
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1726
1771
  };
1727
1772
  };
1728
- readonly capabilities: {
1729
- readonly description: "Optional MyOS Admin capability contracts to attach (participantsOrchestration, sessionInteraction, workerAgency)";
1730
- readonly keyType: {
1731
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1732
- };
1773
+ readonly description: "Grant could not be applied.";
1774
+ readonly granteeDocumentId: {
1733
1775
  readonly type: {
1734
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1735
- };
1736
- readonly valueType: {
1737
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1738
- };
1739
- };
1740
- readonly channelBindings: {
1741
- readonly description: "Maps channel names to participant identifiers";
1742
- readonly keyType: {
1743
1776
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1744
1777
  };
1745
- readonly type: {
1746
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1747
- };
1748
- readonly valueType: {
1749
- readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
1750
- };
1751
- };
1752
- readonly description: "A distributable blueprint for a new Agent session, which can include pre-configured automations that start on installation.\n";
1753
- readonly document: {
1754
- readonly description: "The full initial state of the Agent to be created. Root type MUST specialize 'Agent'.";
1755
- };
1756
- readonly initialMessages: {
1757
- readonly defaultMessage: {
1758
- readonly description: "Default invitation message sent to all participants";
1759
- readonly type: {
1760
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1761
- };
1762
- };
1763
- readonly description: "Optional per-participant invitation messages (installer's message is public)";
1764
- readonly perChannel: {
1765
- readonly description: "Per-channel custom invitation messages";
1766
- readonly keyType: {
1767
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1768
- };
1769
- readonly type: {
1770
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1771
- };
1772
- readonly valueType: {
1773
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1774
- };
1775
- };
1776
1778
  };
1777
- readonly installerChannel: {
1778
- readonly description: "Channel name in 'document' to bind to the installing user/account";
1779
+ readonly name: "Worker Agency Permission Rejected";
1780
+ readonly reason: {
1779
1781
  readonly type: {
1780
1782
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1781
1783
  };
1782
1784
  };
1783
- readonly name: "MyOS Package";
1784
1785
  readonly type: {
1785
- readonly blueId: "AjfPDYhjp31oYmraTy7PYFrSUGQKxtfQnHdBr8o7mt3g";
1786
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1786
1787
  };
1787
1788
  };
1788
- readonly H1tETZ1YKndAuEBKu54ZDq3U1myncW3wj26QohP58y7X: {
1789
- readonly description: "Emitted by revoke operation";
1790
- readonly name: "Single Document Permission Revoke Requested";
1789
+ readonly GcotFgiqo3GMHp4xKrArDJi7AqciJGgYKvHodoAJwcWp: {
1790
+ readonly description: "Indicates MyOS Admin stopped forwarding updates for the subscription.";
1791
+ readonly name: "Subscription to Session Revoked";
1791
1792
  readonly reason: {
1793
+ readonly description: "Optional explanation for the revocation.";
1792
1794
  readonly type: {
1793
1795
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1794
1796
  };
1795
1797
  };
1796
- readonly type: {
1797
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1798
- };
1799
- };
1800
- readonly HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs: {
1801
- readonly accountId: {
1802
- readonly description: "Account identifier for the MyOS timeline";
1798
+ readonly subscriptionId: {
1799
+ readonly description: "The subscription id that was revoked.";
1803
1800
  readonly type: {
1804
1801
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1805
1802
  };
1806
1803
  };
1807
- readonly description: "MyOS-specific Timeline Channel";
1808
- readonly email: {
1809
- readonly description: "Email address associated with the MyOS timeline";
1804
+ readonly targetSessionId: {
1805
+ readonly description: "Session that is no longer being forwarded.";
1810
1806
  readonly type: {
1811
1807
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1812
1808
  };
1813
1809
  };
1814
- readonly name: "MyOS Timeline Channel";
1815
1810
  readonly type: {
1816
- readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1811
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1817
1812
  };
1818
1813
  };
1819
- readonly HDPFJzL5j6aPq2zb6nuZSpcNwqcuHbeaohUxDMKxLfa: {
1814
+ readonly GH3Lqn1Vd4G36VjXu2j81SGfNqRUn82tkKiSSguhRp8J: {
1820
1815
  readonly contracts: {
1821
1816
  readonly ownerChannel: {
1822
1817
  readonly type: {
@@ -1835,7 +1830,7 @@ export declare const contents: {
1835
1830
  readonly package: {
1836
1831
  readonly description: "MyOS Package";
1837
1832
  readonly type: {
1838
- readonly blueId: "GmeLRydVPtUsPZaPpgiaaPWPBBNXnRJZsgi3fvQ4qe33";
1833
+ readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
1839
1834
  };
1840
1835
  };
1841
1836
  };
@@ -1861,7 +1856,7 @@ export declare const contents: {
1861
1856
  };
1862
1857
  readonly package: {
1863
1858
  readonly type: {
1864
- readonly blueId: "GmeLRydVPtUsPZaPpgiaaPWPBBNXnRJZsgi3fvQ4qe33";
1859
+ readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
1865
1860
  };
1866
1861
  readonly value: "${event.message.request.package}";
1867
1862
  };
@@ -1872,7 +1867,7 @@ export declare const contents: {
1872
1867
  readonly value: "ChatGPT is requesting permission to launch a new agent";
1873
1868
  };
1874
1869
  readonly type: {
1875
- readonly blueId: "3wH1r5RQVidCMcu4cJ4ZweVHZwt1mMu78RA3uXayTqeq";
1870
+ readonly blueId: "CrGV4ZYjvPvMqrgNQAfgZCUnFjFW6HDjYNdon2chLKU3";
1876
1871
  };
1877
1872
  };
1878
1873
  readonly name: "Emit Install Prompt";
@@ -1889,208 +1884,206 @@ export declare const contents: {
1889
1884
  readonly description: "Lets the owner prompt installation of a provided MyOS Package.";
1890
1885
  readonly name: "Chat GPT Connector Agent";
1891
1886
  readonly type: {
1892
- readonly blueId: "AjfPDYhjp31oYmraTy7PYFrSUGQKxtfQnHdBr8o7mt3g";
1887
+ readonly blueId: "8s2rAFDtiB6sCwqeURkT4Lq7fcc2FXBkmX9B9p7R4Boc";
1893
1888
  };
1894
1889
  };
1895
- readonly HS9yo34TGEAM2LGcNbLh7XPN4goPRhqdGZQkiyh473Wb: {
1896
- readonly description: "Each anchor declares a semantic purpose and may optionally provide a template recommendation for linking documents.";
1897
- readonly name: "Document Anchor";
1898
- readonly template: {
1899
- readonly description: "Optional Blue document template recommendation for linking documents. Used by MyOS UI for validation and filtering; not protocol-enforced.";
1890
+ readonly GiYocGMGQcneiMPm4NH9MxVj7Fr4jwg2BUAMzwZcWRNR: {
1891
+ readonly agentId: {
1892
+ readonly description: "Optional agent identifier";
1893
+ readonly type: {
1894
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1895
+ };
1896
+ };
1897
+ readonly description: "MyOS-specific agent event with agent ID, timestamp, and event data";
1898
+ readonly event: {
1899
+ readonly description: "Optional event node reference";
1900
+ };
1901
+ readonly id: {
1902
+ readonly description: "Optional event ID";
1903
+ readonly type: {
1904
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1905
+ };
1906
+ };
1907
+ readonly name: "MyOS Agent Event";
1908
+ readonly timestamp: {
1909
+ readonly description: "Optional timestamp for the event";
1910
+ readonly type: {
1911
+ readonly blueId: "5WNMiV9Knz63B4dVY5JtMyh3FB4FSGqv7ceScvuapdE1";
1912
+ };
1900
1913
  };
1901
1914
  };
1902
- readonly HUeeqt75YxUmP5mBdhchJEtXDXqhhT1EbwkrGSmbpNJf: {
1915
+ readonly GMDw72G9CRTJU12Rce9BDWGw8f715RJrWvPL78RYDWH4: {
1903
1916
  readonly description: "Emitted on initialise when local shape checks pass.";
1904
1917
  readonly name: "Worker Agency Permission Validated";
1905
1918
  readonly type: {
1906
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1919
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1907
1920
  };
1908
1921
  };
1909
- readonly HxMSh1JhD42UC2QGgoaCQozMTW3rsS8ENejasZtt7oXA: {
1910
- readonly description: "Ask MyOS Admin to grant permisison to document (event emitter) for a concrete target session.";
1911
- readonly name: "Single Document Permission Grant Requested";
1912
- readonly onBehalfOf: {
1922
+ readonly GZPDibWTKDudqwPufgmNo7AHMLwY5FGeeHFx3EkegzLj: {
1923
+ readonly at: {
1924
+ readonly description: "ISO 8601 timestamp when the subscription became active.";
1913
1925
  readonly type: {
1914
1926
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1915
1927
  };
1916
1928
  };
1917
- readonly permissions: {
1929
+ readonly description: "Confirms that MyOS Admin accepted the subscription request and will start forwarding updates.";
1930
+ readonly name: "Subscription to Session Initiated";
1931
+ readonly subscriptionId: {
1932
+ readonly description: "The subscription id that was initiated.";
1918
1933
  readonly type: {
1919
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
1934
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1920
1935
  };
1921
1936
  };
1922
1937
  readonly targetSessionId: {
1938
+ readonly description: "Session being observed.";
1923
1939
  readonly type: {
1924
1940
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1925
1941
  };
1926
1942
  };
1927
1943
  readonly type: {
1928
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
1944
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1929
1945
  };
1930
1946
  };
1931
- readonly phD9k4YTUgGjWeLPKqXNNn6S1PmqSeBJfVscAnUwFhQ: {
1947
+ readonly HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs: {
1932
1948
  readonly accountId: {
1949
+ readonly description: "Account identifier for the MyOS timeline";
1933
1950
  readonly type: {
1934
1951
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1935
1952
  };
1936
1953
  };
1954
+ readonly description: "MyOS-specific Timeline Channel";
1937
1955
  readonly email: {
1956
+ readonly description: "Email address associated with the MyOS timeline";
1938
1957
  readonly type: {
1939
1958
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1940
1959
  };
1941
1960
  };
1942
- readonly name: "Participant";
1943
- readonly status: {
1944
- readonly description: "Participant activation status";
1961
+ readonly name: "MyOS Timeline Channel";
1962
+ readonly type: {
1963
+ readonly blueId: "EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH";
1964
+ };
1965
+ };
1966
+ readonly HF5aRJZqvHn7sDFbwfDGQjkWmTSW9Lee7c9dUBtcdNtK: {
1967
+ readonly allowedWorkerAgencyPermissions: {
1968
+ readonly itemType: {
1969
+ readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
1970
+ };
1945
1971
  readonly type: {
1946
- readonly blueId: "CocmZUt2K7LuGukwuPSAFC7EFo5HZonozAm4tUsSmuFB";
1972
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1947
1973
  };
1948
1974
  };
1949
- readonly timelineId: {
1975
+ readonly description: "Parent worker requests authority to start specific sub-worker types and receive per-instance SDPGs.";
1976
+ readonly name: "Worker Agency Permission Grant Requested";
1977
+ readonly onBehalfOf: {
1950
1978
  readonly type: {
1951
1979
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1952
1980
  };
1953
1981
  };
1982
+ readonly type: {
1983
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1984
+ };
1954
1985
  };
1955
- readonly vGfiWWkit85t2cg1YCn9MDGBp573F15YgGMkfx5D3Et: {
1956
- readonly description: "Indicates MyOS Admin rejected the subscription request before activation.";
1957
- readonly name: "Subscription to Session Failed";
1958
- readonly reason: {
1959
- readonly description: "Explanation why the subscription could not be established.";
1986
+ readonly HS9yo34TGEAM2LGcNbLh7XPN4goPRhqdGZQkiyh473Wb: {
1987
+ readonly description: "Each anchor declares a semantic purpose and may optionally provide a template recommendation for linking documents.";
1988
+ readonly name: "Document Anchor";
1989
+ readonly template: {
1990
+ readonly description: "Optional Blue document template recommendation for linking documents. Used by MyOS UI for validation and filtering; not protocol-enforced.";
1991
+ };
1992
+ };
1993
+ readonly HzQyVKvSQ2cienAkjW5R8HgTcStPe13p8eoB4vXr7dAc: {
1994
+ readonly allowedWorkerAgencyPermissions: {
1995
+ readonly itemType: {
1996
+ readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
1997
+ };
1960
1998
  readonly type: {
1961
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1999
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1962
2000
  };
1963
2001
  };
1964
- readonly subscriptionId: {
1965
- readonly description: "The subscription id that failed.";
2002
+ readonly description: "Admin has started applying the grant for this WAG.";
2003
+ readonly granteeDocumentId: {
1966
2004
  readonly type: {
1967
2005
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1968
2006
  };
1969
2007
  };
1970
- readonly targetSessionId: {
1971
- readonly description: "Session that was requested, if known.";
2008
+ readonly name: "Worker Agency Permission Granting in Progress";
2009
+ readonly note: {
1972
2010
  readonly type: {
1973
2011
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1974
2012
  };
1975
2013
  };
1976
2014
  readonly type: {
1977
- readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
2015
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1978
2016
  };
1979
2017
  };
1980
- readonly wbPRcT52TR5chSx4WjQ48BQsbma8uiPdbVrxKvPJUap: {
1981
- readonly contracts: {
1982
- readonly granteeChannel: {
1983
- readonly description: "Grantee’s timeline (recipient of the rights)";
1984
- readonly type: {
1985
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1986
- };
2018
+ readonly kHtVfa88aG4NMwCcBgJH9mq7EBqLQUrJVEr92porG5j: {
2019
+ readonly description: "Grant could not be applied.";
2020
+ readonly name: "Single Document Permission Rejected";
2021
+ readonly permissions: {
2022
+ readonly type: {
2023
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
1987
2024
  };
1988
- readonly granterChannel: {
1989
- readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
1990
- readonly type: {
1991
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1992
- };
2025
+ };
2026
+ readonly reason: {
2027
+ readonly type: {
2028
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1993
2029
  };
1994
- readonly initLifecycleChannel: {
1995
- readonly event: {
1996
- readonly type: {
1997
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
1998
- };
1999
- };
2000
- readonly type: {
2001
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
2002
- };
2030
+ };
2031
+ readonly targetSessionId: {
2032
+ readonly type: {
2033
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2003
2034
  };
2004
- readonly revoke: {
2005
- readonly channel: {
2006
- readonly type: {
2007
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2008
- };
2009
- readonly value: "granterChannel";
2010
- };
2011
- readonly description: "Granter or grantee indicates the grant should be revoked (MyOS Admin will handle)";
2012
- readonly request: {
2013
- readonly description: "Optional human-readable reason";
2014
- readonly type: {
2015
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2016
- };
2017
- };
2018
- readonly type: {
2019
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
2020
- };
2035
+ };
2036
+ readonly type: {
2037
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
2038
+ };
2039
+ };
2040
+ readonly phD9k4YTUgGjWeLPKqXNNn6S1PmqSeBJfVscAnUwFhQ: {
2041
+ readonly accountId: {
2042
+ readonly type: {
2043
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2021
2044
  };
2022
- readonly revokeImplGranter: {
2023
- readonly operation: {
2024
- readonly type: {
2025
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2026
- };
2027
- readonly value: "revoke";
2028
- };
2029
- readonly steps: {
2030
- readonly items: readonly [{
2031
- readonly code: {
2032
- readonly type: {
2033
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2034
- };
2035
- readonly value: "return {\n events: [\n {\n type: \"MyOS/Single Document Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
2036
- };
2037
- readonly name: "EmitRevokeRequested";
2038
- readonly type: {
2039
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
2040
- };
2041
- }];
2042
- };
2043
- readonly type: {
2044
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
2045
- };
2045
+ };
2046
+ readonly email: {
2047
+ readonly type: {
2048
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2046
2049
  };
2047
- readonly validateOnInit: {
2048
- readonly channel: {
2049
- readonly type: {
2050
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2051
- };
2052
- readonly value: "initLifecycleChannel";
2053
- };
2054
- readonly steps: {
2055
- readonly items: readonly [{
2056
- readonly code: {
2057
- readonly type: {
2058
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2059
- };
2060
- readonly value: "const issues = [];\n\n// Required: target session\nconst target = document('/targetSessionId');\nif (!target || typeof target !== 'string') issues.push(\"targetSessionId is missing or invalid\");\n\n// Required: bound identities\nconst granterId = document('/contracts/granterChannel/accountId');\nif (typeof granterId !== 'string' || granterId.length === 0) issues.push(\"granterChannel must be bound to an accountId\");\nconst granteeId = document('/contracts/granteeChannel/accountId');\nif (typeof granteeId !== 'string' || granteeId.length === 0) issues.push(\"granteeChannel must be bound to an accountId\");\n\n// Permissions\nconst perms = document('/permissions');\nif (!perms || typeof perms !== 'object') {\n issues.push(\"permissions block is missing\");\n} else {\n if (perms.read !== true) issues.push(\"permissions.read must be true for SDPG\");\n const hasSingle = Array.isArray(perms?.singleOps) && perms.singleOps.length > 0;\n if (hasSingle) {\n if (perms.singleOps.some(x => typeof x !== 'string' || x.trim().length === 0)) {\n issues.push(\"permissions.singleOps must contain only non-empty strings\");\n }\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(\"permissions.allOps=true and permissions.singleOps are mutually exclusive\");\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"Single Document Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"Single Document Permission Validated\" } ] };\n";
2061
- };
2062
- readonly name: "ValidateBasicShape";
2063
- readonly type: {
2064
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
2065
- };
2066
- }];
2067
- };
2068
- readonly type: {
2069
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
2070
- };
2050
+ };
2051
+ readonly name: "Participant";
2052
+ readonly status: {
2053
+ readonly description: "Participant activation status";
2054
+ readonly type: {
2055
+ readonly blueId: "CocmZUt2K7LuGukwuPSAFC7EFo5HZonozAm4tUsSmuFB";
2071
2056
  };
2072
2057
  };
2073
- readonly granterDocumentSessionId: {
2074
- readonly description: "Optional. If set, MyOS should evaluate authority using this document session as the principal (instead of granter accountId).";
2058
+ readonly timelineId: {
2075
2059
  readonly type: {
2076
2060
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2077
2061
  };
2078
2062
  };
2079
- readonly name: "Single Document Permission Grant To Account";
2080
- readonly permissions: {
2081
- readonly description: "Rights to grant on the target session (READ required; allOps and singleOps are mutually exclusive; singleOps is optional but must be non-empty if provided).";
2063
+ };
2064
+ readonly S1gzGs6z9uy5inkcJu5wr6i5ESKDmZy9XhgLHMZKrdV: {
2065
+ readonly description: "Indicates MyOS Admin rejected the subscription request before activation.";
2066
+ readonly name: "Subscription to Session Failed";
2067
+ readonly reason: {
2068
+ readonly description: "Explanation why the subscription could not be established.";
2082
2069
  readonly type: {
2083
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
2070
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2071
+ };
2072
+ };
2073
+ readonly subscriptionId: {
2074
+ readonly description: "The subscription id that failed.";
2075
+ readonly type: {
2076
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2084
2077
  };
2085
2078
  };
2086
2079
  readonly targetSessionId: {
2087
- readonly description: "Target document session id to grant access to";
2080
+ readonly description: "Session that was requested, if known.";
2088
2081
  readonly type: {
2089
2082
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2090
2083
  };
2091
2084
  };
2092
2085
  readonly type: {
2093
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
2086
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
2094
2087
  };
2095
2088
  };
2096
2089
  };