@agent-marshal/marshal-pi 0.48.1

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 (244) hide show
  1. package/package.json +44 -0
  2. package/src/daemon.ts +354 -0
  3. package/src/entities.ts +194 -0
  4. package/src/generated/AckMessages.ts +16 -0
  5. package/src/generated/AckMessagesArgs.ts +16 -0
  6. package/src/generated/AckMessagesResult.ts +12 -0
  7. package/src/generated/AutoSource.ts +9 -0
  8. package/src/generated/BroadcastMessage.ts +10 -0
  9. package/src/generated/BroadcastMessageArgs.ts +10 -0
  10. package/src/generated/BroadcastMessageResult.ts +25 -0
  11. package/src/generated/CancelSubscription.ts +6 -0
  12. package/src/generated/ChildEntities.ts +6 -0
  13. package/src/generated/ChildEntitiesAllTime.ts +6 -0
  14. package/src/generated/ClearClientWindbackTime.ts +7 -0
  15. package/src/generated/ClearClientWindbackTimeArgs.ts +3 -0
  16. package/src/generated/Client.ts +14 -0
  17. package/src/generated/ClientCount.ts +3 -0
  18. package/src/generated/ClientId.ts +3 -0
  19. package/src/generated/ClientStatus.ts +7 -0
  20. package/src/generated/ClientStatusOutput.ts +3 -0
  21. package/src/generated/CommandError.ts +3 -0
  22. package/src/generated/CommandResponse.ts +4 -0
  23. package/src/generated/CountAllClients.ts +3 -0
  24. package/src/generated/CountAllMessageReads.ts +3 -0
  25. package/src/generated/CountAllMessages.ts +3 -0
  26. package/src/generated/CountAllRoomMembers.ts +3 -0
  27. package/src/generated/CountAllRooms.ts +3 -0
  28. package/src/generated/CountAllServers.ts +3 -0
  29. package/src/generated/CountAllSessionNicknames.ts +3 -0
  30. package/src/generated/CountAllSessions.ts +3 -0
  31. package/src/generated/CountClients.ts +4 -0
  32. package/src/generated/CountMessageReads.ts +4 -0
  33. package/src/generated/CountMessages.ts +4 -0
  34. package/src/generated/CountRoomMembers.ts +4 -0
  35. package/src/generated/CountRooms.ts +4 -0
  36. package/src/generated/CountServers.ts +4 -0
  37. package/src/generated/CountSessionNicknames.ts +4 -0
  38. package/src/generated/CountSessions.ts +4 -0
  39. package/src/generated/DeleteClient.ts +7 -0
  40. package/src/generated/DeleteClientArgs.ts +4 -0
  41. package/src/generated/DeleteClientResult.ts +6 -0
  42. package/src/generated/DeleteClients.ts +7 -0
  43. package/src/generated/DeleteClientsArgs.ts +4 -0
  44. package/src/generated/DeleteClientsResult.ts +6 -0
  45. package/src/generated/DeleteMessage.ts +7 -0
  46. package/src/generated/DeleteMessageArgs.ts +4 -0
  47. package/src/generated/DeleteMessageRead.ts +7 -0
  48. package/src/generated/DeleteMessageReadArgs.ts +4 -0
  49. package/src/generated/DeleteMessageReadResult.ts +6 -0
  50. package/src/generated/DeleteMessageReads.ts +7 -0
  51. package/src/generated/DeleteMessageReadsArgs.ts +4 -0
  52. package/src/generated/DeleteMessageReadsResult.ts +6 -0
  53. package/src/generated/DeleteMessageResult.ts +6 -0
  54. package/src/generated/DeleteMessages.ts +7 -0
  55. package/src/generated/DeleteMessagesArgs.ts +4 -0
  56. package/src/generated/DeleteMessagesResult.ts +6 -0
  57. package/src/generated/DeleteRoom.ts +7 -0
  58. package/src/generated/DeleteRoomArgs.ts +4 -0
  59. package/src/generated/DeleteRoomMember.ts +7 -0
  60. package/src/generated/DeleteRoomMemberArgs.ts +4 -0
  61. package/src/generated/DeleteRoomMemberResult.ts +6 -0
  62. package/src/generated/DeleteRoomMembers.ts +7 -0
  63. package/src/generated/DeleteRoomMembersArgs.ts +4 -0
  64. package/src/generated/DeleteRoomMembersResult.ts +6 -0
  65. package/src/generated/DeleteRoomResult.ts +6 -0
  66. package/src/generated/DeleteRooms.ts +7 -0
  67. package/src/generated/DeleteRoomsArgs.ts +4 -0
  68. package/src/generated/DeleteRoomsResult.ts +6 -0
  69. package/src/generated/DeleteServer.ts +7 -0
  70. package/src/generated/DeleteServerArgs.ts +4 -0
  71. package/src/generated/DeleteServerResult.ts +6 -0
  72. package/src/generated/DeleteServers.ts +7 -0
  73. package/src/generated/DeleteServersArgs.ts +4 -0
  74. package/src/generated/DeleteServersResult.ts +6 -0
  75. package/src/generated/DeleteSession.ts +7 -0
  76. package/src/generated/DeleteSessionArgs.ts +4 -0
  77. package/src/generated/DeleteSessionNickname.ts +7 -0
  78. package/src/generated/DeleteSessionNicknameArgs.ts +4 -0
  79. package/src/generated/DeleteSessionNicknameResult.ts +6 -0
  80. package/src/generated/DeleteSessionNicknames.ts +7 -0
  81. package/src/generated/DeleteSessionNicknamesArgs.ts +4 -0
  82. package/src/generated/DeleteSessionNicknamesResult.ts +6 -0
  83. package/src/generated/DeleteSessionResult.ts +6 -0
  84. package/src/generated/DeleteSessions.ts +7 -0
  85. package/src/generated/DeleteSessionsArgs.ts +4 -0
  86. package/src/generated/DeleteSessionsResult.ts +6 -0
  87. package/src/generated/DeliveredRecipient.ts +4 -0
  88. package/src/generated/EntitySearch.ts +21 -0
  89. package/src/generated/EntitySearchResult.ts +10 -0
  90. package/src/generated/EntitySnapshotDifference.ts +6 -0
  91. package/src/generated/EntitySnapshotDifferenceData.ts +7 -0
  92. package/src/generated/EntityTreeExport.ts +27 -0
  93. package/src/generated/EventContainer.ts +7 -0
  94. package/src/generated/EventOptions.ts +11 -0
  95. package/src/generated/EventsForTransaction.ts +6 -0
  96. package/src/generated/ExportEntityTree.ts +24 -0
  97. package/src/generated/ExportedEntity.ts +15 -0
  98. package/src/generated/FailedRecipient.ts +4 -0
  99. package/src/generated/FullChildEntities.ts +6 -0
  100. package/src/generated/GetAllClients.ts +3 -0
  101. package/src/generated/GetAllMessageReads.ts +3 -0
  102. package/src/generated/GetAllMessages.ts +3 -0
  103. package/src/generated/GetAllRoomMembers.ts +3 -0
  104. package/src/generated/GetAllRooms.ts +3 -0
  105. package/src/generated/GetAllServers.ts +3 -0
  106. package/src/generated/GetAllSessionNicknames.ts +3 -0
  107. package/src/generated/GetAllSessions.ts +3 -0
  108. package/src/generated/GetClientById.ts +4 -0
  109. package/src/generated/GetClientsByIds.ts +4 -0
  110. package/src/generated/GetClientsByQuery.ts +4 -0
  111. package/src/generated/GetConnectedServer.ts +3 -0
  112. package/src/generated/GetItemsByTypeAndIds.ts +14 -0
  113. package/src/generated/GetMessageById.ts +4 -0
  114. package/src/generated/GetMessageReadById.ts +4 -0
  115. package/src/generated/GetMessageReadsByIds.ts +4 -0
  116. package/src/generated/GetMessageReadsByQuery.ts +4 -0
  117. package/src/generated/GetMessagesByIds.ts +4 -0
  118. package/src/generated/GetMessagesByQuery.ts +4 -0
  119. package/src/generated/GetPeerServers.ts +3 -0
  120. package/src/generated/GetPersistHealth.ts +8 -0
  121. package/src/generated/GetRoomById.ts +4 -0
  122. package/src/generated/GetRoomMemberById.ts +4 -0
  123. package/src/generated/GetRoomMembersByIds.ts +4 -0
  124. package/src/generated/GetRoomMembersByQuery.ts +4 -0
  125. package/src/generated/GetRoomsByIds.ts +4 -0
  126. package/src/generated/GetRoomsByQuery.ts +4 -0
  127. package/src/generated/GetServerById.ts +4 -0
  128. package/src/generated/GetServersByIds.ts +4 -0
  129. package/src/generated/GetServersByQuery.ts +4 -0
  130. package/src/generated/GetSessionById.ts +4 -0
  131. package/src/generated/GetSessionNicknameById.ts +4 -0
  132. package/src/generated/GetSessionNicknamesByIds.ts +4 -0
  133. package/src/generated/GetSessionNicknamesByQuery.ts +4 -0
  134. package/src/generated/GetSessionsByIds.ts +4 -0
  135. package/src/generated/GetSessionsByQuery.ts +4 -0
  136. package/src/generated/HostInfo.ts +21 -0
  137. package/src/generated/ImportItems.ts +19 -0
  138. package/src/generated/ImportItemsArgs.ts +13 -0
  139. package/src/generated/ItemStub.ts +7 -0
  140. package/src/generated/JoinRoom.ts +19 -0
  141. package/src/generated/JoinRoomArgs.ts +19 -0
  142. package/src/generated/JoinRoomResult.ts +14 -0
  143. package/src/generated/LeaveRoom.ts +14 -0
  144. package/src/generated/LeaveRoomArgs.ts +14 -0
  145. package/src/generated/LeaveRoomResult.ts +9 -0
  146. package/src/generated/LivePushStatus.ts +3 -0
  147. package/src/generated/LogLevel.ts +6 -0
  148. package/src/generated/Loggers.ts +6 -0
  149. package/src/generated/MEvent.ts +5 -0
  150. package/src/generated/MEventType.ts +3 -0
  151. package/src/generated/Message.ts +60 -0
  152. package/src/generated/MessageCount.ts +3 -0
  153. package/src/generated/MessageId.ts +3 -0
  154. package/src/generated/MessageRead.ts +10 -0
  155. package/src/generated/MessageReadCount.ts +3 -0
  156. package/src/generated/MessageReadId.ts +3 -0
  157. package/src/generated/MessageView.ts +12 -0
  158. package/src/generated/MykoMessage.ts +19 -0
  159. package/src/generated/NotifyChannel.ts +10 -0
  160. package/src/generated/NotifyChannelArgs.ts +4 -0
  161. package/src/generated/PartialClient.ts +14 -0
  162. package/src/generated/PartialMessage.ts +60 -0
  163. package/src/generated/PartialMessageRead.ts +10 -0
  164. package/src/generated/PartialRoom.ts +23 -0
  165. package/src/generated/PartialRoomMember.ts +13 -0
  166. package/src/generated/PartialServer.ts +4 -0
  167. package/src/generated/PartialSession.ts +130 -0
  168. package/src/generated/PartialSessionNickname.ts +9 -0
  169. package/src/generated/PeerAlive.ts +7 -0
  170. package/src/generated/PersistHealthStatus.ts +34 -0
  171. package/src/generated/PingData.ts +14 -0
  172. package/src/generated/QueryError.ts +3 -0
  173. package/src/generated/QueryWindow.ts +3 -0
  174. package/src/generated/QueryWindowUpdate.ts +4 -0
  175. package/src/generated/ReadMessages.ts +48 -0
  176. package/src/generated/ReadMessagesArgs.ts +48 -0
  177. package/src/generated/ReadMessagesResult.ts +9 -0
  178. package/src/generated/ReportError.ts +3 -0
  179. package/src/generated/ReportResponse.ts +4 -0
  180. package/src/generated/Room.ts +23 -0
  181. package/src/generated/RoomCount.ts +3 -0
  182. package/src/generated/RoomId.ts +3 -0
  183. package/src/generated/RoomKind.ts +9 -0
  184. package/src/generated/RoomMember.ts +13 -0
  185. package/src/generated/RoomMemberCount.ts +3 -0
  186. package/src/generated/RoomMemberId.ts +3 -0
  187. package/src/generated/SearchServer.ts +8 -0
  188. package/src/generated/SearchServerResult.ts +4 -0
  189. package/src/generated/SendMessage.ts +12 -0
  190. package/src/generated/SendMessageArgs.ts +12 -0
  191. package/src/generated/SendMessageResult.ts +33 -0
  192. package/src/generated/Server.ts +4 -0
  193. package/src/generated/ServerCount.ts +3 -0
  194. package/src/generated/ServerId.ts +3 -0
  195. package/src/generated/ServerLogLevel.ts +6 -0
  196. package/src/generated/ServerStats.ts +27 -0
  197. package/src/generated/ServerStatsOutput.ts +20 -0
  198. package/src/generated/Session.ts +130 -0
  199. package/src/generated/SessionCount.ts +3 -0
  200. package/src/generated/SessionId.ts +3 -0
  201. package/src/generated/SessionNickname.ts +9 -0
  202. package/src/generated/SessionNicknameCount.ts +3 -0
  203. package/src/generated/SessionNicknameId.ts +3 -0
  204. package/src/generated/SetClientWindbackTime.ts +11 -0
  205. package/src/generated/SetClientWindbackTimeArgs.ts +7 -0
  206. package/src/generated/SetLogLevel.ts +7 -0
  207. package/src/generated/SetLogLevelArgs.ts +4 -0
  208. package/src/generated/SetRoomDescription.ts +7 -0
  209. package/src/generated/SetRoomDescriptionArgs.ts +4 -0
  210. package/src/generated/SetRoomName.ts +7 -0
  211. package/src/generated/SetRoomNameArgs.ts +4 -0
  212. package/src/generated/SetSessionActivity.ts +7 -0
  213. package/src/generated/SetSessionActivityArgs.ts +4 -0
  214. package/src/generated/SetSessionCurrentTask.ts +7 -0
  215. package/src/generated/SetSessionCurrentTaskArgs.ts +4 -0
  216. package/src/generated/SetSessionGitBranch.ts +7 -0
  217. package/src/generated/SetSessionGitBranchArgs.ts +4 -0
  218. package/src/generated/SetSessionLastActivityAt.ts +7 -0
  219. package/src/generated/SetSessionLastActivityAtArgs.ts +4 -0
  220. package/src/generated/SetSessionLastTool.ts +7 -0
  221. package/src/generated/SetSessionLastToolArgs.ts +4 -0
  222. package/src/generated/SetSessionLastToolAt.ts +7 -0
  223. package/src/generated/SetSessionLastToolAtArgs.ts +4 -0
  224. package/src/generated/SetSessionSessionName.ts +7 -0
  225. package/src/generated/SetSessionSessionNameArgs.ts +4 -0
  226. package/src/generated/StartProfile.ts +10 -0
  227. package/src/generated/StartProfileArgs.ts +7 -0
  228. package/src/generated/StopProfile.ts +6 -0
  229. package/src/generated/StopProfileArgs.ts +3 -0
  230. package/src/generated/StopProfileOutput.ts +14 -0
  231. package/src/generated/ViewError.ts +3 -0
  232. package/src/generated/ViewWindowUpdate.ts +4 -0
  233. package/src/generated/WakeStatus.ts +3 -0
  234. package/src/generated/WindbackStatus.ts +3 -0
  235. package/src/generated/WindbackStatusOutput.ts +11 -0
  236. package/src/generated/WrappedCommand.ts +4 -0
  237. package/src/generated/WrappedItem.ts +7 -0
  238. package/src/generated/WrappedQuery.ts +5 -0
  239. package/src/generated/WrappedReport.ts +4 -0
  240. package/src/generated/WrappedView.ts +5 -0
  241. package/src/generated/index.ts +1060 -0
  242. package/src/generated/serde_json/JsonValue.ts +3 -0
  243. package/src/identity.ts +61 -0
  244. package/src/index.ts +593 -0
@@ -0,0 +1,10 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Result of an entity search.
5
+ */
6
+ export type EntitySearchResult = {
7
+ /**
8
+ * IDs of entities matching the search query
9
+ */
10
+ ids: Array<string>, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Report that computes the difference between entity snapshots.
5
+ */
6
+ export type EntitySnapshotDifference = { parentType: string, parentId: string, };
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ItemStub } from "./ItemStub";
3
+
4
+ /**
5
+ * Data returned by EntitySnapshotDifference report.
6
+ */
7
+ export type EntitySnapshotDifferenceData = { changed: Array<ItemStub>, added: Array<ItemStub>, removed: Array<ItemStub>, };
@@ -0,0 +1,27 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ExportedEntity } from "./ExportedEntity";
3
+
4
+ /**
5
+ * The complete tree export containing all entities reachable from the root.
6
+ */
7
+ export type EntityTreeExport = {
8
+ /**
9
+ * Export format version.
10
+ */
11
+ version: number,
12
+ /**
13
+ * Entity type of the root (e.g., "Project").
14
+ */
15
+ rootType: string,
16
+ /**
17
+ * ID of the root entity.
18
+ */
19
+ rootId: string,
20
+ /**
21
+ * ISO 8601 timestamp of when the export was created.
22
+ */
23
+ exportedAt: string,
24
+ /**
25
+ * All entities in the tree, flattened.
26
+ */
27
+ entities: Array<ExportedEntity>, };
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MEvent } from "./MEvent";
3
+
4
+ /**
5
+ * Container for an event with associated metadata.
6
+ */
7
+ export type EventContainer = { id: string, event: MEvent, };
@@ -0,0 +1,11 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Options that can be attached to an event
5
+ */
6
+ export type EventOptions = {
7
+ /**
8
+ * When true, relationship cascades are skipped for this event.
9
+ * Used to prevent infinite loops during cascade processing.
10
+ */
11
+ preventRelationshipUpdates: boolean, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Report that returns events for a specific transaction.
5
+ */
6
+ export type EventsForTransaction = { transactionId: string, };
@@ -0,0 +1,24 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Export the full entity tree rooted at a given entity.
5
+ *
6
+ * Performs a BFS walk over the relationship graph, collecting every
7
+ * reachable descendant. Respects `exclude_from_tree` on `BelongsTo`
8
+ * relations and follows `EnsureFor` on a single-axis basis to prevent
9
+ * Cartesian explosion.
10
+ */
11
+ export type ExportEntityTree = {
12
+ /**
13
+ * Entity type of the root (e.g., "Project").
14
+ */
15
+ rootType: string,
16
+ /**
17
+ * ID of the root entity.
18
+ */
19
+ rootId: string,
20
+ /**
21
+ * ISO 8601 timestamp — when set, replays events up to this time
22
+ * into a temporary store and exports from that instead of the live store.
23
+ */
24
+ asOf?: string | null, };
@@ -0,0 +1,15 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { JsonValue } from "./serde_json/JsonValue";
3
+
4
+ /**
5
+ * A single exported entity within the tree.
6
+ */
7
+ export type ExportedEntity = {
8
+ /**
9
+ * The entity type name (e.g., "Scene", "Binding").
10
+ */
11
+ entityType: string,
12
+ /**
13
+ * The full serialized entity data.
14
+ */
15
+ data: JsonValue, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type FailedRecipient = { sessionId: SessionId, reason: string, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Report that recursively fetches all child entities of a parent.
5
+ */
6
+ export type FullChildEntities = { parentType: string, parentId: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllClients = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllMessageReads = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllMessages = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllRoomMembers = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllRooms = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllServers = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllSessionNicknames = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetAllSessions = Record<string, never>;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ClientId } from "./ClientId";
3
+
4
+ export type GetClientById = { id: ClientId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ClientId } from "./ClientId";
3
+
4
+ export type GetClientsByIds = { ids: Array<ClientId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialClient } from "./PartialClient";
3
+
4
+ export type GetClientsByQuery = PartialClient;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetConnectedServer = Record<string, never>;
@@ -0,0 +1,14 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Report that fetches all items by type and IDs.
5
+ */
6
+ export type GetItemsByTypeAndIds = {
7
+ /**
8
+ * The entity type name (e.g., "Scene", "Target")
9
+ */
10
+ type: string,
11
+ /**
12
+ * List of entity IDs to fetch
13
+ */
14
+ ids: Array<string>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MessageId } from "./MessageId";
3
+
4
+ export type GetMessageById = { id: MessageId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MessageReadId } from "./MessageReadId";
3
+
4
+ export type GetMessageReadById = { id: MessageReadId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MessageReadId } from "./MessageReadId";
3
+
4
+ export type GetMessageReadsByIds = { ids: Array<MessageReadId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialMessageRead } from "./PartialMessageRead";
3
+
4
+ export type GetMessageReadsByQuery = PartialMessageRead;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MessageId } from "./MessageId";
3
+
4
+ export type GetMessagesByIds = { ids: Array<MessageId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialMessage } from "./PartialMessage";
3
+
4
+ export type GetMessagesByQuery = PartialMessage;
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type GetPeerServers = Record<string, never>;
@@ -0,0 +1,8 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Report that returns the current health of the persist subsystem.
5
+ * Polls every 500ms and deduplicates, so subscribers only receive updates
6
+ * when values actually change.
7
+ */
8
+ export type GetPersistHealth = Record<string, never>;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RoomId } from "./RoomId";
3
+
4
+ export type GetRoomById = { id: RoomId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RoomMemberId } from "./RoomMemberId";
3
+
4
+ export type GetRoomMemberById = { id: RoomMemberId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RoomMemberId } from "./RoomMemberId";
3
+
4
+ export type GetRoomMembersByIds = { ids: Array<RoomMemberId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialRoomMember } from "./PartialRoomMember";
3
+
4
+ export type GetRoomMembersByQuery = PartialRoomMember;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RoomId } from "./RoomId";
3
+
4
+ export type GetRoomsByIds = { ids: Array<RoomId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialRoom } from "./PartialRoom";
3
+
4
+ export type GetRoomsByQuery = PartialRoom;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ServerId } from "./ServerId";
3
+
4
+ export type GetServerById = { id: ServerId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ServerId } from "./ServerId";
3
+
4
+ export type GetServersByIds = { ids: Array<ServerId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialServer } from "./PartialServer";
3
+
4
+ export type GetServersByQuery = PartialServer;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type GetSessionById = { id: SessionId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionNicknameId } from "./SessionNicknameId";
3
+
4
+ export type GetSessionNicknameById = { id: SessionNicknameId, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionNicknameId } from "./SessionNicknameId";
3
+
4
+ export type GetSessionNicknamesByIds = { ids: Array<SessionNicknameId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialSessionNickname } from "./PartialSessionNickname";
3
+
4
+ export type GetSessionNicknamesByQuery = PartialSessionNickname;
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type GetSessionsByIds = { ids: Array<SessionId>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PartialSession } from "./PartialSession";
3
+
4
+ export type GetSessionsByQuery = PartialSession;
@@ -0,0 +1,21 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Per-session host environment summary the shim auto-populates at startup
5
+ * so the roster can show "which machine is this session on" without
6
+ * every consumer running its own probe. Optional — some shims (older
7
+ * builds, the TUI in pure-observer mode) may leave it `None`.
8
+ */
9
+ export type HostInfo = {
10
+ /**
11
+ * `gethostname()` result. Anchors the auto-room `host:<name>`.
12
+ */
13
+ name: string,
14
+ /**
15
+ * `std::env::consts::OS` — `"linux"`, `"macos"`, `"windows"`, etc.
16
+ */
17
+ os: string,
18
+ /**
19
+ * `std::env::consts::ARCH` — `"x86_64"`, `"aarch64"`, etc.
20
+ */
21
+ arch: string, };
@@ -0,0 +1,19 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { WrappedItem } from "./WrappedItem";
3
+
4
+ /**
5
+ * Command to import items into the system as SET events, and optionally
6
+ * delete items as DEL events. Returns the total number of events applied.
7
+ *
8
+ * Used by the entity tree import/export system to apply diffs.
9
+ */
10
+ export type ImportItems = {
11
+ /**
12
+ * Items to SET (add or update).
13
+ */
14
+ items: Array<WrappedItem>,
15
+ /**
16
+ * Items to DEL (remove). Only the shallowest removed entities should be
17
+ * included — the relationship manager cascades deletions to children.
18
+ */
19
+ deleteItems: Array<WrappedItem>, };
@@ -0,0 +1,13 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { WrappedItem } from "./WrappedItem";
3
+
4
+ export type ImportItemsArgs = {
5
+ /**
6
+ * Items to SET (add or update).
7
+ */
8
+ items: Array<WrappedItem>,
9
+ /**
10
+ * Items to DEL (remove). Only the shallowest removed entities should be
11
+ * included — the relationship manager cascades deletions to children.
12
+ */
13
+ deleteItems: Array<WrappedItem>, };
@@ -0,0 +1,7 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Stub representation of an entity for tree traversal.
5
+ * Contains minimal identifying information without full entity data.
6
+ */
7
+ export type ItemStub = { id: string, itemType: string, name: string | null, };
@@ -0,0 +1,19 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type JoinRoom = {
5
+ /**
6
+ * User-supplied display name. Slugified into the room id; rooms
7
+ * with reserved prefixes (`everyone`, `host:`, `op:`, `project:`)
8
+ * are blocked so users can't shadow auto-rooms.
9
+ */
10
+ name: string,
11
+ /**
12
+ * Optional human-readable purpose, surfaced in `list_rooms`.
13
+ */
14
+ description?: string | null,
15
+ /**
16
+ * Self-identified caller for connectionless paths (HTTP-MCP agents).
17
+ * WS shim callers omit it. See `resolve_caller`.
18
+ */
19
+ asSession?: SessionId | null, };
@@ -0,0 +1,19 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type JoinRoomArgs = {
5
+ /**
6
+ * User-supplied display name. Slugified into the room id; rooms
7
+ * with reserved prefixes (`everyone`, `host:`, `op:`, `project:`)
8
+ * are blocked so users can't shadow auto-rooms.
9
+ */
10
+ name: string,
11
+ /**
12
+ * Optional human-readable purpose, surfaced in `list_rooms`.
13
+ */
14
+ description?: string | null,
15
+ /**
16
+ * Self-identified caller for connectionless paths (HTTP-MCP agents).
17
+ * WS shim callers omit it. See `resolve_caller`.
18
+ */
19
+ asSession?: SessionId | null, };
@@ -0,0 +1,14 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RoomId } from "./RoomId";
3
+
4
+ export type JoinRoomResult = { roomId: RoomId, name: string,
5
+ /**
6
+ * `true` if this call created the membership row; `false` if the
7
+ * session was already a member (idempotent join).
8
+ */
9
+ joined: boolean,
10
+ /**
11
+ * `true` if this call created the room; `false` if the room
12
+ * already existed and we just attached membership.
13
+ */
14
+ created: boolean, };
@@ -0,0 +1,14 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type LeaveRoom = {
5
+ /**
6
+ * Either a `room_id` (preferred) or the original room name —
7
+ * the server tries id-match first, then name-match.
8
+ */
9
+ room: string,
10
+ /**
11
+ * Self-identified caller for connectionless paths (HTTP-MCP agents).
12
+ * WS shim callers omit it. See `resolve_caller`.
13
+ */
14
+ asSession?: SessionId | null, };
@@ -0,0 +1,14 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { SessionId } from "./SessionId";
3
+
4
+ export type LeaveRoomArgs = {
5
+ /**
6
+ * Either a `room_id` (preferred) or the original room name —
7
+ * the server tries id-match first, then name-match.
8
+ */
9
+ room: string,
10
+ /**
11
+ * Self-identified caller for connectionless paths (HTTP-MCP agents).
12
+ * WS shim callers omit it. See `resolve_caller`.
13
+ */
14
+ asSession?: SessionId | null, };
@@ -0,0 +1,9 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { RoomId } from "./RoomId";
3
+
4
+ export type LeaveRoomResult = { roomId: RoomId,
5
+ /**
6
+ * `true` if the call removed an existing membership; `false`
7
+ * if the session wasn't a member (idempotent leave).
8
+ */
9
+ left: boolean, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type LivePushStatus = "unknown" | "delivered" | "unavailable" | "failed";
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Log level enum for controlling logging verbosity.
5
+ */
6
+ export type LogLevel = "ERROR" | "WARN" | "INFO" | "DEBUG" | "VERBOSE";
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Report that returns the list of available logger names.
5
+ */
6
+ export type Loggers = Record<string, never>;
@@ -0,0 +1,5 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MEventType } from "./MEventType";
3
+ import type { JsonValue } from "./serde_json/JsonValue";
4
+
5
+ export type MEvent = { item: JsonValue, changeType: MEventType, itemType: string, createdAt: string, tx: string, sourceId: string | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type MEventType = "SET" | "DEL";
@@ -0,0 +1,60 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { MessageId } from "./MessageId";
3
+ import type { RoomId } from "./RoomId";
4
+ import type { SessionId } from "./SessionId";
5
+
6
+ /**
7
+ * A message in the bus. Polymorphic recipient — either a peer session
8
+ * (direct send) or a room (broadcast). Exactly one of `to_session_id`
9
+ * and `to_room_id` is set; serde defaults to `None` on the absent
10
+ * side so legacy direct-only payloads from before broadcast existed
11
+ * replay clean.
12
+ *
13
+ * Read state lives on the `MessageRead` join entity, not here, so a
14
+ * broadcast can have per-recipient acks without ambiguity.
15
+ *
16
+ * No denormalized display fields. Sender/recipient labels are computed
17
+ * at read time from the live Session row (and degrade to the session_id
18
+ * itself when the row is gone). Snapshotting nicknames at send time was
19
+ * the source of consistency drift after rename/disconnect; with
20
+ * session_id as the sole stored identity there is nothing to drift.
21
+ */
22
+ export type Message = {
23
+ /**
24
+ * Sender's session id. NOT a `belongs_to(Session)` cascade: a sent
25
+ * message must survive the sender exiting so the recipient can still
26
+ * pull it. In the pull-via-hook model the recipient reads on its
27
+ * next turn — which can be after the sender's SessionEnd — so
28
+ * cascading on the sender would silently delete unread messages in
29
+ * that window. The message's lifetime is governed by the *recipient*
30
+ * instead (the `to_session_id` / `to_room_id` cascades below).
31
+ */
32
+ fromSessionId: SessionId,
33
+ /**
34
+ * Direct recipient — set for 1:1 sends, `None` for broadcasts.
35
+ * Cascade-DELs the message when the recipient session is DEL'd.
36
+ */
37
+ toSessionId?: SessionId | null,
38
+ /**
39
+ * Broadcast recipient — set for room sends, `None` for direct
40
+ * sends. Cascade-DELs when the room is DEL'd. (Auto-rooms like
41
+ * `everyone` and `host:*` are never DEL'd, so broadcasts to them
42
+ * effectively persist forever.)
43
+ */
44
+ toRoomId?: RoomId | null,
45
+ /**
46
+ * When this direct message was addressed to a *human* — via their operator
47
+ * identity (the `op:`/`human:`/email tier of recipient resolution) rather
48
+ * than to one specific agent — this holds that operator string (e.g.
49
+ * `max@lucid.rocks`). The message is still routed to, and cascades on, the
50
+ * operator's most-active session via `to_session_id`; this marks it as
51
+ * human-addressed so the receiving agent surfaces it to its operator
52
+ * instead of treating it as ordinary peer chatter, and the UI console can
53
+ * toast it for that operator regardless of which agent it landed on. `None`
54
+ * for agent-to-agent mail. serde-default so pre-field payloads replay clean.
55
+ */
56
+ toOperator?: string | null, body: string,
57
+ /**
58
+ * Wall-clock millis when the daemon accepted the message.
59
+ */
60
+ sentAt: bigint, id: MessageId, };