@undefineds.co/xpod 0.2.34 → 0.2.36

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 (302) hide show
  1. package/dist/agents/schema/agent-config.js +1 -1
  2. package/dist/agents/schema/agent-config.js.map +1 -1
  3. package/dist/agents/schema/create-agent-schema.js +17 -16
  4. package/dist/agents/schema/create-agent-schema.js.map +1 -1
  5. package/dist/agents/schema/tables.js +1 -1
  6. package/dist/agents/schema/tables.js.map +1 -1
  7. package/dist/ai/schema/config.js +1 -1
  8. package/dist/ai/schema/config.js.map +1 -1
  9. package/dist/ai/schema/model.js +2 -2
  10. package/dist/ai/schema/model.js.map +1 -1
  11. package/dist/ai/schema/provider.js +1 -1
  12. package/dist/ai/schema/provider.js.map +1 -1
  13. package/dist/ai/schema/vector-store.js +2 -2
  14. package/dist/ai/schema/vector-store.js.map +1 -1
  15. package/dist/api/container/local.js +1 -5
  16. package/dist/api/container/local.js.map +1 -1
  17. package/dist/api/container/routes.js +16 -1
  18. package/dist/api/container/routes.js.map +1 -1
  19. package/dist/api/handlers/PodManagementHandler.d.ts +8 -0
  20. package/dist/api/handlers/PodManagementHandler.js +5 -3
  21. package/dist/api/handlers/PodManagementHandler.js.map +1 -1
  22. package/dist/api/handlers/WebIdProfileHandler.js +64 -6
  23. package/dist/api/handlers/WebIdProfileHandler.js.map +1 -1
  24. package/dist/api/runtime.js +11 -6
  25. package/dist/api/runtime.js.map +1 -1
  26. package/dist/components/components.jsonld +1 -0
  27. package/dist/components/context.jsonld +36 -0
  28. package/dist/credential/schema/tables.js +3 -3
  29. package/dist/credential/schema/tables.js.map +1 -1
  30. package/dist/edge/LocalNetworkManager.d.ts +2 -7
  31. package/dist/edge/LocalNetworkManager.js +7 -34
  32. package/dist/edge/LocalNetworkManager.js.map +1 -1
  33. package/dist/index.d.ts +2 -1
  34. package/dist/index.js +3 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/provision/LocalPodProvisioningService.d.ts +34 -0
  37. package/dist/provision/LocalPodProvisioningService.js +294 -0
  38. package/dist/provision/LocalPodProvisioningService.js.map +1 -0
  39. package/dist/provision/LocalPodProvisioningService.jsonld +142 -0
  40. package/dist/provision/ProvisionPodCreator.js +3 -4
  41. package/dist/provision/ProvisionPodCreator.js.map +1 -1
  42. package/dist/tunnel/LocalTunnelProvider.d.ts +2 -2
  43. package/dist/tunnel/LocalTunnelProvider.js +12 -14
  44. package/dist/tunnel/LocalTunnelProvider.js.map +1 -1
  45. package/dist/tunnel/TunnelProvider.d.ts +2 -0
  46. package/dist/tunnel/TunnelProvider.js.map +1 -1
  47. package/dist/tunnel/TunnelProvider.jsonld +4 -0
  48. package/package.json +2 -2
  49. package/node_modules/@undefineds.co/models/README.md +0 -578
  50. package/node_modules/@undefineds.co/models/dist/_drizzle-solid/columns.d.ts +0 -37
  51. package/node_modules/@undefineds.co/models/dist/_drizzle-solid/columns.js +0 -1
  52. package/node_modules/@undefineds.co/models/dist/_drizzle-solid/pod-table.d.ts +0 -3
  53. package/node_modules/@undefineds.co/models/dist/_drizzle-solid/pod-table.js +0 -1
  54. package/node_modules/@undefineds.co/models/dist/_drizzle-solid/types.d.ts +0 -40
  55. package/node_modules/@undefineds.co/models/dist/_drizzle-solid/types.js +0 -1
  56. package/node_modules/@undefineds.co/models/dist/agent.providers.d.ts +0 -13
  57. package/node_modules/@undefineds.co/models/dist/agent.providers.js +0 -69
  58. package/node_modules/@undefineds.co/models/dist/agent.repository.d.ts +0 -85
  59. package/node_modules/@undefineds.co/models/dist/agent.repository.js +0 -7
  60. package/node_modules/@undefineds.co/models/dist/agent.schema.d.ts +0 -1
  61. package/node_modules/@undefineds.co/models/dist/agent.schema.js +0 -1
  62. package/node_modules/@undefineds.co/models/dist/ai-config/index.d.ts +0 -61
  63. package/node_modules/@undefineds.co/models/dist/ai-config/index.js +0 -294
  64. package/node_modules/@undefineds.co/models/dist/ai-config.d.ts +0 -1
  65. package/node_modules/@undefineds.co/models/dist/ai-config.js +0 -1
  66. package/node_modules/@undefineds.co/models/dist/ai-model.schema.d.ts +0 -1
  67. package/node_modules/@undefineds.co/models/dist/ai-model.schema.js +0 -1
  68. package/node_modules/@undefineds.co/models/dist/ai-provider.schema.d.ts +0 -1
  69. package/node_modules/@undefineds.co/models/dist/ai-provider.schema.js +0 -1
  70. package/node_modules/@undefineds.co/models/dist/approval.schema.d.ts +0 -1
  71. package/node_modules/@undefineds.co/models/dist/approval.schema.js +0 -1
  72. package/node_modules/@undefineds.co/models/dist/audit.schema.d.ts +0 -1
  73. package/node_modules/@undefineds.co/models/dist/audit.schema.js +0 -1
  74. package/node_modules/@undefineds.co/models/dist/chat.repository.d.ts +0 -61
  75. package/node_modules/@undefineds.co/models/dist/chat.repository.js +0 -8
  76. package/node_modules/@undefineds.co/models/dist/chat.schema.d.ts +0 -1
  77. package/node_modules/@undefineds.co/models/dist/chat.schema.js +0 -1
  78. package/node_modules/@undefineds.co/models/dist/chat.utils.d.ts +0 -3
  79. package/node_modules/@undefineds.co/models/dist/chat.utils.js +0 -30
  80. package/node_modules/@undefineds.co/models/dist/contact.repository.d.ts +0 -85
  81. package/node_modules/@undefineds.co/models/dist/contact.repository.js +0 -8
  82. package/node_modules/@undefineds.co/models/dist/contact.schema.d.ts +0 -1
  83. package/node_modules/@undefineds.co/models/dist/contact.schema.js +0 -1
  84. package/node_modules/@undefineds.co/models/dist/core/agent-provider.schema.d.ts +0 -1
  85. package/node_modules/@undefineds.co/models/dist/core/agent-provider.schema.js +0 -1
  86. package/node_modules/@undefineds.co/models/dist/core/agent-status.schema.d.ts +0 -12
  87. package/node_modules/@undefineds.co/models/dist/core/agent-status.schema.js +0 -18
  88. package/node_modules/@undefineds.co/models/dist/core/agent.schema.d.ts +0 -72
  89. package/node_modules/@undefineds.co/models/dist/core/agent.schema.js +0 -38
  90. package/node_modules/@undefineds.co/models/dist/core/ai-config.schema.d.ts +0 -11
  91. package/node_modules/@undefineds.co/models/dist/core/ai-config.schema.js +0 -18
  92. package/node_modules/@undefineds.co/models/dist/core/ai-model.schema.d.ts +0 -15
  93. package/node_modules/@undefineds.co/models/dist/core/ai-model.schema.js +0 -21
  94. package/node_modules/@undefineds.co/models/dist/core/ai-provider.schema.d.ts +0 -16
  95. package/node_modules/@undefineds.co/models/dist/core/ai-provider.schema.js +0 -28
  96. package/node_modules/@undefineds.co/models/dist/core/approval.schema.d.ts +0 -21
  97. package/node_modules/@undefineds.co/models/dist/core/approval.schema.js +0 -33
  98. package/node_modules/@undefineds.co/models/dist/core/audit.schema.d.ts +0 -17
  99. package/node_modules/@undefineds.co/models/dist/core/audit.schema.js +0 -29
  100. package/node_modules/@undefineds.co/models/dist/core/chat.schema.d.ts +0 -36
  101. package/node_modules/@undefineds.co/models/dist/core/chat.schema.js +0 -45
  102. package/node_modules/@undefineds.co/models/dist/core/contact.schema.d.ts +0 -47
  103. package/node_modules/@undefineds.co/models/dist/core/contact.schema.js +0 -59
  104. package/node_modules/@undefineds.co/models/dist/core/credential.schema.d.ts +0 -56
  105. package/node_modules/@undefineds.co/models/dist/core/credential.schema.js +0 -40
  106. package/node_modules/@undefineds.co/models/dist/core/extension/extension.schema.d.ts +0 -4
  107. package/node_modules/@undefineds.co/models/dist/core/extension/extension.schema.js +0 -11
  108. package/node_modules/@undefineds.co/models/dist/core/extension/index.d.ts +0 -1
  109. package/node_modules/@undefineds.co/models/dist/core/extension/index.js +0 -1
  110. package/node_modules/@undefineds.co/models/dist/core/extension.d.ts +0 -1
  111. package/node_modules/@undefineds.co/models/dist/core/extension.js +0 -1
  112. package/node_modules/@undefineds.co/models/dist/core/favorite/favorite.schema.d.ts +0 -24
  113. package/node_modules/@undefineds.co/models/dist/core/favorite/favorite.schema.js +0 -34
  114. package/node_modules/@undefineds.co/models/dist/core/favorite/index.d.ts +0 -1
  115. package/node_modules/@undefineds.co/models/dist/core/favorite/index.js +0 -1
  116. package/node_modules/@undefineds.co/models/dist/core/file/file.schema.d.ts +0 -39
  117. package/node_modules/@undefineds.co/models/dist/core/file/file.schema.js +0 -51
  118. package/node_modules/@undefineds.co/models/dist/core/file/index.d.ts +0 -1
  119. package/node_modules/@undefineds.co/models/dist/core/file/index.js +0 -1
  120. package/node_modules/@undefineds.co/models/dist/core/file.d.ts +0 -1
  121. package/node_modules/@undefineds.co/models/dist/core/file.js +0 -1
  122. package/node_modules/@undefineds.co/models/dist/core/grant.schema.d.ts +0 -16
  123. package/node_modules/@undefineds.co/models/dist/core/grant.schema.js +0 -29
  124. package/node_modules/@undefineds.co/models/dist/core/import/import-job.schema.d.ts +0 -5
  125. package/node_modules/@undefineds.co/models/dist/core/import/import-job.schema.js +0 -5
  126. package/node_modules/@undefineds.co/models/dist/core/import/index.d.ts +0 -1
  127. package/node_modules/@undefineds.co/models/dist/core/import/index.js +0 -1
  128. package/node_modules/@undefineds.co/models/dist/core/import.d.ts +0 -1
  129. package/node_modules/@undefineds.co/models/dist/core/import.js +0 -1
  130. package/node_modules/@undefineds.co/models/dist/core/inbox-notification.schema.d.ts +0 -9
  131. package/node_modules/@undefineds.co/models/dist/core/inbox-notification.schema.js +0 -16
  132. package/node_modules/@undefineds.co/models/dist/core/index.d.ts +0 -31
  133. package/node_modules/@undefineds.co/models/dist/core/index.js +0 -32
  134. package/node_modules/@undefineds.co/models/dist/core/knowledge/index.d.ts +0 -1
  135. package/node_modules/@undefineds.co/models/dist/core/knowledge/index.js +0 -1
  136. package/node_modules/@undefineds.co/models/dist/core/knowledge/knowledge-folder.schema.d.ts +0 -7
  137. package/node_modules/@undefineds.co/models/dist/core/knowledge/knowledge-folder.schema.js +0 -6
  138. package/node_modules/@undefineds.co/models/dist/core/knowledge.d.ts +0 -1
  139. package/node_modules/@undefineds.co/models/dist/core/knowledge.js +0 -1
  140. package/node_modules/@undefineds.co/models/dist/core/message.schema.d.ts +0 -33
  141. package/node_modules/@undefineds.co/models/dist/core/message.schema.js +0 -49
  142. package/node_modules/@undefineds.co/models/dist/core/namespaces.d.ts +0 -176
  143. package/node_modules/@undefineds.co/models/dist/core/namespaces.js +0 -289
  144. package/node_modules/@undefineds.co/models/dist/core/profile.d.ts +0 -16
  145. package/node_modules/@undefineds.co/models/dist/core/profile.js +0 -19
  146. package/node_modules/@undefineds.co/models/dist/core/schema.d.ts +0 -304
  147. package/node_modules/@undefineds.co/models/dist/core/schema.js +0 -46
  148. package/node_modules/@undefineds.co/models/dist/core/session/index.d.ts +0 -1
  149. package/node_modules/@undefineds.co/models/dist/core/session/index.js +0 -1
  150. package/node_modules/@undefineds.co/models/dist/core/session/session.schema.d.ts +0 -6
  151. package/node_modules/@undefineds.co/models/dist/core/session/session.schema.js +0 -6
  152. package/node_modules/@undefineds.co/models/dist/core/session.d.ts +0 -1
  153. package/node_modules/@undefineds.co/models/dist/core/session.js +0 -1
  154. package/node_modules/@undefineds.co/models/dist/core/settings/index.d.ts +0 -1
  155. package/node_modules/@undefineds.co/models/dist/core/settings/index.js +0 -1
  156. package/node_modules/@undefineds.co/models/dist/core/settings/settings.schema.d.ts +0 -49
  157. package/node_modules/@undefineds.co/models/dist/core/settings/settings.schema.js +0 -63
  158. package/node_modules/@undefineds.co/models/dist/core/settings.d.ts +0 -1
  159. package/node_modules/@undefineds.co/models/dist/core/settings.js +0 -1
  160. package/node_modules/@undefineds.co/models/dist/core/thread.schema.d.ts +0 -28
  161. package/node_modules/@undefineds.co/models/dist/core/thread.schema.js +0 -36
  162. package/node_modules/@undefineds.co/models/dist/core/types/collaboration-blocks.d.ts +0 -52
  163. package/node_modules/@undefineds.co/models/dist/core/types/collaboration-blocks.js +0 -7
  164. package/node_modules/@undefineds.co/models/dist/core/types/message-block.d.ts +0 -270
  165. package/node_modules/@undefineds.co/models/dist/core/types/message-block.js +0 -125
  166. package/node_modules/@undefineds.co/models/dist/core/vector-store.schema.d.ts +0 -25
  167. package/node_modules/@undefineds.co/models/dist/core/vector-store.schema.js +0 -35
  168. package/node_modules/@undefineds.co/models/dist/core/vocab/_namespaces.d.ts +0 -1
  169. package/node_modules/@undefineds.co/models/dist/core/vocab/_namespaces.js +0 -3
  170. package/node_modules/@undefineds.co/models/dist/core/vocab/chat.vocab.d.ts +0 -16
  171. package/node_modules/@undefineds.co/models/dist/core/vocab/chat.vocab.js +0 -22
  172. package/node_modules/@undefineds.co/models/dist/core/vocab/contact.vocab.d.ts +0 -21
  173. package/node_modules/@undefineds.co/models/dist/core/vocab/contact.vocab.js +0 -22
  174. package/node_modules/@undefineds.co/models/dist/core/vocab/index.d.ts +0 -6
  175. package/node_modules/@undefineds.co/models/dist/core/vocab/index.js +0 -6
  176. package/node_modules/@undefineds.co/models/dist/core/vocab/message.vocab.d.ts +0 -20
  177. package/node_modules/@undefineds.co/models/dist/core/vocab/message.vocab.js +0 -24
  178. package/node_modules/@undefineds.co/models/dist/core/vocab/sidecar.vocab.d.ts +0 -46
  179. package/node_modules/@undefineds.co/models/dist/core/vocab/sidecar.vocab.js +0 -47
  180. package/node_modules/@undefineds.co/models/dist/core/vocab/thread.vocab.d.ts +0 -11
  181. package/node_modules/@undefineds.co/models/dist/core/vocab/thread.vocab.js +0 -14
  182. package/node_modules/@undefineds.co/models/dist/core/vocab/workspace.vocab.d.ts +0 -12
  183. package/node_modules/@undefineds.co/models/dist/core/vocab/workspace.vocab.js +0 -13
  184. package/node_modules/@undefineds.co/models/dist/core/vocab.d.ts +0 -1
  185. package/node_modules/@undefineds.co/models/dist/core/vocab.js +0 -1
  186. package/node_modules/@undefineds.co/models/dist/core/workspace.schema.d.ts +0 -35
  187. package/node_modules/@undefineds.co/models/dist/core/workspace.schema.js +0 -106
  188. package/node_modules/@undefineds.co/models/dist/core.d.ts +0 -1
  189. package/node_modules/@undefineds.co/models/dist/core.js +0 -1
  190. package/node_modules/@undefineds.co/models/dist/credential.schema.d.ts +0 -1
  191. package/node_modules/@undefineds.co/models/dist/credential.schema.js +0 -1
  192. package/node_modules/@undefineds.co/models/dist/discovery/index.d.ts +0 -31
  193. package/node_modules/@undefineds.co/models/dist/discovery/index.js +0 -147
  194. package/node_modules/@undefineds.co/models/dist/discovery/models.json +0 -2623
  195. package/node_modules/@undefineds.co/models/dist/discovery/providers.json +0 -156
  196. package/node_modules/@undefineds.co/models/dist/discovery/types.d.ts +0 -103
  197. package/node_modules/@undefineds.co/models/dist/discovery/types.js +0 -12
  198. package/node_modules/@undefineds.co/models/dist/discovery/vercel.d.ts +0 -25
  199. package/node_modules/@undefineds.co/models/dist/discovery/vercel.js +0 -95
  200. package/node_modules/@undefineds.co/models/dist/discovery.d.ts +0 -1
  201. package/node_modules/@undefineds.co/models/dist/discovery.js +0 -1
  202. package/node_modules/@undefineds.co/models/dist/extension/extension.schema.d.ts +0 -1
  203. package/node_modules/@undefineds.co/models/dist/extension/extension.schema.js +0 -1
  204. package/node_modules/@undefineds.co/models/dist/extension/index.d.ts +0 -1
  205. package/node_modules/@undefineds.co/models/dist/extension/index.js +0 -1
  206. package/node_modules/@undefineds.co/models/dist/extension.d.ts +0 -1
  207. package/node_modules/@undefineds.co/models/dist/extension.js +0 -1
  208. package/node_modules/@undefineds.co/models/dist/favorite/favorite.schema.d.ts +0 -1
  209. package/node_modules/@undefineds.co/models/dist/favorite/favorite.schema.js +0 -1
  210. package/node_modules/@undefineds.co/models/dist/favorite/index.d.ts +0 -2
  211. package/node_modules/@undefineds.co/models/dist/favorite/index.js +0 -7
  212. package/node_modules/@undefineds.co/models/dist/favorite/starred-sync.d.ts +0 -66
  213. package/node_modules/@undefineds.co/models/dist/favorite/starred-sync.js +0 -156
  214. package/node_modules/@undefineds.co/models/dist/favorite.d.ts +0 -1
  215. package/node_modules/@undefineds.co/models/dist/favorite.js +0 -1
  216. package/node_modules/@undefineds.co/models/dist/file/file.schema.d.ts +0 -1
  217. package/node_modules/@undefineds.co/models/dist/file/file.schema.js +0 -1
  218. package/node_modules/@undefineds.co/models/dist/file/index.d.ts +0 -1
  219. package/node_modules/@undefineds.co/models/dist/file/index.js +0 -1
  220. package/node_modules/@undefineds.co/models/dist/file.d.ts +0 -1
  221. package/node_modules/@undefineds.co/models/dist/file.js +0 -1
  222. package/node_modules/@undefineds.co/models/dist/fixtures/contracts-chat-contact.d.ts +0 -13
  223. package/node_modules/@undefineds.co/models/dist/fixtures/contracts-chat-contact.js +0 -76
  224. package/node_modules/@undefineds.co/models/dist/grant.schema.d.ts +0 -1
  225. package/node_modules/@undefineds.co/models/dist/grant.schema.js +0 -1
  226. package/node_modules/@undefineds.co/models/dist/import/import-job.schema.d.ts +0 -5
  227. package/node_modules/@undefineds.co/models/dist/import/import-job.schema.js +0 -5
  228. package/node_modules/@undefineds.co/models/dist/import/index.d.ts +0 -1
  229. package/node_modules/@undefineds.co/models/dist/import/index.js +0 -1
  230. package/node_modules/@undefineds.co/models/dist/import.d.ts +0 -1
  231. package/node_modules/@undefineds.co/models/dist/import.js +0 -1
  232. package/node_modules/@undefineds.co/models/dist/inbox-notification.schema.d.ts +0 -1
  233. package/node_modules/@undefineds.co/models/dist/inbox-notification.schema.js +0 -1
  234. package/node_modules/@undefineds.co/models/dist/index.d.ts +0 -41
  235. package/node_modules/@undefineds.co/models/dist/index.js +0 -83
  236. package/node_modules/@undefineds.co/models/dist/knowledge/index.d.ts +0 -1
  237. package/node_modules/@undefineds.co/models/dist/knowledge/index.js +0 -1
  238. package/node_modules/@undefineds.co/models/dist/knowledge/knowledge-folder.schema.d.ts +0 -1
  239. package/node_modules/@undefineds.co/models/dist/knowledge/knowledge-folder.schema.js +0 -1
  240. package/node_modules/@undefineds.co/models/dist/knowledge.d.ts +0 -1
  241. package/node_modules/@undefineds.co/models/dist/knowledge.js +0 -1
  242. package/node_modules/@undefineds.co/models/dist/message.repository.d.ts +0 -81
  243. package/node_modules/@undefineds.co/models/dist/message.repository.js +0 -8
  244. package/node_modules/@undefineds.co/models/dist/message.schema.d.ts +0 -1
  245. package/node_modules/@undefineds.co/models/dist/message.schema.js +0 -1
  246. package/node_modules/@undefineds.co/models/dist/namespaces.d.ts +0 -1
  247. package/node_modules/@undefineds.co/models/dist/namespaces.js +0 -1
  248. package/node_modules/@undefineds.co/models/dist/profile.d.ts +0 -1
  249. package/node_modules/@undefineds.co/models/dist/profile.js +0 -1
  250. package/node_modules/@undefineds.co/models/dist/repository.d.ts +0 -59
  251. package/node_modules/@undefineds.co/models/dist/repository.js +0 -186
  252. package/node_modules/@undefineds.co/models/dist/schema.d.ts +0 -1
  253. package/node_modules/@undefineds.co/models/dist/schema.js +0 -1
  254. package/node_modules/@undefineds.co/models/dist/session/index.d.ts +0 -1
  255. package/node_modules/@undefineds.co/models/dist/session/index.js +0 -1
  256. package/node_modules/@undefineds.co/models/dist/session/session.schema.d.ts +0 -1
  257. package/node_modules/@undefineds.co/models/dist/session/session.schema.js +0 -1
  258. package/node_modules/@undefineds.co/models/dist/session.d.ts +0 -1
  259. package/node_modules/@undefineds.co/models/dist/session.js +0 -1
  260. package/node_modules/@undefineds.co/models/dist/settings/index.d.ts +0 -1
  261. package/node_modules/@undefineds.co/models/dist/settings/index.js +0 -1
  262. package/node_modules/@undefineds.co/models/dist/settings/settings.schema.d.ts +0 -1
  263. package/node_modules/@undefineds.co/models/dist/settings/settings.schema.js +0 -1
  264. package/node_modules/@undefineds.co/models/dist/settings.d.ts +0 -1
  265. package/node_modules/@undefineds.co/models/dist/settings.js +0 -1
  266. package/node_modules/@undefineds.co/models/dist/sidecar/index.d.ts +0 -2
  267. package/node_modules/@undefineds.co/models/dist/sidecar/index.js +0 -2
  268. package/node_modules/@undefineds.co/models/dist/sidecar/persistence-mapping.d.ts +0 -51
  269. package/node_modules/@undefineds.co/models/dist/sidecar/persistence-mapping.js +0 -44
  270. package/node_modules/@undefineds.co/models/dist/sidecar/sidecar-events.d.ts +0 -632
  271. package/node_modules/@undefineds.co/models/dist/sidecar/sidecar-events.js +0 -133
  272. package/node_modules/@undefineds.co/models/dist/thread.repository.d.ts +0 -41
  273. package/node_modules/@undefineds.co/models/dist/thread.repository.js +0 -8
  274. package/node_modules/@undefineds.co/models/dist/thread.schema.d.ts +0 -1
  275. package/node_modules/@undefineds.co/models/dist/thread.schema.js +0 -1
  276. package/node_modules/@undefineds.co/models/dist/types/collaboration-blocks.d.ts +0 -52
  277. package/node_modules/@undefineds.co/models/dist/types/collaboration-blocks.js +0 -7
  278. package/node_modules/@undefineds.co/models/dist/types/message-block.d.ts +0 -270
  279. package/node_modules/@undefineds.co/models/dist/types/message-block.js +0 -125
  280. package/node_modules/@undefineds.co/models/dist/vocab/_namespaces.d.ts +0 -1
  281. package/node_modules/@undefineds.co/models/dist/vocab/_namespaces.js +0 -3
  282. package/node_modules/@undefineds.co/models/dist/vocab/chat.vocab.d.ts +0 -16
  283. package/node_modules/@undefineds.co/models/dist/vocab/chat.vocab.js +0 -22
  284. package/node_modules/@undefineds.co/models/dist/vocab/contact.vocab.d.ts +0 -21
  285. package/node_modules/@undefineds.co/models/dist/vocab/contact.vocab.js +0 -22
  286. package/node_modules/@undefineds.co/models/dist/vocab/index.d.ts +0 -6
  287. package/node_modules/@undefineds.co/models/dist/vocab/index.js +0 -6
  288. package/node_modules/@undefineds.co/models/dist/vocab/message.vocab.d.ts +0 -20
  289. package/node_modules/@undefineds.co/models/dist/vocab/message.vocab.js +0 -24
  290. package/node_modules/@undefineds.co/models/dist/vocab/sidecar.vocab.d.ts +0 -46
  291. package/node_modules/@undefineds.co/models/dist/vocab/sidecar.vocab.js +0 -47
  292. package/node_modules/@undefineds.co/models/dist/vocab/thread.vocab.d.ts +0 -11
  293. package/node_modules/@undefineds.co/models/dist/vocab/thread.vocab.js +0 -14
  294. package/node_modules/@undefineds.co/models/dist/vocab/workspace.vocab.d.ts +0 -12
  295. package/node_modules/@undefineds.co/models/dist/vocab/workspace.vocab.js +0 -13
  296. package/node_modules/@undefineds.co/models/dist/vocab.d.ts +0 -1
  297. package/node_modules/@undefineds.co/models/dist/vocab.js +0 -1
  298. package/node_modules/@undefineds.co/models/dist/workspace.repository.d.ts +0 -45
  299. package/node_modules/@undefineds.co/models/dist/workspace.repository.js +0 -8
  300. package/node_modules/@undefineds.co/models/dist/workspace.schema.d.ts +0 -1
  301. package/node_modules/@undefineds.co/models/dist/workspace.schema.js +0 -1
  302. package/node_modules/@undefineds.co/models/package.json +0 -67
@@ -1,632 +0,0 @@
1
- import { z } from 'zod';
2
- export type SidecarEventType = 'tool.call' | 'session.state' | 'tool.control' | 'inbox.approval';
3
- export type SidecarEventVersion = 1;
4
- export declare const RiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
5
- export type RiskLevel = z.infer<typeof RiskLevelSchema>;
6
- export declare const DecisionRoleSchema: z.ZodEnum<["human", "secretary", "system"]>;
7
- export type DecisionRole = z.infer<typeof DecisionRoleSchema>;
8
- export declare const ToolCallStatusSchema: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>;
9
- export type ToolCallStatus = z.infer<typeof ToolCallStatusSchema>;
10
- export declare const ToolCallEventV1Schema: z.ZodObject<{
11
- type: z.ZodLiteral<"tool.call">;
12
- version: z.ZodOptional<z.ZodLiteral<1>>;
13
- sessionId: z.ZodString;
14
- toolCallId: z.ZodString;
15
- toolName: z.ZodString;
16
- risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
17
- status: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>;
18
- target: z.ZodOptional<z.ZodString>;
19
- action: z.ZodOptional<z.ZodString>;
20
- arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21
- result: z.ZodOptional<z.ZodUnknown>;
22
- error: z.ZodOptional<z.ZodString>;
23
- duration: z.ZodOptional<z.ZodNumber>;
24
- inboxItemId: z.ZodOptional<z.ZodString>;
25
- decisionBy: z.ZodOptional<z.ZodString>;
26
- decisionRole: z.ZodOptional<z.ZodEnum<["human", "secretary", "system"]>>;
27
- onBehalfOf: z.ZodOptional<z.ZodString>;
28
- policyVersion: z.ZodOptional<z.ZodString>;
29
- timestamp: z.ZodString;
30
- }, "strict", z.ZodTypeAny, {
31
- type: "tool.call";
32
- status: "approved" | "rejected" | "running" | "done" | "error" | "calling" | "waiting_approval";
33
- toolCallId: string;
34
- toolName: string;
35
- sessionId: string;
36
- timestamp: string;
37
- target?: string | undefined;
38
- action?: string | undefined;
39
- risk?: "low" | "medium" | "high" | undefined;
40
- policyVersion?: string | undefined;
41
- decisionBy?: string | undefined;
42
- decisionRole?: "human" | "secretary" | "system" | undefined;
43
- onBehalfOf?: string | undefined;
44
- inboxItemId?: string | undefined;
45
- error?: string | undefined;
46
- arguments?: Record<string, unknown> | undefined;
47
- result?: unknown;
48
- duration?: number | undefined;
49
- version?: 1 | undefined;
50
- }, {
51
- type: "tool.call";
52
- status: "approved" | "rejected" | "running" | "done" | "error" | "calling" | "waiting_approval";
53
- toolCallId: string;
54
- toolName: string;
55
- sessionId: string;
56
- timestamp: string;
57
- target?: string | undefined;
58
- action?: string | undefined;
59
- risk?: "low" | "medium" | "high" | undefined;
60
- policyVersion?: string | undefined;
61
- decisionBy?: string | undefined;
62
- decisionRole?: "human" | "secretary" | "system" | undefined;
63
- onBehalfOf?: string | undefined;
64
- inboxItemId?: string | undefined;
65
- error?: string | undefined;
66
- arguments?: Record<string, unknown> | undefined;
67
- result?: unknown;
68
- duration?: number | undefined;
69
- version?: 1 | undefined;
70
- }>;
71
- export declare const ToolCallEventSchema: z.ZodObject<{
72
- type: z.ZodLiteral<"tool.call">;
73
- version: z.ZodOptional<z.ZodLiteral<1>>;
74
- sessionId: z.ZodString;
75
- toolCallId: z.ZodString;
76
- toolName: z.ZodString;
77
- risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
78
- status: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>;
79
- target: z.ZodOptional<z.ZodString>;
80
- action: z.ZodOptional<z.ZodString>;
81
- arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
- result: z.ZodOptional<z.ZodUnknown>;
83
- error: z.ZodOptional<z.ZodString>;
84
- duration: z.ZodOptional<z.ZodNumber>;
85
- inboxItemId: z.ZodOptional<z.ZodString>;
86
- decisionBy: z.ZodOptional<z.ZodString>;
87
- decisionRole: z.ZodOptional<z.ZodEnum<["human", "secretary", "system"]>>;
88
- onBehalfOf: z.ZodOptional<z.ZodString>;
89
- policyVersion: z.ZodOptional<z.ZodString>;
90
- timestamp: z.ZodString;
91
- }, "strict", z.ZodTypeAny, {
92
- type: "tool.call";
93
- status: "approved" | "rejected" | "running" | "done" | "error" | "calling" | "waiting_approval";
94
- toolCallId: string;
95
- toolName: string;
96
- sessionId: string;
97
- timestamp: string;
98
- target?: string | undefined;
99
- action?: string | undefined;
100
- risk?: "low" | "medium" | "high" | undefined;
101
- policyVersion?: string | undefined;
102
- decisionBy?: string | undefined;
103
- decisionRole?: "human" | "secretary" | "system" | undefined;
104
- onBehalfOf?: string | undefined;
105
- inboxItemId?: string | undefined;
106
- error?: string | undefined;
107
- arguments?: Record<string, unknown> | undefined;
108
- result?: unknown;
109
- duration?: number | undefined;
110
- version?: 1 | undefined;
111
- }, {
112
- type: "tool.call";
113
- status: "approved" | "rejected" | "running" | "done" | "error" | "calling" | "waiting_approval";
114
- toolCallId: string;
115
- toolName: string;
116
- sessionId: string;
117
- timestamp: string;
118
- target?: string | undefined;
119
- action?: string | undefined;
120
- risk?: "low" | "medium" | "high" | undefined;
121
- policyVersion?: string | undefined;
122
- decisionBy?: string | undefined;
123
- decisionRole?: "human" | "secretary" | "system" | undefined;
124
- onBehalfOf?: string | undefined;
125
- inboxItemId?: string | undefined;
126
- error?: string | undefined;
127
- arguments?: Record<string, unknown> | undefined;
128
- result?: unknown;
129
- duration?: number | undefined;
130
- version?: 1 | undefined;
131
- }>;
132
- export type ToolCallEvent = z.infer<typeof ToolCallEventSchema>;
133
- export declare const SessionToolSchema: z.ZodEnum<["claude-code", "cursor", "windsurf"]>;
134
- export type SessionTool = z.infer<typeof SessionToolSchema>;
135
- export declare const SessionStatusSchema: z.ZodEnum<["active", "paused", "completed", "error"]>;
136
- export type SessionStatus = z.infer<typeof SessionStatusSchema>;
137
- export declare const SessionStateEventV1Schema: z.ZodObject<{
138
- type: z.ZodLiteral<"session.state">;
139
- version: z.ZodOptional<z.ZodLiteral<1>>;
140
- sessionId: z.ZodString;
141
- chatId: z.ZodString;
142
- policy: z.ZodOptional<z.ZodString>;
143
- policyVersion: z.ZodOptional<z.ZodString>;
144
- status: z.ZodEnum<["active", "paused", "completed", "error"]>;
145
- previousStatus: z.ZodString;
146
- tool: z.ZodEnum<["claude-code", "cursor", "windsurf"]>;
147
- tokenUsage: z.ZodNumber;
148
- timestamp: z.ZodString;
149
- }, "strict", z.ZodTypeAny, {
150
- type: "session.state";
151
- status: "active" | "error" | "paused" | "completed";
152
- tokenUsage: number;
153
- chatId: string;
154
- tool: "claude-code" | "cursor" | "windsurf";
155
- sessionId: string;
156
- timestamp: string;
157
- previousStatus: string;
158
- policy?: string | undefined;
159
- policyVersion?: string | undefined;
160
- version?: 1 | undefined;
161
- }, {
162
- type: "session.state";
163
- status: "active" | "error" | "paused" | "completed";
164
- tokenUsage: number;
165
- chatId: string;
166
- tool: "claude-code" | "cursor" | "windsurf";
167
- sessionId: string;
168
- timestamp: string;
169
- previousStatus: string;
170
- policy?: string | undefined;
171
- policyVersion?: string | undefined;
172
- version?: 1 | undefined;
173
- }>;
174
- export declare const SessionStateEventSchema: z.ZodObject<{
175
- type: z.ZodLiteral<"session.state">;
176
- version: z.ZodOptional<z.ZodLiteral<1>>;
177
- sessionId: z.ZodString;
178
- chatId: z.ZodString;
179
- policy: z.ZodOptional<z.ZodString>;
180
- policyVersion: z.ZodOptional<z.ZodString>;
181
- status: z.ZodEnum<["active", "paused", "completed", "error"]>;
182
- previousStatus: z.ZodString;
183
- tool: z.ZodEnum<["claude-code", "cursor", "windsurf"]>;
184
- tokenUsage: z.ZodNumber;
185
- timestamp: z.ZodString;
186
- }, "strict", z.ZodTypeAny, {
187
- type: "session.state";
188
- status: "active" | "error" | "paused" | "completed";
189
- tokenUsage: number;
190
- chatId: string;
191
- tool: "claude-code" | "cursor" | "windsurf";
192
- sessionId: string;
193
- timestamp: string;
194
- previousStatus: string;
195
- policy?: string | undefined;
196
- policyVersion?: string | undefined;
197
- version?: 1 | undefined;
198
- }, {
199
- type: "session.state";
200
- status: "active" | "error" | "paused" | "completed";
201
- tokenUsage: number;
202
- chatId: string;
203
- tool: "claude-code" | "cursor" | "windsurf";
204
- sessionId: string;
205
- timestamp: string;
206
- previousStatus: string;
207
- policy?: string | undefined;
208
- policyVersion?: string | undefined;
209
- version?: 1 | undefined;
210
- }>;
211
- export type SessionStateEvent = z.infer<typeof SessionStateEventSchema>;
212
- export declare const ToolControlCommandNameSchema: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>;
213
- export type ToolControlCommandName = z.infer<typeof ToolControlCommandNameSchema>;
214
- export declare const ToolControlCommandV1Schema: z.ZodObject<{
215
- commandId: z.ZodOptional<z.ZodString>;
216
- type: z.ZodLiteral<"tool.control">;
217
- version: z.ZodOptional<z.ZodLiteral<1>>;
218
- command: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>;
219
- sessionId: z.ZodString;
220
- toolCallId: z.ZodOptional<z.ZodString>;
221
- message: z.ZodOptional<z.ZodString>;
222
- pattern: z.ZodOptional<z.ZodString>;
223
- inboxItemId: z.ZodOptional<z.ZodString>;
224
- actor: z.ZodOptional<z.ZodObject<{
225
- actorWebId: z.ZodString;
226
- actorRole: z.ZodEnum<["human", "secretary", "system"]>;
227
- onBehalfOf: z.ZodOptional<z.ZodString>;
228
- }, "strip", z.ZodTypeAny, {
229
- actorRole: "human" | "secretary" | "system";
230
- actorWebId: string;
231
- onBehalfOf?: string | undefined;
232
- }, {
233
- actorRole: "human" | "secretary" | "system";
234
- actorWebId: string;
235
- onBehalfOf?: string | undefined;
236
- }>>;
237
- policyVersion: z.ZodOptional<z.ZodString>;
238
- timestamp: z.ZodString;
239
- }, "strict", z.ZodTypeAny, {
240
- type: "tool.control";
241
- sessionId: string;
242
- timestamp: string;
243
- command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern";
244
- message?: string | undefined;
245
- actor?: {
246
- actorRole: "human" | "secretary" | "system";
247
- actorWebId: string;
248
- onBehalfOf?: string | undefined;
249
- } | undefined;
250
- policyVersion?: string | undefined;
251
- toolCallId?: string | undefined;
252
- inboxItemId?: string | undefined;
253
- version?: 1 | undefined;
254
- commandId?: string | undefined;
255
- pattern?: string | undefined;
256
- }, {
257
- type: "tool.control";
258
- sessionId: string;
259
- timestamp: string;
260
- command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern";
261
- message?: string | undefined;
262
- actor?: {
263
- actorRole: "human" | "secretary" | "system";
264
- actorWebId: string;
265
- onBehalfOf?: string | undefined;
266
- } | undefined;
267
- policyVersion?: string | undefined;
268
- toolCallId?: string | undefined;
269
- inboxItemId?: string | undefined;
270
- version?: 1 | undefined;
271
- commandId?: string | undefined;
272
- pattern?: string | undefined;
273
- }>;
274
- export declare const ToolControlCommandSchema: z.ZodObject<{
275
- commandId: z.ZodOptional<z.ZodString>;
276
- type: z.ZodLiteral<"tool.control">;
277
- version: z.ZodOptional<z.ZodLiteral<1>>;
278
- command: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>;
279
- sessionId: z.ZodString;
280
- toolCallId: z.ZodOptional<z.ZodString>;
281
- message: z.ZodOptional<z.ZodString>;
282
- pattern: z.ZodOptional<z.ZodString>;
283
- inboxItemId: z.ZodOptional<z.ZodString>;
284
- actor: z.ZodOptional<z.ZodObject<{
285
- actorWebId: z.ZodString;
286
- actorRole: z.ZodEnum<["human", "secretary", "system"]>;
287
- onBehalfOf: z.ZodOptional<z.ZodString>;
288
- }, "strip", z.ZodTypeAny, {
289
- actorRole: "human" | "secretary" | "system";
290
- actorWebId: string;
291
- onBehalfOf?: string | undefined;
292
- }, {
293
- actorRole: "human" | "secretary" | "system";
294
- actorWebId: string;
295
- onBehalfOf?: string | undefined;
296
- }>>;
297
- policyVersion: z.ZodOptional<z.ZodString>;
298
- timestamp: z.ZodString;
299
- }, "strict", z.ZodTypeAny, {
300
- type: "tool.control";
301
- sessionId: string;
302
- timestamp: string;
303
- command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern";
304
- message?: string | undefined;
305
- actor?: {
306
- actorRole: "human" | "secretary" | "system";
307
- actorWebId: string;
308
- onBehalfOf?: string | undefined;
309
- } | undefined;
310
- policyVersion?: string | undefined;
311
- toolCallId?: string | undefined;
312
- inboxItemId?: string | undefined;
313
- version?: 1 | undefined;
314
- commandId?: string | undefined;
315
- pattern?: string | undefined;
316
- }, {
317
- type: "tool.control";
318
- sessionId: string;
319
- timestamp: string;
320
- command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern";
321
- message?: string | undefined;
322
- actor?: {
323
- actorRole: "human" | "secretary" | "system";
324
- actorWebId: string;
325
- onBehalfOf?: string | undefined;
326
- } | undefined;
327
- policyVersion?: string | undefined;
328
- toolCallId?: string | undefined;
329
- inboxItemId?: string | undefined;
330
- version?: 1 | undefined;
331
- commandId?: string | undefined;
332
- pattern?: string | undefined;
333
- }>;
334
- export type ToolControlCommand = z.infer<typeof ToolControlCommandSchema>;
335
- export declare const InboxApprovalStatusSchema: z.ZodEnum<["pending", "approved", "rejected", "expired"]>;
336
- export type InboxApprovalStatus = z.infer<typeof InboxApprovalStatusSchema>;
337
- export declare const InboxApprovalEventV1Schema: z.ZodObject<{
338
- type: z.ZodLiteral<"inbox.approval">;
339
- version: z.ZodOptional<z.ZodLiteral<1>>;
340
- inboxItemId: z.ZodString;
341
- sessionId: z.ZodString;
342
- toolCallId: z.ZodString;
343
- target: z.ZodOptional<z.ZodString>;
344
- action: z.ZodOptional<z.ZodString>;
345
- policy: z.ZodOptional<z.ZodString>;
346
- policyVersion: z.ZodOptional<z.ZodString>;
347
- risk: z.ZodEnum<["low", "medium", "high"]>;
348
- status: z.ZodEnum<["pending", "approved", "rejected", "expired"]>;
349
- assignedTo: z.ZodOptional<z.ZodString>;
350
- createdAt: z.ZodString;
351
- resolvedAt: z.ZodOptional<z.ZodString>;
352
- }, "strict", z.ZodTypeAny, {
353
- type: "inbox.approval";
354
- createdAt: string;
355
- status: "pending" | "approved" | "rejected" | "expired";
356
- risk: "low" | "medium" | "high";
357
- toolCallId: string;
358
- inboxItemId: string;
359
- sessionId: string;
360
- target?: string | undefined;
361
- action?: string | undefined;
362
- assignedTo?: string | undefined;
363
- resolvedAt?: string | undefined;
364
- policy?: string | undefined;
365
- policyVersion?: string | undefined;
366
- version?: 1 | undefined;
367
- }, {
368
- type: "inbox.approval";
369
- createdAt: string;
370
- status: "pending" | "approved" | "rejected" | "expired";
371
- risk: "low" | "medium" | "high";
372
- toolCallId: string;
373
- inboxItemId: string;
374
- sessionId: string;
375
- target?: string | undefined;
376
- action?: string | undefined;
377
- assignedTo?: string | undefined;
378
- resolvedAt?: string | undefined;
379
- policy?: string | undefined;
380
- policyVersion?: string | undefined;
381
- version?: 1 | undefined;
382
- }>;
383
- export declare const InboxApprovalEventSchema: z.ZodObject<{
384
- type: z.ZodLiteral<"inbox.approval">;
385
- version: z.ZodOptional<z.ZodLiteral<1>>;
386
- inboxItemId: z.ZodString;
387
- sessionId: z.ZodString;
388
- toolCallId: z.ZodString;
389
- target: z.ZodOptional<z.ZodString>;
390
- action: z.ZodOptional<z.ZodString>;
391
- policy: z.ZodOptional<z.ZodString>;
392
- policyVersion: z.ZodOptional<z.ZodString>;
393
- risk: z.ZodEnum<["low", "medium", "high"]>;
394
- status: z.ZodEnum<["pending", "approved", "rejected", "expired"]>;
395
- assignedTo: z.ZodOptional<z.ZodString>;
396
- createdAt: z.ZodString;
397
- resolvedAt: z.ZodOptional<z.ZodString>;
398
- }, "strict", z.ZodTypeAny, {
399
- type: "inbox.approval";
400
- createdAt: string;
401
- status: "pending" | "approved" | "rejected" | "expired";
402
- risk: "low" | "medium" | "high";
403
- toolCallId: string;
404
- inboxItemId: string;
405
- sessionId: string;
406
- target?: string | undefined;
407
- action?: string | undefined;
408
- assignedTo?: string | undefined;
409
- resolvedAt?: string | undefined;
410
- policy?: string | undefined;
411
- policyVersion?: string | undefined;
412
- version?: 1 | undefined;
413
- }, {
414
- type: "inbox.approval";
415
- createdAt: string;
416
- status: "pending" | "approved" | "rejected" | "expired";
417
- risk: "low" | "medium" | "high";
418
- toolCallId: string;
419
- inboxItemId: string;
420
- sessionId: string;
421
- target?: string | undefined;
422
- action?: string | undefined;
423
- assignedTo?: string | undefined;
424
- resolvedAt?: string | undefined;
425
- policy?: string | undefined;
426
- policyVersion?: string | undefined;
427
- version?: 1 | undefined;
428
- }>;
429
- export type InboxApprovalEvent = z.infer<typeof InboxApprovalEventSchema>;
430
- export declare const SidecarEventSchema: z.ZodUnion<[z.ZodObject<{
431
- type: z.ZodLiteral<"tool.call">;
432
- version: z.ZodOptional<z.ZodLiteral<1>>;
433
- sessionId: z.ZodString;
434
- toolCallId: z.ZodString;
435
- toolName: z.ZodString;
436
- risk: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
437
- status: z.ZodEnum<["calling", "waiting_approval", "approved", "rejected", "running", "done", "error"]>;
438
- target: z.ZodOptional<z.ZodString>;
439
- action: z.ZodOptional<z.ZodString>;
440
- arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
441
- result: z.ZodOptional<z.ZodUnknown>;
442
- error: z.ZodOptional<z.ZodString>;
443
- duration: z.ZodOptional<z.ZodNumber>;
444
- inboxItemId: z.ZodOptional<z.ZodString>;
445
- decisionBy: z.ZodOptional<z.ZodString>;
446
- decisionRole: z.ZodOptional<z.ZodEnum<["human", "secretary", "system"]>>;
447
- onBehalfOf: z.ZodOptional<z.ZodString>;
448
- policyVersion: z.ZodOptional<z.ZodString>;
449
- timestamp: z.ZodString;
450
- }, "strict", z.ZodTypeAny, {
451
- type: "tool.call";
452
- status: "approved" | "rejected" | "running" | "done" | "error" | "calling" | "waiting_approval";
453
- toolCallId: string;
454
- toolName: string;
455
- sessionId: string;
456
- timestamp: string;
457
- target?: string | undefined;
458
- action?: string | undefined;
459
- risk?: "low" | "medium" | "high" | undefined;
460
- policyVersion?: string | undefined;
461
- decisionBy?: string | undefined;
462
- decisionRole?: "human" | "secretary" | "system" | undefined;
463
- onBehalfOf?: string | undefined;
464
- inboxItemId?: string | undefined;
465
- error?: string | undefined;
466
- arguments?: Record<string, unknown> | undefined;
467
- result?: unknown;
468
- duration?: number | undefined;
469
- version?: 1 | undefined;
470
- }, {
471
- type: "tool.call";
472
- status: "approved" | "rejected" | "running" | "done" | "error" | "calling" | "waiting_approval";
473
- toolCallId: string;
474
- toolName: string;
475
- sessionId: string;
476
- timestamp: string;
477
- target?: string | undefined;
478
- action?: string | undefined;
479
- risk?: "low" | "medium" | "high" | undefined;
480
- policyVersion?: string | undefined;
481
- decisionBy?: string | undefined;
482
- decisionRole?: "human" | "secretary" | "system" | undefined;
483
- onBehalfOf?: string | undefined;
484
- inboxItemId?: string | undefined;
485
- error?: string | undefined;
486
- arguments?: Record<string, unknown> | undefined;
487
- result?: unknown;
488
- duration?: number | undefined;
489
- version?: 1 | undefined;
490
- }>, z.ZodObject<{
491
- type: z.ZodLiteral<"session.state">;
492
- version: z.ZodOptional<z.ZodLiteral<1>>;
493
- sessionId: z.ZodString;
494
- chatId: z.ZodString;
495
- policy: z.ZodOptional<z.ZodString>;
496
- policyVersion: z.ZodOptional<z.ZodString>;
497
- status: z.ZodEnum<["active", "paused", "completed", "error"]>;
498
- previousStatus: z.ZodString;
499
- tool: z.ZodEnum<["claude-code", "cursor", "windsurf"]>;
500
- tokenUsage: z.ZodNumber;
501
- timestamp: z.ZodString;
502
- }, "strict", z.ZodTypeAny, {
503
- type: "session.state";
504
- status: "active" | "error" | "paused" | "completed";
505
- tokenUsage: number;
506
- chatId: string;
507
- tool: "claude-code" | "cursor" | "windsurf";
508
- sessionId: string;
509
- timestamp: string;
510
- previousStatus: string;
511
- policy?: string | undefined;
512
- policyVersion?: string | undefined;
513
- version?: 1 | undefined;
514
- }, {
515
- type: "session.state";
516
- status: "active" | "error" | "paused" | "completed";
517
- tokenUsage: number;
518
- chatId: string;
519
- tool: "claude-code" | "cursor" | "windsurf";
520
- sessionId: string;
521
- timestamp: string;
522
- previousStatus: string;
523
- policy?: string | undefined;
524
- policyVersion?: string | undefined;
525
- version?: 1 | undefined;
526
- }>, z.ZodObject<{
527
- commandId: z.ZodOptional<z.ZodString>;
528
- type: z.ZodLiteral<"tool.control">;
529
- version: z.ZodOptional<z.ZodLiteral<1>>;
530
- command: z.ZodEnum<["approve", "reject", "pause", "resume", "stop", "inject_message", "approve_pattern"]>;
531
- sessionId: z.ZodString;
532
- toolCallId: z.ZodOptional<z.ZodString>;
533
- message: z.ZodOptional<z.ZodString>;
534
- pattern: z.ZodOptional<z.ZodString>;
535
- inboxItemId: z.ZodOptional<z.ZodString>;
536
- actor: z.ZodOptional<z.ZodObject<{
537
- actorWebId: z.ZodString;
538
- actorRole: z.ZodEnum<["human", "secretary", "system"]>;
539
- onBehalfOf: z.ZodOptional<z.ZodString>;
540
- }, "strip", z.ZodTypeAny, {
541
- actorRole: "human" | "secretary" | "system";
542
- actorWebId: string;
543
- onBehalfOf?: string | undefined;
544
- }, {
545
- actorRole: "human" | "secretary" | "system";
546
- actorWebId: string;
547
- onBehalfOf?: string | undefined;
548
- }>>;
549
- policyVersion: z.ZodOptional<z.ZodString>;
550
- timestamp: z.ZodString;
551
- }, "strict", z.ZodTypeAny, {
552
- type: "tool.control";
553
- sessionId: string;
554
- timestamp: string;
555
- command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern";
556
- message?: string | undefined;
557
- actor?: {
558
- actorRole: "human" | "secretary" | "system";
559
- actorWebId: string;
560
- onBehalfOf?: string | undefined;
561
- } | undefined;
562
- policyVersion?: string | undefined;
563
- toolCallId?: string | undefined;
564
- inboxItemId?: string | undefined;
565
- version?: 1 | undefined;
566
- commandId?: string | undefined;
567
- pattern?: string | undefined;
568
- }, {
569
- type: "tool.control";
570
- sessionId: string;
571
- timestamp: string;
572
- command: "approve" | "reject" | "pause" | "resume" | "stop" | "inject_message" | "approve_pattern";
573
- message?: string | undefined;
574
- actor?: {
575
- actorRole: "human" | "secretary" | "system";
576
- actorWebId: string;
577
- onBehalfOf?: string | undefined;
578
- } | undefined;
579
- policyVersion?: string | undefined;
580
- toolCallId?: string | undefined;
581
- inboxItemId?: string | undefined;
582
- version?: 1 | undefined;
583
- commandId?: string | undefined;
584
- pattern?: string | undefined;
585
- }>, z.ZodObject<{
586
- type: z.ZodLiteral<"inbox.approval">;
587
- version: z.ZodOptional<z.ZodLiteral<1>>;
588
- inboxItemId: z.ZodString;
589
- sessionId: z.ZodString;
590
- toolCallId: z.ZodString;
591
- target: z.ZodOptional<z.ZodString>;
592
- action: z.ZodOptional<z.ZodString>;
593
- policy: z.ZodOptional<z.ZodString>;
594
- policyVersion: z.ZodOptional<z.ZodString>;
595
- risk: z.ZodEnum<["low", "medium", "high"]>;
596
- status: z.ZodEnum<["pending", "approved", "rejected", "expired"]>;
597
- assignedTo: z.ZodOptional<z.ZodString>;
598
- createdAt: z.ZodString;
599
- resolvedAt: z.ZodOptional<z.ZodString>;
600
- }, "strict", z.ZodTypeAny, {
601
- type: "inbox.approval";
602
- createdAt: string;
603
- status: "pending" | "approved" | "rejected" | "expired";
604
- risk: "low" | "medium" | "high";
605
- toolCallId: string;
606
- inboxItemId: string;
607
- sessionId: string;
608
- target?: string | undefined;
609
- action?: string | undefined;
610
- assignedTo?: string | undefined;
611
- resolvedAt?: string | undefined;
612
- policy?: string | undefined;
613
- policyVersion?: string | undefined;
614
- version?: 1 | undefined;
615
- }, {
616
- type: "inbox.approval";
617
- createdAt: string;
618
- status: "pending" | "approved" | "rejected" | "expired";
619
- risk: "low" | "medium" | "high";
620
- toolCallId: string;
621
- inboxItemId: string;
622
- sessionId: string;
623
- target?: string | undefined;
624
- action?: string | undefined;
625
- assignedTo?: string | undefined;
626
- resolvedAt?: string | undefined;
627
- policy?: string | undefined;
628
- policyVersion?: string | undefined;
629
- version?: 1 | undefined;
630
- }>]>;
631
- export type SidecarEvent = z.infer<typeof SidecarEventSchema>;
632
- export declare function getSidecarEventVersion(_event: SidecarEvent): SidecarEventVersion;