@nikcli-ai/sdk 0.0.6 → 1.7.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 +518 -34
- package/dist/v2/gen/sdk.gen.js +1144 -82
- package/dist/v2/gen/types.gen.d.ts +1710 -247
- package/package.json +33 -9
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -481,6 +481,53 @@ export class Worktree extends HeyApiClient {
|
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
+
export class Adaptor extends HeyApiClient {
|
|
485
|
+
/**
|
|
486
|
+
* List workspace adaptors
|
|
487
|
+
*
|
|
488
|
+
* Get available workspace adaptor types for creating workspaces.
|
|
489
|
+
*/
|
|
490
|
+
list(parameters, options) {
|
|
491
|
+
const params = buildClientParams([parameters], [
|
|
492
|
+
{
|
|
493
|
+
args: [
|
|
494
|
+
{ in: "query", key: "directory" },
|
|
495
|
+
{ in: "query", key: "workspace" },
|
|
496
|
+
],
|
|
497
|
+
},
|
|
498
|
+
]);
|
|
499
|
+
return (options?.client ?? this.client).get({
|
|
500
|
+
url: "/experimental/workspace/adaptor",
|
|
501
|
+
...options,
|
|
502
|
+
...params,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
export class Session extends HeyApiClient {
|
|
507
|
+
/**
|
|
508
|
+
* Restore session into workspace
|
|
509
|
+
*
|
|
510
|
+
* Attach an existing session to a workspace and return restore state for the client.
|
|
511
|
+
*/
|
|
512
|
+
restore(parameters, options) {
|
|
513
|
+
const params = buildClientParams([parameters], [
|
|
514
|
+
{
|
|
515
|
+
args: [
|
|
516
|
+
{ in: "path", key: "id" },
|
|
517
|
+
{ in: "path", key: "sessionID" },
|
|
518
|
+
{ in: "query", key: "directory" },
|
|
519
|
+
{ in: "query", key: "workspace" },
|
|
520
|
+
{ in: "query", key: "timeoutMs" },
|
|
521
|
+
],
|
|
522
|
+
},
|
|
523
|
+
]);
|
|
524
|
+
return (options?.client ?? this.client).post({
|
|
525
|
+
url: "/experimental/workspace/{id}/session/{sessionID}/restore",
|
|
526
|
+
...options,
|
|
527
|
+
...params,
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
}
|
|
484
531
|
export class Workspace extends HeyApiClient {
|
|
485
532
|
/**
|
|
486
533
|
* Remove workspace
|
|
@@ -531,6 +578,28 @@ export class Workspace extends HeyApiClient {
|
|
|
531
578
|
},
|
|
532
579
|
});
|
|
533
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Restore workspace
|
|
583
|
+
*
|
|
584
|
+
* Ensure a workspace is connected and return enough state to restore the client UI.
|
|
585
|
+
*/
|
|
586
|
+
restore(parameters, options) {
|
|
587
|
+
const params = buildClientParams([parameters], [
|
|
588
|
+
{
|
|
589
|
+
args: [
|
|
590
|
+
{ in: "path", key: "id" },
|
|
591
|
+
{ in: "query", key: "directory" },
|
|
592
|
+
{ in: "query", key: "workspace" },
|
|
593
|
+
{ in: "query", key: "timeoutMs" },
|
|
594
|
+
],
|
|
595
|
+
},
|
|
596
|
+
]);
|
|
597
|
+
return (options?.client ?? this.client).post({
|
|
598
|
+
url: "/experimental/workspace/{id}/restore",
|
|
599
|
+
...options,
|
|
600
|
+
...params,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
534
603
|
/**
|
|
535
604
|
* List workspaces
|
|
536
605
|
*
|
|
@@ -551,6 +620,14 @@ export class Workspace extends HeyApiClient {
|
|
|
551
620
|
...params,
|
|
552
621
|
});
|
|
553
622
|
}
|
|
623
|
+
_adaptor;
|
|
624
|
+
get adaptor() {
|
|
625
|
+
return (this._adaptor ??= new Adaptor({ client: this.client }));
|
|
626
|
+
}
|
|
627
|
+
_session;
|
|
628
|
+
get session() {
|
|
629
|
+
return (this._session ??= new Session({ client: this.client }));
|
|
630
|
+
}
|
|
554
631
|
}
|
|
555
632
|
export class Resource extends HeyApiClient {
|
|
556
633
|
/**
|
|
@@ -584,7 +661,75 @@ export class Experimental extends HeyApiClient {
|
|
|
584
661
|
return (this._resource ??= new Resource({ client: this.client }));
|
|
585
662
|
}
|
|
586
663
|
}
|
|
587
|
-
export class
|
|
664
|
+
export class Background extends HeyApiClient {
|
|
665
|
+
/**
|
|
666
|
+
* Inspect background job
|
|
667
|
+
*
|
|
668
|
+
* Inspect a durable background job from a related session.
|
|
669
|
+
*/
|
|
670
|
+
inspect(parameters, options) {
|
|
671
|
+
const params = buildClientParams([parameters], [
|
|
672
|
+
{
|
|
673
|
+
args: [
|
|
674
|
+
{ in: "path", key: "sessionID" },
|
|
675
|
+
{ in: "path", key: "delegationID" },
|
|
676
|
+
{ in: "query", key: "directory" },
|
|
677
|
+
{ in: "query", key: "workspace" },
|
|
678
|
+
],
|
|
679
|
+
},
|
|
680
|
+
]);
|
|
681
|
+
return (options?.client ?? this.client).get({
|
|
682
|
+
url: "/session/{sessionID}/background/{delegationID}",
|
|
683
|
+
...options,
|
|
684
|
+
...params,
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Read background job output
|
|
689
|
+
*
|
|
690
|
+
* Read the synthesized output for a durable background job.
|
|
691
|
+
*/
|
|
692
|
+
read(parameters, options) {
|
|
693
|
+
const params = buildClientParams([parameters], [
|
|
694
|
+
{
|
|
695
|
+
args: [
|
|
696
|
+
{ in: "path", key: "sessionID" },
|
|
697
|
+
{ in: "path", key: "delegationID" },
|
|
698
|
+
{ in: "query", key: "directory" },
|
|
699
|
+
{ in: "query", key: "workspace" },
|
|
700
|
+
],
|
|
701
|
+
},
|
|
702
|
+
]);
|
|
703
|
+
return (options?.client ?? this.client).get({
|
|
704
|
+
url: "/session/{sessionID}/background/{delegationID}/read",
|
|
705
|
+
...options,
|
|
706
|
+
...params,
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* Cancel background job
|
|
711
|
+
*
|
|
712
|
+
* Cancel a durable background job from a related session.
|
|
713
|
+
*/
|
|
714
|
+
cancel(parameters, options) {
|
|
715
|
+
const params = buildClientParams([parameters], [
|
|
716
|
+
{
|
|
717
|
+
args: [
|
|
718
|
+
{ in: "path", key: "sessionID" },
|
|
719
|
+
{ in: "path", key: "delegationID" },
|
|
720
|
+
{ in: "query", key: "directory" },
|
|
721
|
+
{ in: "query", key: "workspace" },
|
|
722
|
+
],
|
|
723
|
+
},
|
|
724
|
+
]);
|
|
725
|
+
return (options?.client ?? this.client).post({
|
|
726
|
+
url: "/session/{sessionID}/background/{delegationID}/cancel",
|
|
727
|
+
...options,
|
|
728
|
+
...params,
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
export class Session2 extends HeyApiClient {
|
|
588
733
|
/**
|
|
589
734
|
* List sessions
|
|
590
735
|
*
|
|
@@ -828,6 +973,27 @@ export class Session extends HeyApiClient {
|
|
|
828
973
|
},
|
|
829
974
|
});
|
|
830
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* List background jobs
|
|
978
|
+
*
|
|
979
|
+
* List durable background jobs for a parent session.
|
|
980
|
+
*/
|
|
981
|
+
background(parameters, options) {
|
|
982
|
+
const params = buildClientParams([parameters], [
|
|
983
|
+
{
|
|
984
|
+
args: [
|
|
985
|
+
{ in: "path", key: "sessionID" },
|
|
986
|
+
{ in: "query", key: "directory" },
|
|
987
|
+
{ in: "query", key: "workspace" },
|
|
988
|
+
],
|
|
989
|
+
},
|
|
990
|
+
]);
|
|
991
|
+
return (options?.client ?? this.client).get({
|
|
992
|
+
url: "/session/{sessionID}/background",
|
|
993
|
+
...options,
|
|
994
|
+
...params,
|
|
995
|
+
});
|
|
996
|
+
}
|
|
831
997
|
/**
|
|
832
998
|
* Abort session
|
|
833
999
|
*
|
|
@@ -1167,6 +1333,77 @@ export class Session extends HeyApiClient {
|
|
|
1167
1333
|
...params,
|
|
1168
1334
|
});
|
|
1169
1335
|
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Get session monitor
|
|
1338
|
+
*
|
|
1339
|
+
* Retrieve metadata for one background monitor attached to a session.
|
|
1340
|
+
*/
|
|
1341
|
+
monitor(parameters, options) {
|
|
1342
|
+
const params = buildClientParams([parameters], [
|
|
1343
|
+
{
|
|
1344
|
+
args: [
|
|
1345
|
+
{ in: "path", key: "sessionID" },
|
|
1346
|
+
{ in: "path", key: "monitorID" },
|
|
1347
|
+
{ in: "query", key: "directory" },
|
|
1348
|
+
{ in: "query", key: "workspace" },
|
|
1349
|
+
],
|
|
1350
|
+
},
|
|
1351
|
+
]);
|
|
1352
|
+
return (options?.client ?? this.client).get({
|
|
1353
|
+
url: "/session/{sessionID}/monitor/{monitorID}",
|
|
1354
|
+
...options,
|
|
1355
|
+
...params,
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Get session monitor log
|
|
1360
|
+
*
|
|
1361
|
+
* Read the latest output captured for a monitored background command.
|
|
1362
|
+
*/
|
|
1363
|
+
monitorLog(parameters, options) {
|
|
1364
|
+
const params = buildClientParams([parameters], [
|
|
1365
|
+
{
|
|
1366
|
+
args: [
|
|
1367
|
+
{ in: "path", key: "sessionID" },
|
|
1368
|
+
{ in: "path", key: "monitorID" },
|
|
1369
|
+
{ in: "query", key: "directory" },
|
|
1370
|
+
{ in: "query", key: "workspace" },
|
|
1371
|
+
{ in: "query", key: "lines" },
|
|
1372
|
+
],
|
|
1373
|
+
},
|
|
1374
|
+
]);
|
|
1375
|
+
return (options?.client ?? this.client).get({
|
|
1376
|
+
url: "/session/{sessionID}/monitor/{monitorID}/log",
|
|
1377
|
+
...options,
|
|
1378
|
+
...params,
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Cancel session monitor
|
|
1383
|
+
*
|
|
1384
|
+
* Stop a monitored background command attached to a session.
|
|
1385
|
+
*/
|
|
1386
|
+
monitorCancel(parameters, options) {
|
|
1387
|
+
const params = buildClientParams([parameters], [
|
|
1388
|
+
{
|
|
1389
|
+
args: [
|
|
1390
|
+
{ in: "path", key: "sessionID" },
|
|
1391
|
+
{ in: "path", key: "monitorID" },
|
|
1392
|
+
{ in: "query", key: "directory" },
|
|
1393
|
+
{ in: "query", key: "workspace" },
|
|
1394
|
+
],
|
|
1395
|
+
},
|
|
1396
|
+
]);
|
|
1397
|
+
return (options?.client ?? this.client).post({
|
|
1398
|
+
url: "/session/{sessionID}/monitor/{monitorID}/cancel",
|
|
1399
|
+
...options,
|
|
1400
|
+
...params,
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
_background;
|
|
1404
|
+
get background2() {
|
|
1405
|
+
return (this._background ??= new Background({ client: this.client }));
|
|
1406
|
+
}
|
|
1170
1407
|
}
|
|
1171
1408
|
export class Part extends HeyApiClient {
|
|
1172
1409
|
/**
|
|
@@ -1298,57 +1535,6 @@ export class Permission extends HeyApiClient {
|
|
|
1298
1535
|
});
|
|
1299
1536
|
}
|
|
1300
1537
|
}
|
|
1301
|
-
export class Dbedit extends HeyApiClient {
|
|
1302
|
-
/**
|
|
1303
|
-
* Respond to database edit request
|
|
1304
|
-
*
|
|
1305
|
-
* Accept, edit, or reject a database edit request from the AI assistant.
|
|
1306
|
-
*/
|
|
1307
|
-
reply(parameters, options) {
|
|
1308
|
-
const params = buildClientParams([parameters], [
|
|
1309
|
-
{
|
|
1310
|
-
args: [
|
|
1311
|
-
{ in: "path", key: "requestID" },
|
|
1312
|
-
{ in: "query", key: "directory" },
|
|
1313
|
-
{ in: "query", key: "workspace" },
|
|
1314
|
-
{ in: "body", key: "reply" },
|
|
1315
|
-
{ in: "body", key: "modified" },
|
|
1316
|
-
{ in: "body", key: "message" },
|
|
1317
|
-
],
|
|
1318
|
-
},
|
|
1319
|
-
]);
|
|
1320
|
-
return (options?.client ?? this.client).post({
|
|
1321
|
-
url: "/dbedit/{requestID}/reply",
|
|
1322
|
-
...options,
|
|
1323
|
-
...params,
|
|
1324
|
-
headers: {
|
|
1325
|
-
"Content-Type": "application/json",
|
|
1326
|
-
...options?.headers,
|
|
1327
|
-
...params.headers,
|
|
1328
|
-
},
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
* List pending DB edits
|
|
1333
|
-
*
|
|
1334
|
-
* Get all pending database edit requests across all sessions.
|
|
1335
|
-
*/
|
|
1336
|
-
list(parameters, options) {
|
|
1337
|
-
const params = buildClientParams([parameters], [
|
|
1338
|
-
{
|
|
1339
|
-
args: [
|
|
1340
|
-
{ in: "query", key: "directory" },
|
|
1341
|
-
{ in: "query", key: "workspace" },
|
|
1342
|
-
],
|
|
1343
|
-
},
|
|
1344
|
-
]);
|
|
1345
|
-
return (options?.client ?? this.client).get({
|
|
1346
|
-
url: "/dbedit",
|
|
1347
|
-
...options,
|
|
1348
|
-
...params,
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
1538
|
export class Question extends HeyApiClient {
|
|
1353
1539
|
/**
|
|
1354
1540
|
* List pending questions
|
|
@@ -1818,6 +2004,34 @@ export class Project2 extends HeyApiClient {
|
|
|
1818
2004
|
});
|
|
1819
2005
|
}
|
|
1820
2006
|
}
|
|
2007
|
+
export class ClientId extends HeyApiClient {
|
|
2008
|
+
/**
|
|
2009
|
+
* Persist GitHub OAuth client ID for mobile
|
|
2010
|
+
*
|
|
2011
|
+
* Save the GitHub OAuth client ID in the global host config so device sign-in remains available across projects and app restarts.
|
|
2012
|
+
*/
|
|
2013
|
+
set(parameters, options) {
|
|
2014
|
+
const params = buildClientParams([parameters], [
|
|
2015
|
+
{
|
|
2016
|
+
args: [
|
|
2017
|
+
{ in: "query", key: "directory" },
|
|
2018
|
+
{ in: "query", key: "workspace" },
|
|
2019
|
+
{ in: "body", key: "clientId" },
|
|
2020
|
+
],
|
|
2021
|
+
},
|
|
2022
|
+
]);
|
|
2023
|
+
return (options?.client ?? this.client).post({
|
|
2024
|
+
url: "/mobile/github/oauth/client",
|
|
2025
|
+
...options,
|
|
2026
|
+
...params,
|
|
2027
|
+
headers: {
|
|
2028
|
+
"Content-Type": "application/json",
|
|
2029
|
+
...options?.headers,
|
|
2030
|
+
...params.headers,
|
|
2031
|
+
},
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
1821
2035
|
export class Device extends HeyApiClient {
|
|
1822
2036
|
/**
|
|
1823
2037
|
* Start GitHub OAuth device flow
|
|
@@ -1867,6 +2081,10 @@ export class Device extends HeyApiClient {
|
|
|
1867
2081
|
}
|
|
1868
2082
|
}
|
|
1869
2083
|
export class Oauth2 extends HeyApiClient {
|
|
2084
|
+
_clientId;
|
|
2085
|
+
get clientId() {
|
|
2086
|
+
return (this._clientId ??= new ClientId({ client: this.client }));
|
|
2087
|
+
}
|
|
1870
2088
|
_device;
|
|
1871
2089
|
get device() {
|
|
1872
2090
|
return (this._device ??= new Device({ client: this.client }));
|
|
@@ -1920,7 +2138,7 @@ export class Auth3 extends HeyApiClient {
|
|
|
1920
2138
|
});
|
|
1921
2139
|
}
|
|
1922
2140
|
}
|
|
1923
|
-
export class
|
|
2141
|
+
export class Session3 extends HeyApiClient {
|
|
1924
2142
|
/**
|
|
1925
2143
|
* Create GitHub-backed mobile session
|
|
1926
2144
|
*
|
|
@@ -2095,7 +2313,7 @@ export class Github extends HeyApiClient {
|
|
|
2095
2313
|
}
|
|
2096
2314
|
_session;
|
|
2097
2315
|
get session() {
|
|
2098
|
-
return (this._session ??= new
|
|
2316
|
+
return (this._session ??= new Session3({ client: this.client }));
|
|
2099
2317
|
}
|
|
2100
2318
|
}
|
|
2101
2319
|
export class Command2 extends HeyApiClient {
|
|
@@ -2121,7 +2339,7 @@ export class Command2 extends HeyApiClient {
|
|
|
2121
2339
|
});
|
|
2122
2340
|
}
|
|
2123
2341
|
}
|
|
2124
|
-
export class
|
|
2342
|
+
export class Session4 extends HeyApiClient {
|
|
2125
2343
|
/**
|
|
2126
2344
|
* List mobile sessions
|
|
2127
2345
|
*
|
|
@@ -2170,6 +2388,27 @@ export class Session3 extends HeyApiClient {
|
|
|
2170
2388
|
},
|
|
2171
2389
|
});
|
|
2172
2390
|
}
|
|
2391
|
+
/**
|
|
2392
|
+
* Delete mobile session
|
|
2393
|
+
*
|
|
2394
|
+
* Permanently delete a session and all associated data.
|
|
2395
|
+
*/
|
|
2396
|
+
delete(parameters, options) {
|
|
2397
|
+
const params = buildClientParams([parameters], [
|
|
2398
|
+
{
|
|
2399
|
+
args: [
|
|
2400
|
+
{ in: "path", key: "sessionID" },
|
|
2401
|
+
{ in: "query", key: "directory" },
|
|
2402
|
+
{ in: "query", key: "workspace" },
|
|
2403
|
+
],
|
|
2404
|
+
},
|
|
2405
|
+
]);
|
|
2406
|
+
return (options?.client ?? this.client).delete({
|
|
2407
|
+
url: "/mobile/session/{sessionID}",
|
|
2408
|
+
...options,
|
|
2409
|
+
...params,
|
|
2410
|
+
});
|
|
2411
|
+
}
|
|
2173
2412
|
/**
|
|
2174
2413
|
* Get mobile session detail
|
|
2175
2414
|
*
|
|
@@ -2379,6 +2618,58 @@ export class Permission2 extends HeyApiClient {
|
|
|
2379
2618
|
});
|
|
2380
2619
|
}
|
|
2381
2620
|
}
|
|
2621
|
+
export class Question2 extends HeyApiClient {
|
|
2622
|
+
/**
|
|
2623
|
+
* Reject question from mobile
|
|
2624
|
+
*
|
|
2625
|
+
* Dismiss/reject a pending question request.
|
|
2626
|
+
*/
|
|
2627
|
+
reject(parameters, options) {
|
|
2628
|
+
const params = buildClientParams([parameters], [
|
|
2629
|
+
{
|
|
2630
|
+
args: [
|
|
2631
|
+
{ in: "path", key: "sessionID" },
|
|
2632
|
+
{ in: "path", key: "requestID" },
|
|
2633
|
+
{ in: "query", key: "directory" },
|
|
2634
|
+
{ in: "query", key: "workspace" },
|
|
2635
|
+
],
|
|
2636
|
+
},
|
|
2637
|
+
]);
|
|
2638
|
+
return (options?.client ?? this.client).delete({
|
|
2639
|
+
url: "/mobile/session/{sessionID}/question/{requestID}",
|
|
2640
|
+
...options,
|
|
2641
|
+
...params,
|
|
2642
|
+
});
|
|
2643
|
+
}
|
|
2644
|
+
/**
|
|
2645
|
+
* Respond to question from mobile
|
|
2646
|
+
*
|
|
2647
|
+
* Answer a pending question request.
|
|
2648
|
+
*/
|
|
2649
|
+
respond(parameters, options) {
|
|
2650
|
+
const params = buildClientParams([parameters], [
|
|
2651
|
+
{
|
|
2652
|
+
args: [
|
|
2653
|
+
{ in: "path", key: "sessionID" },
|
|
2654
|
+
{ in: "path", key: "requestID" },
|
|
2655
|
+
{ in: "query", key: "directory" },
|
|
2656
|
+
{ in: "query", key: "workspace" },
|
|
2657
|
+
{ in: "body", key: "answers" },
|
|
2658
|
+
],
|
|
2659
|
+
},
|
|
2660
|
+
]);
|
|
2661
|
+
return (options?.client ?? this.client).post({
|
|
2662
|
+
url: "/mobile/session/{sessionID}/question/{requestID}",
|
|
2663
|
+
...options,
|
|
2664
|
+
...params,
|
|
2665
|
+
headers: {
|
|
2666
|
+
"Content-Type": "application/json",
|
|
2667
|
+
...options?.headers,
|
|
2668
|
+
...params.headers,
|
|
2669
|
+
},
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2382
2673
|
export class Worktree2 extends HeyApiClient {
|
|
2383
2674
|
/**
|
|
2384
2675
|
* Remove mobile worktree
|
|
@@ -2399,56 +2690,529 @@ export class Worktree2 extends HeyApiClient {
|
|
|
2399
2690
|
url: "/mobile/worktree",
|
|
2400
2691
|
...options,
|
|
2401
2692
|
...params,
|
|
2402
|
-
headers: {
|
|
2403
|
-
"Content-Type": "application/json",
|
|
2404
|
-
...options?.headers,
|
|
2405
|
-
...params.headers,
|
|
2406
|
-
},
|
|
2693
|
+
headers: {
|
|
2694
|
+
"Content-Type": "application/json",
|
|
2695
|
+
...options?.headers,
|
|
2696
|
+
...params.headers,
|
|
2697
|
+
},
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
/**
|
|
2701
|
+
* Create mobile worktree
|
|
2702
|
+
*
|
|
2703
|
+
* Create a git worktree for sandboxed mobile work.
|
|
2704
|
+
*/
|
|
2705
|
+
create(parameters, options) {
|
|
2706
|
+
const params = buildClientParams([parameters], [
|
|
2707
|
+
{
|
|
2708
|
+
args: [
|
|
2709
|
+
{ in: "query", key: "directory" },
|
|
2710
|
+
{ in: "query", key: "workspace" },
|
|
2711
|
+
{ key: "worktreeCreateInput", map: "body" },
|
|
2712
|
+
],
|
|
2713
|
+
},
|
|
2714
|
+
]);
|
|
2715
|
+
return (options?.client ?? this.client).post({
|
|
2716
|
+
url: "/mobile/worktree",
|
|
2717
|
+
...options,
|
|
2718
|
+
...params,
|
|
2719
|
+
headers: {
|
|
2720
|
+
"Content-Type": "application/json",
|
|
2721
|
+
...options?.headers,
|
|
2722
|
+
...params.headers,
|
|
2723
|
+
},
|
|
2724
|
+
});
|
|
2725
|
+
}
|
|
2726
|
+
/**
|
|
2727
|
+
* Reset mobile worktree
|
|
2728
|
+
*
|
|
2729
|
+
* Reset a worktree back to the default branch state.
|
|
2730
|
+
*/
|
|
2731
|
+
reset(parameters, options) {
|
|
2732
|
+
const params = buildClientParams([parameters], [
|
|
2733
|
+
{
|
|
2734
|
+
args: [
|
|
2735
|
+
{ in: "query", key: "directory" },
|
|
2736
|
+
{ in: "query", key: "workspace" },
|
|
2737
|
+
{ key: "worktreeResetInput", map: "body" },
|
|
2738
|
+
],
|
|
2739
|
+
},
|
|
2740
|
+
]);
|
|
2741
|
+
return (options?.client ?? this.client).post({
|
|
2742
|
+
url: "/mobile/worktree/reset",
|
|
2743
|
+
...options,
|
|
2744
|
+
...params,
|
|
2745
|
+
headers: {
|
|
2746
|
+
"Content-Type": "application/json",
|
|
2747
|
+
...options?.headers,
|
|
2748
|
+
...params.headers,
|
|
2749
|
+
},
|
|
2750
|
+
});
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
export class Git extends HeyApiClient {
|
|
2754
|
+
/**
|
|
2755
|
+
* Get git status for mobile
|
|
2756
|
+
*
|
|
2757
|
+
* Return the current git state including branch, staged/unstaged changes, and untracked files.
|
|
2758
|
+
*/
|
|
2759
|
+
status(parameters, options) {
|
|
2760
|
+
const params = buildClientParams([parameters], [
|
|
2761
|
+
{
|
|
2762
|
+
args: [
|
|
2763
|
+
{ in: "query", key: "directory" },
|
|
2764
|
+
{ in: "query", key: "workspace" },
|
|
2765
|
+
],
|
|
2766
|
+
},
|
|
2767
|
+
]);
|
|
2768
|
+
return (options?.client ?? this.client).get({
|
|
2769
|
+
url: "/mobile/git/status",
|
|
2770
|
+
...options,
|
|
2771
|
+
...params,
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Get git diff for mobile
|
|
2776
|
+
*
|
|
2777
|
+
* Return parsed file diffs with hunks for the current git state.
|
|
2778
|
+
*/
|
|
2779
|
+
diff(parameters, options) {
|
|
2780
|
+
const params = buildClientParams([parameters], [
|
|
2781
|
+
{
|
|
2782
|
+
args: [
|
|
2783
|
+
{ in: "query", key: "directory" },
|
|
2784
|
+
{ in: "query", key: "workspace" },
|
|
2785
|
+
{ in: "query", key: "file" },
|
|
2786
|
+
{ in: "query", key: "staged" },
|
|
2787
|
+
],
|
|
2788
|
+
},
|
|
2789
|
+
]);
|
|
2790
|
+
return (options?.client ?? this.client).get({
|
|
2791
|
+
url: "/mobile/git/diff",
|
|
2792
|
+
...options,
|
|
2793
|
+
...params,
|
|
2794
|
+
});
|
|
2795
|
+
}
|
|
2796
|
+
/**
|
|
2797
|
+
* Get git commit history for mobile
|
|
2798
|
+
*
|
|
2799
|
+
* Return recent commits with stats for the current branch.
|
|
2800
|
+
*/
|
|
2801
|
+
commits(parameters, options) {
|
|
2802
|
+
const params = buildClientParams([parameters], [
|
|
2803
|
+
{
|
|
2804
|
+
args: [
|
|
2805
|
+
{ in: "query", key: "directory" },
|
|
2806
|
+
{ in: "query", key: "workspace" },
|
|
2807
|
+
{ in: "query", key: "limit" },
|
|
2808
|
+
],
|
|
2809
|
+
},
|
|
2810
|
+
]);
|
|
2811
|
+
return (options?.client ?? this.client).get({
|
|
2812
|
+
url: "/mobile/git/commits",
|
|
2813
|
+
...options,
|
|
2814
|
+
...params,
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
/**
|
|
2818
|
+
* Get git branches for mobile
|
|
2819
|
+
*
|
|
2820
|
+
* Return local and remote branches with status.
|
|
2821
|
+
*/
|
|
2822
|
+
branches(parameters, options) {
|
|
2823
|
+
const params = buildClientParams([parameters], [
|
|
2824
|
+
{
|
|
2825
|
+
args: [
|
|
2826
|
+
{ in: "query", key: "directory" },
|
|
2827
|
+
{ in: "query", key: "workspace" },
|
|
2828
|
+
],
|
|
2829
|
+
},
|
|
2830
|
+
]);
|
|
2831
|
+
return (options?.client ?? this.client).get({
|
|
2832
|
+
url: "/mobile/git/branches",
|
|
2833
|
+
...options,
|
|
2834
|
+
...params,
|
|
2835
|
+
});
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2838
|
+
* Create git commit for mobile
|
|
2839
|
+
*
|
|
2840
|
+
* Stage and commit changes in the current worktree.
|
|
2841
|
+
*/
|
|
2842
|
+
commit(parameters, options) {
|
|
2843
|
+
const params = buildClientParams([parameters], [
|
|
2844
|
+
{
|
|
2845
|
+
args: [
|
|
2846
|
+
{ in: "query", key: "directory" },
|
|
2847
|
+
{ in: "query", key: "workspace" },
|
|
2848
|
+
{ in: "body", key: "message" },
|
|
2849
|
+
{ in: "body", key: "files" },
|
|
2850
|
+
{ in: "body", key: "amend" },
|
|
2851
|
+
{ in: "body", key: "stagedOnly" },
|
|
2852
|
+
],
|
|
2853
|
+
},
|
|
2854
|
+
]);
|
|
2855
|
+
return (options?.client ?? this.client).post({
|
|
2856
|
+
url: "/mobile/git/commit",
|
|
2857
|
+
...options,
|
|
2858
|
+
...params,
|
|
2859
|
+
headers: {
|
|
2860
|
+
"Content-Type": "application/json",
|
|
2861
|
+
...options?.headers,
|
|
2862
|
+
...params.headers,
|
|
2863
|
+
},
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Checkout git branch for mobile
|
|
2868
|
+
*
|
|
2869
|
+
* Switch to a different branch in the current worktree.
|
|
2870
|
+
*/
|
|
2871
|
+
checkout(parameters, options) {
|
|
2872
|
+
const params = buildClientParams([parameters], [
|
|
2873
|
+
{
|
|
2874
|
+
args: [
|
|
2875
|
+
{ in: "query", key: "directory" },
|
|
2876
|
+
{ in: "query", key: "workspace" },
|
|
2877
|
+
{ in: "body", key: "branch" },
|
|
2878
|
+
{ in: "body", key: "create" },
|
|
2879
|
+
],
|
|
2880
|
+
},
|
|
2881
|
+
]);
|
|
2882
|
+
return (options?.client ?? this.client).post({
|
|
2883
|
+
url: "/mobile/git/checkout",
|
|
2884
|
+
...options,
|
|
2885
|
+
...params,
|
|
2886
|
+
headers: {
|
|
2887
|
+
"Content-Type": "application/json",
|
|
2888
|
+
...options?.headers,
|
|
2889
|
+
...params.headers,
|
|
2890
|
+
},
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
/**
|
|
2894
|
+
* Stage git files for mobile
|
|
2895
|
+
*
|
|
2896
|
+
* Add files to the staging area.
|
|
2897
|
+
*/
|
|
2898
|
+
stage(parameters, options) {
|
|
2899
|
+
const params = buildClientParams([parameters], [
|
|
2900
|
+
{
|
|
2901
|
+
args: [
|
|
2902
|
+
{ in: "query", key: "directory" },
|
|
2903
|
+
{ in: "query", key: "workspace" },
|
|
2904
|
+
{ in: "body", key: "files" },
|
|
2905
|
+
],
|
|
2906
|
+
},
|
|
2907
|
+
]);
|
|
2908
|
+
return (options?.client ?? this.client).post({
|
|
2909
|
+
url: "/mobile/git/stage",
|
|
2910
|
+
...options,
|
|
2911
|
+
...params,
|
|
2912
|
+
headers: {
|
|
2913
|
+
"Content-Type": "application/json",
|
|
2914
|
+
...options?.headers,
|
|
2915
|
+
...params.headers,
|
|
2916
|
+
},
|
|
2917
|
+
});
|
|
2918
|
+
}
|
|
2919
|
+
/**
|
|
2920
|
+
* Unstage git files for mobile
|
|
2921
|
+
*
|
|
2922
|
+
* Remove files from the staging area.
|
|
2923
|
+
*/
|
|
2924
|
+
unstage(parameters, options) {
|
|
2925
|
+
const params = buildClientParams([parameters], [
|
|
2926
|
+
{
|
|
2927
|
+
args: [
|
|
2928
|
+
{ in: "query", key: "directory" },
|
|
2929
|
+
{ in: "query", key: "workspace" },
|
|
2930
|
+
{ in: "body", key: "files" },
|
|
2931
|
+
],
|
|
2932
|
+
},
|
|
2933
|
+
]);
|
|
2934
|
+
return (options?.client ?? this.client).post({
|
|
2935
|
+
url: "/mobile/git/unstage",
|
|
2936
|
+
...options,
|
|
2937
|
+
...params,
|
|
2938
|
+
headers: {
|
|
2939
|
+
"Content-Type": "application/json",
|
|
2940
|
+
...options?.headers,
|
|
2941
|
+
...params.headers,
|
|
2942
|
+
},
|
|
2943
|
+
});
|
|
2944
|
+
}
|
|
2945
|
+
/**
|
|
2946
|
+
* Discard git changes for mobile
|
|
2947
|
+
*
|
|
2948
|
+
* Discard uncommitted changes to files.
|
|
2949
|
+
*/
|
|
2950
|
+
discard(parameters, options) {
|
|
2951
|
+
const params = buildClientParams([parameters], [
|
|
2952
|
+
{
|
|
2953
|
+
args: [
|
|
2954
|
+
{ in: "query", key: "directory" },
|
|
2955
|
+
{ in: "query", key: "workspace" },
|
|
2956
|
+
{ in: "body", key: "files" },
|
|
2957
|
+
],
|
|
2958
|
+
},
|
|
2959
|
+
]);
|
|
2960
|
+
return (options?.client ?? this.client).post({
|
|
2961
|
+
url: "/mobile/git/discard",
|
|
2962
|
+
...options,
|
|
2963
|
+
...params,
|
|
2964
|
+
headers: {
|
|
2965
|
+
"Content-Type": "application/json",
|
|
2966
|
+
...options?.headers,
|
|
2967
|
+
...params.headers,
|
|
2968
|
+
},
|
|
2969
|
+
});
|
|
2970
|
+
}
|
|
2971
|
+
/**
|
|
2972
|
+
* Push git branch for mobile
|
|
2973
|
+
*
|
|
2974
|
+
* Push the current branch to the remote.
|
|
2975
|
+
*/
|
|
2976
|
+
push(parameters, options) {
|
|
2977
|
+
const params = buildClientParams([parameters], [
|
|
2978
|
+
{
|
|
2979
|
+
args: [
|
|
2980
|
+
{ in: "query", key: "directory" },
|
|
2981
|
+
{ in: "query", key: "workspace" },
|
|
2982
|
+
{ in: "query", key: "upstream" },
|
|
2983
|
+
],
|
|
2984
|
+
},
|
|
2985
|
+
]);
|
|
2986
|
+
return (options?.client ?? this.client).post({
|
|
2987
|
+
url: "/mobile/git/push",
|
|
2988
|
+
...options,
|
|
2989
|
+
...params,
|
|
2990
|
+
});
|
|
2991
|
+
}
|
|
2992
|
+
/**
|
|
2993
|
+
* Pull git changes for mobile
|
|
2994
|
+
*
|
|
2995
|
+
* Pull remote changes into the current branch.
|
|
2996
|
+
*/
|
|
2997
|
+
pull(parameters, options) {
|
|
2998
|
+
const params = buildClientParams([parameters], [
|
|
2999
|
+
{
|
|
3000
|
+
args: [
|
|
3001
|
+
{ in: "query", key: "directory" },
|
|
3002
|
+
{ in: "query", key: "workspace" },
|
|
3003
|
+
],
|
|
3004
|
+
},
|
|
3005
|
+
]);
|
|
3006
|
+
return (options?.client ?? this.client).post({
|
|
3007
|
+
url: "/mobile/git/pull",
|
|
3008
|
+
...options,
|
|
3009
|
+
...params,
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
export class Routine extends HeyApiClient {
|
|
3014
|
+
/**
|
|
3015
|
+
* List routines
|
|
3016
|
+
*
|
|
3017
|
+
* List all saved routines for the current project.
|
|
3018
|
+
*/
|
|
3019
|
+
list(parameters, options) {
|
|
3020
|
+
const params = buildClientParams([parameters], [
|
|
3021
|
+
{
|
|
3022
|
+
args: [
|
|
3023
|
+
{ in: "query", key: "directory" },
|
|
3024
|
+
{ in: "query", key: "workspace" },
|
|
3025
|
+
],
|
|
3026
|
+
},
|
|
3027
|
+
]);
|
|
3028
|
+
return (options?.client ?? this.client).get({
|
|
3029
|
+
url: "/mobile/routines",
|
|
3030
|
+
...options,
|
|
3031
|
+
...params,
|
|
3032
|
+
});
|
|
3033
|
+
}
|
|
3034
|
+
/**
|
|
3035
|
+
* Create routine
|
|
3036
|
+
*
|
|
3037
|
+
* Create a new saved routine.
|
|
3038
|
+
*/
|
|
3039
|
+
create(parameters, options) {
|
|
3040
|
+
const params = buildClientParams([parameters], [
|
|
3041
|
+
{
|
|
3042
|
+
args: [
|
|
3043
|
+
{ in: "query", key: "directory" },
|
|
3044
|
+
{ in: "query", key: "workspace" },
|
|
3045
|
+
{ key: "mobileRoutineCreateInput", map: "body" },
|
|
3046
|
+
],
|
|
3047
|
+
},
|
|
3048
|
+
]);
|
|
3049
|
+
return (options?.client ?? this.client).post({
|
|
3050
|
+
url: "/mobile/routines",
|
|
3051
|
+
...options,
|
|
3052
|
+
...params,
|
|
3053
|
+
headers: {
|
|
3054
|
+
"Content-Type": "application/json",
|
|
3055
|
+
...options?.headers,
|
|
3056
|
+
...params.headers,
|
|
3057
|
+
},
|
|
3058
|
+
});
|
|
3059
|
+
}
|
|
3060
|
+
/**
|
|
3061
|
+
* Delete routine
|
|
3062
|
+
*
|
|
3063
|
+
* Delete a routine by ID.
|
|
3064
|
+
*/
|
|
3065
|
+
delete(parameters, options) {
|
|
3066
|
+
const params = buildClientParams([parameters], [
|
|
3067
|
+
{
|
|
3068
|
+
args: [
|
|
3069
|
+
{ in: "path", key: "id" },
|
|
3070
|
+
{ in: "query", key: "directory" },
|
|
3071
|
+
{ in: "query", key: "workspace" },
|
|
3072
|
+
],
|
|
3073
|
+
},
|
|
3074
|
+
]);
|
|
3075
|
+
return (options?.client ?? this.client).delete({
|
|
3076
|
+
url: "/mobile/routines/{id}",
|
|
3077
|
+
...options,
|
|
3078
|
+
...params,
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
/**
|
|
3082
|
+
* Get routine
|
|
3083
|
+
*
|
|
3084
|
+
* Get a single routine by ID.
|
|
3085
|
+
*/
|
|
3086
|
+
get(parameters, options) {
|
|
3087
|
+
const params = buildClientParams([parameters], [
|
|
3088
|
+
{
|
|
3089
|
+
args: [
|
|
3090
|
+
{ in: "path", key: "id" },
|
|
3091
|
+
{ in: "query", key: "directory" },
|
|
3092
|
+
{ in: "query", key: "workspace" },
|
|
3093
|
+
],
|
|
3094
|
+
},
|
|
3095
|
+
]);
|
|
3096
|
+
return (options?.client ?? this.client).get({
|
|
3097
|
+
url: "/mobile/routines/{id}",
|
|
3098
|
+
...options,
|
|
3099
|
+
...params,
|
|
3100
|
+
});
|
|
3101
|
+
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Update routine
|
|
3104
|
+
*
|
|
3105
|
+
* Update a routine's name, prompt, triggers, or paused state.
|
|
3106
|
+
*/
|
|
3107
|
+
update(parameters, options) {
|
|
3108
|
+
const params = buildClientParams([parameters], [
|
|
3109
|
+
{
|
|
3110
|
+
args: [
|
|
3111
|
+
{ in: "path", key: "id" },
|
|
3112
|
+
{ in: "query", key: "directory" },
|
|
3113
|
+
{ in: "query", key: "workspace" },
|
|
3114
|
+
{ key: "mobileRoutineUpdateInput", map: "body" },
|
|
3115
|
+
],
|
|
3116
|
+
},
|
|
3117
|
+
]);
|
|
3118
|
+
return (options?.client ?? this.client).patch({
|
|
3119
|
+
url: "/mobile/routines/{id}",
|
|
3120
|
+
...options,
|
|
3121
|
+
...params,
|
|
3122
|
+
headers: {
|
|
3123
|
+
"Content-Type": "application/json",
|
|
3124
|
+
...options?.headers,
|
|
3125
|
+
...params.headers,
|
|
3126
|
+
},
|
|
3127
|
+
});
|
|
3128
|
+
}
|
|
3129
|
+
/**
|
|
3130
|
+
* Run routine
|
|
3131
|
+
*
|
|
3132
|
+
* Trigger an immediate run of a routine, creating a new session.
|
|
3133
|
+
*/
|
|
3134
|
+
run(parameters, options) {
|
|
3135
|
+
const params = buildClientParams([parameters], [
|
|
3136
|
+
{
|
|
3137
|
+
args: [
|
|
3138
|
+
{ in: "path", key: "id" },
|
|
3139
|
+
{ in: "query", key: "directory" },
|
|
3140
|
+
{ in: "query", key: "workspace" },
|
|
3141
|
+
{ key: "mobileRoutineRunInput", map: "body" },
|
|
3142
|
+
],
|
|
3143
|
+
},
|
|
3144
|
+
]);
|
|
3145
|
+
return (options?.client ?? this.client).post({
|
|
3146
|
+
url: "/mobile/routines/{id}/run",
|
|
3147
|
+
...options,
|
|
3148
|
+
...params,
|
|
3149
|
+
headers: {
|
|
3150
|
+
"Content-Type": "application/json",
|
|
3151
|
+
...options?.headers,
|
|
3152
|
+
...params.headers,
|
|
3153
|
+
},
|
|
3154
|
+
});
|
|
3155
|
+
}
|
|
3156
|
+
/**
|
|
3157
|
+
* Pause routine
|
|
3158
|
+
*
|
|
3159
|
+
* Pause a routine, preventing scheduled triggers from firing.
|
|
3160
|
+
*/
|
|
3161
|
+
pause(parameters, options) {
|
|
3162
|
+
const params = buildClientParams([parameters], [
|
|
3163
|
+
{
|
|
3164
|
+
args: [
|
|
3165
|
+
{ in: "path", key: "id" },
|
|
3166
|
+
{ in: "query", key: "directory" },
|
|
3167
|
+
{ in: "query", key: "workspace" },
|
|
3168
|
+
],
|
|
3169
|
+
},
|
|
3170
|
+
]);
|
|
3171
|
+
return (options?.client ?? this.client).post({
|
|
3172
|
+
url: "/mobile/routines/{id}/pause",
|
|
3173
|
+
...options,
|
|
3174
|
+
...params,
|
|
2407
3175
|
});
|
|
2408
3176
|
}
|
|
2409
3177
|
/**
|
|
2410
|
-
*
|
|
3178
|
+
* Resume routine
|
|
2411
3179
|
*
|
|
2412
|
-
*
|
|
3180
|
+
* Resume a paused routine, re-enabling scheduled triggers.
|
|
2413
3181
|
*/
|
|
2414
|
-
|
|
3182
|
+
resume(parameters, options) {
|
|
2415
3183
|
const params = buildClientParams([parameters], [
|
|
2416
3184
|
{
|
|
2417
3185
|
args: [
|
|
3186
|
+
{ in: "path", key: "id" },
|
|
2418
3187
|
{ in: "query", key: "directory" },
|
|
2419
3188
|
{ in: "query", key: "workspace" },
|
|
2420
|
-
{ key: "worktreeCreateInput", map: "body" },
|
|
2421
3189
|
],
|
|
2422
3190
|
},
|
|
2423
3191
|
]);
|
|
2424
3192
|
return (options?.client ?? this.client).post({
|
|
2425
|
-
url: "/mobile/
|
|
3193
|
+
url: "/mobile/routines/{id}/resume",
|
|
2426
3194
|
...options,
|
|
2427
3195
|
...params,
|
|
2428
|
-
headers: {
|
|
2429
|
-
"Content-Type": "application/json",
|
|
2430
|
-
...options?.headers,
|
|
2431
|
-
...params.headers,
|
|
2432
|
-
},
|
|
2433
3196
|
});
|
|
2434
3197
|
}
|
|
2435
3198
|
/**
|
|
2436
|
-
*
|
|
3199
|
+
* API trigger
|
|
2437
3200
|
*
|
|
2438
|
-
*
|
|
3201
|
+
* Trigger a routine via its API token. Accepts the token in the path or Authorization: Bearer header.
|
|
2439
3202
|
*/
|
|
2440
|
-
|
|
3203
|
+
trigger(parameters, options) {
|
|
2441
3204
|
const params = buildClientParams([parameters], [
|
|
2442
3205
|
{
|
|
2443
3206
|
args: [
|
|
3207
|
+
{ in: "path", key: "token" },
|
|
2444
3208
|
{ in: "query", key: "directory" },
|
|
2445
3209
|
{ in: "query", key: "workspace" },
|
|
2446
|
-
{ key: "
|
|
3210
|
+
{ key: "mobileRoutineTriggerInput", map: "body" },
|
|
2447
3211
|
],
|
|
2448
3212
|
},
|
|
2449
3213
|
]);
|
|
2450
3214
|
return (options?.client ?? this.client).post({
|
|
2451
|
-
url: "/mobile/
|
|
3215
|
+
url: "/mobile/routines/trigger/{token}",
|
|
2452
3216
|
...options,
|
|
2453
3217
|
...params,
|
|
2454
3218
|
headers: {
|
|
@@ -2502,22 +3266,34 @@ export class Mobile extends HeyApiClient {
|
|
|
2502
3266
|
}
|
|
2503
3267
|
_session;
|
|
2504
3268
|
get session() {
|
|
2505
|
-
return (this._session ??= new
|
|
3269
|
+
return (this._session ??= new Session4({ client: this.client }));
|
|
2506
3270
|
}
|
|
2507
3271
|
_permission;
|
|
2508
3272
|
get permission() {
|
|
2509
3273
|
return (this._permission ??= new Permission2({ client: this.client }));
|
|
2510
3274
|
}
|
|
3275
|
+
_question;
|
|
3276
|
+
get question() {
|
|
3277
|
+
return (this._question ??= new Question2({ client: this.client }));
|
|
3278
|
+
}
|
|
2511
3279
|
_worktree;
|
|
2512
3280
|
get worktree() {
|
|
2513
3281
|
return (this._worktree ??= new Worktree2({ client: this.client }));
|
|
2514
3282
|
}
|
|
3283
|
+
_git;
|
|
3284
|
+
get git() {
|
|
3285
|
+
return (this._git ??= new Git({ client: this.client }));
|
|
3286
|
+
}
|
|
3287
|
+
_routine;
|
|
3288
|
+
get routine() {
|
|
3289
|
+
return (this._routine ??= new Routine({ client: this.client }));
|
|
3290
|
+
}
|
|
2515
3291
|
}
|
|
2516
3292
|
export class Find extends HeyApiClient {
|
|
2517
3293
|
/**
|
|
2518
3294
|
* Find text
|
|
2519
3295
|
*
|
|
2520
|
-
* Search for text patterns across files in the project using
|
|
3296
|
+
* Search for text patterns across files in the project using the configured search backend.
|
|
2521
3297
|
*/
|
|
2522
3298
|
text(parameters, options) {
|
|
2523
3299
|
const params = buildClientParams([parameters], [
|
|
@@ -2624,6 +3400,33 @@ export class File extends HeyApiClient {
|
|
|
2624
3400
|
...params,
|
|
2625
3401
|
});
|
|
2626
3402
|
}
|
|
3403
|
+
/**
|
|
3404
|
+
* Write file
|
|
3405
|
+
*
|
|
3406
|
+
* Write content to a specified file within the project directory.
|
|
3407
|
+
*/
|
|
3408
|
+
write(parameters, options) {
|
|
3409
|
+
const params = buildClientParams([parameters], [
|
|
3410
|
+
{
|
|
3411
|
+
args: [
|
|
3412
|
+
{ in: "query", key: "directory" },
|
|
3413
|
+
{ in: "query", key: "workspace" },
|
|
3414
|
+
{ in: "body", key: "path" },
|
|
3415
|
+
{ in: "body", key: "content" },
|
|
3416
|
+
],
|
|
3417
|
+
},
|
|
3418
|
+
]);
|
|
3419
|
+
return (options?.client ?? this.client).put({
|
|
3420
|
+
url: "/file/content",
|
|
3421
|
+
...options,
|
|
3422
|
+
...params,
|
|
3423
|
+
headers: {
|
|
3424
|
+
"Content-Type": "application/json",
|
|
3425
|
+
...options?.headers,
|
|
3426
|
+
...params.headers,
|
|
3427
|
+
},
|
|
3428
|
+
});
|
|
3429
|
+
}
|
|
2627
3430
|
/**
|
|
2628
3431
|
* Get file status
|
|
2629
3432
|
*
|
|
@@ -2929,6 +3732,31 @@ export class Mcp extends HeyApiClient {
|
|
|
2929
3732
|
...params,
|
|
2930
3733
|
});
|
|
2931
3734
|
}
|
|
3735
|
+
/**
|
|
3736
|
+
* Enable or disable an MCP server
|
|
3737
|
+
*/
|
|
3738
|
+
toggle(parameters, options) {
|
|
3739
|
+
const params = buildClientParams([parameters], [
|
|
3740
|
+
{
|
|
3741
|
+
args: [
|
|
3742
|
+
{ in: "path", key: "name" },
|
|
3743
|
+
{ in: "query", key: "directory" },
|
|
3744
|
+
{ in: "query", key: "workspace" },
|
|
3745
|
+
{ in: "body", key: "enabled" },
|
|
3746
|
+
],
|
|
3747
|
+
},
|
|
3748
|
+
]);
|
|
3749
|
+
return (options?.client ?? this.client).post({
|
|
3750
|
+
url: "/mcp/{name}/toggle",
|
|
3751
|
+
...options,
|
|
3752
|
+
...params,
|
|
3753
|
+
headers: {
|
|
3754
|
+
"Content-Type": "application/json",
|
|
3755
|
+
...options?.headers,
|
|
3756
|
+
...params.headers,
|
|
3757
|
+
},
|
|
3758
|
+
});
|
|
3759
|
+
}
|
|
2932
3760
|
_auth;
|
|
2933
3761
|
get auth() {
|
|
2934
3762
|
return (this._auth ??= new Auth5({ client: this.client }));
|
|
@@ -3225,6 +4053,112 @@ export class Tui extends HeyApiClient {
|
|
|
3225
4053
|
return (this._control ??= new Control({ client: this.client }));
|
|
3226
4054
|
}
|
|
3227
4055
|
}
|
|
4056
|
+
export class Analytics extends HeyApiClient {
|
|
4057
|
+
/**
|
|
4058
|
+
* Get global analytics
|
|
4059
|
+
*
|
|
4060
|
+
* Retrieve cumulative global analytics across all sessions.
|
|
4061
|
+
*/
|
|
4062
|
+
global(parameters, options) {
|
|
4063
|
+
const params = buildClientParams([parameters], [
|
|
4064
|
+
{
|
|
4065
|
+
args: [
|
|
4066
|
+
{ in: "query", key: "directory" },
|
|
4067
|
+
{ in: "query", key: "workspace" },
|
|
4068
|
+
],
|
|
4069
|
+
},
|
|
4070
|
+
]);
|
|
4071
|
+
return (options?.client ?? this.client).get({
|
|
4072
|
+
url: "/analytics/global",
|
|
4073
|
+
...options,
|
|
4074
|
+
...params,
|
|
4075
|
+
});
|
|
4076
|
+
}
|
|
4077
|
+
/**
|
|
4078
|
+
* Get daily analytics
|
|
4079
|
+
*
|
|
4080
|
+
* Retrieve daily analytics snapshots for a date range.
|
|
4081
|
+
*/
|
|
4082
|
+
daily(parameters, options) {
|
|
4083
|
+
const params = buildClientParams([parameters], [
|
|
4084
|
+
{
|
|
4085
|
+
args: [
|
|
4086
|
+
{ in: "query", key: "directory" },
|
|
4087
|
+
{ in: "query", key: "workspace" },
|
|
4088
|
+
{ in: "query", key: "from" },
|
|
4089
|
+
{ in: "query", key: "to" },
|
|
4090
|
+
{ in: "query", key: "days" },
|
|
4091
|
+
],
|
|
4092
|
+
},
|
|
4093
|
+
]);
|
|
4094
|
+
return (options?.client ?? this.client).get({
|
|
4095
|
+
url: "/analytics/daily",
|
|
4096
|
+
...options,
|
|
4097
|
+
...params,
|
|
4098
|
+
});
|
|
4099
|
+
}
|
|
4100
|
+
/**
|
|
4101
|
+
* Get session analytics
|
|
4102
|
+
*
|
|
4103
|
+
* Retrieve analytics for a specific session.
|
|
4104
|
+
*/
|
|
4105
|
+
session(parameters, options) {
|
|
4106
|
+
const params = buildClientParams([parameters], [
|
|
4107
|
+
{
|
|
4108
|
+
args: [
|
|
4109
|
+
{ in: "path", key: "sessionID" },
|
|
4110
|
+
{ in: "query", key: "directory" },
|
|
4111
|
+
{ in: "query", key: "workspace" },
|
|
4112
|
+
],
|
|
4113
|
+
},
|
|
4114
|
+
]);
|
|
4115
|
+
return (options?.client ?? this.client).get({
|
|
4116
|
+
url: "/analytics/session/{sessionID}",
|
|
4117
|
+
...options,
|
|
4118
|
+
...params,
|
|
4119
|
+
});
|
|
4120
|
+
}
|
|
4121
|
+
/**
|
|
4122
|
+
* Get all session analytics
|
|
4123
|
+
*
|
|
4124
|
+
* Retrieve analytics summaries for all completed sessions.
|
|
4125
|
+
*/
|
|
4126
|
+
sessions(parameters, options) {
|
|
4127
|
+
const params = buildClientParams([parameters], [
|
|
4128
|
+
{
|
|
4129
|
+
args: [
|
|
4130
|
+
{ in: "query", key: "directory" },
|
|
4131
|
+
{ in: "query", key: "workspace" },
|
|
4132
|
+
],
|
|
4133
|
+
},
|
|
4134
|
+
]);
|
|
4135
|
+
return (options?.client ?? this.client).get({
|
|
4136
|
+
url: "/analytics/sessions",
|
|
4137
|
+
...options,
|
|
4138
|
+
...params,
|
|
4139
|
+
});
|
|
4140
|
+
}
|
|
4141
|
+
/**
|
|
4142
|
+
* Get analytics leaderboard
|
|
4143
|
+
*
|
|
4144
|
+
* Retrieve ranked models, providers, and tools by various metrics.
|
|
4145
|
+
*/
|
|
4146
|
+
leaderboard(parameters, options) {
|
|
4147
|
+
const params = buildClientParams([parameters], [
|
|
4148
|
+
{
|
|
4149
|
+
args: [
|
|
4150
|
+
{ in: "query", key: "directory" },
|
|
4151
|
+
{ in: "query", key: "workspace" },
|
|
4152
|
+
],
|
|
4153
|
+
},
|
|
4154
|
+
]);
|
|
4155
|
+
return (options?.client ?? this.client).get({
|
|
4156
|
+
url: "/analytics/leaderboard",
|
|
4157
|
+
...options,
|
|
4158
|
+
...params,
|
|
4159
|
+
});
|
|
4160
|
+
}
|
|
4161
|
+
}
|
|
3228
4162
|
export class Instance extends HeyApiClient {
|
|
3229
4163
|
/**
|
|
3230
4164
|
* Dispose instance
|
|
@@ -3313,6 +4247,60 @@ export class Command3 extends HeyApiClient {
|
|
|
3313
4247
|
});
|
|
3314
4248
|
}
|
|
3315
4249
|
}
|
|
4250
|
+
export class Skill extends HeyApiClient {
|
|
4251
|
+
/**
|
|
4252
|
+
* Create skill
|
|
4253
|
+
*
|
|
4254
|
+
* Create a new skill with a SKILL.md file.
|
|
4255
|
+
*/
|
|
4256
|
+
create(parameters, options) {
|
|
4257
|
+
const params = buildClientParams([parameters], [
|
|
4258
|
+
{
|
|
4259
|
+
args: [
|
|
4260
|
+
{ in: "query", key: "directory" },
|
|
4261
|
+
{ in: "query", key: "workspace" },
|
|
4262
|
+
{ in: "body", key: "name" },
|
|
4263
|
+
{ in: "body", key: "description" },
|
|
4264
|
+
{ in: "body", key: "category" },
|
|
4265
|
+
{ in: "body", key: "tags" },
|
|
4266
|
+
{ in: "body", key: "content" },
|
|
4267
|
+
{ in: "body", key: "scope" },
|
|
4268
|
+
],
|
|
4269
|
+
},
|
|
4270
|
+
]);
|
|
4271
|
+
return (options?.client ?? this.client).post({
|
|
4272
|
+
url: "/skill",
|
|
4273
|
+
...options,
|
|
4274
|
+
...params,
|
|
4275
|
+
headers: {
|
|
4276
|
+
"Content-Type": "application/json",
|
|
4277
|
+
...options?.headers,
|
|
4278
|
+
...params.headers,
|
|
4279
|
+
},
|
|
4280
|
+
});
|
|
4281
|
+
}
|
|
4282
|
+
/**
|
|
4283
|
+
* Delete skill
|
|
4284
|
+
*
|
|
4285
|
+
* Delete a skill by name.
|
|
4286
|
+
*/
|
|
4287
|
+
delete(parameters, options) {
|
|
4288
|
+
const params = buildClientParams([parameters], [
|
|
4289
|
+
{
|
|
4290
|
+
args: [
|
|
4291
|
+
{ in: "path", key: "name" },
|
|
4292
|
+
{ in: "query", key: "directory" },
|
|
4293
|
+
{ in: "query", key: "workspace" },
|
|
4294
|
+
],
|
|
4295
|
+
},
|
|
4296
|
+
]);
|
|
4297
|
+
return (options?.client ?? this.client).delete({
|
|
4298
|
+
url: "/skill/{name}",
|
|
4299
|
+
...options,
|
|
4300
|
+
...params,
|
|
4301
|
+
});
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
3316
4304
|
export class App extends HeyApiClient {
|
|
3317
4305
|
/**
|
|
3318
4306
|
* Write log
|
|
@@ -3383,6 +4371,10 @@ export class App extends HeyApiClient {
|
|
|
3383
4371
|
...params,
|
|
3384
4372
|
});
|
|
3385
4373
|
}
|
|
4374
|
+
_skill;
|
|
4375
|
+
get skill() {
|
|
4376
|
+
return (this._skill ??= new Skill({ client: this.client }));
|
|
4377
|
+
}
|
|
3386
4378
|
}
|
|
3387
4379
|
export class Lsp extends HeyApiClient {
|
|
3388
4380
|
/**
|
|
@@ -3538,6 +4530,76 @@ export class NikcliClient extends HeyApiClient {
|
|
|
3538
4530
|
...params,
|
|
3539
4531
|
});
|
|
3540
4532
|
}
|
|
4533
|
+
postUserRegister(parameters, options) {
|
|
4534
|
+
const params = buildClientParams([parameters], [
|
|
4535
|
+
{
|
|
4536
|
+
args: [
|
|
4537
|
+
{ in: "query", key: "directory" },
|
|
4538
|
+
{ in: "query", key: "workspace" },
|
|
4539
|
+
{ in: "body", key: "username" },
|
|
4540
|
+
{ in: "body", key: "email" },
|
|
4541
|
+
{ in: "body", key: "password" },
|
|
4542
|
+
{ in: "body", key: "displayName" },
|
|
4543
|
+
],
|
|
4544
|
+
},
|
|
4545
|
+
]);
|
|
4546
|
+
return (options?.client ?? this.client).post({
|
|
4547
|
+
url: "/user/register",
|
|
4548
|
+
...options,
|
|
4549
|
+
...params,
|
|
4550
|
+
headers: {
|
|
4551
|
+
"Content-Type": "application/json",
|
|
4552
|
+
...options?.headers,
|
|
4553
|
+
...params.headers,
|
|
4554
|
+
},
|
|
4555
|
+
});
|
|
4556
|
+
}
|
|
4557
|
+
postUserLogin(parameters, options) {
|
|
4558
|
+
const params = buildClientParams([parameters], [
|
|
4559
|
+
{
|
|
4560
|
+
args: [
|
|
4561
|
+
{ in: "query", key: "directory" },
|
|
4562
|
+
{ in: "query", key: "workspace" },
|
|
4563
|
+
{ in: "body", key: "email" },
|
|
4564
|
+
{ in: "body", key: "password" },
|
|
4565
|
+
],
|
|
4566
|
+
},
|
|
4567
|
+
]);
|
|
4568
|
+
return (options?.client ?? this.client).post({
|
|
4569
|
+
url: "/user/login",
|
|
4570
|
+
...options,
|
|
4571
|
+
...params,
|
|
4572
|
+
headers: {
|
|
4573
|
+
"Content-Type": "application/json",
|
|
4574
|
+
...options?.headers,
|
|
4575
|
+
...params.headers,
|
|
4576
|
+
},
|
|
4577
|
+
});
|
|
4578
|
+
}
|
|
4579
|
+
patchUserId(parameters, options) {
|
|
4580
|
+
const params = buildClientParams([parameters], [
|
|
4581
|
+
{
|
|
4582
|
+
args: [
|
|
4583
|
+
{ in: "path", key: "id" },
|
|
4584
|
+
{ in: "query", key: "directory" },
|
|
4585
|
+
{ in: "query", key: "workspace" },
|
|
4586
|
+
{ in: "body", key: "displayName" },
|
|
4587
|
+
{ in: "body", key: "password" },
|
|
4588
|
+
{ in: "body", key: "role" },
|
|
4589
|
+
],
|
|
4590
|
+
},
|
|
4591
|
+
]);
|
|
4592
|
+
return (options?.client ?? this.client).patch({
|
|
4593
|
+
url: "/user/{id}",
|
|
4594
|
+
...options,
|
|
4595
|
+
...params,
|
|
4596
|
+
headers: {
|
|
4597
|
+
"Content-Type": "application/json",
|
|
4598
|
+
...options?.headers,
|
|
4599
|
+
...params.headers,
|
|
4600
|
+
},
|
|
4601
|
+
});
|
|
4602
|
+
}
|
|
3541
4603
|
_global;
|
|
3542
4604
|
get global() {
|
|
3543
4605
|
return (this._global ??= new Global({ client: this.client }));
|
|
@@ -3568,7 +4630,7 @@ export class NikcliClient extends HeyApiClient {
|
|
|
3568
4630
|
}
|
|
3569
4631
|
_session;
|
|
3570
4632
|
get session() {
|
|
3571
|
-
return (this._session ??= new
|
|
4633
|
+
return (this._session ??= new Session2({ client: this.client }));
|
|
3572
4634
|
}
|
|
3573
4635
|
_part;
|
|
3574
4636
|
get part() {
|
|
@@ -3578,10 +4640,6 @@ export class NikcliClient extends HeyApiClient {
|
|
|
3578
4640
|
get permission() {
|
|
3579
4641
|
return (this._permission ??= new Permission({ client: this.client }));
|
|
3580
4642
|
}
|
|
3581
|
-
_dbedit;
|
|
3582
|
-
get dbedit() {
|
|
3583
|
-
return (this._dbedit ??= new Dbedit({ client: this.client }));
|
|
3584
|
-
}
|
|
3585
4643
|
_question;
|
|
3586
4644
|
get question() {
|
|
3587
4645
|
return (this._question ??= new Question({ client: this.client }));
|
|
@@ -3614,6 +4672,10 @@ export class NikcliClient extends HeyApiClient {
|
|
|
3614
4672
|
get tui() {
|
|
3615
4673
|
return (this._tui ??= new Tui({ client: this.client }));
|
|
3616
4674
|
}
|
|
4675
|
+
_analytics;
|
|
4676
|
+
get analytics() {
|
|
4677
|
+
return (this._analytics ??= new Analytics({ client: this.client }));
|
|
4678
|
+
}
|
|
3617
4679
|
_instance;
|
|
3618
4680
|
get instance() {
|
|
3619
4681
|
return (this._instance ??= new Instance({ client: this.client }));
|