@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
|
@@ -65,12 +65,6 @@ export type EventLspUpdated = {
|
|
|
65
65
|
[key: string]: unknown;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
export type EventFileEdited = {
|
|
69
|
-
type: "file.edited";
|
|
70
|
-
properties: {
|
|
71
|
-
file: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
68
|
export type OutputFormatText = {
|
|
75
69
|
type: "text";
|
|
76
70
|
};
|
|
@@ -85,10 +79,12 @@ export type OutputFormatJsonSchema = {
|
|
|
85
79
|
export type OutputFormat = OutputFormatText | OutputFormatJsonSchema;
|
|
86
80
|
export type FileDiff = {
|
|
87
81
|
file: string;
|
|
88
|
-
|
|
89
|
-
after: string;
|
|
82
|
+
patch: string;
|
|
90
83
|
additions: number;
|
|
91
84
|
deletions: number;
|
|
85
|
+
status?: "added" | "deleted" | "modified";
|
|
86
|
+
before: string;
|
|
87
|
+
after: string;
|
|
92
88
|
};
|
|
93
89
|
export type UserMessage = {
|
|
94
90
|
id: string;
|
|
@@ -133,6 +129,13 @@ export type MessageOutputLengthError = {
|
|
|
133
129
|
[key: string]: unknown;
|
|
134
130
|
};
|
|
135
131
|
};
|
|
132
|
+
export type MessageContextOverflowError = {
|
|
133
|
+
name: "MessageContextOverflowError";
|
|
134
|
+
data: {
|
|
135
|
+
message: string;
|
|
136
|
+
responseBody?: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
136
139
|
export type MessageAbortedError = {
|
|
137
140
|
name: "MessageAbortedError";
|
|
138
141
|
data: {
|
|
@@ -169,7 +172,7 @@ export type AssistantMessage = {
|
|
|
169
172
|
created: number;
|
|
170
173
|
completed?: number;
|
|
171
174
|
};
|
|
172
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
175
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
173
176
|
parentID: string;
|
|
174
177
|
modelID: string;
|
|
175
178
|
providerID: string;
|
|
@@ -237,6 +240,7 @@ export type SubtaskPart = {
|
|
|
237
240
|
modelID: string;
|
|
238
241
|
};
|
|
239
242
|
command?: string;
|
|
243
|
+
background?: boolean;
|
|
240
244
|
};
|
|
241
245
|
export type ReasoningPart = {
|
|
242
246
|
id: string;
|
|
@@ -498,9 +502,6 @@ export type EventSessionIdle = {
|
|
|
498
502
|
};
|
|
499
503
|
};
|
|
500
504
|
export type QuestionOption = {
|
|
501
|
-
/**
|
|
502
|
-
* Display text (1-5 words, concise)
|
|
503
|
-
*/
|
|
504
505
|
label: string;
|
|
505
506
|
/**
|
|
506
507
|
* Explanation of choice
|
|
@@ -512,9 +513,6 @@ export type QuestionInfo = {
|
|
|
512
513
|
* Complete question
|
|
513
514
|
*/
|
|
514
515
|
question: string;
|
|
515
|
-
/**
|
|
516
|
-
* Very short label (max 30 chars)
|
|
517
|
-
*/
|
|
518
516
|
header: string;
|
|
519
517
|
/**
|
|
520
518
|
* Available choices
|
|
@@ -567,6 +565,131 @@ export type EventSessionCompacted = {
|
|
|
567
565
|
sessionID: string;
|
|
568
566
|
};
|
|
569
567
|
};
|
|
568
|
+
export type EventMonitorCreated = {
|
|
569
|
+
type: "monitor.created";
|
|
570
|
+
properties: {
|
|
571
|
+
sessionID: string;
|
|
572
|
+
record: {
|
|
573
|
+
id: string;
|
|
574
|
+
sessionID: string;
|
|
575
|
+
messageID: string;
|
|
576
|
+
callID: string;
|
|
577
|
+
partID?: string;
|
|
578
|
+
title: string;
|
|
579
|
+
command: string;
|
|
580
|
+
cwd: string;
|
|
581
|
+
agent: string;
|
|
582
|
+
wake: boolean;
|
|
583
|
+
timeoutMs?: number;
|
|
584
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
585
|
+
pid?: number;
|
|
586
|
+
exitCode?: number;
|
|
587
|
+
signal?: string;
|
|
588
|
+
logPath: string;
|
|
589
|
+
commandPath: string;
|
|
590
|
+
pidPath: string;
|
|
591
|
+
exitCodePath: string;
|
|
592
|
+
preview?: string;
|
|
593
|
+
bytes?: number;
|
|
594
|
+
time: {
|
|
595
|
+
created: number;
|
|
596
|
+
updated: number;
|
|
597
|
+
completed?: number;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
export type EventMonitorUpdated = {
|
|
603
|
+
type: "monitor.updated";
|
|
604
|
+
properties: {
|
|
605
|
+
sessionID: string;
|
|
606
|
+
record: {
|
|
607
|
+
id: string;
|
|
608
|
+
sessionID: string;
|
|
609
|
+
messageID: string;
|
|
610
|
+
callID: string;
|
|
611
|
+
partID?: string;
|
|
612
|
+
title: string;
|
|
613
|
+
command: string;
|
|
614
|
+
cwd: string;
|
|
615
|
+
agent: string;
|
|
616
|
+
wake: boolean;
|
|
617
|
+
timeoutMs?: number;
|
|
618
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
619
|
+
pid?: number;
|
|
620
|
+
exitCode?: number;
|
|
621
|
+
signal?: string;
|
|
622
|
+
logPath: string;
|
|
623
|
+
commandPath: string;
|
|
624
|
+
pidPath: string;
|
|
625
|
+
exitCodePath: string;
|
|
626
|
+
preview?: string;
|
|
627
|
+
bytes?: number;
|
|
628
|
+
time: {
|
|
629
|
+
created: number;
|
|
630
|
+
updated: number;
|
|
631
|
+
completed?: number;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
export type EventMonitorOutput = {
|
|
637
|
+
type: "monitor.output";
|
|
638
|
+
properties: {
|
|
639
|
+
sessionID: string;
|
|
640
|
+
monitorID: string;
|
|
641
|
+
delta: string;
|
|
642
|
+
preview: string;
|
|
643
|
+
bytes: number;
|
|
644
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
export type EventMonitorCompleted = {
|
|
648
|
+
type: "monitor.completed";
|
|
649
|
+
properties: {
|
|
650
|
+
sessionID: string;
|
|
651
|
+
monitorID: string;
|
|
652
|
+
title: string;
|
|
653
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled";
|
|
654
|
+
exitCode: number | null;
|
|
655
|
+
logPath: string;
|
|
656
|
+
wake: boolean;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
export type EventFileEdited = {
|
|
660
|
+
type: "file.edited";
|
|
661
|
+
properties: {
|
|
662
|
+
file: string;
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
export type EventWorkspaceReady = {
|
|
666
|
+
type: "workspace.ready";
|
|
667
|
+
properties: {
|
|
668
|
+
name: string;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
export type EventWorkspaceFailed = {
|
|
672
|
+
type: "workspace.failed";
|
|
673
|
+
properties: {
|
|
674
|
+
message: string;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
export type EventWorkspaceStatus = {
|
|
678
|
+
type: "workspace.status";
|
|
679
|
+
properties: {
|
|
680
|
+
workspaceID: string;
|
|
681
|
+
status: "connecting" | "connected" | "disconnected" | "error";
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
export type EventDelegationCompleted = {
|
|
685
|
+
type: "delegation.completed";
|
|
686
|
+
properties: {
|
|
687
|
+
delegationID: string;
|
|
688
|
+
parentSessionID: string;
|
|
689
|
+
status: "running" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
|
|
690
|
+
title: string;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
570
693
|
export type Todo = {
|
|
571
694
|
/**
|
|
572
695
|
* Brief description of the task
|
|
@@ -683,6 +806,20 @@ export type SessionGithub = {
|
|
|
683
806
|
publishedAt?: number;
|
|
684
807
|
publishError?: string;
|
|
685
808
|
};
|
|
809
|
+
export type SessionMobile = {
|
|
810
|
+
platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
|
|
811
|
+
primaryPlatform: string;
|
|
812
|
+
method: string;
|
|
813
|
+
detectedAt: number;
|
|
814
|
+
buildStatus?: "unknown" | "building" | "succeeded" | "failed";
|
|
815
|
+
lastBuildAt?: number;
|
|
816
|
+
artifacts?: Array<{
|
|
817
|
+
platform: string;
|
|
818
|
+
path: string;
|
|
819
|
+
size?: number;
|
|
820
|
+
createdAt?: number;
|
|
821
|
+
}>;
|
|
822
|
+
};
|
|
686
823
|
export type PermissionAction = "allow" | "deny" | "ask";
|
|
687
824
|
export type PermissionRule = {
|
|
688
825
|
permission: string;
|
|
@@ -707,6 +844,7 @@ export type Session = {
|
|
|
707
844
|
url: string;
|
|
708
845
|
};
|
|
709
846
|
github?: SessionGithub;
|
|
847
|
+
mobile?: SessionMobile;
|
|
710
848
|
title: string;
|
|
711
849
|
version: string;
|
|
712
850
|
time: {
|
|
@@ -753,7 +891,7 @@ export type EventSessionError = {
|
|
|
753
891
|
type: "session.error";
|
|
754
892
|
properties: {
|
|
755
893
|
sessionID?: string;
|
|
756
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
894
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError | MessageAbortedError | StructuredOutputError | ApiError;
|
|
757
895
|
};
|
|
758
896
|
};
|
|
759
897
|
export type EventVcsBranchUpdated = {
|
|
@@ -762,18 +900,6 @@ export type EventVcsBranchUpdated = {
|
|
|
762
900
|
branch?: string;
|
|
763
901
|
};
|
|
764
902
|
};
|
|
765
|
-
export type EventWorkspaceReady = {
|
|
766
|
-
type: "workspace.ready";
|
|
767
|
-
properties: {
|
|
768
|
-
name: string;
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
|
-
export type EventWorkspaceFailed = {
|
|
772
|
-
type: "workspace.failed";
|
|
773
|
-
properties: {
|
|
774
|
-
message: string;
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
903
|
export type Pty = {
|
|
778
904
|
id: string;
|
|
779
905
|
title: string;
|
|
@@ -808,103 +934,14 @@ export type EventPtyDeleted = {
|
|
|
808
934
|
id: string;
|
|
809
935
|
};
|
|
810
936
|
};
|
|
811
|
-
export type
|
|
812
|
-
id: string;
|
|
813
|
-
sessionID: string;
|
|
814
|
-
type: "db_create" | "db_edit" | "db_query";
|
|
815
|
-
filePath: string;
|
|
816
|
-
schema?: {
|
|
817
|
-
tables: Array<{
|
|
818
|
-
name: string;
|
|
819
|
-
columns: Array<{
|
|
820
|
-
name: string;
|
|
821
|
-
type: string;
|
|
822
|
-
notNull: boolean;
|
|
823
|
-
defaultValue?: string;
|
|
824
|
-
primaryKey: boolean;
|
|
825
|
-
}>;
|
|
826
|
-
primaryKey: Array<string>;
|
|
827
|
-
foreignKeys?: Array<{
|
|
828
|
-
table: string;
|
|
829
|
-
column: string;
|
|
830
|
-
referencedTable: string;
|
|
831
|
-
referencedColumn: string;
|
|
832
|
-
onDelete: "CASCADE" | "RESTRICT" | "SET NULL" | "NO ACTION";
|
|
833
|
-
}>;
|
|
834
|
-
rowCount?: number;
|
|
835
|
-
sql?: string;
|
|
836
|
-
}>;
|
|
837
|
-
views?: Array<{
|
|
838
|
-
name: string;
|
|
839
|
-
sql: string;
|
|
840
|
-
}>;
|
|
841
|
-
indexes?: Array<{
|
|
842
|
-
name: string;
|
|
843
|
-
tableName: string;
|
|
844
|
-
columns: Array<string>;
|
|
845
|
-
unique: boolean;
|
|
846
|
-
}>;
|
|
847
|
-
};
|
|
848
|
-
preview?: Array<{
|
|
849
|
-
tableName: string;
|
|
850
|
-
columns: Array<{
|
|
851
|
-
name: string;
|
|
852
|
-
type: string;
|
|
853
|
-
notNull: boolean;
|
|
854
|
-
defaultValue?: string;
|
|
855
|
-
primaryKey: boolean;
|
|
856
|
-
}>;
|
|
857
|
-
sampleData: Array<{
|
|
858
|
-
[key: string]: unknown;
|
|
859
|
-
}>;
|
|
860
|
-
rowCount: number;
|
|
861
|
-
}>;
|
|
862
|
-
changes?: Array<{
|
|
863
|
-
type: "add_table" | "drop_table" | "add_column" | "drop_column" | "modify_column";
|
|
864
|
-
tableName: string;
|
|
865
|
-
columnName?: string;
|
|
866
|
-
oldDefinition?: {
|
|
867
|
-
name: string;
|
|
868
|
-
type: string;
|
|
869
|
-
notNull: boolean;
|
|
870
|
-
defaultValue?: string;
|
|
871
|
-
primaryKey: boolean;
|
|
872
|
-
};
|
|
873
|
-
newDefinition?: {
|
|
874
|
-
name: string;
|
|
875
|
-
type: string;
|
|
876
|
-
notNull: boolean;
|
|
877
|
-
defaultValue?: string;
|
|
878
|
-
primaryKey: boolean;
|
|
879
|
-
};
|
|
880
|
-
}>;
|
|
881
|
-
sql?: string;
|
|
882
|
-
always: Array<string>;
|
|
883
|
-
tool?: {
|
|
884
|
-
messageID: string;
|
|
885
|
-
callID: string;
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
export type EventDbeditAsked = {
|
|
889
|
-
type: "dbedit.asked";
|
|
890
|
-
properties: DbEditRequest;
|
|
891
|
-
};
|
|
892
|
-
export type EventDbeditReplied = {
|
|
893
|
-
type: "dbedit.replied";
|
|
894
|
-
properties: {
|
|
895
|
-
sessionID: string;
|
|
896
|
-
requestID: string;
|
|
897
|
-
reply: "accept" | "edit" | "reject";
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTodoUpdated | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventDbeditAsked | EventDbeditReplied;
|
|
937
|
+
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventFileEdited | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventDelegationCompleted | EventTodoUpdated | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted;
|
|
901
938
|
export type GlobalEvent = {
|
|
902
939
|
directory: string;
|
|
903
940
|
payload: Event;
|
|
904
941
|
};
|
|
905
942
|
export type BadRequestError = {
|
|
906
|
-
|
|
907
|
-
errors
|
|
943
|
+
message: string;
|
|
944
|
+
errors?: Array<{
|
|
908
945
|
[key: string]: unknown;
|
|
909
946
|
}>;
|
|
910
947
|
success: false;
|
|
@@ -1003,6 +1040,10 @@ export type KeybindsConfig = {
|
|
|
1003
1040
|
* Interrupt current session
|
|
1004
1041
|
*/
|
|
1005
1042
|
session_interrupt?: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* Open the Codebro dossier
|
|
1045
|
+
*/
|
|
1046
|
+
session_codebro_open?: string;
|
|
1006
1047
|
/**
|
|
1007
1048
|
* Background current subtask and return to parent session
|
|
1008
1049
|
*/
|
|
@@ -1389,6 +1430,16 @@ export type RemoteConfig = {
|
|
|
1389
1430
|
*/
|
|
1390
1431
|
askOnExistingSession?: boolean;
|
|
1391
1432
|
};
|
|
1433
|
+
export type ReferenceConfig = {
|
|
1434
|
+
type: "git";
|
|
1435
|
+
repository: string;
|
|
1436
|
+
branch?: string;
|
|
1437
|
+
description?: string;
|
|
1438
|
+
} | {
|
|
1439
|
+
type: "local";
|
|
1440
|
+
path: string;
|
|
1441
|
+
description?: string;
|
|
1442
|
+
};
|
|
1392
1443
|
export type PermissionActionConfig = "ask" | "allow" | "deny";
|
|
1393
1444
|
export type PermissionObjectConfig = {
|
|
1394
1445
|
[key: string]: PermissionActionConfig;
|
|
@@ -1430,6 +1481,8 @@ export type PermissionConfig = {
|
|
|
1430
1481
|
webfetch?: PermissionActionConfig;
|
|
1431
1482
|
websearch?: PermissionActionConfig;
|
|
1432
1483
|
codesearch?: PermissionActionConfig;
|
|
1484
|
+
repo_clone?: PermissionActionConfig;
|
|
1485
|
+
repo_overview?: PermissionActionConfig;
|
|
1433
1486
|
speak?: PermissionRuleConfig;
|
|
1434
1487
|
lsp?: PermissionRuleConfig;
|
|
1435
1488
|
doom_loop?: PermissionActionConfig;
|
|
@@ -1476,6 +1529,14 @@ export type AgentConfig = {
|
|
|
1476
1529
|
*/
|
|
1477
1530
|
maxSteps?: number;
|
|
1478
1531
|
permission?: PermissionConfig;
|
|
1532
|
+
/**
|
|
1533
|
+
* Advisor model in provider/model format (e.g. anthropic/claude-opus-4-6). Invoked by the executor for strategic guidance.
|
|
1534
|
+
*/
|
|
1535
|
+
advisor?: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* Max advisor invocations per request (default: 3).
|
|
1538
|
+
*/
|
|
1539
|
+
advisor_max_uses?: number;
|
|
1479
1540
|
[key: string]: unknown | string | number | {
|
|
1480
1541
|
[key: string]: boolean;
|
|
1481
1542
|
} | boolean | "subagent" | "primary" | "all" | {
|
|
@@ -1797,6 +1858,18 @@ export type Config = {
|
|
|
1797
1858
|
* Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
|
|
1798
1859
|
*/
|
|
1799
1860
|
diff_style?: "auto" | "stacked";
|
|
1861
|
+
/**
|
|
1862
|
+
* Enable or disable mouse capture (default: true)
|
|
1863
|
+
*/
|
|
1864
|
+
mouse?: boolean;
|
|
1865
|
+
/**
|
|
1866
|
+
* Enable or disable ambient sound feedback (default: false)
|
|
1867
|
+
*/
|
|
1868
|
+
sound?: boolean;
|
|
1869
|
+
/**
|
|
1870
|
+
* Enable animated background pulse behind the home logo (default: false)
|
|
1871
|
+
*/
|
|
1872
|
+
bg_pulse?: boolean;
|
|
1800
1873
|
};
|
|
1801
1874
|
ads?: AdsConfig;
|
|
1802
1875
|
server?: ServerConfig;
|
|
@@ -1813,6 +1886,12 @@ export type Config = {
|
|
|
1813
1886
|
subtask?: boolean;
|
|
1814
1887
|
};
|
|
1815
1888
|
};
|
|
1889
|
+
/**
|
|
1890
|
+
* Named external repositories or local directories exposed as read-only reference agents.
|
|
1891
|
+
*/
|
|
1892
|
+
reference?: {
|
|
1893
|
+
[key: string]: ReferenceConfig;
|
|
1894
|
+
};
|
|
1816
1895
|
watcher?: {
|
|
1817
1896
|
ignore?: Array<string>;
|
|
1818
1897
|
};
|
|
@@ -1870,6 +1949,7 @@ export type Config = {
|
|
|
1870
1949
|
build?: AgentConfig;
|
|
1871
1950
|
general?: AgentConfig;
|
|
1872
1951
|
explore?: AgentConfig;
|
|
1952
|
+
scout?: AgentConfig;
|
|
1873
1953
|
title?: AgentConfig;
|
|
1874
1954
|
summary?: AgentConfig;
|
|
1875
1955
|
compaction?: AgentConfig;
|
|
@@ -1989,6 +2069,22 @@ export type Config = {
|
|
|
1989
2069
|
* Continue the agent loop when a tool call is denied
|
|
1990
2070
|
*/
|
|
1991
2071
|
continue_loop_on_deny?: boolean;
|
|
2072
|
+
/**
|
|
2073
|
+
* Enable automatic memory consolidation (brain) feature
|
|
2074
|
+
*/
|
|
2075
|
+
brain?: boolean;
|
|
2076
|
+
/**
|
|
2077
|
+
* Minimum hours between brain consolidation runs
|
|
2078
|
+
*/
|
|
2079
|
+
brainMinHours?: number;
|
|
2080
|
+
/**
|
|
2081
|
+
* Minimum number of sessions to trigger brain consolidation
|
|
2082
|
+
*/
|
|
2083
|
+
brainMinSessions?: number;
|
|
2084
|
+
/**
|
|
2085
|
+
* Enable memory file support for session context
|
|
2086
|
+
*/
|
|
2087
|
+
memory?: boolean;
|
|
1992
2088
|
/**
|
|
1993
2089
|
* Timeout in milliseconds for model context protocol (MCP) requests
|
|
1994
2090
|
*/
|
|
@@ -2147,6 +2243,33 @@ export type Config = {
|
|
|
2147
2243
|
};
|
|
2148
2244
|
};
|
|
2149
2245
|
};
|
|
2246
|
+
/**
|
|
2247
|
+
* Mobile development settings
|
|
2248
|
+
*/
|
|
2249
|
+
mobile?: {
|
|
2250
|
+
tophat?: {
|
|
2251
|
+
/**
|
|
2252
|
+
* Enable Tophat integration
|
|
2253
|
+
*/
|
|
2254
|
+
enabled?: boolean;
|
|
2255
|
+
/**
|
|
2256
|
+
* Custom path to tophatctl binary
|
|
2257
|
+
*/
|
|
2258
|
+
cliPath?: string;
|
|
2259
|
+
/**
|
|
2260
|
+
* Default target platform
|
|
2261
|
+
*/
|
|
2262
|
+
defaultPlatform?: "ios" | "android";
|
|
2263
|
+
/**
|
|
2264
|
+
* Default install destination
|
|
2265
|
+
*/
|
|
2266
|
+
defaultDestination?: "device" | "simulator" | "emulator";
|
|
2267
|
+
/**
|
|
2268
|
+
* Auto-detect mobile projects (default: true)
|
|
2269
|
+
*/
|
|
2270
|
+
autoDetect?: boolean;
|
|
2271
|
+
};
|
|
2272
|
+
};
|
|
2150
2273
|
};
|
|
2151
2274
|
export type Model = {
|
|
2152
2275
|
id: string;
|
|
@@ -2256,6 +2379,7 @@ export type Workspace = {
|
|
|
2256
2379
|
config: {
|
|
2257
2380
|
directory: string;
|
|
2258
2381
|
type: "worktree";
|
|
2382
|
+
eventLimit?: number;
|
|
2259
2383
|
} | {
|
|
2260
2384
|
directory: string;
|
|
2261
2385
|
type: "container";
|
|
@@ -2264,8 +2388,20 @@ export type Workspace = {
|
|
|
2264
2388
|
containerName: string;
|
|
2265
2389
|
port: number;
|
|
2266
2390
|
serverUrl: string;
|
|
2391
|
+
eventLimit?: number;
|
|
2267
2392
|
};
|
|
2268
2393
|
};
|
|
2394
|
+
export type WorkspaceRestore = {
|
|
2395
|
+
workspaceID: string;
|
|
2396
|
+
sessions?: Array<string>;
|
|
2397
|
+
events?: Array<unknown>;
|
|
2398
|
+
};
|
|
2399
|
+
export type WorkspaceSessionRestore = {
|
|
2400
|
+
workspaceID: string;
|
|
2401
|
+
sessions?: Array<string>;
|
|
2402
|
+
events?: Array<unknown>;
|
|
2403
|
+
sessionID: string;
|
|
2404
|
+
};
|
|
2269
2405
|
export type WorktreeRemoveInput = {
|
|
2270
2406
|
directory: string;
|
|
2271
2407
|
};
|
|
@@ -2322,6 +2458,7 @@ export type SubtaskPartInput = {
|
|
|
2322
2458
|
modelID: string;
|
|
2323
2459
|
};
|
|
2324
2460
|
command?: string;
|
|
2461
|
+
background?: boolean;
|
|
2325
2462
|
};
|
|
2326
2463
|
export type ProviderAuthMethod = {
|
|
2327
2464
|
type: "oauth" | "api";
|
|
@@ -2357,6 +2494,13 @@ export type MobileProject = {
|
|
|
2357
2494
|
sandboxes: Array<string>;
|
|
2358
2495
|
current: boolean;
|
|
2359
2496
|
};
|
|
2497
|
+
export type MobileProjectType = {
|
|
2498
|
+
detected: boolean;
|
|
2499
|
+
platforms?: Array<string>;
|
|
2500
|
+
primaryPlatform?: string;
|
|
2501
|
+
method?: string;
|
|
2502
|
+
root?: string;
|
|
2503
|
+
};
|
|
2360
2504
|
export type MobileBootstrap = {
|
|
2361
2505
|
version: string;
|
|
2362
2506
|
auth: {
|
|
@@ -2374,6 +2518,7 @@ export type MobileBootstrap = {
|
|
|
2374
2518
|
};
|
|
2375
2519
|
github: {
|
|
2376
2520
|
connected: boolean;
|
|
2521
|
+
tokenAvailable?: boolean;
|
|
2377
2522
|
oauthDeviceEnabled: boolean;
|
|
2378
2523
|
oauthDeviceConfigured?: boolean;
|
|
2379
2524
|
oauthClientSource?: "flag" | "config" | "env";
|
|
@@ -2383,6 +2528,12 @@ export type MobileBootstrap = {
|
|
|
2383
2528
|
avatar_url?: string;
|
|
2384
2529
|
};
|
|
2385
2530
|
};
|
|
2531
|
+
expo: {
|
|
2532
|
+
available: boolean;
|
|
2533
|
+
easAvailable: boolean;
|
|
2534
|
+
details: Array<string>;
|
|
2535
|
+
};
|
|
2536
|
+
mobileProject?: MobileProjectType;
|
|
2386
2537
|
};
|
|
2387
2538
|
export type MobilePromptHistoryEntry = {
|
|
2388
2539
|
id: string;
|
|
@@ -2501,6 +2652,7 @@ export type MobileSessionDetail = {
|
|
|
2501
2652
|
parts: Array<Part>;
|
|
2502
2653
|
}>;
|
|
2503
2654
|
permissions: Array<PermissionRequest>;
|
|
2655
|
+
questions: Array<QuestionRequest>;
|
|
2504
2656
|
};
|
|
2505
2657
|
export type MobileSessionCommandInput = {
|
|
2506
2658
|
command: string;
|
|
@@ -2525,12 +2677,74 @@ export type MobileGithubPublishInput = {
|
|
|
2525
2677
|
body?: string;
|
|
2526
2678
|
commitMessage?: string;
|
|
2527
2679
|
};
|
|
2680
|
+
export type RoutineTriggerSchedule = {
|
|
2681
|
+
type: "schedule";
|
|
2682
|
+
cron: string;
|
|
2683
|
+
enabled: boolean;
|
|
2684
|
+
};
|
|
2685
|
+
export type RoutineTriggerApi = {
|
|
2686
|
+
type: "api";
|
|
2687
|
+
token: string;
|
|
2688
|
+
enabled: boolean;
|
|
2689
|
+
};
|
|
2690
|
+
export type RoutineTrigger = RoutineTriggerSchedule | RoutineTriggerApi;
|
|
2691
|
+
export type MobileRoutine = {
|
|
2692
|
+
id: string;
|
|
2693
|
+
name: string;
|
|
2694
|
+
prompt: string;
|
|
2695
|
+
triggers: Array<RoutineTrigger>;
|
|
2696
|
+
model?: {
|
|
2697
|
+
providerID: string;
|
|
2698
|
+
modelID: string;
|
|
2699
|
+
};
|
|
2700
|
+
paused: boolean;
|
|
2701
|
+
projectID: string;
|
|
2702
|
+
directory: string;
|
|
2703
|
+
createdAt: number;
|
|
2704
|
+
updatedAt: number;
|
|
2705
|
+
lastRunAt?: number;
|
|
2706
|
+
lastSessionID?: string;
|
|
2707
|
+
};
|
|
2708
|
+
export type MobileRoutineCreateInput = {
|
|
2709
|
+
name: string;
|
|
2710
|
+
prompt: string;
|
|
2711
|
+
triggers?: Array<RoutineTrigger>;
|
|
2712
|
+
model?: {
|
|
2713
|
+
providerID: string;
|
|
2714
|
+
modelID: string;
|
|
2715
|
+
};
|
|
2716
|
+
};
|
|
2717
|
+
export type MobileRoutineUpdateInput = {
|
|
2718
|
+
name?: string;
|
|
2719
|
+
prompt?: string;
|
|
2720
|
+
triggers?: Array<RoutineTrigger>;
|
|
2721
|
+
model?: {
|
|
2722
|
+
providerID: string;
|
|
2723
|
+
modelID: string;
|
|
2724
|
+
};
|
|
2725
|
+
paused?: boolean;
|
|
2726
|
+
};
|
|
2727
|
+
export type MobileRoutineRunInput = {
|
|
2728
|
+
text?: string;
|
|
2729
|
+
};
|
|
2730
|
+
export type MobileRoutineTriggerInput = {
|
|
2731
|
+
text?: string;
|
|
2732
|
+
};
|
|
2528
2733
|
export type Symbol = {
|
|
2529
2734
|
name: string;
|
|
2530
2735
|
kind: number;
|
|
2531
2736
|
location: {
|
|
2532
2737
|
uri: string;
|
|
2533
|
-
range:
|
|
2738
|
+
range: {
|
|
2739
|
+
start: {
|
|
2740
|
+
line: number;
|
|
2741
|
+
character: number;
|
|
2742
|
+
};
|
|
2743
|
+
end: {
|
|
2744
|
+
line: number;
|
|
2745
|
+
character: number;
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2534
2748
|
};
|
|
2535
2749
|
};
|
|
2536
2750
|
export type FileNode = {
|
|
@@ -2629,11 +2843,18 @@ export type Agent = {
|
|
|
2629
2843
|
topP?: number;
|
|
2630
2844
|
temperature?: number;
|
|
2631
2845
|
color?: string;
|
|
2632
|
-
permission:
|
|
2846
|
+
permission: Array<PermissionRule>;
|
|
2633
2847
|
model?: {
|
|
2634
2848
|
modelID: string;
|
|
2635
2849
|
providerID: string;
|
|
2636
2850
|
};
|
|
2851
|
+
advisor?: {
|
|
2852
|
+
model: {
|
|
2853
|
+
modelID: string;
|
|
2854
|
+
providerID: string;
|
|
2855
|
+
};
|
|
2856
|
+
maxUses?: number;
|
|
2857
|
+
};
|
|
2637
2858
|
variant?: string;
|
|
2638
2859
|
prompt?: string;
|
|
2639
2860
|
options: {
|
|
@@ -3147,6 +3368,27 @@ export type WorktreeCreateResponses = {
|
|
|
3147
3368
|
200: Worktree;
|
|
3148
3369
|
};
|
|
3149
3370
|
export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses];
|
|
3371
|
+
export type ExperimentalWorkspaceAdaptorListData = {
|
|
3372
|
+
body?: never;
|
|
3373
|
+
path?: never;
|
|
3374
|
+
query?: {
|
|
3375
|
+
directory?: string;
|
|
3376
|
+
workspace?: string;
|
|
3377
|
+
};
|
|
3378
|
+
url: "/experimental/workspace/adaptor";
|
|
3379
|
+
};
|
|
3380
|
+
export type ExperimentalWorkspaceAdaptorListResponses = {
|
|
3381
|
+
/**
|
|
3382
|
+
* Available adaptors
|
|
3383
|
+
*/
|
|
3384
|
+
200: Array<{
|
|
3385
|
+
type: string;
|
|
3386
|
+
name: string;
|
|
3387
|
+
description: string;
|
|
3388
|
+
available?: boolean;
|
|
3389
|
+
}>;
|
|
3390
|
+
};
|
|
3391
|
+
export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
|
|
3150
3392
|
export type ExperimentalWorkspaceRemoveData = {
|
|
3151
3393
|
body?: never;
|
|
3152
3394
|
path: {
|
|
@@ -3178,6 +3420,7 @@ export type ExperimentalWorkspaceCreateData = {
|
|
|
3178
3420
|
config: {
|
|
3179
3421
|
directory: string;
|
|
3180
3422
|
type: "worktree";
|
|
3423
|
+
eventLimit?: number;
|
|
3181
3424
|
} | {
|
|
3182
3425
|
directory: string;
|
|
3183
3426
|
type: "container";
|
|
@@ -3186,6 +3429,7 @@ export type ExperimentalWorkspaceCreateData = {
|
|
|
3186
3429
|
containerName: string;
|
|
3187
3430
|
port: number;
|
|
3188
3431
|
serverUrl: string;
|
|
3432
|
+
eventLimit?: number;
|
|
3189
3433
|
};
|
|
3190
3434
|
};
|
|
3191
3435
|
path: {
|
|
@@ -3211,43 +3455,104 @@ export type ExperimentalWorkspaceCreateResponses = {
|
|
|
3211
3455
|
200: Workspace;
|
|
3212
3456
|
};
|
|
3213
3457
|
export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
|
|
3214
|
-
export type
|
|
3458
|
+
export type ExperimentalWorkspaceRestoreData = {
|
|
3215
3459
|
body?: never;
|
|
3216
|
-
path
|
|
3460
|
+
path: {
|
|
3461
|
+
id: string;
|
|
3462
|
+
};
|
|
3217
3463
|
query?: {
|
|
3218
3464
|
directory?: string;
|
|
3219
3465
|
workspace?: string;
|
|
3466
|
+
timeoutMs?: number;
|
|
3220
3467
|
};
|
|
3221
|
-
url: "/experimental/workspace";
|
|
3468
|
+
url: "/experimental/workspace/{id}/restore";
|
|
3222
3469
|
};
|
|
3223
|
-
export type
|
|
3470
|
+
export type ExperimentalWorkspaceRestoreErrors = {
|
|
3224
3471
|
/**
|
|
3225
|
-
*
|
|
3472
|
+
* Bad request
|
|
3226
3473
|
*/
|
|
3227
|
-
|
|
3474
|
+
400: BadRequestError;
|
|
3475
|
+
/**
|
|
3476
|
+
* Not found
|
|
3477
|
+
*/
|
|
3478
|
+
404: NotFoundError;
|
|
3228
3479
|
};
|
|
3229
|
-
export type
|
|
3230
|
-
export type
|
|
3231
|
-
|
|
3232
|
-
|
|
3480
|
+
export type ExperimentalWorkspaceRestoreError = ExperimentalWorkspaceRestoreErrors[keyof ExperimentalWorkspaceRestoreErrors];
|
|
3481
|
+
export type ExperimentalWorkspaceRestoreResponses = {
|
|
3482
|
+
/**
|
|
3483
|
+
* Workspace restored
|
|
3484
|
+
*/
|
|
3485
|
+
200: WorkspaceRestore;
|
|
3486
|
+
};
|
|
3487
|
+
export type ExperimentalWorkspaceRestoreResponse = ExperimentalWorkspaceRestoreResponses[keyof ExperimentalWorkspaceRestoreResponses];
|
|
3488
|
+
export type ExperimentalWorkspaceSessionRestoreData = {
|
|
3489
|
+
body?: never;
|
|
3490
|
+
path: {
|
|
3491
|
+
id: string;
|
|
3492
|
+
sessionID: string;
|
|
3493
|
+
};
|
|
3233
3494
|
query?: {
|
|
3234
3495
|
directory?: string;
|
|
3235
3496
|
workspace?: string;
|
|
3497
|
+
timeoutMs?: number;
|
|
3236
3498
|
};
|
|
3237
|
-
url: "/experimental/
|
|
3499
|
+
url: "/experimental/workspace/{id}/session/{sessionID}/restore";
|
|
3238
3500
|
};
|
|
3239
|
-
export type
|
|
3501
|
+
export type ExperimentalWorkspaceSessionRestoreErrors = {
|
|
3240
3502
|
/**
|
|
3241
3503
|
* Bad request
|
|
3242
3504
|
*/
|
|
3243
3505
|
400: BadRequestError;
|
|
3244
|
-
};
|
|
3245
|
-
export type WorktreeResetError = WorktreeResetErrors[keyof WorktreeResetErrors];
|
|
3246
|
-
export type WorktreeResetResponses = {
|
|
3247
3506
|
/**
|
|
3248
|
-
*
|
|
3507
|
+
* Not found
|
|
3249
3508
|
*/
|
|
3250
|
-
|
|
3509
|
+
404: NotFoundError;
|
|
3510
|
+
};
|
|
3511
|
+
export type ExperimentalWorkspaceSessionRestoreError = ExperimentalWorkspaceSessionRestoreErrors[keyof ExperimentalWorkspaceSessionRestoreErrors];
|
|
3512
|
+
export type ExperimentalWorkspaceSessionRestoreResponses = {
|
|
3513
|
+
/**
|
|
3514
|
+
* Session restored
|
|
3515
|
+
*/
|
|
3516
|
+
200: WorkspaceSessionRestore;
|
|
3517
|
+
};
|
|
3518
|
+
export type ExperimentalWorkspaceSessionRestoreResponse = ExperimentalWorkspaceSessionRestoreResponses[keyof ExperimentalWorkspaceSessionRestoreResponses];
|
|
3519
|
+
export type ExperimentalWorkspaceListData = {
|
|
3520
|
+
body?: never;
|
|
3521
|
+
path?: never;
|
|
3522
|
+
query?: {
|
|
3523
|
+
directory?: string;
|
|
3524
|
+
workspace?: string;
|
|
3525
|
+
};
|
|
3526
|
+
url: "/experimental/workspace";
|
|
3527
|
+
};
|
|
3528
|
+
export type ExperimentalWorkspaceListResponses = {
|
|
3529
|
+
/**
|
|
3530
|
+
* Workspaces
|
|
3531
|
+
*/
|
|
3532
|
+
200: Array<Workspace>;
|
|
3533
|
+
};
|
|
3534
|
+
export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
|
|
3535
|
+
export type WorktreeResetData = {
|
|
3536
|
+
body?: WorktreeResetInput;
|
|
3537
|
+
path?: never;
|
|
3538
|
+
query?: {
|
|
3539
|
+
directory?: string;
|
|
3540
|
+
workspace?: string;
|
|
3541
|
+
};
|
|
3542
|
+
url: "/experimental/worktree/reset";
|
|
3543
|
+
};
|
|
3544
|
+
export type WorktreeResetErrors = {
|
|
3545
|
+
/**
|
|
3546
|
+
* Bad request
|
|
3547
|
+
*/
|
|
3548
|
+
400: BadRequestError;
|
|
3549
|
+
};
|
|
3550
|
+
export type WorktreeResetError = WorktreeResetErrors[keyof WorktreeResetErrors];
|
|
3551
|
+
export type WorktreeResetResponses = {
|
|
3552
|
+
/**
|
|
3553
|
+
* Worktree reset
|
|
3554
|
+
*/
|
|
3555
|
+
200: boolean;
|
|
3251
3556
|
};
|
|
3252
3557
|
export type WorktreeResetResponse = WorktreeResetResponses[keyof WorktreeResetResponses];
|
|
3253
3558
|
export type ExperimentalResourceListData = {
|
|
@@ -3567,6 +3872,161 @@ export type SessionForkResponses = {
|
|
|
3567
3872
|
200: Session;
|
|
3568
3873
|
};
|
|
3569
3874
|
export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses];
|
|
3875
|
+
export type SessionBackgroundData = {
|
|
3876
|
+
body?: never;
|
|
3877
|
+
path: {
|
|
3878
|
+
sessionID: string;
|
|
3879
|
+
};
|
|
3880
|
+
query?: {
|
|
3881
|
+
directory?: string;
|
|
3882
|
+
workspace?: string;
|
|
3883
|
+
};
|
|
3884
|
+
url: "/session/{sessionID}/background";
|
|
3885
|
+
};
|
|
3886
|
+
export type SessionBackgroundErrors = {
|
|
3887
|
+
/**
|
|
3888
|
+
* Bad request
|
|
3889
|
+
*/
|
|
3890
|
+
400: BadRequestError;
|
|
3891
|
+
/**
|
|
3892
|
+
* Not found
|
|
3893
|
+
*/
|
|
3894
|
+
404: NotFoundError;
|
|
3895
|
+
};
|
|
3896
|
+
export type SessionBackgroundError = SessionBackgroundErrors[keyof SessionBackgroundErrors];
|
|
3897
|
+
export type SessionBackgroundResponses = {
|
|
3898
|
+
/**
|
|
3899
|
+
* Background jobs
|
|
3900
|
+
*/
|
|
3901
|
+
200: Array<{
|
|
3902
|
+
jobID: string;
|
|
3903
|
+
rootDelegationID: string;
|
|
3904
|
+
parentSessionID: string;
|
|
3905
|
+
title: string;
|
|
3906
|
+
agent: string;
|
|
3907
|
+
status: "running" | "synthesizing" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
|
|
3908
|
+
source?: string;
|
|
3909
|
+
workerSessionID?: string;
|
|
3910
|
+
delegatorID?: string;
|
|
3911
|
+
delegatorSessionID?: string;
|
|
3912
|
+
createdAt: number;
|
|
3913
|
+
updatedAt: number;
|
|
3914
|
+
completedAt?: number;
|
|
3915
|
+
lastActivityAt?: number;
|
|
3916
|
+
progressSummary?: string;
|
|
3917
|
+
resultSummary?: string;
|
|
3918
|
+
error?: string;
|
|
3919
|
+
}>;
|
|
3920
|
+
};
|
|
3921
|
+
export type SessionBackgroundResponse = SessionBackgroundResponses[keyof SessionBackgroundResponses];
|
|
3922
|
+
export type SessionBackgroundInspectData = {
|
|
3923
|
+
body?: never;
|
|
3924
|
+
path: {
|
|
3925
|
+
sessionID: string;
|
|
3926
|
+
delegationID: string;
|
|
3927
|
+
};
|
|
3928
|
+
query?: {
|
|
3929
|
+
directory?: string;
|
|
3930
|
+
workspace?: string;
|
|
3931
|
+
};
|
|
3932
|
+
url: "/session/{sessionID}/background/{delegationID}";
|
|
3933
|
+
};
|
|
3934
|
+
export type SessionBackgroundInspectErrors = {
|
|
3935
|
+
/**
|
|
3936
|
+
* Bad request
|
|
3937
|
+
*/
|
|
3938
|
+
400: BadRequestError;
|
|
3939
|
+
/**
|
|
3940
|
+
* Not found
|
|
3941
|
+
*/
|
|
3942
|
+
404: NotFoundError;
|
|
3943
|
+
};
|
|
3944
|
+
export type SessionBackgroundInspectError = SessionBackgroundInspectErrors[keyof SessionBackgroundInspectErrors];
|
|
3945
|
+
export type SessionBackgroundInspectResponses = {
|
|
3946
|
+
/**
|
|
3947
|
+
* Background job
|
|
3948
|
+
*/
|
|
3949
|
+
200: {
|
|
3950
|
+
jobID: string;
|
|
3951
|
+
rootDelegationID: string;
|
|
3952
|
+
parentSessionID: string;
|
|
3953
|
+
title: string;
|
|
3954
|
+
agent: string;
|
|
3955
|
+
status: "running" | "synthesizing" | "complete" | "error" | "timeout" | "cancelled" | "orphaned";
|
|
3956
|
+
source?: string;
|
|
3957
|
+
workerSessionID?: string;
|
|
3958
|
+
delegatorID?: string;
|
|
3959
|
+
delegatorSessionID?: string;
|
|
3960
|
+
createdAt: number;
|
|
3961
|
+
updatedAt: number;
|
|
3962
|
+
completedAt?: number;
|
|
3963
|
+
lastActivityAt?: number;
|
|
3964
|
+
progressSummary?: string;
|
|
3965
|
+
resultSummary?: string;
|
|
3966
|
+
error?: string;
|
|
3967
|
+
} | null;
|
|
3968
|
+
};
|
|
3969
|
+
export type SessionBackgroundInspectResponse = SessionBackgroundInspectResponses[keyof SessionBackgroundInspectResponses];
|
|
3970
|
+
export type SessionBackgroundReadData = {
|
|
3971
|
+
body?: never;
|
|
3972
|
+
path: {
|
|
3973
|
+
sessionID: string;
|
|
3974
|
+
delegationID: string;
|
|
3975
|
+
};
|
|
3976
|
+
query?: {
|
|
3977
|
+
directory?: string;
|
|
3978
|
+
workspace?: string;
|
|
3979
|
+
};
|
|
3980
|
+
url: "/session/{sessionID}/background/{delegationID}/read";
|
|
3981
|
+
};
|
|
3982
|
+
export type SessionBackgroundReadErrors = {
|
|
3983
|
+
/**
|
|
3984
|
+
* Bad request
|
|
3985
|
+
*/
|
|
3986
|
+
400: BadRequestError;
|
|
3987
|
+
/**
|
|
3988
|
+
* Not found
|
|
3989
|
+
*/
|
|
3990
|
+
404: NotFoundError;
|
|
3991
|
+
};
|
|
3992
|
+
export type SessionBackgroundReadError = SessionBackgroundReadErrors[keyof SessionBackgroundReadErrors];
|
|
3993
|
+
export type SessionBackgroundReadResponses = {
|
|
3994
|
+
/**
|
|
3995
|
+
* Background job output
|
|
3996
|
+
*/
|
|
3997
|
+
200: string;
|
|
3998
|
+
};
|
|
3999
|
+
export type SessionBackgroundReadResponse = SessionBackgroundReadResponses[keyof SessionBackgroundReadResponses];
|
|
4000
|
+
export type SessionBackgroundCancelData = {
|
|
4001
|
+
body?: never;
|
|
4002
|
+
path: {
|
|
4003
|
+
sessionID: string;
|
|
4004
|
+
delegationID: string;
|
|
4005
|
+
};
|
|
4006
|
+
query?: {
|
|
4007
|
+
directory?: string;
|
|
4008
|
+
workspace?: string;
|
|
4009
|
+
};
|
|
4010
|
+
url: "/session/{sessionID}/background/{delegationID}/cancel";
|
|
4011
|
+
};
|
|
4012
|
+
export type SessionBackgroundCancelErrors = {
|
|
4013
|
+
/**
|
|
4014
|
+
* Bad request
|
|
4015
|
+
*/
|
|
4016
|
+
400: BadRequestError;
|
|
4017
|
+
/**
|
|
4018
|
+
* Not found
|
|
4019
|
+
*/
|
|
4020
|
+
404: NotFoundError;
|
|
4021
|
+
};
|
|
4022
|
+
export type SessionBackgroundCancelError = SessionBackgroundCancelErrors[keyof SessionBackgroundCancelErrors];
|
|
4023
|
+
export type SessionBackgroundCancelResponses = {
|
|
4024
|
+
/**
|
|
4025
|
+
* Cancelled background job
|
|
4026
|
+
*/
|
|
4027
|
+
200: boolean;
|
|
4028
|
+
};
|
|
4029
|
+
export type SessionBackgroundCancelResponse = SessionBackgroundCancelResponses[keyof SessionBackgroundCancelResponses];
|
|
3570
4030
|
export type SessionAbortData = {
|
|
3571
4031
|
body?: never;
|
|
3572
4032
|
path: {
|
|
@@ -4149,21 +4609,64 @@ export type PermissionRespondResponses = {
|
|
|
4149
4609
|
200: boolean;
|
|
4150
4610
|
};
|
|
4151
4611
|
export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses];
|
|
4152
|
-
export type
|
|
4153
|
-
body?:
|
|
4154
|
-
|
|
4155
|
-
|
|
4612
|
+
export type SessionMonitorData = {
|
|
4613
|
+
body?: never;
|
|
4614
|
+
path: {
|
|
4615
|
+
/**
|
|
4616
|
+
* Session ID
|
|
4617
|
+
*/
|
|
4618
|
+
sessionID: string;
|
|
4619
|
+
/**
|
|
4620
|
+
* Monitor ID
|
|
4621
|
+
*/
|
|
4622
|
+
monitorID: string;
|
|
4623
|
+
};
|
|
4624
|
+
query?: {
|
|
4625
|
+
directory?: string;
|
|
4626
|
+
workspace?: string;
|
|
4156
4627
|
};
|
|
4628
|
+
url: "/session/{sessionID}/monitor/{monitorID}";
|
|
4629
|
+
};
|
|
4630
|
+
export type SessionMonitorErrors = {
|
|
4631
|
+
/**
|
|
4632
|
+
* Bad request
|
|
4633
|
+
*/
|
|
4634
|
+
400: BadRequestError;
|
|
4635
|
+
/**
|
|
4636
|
+
* Not found
|
|
4637
|
+
*/
|
|
4638
|
+
404: NotFoundError;
|
|
4639
|
+
};
|
|
4640
|
+
export type SessionMonitorError = SessionMonitorErrors[keyof SessionMonitorErrors];
|
|
4641
|
+
export type SessionMonitorResponses = {
|
|
4642
|
+
/**
|
|
4643
|
+
* Monitor metadata
|
|
4644
|
+
*/
|
|
4645
|
+
200: unknown;
|
|
4646
|
+
};
|
|
4647
|
+
export type SessionMonitorLogData = {
|
|
4648
|
+
body?: never;
|
|
4157
4649
|
path: {
|
|
4158
|
-
|
|
4650
|
+
/**
|
|
4651
|
+
* Session ID
|
|
4652
|
+
*/
|
|
4653
|
+
sessionID: string;
|
|
4654
|
+
/**
|
|
4655
|
+
* Monitor ID
|
|
4656
|
+
*/
|
|
4657
|
+
monitorID: string;
|
|
4159
4658
|
};
|
|
4160
4659
|
query?: {
|
|
4161
4660
|
directory?: string;
|
|
4162
4661
|
workspace?: string;
|
|
4662
|
+
/**
|
|
4663
|
+
* Number of lines to return
|
|
4664
|
+
*/
|
|
4665
|
+
lines?: number;
|
|
4163
4666
|
};
|
|
4164
|
-
url: "/
|
|
4667
|
+
url: "/session/{sessionID}/monitor/{monitorID}/log";
|
|
4165
4668
|
};
|
|
4166
|
-
export type
|
|
4669
|
+
export type SessionMonitorLogErrors = {
|
|
4167
4670
|
/**
|
|
4168
4671
|
* Bad request
|
|
4169
4672
|
*/
|
|
@@ -4173,34 +4676,51 @@ export type PermissionReplyErrors = {
|
|
|
4173
4676
|
*/
|
|
4174
4677
|
404: NotFoundError;
|
|
4175
4678
|
};
|
|
4176
|
-
export type
|
|
4177
|
-
export type
|
|
4679
|
+
export type SessionMonitorLogError = SessionMonitorLogErrors[keyof SessionMonitorLogErrors];
|
|
4680
|
+
export type SessionMonitorLogResponses = {
|
|
4178
4681
|
/**
|
|
4179
|
-
*
|
|
4682
|
+
* Monitor log snapshot
|
|
4180
4683
|
*/
|
|
4181
|
-
200:
|
|
4684
|
+
200: unknown;
|
|
4182
4685
|
};
|
|
4183
|
-
export type
|
|
4184
|
-
export type PermissionListData = {
|
|
4686
|
+
export type SessionMonitorCancelData = {
|
|
4185
4687
|
body?: never;
|
|
4186
|
-
path
|
|
4688
|
+
path: {
|
|
4689
|
+
/**
|
|
4690
|
+
* Session ID
|
|
4691
|
+
*/
|
|
4692
|
+
sessionID: string;
|
|
4693
|
+
/**
|
|
4694
|
+
* Monitor ID
|
|
4695
|
+
*/
|
|
4696
|
+
monitorID: string;
|
|
4697
|
+
};
|
|
4187
4698
|
query?: {
|
|
4188
4699
|
directory?: string;
|
|
4189
4700
|
workspace?: string;
|
|
4190
4701
|
};
|
|
4191
|
-
url: "/
|
|
4702
|
+
url: "/session/{sessionID}/monitor/{monitorID}/cancel";
|
|
4192
4703
|
};
|
|
4193
|
-
export type
|
|
4704
|
+
export type SessionMonitorCancelErrors = {
|
|
4194
4705
|
/**
|
|
4195
|
-
*
|
|
4706
|
+
* Bad request
|
|
4196
4707
|
*/
|
|
4197
|
-
|
|
4708
|
+
400: BadRequestError;
|
|
4709
|
+
/**
|
|
4710
|
+
* Not found
|
|
4711
|
+
*/
|
|
4712
|
+
404: NotFoundError;
|
|
4198
4713
|
};
|
|
4199
|
-
export type
|
|
4200
|
-
export type
|
|
4714
|
+
export type SessionMonitorCancelError = SessionMonitorCancelErrors[keyof SessionMonitorCancelErrors];
|
|
4715
|
+
export type SessionMonitorCancelResponses = {
|
|
4716
|
+
/**
|
|
4717
|
+
* Cancelled monitor
|
|
4718
|
+
*/
|
|
4719
|
+
200: unknown;
|
|
4720
|
+
};
|
|
4721
|
+
export type PermissionReplyData = {
|
|
4201
4722
|
body?: {
|
|
4202
|
-
reply: "
|
|
4203
|
-
modified?: DbEditRequest;
|
|
4723
|
+
reply: "once" | "always" | "reject";
|
|
4204
4724
|
message?: string;
|
|
4205
4725
|
};
|
|
4206
4726
|
path: {
|
|
@@ -4210,9 +4730,9 @@ export type DbeditReplyData = {
|
|
|
4210
4730
|
directory?: string;
|
|
4211
4731
|
workspace?: string;
|
|
4212
4732
|
};
|
|
4213
|
-
url: "/
|
|
4733
|
+
url: "/permission/{requestID}/reply";
|
|
4214
4734
|
};
|
|
4215
|
-
export type
|
|
4735
|
+
export type PermissionReplyErrors = {
|
|
4216
4736
|
/**
|
|
4217
4737
|
* Bad request
|
|
4218
4738
|
*/
|
|
@@ -4222,30 +4742,30 @@ export type DbeditReplyErrors = {
|
|
|
4222
4742
|
*/
|
|
4223
4743
|
404: NotFoundError;
|
|
4224
4744
|
};
|
|
4225
|
-
export type
|
|
4226
|
-
export type
|
|
4745
|
+
export type PermissionReplyError = PermissionReplyErrors[keyof PermissionReplyErrors];
|
|
4746
|
+
export type PermissionReplyResponses = {
|
|
4227
4747
|
/**
|
|
4228
|
-
*
|
|
4748
|
+
* Permission processed successfully
|
|
4229
4749
|
*/
|
|
4230
4750
|
200: boolean;
|
|
4231
4751
|
};
|
|
4232
|
-
export type
|
|
4233
|
-
export type
|
|
4752
|
+
export type PermissionReplyResponse = PermissionReplyResponses[keyof PermissionReplyResponses];
|
|
4753
|
+
export type PermissionListData = {
|
|
4234
4754
|
body?: never;
|
|
4235
4755
|
path?: never;
|
|
4236
4756
|
query?: {
|
|
4237
4757
|
directory?: string;
|
|
4238
4758
|
workspace?: string;
|
|
4239
4759
|
};
|
|
4240
|
-
url: "/
|
|
4760
|
+
url: "/permission";
|
|
4241
4761
|
};
|
|
4242
|
-
export type
|
|
4762
|
+
export type PermissionListResponses = {
|
|
4243
4763
|
/**
|
|
4244
|
-
* List of pending
|
|
4764
|
+
* List of pending permissions
|
|
4245
4765
|
*/
|
|
4246
|
-
200: Array<
|
|
4766
|
+
200: Array<PermissionRequest>;
|
|
4247
4767
|
};
|
|
4248
|
-
export type
|
|
4768
|
+
export type PermissionListResponse = PermissionListResponses[keyof PermissionListResponses];
|
|
4249
4769
|
export type QuestionListData = {
|
|
4250
4770
|
body?: never;
|
|
4251
4771
|
path?: never;
|
|
@@ -4552,6 +5072,56 @@ export type ProviderOauthCallbackResponses = {
|
|
|
4552
5072
|
200: boolean;
|
|
4553
5073
|
};
|
|
4554
5074
|
export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
|
|
5075
|
+
export type PostUserRegisterData = {
|
|
5076
|
+
body?: {
|
|
5077
|
+
username: string;
|
|
5078
|
+
email: string;
|
|
5079
|
+
password: unknown & unknown & unknown;
|
|
5080
|
+
displayName?: string;
|
|
5081
|
+
};
|
|
5082
|
+
path?: never;
|
|
5083
|
+
query?: {
|
|
5084
|
+
directory?: string;
|
|
5085
|
+
workspace?: string;
|
|
5086
|
+
};
|
|
5087
|
+
url: "/user/register";
|
|
5088
|
+
};
|
|
5089
|
+
export type PostUserRegisterResponses = {
|
|
5090
|
+
200: unknown;
|
|
5091
|
+
};
|
|
5092
|
+
export type PostUserLoginData = {
|
|
5093
|
+
body?: {
|
|
5094
|
+
email: string;
|
|
5095
|
+
password: string;
|
|
5096
|
+
};
|
|
5097
|
+
path?: never;
|
|
5098
|
+
query?: {
|
|
5099
|
+
directory?: string;
|
|
5100
|
+
workspace?: string;
|
|
5101
|
+
};
|
|
5102
|
+
url: "/user/login";
|
|
5103
|
+
};
|
|
5104
|
+
export type PostUserLoginResponses = {
|
|
5105
|
+
200: unknown;
|
|
5106
|
+
};
|
|
5107
|
+
export type PatchUserIdData = {
|
|
5108
|
+
body?: {
|
|
5109
|
+
displayName?: string;
|
|
5110
|
+
password?: string;
|
|
5111
|
+
role?: "admin" | "user";
|
|
5112
|
+
};
|
|
5113
|
+
path: {
|
|
5114
|
+
id: string;
|
|
5115
|
+
};
|
|
5116
|
+
query?: {
|
|
5117
|
+
directory?: string;
|
|
5118
|
+
workspace?: string;
|
|
5119
|
+
};
|
|
5120
|
+
url: "/user/{id}";
|
|
5121
|
+
};
|
|
5122
|
+
export type PatchUserIdResponses = {
|
|
5123
|
+
200: unknown;
|
|
5124
|
+
};
|
|
4555
5125
|
export type MobileAuthTokenListData = {
|
|
4556
5126
|
body?: never;
|
|
4557
5127
|
path?: never;
|
|
@@ -4808,8 +5378,33 @@ export type MobileGithubImportsResponses = {
|
|
|
4808
5378
|
200: Array<MobileGithubImport>;
|
|
4809
5379
|
};
|
|
4810
5380
|
export type MobileGithubImportsResponse = MobileGithubImportsResponses[keyof MobileGithubImportsResponses];
|
|
4811
|
-
export type
|
|
4812
|
-
body?:
|
|
5381
|
+
export type MobileGithubOauthClientIdSetData = {
|
|
5382
|
+
body?: {
|
|
5383
|
+
clientId: string;
|
|
5384
|
+
};
|
|
5385
|
+
path?: never;
|
|
5386
|
+
query?: {
|
|
5387
|
+
directory?: string;
|
|
5388
|
+
workspace?: string;
|
|
5389
|
+
};
|
|
5390
|
+
url: "/mobile/github/oauth/client";
|
|
5391
|
+
};
|
|
5392
|
+
export type MobileGithubOauthClientIdSetErrors = {
|
|
5393
|
+
/**
|
|
5394
|
+
* Bad request
|
|
5395
|
+
*/
|
|
5396
|
+
400: BadRequestError;
|
|
5397
|
+
};
|
|
5398
|
+
export type MobileGithubOauthClientIdSetError = MobileGithubOauthClientIdSetErrors[keyof MobileGithubOauthClientIdSetErrors];
|
|
5399
|
+
export type MobileGithubOauthClientIdSetResponses = {
|
|
5400
|
+
/**
|
|
5401
|
+
* Updated host configuration
|
|
5402
|
+
*/
|
|
5403
|
+
200: Config;
|
|
5404
|
+
};
|
|
5405
|
+
export type MobileGithubOauthClientIdSetResponse = MobileGithubOauthClientIdSetResponses[keyof MobileGithubOauthClientIdSetResponses];
|
|
5406
|
+
export type MobileGithubOauthDeviceStartData = {
|
|
5407
|
+
body?: never;
|
|
4813
5408
|
path?: never;
|
|
4814
5409
|
query?: {
|
|
4815
5410
|
directory?: string;
|
|
@@ -4989,6 +5584,37 @@ export type MobileSessionCreateResponses = {
|
|
|
4989
5584
|
200: Session;
|
|
4990
5585
|
};
|
|
4991
5586
|
export type MobileSessionCreateResponse = MobileSessionCreateResponses[keyof MobileSessionCreateResponses];
|
|
5587
|
+
export type MobileSessionDeleteData = {
|
|
5588
|
+
body?: never;
|
|
5589
|
+
path: {
|
|
5590
|
+
sessionID: string;
|
|
5591
|
+
};
|
|
5592
|
+
query?: {
|
|
5593
|
+
directory?: string;
|
|
5594
|
+
workspace?: string;
|
|
5595
|
+
};
|
|
5596
|
+
url: "/mobile/session/{sessionID}";
|
|
5597
|
+
};
|
|
5598
|
+
export type MobileSessionDeleteErrors = {
|
|
5599
|
+
/**
|
|
5600
|
+
* Bad request
|
|
5601
|
+
*/
|
|
5602
|
+
400: BadRequestError;
|
|
5603
|
+
/**
|
|
5604
|
+
* Not found
|
|
5605
|
+
*/
|
|
5606
|
+
404: NotFoundError;
|
|
5607
|
+
};
|
|
5608
|
+
export type MobileSessionDeleteError = MobileSessionDeleteErrors[keyof MobileSessionDeleteErrors];
|
|
5609
|
+
export type MobileSessionDeleteResponses = {
|
|
5610
|
+
/**
|
|
5611
|
+
* Session deleted
|
|
5612
|
+
*/
|
|
5613
|
+
200: {
|
|
5614
|
+
success: true;
|
|
5615
|
+
};
|
|
5616
|
+
};
|
|
5617
|
+
export type MobileSessionDeleteResponse = MobileSessionDeleteResponses[keyof MobileSessionDeleteResponses];
|
|
4992
5618
|
export type MobileSessionDetailData = {
|
|
4993
5619
|
body?: never;
|
|
4994
5620
|
path: {
|
|
@@ -5182,6 +5808,50 @@ export type MobilePermissionRespondResponses = {
|
|
|
5182
5808
|
};
|
|
5183
5809
|
};
|
|
5184
5810
|
export type MobilePermissionRespondResponse = MobilePermissionRespondResponses[keyof MobilePermissionRespondResponses];
|
|
5811
|
+
export type MobileQuestionRejectData = {
|
|
5812
|
+
body?: never;
|
|
5813
|
+
path: {
|
|
5814
|
+
sessionID: string;
|
|
5815
|
+
requestID: string;
|
|
5816
|
+
};
|
|
5817
|
+
query?: {
|
|
5818
|
+
directory?: string;
|
|
5819
|
+
workspace?: string;
|
|
5820
|
+
};
|
|
5821
|
+
url: "/mobile/session/{sessionID}/question/{requestID}";
|
|
5822
|
+
};
|
|
5823
|
+
export type MobileQuestionRejectResponses = {
|
|
5824
|
+
/**
|
|
5825
|
+
* Question rejected
|
|
5826
|
+
*/
|
|
5827
|
+
200: {
|
|
5828
|
+
success: true;
|
|
5829
|
+
};
|
|
5830
|
+
};
|
|
5831
|
+
export type MobileQuestionRejectResponse = MobileQuestionRejectResponses[keyof MobileQuestionRejectResponses];
|
|
5832
|
+
export type MobileQuestionRespondData = {
|
|
5833
|
+
body?: {
|
|
5834
|
+
answers: Array<Array<string>>;
|
|
5835
|
+
};
|
|
5836
|
+
path: {
|
|
5837
|
+
sessionID: string;
|
|
5838
|
+
requestID: string;
|
|
5839
|
+
};
|
|
5840
|
+
query?: {
|
|
5841
|
+
directory?: string;
|
|
5842
|
+
workspace?: string;
|
|
5843
|
+
};
|
|
5844
|
+
url: "/mobile/session/{sessionID}/question/{requestID}";
|
|
5845
|
+
};
|
|
5846
|
+
export type MobileQuestionRespondResponses = {
|
|
5847
|
+
/**
|
|
5848
|
+
* Question answered
|
|
5849
|
+
*/
|
|
5850
|
+
200: {
|
|
5851
|
+
success: true;
|
|
5852
|
+
};
|
|
5853
|
+
};
|
|
5854
|
+
export type MobileQuestionRespondResponse = MobileQuestionRespondResponses[keyof MobileQuestionRespondResponses];
|
|
5185
5855
|
export type MobileGithubSessionPublishData = {
|
|
5186
5856
|
body?: MobileGithubPublishInput;
|
|
5187
5857
|
path: {
|
|
@@ -5210,19 +5880,607 @@ export type MobileGithubSessionPublishResponses = {
|
|
|
5210
5880
|
*/
|
|
5211
5881
|
200: MobileGithubPublishResult;
|
|
5212
5882
|
};
|
|
5213
|
-
export type MobileGithubSessionPublishResponse = MobileGithubSessionPublishResponses[keyof MobileGithubSessionPublishResponses];
|
|
5214
|
-
export type MobileGithubSessionCleanupData = {
|
|
5215
|
-
body?: never;
|
|
5883
|
+
export type MobileGithubSessionPublishResponse = MobileGithubSessionPublishResponses[keyof MobileGithubSessionPublishResponses];
|
|
5884
|
+
export type MobileGithubSessionCleanupData = {
|
|
5885
|
+
body?: never;
|
|
5886
|
+
path: {
|
|
5887
|
+
sessionID: string;
|
|
5888
|
+
};
|
|
5889
|
+
query?: {
|
|
5890
|
+
directory?: string;
|
|
5891
|
+
workspace?: string;
|
|
5892
|
+
};
|
|
5893
|
+
url: "/mobile/session/{sessionID}/cleanup";
|
|
5894
|
+
};
|
|
5895
|
+
export type MobileGithubSessionCleanupErrors = {
|
|
5896
|
+
/**
|
|
5897
|
+
* Bad request
|
|
5898
|
+
*/
|
|
5899
|
+
400: BadRequestError;
|
|
5900
|
+
/**
|
|
5901
|
+
* Not found
|
|
5902
|
+
*/
|
|
5903
|
+
404: NotFoundError;
|
|
5904
|
+
};
|
|
5905
|
+
export type MobileGithubSessionCleanupError = MobileGithubSessionCleanupErrors[keyof MobileGithubSessionCleanupErrors];
|
|
5906
|
+
export type MobileGithubSessionCleanupResponses = {
|
|
5907
|
+
/**
|
|
5908
|
+
* Worktree cleaned
|
|
5909
|
+
*/
|
|
5910
|
+
200: {
|
|
5911
|
+
success: true;
|
|
5912
|
+
};
|
|
5913
|
+
};
|
|
5914
|
+
export type MobileGithubSessionCleanupResponse = MobileGithubSessionCleanupResponses[keyof MobileGithubSessionCleanupResponses];
|
|
5915
|
+
export type MobileSessionStreamData = {
|
|
5916
|
+
body?: never;
|
|
5917
|
+
path: {
|
|
5918
|
+
sessionID: string;
|
|
5919
|
+
};
|
|
5920
|
+
query?: {
|
|
5921
|
+
directory?: string;
|
|
5922
|
+
workspace?: string;
|
|
5923
|
+
};
|
|
5924
|
+
url: "/mobile/session/{sessionID}/stream";
|
|
5925
|
+
};
|
|
5926
|
+
export type MobileSessionStreamResponses = {
|
|
5927
|
+
/**
|
|
5928
|
+
* Session event stream
|
|
5929
|
+
*/
|
|
5930
|
+
200: unknown;
|
|
5931
|
+
};
|
|
5932
|
+
export type MobileWorktreeRemoveData = {
|
|
5933
|
+
body?: WorktreeRemoveInput;
|
|
5934
|
+
path?: never;
|
|
5935
|
+
query?: {
|
|
5936
|
+
directory?: string;
|
|
5937
|
+
workspace?: string;
|
|
5938
|
+
};
|
|
5939
|
+
url: "/mobile/worktree";
|
|
5940
|
+
};
|
|
5941
|
+
export type MobileWorktreeRemoveResponses = {
|
|
5942
|
+
/**
|
|
5943
|
+
* Worktree removed
|
|
5944
|
+
*/
|
|
5945
|
+
200: {
|
|
5946
|
+
success: true;
|
|
5947
|
+
};
|
|
5948
|
+
};
|
|
5949
|
+
export type MobileWorktreeRemoveResponse = MobileWorktreeRemoveResponses[keyof MobileWorktreeRemoveResponses];
|
|
5950
|
+
export type MobileWorktreeCreateData = {
|
|
5951
|
+
body?: WorktreeCreateInput;
|
|
5952
|
+
path?: never;
|
|
5953
|
+
query?: {
|
|
5954
|
+
directory?: string;
|
|
5955
|
+
workspace?: string;
|
|
5956
|
+
};
|
|
5957
|
+
url: "/mobile/worktree";
|
|
5958
|
+
};
|
|
5959
|
+
export type MobileWorktreeCreateErrors = {
|
|
5960
|
+
/**
|
|
5961
|
+
* Bad request
|
|
5962
|
+
*/
|
|
5963
|
+
400: BadRequestError;
|
|
5964
|
+
};
|
|
5965
|
+
export type MobileWorktreeCreateError = MobileWorktreeCreateErrors[keyof MobileWorktreeCreateErrors];
|
|
5966
|
+
export type MobileWorktreeCreateResponses = {
|
|
5967
|
+
/**
|
|
5968
|
+
* Worktree created
|
|
5969
|
+
*/
|
|
5970
|
+
200: Worktree;
|
|
5971
|
+
};
|
|
5972
|
+
export type MobileWorktreeCreateResponse = MobileWorktreeCreateResponses[keyof MobileWorktreeCreateResponses];
|
|
5973
|
+
export type MobileWorktreeResetData = {
|
|
5974
|
+
body?: WorktreeResetInput;
|
|
5975
|
+
path?: never;
|
|
5976
|
+
query?: {
|
|
5977
|
+
directory?: string;
|
|
5978
|
+
workspace?: string;
|
|
5979
|
+
};
|
|
5980
|
+
url: "/mobile/worktree/reset";
|
|
5981
|
+
};
|
|
5982
|
+
export type MobileWorktreeResetResponses = {
|
|
5983
|
+
/**
|
|
5984
|
+
* Worktree reset
|
|
5985
|
+
*/
|
|
5986
|
+
200: {
|
|
5987
|
+
success: true;
|
|
5988
|
+
};
|
|
5989
|
+
};
|
|
5990
|
+
export type MobileWorktreeResetResponse = MobileWorktreeResetResponses[keyof MobileWorktreeResetResponses];
|
|
5991
|
+
export type MobileSessionRenameData = {
|
|
5992
|
+
body?: {
|
|
5993
|
+
title: string;
|
|
5994
|
+
};
|
|
5995
|
+
path: {
|
|
5996
|
+
sessionID: string;
|
|
5997
|
+
};
|
|
5998
|
+
query?: {
|
|
5999
|
+
directory?: string;
|
|
6000
|
+
workspace?: string;
|
|
6001
|
+
};
|
|
6002
|
+
url: "/mobile/session/{sessionID}/rename";
|
|
6003
|
+
};
|
|
6004
|
+
export type MobileSessionRenameResponses = {
|
|
6005
|
+
/**
|
|
6006
|
+
* Session renamed
|
|
6007
|
+
*/
|
|
6008
|
+
200: {
|
|
6009
|
+
success: true;
|
|
6010
|
+
};
|
|
6011
|
+
};
|
|
6012
|
+
export type MobileSessionRenameResponse = MobileSessionRenameResponses[keyof MobileSessionRenameResponses];
|
|
6013
|
+
export type MobileGitStatusData = {
|
|
6014
|
+
body?: never;
|
|
6015
|
+
path?: never;
|
|
6016
|
+
query?: {
|
|
6017
|
+
directory?: string;
|
|
6018
|
+
workspace?: string;
|
|
6019
|
+
};
|
|
6020
|
+
url: "/mobile/git/status";
|
|
6021
|
+
};
|
|
6022
|
+
export type MobileGitStatusResponses = {
|
|
6023
|
+
/**
|
|
6024
|
+
* Git status
|
|
6025
|
+
*/
|
|
6026
|
+
200: {
|
|
6027
|
+
branch: string;
|
|
6028
|
+
staged: Array<{
|
|
6029
|
+
status: "added";
|
|
6030
|
+
path: string;
|
|
6031
|
+
additions: number;
|
|
6032
|
+
deletions: number;
|
|
6033
|
+
} | {
|
|
6034
|
+
status: "modified";
|
|
6035
|
+
path: string;
|
|
6036
|
+
additions: number;
|
|
6037
|
+
deletions: number;
|
|
6038
|
+
} | {
|
|
6039
|
+
status: "deleted";
|
|
6040
|
+
path: string;
|
|
6041
|
+
} | {
|
|
6042
|
+
status: "renamed";
|
|
6043
|
+
path: string;
|
|
6044
|
+
oldPath: string;
|
|
6045
|
+
}>;
|
|
6046
|
+
unstaged: Array<{
|
|
6047
|
+
status: "added";
|
|
6048
|
+
path: string;
|
|
6049
|
+
additions: number;
|
|
6050
|
+
deletions: number;
|
|
6051
|
+
} | {
|
|
6052
|
+
status: "modified";
|
|
6053
|
+
path: string;
|
|
6054
|
+
additions: number;
|
|
6055
|
+
deletions: number;
|
|
6056
|
+
} | {
|
|
6057
|
+
status: "deleted";
|
|
6058
|
+
path: string;
|
|
6059
|
+
} | {
|
|
6060
|
+
status: "renamed";
|
|
6061
|
+
path: string;
|
|
6062
|
+
oldPath: string;
|
|
6063
|
+
}>;
|
|
6064
|
+
untracked: Array<string>;
|
|
6065
|
+
commitsAhead: number;
|
|
6066
|
+
commitsBehind: number;
|
|
6067
|
+
lastCommit?: {
|
|
6068
|
+
sha: string;
|
|
6069
|
+
message: string;
|
|
6070
|
+
author: string;
|
|
6071
|
+
timestamp: number;
|
|
6072
|
+
};
|
|
6073
|
+
};
|
|
6074
|
+
};
|
|
6075
|
+
export type MobileGitStatusResponse = MobileGitStatusResponses[keyof MobileGitStatusResponses];
|
|
6076
|
+
export type MobileGitDiffData = {
|
|
6077
|
+
body?: never;
|
|
6078
|
+
path?: never;
|
|
6079
|
+
query?: {
|
|
6080
|
+
directory?: string;
|
|
6081
|
+
workspace?: string;
|
|
6082
|
+
file?: string;
|
|
6083
|
+
staged?: "true" | "false";
|
|
6084
|
+
};
|
|
6085
|
+
url: "/mobile/git/diff";
|
|
6086
|
+
};
|
|
6087
|
+
export type MobileGitDiffResponses = {
|
|
6088
|
+
/**
|
|
6089
|
+
* File diffs
|
|
6090
|
+
*/
|
|
6091
|
+
200: Array<{
|
|
6092
|
+
file: string;
|
|
6093
|
+
oldPath?: string;
|
|
6094
|
+
hunks: Array<{
|
|
6095
|
+
header: {
|
|
6096
|
+
oldStart: number;
|
|
6097
|
+
oldLines: number;
|
|
6098
|
+
newStart: number;
|
|
6099
|
+
newLines: number;
|
|
6100
|
+
};
|
|
6101
|
+
lines: Array<{
|
|
6102
|
+
type: "add" | "remove" | "context";
|
|
6103
|
+
text: string;
|
|
6104
|
+
oldLineNumber?: number;
|
|
6105
|
+
newLineNumber?: number;
|
|
6106
|
+
}>;
|
|
6107
|
+
}>;
|
|
6108
|
+
isBinary: boolean;
|
|
6109
|
+
additions: number;
|
|
6110
|
+
deletions: number;
|
|
6111
|
+
}>;
|
|
6112
|
+
};
|
|
6113
|
+
export type MobileGitDiffResponse = MobileGitDiffResponses[keyof MobileGitDiffResponses];
|
|
6114
|
+
export type MobileGitCommitsData = {
|
|
6115
|
+
body?: never;
|
|
6116
|
+
path?: never;
|
|
6117
|
+
query?: {
|
|
6118
|
+
directory?: string;
|
|
6119
|
+
workspace?: string;
|
|
6120
|
+
limit?: number;
|
|
6121
|
+
};
|
|
6122
|
+
url: "/mobile/git/commits";
|
|
6123
|
+
};
|
|
6124
|
+
export type MobileGitCommitsResponses = {
|
|
6125
|
+
/**
|
|
6126
|
+
* Commits
|
|
6127
|
+
*/
|
|
6128
|
+
200: Array<{
|
|
6129
|
+
sha: string;
|
|
6130
|
+
message: string;
|
|
6131
|
+
author: {
|
|
6132
|
+
name: string;
|
|
6133
|
+
email: string;
|
|
6134
|
+
};
|
|
6135
|
+
timestamp: number;
|
|
6136
|
+
filesCount: number;
|
|
6137
|
+
additions: number;
|
|
6138
|
+
deletions: number;
|
|
6139
|
+
}>;
|
|
6140
|
+
};
|
|
6141
|
+
export type MobileGitCommitsResponse = MobileGitCommitsResponses[keyof MobileGitCommitsResponses];
|
|
6142
|
+
export type MobileGitBranchesData = {
|
|
6143
|
+
body?: never;
|
|
6144
|
+
path?: never;
|
|
6145
|
+
query?: {
|
|
6146
|
+
directory?: string;
|
|
6147
|
+
workspace?: string;
|
|
6148
|
+
};
|
|
6149
|
+
url: "/mobile/git/branches";
|
|
6150
|
+
};
|
|
6151
|
+
export type MobileGitBranchesResponses = {
|
|
6152
|
+
/**
|
|
6153
|
+
* Branches
|
|
6154
|
+
*/
|
|
6155
|
+
200: Array<{
|
|
6156
|
+
name: string;
|
|
6157
|
+
isCurrent: boolean;
|
|
6158
|
+
isProtected: boolean;
|
|
6159
|
+
aheadBy: number;
|
|
6160
|
+
behindBy: number;
|
|
6161
|
+
}>;
|
|
6162
|
+
};
|
|
6163
|
+
export type MobileGitBranchesResponse = MobileGitBranchesResponses[keyof MobileGitBranchesResponses];
|
|
6164
|
+
export type MobileGitCommitData = {
|
|
6165
|
+
body?: {
|
|
6166
|
+
message: string;
|
|
6167
|
+
files?: Array<string>;
|
|
6168
|
+
amend?: boolean;
|
|
6169
|
+
stagedOnly?: boolean;
|
|
6170
|
+
};
|
|
6171
|
+
path?: never;
|
|
6172
|
+
query?: {
|
|
6173
|
+
directory?: string;
|
|
6174
|
+
workspace?: string;
|
|
6175
|
+
};
|
|
6176
|
+
url: "/mobile/git/commit";
|
|
6177
|
+
};
|
|
6178
|
+
export type MobileGitCommitErrors = {
|
|
6179
|
+
/**
|
|
6180
|
+
* Bad request
|
|
6181
|
+
*/
|
|
6182
|
+
400: BadRequestError;
|
|
6183
|
+
};
|
|
6184
|
+
export type MobileGitCommitError = MobileGitCommitErrors[keyof MobileGitCommitErrors];
|
|
6185
|
+
export type MobileGitCommitResponses = {
|
|
6186
|
+
/**
|
|
6187
|
+
* Commit created
|
|
6188
|
+
*/
|
|
6189
|
+
200: {
|
|
6190
|
+
sha: string;
|
|
6191
|
+
message: string;
|
|
6192
|
+
};
|
|
6193
|
+
};
|
|
6194
|
+
export type MobileGitCommitResponse = MobileGitCommitResponses[keyof MobileGitCommitResponses];
|
|
6195
|
+
export type MobileGitCheckoutData = {
|
|
6196
|
+
body?: {
|
|
6197
|
+
branch: string;
|
|
6198
|
+
create?: boolean;
|
|
6199
|
+
};
|
|
6200
|
+
path?: never;
|
|
6201
|
+
query?: {
|
|
6202
|
+
directory?: string;
|
|
6203
|
+
workspace?: string;
|
|
6204
|
+
};
|
|
6205
|
+
url: "/mobile/git/checkout";
|
|
6206
|
+
};
|
|
6207
|
+
export type MobileGitCheckoutErrors = {
|
|
6208
|
+
/**
|
|
6209
|
+
* Bad request
|
|
6210
|
+
*/
|
|
6211
|
+
400: BadRequestError;
|
|
6212
|
+
};
|
|
6213
|
+
export type MobileGitCheckoutError = MobileGitCheckoutErrors[keyof MobileGitCheckoutErrors];
|
|
6214
|
+
export type MobileGitCheckoutResponses = {
|
|
6215
|
+
/**
|
|
6216
|
+
* Branch switched
|
|
6217
|
+
*/
|
|
6218
|
+
200: {
|
|
6219
|
+
success: true;
|
|
6220
|
+
};
|
|
6221
|
+
};
|
|
6222
|
+
export type MobileGitCheckoutResponse = MobileGitCheckoutResponses[keyof MobileGitCheckoutResponses];
|
|
6223
|
+
export type MobileGitStageData = {
|
|
6224
|
+
body?: {
|
|
6225
|
+
files: Array<string>;
|
|
6226
|
+
};
|
|
6227
|
+
path?: never;
|
|
6228
|
+
query?: {
|
|
6229
|
+
directory?: string;
|
|
6230
|
+
workspace?: string;
|
|
6231
|
+
};
|
|
6232
|
+
url: "/mobile/git/stage";
|
|
6233
|
+
};
|
|
6234
|
+
export type MobileGitStageResponses = {
|
|
6235
|
+
/**
|
|
6236
|
+
* Files staged
|
|
6237
|
+
*/
|
|
6238
|
+
200: {
|
|
6239
|
+
success: true;
|
|
6240
|
+
};
|
|
6241
|
+
};
|
|
6242
|
+
export type MobileGitStageResponse = MobileGitStageResponses[keyof MobileGitStageResponses];
|
|
6243
|
+
export type MobileGitUnstageData = {
|
|
6244
|
+
body?: {
|
|
6245
|
+
files: Array<string>;
|
|
6246
|
+
};
|
|
6247
|
+
path?: never;
|
|
6248
|
+
query?: {
|
|
6249
|
+
directory?: string;
|
|
6250
|
+
workspace?: string;
|
|
6251
|
+
};
|
|
6252
|
+
url: "/mobile/git/unstage";
|
|
6253
|
+
};
|
|
6254
|
+
export type MobileGitUnstageResponses = {
|
|
6255
|
+
/**
|
|
6256
|
+
* Files unstaged
|
|
6257
|
+
*/
|
|
6258
|
+
200: {
|
|
6259
|
+
success: true;
|
|
6260
|
+
};
|
|
6261
|
+
};
|
|
6262
|
+
export type MobileGitUnstageResponse = MobileGitUnstageResponses[keyof MobileGitUnstageResponses];
|
|
6263
|
+
export type MobileGitDiscardData = {
|
|
6264
|
+
body?: {
|
|
6265
|
+
files: Array<string>;
|
|
6266
|
+
};
|
|
6267
|
+
path?: never;
|
|
6268
|
+
query?: {
|
|
6269
|
+
directory?: string;
|
|
6270
|
+
workspace?: string;
|
|
6271
|
+
};
|
|
6272
|
+
url: "/mobile/git/discard";
|
|
6273
|
+
};
|
|
6274
|
+
export type MobileGitDiscardResponses = {
|
|
6275
|
+
/**
|
|
6276
|
+
* Changes discarded
|
|
6277
|
+
*/
|
|
6278
|
+
200: {
|
|
6279
|
+
success: true;
|
|
6280
|
+
};
|
|
6281
|
+
};
|
|
6282
|
+
export type MobileGitDiscardResponse = MobileGitDiscardResponses[keyof MobileGitDiscardResponses];
|
|
6283
|
+
export type MobileGitPushData = {
|
|
6284
|
+
body?: never;
|
|
6285
|
+
path?: never;
|
|
6286
|
+
query?: {
|
|
6287
|
+
directory?: string;
|
|
6288
|
+
workspace?: string;
|
|
6289
|
+
upstream?: string;
|
|
6290
|
+
};
|
|
6291
|
+
url: "/mobile/git/push";
|
|
6292
|
+
};
|
|
6293
|
+
export type MobileGitPushErrors = {
|
|
6294
|
+
/**
|
|
6295
|
+
* Bad request
|
|
6296
|
+
*/
|
|
6297
|
+
400: BadRequestError;
|
|
6298
|
+
};
|
|
6299
|
+
export type MobileGitPushError = MobileGitPushErrors[keyof MobileGitPushErrors];
|
|
6300
|
+
export type MobileGitPushResponses = {
|
|
6301
|
+
/**
|
|
6302
|
+
* Branch pushed
|
|
6303
|
+
*/
|
|
6304
|
+
200: {
|
|
6305
|
+
success: true;
|
|
6306
|
+
pushed: boolean;
|
|
6307
|
+
};
|
|
6308
|
+
};
|
|
6309
|
+
export type MobileGitPushResponse = MobileGitPushResponses[keyof MobileGitPushResponses];
|
|
6310
|
+
export type MobileGitPullData = {
|
|
6311
|
+
body?: never;
|
|
6312
|
+
path?: never;
|
|
6313
|
+
query?: {
|
|
6314
|
+
directory?: string;
|
|
6315
|
+
workspace?: string;
|
|
6316
|
+
};
|
|
6317
|
+
url: "/mobile/git/pull";
|
|
6318
|
+
};
|
|
6319
|
+
export type MobileGitPullErrors = {
|
|
6320
|
+
/**
|
|
6321
|
+
* Bad request
|
|
6322
|
+
*/
|
|
6323
|
+
400: BadRequestError;
|
|
6324
|
+
};
|
|
6325
|
+
export type MobileGitPullError = MobileGitPullErrors[keyof MobileGitPullErrors];
|
|
6326
|
+
export type MobileGitPullResponses = {
|
|
6327
|
+
/**
|
|
6328
|
+
* Changes pulled
|
|
6329
|
+
*/
|
|
6330
|
+
200: {
|
|
6331
|
+
success: true;
|
|
6332
|
+
pulled: boolean;
|
|
6333
|
+
conflicts?: Array<string>;
|
|
6334
|
+
};
|
|
6335
|
+
};
|
|
6336
|
+
export type MobileGitPullResponse = MobileGitPullResponses[keyof MobileGitPullResponses];
|
|
6337
|
+
export type MobileRoutineListData = {
|
|
6338
|
+
body?: never;
|
|
6339
|
+
path?: never;
|
|
6340
|
+
query?: {
|
|
6341
|
+
directory?: string;
|
|
6342
|
+
workspace?: string;
|
|
6343
|
+
};
|
|
6344
|
+
url: "/mobile/routines";
|
|
6345
|
+
};
|
|
6346
|
+
export type MobileRoutineListErrors = {
|
|
6347
|
+
/**
|
|
6348
|
+
* Bad request
|
|
6349
|
+
*/
|
|
6350
|
+
400: BadRequestError;
|
|
6351
|
+
};
|
|
6352
|
+
export type MobileRoutineListError = MobileRoutineListErrors[keyof MobileRoutineListErrors];
|
|
6353
|
+
export type MobileRoutineListResponses = {
|
|
6354
|
+
/**
|
|
6355
|
+
* Routine list
|
|
6356
|
+
*/
|
|
6357
|
+
200: Array<MobileRoutine>;
|
|
6358
|
+
};
|
|
6359
|
+
export type MobileRoutineListResponse = MobileRoutineListResponses[keyof MobileRoutineListResponses];
|
|
6360
|
+
export type MobileRoutineCreateData = {
|
|
6361
|
+
body?: MobileRoutineCreateInput;
|
|
6362
|
+
path?: never;
|
|
6363
|
+
query?: {
|
|
6364
|
+
directory?: string;
|
|
6365
|
+
workspace?: string;
|
|
6366
|
+
};
|
|
6367
|
+
url: "/mobile/routines";
|
|
6368
|
+
};
|
|
6369
|
+
export type MobileRoutineCreateErrors = {
|
|
6370
|
+
/**
|
|
6371
|
+
* Bad request
|
|
6372
|
+
*/
|
|
6373
|
+
400: BadRequestError;
|
|
6374
|
+
};
|
|
6375
|
+
export type MobileRoutineCreateError = MobileRoutineCreateErrors[keyof MobileRoutineCreateErrors];
|
|
6376
|
+
export type MobileRoutineCreateResponses = {
|
|
6377
|
+
/**
|
|
6378
|
+
* Created routine
|
|
6379
|
+
*/
|
|
6380
|
+
200: MobileRoutine;
|
|
6381
|
+
};
|
|
6382
|
+
export type MobileRoutineCreateResponse = MobileRoutineCreateResponses[keyof MobileRoutineCreateResponses];
|
|
6383
|
+
export type MobileRoutineDeleteData = {
|
|
6384
|
+
body?: never;
|
|
6385
|
+
path: {
|
|
6386
|
+
id: string;
|
|
6387
|
+
};
|
|
6388
|
+
query?: {
|
|
6389
|
+
directory?: string;
|
|
6390
|
+
workspace?: string;
|
|
6391
|
+
};
|
|
6392
|
+
url: "/mobile/routines/{id}";
|
|
6393
|
+
};
|
|
6394
|
+
export type MobileRoutineDeleteErrors = {
|
|
6395
|
+
/**
|
|
6396
|
+
* Bad request
|
|
6397
|
+
*/
|
|
6398
|
+
400: BadRequestError;
|
|
6399
|
+
/**
|
|
6400
|
+
* Not found
|
|
6401
|
+
*/
|
|
6402
|
+
404: NotFoundError;
|
|
6403
|
+
};
|
|
6404
|
+
export type MobileRoutineDeleteError = MobileRoutineDeleteErrors[keyof MobileRoutineDeleteErrors];
|
|
6405
|
+
export type MobileRoutineDeleteResponses = {
|
|
6406
|
+
/**
|
|
6407
|
+
* Deletion result
|
|
6408
|
+
*/
|
|
6409
|
+
200: {
|
|
6410
|
+
success: true;
|
|
6411
|
+
};
|
|
6412
|
+
};
|
|
6413
|
+
export type MobileRoutineDeleteResponse = MobileRoutineDeleteResponses[keyof MobileRoutineDeleteResponses];
|
|
6414
|
+
export type MobileRoutineGetData = {
|
|
6415
|
+
body?: never;
|
|
6416
|
+
path: {
|
|
6417
|
+
id: string;
|
|
6418
|
+
};
|
|
6419
|
+
query?: {
|
|
6420
|
+
directory?: string;
|
|
6421
|
+
workspace?: string;
|
|
6422
|
+
};
|
|
6423
|
+
url: "/mobile/routines/{id}";
|
|
6424
|
+
};
|
|
6425
|
+
export type MobileRoutineGetErrors = {
|
|
6426
|
+
/**
|
|
6427
|
+
* Bad request
|
|
6428
|
+
*/
|
|
6429
|
+
400: BadRequestError;
|
|
6430
|
+
/**
|
|
6431
|
+
* Not found
|
|
6432
|
+
*/
|
|
6433
|
+
404: NotFoundError;
|
|
6434
|
+
};
|
|
6435
|
+
export type MobileRoutineGetError = MobileRoutineGetErrors[keyof MobileRoutineGetErrors];
|
|
6436
|
+
export type MobileRoutineGetResponses = {
|
|
6437
|
+
/**
|
|
6438
|
+
* Routine
|
|
6439
|
+
*/
|
|
6440
|
+
200: MobileRoutine;
|
|
6441
|
+
};
|
|
6442
|
+
export type MobileRoutineGetResponse = MobileRoutineGetResponses[keyof MobileRoutineGetResponses];
|
|
6443
|
+
export type MobileRoutineUpdateData = {
|
|
6444
|
+
body?: MobileRoutineUpdateInput;
|
|
6445
|
+
path: {
|
|
6446
|
+
id: string;
|
|
6447
|
+
};
|
|
6448
|
+
query?: {
|
|
6449
|
+
directory?: string;
|
|
6450
|
+
workspace?: string;
|
|
6451
|
+
};
|
|
6452
|
+
url: "/mobile/routines/{id}";
|
|
6453
|
+
};
|
|
6454
|
+
export type MobileRoutineUpdateErrors = {
|
|
6455
|
+
/**
|
|
6456
|
+
* Bad request
|
|
6457
|
+
*/
|
|
6458
|
+
400: BadRequestError;
|
|
6459
|
+
/**
|
|
6460
|
+
* Not found
|
|
6461
|
+
*/
|
|
6462
|
+
404: NotFoundError;
|
|
6463
|
+
};
|
|
6464
|
+
export type MobileRoutineUpdateError = MobileRoutineUpdateErrors[keyof MobileRoutineUpdateErrors];
|
|
6465
|
+
export type MobileRoutineUpdateResponses = {
|
|
6466
|
+
/**
|
|
6467
|
+
* Updated routine
|
|
6468
|
+
*/
|
|
6469
|
+
200: MobileRoutine;
|
|
6470
|
+
};
|
|
6471
|
+
export type MobileRoutineUpdateResponse = MobileRoutineUpdateResponses[keyof MobileRoutineUpdateResponses];
|
|
6472
|
+
export type MobileRoutineRunData = {
|
|
6473
|
+
body?: MobileRoutineRunInput;
|
|
5216
6474
|
path: {
|
|
5217
|
-
|
|
6475
|
+
id: string;
|
|
5218
6476
|
};
|
|
5219
6477
|
query?: {
|
|
5220
6478
|
directory?: string;
|
|
5221
6479
|
workspace?: string;
|
|
5222
6480
|
};
|
|
5223
|
-
url: "/mobile/
|
|
6481
|
+
url: "/mobile/routines/{id}/run";
|
|
5224
6482
|
};
|
|
5225
|
-
export type
|
|
6483
|
+
export type MobileRoutineRunErrors = {
|
|
5226
6484
|
/**
|
|
5227
6485
|
* Bad request
|
|
5228
6486
|
*/
|
|
@@ -5232,114 +6490,101 @@ export type MobileGithubSessionCleanupErrors = {
|
|
|
5232
6490
|
*/
|
|
5233
6491
|
404: NotFoundError;
|
|
5234
6492
|
};
|
|
5235
|
-
export type
|
|
5236
|
-
export type
|
|
6493
|
+
export type MobileRoutineRunError = MobileRoutineRunErrors[keyof MobileRoutineRunErrors];
|
|
6494
|
+
export type MobileRoutineRunResponses = {
|
|
5237
6495
|
/**
|
|
5238
|
-
*
|
|
6496
|
+
* Created session
|
|
5239
6497
|
*/
|
|
5240
|
-
200:
|
|
5241
|
-
success: true;
|
|
5242
|
-
};
|
|
6498
|
+
200: Session;
|
|
5243
6499
|
};
|
|
5244
|
-
export type
|
|
5245
|
-
export type
|
|
6500
|
+
export type MobileRoutineRunResponse = MobileRoutineRunResponses[keyof MobileRoutineRunResponses];
|
|
6501
|
+
export type MobileRoutinePauseData = {
|
|
5246
6502
|
body?: never;
|
|
5247
6503
|
path: {
|
|
5248
|
-
|
|
6504
|
+
id: string;
|
|
5249
6505
|
};
|
|
5250
6506
|
query?: {
|
|
5251
6507
|
directory?: string;
|
|
5252
6508
|
workspace?: string;
|
|
5253
6509
|
};
|
|
5254
|
-
url: "/mobile/
|
|
6510
|
+
url: "/mobile/routines/{id}/pause";
|
|
5255
6511
|
};
|
|
5256
|
-
export type
|
|
6512
|
+
export type MobileRoutinePauseErrors = {
|
|
5257
6513
|
/**
|
|
5258
|
-
*
|
|
6514
|
+
* Bad request
|
|
5259
6515
|
*/
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
query?: {
|
|
5266
|
-
directory?: string;
|
|
5267
|
-
workspace?: string;
|
|
5268
|
-
};
|
|
5269
|
-
url: "/mobile/worktree";
|
|
6516
|
+
400: BadRequestError;
|
|
6517
|
+
/**
|
|
6518
|
+
* Not found
|
|
6519
|
+
*/
|
|
6520
|
+
404: NotFoundError;
|
|
5270
6521
|
};
|
|
5271
|
-
export type
|
|
6522
|
+
export type MobileRoutinePauseError = MobileRoutinePauseErrors[keyof MobileRoutinePauseErrors];
|
|
6523
|
+
export type MobileRoutinePauseResponses = {
|
|
5272
6524
|
/**
|
|
5273
|
-
*
|
|
6525
|
+
* Updated routine
|
|
5274
6526
|
*/
|
|
5275
|
-
200:
|
|
5276
|
-
success: true;
|
|
5277
|
-
};
|
|
6527
|
+
200: MobileRoutine;
|
|
5278
6528
|
};
|
|
5279
|
-
export type
|
|
5280
|
-
export type
|
|
5281
|
-
body?:
|
|
5282
|
-
path
|
|
6529
|
+
export type MobileRoutinePauseResponse = MobileRoutinePauseResponses[keyof MobileRoutinePauseResponses];
|
|
6530
|
+
export type MobileRoutineResumeData = {
|
|
6531
|
+
body?: never;
|
|
6532
|
+
path: {
|
|
6533
|
+
id: string;
|
|
6534
|
+
};
|
|
5283
6535
|
query?: {
|
|
5284
6536
|
directory?: string;
|
|
5285
6537
|
workspace?: string;
|
|
5286
6538
|
};
|
|
5287
|
-
url: "/mobile/
|
|
6539
|
+
url: "/mobile/routines/{id}/resume";
|
|
5288
6540
|
};
|
|
5289
|
-
export type
|
|
6541
|
+
export type MobileRoutineResumeErrors = {
|
|
5290
6542
|
/**
|
|
5291
6543
|
* Bad request
|
|
5292
6544
|
*/
|
|
5293
6545
|
400: BadRequestError;
|
|
5294
|
-
};
|
|
5295
|
-
export type MobileWorktreeCreateError = MobileWorktreeCreateErrors[keyof MobileWorktreeCreateErrors];
|
|
5296
|
-
export type MobileWorktreeCreateResponses = {
|
|
5297
6546
|
/**
|
|
5298
|
-
*
|
|
6547
|
+
* Not found
|
|
5299
6548
|
*/
|
|
5300
|
-
|
|
5301
|
-
};
|
|
5302
|
-
export type MobileWorktreeCreateResponse = MobileWorktreeCreateResponses[keyof MobileWorktreeCreateResponses];
|
|
5303
|
-
export type MobileWorktreeResetData = {
|
|
5304
|
-
body?: WorktreeResetInput;
|
|
5305
|
-
path?: never;
|
|
5306
|
-
query?: {
|
|
5307
|
-
directory?: string;
|
|
5308
|
-
workspace?: string;
|
|
5309
|
-
};
|
|
5310
|
-
url: "/mobile/worktree/reset";
|
|
6549
|
+
404: NotFoundError;
|
|
5311
6550
|
};
|
|
5312
|
-
export type
|
|
6551
|
+
export type MobileRoutineResumeError = MobileRoutineResumeErrors[keyof MobileRoutineResumeErrors];
|
|
6552
|
+
export type MobileRoutineResumeResponses = {
|
|
5313
6553
|
/**
|
|
5314
|
-
*
|
|
6554
|
+
* Updated routine
|
|
5315
6555
|
*/
|
|
5316
|
-
200:
|
|
5317
|
-
success: true;
|
|
5318
|
-
};
|
|
6556
|
+
200: MobileRoutine;
|
|
5319
6557
|
};
|
|
5320
|
-
export type
|
|
5321
|
-
export type
|
|
5322
|
-
body?:
|
|
5323
|
-
title: string;
|
|
5324
|
-
};
|
|
6558
|
+
export type MobileRoutineResumeResponse = MobileRoutineResumeResponses[keyof MobileRoutineResumeResponses];
|
|
6559
|
+
export type MobileRoutineTriggerData = {
|
|
6560
|
+
body?: MobileRoutineTriggerInput;
|
|
5325
6561
|
path: {
|
|
5326
|
-
|
|
6562
|
+
token: string;
|
|
5327
6563
|
};
|
|
5328
6564
|
query?: {
|
|
5329
6565
|
directory?: string;
|
|
5330
6566
|
workspace?: string;
|
|
5331
6567
|
};
|
|
5332
|
-
url: "/mobile/
|
|
6568
|
+
url: "/mobile/routines/trigger/{token}";
|
|
5333
6569
|
};
|
|
5334
|
-
export type
|
|
6570
|
+
export type MobileRoutineTriggerErrors = {
|
|
5335
6571
|
/**
|
|
5336
|
-
*
|
|
6572
|
+
* Bad request
|
|
5337
6573
|
*/
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
6574
|
+
400: BadRequestError;
|
|
6575
|
+
/**
|
|
6576
|
+
* Not found
|
|
6577
|
+
*/
|
|
6578
|
+
404: NotFoundError;
|
|
5341
6579
|
};
|
|
5342
|
-
export type
|
|
6580
|
+
export type MobileRoutineTriggerError = MobileRoutineTriggerErrors[keyof MobileRoutineTriggerErrors];
|
|
6581
|
+
export type MobileRoutineTriggerResponses = {
|
|
6582
|
+
/**
|
|
6583
|
+
* Created session
|
|
6584
|
+
*/
|
|
6585
|
+
200: Session;
|
|
6586
|
+
};
|
|
6587
|
+
export type MobileRoutineTriggerResponse = MobileRoutineTriggerResponses[keyof MobileRoutineTriggerResponses];
|
|
5343
6588
|
export type FindTextData = {
|
|
5344
6589
|
body?: never;
|
|
5345
6590
|
path?: never;
|
|
@@ -5444,6 +6689,27 @@ export type FileReadResponses = {
|
|
|
5444
6689
|
200: FileContent;
|
|
5445
6690
|
};
|
|
5446
6691
|
export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
|
|
6692
|
+
export type FileWriteData = {
|
|
6693
|
+
body?: {
|
|
6694
|
+
path: string;
|
|
6695
|
+
content: string;
|
|
6696
|
+
};
|
|
6697
|
+
path?: never;
|
|
6698
|
+
query?: {
|
|
6699
|
+
directory?: string;
|
|
6700
|
+
workspace?: string;
|
|
6701
|
+
};
|
|
6702
|
+
url: "/file/content";
|
|
6703
|
+
};
|
|
6704
|
+
export type FileWriteResponses = {
|
|
6705
|
+
/**
|
|
6706
|
+
* Write result
|
|
6707
|
+
*/
|
|
6708
|
+
200: {
|
|
6709
|
+
success: boolean;
|
|
6710
|
+
};
|
|
6711
|
+
};
|
|
6712
|
+
export type FileWriteResponse = FileWriteResponses[keyof FileWriteResponses];
|
|
5447
6713
|
export type FileStatusData = {
|
|
5448
6714
|
body?: never;
|
|
5449
6715
|
path?: never;
|
|
@@ -5767,6 +7033,35 @@ export type McpDisconnectResponses = {
|
|
|
5767
7033
|
200: boolean;
|
|
5768
7034
|
};
|
|
5769
7035
|
export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
|
|
7036
|
+
export type McpToggleData = {
|
|
7037
|
+
body?: {
|
|
7038
|
+
enabled: boolean;
|
|
7039
|
+
};
|
|
7040
|
+
path: {
|
|
7041
|
+
name: string;
|
|
7042
|
+
};
|
|
7043
|
+
query?: {
|
|
7044
|
+
directory?: string;
|
|
7045
|
+
workspace?: string;
|
|
7046
|
+
};
|
|
7047
|
+
url: "/mcp/{name}/toggle";
|
|
7048
|
+
};
|
|
7049
|
+
export type McpToggleErrors = {
|
|
7050
|
+
/**
|
|
7051
|
+
* Not found
|
|
7052
|
+
*/
|
|
7053
|
+
404: NotFoundError;
|
|
7054
|
+
};
|
|
7055
|
+
export type McpToggleError = McpToggleErrors[keyof McpToggleErrors];
|
|
7056
|
+
export type McpToggleResponses = {
|
|
7057
|
+
/**
|
|
7058
|
+
* MCP server toggled successfully
|
|
7059
|
+
*/
|
|
7060
|
+
200: {
|
|
7061
|
+
[key: string]: McpStatus;
|
|
7062
|
+
};
|
|
7063
|
+
};
|
|
7064
|
+
export type McpToggleResponse = McpToggleResponses[keyof McpToggleResponses];
|
|
5770
7065
|
export type TuiAppendPromptData = {
|
|
5771
7066
|
body?: {
|
|
5772
7067
|
text: string;
|
|
@@ -6027,6 +7322,94 @@ export type TuiControlResponseResponses = {
|
|
|
6027
7322
|
200: boolean;
|
|
6028
7323
|
};
|
|
6029
7324
|
export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
|
|
7325
|
+
export type AnalyticsGlobalData = {
|
|
7326
|
+
body?: never;
|
|
7327
|
+
path?: never;
|
|
7328
|
+
query?: {
|
|
7329
|
+
directory?: string;
|
|
7330
|
+
workspace?: string;
|
|
7331
|
+
};
|
|
7332
|
+
url: "/analytics/global";
|
|
7333
|
+
};
|
|
7334
|
+
export type AnalyticsGlobalResponses = {
|
|
7335
|
+
/**
|
|
7336
|
+
* Global analytics
|
|
7337
|
+
*/
|
|
7338
|
+
200: unknown;
|
|
7339
|
+
};
|
|
7340
|
+
export type AnalyticsDailyData = {
|
|
7341
|
+
body?: never;
|
|
7342
|
+
path?: never;
|
|
7343
|
+
query?: {
|
|
7344
|
+
directory?: string;
|
|
7345
|
+
workspace?: string;
|
|
7346
|
+
from?: string;
|
|
7347
|
+
to?: string;
|
|
7348
|
+
days?: string;
|
|
7349
|
+
};
|
|
7350
|
+
url: "/analytics/daily";
|
|
7351
|
+
};
|
|
7352
|
+
export type AnalyticsDailyResponses = {
|
|
7353
|
+
/**
|
|
7354
|
+
* Daily analytics
|
|
7355
|
+
*/
|
|
7356
|
+
200: Array<unknown>;
|
|
7357
|
+
};
|
|
7358
|
+
export type AnalyticsDailyResponse = AnalyticsDailyResponses[keyof AnalyticsDailyResponses];
|
|
7359
|
+
export type AnalyticsSessionData = {
|
|
7360
|
+
body?: never;
|
|
7361
|
+
path: {
|
|
7362
|
+
sessionID: string;
|
|
7363
|
+
};
|
|
7364
|
+
query?: {
|
|
7365
|
+
directory?: string;
|
|
7366
|
+
workspace?: string;
|
|
7367
|
+
};
|
|
7368
|
+
url: "/analytics/session/{sessionID}";
|
|
7369
|
+
};
|
|
7370
|
+
export type AnalyticsSessionErrors = {
|
|
7371
|
+
/**
|
|
7372
|
+
* Session not found
|
|
7373
|
+
*/
|
|
7374
|
+
404: unknown;
|
|
7375
|
+
};
|
|
7376
|
+
export type AnalyticsSessionResponses = {
|
|
7377
|
+
/**
|
|
7378
|
+
* Session analytics
|
|
7379
|
+
*/
|
|
7380
|
+
200: unknown;
|
|
7381
|
+
};
|
|
7382
|
+
export type AnalyticsSessionsData = {
|
|
7383
|
+
body?: never;
|
|
7384
|
+
path?: never;
|
|
7385
|
+
query?: {
|
|
7386
|
+
directory?: string;
|
|
7387
|
+
workspace?: string;
|
|
7388
|
+
};
|
|
7389
|
+
url: "/analytics/sessions";
|
|
7390
|
+
};
|
|
7391
|
+
export type AnalyticsSessionsResponses = {
|
|
7392
|
+
/**
|
|
7393
|
+
* Session analytics list
|
|
7394
|
+
*/
|
|
7395
|
+
200: Array<unknown>;
|
|
7396
|
+
};
|
|
7397
|
+
export type AnalyticsSessionsResponse = AnalyticsSessionsResponses[keyof AnalyticsSessionsResponses];
|
|
7398
|
+
export type AnalyticsLeaderboardData = {
|
|
7399
|
+
body?: never;
|
|
7400
|
+
path?: never;
|
|
7401
|
+
query?: {
|
|
7402
|
+
directory?: string;
|
|
7403
|
+
workspace?: string;
|
|
7404
|
+
};
|
|
7405
|
+
url: "/analytics/leaderboard";
|
|
7406
|
+
};
|
|
7407
|
+
export type AnalyticsLeaderboardResponses = {
|
|
7408
|
+
/**
|
|
7409
|
+
* Leaderboard data
|
|
7410
|
+
*/
|
|
7411
|
+
200: unknown;
|
|
7412
|
+
};
|
|
6030
7413
|
export type InstanceDisposeData = {
|
|
6031
7414
|
body?: never;
|
|
6032
7415
|
path?: never;
|
|
@@ -6172,6 +7555,86 @@ export type AppSkillsResponses = {
|
|
|
6172
7555
|
}>;
|
|
6173
7556
|
};
|
|
6174
7557
|
export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
|
|
7558
|
+
export type AppSkillCreateData = {
|
|
7559
|
+
body?: {
|
|
7560
|
+
/**
|
|
7561
|
+
* Skill name
|
|
7562
|
+
*/
|
|
7563
|
+
name: string;
|
|
7564
|
+
/**
|
|
7565
|
+
* Skill description
|
|
7566
|
+
*/
|
|
7567
|
+
description: string;
|
|
7568
|
+
/**
|
|
7569
|
+
* Optional category
|
|
7570
|
+
*/
|
|
7571
|
+
category?: string;
|
|
7572
|
+
/**
|
|
7573
|
+
* Optional tags
|
|
7574
|
+
*/
|
|
7575
|
+
tags?: Array<string>;
|
|
7576
|
+
/**
|
|
7577
|
+
* Optional markdown content
|
|
7578
|
+
*/
|
|
7579
|
+
content?: string;
|
|
7580
|
+
/**
|
|
7581
|
+
* Where to create (default: workspace)
|
|
7582
|
+
*/
|
|
7583
|
+
scope?: "workspace" | "global";
|
|
7584
|
+
};
|
|
7585
|
+
path?: never;
|
|
7586
|
+
query?: {
|
|
7587
|
+
directory?: string;
|
|
7588
|
+
workspace?: string;
|
|
7589
|
+
};
|
|
7590
|
+
url: "/skill";
|
|
7591
|
+
};
|
|
7592
|
+
export type AppSkillCreateErrors = {
|
|
7593
|
+
/**
|
|
7594
|
+
* Bad request
|
|
7595
|
+
*/
|
|
7596
|
+
400: BadRequestError;
|
|
7597
|
+
};
|
|
7598
|
+
export type AppSkillCreateError = AppSkillCreateErrors[keyof AppSkillCreateErrors];
|
|
7599
|
+
export type AppSkillCreateResponses = {
|
|
7600
|
+
/**
|
|
7601
|
+
* Created skill
|
|
7602
|
+
*/
|
|
7603
|
+
200: {
|
|
7604
|
+
name: string;
|
|
7605
|
+
description: string;
|
|
7606
|
+
location: string;
|
|
7607
|
+
category?: string;
|
|
7608
|
+
tags?: Array<string>;
|
|
7609
|
+
version?: string;
|
|
7610
|
+
};
|
|
7611
|
+
};
|
|
7612
|
+
export type AppSkillCreateResponse = AppSkillCreateResponses[keyof AppSkillCreateResponses];
|
|
7613
|
+
export type AppSkillDeleteData = {
|
|
7614
|
+
body?: never;
|
|
7615
|
+
path: {
|
|
7616
|
+
name: string;
|
|
7617
|
+
};
|
|
7618
|
+
query?: {
|
|
7619
|
+
directory?: string;
|
|
7620
|
+
workspace?: string;
|
|
7621
|
+
};
|
|
7622
|
+
url: "/skill/{name}";
|
|
7623
|
+
};
|
|
7624
|
+
export type AppSkillDeleteErrors = {
|
|
7625
|
+
/**
|
|
7626
|
+
* Bad request
|
|
7627
|
+
*/
|
|
7628
|
+
400: BadRequestError;
|
|
7629
|
+
};
|
|
7630
|
+
export type AppSkillDeleteError = AppSkillDeleteErrors[keyof AppSkillDeleteErrors];
|
|
7631
|
+
export type AppSkillDeleteResponses = {
|
|
7632
|
+
/**
|
|
7633
|
+
* Deleted
|
|
7634
|
+
*/
|
|
7635
|
+
200: boolean;
|
|
7636
|
+
};
|
|
7637
|
+
export type AppSkillDeleteResponse = AppSkillDeleteResponses[keyof AppSkillDeleteResponses];
|
|
6175
7638
|
export type LspStatusData = {
|
|
6176
7639
|
body?: never;
|
|
6177
7640
|
path?: never;
|