@blue-repository/types 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) 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 -5
  5. package/dist/meta.js.map +1 -1
  6. package/dist/packages/common/index.d.ts +1 -1
  7. package/dist/packages/common/meta.d.ts +1 -1
  8. package/dist/packages/common/meta.js +1 -1
  9. package/dist/packages/conversation/blue-ids.d.ts +11 -7
  10. package/dist/packages/conversation/blue-ids.d.ts.map +1 -1
  11. package/dist/packages/conversation/blue-ids.js +11 -7
  12. package/dist/packages/conversation/blue-ids.js.map +1 -1
  13. package/dist/packages/conversation/contents/AcceptChangeWorkflow.d.ts +2 -2
  14. package/dist/packages/conversation/contents/AcceptChangeWorkflow.js +2 -2
  15. package/dist/packages/conversation/contents/ChangeWorkflow.d.ts +2 -2
  16. package/dist/packages/conversation/contents/ChangeWorkflow.js +2 -2
  17. package/dist/packages/conversation/contents/DocumentBootstrapCompleted.d.ts +14 -0
  18. package/dist/packages/conversation/contents/DocumentBootstrapCompleted.d.ts.map +1 -0
  19. package/dist/packages/conversation/contents/DocumentBootstrapCompleted.js +14 -0
  20. package/dist/packages/conversation/contents/DocumentBootstrapCompleted.js.map +1 -0
  21. package/dist/packages/conversation/contents/DocumentBootstrapFailed.d.ts +14 -0
  22. package/dist/packages/conversation/contents/DocumentBootstrapFailed.d.ts.map +1 -0
  23. package/dist/packages/conversation/contents/DocumentBootstrapFailed.js +14 -0
  24. package/dist/packages/conversation/contents/DocumentBootstrapFailed.js.map +1 -0
  25. package/dist/packages/conversation/contents/DocumentBootstrapRequested.d.ts +50 -0
  26. package/dist/packages/conversation/contents/DocumentBootstrapRequested.d.ts.map +1 -0
  27. package/dist/packages/conversation/contents/DocumentBootstrapRequested.js +50 -0
  28. package/dist/packages/conversation/contents/DocumentBootstrapRequested.js.map +1 -0
  29. package/dist/packages/conversation/contents/DocumentBootstrapResponded.d.ts +20 -0
  30. package/dist/packages/conversation/contents/DocumentBootstrapResponded.d.ts.map +1 -0
  31. package/dist/packages/conversation/contents/DocumentBootstrapResponded.js +20 -0
  32. package/dist/packages/conversation/contents/DocumentBootstrapResponded.js.map +1 -0
  33. package/dist/packages/conversation/contents/JavaScriptCode.d.ts +1 -1
  34. package/dist/packages/conversation/contents/JavaScriptCode.js +1 -1
  35. package/dist/packages/conversation/contents/JavaScriptCode.js.map +1 -1
  36. package/dist/packages/conversation/contents/ProposeChangeWorkflow.d.ts +2 -2
  37. package/dist/packages/conversation/contents/ProposeChangeWorkflow.js +2 -2
  38. package/dist/packages/conversation/contents/RejectChangeWorkflow.d.ts +2 -2
  39. package/dist/packages/conversation/contents/RejectChangeWorkflow.js +2 -2
  40. package/dist/packages/conversation/contents/TriggerEvent.d.ts +1 -1
  41. package/dist/packages/conversation/contents/TriggerEvent.js +1 -1
  42. package/dist/packages/conversation/contents/TriggerEvent.js.map +1 -1
  43. package/dist/packages/conversation/contents/UpdateDocument.d.ts +1 -1
  44. package/dist/packages/conversation/contents/UpdateDocument.js +1 -1
  45. package/dist/packages/conversation/contents/UpdateDocument.js.map +1 -1
  46. package/dist/packages/conversation/contents/index.d.ts +242 -144
  47. package/dist/packages/conversation/contents/index.d.ts.map +1 -1
  48. package/dist/packages/conversation/contents/index.js +33 -21
  49. package/dist/packages/conversation/contents/index.js.map +1 -1
  50. package/dist/packages/conversation/index.d.ts +460 -178
  51. package/dist/packages/conversation/index.d.ts.map +1 -1
  52. package/dist/packages/conversation/meta.d.ts +72 -32
  53. package/dist/packages/conversation/meta.d.ts.map +1 -1
  54. package/dist/packages/conversation/meta.js +69 -25
  55. package/dist/packages/conversation/meta.js.map +1 -1
  56. package/dist/packages/conversation/schemas/DocumentBootstrapCompleted.d.ts +25 -0
  57. package/dist/packages/conversation/schemas/DocumentBootstrapCompleted.d.ts.map +1 -0
  58. package/dist/packages/conversation/schemas/DocumentBootstrapCompleted.js +10 -0
  59. package/dist/packages/conversation/schemas/DocumentBootstrapCompleted.js.map +1 -0
  60. package/dist/packages/conversation/schemas/DocumentBootstrapFailed.d.ts +25 -0
  61. package/dist/packages/conversation/schemas/DocumentBootstrapFailed.d.ts.map +1 -0
  62. package/dist/packages/conversation/schemas/DocumentBootstrapFailed.js +10 -0
  63. package/dist/packages/conversation/schemas/DocumentBootstrapFailed.js.map +1 -0
  64. package/dist/packages/conversation/schemas/DocumentBootstrapRequested.d.ts +82 -0
  65. package/dist/packages/conversation/schemas/DocumentBootstrapRequested.d.ts.map +1 -0
  66. package/dist/packages/conversation/schemas/DocumentBootstrapRequested.js +20 -0
  67. package/dist/packages/conversation/schemas/DocumentBootstrapRequested.js.map +1 -0
  68. package/dist/packages/conversation/schemas/DocumentBootstrapResponded.d.ts +28 -0
  69. package/dist/packages/conversation/schemas/DocumentBootstrapResponded.d.ts.map +1 -0
  70. package/dist/packages/conversation/schemas/DocumentBootstrapResponded.js +11 -0
  71. package/dist/packages/conversation/schemas/DocumentBootstrapResponded.js.map +1 -0
  72. package/dist/packages/conversation/schemas/OperationRequest.d.ts +2 -2
  73. package/dist/packages/conversation/schemas/index.d.ts +161 -9
  74. package/dist/packages/conversation/schemas/index.d.ts.map +1 -1
  75. package/dist/packages/conversation/schemas/index.js +19 -7
  76. package/dist/packages/conversation/schemas/index.js.map +1 -1
  77. package/dist/packages/myos/blue-ids.d.ts +8 -8
  78. package/dist/packages/myos/blue-ids.js +8 -8
  79. package/dist/packages/myos/contents/ChatGPTConnectorAgent.d.ts +1 -1
  80. package/dist/packages/myos/contents/ChatGPTConnectorAgent.js +1 -1
  81. package/dist/packages/myos/contents/DocumentSessionBootstrap.d.ts +9 -9
  82. package/dist/packages/myos/contents/DocumentSessionBootstrap.js +9 -9
  83. package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToAccount.d.ts +3 -3
  84. package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToAccount.js +3 -3
  85. package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToDocument.d.ts +3 -3
  86. package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToDocument.js +3 -3
  87. package/dist/packages/myos/contents/MyOSAdminBase.d.ts +1 -1
  88. package/dist/packages/myos/contents/MyOSAdminBase.js +1 -1
  89. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.d.ts +3 -3
  90. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.js +3 -3
  91. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.d.ts +3 -3
  92. package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.js +3 -3
  93. package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.d.ts +3 -3
  94. package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.js +3 -3
  95. package/dist/packages/myos/contents/index.d.ts +585 -585
  96. package/dist/packages/myos/contents/index.d.ts.map +1 -1
  97. package/dist/packages/myos/contents/index.js +24 -24
  98. package/dist/packages/myos/contents/index.js.map +1 -1
  99. package/dist/packages/myos/index.d.ts +831 -831
  100. package/dist/packages/myos/meta.d.ts +37 -37
  101. package/dist/packages/myos/meta.js +29 -29
  102. package/dist/packages/myos/meta.js.map +1 -1
  103. package/dist/packages/myos/schemas/AddingParticipantRequested.d.ts +4 -4
  104. package/dist/packages/myos/schemas/AddingParticipantResponded.d.ts +6 -6
  105. package/dist/packages/myos/schemas/CallOperationFailed.d.ts +2 -2
  106. package/dist/packages/myos/schemas/ChatGPTConnectorAgent.d.ts +6 -6
  107. package/dist/packages/myos/schemas/DocumentSessionBootstrap.d.ts +26 -26
  108. package/dist/packages/myos/schemas/InformUserToInstallMyOSPackage.d.ts +8 -8
  109. package/dist/packages/myos/schemas/LinkedDocumentsPermissionGrantToAccount.d.ts +16 -16
  110. package/dist/packages/myos/schemas/LinkedDocumentsPermissionGrantToDocument.d.ts +10 -10
  111. package/dist/packages/myos/schemas/LinkedDocumentsPermissionRejected.d.ts +2 -2
  112. package/dist/packages/myos/schemas/LinkedDocumentsPermissionRevoked.d.ts +2 -2
  113. package/dist/packages/myos/schemas/LinkedDocumentsPermissionRevokingInProgress.d.ts +2 -2
  114. package/dist/packages/myos/schemas/MyOSAdminBase.d.ts +6 -6
  115. package/dist/packages/myos/schemas/MyOSPackage.d.ts +4 -4
  116. package/dist/packages/myos/schemas/MyOSTimelineChannel.d.ts +2 -2
  117. package/dist/packages/myos/schemas/Participant.d.ts +2 -2
  118. package/dist/packages/myos/schemas/ParticipantActivated.d.ts +4 -4
  119. package/dist/packages/myos/schemas/ParticipantResolved.d.ts +4 -4
  120. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantResponded.d.ts +2 -2
  121. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantToAccount.d.ts +16 -16
  122. package/dist/packages/myos/schemas/SingleDocumentPermissionGrantToDocument.d.ts +10 -10
  123. package/dist/packages/myos/schemas/SingleDocumentPermissionRejected.d.ts +2 -2
  124. package/dist/packages/myos/schemas/StartWorkerSessionRequested.d.ts +6 -6
  125. package/dist/packages/myos/schemas/SubscriptionToSessionFailed.d.ts +2 -2
  126. package/dist/packages/myos/schemas/SubscriptionToSessionRevoked.d.ts +2 -2
  127. package/dist/packages/myos/schemas/WorkerAgencyPermissionGrant.d.ts +10 -10
  128. package/dist/packages/myos/schemas/WorkerAgencyPermissionRejected.d.ts +2 -2
  129. package/dist/packages/myos/schemas/index.d.ts +166 -166
  130. package/dist/packages/myos/schemas/index.js +8 -8
  131. package/dist/packages/myos/schemas/index.js.map +1 -1
  132. package/dist/packages/paynote/blue-ids.d.ts +6 -2
  133. package/dist/packages/paynote/blue-ids.d.ts.map +1 -1
  134. package/dist/packages/paynote/blue-ids.js +6 -2
  135. package/dist/packages/paynote/blue-ids.js.map +1 -1
  136. package/dist/packages/paynote/contents/CardTransactionCaptureLockChangeFailed.d.ts +14 -0
  137. package/dist/packages/paynote/contents/CardTransactionCaptureLockChangeFailed.d.ts.map +1 -0
  138. package/dist/packages/paynote/contents/CardTransactionCaptureLockChangeFailed.js +14 -0
  139. package/dist/packages/paynote/contents/CardTransactionCaptureLockChangeFailed.js.map +1 -0
  140. package/dist/packages/paynote/contents/CardTransactionCaptureLockRequested.d.ts +13 -0
  141. package/dist/packages/paynote/contents/CardTransactionCaptureLockRequested.d.ts.map +1 -0
  142. package/dist/packages/paynote/contents/CardTransactionCaptureLockRequested.js +13 -0
  143. package/dist/packages/paynote/contents/CardTransactionCaptureLockRequested.js.map +1 -0
  144. package/dist/packages/paynote/contents/CardTransactionCaptureLocked.d.ts +14 -0
  145. package/dist/packages/paynote/contents/CardTransactionCaptureLocked.d.ts.map +1 -0
  146. package/dist/packages/paynote/contents/CardTransactionCaptureLocked.js +14 -0
  147. package/dist/packages/paynote/contents/CardTransactionCaptureLocked.js.map +1 -0
  148. package/dist/packages/paynote/contents/CardTransactionCaptureUnlockRequested.d.ts +13 -0
  149. package/dist/packages/paynote/contents/CardTransactionCaptureUnlockRequested.d.ts.map +1 -0
  150. package/dist/packages/paynote/contents/CardTransactionCaptureUnlockRequested.js +13 -0
  151. package/dist/packages/paynote/contents/CardTransactionCaptureUnlockRequested.js.map +1 -0
  152. package/dist/packages/paynote/contents/CardTransactionCaptureUnlocked.d.ts +14 -0
  153. package/dist/packages/paynote/contents/CardTransactionCaptureUnlocked.d.ts.map +1 -0
  154. package/dist/packages/paynote/contents/CardTransactionCaptureUnlocked.js +14 -0
  155. package/dist/packages/paynote/contents/CardTransactionCaptureUnlocked.js.map +1 -0
  156. package/dist/packages/paynote/contents/PayNoteDelivery.d.ts +101 -96
  157. package/dist/packages/paynote/contents/PayNoteDelivery.d.ts.map +1 -1
  158. package/dist/packages/paynote/contents/PayNoteDelivery.js +102 -97
  159. package/dist/packages/paynote/contents/PayNoteDelivery.js.map +1 -1
  160. package/dist/packages/paynote/contents/index.d.ts +290 -231
  161. package/dist/packages/paynote/contents/index.d.ts.map +1 -1
  162. package/dist/packages/paynote/contents/index.js +18 -6
  163. package/dist/packages/paynote/contents/index.js.map +1 -1
  164. package/dist/packages/paynote/index.d.ts +954 -2602
  165. package/dist/packages/paynote/index.d.ts.map +1 -1
  166. package/dist/packages/paynote/meta.d.ts +61 -21
  167. package/dist/packages/paynote/meta.d.ts.map +1 -1
  168. package/dist/packages/paynote/meta.js +65 -21
  169. package/dist/packages/paynote/meta.js.map +1 -1
  170. package/dist/packages/paynote/schemas/CaptureDeclined.d.ts +2 -2
  171. package/dist/packages/paynote/schemas/CaptureFailed.d.ts +2 -2
  172. package/dist/packages/paynote/schemas/CardTransactionCaptureLockChangeFailed.d.ts +25 -0
  173. package/dist/packages/paynote/schemas/CardTransactionCaptureLockChangeFailed.d.ts.map +1 -0
  174. package/dist/packages/paynote/schemas/CardTransactionCaptureLockChangeFailed.js +10 -0
  175. package/dist/packages/paynote/schemas/CardTransactionCaptureLockChangeFailed.js.map +1 -0
  176. package/dist/packages/paynote/schemas/CardTransactionCaptureLockRequested.d.ts +60 -0
  177. package/dist/packages/paynote/schemas/CardTransactionCaptureLockRequested.d.ts.map +1 -0
  178. package/dist/packages/paynote/schemas/CardTransactionCaptureLockRequested.js +11 -0
  179. package/dist/packages/paynote/schemas/CardTransactionCaptureLockRequested.js.map +1 -0
  180. package/dist/packages/paynote/schemas/CardTransactionCaptureLocked.d.ts +33 -0
  181. package/dist/packages/paynote/schemas/CardTransactionCaptureLocked.d.ts.map +1 -0
  182. package/dist/packages/paynote/schemas/CardTransactionCaptureLocked.js +11 -0
  183. package/dist/packages/paynote/schemas/CardTransactionCaptureLocked.js.map +1 -0
  184. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlockRequested.d.ts +60 -0
  185. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlockRequested.d.ts.map +1 -0
  186. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlockRequested.js +11 -0
  187. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlockRequested.js.map +1 -0
  188. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlocked.d.ts +33 -0
  189. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlocked.d.ts.map +1 -0
  190. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlocked.js +11 -0
  191. package/dist/packages/paynote/schemas/CardTransactionCaptureUnlocked.js.map +1 -0
  192. package/dist/packages/paynote/schemas/ChildPayNoteIssuanceDeclined.d.ts +2 -2
  193. package/dist/packages/paynote/schemas/PayNoteCancellationRejected.d.ts +2 -2
  194. package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts +280 -472
  195. package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts.map +1 -1
  196. package/dist/packages/paynote/schemas/PayNoteDelivery.js +6 -6
  197. package/dist/packages/paynote/schemas/PayNoteDelivery.js.map +1 -1
  198. package/dist/packages/paynote/schemas/PayNoteRejected.d.ts +2 -2
  199. package/dist/packages/paynote/schemas/ReservationDeclined.d.ts +2 -2
  200. package/dist/packages/paynote/schemas/ReservationReleaseDeclined.d.ts +2 -2
  201. package/dist/packages/paynote/schemas/SettlementAmountRejected.d.ts +2 -2
  202. package/dist/packages/paynote/schemas/index.d.ts +511 -2250
  203. package/dist/packages/paynote/schemas/index.d.ts.map +1 -1
  204. package/dist/packages/paynote/schemas/index.js +16 -4
  205. package/dist/packages/paynote/schemas/index.js.map +1 -1
  206. package/dist/repository.d.ts +12919 -14285
  207. package/dist/repository.d.ts.map +1 -1
  208. package/package.json +2 -2
  209. package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.d.ts +0 -14
  210. package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.d.ts.map +0 -1
  211. package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.js +0 -14
  212. package/dist/packages/paynote/contents/PayNoteDeliveryBootstrapRequested.js.map +0 -1
  213. package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.d.ts +0 -1750
  214. package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.d.ts.map +0 -1
  215. package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.js +0 -11
  216. package/dist/packages/paynote/schemas/PayNoteDeliveryBootstrapRequested.js.map +0 -1
@@ -2,13 +2,11 @@ export { SingleDocumentPermissionRevoked } from './SingleDocumentPermissionRevok
2
2
  export { WorkerAgencyPermissionInvalid } from './WorkerAgencyPermissionInvalid.js';
3
3
  export { SubscriptionUpdate } from './SubscriptionUpdate.js';
4
4
  export { MyOSTimeline } from './MyOSTimeline.js';
5
- export { WorkerAgencyPermissionGrant } from './WorkerAgencyPermissionGrant.js';
6
5
  export { WorkerSessionStarting } from './WorkerSessionStarting.js';
7
6
  export { StartWorkerSessionRequested } from './StartWorkerSessionRequested.js';
8
- export { LinkedDocumentsPermissionGrantToAccount } from './LinkedDocumentsPermissionGrantToAccount.js';
9
7
  export { CallOperationResponded } from './CallOperationResponded.js';
10
8
  export { AgentActor } from './AgentActor.js';
11
- export { LinkedDocumentsPermissionGrantToDocument } from './LinkedDocumentsPermissionGrantToDocument.js';
9
+ export { ChatGPTConnectorAgent } from './ChatGPTConnectorAgent.js';
12
10
  export { DocumentLinks } from './DocumentLinks.js';
13
11
  export { MyOSAgentChannel } from './MyOSAgentChannel.js';
14
12
  export { MyOSWorkerAgency } from './MyOSWorkerAgency.js';
@@ -20,11 +18,12 @@ export { WorkerAgencyPermission } from './WorkerAgencyPermission.js';
20
18
  export { SingleDocumentPermissionGrantResponded } from './SingleDocumentPermissionGrantResponded.js';
21
19
  export { WorkerAgencyPermissionRevokingInProgress } from './WorkerAgencyPermissionRevokingInProgress.js';
22
20
  export { RemovingParticipantResponded } from './RemovingParticipantResponded.js';
21
+ export { SingleDocumentPermissionGrantToDocument } from './SingleDocumentPermissionGrantToDocument.js';
23
22
  export { LinkedDocumentsPermissionRevokeRequested } from './LinkedDocumentsPermissionRevokeRequested.js';
23
+ export { DocumentSessionBootstrap } from './DocumentSessionBootstrap.js';
24
24
  export { MyOSParticipantsOrchestration } from './MyOSParticipantsOrchestration.js';
25
25
  export { LinkedDocumentsPermissionSet } from './LinkedDocumentsPermissionSet.js';
26
26
  export { DocumentAnchors } from './DocumentAnchors.js';
27
- export { DocumentSessionBootstrap } from './DocumentSessionBootstrap.js';
28
27
  export { MyOSAgent } from './MyOSAgent.js';
29
28
  export { AnchorAutomationTemplate } from './AnchorAutomationTemplate.js';
30
29
  export { WorkerAgencyPermissionGranted } from './WorkerAgencyPermissionGranted.js';
@@ -37,15 +36,18 @@ export { AddingParticipantRequested } from './AddingParticipantRequested.js';
37
36
  export { SessionEpochAdvanced } from './SessionEpochAdvanced.js';
38
37
  export { BootstrapFailed } from './BootstrapFailed.js';
39
38
  export { LinkedDocumentsPermissionRevoked } from './LinkedDocumentsPermissionRevoked.js';
39
+ export { LinkedDocumentsPermissionGrantToDocument } from './LinkedDocumentsPermissionGrantToDocument.js';
40
+ export { WorkerAgencyPermissionGrant } from './WorkerAgencyPermissionGrant.js';
40
41
  export { WorkerAgencyPermissionRevokeRequested } from './WorkerAgencyPermissionRevokeRequested.js';
42
+ export { LinkedDocumentsPermissionGrantToAccount } from './LinkedDocumentsPermissionGrantToAccount.js';
41
43
  export { SingleDocumentPermissionValidated } from './SingleDocumentPermissionValidated.js';
42
44
  export { WorkerAgencyPermissionRevoked } from './WorkerAgencyPermissionRevoked.js';
43
- export { SingleDocumentPermissionGrantToDocument } from './SingleDocumentPermissionGrantToDocument.js';
44
45
  export { CallOperationFailed } from './CallOperationFailed.js';
45
46
  export { DocumentLink } from './DocumentLink.js';
46
47
  export { LinkedDocumentsPermissionGranted } from './LinkedDocumentsPermissionGranted.js';
47
48
  export { SubscribeToSessionRequested } from './SubscribeToSessionRequested.js';
48
49
  export { AddingParticipantResponded } from './AddingParticipantResponded.js';
50
+ export { MyOSAdminBase } from './MyOSAdminBase.js';
49
51
  export { MyOSSessionInteraction } from './MyOSSessionInteraction.js';
50
52
  export { LinkedDocumentsPermissionRejected } from './LinkedDocumentsPermissionRejected.js';
51
53
  export { ParticipantActivationState } from './ParticipantActivationState.js';
@@ -64,15 +66,13 @@ export { SingleDocumentPermissionGrantRequested } from './SingleDocumentPermissi
64
66
  export { LinkedDocumentsPermissionInvalid } from './LinkedDocumentsPermissionInvalid.js';
65
67
  export { ParticipantActivated } from './ParticipantActivated.js';
66
68
  export { ParticipantResolved } from './ParticipantResolved.js';
67
- export { SingleDocumentPermissionGrantToAccount } from './SingleDocumentPermissionGrantToAccount.js';
68
69
  export { CallOperationRequested } from './CallOperationRequested.js';
69
70
  export { AllParticipantsReady } from './AllParticipantsReady.js';
70
- export { MyOSAdminBase } from './MyOSAdminBase.js';
71
71
  export { TargetDocumentSessionStarted } from './TargetDocumentSessionStarted.js';
72
72
  export { MyOSTimelineEntry } from './MyOSTimelineEntry.js';
73
+ export { SingleDocumentPermissionGrantToAccount } from './SingleDocumentPermissionGrantToAccount.js';
73
74
  export { WorkerAgencyPermissionRejected } from './WorkerAgencyPermissionRejected.js';
74
75
  export { SubscriptionToSessionRevoked } from './SubscriptionToSessionRevoked.js';
75
- export { ChatGPTConnectorAgent } from './ChatGPTConnectorAgent.js';
76
76
  export { MyOSAgentEvent } from './MyOSAgentEvent.js';
77
77
  export { WorkerAgencyPermissionValidated } from './WorkerAgencyPermissionValidated.js';
78
78
  export { SubscriptionToSessionInitiated } from './SubscriptionToSessionInitiated.js';
@@ -142,111 +142,6 @@ export declare const contents: {
142
142
  readonly blueId: "3Ge54FsGJaaeZmm8nTKJdS6HVdYhiR3g18fDwg3Ev1Sa";
143
143
  };
144
144
  };
145
- readonly '2NN4VerhNHSyBcyoJpgtcuURkss2QRMmGkocQobJ8JYP': {
146
- readonly allowedWorkerAgencyPermissions: {
147
- readonly itemType: {
148
- readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
149
- };
150
- readonly type: {
151
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
152
- };
153
- };
154
- readonly contracts: {
155
- readonly granterChannel: {
156
- readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
157
- readonly type: {
158
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
159
- };
160
- };
161
- readonly initLifecycleChannel: {
162
- readonly event: {
163
- readonly type: {
164
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
165
- };
166
- };
167
- readonly type: {
168
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
169
- };
170
- };
171
- readonly revoke: {
172
- readonly channel: {
173
- readonly type: {
174
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
175
- };
176
- readonly value: "granterChannel";
177
- };
178
- readonly description: "Granter requests revocation (handled by MyOS Admin)";
179
- readonly request: {
180
- readonly description: "Optional human-readable reason";
181
- readonly type: {
182
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
183
- };
184
- };
185
- readonly type: {
186
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
187
- };
188
- };
189
- readonly revokeImplGranter: {
190
- readonly operation: {
191
- readonly type: {
192
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
193
- };
194
- readonly value: "revoke";
195
- };
196
- readonly steps: {
197
- readonly items: readonly [{
198
- readonly code: {
199
- readonly type: {
200
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
201
- };
202
- readonly value: "return {\n events: [\n {\n type: \"MyOS/Worker Agency Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
203
- };
204
- readonly name: "EmitRevokeRequested";
205
- readonly type: {
206
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
207
- };
208
- }];
209
- };
210
- readonly type: {
211
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
212
- };
213
- };
214
- readonly validateOnInit: {
215
- readonly channel: {
216
- readonly type: {
217
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
218
- };
219
- readonly value: "initLifecycleChannel";
220
- };
221
- readonly steps: {
222
- readonly items: readonly [{
223
- readonly code: {
224
- readonly type: {
225
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
226
- };
227
- 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";
228
- };
229
- readonly name: "ValidateBasicShape";
230
- readonly type: {
231
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
232
- };
233
- }];
234
- };
235
- readonly type: {
236
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
237
- };
238
- };
239
- };
240
- readonly granteeDocumentId: {
241
- readonly type: {
242
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
243
- };
244
- };
245
- readonly name: "Worker Agency Permission Grant";
246
- readonly type: {
247
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
248
- };
249
- };
250
145
  readonly '3B7ErHwZ9NHiW4e6msFDt57U8sTvFXZQBEwHzcdNCjmf': {
251
146
  readonly description: "Worker session is starting.";
252
147
  readonly granteeDocumentId: {
@@ -324,122 +219,6 @@ export declare const contents: {
324
219
  readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
325
220
  };
326
221
  };
327
- readonly '3nHZjceYBWLD6nWXo354UhdU5vZWy26rUTL8aRj3xEmd': {
328
- readonly contracts: {
329
- readonly granteeChannel: {
330
- readonly description: "Grantee’s timeline (recipient of the rights)";
331
- readonly type: {
332
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
333
- };
334
- };
335
- readonly granterChannel: {
336
- readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
337
- readonly type: {
338
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
339
- };
340
- };
341
- readonly initLifecycleChannel: {
342
- readonly event: {
343
- readonly type: {
344
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
345
- };
346
- };
347
- readonly type: {
348
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
349
- };
350
- };
351
- readonly revoke: {
352
- readonly channel: {
353
- readonly type: {
354
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
355
- };
356
- readonly value: "granterChannel";
357
- };
358
- readonly description: "Granter or grantee indicates the grant should be revoked (MyOS Admin will handle)";
359
- readonly request: {
360
- readonly description: "Optional human-readable reason";
361
- readonly type: {
362
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
363
- };
364
- };
365
- readonly type: {
366
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
367
- };
368
- };
369
- readonly revokeImplGranter: {
370
- readonly operation: {
371
- readonly type: {
372
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
373
- };
374
- readonly value: "revoke";
375
- };
376
- readonly steps: {
377
- readonly items: readonly [{
378
- readonly code: {
379
- readonly type: {
380
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
381
- };
382
- readonly value: "return {\n events: [\n {\n type: \"MyOS/Linked Documents Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
383
- };
384
- readonly name: "EmitRevokeRequested";
385
- readonly type: {
386
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
387
- };
388
- }];
389
- };
390
- readonly type: {
391
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
392
- };
393
- };
394
- readonly validateOnInit: {
395
- readonly channel: {
396
- readonly type: {
397
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
398
- };
399
- readonly value: "initLifecycleChannel";
400
- };
401
- readonly steps: {
402
- readonly items: readonly [{
403
- readonly code: {
404
- readonly type: {
405
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
406
- };
407
- 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// Required: links\nconst links = document('/links');\nif (!links || typeof links !== 'object') issues.push(\"links is missing or invalid\");\n\nconst anchors = Object.keys(links).filter(key => !['description', 'type', 'keyType', 'valueType'].includes(key));\nif (anchors.length === 0) {\n issues.push(\"links must have at least one anchor entry\");\n}\nfor (const anchor of anchors) {\n const perms = links[anchor];\n if (!perms || perms.read !== true) {\n issues.push(`links['${anchor}'].read must be true`);\n }\n const hasSingle = Array.isArray(perms.singleOps) && perms.singleOps.length > 0;\n if (hasSingle && perms.singleOps.some(x => typeof x !== \"string\" || x.trim().length === 0)) {\n issues.push(`links['${anchor}'].singleOps must contain only non-empty strings`);\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(`links['${anchor}'].allOps=true and singleOps are mutually exclusive`);\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"MyOS/Linked Documents Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"MyOS/Linked Documents Permission Validated\" } ] };\n";
408
- };
409
- readonly name: "ValidateBasicShape";
410
- readonly type: {
411
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
412
- };
413
- }];
414
- };
415
- readonly type: {
416
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
417
- };
418
- };
419
- };
420
- readonly granterDocumentSessionId: {
421
- readonly description: "Optional. If set, MyOS should evaluate authority as this document session\n(principalType='document', granteeId=documentId of this session),\ninstead of the granter accountId.\n";
422
- readonly type: {
423
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
424
- };
425
- };
426
- readonly links: {
427
- readonly description: "Map from anchor name to permissions that will be granted for documents linked to the base document via that anchor.";
428
- readonly type: {
429
- readonly blueId: "75TXyy5E7vbexVAUZcjZ2vdQaG7fJJbAHAgrh8sMtTp5";
430
- };
431
- };
432
- readonly name: "Linked Documents Permission Grant To Account";
433
- readonly targetSessionId: {
434
- readonly description: "Base document session id whose anchors define the scope of this grant.";
435
- readonly type: {
436
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
437
- };
438
- };
439
- readonly type: {
440
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
441
- };
442
- };
443
222
  readonly '3P4vsTx8Ky2pucXxKgkn8MouveP2DBRjkwZckCG5b9Lb': {
444
223
  readonly description: "MyOS Admin forwards operation Response events to the requesting session";
445
224
  readonly events: {
@@ -480,126 +259,80 @@ export declare const contents: {
480
259
  readonly blueId: "CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ";
481
260
  };
482
261
  };
483
- readonly '488CnQXrxMyNAgCVgL85SyHxUK5rZzWzd81eo4JkVHRD': {
262
+ readonly '3SULZSU6Yvi6rVuhGsRX7znRuyt6oWnx1Hdyu6QhdhFj': {
484
263
  readonly contracts: {
485
- readonly granterChannel: {
486
- readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
264
+ readonly ownerChannel: {
487
265
  readonly type: {
488
266
  readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
489
267
  };
490
268
  };
491
- readonly initLifecycleChannel: {
492
- readonly event: {
493
- readonly type: {
494
- readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
495
- };
496
- };
497
- readonly type: {
498
- readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
499
- };
500
- };
501
- readonly revoke: {
269
+ readonly startWorker: {
502
270
  readonly channel: {
503
271
  readonly type: {
504
272
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
505
273
  };
506
- readonly value: "granterChannel";
274
+ readonly value: "ownerChannel";
507
275
  };
508
- readonly description: "Granter indicates the grant should be revoked (MyOS Admin will handle)";
276
+ readonly description: "Prompt the user to install a provided MyOS Package";
509
277
  readonly request: {
510
- readonly description: "Optional human-readable reason";
511
- readonly type: {
512
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
278
+ readonly package: {
279
+ readonly description: "MyOS Package";
280
+ readonly type: {
281
+ readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
282
+ };
513
283
  };
514
284
  };
515
285
  readonly type: {
516
286
  readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
517
287
  };
518
288
  };
519
- readonly revokeImplGranter: {
289
+ readonly startWorkerImpl: {
520
290
  readonly operation: {
521
291
  readonly type: {
522
292
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
523
293
  };
524
- readonly value: "revoke";
294
+ readonly value: "startWorker";
525
295
  };
526
296
  readonly steps: {
527
297
  readonly items: readonly [{
528
- readonly code: {
529
- readonly type: {
530
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
298
+ readonly event: {
299
+ readonly message: {
300
+ readonly type: {
301
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
302
+ };
303
+ readonly value: "A package has been prepared for you. Review and install.";
304
+ };
305
+ readonly package: {
306
+ readonly type: {
307
+ readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
308
+ };
309
+ readonly value: "${event.message.request.package}";
310
+ };
311
+ readonly title: {
312
+ readonly type: {
313
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
314
+ };
315
+ readonly value: "ChatGPT is requesting permission to launch a new agent";
531
316
  };
532
- readonly value: "return {\n events: [\n {\n type: \"MyOS/Linked Documents Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
533
- };
534
- readonly name: "EmitRevokeRequested";
535
- readonly type: {
536
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
537
- };
538
- }];
539
- };
540
- readonly type: {
541
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
542
- };
543
- };
544
- readonly validateOnInit: {
545
- readonly channel: {
546
- readonly type: {
547
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
548
- };
549
- readonly value: "initLifecycleChannel";
550
- };
551
- readonly steps: {
552
- readonly items: readonly [{
553
- readonly code: {
554
317
  readonly type: {
555
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
318
+ readonly blueId: "CrGV4ZYjvPvMqrgNQAfgZCUnFjFW6HDjYNdon2chLKU3";
556
319
  };
557
- 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\");\n\n// Required: links\nconst links = document('/links');\nif (!links || typeof links !== 'object') issues.push(\"links is missing or invalid\");\n\nconst anchors = Object.keys(links).filter(key => !['description', 'type', 'keyType', 'valueType'].includes(key));\nif (anchors.length === 0) {\n issues.push(\"links must have at least one anchor entry\");\n}\nfor (const anchor of anchors) {\n const perms = links[anchor];\n if (!perms || perms.read !== true) {\n issues.push(`links['${anchor}'].read must be true`);\n }\n const hasSingle = Array.isArray(perms.singleOps) && perms.singleOps.length > 0;\n if (hasSingle && perms.singleOps.some(x => typeof x !== \"string\" || x.trim().length === 0)) {\n issues.push(`links['${anchor}'].singleOps must contain only non-empty strings`);\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(`links['${anchor}'].allOps=true and singleOps are mutually exclusive`);\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"MyOS/Linked Documents Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"MyOS/Linked Documents Permission Validated\" } ] };\n";
558
320
  };
559
- readonly name: "ValidateBasicShape";
321
+ readonly name: "Emit Install Prompt";
560
322
  readonly type: {
561
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
323
+ readonly blueId: "2bSWEoMSZwzf32Hnr4BDVsuq8NRjrWEpnhZvMZAJGhh2";
562
324
  };
563
325
  }];
564
326
  };
565
327
  readonly type: {
566
- readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
328
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
567
329
  };
568
330
  };
569
331
  };
570
- readonly granteeDocumentId: {
571
- readonly description: "Required original document id (blueId) that will act as the 'document' principal.";
572
- readonly type: {
573
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
574
- };
575
- };
576
- readonly granterDocumentSessionId: {
577
- readonly description: "Optional. If set, MyOS should evaluate authority as this document session\n(principalType='document', granteeId=documentId of this session),\ninstead of the granter accountId.\n";
578
- readonly type: {
579
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
580
- };
581
- };
582
- readonly links: {
583
- readonly description: "Map from anchor name to permissions that will be granted for documents linked to the base document via that anchor.";
584
- readonly type: {
585
- readonly blueId: "75TXyy5E7vbexVAUZcjZ2vdQaG7fJJbAHAgrh8sMtTp5";
586
- };
587
- };
588
- readonly name: "Linked Documents Permission Grant To Document";
589
- readonly skipValidation: {
590
- readonly description: "If true, the validation will be skipped (MyOS Admin won't be triggered to create permission grant)";
591
- readonly type: {
592
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
593
- };
594
- };
595
- readonly targetSessionId: {
596
- readonly description: "Base document session id whose anchors define the scope of this grant.";
597
- readonly type: {
598
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
599
- };
600
- };
332
+ readonly description: "Lets the owner prompt installation of a provided MyOS Package.";
333
+ readonly name: "Chat GPT Connector Agent";
601
334
  readonly type: {
602
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
335
+ readonly blueId: "8s2rAFDtiB6sCwqeURkT4Lq7fcc2FXBkmX9B9p7R4Boc";
603
336
  };
604
337
  };
605
338
  readonly '4cmrbevB6K23ZenjqwmNxpnaw6RF4VB3wkP7XB59V7W5': {
@@ -834,48 +567,141 @@ export declare const contents: {
834
567
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
835
568
  };
836
569
  };
837
- readonly '6fTSbBwfj3zkin6EjGevF16QzokKa1xNXrDjdQwbDir7': {
838
- readonly description: "Emitted by revoke operation";
839
- readonly name: "Linked Documents Permission Revoke Requested";
840
- readonly reason: {
570
+ readonly '6fEj6jD4eEVJwjH9Z2aQ9HsqdaCzbppfsYL2mFLx32YP': {
571
+ readonly contracts: {
572
+ readonly granterChannel: {
573
+ readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
574
+ readonly type: {
575
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
576
+ };
577
+ };
578
+ readonly initLifecycleChannel: {
579
+ readonly event: {
580
+ readonly type: {
581
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
582
+ };
583
+ };
584
+ readonly type: {
585
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
586
+ };
587
+ };
588
+ readonly revoke: {
589
+ readonly channel: {
590
+ readonly type: {
591
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
592
+ };
593
+ readonly value: "granterChannel";
594
+ };
595
+ readonly description: "Granter requests revocation (handled by MyOS Admin)";
596
+ readonly request: {
597
+ readonly description: "Optional human-readable reason";
598
+ readonly type: {
599
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
600
+ };
601
+ };
602
+ readonly type: {
603
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
604
+ };
605
+ };
606
+ readonly revokeImplGranter: {
607
+ readonly operation: {
608
+ readonly type: {
609
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
610
+ };
611
+ readonly value: "revoke";
612
+ };
613
+ readonly steps: {
614
+ readonly items: readonly [{
615
+ readonly code: {
616
+ readonly type: {
617
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
618
+ };
619
+ readonly value: "return {\n events: [\n {\n type: \"MyOS/Single Document Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
620
+ };
621
+ readonly name: "EmitRevokeRequested";
622
+ readonly type: {
623
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
624
+ };
625
+ }];
626
+ };
627
+ readonly type: {
628
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
629
+ };
630
+ };
631
+ readonly validateOnInit: {
632
+ readonly channel: {
633
+ readonly type: {
634
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
635
+ };
636
+ readonly value: "initLifecycleChannel";
637
+ };
638
+ readonly steps: {
639
+ readonly items: readonly [{
640
+ readonly code: {
641
+ readonly type: {
642
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
643
+ };
644
+ 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";
645
+ };
646
+ readonly name: "ValidateBasicShape";
647
+ readonly type: {
648
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
649
+ };
650
+ }];
651
+ };
652
+ readonly type: {
653
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
654
+ };
655
+ };
656
+ };
657
+ readonly granteeDocumentId: {
658
+ readonly description: "Required original document id (blueId) that will act as the grantee principal ('document')";
841
659
  readonly type: {
842
660
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
843
661
  };
844
662
  };
845
- readonly type: {
846
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
663
+ readonly granterDocumentSessionId: {
664
+ readonly description: "Optional. If set, MyOS should evaluate authority using this document session as the principal (instead of granter accountId).";
665
+ readonly type: {
666
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
667
+ };
847
668
  };
848
- };
849
- readonly '6tzp2YX1rei3aAXg22SqYbeiiteGthj1LesTNCWm7wbU': {
850
- readonly name: "MyOS Participants Orchestration";
851
- };
852
- readonly '75TXyy5E7vbexVAUZcjZ2vdQaG7fJJbAHAgrh8sMtTp5': {
853
- readonly description: "Map from anchor name to permissions that will be granted for documents linked to the base document via that anchor.";
854
- readonly keyType: {
855
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
669
+ readonly name: "Single Document Permission Grant To Document";
670
+ readonly permissions: {
671
+ 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).";
672
+ readonly type: {
673
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
674
+ };
856
675
  };
857
- readonly name: "Linked Documents Permission Set";
858
- readonly type: {
859
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
676
+ readonly skipValidation: {
677
+ readonly description: "If true, the validation will be skipped (MyOS Admin won't be triggered to create permission grant)";
678
+ readonly type: {
679
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
680
+ };
860
681
  };
861
- readonly valueType: {
862
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
682
+ readonly targetSessionId: {
683
+ readonly description: "Target document session id to grant access to";
684
+ readonly type: {
685
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
686
+ };
687
+ };
688
+ readonly type: {
689
+ readonly blueId: "Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj";
863
690
  };
864
691
  };
865
- readonly '7Usvk6dZMVqas3yqs23ZEXn1zu1YDPjgYiZFNYaw3puH': {
866
- readonly description: "Dictionary of named incoming connection points (anchors) that other documents can link to. Links to an anchor are by its dictionary key.";
867
- readonly keyType: {
868
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
692
+ readonly '6fTSbBwfj3zkin6EjGevF16QzokKa1xNXrDjdQwbDir7': {
693
+ readonly description: "Emitted by revoke operation";
694
+ readonly name: "Linked Documents Permission Revoke Requested";
695
+ readonly reason: {
696
+ readonly type: {
697
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
698
+ };
869
699
  };
870
- readonly name: "Document Anchors";
871
700
  readonly type: {
872
- readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
873
- };
874
- readonly valueType: {
875
- readonly blueId: "HS9yo34TGEAM2LGcNbLh7XPN4goPRhqdGZQkiyh473Wb";
701
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
876
702
  };
877
703
  };
878
- readonly '84xMEnEYr3DPBuYZL3JtcsZBBTtRH9fEEJiPnk7ASj1o': {
704
+ readonly '6HC9zdAPTChMDo8okX3rYTz4aeCEKCr8TtU2WmfugdSJ': {
879
705
  readonly bootstrapError: {
880
706
  readonly description: "Error message explaining bootstrap failure";
881
707
  readonly type: {
@@ -951,7 +777,7 @@ export declare const contents: {
951
777
  };
952
778
  readonly name: "Update Error Message";
953
779
  readonly type: {
954
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
780
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
955
781
  };
956
782
  }, {
957
783
  readonly code: {
@@ -962,7 +788,7 @@ export declare const contents: {
962
788
  };
963
789
  readonly name: "Emit Failure Event";
964
790
  readonly type: {
965
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
791
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
966
792
  };
967
793
  }];
968
794
  };
@@ -992,7 +818,7 @@ export declare const contents: {
992
818
  };
993
819
  readonly name: "Prepare Participant State";
994
820
  readonly type: {
995
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
821
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
996
822
  };
997
823
  }, {
998
824
  readonly changeset: {
@@ -1019,7 +845,7 @@ export declare const contents: {
1019
845
  };
1020
846
  readonly name: "Update Participants State";
1021
847
  readonly type: {
1022
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
848
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1023
849
  };
1024
850
  }];
1025
851
  };
@@ -1065,7 +891,7 @@ export declare const contents: {
1065
891
  };
1066
892
  readonly name: "Update Bootstrap Status";
1067
893
  readonly type: {
1068
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
894
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1069
895
  };
1070
896
  }];
1071
897
  };
@@ -1111,7 +937,7 @@ export declare const contents: {
1111
937
  };
1112
938
  readonly name: "Update Initiator Session";
1113
939
  readonly type: {
1114
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
940
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1115
941
  };
1116
942
  }, {
1117
943
  readonly code: {
@@ -1122,7 +948,7 @@ export declare const contents: {
1122
948
  };
1123
949
  readonly name: "Emit Completion Event";
1124
950
  readonly type: {
1125
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
951
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1126
952
  };
1127
953
  }];
1128
954
  };
@@ -1162,7 +988,7 @@ export declare const contents: {
1162
988
  };
1163
989
  readonly name: "Initialize Bootstrap Status";
1164
990
  readonly type: {
1165
- readonly blueId: "BnnNLCnKF49TUJ1bRfZ5rSMaFw8SVfUNfnE4kJFG7HtM";
991
+ readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
1166
992
  };
1167
993
  }];
1168
994
  };
@@ -1234,21 +1060,50 @@ export declare const contents: {
1234
1060
  };
1235
1061
  };
1236
1062
  readonly type: {
1237
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
1063
+ readonly blueId: "Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj";
1238
1064
  };
1239
1065
  };
1240
- readonly '8DQrCT6Mf9wHQyRc4NdYhjFW4FbKi83no2QPe54UhdQ5': {
1241
- readonly agentId: {
1242
- readonly description: "Optional agent identifier";
1243
- readonly type: {
1244
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1245
- };
1066
+ readonly '6tzp2YX1rei3aAXg22SqYbeiiteGthj1LesTNCWm7wbU': {
1067
+ readonly name: "MyOS Participants Orchestration";
1068
+ };
1069
+ readonly '75TXyy5E7vbexVAUZcjZ2vdQaG7fJJbAHAgrh8sMtTp5': {
1070
+ readonly description: "Map from anchor name to permissions that will be granted for documents linked to the base document via that anchor.";
1071
+ readonly keyType: {
1072
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1073
+ };
1074
+ readonly name: "Linked Documents Permission Set";
1075
+ readonly type: {
1076
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1077
+ };
1078
+ readonly valueType: {
1079
+ readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
1246
1080
  };
1247
- readonly description: "MyOS-specific agent with optional agent identifier";
1248
- readonly name: "MyOS Agent";
1249
1081
  };
1250
- readonly '8eyv5ogjHbTqUeaJKWHMenLs3MaCnpGSQkbPrCqvk2Ga': {
1251
- readonly description: "Template payload that can be included in a MyOS package to optionally start an automation after the Agent session is created.\n";
1082
+ readonly '7Usvk6dZMVqas3yqs23ZEXn1zu1YDPjgYiZFNYaw3puH': {
1083
+ readonly description: "Dictionary of named incoming connection points (anchors) that other documents can link to. Links to an anchor are by its dictionary key.";
1084
+ readonly keyType: {
1085
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1086
+ };
1087
+ readonly name: "Document Anchors";
1088
+ readonly type: {
1089
+ readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
1090
+ };
1091
+ readonly valueType: {
1092
+ readonly blueId: "HS9yo34TGEAM2LGcNbLh7XPN4goPRhqdGZQkiyh473Wb";
1093
+ };
1094
+ };
1095
+ readonly '8DQrCT6Mf9wHQyRc4NdYhjFW4FbKi83no2QPe54UhdQ5': {
1096
+ readonly agentId: {
1097
+ readonly description: "Optional agent identifier";
1098
+ readonly type: {
1099
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1100
+ };
1101
+ };
1102
+ readonly description: "MyOS-specific agent with optional agent identifier";
1103
+ readonly name: "MyOS Agent";
1104
+ };
1105
+ readonly '8eyv5ogjHbTqUeaJKWHMenLs3MaCnpGSQkbPrCqvk2Ga': {
1106
+ readonly description: "Template payload that can be included in a MyOS package to optionally start an automation after the Agent session is created.\n";
1252
1107
  readonly name: "Anchor Automation Template";
1253
1108
  };
1254
1109
  readonly '8GNc7HmPKXmURG12ZBY8iXYEP7CTfBLsfXvpLcQ6EMwS': {
@@ -1420,33 +1275,137 @@ export declare const contents: {
1420
1275
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1421
1276
  };
1422
1277
  };
1423
- readonly ABJ7njZbfTXNP173SCoMytQtVfMXCEwPdFhSJ7F3Vbx9: {
1424
- readonly description: "Emitted by revoke operation";
1425
- readonly name: "Worker Agency Permission Revoke Requested";
1426
- readonly reason: {
1278
+ readonly A2dveyQFp6dYJgigdRuZW3dsbdeiG2HzHnjaobAHJCvY: {
1279
+ readonly contracts: {
1280
+ readonly granterChannel: {
1281
+ readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
1282
+ readonly type: {
1283
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1284
+ };
1285
+ };
1286
+ readonly initLifecycleChannel: {
1287
+ readonly event: {
1288
+ readonly type: {
1289
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
1290
+ };
1291
+ };
1292
+ readonly type: {
1293
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
1294
+ };
1295
+ };
1296
+ readonly revoke: {
1297
+ readonly channel: {
1298
+ readonly type: {
1299
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1300
+ };
1301
+ readonly value: "granterChannel";
1302
+ };
1303
+ readonly description: "Granter indicates the grant should be revoked (MyOS Admin will handle)";
1304
+ readonly request: {
1305
+ readonly description: "Optional human-readable reason";
1306
+ readonly type: {
1307
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1308
+ };
1309
+ };
1310
+ readonly type: {
1311
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1312
+ };
1313
+ };
1314
+ readonly revokeImplGranter: {
1315
+ readonly operation: {
1316
+ readonly type: {
1317
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1318
+ };
1319
+ readonly value: "revoke";
1320
+ };
1321
+ readonly steps: {
1322
+ readonly items: readonly [{
1323
+ readonly code: {
1324
+ readonly type: {
1325
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1326
+ };
1327
+ readonly value: "return {\n events: [\n {\n type: \"MyOS/Linked Documents Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
1328
+ };
1329
+ readonly name: "EmitRevokeRequested";
1330
+ readonly type: {
1331
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1332
+ };
1333
+ }];
1334
+ };
1335
+ readonly type: {
1336
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1337
+ };
1338
+ };
1339
+ readonly validateOnInit: {
1340
+ readonly channel: {
1341
+ readonly type: {
1342
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1343
+ };
1344
+ readonly value: "initLifecycleChannel";
1345
+ };
1346
+ readonly steps: {
1347
+ readonly items: readonly [{
1348
+ readonly code: {
1349
+ readonly type: {
1350
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1351
+ };
1352
+ 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\");\n\n// Required: links\nconst links = document('/links');\nif (!links || typeof links !== 'object') issues.push(\"links is missing or invalid\");\n\nconst anchors = Object.keys(links).filter(key => !['description', 'type', 'keyType', 'valueType'].includes(key));\nif (anchors.length === 0) {\n issues.push(\"links must have at least one anchor entry\");\n}\nfor (const anchor of anchors) {\n const perms = links[anchor];\n if (!perms || perms.read !== true) {\n issues.push(`links['${anchor}'].read must be true`);\n }\n const hasSingle = Array.isArray(perms.singleOps) && perms.singleOps.length > 0;\n if (hasSingle && perms.singleOps.some(x => typeof x !== \"string\" || x.trim().length === 0)) {\n issues.push(`links['${anchor}'].singleOps must contain only non-empty strings`);\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(`links['${anchor}'].allOps=true and singleOps are mutually exclusive`);\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"MyOS/Linked Documents Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"MyOS/Linked Documents Permission Validated\" } ] };\n";
1353
+ };
1354
+ readonly name: "ValidateBasicShape";
1355
+ readonly type: {
1356
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1357
+ };
1358
+ }];
1359
+ };
1360
+ readonly type: {
1361
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
1362
+ };
1363
+ };
1364
+ };
1365
+ readonly granteeDocumentId: {
1366
+ readonly description: "Required original document id (blueId) that will act as the 'document' principal.";
1427
1367
  readonly type: {
1428
1368
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1429
1369
  };
1430
1370
  };
1431
- readonly type: {
1432
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1371
+ readonly granterDocumentSessionId: {
1372
+ readonly description: "Optional. If set, MyOS should evaluate authority as this document session\n(principalType='document', granteeId=documentId of this session),\ninstead of the granter accountId.\n";
1373
+ readonly type: {
1374
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1375
+ };
1433
1376
  };
1434
- };
1435
- readonly AG6fiGy88gX5eKoUcHS2BV17EfMssiYZj99kx9RcpKEX: {
1436
- readonly description: "Emitted on initialise when local shape checks pass.";
1437
- readonly name: "Single Document Permission Validated";
1438
- readonly type: {
1439
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1377
+ readonly links: {
1378
+ readonly description: "Map from anchor name to permissions that will be granted for documents linked to the base document via that anchor.";
1379
+ readonly type: {
1380
+ readonly blueId: "75TXyy5E7vbexVAUZcjZ2vdQaG7fJJbAHAgrh8sMtTp5";
1381
+ };
1382
+ };
1383
+ readonly name: "Linked Documents Permission Grant To Document";
1384
+ readonly skipValidation: {
1385
+ readonly description: "If true, the validation will be skipped (MyOS Admin won't be triggered to create permission grant)";
1386
+ readonly type: {
1387
+ readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1388
+ };
1389
+ };
1390
+ readonly targetSessionId: {
1391
+ readonly description: "Base document session id whose anchors define the scope of this grant.";
1392
+ readonly type: {
1393
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1394
+ };
1440
1395
  };
1441
- };
1442
- readonly AMNPp7uGYBgygbnmMS649m6Gf5bNULaEK8aSQ3b4xdrf: {
1443
- readonly description: "Rights granted by this WAG have been retracted.";
1444
- readonly name: "Worker Agency Permission Revoked";
1445
1396
  readonly type: {
1446
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1397
+ readonly blueId: "Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj";
1447
1398
  };
1448
1399
  };
1449
- readonly AQyDRNKEkDan8VGNcvBdJCz95HKcwcAurhccHnCgV1j9: {
1400
+ readonly A73AVDR9GWAshFUC2Me2qXNns2HECzbadtsgp5zxCjGx: {
1401
+ readonly allowedWorkerAgencyPermissions: {
1402
+ readonly itemType: {
1403
+ readonly blueId: "5J3RXNnALK1ZYAQBrjGwCQ4WpL3YUGHvz9WcGos6mMSp";
1404
+ };
1405
+ readonly type: {
1406
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
1407
+ };
1408
+ };
1450
1409
  readonly contracts: {
1451
1410
  readonly granterChannel: {
1452
1411
  readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
@@ -1495,11 +1454,11 @@ export declare const contents: {
1495
1454
  readonly type: {
1496
1455
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1497
1456
  };
1498
- readonly value: "return {\n events: [\n {\n type: \"MyOS/Single Document Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
1457
+ readonly value: "return {\n events: [\n {\n type: \"MyOS/Worker Agency Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
1499
1458
  };
1500
1459
  readonly name: "EmitRevokeRequested";
1501
1460
  readonly type: {
1502
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
1461
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1503
1462
  };
1504
1463
  }];
1505
1464
  };
@@ -1520,11 +1479,11 @@ export declare const contents: {
1520
1479
  readonly type: {
1521
1480
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1522
1481
  };
1523
- 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";
1482
+ 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";
1524
1483
  };
1525
1484
  readonly name: "ValidateBasicShape";
1526
1485
  readonly type: {
1527
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
1486
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1528
1487
  };
1529
1488
  }];
1530
1489
  };
@@ -1534,38 +1493,155 @@ export declare const contents: {
1534
1493
  };
1535
1494
  };
1536
1495
  readonly granteeDocumentId: {
1537
- readonly description: "Required original document id (blueId) that will act as the grantee principal ('document')";
1538
1496
  readonly type: {
1539
1497
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1540
1498
  };
1541
1499
  };
1542
- readonly granterDocumentSessionId: {
1543
- readonly description: "Optional. If set, MyOS should evaluate authority using this document session as the principal (instead of granter accountId).";
1500
+ readonly name: "Worker Agency Permission Grant";
1501
+ readonly type: {
1502
+ readonly blueId: "Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj";
1503
+ };
1504
+ };
1505
+ readonly ABJ7njZbfTXNP173SCoMytQtVfMXCEwPdFhSJ7F3Vbx9: {
1506
+ readonly description: "Emitted by revoke operation";
1507
+ readonly name: "Worker Agency Permission Revoke Requested";
1508
+ readonly reason: {
1544
1509
  readonly type: {
1545
1510
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1546
1511
  };
1547
1512
  };
1548
- readonly name: "Single Document Permission Grant To Document";
1549
- readonly permissions: {
1550
- 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).";
1513
+ readonly type: {
1514
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
1515
+ };
1516
+ };
1517
+ readonly AFX9ct4gYywCbqPUJWaTz4JXS74RxxNPUMNzBMzNGD8c: {
1518
+ readonly contracts: {
1519
+ readonly granteeChannel: {
1520
+ readonly description: "Grantee’s timeline (recipient of the rights)";
1521
+ readonly type: {
1522
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1523
+ };
1524
+ };
1525
+ readonly granterChannel: {
1526
+ readonly description: "Granter/owner’s timeline (actor allowed to request revoke)";
1527
+ readonly type: {
1528
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1529
+ };
1530
+ };
1531
+ readonly initLifecycleChannel: {
1532
+ readonly event: {
1533
+ readonly type: {
1534
+ readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
1535
+ };
1536
+ };
1537
+ readonly type: {
1538
+ readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
1539
+ };
1540
+ };
1541
+ readonly revoke: {
1542
+ readonly channel: {
1543
+ readonly type: {
1544
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1545
+ };
1546
+ readonly value: "granterChannel";
1547
+ };
1548
+ readonly description: "Granter or grantee indicates the grant should be revoked (MyOS Admin will handle)";
1549
+ readonly request: {
1550
+ readonly description: "Optional human-readable reason";
1551
+ readonly type: {
1552
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1553
+ };
1554
+ };
1555
+ readonly type: {
1556
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1557
+ };
1558
+ };
1559
+ readonly revokeImplGranter: {
1560
+ readonly operation: {
1561
+ readonly type: {
1562
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1563
+ };
1564
+ readonly value: "revoke";
1565
+ };
1566
+ readonly steps: {
1567
+ readonly items: readonly [{
1568
+ readonly code: {
1569
+ readonly type: {
1570
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1571
+ };
1572
+ readonly value: "return {\n events: [\n {\n type: \"MyOS/Linked Documents Permission Revoke Requested\",\n reason: event.message.request\n }\n ]\n};\n";
1573
+ };
1574
+ readonly name: "EmitRevokeRequested";
1575
+ readonly type: {
1576
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1577
+ };
1578
+ }];
1579
+ };
1580
+ readonly type: {
1581
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1582
+ };
1583
+ };
1584
+ readonly validateOnInit: {
1585
+ readonly channel: {
1586
+ readonly type: {
1587
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1588
+ };
1589
+ readonly value: "initLifecycleChannel";
1590
+ };
1591
+ readonly steps: {
1592
+ readonly items: readonly [{
1593
+ readonly code: {
1594
+ readonly type: {
1595
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1596
+ };
1597
+ 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// Required: links\nconst links = document('/links');\nif (!links || typeof links !== 'object') issues.push(\"links is missing or invalid\");\n\nconst anchors = Object.keys(links).filter(key => !['description', 'type', 'keyType', 'valueType'].includes(key));\nif (anchors.length === 0) {\n issues.push(\"links must have at least one anchor entry\");\n}\nfor (const anchor of anchors) {\n const perms = links[anchor];\n if (!perms || perms.read !== true) {\n issues.push(`links['${anchor}'].read must be true`);\n }\n const hasSingle = Array.isArray(perms.singleOps) && perms.singleOps.length > 0;\n if (hasSingle && perms.singleOps.some(x => typeof x !== \"string\" || x.trim().length === 0)) {\n issues.push(`links['${anchor}'].singleOps must contain only non-empty strings`);\n }\n if (perms.allOps === true && hasSingle) {\n issues.push(`links['${anchor}'].allOps=true and singleOps are mutually exclusive`);\n }\n}\n\nif (issues.length > 0) return { events: [ { type: \"MyOS/Linked Documents Permission Invalid\", issues } ] };\nreturn { events: [ { type: \"MyOS/Linked Documents Permission Validated\" } ] };\n";
1598
+ };
1599
+ readonly name: "ValidateBasicShape";
1600
+ readonly type: {
1601
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1602
+ };
1603
+ }];
1604
+ };
1605
+ readonly type: {
1606
+ readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
1607
+ };
1608
+ };
1609
+ };
1610
+ readonly granterDocumentSessionId: {
1611
+ readonly description: "Optional. If set, MyOS should evaluate authority as this document session\n(principalType='document', granteeId=documentId of this session),\ninstead of the granter accountId.\n";
1551
1612
  readonly type: {
1552
- readonly blueId: "DRDQcve5AjwBK9z6Njfa4MNERko7Uf4ucvARFdC6sL54";
1613
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1553
1614
  };
1554
1615
  };
1555
- readonly skipValidation: {
1556
- readonly description: "If true, the validation will be skipped (MyOS Admin won't be triggered to create permission grant)";
1616
+ readonly links: {
1617
+ readonly description: "Map from anchor name to permissions that will be granted for documents linked to the base document via that anchor.";
1557
1618
  readonly type: {
1558
- readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
1619
+ readonly blueId: "75TXyy5E7vbexVAUZcjZ2vdQaG7fJJbAHAgrh8sMtTp5";
1559
1620
  };
1560
1621
  };
1622
+ readonly name: "Linked Documents Permission Grant To Account";
1561
1623
  readonly targetSessionId: {
1562
- readonly description: "Target document session id to grant access to";
1624
+ readonly description: "Base document session id whose anchors define the scope of this grant.";
1563
1625
  readonly type: {
1564
1626
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1565
1627
  };
1566
1628
  };
1567
1629
  readonly type: {
1568
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
1630
+ readonly blueId: "Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj";
1631
+ };
1632
+ };
1633
+ readonly AG6fiGy88gX5eKoUcHS2BV17EfMssiYZj99kx9RcpKEX: {
1634
+ readonly description: "Emitted on initialise when local shape checks pass.";
1635
+ readonly name: "Single Document Permission Validated";
1636
+ readonly type: {
1637
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1638
+ };
1639
+ };
1640
+ readonly AMNPp7uGYBgygbnmMS649m6Gf5bNULaEK8aSQ3b4xdrf: {
1641
+ readonly description: "Rights granted by this WAG have been retracted.";
1642
+ readonly name: "Worker Agency Permission Revoked";
1643
+ readonly type: {
1644
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1569
1645
  };
1570
1646
  };
1571
1647
  readonly BaNmvStTGdsBsSHiHbqdhrrC7vfwiQdDK6NYiyRbJowx: {
@@ -1662,9 +1738,59 @@ export declare const contents: {
1662
1738
  readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1663
1739
  };
1664
1740
  };
1665
- readonly type: {
1666
- readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1667
- };
1741
+ readonly type: {
1742
+ readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
1743
+ };
1744
+ };
1745
+ readonly Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj: {
1746
+ readonly contracts: {
1747
+ readonly myOsAdminChannel: {
1748
+ readonly description: "MyOS Admin (accountId=0) — posts operational progress/decisions via myOsAdminUpdate";
1749
+ readonly type: {
1750
+ readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
1751
+ };
1752
+ };
1753
+ readonly myOsAdminUpdate: {
1754
+ readonly channel: {
1755
+ readonly type: {
1756
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1757
+ };
1758
+ readonly value: "myOsAdminChannel";
1759
+ };
1760
+ readonly description: "The standard, required operation for MyOS Admin to deliver events.";
1761
+ readonly type: {
1762
+ readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
1763
+ };
1764
+ };
1765
+ readonly myOsAdminUpdateImpl: {
1766
+ readonly description: "Implementation that re-emits the provided events";
1767
+ readonly operation: {
1768
+ readonly type: {
1769
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1770
+ };
1771
+ readonly value: "myOsAdminUpdate";
1772
+ };
1773
+ readonly steps: {
1774
+ readonly items: readonly [{
1775
+ readonly code: {
1776
+ readonly type: {
1777
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
1778
+ };
1779
+ readonly value: "return { events: event.message.request };\n";
1780
+ };
1781
+ readonly name: "EmitAdminEvents";
1782
+ readonly type: {
1783
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
1784
+ };
1785
+ }];
1786
+ };
1787
+ readonly type: {
1788
+ readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
1789
+ };
1790
+ };
1791
+ };
1792
+ readonly description: "Document base for MyOS Admin participant";
1793
+ readonly name: "MyOS Admin Base";
1668
1794
  };
1669
1795
  readonly CeWyRmXAMZqvWBvby2KbRUZWcS7Pdxs42vnMXgn9gg6H: {
1670
1796
  readonly name: "MyOS Session Interaction";
@@ -1942,7 +2068,65 @@ export declare const contents: {
1942
2068
  };
1943
2069
  };
1944
2070
  };
1945
- readonly EVkAZAwJkgjQfTkA3RXpdEX2VgYJtMREmkQEFrojAQ1j: {
2071
+ readonly EVX6nBdHdVEBH9Gbthpd2eqpxaxS4bb9wM55QNdZmcBy: {
2072
+ readonly description: "Document asks MyOS Admin to invoke an operation on a target session.";
2073
+ readonly name: "Call Operation Requested";
2074
+ readonly onBehalfOf: {
2075
+ readonly description: "Channel whose binding provides the requester account.";
2076
+ readonly type: {
2077
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2078
+ };
2079
+ };
2080
+ readonly operation: {
2081
+ readonly description: "Operation name to invoke.";
2082
+ readonly type: {
2083
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2084
+ };
2085
+ };
2086
+ readonly request: {
2087
+ readonly description: "Payload forwarded to the target operation.";
2088
+ };
2089
+ readonly targetSessionId: {
2090
+ readonly description: "Target document session to invoke.";
2091
+ readonly type: {
2092
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2093
+ };
2094
+ };
2095
+ readonly type: {
2096
+ readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
2097
+ };
2098
+ };
2099
+ readonly Ff61TKzxLStjvfMksRNUBif2PRJGJM6XvmTqSf3M76wC: {
2100
+ readonly name: "All Participants Ready";
2101
+ };
2102
+ readonly FoHDf4WzS4idtPc8rWwVFFvALQ27WzMHxPdXovy7DH4p: {
2103
+ readonly document: {
2104
+ readonly description: "The final, canonicalized document state with all timelineIds filled in.";
2105
+ };
2106
+ readonly initiatorSessionIds: {
2107
+ readonly description: "Session IDs created for the bootstrap initiator (caller)";
2108
+ readonly itemType: {
2109
+ readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2110
+ };
2111
+ readonly type: {
2112
+ readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
2113
+ };
2114
+ };
2115
+ readonly name: "Target Document Session Started";
2116
+ };
2117
+ readonly Furgmg5xcJVMDmaQXZRfZ1XehSf7PWctrioo8etRYJHQ: {
2118
+ readonly description: "MyOS-specific timeline entry with account and email information";
2119
+ readonly name: "MyOS Timeline Entry";
2120
+ readonly timeline: {
2121
+ readonly type: {
2122
+ readonly blueId: "2gyToM86KgFJpB8inz8TBVEMZk8UVGYdRozF4mfvxtuk";
2123
+ };
2124
+ };
2125
+ readonly type: {
2126
+ readonly blueId: "EzDiC9Frs8V5yQBMtDYh1DobVnWtWpFemXDX5fGUULBn";
2127
+ };
2128
+ };
2129
+ readonly FZLsSeuoLTki2FpqYTr5nmqnAtKgTnmi18qNaTnRGBs6: {
1946
2130
  readonly contracts: {
1947
2131
  readonly granteeChannel: {
1948
2132
  readonly description: "Grantee’s timeline (recipient of the rights)";
@@ -2001,7 +2185,7 @@ export declare const contents: {
2001
2185
  };
2002
2186
  readonly name: "EmitRevokeRequested";
2003
2187
  readonly type: {
2004
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
2188
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
2005
2189
  };
2006
2190
  }];
2007
2191
  };
@@ -2026,7 +2210,7 @@ export declare const contents: {
2026
2210
  };
2027
2211
  readonly name: "ValidateBasicShape";
2028
2212
  readonly type: {
2029
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
2213
+ readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
2030
2214
  };
2031
2215
  }];
2032
2216
  };
@@ -2055,115 +2239,7 @@ export declare const contents: {
2055
2239
  };
2056
2240
  };
2057
2241
  readonly type: {
2058
- readonly blueId: "FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o";
2059
- };
2060
- };
2061
- readonly EVX6nBdHdVEBH9Gbthpd2eqpxaxS4bb9wM55QNdZmcBy: {
2062
- readonly description: "Document asks MyOS Admin to invoke an operation on a target session.";
2063
- readonly name: "Call Operation Requested";
2064
- readonly onBehalfOf: {
2065
- readonly description: "Channel whose binding provides the requester account.";
2066
- readonly type: {
2067
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2068
- };
2069
- };
2070
- readonly operation: {
2071
- readonly description: "Operation name to invoke.";
2072
- readonly type: {
2073
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2074
- };
2075
- };
2076
- readonly request: {
2077
- readonly description: "Payload forwarded to the target operation.";
2078
- };
2079
- readonly targetSessionId: {
2080
- readonly description: "Target document session to invoke.";
2081
- readonly type: {
2082
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2083
- };
2084
- };
2085
- readonly type: {
2086
- readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
2087
- };
2088
- };
2089
- readonly Ff61TKzxLStjvfMksRNUBif2PRJGJM6XvmTqSf3M76wC: {
2090
- readonly name: "All Participants Ready";
2091
- };
2092
- readonly FHzfgUb3eTqBkgDi1n5QNw5PC1QYGycEVs1c3YSrZ53o: {
2093
- readonly contracts: {
2094
- readonly myOsAdminChannel: {
2095
- readonly description: "MyOS Admin (accountId=0) — posts operational progress/decisions via myOsAdminUpdate";
2096
- readonly type: {
2097
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
2098
- };
2099
- };
2100
- readonly myOsAdminUpdate: {
2101
- readonly channel: {
2102
- readonly type: {
2103
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2104
- };
2105
- readonly value: "myOsAdminChannel";
2106
- };
2107
- readonly description: "The standard, required operation for MyOS Admin to deliver events.";
2108
- readonly type: {
2109
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
2110
- };
2111
- };
2112
- readonly myOsAdminUpdateImpl: {
2113
- readonly description: "Implementation that re-emits the provided events";
2114
- readonly operation: {
2115
- readonly type: {
2116
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2117
- };
2118
- readonly value: "myOsAdminUpdate";
2119
- };
2120
- readonly steps: {
2121
- readonly items: readonly [{
2122
- readonly code: {
2123
- readonly type: {
2124
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2125
- };
2126
- readonly value: "return { events: event.message.request };\n";
2127
- };
2128
- readonly name: "EmitAdminEvents";
2129
- readonly type: {
2130
- readonly blueId: "3hYcmWMtMUPAzXBLFLb7BpuG9537tuTJPCr7pxWXvTZK";
2131
- };
2132
- }];
2133
- };
2134
- readonly type: {
2135
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
2136
- };
2137
- };
2138
- };
2139
- readonly description: "Document base for MyOS Admin participant";
2140
- readonly name: "MyOS Admin Base";
2141
- };
2142
- readonly FoHDf4WzS4idtPc8rWwVFFvALQ27WzMHxPdXovy7DH4p: {
2143
- readonly document: {
2144
- readonly description: "The final, canonicalized document state with all timelineIds filled in.";
2145
- };
2146
- readonly initiatorSessionIds: {
2147
- readonly description: "Session IDs created for the bootstrap initiator (caller)";
2148
- readonly itemType: {
2149
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2150
- };
2151
- readonly type: {
2152
- readonly blueId: "6aehfNAxHLC1PHHoDr3tYtFH3RWNbiWdFancJ1bypXEY";
2153
- };
2154
- };
2155
- readonly name: "Target Document Session Started";
2156
- };
2157
- readonly Furgmg5xcJVMDmaQXZRfZ1XehSf7PWctrioo8etRYJHQ: {
2158
- readonly description: "MyOS-specific timeline entry with account and email information";
2159
- readonly name: "MyOS Timeline Entry";
2160
- readonly timeline: {
2161
- readonly type: {
2162
- readonly blueId: "2gyToM86KgFJpB8inz8TBVEMZk8UVGYdRozF4mfvxtuk";
2163
- };
2164
- };
2165
- readonly type: {
2166
- readonly blueId: "EzDiC9Frs8V5yQBMtDYh1DobVnWtWpFemXDX5fGUULBn";
2242
+ readonly blueId: "Bu4YETSKYW8hHMwVy6zUUoBAGZPxX3KVXfKN9uoCUoJj";
2167
2243
  };
2168
2244
  };
2169
2245
  readonly G1cW5kjZdJrmCwfrwiHXQcJfYfFAY5jEFZNA7u7pFdtY: {
@@ -2216,82 +2292,6 @@ export declare const contents: {
2216
2292
  readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
2217
2293
  };
2218
2294
  };
2219
- readonly GH3Lqn1Vd4G36VjXu2j81SGfNqRUn82tkKiSSguhRp8J: {
2220
- readonly contracts: {
2221
- readonly ownerChannel: {
2222
- readonly type: {
2223
- readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
2224
- };
2225
- };
2226
- readonly startWorker: {
2227
- readonly channel: {
2228
- readonly type: {
2229
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2230
- };
2231
- readonly value: "ownerChannel";
2232
- };
2233
- readonly description: "Prompt the user to install a provided MyOS Package";
2234
- readonly request: {
2235
- readonly package: {
2236
- readonly description: "MyOS Package";
2237
- readonly type: {
2238
- readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
2239
- };
2240
- };
2241
- };
2242
- readonly type: {
2243
- readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
2244
- };
2245
- };
2246
- readonly startWorkerImpl: {
2247
- readonly operation: {
2248
- readonly type: {
2249
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2250
- };
2251
- readonly value: "startWorker";
2252
- };
2253
- readonly steps: {
2254
- readonly items: readonly [{
2255
- readonly event: {
2256
- readonly message: {
2257
- readonly type: {
2258
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2259
- };
2260
- readonly value: "A package has been prepared for you. Review and install.";
2261
- };
2262
- readonly package: {
2263
- readonly type: {
2264
- readonly blueId: "5cg55kgH8ckRVji4oWSBBxthJQFYmB5Lb1Pea7achyNr";
2265
- };
2266
- readonly value: "${event.message.request.package}";
2267
- };
2268
- readonly title: {
2269
- readonly type: {
2270
- readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
2271
- };
2272
- readonly value: "ChatGPT is requesting permission to launch a new agent";
2273
- };
2274
- readonly type: {
2275
- readonly blueId: "CrGV4ZYjvPvMqrgNQAfgZCUnFjFW6HDjYNdon2chLKU3";
2276
- };
2277
- };
2278
- readonly name: "Emit Install Prompt";
2279
- readonly type: {
2280
- readonly blueId: "GxUtWr3eH9a6YQeioQkujEnsPjD5s9RU8ZhEfmsV1vuU";
2281
- };
2282
- }];
2283
- };
2284
- readonly type: {
2285
- readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
2286
- };
2287
- };
2288
- };
2289
- readonly description: "Lets the owner prompt installation of a provided MyOS Package.";
2290
- readonly name: "Chat GPT Connector Agent";
2291
- readonly type: {
2292
- readonly blueId: "8s2rAFDtiB6sCwqeURkT4Lq7fcc2FXBkmX9B9p7R4Boc";
2293
- };
2294
- };
2295
2295
  readonly GiYocGMGQcneiMPm4NH9MxVj7Fr4jwg2BUAMzwZcWRNR: {
2296
2296
  readonly agentId: {
2297
2297
  readonly description: "Optional agent identifier";