@agentdock/wire 0.0.90 → 0.0.91

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 (136) hide show
  1. package/dist/activityPreferences.js +1 -2
  2. package/dist/agentCapabilities.d.ts +2 -0
  3. package/dist/agentCapabilities.js +1 -199
  4. package/dist/agentCommonEnv.js +1 -20
  5. package/dist/agentInstallGuide.js +1 -81
  6. package/dist/bgTask.js +1 -128
  7. package/dist/checkpointSchemas.d.ts +142 -98
  8. package/dist/checkpointSchemas.js +1 -46
  9. package/dist/controlLevel.js +1 -11
  10. package/dist/edition.js +1 -13
  11. package/dist/envelope.d.ts +5668 -563
  12. package/dist/envelope.js +1 -77
  13. package/dist/errorMessage.js +1 -6
  14. package/dist/events.d.ts +2053 -324
  15. package/dist/events.js +1 -107
  16. package/dist/features.js +1 -123
  17. package/dist/feedback.d.ts +2 -2
  18. package/dist/feedback.js +1 -61
  19. package/dist/fileWhitelist.js +1 -189
  20. package/dist/inboundEvents.d.ts +531 -0
  21. package/dist/inboundEvents.js +1 -0
  22. package/dist/index.d.ts +11 -5
  23. package/dist/index.js +1 -73
  24. package/dist/interactionEvents.d.ts +153 -106
  25. package/dist/interactionEvents.js +1 -111
  26. package/dist/legacyProtocol.d.ts +512 -272
  27. package/dist/legacyProtocol.js +1 -30
  28. package/dist/license.js +1 -28
  29. package/dist/machine.d.ts +108 -62
  30. package/dist/machine.js +1 -66
  31. package/dist/messageMeta.d.ts +34 -28
  32. package/dist/messageMeta.js +1 -60
  33. package/dist/messages.d.ts +34900 -1862
  34. package/dist/messages.js +1 -35
  35. package/dist/notification.d.ts +48 -0
  36. package/dist/notification.js +1 -0
  37. package/dist/ops.d.ts +165 -122
  38. package/dist/ops.js +1 -74
  39. package/dist/pairing.d.ts +4 -4
  40. package/dist/pairing.js +1 -150
  41. package/dist/permissionSubject.js +1 -68
  42. package/dist/protocol.js +1 -7
  43. package/dist/rpc.d.ts +749 -189
  44. package/dist/rpc.js +1 -269
  45. package/dist/scheduledTasks.d.ts +619 -304
  46. package/dist/scheduledTasks.js +1 -188
  47. package/dist/semver.js +1 -60
  48. package/dist/sessionResult.d.ts +31 -17
  49. package/dist/sessionResult.js +1 -23
  50. package/dist/socketEvents.d.ts +7 -0
  51. package/dist/socketEvents.js +1 -55
  52. package/dist/sourceMetadata.d.ts +44 -0
  53. package/dist/sourceMetadata.js +1 -0
  54. package/dist/spawnError.d.ts +21 -17
  55. package/dist/spawnError.js +1 -31
  56. package/dist/stats.d.ts +73 -73
  57. package/dist/stats.js +1 -117
  58. package/dist/sync.d.ts +2165 -819
  59. package/dist/sync.js +1 -99
  60. package/dist/taskResult.js +1 -113
  61. package/dist/telemetry.d.ts +120 -64
  62. package/dist/telemetry.js +1 -115
  63. package/dist/utils.js +1 -2
  64. package/package.json +3 -2
  65. package/dist/activityPreferences.d.ts.map +0 -1
  66. package/dist/activityPreferences.js.map +0 -1
  67. package/dist/agentCapabilities.d.ts.map +0 -1
  68. package/dist/agentCapabilities.js.map +0 -1
  69. package/dist/agentCommonEnv.d.ts.map +0 -1
  70. package/dist/agentCommonEnv.js.map +0 -1
  71. package/dist/agentInstallGuide.d.ts.map +0 -1
  72. package/dist/agentInstallGuide.js.map +0 -1
  73. package/dist/bgTask.d.ts.map +0 -1
  74. package/dist/bgTask.js.map +0 -1
  75. package/dist/checkpointSchemas.d.ts.map +0 -1
  76. package/dist/checkpointSchemas.js.map +0 -1
  77. package/dist/controlLevel.d.ts.map +0 -1
  78. package/dist/controlLevel.js.map +0 -1
  79. package/dist/edition.d.ts.map +0 -1
  80. package/dist/edition.js.map +0 -1
  81. package/dist/envelope.d.ts.map +0 -1
  82. package/dist/envelope.js.map +0 -1
  83. package/dist/errorMessage.d.ts.map +0 -1
  84. package/dist/errorMessage.js.map +0 -1
  85. package/dist/events.d.ts.map +0 -1
  86. package/dist/events.js.map +0 -1
  87. package/dist/features.d.ts.map +0 -1
  88. package/dist/features.js.map +0 -1
  89. package/dist/feedback.d.ts.map +0 -1
  90. package/dist/feedback.js.map +0 -1
  91. package/dist/fileWhitelist.d.ts.map +0 -1
  92. package/dist/fileWhitelist.js.map +0 -1
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js.map +0 -1
  95. package/dist/interactionEvents.d.ts.map +0 -1
  96. package/dist/interactionEvents.js.map +0 -1
  97. package/dist/legacyProtocol.d.ts.map +0 -1
  98. package/dist/legacyProtocol.js.map +0 -1
  99. package/dist/license.d.ts.map +0 -1
  100. package/dist/license.js.map +0 -1
  101. package/dist/machine.d.ts.map +0 -1
  102. package/dist/machine.js.map +0 -1
  103. package/dist/messageMeta.d.ts.map +0 -1
  104. package/dist/messageMeta.js.map +0 -1
  105. package/dist/messages.d.ts.map +0 -1
  106. package/dist/messages.js.map +0 -1
  107. package/dist/ops.d.ts.map +0 -1
  108. package/dist/ops.js.map +0 -1
  109. package/dist/pairing.d.ts.map +0 -1
  110. package/dist/pairing.js.map +0 -1
  111. package/dist/permissionSubject.d.ts.map +0 -1
  112. package/dist/permissionSubject.js.map +0 -1
  113. package/dist/protocol.d.ts.map +0 -1
  114. package/dist/protocol.js.map +0 -1
  115. package/dist/rpc.d.ts.map +0 -1
  116. package/dist/rpc.js.map +0 -1
  117. package/dist/scheduledTasks.d.ts.map +0 -1
  118. package/dist/scheduledTasks.js.map +0 -1
  119. package/dist/semver.d.ts.map +0 -1
  120. package/dist/semver.js.map +0 -1
  121. package/dist/sessionResult.d.ts.map +0 -1
  122. package/dist/sessionResult.js.map +0 -1
  123. package/dist/socketEvents.d.ts.map +0 -1
  124. package/dist/socketEvents.js.map +0 -1
  125. package/dist/spawnError.d.ts.map +0 -1
  126. package/dist/spawnError.js.map +0 -1
  127. package/dist/stats.d.ts.map +0 -1
  128. package/dist/stats.js.map +0 -1
  129. package/dist/sync.d.ts.map +0 -1
  130. package/dist/sync.js.map +0 -1
  131. package/dist/taskResult.d.ts.map +0 -1
  132. package/dist/taskResult.js.map +0 -1
  133. package/dist/telemetry.d.ts.map +0 -1
  134. package/dist/telemetry.js.map +0 -1
  135. package/dist/utils.d.ts.map +0 -1
  136. package/dist/utils.js.map +0 -1
package/dist/sync.d.ts CHANGED
@@ -7,35 +7,35 @@ import { z } from 'zod';
7
7
  export declare const VersionedEncryptedValueSchema: z.ZodObject<{
8
8
  version: z.ZodNumber;
9
9
  value: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- value: string;
12
- version: number;
13
- }, {
14
- value: string;
15
- version: number;
16
- }>;
10
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11
+ version: z.ZodNumber;
12
+ value: z.ZodString;
13
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
+ version: z.ZodNumber;
15
+ value: z.ZodString;
16
+ }, z.ZodTypeAny, "passthrough">>;
17
17
  export type VersionedEncryptedValue = z.infer<typeof VersionedEncryptedValueSchema>;
18
18
  export declare const VersionedNullableEncryptedValueSchema: z.ZodObject<{
19
19
  version: z.ZodNumber;
20
20
  value: z.ZodNullable<z.ZodString>;
21
- }, "strip", z.ZodTypeAny, {
22
- value: string | null;
23
- version: number;
24
- }, {
25
- value: string | null;
26
- version: number;
27
- }>;
21
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
22
+ version: z.ZodNumber;
23
+ value: z.ZodNullable<z.ZodString>;
24
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
25
+ version: z.ZodNumber;
26
+ value: z.ZodNullable<z.ZodString>;
27
+ }, z.ZodTypeAny, "passthrough">>;
28
28
  export type VersionedNullableEncryptedValue = z.infer<typeof VersionedNullableEncryptedValueSchema>;
29
29
  export declare const VersionedMachineEncryptedValueSchema: z.ZodObject<{
30
30
  version: z.ZodNumber;
31
31
  value: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- value: string;
34
- version: number;
35
- }, {
36
- value: string;
37
- version: number;
38
- }>;
32
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
+ version: z.ZodNumber;
34
+ value: z.ZodString;
35
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
36
+ version: z.ZodNumber;
37
+ value: z.ZodString;
38
+ }, z.ZodTypeAny, "passthrough">>;
39
39
  export type VersionedMachineEncryptedValue = z.infer<typeof VersionedMachineEncryptedValueSchema>;
40
40
  export declare const UpdateNewMessageBodySchema: z.ZodObject<{
41
41
  t: z.ZodLiteral<"new-message">;
@@ -47,65 +47,153 @@ export declare const UpdateNewMessageBodySchema: z.ZodObject<{
47
47
  content: z.ZodObject<{
48
48
  c: z.ZodString;
49
49
  t: z.ZodEnum<["encrypted", "plaintext"]>;
50
- }, "strip", z.ZodTypeAny, {
51
- t: "encrypted" | "plaintext";
52
- c: string;
53
- }, {
54
- t: "encrypted" | "plaintext";
55
- c: string;
56
- }>;
50
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
51
+ c: z.ZodString;
52
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
53
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
54
+ c: z.ZodString;
55
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
56
+ }, z.ZodTypeAny, "passthrough">>;
57
57
  createdAt: z.ZodNumber;
58
58
  updatedAt: z.ZodNumber;
59
- }, "strip", z.ZodTypeAny, {
60
- id: string;
61
- content: {
62
- t: "encrypted" | "plaintext";
63
- c: string;
64
- };
65
- seq: number;
66
- createdAt: number;
67
- updatedAt: number;
68
- localId?: string | null | undefined;
69
- }, {
70
- id: string;
71
- content: {
72
- t: "encrypted" | "plaintext";
73
- c: string;
74
- };
75
- seq: number;
76
- createdAt: number;
77
- updatedAt: number;
78
- localId?: string | null | undefined;
79
- }>;
80
- }, "strip", z.ZodTypeAny, {
81
- message: {
82
- id: string;
83
- content: {
84
- t: "encrypted" | "plaintext";
85
- c: string;
86
- };
87
- seq: number;
88
- createdAt: number;
89
- updatedAt: number;
90
- localId?: string | null | undefined;
91
- };
92
- t: "new-message";
93
- sid: string;
94
- }, {
95
- message: {
96
- id: string;
97
- content: {
98
- t: "encrypted" | "plaintext";
99
- c: string;
100
- };
101
- seq: number;
102
- createdAt: number;
103
- updatedAt: number;
104
- localId?: string | null | undefined;
105
- };
106
- t: "new-message";
107
- sid: string;
108
- }>;
59
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
60
+ id: z.ZodString;
61
+ seq: z.ZodNumber;
62
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ content: z.ZodObject<{
64
+ c: z.ZodString;
65
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
66
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
67
+ c: z.ZodString;
68
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
69
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
70
+ c: z.ZodString;
71
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
72
+ }, z.ZodTypeAny, "passthrough">>;
73
+ createdAt: z.ZodNumber;
74
+ updatedAt: z.ZodNumber;
75
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
76
+ id: z.ZodString;
77
+ seq: z.ZodNumber;
78
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ content: z.ZodObject<{
80
+ c: z.ZodString;
81
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
82
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83
+ c: z.ZodString;
84
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
85
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
86
+ c: z.ZodString;
87
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
88
+ }, z.ZodTypeAny, "passthrough">>;
89
+ createdAt: z.ZodNumber;
90
+ updatedAt: z.ZodNumber;
91
+ }, z.ZodTypeAny, "passthrough">>;
92
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
93
+ t: z.ZodLiteral<"new-message">;
94
+ sid: z.ZodString;
95
+ message: z.ZodObject<{
96
+ id: z.ZodString;
97
+ seq: z.ZodNumber;
98
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ content: z.ZodObject<{
100
+ c: z.ZodString;
101
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
102
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
103
+ c: z.ZodString;
104
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
105
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
106
+ c: z.ZodString;
107
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
108
+ }, z.ZodTypeAny, "passthrough">>;
109
+ createdAt: z.ZodNumber;
110
+ updatedAt: z.ZodNumber;
111
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
112
+ id: z.ZodString;
113
+ seq: z.ZodNumber;
114
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ content: z.ZodObject<{
116
+ c: z.ZodString;
117
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
118
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
119
+ c: z.ZodString;
120
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
121
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
122
+ c: z.ZodString;
123
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
124
+ }, z.ZodTypeAny, "passthrough">>;
125
+ createdAt: z.ZodNumber;
126
+ updatedAt: z.ZodNumber;
127
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
128
+ id: z.ZodString;
129
+ seq: z.ZodNumber;
130
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ content: z.ZodObject<{
132
+ c: z.ZodString;
133
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
134
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
135
+ c: z.ZodString;
136
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
137
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
138
+ c: z.ZodString;
139
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
140
+ }, z.ZodTypeAny, "passthrough">>;
141
+ createdAt: z.ZodNumber;
142
+ updatedAt: z.ZodNumber;
143
+ }, z.ZodTypeAny, "passthrough">>;
144
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
145
+ t: z.ZodLiteral<"new-message">;
146
+ sid: z.ZodString;
147
+ message: z.ZodObject<{
148
+ id: z.ZodString;
149
+ seq: z.ZodNumber;
150
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ content: z.ZodObject<{
152
+ c: z.ZodString;
153
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
154
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
155
+ c: z.ZodString;
156
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
157
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
158
+ c: z.ZodString;
159
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
160
+ }, z.ZodTypeAny, "passthrough">>;
161
+ createdAt: z.ZodNumber;
162
+ updatedAt: z.ZodNumber;
163
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
164
+ id: z.ZodString;
165
+ seq: z.ZodNumber;
166
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ content: z.ZodObject<{
168
+ c: z.ZodString;
169
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
170
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
171
+ c: z.ZodString;
172
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
173
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
174
+ c: z.ZodString;
175
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
176
+ }, z.ZodTypeAny, "passthrough">>;
177
+ createdAt: z.ZodNumber;
178
+ updatedAt: z.ZodNumber;
179
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
180
+ id: z.ZodString;
181
+ seq: z.ZodNumber;
182
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ content: z.ZodObject<{
184
+ c: z.ZodString;
185
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
186
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
187
+ c: z.ZodString;
188
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
189
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
190
+ c: z.ZodString;
191
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
192
+ }, z.ZodTypeAny, "passthrough">>;
193
+ createdAt: z.ZodNumber;
194
+ updatedAt: z.ZodNumber;
195
+ }, z.ZodTypeAny, "passthrough">>;
196
+ }, z.ZodTypeAny, "passthrough">>;
109
197
  export type UpdateNewMessageBody = z.infer<typeof UpdateNewMessageBodySchema>;
110
198
  export declare const UpdateSessionBodySchema: z.ZodObject<{
111
199
  t: z.ZodLiteral<"update-session">;
@@ -116,63 +204,97 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
116
204
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
205
  version: z.ZodNumber;
118
206
  value: z.ZodString;
119
- }, "strip", z.ZodTypeAny, {
120
- value: string;
121
- version: number;
122
- }, {
123
- value: string;
124
- version: number;
125
- }>>>;
207
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
208
+ version: z.ZodNumber;
209
+ value: z.ZodString;
210
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
211
+ version: z.ZodNumber;
212
+ value: z.ZodString;
213
+ }, z.ZodTypeAny, "passthrough">>>>;
126
214
  agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
127
215
  version: z.ZodNumber;
128
216
  value: z.ZodNullable<z.ZodString>;
129
- }, "strip", z.ZodTypeAny, {
130
- value: string | null;
131
- version: number;
132
- }, {
133
- value: string | null;
134
- version: number;
135
- }>>>;
217
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
218
+ version: z.ZodNumber;
219
+ value: z.ZodNullable<z.ZodString>;
220
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
221
+ version: z.ZodNumber;
222
+ value: z.ZodNullable<z.ZodString>;
223
+ }, z.ZodTypeAny, "passthrough">>>>;
224
+ active: z.ZodOptional<z.ZodBoolean>;
225
+ /** Session source — promoted from 'history' to 'managed' on resume. */
226
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
227
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
228
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
229
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
230
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
232
+ t: z.ZodLiteral<"update-session">;
233
+ id: z.ZodString;
234
+ tag: z.ZodOptional<z.ZodString>;
235
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ machineId: z.ZodOptional<z.ZodString>;
237
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
238
+ version: z.ZodNumber;
239
+ value: z.ZodString;
240
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
241
+ version: z.ZodNumber;
242
+ value: z.ZodString;
243
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
244
+ version: z.ZodNumber;
245
+ value: z.ZodString;
246
+ }, z.ZodTypeAny, "passthrough">>>>;
247
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
248
+ version: z.ZodNumber;
249
+ value: z.ZodNullable<z.ZodString>;
250
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
251
+ version: z.ZodNumber;
252
+ value: z.ZodNullable<z.ZodString>;
253
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
254
+ version: z.ZodNumber;
255
+ value: z.ZodNullable<z.ZodString>;
256
+ }, z.ZodTypeAny, "passthrough">>>>;
257
+ active: z.ZodOptional<z.ZodBoolean>;
258
+ /** Session source — promoted from 'history' to 'managed' on resume. */
259
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
260
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
261
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
262
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
263
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
265
+ t: z.ZodLiteral<"update-session">;
266
+ id: z.ZodString;
267
+ tag: z.ZodOptional<z.ZodString>;
268
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ machineId: z.ZodOptional<z.ZodString>;
270
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
271
+ version: z.ZodNumber;
272
+ value: z.ZodString;
273
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
274
+ version: z.ZodNumber;
275
+ value: z.ZodString;
276
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
277
+ version: z.ZodNumber;
278
+ value: z.ZodString;
279
+ }, z.ZodTypeAny, "passthrough">>>>;
280
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
281
+ version: z.ZodNumber;
282
+ value: z.ZodNullable<z.ZodString>;
283
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
284
+ version: z.ZodNumber;
285
+ value: z.ZodNullable<z.ZodString>;
286
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
287
+ version: z.ZodNumber;
288
+ value: z.ZodNullable<z.ZodString>;
289
+ }, z.ZodTypeAny, "passthrough">>>>;
136
290
  active: z.ZodOptional<z.ZodBoolean>;
137
291
  /** Session source — promoted from 'history' to 'managed' on resume. */
138
292
  source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
293
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
294
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
139
295
  /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
140
296
  dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
- }, "strip", z.ZodTypeAny, {
142
- t: "update-session";
143
- id: string;
144
- machineId?: string | undefined;
145
- source?: "managed" | "history" | "scheduled" | undefined;
146
- displayName?: string | null | undefined;
147
- active?: boolean | undefined;
148
- tag?: string | undefined;
149
- metadata?: {
150
- value: string;
151
- version: number;
152
- } | null | undefined;
153
- agentState?: {
154
- value: string | null;
155
- version: number;
156
- } | null | undefined;
157
- dataEncryptionKey?: string | null | undefined;
158
- }, {
159
- t: "update-session";
160
- id: string;
161
- machineId?: string | undefined;
162
- source?: "managed" | "history" | "scheduled" | undefined;
163
- displayName?: string | null | undefined;
164
- active?: boolean | undefined;
165
- tag?: string | undefined;
166
- metadata?: {
167
- value: string;
168
- version: number;
169
- } | null | undefined;
170
- agentState?: {
171
- value: string | null;
172
- version: number;
173
- } | null | undefined;
174
- dataEncryptionKey?: string | null | undefined;
175
- }>;
297
+ }, z.ZodTypeAny, "passthrough">>;
176
298
  export type UpdateSessionBody = z.infer<typeof UpdateSessionBodySchema>;
177
299
  export declare const UpdateMachineBodySchema: z.ZodObject<{
178
300
  t: z.ZodLiteral<"update-machine">;
@@ -180,23 +302,23 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
180
302
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
181
303
  version: z.ZodNumber;
182
304
  value: z.ZodString;
183
- }, "strip", z.ZodTypeAny, {
184
- value: string;
185
- version: number;
186
- }, {
187
- value: string;
188
- version: number;
189
- }>>>;
305
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
306
+ version: z.ZodNumber;
307
+ value: z.ZodString;
308
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
309
+ version: z.ZodNumber;
310
+ value: z.ZodString;
311
+ }, z.ZodTypeAny, "passthrough">>>>;
190
312
  daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
191
313
  version: z.ZodNumber;
192
314
  value: z.ZodString;
193
- }, "strip", z.ZodTypeAny, {
194
- value: string;
195
- version: number;
196
- }, {
197
- value: string;
198
- version: number;
199
- }>>>;
315
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
316
+ version: z.ZodNumber;
317
+ value: z.ZodString;
318
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
319
+ version: z.ZodNumber;
320
+ value: z.ZodString;
321
+ }, z.ZodTypeAny, "passthrough">>>>;
200
322
  active: z.ZodOptional<z.ZodBoolean>;
201
323
  activeAt: z.ZodOptional<z.ZodNumber>;
202
324
  hostname: z.ZodOptional<z.ZodString>;
@@ -219,8 +341,8 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
219
341
  hidden: z.ZodBoolean;
220
342
  source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
221
343
  }, "strip", z.ZodTypeAny, {
222
- id: string;
223
344
  source: "custom" | "builtin" | "acp" | "env";
345
+ id: string;
224
346
  displayName: string;
225
347
  isDefault: boolean;
226
348
  hidden: boolean;
@@ -241,260 +363,96 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
241
363
  label: string;
242
364
  id: string;
243
365
  }>, "many">>>;
244
- }, "strip", z.ZodTypeAny, {
245
- t: "update-machine";
246
- machineId: string;
247
- availableAgents?: string[] | undefined;
248
- displayName?: string | undefined;
249
- agentModels?: Record<string, {
250
- id: string;
366
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
367
+ t: z.ZodLiteral<"update-machine">;
368
+ machineId: z.ZodString;
369
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
370
+ version: z.ZodNumber;
371
+ value: z.ZodString;
372
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
373
+ version: z.ZodNumber;
374
+ value: z.ZodString;
375
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
376
+ version: z.ZodNumber;
377
+ value: z.ZodString;
378
+ }, z.ZodTypeAny, "passthrough">>>>;
379
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
+ version: z.ZodNumber;
381
+ value: z.ZodString;
382
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
383
+ version: z.ZodNumber;
384
+ value: z.ZodString;
385
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
386
+ version: z.ZodNumber;
387
+ value: z.ZodString;
388
+ }, z.ZodTypeAny, "passthrough">>>>;
389
+ active: z.ZodOptional<z.ZodBoolean>;
390
+ activeAt: z.ZodOptional<z.ZodNumber>;
391
+ hostname: z.ZodOptional<z.ZodString>;
392
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
393
+ arch: z.ZodOptional<z.ZodString>;
394
+ daemonVersion: z.ZodOptional<z.ZodString>;
395
+ displayName: z.ZodOptional<z.ZodString>;
396
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
397
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
399
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
400
+ upgradeError: z.ZodOptional<z.ZodString>;
401
+ superseded: z.ZodOptional<z.ZodBoolean>;
402
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
403
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
404
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
405
+ id: z.ZodString;
406
+ displayName: z.ZodString;
407
+ isDefault: z.ZodBoolean;
408
+ hidden: z.ZodBoolean;
409
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
410
+ }, "strip", z.ZodTypeAny, {
251
411
  source: "custom" | "builtin" | "acp" | "env";
412
+ id: string;
252
413
  displayName: string;
253
414
  isDefault: boolean;
254
415
  hidden: boolean;
255
- }[]> | undefined;
256
- agentModes?: Record<string, {
257
- label: string;
258
- id: string;
259
- }[]> | undefined;
260
- hostname?: string | undefined;
261
- platform?: "darwin" | "linux" | "win32" | undefined;
262
- arch?: string | undefined;
263
- daemonVersion?: string | undefined;
264
- active?: boolean | undefined;
265
- activeAt?: number | undefined;
266
- supportedMethods?: string[] | undefined;
267
- disconnectReason?: "normal" | "upgrade-required" | undefined;
268
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
269
- upgradeError?: string | undefined;
270
- superseded?: boolean | undefined;
271
- derivationVersion?: number | undefined;
272
- autoUpgradeDaemon?: boolean | undefined;
273
- metadata?: {
274
- value: string;
275
- version: number;
276
- } | null | undefined;
277
- daemonState?: {
278
- value: string;
279
- version: number;
280
- } | null | undefined;
281
- }, {
282
- t: "update-machine";
283
- machineId: string;
284
- availableAgents?: string[] | undefined;
285
- displayName?: string | undefined;
286
- agentModels?: Record<string, {
416
+ }, {
287
417
  id: string;
288
418
  displayName: string;
289
419
  isDefault: boolean;
290
420
  hidden: boolean;
291
421
  source?: "custom" | "builtin" | "acp" | "env" | undefined;
292
- }[]> | undefined;
293
- agentModes?: Record<string, {
422
+ }>, "many">>>;
423
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
424
+ id: z.ZodString;
425
+ label: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
294
427
  label: string;
295
428
  id: string;
296
- }[]> | undefined;
297
- hostname?: string | undefined;
298
- platform?: "darwin" | "linux" | "win32" | undefined;
299
- arch?: string | undefined;
300
- daemonVersion?: string | undefined;
301
- active?: boolean | undefined;
302
- activeAt?: number | undefined;
303
- supportedMethods?: string[] | undefined;
304
- disconnectReason?: "normal" | "upgrade-required" | undefined;
305
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
306
- upgradeError?: string | undefined;
307
- superseded?: boolean | undefined;
308
- derivationVersion?: number | undefined;
309
- autoUpgradeDaemon?: boolean | undefined;
310
- metadata?: {
311
- value: string;
312
- version: number;
313
- } | null | undefined;
314
- daemonState?: {
315
- value: string;
316
- version: number;
317
- } | null | undefined;
318
- }>;
319
- export type UpdateMachineBody = z.infer<typeof UpdateMachineBodySchema>;
320
- export declare const UpdateSessionResetBodySchema: z.ZodObject<{
321
- t: z.ZodLiteral<"session-reset">;
322
- sessionId: z.ZodString;
323
- }, "strip", z.ZodTypeAny, {
324
- t: "session-reset";
325
- sessionId: string;
326
- }, {
327
- t: "session-reset";
328
- sessionId: string;
329
- }>;
330
- export type UpdateSessionResetBody = z.infer<typeof UpdateSessionResetBodySchema>;
331
- export declare const UpdateDeleteSessionBodySchema: z.ZodObject<{
332
- t: z.ZodLiteral<"delete-session">;
333
- id: z.ZodString;
334
- }, "strip", z.ZodTypeAny, {
335
- t: "delete-session";
336
- id: string;
337
- }, {
338
- t: "delete-session";
339
- id: string;
340
- }>;
341
- export type UpdateDeleteSessionBody = z.infer<typeof UpdateDeleteSessionBodySchema>;
342
- export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
343
- t: z.ZodLiteral<"new-message">;
344
- sid: z.ZodString;
345
- message: z.ZodObject<{
346
- id: z.ZodString;
347
- seq: z.ZodNumber;
348
- localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
- content: z.ZodObject<{
350
- c: z.ZodString;
351
- t: z.ZodEnum<["encrypted", "plaintext"]>;
352
- }, "strip", z.ZodTypeAny, {
353
- t: "encrypted" | "plaintext";
354
- c: string;
355
- }, {
356
- t: "encrypted" | "plaintext";
357
- c: string;
358
- }>;
359
- createdAt: z.ZodNumber;
360
- updatedAt: z.ZodNumber;
361
- }, "strip", z.ZodTypeAny, {
362
- id: string;
363
- content: {
364
- t: "encrypted" | "plaintext";
365
- c: string;
366
- };
367
- seq: number;
368
- createdAt: number;
369
- updatedAt: number;
370
- localId?: string | null | undefined;
371
429
  }, {
430
+ label: string;
372
431
  id: string;
373
- content: {
374
- t: "encrypted" | "plaintext";
375
- c: string;
376
- };
377
- seq: number;
378
- createdAt: number;
379
- updatedAt: number;
380
- localId?: string | null | undefined;
381
- }>;
382
- }, "strip", z.ZodTypeAny, {
383
- message: {
384
- id: string;
385
- content: {
386
- t: "encrypted" | "plaintext";
387
- c: string;
388
- };
389
- seq: number;
390
- createdAt: number;
391
- updatedAt: number;
392
- localId?: string | null | undefined;
393
- };
394
- t: "new-message";
395
- sid: string;
396
- }, {
397
- message: {
398
- id: string;
399
- content: {
400
- t: "encrypted" | "plaintext";
401
- c: string;
402
- };
403
- seq: number;
404
- createdAt: number;
405
- updatedAt: number;
406
- localId?: string | null | undefined;
407
- };
408
- t: "new-message";
409
- sid: string;
410
- }>, z.ZodObject<{
411
- t: z.ZodLiteral<"update-session">;
412
- id: z.ZodString;
413
- tag: z.ZodOptional<z.ZodString>;
414
- displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
- machineId: z.ZodOptional<z.ZodString>;
432
+ }>, "many">>>;
433
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
434
+ t: z.ZodLiteral<"update-machine">;
435
+ machineId: z.ZodString;
416
436
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
417
437
  version: z.ZodNumber;
418
438
  value: z.ZodString;
419
- }, "strip", z.ZodTypeAny, {
420
- value: string;
421
- version: number;
422
- }, {
423
- value: string;
424
- version: number;
425
- }>>>;
426
- agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
439
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
427
440
  version: z.ZodNumber;
428
- value: z.ZodNullable<z.ZodString>;
429
- }, "strip", z.ZodTypeAny, {
430
- value: string | null;
431
- version: number;
432
- }, {
433
- value: string | null;
434
- version: number;
435
- }>>>;
436
- active: z.ZodOptional<z.ZodBoolean>;
437
- /** Session source — promoted from 'history' to 'managed' on resume. */
438
- source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
439
- /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
440
- dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
- }, "strip", z.ZodTypeAny, {
442
- t: "update-session";
443
- id: string;
444
- machineId?: string | undefined;
445
- source?: "managed" | "history" | "scheduled" | undefined;
446
- displayName?: string | null | undefined;
447
- active?: boolean | undefined;
448
- tag?: string | undefined;
449
- metadata?: {
450
- value: string;
451
- version: number;
452
- } | null | undefined;
453
- agentState?: {
454
- value: string | null;
455
- version: number;
456
- } | null | undefined;
457
- dataEncryptionKey?: string | null | undefined;
458
- }, {
459
- t: "update-session";
460
- id: string;
461
- machineId?: string | undefined;
462
- source?: "managed" | "history" | "scheduled" | undefined;
463
- displayName?: string | null | undefined;
464
- active?: boolean | undefined;
465
- tag?: string | undefined;
466
- metadata?: {
467
- value: string;
468
- version: number;
469
- } | null | undefined;
470
- agentState?: {
471
- value: string | null;
472
- version: number;
473
- } | null | undefined;
474
- dataEncryptionKey?: string | null | undefined;
475
- }>, z.ZodObject<{
476
- t: z.ZodLiteral<"update-machine">;
477
- machineId: z.ZodString;
478
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
441
+ value: z.ZodString;
442
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
479
443
  version: z.ZodNumber;
480
444
  value: z.ZodString;
481
- }, "strip", z.ZodTypeAny, {
482
- value: string;
483
- version: number;
484
- }, {
485
- value: string;
486
- version: number;
487
- }>>>;
445
+ }, z.ZodTypeAny, "passthrough">>>>;
488
446
  daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
489
447
  version: z.ZodNumber;
490
448
  value: z.ZodString;
491
- }, "strip", z.ZodTypeAny, {
492
- value: string;
493
- version: number;
494
- }, {
495
- value: string;
496
- version: number;
497
- }>>>;
449
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
450
+ version: z.ZodNumber;
451
+ value: z.ZodString;
452
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
453
+ version: z.ZodNumber;
454
+ value: z.ZodString;
455
+ }, z.ZodTypeAny, "passthrough">>>>;
498
456
  active: z.ZodOptional<z.ZodBoolean>;
499
457
  activeAt: z.ZodOptional<z.ZodNumber>;
500
458
  hostname: z.ZodOptional<z.ZodString>;
@@ -517,8 +475,8 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
517
475
  hidden: z.ZodBoolean;
518
476
  source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
519
477
  }, "strip", z.ZodTypeAny, {
520
- id: string;
521
478
  source: "custom" | "builtin" | "acp" | "env";
479
+ id: string;
522
480
  displayName: string;
523
481
  isDefault: boolean;
524
482
  hidden: boolean;
@@ -539,104 +497,1572 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
539
497
  label: string;
540
498
  id: string;
541
499
  }>, "many">>>;
542
- }, "strip", z.ZodTypeAny, {
543
- t: "update-machine";
544
- machineId: string;
545
- availableAgents?: string[] | undefined;
546
- displayName?: string | undefined;
547
- agentModels?: Record<string, {
548
- id: string;
549
- source: "custom" | "builtin" | "acp" | "env";
550
- displayName: string;
551
- isDefault: boolean;
552
- hidden: boolean;
553
- }[]> | undefined;
554
- agentModes?: Record<string, {
555
- label: string;
556
- id: string;
557
- }[]> | undefined;
558
- hostname?: string | undefined;
559
- platform?: "darwin" | "linux" | "win32" | undefined;
560
- arch?: string | undefined;
561
- daemonVersion?: string | undefined;
562
- active?: boolean | undefined;
563
- activeAt?: number | undefined;
564
- supportedMethods?: string[] | undefined;
565
- disconnectReason?: "normal" | "upgrade-required" | undefined;
566
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
567
- upgradeError?: string | undefined;
568
- superseded?: boolean | undefined;
569
- derivationVersion?: number | undefined;
570
- autoUpgradeDaemon?: boolean | undefined;
571
- metadata?: {
572
- value: string;
573
- version: number;
574
- } | null | undefined;
575
- daemonState?: {
576
- value: string;
577
- version: number;
578
- } | null | undefined;
579
- }, {
580
- t: "update-machine";
581
- machineId: string;
582
- availableAgents?: string[] | undefined;
583
- displayName?: string | undefined;
584
- agentModels?: Record<string, {
585
- id: string;
586
- displayName: string;
587
- isDefault: boolean;
588
- hidden: boolean;
589
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
590
- }[]> | undefined;
591
- agentModes?: Record<string, {
592
- label: string;
593
- id: string;
594
- }[]> | undefined;
595
- hostname?: string | undefined;
596
- platform?: "darwin" | "linux" | "win32" | undefined;
597
- arch?: string | undefined;
598
- daemonVersion?: string | undefined;
599
- active?: boolean | undefined;
600
- activeAt?: number | undefined;
601
- supportedMethods?: string[] | undefined;
602
- disconnectReason?: "normal" | "upgrade-required" | undefined;
603
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
604
- upgradeError?: string | undefined;
605
- superseded?: boolean | undefined;
606
- derivationVersion?: number | undefined;
607
- autoUpgradeDaemon?: boolean | undefined;
608
- metadata?: {
609
- value: string;
610
- version: number;
611
- } | null | undefined;
612
- daemonState?: {
613
- value: string;
614
- version: number;
615
- } | null | undefined;
616
- }>, z.ZodObject<{
500
+ }, z.ZodTypeAny, "passthrough">>;
501
+ export type UpdateMachineBody = z.infer<typeof UpdateMachineBodySchema>;
502
+ export declare const UpdateSessionResetBodySchema: z.ZodObject<{
503
+ t: z.ZodLiteral<"session-reset">;
504
+ sessionId: z.ZodString;
505
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
506
+ t: z.ZodLiteral<"session-reset">;
507
+ sessionId: z.ZodString;
508
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
617
509
  t: z.ZodLiteral<"session-reset">;
618
510
  sessionId: z.ZodString;
619
- }, "strip", z.ZodTypeAny, {
620
- t: "session-reset";
621
- sessionId: string;
622
- }, {
623
- t: "session-reset";
624
- sessionId: string;
625
- }>, z.ZodObject<{
511
+ }, z.ZodTypeAny, "passthrough">>;
512
+ export type UpdateSessionResetBody = z.infer<typeof UpdateSessionResetBodySchema>;
513
+ export declare const UpdateDeleteSessionBodySchema: z.ZodObject<{
626
514
  t: z.ZodLiteral<"delete-session">;
627
515
  id: z.ZodString;
628
- }, "strip", z.ZodTypeAny, {
629
- t: "delete-session";
630
- id: string;
631
- }, {
632
- t: "delete-session";
633
- id: string;
634
- }>]>;
635
- export type CoreUpdateBody = z.infer<typeof CoreUpdateBodySchema>;
636
- export declare const CoreUpdateContainerSchema: z.ZodObject<{
516
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
517
+ t: z.ZodLiteral<"delete-session">;
637
518
  id: z.ZodString;
638
- seq: z.ZodNumber;
639
- body: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
519
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
520
+ t: z.ZodLiteral<"delete-session">;
521
+ id: z.ZodString;
522
+ }, z.ZodTypeAny, "passthrough">>;
523
+ export type UpdateDeleteSessionBody = z.infer<typeof UpdateDeleteSessionBodySchema>;
524
+ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
525
+ t: z.ZodLiteral<"new-message">;
526
+ sid: z.ZodString;
527
+ message: z.ZodObject<{
528
+ id: z.ZodString;
529
+ seq: z.ZodNumber;
530
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ content: z.ZodObject<{
532
+ c: z.ZodString;
533
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
534
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
535
+ c: z.ZodString;
536
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
537
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
538
+ c: z.ZodString;
539
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
540
+ }, z.ZodTypeAny, "passthrough">>;
541
+ createdAt: z.ZodNumber;
542
+ updatedAt: z.ZodNumber;
543
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
544
+ id: z.ZodString;
545
+ seq: z.ZodNumber;
546
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ content: z.ZodObject<{
548
+ c: z.ZodString;
549
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
550
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
551
+ c: z.ZodString;
552
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
553
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
554
+ c: z.ZodString;
555
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
556
+ }, z.ZodTypeAny, "passthrough">>;
557
+ createdAt: z.ZodNumber;
558
+ updatedAt: z.ZodNumber;
559
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
560
+ id: z.ZodString;
561
+ seq: z.ZodNumber;
562
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ content: z.ZodObject<{
564
+ c: z.ZodString;
565
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
566
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
567
+ c: z.ZodString;
568
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
569
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
570
+ c: z.ZodString;
571
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
572
+ }, z.ZodTypeAny, "passthrough">>;
573
+ createdAt: z.ZodNumber;
574
+ updatedAt: z.ZodNumber;
575
+ }, z.ZodTypeAny, "passthrough">>;
576
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
577
+ t: z.ZodLiteral<"new-message">;
578
+ sid: z.ZodString;
579
+ message: z.ZodObject<{
580
+ id: z.ZodString;
581
+ seq: z.ZodNumber;
582
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
583
+ content: z.ZodObject<{
584
+ c: z.ZodString;
585
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
586
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
587
+ c: z.ZodString;
588
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
589
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
590
+ c: z.ZodString;
591
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
592
+ }, z.ZodTypeAny, "passthrough">>;
593
+ createdAt: z.ZodNumber;
594
+ updatedAt: z.ZodNumber;
595
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
596
+ id: z.ZodString;
597
+ seq: z.ZodNumber;
598
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ content: z.ZodObject<{
600
+ c: z.ZodString;
601
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
602
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
603
+ c: z.ZodString;
604
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
605
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
606
+ c: z.ZodString;
607
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
608
+ }, z.ZodTypeAny, "passthrough">>;
609
+ createdAt: z.ZodNumber;
610
+ updatedAt: z.ZodNumber;
611
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
612
+ id: z.ZodString;
613
+ seq: z.ZodNumber;
614
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ content: z.ZodObject<{
616
+ c: z.ZodString;
617
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
618
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
619
+ c: z.ZodString;
620
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
621
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
622
+ c: z.ZodString;
623
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
624
+ }, z.ZodTypeAny, "passthrough">>;
625
+ createdAt: z.ZodNumber;
626
+ updatedAt: z.ZodNumber;
627
+ }, z.ZodTypeAny, "passthrough">>;
628
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
629
+ t: z.ZodLiteral<"new-message">;
630
+ sid: z.ZodString;
631
+ message: z.ZodObject<{
632
+ id: z.ZodString;
633
+ seq: z.ZodNumber;
634
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ content: z.ZodObject<{
636
+ c: z.ZodString;
637
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
638
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
639
+ c: z.ZodString;
640
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
641
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
642
+ c: z.ZodString;
643
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
644
+ }, z.ZodTypeAny, "passthrough">>;
645
+ createdAt: z.ZodNumber;
646
+ updatedAt: z.ZodNumber;
647
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
648
+ id: z.ZodString;
649
+ seq: z.ZodNumber;
650
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
+ content: z.ZodObject<{
652
+ c: z.ZodString;
653
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
654
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
655
+ c: z.ZodString;
656
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
657
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
658
+ c: z.ZodString;
659
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
660
+ }, z.ZodTypeAny, "passthrough">>;
661
+ createdAt: z.ZodNumber;
662
+ updatedAt: z.ZodNumber;
663
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
664
+ id: z.ZodString;
665
+ seq: z.ZodNumber;
666
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
667
+ content: z.ZodObject<{
668
+ c: z.ZodString;
669
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
670
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
671
+ c: z.ZodString;
672
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
673
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
674
+ c: z.ZodString;
675
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
676
+ }, z.ZodTypeAny, "passthrough">>;
677
+ createdAt: z.ZodNumber;
678
+ updatedAt: z.ZodNumber;
679
+ }, z.ZodTypeAny, "passthrough">>;
680
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
681
+ t: z.ZodLiteral<"update-session">;
682
+ id: z.ZodString;
683
+ tag: z.ZodOptional<z.ZodString>;
684
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ machineId: z.ZodOptional<z.ZodString>;
686
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
687
+ version: z.ZodNumber;
688
+ value: z.ZodString;
689
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
690
+ version: z.ZodNumber;
691
+ value: z.ZodString;
692
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
693
+ version: z.ZodNumber;
694
+ value: z.ZodString;
695
+ }, z.ZodTypeAny, "passthrough">>>>;
696
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
697
+ version: z.ZodNumber;
698
+ value: z.ZodNullable<z.ZodString>;
699
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
700
+ version: z.ZodNumber;
701
+ value: z.ZodNullable<z.ZodString>;
702
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
703
+ version: z.ZodNumber;
704
+ value: z.ZodNullable<z.ZodString>;
705
+ }, z.ZodTypeAny, "passthrough">>>>;
706
+ active: z.ZodOptional<z.ZodBoolean>;
707
+ /** Session source — promoted from 'history' to 'managed' on resume. */
708
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
709
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
710
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
711
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
712
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
713
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
714
+ t: z.ZodLiteral<"update-session">;
715
+ id: z.ZodString;
716
+ tag: z.ZodOptional<z.ZodString>;
717
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
718
+ machineId: z.ZodOptional<z.ZodString>;
719
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
720
+ version: z.ZodNumber;
721
+ value: z.ZodString;
722
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
723
+ version: z.ZodNumber;
724
+ value: z.ZodString;
725
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
726
+ version: z.ZodNumber;
727
+ value: z.ZodString;
728
+ }, z.ZodTypeAny, "passthrough">>>>;
729
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
730
+ version: z.ZodNumber;
731
+ value: z.ZodNullable<z.ZodString>;
732
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
733
+ version: z.ZodNumber;
734
+ value: z.ZodNullable<z.ZodString>;
735
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
736
+ version: z.ZodNumber;
737
+ value: z.ZodNullable<z.ZodString>;
738
+ }, z.ZodTypeAny, "passthrough">>>>;
739
+ active: z.ZodOptional<z.ZodBoolean>;
740
+ /** Session source — promoted from 'history' to 'managed' on resume. */
741
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
742
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
743
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
744
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
745
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
747
+ t: z.ZodLiteral<"update-session">;
748
+ id: z.ZodString;
749
+ tag: z.ZodOptional<z.ZodString>;
750
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
+ machineId: z.ZodOptional<z.ZodString>;
752
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
753
+ version: z.ZodNumber;
754
+ value: z.ZodString;
755
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
756
+ version: z.ZodNumber;
757
+ value: z.ZodString;
758
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
759
+ version: z.ZodNumber;
760
+ value: z.ZodString;
761
+ }, z.ZodTypeAny, "passthrough">>>>;
762
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
763
+ version: z.ZodNumber;
764
+ value: z.ZodNullable<z.ZodString>;
765
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
766
+ version: z.ZodNumber;
767
+ value: z.ZodNullable<z.ZodString>;
768
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
769
+ version: z.ZodNumber;
770
+ value: z.ZodNullable<z.ZodString>;
771
+ }, z.ZodTypeAny, "passthrough">>>>;
772
+ active: z.ZodOptional<z.ZodBoolean>;
773
+ /** Session source — promoted from 'history' to 'managed' on resume. */
774
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
775
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
776
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
777
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
778
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
780
+ t: z.ZodLiteral<"update-machine">;
781
+ machineId: z.ZodString;
782
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
783
+ version: z.ZodNumber;
784
+ value: z.ZodString;
785
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
786
+ version: z.ZodNumber;
787
+ value: z.ZodString;
788
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
789
+ version: z.ZodNumber;
790
+ value: z.ZodString;
791
+ }, z.ZodTypeAny, "passthrough">>>>;
792
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
793
+ version: z.ZodNumber;
794
+ value: z.ZodString;
795
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
796
+ version: z.ZodNumber;
797
+ value: z.ZodString;
798
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
799
+ version: z.ZodNumber;
800
+ value: z.ZodString;
801
+ }, z.ZodTypeAny, "passthrough">>>>;
802
+ active: z.ZodOptional<z.ZodBoolean>;
803
+ activeAt: z.ZodOptional<z.ZodNumber>;
804
+ hostname: z.ZodOptional<z.ZodString>;
805
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
806
+ arch: z.ZodOptional<z.ZodString>;
807
+ daemonVersion: z.ZodOptional<z.ZodString>;
808
+ displayName: z.ZodOptional<z.ZodString>;
809
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
810
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
811
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
812
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
813
+ upgradeError: z.ZodOptional<z.ZodString>;
814
+ superseded: z.ZodOptional<z.ZodBoolean>;
815
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
816
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
817
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
818
+ id: z.ZodString;
819
+ displayName: z.ZodString;
820
+ isDefault: z.ZodBoolean;
821
+ hidden: z.ZodBoolean;
822
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
823
+ }, "strip", z.ZodTypeAny, {
824
+ source: "custom" | "builtin" | "acp" | "env";
825
+ id: string;
826
+ displayName: string;
827
+ isDefault: boolean;
828
+ hidden: boolean;
829
+ }, {
830
+ id: string;
831
+ displayName: string;
832
+ isDefault: boolean;
833
+ hidden: boolean;
834
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
835
+ }>, "many">>>;
836
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
837
+ id: z.ZodString;
838
+ label: z.ZodString;
839
+ }, "strip", z.ZodTypeAny, {
840
+ label: string;
841
+ id: string;
842
+ }, {
843
+ label: string;
844
+ id: string;
845
+ }>, "many">>>;
846
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
847
+ t: z.ZodLiteral<"update-machine">;
848
+ machineId: z.ZodString;
849
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
850
+ version: z.ZodNumber;
851
+ value: z.ZodString;
852
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
853
+ version: z.ZodNumber;
854
+ value: z.ZodString;
855
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
856
+ version: z.ZodNumber;
857
+ value: z.ZodString;
858
+ }, z.ZodTypeAny, "passthrough">>>>;
859
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
860
+ version: z.ZodNumber;
861
+ value: z.ZodString;
862
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
863
+ version: z.ZodNumber;
864
+ value: z.ZodString;
865
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
866
+ version: z.ZodNumber;
867
+ value: z.ZodString;
868
+ }, z.ZodTypeAny, "passthrough">>>>;
869
+ active: z.ZodOptional<z.ZodBoolean>;
870
+ activeAt: z.ZodOptional<z.ZodNumber>;
871
+ hostname: z.ZodOptional<z.ZodString>;
872
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
873
+ arch: z.ZodOptional<z.ZodString>;
874
+ daemonVersion: z.ZodOptional<z.ZodString>;
875
+ displayName: z.ZodOptional<z.ZodString>;
876
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
877
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
878
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
879
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
880
+ upgradeError: z.ZodOptional<z.ZodString>;
881
+ superseded: z.ZodOptional<z.ZodBoolean>;
882
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
883
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
884
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
885
+ id: z.ZodString;
886
+ displayName: z.ZodString;
887
+ isDefault: z.ZodBoolean;
888
+ hidden: z.ZodBoolean;
889
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ source: "custom" | "builtin" | "acp" | "env";
892
+ id: string;
893
+ displayName: string;
894
+ isDefault: boolean;
895
+ hidden: boolean;
896
+ }, {
897
+ id: string;
898
+ displayName: string;
899
+ isDefault: boolean;
900
+ hidden: boolean;
901
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
902
+ }>, "many">>>;
903
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
904
+ id: z.ZodString;
905
+ label: z.ZodString;
906
+ }, "strip", z.ZodTypeAny, {
907
+ label: string;
908
+ id: string;
909
+ }, {
910
+ label: string;
911
+ id: string;
912
+ }>, "many">>>;
913
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
914
+ t: z.ZodLiteral<"update-machine">;
915
+ machineId: z.ZodString;
916
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
917
+ version: z.ZodNumber;
918
+ value: z.ZodString;
919
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
920
+ version: z.ZodNumber;
921
+ value: z.ZodString;
922
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
923
+ version: z.ZodNumber;
924
+ value: z.ZodString;
925
+ }, z.ZodTypeAny, "passthrough">>>>;
926
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
927
+ version: z.ZodNumber;
928
+ value: z.ZodString;
929
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
930
+ version: z.ZodNumber;
931
+ value: z.ZodString;
932
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
933
+ version: z.ZodNumber;
934
+ value: z.ZodString;
935
+ }, z.ZodTypeAny, "passthrough">>>>;
936
+ active: z.ZodOptional<z.ZodBoolean>;
937
+ activeAt: z.ZodOptional<z.ZodNumber>;
938
+ hostname: z.ZodOptional<z.ZodString>;
939
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
940
+ arch: z.ZodOptional<z.ZodString>;
941
+ daemonVersion: z.ZodOptional<z.ZodString>;
942
+ displayName: z.ZodOptional<z.ZodString>;
943
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
944
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
945
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
946
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
947
+ upgradeError: z.ZodOptional<z.ZodString>;
948
+ superseded: z.ZodOptional<z.ZodBoolean>;
949
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
950
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
951
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
952
+ id: z.ZodString;
953
+ displayName: z.ZodString;
954
+ isDefault: z.ZodBoolean;
955
+ hidden: z.ZodBoolean;
956
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ source: "custom" | "builtin" | "acp" | "env";
959
+ id: string;
960
+ displayName: string;
961
+ isDefault: boolean;
962
+ hidden: boolean;
963
+ }, {
964
+ id: string;
965
+ displayName: string;
966
+ isDefault: boolean;
967
+ hidden: boolean;
968
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
969
+ }>, "many">>>;
970
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
971
+ id: z.ZodString;
972
+ label: z.ZodString;
973
+ }, "strip", z.ZodTypeAny, {
974
+ label: string;
975
+ id: string;
976
+ }, {
977
+ label: string;
978
+ id: string;
979
+ }>, "many">>>;
980
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
981
+ t: z.ZodLiteral<"session-reset">;
982
+ sessionId: z.ZodString;
983
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
984
+ t: z.ZodLiteral<"session-reset">;
985
+ sessionId: z.ZodString;
986
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
987
+ t: z.ZodLiteral<"session-reset">;
988
+ sessionId: z.ZodString;
989
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
990
+ t: z.ZodLiteral<"delete-session">;
991
+ id: z.ZodString;
992
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
993
+ t: z.ZodLiteral<"delete-session">;
994
+ id: z.ZodString;
995
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
996
+ t: z.ZodLiteral<"delete-session">;
997
+ id: z.ZodString;
998
+ }, z.ZodTypeAny, "passthrough">>]>;
999
+ export type CoreUpdateBody = z.infer<typeof CoreUpdateBodySchema>;
1000
+ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1001
+ id: z.ZodString;
1002
+ seq: z.ZodNumber;
1003
+ body: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
1004
+ t: z.ZodLiteral<"new-message">;
1005
+ sid: z.ZodString;
1006
+ message: z.ZodObject<{
1007
+ id: z.ZodString;
1008
+ seq: z.ZodNumber;
1009
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ content: z.ZodObject<{
1011
+ c: z.ZodString;
1012
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1013
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1014
+ c: z.ZodString;
1015
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1016
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1017
+ c: z.ZodString;
1018
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1019
+ }, z.ZodTypeAny, "passthrough">>;
1020
+ createdAt: z.ZodNumber;
1021
+ updatedAt: z.ZodNumber;
1022
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1023
+ id: z.ZodString;
1024
+ seq: z.ZodNumber;
1025
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1026
+ content: z.ZodObject<{
1027
+ c: z.ZodString;
1028
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1029
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1030
+ c: z.ZodString;
1031
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1032
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1033
+ c: z.ZodString;
1034
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1035
+ }, z.ZodTypeAny, "passthrough">>;
1036
+ createdAt: z.ZodNumber;
1037
+ updatedAt: z.ZodNumber;
1038
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1039
+ id: z.ZodString;
1040
+ seq: z.ZodNumber;
1041
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
+ content: z.ZodObject<{
1043
+ c: z.ZodString;
1044
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1045
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1046
+ c: z.ZodString;
1047
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1048
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1049
+ c: z.ZodString;
1050
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1051
+ }, z.ZodTypeAny, "passthrough">>;
1052
+ createdAt: z.ZodNumber;
1053
+ updatedAt: z.ZodNumber;
1054
+ }, z.ZodTypeAny, "passthrough">>;
1055
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1056
+ t: z.ZodLiteral<"new-message">;
1057
+ sid: z.ZodString;
1058
+ message: z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ seq: z.ZodNumber;
1061
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1062
+ content: z.ZodObject<{
1063
+ c: z.ZodString;
1064
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1065
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1066
+ c: z.ZodString;
1067
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1068
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1069
+ c: z.ZodString;
1070
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1071
+ }, z.ZodTypeAny, "passthrough">>;
1072
+ createdAt: z.ZodNumber;
1073
+ updatedAt: z.ZodNumber;
1074
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1075
+ id: z.ZodString;
1076
+ seq: z.ZodNumber;
1077
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1078
+ content: z.ZodObject<{
1079
+ c: z.ZodString;
1080
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1081
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1082
+ c: z.ZodString;
1083
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1084
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1085
+ c: z.ZodString;
1086
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1087
+ }, z.ZodTypeAny, "passthrough">>;
1088
+ createdAt: z.ZodNumber;
1089
+ updatedAt: z.ZodNumber;
1090
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1091
+ id: z.ZodString;
1092
+ seq: z.ZodNumber;
1093
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1094
+ content: z.ZodObject<{
1095
+ c: z.ZodString;
1096
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1097
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1098
+ c: z.ZodString;
1099
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1100
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1101
+ c: z.ZodString;
1102
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1103
+ }, z.ZodTypeAny, "passthrough">>;
1104
+ createdAt: z.ZodNumber;
1105
+ updatedAt: z.ZodNumber;
1106
+ }, z.ZodTypeAny, "passthrough">>;
1107
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1108
+ t: z.ZodLiteral<"new-message">;
1109
+ sid: z.ZodString;
1110
+ message: z.ZodObject<{
1111
+ id: z.ZodString;
1112
+ seq: z.ZodNumber;
1113
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1114
+ content: z.ZodObject<{
1115
+ c: z.ZodString;
1116
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1117
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1118
+ c: z.ZodString;
1119
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1120
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1121
+ c: z.ZodString;
1122
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1123
+ }, z.ZodTypeAny, "passthrough">>;
1124
+ createdAt: z.ZodNumber;
1125
+ updatedAt: z.ZodNumber;
1126
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1127
+ id: z.ZodString;
1128
+ seq: z.ZodNumber;
1129
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1130
+ content: z.ZodObject<{
1131
+ c: z.ZodString;
1132
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1133
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1134
+ c: z.ZodString;
1135
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1136
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1137
+ c: z.ZodString;
1138
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1139
+ }, z.ZodTypeAny, "passthrough">>;
1140
+ createdAt: z.ZodNumber;
1141
+ updatedAt: z.ZodNumber;
1142
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1143
+ id: z.ZodString;
1144
+ seq: z.ZodNumber;
1145
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ content: z.ZodObject<{
1147
+ c: z.ZodString;
1148
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1149
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1150
+ c: z.ZodString;
1151
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1152
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1153
+ c: z.ZodString;
1154
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1155
+ }, z.ZodTypeAny, "passthrough">>;
1156
+ createdAt: z.ZodNumber;
1157
+ updatedAt: z.ZodNumber;
1158
+ }, z.ZodTypeAny, "passthrough">>;
1159
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1160
+ t: z.ZodLiteral<"update-session">;
1161
+ id: z.ZodString;
1162
+ tag: z.ZodOptional<z.ZodString>;
1163
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1164
+ machineId: z.ZodOptional<z.ZodString>;
1165
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1166
+ version: z.ZodNumber;
1167
+ value: z.ZodString;
1168
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1169
+ version: z.ZodNumber;
1170
+ value: z.ZodString;
1171
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1172
+ version: z.ZodNumber;
1173
+ value: z.ZodString;
1174
+ }, z.ZodTypeAny, "passthrough">>>>;
1175
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1176
+ version: z.ZodNumber;
1177
+ value: z.ZodNullable<z.ZodString>;
1178
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1179
+ version: z.ZodNumber;
1180
+ value: z.ZodNullable<z.ZodString>;
1181
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1182
+ version: z.ZodNumber;
1183
+ value: z.ZodNullable<z.ZodString>;
1184
+ }, z.ZodTypeAny, "passthrough">>>>;
1185
+ active: z.ZodOptional<z.ZodBoolean>;
1186
+ /** Session source — promoted from 'history' to 'managed' on resume. */
1187
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
1188
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
1189
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1190
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
1191
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1193
+ t: z.ZodLiteral<"update-session">;
1194
+ id: z.ZodString;
1195
+ tag: z.ZodOptional<z.ZodString>;
1196
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1197
+ machineId: z.ZodOptional<z.ZodString>;
1198
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1199
+ version: z.ZodNumber;
1200
+ value: z.ZodString;
1201
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1202
+ version: z.ZodNumber;
1203
+ value: z.ZodString;
1204
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1205
+ version: z.ZodNumber;
1206
+ value: z.ZodString;
1207
+ }, z.ZodTypeAny, "passthrough">>>>;
1208
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1209
+ version: z.ZodNumber;
1210
+ value: z.ZodNullable<z.ZodString>;
1211
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1212
+ version: z.ZodNumber;
1213
+ value: z.ZodNullable<z.ZodString>;
1214
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1215
+ version: z.ZodNumber;
1216
+ value: z.ZodNullable<z.ZodString>;
1217
+ }, z.ZodTypeAny, "passthrough">>>>;
1218
+ active: z.ZodOptional<z.ZodBoolean>;
1219
+ /** Session source — promoted from 'history' to 'managed' on resume. */
1220
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
1221
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
1222
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1223
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
1224
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1225
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1226
+ t: z.ZodLiteral<"update-session">;
1227
+ id: z.ZodString;
1228
+ tag: z.ZodOptional<z.ZodString>;
1229
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
+ machineId: z.ZodOptional<z.ZodString>;
1231
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1232
+ version: z.ZodNumber;
1233
+ value: z.ZodString;
1234
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1235
+ version: z.ZodNumber;
1236
+ value: z.ZodString;
1237
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1238
+ version: z.ZodNumber;
1239
+ value: z.ZodString;
1240
+ }, z.ZodTypeAny, "passthrough">>>>;
1241
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1242
+ version: z.ZodNumber;
1243
+ value: z.ZodNullable<z.ZodString>;
1244
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1245
+ version: z.ZodNumber;
1246
+ value: z.ZodNullable<z.ZodString>;
1247
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1248
+ version: z.ZodNumber;
1249
+ value: z.ZodNullable<z.ZodString>;
1250
+ }, z.ZodTypeAny, "passthrough">>>>;
1251
+ active: z.ZodOptional<z.ZodBoolean>;
1252
+ /** Session source — promoted from 'history' to 'managed' on resume. */
1253
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
1254
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
1255
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1256
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
1257
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1258
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1259
+ t: z.ZodLiteral<"update-machine">;
1260
+ machineId: z.ZodString;
1261
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1262
+ version: z.ZodNumber;
1263
+ value: z.ZodString;
1264
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1265
+ version: z.ZodNumber;
1266
+ value: z.ZodString;
1267
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1268
+ version: z.ZodNumber;
1269
+ value: z.ZodString;
1270
+ }, z.ZodTypeAny, "passthrough">>>>;
1271
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1272
+ version: z.ZodNumber;
1273
+ value: z.ZodString;
1274
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1275
+ version: z.ZodNumber;
1276
+ value: z.ZodString;
1277
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1278
+ version: z.ZodNumber;
1279
+ value: z.ZodString;
1280
+ }, z.ZodTypeAny, "passthrough">>>>;
1281
+ active: z.ZodOptional<z.ZodBoolean>;
1282
+ activeAt: z.ZodOptional<z.ZodNumber>;
1283
+ hostname: z.ZodOptional<z.ZodString>;
1284
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
1285
+ arch: z.ZodOptional<z.ZodString>;
1286
+ daemonVersion: z.ZodOptional<z.ZodString>;
1287
+ displayName: z.ZodOptional<z.ZodString>;
1288
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1289
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1290
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
1291
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
1292
+ upgradeError: z.ZodOptional<z.ZodString>;
1293
+ superseded: z.ZodOptional<z.ZodBoolean>;
1294
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
1295
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
1296
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1297
+ id: z.ZodString;
1298
+ displayName: z.ZodString;
1299
+ isDefault: z.ZodBoolean;
1300
+ hidden: z.ZodBoolean;
1301
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ source: "custom" | "builtin" | "acp" | "env";
1304
+ id: string;
1305
+ displayName: string;
1306
+ isDefault: boolean;
1307
+ hidden: boolean;
1308
+ }, {
1309
+ id: string;
1310
+ displayName: string;
1311
+ isDefault: boolean;
1312
+ hidden: boolean;
1313
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
1314
+ }>, "many">>>;
1315
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1316
+ id: z.ZodString;
1317
+ label: z.ZodString;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ label: string;
1320
+ id: string;
1321
+ }, {
1322
+ label: string;
1323
+ id: string;
1324
+ }>, "many">>>;
1325
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1326
+ t: z.ZodLiteral<"update-machine">;
1327
+ machineId: z.ZodString;
1328
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1329
+ version: z.ZodNumber;
1330
+ value: z.ZodString;
1331
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1332
+ version: z.ZodNumber;
1333
+ value: z.ZodString;
1334
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1335
+ version: z.ZodNumber;
1336
+ value: z.ZodString;
1337
+ }, z.ZodTypeAny, "passthrough">>>>;
1338
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1339
+ version: z.ZodNumber;
1340
+ value: z.ZodString;
1341
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1342
+ version: z.ZodNumber;
1343
+ value: z.ZodString;
1344
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1345
+ version: z.ZodNumber;
1346
+ value: z.ZodString;
1347
+ }, z.ZodTypeAny, "passthrough">>>>;
1348
+ active: z.ZodOptional<z.ZodBoolean>;
1349
+ activeAt: z.ZodOptional<z.ZodNumber>;
1350
+ hostname: z.ZodOptional<z.ZodString>;
1351
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
1352
+ arch: z.ZodOptional<z.ZodString>;
1353
+ daemonVersion: z.ZodOptional<z.ZodString>;
1354
+ displayName: z.ZodOptional<z.ZodString>;
1355
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1356
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
1358
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
1359
+ upgradeError: z.ZodOptional<z.ZodString>;
1360
+ superseded: z.ZodOptional<z.ZodBoolean>;
1361
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
1362
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
1363
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1364
+ id: z.ZodString;
1365
+ displayName: z.ZodString;
1366
+ isDefault: z.ZodBoolean;
1367
+ hidden: z.ZodBoolean;
1368
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ source: "custom" | "builtin" | "acp" | "env";
1371
+ id: string;
1372
+ displayName: string;
1373
+ isDefault: boolean;
1374
+ hidden: boolean;
1375
+ }, {
1376
+ id: string;
1377
+ displayName: string;
1378
+ isDefault: boolean;
1379
+ hidden: boolean;
1380
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
1381
+ }>, "many">>>;
1382
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1383
+ id: z.ZodString;
1384
+ label: z.ZodString;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ label: string;
1387
+ id: string;
1388
+ }, {
1389
+ label: string;
1390
+ id: string;
1391
+ }>, "many">>>;
1392
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1393
+ t: z.ZodLiteral<"update-machine">;
1394
+ machineId: z.ZodString;
1395
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1396
+ version: z.ZodNumber;
1397
+ value: z.ZodString;
1398
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1399
+ version: z.ZodNumber;
1400
+ value: z.ZodString;
1401
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1402
+ version: z.ZodNumber;
1403
+ value: z.ZodString;
1404
+ }, z.ZodTypeAny, "passthrough">>>>;
1405
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1406
+ version: z.ZodNumber;
1407
+ value: z.ZodString;
1408
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1409
+ version: z.ZodNumber;
1410
+ value: z.ZodString;
1411
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1412
+ version: z.ZodNumber;
1413
+ value: z.ZodString;
1414
+ }, z.ZodTypeAny, "passthrough">>>>;
1415
+ active: z.ZodOptional<z.ZodBoolean>;
1416
+ activeAt: z.ZodOptional<z.ZodNumber>;
1417
+ hostname: z.ZodOptional<z.ZodString>;
1418
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
1419
+ arch: z.ZodOptional<z.ZodString>;
1420
+ daemonVersion: z.ZodOptional<z.ZodString>;
1421
+ displayName: z.ZodOptional<z.ZodString>;
1422
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1423
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1424
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
1425
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
1426
+ upgradeError: z.ZodOptional<z.ZodString>;
1427
+ superseded: z.ZodOptional<z.ZodBoolean>;
1428
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
1429
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
1430
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1431
+ id: z.ZodString;
1432
+ displayName: z.ZodString;
1433
+ isDefault: z.ZodBoolean;
1434
+ hidden: z.ZodBoolean;
1435
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ source: "custom" | "builtin" | "acp" | "env";
1438
+ id: string;
1439
+ displayName: string;
1440
+ isDefault: boolean;
1441
+ hidden: boolean;
1442
+ }, {
1443
+ id: string;
1444
+ displayName: string;
1445
+ isDefault: boolean;
1446
+ hidden: boolean;
1447
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
1448
+ }>, "many">>>;
1449
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1450
+ id: z.ZodString;
1451
+ label: z.ZodString;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ label: string;
1454
+ id: string;
1455
+ }, {
1456
+ label: string;
1457
+ id: string;
1458
+ }>, "many">>>;
1459
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1460
+ t: z.ZodLiteral<"session-reset">;
1461
+ sessionId: z.ZodString;
1462
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1463
+ t: z.ZodLiteral<"session-reset">;
1464
+ sessionId: z.ZodString;
1465
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1466
+ t: z.ZodLiteral<"session-reset">;
1467
+ sessionId: z.ZodString;
1468
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1469
+ t: z.ZodLiteral<"delete-session">;
1470
+ id: z.ZodString;
1471
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1472
+ t: z.ZodLiteral<"delete-session">;
1473
+ id: z.ZodString;
1474
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1475
+ t: z.ZodLiteral<"delete-session">;
1476
+ id: z.ZodString;
1477
+ }, z.ZodTypeAny, "passthrough">>]>;
1478
+ createdAt: z.ZodNumber;
1479
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1480
+ id: z.ZodString;
1481
+ seq: z.ZodNumber;
1482
+ body: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
1483
+ t: z.ZodLiteral<"new-message">;
1484
+ sid: z.ZodString;
1485
+ message: z.ZodObject<{
1486
+ id: z.ZodString;
1487
+ seq: z.ZodNumber;
1488
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1489
+ content: z.ZodObject<{
1490
+ c: z.ZodString;
1491
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1492
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1493
+ c: z.ZodString;
1494
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1495
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1496
+ c: z.ZodString;
1497
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1498
+ }, z.ZodTypeAny, "passthrough">>;
1499
+ createdAt: z.ZodNumber;
1500
+ updatedAt: z.ZodNumber;
1501
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1502
+ id: z.ZodString;
1503
+ seq: z.ZodNumber;
1504
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ content: z.ZodObject<{
1506
+ c: z.ZodString;
1507
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1508
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1509
+ c: z.ZodString;
1510
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1511
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1512
+ c: z.ZodString;
1513
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1514
+ }, z.ZodTypeAny, "passthrough">>;
1515
+ createdAt: z.ZodNumber;
1516
+ updatedAt: z.ZodNumber;
1517
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1518
+ id: z.ZodString;
1519
+ seq: z.ZodNumber;
1520
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1521
+ content: z.ZodObject<{
1522
+ c: z.ZodString;
1523
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1524
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1525
+ c: z.ZodString;
1526
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1527
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1528
+ c: z.ZodString;
1529
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1530
+ }, z.ZodTypeAny, "passthrough">>;
1531
+ createdAt: z.ZodNumber;
1532
+ updatedAt: z.ZodNumber;
1533
+ }, z.ZodTypeAny, "passthrough">>;
1534
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1535
+ t: z.ZodLiteral<"new-message">;
1536
+ sid: z.ZodString;
1537
+ message: z.ZodObject<{
1538
+ id: z.ZodString;
1539
+ seq: z.ZodNumber;
1540
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
+ content: z.ZodObject<{
1542
+ c: z.ZodString;
1543
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1544
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1545
+ c: z.ZodString;
1546
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1547
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1548
+ c: z.ZodString;
1549
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1550
+ }, z.ZodTypeAny, "passthrough">>;
1551
+ createdAt: z.ZodNumber;
1552
+ updatedAt: z.ZodNumber;
1553
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1554
+ id: z.ZodString;
1555
+ seq: z.ZodNumber;
1556
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1557
+ content: z.ZodObject<{
1558
+ c: z.ZodString;
1559
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1560
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1561
+ c: z.ZodString;
1562
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1563
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1564
+ c: z.ZodString;
1565
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1566
+ }, z.ZodTypeAny, "passthrough">>;
1567
+ createdAt: z.ZodNumber;
1568
+ updatedAt: z.ZodNumber;
1569
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1570
+ id: z.ZodString;
1571
+ seq: z.ZodNumber;
1572
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1573
+ content: z.ZodObject<{
1574
+ c: z.ZodString;
1575
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1576
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1577
+ c: z.ZodString;
1578
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1579
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1580
+ c: z.ZodString;
1581
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1582
+ }, z.ZodTypeAny, "passthrough">>;
1583
+ createdAt: z.ZodNumber;
1584
+ updatedAt: z.ZodNumber;
1585
+ }, z.ZodTypeAny, "passthrough">>;
1586
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1587
+ t: z.ZodLiteral<"new-message">;
1588
+ sid: z.ZodString;
1589
+ message: z.ZodObject<{
1590
+ id: z.ZodString;
1591
+ seq: z.ZodNumber;
1592
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1593
+ content: z.ZodObject<{
1594
+ c: z.ZodString;
1595
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1596
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1597
+ c: z.ZodString;
1598
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1599
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1600
+ c: z.ZodString;
1601
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1602
+ }, z.ZodTypeAny, "passthrough">>;
1603
+ createdAt: z.ZodNumber;
1604
+ updatedAt: z.ZodNumber;
1605
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1606
+ id: z.ZodString;
1607
+ seq: z.ZodNumber;
1608
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
+ content: z.ZodObject<{
1610
+ c: z.ZodString;
1611
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1612
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1613
+ c: z.ZodString;
1614
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1615
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1616
+ c: z.ZodString;
1617
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1618
+ }, z.ZodTypeAny, "passthrough">>;
1619
+ createdAt: z.ZodNumber;
1620
+ updatedAt: z.ZodNumber;
1621
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1622
+ id: z.ZodString;
1623
+ seq: z.ZodNumber;
1624
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1625
+ content: z.ZodObject<{
1626
+ c: z.ZodString;
1627
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1628
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1629
+ c: z.ZodString;
1630
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1631
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1632
+ c: z.ZodString;
1633
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1634
+ }, z.ZodTypeAny, "passthrough">>;
1635
+ createdAt: z.ZodNumber;
1636
+ updatedAt: z.ZodNumber;
1637
+ }, z.ZodTypeAny, "passthrough">>;
1638
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1639
+ t: z.ZodLiteral<"update-session">;
1640
+ id: z.ZodString;
1641
+ tag: z.ZodOptional<z.ZodString>;
1642
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1643
+ machineId: z.ZodOptional<z.ZodString>;
1644
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1645
+ version: z.ZodNumber;
1646
+ value: z.ZodString;
1647
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1648
+ version: z.ZodNumber;
1649
+ value: z.ZodString;
1650
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1651
+ version: z.ZodNumber;
1652
+ value: z.ZodString;
1653
+ }, z.ZodTypeAny, "passthrough">>>>;
1654
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1655
+ version: z.ZodNumber;
1656
+ value: z.ZodNullable<z.ZodString>;
1657
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1658
+ version: z.ZodNumber;
1659
+ value: z.ZodNullable<z.ZodString>;
1660
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1661
+ version: z.ZodNumber;
1662
+ value: z.ZodNullable<z.ZodString>;
1663
+ }, z.ZodTypeAny, "passthrough">>>>;
1664
+ active: z.ZodOptional<z.ZodBoolean>;
1665
+ /** Session source — promoted from 'history' to 'managed' on resume. */
1666
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
1667
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
1668
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1669
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
1670
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1671
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1672
+ t: z.ZodLiteral<"update-session">;
1673
+ id: z.ZodString;
1674
+ tag: z.ZodOptional<z.ZodString>;
1675
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1676
+ machineId: z.ZodOptional<z.ZodString>;
1677
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1678
+ version: z.ZodNumber;
1679
+ value: z.ZodString;
1680
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1681
+ version: z.ZodNumber;
1682
+ value: z.ZodString;
1683
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1684
+ version: z.ZodNumber;
1685
+ value: z.ZodString;
1686
+ }, z.ZodTypeAny, "passthrough">>>>;
1687
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1688
+ version: z.ZodNumber;
1689
+ value: z.ZodNullable<z.ZodString>;
1690
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1691
+ version: z.ZodNumber;
1692
+ value: z.ZodNullable<z.ZodString>;
1693
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1694
+ version: z.ZodNumber;
1695
+ value: z.ZodNullable<z.ZodString>;
1696
+ }, z.ZodTypeAny, "passthrough">>>>;
1697
+ active: z.ZodOptional<z.ZodBoolean>;
1698
+ /** Session source — promoted from 'history' to 'managed' on resume. */
1699
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
1700
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
1701
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1702
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
1703
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1704
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1705
+ t: z.ZodLiteral<"update-session">;
1706
+ id: z.ZodString;
1707
+ tag: z.ZodOptional<z.ZodString>;
1708
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1709
+ machineId: z.ZodOptional<z.ZodString>;
1710
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1711
+ version: z.ZodNumber;
1712
+ value: z.ZodString;
1713
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1714
+ version: z.ZodNumber;
1715
+ value: z.ZodString;
1716
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1717
+ version: z.ZodNumber;
1718
+ value: z.ZodString;
1719
+ }, z.ZodTypeAny, "passthrough">>>>;
1720
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1721
+ version: z.ZodNumber;
1722
+ value: z.ZodNullable<z.ZodString>;
1723
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1724
+ version: z.ZodNumber;
1725
+ value: z.ZodNullable<z.ZodString>;
1726
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1727
+ version: z.ZodNumber;
1728
+ value: z.ZodNullable<z.ZodString>;
1729
+ }, z.ZodTypeAny, "passthrough">>>>;
1730
+ active: z.ZodOptional<z.ZodBoolean>;
1731
+ /** Session source — promoted from 'history' to 'managed' on resume. */
1732
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
1733
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
1734
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1735
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
1736
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1737
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1738
+ t: z.ZodLiteral<"update-machine">;
1739
+ machineId: z.ZodString;
1740
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1741
+ version: z.ZodNumber;
1742
+ value: z.ZodString;
1743
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1744
+ version: z.ZodNumber;
1745
+ value: z.ZodString;
1746
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1747
+ version: z.ZodNumber;
1748
+ value: z.ZodString;
1749
+ }, z.ZodTypeAny, "passthrough">>>>;
1750
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1751
+ version: z.ZodNumber;
1752
+ value: z.ZodString;
1753
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1754
+ version: z.ZodNumber;
1755
+ value: z.ZodString;
1756
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1757
+ version: z.ZodNumber;
1758
+ value: z.ZodString;
1759
+ }, z.ZodTypeAny, "passthrough">>>>;
1760
+ active: z.ZodOptional<z.ZodBoolean>;
1761
+ activeAt: z.ZodOptional<z.ZodNumber>;
1762
+ hostname: z.ZodOptional<z.ZodString>;
1763
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
1764
+ arch: z.ZodOptional<z.ZodString>;
1765
+ daemonVersion: z.ZodOptional<z.ZodString>;
1766
+ displayName: z.ZodOptional<z.ZodString>;
1767
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1768
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1769
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
1770
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
1771
+ upgradeError: z.ZodOptional<z.ZodString>;
1772
+ superseded: z.ZodOptional<z.ZodBoolean>;
1773
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
1774
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
1775
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1776
+ id: z.ZodString;
1777
+ displayName: z.ZodString;
1778
+ isDefault: z.ZodBoolean;
1779
+ hidden: z.ZodBoolean;
1780
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ source: "custom" | "builtin" | "acp" | "env";
1783
+ id: string;
1784
+ displayName: string;
1785
+ isDefault: boolean;
1786
+ hidden: boolean;
1787
+ }, {
1788
+ id: string;
1789
+ displayName: string;
1790
+ isDefault: boolean;
1791
+ hidden: boolean;
1792
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
1793
+ }>, "many">>>;
1794
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1795
+ id: z.ZodString;
1796
+ label: z.ZodString;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ label: string;
1799
+ id: string;
1800
+ }, {
1801
+ label: string;
1802
+ id: string;
1803
+ }>, "many">>>;
1804
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1805
+ t: z.ZodLiteral<"update-machine">;
1806
+ machineId: z.ZodString;
1807
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1808
+ version: z.ZodNumber;
1809
+ value: z.ZodString;
1810
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1811
+ version: z.ZodNumber;
1812
+ value: z.ZodString;
1813
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1814
+ version: z.ZodNumber;
1815
+ value: z.ZodString;
1816
+ }, z.ZodTypeAny, "passthrough">>>>;
1817
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1818
+ version: z.ZodNumber;
1819
+ value: z.ZodString;
1820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1821
+ version: z.ZodNumber;
1822
+ value: z.ZodString;
1823
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1824
+ version: z.ZodNumber;
1825
+ value: z.ZodString;
1826
+ }, z.ZodTypeAny, "passthrough">>>>;
1827
+ active: z.ZodOptional<z.ZodBoolean>;
1828
+ activeAt: z.ZodOptional<z.ZodNumber>;
1829
+ hostname: z.ZodOptional<z.ZodString>;
1830
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
1831
+ arch: z.ZodOptional<z.ZodString>;
1832
+ daemonVersion: z.ZodOptional<z.ZodString>;
1833
+ displayName: z.ZodOptional<z.ZodString>;
1834
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1835
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1836
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
1837
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
1838
+ upgradeError: z.ZodOptional<z.ZodString>;
1839
+ superseded: z.ZodOptional<z.ZodBoolean>;
1840
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
1841
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
1842
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1843
+ id: z.ZodString;
1844
+ displayName: z.ZodString;
1845
+ isDefault: z.ZodBoolean;
1846
+ hidden: z.ZodBoolean;
1847
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1848
+ }, "strip", z.ZodTypeAny, {
1849
+ source: "custom" | "builtin" | "acp" | "env";
1850
+ id: string;
1851
+ displayName: string;
1852
+ isDefault: boolean;
1853
+ hidden: boolean;
1854
+ }, {
1855
+ id: string;
1856
+ displayName: string;
1857
+ isDefault: boolean;
1858
+ hidden: boolean;
1859
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
1860
+ }>, "many">>>;
1861
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1862
+ id: z.ZodString;
1863
+ label: z.ZodString;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ label: string;
1866
+ id: string;
1867
+ }, {
1868
+ label: string;
1869
+ id: string;
1870
+ }>, "many">>>;
1871
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1872
+ t: z.ZodLiteral<"update-machine">;
1873
+ machineId: z.ZodString;
1874
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1875
+ version: z.ZodNumber;
1876
+ value: z.ZodString;
1877
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1878
+ version: z.ZodNumber;
1879
+ value: z.ZodString;
1880
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1881
+ version: z.ZodNumber;
1882
+ value: z.ZodString;
1883
+ }, z.ZodTypeAny, "passthrough">>>>;
1884
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1885
+ version: z.ZodNumber;
1886
+ value: z.ZodString;
1887
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1888
+ version: z.ZodNumber;
1889
+ value: z.ZodString;
1890
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1891
+ version: z.ZodNumber;
1892
+ value: z.ZodString;
1893
+ }, z.ZodTypeAny, "passthrough">>>>;
1894
+ active: z.ZodOptional<z.ZodBoolean>;
1895
+ activeAt: z.ZodOptional<z.ZodNumber>;
1896
+ hostname: z.ZodOptional<z.ZodString>;
1897
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
1898
+ arch: z.ZodOptional<z.ZodString>;
1899
+ daemonVersion: z.ZodOptional<z.ZodString>;
1900
+ displayName: z.ZodOptional<z.ZodString>;
1901
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1902
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1903
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
1904
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
1905
+ upgradeError: z.ZodOptional<z.ZodString>;
1906
+ superseded: z.ZodOptional<z.ZodBoolean>;
1907
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
1908
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
1909
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1910
+ id: z.ZodString;
1911
+ displayName: z.ZodString;
1912
+ isDefault: z.ZodBoolean;
1913
+ hidden: z.ZodBoolean;
1914
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ source: "custom" | "builtin" | "acp" | "env";
1917
+ id: string;
1918
+ displayName: string;
1919
+ isDefault: boolean;
1920
+ hidden: boolean;
1921
+ }, {
1922
+ id: string;
1923
+ displayName: string;
1924
+ isDefault: boolean;
1925
+ hidden: boolean;
1926
+ source?: "custom" | "builtin" | "acp" | "env" | undefined;
1927
+ }>, "many">>>;
1928
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1929
+ id: z.ZodString;
1930
+ label: z.ZodString;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ label: string;
1933
+ id: string;
1934
+ }, {
1935
+ label: string;
1936
+ id: string;
1937
+ }>, "many">>>;
1938
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1939
+ t: z.ZodLiteral<"session-reset">;
1940
+ sessionId: z.ZodString;
1941
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1942
+ t: z.ZodLiteral<"session-reset">;
1943
+ sessionId: z.ZodString;
1944
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1945
+ t: z.ZodLiteral<"session-reset">;
1946
+ sessionId: z.ZodString;
1947
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1948
+ t: z.ZodLiteral<"delete-session">;
1949
+ id: z.ZodString;
1950
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1951
+ t: z.ZodLiteral<"delete-session">;
1952
+ id: z.ZodString;
1953
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1954
+ t: z.ZodLiteral<"delete-session">;
1955
+ id: z.ZodString;
1956
+ }, z.ZodTypeAny, "passthrough">>]>;
1957
+ createdAt: z.ZodNumber;
1958
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1959
+ id: z.ZodString;
1960
+ seq: z.ZodNumber;
1961
+ body: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
1962
+ t: z.ZodLiteral<"new-message">;
1963
+ sid: z.ZodString;
1964
+ message: z.ZodObject<{
1965
+ id: z.ZodString;
1966
+ seq: z.ZodNumber;
1967
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1968
+ content: z.ZodObject<{
1969
+ c: z.ZodString;
1970
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1971
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1972
+ c: z.ZodString;
1973
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1974
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1975
+ c: z.ZodString;
1976
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1977
+ }, z.ZodTypeAny, "passthrough">>;
1978
+ createdAt: z.ZodNumber;
1979
+ updatedAt: z.ZodNumber;
1980
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1981
+ id: z.ZodString;
1982
+ seq: z.ZodNumber;
1983
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1984
+ content: z.ZodObject<{
1985
+ c: z.ZodString;
1986
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1987
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1988
+ c: z.ZodString;
1989
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1990
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1991
+ c: z.ZodString;
1992
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
1993
+ }, z.ZodTypeAny, "passthrough">>;
1994
+ createdAt: z.ZodNumber;
1995
+ updatedAt: z.ZodNumber;
1996
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1997
+ id: z.ZodString;
1998
+ seq: z.ZodNumber;
1999
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2000
+ content: z.ZodObject<{
2001
+ c: z.ZodString;
2002
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2003
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2004
+ c: z.ZodString;
2005
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2006
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2007
+ c: z.ZodString;
2008
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2009
+ }, z.ZodTypeAny, "passthrough">>;
2010
+ createdAt: z.ZodNumber;
2011
+ updatedAt: z.ZodNumber;
2012
+ }, z.ZodTypeAny, "passthrough">>;
2013
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2014
+ t: z.ZodLiteral<"new-message">;
2015
+ sid: z.ZodString;
2016
+ message: z.ZodObject<{
2017
+ id: z.ZodString;
2018
+ seq: z.ZodNumber;
2019
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2020
+ content: z.ZodObject<{
2021
+ c: z.ZodString;
2022
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2023
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2024
+ c: z.ZodString;
2025
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2026
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2027
+ c: z.ZodString;
2028
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2029
+ }, z.ZodTypeAny, "passthrough">>;
2030
+ createdAt: z.ZodNumber;
2031
+ updatedAt: z.ZodNumber;
2032
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2033
+ id: z.ZodString;
2034
+ seq: z.ZodNumber;
2035
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2036
+ content: z.ZodObject<{
2037
+ c: z.ZodString;
2038
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2039
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2040
+ c: z.ZodString;
2041
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2042
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2043
+ c: z.ZodString;
2044
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2045
+ }, z.ZodTypeAny, "passthrough">>;
2046
+ createdAt: z.ZodNumber;
2047
+ updatedAt: z.ZodNumber;
2048
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2049
+ id: z.ZodString;
2050
+ seq: z.ZodNumber;
2051
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2052
+ content: z.ZodObject<{
2053
+ c: z.ZodString;
2054
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2055
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2056
+ c: z.ZodString;
2057
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2058
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2059
+ c: z.ZodString;
2060
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2061
+ }, z.ZodTypeAny, "passthrough">>;
2062
+ createdAt: z.ZodNumber;
2063
+ updatedAt: z.ZodNumber;
2064
+ }, z.ZodTypeAny, "passthrough">>;
2065
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
640
2066
  t: z.ZodLiteral<"new-message">;
641
2067
  sid: z.ZodString;
642
2068
  message: z.ZodObject<{
@@ -646,65 +2072,49 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
646
2072
  content: z.ZodObject<{
647
2073
  c: z.ZodString;
648
2074
  t: z.ZodEnum<["encrypted", "plaintext"]>;
649
- }, "strip", z.ZodTypeAny, {
650
- t: "encrypted" | "plaintext";
651
- c: string;
652
- }, {
653
- t: "encrypted" | "plaintext";
654
- c: string;
655
- }>;
2075
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2076
+ c: z.ZodString;
2077
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2078
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2079
+ c: z.ZodString;
2080
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2081
+ }, z.ZodTypeAny, "passthrough">>;
656
2082
  createdAt: z.ZodNumber;
657
2083
  updatedAt: z.ZodNumber;
658
- }, "strip", z.ZodTypeAny, {
659
- id: string;
660
- content: {
661
- t: "encrypted" | "plaintext";
662
- c: string;
663
- };
664
- seq: number;
665
- createdAt: number;
666
- updatedAt: number;
667
- localId?: string | null | undefined;
668
- }, {
669
- id: string;
670
- content: {
671
- t: "encrypted" | "plaintext";
672
- c: string;
673
- };
674
- seq: number;
675
- createdAt: number;
676
- updatedAt: number;
677
- localId?: string | null | undefined;
678
- }>;
679
- }, "strip", z.ZodTypeAny, {
680
- message: {
681
- id: string;
682
- content: {
683
- t: "encrypted" | "plaintext";
684
- c: string;
685
- };
686
- seq: number;
687
- createdAt: number;
688
- updatedAt: number;
689
- localId?: string | null | undefined;
690
- };
691
- t: "new-message";
692
- sid: string;
693
- }, {
694
- message: {
695
- id: string;
696
- content: {
697
- t: "encrypted" | "plaintext";
698
- c: string;
699
- };
700
- seq: number;
701
- createdAt: number;
702
- updatedAt: number;
703
- localId?: string | null | undefined;
704
- };
705
- t: "new-message";
706
- sid: string;
707
- }>, z.ZodObject<{
2084
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2085
+ id: z.ZodString;
2086
+ seq: z.ZodNumber;
2087
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2088
+ content: z.ZodObject<{
2089
+ c: z.ZodString;
2090
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2091
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2092
+ c: z.ZodString;
2093
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2094
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2095
+ c: z.ZodString;
2096
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2097
+ }, z.ZodTypeAny, "passthrough">>;
2098
+ createdAt: z.ZodNumber;
2099
+ updatedAt: z.ZodNumber;
2100
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2101
+ id: z.ZodString;
2102
+ seq: z.ZodNumber;
2103
+ localId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2104
+ content: z.ZodObject<{
2105
+ c: z.ZodString;
2106
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2107
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2108
+ c: z.ZodString;
2109
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2110
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2111
+ c: z.ZodString;
2112
+ t: z.ZodEnum<["encrypted", "plaintext"]>;
2113
+ }, z.ZodTypeAny, "passthrough">>;
2114
+ createdAt: z.ZodNumber;
2115
+ updatedAt: z.ZodNumber;
2116
+ }, z.ZodTypeAny, "passthrough">>;
2117
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
708
2118
  t: z.ZodLiteral<"update-session">;
709
2119
  id: z.ZodString;
710
2120
  tag: z.ZodOptional<z.ZodString>;
@@ -713,85 +2123,119 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
713
2123
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
714
2124
  version: z.ZodNumber;
715
2125
  value: z.ZodString;
716
- }, "strip", z.ZodTypeAny, {
717
- value: string;
718
- version: number;
719
- }, {
720
- value: string;
721
- version: number;
722
- }>>>;
2126
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2127
+ version: z.ZodNumber;
2128
+ value: z.ZodString;
2129
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2130
+ version: z.ZodNumber;
2131
+ value: z.ZodString;
2132
+ }, z.ZodTypeAny, "passthrough">>>>;
723
2133
  agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
724
2134
  version: z.ZodNumber;
725
2135
  value: z.ZodNullable<z.ZodString>;
726
- }, "strip", z.ZodTypeAny, {
727
- value: string | null;
728
- version: number;
729
- }, {
730
- value: string | null;
731
- version: number;
732
- }>>>;
2136
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2137
+ version: z.ZodNumber;
2138
+ value: z.ZodNullable<z.ZodString>;
2139
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2140
+ version: z.ZodNumber;
2141
+ value: z.ZodNullable<z.ZodString>;
2142
+ }, z.ZodTypeAny, "passthrough">>>>;
733
2143
  active: z.ZodOptional<z.ZodBoolean>;
734
2144
  /** Session source — promoted from 'history' to 'managed' on resume. */
735
2145
  source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
2146
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
2147
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
736
2148
  /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
737
2149
  dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
738
- }, "strip", z.ZodTypeAny, {
739
- t: "update-session";
740
- id: string;
741
- machineId?: string | undefined;
742
- source?: "managed" | "history" | "scheduled" | undefined;
743
- displayName?: string | null | undefined;
744
- active?: boolean | undefined;
745
- tag?: string | undefined;
746
- metadata?: {
747
- value: string;
748
- version: number;
749
- } | null | undefined;
750
- agentState?: {
751
- value: string | null;
752
- version: number;
753
- } | null | undefined;
754
- dataEncryptionKey?: string | null | undefined;
755
- }, {
756
- t: "update-session";
757
- id: string;
758
- machineId?: string | undefined;
759
- source?: "managed" | "history" | "scheduled" | undefined;
760
- displayName?: string | null | undefined;
761
- active?: boolean | undefined;
762
- tag?: string | undefined;
763
- metadata?: {
764
- value: string;
765
- version: number;
766
- } | null | undefined;
767
- agentState?: {
768
- value: string | null;
769
- version: number;
770
- } | null | undefined;
771
- dataEncryptionKey?: string | null | undefined;
772
- }>, z.ZodObject<{
2150
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2151
+ t: z.ZodLiteral<"update-session">;
2152
+ id: z.ZodString;
2153
+ tag: z.ZodOptional<z.ZodString>;
2154
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2155
+ machineId: z.ZodOptional<z.ZodString>;
2156
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2157
+ version: z.ZodNumber;
2158
+ value: z.ZodString;
2159
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2160
+ version: z.ZodNumber;
2161
+ value: z.ZodString;
2162
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2163
+ version: z.ZodNumber;
2164
+ value: z.ZodString;
2165
+ }, z.ZodTypeAny, "passthrough">>>>;
2166
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2167
+ version: z.ZodNumber;
2168
+ value: z.ZodNullable<z.ZodString>;
2169
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2170
+ version: z.ZodNumber;
2171
+ value: z.ZodNullable<z.ZodString>;
2172
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2173
+ version: z.ZodNumber;
2174
+ value: z.ZodNullable<z.ZodString>;
2175
+ }, z.ZodTypeAny, "passthrough">>>>;
2176
+ active: z.ZodOptional<z.ZodBoolean>;
2177
+ /** Session source — promoted from 'history' to 'managed' on resume. */
2178
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
2179
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
2180
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2181
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
2182
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2183
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2184
+ t: z.ZodLiteral<"update-session">;
2185
+ id: z.ZodString;
2186
+ tag: z.ZodOptional<z.ZodString>;
2187
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2188
+ machineId: z.ZodOptional<z.ZodString>;
2189
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2190
+ version: z.ZodNumber;
2191
+ value: z.ZodString;
2192
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2193
+ version: z.ZodNumber;
2194
+ value: z.ZodString;
2195
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2196
+ version: z.ZodNumber;
2197
+ value: z.ZodString;
2198
+ }, z.ZodTypeAny, "passthrough">>>>;
2199
+ agentState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2200
+ version: z.ZodNumber;
2201
+ value: z.ZodNullable<z.ZodString>;
2202
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2203
+ version: z.ZodNumber;
2204
+ value: z.ZodNullable<z.ZodString>;
2205
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2206
+ version: z.ZodNumber;
2207
+ value: z.ZodNullable<z.ZodString>;
2208
+ }, z.ZodTypeAny, "passthrough">>>>;
2209
+ active: z.ZodOptional<z.ZodBoolean>;
2210
+ /** Session source — promoted from 'history' to 'managed' on resume. */
2211
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
2212
+ /** Latest context-usage snapshot (same format as sessionMessage.content). */
2213
+ contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2214
+ /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
2215
+ dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2216
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
773
2217
  t: z.ZodLiteral<"update-machine">;
774
2218
  machineId: z.ZodString;
775
2219
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
776
2220
  version: z.ZodNumber;
777
2221
  value: z.ZodString;
778
- }, "strip", z.ZodTypeAny, {
779
- value: string;
780
- version: number;
781
- }, {
782
- value: string;
783
- version: number;
784
- }>>>;
2222
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2223
+ version: z.ZodNumber;
2224
+ value: z.ZodString;
2225
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2226
+ version: z.ZodNumber;
2227
+ value: z.ZodString;
2228
+ }, z.ZodTypeAny, "passthrough">>>>;
785
2229
  daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
786
2230
  version: z.ZodNumber;
787
2231
  value: z.ZodString;
788
- }, "strip", z.ZodTypeAny, {
789
- value: string;
790
- version: number;
791
- }, {
792
- value: string;
793
- version: number;
794
- }>>>;
2232
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2233
+ version: z.ZodNumber;
2234
+ value: z.ZodString;
2235
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2236
+ version: z.ZodNumber;
2237
+ value: z.ZodString;
2238
+ }, z.ZodTypeAny, "passthrough">>>>;
795
2239
  active: z.ZodOptional<z.ZodBoolean>;
796
2240
  activeAt: z.ZodOptional<z.ZodNumber>;
797
2241
  hostname: z.ZodOptional<z.ZodString>;
@@ -814,8 +2258,8 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
814
2258
  hidden: z.ZodBoolean;
815
2259
  source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
816
2260
  }, "strip", z.ZodTypeAny, {
817
- id: string;
818
2261
  source: "custom" | "builtin" | "acp" | "env";
2262
+ id: string;
819
2263
  displayName: string;
820
2264
  isDefault: boolean;
821
2265
  hidden: boolean;
@@ -836,258 +2280,160 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
836
2280
  label: string;
837
2281
  id: string;
838
2282
  }>, "many">>>;
839
- }, "strip", z.ZodTypeAny, {
840
- t: "update-machine";
841
- machineId: string;
842
- availableAgents?: string[] | undefined;
843
- displayName?: string | undefined;
844
- agentModels?: Record<string, {
845
- id: string;
2283
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2284
+ t: z.ZodLiteral<"update-machine">;
2285
+ machineId: z.ZodString;
2286
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2287
+ version: z.ZodNumber;
2288
+ value: z.ZodString;
2289
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2290
+ version: z.ZodNumber;
2291
+ value: z.ZodString;
2292
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2293
+ version: z.ZodNumber;
2294
+ value: z.ZodString;
2295
+ }, z.ZodTypeAny, "passthrough">>>>;
2296
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2297
+ version: z.ZodNumber;
2298
+ value: z.ZodString;
2299
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2300
+ version: z.ZodNumber;
2301
+ value: z.ZodString;
2302
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2303
+ version: z.ZodNumber;
2304
+ value: z.ZodString;
2305
+ }, z.ZodTypeAny, "passthrough">>>>;
2306
+ active: z.ZodOptional<z.ZodBoolean>;
2307
+ activeAt: z.ZodOptional<z.ZodNumber>;
2308
+ hostname: z.ZodOptional<z.ZodString>;
2309
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
2310
+ arch: z.ZodOptional<z.ZodString>;
2311
+ daemonVersion: z.ZodOptional<z.ZodString>;
2312
+ displayName: z.ZodOptional<z.ZodString>;
2313
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2314
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2315
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
2316
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
2317
+ upgradeError: z.ZodOptional<z.ZodString>;
2318
+ superseded: z.ZodOptional<z.ZodBoolean>;
2319
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
2320
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
2321
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2322
+ id: z.ZodString;
2323
+ displayName: z.ZodString;
2324
+ isDefault: z.ZodBoolean;
2325
+ hidden: z.ZodBoolean;
2326
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2327
+ }, "strip", z.ZodTypeAny, {
846
2328
  source: "custom" | "builtin" | "acp" | "env";
2329
+ id: string;
847
2330
  displayName: string;
848
2331
  isDefault: boolean;
849
2332
  hidden: boolean;
850
- }[]> | undefined;
851
- agentModes?: Record<string, {
852
- label: string;
853
- id: string;
854
- }[]> | undefined;
855
- hostname?: string | undefined;
856
- platform?: "darwin" | "linux" | "win32" | undefined;
857
- arch?: string | undefined;
858
- daemonVersion?: string | undefined;
859
- active?: boolean | undefined;
860
- activeAt?: number | undefined;
861
- supportedMethods?: string[] | undefined;
862
- disconnectReason?: "normal" | "upgrade-required" | undefined;
863
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
864
- upgradeError?: string | undefined;
865
- superseded?: boolean | undefined;
866
- derivationVersion?: number | undefined;
867
- autoUpgradeDaemon?: boolean | undefined;
868
- metadata?: {
869
- value: string;
870
- version: number;
871
- } | null | undefined;
872
- daemonState?: {
873
- value: string;
874
- version: number;
875
- } | null | undefined;
876
- }, {
877
- t: "update-machine";
878
- machineId: string;
879
- availableAgents?: string[] | undefined;
880
- displayName?: string | undefined;
881
- agentModels?: Record<string, {
2333
+ }, {
882
2334
  id: string;
883
2335
  displayName: string;
884
2336
  isDefault: boolean;
885
2337
  hidden: boolean;
886
2338
  source?: "custom" | "builtin" | "acp" | "env" | undefined;
887
- }[]> | undefined;
888
- agentModes?: Record<string, {
2339
+ }>, "many">>>;
2340
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2341
+ id: z.ZodString;
2342
+ label: z.ZodString;
2343
+ }, "strip", z.ZodTypeAny, {
889
2344
  label: string;
890
2345
  id: string;
891
- }[]> | undefined;
892
- hostname?: string | undefined;
893
- platform?: "darwin" | "linux" | "win32" | undefined;
894
- arch?: string | undefined;
895
- daemonVersion?: string | undefined;
896
- active?: boolean | undefined;
897
- activeAt?: number | undefined;
898
- supportedMethods?: string[] | undefined;
899
- disconnectReason?: "normal" | "upgrade-required" | undefined;
900
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
901
- upgradeError?: string | undefined;
902
- superseded?: boolean | undefined;
903
- derivationVersion?: number | undefined;
904
- autoUpgradeDaemon?: boolean | undefined;
905
- metadata?: {
906
- value: string;
907
- version: number;
908
- } | null | undefined;
909
- daemonState?: {
910
- value: string;
911
- version: number;
912
- } | null | undefined;
913
- }>, z.ZodObject<{
914
- t: z.ZodLiteral<"session-reset">;
915
- sessionId: z.ZodString;
916
- }, "strip", z.ZodTypeAny, {
917
- t: "session-reset";
918
- sessionId: string;
919
- }, {
920
- t: "session-reset";
921
- sessionId: string;
922
- }>, z.ZodObject<{
923
- t: z.ZodLiteral<"delete-session">;
924
- id: z.ZodString;
925
- }, "strip", z.ZodTypeAny, {
926
- t: "delete-session";
927
- id: string;
928
- }, {
929
- t: "delete-session";
930
- id: string;
931
- }>]>;
932
- createdAt: z.ZodNumber;
933
- }, "strip", z.ZodTypeAny, {
934
- id: string;
935
- seq: number;
936
- createdAt: number;
937
- body: {
938
- message: {
939
- id: string;
940
- content: {
941
- t: "encrypted" | "plaintext";
942
- c: string;
943
- };
944
- seq: number;
945
- createdAt: number;
946
- updatedAt: number;
947
- localId?: string | null | undefined;
948
- };
949
- t: "new-message";
950
- sid: string;
951
- } | {
952
- t: "update-session";
953
- id: string;
954
- machineId?: string | undefined;
955
- source?: "managed" | "history" | "scheduled" | undefined;
956
- displayName?: string | null | undefined;
957
- active?: boolean | undefined;
958
- tag?: string | undefined;
959
- metadata?: {
960
- value: string;
961
- version: number;
962
- } | null | undefined;
963
- agentState?: {
964
- value: string | null;
965
- version: number;
966
- } | null | undefined;
967
- dataEncryptionKey?: string | null | undefined;
968
- } | {
969
- t: "update-machine";
970
- machineId: string;
971
- availableAgents?: string[] | undefined;
972
- displayName?: string | undefined;
973
- agentModels?: Record<string, {
2346
+ }, {
2347
+ label: string;
974
2348
  id: string;
2349
+ }>, "many">>>;
2350
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2351
+ t: z.ZodLiteral<"update-machine">;
2352
+ machineId: z.ZodString;
2353
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2354
+ version: z.ZodNumber;
2355
+ value: z.ZodString;
2356
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2357
+ version: z.ZodNumber;
2358
+ value: z.ZodString;
2359
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2360
+ version: z.ZodNumber;
2361
+ value: z.ZodString;
2362
+ }, z.ZodTypeAny, "passthrough">>>>;
2363
+ daemonState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2364
+ version: z.ZodNumber;
2365
+ value: z.ZodString;
2366
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2367
+ version: z.ZodNumber;
2368
+ value: z.ZodString;
2369
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2370
+ version: z.ZodNumber;
2371
+ value: z.ZodString;
2372
+ }, z.ZodTypeAny, "passthrough">>>>;
2373
+ active: z.ZodOptional<z.ZodBoolean>;
2374
+ activeAt: z.ZodOptional<z.ZodNumber>;
2375
+ hostname: z.ZodOptional<z.ZodString>;
2376
+ platform: z.ZodOptional<z.ZodEnum<["darwin", "linux", "win32"]>>;
2377
+ arch: z.ZodOptional<z.ZodString>;
2378
+ daemonVersion: z.ZodOptional<z.ZodString>;
2379
+ displayName: z.ZodOptional<z.ZodString>;
2380
+ availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2381
+ supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2382
+ disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
2383
+ upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
2384
+ upgradeError: z.ZodOptional<z.ZodString>;
2385
+ superseded: z.ZodOptional<z.ZodBoolean>;
2386
+ derivationVersion: z.ZodOptional<z.ZodNumber>;
2387
+ autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
2388
+ agentModels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2389
+ id: z.ZodString;
2390
+ displayName: z.ZodString;
2391
+ isDefault: z.ZodBoolean;
2392
+ hidden: z.ZodBoolean;
2393
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2394
+ }, "strip", z.ZodTypeAny, {
975
2395
  source: "custom" | "builtin" | "acp" | "env";
2396
+ id: string;
976
2397
  displayName: string;
977
2398
  isDefault: boolean;
978
2399
  hidden: boolean;
979
- }[]> | undefined;
980
- agentModes?: Record<string, {
981
- label: string;
982
- id: string;
983
- }[]> | undefined;
984
- hostname?: string | undefined;
985
- platform?: "darwin" | "linux" | "win32" | undefined;
986
- arch?: string | undefined;
987
- daemonVersion?: string | undefined;
988
- active?: boolean | undefined;
989
- activeAt?: number | undefined;
990
- supportedMethods?: string[] | undefined;
991
- disconnectReason?: "normal" | "upgrade-required" | undefined;
992
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
993
- upgradeError?: string | undefined;
994
- superseded?: boolean | undefined;
995
- derivationVersion?: number | undefined;
996
- autoUpgradeDaemon?: boolean | undefined;
997
- metadata?: {
998
- value: string;
999
- version: number;
1000
- } | null | undefined;
1001
- daemonState?: {
1002
- value: string;
1003
- version: number;
1004
- } | null | undefined;
1005
- } | {
1006
- t: "session-reset";
1007
- sessionId: string;
1008
- } | {
1009
- t: "delete-session";
1010
- id: string;
1011
- };
1012
- }, {
1013
- id: string;
1014
- seq: number;
1015
- createdAt: number;
1016
- body: {
1017
- message: {
1018
- id: string;
1019
- content: {
1020
- t: "encrypted" | "plaintext";
1021
- c: string;
1022
- };
1023
- seq: number;
1024
- createdAt: number;
1025
- updatedAt: number;
1026
- localId?: string | null | undefined;
1027
- };
1028
- t: "new-message";
1029
- sid: string;
1030
- } | {
1031
- t: "update-session";
1032
- id: string;
1033
- machineId?: string | undefined;
1034
- source?: "managed" | "history" | "scheduled" | undefined;
1035
- displayName?: string | null | undefined;
1036
- active?: boolean | undefined;
1037
- tag?: string | undefined;
1038
- metadata?: {
1039
- value: string;
1040
- version: number;
1041
- } | null | undefined;
1042
- agentState?: {
1043
- value: string | null;
1044
- version: number;
1045
- } | null | undefined;
1046
- dataEncryptionKey?: string | null | undefined;
1047
- } | {
1048
- t: "update-machine";
1049
- machineId: string;
1050
- availableAgents?: string[] | undefined;
1051
- displayName?: string | undefined;
1052
- agentModels?: Record<string, {
2400
+ }, {
1053
2401
  id: string;
1054
2402
  displayName: string;
1055
2403
  isDefault: boolean;
1056
2404
  hidden: boolean;
1057
2405
  source?: "custom" | "builtin" | "acp" | "env" | undefined;
1058
- }[]> | undefined;
1059
- agentModes?: Record<string, {
2406
+ }>, "many">>>;
2407
+ agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2408
+ id: z.ZodString;
2409
+ label: z.ZodString;
2410
+ }, "strip", z.ZodTypeAny, {
1060
2411
  label: string;
1061
2412
  id: string;
1062
- }[]> | undefined;
1063
- hostname?: string | undefined;
1064
- platform?: "darwin" | "linux" | "win32" | undefined;
1065
- arch?: string | undefined;
1066
- daemonVersion?: string | undefined;
1067
- active?: boolean | undefined;
1068
- activeAt?: number | undefined;
1069
- supportedMethods?: string[] | undefined;
1070
- disconnectReason?: "normal" | "upgrade-required" | undefined;
1071
- upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "ready" | "switching" | undefined;
1072
- upgradeError?: string | undefined;
1073
- superseded?: boolean | undefined;
1074
- derivationVersion?: number | undefined;
1075
- autoUpgradeDaemon?: boolean | undefined;
1076
- metadata?: {
1077
- value: string;
1078
- version: number;
1079
- } | null | undefined;
1080
- daemonState?: {
1081
- value: string;
1082
- version: number;
1083
- } | null | undefined;
1084
- } | {
1085
- t: "session-reset";
1086
- sessionId: string;
1087
- } | {
1088
- t: "delete-session";
1089
- id: string;
1090
- };
1091
- }>;
2413
+ }, {
2414
+ label: string;
2415
+ id: string;
2416
+ }>, "many">>>;
2417
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2418
+ t: z.ZodLiteral<"session-reset">;
2419
+ sessionId: z.ZodString;
2420
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2421
+ t: z.ZodLiteral<"session-reset">;
2422
+ sessionId: z.ZodString;
2423
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2424
+ t: z.ZodLiteral<"session-reset">;
2425
+ sessionId: z.ZodString;
2426
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2427
+ t: z.ZodLiteral<"delete-session">;
2428
+ id: z.ZodString;
2429
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2430
+ t: z.ZodLiteral<"delete-session">;
2431
+ id: z.ZodString;
2432
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2433
+ t: z.ZodLiteral<"delete-session">;
2434
+ id: z.ZodString;
2435
+ }, z.ZodTypeAny, "passthrough">>]>;
2436
+ createdAt: z.ZodNumber;
2437
+ }, z.ZodTypeAny, "passthrough">>;
1092
2438
  export type CoreUpdateContainer = z.infer<typeof CoreUpdateContainerSchema>;
1093
2439
  //# sourceMappingURL=sync.d.ts.map