@nikcli-ai/sdk 0.0.8 → 1.8.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 +311 -72
- package/dist/v2/gen/sdk.gen.js +642 -136
- package/dist/v2/gen/types.gen.d.ts +916 -294
- package/package.json +34 -10
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
|
*
|
|
@@ -1234,6 +1400,10 @@ export class Session extends HeyApiClient {
|
|
|
1234
1400
|
...params,
|
|
1235
1401
|
});
|
|
1236
1402
|
}
|
|
1403
|
+
_background;
|
|
1404
|
+
get background2() {
|
|
1405
|
+
return (this._background ??= new Background({ client: this.client }));
|
|
1406
|
+
}
|
|
1237
1407
|
}
|
|
1238
1408
|
export class Part extends HeyApiClient {
|
|
1239
1409
|
/**
|
|
@@ -1365,57 +1535,6 @@ export class Permission extends HeyApiClient {
|
|
|
1365
1535
|
});
|
|
1366
1536
|
}
|
|
1367
1537
|
}
|
|
1368
|
-
export class Dbedit extends HeyApiClient {
|
|
1369
|
-
/**
|
|
1370
|
-
* Respond to database edit request
|
|
1371
|
-
*
|
|
1372
|
-
* Accept, edit, or reject a database edit request from the AI assistant.
|
|
1373
|
-
*/
|
|
1374
|
-
reply(parameters, options) {
|
|
1375
|
-
const params = buildClientParams([parameters], [
|
|
1376
|
-
{
|
|
1377
|
-
args: [
|
|
1378
|
-
{ in: "path", key: "requestID" },
|
|
1379
|
-
{ in: "query", key: "directory" },
|
|
1380
|
-
{ in: "query", key: "workspace" },
|
|
1381
|
-
{ in: "body", key: "reply" },
|
|
1382
|
-
{ in: "body", key: "modified" },
|
|
1383
|
-
{ in: "body", key: "message" },
|
|
1384
|
-
],
|
|
1385
|
-
},
|
|
1386
|
-
]);
|
|
1387
|
-
return (options?.client ?? this.client).post({
|
|
1388
|
-
url: "/dbedit/{requestID}/reply",
|
|
1389
|
-
...options,
|
|
1390
|
-
...params,
|
|
1391
|
-
headers: {
|
|
1392
|
-
"Content-Type": "application/json",
|
|
1393
|
-
...options?.headers,
|
|
1394
|
-
...params.headers,
|
|
1395
|
-
},
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
/**
|
|
1399
|
-
* List pending DB edits
|
|
1400
|
-
*
|
|
1401
|
-
* Get all pending database edit requests across all sessions.
|
|
1402
|
-
*/
|
|
1403
|
-
list(parameters, options) {
|
|
1404
|
-
const params = buildClientParams([parameters], [
|
|
1405
|
-
{
|
|
1406
|
-
args: [
|
|
1407
|
-
{ in: "query", key: "directory" },
|
|
1408
|
-
{ in: "query", key: "workspace" },
|
|
1409
|
-
],
|
|
1410
|
-
},
|
|
1411
|
-
]);
|
|
1412
|
-
return (options?.client ?? this.client).get({
|
|
1413
|
-
url: "/dbedit",
|
|
1414
|
-
...options,
|
|
1415
|
-
...params,
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
1538
|
export class Question extends HeyApiClient {
|
|
1420
1539
|
/**
|
|
1421
1540
|
* List pending questions
|
|
@@ -1725,72 +1844,6 @@ export class Auth2 extends HeyApiClient {
|
|
|
1725
1844
|
return (this._token ??= new Token({ client: this.client }));
|
|
1726
1845
|
}
|
|
1727
1846
|
}
|
|
1728
|
-
export class Tophat extends HeyApiClient {
|
|
1729
|
-
/**
|
|
1730
|
-
* Get Tophat integration status
|
|
1731
|
-
*
|
|
1732
|
-
* Return Tophat availability, providers, and connected devices.
|
|
1733
|
-
*/
|
|
1734
|
-
status(parameters, options) {
|
|
1735
|
-
const params = buildClientParams([parameters], [
|
|
1736
|
-
{
|
|
1737
|
-
args: [
|
|
1738
|
-
{ in: "query", key: "directory" },
|
|
1739
|
-
{ in: "query", key: "workspace" },
|
|
1740
|
-
],
|
|
1741
|
-
},
|
|
1742
|
-
]);
|
|
1743
|
-
return (options?.client ?? this.client).get({
|
|
1744
|
-
url: "/mobile/tophat/status",
|
|
1745
|
-
...options,
|
|
1746
|
-
...params,
|
|
1747
|
-
});
|
|
1748
|
-
}
|
|
1749
|
-
/**
|
|
1750
|
-
* Generate Tophat install URLs for an artifact
|
|
1751
|
-
*
|
|
1752
|
-
* Return tophat:// and localhost install URLs for a given artifact URL.
|
|
1753
|
-
*/
|
|
1754
|
-
installUrl(parameters, options) {
|
|
1755
|
-
const params = buildClientParams([parameters], [
|
|
1756
|
-
{
|
|
1757
|
-
args: [
|
|
1758
|
-
{ in: "query", key: "directory" },
|
|
1759
|
-
{ in: "query", key: "workspace" },
|
|
1760
|
-
{ in: "query", key: "url" },
|
|
1761
|
-
{ in: "query", key: "platform" },
|
|
1762
|
-
],
|
|
1763
|
-
},
|
|
1764
|
-
]);
|
|
1765
|
-
return (options?.client ?? this.client).get({
|
|
1766
|
-
url: "/mobile/tophat/install-url",
|
|
1767
|
-
...options,
|
|
1768
|
-
...params,
|
|
1769
|
-
});
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
export class Expo extends HeyApiClient {
|
|
1773
|
-
/**
|
|
1774
|
-
* Get Expo environment status
|
|
1775
|
-
*
|
|
1776
|
-
* Return Expo CLI, EAS CLI, and Node.js availability.
|
|
1777
|
-
*/
|
|
1778
|
-
status(parameters, options) {
|
|
1779
|
-
const params = buildClientParams([parameters], [
|
|
1780
|
-
{
|
|
1781
|
-
args: [
|
|
1782
|
-
{ in: "query", key: "directory" },
|
|
1783
|
-
{ in: "query", key: "workspace" },
|
|
1784
|
-
],
|
|
1785
|
-
},
|
|
1786
|
-
]);
|
|
1787
|
-
return (options?.client ?? this.client).get({
|
|
1788
|
-
url: "/mobile/expo/status",
|
|
1789
|
-
...options,
|
|
1790
|
-
...params,
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
1847
|
export class Stash extends HeyApiClient {
|
|
1795
1848
|
/**
|
|
1796
1849
|
* List prompt stash for mobile
|
|
@@ -1951,6 +2004,34 @@ export class Project2 extends HeyApiClient {
|
|
|
1951
2004
|
});
|
|
1952
2005
|
}
|
|
1953
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
|
+
}
|
|
1954
2035
|
export class Device extends HeyApiClient {
|
|
1955
2036
|
/**
|
|
1956
2037
|
* Start GitHub OAuth device flow
|
|
@@ -2000,6 +2081,10 @@ export class Device extends HeyApiClient {
|
|
|
2000
2081
|
}
|
|
2001
2082
|
}
|
|
2002
2083
|
export class Oauth2 extends HeyApiClient {
|
|
2084
|
+
_clientId;
|
|
2085
|
+
get clientId() {
|
|
2086
|
+
return (this._clientId ??= new ClientId({ client: this.client }));
|
|
2087
|
+
}
|
|
2003
2088
|
_device;
|
|
2004
2089
|
get device() {
|
|
2005
2090
|
return (this._device ??= new Device({ client: this.client }));
|
|
@@ -2053,7 +2138,7 @@ export class Auth3 extends HeyApiClient {
|
|
|
2053
2138
|
});
|
|
2054
2139
|
}
|
|
2055
2140
|
}
|
|
2056
|
-
export class
|
|
2141
|
+
export class Session3 extends HeyApiClient {
|
|
2057
2142
|
/**
|
|
2058
2143
|
* Create GitHub-backed mobile session
|
|
2059
2144
|
*
|
|
@@ -2228,7 +2313,7 @@ export class Github extends HeyApiClient {
|
|
|
2228
2313
|
}
|
|
2229
2314
|
_session;
|
|
2230
2315
|
get session() {
|
|
2231
|
-
return (this._session ??= new
|
|
2316
|
+
return (this._session ??= new Session3({ client: this.client }));
|
|
2232
2317
|
}
|
|
2233
2318
|
}
|
|
2234
2319
|
export class Command2 extends HeyApiClient {
|
|
@@ -2254,7 +2339,7 @@ export class Command2 extends HeyApiClient {
|
|
|
2254
2339
|
});
|
|
2255
2340
|
}
|
|
2256
2341
|
}
|
|
2257
|
-
export class
|
|
2342
|
+
export class Session4 extends HeyApiClient {
|
|
2258
2343
|
/**
|
|
2259
2344
|
* List mobile sessions
|
|
2260
2345
|
*
|
|
@@ -2303,6 +2388,27 @@ export class Session3 extends HeyApiClient {
|
|
|
2303
2388
|
},
|
|
2304
2389
|
});
|
|
2305
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
|
+
}
|
|
2306
2412
|
/**
|
|
2307
2413
|
* Get mobile session detail
|
|
2308
2414
|
*
|
|
@@ -2512,6 +2618,58 @@ export class Permission2 extends HeyApiClient {
|
|
|
2512
2618
|
});
|
|
2513
2619
|
}
|
|
2514
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
|
+
}
|
|
2515
2673
|
export class Worktree2 extends HeyApiClient {
|
|
2516
2674
|
/**
|
|
2517
2675
|
* Remove mobile worktree
|
|
@@ -2625,6 +2783,7 @@ export class Git extends HeyApiClient {
|
|
|
2625
2783
|
{ in: "query", key: "directory" },
|
|
2626
2784
|
{ in: "query", key: "workspace" },
|
|
2627
2785
|
{ in: "query", key: "file" },
|
|
2786
|
+
{ in: "query", key: "staged" },
|
|
2628
2787
|
],
|
|
2629
2788
|
},
|
|
2630
2789
|
]);
|
|
@@ -2689,6 +2848,7 @@ export class Git extends HeyApiClient {
|
|
|
2689
2848
|
{ in: "body", key: "message" },
|
|
2690
2849
|
{ in: "body", key: "files" },
|
|
2691
2850
|
{ in: "body", key: "amend" },
|
|
2851
|
+
{ in: "body", key: "stagedOnly" },
|
|
2692
2852
|
],
|
|
2693
2853
|
},
|
|
2694
2854
|
]);
|
|
@@ -2850,6 +3010,219 @@ export class Git extends HeyApiClient {
|
|
|
2850
3010
|
});
|
|
2851
3011
|
}
|
|
2852
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,
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3177
|
+
/**
|
|
3178
|
+
* Resume routine
|
|
3179
|
+
*
|
|
3180
|
+
* Resume a paused routine, re-enabling scheduled triggers.
|
|
3181
|
+
*/
|
|
3182
|
+
resume(parameters, options) {
|
|
3183
|
+
const params = buildClientParams([parameters], [
|
|
3184
|
+
{
|
|
3185
|
+
args: [
|
|
3186
|
+
{ in: "path", key: "id" },
|
|
3187
|
+
{ in: "query", key: "directory" },
|
|
3188
|
+
{ in: "query", key: "workspace" },
|
|
3189
|
+
],
|
|
3190
|
+
},
|
|
3191
|
+
]);
|
|
3192
|
+
return (options?.client ?? this.client).post({
|
|
3193
|
+
url: "/mobile/routines/{id}/resume",
|
|
3194
|
+
...options,
|
|
3195
|
+
...params,
|
|
3196
|
+
});
|
|
3197
|
+
}
|
|
3198
|
+
/**
|
|
3199
|
+
* API trigger
|
|
3200
|
+
*
|
|
3201
|
+
* Trigger a routine via its API token. Accepts the token in the path or Authorization: Bearer header.
|
|
3202
|
+
*/
|
|
3203
|
+
trigger(parameters, options) {
|
|
3204
|
+
const params = buildClientParams([parameters], [
|
|
3205
|
+
{
|
|
3206
|
+
args: [
|
|
3207
|
+
{ in: "path", key: "token" },
|
|
3208
|
+
{ in: "query", key: "directory" },
|
|
3209
|
+
{ in: "query", key: "workspace" },
|
|
3210
|
+
{ key: "mobileRoutineTriggerInput", map: "body" },
|
|
3211
|
+
],
|
|
3212
|
+
},
|
|
3213
|
+
]);
|
|
3214
|
+
return (options?.client ?? this.client).post({
|
|
3215
|
+
url: "/mobile/routines/trigger/{token}",
|
|
3216
|
+
...options,
|
|
3217
|
+
...params,
|
|
3218
|
+
headers: {
|
|
3219
|
+
"Content-Type": "application/json",
|
|
3220
|
+
...options?.headers,
|
|
3221
|
+
...params.headers,
|
|
3222
|
+
},
|
|
3223
|
+
});
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
2853
3226
|
export class Mobile extends HeyApiClient {
|
|
2854
3227
|
/**
|
|
2855
3228
|
* Get mobile bootstrap payload
|
|
@@ -2875,14 +3248,6 @@ export class Mobile extends HeyApiClient {
|
|
|
2875
3248
|
get auth() {
|
|
2876
3249
|
return (this._auth ??= new Auth2({ client: this.client }));
|
|
2877
3250
|
}
|
|
2878
|
-
_tophat;
|
|
2879
|
-
get tophat() {
|
|
2880
|
-
return (this._tophat ??= new Tophat({ client: this.client }));
|
|
2881
|
-
}
|
|
2882
|
-
_expo;
|
|
2883
|
-
get expo() {
|
|
2884
|
-
return (this._expo ??= new Expo({ client: this.client }));
|
|
2885
|
-
}
|
|
2886
3251
|
_memory;
|
|
2887
3252
|
get memory() {
|
|
2888
3253
|
return (this._memory ??= new Memory({ client: this.client }));
|
|
@@ -2901,12 +3266,16 @@ export class Mobile extends HeyApiClient {
|
|
|
2901
3266
|
}
|
|
2902
3267
|
_session;
|
|
2903
3268
|
get session() {
|
|
2904
|
-
return (this._session ??= new
|
|
3269
|
+
return (this._session ??= new Session4({ client: this.client }));
|
|
2905
3270
|
}
|
|
2906
3271
|
_permission;
|
|
2907
3272
|
get permission() {
|
|
2908
3273
|
return (this._permission ??= new Permission2({ client: this.client }));
|
|
2909
3274
|
}
|
|
3275
|
+
_question;
|
|
3276
|
+
get question() {
|
|
3277
|
+
return (this._question ??= new Question2({ client: this.client }));
|
|
3278
|
+
}
|
|
2910
3279
|
_worktree;
|
|
2911
3280
|
get worktree() {
|
|
2912
3281
|
return (this._worktree ??= new Worktree2({ client: this.client }));
|
|
@@ -2915,12 +3284,16 @@ export class Mobile extends HeyApiClient {
|
|
|
2915
3284
|
get git() {
|
|
2916
3285
|
return (this._git ??= new Git({ client: this.client }));
|
|
2917
3286
|
}
|
|
3287
|
+
_routine;
|
|
3288
|
+
get routine() {
|
|
3289
|
+
return (this._routine ??= new Routine({ client: this.client }));
|
|
3290
|
+
}
|
|
2918
3291
|
}
|
|
2919
3292
|
export class Find extends HeyApiClient {
|
|
2920
3293
|
/**
|
|
2921
3294
|
* Find text
|
|
2922
3295
|
*
|
|
2923
|
-
* 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.
|
|
2924
3297
|
*/
|
|
2925
3298
|
text(parameters, options) {
|
|
2926
3299
|
const params = buildClientParams([parameters], [
|
|
@@ -3027,6 +3400,33 @@ export class File extends HeyApiClient {
|
|
|
3027
3400
|
...params,
|
|
3028
3401
|
});
|
|
3029
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
|
+
}
|
|
3030
3430
|
/**
|
|
3031
3431
|
* Get file status
|
|
3032
3432
|
*
|
|
@@ -3653,6 +4053,112 @@ export class Tui extends HeyApiClient {
|
|
|
3653
4053
|
return (this._control ??= new Control({ client: this.client }));
|
|
3654
4054
|
}
|
|
3655
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
|
+
}
|
|
3656
4162
|
export class Instance extends HeyApiClient {
|
|
3657
4163
|
/**
|
|
3658
4164
|
* Dispose instance
|
|
@@ -4124,7 +4630,7 @@ export class NikcliClient extends HeyApiClient {
|
|
|
4124
4630
|
}
|
|
4125
4631
|
_session;
|
|
4126
4632
|
get session() {
|
|
4127
|
-
return (this._session ??= new
|
|
4633
|
+
return (this._session ??= new Session2({ client: this.client }));
|
|
4128
4634
|
}
|
|
4129
4635
|
_part;
|
|
4130
4636
|
get part() {
|
|
@@ -4134,10 +4640,6 @@ export class NikcliClient extends HeyApiClient {
|
|
|
4134
4640
|
get permission() {
|
|
4135
4641
|
return (this._permission ??= new Permission({ client: this.client }));
|
|
4136
4642
|
}
|
|
4137
|
-
_dbedit;
|
|
4138
|
-
get dbedit() {
|
|
4139
|
-
return (this._dbedit ??= new Dbedit({ client: this.client }));
|
|
4140
|
-
}
|
|
4141
4643
|
_question;
|
|
4142
4644
|
get question() {
|
|
4143
4645
|
return (this._question ??= new Question({ client: this.client }));
|
|
@@ -4170,6 +4672,10 @@ export class NikcliClient extends HeyApiClient {
|
|
|
4170
4672
|
get tui() {
|
|
4171
4673
|
return (this._tui ??= new Tui({ client: this.client }));
|
|
4172
4674
|
}
|
|
4675
|
+
_analytics;
|
|
4676
|
+
get analytics() {
|
|
4677
|
+
return (this._analytics ??= new Analytics({ client: this.client }));
|
|
4678
|
+
}
|
|
4173
4679
|
_instance;
|
|
4174
4680
|
get instance() {
|
|
4175
4681
|
return (this._instance ??= new Instance({ client: this.client }));
|