@agent-marshal/marshal-prime-agent 0.48.4

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 (245) hide show
  1. package/README.md +73 -0
  2. package/package.json +48 -0
  3. package/src/daemon.ts +358 -0
  4. package/src/entities.ts +197 -0
  5. package/src/generated/AckMessages.ts +16 -0
  6. package/src/generated/AckMessagesArgs.ts +16 -0
  7. package/src/generated/AckMessagesResult.ts +12 -0
  8. package/src/generated/AutoSource.ts +9 -0
  9. package/src/generated/BroadcastMessage.ts +10 -0
  10. package/src/generated/BroadcastMessageArgs.ts +10 -0
  11. package/src/generated/BroadcastMessageResult.ts +25 -0
  12. package/src/generated/CancelSubscription.ts +6 -0
  13. package/src/generated/ChildEntities.ts +6 -0
  14. package/src/generated/ChildEntitiesAllTime.ts +6 -0
  15. package/src/generated/ClearClientWindbackTime.ts +7 -0
  16. package/src/generated/ClearClientWindbackTimeArgs.ts +3 -0
  17. package/src/generated/Client.ts +14 -0
  18. package/src/generated/ClientCount.ts +3 -0
  19. package/src/generated/ClientId.ts +3 -0
  20. package/src/generated/ClientStatus.ts +7 -0
  21. package/src/generated/ClientStatusOutput.ts +3 -0
  22. package/src/generated/CommandError.ts +3 -0
  23. package/src/generated/CommandResponse.ts +4 -0
  24. package/src/generated/CountAllClients.ts +3 -0
  25. package/src/generated/CountAllMessageReads.ts +3 -0
  26. package/src/generated/CountAllMessages.ts +3 -0
  27. package/src/generated/CountAllRoomMembers.ts +3 -0
  28. package/src/generated/CountAllRooms.ts +3 -0
  29. package/src/generated/CountAllServers.ts +3 -0
  30. package/src/generated/CountAllSessionNicknames.ts +3 -0
  31. package/src/generated/CountAllSessions.ts +3 -0
  32. package/src/generated/CountClients.ts +4 -0
  33. package/src/generated/CountMessageReads.ts +4 -0
  34. package/src/generated/CountMessages.ts +4 -0
  35. package/src/generated/CountRoomMembers.ts +4 -0
  36. package/src/generated/CountRooms.ts +4 -0
  37. package/src/generated/CountServers.ts +4 -0
  38. package/src/generated/CountSessionNicknames.ts +4 -0
  39. package/src/generated/CountSessions.ts +4 -0
  40. package/src/generated/DeleteClient.ts +7 -0
  41. package/src/generated/DeleteClientArgs.ts +4 -0
  42. package/src/generated/DeleteClientResult.ts +6 -0
  43. package/src/generated/DeleteClients.ts +7 -0
  44. package/src/generated/DeleteClientsArgs.ts +4 -0
  45. package/src/generated/DeleteClientsResult.ts +6 -0
  46. package/src/generated/DeleteMessage.ts +7 -0
  47. package/src/generated/DeleteMessageArgs.ts +4 -0
  48. package/src/generated/DeleteMessageRead.ts +7 -0
  49. package/src/generated/DeleteMessageReadArgs.ts +4 -0
  50. package/src/generated/DeleteMessageReadResult.ts +6 -0
  51. package/src/generated/DeleteMessageReads.ts +7 -0
  52. package/src/generated/DeleteMessageReadsArgs.ts +4 -0
  53. package/src/generated/DeleteMessageReadsResult.ts +6 -0
  54. package/src/generated/DeleteMessageResult.ts +6 -0
  55. package/src/generated/DeleteMessages.ts +7 -0
  56. package/src/generated/DeleteMessagesArgs.ts +4 -0
  57. package/src/generated/DeleteMessagesResult.ts +6 -0
  58. package/src/generated/DeleteRoom.ts +7 -0
  59. package/src/generated/DeleteRoomArgs.ts +4 -0
  60. package/src/generated/DeleteRoomMember.ts +7 -0
  61. package/src/generated/DeleteRoomMemberArgs.ts +4 -0
  62. package/src/generated/DeleteRoomMemberResult.ts +6 -0
  63. package/src/generated/DeleteRoomMembers.ts +7 -0
  64. package/src/generated/DeleteRoomMembersArgs.ts +4 -0
  65. package/src/generated/DeleteRoomMembersResult.ts +6 -0
  66. package/src/generated/DeleteRoomResult.ts +6 -0
  67. package/src/generated/DeleteRooms.ts +7 -0
  68. package/src/generated/DeleteRoomsArgs.ts +4 -0
  69. package/src/generated/DeleteRoomsResult.ts +6 -0
  70. package/src/generated/DeleteServer.ts +7 -0
  71. package/src/generated/DeleteServerArgs.ts +4 -0
  72. package/src/generated/DeleteServerResult.ts +6 -0
  73. package/src/generated/DeleteServers.ts +7 -0
  74. package/src/generated/DeleteServersArgs.ts +4 -0
  75. package/src/generated/DeleteServersResult.ts +6 -0
  76. package/src/generated/DeleteSession.ts +7 -0
  77. package/src/generated/DeleteSessionArgs.ts +4 -0
  78. package/src/generated/DeleteSessionNickname.ts +7 -0
  79. package/src/generated/DeleteSessionNicknameArgs.ts +4 -0
  80. package/src/generated/DeleteSessionNicknameResult.ts +6 -0
  81. package/src/generated/DeleteSessionNicknames.ts +7 -0
  82. package/src/generated/DeleteSessionNicknamesArgs.ts +4 -0
  83. package/src/generated/DeleteSessionNicknamesResult.ts +6 -0
  84. package/src/generated/DeleteSessionResult.ts +6 -0
  85. package/src/generated/DeleteSessions.ts +7 -0
  86. package/src/generated/DeleteSessionsArgs.ts +4 -0
  87. package/src/generated/DeleteSessionsResult.ts +6 -0
  88. package/src/generated/DeliveredRecipient.ts +4 -0
  89. package/src/generated/EntitySearch.ts +21 -0
  90. package/src/generated/EntitySearchResult.ts +10 -0
  91. package/src/generated/EntitySnapshotDifference.ts +6 -0
  92. package/src/generated/EntitySnapshotDifferenceData.ts +7 -0
  93. package/src/generated/EntityTreeExport.ts +27 -0
  94. package/src/generated/EventContainer.ts +7 -0
  95. package/src/generated/EventOptions.ts +11 -0
  96. package/src/generated/EventsForTransaction.ts +6 -0
  97. package/src/generated/ExportEntityTree.ts +24 -0
  98. package/src/generated/ExportedEntity.ts +15 -0
  99. package/src/generated/FailedRecipient.ts +4 -0
  100. package/src/generated/FullChildEntities.ts +6 -0
  101. package/src/generated/GetAllClients.ts +3 -0
  102. package/src/generated/GetAllMessageReads.ts +3 -0
  103. package/src/generated/GetAllMessages.ts +3 -0
  104. package/src/generated/GetAllRoomMembers.ts +3 -0
  105. package/src/generated/GetAllRooms.ts +3 -0
  106. package/src/generated/GetAllServers.ts +3 -0
  107. package/src/generated/GetAllSessionNicknames.ts +3 -0
  108. package/src/generated/GetAllSessions.ts +3 -0
  109. package/src/generated/GetClientById.ts +4 -0
  110. package/src/generated/GetClientsByIds.ts +4 -0
  111. package/src/generated/GetClientsByQuery.ts +4 -0
  112. package/src/generated/GetConnectedServer.ts +3 -0
  113. package/src/generated/GetItemsByTypeAndIds.ts +14 -0
  114. package/src/generated/GetMessageById.ts +4 -0
  115. package/src/generated/GetMessageReadById.ts +4 -0
  116. package/src/generated/GetMessageReadsByIds.ts +4 -0
  117. package/src/generated/GetMessageReadsByQuery.ts +4 -0
  118. package/src/generated/GetMessagesByIds.ts +4 -0
  119. package/src/generated/GetMessagesByQuery.ts +4 -0
  120. package/src/generated/GetPeerServers.ts +3 -0
  121. package/src/generated/GetPersistHealth.ts +8 -0
  122. package/src/generated/GetRoomById.ts +4 -0
  123. package/src/generated/GetRoomMemberById.ts +4 -0
  124. package/src/generated/GetRoomMembersByIds.ts +4 -0
  125. package/src/generated/GetRoomMembersByQuery.ts +4 -0
  126. package/src/generated/GetRoomsByIds.ts +4 -0
  127. package/src/generated/GetRoomsByQuery.ts +4 -0
  128. package/src/generated/GetServerById.ts +4 -0
  129. package/src/generated/GetServersByIds.ts +4 -0
  130. package/src/generated/GetServersByQuery.ts +4 -0
  131. package/src/generated/GetSessionById.ts +4 -0
  132. package/src/generated/GetSessionNicknameById.ts +4 -0
  133. package/src/generated/GetSessionNicknamesByIds.ts +4 -0
  134. package/src/generated/GetSessionNicknamesByQuery.ts +4 -0
  135. package/src/generated/GetSessionsByIds.ts +4 -0
  136. package/src/generated/GetSessionsByQuery.ts +4 -0
  137. package/src/generated/HostInfo.ts +21 -0
  138. package/src/generated/ImportItems.ts +19 -0
  139. package/src/generated/ImportItemsArgs.ts +13 -0
  140. package/src/generated/ItemStub.ts +7 -0
  141. package/src/generated/JoinRoom.ts +19 -0
  142. package/src/generated/JoinRoomArgs.ts +19 -0
  143. package/src/generated/JoinRoomResult.ts +14 -0
  144. package/src/generated/LeaveRoom.ts +14 -0
  145. package/src/generated/LeaveRoomArgs.ts +14 -0
  146. package/src/generated/LeaveRoomResult.ts +9 -0
  147. package/src/generated/LivePushStatus.ts +3 -0
  148. package/src/generated/LogLevel.ts +6 -0
  149. package/src/generated/Loggers.ts +6 -0
  150. package/src/generated/MEvent.ts +5 -0
  151. package/src/generated/MEventType.ts +3 -0
  152. package/src/generated/Message.ts +60 -0
  153. package/src/generated/MessageCount.ts +3 -0
  154. package/src/generated/MessageId.ts +3 -0
  155. package/src/generated/MessageRead.ts +10 -0
  156. package/src/generated/MessageReadCount.ts +3 -0
  157. package/src/generated/MessageReadId.ts +3 -0
  158. package/src/generated/MessageView.ts +12 -0
  159. package/src/generated/MykoMessage.ts +19 -0
  160. package/src/generated/NotifyChannel.ts +10 -0
  161. package/src/generated/NotifyChannelArgs.ts +4 -0
  162. package/src/generated/PartialClient.ts +14 -0
  163. package/src/generated/PartialMessage.ts +60 -0
  164. package/src/generated/PartialMessageRead.ts +10 -0
  165. package/src/generated/PartialRoom.ts +23 -0
  166. package/src/generated/PartialRoomMember.ts +13 -0
  167. package/src/generated/PartialServer.ts +4 -0
  168. package/src/generated/PartialSession.ts +130 -0
  169. package/src/generated/PartialSessionNickname.ts +9 -0
  170. package/src/generated/PeerAlive.ts +7 -0
  171. package/src/generated/PersistHealthStatus.ts +34 -0
  172. package/src/generated/PingData.ts +14 -0
  173. package/src/generated/QueryError.ts +3 -0
  174. package/src/generated/QueryWindow.ts +3 -0
  175. package/src/generated/QueryWindowUpdate.ts +4 -0
  176. package/src/generated/ReadMessages.ts +48 -0
  177. package/src/generated/ReadMessagesArgs.ts +48 -0
  178. package/src/generated/ReadMessagesResult.ts +9 -0
  179. package/src/generated/ReportError.ts +3 -0
  180. package/src/generated/ReportResponse.ts +4 -0
  181. package/src/generated/Room.ts +23 -0
  182. package/src/generated/RoomCount.ts +3 -0
  183. package/src/generated/RoomId.ts +3 -0
  184. package/src/generated/RoomKind.ts +9 -0
  185. package/src/generated/RoomMember.ts +13 -0
  186. package/src/generated/RoomMemberCount.ts +3 -0
  187. package/src/generated/RoomMemberId.ts +3 -0
  188. package/src/generated/SearchServer.ts +8 -0
  189. package/src/generated/SearchServerResult.ts +4 -0
  190. package/src/generated/SendMessage.ts +12 -0
  191. package/src/generated/SendMessageArgs.ts +12 -0
  192. package/src/generated/SendMessageResult.ts +33 -0
  193. package/src/generated/Server.ts +4 -0
  194. package/src/generated/ServerCount.ts +3 -0
  195. package/src/generated/ServerId.ts +3 -0
  196. package/src/generated/ServerLogLevel.ts +6 -0
  197. package/src/generated/ServerStats.ts +27 -0
  198. package/src/generated/ServerStatsOutput.ts +20 -0
  199. package/src/generated/Session.ts +130 -0
  200. package/src/generated/SessionCount.ts +3 -0
  201. package/src/generated/SessionId.ts +3 -0
  202. package/src/generated/SessionNickname.ts +9 -0
  203. package/src/generated/SessionNicknameCount.ts +3 -0
  204. package/src/generated/SessionNicknameId.ts +3 -0
  205. package/src/generated/SetClientWindbackTime.ts +11 -0
  206. package/src/generated/SetClientWindbackTimeArgs.ts +7 -0
  207. package/src/generated/SetLogLevel.ts +7 -0
  208. package/src/generated/SetLogLevelArgs.ts +4 -0
  209. package/src/generated/SetRoomDescription.ts +7 -0
  210. package/src/generated/SetRoomDescriptionArgs.ts +4 -0
  211. package/src/generated/SetRoomName.ts +7 -0
  212. package/src/generated/SetRoomNameArgs.ts +4 -0
  213. package/src/generated/SetSessionActivity.ts +7 -0
  214. package/src/generated/SetSessionActivityArgs.ts +4 -0
  215. package/src/generated/SetSessionCurrentTask.ts +7 -0
  216. package/src/generated/SetSessionCurrentTaskArgs.ts +4 -0
  217. package/src/generated/SetSessionGitBranch.ts +7 -0
  218. package/src/generated/SetSessionGitBranchArgs.ts +4 -0
  219. package/src/generated/SetSessionLastActivityAt.ts +7 -0
  220. package/src/generated/SetSessionLastActivityAtArgs.ts +4 -0
  221. package/src/generated/SetSessionLastTool.ts +7 -0
  222. package/src/generated/SetSessionLastToolArgs.ts +4 -0
  223. package/src/generated/SetSessionLastToolAt.ts +7 -0
  224. package/src/generated/SetSessionLastToolAtArgs.ts +4 -0
  225. package/src/generated/SetSessionSessionName.ts +7 -0
  226. package/src/generated/SetSessionSessionNameArgs.ts +4 -0
  227. package/src/generated/StartProfile.ts +10 -0
  228. package/src/generated/StartProfileArgs.ts +7 -0
  229. package/src/generated/StopProfile.ts +6 -0
  230. package/src/generated/StopProfileArgs.ts +3 -0
  231. package/src/generated/StopProfileOutput.ts +14 -0
  232. package/src/generated/ViewError.ts +3 -0
  233. package/src/generated/ViewWindowUpdate.ts +4 -0
  234. package/src/generated/WakeStatus.ts +3 -0
  235. package/src/generated/WindbackStatus.ts +3 -0
  236. package/src/generated/WindbackStatusOutput.ts +11 -0
  237. package/src/generated/WrappedCommand.ts +4 -0
  238. package/src/generated/WrappedItem.ts +7 -0
  239. package/src/generated/WrappedQuery.ts +5 -0
  240. package/src/generated/WrappedReport.ts +4 -0
  241. package/src/generated/WrappedView.ts +5 -0
  242. package/src/generated/index.ts +1060 -0
  243. package/src/generated/serde_json/JsonValue.ts +3 -0
  244. package/src/identity.ts +61 -0
  245. package/src/index.ts +589 -0
@@ -0,0 +1,1060 @@
1
+ // Auto-generated by type_gen - do not edit manually
2
+
3
+ // Core type aliases
4
+ /** Entity identifier type. In Rust this is Arc<str>, serialized as string. */
5
+ export type ID = string;
6
+
7
+ // Re-export ts-rs generated types
8
+ export type { AckMessagesArgs } from "./AckMessagesArgs";
9
+ export type { AckMessagesResult } from "./AckMessagesResult";
10
+ export type { AutoSource } from "./AutoSource";
11
+ export type { BroadcastMessageArgs } from "./BroadcastMessageArgs";
12
+ export type { BroadcastMessageResult } from "./BroadcastMessageResult";
13
+ export type { CancelSubscription } from "./CancelSubscription";
14
+ export type { ChildEntities } from "./ChildEntities";
15
+ export type { ChildEntitiesAllTime } from "./ChildEntitiesAllTime";
16
+ export type { ClearClientWindbackTime } from "./ClearClientWindbackTime";
17
+ export type { ClearClientWindbackTimeArgs } from "./ClearClientWindbackTimeArgs";
18
+ export type { Client } from "./Client";
19
+ export type { ClientCount } from "./ClientCount";
20
+ export type { ClientId } from "./ClientId";
21
+ export type { ClientStatus } from "./ClientStatus";
22
+ export type { ClientStatusOutput } from "./ClientStatusOutput";
23
+ export type { CommandError } from "./CommandError";
24
+ export type { CommandResponse } from "./CommandResponse";
25
+ export type { CountAllClients } from "./CountAllClients";
26
+ export type { CountAllServers } from "./CountAllServers";
27
+ export type { CountClients } from "./CountClients";
28
+ export type { CountServers } from "./CountServers";
29
+ export type { DeleteClient } from "./DeleteClient";
30
+ export type { DeleteClientArgs } from "./DeleteClientArgs";
31
+ export type { DeleteClientResult } from "./DeleteClientResult";
32
+ export type { DeleteClients } from "./DeleteClients";
33
+ export type { DeleteClientsArgs } from "./DeleteClientsArgs";
34
+ export type { DeleteClientsResult } from "./DeleteClientsResult";
35
+ export type { DeleteMessageArgs } from "./DeleteMessageArgs";
36
+ export type { DeleteMessageReadArgs } from "./DeleteMessageReadArgs";
37
+ export type { DeleteMessageReadResult } from "./DeleteMessageReadResult";
38
+ export type { DeleteMessageReadsArgs } from "./DeleteMessageReadsArgs";
39
+ export type { DeleteMessageReadsResult } from "./DeleteMessageReadsResult";
40
+ export type { DeleteMessageResult } from "./DeleteMessageResult";
41
+ export type { DeleteMessagesArgs } from "./DeleteMessagesArgs";
42
+ export type { DeleteMessagesResult } from "./DeleteMessagesResult";
43
+ export type { DeleteRoomArgs } from "./DeleteRoomArgs";
44
+ export type { DeleteRoomMemberArgs } from "./DeleteRoomMemberArgs";
45
+ export type { DeleteRoomMemberResult } from "./DeleteRoomMemberResult";
46
+ export type { DeleteRoomMembersArgs } from "./DeleteRoomMembersArgs";
47
+ export type { DeleteRoomMembersResult } from "./DeleteRoomMembersResult";
48
+ export type { DeleteRoomResult } from "./DeleteRoomResult";
49
+ export type { DeleteRoomsArgs } from "./DeleteRoomsArgs";
50
+ export type { DeleteRoomsResult } from "./DeleteRoomsResult";
51
+ export type { DeleteServer } from "./DeleteServer";
52
+ export type { DeleteServerArgs } from "./DeleteServerArgs";
53
+ export type { DeleteServerResult } from "./DeleteServerResult";
54
+ export type { DeleteServers } from "./DeleteServers";
55
+ export type { DeleteServersArgs } from "./DeleteServersArgs";
56
+ export type { DeleteServersResult } from "./DeleteServersResult";
57
+ export type { DeleteSessionArgs } from "./DeleteSessionArgs";
58
+ export type { DeleteSessionNicknameArgs } from "./DeleteSessionNicknameArgs";
59
+ export type { DeleteSessionNicknameResult } from "./DeleteSessionNicknameResult";
60
+ export type { DeleteSessionNicknamesArgs } from "./DeleteSessionNicknamesArgs";
61
+ export type { DeleteSessionNicknamesResult } from "./DeleteSessionNicknamesResult";
62
+ export type { DeleteSessionResult } from "./DeleteSessionResult";
63
+ export type { DeleteSessionsArgs } from "./DeleteSessionsArgs";
64
+ export type { DeleteSessionsResult } from "./DeleteSessionsResult";
65
+ export type { DeliveredRecipient } from "./DeliveredRecipient";
66
+ export type { EntitySearch } from "./EntitySearch";
67
+ export type { EntitySearchResult } from "./EntitySearchResult";
68
+ export type { EntitySnapshotDifference } from "./EntitySnapshotDifference";
69
+ export type { EntitySnapshotDifferenceData } from "./EntitySnapshotDifferenceData";
70
+ export type { EntityTreeExport } from "./EntityTreeExport";
71
+ export type { EventContainer } from "./EventContainer";
72
+ export type { EventOptions } from "./EventOptions";
73
+ export type { EventsForTransaction } from "./EventsForTransaction";
74
+ export type { ExportedEntity } from "./ExportedEntity";
75
+ export type { ExportEntityTree } from "./ExportEntityTree";
76
+ export type { FailedRecipient } from "./FailedRecipient";
77
+ export type { FullChildEntities } from "./FullChildEntities";
78
+ export type { GetAllClients } from "./GetAllClients";
79
+ export type { GetAllServers } from "./GetAllServers";
80
+ export type { GetClientById } from "./GetClientById";
81
+ export type { GetClientsByIds } from "./GetClientsByIds";
82
+ export type { GetClientsByQuery } from "./GetClientsByQuery";
83
+ export type { GetConnectedServer } from "./GetConnectedServer";
84
+ export type { GetItemsByTypeAndIds } from "./GetItemsByTypeAndIds";
85
+ export type { GetPeerServers } from "./GetPeerServers";
86
+ export type { GetPersistHealth } from "./GetPersistHealth";
87
+ export type { GetServerById } from "./GetServerById";
88
+ export type { GetServersByIds } from "./GetServersByIds";
89
+ export type { GetServersByQuery } from "./GetServersByQuery";
90
+ export type { HostInfo } from "./HostInfo";
91
+ export type { ImportItems } from "./ImportItems";
92
+ export type { ImportItemsArgs } from "./ImportItemsArgs";
93
+ export type { ItemStub } from "./ItemStub";
94
+ export type { JoinRoomArgs } from "./JoinRoomArgs";
95
+ export type { JoinRoomResult } from "./JoinRoomResult";
96
+ export type { LeaveRoomArgs } from "./LeaveRoomArgs";
97
+ export type { LeaveRoomResult } from "./LeaveRoomResult";
98
+ export type { LivePushStatus } from "./LivePushStatus";
99
+ export type { Loggers } from "./Loggers";
100
+ export type { LogLevel } from "./LogLevel";
101
+ export type { Message } from "./Message";
102
+ export type { MessageCount } from "./MessageCount";
103
+ export type { MessageId } from "./MessageId";
104
+ export type { MessageRead } from "./MessageRead";
105
+ export type { MessageReadCount } from "./MessageReadCount";
106
+ export type { MessageReadId } from "./MessageReadId";
107
+ export type { MessageView } from "./MessageView";
108
+ export type { MEvent } from "./MEvent";
109
+ export type { MEventType } from "./MEventType";
110
+ export type { MykoMessage } from "./MykoMessage";
111
+ export type { NotifyChannelArgs } from "./NotifyChannelArgs";
112
+ export type { PartialClient } from "./PartialClient";
113
+ export type { PartialMessage } from "./PartialMessage";
114
+ export type { PartialMessageRead } from "./PartialMessageRead";
115
+ export type { PartialRoom } from "./PartialRoom";
116
+ export type { PartialRoomMember } from "./PartialRoomMember";
117
+ export type { PartialServer } from "./PartialServer";
118
+ export type { PartialSession } from "./PartialSession";
119
+ export type { PartialSessionNickname } from "./PartialSessionNickname";
120
+ export type { PeerAlive } from "./PeerAlive";
121
+ export type { PersistHealthStatus } from "./PersistHealthStatus";
122
+ export type { PingData } from "./PingData";
123
+ export type { QueryError } from "./QueryError";
124
+ export type { QueryWindow } from "./QueryWindow";
125
+ export type { QueryWindowUpdate } from "./QueryWindowUpdate";
126
+ export type { ReadMessagesArgs } from "./ReadMessagesArgs";
127
+ export type { ReadMessagesResult } from "./ReadMessagesResult";
128
+ export type { ReportError } from "./ReportError";
129
+ export type { ReportResponse } from "./ReportResponse";
130
+ export type { Room } from "./Room";
131
+ export type { RoomCount } from "./RoomCount";
132
+ export type { RoomId } from "./RoomId";
133
+ export type { RoomKind } from "./RoomKind";
134
+ export type { RoomMember } from "./RoomMember";
135
+ export type { RoomMemberCount } from "./RoomMemberCount";
136
+ export type { RoomMemberId } from "./RoomMemberId";
137
+ export type { SearchServer } from "./SearchServer";
138
+ export type { SearchServerResult } from "./SearchServerResult";
139
+ export type { SendMessageArgs } from "./SendMessageArgs";
140
+ export type { SendMessageResult } from "./SendMessageResult";
141
+ export * from "./serde_json/JsonValue";
142
+ export type { Server } from "./Server";
143
+ export type { ServerCount } from "./ServerCount";
144
+ export type { ServerId } from "./ServerId";
145
+ export type { ServerLogLevel } from "./ServerLogLevel";
146
+ export type { ServerStats } from "./ServerStats";
147
+ export type { ServerStatsOutput } from "./ServerStatsOutput";
148
+ export type { Session } from "./Session";
149
+ export type { SessionCount } from "./SessionCount";
150
+ export type { SessionId } from "./SessionId";
151
+ export type { SessionNickname } from "./SessionNickname";
152
+ export type { SessionNicknameCount } from "./SessionNicknameCount";
153
+ export type { SessionNicknameId } from "./SessionNicknameId";
154
+ export type { SetClientWindbackTime } from "./SetClientWindbackTime";
155
+ export type { SetClientWindbackTimeArgs } from "./SetClientWindbackTimeArgs";
156
+ export type { SetLogLevel } from "./SetLogLevel";
157
+ export type { SetLogLevelArgs } from "./SetLogLevelArgs";
158
+ export type { SetRoomDescriptionArgs } from "./SetRoomDescriptionArgs";
159
+ export type { SetRoomNameArgs } from "./SetRoomNameArgs";
160
+ export type { SetSessionActivityArgs } from "./SetSessionActivityArgs";
161
+ export type { SetSessionCurrentTaskArgs } from "./SetSessionCurrentTaskArgs";
162
+ export type { SetSessionGitBranchArgs } from "./SetSessionGitBranchArgs";
163
+ export type { SetSessionLastActivityAtArgs } from "./SetSessionLastActivityAtArgs";
164
+ export type { SetSessionLastToolArgs } from "./SetSessionLastToolArgs";
165
+ export type { SetSessionLastToolAtArgs } from "./SetSessionLastToolAtArgs";
166
+ export type { SetSessionSessionNameArgs } from "./SetSessionSessionNameArgs";
167
+ export type { StartProfile } from "./StartProfile";
168
+ export type { StartProfileArgs } from "./StartProfileArgs";
169
+ export type { StopProfile } from "./StopProfile";
170
+ export type { StopProfileArgs } from "./StopProfileArgs";
171
+ export type { StopProfileOutput } from "./StopProfileOutput";
172
+ export type { ViewError } from "./ViewError";
173
+ export type { ViewWindowUpdate } from "./ViewWindowUpdate";
174
+ export type { WakeStatus } from "./WakeStatus";
175
+ export type { WindbackStatus } from "./WindbackStatus";
176
+ export type { WindbackStatusOutput } from "./WindbackStatusOutput";
177
+ export type { WrappedCommand } from "./WrappedCommand";
178
+ export type { WrappedItem } from "./WrappedItem";
179
+ export type { WrappedQuery } from "./WrappedQuery";
180
+ export type { WrappedReport } from "./WrappedReport";
181
+ export type { WrappedView } from "./WrappedView";
182
+
183
+ // Internal imports
184
+ import type { AckMessages as _AckMessages } from "./AckMessages";
185
+ import type { AckMessagesResult } from "./AckMessagesResult";
186
+ import type { BroadcastMessage as _BroadcastMessage } from "./BroadcastMessage";
187
+ import type { BroadcastMessageResult } from "./BroadcastMessageResult";
188
+ import type { CountAllMessageReads as _CountAllMessageReads } from "./CountAllMessageReads";
189
+ import type { CountAllMessages as _CountAllMessages } from "./CountAllMessages";
190
+ import type { CountAllRoomMembers as _CountAllRoomMembers } from "./CountAllRoomMembers";
191
+ import type { CountAllRooms as _CountAllRooms } from "./CountAllRooms";
192
+ import type { CountAllSessionNicknames as _CountAllSessionNicknames } from "./CountAllSessionNicknames";
193
+ import type { CountAllSessions as _CountAllSessions } from "./CountAllSessions";
194
+ import type { CountMessageReads as _CountMessageReads } from "./CountMessageReads";
195
+ import type { CountMessages as _CountMessages } from "./CountMessages";
196
+ import type { CountRoomMembers as _CountRoomMembers } from "./CountRoomMembers";
197
+ import type { CountRooms as _CountRooms } from "./CountRooms";
198
+ import type { CountSessionNicknames as _CountSessionNicknames } from "./CountSessionNicknames";
199
+ import type { CountSessions as _CountSessions } from "./CountSessions";
200
+ import type { DeleteMessage as _DeleteMessage } from "./DeleteMessage";
201
+ import type { DeleteMessageRead as _DeleteMessageRead } from "./DeleteMessageRead";
202
+ import type { DeleteMessageReadResult } from "./DeleteMessageReadResult";
203
+ import type { DeleteMessageReads as _DeleteMessageReads } from "./DeleteMessageReads";
204
+ import type { DeleteMessageReadsResult } from "./DeleteMessageReadsResult";
205
+ import type { DeleteMessageResult } from "./DeleteMessageResult";
206
+ import type { DeleteMessages as _DeleteMessages } from "./DeleteMessages";
207
+ import type { DeleteMessagesResult } from "./DeleteMessagesResult";
208
+ import type { DeleteRoom as _DeleteRoom } from "./DeleteRoom";
209
+ import type { DeleteRoomMember as _DeleteRoomMember } from "./DeleteRoomMember";
210
+ import type { DeleteRoomMemberResult } from "./DeleteRoomMemberResult";
211
+ import type { DeleteRoomMembers as _DeleteRoomMembers } from "./DeleteRoomMembers";
212
+ import type { DeleteRoomMembersResult } from "./DeleteRoomMembersResult";
213
+ import type { DeleteRoomResult } from "./DeleteRoomResult";
214
+ import type { DeleteRooms as _DeleteRooms } from "./DeleteRooms";
215
+ import type { DeleteRoomsResult } from "./DeleteRoomsResult";
216
+ import type { DeleteSession as _DeleteSession } from "./DeleteSession";
217
+ import type { DeleteSessionNickname as _DeleteSessionNickname } from "./DeleteSessionNickname";
218
+ import type { DeleteSessionNicknameResult } from "./DeleteSessionNicknameResult";
219
+ import type { DeleteSessionNicknames as _DeleteSessionNicknames } from "./DeleteSessionNicknames";
220
+ import type { DeleteSessionNicknamesResult } from "./DeleteSessionNicknamesResult";
221
+ import type { DeleteSessionResult } from "./DeleteSessionResult";
222
+ import type { DeleteSessions as _DeleteSessions } from "./DeleteSessions";
223
+ import type { DeleteSessionsResult } from "./DeleteSessionsResult";
224
+ import type { GetAllMessageReads as _GetAllMessageReads } from "./GetAllMessageReads";
225
+ import type { GetAllMessages as _GetAllMessages } from "./GetAllMessages";
226
+ import type { GetAllRoomMembers as _GetAllRoomMembers } from "./GetAllRoomMembers";
227
+ import type { GetAllRooms as _GetAllRooms } from "./GetAllRooms";
228
+ import type { GetAllSessionNicknames as _GetAllSessionNicknames } from "./GetAllSessionNicknames";
229
+ import type { GetAllSessions as _GetAllSessions } from "./GetAllSessions";
230
+ import type { GetMessageById as _GetMessageById } from "./GetMessageById";
231
+ import type { GetMessageReadById as _GetMessageReadById } from "./GetMessageReadById";
232
+ import type { GetMessageReadsByIds as _GetMessageReadsByIds } from "./GetMessageReadsByIds";
233
+ import type { GetMessageReadsByQuery as _GetMessageReadsByQuery } from "./GetMessageReadsByQuery";
234
+ import type { GetMessagesByIds as _GetMessagesByIds } from "./GetMessagesByIds";
235
+ import type { GetMessagesByQuery as _GetMessagesByQuery } from "./GetMessagesByQuery";
236
+ import type { GetRoomById as _GetRoomById } from "./GetRoomById";
237
+ import type { GetRoomMemberById as _GetRoomMemberById } from "./GetRoomMemberById";
238
+ import type { GetRoomMembersByIds as _GetRoomMembersByIds } from "./GetRoomMembersByIds";
239
+ import type { GetRoomMembersByQuery as _GetRoomMembersByQuery } from "./GetRoomMembersByQuery";
240
+ import type { GetRoomsByIds as _GetRoomsByIds } from "./GetRoomsByIds";
241
+ import type { GetRoomsByQuery as _GetRoomsByQuery } from "./GetRoomsByQuery";
242
+ import type { GetSessionById as _GetSessionById } from "./GetSessionById";
243
+ import type { GetSessionNicknameById as _GetSessionNicknameById } from "./GetSessionNicknameById";
244
+ import type { GetSessionNicknamesByIds as _GetSessionNicknamesByIds } from "./GetSessionNicknamesByIds";
245
+ import type { GetSessionNicknamesByQuery as _GetSessionNicknamesByQuery } from "./GetSessionNicknamesByQuery";
246
+ import type { GetSessionsByIds as _GetSessionsByIds } from "./GetSessionsByIds";
247
+ import type { GetSessionsByQuery as _GetSessionsByQuery } from "./GetSessionsByQuery";
248
+ import type { JoinRoom as _JoinRoom } from "./JoinRoom";
249
+ import type { JoinRoomResult } from "./JoinRoomResult";
250
+ import type { LeaveRoom as _LeaveRoom } from "./LeaveRoom";
251
+ import type { LeaveRoomResult } from "./LeaveRoomResult";
252
+ import type { Message } from "./Message";
253
+ import type { MessageCount } from "./MessageCount";
254
+ import type { MessageRead } from "./MessageRead";
255
+ import type { MessageReadCount } from "./MessageReadCount";
256
+ import type { NotifyChannel as _NotifyChannel } from "./NotifyChannel";
257
+ import type { ReadMessages as _ReadMessages } from "./ReadMessages";
258
+ import type { ReadMessagesResult } from "./ReadMessagesResult";
259
+ import type { Room } from "./Room";
260
+ import type { RoomCount } from "./RoomCount";
261
+ import type { RoomMember } from "./RoomMember";
262
+ import type { RoomMemberCount } from "./RoomMemberCount";
263
+ import type { SendMessage as _SendMessage } from "./SendMessage";
264
+ import type { SendMessageResult } from "./SendMessageResult";
265
+ import type { Session } from "./Session";
266
+ import type { SessionCount } from "./SessionCount";
267
+ import type { SessionNickname } from "./SessionNickname";
268
+ import type { SessionNicknameCount } from "./SessionNicknameCount";
269
+ import type { SetRoomDescription as _SetRoomDescription } from "./SetRoomDescription";
270
+ import type { SetRoomName as _SetRoomName } from "./SetRoomName";
271
+ import type { SetSessionActivity as _SetSessionActivity } from "./SetSessionActivity";
272
+ import type { SetSessionCurrentTask as _SetSessionCurrentTask } from "./SetSessionCurrentTask";
273
+ import type { SetSessionGitBranch as _SetSessionGitBranch } from "./SetSessionGitBranch";
274
+ import type { SetSessionLastActivityAt as _SetSessionLastActivityAt } from "./SetSessionLastActivityAt";
275
+ import type { SetSessionLastTool as _SetSessionLastTool } from "./SetSessionLastTool";
276
+ import type { SetSessionLastToolAt as _SetSessionLastToolAt } from "./SetSessionLastToolAt";
277
+ import type { SetSessionSessionName as _SetSessionSessionName } from "./SetSessionSessionName";
278
+
279
+ // Query classes
280
+ export class GetMessageReadsByQuery {
281
+ static readonly queryId = "GetMessageReadsByQuery" as const;
282
+ static readonly queryItemType = "MessageRead" as const;
283
+ readonly queryId = "GetMessageReadsByQuery" as const;
284
+ readonly queryItemType = "MessageRead" as const;
285
+ readonly query: Omit<_GetMessageReadsByQuery, "tx" | "createdAt">;
286
+ declare readonly $res: () => MessageRead[];
287
+
288
+ constructor(args: Omit<_GetMessageReadsByQuery, "tx" | "createdAt">) {
289
+ this.query = args;
290
+ }
291
+ }
292
+
293
+ export class GetMessageReadsByIds {
294
+ static readonly queryId = "GetMessageReadsByIds" as const;
295
+ static readonly queryItemType = "MessageRead" as const;
296
+ readonly queryId = "GetMessageReadsByIds" as const;
297
+ readonly queryItemType = "MessageRead" as const;
298
+ readonly query: Omit<_GetMessageReadsByIds, "tx" | "createdAt">;
299
+ declare readonly $res: () => MessageRead[];
300
+
301
+ constructor(args: Omit<_GetMessageReadsByIds, "tx" | "createdAt">) {
302
+ this.query = args;
303
+ }
304
+ }
305
+
306
+ export class GetAllMessageReads {
307
+ static readonly queryId = "GetAllMessageReads" as const;
308
+ static readonly queryItemType = "MessageRead" as const;
309
+ readonly queryId = "GetAllMessageReads" as const;
310
+ readonly queryItemType = "MessageRead" as const;
311
+ readonly query: Omit<_GetAllMessageReads, "tx" | "createdAt">;
312
+ declare readonly $res: () => MessageRead[];
313
+
314
+ constructor(args: Omit<_GetAllMessageReads, "tx" | "createdAt">) {
315
+ this.query = args;
316
+ }
317
+ }
318
+
319
+ export class GetMessagesByQuery {
320
+ static readonly queryId = "GetMessagesByQuery" as const;
321
+ static readonly queryItemType = "Message" as const;
322
+ readonly queryId = "GetMessagesByQuery" as const;
323
+ readonly queryItemType = "Message" as const;
324
+ readonly query: Omit<_GetMessagesByQuery, "tx" | "createdAt">;
325
+ declare readonly $res: () => Message[];
326
+
327
+ constructor(args: Omit<_GetMessagesByQuery, "tx" | "createdAt">) {
328
+ this.query = args;
329
+ }
330
+ }
331
+
332
+ export class GetMessagesByIds {
333
+ static readonly queryId = "GetMessagesByIds" as const;
334
+ static readonly queryItemType = "Message" as const;
335
+ readonly queryId = "GetMessagesByIds" as const;
336
+ readonly queryItemType = "Message" as const;
337
+ readonly query: Omit<_GetMessagesByIds, "tx" | "createdAt">;
338
+ declare readonly $res: () => Message[];
339
+
340
+ constructor(args: Omit<_GetMessagesByIds, "tx" | "createdAt">) {
341
+ this.query = args;
342
+ }
343
+ }
344
+
345
+ export class GetAllMessages {
346
+ static readonly queryId = "GetAllMessages" as const;
347
+ static readonly queryItemType = "Message" as const;
348
+ readonly queryId = "GetAllMessages" as const;
349
+ readonly queryItemType = "Message" as const;
350
+ readonly query: Omit<_GetAllMessages, "tx" | "createdAt">;
351
+ declare readonly $res: () => Message[];
352
+
353
+ constructor(args: Omit<_GetAllMessages, "tx" | "createdAt">) {
354
+ this.query = args;
355
+ }
356
+ }
357
+
358
+ export class GetSessionsByQuery {
359
+ static readonly queryId = "GetSessionsByQuery" as const;
360
+ static readonly queryItemType = "Session" as const;
361
+ readonly queryId = "GetSessionsByQuery" as const;
362
+ readonly queryItemType = "Session" as const;
363
+ readonly query: Omit<_GetSessionsByQuery, "tx" | "createdAt">;
364
+ declare readonly $res: () => Session[];
365
+
366
+ constructor(args: Omit<_GetSessionsByQuery, "tx" | "createdAt">) {
367
+ this.query = args;
368
+ }
369
+ }
370
+
371
+ export class GetSessionsByIds {
372
+ static readonly queryId = "GetSessionsByIds" as const;
373
+ static readonly queryItemType = "Session" as const;
374
+ readonly queryId = "GetSessionsByIds" as const;
375
+ readonly queryItemType = "Session" as const;
376
+ readonly query: Omit<_GetSessionsByIds, "tx" | "createdAt">;
377
+ declare readonly $res: () => Session[];
378
+
379
+ constructor(args: Omit<_GetSessionsByIds, "tx" | "createdAt">) {
380
+ this.query = args;
381
+ }
382
+ }
383
+
384
+ export class GetAllSessions {
385
+ static readonly queryId = "GetAllSessions" as const;
386
+ static readonly queryItemType = "Session" as const;
387
+ readonly queryId = "GetAllSessions" as const;
388
+ readonly queryItemType = "Session" as const;
389
+ readonly query: Omit<_GetAllSessions, "tx" | "createdAt">;
390
+ declare readonly $res: () => Session[];
391
+
392
+ constructor(args: Omit<_GetAllSessions, "tx" | "createdAt">) {
393
+ this.query = args;
394
+ }
395
+ }
396
+
397
+ export class GetSessionNicknamesByQuery {
398
+ static readonly queryId = "GetSessionNicknamesByQuery" as const;
399
+ static readonly queryItemType = "SessionNickname" as const;
400
+ readonly queryId = "GetSessionNicknamesByQuery" as const;
401
+ readonly queryItemType = "SessionNickname" as const;
402
+ readonly query: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">;
403
+ declare readonly $res: () => SessionNickname[];
404
+
405
+ constructor(args: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">) {
406
+ this.query = args;
407
+ }
408
+ }
409
+
410
+ export class GetSessionNicknamesByIds {
411
+ static readonly queryId = "GetSessionNicknamesByIds" as const;
412
+ static readonly queryItemType = "SessionNickname" as const;
413
+ readonly queryId = "GetSessionNicknamesByIds" as const;
414
+ readonly queryItemType = "SessionNickname" as const;
415
+ readonly query: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">;
416
+ declare readonly $res: () => SessionNickname[];
417
+
418
+ constructor(args: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">) {
419
+ this.query = args;
420
+ }
421
+ }
422
+
423
+ export class GetAllSessionNicknames {
424
+ static readonly queryId = "GetAllSessionNicknames" as const;
425
+ static readonly queryItemType = "SessionNickname" as const;
426
+ readonly queryId = "GetAllSessionNicknames" as const;
427
+ readonly queryItemType = "SessionNickname" as const;
428
+ readonly query: Omit<_GetAllSessionNicknames, "tx" | "createdAt">;
429
+ declare readonly $res: () => SessionNickname[];
430
+
431
+ constructor(args: Omit<_GetAllSessionNicknames, "tx" | "createdAt">) {
432
+ this.query = args;
433
+ }
434
+ }
435
+
436
+ export class GetRoomMembersByQuery {
437
+ static readonly queryId = "GetRoomMembersByQuery" as const;
438
+ static readonly queryItemType = "RoomMember" as const;
439
+ readonly queryId = "GetRoomMembersByQuery" as const;
440
+ readonly queryItemType = "RoomMember" as const;
441
+ readonly query: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">;
442
+ declare readonly $res: () => RoomMember[];
443
+
444
+ constructor(args: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">) {
445
+ this.query = args;
446
+ }
447
+ }
448
+
449
+ export class GetRoomMembersByIds {
450
+ static readonly queryId = "GetRoomMembersByIds" as const;
451
+ static readonly queryItemType = "RoomMember" as const;
452
+ readonly queryId = "GetRoomMembersByIds" as const;
453
+ readonly queryItemType = "RoomMember" as const;
454
+ readonly query: Omit<_GetRoomMembersByIds, "tx" | "createdAt">;
455
+ declare readonly $res: () => RoomMember[];
456
+
457
+ constructor(args: Omit<_GetRoomMembersByIds, "tx" | "createdAt">) {
458
+ this.query = args;
459
+ }
460
+ }
461
+
462
+ export class GetAllRoomMembers {
463
+ static readonly queryId = "GetAllRoomMembers" as const;
464
+ static readonly queryItemType = "RoomMember" as const;
465
+ readonly queryId = "GetAllRoomMembers" as const;
466
+ readonly queryItemType = "RoomMember" as const;
467
+ readonly query: Omit<_GetAllRoomMembers, "tx" | "createdAt">;
468
+ declare readonly $res: () => RoomMember[];
469
+
470
+ constructor(args: Omit<_GetAllRoomMembers, "tx" | "createdAt">) {
471
+ this.query = args;
472
+ }
473
+ }
474
+
475
+ export class GetRoomsByQuery {
476
+ static readonly queryId = "GetRoomsByQuery" as const;
477
+ static readonly queryItemType = "Room" as const;
478
+ readonly queryId = "GetRoomsByQuery" as const;
479
+ readonly queryItemType = "Room" as const;
480
+ readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
481
+ declare readonly $res: () => Room[];
482
+
483
+ constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
484
+ this.query = args;
485
+ }
486
+ }
487
+
488
+ export class GetRoomsByIds {
489
+ static readonly queryId = "GetRoomsByIds" as const;
490
+ static readonly queryItemType = "Room" as const;
491
+ readonly queryId = "GetRoomsByIds" as const;
492
+ readonly queryItemType = "Room" as const;
493
+ readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
494
+ declare readonly $res: () => Room[];
495
+
496
+ constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
497
+ this.query = args;
498
+ }
499
+ }
500
+
501
+ export class GetAllRooms {
502
+ static readonly queryId = "GetAllRooms" as const;
503
+ static readonly queryItemType = "Room" as const;
504
+ readonly queryId = "GetAllRooms" as const;
505
+ readonly queryItemType = "Room" as const;
506
+ readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
507
+ declare readonly $res: () => Room[];
508
+
509
+ constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
510
+ this.query = args;
511
+ }
512
+ }
513
+
514
+ // View classes
515
+
516
+ // Report classes
517
+ export class GetMessageReadById {
518
+ static readonly reportId = "GetMessageReadById" as const;
519
+ readonly reportId = "GetMessageReadById" as const;
520
+ readonly report: Omit<_GetMessageReadById, "tx">;
521
+ declare readonly $res: () => MessageRead | null;
522
+
523
+ constructor(args: Omit<_GetMessageReadById, "tx">) {
524
+ this.report = args;
525
+ }
526
+ }
527
+
528
+ export class CountMessageReads {
529
+ static readonly reportId = "CountMessageReads" as const;
530
+ readonly reportId = "CountMessageReads" as const;
531
+ readonly report: Omit<_CountMessageReads, "tx">;
532
+ declare readonly $res: () => MessageReadCount;
533
+
534
+ constructor(args: Omit<_CountMessageReads, "tx">) {
535
+ this.report = args;
536
+ }
537
+ }
538
+
539
+ export class CountAllMessageReads {
540
+ static readonly reportId = "CountAllMessageReads" as const;
541
+ readonly reportId = "CountAllMessageReads" as const;
542
+ readonly report: Omit<_CountAllMessageReads, "tx">;
543
+ declare readonly $res: () => MessageReadCount;
544
+
545
+ constructor(args: Omit<_CountAllMessageReads, "tx">) {
546
+ this.report = args;
547
+ }
548
+ }
549
+
550
+ export class GetMessageById {
551
+ static readonly reportId = "GetMessageById" as const;
552
+ readonly reportId = "GetMessageById" as const;
553
+ readonly report: Omit<_GetMessageById, "tx">;
554
+ declare readonly $res: () => Message | null;
555
+
556
+ constructor(args: Omit<_GetMessageById, "tx">) {
557
+ this.report = args;
558
+ }
559
+ }
560
+
561
+ export class CountMessages {
562
+ static readonly reportId = "CountMessages" as const;
563
+ readonly reportId = "CountMessages" as const;
564
+ readonly report: Omit<_CountMessages, "tx">;
565
+ declare readonly $res: () => MessageCount;
566
+
567
+ constructor(args: Omit<_CountMessages, "tx">) {
568
+ this.report = args;
569
+ }
570
+ }
571
+
572
+ export class CountAllMessages {
573
+ static readonly reportId = "CountAllMessages" as const;
574
+ readonly reportId = "CountAllMessages" as const;
575
+ readonly report: Omit<_CountAllMessages, "tx">;
576
+ declare readonly $res: () => MessageCount;
577
+
578
+ constructor(args: Omit<_CountAllMessages, "tx">) {
579
+ this.report = args;
580
+ }
581
+ }
582
+
583
+ export class GetSessionById {
584
+ static readonly reportId = "GetSessionById" as const;
585
+ readonly reportId = "GetSessionById" as const;
586
+ readonly report: Omit<_GetSessionById, "tx">;
587
+ declare readonly $res: () => Session | null;
588
+
589
+ constructor(args: Omit<_GetSessionById, "tx">) {
590
+ this.report = args;
591
+ }
592
+ }
593
+
594
+ export class CountSessions {
595
+ static readonly reportId = "CountSessions" as const;
596
+ readonly reportId = "CountSessions" as const;
597
+ readonly report: Omit<_CountSessions, "tx">;
598
+ declare readonly $res: () => SessionCount;
599
+
600
+ constructor(args: Omit<_CountSessions, "tx">) {
601
+ this.report = args;
602
+ }
603
+ }
604
+
605
+ export class CountAllSessions {
606
+ static readonly reportId = "CountAllSessions" as const;
607
+ readonly reportId = "CountAllSessions" as const;
608
+ readonly report: Omit<_CountAllSessions, "tx">;
609
+ declare readonly $res: () => SessionCount;
610
+
611
+ constructor(args: Omit<_CountAllSessions, "tx">) {
612
+ this.report = args;
613
+ }
614
+ }
615
+
616
+ export class GetSessionNicknameById {
617
+ static readonly reportId = "GetSessionNicknameById" as const;
618
+ readonly reportId = "GetSessionNicknameById" as const;
619
+ readonly report: Omit<_GetSessionNicknameById, "tx">;
620
+ declare readonly $res: () => SessionNickname | null;
621
+
622
+ constructor(args: Omit<_GetSessionNicknameById, "tx">) {
623
+ this.report = args;
624
+ }
625
+ }
626
+
627
+ export class CountSessionNicknames {
628
+ static readonly reportId = "CountSessionNicknames" as const;
629
+ readonly reportId = "CountSessionNicknames" as const;
630
+ readonly report: Omit<_CountSessionNicknames, "tx">;
631
+ declare readonly $res: () => SessionNicknameCount;
632
+
633
+ constructor(args: Omit<_CountSessionNicknames, "tx">) {
634
+ this.report = args;
635
+ }
636
+ }
637
+
638
+ export class CountAllSessionNicknames {
639
+ static readonly reportId = "CountAllSessionNicknames" as const;
640
+ readonly reportId = "CountAllSessionNicknames" as const;
641
+ readonly report: Omit<_CountAllSessionNicknames, "tx">;
642
+ declare readonly $res: () => SessionNicknameCount;
643
+
644
+ constructor(args: Omit<_CountAllSessionNicknames, "tx">) {
645
+ this.report = args;
646
+ }
647
+ }
648
+
649
+ export class GetRoomMemberById {
650
+ static readonly reportId = "GetRoomMemberById" as const;
651
+ readonly reportId = "GetRoomMemberById" as const;
652
+ readonly report: Omit<_GetRoomMemberById, "tx">;
653
+ declare readonly $res: () => RoomMember | null;
654
+
655
+ constructor(args: Omit<_GetRoomMemberById, "tx">) {
656
+ this.report = args;
657
+ }
658
+ }
659
+
660
+ export class CountRoomMembers {
661
+ static readonly reportId = "CountRoomMembers" as const;
662
+ readonly reportId = "CountRoomMembers" as const;
663
+ readonly report: Omit<_CountRoomMembers, "tx">;
664
+ declare readonly $res: () => RoomMemberCount;
665
+
666
+ constructor(args: Omit<_CountRoomMembers, "tx">) {
667
+ this.report = args;
668
+ }
669
+ }
670
+
671
+ export class CountAllRoomMembers {
672
+ static readonly reportId = "CountAllRoomMembers" as const;
673
+ readonly reportId = "CountAllRoomMembers" as const;
674
+ readonly report: Omit<_CountAllRoomMembers, "tx">;
675
+ declare readonly $res: () => RoomMemberCount;
676
+
677
+ constructor(args: Omit<_CountAllRoomMembers, "tx">) {
678
+ this.report = args;
679
+ }
680
+ }
681
+
682
+ export class GetRoomById {
683
+ static readonly reportId = "GetRoomById" as const;
684
+ readonly reportId = "GetRoomById" as const;
685
+ readonly report: Omit<_GetRoomById, "tx">;
686
+ declare readonly $res: () => Room | null;
687
+
688
+ constructor(args: Omit<_GetRoomById, "tx">) {
689
+ this.report = args;
690
+ }
691
+ }
692
+
693
+ export class CountRooms {
694
+ static readonly reportId = "CountRooms" as const;
695
+ readonly reportId = "CountRooms" as const;
696
+ readonly report: Omit<_CountRooms, "tx">;
697
+ declare readonly $res: () => RoomCount;
698
+
699
+ constructor(args: Omit<_CountRooms, "tx">) {
700
+ this.report = args;
701
+ }
702
+ }
703
+
704
+ export class CountAllRooms {
705
+ static readonly reportId = "CountAllRooms" as const;
706
+ readonly reportId = "CountAllRooms" as const;
707
+ readonly report: Omit<_CountAllRooms, "tx">;
708
+ declare readonly $res: () => RoomCount;
709
+
710
+ constructor(args: Omit<_CountAllRooms, "tx">) {
711
+ this.report = args;
712
+ }
713
+ }
714
+
715
+ // Command classes
716
+ export class NotifyChannel {
717
+ static readonly commandId = "NotifyChannel" as const;
718
+ readonly commandId = "NotifyChannel" as const;
719
+ readonly command: Omit<_NotifyChannel, "tx" | "createdAt">;
720
+ declare readonly $res: () => void;
721
+
722
+ constructor(args: Omit<_NotifyChannel, "tx" | "createdAt">) {
723
+ this.command = args;
724
+ }
725
+ }
726
+
727
+ export class DeleteMessageReads {
728
+ static readonly commandId = "DeleteMessageReads" as const;
729
+ readonly commandId = "DeleteMessageReads" as const;
730
+ readonly command: Omit<_DeleteMessageReads, "tx" | "createdAt">;
731
+ declare readonly $res: () => DeleteMessageReadsResult;
732
+
733
+ constructor(args: Omit<_DeleteMessageReads, "tx" | "createdAt">) {
734
+ this.command = args;
735
+ }
736
+ }
737
+
738
+ export class DeleteMessageRead {
739
+ static readonly commandId = "DeleteMessageRead" as const;
740
+ readonly commandId = "DeleteMessageRead" as const;
741
+ readonly command: Omit<_DeleteMessageRead, "tx" | "createdAt">;
742
+ declare readonly $res: () => DeleteMessageReadResult;
743
+
744
+ constructor(args: Omit<_DeleteMessageRead, "tx" | "createdAt">) {
745
+ this.command = args;
746
+ }
747
+ }
748
+
749
+ export class AckMessages {
750
+ static readonly commandId = "AckMessages" as const;
751
+ readonly commandId = "AckMessages" as const;
752
+ readonly command: Omit<_AckMessages, "tx" | "createdAt">;
753
+ declare readonly $res: () => AckMessagesResult;
754
+
755
+ constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
756
+ this.command = args;
757
+ }
758
+ }
759
+
760
+ export class ReadMessages {
761
+ static readonly commandId = "ReadMessages" as const;
762
+ readonly commandId = "ReadMessages" as const;
763
+ readonly command: Omit<_ReadMessages, "tx" | "createdAt">;
764
+ declare readonly $res: () => ReadMessagesResult;
765
+
766
+ constructor(args: Omit<_ReadMessages, "tx" | "createdAt">) {
767
+ this.command = args;
768
+ }
769
+ }
770
+
771
+ export class LeaveRoom {
772
+ static readonly commandId = "LeaveRoom" as const;
773
+ readonly commandId = "LeaveRoom" as const;
774
+ readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
775
+ declare readonly $res: () => LeaveRoomResult;
776
+
777
+ constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
778
+ this.command = args;
779
+ }
780
+ }
781
+
782
+ export class JoinRoom {
783
+ static readonly commandId = "JoinRoom" as const;
784
+ readonly commandId = "JoinRoom" as const;
785
+ readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
786
+ declare readonly $res: () => JoinRoomResult;
787
+
788
+ constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
789
+ this.command = args;
790
+ }
791
+ }
792
+
793
+ export class DeleteMessages {
794
+ static readonly commandId = "DeleteMessages" as const;
795
+ readonly commandId = "DeleteMessages" as const;
796
+ readonly command: Omit<_DeleteMessages, "tx" | "createdAt">;
797
+ declare readonly $res: () => DeleteMessagesResult;
798
+
799
+ constructor(args: Omit<_DeleteMessages, "tx" | "createdAt">) {
800
+ this.command = args;
801
+ }
802
+ }
803
+
804
+ export class DeleteMessage {
805
+ static readonly commandId = "DeleteMessage" as const;
806
+ readonly commandId = "DeleteMessage" as const;
807
+ readonly command: Omit<_DeleteMessage, "tx" | "createdAt">;
808
+ declare readonly $res: () => DeleteMessageResult;
809
+
810
+ constructor(args: Omit<_DeleteMessage, "tx" | "createdAt">) {
811
+ this.command = args;
812
+ }
813
+ }
814
+
815
+ export class BroadcastMessage {
816
+ static readonly commandId = "BroadcastMessage" as const;
817
+ readonly commandId = "BroadcastMessage" as const;
818
+ readonly command: Omit<_BroadcastMessage, "tx" | "createdAt">;
819
+ declare readonly $res: () => BroadcastMessageResult;
820
+
821
+ constructor(args: Omit<_BroadcastMessage, "tx" | "createdAt">) {
822
+ this.command = args;
823
+ }
824
+ }
825
+
826
+ export class SendMessage {
827
+ static readonly commandId = "SendMessage" as const;
828
+ readonly commandId = "SendMessage" as const;
829
+ readonly command: Omit<_SendMessage, "tx" | "createdAt">;
830
+ declare readonly $res: () => SendMessageResult;
831
+
832
+ constructor(args: Omit<_SendMessage, "tx" | "createdAt">) {
833
+ this.command = args;
834
+ }
835
+ }
836
+
837
+ export class DeleteSessions {
838
+ static readonly commandId = "DeleteSessions" as const;
839
+ readonly commandId = "DeleteSessions" as const;
840
+ readonly command: Omit<_DeleteSessions, "tx" | "createdAt">;
841
+ declare readonly $res: () => DeleteSessionsResult;
842
+
843
+ constructor(args: Omit<_DeleteSessions, "tx" | "createdAt">) {
844
+ this.command = args;
845
+ }
846
+ }
847
+
848
+ export class DeleteSession {
849
+ static readonly commandId = "DeleteSession" as const;
850
+ readonly commandId = "DeleteSession" as const;
851
+ readonly command: Omit<_DeleteSession, "tx" | "createdAt">;
852
+ declare readonly $res: () => DeleteSessionResult;
853
+
854
+ constructor(args: Omit<_DeleteSession, "tx" | "createdAt">) {
855
+ this.command = args;
856
+ }
857
+ }
858
+
859
+ export class SetSessionLastActivityAt {
860
+ static readonly commandId = "SetSessionLastActivityAt" as const;
861
+ readonly commandId = "SetSessionLastActivityAt" as const;
862
+ readonly command: Omit<_SetSessionLastActivityAt, "tx" | "createdAt">;
863
+ declare readonly $res: () => void;
864
+
865
+ constructor(args: Omit<_SetSessionLastActivityAt, "tx" | "createdAt">) {
866
+ this.command = args;
867
+ }
868
+ }
869
+
870
+ export class SetSessionActivity {
871
+ static readonly commandId = "SetSessionActivity" as const;
872
+ readonly commandId = "SetSessionActivity" as const;
873
+ readonly command: Omit<_SetSessionActivity, "tx" | "createdAt">;
874
+ declare readonly $res: () => void;
875
+
876
+ constructor(args: Omit<_SetSessionActivity, "tx" | "createdAt">) {
877
+ this.command = args;
878
+ }
879
+ }
880
+
881
+ export class SetSessionSessionName {
882
+ static readonly commandId = "SetSessionSessionName" as const;
883
+ readonly commandId = "SetSessionSessionName" as const;
884
+ readonly command: Omit<_SetSessionSessionName, "tx" | "createdAt">;
885
+ declare readonly $res: () => void;
886
+
887
+ constructor(args: Omit<_SetSessionSessionName, "tx" | "createdAt">) {
888
+ this.command = args;
889
+ }
890
+ }
891
+
892
+ export class SetSessionLastToolAt {
893
+ static readonly commandId = "SetSessionLastToolAt" as const;
894
+ readonly commandId = "SetSessionLastToolAt" as const;
895
+ readonly command: Omit<_SetSessionLastToolAt, "tx" | "createdAt">;
896
+ declare readonly $res: () => void;
897
+
898
+ constructor(args: Omit<_SetSessionLastToolAt, "tx" | "createdAt">) {
899
+ this.command = args;
900
+ }
901
+ }
902
+
903
+ export class SetSessionLastTool {
904
+ static readonly commandId = "SetSessionLastTool" as const;
905
+ readonly commandId = "SetSessionLastTool" as const;
906
+ readonly command: Omit<_SetSessionLastTool, "tx" | "createdAt">;
907
+ declare readonly $res: () => void;
908
+
909
+ constructor(args: Omit<_SetSessionLastTool, "tx" | "createdAt">) {
910
+ this.command = args;
911
+ }
912
+ }
913
+
914
+ export class SetSessionCurrentTask {
915
+ static readonly commandId = "SetSessionCurrentTask" as const;
916
+ readonly commandId = "SetSessionCurrentTask" as const;
917
+ readonly command: Omit<_SetSessionCurrentTask, "tx" | "createdAt">;
918
+ declare readonly $res: () => void;
919
+
920
+ constructor(args: Omit<_SetSessionCurrentTask, "tx" | "createdAt">) {
921
+ this.command = args;
922
+ }
923
+ }
924
+
925
+ export class SetSessionGitBranch {
926
+ static readonly commandId = "SetSessionGitBranch" as const;
927
+ readonly commandId = "SetSessionGitBranch" as const;
928
+ readonly command: Omit<_SetSessionGitBranch, "tx" | "createdAt">;
929
+ declare readonly $res: () => void;
930
+
931
+ constructor(args: Omit<_SetSessionGitBranch, "tx" | "createdAt">) {
932
+ this.command = args;
933
+ }
934
+ }
935
+
936
+ export class DeleteSessionNicknames {
937
+ static readonly commandId = "DeleteSessionNicknames" as const;
938
+ readonly commandId = "DeleteSessionNicknames" as const;
939
+ readonly command: Omit<_DeleteSessionNicknames, "tx" | "createdAt">;
940
+ declare readonly $res: () => DeleteSessionNicknamesResult;
941
+
942
+ constructor(args: Omit<_DeleteSessionNicknames, "tx" | "createdAt">) {
943
+ this.command = args;
944
+ }
945
+ }
946
+
947
+ export class DeleteSessionNickname {
948
+ static readonly commandId = "DeleteSessionNickname" as const;
949
+ readonly commandId = "DeleteSessionNickname" as const;
950
+ readonly command: Omit<_DeleteSessionNickname, "tx" | "createdAt">;
951
+ declare readonly $res: () => DeleteSessionNicknameResult;
952
+
953
+ constructor(args: Omit<_DeleteSessionNickname, "tx" | "createdAt">) {
954
+ this.command = args;
955
+ }
956
+ }
957
+
958
+ export class DeleteRoomMembers {
959
+ static readonly commandId = "DeleteRoomMembers" as const;
960
+ readonly commandId = "DeleteRoomMembers" as const;
961
+ readonly command: Omit<_DeleteRoomMembers, "tx" | "createdAt">;
962
+ declare readonly $res: () => DeleteRoomMembersResult;
963
+
964
+ constructor(args: Omit<_DeleteRoomMembers, "tx" | "createdAt">) {
965
+ this.command = args;
966
+ }
967
+ }
968
+
969
+ export class DeleteRoomMember {
970
+ static readonly commandId = "DeleteRoomMember" as const;
971
+ readonly commandId = "DeleteRoomMember" as const;
972
+ readonly command: Omit<_DeleteRoomMember, "tx" | "createdAt">;
973
+ declare readonly $res: () => DeleteRoomMemberResult;
974
+
975
+ constructor(args: Omit<_DeleteRoomMember, "tx" | "createdAt">) {
976
+ this.command = args;
977
+ }
978
+ }
979
+
980
+ export class SetRoomName {
981
+ static readonly commandId = "SetRoomName" as const;
982
+ readonly commandId = "SetRoomName" as const;
983
+ readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
984
+ declare readonly $res: () => void;
985
+
986
+ constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
987
+ this.command = args;
988
+ }
989
+ }
990
+
991
+ export class DeleteRooms {
992
+ static readonly commandId = "DeleteRooms" as const;
993
+ readonly commandId = "DeleteRooms" as const;
994
+ readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
995
+ declare readonly $res: () => DeleteRoomsResult;
996
+
997
+ constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
998
+ this.command = args;
999
+ }
1000
+ }
1001
+
1002
+ export class DeleteRoom {
1003
+ static readonly commandId = "DeleteRoom" as const;
1004
+ readonly commandId = "DeleteRoom" as const;
1005
+ readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
1006
+ declare readonly $res: () => DeleteRoomResult;
1007
+
1008
+ constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
1009
+ this.command = args;
1010
+ }
1011
+ }
1012
+
1013
+ export class SetRoomDescription {
1014
+ static readonly commandId = "SetRoomDescription" as const;
1015
+ readonly commandId = "SetRoomDescription" as const;
1016
+ readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
1017
+ declare readonly $res: () => void;
1018
+
1019
+ constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
1020
+ this.command = args;
1021
+ }
1022
+ }
1023
+
1024
+ // Item constructors
1025
+ export const items = {
1026
+ MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
1027
+ Message: (args: Message) => ({ item: args, itemType: "Message" }),
1028
+ Session: (args: Session) => ({ item: args, itemType: "Session" }),
1029
+ SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
1030
+ RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
1031
+ Room: (args: Room) => ({ item: args, itemType: "Room" }),
1032
+ };
1033
+
1034
+ // Message events
1035
+ export const MykoEvent = {
1036
+ Benchmark: "ws:m:benchmark",
1037
+ Ping: "ws:m:ping",
1038
+ CommandError: "ws:m:command-error",
1039
+ CommandResponse: "ws:m:command-response",
1040
+ Command: "ws:m:command",
1041
+ EventBatch: "ws:m:event-batch",
1042
+ Event: "ws:m:event",
1043
+ ViewError: "ws:m:view-error",
1044
+ QueryError: "ws:m:query-error",
1045
+ ReportError: "ws:m:report-error",
1046
+ ReportCancel: "ws:m:report-cancel",
1047
+ ReportResponse: "ws:m:report-response",
1048
+ Report: "ws:m:report",
1049
+ ViewWindow: "ws:m:view-window",
1050
+ ViewCancel: "ws:m:view-cancel",
1051
+ ViewResponse: "ws:m:view-response",
1052
+ View: "ws:m:view",
1053
+ QueryWindow: "ws:m:query-window",
1054
+ QueryCancel: "ws:m:query-cancel",
1055
+ QueryResponse: "ws:m:query-response",
1056
+ Query: "ws:m:query",
1057
+ } as const;
1058
+ export type MykoEventType = typeof MykoEvent[keyof typeof MykoEvent];
1059
+
1060
+ // Shared constants