@@ -1327,6 +1327,236 @@ public struct SessionsResolveParams: Codable, Sendable {
13271327 }
13281328}
13291329
1330+ public struct SessionCompactionCheckpoint : Codable , Sendable {
1331+ public let checkpointid : String
1332+ public let sessionkey : String
1333+ public let sessionid : String
1334+ public let createdat : Int
1335+ public let reason : AnyCodable
1336+ public let tokensbefore : Int ?
1337+ public let tokensafter : Int ?
1338+ public let summary : String ?
1339+ public let firstkeptentryid : String ?
1340+ public let precompaction : [ String : AnyCodable ]
1341+ public let postcompaction : [ String : AnyCodable ]
1342+
1343+ public init (
1344+ checkpointid: String ,
1345+ sessionkey: String ,
1346+ sessionid: String ,
1347+ createdat: Int ,
1348+ reason: AnyCodable ,
1349+ tokensbefore: Int ? ,
1350+ tokensafter: Int ? ,
1351+ summary: String ? ,
1352+ firstkeptentryid: String ? ,
1353+ precompaction: [ String : AnyCodable ] ,
1354+ postcompaction: [ String : AnyCodable ] )
1355+ {
1356+ self . checkpointid = checkpointid
1357+ self . sessionkey = sessionkey
1358+ self . sessionid = sessionid
1359+ self . createdat = createdat
1360+ self . reason = reason
1361+ self . tokensbefore = tokensbefore
1362+ self . tokensafter = tokensafter
1363+ self . summary = summary
1364+ self . firstkeptentryid = firstkeptentryid
1365+ self . precompaction = precompaction
1366+ self . postcompaction = postcompaction
1367+ }
1368+
1369+ private enum CodingKeys : String , CodingKey {
1370+ case checkpointid = " checkpointId "
1371+ case sessionkey = " sessionKey "
1372+ case sessionid = " sessionId "
1373+ case createdat = " createdAt "
1374+ case reason
1375+ case tokensbefore = " tokensBefore "
1376+ case tokensafter = " tokensAfter "
1377+ case summary
1378+ case firstkeptentryid = " firstKeptEntryId "
1379+ case precompaction = " preCompaction "
1380+ case postcompaction = " postCompaction "
1381+ }
1382+ }
1383+
1384+ public struct SessionsCompactionListParams : Codable , Sendable {
1385+ public let key : String
1386+
1387+ public init (
1388+ key: String )
1389+ {
1390+ self . key = key
1391+ }
1392+
1393+ private enum CodingKeys : String , CodingKey {
1394+ case key
1395+ }
1396+ }
1397+
1398+ public struct SessionsCompactionGetParams : Codable , Sendable {
1399+ public let key : String
1400+ public let checkpointid : String
1401+
1402+ public init (
1403+ key: String ,
1404+ checkpointid: String )
1405+ {
1406+ self . key = key
1407+ self . checkpointid = checkpointid
1408+ }
1409+
1410+ private enum CodingKeys : String , CodingKey {
1411+ case key
1412+ case checkpointid = " checkpointId "
1413+ }
1414+ }
1415+
1416+ public struct SessionsCompactionBranchParams : Codable , Sendable {
1417+ public let key : String
1418+ public let checkpointid : String
1419+
1420+ public init (
1421+ key: String ,
1422+ checkpointid: String )
1423+ {
1424+ self . key = key
1425+ self . checkpointid = checkpointid
1426+ }
1427+
1428+ private enum CodingKeys : String , CodingKey {
1429+ case key
1430+ case checkpointid = " checkpointId "
1431+ }
1432+ }
1433+
1434+ public struct SessionsCompactionRestoreParams : Codable , Sendable {
1435+ public let key : String
1436+ public let checkpointid : String
1437+
1438+ public init (
1439+ key: String ,
1440+ checkpointid: String )
1441+ {
1442+ self . key = key
1443+ self . checkpointid = checkpointid
1444+ }
1445+
1446+ private enum CodingKeys : String , CodingKey {
1447+ case key
1448+ case checkpointid = " checkpointId "
1449+ }
1450+ }
1451+
1452+ public struct SessionsCompactionListResult : Codable , Sendable {
1453+ public let ok : Bool
1454+ public let key : String
1455+ public let checkpoints : [ SessionCompactionCheckpoint ]
1456+
1457+ public init (
1458+ ok: Bool ,
1459+ key: String ,
1460+ checkpoints: [ SessionCompactionCheckpoint ] )
1461+ {
1462+ self . ok = ok
1463+ self . key = key
1464+ self . checkpoints = checkpoints
1465+ }
1466+
1467+ private enum CodingKeys : String , CodingKey {
1468+ case ok
1469+ case key
1470+ case checkpoints
1471+ }
1472+ }
1473+
1474+ public struct SessionsCompactionGetResult : Codable , Sendable {
1475+ public let ok : Bool
1476+ public let key : String
1477+ public let checkpoint : SessionCompactionCheckpoint
1478+
1479+ public init (
1480+ ok: Bool ,
1481+ key: String ,
1482+ checkpoint: SessionCompactionCheckpoint )
1483+ {
1484+ self . ok = ok
1485+ self . key = key
1486+ self . checkpoint = checkpoint
1487+ }
1488+
1489+ private enum CodingKeys : String , CodingKey {
1490+ case ok
1491+ case key
1492+ case checkpoint
1493+ }
1494+ }
1495+
1496+ public struct SessionsCompactionBranchResult : Codable , Sendable {
1497+ public let ok : Bool
1498+ public let sourcekey : String
1499+ public let key : String
1500+ public let sessionid : String
1501+ public let checkpoint : SessionCompactionCheckpoint
1502+ public let entry : [ String : AnyCodable ]
1503+
1504+ public init (
1505+ ok: Bool ,
1506+ sourcekey: String ,
1507+ key: String ,
1508+ sessionid: String ,
1509+ checkpoint: SessionCompactionCheckpoint ,
1510+ entry: [ String : AnyCodable ] )
1511+ {
1512+ self . ok = ok
1513+ self . sourcekey = sourcekey
1514+ self . key = key
1515+ self . sessionid = sessionid
1516+ self . checkpoint = checkpoint
1517+ self . entry = entry
1518+ }
1519+
1520+ private enum CodingKeys : String , CodingKey {
1521+ case ok
1522+ case sourcekey = " sourceKey "
1523+ case key
1524+ case sessionid = " sessionId "
1525+ case checkpoint
1526+ case entry
1527+ }
1528+ }
1529+
1530+ public struct SessionsCompactionRestoreResult : Codable , Sendable {
1531+ public let ok : Bool
1532+ public let key : String
1533+ public let sessionid : String
1534+ public let checkpoint : SessionCompactionCheckpoint
1535+ public let entry : [ String : AnyCodable ]
1536+
1537+ public init (
1538+ ok: Bool ,
1539+ key: String ,
1540+ sessionid: String ,
1541+ checkpoint: SessionCompactionCheckpoint ,
1542+ entry: [ String : AnyCodable ] )
1543+ {
1544+ self . ok = ok
1545+ self . key = key
1546+ self . sessionid = sessionid
1547+ self . checkpoint = checkpoint
1548+ self . entry = entry
1549+ }
1550+
1551+ private enum CodingKeys : String , CodingKey {
1552+ case ok
1553+ case key
1554+ case sessionid = " sessionId "
1555+ case checkpoint
1556+ case entry
1557+ }
1558+ }
1559+
13301560public struct SessionsCreateParams : Codable , Sendable {
13311561 public let key : String ?
13321562 public let agentid : String ?
0 commit comments