@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.
- package/package.json +44 -0
- package/src/daemon.ts +354 -0
- package/src/entities.ts +194 -0
- package/src/generated/AckMessages.ts +16 -0
- package/src/generated/AckMessagesArgs.ts +16 -0
- package/src/generated/AckMessagesResult.ts +12 -0
- package/src/generated/AutoSource.ts +9 -0
- package/src/generated/BroadcastMessage.ts +10 -0
- package/src/generated/BroadcastMessageArgs.ts +10 -0
- package/src/generated/BroadcastMessageResult.ts +25 -0
- package/src/generated/CancelSubscription.ts +6 -0
- package/src/generated/ChildEntities.ts +6 -0
- package/src/generated/ChildEntitiesAllTime.ts +6 -0
- package/src/generated/ClearClientWindbackTime.ts +7 -0
- package/src/generated/ClearClientWindbackTimeArgs.ts +3 -0
- package/src/generated/Client.ts +14 -0
- package/src/generated/ClientCount.ts +3 -0
- package/src/generated/ClientId.ts +3 -0
- package/src/generated/ClientStatus.ts +7 -0
- package/src/generated/ClientStatusOutput.ts +3 -0
- package/src/generated/CommandError.ts +3 -0
- package/src/generated/CommandResponse.ts +4 -0
- package/src/generated/CountAllClients.ts +3 -0
- package/src/generated/CountAllMessageReads.ts +3 -0
- package/src/generated/CountAllMessages.ts +3 -0
- package/src/generated/CountAllRoomMembers.ts +3 -0
- package/src/generated/CountAllRooms.ts +3 -0
- package/src/generated/CountAllServers.ts +3 -0
- package/src/generated/CountAllSessionNicknames.ts +3 -0
- package/src/generated/CountAllSessions.ts +3 -0
- package/src/generated/CountClients.ts +4 -0
- package/src/generated/CountMessageReads.ts +4 -0
- package/src/generated/CountMessages.ts +4 -0
- package/src/generated/CountRoomMembers.ts +4 -0
- package/src/generated/CountRooms.ts +4 -0
- package/src/generated/CountServers.ts +4 -0
- package/src/generated/CountSessionNicknames.ts +4 -0
- package/src/generated/CountSessions.ts +4 -0
- package/src/generated/DeleteClient.ts +7 -0
- package/src/generated/DeleteClientArgs.ts +4 -0
- package/src/generated/DeleteClientResult.ts +6 -0
- package/src/generated/DeleteClients.ts +7 -0
- package/src/generated/DeleteClientsArgs.ts +4 -0
- package/src/generated/DeleteClientsResult.ts +6 -0
- package/src/generated/DeleteMessage.ts +7 -0
- package/src/generated/DeleteMessageArgs.ts +4 -0
- package/src/generated/DeleteMessageRead.ts +7 -0
- package/src/generated/DeleteMessageReadArgs.ts +4 -0
- package/src/generated/DeleteMessageReadResult.ts +6 -0
- package/src/generated/DeleteMessageReads.ts +7 -0
- package/src/generated/DeleteMessageReadsArgs.ts +4 -0
- package/src/generated/DeleteMessageReadsResult.ts +6 -0
- package/src/generated/DeleteMessageResult.ts +6 -0
- package/src/generated/DeleteMessages.ts +7 -0
- package/src/generated/DeleteMessagesArgs.ts +4 -0
- package/src/generated/DeleteMessagesResult.ts +6 -0
- package/src/generated/DeleteRoom.ts +7 -0
- package/src/generated/DeleteRoomArgs.ts +4 -0
- package/src/generated/DeleteRoomMember.ts +7 -0
- package/src/generated/DeleteRoomMemberArgs.ts +4 -0
- package/src/generated/DeleteRoomMemberResult.ts +6 -0
- package/src/generated/DeleteRoomMembers.ts +7 -0
- package/src/generated/DeleteRoomMembersArgs.ts +4 -0
- package/src/generated/DeleteRoomMembersResult.ts +6 -0
- package/src/generated/DeleteRoomResult.ts +6 -0
- package/src/generated/DeleteRooms.ts +7 -0
- package/src/generated/DeleteRoomsArgs.ts +4 -0
- package/src/generated/DeleteRoomsResult.ts +6 -0
- package/src/generated/DeleteServer.ts +7 -0
- package/src/generated/DeleteServerArgs.ts +4 -0
- package/src/generated/DeleteServerResult.ts +6 -0
- package/src/generated/DeleteServers.ts +7 -0
- package/src/generated/DeleteServersArgs.ts +4 -0
- package/src/generated/DeleteServersResult.ts +6 -0
- package/src/generated/DeleteSession.ts +7 -0
- package/src/generated/DeleteSessionArgs.ts +4 -0
- package/src/generated/DeleteSessionNickname.ts +7 -0
- package/src/generated/DeleteSessionNicknameArgs.ts +4 -0
- package/src/generated/DeleteSessionNicknameResult.ts +6 -0
- package/src/generated/DeleteSessionNicknames.ts +7 -0
- package/src/generated/DeleteSessionNicknamesArgs.ts +4 -0
- package/src/generated/DeleteSessionNicknamesResult.ts +6 -0
- package/src/generated/DeleteSessionResult.ts +6 -0
- package/src/generated/DeleteSessions.ts +7 -0
- package/src/generated/DeleteSessionsArgs.ts +4 -0
- package/src/generated/DeleteSessionsResult.ts +6 -0
- package/src/generated/DeliveredRecipient.ts +4 -0
- package/src/generated/EntitySearch.ts +21 -0
- package/src/generated/EntitySearchResult.ts +10 -0
- package/src/generated/EntitySnapshotDifference.ts +6 -0
- package/src/generated/EntitySnapshotDifferenceData.ts +7 -0
- package/src/generated/EntityTreeExport.ts +27 -0
- package/src/generated/EventContainer.ts +7 -0
- package/src/generated/EventOptions.ts +11 -0
- package/src/generated/EventsForTransaction.ts +6 -0
- package/src/generated/ExportEntityTree.ts +24 -0
- package/src/generated/ExportedEntity.ts +15 -0
- package/src/generated/FailedRecipient.ts +4 -0
- package/src/generated/FullChildEntities.ts +6 -0
- package/src/generated/GetAllClients.ts +3 -0
- package/src/generated/GetAllMessageReads.ts +3 -0
- package/src/generated/GetAllMessages.ts +3 -0
- package/src/generated/GetAllRoomMembers.ts +3 -0
- package/src/generated/GetAllRooms.ts +3 -0
- package/src/generated/GetAllServers.ts +3 -0
- package/src/generated/GetAllSessionNicknames.ts +3 -0
- package/src/generated/GetAllSessions.ts +3 -0
- package/src/generated/GetClientById.ts +4 -0
- package/src/generated/GetClientsByIds.ts +4 -0
- package/src/generated/GetClientsByQuery.ts +4 -0
- package/src/generated/GetConnectedServer.ts +3 -0
- package/src/generated/GetItemsByTypeAndIds.ts +14 -0
- package/src/generated/GetMessageById.ts +4 -0
- package/src/generated/GetMessageReadById.ts +4 -0
- package/src/generated/GetMessageReadsByIds.ts +4 -0
- package/src/generated/GetMessageReadsByQuery.ts +4 -0
- package/src/generated/GetMessagesByIds.ts +4 -0
- package/src/generated/GetMessagesByQuery.ts +4 -0
- package/src/generated/GetPeerServers.ts +3 -0
- package/src/generated/GetPersistHealth.ts +8 -0
- package/src/generated/GetRoomById.ts +4 -0
- package/src/generated/GetRoomMemberById.ts +4 -0
- package/src/generated/GetRoomMembersByIds.ts +4 -0
- package/src/generated/GetRoomMembersByQuery.ts +4 -0
- package/src/generated/GetRoomsByIds.ts +4 -0
- package/src/generated/GetRoomsByQuery.ts +4 -0
- package/src/generated/GetServerById.ts +4 -0
- package/src/generated/GetServersByIds.ts +4 -0
- package/src/generated/GetServersByQuery.ts +4 -0
- package/src/generated/GetSessionById.ts +4 -0
- package/src/generated/GetSessionNicknameById.ts +4 -0
- package/src/generated/GetSessionNicknamesByIds.ts +4 -0
- package/src/generated/GetSessionNicknamesByQuery.ts +4 -0
- package/src/generated/GetSessionsByIds.ts +4 -0
- package/src/generated/GetSessionsByQuery.ts +4 -0
- package/src/generated/HostInfo.ts +21 -0
- package/src/generated/ImportItems.ts +19 -0
- package/src/generated/ImportItemsArgs.ts +13 -0
- package/src/generated/ItemStub.ts +7 -0
- package/src/generated/JoinRoom.ts +19 -0
- package/src/generated/JoinRoomArgs.ts +19 -0
- package/src/generated/JoinRoomResult.ts +14 -0
- package/src/generated/LeaveRoom.ts +14 -0
- package/src/generated/LeaveRoomArgs.ts +14 -0
- package/src/generated/LeaveRoomResult.ts +9 -0
- package/src/generated/LivePushStatus.ts +3 -0
- package/src/generated/LogLevel.ts +6 -0
- package/src/generated/Loggers.ts +6 -0
- package/src/generated/MEvent.ts +5 -0
- package/src/generated/MEventType.ts +3 -0
- package/src/generated/Message.ts +60 -0
- package/src/generated/MessageCount.ts +3 -0
- package/src/generated/MessageId.ts +3 -0
- package/src/generated/MessageRead.ts +10 -0
- package/src/generated/MessageReadCount.ts +3 -0
- package/src/generated/MessageReadId.ts +3 -0
- package/src/generated/MessageView.ts +12 -0
- package/src/generated/MykoMessage.ts +19 -0
- package/src/generated/NotifyChannel.ts +10 -0
- package/src/generated/NotifyChannelArgs.ts +4 -0
- package/src/generated/PartialClient.ts +14 -0
- package/src/generated/PartialMessage.ts +60 -0
- package/src/generated/PartialMessageRead.ts +10 -0
- package/src/generated/PartialRoom.ts +23 -0
- package/src/generated/PartialRoomMember.ts +13 -0
- package/src/generated/PartialServer.ts +4 -0
- package/src/generated/PartialSession.ts +130 -0
- package/src/generated/PartialSessionNickname.ts +9 -0
- package/src/generated/PeerAlive.ts +7 -0
- package/src/generated/PersistHealthStatus.ts +34 -0
- package/src/generated/PingData.ts +14 -0
- package/src/generated/QueryError.ts +3 -0
- package/src/generated/QueryWindow.ts +3 -0
- package/src/generated/QueryWindowUpdate.ts +4 -0
- package/src/generated/ReadMessages.ts +48 -0
- package/src/generated/ReadMessagesArgs.ts +48 -0
- package/src/generated/ReadMessagesResult.ts +9 -0
- package/src/generated/ReportError.ts +3 -0
- package/src/generated/ReportResponse.ts +4 -0
- package/src/generated/Room.ts +23 -0
- package/src/generated/RoomCount.ts +3 -0
- package/src/generated/RoomId.ts +3 -0
- package/src/generated/RoomKind.ts +9 -0
- package/src/generated/RoomMember.ts +13 -0
- package/src/generated/RoomMemberCount.ts +3 -0
- package/src/generated/RoomMemberId.ts +3 -0
- package/src/generated/SearchServer.ts +8 -0
- package/src/generated/SearchServerResult.ts +4 -0
- package/src/generated/SendMessage.ts +12 -0
- package/src/generated/SendMessageArgs.ts +12 -0
- package/src/generated/SendMessageResult.ts +33 -0
- package/src/generated/Server.ts +4 -0
- package/src/generated/ServerCount.ts +3 -0
- package/src/generated/ServerId.ts +3 -0
- package/src/generated/ServerLogLevel.ts +6 -0
- package/src/generated/ServerStats.ts +27 -0
- package/src/generated/ServerStatsOutput.ts +20 -0
- package/src/generated/Session.ts +130 -0
- package/src/generated/SessionCount.ts +3 -0
- package/src/generated/SessionId.ts +3 -0
- package/src/generated/SessionNickname.ts +9 -0
- package/src/generated/SessionNicknameCount.ts +3 -0
- package/src/generated/SessionNicknameId.ts +3 -0
- package/src/generated/SetClientWindbackTime.ts +11 -0
- package/src/generated/SetClientWindbackTimeArgs.ts +7 -0
- package/src/generated/SetLogLevel.ts +7 -0
- package/src/generated/SetLogLevelArgs.ts +4 -0
- package/src/generated/SetRoomDescription.ts +7 -0
- package/src/generated/SetRoomDescriptionArgs.ts +4 -0
- package/src/generated/SetRoomName.ts +7 -0
- package/src/generated/SetRoomNameArgs.ts +4 -0
- package/src/generated/SetSessionActivity.ts +7 -0
- package/src/generated/SetSessionActivityArgs.ts +4 -0
- package/src/generated/SetSessionCurrentTask.ts +7 -0
- package/src/generated/SetSessionCurrentTaskArgs.ts +4 -0
- package/src/generated/SetSessionGitBranch.ts +7 -0
- package/src/generated/SetSessionGitBranchArgs.ts +4 -0
- package/src/generated/SetSessionLastActivityAt.ts +7 -0
- package/src/generated/SetSessionLastActivityAtArgs.ts +4 -0
- package/src/generated/SetSessionLastTool.ts +7 -0
- package/src/generated/SetSessionLastToolArgs.ts +4 -0
- package/src/generated/SetSessionLastToolAt.ts +7 -0
- package/src/generated/SetSessionLastToolAtArgs.ts +4 -0
- package/src/generated/SetSessionSessionName.ts +7 -0
- package/src/generated/SetSessionSessionNameArgs.ts +4 -0
- package/src/generated/StartProfile.ts +10 -0
- package/src/generated/StartProfileArgs.ts +7 -0
- package/src/generated/StopProfile.ts +6 -0
- package/src/generated/StopProfileArgs.ts +3 -0
- package/src/generated/StopProfileOutput.ts +14 -0
- package/src/generated/ViewError.ts +3 -0
- package/src/generated/ViewWindowUpdate.ts +4 -0
- package/src/generated/WakeStatus.ts +3 -0
- package/src/generated/WindbackStatus.ts +3 -0
- package/src/generated/WindbackStatusOutput.ts +11 -0
- package/src/generated/WrappedCommand.ts +4 -0
- package/src/generated/WrappedItem.ts +7 -0
- package/src/generated/WrappedQuery.ts +5 -0
- package/src/generated/WrappedReport.ts +4 -0
- package/src/generated/WrappedView.ts +5 -0
- package/src/generated/index.ts +1060 -0
- package/src/generated/serde_json/JsonValue.ts +3 -0
- package/src/identity.ts +61 -0
- 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,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,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,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,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,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,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, };
|