@agentdock/wire 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stats.d.ts CHANGED
@@ -54,14 +54,14 @@ export declare const LongestSessionSchema: z.ZodObject<{
54
54
  timestamp: z.ZodString;
55
55
  }, "strip", z.ZodTypeAny, {
56
56
  sessionId: string;
57
+ timestamp: string;
57
58
  messageCount: number;
58
59
  duration: number;
59
- timestamp: string;
60
60
  }, {
61
61
  sessionId: string;
62
+ timestamp: string;
62
63
  messageCount: number;
63
64
  duration: number;
64
- timestamp: string;
65
65
  }>;
66
66
  export declare const SessionTokenSummarySchema: z.ZodObject<{
67
67
  sessionId: z.ZodString;
@@ -138,14 +138,14 @@ export declare const ClaudeStatsDataSchema: z.ZodObject<{
138
138
  timestamp: z.ZodString;
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  sessionId: string;
141
+ timestamp: string;
141
142
  messageCount: number;
142
143
  duration: number;
143
- timestamp: string;
144
144
  }, {
145
145
  sessionId: string;
146
+ timestamp: string;
146
147
  messageCount: number;
147
148
  duration: number;
148
- timestamp: string;
149
149
  }>>;
150
150
  firstSessionDate: z.ZodNullable<z.ZodString>;
151
151
  hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -193,9 +193,9 @@ export declare const ClaudeStatsDataSchema: z.ZodObject<{
193
193
  }>;
194
194
  longestSession: {
195
195
  sessionId: string;
196
+ timestamp: string;
196
197
  messageCount: number;
197
198
  duration: number;
198
- timestamp: string;
199
199
  } | null;
200
200
  firstSessionDate: string | null;
201
201
  hourCounts: Record<string, number>;
@@ -229,9 +229,9 @@ export declare const ClaudeStatsDataSchema: z.ZodObject<{
229
229
  }>;
230
230
  longestSession: {
231
231
  sessionId: string;
232
+ timestamp: string;
232
233
  messageCount: number;
233
234
  duration: number;
234
- timestamp: string;
235
235
  } | null;
236
236
  firstSessionDate: string | null;
237
237
  hourCounts: Record<string, number>;
@@ -322,14 +322,14 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
322
322
  timestamp: z.ZodString;
323
323
  }, "strip", z.ZodTypeAny, {
324
324
  sessionId: string;
325
+ timestamp: string;
325
326
  messageCount: number;
326
327
  duration: number;
327
- timestamp: string;
328
328
  }, {
329
329
  sessionId: string;
330
+ timestamp: string;
330
331
  messageCount: number;
331
332
  duration: number;
332
- timestamp: string;
333
333
  }>>;
334
334
  firstSessionDate: z.ZodNullable<z.ZodString>;
335
335
  hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -377,9 +377,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
377
377
  }>;
378
378
  longestSession: {
379
379
  sessionId: string;
380
+ timestamp: string;
380
381
  messageCount: number;
381
382
  duration: number;
382
- timestamp: string;
383
383
  } | null;
384
384
  firstSessionDate: string | null;
385
385
  hourCounts: Record<string, number>;
@@ -413,9 +413,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
413
413
  }>;
414
414
  longestSession: {
415
415
  sessionId: string;
416
+ timestamp: string;
416
417
  messageCount: number;
417
418
  duration: number;
418
- timestamp: string;
419
419
  } | null;
420
420
  firstSessionDate: string | null;
421
421
  hourCounts: Record<string, number>;
@@ -479,9 +479,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
479
479
  }>;
480
480
  longestSession: {
481
481
  sessionId: string;
482
+ timestamp: string;
482
483
  messageCount: number;
483
484
  duration: number;
484
- timestamp: string;
485
485
  } | null;
486
486
  firstSessionDate: string | null;
487
487
  hourCounts: Record<string, number>;
@@ -522,9 +522,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
522
522
  }>;
523
523
  longestSession: {
524
524
  sessionId: string;
525
+ timestamp: string;
525
526
  messageCount: number;
526
527
  duration: number;
527
- timestamp: string;
528
528
  } | null;
529
529
  firstSessionDate: string | null;
530
530
  hourCounts: Record<string, number>;
@@ -598,14 +598,14 @@ export declare const StatsOverviewSchema: z.ZodObject<{
598
598
  timestamp: z.ZodString;
599
599
  }, "strip", z.ZodTypeAny, {
600
600
  sessionId: string;
601
+ timestamp: string;
601
602
  messageCount: number;
602
603
  duration: number;
603
- timestamp: string;
604
604
  }, {
605
605
  sessionId: string;
606
+ timestamp: string;
606
607
  messageCount: number;
607
608
  duration: number;
608
- timestamp: string;
609
609
  }>>;
610
610
  firstSessionDate: z.ZodNullable<z.ZodString>;
611
611
  hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -653,9 +653,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
653
653
  }>;
654
654
  longestSession: {
655
655
  sessionId: string;
656
+ timestamp: string;
656
657
  messageCount: number;
657
658
  duration: number;
658
- timestamp: string;
659
659
  } | null;
660
660
  firstSessionDate: string | null;
661
661
  hourCounts: Record<string, number>;
@@ -689,9 +689,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
689
689
  }>;
690
690
  longestSession: {
691
691
  sessionId: string;
692
+ timestamp: string;
692
693
  messageCount: number;
693
694
  duration: number;
694
- timestamp: string;
695
695
  } | null;
696
696
  firstSessionDate: string | null;
697
697
  hourCounts: Record<string, number>;
@@ -785,14 +785,14 @@ export declare const StatsOverviewSchema: z.ZodObject<{
785
785
  timestamp: z.ZodString;
786
786
  }, "strip", z.ZodTypeAny, {
787
787
  sessionId: string;
788
+ timestamp: string;
788
789
  messageCount: number;
789
790
  duration: number;
790
- timestamp: string;
791
791
  }, {
792
792
  sessionId: string;
793
+ timestamp: string;
793
794
  messageCount: number;
794
795
  duration: number;
795
- timestamp: string;
796
796
  }>>;
797
797
  firstSessionDate: z.ZodNullable<z.ZodString>;
798
798
  hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -840,9 +840,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
840
840
  }>;
841
841
  longestSession: {
842
842
  sessionId: string;
843
+ timestamp: string;
843
844
  messageCount: number;
844
845
  duration: number;
845
- timestamp: string;
846
846
  } | null;
847
847
  firstSessionDate: string | null;
848
848
  hourCounts: Record<string, number>;
@@ -876,9 +876,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
876
876
  }>;
877
877
  longestSession: {
878
878
  sessionId: string;
879
+ timestamp: string;
879
880
  messageCount: number;
880
881
  duration: number;
881
- timestamp: string;
882
882
  } | null;
883
883
  firstSessionDate: string | null;
884
884
  hourCounts: Record<string, number>;
@@ -942,9 +942,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
942
942
  }>;
943
943
  longestSession: {
944
944
  sessionId: string;
945
+ timestamp: string;
945
946
  messageCount: number;
946
947
  duration: number;
947
- timestamp: string;
948
948
  } | null;
949
949
  firstSessionDate: string | null;
950
950
  hourCounts: Record<string, number>;
@@ -985,9 +985,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
985
985
  }>;
986
986
  longestSession: {
987
987
  sessionId: string;
988
+ timestamp: string;
988
989
  messageCount: number;
989
990
  duration: number;
990
- timestamp: string;
991
991
  } | null;
992
992
  firstSessionDate: string | null;
993
993
  hourCounts: Record<string, number>;
@@ -1031,9 +1031,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
1031
1031
  }>;
1032
1032
  longestSession: {
1033
1033
  sessionId: string;
1034
+ timestamp: string;
1034
1035
  messageCount: number;
1035
1036
  duration: number;
1036
- timestamp: string;
1037
1037
  } | null;
1038
1038
  firstSessionDate: string | null;
1039
1039
  hourCounts: Record<string, number>;
@@ -1088,9 +1088,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
1088
1088
  }>;
1089
1089
  longestSession: {
1090
1090
  sessionId: string;
1091
+ timestamp: string;
1091
1092
  messageCount: number;
1092
1093
  duration: number;
1093
- timestamp: string;
1094
1094
  } | null;
1095
1095
  firstSessionDate: string | null;
1096
1096
  hourCounts: Record<string, number>;
@@ -1127,9 +1127,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
1127
1127
  }>;
1128
1128
  longestSession: {
1129
1129
  sessionId: string;
1130
+ timestamp: string;
1130
1131
  messageCount: number;
1131
1132
  duration: number;
1132
- timestamp: string;
1133
1133
  } | null;
1134
1134
  firstSessionDate: string | null;
1135
1135
  hourCounts: Record<string, number>;
@@ -1179,9 +1179,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
1179
1179
  }>;
1180
1180
  longestSession: {
1181
1181
  sessionId: string;
1182
+ timestamp: string;
1182
1183
  messageCount: number;
1183
1184
  duration: number;
1184
- timestamp: string;
1185
1185
  } | null;
1186
1186
  firstSessionDate: string | null;
1187
1187
  hourCounts: Record<string, number>;
@@ -1266,14 +1266,14 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1266
1266
  timestamp: z.ZodString;
1267
1267
  }, "strip", z.ZodTypeAny, {
1268
1268
  sessionId: string;
1269
+ timestamp: string;
1269
1270
  messageCount: number;
1270
1271
  duration: number;
1271
- timestamp: string;
1272
1272
  }, {
1273
1273
  sessionId: string;
1274
+ timestamp: string;
1274
1275
  messageCount: number;
1275
1276
  duration: number;
1276
- timestamp: string;
1277
1277
  }>>;
1278
1278
  firstSessionDate: z.ZodNullable<z.ZodString>;
1279
1279
  hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -1321,9 +1321,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1321
1321
  }>;
1322
1322
  longestSession: {
1323
1323
  sessionId: string;
1324
+ timestamp: string;
1324
1325
  messageCount: number;
1325
1326
  duration: number;
1326
- timestamp: string;
1327
1327
  } | null;
1328
1328
  firstSessionDate: string | null;
1329
1329
  hourCounts: Record<string, number>;
@@ -1357,9 +1357,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1357
1357
  }>;
1358
1358
  longestSession: {
1359
1359
  sessionId: string;
1360
+ timestamp: string;
1360
1361
  messageCount: number;
1361
1362
  duration: number;
1362
- timestamp: string;
1363
1363
  } | null;
1364
1364
  firstSessionDate: string | null;
1365
1365
  hourCounts: Record<string, number>;
@@ -1453,14 +1453,14 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1453
1453
  timestamp: z.ZodString;
1454
1454
  }, "strip", z.ZodTypeAny, {
1455
1455
  sessionId: string;
1456
+ timestamp: string;
1456
1457
  messageCount: number;
1457
1458
  duration: number;
1458
- timestamp: string;
1459
1459
  }, {
1460
1460
  sessionId: string;
1461
+ timestamp: string;
1461
1462
  messageCount: number;
1462
1463
  duration: number;
1463
- timestamp: string;
1464
1464
  }>>;
1465
1465
  firstSessionDate: z.ZodNullable<z.ZodString>;
1466
1466
  hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -1508,9 +1508,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1508
1508
  }>;
1509
1509
  longestSession: {
1510
1510
  sessionId: string;
1511
+ timestamp: string;
1511
1512
  messageCount: number;
1512
1513
  duration: number;
1513
- timestamp: string;
1514
1514
  } | null;
1515
1515
  firstSessionDate: string | null;
1516
1516
  hourCounts: Record<string, number>;
@@ -1544,9 +1544,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1544
1544
  }>;
1545
1545
  longestSession: {
1546
1546
  sessionId: string;
1547
+ timestamp: string;
1547
1548
  messageCount: number;
1548
1549
  duration: number;
1549
- timestamp: string;
1550
1550
  } | null;
1551
1551
  firstSessionDate: string | null;
1552
1552
  hourCounts: Record<string, number>;
@@ -1610,9 +1610,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1610
1610
  }>;
1611
1611
  longestSession: {
1612
1612
  sessionId: string;
1613
+ timestamp: string;
1613
1614
  messageCount: number;
1614
1615
  duration: number;
1615
- timestamp: string;
1616
1616
  } | null;
1617
1617
  firstSessionDate: string | null;
1618
1618
  hourCounts: Record<string, number>;
@@ -1653,9 +1653,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1653
1653
  }>;
1654
1654
  longestSession: {
1655
1655
  sessionId: string;
1656
+ timestamp: string;
1656
1657
  messageCount: number;
1657
1658
  duration: number;
1658
- timestamp: string;
1659
1659
  } | null;
1660
1660
  firstSessionDate: string | null;
1661
1661
  hourCounts: Record<string, number>;
@@ -1699,9 +1699,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1699
1699
  }>;
1700
1700
  longestSession: {
1701
1701
  sessionId: string;
1702
+ timestamp: string;
1702
1703
  messageCount: number;
1703
1704
  duration: number;
1704
- timestamp: string;
1705
1705
  } | null;
1706
1706
  firstSessionDate: string | null;
1707
1707
  hourCounts: Record<string, number>;
@@ -1756,9 +1756,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1756
1756
  }>;
1757
1757
  longestSession: {
1758
1758
  sessionId: string;
1759
+ timestamp: string;
1759
1760
  messageCount: number;
1760
1761
  duration: number;
1761
- timestamp: string;
1762
1762
  } | null;
1763
1763
  firstSessionDate: string | null;
1764
1764
  hourCounts: Record<string, number>;
@@ -1795,9 +1795,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1795
1795
  }>;
1796
1796
  longestSession: {
1797
1797
  sessionId: string;
1798
+ timestamp: string;
1798
1799
  messageCount: number;
1799
1800
  duration: number;
1800
- timestamp: string;
1801
1801
  } | null;
1802
1802
  firstSessionDate: string | null;
1803
1803
  hourCounts: Record<string, number>;
@@ -1847,9 +1847,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1847
1847
  }>;
1848
1848
  longestSession: {
1849
1849
  sessionId: string;
1850
+ timestamp: string;
1850
1851
  messageCount: number;
1851
1852
  duration: number;
1852
- timestamp: string;
1853
1853
  } | null;
1854
1854
  firstSessionDate: string | null;
1855
1855
  hourCounts: Record<string, number>;
@@ -1897,9 +1897,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1897
1897
  }>;
1898
1898
  longestSession: {
1899
1899
  sessionId: string;
1900
+ timestamp: string;
1900
1901
  messageCount: number;
1901
1902
  duration: number;
1902
- timestamp: string;
1903
1903
  } | null;
1904
1904
  firstSessionDate: string | null;
1905
1905
  hourCounts: Record<string, number>;
@@ -1954,9 +1954,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1954
1954
  }>;
1955
1955
  longestSession: {
1956
1956
  sessionId: string;
1957
+ timestamp: string;
1957
1958
  messageCount: number;
1958
1959
  duration: number;
1959
- timestamp: string;
1960
1960
  } | null;
1961
1961
  firstSessionDate: string | null;
1962
1962
  hourCounts: Record<string, number>;
@@ -1997,9 +1997,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1997
1997
  }>;
1998
1998
  longestSession: {
1999
1999
  sessionId: string;
2000
+ timestamp: string;
2000
2001
  messageCount: number;
2001
2002
  duration: number;
2002
- timestamp: string;
2003
2003
  } | null;
2004
2004
  firstSessionDate: string | null;
2005
2005
  hourCounts: Record<string, number>;
@@ -2049,9 +2049,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
2049
2049
  }>;
2050
2050
  longestSession: {
2051
2051
  sessionId: string;
2052
+ timestamp: string;
2052
2053
  messageCount: number;
2053
2054
  duration: number;
2054
- timestamp: string;
2055
2055
  } | null;
2056
2056
  firstSessionDate: string | null;
2057
2057
  hourCounts: Record<string, number>;
package/dist/sync.d.ts CHANGED
@@ -135,13 +135,14 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
135
135
  }>>>;
136
136
  active: z.ZodOptional<z.ZodBoolean>;
137
137
  /** Session source — promoted from 'history' to 'managed' on resume. */
138
- source: z.ZodOptional<z.ZodEnum<["managed", "history"]>>;
138
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
139
139
  /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
140
140
  dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
141
  }, "strip", z.ZodTypeAny, {
142
142
  t: "update-session";
143
143
  id: string;
144
144
  machineId?: string | undefined;
145
+ source?: "managed" | "history" | "scheduled" | undefined;
145
146
  displayName?: string | null | undefined;
146
147
  active?: boolean | undefined;
147
148
  tag?: string | undefined;
@@ -153,12 +154,12 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
153
154
  value: string | null;
154
155
  version: number;
155
156
  } | null | undefined;
156
- source?: "managed" | "history" | undefined;
157
157
  dataEncryptionKey?: string | null | undefined;
158
158
  }, {
159
159
  t: "update-session";
160
160
  id: string;
161
161
  machineId?: string | undefined;
162
+ source?: "managed" | "history" | "scheduled" | undefined;
162
163
  displayName?: string | null | undefined;
163
164
  active?: boolean | undefined;
164
165
  tag?: string | undefined;
@@ -170,7 +171,6 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
170
171
  value: string | null;
171
172
  version: number;
172
173
  } | null | undefined;
173
- source?: "managed" | "history" | undefined;
174
174
  dataEncryptionKey?: string | null | undefined;
175
175
  }>;
176
176
  export type UpdateSessionBody = z.infer<typeof UpdateSessionBodySchema>;
@@ -260,6 +260,17 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
260
260
  } | null | undefined;
261
261
  }>;
262
262
  export type UpdateMachineBody = z.infer<typeof UpdateMachineBodySchema>;
263
+ export declare const UpdateSessionResetBodySchema: z.ZodObject<{
264
+ t: z.ZodLiteral<"session-reset">;
265
+ sessionId: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ t: "session-reset";
268
+ sessionId: string;
269
+ }, {
270
+ t: "session-reset";
271
+ sessionId: string;
272
+ }>;
273
+ export type UpdateSessionResetBody = z.infer<typeof UpdateSessionResetBodySchema>;
263
274
  export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
264
275
  t: z.ZodLiteral<"new-message">;
265
276
  sid: z.ZodString;
@@ -356,13 +367,14 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
356
367
  }>>>;
357
368
  active: z.ZodOptional<z.ZodBoolean>;
358
369
  /** Session source — promoted from 'history' to 'managed' on resume. */
359
- source: z.ZodOptional<z.ZodEnum<["managed", "history"]>>;
370
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
360
371
  /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
361
372
  dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
373
  }, "strip", z.ZodTypeAny, {
363
374
  t: "update-session";
364
375
  id: string;
365
376
  machineId?: string | undefined;
377
+ source?: "managed" | "history" | "scheduled" | undefined;
366
378
  displayName?: string | null | undefined;
367
379
  active?: boolean | undefined;
368
380
  tag?: string | undefined;
@@ -374,12 +386,12 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
374
386
  value: string | null;
375
387
  version: number;
376
388
  } | null | undefined;
377
- source?: "managed" | "history" | undefined;
378
389
  dataEncryptionKey?: string | null | undefined;
379
390
  }, {
380
391
  t: "update-session";
381
392
  id: string;
382
393
  machineId?: string | undefined;
394
+ source?: "managed" | "history" | "scheduled" | undefined;
383
395
  displayName?: string | null | undefined;
384
396
  active?: boolean | undefined;
385
397
  tag?: string | undefined;
@@ -391,7 +403,6 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
391
403
  value: string | null;
392
404
  version: number;
393
405
  } | null | undefined;
394
- source?: "managed" | "history" | undefined;
395
406
  dataEncryptionKey?: string | null | undefined;
396
407
  }>, z.ZodObject<{
397
408
  t: z.ZodLiteral<"update-machine">;
@@ -477,6 +488,15 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
477
488
  value: string;
478
489
  version: number;
479
490
  } | null | undefined;
491
+ }>, z.ZodObject<{
492
+ t: z.ZodLiteral<"session-reset">;
493
+ sessionId: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ t: "session-reset";
496
+ sessionId: string;
497
+ }, {
498
+ t: "session-reset";
499
+ sessionId: string;
480
500
  }>]>;
481
501
  export type CoreUpdateBody = z.infer<typeof CoreUpdateBodySchema>;
482
502
  export declare const CoreUpdateContainerSchema: z.ZodObject<{
@@ -578,13 +598,14 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
578
598
  }>>>;
579
599
  active: z.ZodOptional<z.ZodBoolean>;
580
600
  /** Session source — promoted from 'history' to 'managed' on resume. */
581
- source: z.ZodOptional<z.ZodEnum<["managed", "history"]>>;
601
+ source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
582
602
  /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
583
603
  dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
604
  }, "strip", z.ZodTypeAny, {
585
605
  t: "update-session";
586
606
  id: string;
587
607
  machineId?: string | undefined;
608
+ source?: "managed" | "history" | "scheduled" | undefined;
588
609
  displayName?: string | null | undefined;
589
610
  active?: boolean | undefined;
590
611
  tag?: string | undefined;
@@ -596,12 +617,12 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
596
617
  value: string | null;
597
618
  version: number;
598
619
  } | null | undefined;
599
- source?: "managed" | "history" | undefined;
600
620
  dataEncryptionKey?: string | null | undefined;
601
621
  }, {
602
622
  t: "update-session";
603
623
  id: string;
604
624
  machineId?: string | undefined;
625
+ source?: "managed" | "history" | "scheduled" | undefined;
605
626
  displayName?: string | null | undefined;
606
627
  active?: boolean | undefined;
607
628
  tag?: string | undefined;
@@ -613,7 +634,6 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
613
634
  value: string | null;
614
635
  version: number;
615
636
  } | null | undefined;
616
- source?: "managed" | "history" | undefined;
617
637
  dataEncryptionKey?: string | null | undefined;
618
638
  }>, z.ZodObject<{
619
639
  t: z.ZodLiteral<"update-machine">;
@@ -699,6 +719,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
699
719
  value: string;
700
720
  version: number;
701
721
  } | null | undefined;
722
+ }>, z.ZodObject<{
723
+ t: z.ZodLiteral<"session-reset">;
724
+ sessionId: z.ZodString;
725
+ }, "strip", z.ZodTypeAny, {
726
+ t: "session-reset";
727
+ sessionId: string;
728
+ }, {
729
+ t: "session-reset";
730
+ sessionId: string;
702
731
  }>]>;
703
732
  createdAt: z.ZodNumber;
704
733
  }, "strip", z.ZodTypeAny, {
@@ -723,6 +752,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
723
752
  t: "update-session";
724
753
  id: string;
725
754
  machineId?: string | undefined;
755
+ source?: "managed" | "history" | "scheduled" | undefined;
726
756
  displayName?: string | null | undefined;
727
757
  active?: boolean | undefined;
728
758
  tag?: string | undefined;
@@ -734,7 +764,6 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
734
764
  value: string | null;
735
765
  version: number;
736
766
  } | null | undefined;
737
- source?: "managed" | "history" | undefined;
738
767
  dataEncryptionKey?: string | null | undefined;
739
768
  } | {
740
769
  t: "update-machine";
@@ -760,6 +789,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
760
789
  value: string;
761
790
  version: number;
762
791
  } | null | undefined;
792
+ } | {
793
+ t: "session-reset";
794
+ sessionId: string;
763
795
  };
764
796
  }, {
765
797
  id: string;
@@ -783,6 +815,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
783
815
  t: "update-session";
784
816
  id: string;
785
817
  machineId?: string | undefined;
818
+ source?: "managed" | "history" | "scheduled" | undefined;
786
819
  displayName?: string | null | undefined;
787
820
  active?: boolean | undefined;
788
821
  tag?: string | undefined;
@@ -794,7 +827,6 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
794
827
  value: string | null;
795
828
  version: number;
796
829
  } | null | undefined;
797
- source?: "managed" | "history" | undefined;
798
830
  dataEncryptionKey?: string | null | undefined;
799
831
  } | {
800
832
  t: "update-machine";
@@ -820,6 +852,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
820
852
  value: string;
821
853
  version: number;
822
854
  } | null | undefined;
855
+ } | {
856
+ t: "session-reset";
857
+ sessionId: string;
823
858
  };
824
859
  }>;
825
860
  export type CoreUpdateContainer = z.infer<typeof CoreUpdateContainerSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA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AAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAIlE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA5CpC,uEAAuE;;QAEvE,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C7E,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
package/dist/sync.js CHANGED
@@ -35,7 +35,7 @@ export const UpdateSessionBodySchema = z.object({
35
35
  agentState: VersionedNullableEncryptedValueSchema.nullish(),
36
36
  active: z.boolean().optional(),
37
37
  /** Session source — promoted from 'history' to 'managed' on resume. */
38
- source: z.enum(['managed', 'history']).optional(),
38
+ source: z.enum(['managed', 'history', 'scheduled']).optional(),
39
39
  /** Base64-encoded wrapped DEK — only present on session-create broadcast. */
40
40
  dataEncryptionKey: z.string().nullish(),
41
41
  });
@@ -58,10 +58,15 @@ export const UpdateMachineBodySchema = z.object({
58
58
  upgradeError: z.string().optional(),
59
59
  superseded: z.boolean().optional(),
60
60
  });
61
+ export const UpdateSessionResetBodySchema = z.object({
62
+ t: z.literal('session-reset'),
63
+ sessionId: z.string(),
64
+ });
61
65
  export const CoreUpdateBodySchema = z.discriminatedUnion('t', [
62
66
  UpdateNewMessageBodySchema,
63
67
  UpdateSessionBodySchema,
64
68
  UpdateMachineBodySchema,
69
+ UpdateSessionResetBodySchema,
65
70
  ]);
66
71
  // ── Update container ────────────────────────────────────────────────
67
72
  export const CoreUpdateContainerSchema = z.object({