@librecode/sdk 0.1.7 → 0.3.0
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/v2/gen/sdk.gen.d.ts +47 -47
- package/dist/v2/gen/sdk.gen.js +93 -93
- package/dist/v2/gen/types.gen.d.ts +100 -100
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -536,6 +536,28 @@ export declare class Session2 extends HeyApiClient {
|
|
|
536
536
|
modelID?: string;
|
|
537
537
|
auto?: boolean;
|
|
538
538
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError, "fields">;
|
|
539
|
+
/**
|
|
540
|
+
* Revert message
|
|
541
|
+
*
|
|
542
|
+
* Revert a specific message in a session, undoing its effects and restoring the previous state.
|
|
543
|
+
*/
|
|
544
|
+
revert<ThrowOnError extends boolean = false>(parameters: {
|
|
545
|
+
sessionID: string;
|
|
546
|
+
directory?: string;
|
|
547
|
+
workspace?: string;
|
|
548
|
+
messageID?: string;
|
|
549
|
+
partID?: string;
|
|
550
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
|
|
551
|
+
/**
|
|
552
|
+
* Restore reverted messages
|
|
553
|
+
*
|
|
554
|
+
* Restore all previously reverted messages in a session.
|
|
555
|
+
*/
|
|
556
|
+
unrevert<ThrowOnError extends boolean = false>(parameters: {
|
|
557
|
+
sessionID: string;
|
|
558
|
+
directory?: string;
|
|
559
|
+
workspace?: string;
|
|
560
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
|
|
539
561
|
/**
|
|
540
562
|
* Get session messages
|
|
541
563
|
*
|
|
@@ -658,51 +680,6 @@ export declare class Session2 extends HeyApiClient {
|
|
|
658
680
|
};
|
|
659
681
|
command?: string;
|
|
660
682
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses, SessionShellErrors, ThrowOnError, "fields">;
|
|
661
|
-
/**
|
|
662
|
-
* Revert message
|
|
663
|
-
*
|
|
664
|
-
* Revert a specific message in a session, undoing its effects and restoring the previous state.
|
|
665
|
-
*/
|
|
666
|
-
revert<ThrowOnError extends boolean = false>(parameters: {
|
|
667
|
-
sessionID: string;
|
|
668
|
-
directory?: string;
|
|
669
|
-
workspace?: string;
|
|
670
|
-
messageID?: string;
|
|
671
|
-
partID?: string;
|
|
672
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
|
|
673
|
-
/**
|
|
674
|
-
* Restore reverted messages
|
|
675
|
-
*
|
|
676
|
-
* Restore all previously reverted messages in a session.
|
|
677
|
-
*/
|
|
678
|
-
unrevert<ThrowOnError extends boolean = false>(parameters: {
|
|
679
|
-
sessionID: string;
|
|
680
|
-
directory?: string;
|
|
681
|
-
workspace?: string;
|
|
682
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
|
|
683
|
-
}
|
|
684
|
-
export declare class Part extends HeyApiClient {
|
|
685
|
-
/**
|
|
686
|
-
* Delete a part from a message
|
|
687
|
-
*/
|
|
688
|
-
delete<ThrowOnError extends boolean = false>(parameters: {
|
|
689
|
-
sessionID: string;
|
|
690
|
-
messageID: string;
|
|
691
|
-
partID: string;
|
|
692
|
-
directory?: string;
|
|
693
|
-
workspace?: string;
|
|
694
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
|
|
695
|
-
/**
|
|
696
|
-
* Update a part in a message
|
|
697
|
-
*/
|
|
698
|
-
update<ThrowOnError extends boolean = false>(parameters: {
|
|
699
|
-
sessionID: string;
|
|
700
|
-
messageID: string;
|
|
701
|
-
partID: string;
|
|
702
|
-
directory?: string;
|
|
703
|
-
workspace?: string;
|
|
704
|
-
part?: Part2;
|
|
705
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
|
|
706
683
|
}
|
|
707
684
|
export declare class Permission extends HeyApiClient {
|
|
708
685
|
/**
|
|
@@ -741,6 +718,29 @@ export declare class Permission extends HeyApiClient {
|
|
|
741
718
|
workspace?: string;
|
|
742
719
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionListResponses, unknown, ThrowOnError, "fields">;
|
|
743
720
|
}
|
|
721
|
+
export declare class Part extends HeyApiClient {
|
|
722
|
+
/**
|
|
723
|
+
* Delete a part from a message
|
|
724
|
+
*/
|
|
725
|
+
delete<ThrowOnError extends boolean = false>(parameters: {
|
|
726
|
+
sessionID: string;
|
|
727
|
+
messageID: string;
|
|
728
|
+
partID: string;
|
|
729
|
+
directory?: string;
|
|
730
|
+
workspace?: string;
|
|
731
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
|
|
732
|
+
/**
|
|
733
|
+
* Update a part in a message
|
|
734
|
+
*/
|
|
735
|
+
update<ThrowOnError extends boolean = false>(parameters: {
|
|
736
|
+
sessionID: string;
|
|
737
|
+
messageID: string;
|
|
738
|
+
partID: string;
|
|
739
|
+
directory?: string;
|
|
740
|
+
workspace?: string;
|
|
741
|
+
part?: Part2;
|
|
742
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
|
|
743
|
+
}
|
|
744
744
|
export declare class Question extends HeyApiClient {
|
|
745
745
|
/**
|
|
746
746
|
* List pending questions
|
|
@@ -1265,10 +1265,10 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
1265
1265
|
get worktree(): Worktree;
|
|
1266
1266
|
private _session?;
|
|
1267
1267
|
get session(): Session2;
|
|
1268
|
-
private _part?;
|
|
1269
|
-
get part(): Part;
|
|
1270
1268
|
private _permission?;
|
|
1271
1269
|
get permission(): Permission;
|
|
1270
|
+
private _part?;
|
|
1271
|
+
get part(): Part;
|
|
1272
1272
|
private _question?;
|
|
1273
1273
|
get question(): Question;
|
|
1274
1274
|
private _provider?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -1069,6 +1069,55 @@ export class Session2 extends HeyApiClient {
|
|
|
1069
1069
|
},
|
|
1070
1070
|
});
|
|
1071
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Revert message
|
|
1074
|
+
*
|
|
1075
|
+
* Revert a specific message in a session, undoing its effects and restoring the previous state.
|
|
1076
|
+
*/
|
|
1077
|
+
revert(parameters, options) {
|
|
1078
|
+
const params = buildClientParams([parameters], [
|
|
1079
|
+
{
|
|
1080
|
+
args: [
|
|
1081
|
+
{ in: "path", key: "sessionID" },
|
|
1082
|
+
{ in: "query", key: "directory" },
|
|
1083
|
+
{ in: "query", key: "workspace" },
|
|
1084
|
+
{ in: "body", key: "messageID" },
|
|
1085
|
+
{ in: "body", key: "partID" },
|
|
1086
|
+
],
|
|
1087
|
+
},
|
|
1088
|
+
]);
|
|
1089
|
+
return (options?.client ?? this.client).post({
|
|
1090
|
+
url: "/session/{sessionID}/revert",
|
|
1091
|
+
...options,
|
|
1092
|
+
...params,
|
|
1093
|
+
headers: {
|
|
1094
|
+
"Content-Type": "application/json",
|
|
1095
|
+
...options?.headers,
|
|
1096
|
+
...params.headers,
|
|
1097
|
+
},
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Restore reverted messages
|
|
1102
|
+
*
|
|
1103
|
+
* Restore all previously reverted messages in a session.
|
|
1104
|
+
*/
|
|
1105
|
+
unrevert(parameters, options) {
|
|
1106
|
+
const params = buildClientParams([parameters], [
|
|
1107
|
+
{
|
|
1108
|
+
args: [
|
|
1109
|
+
{ in: "path", key: "sessionID" },
|
|
1110
|
+
{ in: "query", key: "directory" },
|
|
1111
|
+
{ in: "query", key: "workspace" },
|
|
1112
|
+
],
|
|
1113
|
+
},
|
|
1114
|
+
]);
|
|
1115
|
+
return (options?.client ?? this.client).post({
|
|
1116
|
+
url: "/session/{sessionID}/unrevert",
|
|
1117
|
+
...options,
|
|
1118
|
+
...params,
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1072
1121
|
/**
|
|
1073
1122
|
* Get session messages
|
|
1074
1123
|
*
|
|
@@ -1268,25 +1317,29 @@ export class Session2 extends HeyApiClient {
|
|
|
1268
1317
|
},
|
|
1269
1318
|
});
|
|
1270
1319
|
}
|
|
1320
|
+
}
|
|
1321
|
+
export class Permission extends HeyApiClient {
|
|
1271
1322
|
/**
|
|
1272
|
-
*
|
|
1323
|
+
* Respond to permission
|
|
1273
1324
|
*
|
|
1274
|
-
*
|
|
1325
|
+
* Approve or deny a permission request from the AI assistant.
|
|
1326
|
+
*
|
|
1327
|
+
* @deprecated
|
|
1275
1328
|
*/
|
|
1276
|
-
|
|
1329
|
+
respond(parameters, options) {
|
|
1277
1330
|
const params = buildClientParams([parameters], [
|
|
1278
1331
|
{
|
|
1279
1332
|
args: [
|
|
1280
1333
|
{ in: "path", key: "sessionID" },
|
|
1334
|
+
{ in: "path", key: "permissionID" },
|
|
1281
1335
|
{ in: "query", key: "directory" },
|
|
1282
1336
|
{ in: "query", key: "workspace" },
|
|
1283
|
-
{ in: "body", key: "
|
|
1284
|
-
{ in: "body", key: "partID" },
|
|
1337
|
+
{ in: "body", key: "response" },
|
|
1285
1338
|
],
|
|
1286
1339
|
},
|
|
1287
1340
|
]);
|
|
1288
1341
|
return (options?.client ?? this.client).post({
|
|
1289
|
-
url: "/session/{sessionID}/
|
|
1342
|
+
url: "/session/{sessionID}/permissions/{permissionID}",
|
|
1290
1343
|
...options,
|
|
1291
1344
|
...params,
|
|
1292
1345
|
headers: {
|
|
@@ -1297,53 +1350,59 @@ export class Session2 extends HeyApiClient {
|
|
|
1297
1350
|
});
|
|
1298
1351
|
}
|
|
1299
1352
|
/**
|
|
1300
|
-
*
|
|
1353
|
+
* Respond to permission request
|
|
1301
1354
|
*
|
|
1302
|
-
*
|
|
1355
|
+
* Approve or deny a permission request from the AI assistant.
|
|
1303
1356
|
*/
|
|
1304
|
-
|
|
1357
|
+
reply(parameters, options) {
|
|
1305
1358
|
const params = buildClientParams([parameters], [
|
|
1306
1359
|
{
|
|
1307
1360
|
args: [
|
|
1308
|
-
{ in: "path", key: "
|
|
1361
|
+
{ in: "path", key: "requestID" },
|
|
1309
1362
|
{ in: "query", key: "directory" },
|
|
1310
1363
|
{ in: "query", key: "workspace" },
|
|
1364
|
+
{ in: "body", key: "reply" },
|
|
1365
|
+
{ in: "body", key: "message" },
|
|
1311
1366
|
],
|
|
1312
1367
|
},
|
|
1313
1368
|
]);
|
|
1314
1369
|
return (options?.client ?? this.client).post({
|
|
1315
|
-
url: "/
|
|
1370
|
+
url: "/permission/{requestID}/reply",
|
|
1316
1371
|
...options,
|
|
1317
1372
|
...params,
|
|
1373
|
+
headers: {
|
|
1374
|
+
"Content-Type": "application/json",
|
|
1375
|
+
...options?.headers,
|
|
1376
|
+
...params.headers,
|
|
1377
|
+
},
|
|
1318
1378
|
});
|
|
1319
1379
|
}
|
|
1320
|
-
}
|
|
1321
|
-
export class Part extends HeyApiClient {
|
|
1322
1380
|
/**
|
|
1323
|
-
*
|
|
1381
|
+
* List pending permissions
|
|
1382
|
+
*
|
|
1383
|
+
* Get all pending permission requests across all sessions.
|
|
1324
1384
|
*/
|
|
1325
|
-
|
|
1385
|
+
list(parameters, options) {
|
|
1326
1386
|
const params = buildClientParams([parameters], [
|
|
1327
1387
|
{
|
|
1328
1388
|
args: [
|
|
1329
|
-
{ in: "path", key: "sessionID" },
|
|
1330
|
-
{ in: "path", key: "messageID" },
|
|
1331
|
-
{ in: "path", key: "partID" },
|
|
1332
1389
|
{ in: "query", key: "directory" },
|
|
1333
1390
|
{ in: "query", key: "workspace" },
|
|
1334
1391
|
],
|
|
1335
1392
|
},
|
|
1336
1393
|
]);
|
|
1337
|
-
return (options?.client ?? this.client).
|
|
1338
|
-
url: "/
|
|
1394
|
+
return (options?.client ?? this.client).get({
|
|
1395
|
+
url: "/permission",
|
|
1339
1396
|
...options,
|
|
1340
1397
|
...params,
|
|
1341
1398
|
});
|
|
1342
1399
|
}
|
|
1400
|
+
}
|
|
1401
|
+
export class Part extends HeyApiClient {
|
|
1343
1402
|
/**
|
|
1344
|
-
*
|
|
1403
|
+
* Delete a part from a message
|
|
1345
1404
|
*/
|
|
1346
|
-
|
|
1405
|
+
delete(parameters, options) {
|
|
1347
1406
|
const params = buildClientParams([parameters], [
|
|
1348
1407
|
{
|
|
1349
1408
|
args: [
|
|
@@ -1352,72 +1411,33 @@ export class Part extends HeyApiClient {
|
|
|
1352
1411
|
{ in: "path", key: "partID" },
|
|
1353
1412
|
{ in: "query", key: "directory" },
|
|
1354
1413
|
{ in: "query", key: "workspace" },
|
|
1355
|
-
{ key: "part", map: "body" },
|
|
1356
1414
|
],
|
|
1357
1415
|
},
|
|
1358
1416
|
]);
|
|
1359
|
-
return (options?.client ?? this.client).
|
|
1417
|
+
return (options?.client ?? this.client).delete({
|
|
1360
1418
|
url: "/session/{sessionID}/message/{messageID}/part/{partID}",
|
|
1361
1419
|
...options,
|
|
1362
1420
|
...params,
|
|
1363
|
-
headers: {
|
|
1364
|
-
"Content-Type": "application/json",
|
|
1365
|
-
...options?.headers,
|
|
1366
|
-
...params.headers,
|
|
1367
|
-
},
|
|
1368
1421
|
});
|
|
1369
1422
|
}
|
|
1370
|
-
}
|
|
1371
|
-
export class Permission extends HeyApiClient {
|
|
1372
1423
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
*
|
|
1375
|
-
* Approve or deny a permission request from the AI assistant.
|
|
1376
|
-
*
|
|
1377
|
-
* @deprecated
|
|
1424
|
+
* Update a part in a message
|
|
1378
1425
|
*/
|
|
1379
|
-
|
|
1426
|
+
update(parameters, options) {
|
|
1380
1427
|
const params = buildClientParams([parameters], [
|
|
1381
1428
|
{
|
|
1382
1429
|
args: [
|
|
1383
1430
|
{ in: "path", key: "sessionID" },
|
|
1384
|
-
{ in: "path", key: "
|
|
1385
|
-
{ in: "
|
|
1386
|
-
{ in: "query", key: "workspace" },
|
|
1387
|
-
{ in: "body", key: "response" },
|
|
1388
|
-
],
|
|
1389
|
-
},
|
|
1390
|
-
]);
|
|
1391
|
-
return (options?.client ?? this.client).post({
|
|
1392
|
-
url: "/session/{sessionID}/permissions/{permissionID}",
|
|
1393
|
-
...options,
|
|
1394
|
-
...params,
|
|
1395
|
-
headers: {
|
|
1396
|
-
"Content-Type": "application/json",
|
|
1397
|
-
...options?.headers,
|
|
1398
|
-
...params.headers,
|
|
1399
|
-
},
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
/**
|
|
1403
|
-
* Respond to permission request
|
|
1404
|
-
*
|
|
1405
|
-
* Approve or deny a permission request from the AI assistant.
|
|
1406
|
-
*/
|
|
1407
|
-
reply(parameters, options) {
|
|
1408
|
-
const params = buildClientParams([parameters], [
|
|
1409
|
-
{
|
|
1410
|
-
args: [
|
|
1411
|
-
{ in: "path", key: "requestID" },
|
|
1431
|
+
{ in: "path", key: "messageID" },
|
|
1432
|
+
{ in: "path", key: "partID" },
|
|
1412
1433
|
{ in: "query", key: "directory" },
|
|
1413
1434
|
{ in: "query", key: "workspace" },
|
|
1414
|
-
{
|
|
1415
|
-
{ in: "body", key: "message" },
|
|
1435
|
+
{ key: "part", map: "body" },
|
|
1416
1436
|
],
|
|
1417
1437
|
},
|
|
1418
1438
|
]);
|
|
1419
|
-
return (options?.client ?? this.client).
|
|
1420
|
-
url: "/
|
|
1439
|
+
return (options?.client ?? this.client).patch({
|
|
1440
|
+
url: "/session/{sessionID}/message/{messageID}/part/{partID}",
|
|
1421
1441
|
...options,
|
|
1422
1442
|
...params,
|
|
1423
1443
|
headers: {
|
|
@@ -1427,26 +1447,6 @@ export class Permission extends HeyApiClient {
|
|
|
1427
1447
|
},
|
|
1428
1448
|
});
|
|
1429
1449
|
}
|
|
1430
|
-
/**
|
|
1431
|
-
* List pending permissions
|
|
1432
|
-
*
|
|
1433
|
-
* Get all pending permission requests across all sessions.
|
|
1434
|
-
*/
|
|
1435
|
-
list(parameters, options) {
|
|
1436
|
-
const params = buildClientParams([parameters], [
|
|
1437
|
-
{
|
|
1438
|
-
args: [
|
|
1439
|
-
{ in: "query", key: "directory" },
|
|
1440
|
-
{ in: "query", key: "workspace" },
|
|
1441
|
-
],
|
|
1442
|
-
},
|
|
1443
|
-
]);
|
|
1444
|
-
return (options?.client ?? this.client).get({
|
|
1445
|
-
url: "/permission",
|
|
1446
|
-
...options,
|
|
1447
|
-
...params,
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
1450
|
}
|
|
1451
1451
|
export class Question extends HeyApiClient {
|
|
1452
1452
|
/**
|
|
@@ -2570,14 +2570,14 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2570
2570
|
get session() {
|
|
2571
2571
|
return (this._session ??= new Session2({ client: this.client }));
|
|
2572
2572
|
}
|
|
2573
|
-
_part;
|
|
2574
|
-
get part() {
|
|
2575
|
-
return (this._part ??= new Part({ client: this.client }));
|
|
2576
|
-
}
|
|
2577
2573
|
_permission;
|
|
2578
2574
|
get permission() {
|
|
2579
2575
|
return (this._permission ??= new Permission({ client: this.client }));
|
|
2580
2576
|
}
|
|
2577
|
+
_part;
|
|
2578
|
+
get part() {
|
|
2579
|
+
return (this._part ??= new Part({ client: this.client }));
|
|
2580
|
+
}
|
|
2581
2581
|
_question;
|
|
2582
2582
|
get question() {
|
|
2583
2583
|
return (this._question ??= new Question({ client: this.client }));
|
|
@@ -40,12 +40,6 @@ export type EventProjectUpdated = {
|
|
|
40
40
|
type: "project.updated";
|
|
41
41
|
properties: Project;
|
|
42
42
|
};
|
|
43
|
-
export type EventServerInstanceDisposed = {
|
|
44
|
-
type: "server.instance.disposed";
|
|
45
|
-
properties: {
|
|
46
|
-
directory: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
43
|
export type EventServerConnected = {
|
|
50
44
|
type: "server.connected";
|
|
51
45
|
properties: {
|
|
@@ -58,6 +52,12 @@ export type EventGlobalDisposed = {
|
|
|
58
52
|
[key: string]: unknown;
|
|
59
53
|
};
|
|
60
54
|
};
|
|
55
|
+
export type EventServerInstanceDisposed = {
|
|
56
|
+
type: "server.instance.disposed";
|
|
57
|
+
properties: {
|
|
58
|
+
directory: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
61
|
export type EventLspClientDiagnostics = {
|
|
62
62
|
type: "lsp.client.diagnostics";
|
|
63
63
|
properties: {
|
|
@@ -835,7 +835,7 @@ export type EventWorktreeFailed = {
|
|
|
835
835
|
message: string;
|
|
836
836
|
};
|
|
837
837
|
};
|
|
838
|
-
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated |
|
|
838
|
+
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartDelta | EventMessagePartRemoved | EventPermissionAudit | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
839
839
|
export type GlobalEvent = {
|
|
840
840
|
directory: string;
|
|
841
841
|
payload: Event;
|
|
@@ -2769,6 +2769,99 @@ export type SessionSummarizeResponses = {
|
|
|
2769
2769
|
200: boolean;
|
|
2770
2770
|
};
|
|
2771
2771
|
export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses];
|
|
2772
|
+
export type SessionRevertData = {
|
|
2773
|
+
body?: {
|
|
2774
|
+
messageID: string;
|
|
2775
|
+
partID?: string;
|
|
2776
|
+
};
|
|
2777
|
+
path: {
|
|
2778
|
+
sessionID: string;
|
|
2779
|
+
};
|
|
2780
|
+
query?: {
|
|
2781
|
+
directory?: string;
|
|
2782
|
+
workspace?: string;
|
|
2783
|
+
};
|
|
2784
|
+
url: "/session/{sessionID}/revert";
|
|
2785
|
+
};
|
|
2786
|
+
export type SessionRevertErrors = {
|
|
2787
|
+
/**
|
|
2788
|
+
* Bad request
|
|
2789
|
+
*/
|
|
2790
|
+
400: BadRequestError;
|
|
2791
|
+
/**
|
|
2792
|
+
* Not found
|
|
2793
|
+
*/
|
|
2794
|
+
404: NotFoundError;
|
|
2795
|
+
};
|
|
2796
|
+
export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
|
|
2797
|
+
export type SessionRevertResponses = {
|
|
2798
|
+
/**
|
|
2799
|
+
* Updated session
|
|
2800
|
+
*/
|
|
2801
|
+
200: Session;
|
|
2802
|
+
};
|
|
2803
|
+
export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
|
|
2804
|
+
export type SessionUnrevertData = {
|
|
2805
|
+
body?: never;
|
|
2806
|
+
path: {
|
|
2807
|
+
sessionID: string;
|
|
2808
|
+
};
|
|
2809
|
+
query?: {
|
|
2810
|
+
directory?: string;
|
|
2811
|
+
workspace?: string;
|
|
2812
|
+
};
|
|
2813
|
+
url: "/session/{sessionID}/unrevert";
|
|
2814
|
+
};
|
|
2815
|
+
export type SessionUnrevertErrors = {
|
|
2816
|
+
/**
|
|
2817
|
+
* Bad request
|
|
2818
|
+
*/
|
|
2819
|
+
400: BadRequestError;
|
|
2820
|
+
/**
|
|
2821
|
+
* Not found
|
|
2822
|
+
*/
|
|
2823
|
+
404: NotFoundError;
|
|
2824
|
+
};
|
|
2825
|
+
export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
|
|
2826
|
+
export type SessionUnrevertResponses = {
|
|
2827
|
+
/**
|
|
2828
|
+
* Updated session
|
|
2829
|
+
*/
|
|
2830
|
+
200: Session;
|
|
2831
|
+
};
|
|
2832
|
+
export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
|
|
2833
|
+
export type PermissionRespondData = {
|
|
2834
|
+
body?: {
|
|
2835
|
+
response: "once" | "always" | "reject";
|
|
2836
|
+
};
|
|
2837
|
+
path: {
|
|
2838
|
+
sessionID: string;
|
|
2839
|
+
permissionID: string;
|
|
2840
|
+
};
|
|
2841
|
+
query?: {
|
|
2842
|
+
directory?: string;
|
|
2843
|
+
workspace?: string;
|
|
2844
|
+
};
|
|
2845
|
+
url: "/session/{sessionID}/permissions/{permissionID}";
|
|
2846
|
+
};
|
|
2847
|
+
export type PermissionRespondErrors = {
|
|
2848
|
+
/**
|
|
2849
|
+
* Bad request
|
|
2850
|
+
*/
|
|
2851
|
+
400: BadRequestError;
|
|
2852
|
+
/**
|
|
2853
|
+
* Not found
|
|
2854
|
+
*/
|
|
2855
|
+
404: NotFoundError;
|
|
2856
|
+
};
|
|
2857
|
+
export type PermissionRespondError = PermissionRespondErrors[keyof PermissionRespondErrors];
|
|
2858
|
+
export type PermissionRespondResponses = {
|
|
2859
|
+
/**
|
|
2860
|
+
* Permission processed successfully
|
|
2861
|
+
*/
|
|
2862
|
+
200: boolean;
|
|
2863
|
+
};
|
|
2864
|
+
export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses];
|
|
2772
2865
|
export type SessionMessagesData = {
|
|
2773
2866
|
body?: never;
|
|
2774
2867
|
path: {
|
|
@@ -3111,99 +3204,6 @@ export type SessionShellResponses = {
|
|
|
3111
3204
|
200: AssistantMessage;
|
|
3112
3205
|
};
|
|
3113
3206
|
export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
|
|
3114
|
-
export type SessionRevertData = {
|
|
3115
|
-
body?: {
|
|
3116
|
-
messageID: string;
|
|
3117
|
-
partID?: string;
|
|
3118
|
-
};
|
|
3119
|
-
path: {
|
|
3120
|
-
sessionID: string;
|
|
3121
|
-
};
|
|
3122
|
-
query?: {
|
|
3123
|
-
directory?: string;
|
|
3124
|
-
workspace?: string;
|
|
3125
|
-
};
|
|
3126
|
-
url: "/session/{sessionID}/revert";
|
|
3127
|
-
};
|
|
3128
|
-
export type SessionRevertErrors = {
|
|
3129
|
-
/**
|
|
3130
|
-
* Bad request
|
|
3131
|
-
*/
|
|
3132
|
-
400: BadRequestError;
|
|
3133
|
-
/**
|
|
3134
|
-
* Not found
|
|
3135
|
-
*/
|
|
3136
|
-
404: NotFoundError;
|
|
3137
|
-
};
|
|
3138
|
-
export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
|
|
3139
|
-
export type SessionRevertResponses = {
|
|
3140
|
-
/**
|
|
3141
|
-
* Updated session
|
|
3142
|
-
*/
|
|
3143
|
-
200: Session;
|
|
3144
|
-
};
|
|
3145
|
-
export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
|
|
3146
|
-
export type SessionUnrevertData = {
|
|
3147
|
-
body?: never;
|
|
3148
|
-
path: {
|
|
3149
|
-
sessionID: string;
|
|
3150
|
-
};
|
|
3151
|
-
query?: {
|
|
3152
|
-
directory?: string;
|
|
3153
|
-
workspace?: string;
|
|
3154
|
-
};
|
|
3155
|
-
url: "/session/{sessionID}/unrevert";
|
|
3156
|
-
};
|
|
3157
|
-
export type SessionUnrevertErrors = {
|
|
3158
|
-
/**
|
|
3159
|
-
* Bad request
|
|
3160
|
-
*/
|
|
3161
|
-
400: BadRequestError;
|
|
3162
|
-
/**
|
|
3163
|
-
* Not found
|
|
3164
|
-
*/
|
|
3165
|
-
404: NotFoundError;
|
|
3166
|
-
};
|
|
3167
|
-
export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
|
|
3168
|
-
export type SessionUnrevertResponses = {
|
|
3169
|
-
/**
|
|
3170
|
-
* Updated session
|
|
3171
|
-
*/
|
|
3172
|
-
200: Session;
|
|
3173
|
-
};
|
|
3174
|
-
export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
|
|
3175
|
-
export type PermissionRespondData = {
|
|
3176
|
-
body?: {
|
|
3177
|
-
response: "once" | "always" | "reject";
|
|
3178
|
-
};
|
|
3179
|
-
path: {
|
|
3180
|
-
sessionID: string;
|
|
3181
|
-
permissionID: string;
|
|
3182
|
-
};
|
|
3183
|
-
query?: {
|
|
3184
|
-
directory?: string;
|
|
3185
|
-
workspace?: string;
|
|
3186
|
-
};
|
|
3187
|
-
url: "/session/{sessionID}/permissions/{permissionID}";
|
|
3188
|
-
};
|
|
3189
|
-
export type PermissionRespondErrors = {
|
|
3190
|
-
/**
|
|
3191
|
-
* Bad request
|
|
3192
|
-
*/
|
|
3193
|
-
400: BadRequestError;
|
|
3194
|
-
/**
|
|
3195
|
-
* Not found
|
|
3196
|
-
*/
|
|
3197
|
-
404: NotFoundError;
|
|
3198
|
-
};
|
|
3199
|
-
export type PermissionRespondError = PermissionRespondErrors[keyof PermissionRespondErrors];
|
|
3200
|
-
export type PermissionRespondResponses = {
|
|
3201
|
-
/**
|
|
3202
|
-
* Permission processed successfully
|
|
3203
|
-
*/
|
|
3204
|
-
200: boolean;
|
|
3205
|
-
};
|
|
3206
|
-
export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses];
|
|
3207
3207
|
export type PermissionReplyData = {
|
|
3208
3208
|
body?: {
|
|
3209
3209
|
reply: "once" | "always" | "reject";
|