@compozy/client 0.5.3 → 0.5.5
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/cjs/generated/sdk/sdk.gen.js +178 -0
- package/dist/cjs/generated/sdk/sdk.gen.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/generated/sdk/sdk.gen.js +178 -0
- package/dist/esm/generated/sdk/sdk.gen.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/openapi/compozy-openapi.d.ts +2807 -660
- package/dist/types/generated/sdk/index.d.ts +1 -1
- package/dist/types/generated/sdk/index.d.ts.map +1 -1
- package/dist/types/generated/sdk/sdk.gen.d.ts +69 -1
- package/dist/types/generated/sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated/sdk/types.gen.d.ts +1706 -266
- package/dist/types/generated/sdk/types.gen.d.ts.map +1 -1
- package/dist/types/generated/sse/types.gen.d.ts +2 -0
- package/dist/types/generated/sse/types.gen.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -39,6 +39,12 @@ export type Action = {
|
|
|
39
39
|
url?: string;
|
|
40
40
|
view?: string;
|
|
41
41
|
};
|
|
42
|
+
export type ActionDecl = {
|
|
43
|
+
auto_accept: boolean;
|
|
44
|
+
id: string;
|
|
45
|
+
instructions: string;
|
|
46
|
+
title: string;
|
|
47
|
+
};
|
|
42
48
|
export type ActivityCost = {
|
|
43
49
|
scope: string;
|
|
44
50
|
tokens: number;
|
|
@@ -215,8 +221,12 @@ export type AgentInstanceCheckInPayload = {
|
|
|
215
221
|
created_at: string;
|
|
216
222
|
detail?: string;
|
|
217
223
|
id: string;
|
|
224
|
+
occurrence_id: string;
|
|
225
|
+
proposals: CheckInProposalSummary;
|
|
218
226
|
reason: string;
|
|
219
227
|
result: string;
|
|
228
|
+
tool_calls: Array<CheckInToolCall>;
|
|
229
|
+
tools_status: string;
|
|
220
230
|
};
|
|
221
231
|
export type AgentInstanceCheckInsResponse = {
|
|
222
232
|
check_ins: Array<AgentInstanceCheckInPayload>;
|
|
@@ -256,6 +266,8 @@ export type AgentInstanceOccurrenceResponse = {
|
|
|
256
266
|
export type AgentInstancePayload = {
|
|
257
267
|
activity: string;
|
|
258
268
|
agent_name: string;
|
|
269
|
+
attention_dismissible: boolean;
|
|
270
|
+
authority_status: string;
|
|
259
271
|
checks_enabled: boolean;
|
|
260
272
|
created: boolean;
|
|
261
273
|
created_at: string;
|
|
@@ -292,12 +304,25 @@ export type AgentInstancePeer = {
|
|
|
292
304
|
scope: string;
|
|
293
305
|
state: string;
|
|
294
306
|
};
|
|
307
|
+
export type AgentInstancePickRequest = {
|
|
308
|
+
proposal: number | null;
|
|
309
|
+
};
|
|
310
|
+
export type AgentInstancePickResponse = {
|
|
311
|
+
pick: Pick;
|
|
312
|
+
};
|
|
295
313
|
export type AgentInstanceProposal = {
|
|
314
|
+
action?: AgentInstanceProposalAction | null;
|
|
315
|
+
auto_accept_status: "picked" | "limit" | "queue_full" | "unapproved" | "no_main" | "inactive" | "none";
|
|
296
316
|
body: string;
|
|
297
317
|
item_keys: Array<string>;
|
|
298
318
|
sources?: Array<AgentInstanceProposalSource>;
|
|
299
319
|
title: string;
|
|
300
320
|
};
|
|
321
|
+
export type AgentInstanceProposalAction = {
|
|
322
|
+
auto_accept: boolean;
|
|
323
|
+
id: string;
|
|
324
|
+
title: string;
|
|
325
|
+
};
|
|
301
326
|
export type AgentInstanceProposalSource = {
|
|
302
327
|
event_id: string;
|
|
303
328
|
item_key?: string;
|
|
@@ -314,9 +339,13 @@ export type AgentInstanceReportPayload = {
|
|
|
314
339
|
cause?: string;
|
|
315
340
|
created_at: string;
|
|
316
341
|
detail?: string;
|
|
342
|
+
diagnostics?: Array<string>;
|
|
317
343
|
expired_by?: string;
|
|
318
344
|
id: string;
|
|
319
345
|
kind: string;
|
|
346
|
+
occurrence_id?: string;
|
|
347
|
+
picks: Array<Pick>;
|
|
348
|
+
picks_tracked: boolean;
|
|
320
349
|
proposals?: Array<AgentInstanceProposal>;
|
|
321
350
|
reason?: string;
|
|
322
351
|
resource?: string;
|
|
@@ -326,6 +355,7 @@ export type AgentInstanceReportPayload = {
|
|
|
326
355
|
source?: AgentInstanceReportSource | null;
|
|
327
356
|
state: string;
|
|
328
357
|
tool?: string;
|
|
358
|
+
tool_calls: CheckInToolSummary;
|
|
329
359
|
};
|
|
330
360
|
export type AgentInstanceReportSource = {
|
|
331
361
|
event: string;
|
|
@@ -368,6 +398,7 @@ export type AgentMCPServerInput = {
|
|
|
368
398
|
[key: string]: string;
|
|
369
399
|
};
|
|
370
400
|
name: string;
|
|
401
|
+
read_only_tools?: Array<string>;
|
|
371
402
|
reference?: boolean;
|
|
372
403
|
secret_env?: {
|
|
373
404
|
[key: string]: string;
|
|
@@ -387,6 +418,7 @@ export type AgentMCPServerJSON = {
|
|
|
387
418
|
[key: string]: string;
|
|
388
419
|
};
|
|
389
420
|
name: string;
|
|
421
|
+
read_only_tools?: Array<string>;
|
|
390
422
|
reference?: boolean;
|
|
391
423
|
secret_env?: {
|
|
392
424
|
[key: string]: string;
|
|
@@ -840,6 +872,7 @@ export type AttentionNotificationPayload = {
|
|
|
840
872
|
finished: boolean;
|
|
841
873
|
generation: number;
|
|
842
874
|
id: string;
|
|
875
|
+
instance_id?: string;
|
|
843
876
|
item_index: number;
|
|
844
877
|
kind: string;
|
|
845
878
|
loop_name?: string;
|
|
@@ -848,6 +881,7 @@ export type AttentionNotificationPayload = {
|
|
|
848
881
|
redacted: boolean;
|
|
849
882
|
request_kind?: string;
|
|
850
883
|
run_id?: string;
|
|
884
|
+
session_type?: string;
|
|
851
885
|
source_id: string;
|
|
852
886
|
terminal_id?: string;
|
|
853
887
|
title: string;
|
|
@@ -1026,6 +1060,28 @@ export type CatalogMeta = {
|
|
|
1026
1060
|
keywords?: Array<string>;
|
|
1027
1061
|
use_when?: string;
|
|
1028
1062
|
};
|
|
1063
|
+
export type ChangeBasePayload = {
|
|
1064
|
+
merge_base_sha: string;
|
|
1065
|
+
ref: string;
|
|
1066
|
+
source: string;
|
|
1067
|
+
};
|
|
1068
|
+
export type ChangeBaseRefPayload = {
|
|
1069
|
+
is_default?: boolean;
|
|
1070
|
+
kind: string;
|
|
1071
|
+
ref: string;
|
|
1072
|
+
source?: string;
|
|
1073
|
+
};
|
|
1074
|
+
export type ChangeHeadPayload = {
|
|
1075
|
+
branch: string;
|
|
1076
|
+
sha: string;
|
|
1077
|
+
};
|
|
1078
|
+
export type ChangePatchPayload = {
|
|
1079
|
+
fingerprint: string;
|
|
1080
|
+
patch?: string;
|
|
1081
|
+
path: string;
|
|
1082
|
+
sensitive?: boolean;
|
|
1083
|
+
too_large?: boolean;
|
|
1084
|
+
};
|
|
1029
1085
|
export type ChangeSet = {
|
|
1030
1086
|
client_ids?: Array<string>;
|
|
1031
1087
|
desktop_ids?: Array<string>;
|
|
@@ -1035,6 +1091,45 @@ export type ChangeSet = {
|
|
|
1035
1091
|
stack_ungrouped?: Array<string>;
|
|
1036
1092
|
window_ids?: Array<string>;
|
|
1037
1093
|
};
|
|
1094
|
+
export type ChangeSidePayload = {
|
|
1095
|
+
sensitive?: boolean;
|
|
1096
|
+
text?: string | null;
|
|
1097
|
+
};
|
|
1098
|
+
export type ChangeTotalsPayload = {
|
|
1099
|
+
additions: number;
|
|
1100
|
+
deletions: number;
|
|
1101
|
+
files: number;
|
|
1102
|
+
partial?: boolean;
|
|
1103
|
+
};
|
|
1104
|
+
export type CheckInProposalSummary = {
|
|
1105
|
+
auto_accepted: number;
|
|
1106
|
+
waiting: number;
|
|
1107
|
+
};
|
|
1108
|
+
export type CheckInToolCall = {
|
|
1109
|
+
access: string;
|
|
1110
|
+
args_preview?: string;
|
|
1111
|
+
backend: string;
|
|
1112
|
+
decision: string;
|
|
1113
|
+
deny_reason?: string;
|
|
1114
|
+
duration_ms: number;
|
|
1115
|
+
effect: string;
|
|
1116
|
+
error_code?: string;
|
|
1117
|
+
mcp_server?: string;
|
|
1118
|
+
outcome: string;
|
|
1119
|
+
seq: number;
|
|
1120
|
+
tool_id: string;
|
|
1121
|
+
};
|
|
1122
|
+
export type CheckInToolSummary = {
|
|
1123
|
+
denied: number;
|
|
1124
|
+
total: number;
|
|
1125
|
+
writes_done: number;
|
|
1126
|
+
writes_maybe: number;
|
|
1127
|
+
};
|
|
1128
|
+
export type CheckInsPolicy = {
|
|
1129
|
+
allow_writes?: Array<string>;
|
|
1130
|
+
max_tool_calls?: number | null;
|
|
1131
|
+
max_write_calls?: number | null;
|
|
1132
|
+
};
|
|
1038
1133
|
export type Chip = {
|
|
1039
1134
|
count?: number | null;
|
|
1040
1135
|
fallback?: string;
|
|
@@ -1867,6 +1962,10 @@ export type ExtensionDeclaredProfilePayload = {
|
|
|
1867
1962
|
name: string;
|
|
1868
1963
|
needs_setup: boolean;
|
|
1869
1964
|
};
|
|
1965
|
+
export type ExtensionEnableError = {
|
|
1966
|
+
code: string;
|
|
1967
|
+
error: string;
|
|
1968
|
+
};
|
|
1870
1969
|
export type ExtensionEnablePreviewPayload = {
|
|
1871
1970
|
agent_conflicts: Array<string>;
|
|
1872
1971
|
automation_starting: Array<string>;
|
|
@@ -2104,6 +2203,103 @@ export type FanoutRollup = {
|
|
|
2104
2203
|
node_id: string;
|
|
2105
2204
|
total: number;
|
|
2106
2205
|
};
|
|
2206
|
+
export type FileChangePayload = {
|
|
2207
|
+
additions: number;
|
|
2208
|
+
binary?: boolean;
|
|
2209
|
+
deletions: number;
|
|
2210
|
+
fingerprint: string;
|
|
2211
|
+
generated?: boolean;
|
|
2212
|
+
old_path?: string;
|
|
2213
|
+
path: string;
|
|
2214
|
+
sensitive?: boolean;
|
|
2215
|
+
status: string;
|
|
2216
|
+
};
|
|
2217
|
+
export type FileContentResponse = {
|
|
2218
|
+
image_base64?: string;
|
|
2219
|
+
image_mime?: string;
|
|
2220
|
+
kind: string;
|
|
2221
|
+
language?: string;
|
|
2222
|
+
path: string;
|
|
2223
|
+
revision?: string;
|
|
2224
|
+
root: FileRootPayload;
|
|
2225
|
+
sensitive?: boolean;
|
|
2226
|
+
size: number;
|
|
2227
|
+
text?: string | null;
|
|
2228
|
+
truncated: boolean;
|
|
2229
|
+
};
|
|
2230
|
+
export type FileEntriesResponse = {
|
|
2231
|
+
entries: Array<FileEntryPayload>;
|
|
2232
|
+
path: string;
|
|
2233
|
+
root: FileRootPayload;
|
|
2234
|
+
status_unavailable?: boolean;
|
|
2235
|
+
truncated: boolean;
|
|
2236
|
+
};
|
|
2237
|
+
export type FileEntryPayload = {
|
|
2238
|
+
contains_changes?: boolean;
|
|
2239
|
+
git_status?: string;
|
|
2240
|
+
ignored?: boolean;
|
|
2241
|
+
kind: string;
|
|
2242
|
+
name: string;
|
|
2243
|
+
path: string;
|
|
2244
|
+
sensitive?: boolean;
|
|
2245
|
+
size?: number;
|
|
2246
|
+
symlink?: boolean;
|
|
2247
|
+
};
|
|
2248
|
+
export type FileFindMatch = {
|
|
2249
|
+
kind: string;
|
|
2250
|
+
match_ranges: Array<Array<number>>;
|
|
2251
|
+
path: string;
|
|
2252
|
+
score: number;
|
|
2253
|
+
sensitive?: boolean;
|
|
2254
|
+
};
|
|
2255
|
+
export type FileFindResponse = {
|
|
2256
|
+
index_truncated: boolean;
|
|
2257
|
+
indexed_files: number;
|
|
2258
|
+
query: string;
|
|
2259
|
+
results: Array<FileFindMatch>;
|
|
2260
|
+
root: FileRootPayload;
|
|
2261
|
+
};
|
|
2262
|
+
export type FileRootPayload = {
|
|
2263
|
+
branch?: string;
|
|
2264
|
+
kind: string;
|
|
2265
|
+
name: string;
|
|
2266
|
+
workspace_id: string;
|
|
2267
|
+
worktree_id?: string;
|
|
2268
|
+
};
|
|
2269
|
+
export type FileSearchFile = {
|
|
2270
|
+
matches: Array<FileSearchMatch>;
|
|
2271
|
+
path: string;
|
|
2272
|
+
truncated_matches?: boolean;
|
|
2273
|
+
};
|
|
2274
|
+
export type FileSearchMatch = {
|
|
2275
|
+
column: number;
|
|
2276
|
+
line: number;
|
|
2277
|
+
ranges: Array<Array<number>>;
|
|
2278
|
+
text: string;
|
|
2279
|
+
text_offset: number;
|
|
2280
|
+
};
|
|
2281
|
+
export type FileSearchQuery = {
|
|
2282
|
+
case_sensitive: boolean;
|
|
2283
|
+
exclude: Array<string>;
|
|
2284
|
+
include: Array<string>;
|
|
2285
|
+
pattern: string;
|
|
2286
|
+
regex: boolean;
|
|
2287
|
+
whole_word: boolean;
|
|
2288
|
+
};
|
|
2289
|
+
export type FileSearchResponse = {
|
|
2290
|
+
engine: string;
|
|
2291
|
+
files: Array<FileSearchFile>;
|
|
2292
|
+
query: FileSearchQuery;
|
|
2293
|
+
root: FileRootPayload;
|
|
2294
|
+
sensitive_excluded: number;
|
|
2295
|
+
timed_out: boolean;
|
|
2296
|
+
totals: FileSearchTotals;
|
|
2297
|
+
truncated: boolean;
|
|
2298
|
+
};
|
|
2299
|
+
export type FileSearchTotals = {
|
|
2300
|
+
files: number;
|
|
2301
|
+
matches: number;
|
|
2302
|
+
};
|
|
2107
2303
|
export type FireLimitConfig = {
|
|
2108
2304
|
max: number;
|
|
2109
2305
|
window: string;
|
|
@@ -2735,6 +2931,15 @@ export type HeartbeatActorPayload = {
|
|
|
2735
2931
|
kind: "user" | "agent" | "extension" | "system";
|
|
2736
2932
|
ref?: string;
|
|
2737
2933
|
};
|
|
2934
|
+
export type HeartbeatAuthorityPayload = {
|
|
2935
|
+
actions: Array<ActionDecl>;
|
|
2936
|
+
check_ins: CheckInsPolicy;
|
|
2937
|
+
digest: string;
|
|
2938
|
+
read_only_tools?: {
|
|
2939
|
+
[key: string]: Array<string>;
|
|
2940
|
+
};
|
|
2941
|
+
status: string;
|
|
2942
|
+
};
|
|
2738
2943
|
export type HeartbeatConfigProvenancePayload = {
|
|
2739
2944
|
digest: string;
|
|
2740
2945
|
subset: HeartbeatConfigSubsetPayload;
|
|
@@ -2762,6 +2967,8 @@ export type HeartbeatDeleteByPathRequest = {
|
|
|
2762
2967
|
workspace_id?: string;
|
|
2763
2968
|
};
|
|
2764
2969
|
export type HeartbeatFrontmatterPayload = {
|
|
2970
|
+
actions: Array<ActionDecl>;
|
|
2971
|
+
check_ins: CheckInsPolicy;
|
|
2765
2972
|
context: HeartbeatContextProjectionPayload;
|
|
2766
2973
|
enabled: boolean;
|
|
2767
2974
|
preferences: HeartbeatFrontmatterPreferencesPayload;
|
|
@@ -2782,8 +2989,10 @@ export type HeartbeatMutationResponse = {
|
|
|
2782
2989
|
revision: HeartbeatRevisionPayload;
|
|
2783
2990
|
};
|
|
2784
2991
|
export type HeartbeatPolicyPayload = {
|
|
2992
|
+
actions: Array<ActionDecl>;
|
|
2785
2993
|
active: boolean;
|
|
2786
2994
|
agent_name?: string;
|
|
2995
|
+
authority: HeartbeatAuthorityPayload;
|
|
2787
2996
|
config_digest?: string;
|
|
2788
2997
|
config_provenance: HeartbeatConfigProvenancePayload;
|
|
2789
2998
|
created_at?: string | null;
|
|
@@ -2824,6 +3033,7 @@ export type HeartbeatPromptContributionPayload = {
|
|
|
2824
3033
|
truncated: boolean;
|
|
2825
3034
|
};
|
|
2826
3035
|
export type HeartbeatPutByPathRequest = {
|
|
3036
|
+
approve_authority_sha256?: string;
|
|
2827
3037
|
body: string;
|
|
2828
3038
|
expected_digest: string;
|
|
2829
3039
|
idempotency_key?: string;
|
|
@@ -2923,7 +3133,7 @@ export type HeartbeatWakeByPathRequest = {
|
|
|
2923
3133
|
dry_run?: boolean;
|
|
2924
3134
|
idempotency_key?: string;
|
|
2925
3135
|
session_id: string;
|
|
2926
|
-
source: "scheduler" | "manual" | "harness_reentry";
|
|
3136
|
+
source: "timer" | "instance_check" | "scheduler" | "manual" | "harness_reentry";
|
|
2927
3137
|
workspace_id?: string;
|
|
2928
3138
|
};
|
|
2929
3139
|
export type HeartbeatWakeDecisionPayload = {
|
|
@@ -2931,8 +3141,8 @@ export type HeartbeatWakeDecisionPayload = {
|
|
|
2931
3141
|
diagnostics?: Array<AuthoredContextDiagnosticPayload>;
|
|
2932
3142
|
policy_digest?: string;
|
|
2933
3143
|
policy_snapshot_id?: string;
|
|
2934
|
-
reason: "source_poll_in_flight" | "wake_sent" | "heartbeat_disabled" | "heartbeat_invalid" | "heartbeat_no_policy" | "heartbeat_rate_limited" | "heartbeat_no_eligible_session" | "cooldown_active" | "quiet_window" | "session_not_found" | "session_unhealthy" | "session_not_attachable" | "session_prompt_active" | "session_prompt_active_race" | "synthetic_prompt_failed" | "wake_coalesced";
|
|
2935
|
-
result: "sent" | "skipped" | "coalesced" | "rate_limited" | "failed";
|
|
3144
|
+
reason: "quiet" | "reported" | "cancelled" | "digest_empty" | "digest_unchanged" | "policy_disabled" | "definition_not_always_on" | "definition_missing" | "no_slot" | "hook_cancelled" | "duplicate_suppressed" | "triage_unsupported" | "triage_output_invalid" | "triage_timeout" | "triage_interrupted" | "triage_config_unavailable" | "triage_failed" | "source_poll_in_flight" | "wake_sent" | "heartbeat_disabled" | "heartbeat_invalid" | "heartbeat_no_policy" | "heartbeat_rate_limited" | "heartbeat_no_eligible_session" | "cooldown_active" | "quiet_window" | "session_not_found" | "session_unhealthy" | "session_not_attachable" | "session_prompt_active" | "session_prompt_active_race" | "synthetic_prompt_failed" | "wake_coalesced";
|
|
3145
|
+
result: "quiet" | "cancelled" | "reported" | "sent" | "skipped" | "coalesced" | "rate_limited" | "failed";
|
|
2936
3146
|
synthetic_prompt_id?: string;
|
|
2937
3147
|
wake_event_id?: string;
|
|
2938
3148
|
};
|
|
@@ -2943,10 +3153,10 @@ export type HeartbeatWakeEventPayload = {
|
|
|
2943
3153
|
expires_at: string;
|
|
2944
3154
|
id: string;
|
|
2945
3155
|
policy_snapshot_id?: string;
|
|
2946
|
-
reason: "source_poll_in_flight" | "wake_sent" | "heartbeat_disabled" | "heartbeat_invalid" | "heartbeat_no_policy" | "heartbeat_rate_limited" | "heartbeat_no_eligible_session" | "cooldown_active" | "quiet_window" | "session_not_found" | "session_unhealthy" | "session_not_attachable" | "session_prompt_active" | "session_prompt_active_race" | "synthetic_prompt_failed" | "wake_coalesced";
|
|
2947
|
-
result: "sent" | "skipped" | "coalesced" | "rate_limited" | "failed";
|
|
3156
|
+
reason: "quiet" | "reported" | "cancelled" | "digest_empty" | "digest_unchanged" | "policy_disabled" | "definition_not_always_on" | "definition_missing" | "no_slot" | "hook_cancelled" | "duplicate_suppressed" | "triage_unsupported" | "triage_output_invalid" | "triage_timeout" | "triage_interrupted" | "triage_config_unavailable" | "triage_failed" | "source_poll_in_flight" | "wake_sent" | "heartbeat_disabled" | "heartbeat_invalid" | "heartbeat_no_policy" | "heartbeat_rate_limited" | "heartbeat_no_eligible_session" | "cooldown_active" | "quiet_window" | "session_not_found" | "session_unhealthy" | "session_not_attachable" | "session_prompt_active" | "session_prompt_active_race" | "synthetic_prompt_failed" | "wake_coalesced";
|
|
3157
|
+
result: "quiet" | "cancelled" | "reported" | "sent" | "skipped" | "coalesced" | "rate_limited" | "failed";
|
|
2948
3158
|
session_id?: string;
|
|
2949
|
-
source: "scheduler" | "manual" | "harness_reentry";
|
|
3159
|
+
source: "timer" | "instance_check" | "scheduler" | "manual" | "harness_reentry";
|
|
2950
3160
|
synthetic_prompt_id?: string;
|
|
2951
3161
|
workspace_id?: string;
|
|
2952
3162
|
};
|
|
@@ -2956,8 +3166,8 @@ export type HeartbeatWakeResponse = {
|
|
|
2956
3166
|
export type HeartbeatWakeStatePayload = {
|
|
2957
3167
|
agent_name?: string;
|
|
2958
3168
|
coalesced_count: number;
|
|
2959
|
-
last_reason?: "source_poll_in_flight" | "wake_sent" | "heartbeat_disabled" | "heartbeat_invalid" | "heartbeat_no_policy" | "heartbeat_rate_limited" | "heartbeat_no_eligible_session" | "cooldown_active" | "quiet_window" | "session_not_found" | "session_unhealthy" | "session_not_attachable" | "session_prompt_active" | "session_prompt_active_race" | "synthetic_prompt_failed" | "wake_coalesced";
|
|
2960
|
-
last_result: "sent" | "skipped" | "coalesced" | "rate_limited" | "failed";
|
|
3169
|
+
last_reason?: "quiet" | "reported" | "cancelled" | "digest_empty" | "digest_unchanged" | "policy_disabled" | "definition_not_always_on" | "definition_missing" | "no_slot" | "hook_cancelled" | "duplicate_suppressed" | "triage_unsupported" | "triage_output_invalid" | "triage_timeout" | "triage_interrupted" | "triage_config_unavailable" | "triage_failed" | "source_poll_in_flight" | "wake_sent" | "heartbeat_disabled" | "heartbeat_invalid" | "heartbeat_no_policy" | "heartbeat_rate_limited" | "heartbeat_no_eligible_session" | "cooldown_active" | "quiet_window" | "session_not_found" | "session_unhealthy" | "session_not_attachable" | "session_prompt_active" | "session_prompt_active_race" | "synthetic_prompt_failed" | "wake_coalesced";
|
|
3170
|
+
last_result: "quiet" | "cancelled" | "reported" | "sent" | "skipped" | "coalesced" | "rate_limited" | "failed";
|
|
2961
3171
|
last_wake_at?: string | null;
|
|
2962
3172
|
next_allowed_at?: string | null;
|
|
2963
3173
|
policy_snapshot_id?: string;
|
|
@@ -3049,6 +3259,10 @@ export type InstallExtensionRequest = {
|
|
|
3049
3259
|
allow_unverified?: boolean;
|
|
3050
3260
|
asset?: string;
|
|
3051
3261
|
confirm_gateway_digest?: string;
|
|
3262
|
+
/**
|
|
3263
|
+
* Enable after installation under the same operation lock. Activation failure returns 201 with enable_error and retains the installed package and inputs.
|
|
3264
|
+
*/
|
|
3265
|
+
enable?: boolean;
|
|
3052
3266
|
expected_digest?: string;
|
|
3053
3267
|
inputs?: {
|
|
3054
3268
|
[key: string]: Value;
|
|
@@ -3072,6 +3286,10 @@ export type InstallExtensionRequest = {
|
|
|
3072
3286
|
*/
|
|
3073
3287
|
workspace_id?: string;
|
|
3074
3288
|
};
|
|
3289
|
+
export type InstallExtensionResponse = {
|
|
3290
|
+
enable_error?: ExtensionEnableError | null;
|
|
3291
|
+
extension: ExtensionPayload;
|
|
3292
|
+
};
|
|
3075
3293
|
export type JobPayload = {
|
|
3076
3294
|
agent_name: string;
|
|
3077
3295
|
created_at: string;
|
|
@@ -3931,6 +4149,11 @@ export type ManagedExtensionUpdatePayload = {
|
|
|
3931
4149
|
status: string;
|
|
3932
4150
|
warnings?: Array<DiagnosticItem>;
|
|
3933
4151
|
};
|
|
4152
|
+
export type MarketplaceCategoryCount = {
|
|
4153
|
+
count: number;
|
|
4154
|
+
id: string;
|
|
4155
|
+
label: string;
|
|
4156
|
+
};
|
|
3934
4157
|
export type MarketplaceCursorStalePayload = {
|
|
3935
4158
|
code: string;
|
|
3936
4159
|
error: string;
|
|
@@ -3965,6 +4188,7 @@ export type MarketplaceInputPayload = {
|
|
|
3965
4188
|
type: string;
|
|
3966
4189
|
};
|
|
3967
4190
|
export type MarketplaceListResponse = {
|
|
4191
|
+
categories: Array<MarketplaceCategoryCount>;
|
|
3968
4192
|
error?: string;
|
|
3969
4193
|
error_class?: string;
|
|
3970
4194
|
items: Array<MarketplaceListingPayload>;
|
|
@@ -3977,9 +4201,12 @@ export type MarketplaceListResponse = {
|
|
|
3977
4201
|
};
|
|
3978
4202
|
export type MarketplaceListingPayload = {
|
|
3979
4203
|
author?: string;
|
|
4204
|
+
category: string;
|
|
4205
|
+
category_label: string;
|
|
3980
4206
|
description: string;
|
|
3981
4207
|
digest_sha256: string;
|
|
3982
4208
|
entry_id: string;
|
|
4209
|
+
featured: boolean;
|
|
3983
4210
|
format?: string;
|
|
3984
4211
|
icon?: string;
|
|
3985
4212
|
install_blocker?: string;
|
|
@@ -4016,6 +4243,21 @@ export type MarketplaceRefreshSourcePayload = {
|
|
|
4016
4243
|
source: string;
|
|
4017
4244
|
stale: boolean;
|
|
4018
4245
|
};
|
|
4246
|
+
export type MarketplaceSection = {
|
|
4247
|
+
id: string;
|
|
4248
|
+
items: Array<MarketplaceListingPayload>;
|
|
4249
|
+
label: string;
|
|
4250
|
+
total: number;
|
|
4251
|
+
};
|
|
4252
|
+
export type MarketplaceSectionsResponse = {
|
|
4253
|
+
error?: string;
|
|
4254
|
+
error_class?: string;
|
|
4255
|
+
refreshing?: boolean;
|
|
4256
|
+
revision: string;
|
|
4257
|
+
sections: Array<MarketplaceSection>;
|
|
4258
|
+
sources: Array<MarketplaceSourceSummary>;
|
|
4259
|
+
stale: boolean;
|
|
4260
|
+
};
|
|
4019
4261
|
export type MarketplaceServerPayload = {
|
|
4020
4262
|
auth?: MCPAuthSummary | null;
|
|
4021
4263
|
launch: string;
|
|
@@ -4449,6 +4691,16 @@ export type PermissionRollupResponse = {
|
|
|
4449
4691
|
since: string;
|
|
4450
4692
|
until: string;
|
|
4451
4693
|
};
|
|
4694
|
+
export type Pick = {
|
|
4695
|
+
action_id?: string;
|
|
4696
|
+
actor: string;
|
|
4697
|
+
picked_at: string;
|
|
4698
|
+
proposal_index: number;
|
|
4699
|
+
queue_entry_id: string;
|
|
4700
|
+
report_id: string;
|
|
4701
|
+
state: string;
|
|
4702
|
+
target_session_id: string;
|
|
4703
|
+
};
|
|
4452
4704
|
export type PickFilesEffect = {
|
|
4453
4705
|
directories?: boolean;
|
|
4454
4706
|
};
|
|
@@ -5491,6 +5743,8 @@ export type SendPromptResultPayload = {
|
|
|
5491
5743
|
entry_id?: string;
|
|
5492
5744
|
estimated_send_at?: string | null;
|
|
5493
5745
|
goal?: GoalCommandResult | null;
|
|
5746
|
+
held_instance_id?: string;
|
|
5747
|
+
held_reason?: string;
|
|
5494
5748
|
idempotency_key: string;
|
|
5495
5749
|
message_id: string;
|
|
5496
5750
|
mode?: string;
|
|
@@ -5611,6 +5865,35 @@ export type SessionCatalogResponse = {
|
|
|
5611
5865
|
page: SessionCatalogPagePayload;
|
|
5612
5866
|
sessions: Array<SessionPayload>;
|
|
5613
5867
|
};
|
|
5868
|
+
export type SessionChangeBasesResponse = {
|
|
5869
|
+
default: ChangeBaseRefPayload | null;
|
|
5870
|
+
refs: Array<ChangeBaseRefPayload>;
|
|
5871
|
+
resolvable: boolean;
|
|
5872
|
+
truncated: boolean;
|
|
5873
|
+
};
|
|
5874
|
+
export type SessionChangeContentsResponse = {
|
|
5875
|
+
fingerprint: string;
|
|
5876
|
+
new?: ChangeSidePayload | null;
|
|
5877
|
+
old?: ChangeSidePayload | null;
|
|
5878
|
+
old_path?: string;
|
|
5879
|
+
path: string;
|
|
5880
|
+
revision: string;
|
|
5881
|
+
};
|
|
5882
|
+
export type SessionChangePatchesResponse = {
|
|
5883
|
+
patches: Array<ChangePatchPayload>;
|
|
5884
|
+
revision: string;
|
|
5885
|
+
};
|
|
5886
|
+
export type SessionChangesResponse = {
|
|
5887
|
+
base: ChangeBasePayload;
|
|
5888
|
+
files: Array<FileChangePayload>;
|
|
5889
|
+
head: ChangeHeadPayload;
|
|
5890
|
+
pull_request?: SessionPullRequestPayload | null;
|
|
5891
|
+
revision: string;
|
|
5892
|
+
root: FileRootPayload;
|
|
5893
|
+
scope: string;
|
|
5894
|
+
totals: ChangeTotalsPayload;
|
|
5895
|
+
truncated: boolean;
|
|
5896
|
+
};
|
|
5614
5897
|
export type SessionChildrenPayload = {
|
|
5615
5898
|
done: number;
|
|
5616
5899
|
in_review: number;
|
|
@@ -5963,6 +6246,8 @@ export type SessionInputPayload = {
|
|
|
5963
6246
|
delivery: string;
|
|
5964
6247
|
enqueued_at: string;
|
|
5965
6248
|
held: boolean;
|
|
6249
|
+
held_instance_id?: string;
|
|
6250
|
+
held_reason?: string;
|
|
5966
6251
|
id: string;
|
|
5967
6252
|
idempotency_key?: string;
|
|
5968
6253
|
mentions?: Array<SessionInputMentionPayload>;
|
|
@@ -6698,7 +6983,7 @@ export type SettingsHookDeclarationPayload = {
|
|
|
6698
6983
|
env?: {
|
|
6699
6984
|
[key: string]: string;
|
|
6700
6985
|
};
|
|
6701
|
-
event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
|
|
6986
|
+
event: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
6702
6987
|
executor_kind?: "native" | "subprocess" | "wasm";
|
|
6703
6988
|
matcher: HookMatcher;
|
|
6704
6989
|
metadata?: {
|
|
@@ -6855,6 +7140,7 @@ export type SettingsMCPServerItemPayload = {
|
|
|
6855
7140
|
override?: SettingsMCPExtensionOverridePayload | null;
|
|
6856
7141
|
owner?: string;
|
|
6857
7142
|
profile?: string;
|
|
7143
|
+
read_only_tools?: Array<string>;
|
|
6858
7144
|
runtime_name?: string;
|
|
6859
7145
|
runtime_status?: SettingsMCPServerRuntimeStatusPayload | null;
|
|
6860
7146
|
scope: "user" | "profile" | "workspace" | "agent";
|
|
@@ -6875,6 +7161,7 @@ export type SettingsMCPServerPayload = {
|
|
|
6875
7161
|
[key: string]: string;
|
|
6876
7162
|
};
|
|
6877
7163
|
name: string;
|
|
7164
|
+
read_only_tools?: Array<string>;
|
|
6878
7165
|
secret_env?: {
|
|
6879
7166
|
[key: string]: string;
|
|
6880
7167
|
};
|
|
@@ -7496,7 +7783,7 @@ export type SettingsWindowManagerSnapPayload = {
|
|
|
7496
7783
|
};
|
|
7497
7784
|
export type SignalSourceState = {
|
|
7498
7785
|
error?: string;
|
|
7499
|
-
kind: "agent_progress" | "tool_running" | "active_child" | "loop_run" | "task_lease" | "scheduled_wait" | "awaiting_reply" | "active_monitor" | "held_permission";
|
|
7786
|
+
kind: "agent_progress" | "tool_running" | "active_child" | "loop_run" | "task_lease" | "scheduled_wait" | "awaiting_reply" | "active_monitor" | "held_permission" | "held_input";
|
|
7500
7787
|
ref?: string;
|
|
7501
7788
|
state: string;
|
|
7502
7789
|
};
|
|
@@ -9058,7 +9345,9 @@ export type ToolContent = {
|
|
|
9058
9345
|
type: string;
|
|
9059
9346
|
};
|
|
9060
9347
|
export type ToolDescriptorPayload = {
|
|
9348
|
+
access: string;
|
|
9061
9349
|
backend: ToolBackendRefPayload;
|
|
9350
|
+
check_in_writable: boolean;
|
|
9062
9351
|
concurrency_safe: boolean;
|
|
9063
9352
|
description: string;
|
|
9064
9353
|
destructive: boolean;
|
|
@@ -9427,13 +9716,14 @@ export type ValidateLoopRequest = {
|
|
|
9427
9716
|
definition: LoopDefinitionDocument;
|
|
9428
9717
|
};
|
|
9429
9718
|
export type ValidationIssue = {
|
|
9719
|
+
code?: string;
|
|
9430
9720
|
column?: number;
|
|
9431
9721
|
field?: string;
|
|
9432
9722
|
line?: number;
|
|
9433
9723
|
message: string;
|
|
9434
9724
|
path: string;
|
|
9435
9725
|
scope?: string;
|
|
9436
|
-
severity: "error" | "warning" | "warn";
|
|
9726
|
+
severity: "error" | "warning" | "warn" | "info";
|
|
9437
9727
|
};
|
|
9438
9728
|
export type Value = {
|
|
9439
9729
|
[key: string]: never;
|
|
@@ -9629,7 +9919,9 @@ export type WorkCandidates = {
|
|
|
9629
9919
|
supports_pr_discovery: boolean;
|
|
9630
9920
|
};
|
|
9631
9921
|
export type WorkSignal = {
|
|
9632
|
-
|
|
9922
|
+
held_instance_id?: string;
|
|
9923
|
+
held_reason?: string;
|
|
9924
|
+
kind: "agent_progress" | "tool_running" | "active_child" | "loop_run" | "task_lease" | "scheduled_wait" | "awaiting_reply" | "active_monitor" | "held_permission" | "held_input";
|
|
9633
9925
|
ref?: string;
|
|
9634
9926
|
since: string;
|
|
9635
9927
|
};
|
|
@@ -9913,6 +10205,7 @@ export type AgentMCPServerInputWritable = {
|
|
|
9913
10205
|
[key: string]: string;
|
|
9914
10206
|
};
|
|
9915
10207
|
name: string;
|
|
10208
|
+
read_only_tools?: Array<string>;
|
|
9916
10209
|
reference?: boolean;
|
|
9917
10210
|
secret_env?: {
|
|
9918
10211
|
[key: string]: string;
|
|
@@ -9975,6 +10268,10 @@ export type InstallExtensionRequestWritable = {
|
|
|
9975
10268
|
allow_unverified?: boolean;
|
|
9976
10269
|
asset?: string;
|
|
9977
10270
|
confirm_gateway_digest?: string;
|
|
10271
|
+
/**
|
|
10272
|
+
* Enable after installation under the same operation lock. Activation failure returns 201 with enable_error and retains the installed package and inputs.
|
|
10273
|
+
*/
|
|
10274
|
+
enable?: boolean;
|
|
9978
10275
|
expected_digest?: string;
|
|
9979
10276
|
inputs?: {
|
|
9980
10277
|
[key: string]: ValueWritable;
|
|
@@ -10941,96 +11238,30 @@ export type ListAgentInstanceReportsResponses = {
|
|
|
10941
11238
|
200: AgentInstanceReportsResponse;
|
|
10942
11239
|
};
|
|
10943
11240
|
export type ListAgentInstanceReportsResponse = ListAgentInstanceReportsResponses[keyof ListAgentInstanceReportsResponses];
|
|
10944
|
-
export type
|
|
10945
|
-
|
|
11241
|
+
export type PickAgentInstanceProposalData = {
|
|
11242
|
+
/**
|
|
11243
|
+
* JSON request body
|
|
11244
|
+
*/
|
|
11245
|
+
body: AgentInstancePickRequest;
|
|
10946
11246
|
path: {
|
|
10947
11247
|
/**
|
|
10948
11248
|
* Instance ID
|
|
10949
11249
|
*/
|
|
10950
11250
|
id: string;
|
|
10951
|
-
};
|
|
10952
|
-
query?: {
|
|
10953
11251
|
/**
|
|
10954
|
-
*
|
|
11252
|
+
* Report ID
|
|
10955
11253
|
*/
|
|
10956
|
-
|
|
11254
|
+
report_id: string;
|
|
10957
11255
|
};
|
|
10958
|
-
url: "/api/agent-instances/{id}/resume";
|
|
10959
|
-
};
|
|
10960
|
-
export type ResumeAgentInstanceErrors = {
|
|
10961
|
-
/**
|
|
10962
|
-
* Invalid profile selection
|
|
10963
|
-
*/
|
|
10964
|
-
400: ProfileErrorPayload;
|
|
10965
|
-
/**
|
|
10966
|
-
* Request failed
|
|
10967
|
-
*/
|
|
10968
|
-
403: ErrorPayload;
|
|
10969
|
-
/**
|
|
10970
|
-
* Request failed
|
|
10971
|
-
*/
|
|
10972
|
-
404: ErrorPayload;
|
|
10973
|
-
/**
|
|
10974
|
-
* Request failed
|
|
10975
|
-
*/
|
|
10976
|
-
409: ErrorPayload;
|
|
10977
|
-
/**
|
|
10978
|
-
* Request failed
|
|
10979
|
-
*/
|
|
10980
|
-
422: ErrorPayload;
|
|
10981
|
-
/**
|
|
10982
|
-
* Request failed
|
|
10983
|
-
*/
|
|
10984
|
-
429: ErrorPayload;
|
|
10985
|
-
/**
|
|
10986
|
-
* Request failed
|
|
10987
|
-
*/
|
|
10988
|
-
500: ErrorPayload;
|
|
10989
|
-
/**
|
|
10990
|
-
* Request failed
|
|
10991
|
-
*/
|
|
10992
|
-
503: ErrorPayload;
|
|
10993
|
-
};
|
|
10994
|
-
export type ResumeAgentInstanceError = ResumeAgentInstanceErrors[keyof ResumeAgentInstanceErrors];
|
|
10995
|
-
export type ResumeAgentInstanceResponses = {
|
|
10996
|
-
/**
|
|
10997
|
-
* OK
|
|
10998
|
-
*/
|
|
10999
|
-
200: AgentInstanceResponse;
|
|
11000
|
-
};
|
|
11001
|
-
export type ResumeAgentInstanceResponse = ResumeAgentInstanceResponses[keyof ResumeAgentInstanceResponses];
|
|
11002
|
-
export type ListAgentSkillReviewsData = {
|
|
11003
|
-
body?: never;
|
|
11004
|
-
path?: never;
|
|
11005
11256
|
query?: {
|
|
11006
|
-
/**
|
|
11007
|
-
* Instance ID
|
|
11008
|
-
*/
|
|
11009
|
-
instance_id?: string;
|
|
11010
|
-
/**
|
|
11011
|
-
* Workspace reference
|
|
11012
|
-
*/
|
|
11013
|
-
workspace?: string;
|
|
11014
|
-
/**
|
|
11015
|
-
* pending, approved or rejected
|
|
11016
|
-
*/
|
|
11017
|
-
state?: string;
|
|
11018
|
-
/**
|
|
11019
|
-
* Page cursor
|
|
11020
|
-
*/
|
|
11021
|
-
cursor?: string;
|
|
11022
|
-
/**
|
|
11023
|
-
* Page size, 1-100; default 50
|
|
11024
|
-
*/
|
|
11025
|
-
limit?: number;
|
|
11026
11257
|
/**
|
|
11027
11258
|
* Act as this profile by name
|
|
11028
11259
|
*/
|
|
11029
11260
|
profile?: string;
|
|
11030
11261
|
};
|
|
11031
|
-
url: "/api/agent-
|
|
11262
|
+
url: "/api/agent-instances/{id}/reports/{report_id}/pick";
|
|
11032
11263
|
};
|
|
11033
|
-
export type
|
|
11264
|
+
export type PickAgentInstanceProposalErrors = {
|
|
11034
11265
|
/**
|
|
11035
11266
|
* Invalid profile selection
|
|
11036
11267
|
*/
|
|
@@ -11064,19 +11295,19 @@ export type ListAgentSkillReviewsErrors = {
|
|
|
11064
11295
|
*/
|
|
11065
11296
|
503: ErrorPayload;
|
|
11066
11297
|
};
|
|
11067
|
-
export type
|
|
11068
|
-
export type
|
|
11298
|
+
export type PickAgentInstanceProposalError = PickAgentInstanceProposalErrors[keyof PickAgentInstanceProposalErrors];
|
|
11299
|
+
export type PickAgentInstanceProposalResponses = {
|
|
11069
11300
|
/**
|
|
11070
|
-
*
|
|
11301
|
+
* Picked
|
|
11071
11302
|
*/
|
|
11072
|
-
200:
|
|
11303
|
+
200: AgentInstancePickResponse;
|
|
11073
11304
|
};
|
|
11074
|
-
export type
|
|
11075
|
-
export type
|
|
11305
|
+
export type PickAgentInstanceProposalResponse = PickAgentInstanceProposalResponses[keyof PickAgentInstanceProposalResponses];
|
|
11306
|
+
export type ResumeAgentInstanceData = {
|
|
11076
11307
|
body?: never;
|
|
11077
11308
|
path: {
|
|
11078
11309
|
/**
|
|
11079
|
-
*
|
|
11310
|
+
* Instance ID
|
|
11080
11311
|
*/
|
|
11081
11312
|
id: string;
|
|
11082
11313
|
};
|
|
@@ -11086,9 +11317,9 @@ export type GetAgentSkillReviewData = {
|
|
|
11086
11317
|
*/
|
|
11087
11318
|
profile?: string;
|
|
11088
11319
|
};
|
|
11089
|
-
url: "/api/agent-
|
|
11320
|
+
url: "/api/agent-instances/{id}/resume";
|
|
11090
11321
|
};
|
|
11091
|
-
export type
|
|
11322
|
+
export type ResumeAgentInstanceErrors = {
|
|
11092
11323
|
/**
|
|
11093
11324
|
* Invalid profile selection
|
|
11094
11325
|
*/
|
|
@@ -11122,34 +11353,46 @@ export type GetAgentSkillReviewErrors = {
|
|
|
11122
11353
|
*/
|
|
11123
11354
|
503: ErrorPayload;
|
|
11124
11355
|
};
|
|
11125
|
-
export type
|
|
11126
|
-
export type
|
|
11356
|
+
export type ResumeAgentInstanceError = ResumeAgentInstanceErrors[keyof ResumeAgentInstanceErrors];
|
|
11357
|
+
export type ResumeAgentInstanceResponses = {
|
|
11127
11358
|
/**
|
|
11128
|
-
*
|
|
11359
|
+
* OK
|
|
11129
11360
|
*/
|
|
11130
|
-
200:
|
|
11361
|
+
200: AgentInstanceResponse;
|
|
11131
11362
|
};
|
|
11132
|
-
export type
|
|
11133
|
-
export type
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
body: AgentSkillReviewDecisionRequest;
|
|
11138
|
-
path: {
|
|
11363
|
+
export type ResumeAgentInstanceResponse = ResumeAgentInstanceResponses[keyof ResumeAgentInstanceResponses];
|
|
11364
|
+
export type ListAgentSkillReviewsData = {
|
|
11365
|
+
body?: never;
|
|
11366
|
+
path?: never;
|
|
11367
|
+
query?: {
|
|
11139
11368
|
/**
|
|
11140
|
-
*
|
|
11369
|
+
* Instance ID
|
|
11141
11370
|
*/
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11371
|
+
instance_id?: string;
|
|
11372
|
+
/**
|
|
11373
|
+
* Workspace reference
|
|
11374
|
+
*/
|
|
11375
|
+
workspace?: string;
|
|
11376
|
+
/**
|
|
11377
|
+
* pending, approved or rejected
|
|
11378
|
+
*/
|
|
11379
|
+
state?: string;
|
|
11380
|
+
/**
|
|
11381
|
+
* Page cursor
|
|
11382
|
+
*/
|
|
11383
|
+
cursor?: string;
|
|
11384
|
+
/**
|
|
11385
|
+
* Page size, 1-100; default 50
|
|
11386
|
+
*/
|
|
11387
|
+
limit?: number;
|
|
11145
11388
|
/**
|
|
11146
11389
|
* Act as this profile by name
|
|
11147
11390
|
*/
|
|
11148
11391
|
profile?: string;
|
|
11149
11392
|
};
|
|
11150
|
-
url: "/api/agent-skill-reviews
|
|
11393
|
+
url: "/api/agent-skill-reviews";
|
|
11151
11394
|
};
|
|
11152
|
-
export type
|
|
11395
|
+
export type ListAgentSkillReviewsErrors = {
|
|
11153
11396
|
/**
|
|
11154
11397
|
* Invalid profile selection
|
|
11155
11398
|
*/
|
|
@@ -11183,19 +11426,16 @@ export type ApproveAgentSkillReviewErrors = {
|
|
|
11183
11426
|
*/
|
|
11184
11427
|
503: ErrorPayload;
|
|
11185
11428
|
};
|
|
11186
|
-
export type
|
|
11187
|
-
export type
|
|
11429
|
+
export type ListAgentSkillReviewsError = ListAgentSkillReviewsErrors[keyof ListAgentSkillReviewsErrors];
|
|
11430
|
+
export type ListAgentSkillReviewsResponses = {
|
|
11188
11431
|
/**
|
|
11189
|
-
*
|
|
11432
|
+
* Skill reviews
|
|
11190
11433
|
*/
|
|
11191
|
-
200:
|
|
11434
|
+
200: AgentSkillReviewsResponse;
|
|
11192
11435
|
};
|
|
11193
|
-
export type
|
|
11194
|
-
export type
|
|
11195
|
-
|
|
11196
|
-
* JSON request body
|
|
11197
|
-
*/
|
|
11198
|
-
body: AgentSkillReviewDecisionRequest;
|
|
11436
|
+
export type ListAgentSkillReviewsResponse = ListAgentSkillReviewsResponses[keyof ListAgentSkillReviewsResponses];
|
|
11437
|
+
export type GetAgentSkillReviewData = {
|
|
11438
|
+
body?: never;
|
|
11199
11439
|
path: {
|
|
11200
11440
|
/**
|
|
11201
11441
|
* Review ID
|
|
@@ -11208,9 +11448,131 @@ export type RejectAgentSkillReviewData = {
|
|
|
11208
11448
|
*/
|
|
11209
11449
|
profile?: string;
|
|
11210
11450
|
};
|
|
11211
|
-
url: "/api/agent-skill-reviews/{id}
|
|
11451
|
+
url: "/api/agent-skill-reviews/{id}";
|
|
11212
11452
|
};
|
|
11213
|
-
export type
|
|
11453
|
+
export type GetAgentSkillReviewErrors = {
|
|
11454
|
+
/**
|
|
11455
|
+
* Invalid profile selection
|
|
11456
|
+
*/
|
|
11457
|
+
400: ProfileErrorPayload;
|
|
11458
|
+
/**
|
|
11459
|
+
* Request failed
|
|
11460
|
+
*/
|
|
11461
|
+
403: ErrorPayload;
|
|
11462
|
+
/**
|
|
11463
|
+
* Request failed
|
|
11464
|
+
*/
|
|
11465
|
+
404: ErrorPayload;
|
|
11466
|
+
/**
|
|
11467
|
+
* Request failed
|
|
11468
|
+
*/
|
|
11469
|
+
409: ErrorPayload;
|
|
11470
|
+
/**
|
|
11471
|
+
* Request failed
|
|
11472
|
+
*/
|
|
11473
|
+
422: ErrorPayload;
|
|
11474
|
+
/**
|
|
11475
|
+
* Request failed
|
|
11476
|
+
*/
|
|
11477
|
+
429: ErrorPayload;
|
|
11478
|
+
/**
|
|
11479
|
+
* Request failed
|
|
11480
|
+
*/
|
|
11481
|
+
500: ErrorPayload;
|
|
11482
|
+
/**
|
|
11483
|
+
* Request failed
|
|
11484
|
+
*/
|
|
11485
|
+
503: ErrorPayload;
|
|
11486
|
+
};
|
|
11487
|
+
export type GetAgentSkillReviewError = GetAgentSkillReviewErrors[keyof GetAgentSkillReviewErrors];
|
|
11488
|
+
export type GetAgentSkillReviewResponses = {
|
|
11489
|
+
/**
|
|
11490
|
+
* Skill review
|
|
11491
|
+
*/
|
|
11492
|
+
200: AgentSkillReviewResponse;
|
|
11493
|
+
};
|
|
11494
|
+
export type GetAgentSkillReviewResponse = GetAgentSkillReviewResponses[keyof GetAgentSkillReviewResponses];
|
|
11495
|
+
export type ApproveAgentSkillReviewData = {
|
|
11496
|
+
/**
|
|
11497
|
+
* JSON request body
|
|
11498
|
+
*/
|
|
11499
|
+
body: AgentSkillReviewDecisionRequest;
|
|
11500
|
+
path: {
|
|
11501
|
+
/**
|
|
11502
|
+
* Review ID
|
|
11503
|
+
*/
|
|
11504
|
+
id: string;
|
|
11505
|
+
};
|
|
11506
|
+
query?: {
|
|
11507
|
+
/**
|
|
11508
|
+
* Act as this profile by name
|
|
11509
|
+
*/
|
|
11510
|
+
profile?: string;
|
|
11511
|
+
};
|
|
11512
|
+
url: "/api/agent-skill-reviews/{id}/approve";
|
|
11513
|
+
};
|
|
11514
|
+
export type ApproveAgentSkillReviewErrors = {
|
|
11515
|
+
/**
|
|
11516
|
+
* Invalid profile selection
|
|
11517
|
+
*/
|
|
11518
|
+
400: ProfileErrorPayload;
|
|
11519
|
+
/**
|
|
11520
|
+
* Request failed
|
|
11521
|
+
*/
|
|
11522
|
+
403: ErrorPayload;
|
|
11523
|
+
/**
|
|
11524
|
+
* Request failed
|
|
11525
|
+
*/
|
|
11526
|
+
404: ErrorPayload;
|
|
11527
|
+
/**
|
|
11528
|
+
* Request failed
|
|
11529
|
+
*/
|
|
11530
|
+
409: ErrorPayload;
|
|
11531
|
+
/**
|
|
11532
|
+
* Request failed
|
|
11533
|
+
*/
|
|
11534
|
+
422: ErrorPayload;
|
|
11535
|
+
/**
|
|
11536
|
+
* Request failed
|
|
11537
|
+
*/
|
|
11538
|
+
429: ErrorPayload;
|
|
11539
|
+
/**
|
|
11540
|
+
* Request failed
|
|
11541
|
+
*/
|
|
11542
|
+
500: ErrorPayload;
|
|
11543
|
+
/**
|
|
11544
|
+
* Request failed
|
|
11545
|
+
*/
|
|
11546
|
+
503: ErrorPayload;
|
|
11547
|
+
};
|
|
11548
|
+
export type ApproveAgentSkillReviewError = ApproveAgentSkillReviewErrors[keyof ApproveAgentSkillReviewErrors];
|
|
11549
|
+
export type ApproveAgentSkillReviewResponses = {
|
|
11550
|
+
/**
|
|
11551
|
+
* Decided review
|
|
11552
|
+
*/
|
|
11553
|
+
200: AgentSkillReviewResponse;
|
|
11554
|
+
};
|
|
11555
|
+
export type ApproveAgentSkillReviewResponse = ApproveAgentSkillReviewResponses[keyof ApproveAgentSkillReviewResponses];
|
|
11556
|
+
export type RejectAgentSkillReviewData = {
|
|
11557
|
+
/**
|
|
11558
|
+
* JSON request body
|
|
11559
|
+
*/
|
|
11560
|
+
body: AgentSkillReviewDecisionRequest;
|
|
11561
|
+
path: {
|
|
11562
|
+
/**
|
|
11563
|
+
* Review ID
|
|
11564
|
+
*/
|
|
11565
|
+
id: string;
|
|
11566
|
+
};
|
|
11567
|
+
query?: {
|
|
11568
|
+
/**
|
|
11569
|
+
* Act as this profile by name
|
|
11570
|
+
*/
|
|
11571
|
+
profile?: string;
|
|
11572
|
+
};
|
|
11573
|
+
url: "/api/agent-skill-reviews/{id}/reject";
|
|
11574
|
+
};
|
|
11575
|
+
export type RejectAgentSkillReviewErrors = {
|
|
11214
11576
|
/**
|
|
11215
11577
|
* Invalid profile selection
|
|
11216
11578
|
*/
|
|
@@ -12706,6 +13068,159 @@ export type PutAgentHeartbeatResponses = {
|
|
|
12706
13068
|
200: HeartbeatMutationResponse;
|
|
12707
13069
|
};
|
|
12708
13070
|
export type PutAgentHeartbeatResponse = PutAgentHeartbeatResponses[keyof PutAgentHeartbeatResponses];
|
|
13071
|
+
export type GetAgentHeartbeatAuthorityData = {
|
|
13072
|
+
body?: never;
|
|
13073
|
+
path: {
|
|
13074
|
+
/**
|
|
13075
|
+
* Agent name
|
|
13076
|
+
*/
|
|
13077
|
+
name: string;
|
|
13078
|
+
};
|
|
13079
|
+
query?: {
|
|
13080
|
+
/**
|
|
13081
|
+
* Workspace id
|
|
13082
|
+
*/
|
|
13083
|
+
workspace_id?: string;
|
|
13084
|
+
/**
|
|
13085
|
+
* Act as this profile by name
|
|
13086
|
+
*/
|
|
13087
|
+
profile?: string;
|
|
13088
|
+
};
|
|
13089
|
+
url: "/api/agents/{name}/heartbeat/authority";
|
|
13090
|
+
};
|
|
13091
|
+
export type GetAgentHeartbeatAuthorityErrors = {
|
|
13092
|
+
/**
|
|
13093
|
+
* Operator required
|
|
13094
|
+
*/
|
|
13095
|
+
403: ErrorPayload;
|
|
13096
|
+
/**
|
|
13097
|
+
* Agent not found
|
|
13098
|
+
*/
|
|
13099
|
+
404: ErrorPayload;
|
|
13100
|
+
/**
|
|
13101
|
+
* Authority changed
|
|
13102
|
+
*/
|
|
13103
|
+
409: ErrorPayload;
|
|
13104
|
+
/**
|
|
13105
|
+
* Invalid authority
|
|
13106
|
+
*/
|
|
13107
|
+
422: ErrorPayload;
|
|
13108
|
+
/**
|
|
13109
|
+
* Authority storage unavailable
|
|
13110
|
+
*/
|
|
13111
|
+
503: ErrorPayload;
|
|
13112
|
+
};
|
|
13113
|
+
export type GetAgentHeartbeatAuthorityError = GetAgentHeartbeatAuthorityErrors[keyof GetAgentHeartbeatAuthorityErrors];
|
|
13114
|
+
export type GetAgentHeartbeatAuthorityResponses = {
|
|
13115
|
+
/**
|
|
13116
|
+
* Check-in authority
|
|
13117
|
+
*/
|
|
13118
|
+
200: HeartbeatAuthorityPayload;
|
|
13119
|
+
};
|
|
13120
|
+
export type GetAgentHeartbeatAuthorityResponse = GetAgentHeartbeatAuthorityResponses[keyof GetAgentHeartbeatAuthorityResponses];
|
|
13121
|
+
export type RevokeAgentHeartbeatAuthorityData = {
|
|
13122
|
+
body?: never;
|
|
13123
|
+
path: {
|
|
13124
|
+
/**
|
|
13125
|
+
* Agent name
|
|
13126
|
+
*/
|
|
13127
|
+
name: string;
|
|
13128
|
+
};
|
|
13129
|
+
query?: {
|
|
13130
|
+
/**
|
|
13131
|
+
* Workspace id
|
|
13132
|
+
*/
|
|
13133
|
+
workspace_id?: string;
|
|
13134
|
+
/**
|
|
13135
|
+
* Act as this profile by name
|
|
13136
|
+
*/
|
|
13137
|
+
profile?: string;
|
|
13138
|
+
};
|
|
13139
|
+
url: "/api/agents/{name}/heartbeat/authority/approve";
|
|
13140
|
+
};
|
|
13141
|
+
export type RevokeAgentHeartbeatAuthorityErrors = {
|
|
13142
|
+
/**
|
|
13143
|
+
* Operator required
|
|
13144
|
+
*/
|
|
13145
|
+
403: ErrorPayload;
|
|
13146
|
+
/**
|
|
13147
|
+
* Agent not found
|
|
13148
|
+
*/
|
|
13149
|
+
404: ErrorPayload;
|
|
13150
|
+
/**
|
|
13151
|
+
* Authority changed
|
|
13152
|
+
*/
|
|
13153
|
+
409: ErrorPayload;
|
|
13154
|
+
/**
|
|
13155
|
+
* Invalid authority
|
|
13156
|
+
*/
|
|
13157
|
+
422: ErrorPayload;
|
|
13158
|
+
/**
|
|
13159
|
+
* Authority storage unavailable
|
|
13160
|
+
*/
|
|
13161
|
+
503: ErrorPayload;
|
|
13162
|
+
};
|
|
13163
|
+
export type RevokeAgentHeartbeatAuthorityError = RevokeAgentHeartbeatAuthorityErrors[keyof RevokeAgentHeartbeatAuthorityErrors];
|
|
13164
|
+
export type RevokeAgentHeartbeatAuthorityResponses = {
|
|
13165
|
+
/**
|
|
13166
|
+
* Authority revoked
|
|
13167
|
+
*/
|
|
13168
|
+
204: void;
|
|
13169
|
+
};
|
|
13170
|
+
export type RevokeAgentHeartbeatAuthorityResponse = RevokeAgentHeartbeatAuthorityResponses[keyof RevokeAgentHeartbeatAuthorityResponses];
|
|
13171
|
+
export type ApproveAgentHeartbeatAuthorityData = {
|
|
13172
|
+
/**
|
|
13173
|
+
* JSON request body
|
|
13174
|
+
*/
|
|
13175
|
+
body: HeartbeatScriptApprovalRequest;
|
|
13176
|
+
path: {
|
|
13177
|
+
/**
|
|
13178
|
+
* Agent name
|
|
13179
|
+
*/
|
|
13180
|
+
name: string;
|
|
13181
|
+
};
|
|
13182
|
+
query?: {
|
|
13183
|
+
/**
|
|
13184
|
+
* Workspace id
|
|
13185
|
+
*/
|
|
13186
|
+
workspace_id?: string;
|
|
13187
|
+
/**
|
|
13188
|
+
* Act as this profile by name
|
|
13189
|
+
*/
|
|
13190
|
+
profile?: string;
|
|
13191
|
+
};
|
|
13192
|
+
url: "/api/agents/{name}/heartbeat/authority/approve";
|
|
13193
|
+
};
|
|
13194
|
+
export type ApproveAgentHeartbeatAuthorityErrors = {
|
|
13195
|
+
/**
|
|
13196
|
+
* Operator required
|
|
13197
|
+
*/
|
|
13198
|
+
403: ErrorPayload;
|
|
13199
|
+
/**
|
|
13200
|
+
* Agent not found
|
|
13201
|
+
*/
|
|
13202
|
+
404: ErrorPayload;
|
|
13203
|
+
/**
|
|
13204
|
+
* Authority changed
|
|
13205
|
+
*/
|
|
13206
|
+
409: ErrorPayload;
|
|
13207
|
+
/**
|
|
13208
|
+
* Invalid authority
|
|
13209
|
+
*/
|
|
13210
|
+
422: ErrorPayload;
|
|
13211
|
+
/**
|
|
13212
|
+
* Authority storage unavailable
|
|
13213
|
+
*/
|
|
13214
|
+
503: ErrorPayload;
|
|
13215
|
+
};
|
|
13216
|
+
export type ApproveAgentHeartbeatAuthorityError = ApproveAgentHeartbeatAuthorityErrors[keyof ApproveAgentHeartbeatAuthorityErrors];
|
|
13217
|
+
export type ApproveAgentHeartbeatAuthorityResponses = {
|
|
13218
|
+
/**
|
|
13219
|
+
* Authority approved
|
|
13220
|
+
*/
|
|
13221
|
+
204: void;
|
|
13222
|
+
};
|
|
13223
|
+
export type ApproveAgentHeartbeatAuthorityResponse = ApproveAgentHeartbeatAuthorityResponses[keyof ApproveAgentHeartbeatAuthorityResponses];
|
|
12709
13224
|
export type ListAgentHeartbeatHistoryData = {
|
|
12710
13225
|
body?: never;
|
|
12711
13226
|
path: {
|
|
@@ -15764,9 +16279,9 @@ export type InstallExtensionResponses = {
|
|
|
15764
16279
|
/**
|
|
15765
16280
|
* Created
|
|
15766
16281
|
*/
|
|
15767
|
-
201:
|
|
16282
|
+
201: InstallExtensionResponse;
|
|
15768
16283
|
};
|
|
15769
|
-
export type
|
|
16284
|
+
export type InstallExtensionResponse2 = InstallExtensionResponses[keyof InstallExtensionResponses];
|
|
15770
16285
|
export type ListExtensionCommandsData = {
|
|
15771
16286
|
body?: never;
|
|
15772
16287
|
path?: never;
|
|
@@ -17027,7 +17542,7 @@ export type GetHookCatalogData = {
|
|
|
17027
17542
|
/**
|
|
17028
17543
|
* Hook event name
|
|
17029
17544
|
*/
|
|
17030
|
-
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
|
|
17545
|
+
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
17031
17546
|
/**
|
|
17032
17547
|
* Hook source
|
|
17033
17548
|
*/
|
|
@@ -17410,6 +17925,10 @@ export type ListMarketplaceData = {
|
|
|
17410
17925
|
* Optional catalog search query
|
|
17411
17926
|
*/
|
|
17412
17927
|
q?: string;
|
|
17928
|
+
/**
|
|
17929
|
+
* Optional CompozyOS category id
|
|
17930
|
+
*/
|
|
17931
|
+
category?: string;
|
|
17413
17932
|
/**
|
|
17414
17933
|
* Maximum results from 1 to 100
|
|
17415
17934
|
*/
|
|
@@ -17553,6 +18072,55 @@ export type RefreshMarketplaceCatalogResponses = {
|
|
|
17553
18072
|
200: MarketplaceRefreshResponse;
|
|
17554
18073
|
};
|
|
17555
18074
|
export type RefreshMarketplaceCatalogResponse = RefreshMarketplaceCatalogResponses[keyof RefreshMarketplaceCatalogResponses];
|
|
18075
|
+
export type GetMarketplaceSectionsData = {
|
|
18076
|
+
body?: never;
|
|
18077
|
+
path?: never;
|
|
18078
|
+
query?: {
|
|
18079
|
+
/**
|
|
18080
|
+
* Optional catalog search query
|
|
18081
|
+
*/
|
|
18082
|
+
q?: string;
|
|
18083
|
+
/**
|
|
18084
|
+
* Entries per section from 1 to 12; default 6
|
|
18085
|
+
*/
|
|
18086
|
+
per_section?: number;
|
|
18087
|
+
/**
|
|
18088
|
+
* Installed-state projection scope
|
|
18089
|
+
*/
|
|
18090
|
+
scope?: "global" | "profile" | "workspace";
|
|
18091
|
+
/**
|
|
18092
|
+
* Required for profile scope
|
|
18093
|
+
*/
|
|
18094
|
+
profile?: string;
|
|
18095
|
+
/**
|
|
18096
|
+
* Required for workspace scope
|
|
18097
|
+
*/
|
|
18098
|
+
workspace_id?: string;
|
|
18099
|
+
};
|
|
18100
|
+
url: "/api/marketplace/sections";
|
|
18101
|
+
};
|
|
18102
|
+
export type GetMarketplaceSectionsErrors = {
|
|
18103
|
+
/**
|
|
18104
|
+
* Invalid request
|
|
18105
|
+
*/
|
|
18106
|
+
400: ErrorPayload;
|
|
18107
|
+
/**
|
|
18108
|
+
* Internal server error
|
|
18109
|
+
*/
|
|
18110
|
+
500: ErrorPayload;
|
|
18111
|
+
/**
|
|
18112
|
+
* Catalog dependency is not configured
|
|
18113
|
+
*/
|
|
18114
|
+
503: ErrorPayload;
|
|
18115
|
+
};
|
|
18116
|
+
export type GetMarketplaceSectionsError = GetMarketplaceSectionsErrors[keyof GetMarketplaceSectionsErrors];
|
|
18117
|
+
export type GetMarketplaceSectionsResponses = {
|
|
18118
|
+
/**
|
|
18119
|
+
* OK
|
|
18120
|
+
*/
|
|
18121
|
+
200: MarketplaceSectionsResponse;
|
|
18122
|
+
};
|
|
18123
|
+
export type GetMarketplaceSectionsResponse = GetMarketplaceSectionsResponses[keyof GetMarketplaceSectionsResponses];
|
|
17556
18124
|
export type ListMarketplaceSourcesData = {
|
|
17557
18125
|
body?: never;
|
|
17558
18126
|
path?: never;
|
|
@@ -20594,6 +21162,10 @@ export type ListSessionsData = {
|
|
|
20594
21162
|
* Exclude settled automation-run sessions; search, type, parent, root, archive=only and later=only reads ignore it
|
|
20595
21163
|
*/
|
|
20596
21164
|
exclude_finished_automation?: boolean;
|
|
21165
|
+
/**
|
|
21166
|
+
* Exclude every automation job or trigger run session the operator has not prompted, whatever its state; search, type, parent, root, archive=only and later=only reads ignore it
|
|
21167
|
+
*/
|
|
21168
|
+
exclude_automation?: boolean;
|
|
20597
21169
|
/**
|
|
20598
21170
|
* Filter by exact session state
|
|
20599
21171
|
*/
|
|
@@ -20795,6 +21367,10 @@ export type ListSessionFacetsData = {
|
|
|
20795
21367
|
* Exclude settled automation-run sessions; search, type, parent, root, archive=only and later=only reads ignore it
|
|
20796
21368
|
*/
|
|
20797
21369
|
exclude_finished_automation?: boolean;
|
|
21370
|
+
/**
|
|
21371
|
+
* Exclude every automation job or trigger run session the operator has not prompted from the counts, whatever its state; facets ignore the text query, so the counts keep excluding runs a search can list. type, parent, root, archive=only and later=only reads ignore it
|
|
21372
|
+
*/
|
|
21373
|
+
exclude_automation?: boolean;
|
|
20798
21374
|
/**
|
|
20799
21375
|
* Workspace id or path
|
|
20800
21376
|
*/
|
|
@@ -27764,6 +28340,278 @@ export type DismissAutomationSuggestionResponses = {
|
|
|
27764
28340
|
200: AutomationSuggestionResponse;
|
|
27765
28341
|
};
|
|
27766
28342
|
export type DismissAutomationSuggestionResponse = DismissAutomationSuggestionResponses[keyof DismissAutomationSuggestionResponses];
|
|
28343
|
+
export type ReadFileContentData = {
|
|
28344
|
+
body?: never;
|
|
28345
|
+
path: {
|
|
28346
|
+
/**
|
|
28347
|
+
* Workspace id
|
|
28348
|
+
*/
|
|
28349
|
+
workspace_id: string;
|
|
28350
|
+
};
|
|
28351
|
+
query: {
|
|
28352
|
+
/**
|
|
28353
|
+
* Optional worktree id
|
|
28354
|
+
*/
|
|
28355
|
+
worktree_id?: string;
|
|
28356
|
+
/**
|
|
28357
|
+
* Root-relative path
|
|
28358
|
+
*/
|
|
28359
|
+
path: string;
|
|
28360
|
+
/**
|
|
28361
|
+
* Reveal sensitive content; forbidden to app tokens
|
|
28362
|
+
*/
|
|
28363
|
+
reveal?: boolean;
|
|
28364
|
+
/**
|
|
28365
|
+
* Read one profile's rows by name
|
|
28366
|
+
*/
|
|
28367
|
+
profile?: string;
|
|
28368
|
+
/**
|
|
28369
|
+
* Read the owner-labeled all-profiles aggregate
|
|
28370
|
+
*/
|
|
28371
|
+
all_profiles?: boolean;
|
|
28372
|
+
};
|
|
28373
|
+
url: "/api/workspaces/{workspace_id}/files/content";
|
|
28374
|
+
};
|
|
28375
|
+
export type ReadFileContentErrors = {
|
|
28376
|
+
/**
|
|
28377
|
+
* File operation failed
|
|
28378
|
+
*/
|
|
28379
|
+
400: ErrorPayload;
|
|
28380
|
+
/**
|
|
28381
|
+
* File operation failed
|
|
28382
|
+
*/
|
|
28383
|
+
403: ErrorPayload;
|
|
28384
|
+
/**
|
|
28385
|
+
* File operation failed
|
|
28386
|
+
*/
|
|
28387
|
+
404: ErrorPayload;
|
|
28388
|
+
/**
|
|
28389
|
+
* File operation failed
|
|
28390
|
+
*/
|
|
28391
|
+
409: ErrorPayload;
|
|
28392
|
+
/**
|
|
28393
|
+
* File operation failed
|
|
28394
|
+
*/
|
|
28395
|
+
422: ErrorPayload;
|
|
28396
|
+
/**
|
|
28397
|
+
* File operation failed
|
|
28398
|
+
*/
|
|
28399
|
+
500: ErrorPayload;
|
|
28400
|
+
};
|
|
28401
|
+
export type ReadFileContentError = ReadFileContentErrors[keyof ReadFileContentErrors];
|
|
28402
|
+
export type ReadFileContentResponses = {
|
|
28403
|
+
/**
|
|
28404
|
+
* OK
|
|
28405
|
+
*/
|
|
28406
|
+
200: FileContentResponse;
|
|
28407
|
+
};
|
|
28408
|
+
export type ReadFileContentResponse = ReadFileContentResponses[keyof ReadFileContentResponses];
|
|
28409
|
+
export type ListFileEntriesData = {
|
|
28410
|
+
body?: never;
|
|
28411
|
+
path: {
|
|
28412
|
+
/**
|
|
28413
|
+
* Workspace id
|
|
28414
|
+
*/
|
|
28415
|
+
workspace_id: string;
|
|
28416
|
+
};
|
|
28417
|
+
query?: {
|
|
28418
|
+
/**
|
|
28419
|
+
* Optional worktree id
|
|
28420
|
+
*/
|
|
28421
|
+
worktree_id?: string;
|
|
28422
|
+
/**
|
|
28423
|
+
* Root-relative path
|
|
28424
|
+
*/
|
|
28425
|
+
path?: string;
|
|
28426
|
+
/**
|
|
28427
|
+
* Include ignored entries
|
|
28428
|
+
*/
|
|
28429
|
+
show_ignored?: boolean;
|
|
28430
|
+
/**
|
|
28431
|
+
* Read one profile's rows by name
|
|
28432
|
+
*/
|
|
28433
|
+
profile?: string;
|
|
28434
|
+
/**
|
|
28435
|
+
* Read the owner-labeled all-profiles aggregate
|
|
28436
|
+
*/
|
|
28437
|
+
all_profiles?: boolean;
|
|
28438
|
+
};
|
|
28439
|
+
url: "/api/workspaces/{workspace_id}/files/entries";
|
|
28440
|
+
};
|
|
28441
|
+
export type ListFileEntriesErrors = {
|
|
28442
|
+
/**
|
|
28443
|
+
* File operation failed
|
|
28444
|
+
*/
|
|
28445
|
+
400: ErrorPayload;
|
|
28446
|
+
/**
|
|
28447
|
+
* File operation failed
|
|
28448
|
+
*/
|
|
28449
|
+
403: ErrorPayload;
|
|
28450
|
+
/**
|
|
28451
|
+
* File operation failed
|
|
28452
|
+
*/
|
|
28453
|
+
404: ErrorPayload;
|
|
28454
|
+
/**
|
|
28455
|
+
* File operation failed
|
|
28456
|
+
*/
|
|
28457
|
+
409: ErrorPayload;
|
|
28458
|
+
/**
|
|
28459
|
+
* File operation failed
|
|
28460
|
+
*/
|
|
28461
|
+
422: ErrorPayload;
|
|
28462
|
+
/**
|
|
28463
|
+
* File operation failed
|
|
28464
|
+
*/
|
|
28465
|
+
500: ErrorPayload;
|
|
28466
|
+
};
|
|
28467
|
+
export type ListFileEntriesError = ListFileEntriesErrors[keyof ListFileEntriesErrors];
|
|
28468
|
+
export type ListFileEntriesResponses = {
|
|
28469
|
+
/**
|
|
28470
|
+
* OK
|
|
28471
|
+
*/
|
|
28472
|
+
200: FileEntriesResponse;
|
|
28473
|
+
};
|
|
28474
|
+
export type ListFileEntriesResponse = ListFileEntriesResponses[keyof ListFileEntriesResponses];
|
|
28475
|
+
export type FindFilesData = {
|
|
28476
|
+
body?: never;
|
|
28477
|
+
path: {
|
|
28478
|
+
/**
|
|
28479
|
+
* Workspace id
|
|
28480
|
+
*/
|
|
28481
|
+
workspace_id: string;
|
|
28482
|
+
};
|
|
28483
|
+
query: {
|
|
28484
|
+
/**
|
|
28485
|
+
* Optional worktree id
|
|
28486
|
+
*/
|
|
28487
|
+
worktree_id?: string;
|
|
28488
|
+
/**
|
|
28489
|
+
* Search query
|
|
28490
|
+
*/
|
|
28491
|
+
q: string;
|
|
28492
|
+
/**
|
|
28493
|
+
* Result limit; defaults and clamps to 50
|
|
28494
|
+
*/
|
|
28495
|
+
limit?: number;
|
|
28496
|
+
/**
|
|
28497
|
+
* Read one profile's rows by name
|
|
28498
|
+
*/
|
|
28499
|
+
profile?: string;
|
|
28500
|
+
/**
|
|
28501
|
+
* Read the owner-labeled all-profiles aggregate
|
|
28502
|
+
*/
|
|
28503
|
+
all_profiles?: boolean;
|
|
28504
|
+
};
|
|
28505
|
+
url: "/api/workspaces/{workspace_id}/files/find";
|
|
28506
|
+
};
|
|
28507
|
+
export type FindFilesErrors = {
|
|
28508
|
+
/**
|
|
28509
|
+
* Search failed
|
|
28510
|
+
*/
|
|
28511
|
+
400: ErrorPayload;
|
|
28512
|
+
/**
|
|
28513
|
+
* Search failed
|
|
28514
|
+
*/
|
|
28515
|
+
403: ErrorPayload;
|
|
28516
|
+
/**
|
|
28517
|
+
* Search failed
|
|
28518
|
+
*/
|
|
28519
|
+
404: ErrorPayload;
|
|
28520
|
+
/**
|
|
28521
|
+
* Search failed
|
|
28522
|
+
*/
|
|
28523
|
+
409: ErrorPayload;
|
|
28524
|
+
/**
|
|
28525
|
+
* Search failed
|
|
28526
|
+
*/
|
|
28527
|
+
500: ErrorPayload;
|
|
28528
|
+
};
|
|
28529
|
+
export type FindFilesError = FindFilesErrors[keyof FindFilesErrors];
|
|
28530
|
+
export type FindFilesResponses = {
|
|
28531
|
+
/**
|
|
28532
|
+
* OK
|
|
28533
|
+
*/
|
|
28534
|
+
200: FileFindResponse;
|
|
28535
|
+
};
|
|
28536
|
+
export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
|
|
28537
|
+
export type SearchFileContentsData = {
|
|
28538
|
+
body?: never;
|
|
28539
|
+
path: {
|
|
28540
|
+
/**
|
|
28541
|
+
* Workspace id
|
|
28542
|
+
*/
|
|
28543
|
+
workspace_id: string;
|
|
28544
|
+
};
|
|
28545
|
+
query: {
|
|
28546
|
+
/**
|
|
28547
|
+
* Optional worktree id
|
|
28548
|
+
*/
|
|
28549
|
+
worktree_id?: string;
|
|
28550
|
+
/**
|
|
28551
|
+
* Search query
|
|
28552
|
+
*/
|
|
28553
|
+
q: string;
|
|
28554
|
+
/**
|
|
28555
|
+
* Use POSIX ERE
|
|
28556
|
+
*/
|
|
28557
|
+
regex?: boolean;
|
|
28558
|
+
/**
|
|
28559
|
+
* Match case
|
|
28560
|
+
*/
|
|
28561
|
+
case_sensitive?: boolean;
|
|
28562
|
+
/**
|
|
28563
|
+
* Match whole words
|
|
28564
|
+
*/
|
|
28565
|
+
whole_word?: boolean;
|
|
28566
|
+
/**
|
|
28567
|
+
* Root-relative globs; repeat at most ten times
|
|
28568
|
+
*/
|
|
28569
|
+
include?: Array<string>;
|
|
28570
|
+
/**
|
|
28571
|
+
* Root-relative globs; repeat at most ten times
|
|
28572
|
+
*/
|
|
28573
|
+
exclude?: Array<string>;
|
|
28574
|
+
/**
|
|
28575
|
+
* Read one profile's rows by name
|
|
28576
|
+
*/
|
|
28577
|
+
profile?: string;
|
|
28578
|
+
/**
|
|
28579
|
+
* Read the owner-labeled all-profiles aggregate
|
|
28580
|
+
*/
|
|
28581
|
+
all_profiles?: boolean;
|
|
28582
|
+
};
|
|
28583
|
+
url: "/api/workspaces/{workspace_id}/files/search";
|
|
28584
|
+
};
|
|
28585
|
+
export type SearchFileContentsErrors = {
|
|
28586
|
+
/**
|
|
28587
|
+
* Search failed
|
|
28588
|
+
*/
|
|
28589
|
+
400: ErrorPayload;
|
|
28590
|
+
/**
|
|
28591
|
+
* Search failed
|
|
28592
|
+
*/
|
|
28593
|
+
403: ErrorPayload;
|
|
28594
|
+
/**
|
|
28595
|
+
* Search failed
|
|
28596
|
+
*/
|
|
28597
|
+
404: ErrorPayload;
|
|
28598
|
+
/**
|
|
28599
|
+
* Search failed
|
|
28600
|
+
*/
|
|
28601
|
+
409: ErrorPayload;
|
|
28602
|
+
/**
|
|
28603
|
+
* Search failed
|
|
28604
|
+
*/
|
|
28605
|
+
500: ErrorPayload;
|
|
28606
|
+
};
|
|
28607
|
+
export type SearchFileContentsError = SearchFileContentsErrors[keyof SearchFileContentsErrors];
|
|
28608
|
+
export type SearchFileContentsResponses = {
|
|
28609
|
+
/**
|
|
28610
|
+
* OK
|
|
28611
|
+
*/
|
|
28612
|
+
200: FileSearchResponse;
|
|
28613
|
+
};
|
|
28614
|
+
export type SearchFileContentsResponse = SearchFileContentsResponses[keyof SearchFileContentsResponses];
|
|
27767
28615
|
export type GetHookRunsData = {
|
|
27768
28616
|
body?: never;
|
|
27769
28617
|
path: {
|
|
@@ -27780,7 +28628,7 @@ export type GetHookRunsData = {
|
|
|
27780
28628
|
/**
|
|
27781
28629
|
* Hook event name
|
|
27782
28630
|
*/
|
|
27783
|
-
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected";
|
|
28631
|
+
event?: "agent.instance.created" | "agent.instance.paused" | "agent.instance.resumed" | "agent.instance.archived" | "agent.instance.adopted" | "subagent.settled" | "session.pre_create" | "session.post_create" | "session.pre_resume" | "session.post_resume" | "session.pre_stop" | "session.post_stop" | "session.message_persisted" | "session.runtime_recovery.started" | "session.runtime_recovery.succeeded" | "session.runtime_recovery.exhausted" | "input.pre_submit" | "prompt.post_assemble" | "event.pre_record" | "event.post_record" | "automation.job.pre_fire" | "automation.job.post_fire" | "automation.trigger.pre_fire" | "automation.trigger.post_fire" | "automation.run.completed" | "automation.run.failed" | "agent.pre_start" | "agent.spawned" | "agent.crashed" | "agent.stopped" | "agent.soul.snapshot.resolved" | "agent.soul.mutation.after" | "agent.heartbeat.policy.resolved" | "agent.heartbeat.wake.before" | "agent.heartbeat.wake.after" | "session.health.update.after" | "turn.start" | "turn.end" | "message.start" | "message.delta" | "message.end" | "tool.pre_call" | "tool.post_call" | "tool.post_error" | "permission.request" | "permission.resolved" | "permission.denied" | "context.pre_compact" | "context.post_compact" | "coordinator.pre_spawn" | "coordinator.spawned" | "coordinator.decision" | "coordinator.stopped" | "coordinator.failed" | "task.blocked" | "task.unblocked" | "task.needs_attention" | "task.recovered" | "task.status_changed" | "task.run.enqueued" | "task.run.pre_claim" | "task.run.post_claim" | "task.run.lease_extended" | "task.run.lease_expired" | "task.run.lease_recovered" | "task.run.released" | "task.run.completed" | "task.run.failed" | "loop.started" | "loop.generation.pre" | "loop.generation.post" | "loop.gate.pre" | "loop.gate.post" | "loop.node.terminal" | "loop.terminal" | "spawn.pre_create" | "spawn.created" | "spawn.parent_stopped" | "spawn.ttl_expired" | "spawn.reaped" | "session.attention.changed" | "window_manager.layout.applied" | "window_manager.desktop.created" | "window_manager.desktop.deleted" | "window_manager.window.moved" | "window_manager.window.opened" | "window_manager.window.closed" | "window_manager.stack.grouped" | "window_manager.stack.ungrouped" | "window_manager.stack.activated" | "worktree.pre_create" | "worktree.pre_remove" | "worktree.created" | "worktree.adopted" | "worktree.removed" | "terminal.opened" | "terminal.closed" | "terminal.command_started" | "terminal.command_finished" | "terminal.input_requested" | "terminal.input_provided" | "terminal.recording_started" | "terminal.recording_stopped" | "terminal.subscriber_evicted" | "terminal.limit_rejected" | "agent.instance.proposal.picked";
|
|
27784
28632
|
/**
|
|
27785
28633
|
* Hook execution outcome
|
|
27786
28634
|
*/
|
|
@@ -30365,6 +31213,10 @@ export type ListWorkspaceSessionsData = {
|
|
|
30365
31213
|
* Exclude settled automation-run sessions; search, type, parent, root, archive=only and later=only reads ignore it
|
|
30366
31214
|
*/
|
|
30367
31215
|
exclude_finished_automation?: boolean;
|
|
31216
|
+
/**
|
|
31217
|
+
* Exclude every automation job or trigger run session the operator has not prompted, whatever its state; search, type, parent, root, archive=only and later=only reads ignore it
|
|
31218
|
+
*/
|
|
31219
|
+
exclude_automation?: boolean;
|
|
30368
31220
|
/**
|
|
30369
31221
|
* Filter by exact session state
|
|
30370
31222
|
*/
|
|
@@ -30958,6 +31810,318 @@ export type ReadSessionAttachmentBytesResponses = {
|
|
|
30958
31810
|
200: Blob | File;
|
|
30959
31811
|
};
|
|
30960
31812
|
export type ReadSessionAttachmentBytesResponse = ReadSessionAttachmentBytesResponses[keyof ReadSessionAttachmentBytesResponses];
|
|
31813
|
+
export type GetSessionChangesData = {
|
|
31814
|
+
body?: never;
|
|
31815
|
+
path: {
|
|
31816
|
+
/**
|
|
31817
|
+
* Workspace id
|
|
31818
|
+
*/
|
|
31819
|
+
workspace_id: string;
|
|
31820
|
+
/**
|
|
31821
|
+
* Session id
|
|
31822
|
+
*/
|
|
31823
|
+
session_id: string;
|
|
31824
|
+
};
|
|
31825
|
+
query?: {
|
|
31826
|
+
/**
|
|
31827
|
+
* Changes scope
|
|
31828
|
+
*/
|
|
31829
|
+
scope?: "branch" | "uncommitted";
|
|
31830
|
+
/**
|
|
31831
|
+
* Optional base ref
|
|
31832
|
+
*/
|
|
31833
|
+
base?: string;
|
|
31834
|
+
/**
|
|
31835
|
+
* Read one profile's rows by name
|
|
31836
|
+
*/
|
|
31837
|
+
profile?: string;
|
|
31838
|
+
/**
|
|
31839
|
+
* Read the owner-labeled all-profiles aggregate
|
|
31840
|
+
*/
|
|
31841
|
+
all_profiles?: boolean;
|
|
31842
|
+
};
|
|
31843
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/changes";
|
|
31844
|
+
};
|
|
31845
|
+
export type GetSessionChangesErrors = {
|
|
31846
|
+
/**
|
|
31847
|
+
* Changes operation failed
|
|
31848
|
+
*/
|
|
31849
|
+
400: ErrorPayload;
|
|
31850
|
+
/**
|
|
31851
|
+
* Changes operation failed
|
|
31852
|
+
*/
|
|
31853
|
+
403: ErrorPayload;
|
|
31854
|
+
/**
|
|
31855
|
+
* Changes operation failed
|
|
31856
|
+
*/
|
|
31857
|
+
404: ErrorPayload;
|
|
31858
|
+
/**
|
|
31859
|
+
* Changes operation failed
|
|
31860
|
+
*/
|
|
31861
|
+
409: ErrorPayload;
|
|
31862
|
+
/**
|
|
31863
|
+
* Changes operation failed
|
|
31864
|
+
*/
|
|
31865
|
+
413: ErrorPayload;
|
|
31866
|
+
/**
|
|
31867
|
+
* Changes operation failed
|
|
31868
|
+
*/
|
|
31869
|
+
422: ErrorPayload;
|
|
31870
|
+
/**
|
|
31871
|
+
* Changes operation failed
|
|
31872
|
+
*/
|
|
31873
|
+
500: ErrorPayload;
|
|
31874
|
+
};
|
|
31875
|
+
export type GetSessionChangesError = GetSessionChangesErrors[keyof GetSessionChangesErrors];
|
|
31876
|
+
export type GetSessionChangesResponses = {
|
|
31877
|
+
/**
|
|
31878
|
+
* OK
|
|
31879
|
+
*/
|
|
31880
|
+
200: SessionChangesResponse;
|
|
31881
|
+
};
|
|
31882
|
+
export type GetSessionChangesResponse = GetSessionChangesResponses[keyof GetSessionChangesResponses];
|
|
31883
|
+
export type ListSessionChangeBasesData = {
|
|
31884
|
+
body?: never;
|
|
31885
|
+
path: {
|
|
31886
|
+
/**
|
|
31887
|
+
* Workspace id
|
|
31888
|
+
*/
|
|
31889
|
+
workspace_id: string;
|
|
31890
|
+
/**
|
|
31891
|
+
* Session id
|
|
31892
|
+
*/
|
|
31893
|
+
session_id: string;
|
|
31894
|
+
};
|
|
31895
|
+
query?: {
|
|
31896
|
+
/**
|
|
31897
|
+
* Substring ref filter
|
|
31898
|
+
*/
|
|
31899
|
+
q?: string;
|
|
31900
|
+
/**
|
|
31901
|
+
* Default 200, maximum 500
|
|
31902
|
+
*/
|
|
31903
|
+
limit?: number;
|
|
31904
|
+
/**
|
|
31905
|
+
* Read one profile's rows by name
|
|
31906
|
+
*/
|
|
31907
|
+
profile?: string;
|
|
31908
|
+
/**
|
|
31909
|
+
* Read the owner-labeled all-profiles aggregate
|
|
31910
|
+
*/
|
|
31911
|
+
all_profiles?: boolean;
|
|
31912
|
+
};
|
|
31913
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/changes/bases";
|
|
31914
|
+
};
|
|
31915
|
+
export type ListSessionChangeBasesErrors = {
|
|
31916
|
+
/**
|
|
31917
|
+
* Changes operation failed
|
|
31918
|
+
*/
|
|
31919
|
+
400: ErrorPayload;
|
|
31920
|
+
/**
|
|
31921
|
+
* Changes operation failed
|
|
31922
|
+
*/
|
|
31923
|
+
403: ErrorPayload;
|
|
31924
|
+
/**
|
|
31925
|
+
* Changes operation failed
|
|
31926
|
+
*/
|
|
31927
|
+
404: ErrorPayload;
|
|
31928
|
+
/**
|
|
31929
|
+
* Changes operation failed
|
|
31930
|
+
*/
|
|
31931
|
+
409: ErrorPayload;
|
|
31932
|
+
/**
|
|
31933
|
+
* Changes operation failed
|
|
31934
|
+
*/
|
|
31935
|
+
413: ErrorPayload;
|
|
31936
|
+
/**
|
|
31937
|
+
* Changes operation failed
|
|
31938
|
+
*/
|
|
31939
|
+
422: ErrorPayload;
|
|
31940
|
+
/**
|
|
31941
|
+
* Changes operation failed
|
|
31942
|
+
*/
|
|
31943
|
+
500: ErrorPayload;
|
|
31944
|
+
};
|
|
31945
|
+
export type ListSessionChangeBasesError = ListSessionChangeBasesErrors[keyof ListSessionChangeBasesErrors];
|
|
31946
|
+
export type ListSessionChangeBasesResponses = {
|
|
31947
|
+
/**
|
|
31948
|
+
* OK
|
|
31949
|
+
*/
|
|
31950
|
+
200: SessionChangeBasesResponse;
|
|
31951
|
+
};
|
|
31952
|
+
export type ListSessionChangeBasesResponse = ListSessionChangeBasesResponses[keyof ListSessionChangeBasesResponses];
|
|
31953
|
+
export type GetSessionChangeContentsData = {
|
|
31954
|
+
body?: never;
|
|
31955
|
+
path: {
|
|
31956
|
+
/**
|
|
31957
|
+
* Workspace id
|
|
31958
|
+
*/
|
|
31959
|
+
workspace_id: string;
|
|
31960
|
+
/**
|
|
31961
|
+
* Session id
|
|
31962
|
+
*/
|
|
31963
|
+
session_id: string;
|
|
31964
|
+
};
|
|
31965
|
+
query: {
|
|
31966
|
+
/**
|
|
31967
|
+
* Changes scope
|
|
31968
|
+
*/
|
|
31969
|
+
scope?: "branch" | "uncommitted";
|
|
31970
|
+
/**
|
|
31971
|
+
* Optional base ref
|
|
31972
|
+
*/
|
|
31973
|
+
base?: string;
|
|
31974
|
+
/**
|
|
31975
|
+
* Summary revision fence
|
|
31976
|
+
*/
|
|
31977
|
+
revision: string;
|
|
31978
|
+
/**
|
|
31979
|
+
* Root-relative path
|
|
31980
|
+
*/
|
|
31981
|
+
path: string;
|
|
31982
|
+
/**
|
|
31983
|
+
* Aligned old path for renames
|
|
31984
|
+
*/
|
|
31985
|
+
old_path?: string;
|
|
31986
|
+
/**
|
|
31987
|
+
* Reveal sensitive contents; forbidden to app tokens
|
|
31988
|
+
*/
|
|
31989
|
+
reveal?: boolean;
|
|
31990
|
+
/**
|
|
31991
|
+
* Read one profile's rows by name
|
|
31992
|
+
*/
|
|
31993
|
+
profile?: string;
|
|
31994
|
+
/**
|
|
31995
|
+
* Read the owner-labeled all-profiles aggregate
|
|
31996
|
+
*/
|
|
31997
|
+
all_profiles?: boolean;
|
|
31998
|
+
};
|
|
31999
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/changes/contents";
|
|
32000
|
+
};
|
|
32001
|
+
export type GetSessionChangeContentsErrors = {
|
|
32002
|
+
/**
|
|
32003
|
+
* Changes operation failed
|
|
32004
|
+
*/
|
|
32005
|
+
400: ErrorPayload;
|
|
32006
|
+
/**
|
|
32007
|
+
* Changes operation failed
|
|
32008
|
+
*/
|
|
32009
|
+
403: ErrorPayload;
|
|
32010
|
+
/**
|
|
32011
|
+
* Changes operation failed
|
|
32012
|
+
*/
|
|
32013
|
+
404: ErrorPayload;
|
|
32014
|
+
/**
|
|
32015
|
+
* Changes operation failed
|
|
32016
|
+
*/
|
|
32017
|
+
409: ErrorPayload;
|
|
32018
|
+
/**
|
|
32019
|
+
* Changes operation failed
|
|
32020
|
+
*/
|
|
32021
|
+
413: ErrorPayload;
|
|
32022
|
+
/**
|
|
32023
|
+
* Changes operation failed
|
|
32024
|
+
*/
|
|
32025
|
+
422: ErrorPayload;
|
|
32026
|
+
/**
|
|
32027
|
+
* Changes operation failed
|
|
32028
|
+
*/
|
|
32029
|
+
500: ErrorPayload;
|
|
32030
|
+
};
|
|
32031
|
+
export type GetSessionChangeContentsError = GetSessionChangeContentsErrors[keyof GetSessionChangeContentsErrors];
|
|
32032
|
+
export type GetSessionChangeContentsResponses = {
|
|
32033
|
+
/**
|
|
32034
|
+
* OK
|
|
32035
|
+
*/
|
|
32036
|
+
200: SessionChangeContentsResponse;
|
|
32037
|
+
};
|
|
32038
|
+
export type GetSessionChangeContentsResponse = GetSessionChangeContentsResponses[keyof GetSessionChangeContentsResponses];
|
|
32039
|
+
export type GetSessionChangePatchesData = {
|
|
32040
|
+
body?: never;
|
|
32041
|
+
path: {
|
|
32042
|
+
/**
|
|
32043
|
+
* Workspace id
|
|
32044
|
+
*/
|
|
32045
|
+
workspace_id: string;
|
|
32046
|
+
/**
|
|
32047
|
+
* Session id
|
|
32048
|
+
*/
|
|
32049
|
+
session_id: string;
|
|
32050
|
+
};
|
|
32051
|
+
query: {
|
|
32052
|
+
/**
|
|
32053
|
+
* Changes scope
|
|
32054
|
+
*/
|
|
32055
|
+
scope?: "branch" | "uncommitted";
|
|
32056
|
+
/**
|
|
32057
|
+
* Optional base ref
|
|
32058
|
+
*/
|
|
32059
|
+
base?: string;
|
|
32060
|
+
/**
|
|
32061
|
+
* Summary revision fence
|
|
32062
|
+
*/
|
|
32063
|
+
revision: string;
|
|
32064
|
+
/**
|
|
32065
|
+
* Root-relative path
|
|
32066
|
+
*/
|
|
32067
|
+
path: Array<string>;
|
|
32068
|
+
/**
|
|
32069
|
+
* Aligned old path for renames
|
|
32070
|
+
*/
|
|
32071
|
+
old_path?: Array<string>;
|
|
32072
|
+
/**
|
|
32073
|
+
* Reveal sensitive contents; forbidden to app tokens
|
|
32074
|
+
*/
|
|
32075
|
+
reveal?: boolean;
|
|
32076
|
+
/**
|
|
32077
|
+
* Read one profile's rows by name
|
|
32078
|
+
*/
|
|
32079
|
+
profile?: string;
|
|
32080
|
+
/**
|
|
32081
|
+
* Read the owner-labeled all-profiles aggregate
|
|
32082
|
+
*/
|
|
32083
|
+
all_profiles?: boolean;
|
|
32084
|
+
};
|
|
32085
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/changes/patches";
|
|
32086
|
+
};
|
|
32087
|
+
export type GetSessionChangePatchesErrors = {
|
|
32088
|
+
/**
|
|
32089
|
+
* Changes operation failed
|
|
32090
|
+
*/
|
|
32091
|
+
400: ErrorPayload;
|
|
32092
|
+
/**
|
|
32093
|
+
* Changes operation failed
|
|
32094
|
+
*/
|
|
32095
|
+
403: ErrorPayload;
|
|
32096
|
+
/**
|
|
32097
|
+
* Changes operation failed
|
|
32098
|
+
*/
|
|
32099
|
+
404: ErrorPayload;
|
|
32100
|
+
/**
|
|
32101
|
+
* Changes operation failed
|
|
32102
|
+
*/
|
|
32103
|
+
409: ErrorPayload;
|
|
32104
|
+
/**
|
|
32105
|
+
* Changes operation failed
|
|
32106
|
+
*/
|
|
32107
|
+
413: ErrorPayload;
|
|
32108
|
+
/**
|
|
32109
|
+
* Changes operation failed
|
|
32110
|
+
*/
|
|
32111
|
+
422: ErrorPayload;
|
|
32112
|
+
/**
|
|
32113
|
+
* Changes operation failed
|
|
32114
|
+
*/
|
|
32115
|
+
500: ErrorPayload;
|
|
32116
|
+
};
|
|
32117
|
+
export type GetSessionChangePatchesError = GetSessionChangePatchesErrors[keyof GetSessionChangePatchesErrors];
|
|
32118
|
+
export type GetSessionChangePatchesResponses = {
|
|
32119
|
+
/**
|
|
32120
|
+
* OK
|
|
32121
|
+
*/
|
|
32122
|
+
200: SessionChangePatchesResponse;
|
|
32123
|
+
};
|
|
32124
|
+
export type GetSessionChangePatchesResponse = GetSessionChangePatchesResponses[keyof GetSessionChangePatchesResponses];
|
|
30961
32125
|
export type ListSessionClarificationsData = {
|
|
30962
32126
|
body?: never;
|
|
30963
32127
|
path: {
|
|
@@ -31121,9 +32285,219 @@ export type GetSessionCommandsData = {
|
|
|
31121
32285
|
*/
|
|
31122
32286
|
all_profiles?: boolean;
|
|
31123
32287
|
};
|
|
31124
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/commands";
|
|
32288
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/commands";
|
|
32289
|
+
};
|
|
32290
|
+
export type GetSessionCommandsErrors = {
|
|
32291
|
+
/**
|
|
32292
|
+
* Session not found
|
|
32293
|
+
*/
|
|
32294
|
+
404: ErrorPayload;
|
|
32295
|
+
/**
|
|
32296
|
+
* Internal server error
|
|
32297
|
+
*/
|
|
32298
|
+
500: ErrorPayload;
|
|
32299
|
+
/**
|
|
32300
|
+
* Command catalog unavailable
|
|
32301
|
+
*/
|
|
32302
|
+
503: ErrorPayload;
|
|
32303
|
+
};
|
|
32304
|
+
export type GetSessionCommandsError = GetSessionCommandsErrors[keyof GetSessionCommandsErrors];
|
|
32305
|
+
export type GetSessionCommandsResponses = {
|
|
32306
|
+
/**
|
|
32307
|
+
* OK
|
|
32308
|
+
*/
|
|
32309
|
+
200: SessionCommandsResponse;
|
|
32310
|
+
};
|
|
32311
|
+
export type GetSessionCommandsResponse = GetSessionCommandsResponses[keyof GetSessionCommandsResponses];
|
|
32312
|
+
export type CompactSessionData = {
|
|
32313
|
+
/**
|
|
32314
|
+
* JSON request body
|
|
32315
|
+
*/
|
|
32316
|
+
body: SessionCompactRequest;
|
|
32317
|
+
path: {
|
|
32318
|
+
/**
|
|
32319
|
+
* Workspace id
|
|
32320
|
+
*/
|
|
32321
|
+
workspace_id: string;
|
|
32322
|
+
/**
|
|
32323
|
+
* Session id
|
|
32324
|
+
*/
|
|
32325
|
+
session_id: string;
|
|
32326
|
+
};
|
|
32327
|
+
query?: {
|
|
32328
|
+
/**
|
|
32329
|
+
* Act as this profile by name
|
|
32330
|
+
*/
|
|
32331
|
+
profile?: string;
|
|
32332
|
+
};
|
|
32333
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/compact";
|
|
32334
|
+
};
|
|
32335
|
+
export type CompactSessionErrors = {
|
|
32336
|
+
/**
|
|
32337
|
+
* session_not_promptable
|
|
32338
|
+
*/
|
|
32339
|
+
400: ErrorPayload;
|
|
32340
|
+
/**
|
|
32341
|
+
* Session not found
|
|
32342
|
+
*/
|
|
32343
|
+
404: ErrorPayload;
|
|
32344
|
+
/**
|
|
32345
|
+
* session_busy or compaction_unsupported
|
|
32346
|
+
*/
|
|
32347
|
+
409: ErrorPayload;
|
|
32348
|
+
/**
|
|
32349
|
+
* Internal server error
|
|
32350
|
+
*/
|
|
32351
|
+
500: ErrorPayload;
|
|
32352
|
+
};
|
|
32353
|
+
export type CompactSessionError = CompactSessionErrors[keyof CompactSessionErrors];
|
|
32354
|
+
export type CompactSessionResponses = {
|
|
32355
|
+
/**
|
|
32356
|
+
* Compaction accepted
|
|
32357
|
+
*/
|
|
32358
|
+
202: SessionCompactResponse;
|
|
32359
|
+
};
|
|
32360
|
+
export type CompactSessionResponse = CompactSessionResponses[keyof CompactSessionResponses];
|
|
32361
|
+
export type ContinueSessionData = {
|
|
32362
|
+
/**
|
|
32363
|
+
* JSON request body
|
|
32364
|
+
*/
|
|
32365
|
+
body: ContinueSessionRequest;
|
|
32366
|
+
path: {
|
|
32367
|
+
/**
|
|
32368
|
+
* Workspace id
|
|
32369
|
+
*/
|
|
32370
|
+
workspace_id: string;
|
|
32371
|
+
/**
|
|
32372
|
+
* Source session id
|
|
32373
|
+
*/
|
|
32374
|
+
session_id: string;
|
|
32375
|
+
};
|
|
32376
|
+
query?: {
|
|
32377
|
+
/**
|
|
32378
|
+
* Act as this profile by name
|
|
32379
|
+
*/
|
|
32380
|
+
profile?: string;
|
|
32381
|
+
};
|
|
32382
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/continue";
|
|
32383
|
+
};
|
|
32384
|
+
export type ContinueSessionErrors = {
|
|
32385
|
+
/**
|
|
32386
|
+
* Invalid continue request
|
|
32387
|
+
*/
|
|
32388
|
+
400: SessionDeriveErrorPayload;
|
|
32389
|
+
/**
|
|
32390
|
+
* Session or agent not found
|
|
32391
|
+
*/
|
|
32392
|
+
404: SessionDeriveErrorPayload;
|
|
32393
|
+
/**
|
|
32394
|
+
* Session cannot be continued
|
|
32395
|
+
*/
|
|
32396
|
+
409: SessionDeriveErrorPayload;
|
|
32397
|
+
/**
|
|
32398
|
+
* Runtime or authentication failure; when the new session was already created the error carries child_session_id and a retry with the same idempotency_key returns it
|
|
32399
|
+
*/
|
|
32400
|
+
422: SessionDeriveErrorPayload;
|
|
32401
|
+
/**
|
|
32402
|
+
* Internal server error
|
|
32403
|
+
*/
|
|
32404
|
+
500: SessionDeriveErrorPayload;
|
|
32405
|
+
/**
|
|
32406
|
+
* New-work admission is unavailable while the daemon is draining
|
|
32407
|
+
*/
|
|
32408
|
+
503: SessionDeriveErrorPayload;
|
|
32409
|
+
};
|
|
32410
|
+
export type ContinueSessionError = ContinueSessionErrors[keyof ContinueSessionErrors];
|
|
32411
|
+
export type ContinueSessionResponses = {
|
|
32412
|
+
/**
|
|
32413
|
+
* Recorded outcome replayed
|
|
32414
|
+
*/
|
|
32415
|
+
200: SessionDeriveResponse;
|
|
32416
|
+
/**
|
|
32417
|
+
* Created
|
|
32418
|
+
*/
|
|
32419
|
+
201: SessionDeriveResponse;
|
|
32420
|
+
};
|
|
32421
|
+
export type ContinueSessionResponse = ContinueSessionResponses[keyof ContinueSessionResponses];
|
|
32422
|
+
export type PreviewSessionDeriveData = {
|
|
32423
|
+
body?: never;
|
|
32424
|
+
path: {
|
|
32425
|
+
/**
|
|
32426
|
+
* Workspace id
|
|
32427
|
+
*/
|
|
32428
|
+
workspace_id: string;
|
|
32429
|
+
/**
|
|
32430
|
+
* Source session id
|
|
32431
|
+
*/
|
|
32432
|
+
session_id: string;
|
|
32433
|
+
};
|
|
32434
|
+
query?: {
|
|
32435
|
+
/**
|
|
32436
|
+
* Durable user message to cut through (fork from here)
|
|
32437
|
+
*/
|
|
32438
|
+
message_id?: string;
|
|
32439
|
+
/**
|
|
32440
|
+
* Read one profile's rows by name
|
|
32441
|
+
*/
|
|
32442
|
+
profile?: string;
|
|
32443
|
+
/**
|
|
32444
|
+
* Read the owner-labeled all-profiles aggregate
|
|
32445
|
+
*/
|
|
32446
|
+
all_profiles?: boolean;
|
|
32447
|
+
};
|
|
32448
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/derive/preview";
|
|
32449
|
+
};
|
|
32450
|
+
export type PreviewSessionDeriveErrors = {
|
|
32451
|
+
/**
|
|
32452
|
+
* Session cannot be continued or forked
|
|
32453
|
+
*/
|
|
32454
|
+
400: ErrorPayload;
|
|
32455
|
+
/**
|
|
32456
|
+
* Session or message not found
|
|
32457
|
+
*/
|
|
32458
|
+
404: ErrorPayload;
|
|
32459
|
+
/**
|
|
32460
|
+
* Session is archived
|
|
32461
|
+
*/
|
|
32462
|
+
409: ErrorPayload;
|
|
32463
|
+
/**
|
|
32464
|
+
* Internal server error
|
|
32465
|
+
*/
|
|
32466
|
+
500: ErrorPayload;
|
|
32467
|
+
};
|
|
32468
|
+
export type PreviewSessionDeriveError = PreviewSessionDeriveErrors[keyof PreviewSessionDeriveErrors];
|
|
32469
|
+
export type PreviewSessionDeriveResponses = {
|
|
32470
|
+
/**
|
|
32471
|
+
* OK
|
|
32472
|
+
*/
|
|
32473
|
+
200: SessionDerivePreviewResponse;
|
|
32474
|
+
};
|
|
32475
|
+
export type PreviewSessionDeriveResponse = PreviewSessionDeriveResponses[keyof PreviewSessionDeriveResponses];
|
|
32476
|
+
export type ListSessionDescendantsData = {
|
|
32477
|
+
body?: never;
|
|
32478
|
+
path: {
|
|
32479
|
+
/**
|
|
32480
|
+
* Workspace id
|
|
32481
|
+
*/
|
|
32482
|
+
workspace_id: string;
|
|
32483
|
+
/**
|
|
32484
|
+
* Session id
|
|
32485
|
+
*/
|
|
32486
|
+
session_id: string;
|
|
32487
|
+
};
|
|
32488
|
+
query?: {
|
|
32489
|
+
/**
|
|
32490
|
+
* Read one profile's rows by name
|
|
32491
|
+
*/
|
|
32492
|
+
profile?: string;
|
|
32493
|
+
/**
|
|
32494
|
+
* Read the owner-labeled all-profiles aggregate
|
|
32495
|
+
*/
|
|
32496
|
+
all_profiles?: boolean;
|
|
32497
|
+
};
|
|
32498
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/descendants";
|
|
31125
32499
|
};
|
|
31126
|
-
export type
|
|
32500
|
+
export type ListSessionDescendantsErrors = {
|
|
31127
32501
|
/**
|
|
31128
32502
|
* Session not found
|
|
31129
32503
|
*/
|
|
@@ -31133,23 +32507,20 @@ export type GetSessionCommandsErrors = {
|
|
|
31133
32507
|
*/
|
|
31134
32508
|
500: ErrorPayload;
|
|
31135
32509
|
/**
|
|
31136
|
-
*
|
|
32510
|
+
* Service unavailable - dependent service missing
|
|
31137
32511
|
*/
|
|
31138
32512
|
503: ErrorPayload;
|
|
31139
32513
|
};
|
|
31140
|
-
export type
|
|
31141
|
-
export type
|
|
32514
|
+
export type ListSessionDescendantsError = ListSessionDescendantsErrors[keyof ListSessionDescendantsErrors];
|
|
32515
|
+
export type ListSessionDescendantsResponses = {
|
|
31142
32516
|
/**
|
|
31143
32517
|
* OK
|
|
31144
32518
|
*/
|
|
31145
|
-
200:
|
|
32519
|
+
200: SessionsResponse;
|
|
31146
32520
|
};
|
|
31147
|
-
export type
|
|
31148
|
-
export type
|
|
31149
|
-
|
|
31150
|
-
* JSON request body
|
|
31151
|
-
*/
|
|
31152
|
-
body: SessionCompactRequest;
|
|
32521
|
+
export type ListSessionDescendantsResponse = ListSessionDescendantsResponses[keyof ListSessionDescendantsResponses];
|
|
32522
|
+
export type ListSessionEventsData = {
|
|
32523
|
+
body?: never;
|
|
31153
32524
|
path: {
|
|
31154
32525
|
/**
|
|
31155
32526
|
* Workspace id
|
|
@@ -31162,100 +32533,125 @@ export type CompactSessionData = {
|
|
|
31162
32533
|
};
|
|
31163
32534
|
query?: {
|
|
31164
32535
|
/**
|
|
31165
|
-
*
|
|
32536
|
+
* Only events emitted since this timestamp
|
|
32537
|
+
*/
|
|
32538
|
+
since?: string;
|
|
32539
|
+
/**
|
|
32540
|
+
* Maximum number of records to return; defaults to the newest 200 and is capped at 1000
|
|
32541
|
+
*/
|
|
32542
|
+
limit?: number;
|
|
32543
|
+
/**
|
|
32544
|
+
* Only return events after this sequence number
|
|
32545
|
+
*/
|
|
32546
|
+
after_sequence?: number;
|
|
32547
|
+
/**
|
|
32548
|
+
* Event type
|
|
32549
|
+
*/
|
|
32550
|
+
type?: string;
|
|
32551
|
+
/**
|
|
32552
|
+
* Agent name
|
|
32553
|
+
*/
|
|
32554
|
+
agent_name?: string;
|
|
32555
|
+
/**
|
|
32556
|
+
* Turn id
|
|
32557
|
+
*/
|
|
32558
|
+
turn_id?: string;
|
|
32559
|
+
/**
|
|
32560
|
+
* Select active, archived, or all events
|
|
32561
|
+
*/
|
|
32562
|
+
archive?: "active" | "archived" | "all";
|
|
32563
|
+
/**
|
|
32564
|
+
* Read one profile's rows by name
|
|
31166
32565
|
*/
|
|
31167
32566
|
profile?: string;
|
|
32567
|
+
/**
|
|
32568
|
+
* Read the owner-labeled all-profiles aggregate
|
|
32569
|
+
*/
|
|
32570
|
+
all_profiles?: boolean;
|
|
31168
32571
|
};
|
|
31169
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/
|
|
32572
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/events";
|
|
31170
32573
|
};
|
|
31171
|
-
export type
|
|
32574
|
+
export type ListSessionEventsErrors = {
|
|
31172
32575
|
/**
|
|
31173
|
-
*
|
|
32576
|
+
* Invalid filter
|
|
31174
32577
|
*/
|
|
31175
32578
|
400: ErrorPayload;
|
|
31176
32579
|
/**
|
|
31177
32580
|
* Session not found
|
|
31178
32581
|
*/
|
|
31179
32582
|
404: ErrorPayload;
|
|
31180
|
-
/**
|
|
31181
|
-
* session_busy or compaction_unsupported
|
|
31182
|
-
*/
|
|
31183
|
-
409: ErrorPayload;
|
|
31184
32583
|
/**
|
|
31185
32584
|
* Internal server error
|
|
31186
32585
|
*/
|
|
31187
32586
|
500: ErrorPayload;
|
|
31188
32587
|
};
|
|
31189
|
-
export type
|
|
31190
|
-
export type
|
|
32588
|
+
export type ListSessionEventsError = ListSessionEventsErrors[keyof ListSessionEventsErrors];
|
|
32589
|
+
export type ListSessionEventsResponses = {
|
|
31191
32590
|
/**
|
|
31192
|
-
*
|
|
32591
|
+
* OK
|
|
31193
32592
|
*/
|
|
31194
|
-
|
|
32593
|
+
200: SessionEventsResponse;
|
|
31195
32594
|
};
|
|
31196
|
-
export type
|
|
31197
|
-
export type
|
|
31198
|
-
|
|
31199
|
-
* JSON request body
|
|
31200
|
-
*/
|
|
31201
|
-
body: ContinueSessionRequest;
|
|
32595
|
+
export type ListSessionEventsResponse = ListSessionEventsResponses[keyof ListSessionEventsResponses];
|
|
32596
|
+
export type SearchSessionFilesData = {
|
|
32597
|
+
body?: never;
|
|
31202
32598
|
path: {
|
|
31203
32599
|
/**
|
|
31204
32600
|
* Workspace id
|
|
31205
32601
|
*/
|
|
31206
32602
|
workspace_id: string;
|
|
31207
32603
|
/**
|
|
31208
|
-
*
|
|
32604
|
+
* Session id
|
|
31209
32605
|
*/
|
|
31210
32606
|
session_id: string;
|
|
31211
32607
|
};
|
|
31212
32608
|
query?: {
|
|
31213
32609
|
/**
|
|
31214
|
-
*
|
|
32610
|
+
* Search text; empty returns the shallowest entries
|
|
32611
|
+
*/
|
|
32612
|
+
q?: string;
|
|
32613
|
+
/**
|
|
32614
|
+
* Maximum entries returned
|
|
32615
|
+
*/
|
|
32616
|
+
limit?: number;
|
|
32617
|
+
/**
|
|
32618
|
+
* Read one profile's rows by name
|
|
31215
32619
|
*/
|
|
31216
32620
|
profile?: string;
|
|
32621
|
+
/**
|
|
32622
|
+
* Read the owner-labeled all-profiles aggregate
|
|
32623
|
+
*/
|
|
32624
|
+
all_profiles?: boolean;
|
|
31217
32625
|
};
|
|
31218
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/
|
|
32626
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files";
|
|
31219
32627
|
};
|
|
31220
|
-
export type
|
|
31221
|
-
/**
|
|
31222
|
-
* Invalid continue request
|
|
31223
|
-
*/
|
|
31224
|
-
400: SessionDeriveErrorPayload;
|
|
32628
|
+
export type SearchSessionFilesErrors = {
|
|
31225
32629
|
/**
|
|
31226
|
-
*
|
|
32630
|
+
* Invalid limit
|
|
31227
32631
|
*/
|
|
31228
|
-
|
|
32632
|
+
400: ErrorPayload;
|
|
31229
32633
|
/**
|
|
31230
|
-
* Session
|
|
32634
|
+
* Session not found
|
|
31231
32635
|
*/
|
|
31232
|
-
|
|
32636
|
+
404: ErrorPayload;
|
|
31233
32637
|
/**
|
|
31234
|
-
*
|
|
32638
|
+
* Session working directory no longer exists
|
|
31235
32639
|
*/
|
|
31236
|
-
|
|
32640
|
+
409: ErrorPayload;
|
|
31237
32641
|
/**
|
|
31238
32642
|
* Internal server error
|
|
31239
32643
|
*/
|
|
31240
|
-
500:
|
|
31241
|
-
/**
|
|
31242
|
-
* New-work admission is unavailable while the daemon is draining
|
|
31243
|
-
*/
|
|
31244
|
-
503: SessionDeriveErrorPayload;
|
|
32644
|
+
500: ErrorPayload;
|
|
31245
32645
|
};
|
|
31246
|
-
export type
|
|
31247
|
-
export type
|
|
31248
|
-
/**
|
|
31249
|
-
* Recorded outcome replayed
|
|
31250
|
-
*/
|
|
31251
|
-
200: SessionDeriveResponse;
|
|
32646
|
+
export type SearchSessionFilesError = SearchSessionFilesErrors[keyof SearchSessionFilesErrors];
|
|
32647
|
+
export type SearchSessionFilesResponses = {
|
|
31252
32648
|
/**
|
|
31253
|
-
*
|
|
32649
|
+
* OK
|
|
31254
32650
|
*/
|
|
31255
|
-
|
|
32651
|
+
200: SessionFilesResponse;
|
|
31256
32652
|
};
|
|
31257
|
-
export type
|
|
31258
|
-
export type
|
|
32653
|
+
export type SearchSessionFilesResponse = SearchSessionFilesResponses[keyof SearchSessionFilesResponses];
|
|
32654
|
+
export type ReadSessionFileContentData = {
|
|
31259
32655
|
body?: never;
|
|
31260
32656
|
path: {
|
|
31261
32657
|
/**
|
|
@@ -31263,15 +32659,19 @@ export type PreviewSessionDeriveData = {
|
|
|
31263
32659
|
*/
|
|
31264
32660
|
workspace_id: string;
|
|
31265
32661
|
/**
|
|
31266
|
-
*
|
|
32662
|
+
* Session id
|
|
31267
32663
|
*/
|
|
31268
32664
|
session_id: string;
|
|
31269
32665
|
};
|
|
31270
|
-
query
|
|
32666
|
+
query: {
|
|
31271
32667
|
/**
|
|
31272
|
-
*
|
|
32668
|
+
* Root-relative path
|
|
31273
32669
|
*/
|
|
31274
|
-
|
|
32670
|
+
path: string;
|
|
32671
|
+
/**
|
|
32672
|
+
* Reveal sensitive content; forbidden to app tokens
|
|
32673
|
+
*/
|
|
32674
|
+
reveal?: boolean;
|
|
31275
32675
|
/**
|
|
31276
32676
|
* Read one profile's rows by name
|
|
31277
32677
|
*/
|
|
@@ -31281,35 +32681,43 @@ export type PreviewSessionDeriveData = {
|
|
|
31281
32681
|
*/
|
|
31282
32682
|
all_profiles?: boolean;
|
|
31283
32683
|
};
|
|
31284
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/
|
|
32684
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files/content";
|
|
31285
32685
|
};
|
|
31286
|
-
export type
|
|
32686
|
+
export type ReadSessionFileContentErrors = {
|
|
31287
32687
|
/**
|
|
31288
|
-
*
|
|
32688
|
+
* File operation failed
|
|
31289
32689
|
*/
|
|
31290
32690
|
400: ErrorPayload;
|
|
31291
32691
|
/**
|
|
31292
|
-
*
|
|
32692
|
+
* File operation failed
|
|
32693
|
+
*/
|
|
32694
|
+
403: ErrorPayload;
|
|
32695
|
+
/**
|
|
32696
|
+
* File operation failed
|
|
31293
32697
|
*/
|
|
31294
32698
|
404: ErrorPayload;
|
|
31295
32699
|
/**
|
|
31296
|
-
*
|
|
32700
|
+
* File operation failed
|
|
31297
32701
|
*/
|
|
31298
32702
|
409: ErrorPayload;
|
|
31299
32703
|
/**
|
|
31300
|
-
*
|
|
32704
|
+
* File operation failed
|
|
32705
|
+
*/
|
|
32706
|
+
422: ErrorPayload;
|
|
32707
|
+
/**
|
|
32708
|
+
* File operation failed
|
|
31301
32709
|
*/
|
|
31302
32710
|
500: ErrorPayload;
|
|
31303
32711
|
};
|
|
31304
|
-
export type
|
|
31305
|
-
export type
|
|
32712
|
+
export type ReadSessionFileContentError = ReadSessionFileContentErrors[keyof ReadSessionFileContentErrors];
|
|
32713
|
+
export type ReadSessionFileContentResponses = {
|
|
31306
32714
|
/**
|
|
31307
32715
|
* OK
|
|
31308
32716
|
*/
|
|
31309
|
-
200:
|
|
32717
|
+
200: FileContentResponse;
|
|
31310
32718
|
};
|
|
31311
|
-
export type
|
|
31312
|
-
export type
|
|
32719
|
+
export type ReadSessionFileContentResponse = ReadSessionFileContentResponses[keyof ReadSessionFileContentResponses];
|
|
32720
|
+
export type ListSessionFileEntriesData = {
|
|
31313
32721
|
body?: never;
|
|
31314
32722
|
path: {
|
|
31315
32723
|
/**
|
|
@@ -31322,6 +32730,14 @@ export type ListSessionDescendantsData = {
|
|
|
31322
32730
|
session_id: string;
|
|
31323
32731
|
};
|
|
31324
32732
|
query?: {
|
|
32733
|
+
/**
|
|
32734
|
+
* Root-relative path
|
|
32735
|
+
*/
|
|
32736
|
+
path?: string;
|
|
32737
|
+
/**
|
|
32738
|
+
* Include ignored entries
|
|
32739
|
+
*/
|
|
32740
|
+
show_ignored?: boolean;
|
|
31325
32741
|
/**
|
|
31326
32742
|
* Read one profile's rows by name
|
|
31327
32743
|
*/
|
|
@@ -31331,31 +32747,43 @@ export type ListSessionDescendantsData = {
|
|
|
31331
32747
|
*/
|
|
31332
32748
|
all_profiles?: boolean;
|
|
31333
32749
|
};
|
|
31334
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/
|
|
32750
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files/entries";
|
|
31335
32751
|
};
|
|
31336
|
-
export type
|
|
32752
|
+
export type ListSessionFileEntriesErrors = {
|
|
31337
32753
|
/**
|
|
31338
|
-
*
|
|
32754
|
+
* File operation failed
|
|
32755
|
+
*/
|
|
32756
|
+
400: ErrorPayload;
|
|
32757
|
+
/**
|
|
32758
|
+
* File operation failed
|
|
32759
|
+
*/
|
|
32760
|
+
403: ErrorPayload;
|
|
32761
|
+
/**
|
|
32762
|
+
* File operation failed
|
|
31339
32763
|
*/
|
|
31340
32764
|
404: ErrorPayload;
|
|
31341
32765
|
/**
|
|
31342
|
-
*
|
|
32766
|
+
* File operation failed
|
|
31343
32767
|
*/
|
|
31344
|
-
|
|
32768
|
+
409: ErrorPayload;
|
|
31345
32769
|
/**
|
|
31346
|
-
*
|
|
32770
|
+
* File operation failed
|
|
31347
32771
|
*/
|
|
31348
|
-
|
|
32772
|
+
422: ErrorPayload;
|
|
32773
|
+
/**
|
|
32774
|
+
* File operation failed
|
|
32775
|
+
*/
|
|
32776
|
+
500: ErrorPayload;
|
|
31349
32777
|
};
|
|
31350
|
-
export type
|
|
31351
|
-
export type
|
|
32778
|
+
export type ListSessionFileEntriesError = ListSessionFileEntriesErrors[keyof ListSessionFileEntriesErrors];
|
|
32779
|
+
export type ListSessionFileEntriesResponses = {
|
|
31352
32780
|
/**
|
|
31353
32781
|
* OK
|
|
31354
32782
|
*/
|
|
31355
|
-
200:
|
|
32783
|
+
200: FileEntriesResponse;
|
|
31356
32784
|
};
|
|
31357
|
-
export type
|
|
31358
|
-
export type
|
|
32785
|
+
export type ListSessionFileEntriesResponse = ListSessionFileEntriesResponses[keyof ListSessionFileEntriesResponses];
|
|
32786
|
+
export type FindSessionFilesData = {
|
|
31359
32787
|
body?: never;
|
|
31360
32788
|
path: {
|
|
31361
32789
|
/**
|
|
@@ -31367,35 +32795,15 @@ export type ListSessionEventsData = {
|
|
|
31367
32795
|
*/
|
|
31368
32796
|
session_id: string;
|
|
31369
32797
|
};
|
|
31370
|
-
query
|
|
32798
|
+
query: {
|
|
31371
32799
|
/**
|
|
31372
|
-
*
|
|
32800
|
+
* Search query
|
|
31373
32801
|
*/
|
|
31374
|
-
|
|
32802
|
+
q: string;
|
|
31375
32803
|
/**
|
|
31376
|
-
*
|
|
32804
|
+
* Result limit; defaults and clamps to 50
|
|
31377
32805
|
*/
|
|
31378
32806
|
limit?: number;
|
|
31379
|
-
/**
|
|
31380
|
-
* Only return events after this sequence number
|
|
31381
|
-
*/
|
|
31382
|
-
after_sequence?: number;
|
|
31383
|
-
/**
|
|
31384
|
-
* Event type
|
|
31385
|
-
*/
|
|
31386
|
-
type?: string;
|
|
31387
|
-
/**
|
|
31388
|
-
* Agent name
|
|
31389
|
-
*/
|
|
31390
|
-
agent_name?: string;
|
|
31391
|
-
/**
|
|
31392
|
-
* Turn id
|
|
31393
|
-
*/
|
|
31394
|
-
turn_id?: string;
|
|
31395
|
-
/**
|
|
31396
|
-
* Select active, archived, or all events
|
|
31397
|
-
*/
|
|
31398
|
-
archive?: "active" | "archived" | "all";
|
|
31399
32807
|
/**
|
|
31400
32808
|
* Read one profile's rows by name
|
|
31401
32809
|
*/
|
|
@@ -31405,31 +32813,39 @@ export type ListSessionEventsData = {
|
|
|
31405
32813
|
*/
|
|
31406
32814
|
all_profiles?: boolean;
|
|
31407
32815
|
};
|
|
31408
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/
|
|
32816
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files/find";
|
|
31409
32817
|
};
|
|
31410
|
-
export type
|
|
32818
|
+
export type FindSessionFilesErrors = {
|
|
31411
32819
|
/**
|
|
31412
|
-
*
|
|
32820
|
+
* Search failed
|
|
31413
32821
|
*/
|
|
31414
32822
|
400: ErrorPayload;
|
|
31415
32823
|
/**
|
|
31416
|
-
*
|
|
32824
|
+
* Search failed
|
|
32825
|
+
*/
|
|
32826
|
+
403: ErrorPayload;
|
|
32827
|
+
/**
|
|
32828
|
+
* Search failed
|
|
31417
32829
|
*/
|
|
31418
32830
|
404: ErrorPayload;
|
|
31419
32831
|
/**
|
|
31420
|
-
*
|
|
32832
|
+
* Search failed
|
|
32833
|
+
*/
|
|
32834
|
+
409: ErrorPayload;
|
|
32835
|
+
/**
|
|
32836
|
+
* Search failed
|
|
31421
32837
|
*/
|
|
31422
32838
|
500: ErrorPayload;
|
|
31423
32839
|
};
|
|
31424
|
-
export type
|
|
31425
|
-
export type
|
|
32840
|
+
export type FindSessionFilesError = FindSessionFilesErrors[keyof FindSessionFilesErrors];
|
|
32841
|
+
export type FindSessionFilesResponses = {
|
|
31426
32842
|
/**
|
|
31427
32843
|
* OK
|
|
31428
32844
|
*/
|
|
31429
|
-
200:
|
|
32845
|
+
200: FileFindResponse;
|
|
31430
32846
|
};
|
|
31431
|
-
export type
|
|
31432
|
-
export type
|
|
32847
|
+
export type FindSessionFilesResponse = FindSessionFilesResponses[keyof FindSessionFilesResponses];
|
|
32848
|
+
export type SearchSessionFileContentsData = {
|
|
31433
32849
|
body?: never;
|
|
31434
32850
|
path: {
|
|
31435
32851
|
/**
|
|
@@ -31441,15 +32857,31 @@ export type SearchSessionFilesData = {
|
|
|
31441
32857
|
*/
|
|
31442
32858
|
session_id: string;
|
|
31443
32859
|
};
|
|
31444
|
-
query
|
|
32860
|
+
query: {
|
|
31445
32861
|
/**
|
|
31446
|
-
* Search
|
|
32862
|
+
* Search query
|
|
31447
32863
|
*/
|
|
31448
|
-
q
|
|
32864
|
+
q: string;
|
|
31449
32865
|
/**
|
|
31450
|
-
*
|
|
32866
|
+
* Use POSIX ERE
|
|
31451
32867
|
*/
|
|
31452
|
-
|
|
32868
|
+
regex?: boolean;
|
|
32869
|
+
/**
|
|
32870
|
+
* Match case
|
|
32871
|
+
*/
|
|
32872
|
+
case_sensitive?: boolean;
|
|
32873
|
+
/**
|
|
32874
|
+
* Match whole words
|
|
32875
|
+
*/
|
|
32876
|
+
whole_word?: boolean;
|
|
32877
|
+
/**
|
|
32878
|
+
* Root-relative globs; repeat at most ten times
|
|
32879
|
+
*/
|
|
32880
|
+
include?: Array<string>;
|
|
32881
|
+
/**
|
|
32882
|
+
* Root-relative globs; repeat at most ten times
|
|
32883
|
+
*/
|
|
32884
|
+
exclude?: Array<string>;
|
|
31453
32885
|
/**
|
|
31454
32886
|
* Read one profile's rows by name
|
|
31455
32887
|
*/
|
|
@@ -31459,34 +32891,38 @@ export type SearchSessionFilesData = {
|
|
|
31459
32891
|
*/
|
|
31460
32892
|
all_profiles?: boolean;
|
|
31461
32893
|
};
|
|
31462
|
-
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files";
|
|
32894
|
+
url: "/api/workspaces/{workspace_id}/sessions/{session_id}/files/search";
|
|
31463
32895
|
};
|
|
31464
|
-
export type
|
|
32896
|
+
export type SearchSessionFileContentsErrors = {
|
|
31465
32897
|
/**
|
|
31466
|
-
*
|
|
32898
|
+
* Search failed
|
|
31467
32899
|
*/
|
|
31468
32900
|
400: ErrorPayload;
|
|
31469
32901
|
/**
|
|
31470
|
-
*
|
|
32902
|
+
* Search failed
|
|
32903
|
+
*/
|
|
32904
|
+
403: ErrorPayload;
|
|
32905
|
+
/**
|
|
32906
|
+
* Search failed
|
|
31471
32907
|
*/
|
|
31472
32908
|
404: ErrorPayload;
|
|
31473
32909
|
/**
|
|
31474
|
-
*
|
|
32910
|
+
* Search failed
|
|
31475
32911
|
*/
|
|
31476
32912
|
409: ErrorPayload;
|
|
31477
32913
|
/**
|
|
31478
|
-
*
|
|
32914
|
+
* Search failed
|
|
31479
32915
|
*/
|
|
31480
32916
|
500: ErrorPayload;
|
|
31481
32917
|
};
|
|
31482
|
-
export type
|
|
31483
|
-
export type
|
|
32918
|
+
export type SearchSessionFileContentsError = SearchSessionFileContentsErrors[keyof SearchSessionFileContentsErrors];
|
|
32919
|
+
export type SearchSessionFileContentsResponses = {
|
|
31484
32920
|
/**
|
|
31485
32921
|
* OK
|
|
31486
32922
|
*/
|
|
31487
|
-
200:
|
|
32923
|
+
200: FileSearchResponse;
|
|
31488
32924
|
};
|
|
31489
|
-
export type
|
|
32925
|
+
export type SearchSessionFileContentsResponse = SearchSessionFileContentsResponses[keyof SearchSessionFileContentsResponses];
|
|
31490
32926
|
export type ForkSessionData = {
|
|
31491
32927
|
/**
|
|
31492
32928
|
* JSON request body
|
|
@@ -35455,7 +36891,7 @@ export type ReadToolArtifactData = {
|
|
|
35455
36891
|
body?: never;
|
|
35456
36892
|
path: {
|
|
35457
36893
|
/**
|
|
35458
|
-
* Durable workspace id
|
|
36894
|
+
* Durable workspace id or @user
|
|
35459
36895
|
*/
|
|
35460
36896
|
workspace_id: string;
|
|
35461
36897
|
/**
|
|
@@ -35472,6 +36908,10 @@ export type ReadToolArtifactData = {
|
|
|
35472
36908
|
* Page size in bytes; defaults to and is capped at 65536
|
|
35473
36909
|
*/
|
|
35474
36910
|
limit?: number;
|
|
36911
|
+
/**
|
|
36912
|
+
* Act as this profile by name
|
|
36913
|
+
*/
|
|
36914
|
+
profile?: string;
|
|
35475
36915
|
};
|
|
35476
36916
|
url: "/api/workspaces/{workspace_id}/tool-artifacts/{artifact_id}";
|
|
35477
36917
|
};
|
|
@@ -35481,7 +36921,7 @@ export type ReadToolArtifactErrors = {
|
|
|
35481
36921
|
*/
|
|
35482
36922
|
400: ToolErrorResponse;
|
|
35483
36923
|
/**
|
|
35484
|
-
* Artifact not found in the resolved workspace
|
|
36924
|
+
* Artifact not found in the resolved workspace or User scope and profile
|
|
35485
36925
|
*/
|
|
35486
36926
|
404: ToolErrorResponse;
|
|
35487
36927
|
/**
|